File: configure.ac

package info (click to toggle)
hyantesite 1.3.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 38,152 kB
  • ctags: 240
  • sloc: ansic: 755; sh: 192; perl: 179; makefile: 140
file content (49 lines) | stat: -rw-r--r-- 1,153 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.61)
AC_INIT([hyantesite],[1.3.0],[hyantes-dev@lists.gforge.inria.fr])
AC_CONFIG_AUX_DIR([.config])
AC_CONFIG_SRCDIR([src/hyantes.c])
AC_CONFIG_HEADER([hs_config.h])
AC_CONFIG_MACRO_DIR([.m4])
AM_INIT_AUTOMAKE([gnu 1.0])

# Checks for programs.
AC_PROG_CC_C99

AC_PROG_LIBTOOL
AC_PROG_CPP
AM_PROG_CC_C_O

# Checks for libraries.
AC_CHECK_HEADER([math.h],,[AC_MSG_ERROR([math header not found])])
AC_CHECK_LIB([m],[cos],,[AC_MSG_ERROR([math library not found])])
# Checks for header files.
AC_HEADER_STDC
AC_HEADER_TIME
AC_CHECK_HEADERS([float.h stdlib.h stdio.h],,[AC_MSG_ERROR([standard header not found])])


# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T

# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC

# Checks for documentation generation
AX_FEATURE([doc],[build documentation],[no],[
			AC_PATH_PROG([DOXYGEN],[doxygen])
			AC_PATH_PROG([HELP2MAN],[help2man])
])

# Generate Makefiles
AC_CONFIG_FILES([Makefile
				 hyantes.pc
				 src/Makefile
				 bin/Makefile
				 test/Makefile
				 docs/Makefile
				 ])
AC_OUTPUT