blob: 88a3f61f4d43ee9f3b9dd2244232edf2fd21c6d2 [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
Holger Hans Peter Freyther1f59ac42009-10-27 03:34:49 +01006dnl kernel style compile messages
7m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
8
Harald Weltede729a12008-12-23 21:01:25 +00009dnl checks for programs
10AC_PROG_MAKE_SET
11AC_PROG_CC
12AC_PROG_INSTALL
Holger Freyther3281f6e2009-02-20 18:33:00 +000013AC_PROG_RANLIB
Harald Weltede729a12008-12-23 21:01:25 +000014
15dnl checks for libraries
Holger Freytherb424ecb2009-06-08 10:32:28 +000016AC_SEARCH_LIBS(crypt, crypt,
17 [LIBCRYPT="-lcrypt"; AC_DEFINE([VTY_CRYPT_PW], [], [Use crypt functionality of vty.])])
Harald Weltede729a12008-12-23 21:01:25 +000018
19dnl checks for header files
20AC_HEADER_STDC
Harald Weltede729a12008-12-23 21:01:25 +000021
22dnl Checks for typedefs, structures and compiler characteristics
23
Holger Freyther6d9f77a2009-06-08 10:32:54 +000024# The following test is taken from WebKit's webkit.m4
25saved_CFLAGS="$CFLAGS"
26CFLAGS="$CFLAGS -fvisibility=hidden "
27AC_MSG_CHECKING([if ${CC} supports -fvisibility=hidden])
28AC_COMPILE_IFELSE([char foo;],
29 [ AC_MSG_RESULT([yes])
30 SYMBOL_VISIBILITY="-fvisibility=hidden"],
31 AC_MSG_RESULT([no]))
32CFLAGS="$saved_CFLAGS"
33AC_SUBST(SYMBOL_VISIBILITY)
34
35
36dnl Generate the output
37AM_CONFIG_HEADER(bscconfig.h)
38
Holger Freyther5f755982008-12-27 09:42:59 +000039AC_OUTPUT(
Holger Freytherc7aa3c42009-06-08 10:32:39 +000040 openbsc.pc
Holger Hans Peter Freythera49ffb42010-02-09 21:50:25 +010041 liblaf0rge1.pc
Holger Hans Peter Freyther5e6f52f2010-02-12 12:31:11 +010042 libsccp.pc
Holger Freyther5f755982008-12-27 09:42:59 +000043 include/openbsc/Makefile
Holger Freyther10479402009-03-11 03:29:43 +000044 include/vty/Makefile
Holger Hans Peter Freytherac967702009-07-29 07:37:48 +020045 include/sccp/Makefile
Holger Freyther5f755982008-12-27 09:42:59 +000046 include/Makefile
47 src/Makefile
48 tests/Makefile
Holger Freytherd546e312008-12-27 12:03:07 +000049 tests/debug/Makefile
Holger Freyther5f755982008-12-27 09:42:59 +000050 tests/timer/Makefile
Daniel Willmannfdd0a6c2008-12-28 01:51:14 +000051 tests/sms/Makefile
Holger Freytheraa0fb362008-12-28 21:55:40 +000052 tests/gsm0408/Makefile
Holger Freytherdbede4e2008-12-31 23:25:05 +000053 tests/db/Makefile
Holger Hans Peter Freyther800d29d2009-06-10 12:36:38 +020054 tests/channel/Makefile
Holger Hans Peter Freytherac967702009-07-29 07:37:48 +020055 tests/sccp/Makefile
Holger Freyther5f755982008-12-27 09:42:59 +000056 Makefile)