[a0bcf1] | 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)
|
---|
[02bc3c] | 6 | AC_CONFIG_SRCDIR([src/CreateGaAs.c])
|
---|
[a0bcf1] | 7 | AC_CONFIG_HEADER([config.h])
|
---|
| 8 |
|
---|
| 9 | AM_INIT_AUTOMAKE
|
---|
| 10 |
|
---|
| 11 | # Checks for programs.
|
---|
| 12 | AC_PROG_CC
|
---|
[02bc3c] | 13 | AC_PROG_CXX
|
---|
[e9c14d] | 14 | AC_PATH_PROG([PERL],[perl])
|
---|
[02bc3c] | 15 | AC_PROG_AWK
|
---|
[a0bcf1] | 16 | AM_MISSING_PROG([DOXYGEN], [doxygen])
|
---|
| 17 |
|
---|
[02bc3c] | 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])
|
---|
[a0bcf1] | 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
|
---|
[02bc3c] | 37 | AC_CHECK_LIB(m, sqrt, ,AC_MSG_ERROR([compatible libc math library not found]))
|
---|
[71dc4e] | 38 | # check for GNU Scientific Library
|
---|
[9842d8] | 39 | AC_SEARCH_LIBS(cblas_sdot, blas cblas gslblas gslcblas)
|
---|
[71dc4e] | 40 | AC_CHECK_LIB(gsl,main)
|
---|
[b5279f0] | 41 |
|
---|
[02bc3c] | 42 | AC_MSG_NOTICE(["CFLAGS: $CFLAGS, CXXFLAGS: $CXXFLAGS, LDFLAGS: $LDFLAGS, CC: $CC, CXX:, $CXX, MPICC: $MPICC, MPILIBS: $MPILIBS, LIBS: $LIBS"])
|
---|
| 43 |
|
---|
[b5279f0] | 44 | # test suite
|
---|
| 45 | AC_CONFIG_TESTDIR(tests)
|
---|
| 46 | AC_CONFIG_FILES([tests/atlocal tests/Makefile])
|
---|
[dac5c5] | 47 | AC_CONFIG_FILES([tests/NanoCreator], [chmod +x tests/NanoCreator])
|
---|
[b5279f0] | 48 |
|
---|
[a0bcf1] | 49 | AC_CHECK_FUNCS([pow sqrt strchr strrchr strstr])
|
---|
[02bc3c] | 50 | AC_CONFIG_FILES([Makefile doc/Makefile src/Makefile])
|
---|
[0ab37b] | 51 | AC_CONFIG_FILES([src/CreateFromXYZ.sh src/dynamicANOVA.sh src/Nanotubes.pl src/ReSequenceDX.pl src/BOSSMatcher.pl])
|
---|
[a0bcf1] | 52 | AC_OUTPUT
|
---|