aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-06-27 11:45:15 +0200
committerHarald Welte <laforge@gnumonks.org>2011-06-27 11:45:15 +0200
commitd9f981cf5681eb925c87ea86f4f38f90ce8bcc9f (patch)
tree57b6d2b0b9580fa6797bfc27d0af47a384330c18
parentb2c0836440bf59d317cf034b6fff5ef0cd572e4e (diff)
only build sysmocom-femtobts conditionally
-rw-r--r--configure.ac16
-rw-r--r--src/Makefile.am6
2 files changed, 17 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index fe525ed..29d58af 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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
diff --git a/src/Makefile.am b/src/Makefile.am
index bed0f45..92bbed9 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1 +1,5 @@
-SUBDIRS = common osmo-bts-sysmo #osmo-bts-bb
+SUBDIRS = common #osmo-bts-bb
+
+if ENABLE_SYSMOBTS
+SUBDIRS += osmo-bts-sysmo
+endif