source: configure.in

Last change on this file was 1, checked in by coin, 8 years ago

Initial import

File size: 1.5 KB
Line 
1AC_INIT(djinni, 2.2.4, rjh@sixdemonbag.org)
2AC_CONFIG_MACRO_DIR([m4])
3AC_CONFIG_HEADERS(config.h)
4AM_INIT_AUTOMAKE
5AC_PROG_CXX
6AC_PROG_RANLIB
7AC_PROG_LIBTOOL
8AC_PYTHON_DEVEL(>="2.3", [], [AC_MSG_ERROR([
9  --------------------------------------------------------------------------
10  I'm sorry, but I couldn't find Python.
11
12  Check to make sure Python is installed, and then try again.  You may want
13  to try using PYTHON_VERSION on the configure command line.
14  --------------------------------------------------------------------------
15])])
16AM_PATH_PYTHON
17AC_PROG_SWIG(1.3.20, [], [AC_MSG_ERROR([
18  --------------------------------------------------------------------------
19  I'm sorry, but I couldn't find SWIG 1.3.20 or later.
20
21  Check to make sure SWIG is installed, and then try again.
22  --------------------------------------------------------------------------
23])])
24SWIG_ENABLE_CXX
25SWIG_PYTHON
26
27AC_CHECK_FUNCS([floor], [have_floor=y], [have_floor=n])
28AC_MSG_CHECKING([if math functions link without -lm])
29if test "x$have_floor" = xy; then
30AC_MSG_RESULT([yes])
31else
32AC_MSG_RESULT([no])
33LIBS="$LIBS -lm"
34fi
35AX_BOOST_BASE([1.32.0], [], [AC_MSG_ERROR([
36  --------------------------------------------------------------------------
37  I'm sorry, but I couldn't find Boost.
38 
39  Check to make sure Boost is installed, and then try again.  This time, add
40  --with-boost=/path/to/boost to the configure command line.
41  --------------------------------------------------------------------------
42])])
43AC_OUTPUT(Makefile src/Makefile)
Note: See TracBrowser for help on using the repository browser.