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 | AC_CONFIG_HEADER([source/ariba/config.h])
|
---|
6 |
|
---|
7 | AC_ARG_ENABLE(debug, [ --enable-debug Enable debug options], enable_debug=$enableval, enable_debug=no)
|
---|
8 | AM_CONDITIONAL(DEBUG, test "$enable_debug" = yes)
|
---|
9 |
|
---|
10 | AC_ARG_ENABLE(profiling, [ --enable-profiling Enable profiling], enable_profiling=$enableval, enable_profiling=no)
|
---|
11 | AM_CONDITIONAL(PROFILING, test "$enable_profiling" = yes)
|
---|
12 |
|
---|
13 | AC_ARG_ENABLE(simulation, [ --enable-simulation Enable simulation mode], enable_simulation=$enableval, enable_simulation=no)
|
---|
14 | AM_CONDITIONAL(OMNET, test "$enable_simulation" = yes)
|
---|
15 |
|
---|
16 | AC_ARG_ENABLE(doxygen, [ --enable-doxygen Enable doxygen documentation ], enable_doxygen=$enableval, enable_doxygen=no)
|
---|
17 | AM_CONDITIONAL(DOXYGEN, test "$enable_doxygen" = yes)
|
---|
18 |
|
---|
19 | AC_ARG_ENABLE(logcolors, [ --enable-logcolors Enable colorful logging], enable_logcolors=$enableval, enable_logcolors=no)
|
---|
20 | AM_CONDITIONAL(LOGCOLORS, test "$enable_logcolors" = yes)
|
---|
21 |
|
---|
22 | AC_PROG_LIBTOOL
|
---|
23 | AC_PROG_CXX
|
---|
24 | AC_PROG_CC
|
---|
25 | AC_PROG_INSTALL
|
---|
26 |
|
---|
27 | AC_LANG(C++)
|
---|
28 |
|
---|
29 | dnl Check for doxygen and features
|
---|
30 | AX_PROG_DOXYGEN
|
---|
31 |
|
---|
32 | dnl Check for libraries
|
---|
33 | AX_GMP
|
---|
34 | AX_LOG4CXX
|
---|
35 | AX_OPENSSL
|
---|
36 |
|
---|
37 | dnl Check for boost
|
---|
38 | BOOST_REQUIRE([1.35])
|
---|
39 | BOOST_THREADS
|
---|
40 | BOOST_SYSTEM
|
---|
41 | BOOST_FOREACH
|
---|
42 | BOOST_REGEX
|
---|
43 |
|
---|
44 | dnl Check for maemo platform
|
---|
45 | AX_MAEMO
|
---|
46 |
|
---|
47 | AC_CONFIG_FILES([
|
---|
48 | Makefile
|
---|
49 | source/Makefile
|
---|
50 | source/ariba/Makefile
|
---|
51 | sample/Makefile
|
---|
52 | sample/pingpong/Makefile
|
---|
53 | docu/Makefile
|
---|
54 | docu/doxygen/Makefile
|
---|
55 | ])
|
---|
56 |
|
---|
57 | AC_OUTPUT
|
---|