only build sysmocom-femtobts conditionally

dbg_fwd
Harald Welte 12 years ago
parent b2c0836440
commit d9f981cf56
  1. 16
      configure.ac
  2. 6
      src/Makefile.am

@ -12,15 +12,23 @@ AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_RANLIB
dnl checks for header files
AC_HEADER_STDC
dnl Checks for typedefs, structures and compiler characteristics
dnl checks for libraries
PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 0.3.0)
PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty)
PKG_CHECK_MODULES(LIBOSMOGSM, libosmogsm >= 0.3.3)
dnl checks for header files
AC_HEADER_STDC
dnl Checks for typedefs, structures and compiler characteristics
AC_MSG_CHECKING([whether to enable sysmocom-bts hardware support])
AC_ARG_ENABLE(sysmocom-bts,
AC_HELP_STRING([--enable-sysmocom-bts],
[enable code for sysmocom femto-bts [default=no]]),
[enable_sysmocom_bts="yes"],[enable_sysmocom_bts="no"])
AC_MSG_RESULT([$enable_sysmocom_bts])
AM_CONDITIONAL(ENABLE_SYSMOBTS, test "x$enable_sysmocom_bts" = "xyes")
AC_OUTPUT(
src/Makefile

@ -1 +1,5 @@
SUBDIRS = common osmo-bts-sysmo #osmo-bts-bb
SUBDIRS = common #osmo-bts-bb
if ENABLE_SYSMOBTS
SUBDIRS += osmo-bts-sysmo
endif

Loading…
Cancel
Save