blob: 5b07704bf0e1661b194237d8dc3bfcb310fe4280 [file] [log] [blame]
Holger Hans Peter Freyther97f66e22010-07-28 03:32:52 +08001dnl Process this file with autoconf to produce a configure script
2AC_INIT
3
4AM_INIT_AUTOMAKE(cellmgr_ng, 0.0.1)
5
6dnl kernel style compile messages
7m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
8
9dnl checks for programs
10AC_PROG_MAKE_SET
11AC_PROG_CC
12AC_PROG_INSTALL
13AC_PROG_RANLIB
14
15dnl checks for header files
16AC_HEADER_STDC
17
18dnl Check for the SNMP header
19AC_CHECK_HEADERS([net-snmp/net-snmp-config.h])
20
21dnl Checks for typedefs, structures and compiler characteristics
Holger Hans Peter Freythercbf7d182010-07-31 05:25:35 +080022PKG_CHECK_MODULES([LIBOSMOCORE], [libosmocore])
23PKG_CHECK_MODULES([LIBOSMOSCCP], [libosmo-sccp])
24PKG_CHECK_MODULES([LIBOSMOVTY], [libosmovty])
Holger Hans Peter Freyther97f66e22010-07-28 03:32:52 +080025#PKG_CHECK_MODULES([NEXUSWARE_C7], [nexusware-c7])
Holger Hans Peter Freyther97f66e22010-07-28 03:32:52 +080026
Holger Hans Peter Freyther8bffbca2010-08-04 06:16:24 +080027AC_ARG_ENABLE([uniporte], [AS_HELP_STRING([--enable-uniporte], [Build with uniporte])],
28 [
29 PKG_CHECK_MODULES([NEXUSWARE_UNIPORTE], [nexusware-uniporte])
30 AC_SUBST(UNIPORTE, [])
31 ],
32 [
33 AC_SUBST(UNIPORTE, [-DNO_UNIPORTE])
34 ])
Holger Hans Peter Freythercbf7d182010-07-31 05:25:35 +080035
Holger Hans Peter Freyther97f66e22010-07-28 03:32:52 +080036AC_OUTPUT(
37 include/Makefile
38 include/mgcp/Makefile
39 include/openbsc_nat/Makefile
40 src/Makefile
41 tests/Makefile
42 tests/mtp/Makefile
43 tests/patching/Makefile
44 Makefile)