blob: b5898bd59b7e5c83e1fac9b86cbaea5a5219b479 [file] [log] [blame]
Harald Weltedfe6c7d2010-02-20 16:24:02 +01001AC_INIT
2
3AM_INIT_AUTOMAKE(libosmocore, 0.0alpha1)
4
5dnl kernel style compile messages
6m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
7
8dnl checks for programs
9AC_PROG_MAKE_SET
10AC_PROG_CC
11AC_PROG_INSTALL
12AC_PROG_RANLIB
13AC_PROG_LIBTOOL
14
15dnl checks for header files
16AC_HEADER_STDC
17
18# The following test is taken from WebKit's webkit.m4
19saved_CFLAGS="$CFLAGS"
20CFLAGS="$CFLAGS -fvisibility=hidden "
21AC_MSG_CHECKING([if ${CC} supports -fvisibility=hidden])
22AC_COMPILE_IFELSE([char foo;],
23 [ AC_MSG_RESULT([yes])
24 SYMBOL_VISIBILITY="-fvisibility=hidden"],
25 AC_MSG_RESULT([no]))
26CFLAGS="$saved_CFLAGS"
27AC_SUBST(SYMBOL_VISIBILITY)
28
29dnl Generate the output
30AM_CONFIG_HEADER(config.h)
31
32AC_OUTPUT(
33 libosmocore.pc
34 include/osmocore/Makefile
Harald Welte13f52972010-02-20 18:56:00 +010035 include/osmocore/protocol/Makefile
Harald Weltedfe6c7d2010-02-20 16:24:02 +010036 include/Makefile
37 src/Makefile
Harald Weltef98a4972010-02-20 17:29:27 +010038 tests/Makefile
39 tests/timer/Makefile
40 tests/sms/Makefile
Harald Weltedfe6c7d2010-02-20 16:24:02 +010041 Makefile)