Harald Welte | 2b944cf | 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 | |
| 6 | dnl checks for programs |
| 7 | AC_PROG_MAKE_SET |
| 8 | AC_PROG_CC |
| 9 | AC_PROG_INSTALL |
Holger Freyther | 91f49f6 | 2009-02-20 18:33:00 +0000 | [diff] [blame] | 10 | AC_PROG_RANLIB |
Harald Welte | 2b944cf | 2008-12-23 21:01:25 +0000 | [diff] [blame] | 11 | |
| 12 | dnl checks for libraries |
Holger Freyther | 559bb71 | 2009-06-08 10:32:28 +0000 | [diff] [blame] | 13 | AC_SEARCH_LIBS(crypt, crypt, |
| 14 | [LIBCRYPT="-lcrypt"; AC_DEFINE([VTY_CRYPT_PW], [], [Use crypt functionality of vty.])]) |
Harald Welte | 2b944cf | 2008-12-23 21:01:25 +0000 | [diff] [blame] | 15 | |
| 16 | dnl checks for header files |
| 17 | AC_HEADER_STDC |
Harald Welte | 2b944cf | 2008-12-23 21:01:25 +0000 | [diff] [blame] | 18 | |
| 19 | dnl Checks for typedefs, structures and compiler characteristics |
| 20 | |
Holger Freyther | 64026e9 | 2009-06-08 10:32:54 +0000 | [diff] [blame] | 21 | # The following test is taken from WebKit's webkit.m4 |
| 22 | saved_CFLAGS="$CFLAGS" |
| 23 | CFLAGS="$CFLAGS -fvisibility=hidden " |
| 24 | AC_MSG_CHECKING([if ${CC} supports -fvisibility=hidden]) |
| 25 | AC_COMPILE_IFELSE([char foo;], |
| 26 | [ AC_MSG_RESULT([yes]) |
| 27 | SYMBOL_VISIBILITY="-fvisibility=hidden"], |
| 28 | AC_MSG_RESULT([no])) |
| 29 | CFLAGS="$saved_CFLAGS" |
| 30 | AC_SUBST(SYMBOL_VISIBILITY) |
| 31 | |
| 32 | |
| 33 | dnl Generate the output |
| 34 | AM_CONFIG_HEADER(bscconfig.h) |
| 35 | |
Holger Freyther | 1bad601 | 2008-12-27 09:42:59 +0000 | [diff] [blame] | 36 | AC_OUTPUT( |
Holger Freyther | b27d845 | 2009-06-08 10:32:39 +0000 | [diff] [blame] | 37 | openbsc.pc |
Holger Freyther | 1bad601 | 2008-12-27 09:42:59 +0000 | [diff] [blame] | 38 | include/openbsc/Makefile |
Holger Freyther | 2ce20ff | 2009-03-11 03:29:43 +0000 | [diff] [blame] | 39 | include/vty/Makefile |
Holger Freyther | 1bad601 | 2008-12-27 09:42:59 +0000 | [diff] [blame] | 40 | include/Makefile |
| 41 | src/Makefile |
| 42 | tests/Makefile |
Holger Freyther | c95546b | 2008-12-27 12:03:07 +0000 | [diff] [blame] | 43 | tests/debug/Makefile |
Holger Freyther | 1bad601 | 2008-12-27 09:42:59 +0000 | [diff] [blame] | 44 | tests/timer/Makefile |
Daniel Willmann | b220869 | 2008-12-28 01:51:14 +0000 | [diff] [blame] | 45 | tests/sms/Makefile |
Holger Freyther | ec5b1d8 | 2008-12-28 21:55:40 +0000 | [diff] [blame] | 46 | tests/gsm0408/Makefile |
Holger Freyther | c1e1192 | 2008-12-31 23:25:05 +0000 | [diff] [blame] | 47 | tests/db/Makefile |
Holger Hans Peter Freyther | f8584a1 | 2009-06-10 12:36:38 +0200 | [diff] [blame] | 48 | tests/channel/Makefile |
Holger Freyther | 1bad601 | 2008-12-27 09:42:59 +0000 | [diff] [blame] | 49 | Makefile) |