2008-12-23 21:01:25 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script
|
2010-03-22 16:09:32 +00:00
|
|
|
AC_INIT([openbsc],
|
|
|
|
m4_esyscmd([./git-version-gen .tarball-version]),
|
|
|
|
[openbsc-devel@lists.openbsc.org])
|
2008-12-23 21:01:25 +00:00
|
|
|
|
2010-03-22 16:09:32 +00:00
|
|
|
AM_INIT_AUTOMAKE([dist-bzip2])
|
2008-12-23 21:01:25 +00:00
|
|
|
|
2009-10-27 02:34:49 +00:00
|
|
|
dnl kernel style compile messages
|
|
|
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
|
|
|
|
2008-12-23 21:01:25 +00:00
|
|
|
dnl checks for programs
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_INSTALL
|
2009-02-20 18:33:00 +00:00
|
|
|
AC_PROG_RANLIB
|
2008-12-23 21:01:25 +00:00
|
|
|
|
|
|
|
dnl checks for libraries
|
2009-06-08 10:32:28 +00:00
|
|
|
AC_SEARCH_LIBS(crypt, crypt,
|
|
|
|
[LIBCRYPT="-lcrypt"; AC_DEFINE([VTY_CRYPT_PW], [], [Use crypt functionality of vty.])])
|
2010-05-17 22:20:21 +00:00
|
|
|
AC_SEARCH_LIBS(gtp_new, gtp,
|
|
|
|
[LIBCRYPT="-lgtp"; AC_SUBST([GPRS_LIBGTP], [1])])
|
|
|
|
|
|
|
|
AM_CONDITIONAL(HAVE_LIBGTP, test "x$GPRS_LIBGTP" != "x")
|
2008-12-23 21:01:25 +00:00
|
|
|
|
2010-07-29 18:53:14 +00:00
|
|
|
|
|
|
|
AC_ARG_ENABLE([nat], [AS_HELP_STRING([--enable-nat], [Build the BSC NAT. Requires SCCP])],
|
|
|
|
[
|
2010-08-03 13:11:51 +00:00
|
|
|
PKG_CHECK_MODULES(LIBOSMOSCCP, libosmo-sccp >= 0.0.2)
|
2010-07-29 18:53:14 +00:00
|
|
|
osmo_ac_build_nat="yes"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
osmo_ac_build_nat="no"
|
|
|
|
])
|
|
|
|
AM_CONDITIONAL(BUILD_NAT, test "x$osmo_ac_build_nat" = "xyes")
|
|
|
|
|
2010-08-03 13:11:51 +00:00
|
|
|
AC_ARG_ENABLE([osmo-bsc], [AS_HELP_STRING([--enable-osmo-bsc], [Build the Osmo BSC])],
|
2010-07-29 18:53:14 +00:00
|
|
|
[
|
2011-06-04 14:59:37 +00:00
|
|
|
PKG_CHECK_MODULES(LIBOSMOSCCP, libosmo-sccp >= 0.0.6)
|
2010-07-29 18:53:14 +00:00
|
|
|
osmo_ac_build_bsc="yes"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
osmo_ac_build_bsc="no"
|
|
|
|
])
|
|
|
|
AM_CONDITIONAL(BUILD_BSC, test "x$osmo_ac_build_bsc" = "xyes")
|
|
|
|
|
2011-06-26 12:48:11 +00:00
|
|
|
PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 0.3.2)
|
2011-05-08 07:41:45 +00:00
|
|
|
PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty >= 0.3.0)
|
|
|
|
PKG_CHECK_MODULES(LIBOSMOGSM, libosmogsm >= 0.3.0)
|
src: port openBSC over libosmo-abis
This is a big patch that ports openBSC over libosmo-abis.
Sorry, the changes that are included here are all dependent
of libosmo-abis, splitting them into smaller pieces would
leave the repository in some intermediate state, which is
not desired.
The main changes are:
- The directory libabis/ has been removed as it now lives in
libosmo-abis.
- new configuration file format for nanoBTS and HSL femto, we
need to define the virtual e1_line and attach it to the OML
link.
- all the existing BTS drivers (nanoBTS, hsl femto, Nokia site,
BS11 and rbs2000) now use the new libosmo-abis framework.
- use r232 input driver available in libosmo-abis for bs11_config.
- use ipa_msg_recv instead of old ipaccess_read_msg function.
- delete definition of gsm_e1_subslot and input_signal_data.
These structures now lives in libosmo-abis.
Most of this patch are deletions of libabis/ which has been
moved to libosmo-abis.
This patch also modifies openBSC to use all the new definitions
available in libosmocore and libosmo-abis. In order to do that,
we have replaced the following:
- DINP, DMI, DMIB and DMUX by their respective DL* correspondences.
- SS_GLOBAL by SS_L_GLOBAL
- SS_INPUT by SS_L_INPUT
- S_GLOBAL_SHUTDOWN by S_L_GLOBAL_SHUTDOWN
- SS_INPUT by SS_L_INPUT
- S_INP_* by S_L_INP_* sub-signals
- E1INP_NODE by L_E1INP_NODE vty node
This patch has been tested with:
- one nanoBTS
- the HSL femto with the examples available under libosmo-abis
- BS11 with both dahdi and misdn drivers.
2011-08-17 20:44:07 +00:00
|
|
|
PKG_CHECK_MODULES(LIBOSMOABIS, libosmoabis >= 0.0.2)
|
2010-02-20 16:29:27 +00:00
|
|
|
|
2008-12-23 21:01:25 +00:00
|
|
|
dnl checks for header files
|
|
|
|
AC_HEADER_STDC
|
2011-02-05 14:13:27 +00:00
|
|
|
AC_CHECK_HEADERS(dahdi/user.h,,AC_MSG_WARN(DAHDI input driver will not be built))
|
2011-03-08 12:38:49 +00:00
|
|
|
AC_CHECK_HEADERS(dbi/dbd.h,,AC_MSG_ERROR(DBI library is not installed))
|
2011-02-05 14:13:27 +00:00
|
|
|
|
2008-12-23 21:01:25 +00:00
|
|
|
|
|
|
|
dnl Checks for typedefs, structures and compiler characteristics
|
|
|
|
|
2009-06-08 10:32:54 +00:00
|
|
|
# The following test is taken from WebKit's webkit.m4
|
|
|
|
saved_CFLAGS="$CFLAGS"
|
|
|
|
CFLAGS="$CFLAGS -fvisibility=hidden "
|
|
|
|
AC_MSG_CHECKING([if ${CC} supports -fvisibility=hidden])
|
2011-05-24 13:16:54 +00:00
|
|
|
AC_COMPILE_IFELSE([AC_LANG_SOURCE([char foo;])],
|
2009-06-08 10:32:54 +00:00
|
|
|
[ AC_MSG_RESULT([yes])
|
|
|
|
SYMBOL_VISIBILITY="-fvisibility=hidden"],
|
|
|
|
AC_MSG_RESULT([no]))
|
|
|
|
CFLAGS="$saved_CFLAGS"
|
|
|
|
AC_SUBST(SYMBOL_VISIBILITY)
|
|
|
|
|
2010-11-15 17:37:57 +00:00
|
|
|
# Coverage build taken from WebKit's configure.in
|
|
|
|
AC_MSG_CHECKING([whether to enable code coverage support])
|
|
|
|
AC_ARG_ENABLE(coverage,
|
|
|
|
AC_HELP_STRING([--enable-coverage],
|
|
|
|
[enable code coverage support [default=no]]),
|
|
|
|
[],[enable_coverage="no"])
|
|
|
|
AC_MSG_RESULT([$enable_coverage])
|
|
|
|
if test "$enable_coverage" = "yes"; then
|
|
|
|
COVERAGE_CFLAGS="-ftest-coverage -fprofile-arcs"
|
|
|
|
COVERAGE_LDFLAGS="-ftest-coverage -fprofile-arcs"
|
|
|
|
AC_SUBST([COVERAGE_CFLAGS])
|
|
|
|
AC_SUBST([COVERAGE_LDFLAGS])
|
|
|
|
fi
|
|
|
|
|
2009-06-08 10:32:54 +00:00
|
|
|
|
|
|
|
dnl Generate the output
|
|
|
|
AM_CONFIG_HEADER(bscconfig.h)
|
|
|
|
|
2008-12-27 09:42:59 +00:00
|
|
|
AC_OUTPUT(
|
2009-06-08 10:32:39 +00:00
|
|
|
openbsc.pc
|
2008-12-27 09:42:59 +00:00
|
|
|
include/openbsc/Makefile
|
|
|
|
include/Makefile
|
|
|
|
src/Makefile
|
2011-03-04 12:18:30 +00:00
|
|
|
src/libtrau/Makefile
|
|
|
|
src/libbsc/Makefile
|
2010-10-21 13:00:36 +00:00
|
|
|
src/libctrl/Makefile
|
2011-03-04 12:18:30 +00:00
|
|
|
src/libmsc/Makefile
|
|
|
|
src/libmgcp/Makefile
|
|
|
|
src/libcommon/Makefile
|
2011-03-03 22:29:05 +00:00
|
|
|
src/osmo-nitb/Makefile
|
|
|
|
src/osmo-bsc/Makefile
|
2011-03-03 22:36:48 +00:00
|
|
|
src/osmo-bsc_nat/Makefile
|
|
|
|
src/osmo-bsc_mgcp/Makefile
|
2010-05-04 05:47:54 +00:00
|
|
|
src/ipaccess/Makefile
|
2011-03-03 22:29:05 +00:00
|
|
|
src/utils/Makefile
|
2011-03-04 12:18:30 +00:00
|
|
|
src/libgb/Makefile
|
2010-05-04 05:41:59 +00:00
|
|
|
src/gprs/Makefile
|
2008-12-27 09:42:59 +00:00
|
|
|
tests/Makefile
|
2008-12-27 12:03:07 +00:00
|
|
|
tests/debug/Makefile
|
2008-12-28 21:55:40 +00:00
|
|
|
tests/gsm0408/Makefile
|
2008-12-31 23:25:05 +00:00
|
|
|
tests/db/Makefile
|
2009-06-10 10:36:38 +00:00
|
|
|
tests/channel/Makefile
|
2010-06-15 12:21:44 +00:00
|
|
|
tests/bsc-nat/Makefile
|
2011-01-06 18:32:52 +00:00
|
|
|
tests/mgcp/Makefile
|
2011-05-11 20:11:28 +00:00
|
|
|
doc/Makefile
|
|
|
|
doc/examples/Makefile
|
2008-12-27 09:42:59 +00:00
|
|
|
Makefile)
|