| 1 | AC_INIT([ariba], [0.3.0], [http://www.ariba-underlay.org])
|
---|
| 2 | AM_INIT_AUTOMAKE([-Wall 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 | AX_BLUETOOTH
|
---|
| 37 | AX_AVAHI
|
---|
| 38 |
|
---|
| 39 | dnl Check for boost
|
---|
| 40 | BOOST_REQUIRE([1.35])
|
---|
| 41 | BOOST_THREADS
|
---|
| 42 | BOOST_SYSTEM
|
---|
| 43 | BOOST_FOREACH
|
---|
| 44 | BOOST_REGEX
|
---|
| 45 |
|
---|
| 46 | dnl Check for maemo platform
|
---|
| 47 | AX_MAEMO
|
---|
| 48 |
|
---|
| 49 | AC_CONFIG_FILES([
|
---|
| 50 | Makefile
|
---|
| 51 | source/Makefile
|
---|
| 52 | source/ariba/Makefile
|
---|
| 53 | sample/Makefile
|
---|
| 54 | sample/pingpong/Makefile
|
---|
| 55 | sample/testdht/Makefile
|
---|
| 56 | docu/Makefile
|
---|
| 57 | docu/doxygen/Makefile
|
---|
| 58 | ])
|
---|
| 59 |
|
---|
| 60 | AC_OUTPUT
|
---|