1 | # -*- Autoconf -*-
|
---|
2 | # Process this file with autoconf to produce a configure script.
|
---|
3 |
|
---|
4 | AC_PREREQ(2.59)
|
---|
5 | AC_INIT(PCP_Utilities, 1.0, heber@ins.uni-bonn.de)
|
---|
6 | AC_CONFIG_SRCDIR([src/CreateGaAs.c])
|
---|
7 | AC_CONFIG_HEADER([config.h])
|
---|
8 |
|
---|
9 | AM_INIT_AUTOMAKE
|
---|
10 |
|
---|
11 | # Checks for programs.
|
---|
12 | AC_PROG_CC
|
---|
13 | AC_PROG_CXX
|
---|
14 | AC_PATH_PROG([PERL],[perl])
|
---|
15 | AC_PROG_AWK
|
---|
16 | AM_MISSING_PROG([DOXYGEN], [doxygen])
|
---|
17 |
|
---|
18 | AC_ARG_ENABLE([debug],AS_HELP_STRING([--enable-debug],[debugging level of compiler. Argument is yes or debugging level. (default is no)]),
|
---|
19 | [enable_debugging=$enableval], [enable_debugging=no])
|
---|
20 | AC_ARG_ENABLE([optimization],AS_HELP_STRING([--enable-optimization],[Optimization level of compiler. Argument is yes or optimization. (default is 2)]),
|
---|
21 | [enable_optimization=$enableval], [enable_optimization=2])
|
---|
22 | AC_ARG_ENABLE([warnings], AS_HELP_STRING([--enable-warnings],[Output compiler warnings, argument is none, some or full (default is some).]),
|
---|
23 | [enable_warnings=$enableval], [enable_warnings=some])
|
---|
24 | AC_SET_COMPILER_FLAGS([$enable_optimization], [$enable_debugging], [$enable_warnings])
|
---|
25 |
|
---|
26 | # Checks for header files.
|
---|
27 | AC_HEADER_STDC
|
---|
28 | AC_CHECK_HEADERS([stdlib.h string.h])
|
---|
29 |
|
---|
30 | # Checks for typedefs, structures, and compiler characteristics.
|
---|
31 | AC_C_CONST
|
---|
32 | AC_TYPE_SIZE_T
|
---|
33 |
|
---|
34 | # Checks for library functions.
|
---|
35 | AC_FUNC_MALLOC
|
---|
36 | AC_FUNC_REALLOC
|
---|
37 | AC_CHECK_LIB(m, sqrt, ,AC_MSG_ERROR([compatible libc math library not found]))
|
---|
38 | # check for GNU Scientific Library
|
---|
39 | AC_SEARCH_LIBS(cblas_sdot, blas cblas gslblas gslcblas)
|
---|
40 | AC_CHECK_LIB(gsl,main)
|
---|
41 |
|
---|
42 | AC_MSG_NOTICE(["CFLAGS: $CFLAGS, CXXFLAGS: $CXXFLAGS, LDFLAGS: $LDFLAGS, CC: $CC, CXX:, $CXX, MPICC: $MPICC, MPILIBS: $MPILIBS, LIBS: $LIBS"])
|
---|
43 |
|
---|
44 | # test suite
|
---|
45 | AC_CONFIG_TESTDIR(tests)
|
---|
46 | AC_CONFIG_FILES([tests/atlocal tests/Makefile])
|
---|
47 | AC_CONFIG_FILES([tests/NanoCreator], [chmod +x tests/NanoCreator])
|
---|
48 |
|
---|
49 | AC_CHECK_FUNCS([pow sqrt strchr strrchr strstr])
|
---|
50 | AC_CONFIG_FILES([Makefile doc/Makefile src/Makefile])
|
---|
51 | AC_CONFIG_FILES([src/CreateFromXYZ.sh src/dynamicANOVA.sh src/Nanotubes.pl src/ReSequenceDX.pl])
|
---|
52 | AC_OUTPUT
|
---|