1 | AC_INIT([ariba], [0.2.1], [http://www.ariba-underlay.org]) |
---|
2 | AM_INIT_AUTOMAKE([-Wall -Werror foreign]) |
---|
3 | AC_CONFIG_SRCDIR([source/ariba/ariba.h]) |
---|
4 | AC_CONFIG_MACRO_DIR([m4]) |
---|
5 | |
---|
6 | AC_ARG_ENABLE(debug, [ --enable-debug Enable debug options], enable_debug=$enableval, enable_debug=no) |
---|
7 | AM_CONDITIONAL(DEBUG, test "$enable_debug" = yes) |
---|
8 | |
---|
9 | AC_ARG_ENABLE(profiling, [ --enable-profiling Enable profiling], enable_profiling=$enableval, enable_profiling=no) |
---|
10 | AM_CONDITIONAL(PROFILING, test "$enable_profiling" = yes) |
---|
11 | |
---|
12 | AC_ARG_ENABLE(simulation, [ --enable-simulation Enable simulation mode], enable_simulation=$enableval, enable_simulation=no) |
---|
13 | AM_CONDITIONAL(OMNET, test "$enable_simulation" = yes) |
---|
14 | |
---|
15 | AC_ARG_ENABLE(doxygen, [ --enable-doxygen Enable doxygen documentation ], enable_doxygen=$enableval, enable_doxygen=no) |
---|
16 | AM_CONDITIONAL(DOXYGEN, test "$enable_doxygen" = yes) |
---|
17 | |
---|
18 | AC_ARG_ENABLE(logcolors, [ --enable-logcolors Enable colorful logging], enable_logcolors=$enableval, enable_logcolors=no) |
---|
19 | AM_CONDITIONAL(LOGCOLORS, test "$enable_logcolors" = yes) |
---|
20 | |
---|
21 | AC_PROG_LIBTOOL |
---|
22 | AC_PROG_CXX |
---|
23 | AC_PROG_CC |
---|
24 | AC_PROG_INSTALL |
---|
25 | |
---|
26 | AC_LANG(C++) |
---|
27 | |
---|
28 | dnl Check for doxygen and features |
---|
29 | AX_PROG_DOXYGEN |
---|
30 | |
---|
31 | dnl Check for libraries |
---|
32 | AX_GMP |
---|
33 | AX_LOG4CXX |
---|
34 | AX_OPENSSL |
---|
35 | |
---|
36 | dnl Check for boost |
---|
37 | BOOST_REQUIRE([1.35]) |
---|
38 | BOOST_THREADS |
---|
39 | BOOST_SYSTEM |
---|
40 | BOOST_FOREACH |
---|
41 | BOOST_REGEX |
---|
42 | |
---|
43 | AC_CONFIG_FILES([ |
---|
44 | Makefile |
---|
45 | source/Makefile |
---|
46 | source/ariba/Makefile |
---|
47 | sample/Makefile |
---|
48 | sample/pingpong/Makefile |
---|
49 | docu/Makefile |
---|
50 | docu/doxygen/Makefile |
---|
51 | ]) |
---|
52 | |
---|
53 | AC_OUTPUT |
---|