2 m4_esyscmd([./git-version-gen .tarball-version]),
3 [openbsc-devel@lists.openbsc.org])
5 AM_INIT_AUTOMAKE([dist-bzip2])
7 dnl kernel style compile messages
8 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
10 dnl checks for programs
17 AC_CONFIG_MACRO_DIR([m4])
19 dnl checks for header files
21 AC_CHECK_HEADERS(execinfo.h sys/select.h)
23 # The following test is taken from WebKit's webkit.m4
24 saved_CFLAGS="$CFLAGS"
25 CFLAGS="$CFLAGS -fvisibility=hidden "
26 AC_MSG_CHECKING([if ${CC} supports -fvisibility=hidden])
27 AC_COMPILE_IFELSE([char foo;],
28 [ AC_MSG_RESULT([yes])
29 SYMBOL_VISIBILITY="-fvisibility=hidden"],
31 CFLAGS="$saved_CFLAGS"
32 AC_SUBST(SYMBOL_VISIBILITY)
34 dnl Generate the output
35 AM_CONFIG_HEADER(config.h)
38 [ --disable-talloc Disable building talloc memory allocator ],
39 [enable_talloc=0], [enable_talloc=1])
40 AM_CONDITIONAL(ENABLE_TALLOC, test "x$enable_talloc" = "x1")
43 [ --disable-tests Disable building test programs ],
44 [enable_tests=0], [enable_tests=1])
45 AM_CONDITIONAL(ENABLE_TESTS, test "x$enable_tests" = "x1")
49 include/osmocore/Makefile
50 include/osmocore/protocol/Makefile