|
|
1 |
# Process this file with autoconf to produce a configure script. |
|
|
2 |
AC_PREREQ(2.57) |
|
|
3 |
AC_INIT(libroutez, 0.1.0, libroutez@googlegroups.com, libroutez) |
|
|
4 |
AC_CONFIG_SRCDIR(lib/tripgraph.cc) |
|
|
5 |
|
|
|
6 |
AC_PROG_CC |
|
|
7 |
AC_PROG_CXX |
|
|
8 |
AC_PROG_CPP |
|
|
9 |
AC_PROG_CXXCPP |
|
|
10 |
AC_PROG_INSTALL |
|
|
11 |
|
|
|
12 |
# Detect target build environment |
|
|
13 |
AC_CANONICAL_TARGET |
|
|
14 |
case "$target" in |
|
|
15 |
*-linux*) |
|
|
16 |
OS="LINUX" |
|
|
17 |
;; |
|
|
18 |
*-sunos*|*-solaris*) |
|
|
19 |
OS="SOLARIS" |
|
|
20 |
;; |
|
|
21 |
*-win*) |
|
|
22 |
OS="WIN32" |
|
|
23 |
;; |
|
|
24 |
*-apple*) |
|
|
25 |
OS="MACOS" |
|
|
26 |
;; |
|
|
27 |
*) |
|
|
28 |
OS="OTHER" |
|
|
29 |
;; |
|
|
30 |
esac |
|
|
31 |
|
|
|
32 |
AC_SUBST(OS) |
|
|
33 |
|
|
|
34 |
AX_PYTHON_DEVEL |
|
|
35 |
AX_WITH_RUBY |
|
|
36 |
AX_RUBY_DEVEL |
|
|
37 |
|
|
|
38 |
AC_CHECK_PROG(SWIG, swig, swig) |
|
|
39 |
|
|
|
40 |
if test x"$SWIG" = "x"; then |
|
|
41 |
AC_MSG_ERROR("swig not found") |
|
|
42 |
fi |
|
|
43 |
|
|
|
44 |
if test x"$PYTHON_CPPFLAGS" = "x"; then |
|
|
45 |
AC_MSG_ERROR("python not found") |
|
|
46 |
fi |
|
|
47 |
|
|
|
48 |
if test x"$RUBY_CPPFLAGS" = "x"; then |
|
|
49 |
AC_MSG_ERROR("ruby not found") |
|
|
50 |
fi |
|
|
51 |
|
|
|
52 |
AC_CONFIG_FILES(config.mk) |
|
|
53 |
|
|
|
54 |
AC_OUTPUT |
|
|
55 |
|
|
|
56 |
|