Holger Hans Peter Freyther | 97f66e2 | 2010-07-28 03:32:52 +0800 | [diff] [blame] | 1 | dnl Process this file with autoconf to produce a configure script |
| 2 | AC_INIT |
| 3 | |
| 4 | AM_INIT_AUTOMAKE(cellmgr_ng, 0.0.1) |
| 5 | |
| 6 | dnl kernel style compile messages |
| 7 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) |
| 8 | |
| 9 | dnl checks for programs |
| 10 | AC_PROG_MAKE_SET |
| 11 | AC_PROG_CC |
| 12 | AC_PROG_INSTALL |
| 13 | AC_PROG_RANLIB |
| 14 | |
| 15 | dnl checks for header files |
| 16 | AC_HEADER_STDC |
| 17 | |
| 18 | dnl Check for the SNMP header |
| 19 | AC_CHECK_HEADERS([net-snmp/net-snmp-config.h]) |
| 20 | |
| 21 | dnl Checks for typedefs, structures and compiler characteristics |
Holger Hans Peter Freyther | cbf7d18 | 2010-07-31 05:25:35 +0800 | [diff] [blame] | 22 | PKG_CHECK_MODULES([LIBOSMOCORE], [libosmocore]) |
| 23 | PKG_CHECK_MODULES([LIBOSMOSCCP], [libosmo-sccp]) |
| 24 | PKG_CHECK_MODULES([LIBOSMOVTY], [libosmovty]) |
Holger Hans Peter Freyther | 97f66e2 | 2010-07-28 03:32:52 +0800 | [diff] [blame] | 25 | #PKG_CHECK_MODULES([NEXUSWARE_C7], [nexusware-c7]) |
Holger Hans Peter Freyther | 97f66e2 | 2010-07-28 03:32:52 +0800 | [diff] [blame] | 26 | |
Holger Hans Peter Freyther | 8bffbca | 2010-08-04 06:16:24 +0800 | [diff] [blame^] | 27 | AC_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 Freyther | cbf7d18 | 2010-07-31 05:25:35 +0800 | [diff] [blame] | 35 | |
Holger Hans Peter Freyther | 97f66e2 | 2010-07-28 03:32:52 +0800 | [diff] [blame] | 36 | AC_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) |