/
configure.ac
99 lines (99 loc) · 2.04 KB
/
configure.ac
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
AC_REVISION([$Id: configure.ac 985 2008-12-22 12:08:11Z shafi $])
dnl
dnl
AC_INIT
AC_CONFIG_SRCDIR([autogen.sh])
dnl
AM_PROG_LIBTOOL
dnl AC_CONFIG_AUX_DIR()
#AC_CONFIG_MACRO_DIR([m4])
dnl
dnl
AH_TEMPLATE(HAVE_SINCOS)
dnl
dnl
AC_CANONICAL_TARGET([])
AM_INIT_AUTOMAKE([epdp],[0.3])
AC_PROG_MAKE_SET
dnl
dnl checks for programs
dnl
AM_PATH_PYTHON(2.3)
AC_CHECK_PROGS(PYCHECKER, [pychecker], [no])
if test "$PYCHECKER" == no ; then
AC_MSG_WARN([pychecker not found.])
dnl AC_MSG_WARN([Python source checking is disabled.])
dnl AC_MSG_ERROR([])
fi
dnl
dnl
dnl checks for libraries
dnl
dnl
AX_PATH_GSL(1.11,,AC_MSG_ERROR([could not find required version of GSL.]))
dnl
AC_CHECK_LIB(m,exp,,AC_MSG_ERROR([could not find libm.]))
dnl
AC_CHECK_LIB(python${PYTHON_VERSION},main,,AC_MSG_ERROR([could not find libpython.]))
dnl
AC_PROG_CXX
AC_LANG_CPLUSPLUS
dnl
dnl
AC_CHECK_LIB(boost_python,main,,AC_MSG_ERROR([could not find libboost_python.]),-lpython${PYTHON_VERSION})
dnl
dnl
AM_CHECK_PYMOD(numpy,,,[AC_MSG_ERROR([could not find Python numpy module.])])
AM_CHECK_PYMOD(scipy,,,[AC_MSG_ERROR([could not find Python scipy module.])])
dnl
dnl
dnl
dnl checks for header files
dnl
dnl
dnl
ECELL_CHECK_NUMPY
dnl
AM_CHECK_PYTHON_HEADERS()
dnl
dnl
AC_CHECK_HEADERS([unordered_map tr1/unordered_map ext/hash_map])
dnl
dnl checks for types
dnl
dnl
dnl checks for structures
dnl
dnl
dnl checks for compiler characteristics
dnl
dnl
dnl
dnl extract LTDL_SHLIB_EXT
dnl
rm -f conftest
./libtool --config > conftest
. ./conftest
rm -f conftest
dnl
dnl compatibility for libtool 1.5.6
LTDL_SHLIB_EXT=""
if test -n "$shrext_cmds"; then
LTDL_SHLIB_EXT=$shrext_cmds
AC_SUBST(LTDL_SHLIB_EXT)
dnl compatibility for libtool 1.5.0
elif test -n "$shrext"; then
LTDL_SHLIB_EXT=$shrext
AC_SUBST(LTDL_SHLIB_EXT)
fi
dnl
dnl checks for library functions
dnl
AC_CHECK_FUNC(sincos,AC_DEFINE(HAVE_SINCOS))
dnl
dnl
dnl no checks for system services
dnl
AM_CONFIG_HEADER([config.h])
AC_CONFIG_FILES([Makefile test/Makefile doc/Makefile object_matrix/Makefile object_matrix/boost.python/Makefile])
AC_OUTPUT([])