-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfigure.ac
50 lines (41 loc) · 1.03 KB
/
configure.ac
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
50
AC_PREREQ(2.61)
AC_INIT([saft], [0.0.3], [[email protected]])
AC_CONFIG_SRCDIR([src/libsaft/saftsequence.h])
AC_CONFIG_HEADER([config.h])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE()
# Checks for programs.
AC_PROG_CC
AC_PROG_CC_C99
AC_PROG_INSTALL
AC_PROG_LIBTOOL
# Checks for pkg-config
PKG_PROG_PKG_CONFIG(0.16)
# Checks for libraries.
PKG_CHECK_MODULES(GSL,
gsl >= 1.12, ,
AC_MSG_ERROR(Test for GSL failed. See the file 'INSTALL' for help.))
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h stdint.h stdlib.h string.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
changequote(,)dnl
if test "x$GCC" = "xyes"; then
case " $CFLAGS " in
*[\ \ ]-Wall[\ \ ]*) ;;
*) CFLAGS="$CFLAGS -Wall" ;;
esac
fi
changequote([,])dnl
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_FUNC_VPRINTF
AC_CHECK_FUNCS([memset pow sqrt strdup])
AC_OUTPUT([
Makefile
src/Makefile
src/saft/Makefile
src/libsaft/Makefile
src/tests/Makefile])