Harald Welte | de729a1 | 2008-12-23 21:01:25 +0000 | [diff] [blame] | 1 | dnl Process this file with autoconf to produce a configure script |
| 2 | AC_INIT |
| 3 | |
| 4 | AM_INIT_AUTOMAKE(openbsc, 0.0alpha1) |
| 5 | |
Holger Hans Peter Freyther | 1f59ac4 | 2009-10-27 03:34:49 +0100 | [diff] [blame] | 6 | dnl kernel style compile messages |
| 7 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) |
| 8 | |
Harald Welte | de729a1 | 2008-12-23 21:01:25 +0000 | [diff] [blame] | 9 | dnl checks for programs |
| 10 | AC_PROG_MAKE_SET |
| 11 | AC_PROG_CC |
| 12 | AC_PROG_INSTALL |
Holger Freyther | 3281f6e | 2009-02-20 18:33:00 +0000 | [diff] [blame] | 13 | AC_PROG_RANLIB |
Harald Welte | de729a1 | 2008-12-23 21:01:25 +0000 | [diff] [blame] | 14 | |
| 15 | dnl checks for libraries |
Holger Freyther | b424ecb | 2009-06-08 10:32:28 +0000 | [diff] [blame] | 16 | AC_SEARCH_LIBS(crypt, crypt, |
| 17 | [LIBCRYPT="-lcrypt"; AC_DEFINE([VTY_CRYPT_PW], [], [Use crypt functionality of vty.])]) |
Harald Welte | de729a1 | 2008-12-23 21:01:25 +0000 | [diff] [blame] | 18 | |
| 19 | dnl checks for header files |
| 20 | AC_HEADER_STDC |
Harald Welte | de729a1 | 2008-12-23 21:01:25 +0000 | [diff] [blame] | 21 | |
| 22 | dnl Checks for typedefs, structures and compiler characteristics |
| 23 | |
Holger Freyther | 6d9f77a | 2009-06-08 10:32:54 +0000 | [diff] [blame] | 24 | # The following test is taken from WebKit's webkit.m4 |
| 25 | saved_CFLAGS="$CFLAGS" |
| 26 | CFLAGS="$CFLAGS -fvisibility=hidden " |
| 27 | AC_MSG_CHECKING([if ${CC} supports -fvisibility=hidden]) |
| 28 | AC_COMPILE_IFELSE([char foo;], |
| 29 | [ AC_MSG_RESULT([yes]) |
| 30 | SYMBOL_VISIBILITY="-fvisibility=hidden"], |
| 31 | AC_MSG_RESULT([no])) |
| 32 | CFLAGS="$saved_CFLAGS" |
| 33 | AC_SUBST(SYMBOL_VISIBILITY) |
| 34 | |
| 35 | |
| 36 | dnl Generate the output |
| 37 | AM_CONFIG_HEADER(bscconfig.h) |
| 38 | |
Holger Freyther | 5f75598 | 2008-12-27 09:42:59 +0000 | [diff] [blame] | 39 | AC_OUTPUT( |
Holger Freyther | c7aa3c4 | 2009-06-08 10:32:39 +0000 | [diff] [blame] | 40 | openbsc.pc |
Holger Freyther | 5f75598 | 2008-12-27 09:42:59 +0000 | [diff] [blame] | 41 | include/openbsc/Makefile |
Holger Freyther | 1047940 | 2009-03-11 03:29:43 +0000 | [diff] [blame] | 42 | include/vty/Makefile |
Holger Hans Peter Freyther | ac96770 | 2009-07-29 07:37:48 +0200 | [diff] [blame] | 43 | include/sccp/Makefile |
Holger Freyther | 5f75598 | 2008-12-27 09:42:59 +0000 | [diff] [blame] | 44 | include/Makefile |
| 45 | src/Makefile |
| 46 | tests/Makefile |
Holger Freyther | d546e31 | 2008-12-27 12:03:07 +0000 | [diff] [blame] | 47 | tests/debug/Makefile |
Holger Freyther | 5f75598 | 2008-12-27 09:42:59 +0000 | [diff] [blame] | 48 | tests/timer/Makefile |
Daniel Willmann | fdd0a6c | 2008-12-28 01:51:14 +0000 | [diff] [blame] | 49 | tests/sms/Makefile |
Holger Freyther | aa0fb36 | 2008-12-28 21:55:40 +0000 | [diff] [blame] | 50 | tests/gsm0408/Makefile |
Holger Freyther | dbede4e | 2008-12-31 23:25:05 +0000 | [diff] [blame] | 51 | tests/db/Makefile |
Holger Hans Peter Freyther | 800d29d | 2009-06-10 12:36:38 +0200 | [diff] [blame] | 52 | tests/channel/Makefile |
Holger Hans Peter Freyther | ac96770 | 2009-07-29 07:37:48 +0200 | [diff] [blame] | 53 | tests/sccp/Makefile |
Holger Freyther | 5f75598 | 2008-12-27 09:42:59 +0000 | [diff] [blame] | 54 | Makefile) |