get_value_string(): return "unknown 0x..." instead of "unknown"
[osmocom-bb.git] / configure.in
blob9879ebc02190f1555a5514ebb916c54b529dc2e5
1 AC_INIT([libosmocore],
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
11 AC_PROG_MAKE_SET
12 AC_PROG_CC
13 AC_PROG_INSTALL
14 LT_INIT
15 AC_PROG_LIBTOOL
17 AC_CONFIG_MACRO_DIR([m4])
19 dnl checks for header files
20 AC_HEADER_STDC
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"],
30         AC_MSG_RESULT([no]))
31 CFLAGS="$saved_CFLAGS"
32 AC_SUBST(SYMBOL_VISIBILITY)
34 dnl Generate the output
35 AM_CONFIG_HEADER(config.h)
37 AC_ARG_ENABLE(talloc,
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")
42 AC_ARG_ENABLE(tests,
43         [  --disable-tests Disable building test programs ],
44         [enable_tests=0], [enable_tests=1])
45 AM_CONDITIONAL(ENABLE_TESTS, test "x$enable_tests" = "x1")
47 AC_OUTPUT(
48         libosmocore.pc
49         include/osmocore/Makefile
50         include/osmocore/protocol/Makefile
51         include/Makefile
52         src/Makefile
53         tests/Makefile
54         tests/timer/Makefile
55         tests/sms/Makefile
56         Makefile)