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