blob: b886e7ac144d50e870ef329c0fd9bd93e0e95cc4 [file] [log] [blame]
Harald Weltede729a12008-12-23 21:01:25 +00001dnl Process this file with autoconf to produce a configure script
2AC_INIT
3
4AM_INIT_AUTOMAKE(openbsc, 0.0alpha1)
5
6dnl checks for programs
7AC_PROG_MAKE_SET
8AC_PROG_CC
9AC_PROG_INSTALL
Holger Freyther3281f6e2009-02-20 18:33:00 +000010AC_PROG_RANLIB
Harald Weltede729a12008-12-23 21:01:25 +000011
12dnl checks for libraries
Holger Freytherb424ecb2009-06-08 10:32:28 +000013AC_SEARCH_LIBS(crypt, crypt,
14 [LIBCRYPT="-lcrypt"; AC_DEFINE([VTY_CRYPT_PW], [], [Use crypt functionality of vty.])])
Harald Weltede729a12008-12-23 21:01:25 +000015
16dnl checks for header files
17AC_HEADER_STDC
Harald Weltede729a12008-12-23 21:01:25 +000018
19dnl Checks for typedefs, structures and compiler characteristics
20
Holger Freyther6d9f77a2009-06-08 10:32:54 +000021# The following test is taken from WebKit's webkit.m4
22saved_CFLAGS="$CFLAGS"
23CFLAGS="$CFLAGS -fvisibility=hidden "
24AC_MSG_CHECKING([if ${CC} supports -fvisibility=hidden])
25AC_COMPILE_IFELSE([char foo;],
26 [ AC_MSG_RESULT([yes])
27 SYMBOL_VISIBILITY="-fvisibility=hidden"],
28 AC_MSG_RESULT([no]))
29CFLAGS="$saved_CFLAGS"
30AC_SUBST(SYMBOL_VISIBILITY)
31
32
33dnl Generate the output
34AM_CONFIG_HEADER(bscconfig.h)
35
Holger Freyther5f755982008-12-27 09:42:59 +000036AC_OUTPUT(
Holger Freytherc7aa3c42009-06-08 10:32:39 +000037 openbsc.pc
Holger Freyther5f755982008-12-27 09:42:59 +000038 include/openbsc/Makefile
Holger Freyther10479402009-03-11 03:29:43 +000039 include/vty/Makefile
Holger Freyther5f755982008-12-27 09:42:59 +000040 include/Makefile
41 src/Makefile
42 tests/Makefile
Holger Freytherd546e312008-12-27 12:03:07 +000043 tests/debug/Makefile
Holger Freyther5f755982008-12-27 09:42:59 +000044 tests/timer/Makefile
Daniel Willmannfdd0a6c2008-12-28 01:51:14 +000045 tests/sms/Makefile
Holger Freytheraa0fb362008-12-28 21:55:40 +000046 tests/gsm0408/Makefile
Holger Freytherdbede4e2008-12-31 23:25:05 +000047 tests/db/Makefile
Holger Freyther5f755982008-12-27 09:42:59 +000048 Makefile)