source: util/configure.ac@ 48efc3

Last change on this file since 48efc3 was dac5c5, checked in by Frederik Heber <heber@…>, 17 years ago

added small test for NanoCreator

make clean install check reported incorrect testsuite construction for "util"s part, hence a small test.

  • Property mode set to 100644
File size: 2.1 KB
Line 
1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.59)
5AC_INIT(PCP_Utilities, 1.0, heber@ins.uni-bonn.de)
6AC_CONFIG_SRCDIR([CreateGaAs.c])
7AC_CONFIG_HEADER([config.h])
8
9AM_INIT_AUTOMAKE
10
11# Checks for programs.
12AC_PROG_AWK
13AC_PROG_CXX
14AC_PROG_CC
15AM_MISSING_PROG([DOXYGEN], [doxygen])
16
17# Checks for libraries.
18AC_CHECK_LIB(m, sqrt, ,AC_MSG_ERROR([compatible libc math library not found]))
19
20# Checks for header files.
21AC_HEADER_STDC
22AC_CHECK_HEADERS([stdlib.h string.h])
23
24# Checks for typedefs, structures, and compiler characteristics.
25AC_C_CONST
26AC_TYPE_SIZE_T
27
28# debugging info
29AC_ARG_ENABLE([debug],AS_HELP_STRING([--enable-debug],[Output debugging information, argument is yes or debugging level (default is no).]),
30 [enable_debug=$enableval], [enable_debug=no])
31if ! test x"$enable_debug" = xno; then
32 if test x"${enable_debug}" = xyes; then
33 CFLAGS="-g3"
34 CXXFLAGS="-g3"
35 else
36 CFLAGS="-g${enable_debug}"
37 CXXFLAGS="-g${enable_debug}"
38 fi
39 AC_DEFINE(HAVE_DEBUG,1, ["Output debugging info"])
40 AC_SUBST(HAVE_DEBUG)
41fi
42
43# optimization level
44AC_ARG_ENABLE([optimization],AS_HELP_STRING([--enable-optimization],[Optimization level of compiler. Argument is yes or debugging level. (default is 2)]),
45 [enable_optimization=$enableval], [enable_optimization=yes])
46if test ! x"$enable_optimization" = xno; then
47 if test x"$enable_debug" = xno; then
48 if test x"${enable_optimization}" = xyes; then
49 CFLAGS="-O2"
50 CXXFLAGS="-O2"
51 else
52 CFLAGS="-O${enable_optimization}"
53 CXXFLAGS="-O${enable_optimization}"
54 fi
55# else
56# AC_MSG_WARN(["Already specified --enable-debug!"])
57 fi
58fi
59
60# Checks for library functions.
61AC_FUNC_MALLOC
62AC_FUNC_REALLOC
63
64# test suite
65AC_CONFIG_TESTDIR(tests)
66AC_CONFIG_FILES([tests/atlocal tests/Makefile])
67AC_CONFIG_FILES([tests/NanoCreator], [chmod +x tests/NanoCreator])
68
69AC_CHECK_FUNCS([pow sqrt strchr strrchr strstr])
70AC_CONFIG_FILES([Makefile doc/Makefile])
71AC_CONFIG_FILES([CreateFromXYZ.sh dynamicANOVA.sh Nanotubes.pl ReSequenceDX.pl])
72AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.