source: molecuilder/configure.ac@ 27459a

Last change on this file since 27459a was ada6d2, checked in by Frederik Heber <heber@…>, 16 years ago

Manpage is created via xmlto with a docbook stylesheet.

  • Hooks in Makefile.am are taken from TREMOLO project
  • manpage is in molecuilder/doc/molecuilder.xml.in
  • Property mode set to 100755
File size: 2.6 KB
Line 
1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.59)
5AC_INIT(Molecuilder, 1.0, heber@ins.uni-bonn.de, molecuilder)
6AC_CONFIG_AUX_DIR(config)
7AC_CONFIG_SRCDIR([src/builder.cpp])
8AC_CONFIG_HEADER([config.h])
9
10AM_INIT_AUTOMAKE(dist-bzip2)
11
12# Checks for programs.
13AC_PROG_CXX
14AC_PROG_CC
15AC_CHECK_PROG([LATEX],[latex],[latex],[:])
16AC_CHECK_PROG([BIBTEX],[bibtex],[bibtex],[:])
17AC_CHECK_PROG([DVIPS],[dvips],[dvips],[:])
18AC_CHECK_PROG([PDFLATEX],[pdflatex],[pdflatex],[:])
19AC_CHECK_PROG([XMLTO],[xmlto],[xmlto],[:])
20AM_MISSING_PROG([DOXYGEN], [doxygen])
21
22# Checks for libraries.
23AC_CHECK_LIB(m, sqrt, ,AC_MSG_ERROR([compatible libc math library not found]))
24
25# Checks for header files.
26AC_HEADER_STDC
27AC_CHECK_HEADERS([sys/time.h])
28AC_HEADER_STDBOOL
29
30AC_FUNC_MALLOC
31AC_FUNC_REALLOC
32AC_CHECK_FUNCS([floor pow sqrt strchr])
33
34# Checks for typedefs, structures, and compiler characteristics.
35AC_C_CONST
36AC_C_INLINE
37AC_C_RESTRICT
38AC_TYPE_SIZE_T
39
40# Checks for library functions.
41# check for GNU Scientific Library
42AC_CHECK_HEADERS([gsl/gsl_blas.h])
43AC_SEARCH_LIBS(dnrm2, goto blas cblas gslblas gslcblas)
44AC_CHECK_LIB(gsl, main, [],
45 [AC_SEARCH_LIBS(cblas_dnrm2, blas cblas gslblas gslcblas)])
46AC_CHECK_LIB(gsl, gsl_blas_dnrm2, , [AC_MSG_ERROR(["No working BLAS found for GSL, stopping."])])
47
48# add replacement/saturation hydrogen or not
49AC_ARG_ENABLE([hydrogen],AS_HELP_STRING([--enable-hydrogen],[Adding saturation hydrogen (default is yes)]),
50 [enable_hydrogen=$enableval], [enable_hydrogen=yes])
51if test x"$enable_hydrogen" = xyes; then
52 AC_DEFINE(ADDHYDROGEN,1, ["Adding saturation hydrogen"])
53 AC_SUBST(ADDHYDROGEN)
54fi
55
56# Check for "extern inline", using a modified version
57# of the test for AC_C_INLINE from acspecific.mt
58AC_CACHE_CHECK([for extern inline], ac_cv_c_extern_inline,
59[ac_cv_c_extern_inline=no
60AC_TRY_COMPILE([extern $ac_cv_c_inline double foo(double x);
61extern $ac_cv_c_inline double foo(double x) { return x+1.0; };
62double foo (double x) { return x + 1.0; };],
63[ foo(1.0) ],
64[ac_cv_c_extern_inline="yes"])
65])
66
67if test "$ac_cv_c_inline" != no ; then
68 AC_DEFINE(HAVE_INLINE,1, ["May use inline routines"])
69 AC_SUBST(HAVE_INLINE)
70fi
71
72#AC_MSG_NOTICE(["CFLAGS: $CFLAGS, CXXFLAGS: $CXXFLAGS, LDFLAGS: $LDFLAGS, CC: $CC, CXX:, $CXX, MPICC: $MPICC, MPILIBS: $MPILIBS, LIBS: $LIBS"])
73
74# test suite
75AC_CONFIG_TESTDIR(tests)
76AC_CONFIG_FILES([tests/atlocal tests/Makefile])
77AC_CONFIG_FILES([tests/molecuilder], [chmod +x tests/molecuilder])
78AC_CONFIG_FILES([doc/molecuilder.xml])
79AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile])
80AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.