root/branches/pgrouting-light/configure.in

Revision 25, 1.0 KB (checked in by anton, 3 years ago)

light and extra branches

Line 
1AC_INIT(Makefile.in)
2AC_PROG_CC
3AC_PROG_CXX
4AC_HEADER_STDC
5
6dnl
7dnl----------------------------
8dnl--  Checking for BOOST
9dnl----------------------------
10dnl
11AC_CHECKING( for BOOST )
12AC_ARG_WITH(boost,
13 [  --with-boost[= DIR]  Specify where boost is located ],,)
14
15if test "$with_boost" = "no" ; then
16  AC_MSG_ERROR(** BOOST cannot be disabled **)
17elif test -n "$with_boost" -a "$with_boost" != "yes" ; then
18  dnl
19  dnl --with-boost was specified explicitly...
20  dnl
21  BOOST_DIR=$with_boost
22else
23  BOOST_DIR='/usr/include/boost'
24fi
25
26if ! test -d $BOOST_DIR/graph ; then
27 AC_MSG_ERROR(** $BOOST_DIR/graph can not be found **)
28else
29 BOOST_DIR=$BOOST_DIR/graph
30 AC_SUBST(BOOST_DIR, $BOOST_DIR)
31fi
32
33dnl
34dnl----------------------------
35dnl--  Checking for A* in BOOST
36dnl----------------------------
37dnl
38AC_CHECKING( for astar_search.hpp in $BOOST_DIR )
39
40if ! test -f $BOOST_DIR/astar_search.hpp ; then
41 AC_MSG_ERROR(** $BOOST_DIR/astar_search.hpp can not be found **)
42fi
43
44dnl
45dnl
46AC_OUTPUT(Makefile)
Note: See TracBrowser for help on using the browser.