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