Holger Hans Peter Freyther | fbea390 | 2011-05-31 10:19:47 +0200 | [diff] [blame^] | 1 | dnl Process this file with autoconf to produce a configure script |
| 2 | AC_INIT([osmo-pcap], |
| 3 | m4_esyscmd([./git-version-gen .tarball-version]), |
| 4 | [openbsc-devel@lists.openbsc.org]) |
| 5 | |
| 6 | AM_INIT_AUTOMAKE([dist-bzip2]) |
| 7 | |
| 8 | dnl kernel style compile messages |
| 9 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) |
| 10 | |
| 11 | dnl checks for programs |
| 12 | AC_PROG_MAKE_SET |
| 13 | AC_PROG_CC |
| 14 | AC_PROG_INSTALL |
| 15 | AC_PROG_RANLIB |
| 16 | |
| 17 | dnl checks for libraries |
| 18 | PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 0.3.0) |
| 19 | PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty >= 0.3.0) |
| 20 | |
| 21 | dnl checks for header files |
| 22 | AC_HEADER_STDC |
| 23 | |
| 24 | |
| 25 | dnl Checks for typedefs, structures and compiler characteristics |
| 26 | |
| 27 | |
| 28 | # Coverage build taken from WebKit's configure.in |
| 29 | AC_MSG_CHECKING([whether to enable code coverage support]) |
| 30 | AC_ARG_ENABLE(coverage, |
| 31 | AC_HELP_STRING([--enable-coverage], |
| 32 | [enable code coverage support [default=no]]), |
| 33 | [],[enable_coverage="no"]) |
| 34 | AC_MSG_RESULT([$enable_coverage]) |
| 35 | if test "$enable_coverage" = "yes"; then |
| 36 | COVERAGE_CFLAGS="-ftest-coverage -fprofile-arcs" |
| 37 | COVERAGE_LDFLAGS="-ftest-coverage -fprofile-arcs" |
| 38 | AC_SUBST([COVERAGE_CFLAGS]) |
| 39 | AC_SUBST([COVERAGE_LDFLAGS]) |
| 40 | fi |
| 41 | |
| 42 | |
| 43 | dnl Generate the output |
| 44 | AC_OUTPUT( |
| 45 | Makefile) |