File: configure.in

package info (click to toggle)
openbabel 1.100.2-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,700 kB
  • ctags: 3,241
  • sloc: cpp: 30,828; sh: 8,297; ansic: 5,851; pascal: 793; makefile: 102; xml: 97; perl: 94
file content (57 lines) | stat: -rw-r--r-- 1,818 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
dnl Process this file with autoconf to produce a configure script.
AC_INIT(OpenBabel, 1.100.2, openbabel-discuss@lists.sourceforge.net, openbabel)
AC_CONFIG_SRCDIR(src/obutil.cpp)
AM_INIT_AUTOMAKE([no-define])
AM_MAINTAINER_MODE
AM_CONFIG_HEADER(src/babelconfig.h)
AC_DEFINE_UNQUOTED([BABEL_VERSION], ["AC_PACKAGE_VERSION"], [The version of Open Babel])

AC_CANONICAL_HOST

AC_DEFINE_DIR([BABEL_DATADIR], [datadir/AC_PACKAGE_TARNAME], [Where the data files are located])

dnl Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AC_PROG_CXXCPP
AC_PROG_INSTALL

dnl libtool
dnl You can set the shared library version in src/Makefile.am
dnl AC_DISABLE_SHARED
AM_PROG_LIBTOOL

AC_ARG_ENABLE(doxygen, 
[  --enable-doxygen        build library documentation using doxygen],
dnl Check if the documentation tool doxygen is available. If it is not,
dnl the configure script will print an error message with an url where
dnl to find it
	[AC_CHECK_PROG(DOCTOOL, doxygen, doxygen, no)]
)

dnl Complain about missing documentation tool doxygen.
if test "$DOCTOOL" == "no"; then
AC_MSG_ERROR(Cannot find doxygen. 
	Have a look at http://www.doxygen.org/)
fi

AC_LANG_CPLUSPLUS
dnl Checks for libraries.
AC_CHECK_LIB(m, asin, , exit)

dnl Checks for header files.
AC_CHECK_HEADERS(sys/time.h unistd.h stdlib.h stdio.h conio.h string.h)
AC_CHECK_HEADERS(strstream.h iostream.h fstream.h math.h time.h)
AC_CHECK_HEADERS(ctype.h iostream fstream sstream strstream)
AC_HEADER_TIME

dnl Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_TYPES(clock_t)
AC_C_CONST
AC_C_INLINE

dnl Checks for library functions.
AC_CHECK_FUNCS([rint])
AC_REPLACE_FUNCS([snprintf strncasecmp])

AC_OUTPUT(Makefile src/Makefile src/math/Makefile src/windows/Makefile test/Makefile test/cmltest/Makefile tools/Makefile doc/Makefile openbabel.pc)