2010-07-27 19:32:52 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script
|
2010-09-15 12:35:58 +00:00
|
|
|
AC_INIT([cellmgr_ng],
|
|
|
|
m4_esyscmd([./git-version-gen .tarball-version]),
|
|
|
|
[openbsc-devel@lists.openbsc.org])
|
2010-07-27 19:32:52 +00:00
|
|
|
|
2010-09-15 12:35:58 +00:00
|
|
|
AM_INIT_AUTOMAKE([dist-bzip2])
|
2011-11-20 09:47:14 +00:00
|
|
|
AC_CONFIG_TESTDIR(tests)
|
2010-07-27 19:32:52 +00:00
|
|
|
|
|
|
|
dnl kernel style compile messages
|
|
|
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
|
|
|
|
|
|
|
dnl checks for programs
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_RANLIB
|
|
|
|
|
|
|
|
dnl checks for header files
|
|
|
|
AC_HEADER_STDC
|
|
|
|
|
|
|
|
dnl Check for the SNMP header
|
|
|
|
AC_CHECK_HEADERS([net-snmp/net-snmp-config.h])
|
|
|
|
|
|
|
|
dnl Checks for typedefs, structures and compiler characteristics
|
2011-07-22 07:00:23 +00:00
|
|
|
PKG_CHECK_MODULES([LIBOSMOCORE], [libosmocore >= 0.3.2])
|
|
|
|
PKG_CHECK_MODULES([LIBOSMOGSM], [libosmogsm >= 0.3.2])
|
2010-07-30 21:25:35 +00:00
|
|
|
PKG_CHECK_MODULES([LIBOSMOSCCP], [libosmo-sccp])
|
2011-07-22 07:00:23 +00:00
|
|
|
PKG_CHECK_MODULES([LIBOSMOVTY], [libosmovty >= 0.3.2])
|
2010-07-27 19:32:52 +00:00
|
|
|
#PKG_CHECK_MODULES([NEXUSWARE_C7], [nexusware-c7])
|
|
|
|
|
2016-08-15 09:54:24 +00:00
|
|
|
AC_ARG_ENABLE([external_tests],
|
|
|
|
AC_HELP_STRING([--enable-external-tests],
|
|
|
|
[Include the VTY tests in make check [default=no]]),
|
|
|
|
[enable_ext_tests="$enableval"],[enable_ext_tests="no"])
|
|
|
|
if test "x$enable_ext_tests" = "xyes" ; then
|
|
|
|
AM_PATH_PYTHON
|
|
|
|
AC_CHECK_PROG(OSMOTESTEXT_CHECK,osmotestvty.py,yes)
|
|
|
|
if test "x$OSMOTESTEXT_CHECK" != "xyes" ; then
|
|
|
|
AC_MSG_ERROR([Please install osmocom-python to run the VTY tests.])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AC_MSG_CHECKING([whether to enable VTY tests])
|
|
|
|
AC_MSG_RESULT([$enable_ext_tests])
|
|
|
|
AM_CONDITIONAL(ENABLE_EXT_TESTS, test "x$enable_ext_tests" = "xyes")
|
|
|
|
|
2011-01-25 11:26:59 +00:00
|
|
|
old_libs=$LIBS
|
2011-01-17 13:13:29 +00:00
|
|
|
AC_CHECK_LIB([sctp], sctp_sendmsg, [], [AC_MSG_ERROR([The sctp library is required.])])
|
2011-01-25 11:26:59 +00:00
|
|
|
LIBS=$old_libs
|
2011-01-17 13:13:29 +00:00
|
|
|
|
2010-08-03 22:16:24 +00:00
|
|
|
AC_ARG_ENABLE([uniporte], [AS_HELP_STRING([--enable-uniporte], [Build with uniporte])],
|
|
|
|
[
|
|
|
|
PKG_CHECK_MODULES([NEXUSWARE_UNIPORTE], [nexusware-uniporte])
|
|
|
|
AC_SUBST(UNIPORTE, [])
|
|
|
|
],
|
|
|
|
[
|
|
|
|
AC_SUBST(UNIPORTE, [-DNO_UNIPORTE])
|
|
|
|
])
|
2010-07-30 21:25:35 +00:00
|
|
|
|
2010-09-15 12:53:56 +00:00
|
|
|
AM_CONFIG_HEADER(cellmgr_config.h)
|
|
|
|
|
2010-07-27 19:32:52 +00:00
|
|
|
AC_OUTPUT(
|
|
|
|
include/Makefile
|
|
|
|
include/mgcp/Makefile
|
|
|
|
src/Makefile
|
|
|
|
tests/Makefile
|
|
|
|
tests/mtp/Makefile
|
|
|
|
tests/patching/Makefile
|
2010-12-09 16:08:06 +00:00
|
|
|
tests/isup/Makefile
|
2011-09-15 17:30:20 +00:00
|
|
|
tests/mgcp/Makefile
|
2012-11-29 20:41:01 +00:00
|
|
|
tests/dtmf/Makefile
|
2010-07-27 19:32:52 +00:00
|
|
|
Makefile)
|