source: util/configure.ac@ 927aba

Last change on this file since 927aba was e9c14d, checked in by Frederik Heber <heber@…>, 17 years ago

PERL was missing in programs, needed for some scripts

  • 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
15AC_PATH_PROG([PERL],[perl])
16AM_MISSING_PROG([DOXYGEN], [doxygen])
17
18# Checks for libraries.
19AC_CHECK_LIB(m, sqrt, ,AC_MSG_ERROR([compatible libc math library not found]))
20
21# Checks for header files.
22AC_HEADER_STDC
23AC_CHECK_HEADERS([stdlib.h string.h])
24
25# Checks for typedefs, structures, and compiler characteristics.
26AC_C_CONST
27AC_TYPE_SIZE_T
28
29# debugging info
30AC_ARG_ENABLE([debug],AS_HELP_STRING([--enable-debug],[Output debugging information, argument is yes or debugging level (default is no).]),
31 [enable_debug=$enableval], [enable_debug=no])
32if ! test x"$enable_debug" = xno; then
33 if test x"${enable_debug}" = xyes; then
34 CFLAGS="-g3"
35 CXXFLAGS="-g3"
36 else
37 CFLAGS="-g${enable_debug}"
38 CXXFLAGS="-g${enable_debug}"
39 fi
40 AC_DEFINE(HAVE_DEBUG,1, ["Output debugging info"])
41 AC_SUBST(HAVE_DEBUG)
42fi
43
44# optimization level
45AC_ARG_ENABLE([optimization],AS_HELP_STRING([--enable-optimization],[Optimization level of compiler. Argument is yes or debugging level. (default is 2)]),
46 [enable_optimization=$enableval], [enable_optimization=yes])
47if test ! x"$enable_optimization" = xno; then
48 if test x"$enable_debug" = xno; then
49 if test x"${enable_optimization}" = xyes; then
50 CFLAGS="-O2"
51 CXXFLAGS="-O2"
52 else
53 CFLAGS="-O${enable_optimization}"
54 CXXFLAGS="-O${enable_optimization}"
55 fi
56# else
57# AC_MSG_WARN(["Already specified --enable-debug!"])
58 fi
59fi
60
61# Checks for library functions.
62AC_FUNC_MALLOC
63AC_FUNC_REALLOC
64
65# test suite
66AC_CONFIG_TESTDIR(tests)
67AC_CONFIG_FILES([tests/atlocal tests/Makefile])
68AC_CONFIG_FILES([tests/NanoCreator], [chmod +x tests/NanoCreator])
69
70AC_CHECK_FUNCS([pow sqrt strchr strrchr strstr])
71AC_CONFIG_FILES([Makefile doc/Makefile])
72AC_CONFIG_FILES([CreateFromXYZ.sh dynamicANOVA.sh Nanotubes.pl ReSequenceDX.pl])
73AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.