<p>Harald Welte has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/13503">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">configure.ac: Add --disable-remsim-server<br><br>This allows builds on small/embedded platforms to avoid all the<br>dependencies required by remsim-server, including ulfius, yder, etc.<br><br>Closes: OS#3896<br>Change-Id: I2b1ec8a9a88b931ac56a63df88886e37c580a92b<br>---<br>M configure.ac<br>M src/Makefile.am<br>2 files changed, 14 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-remsim refs/changes/03/13503/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/configure.ac b/configure.ac</span><br><span>index 1d2ccc2..b369133 100644</span><br><span>--- a/configure.ac</span><br><span>+++ b/configure.ac</span><br><span>@@ -41,8 +41,16 @@</span><br><span> PKG_CHECK_MODULES(OSMOSIM, libosmosim)</span><br><span> PKG_CHECK_MODULES(PCSC, libpcsclite)</span><br><span> PKG_CHECK_MODULES(USB, libusb-1.0)</span><br><span style="color: hsl(0, 100%, 40%);">-PKG_CHECK_MODULES(ULFIUS, libulfius)</span><br><span style="color: hsl(0, 100%, 40%);">-PKG_CHECK_MODULES(JANSSON, jansson)</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+AC_ARG_ENABLE([remsim-server],[AS_HELP_STRING([--disable-remsim-server], [Build osmo-remsim-server])],</span><br><span style="color: hsl(120, 100%, 40%);">+       [osmo_ac_build_server="$enableval"],[osmo_ac_build_server="yes"])</span><br><span style="color: hsl(120, 100%, 40%);">+if test "$osmo_ac_build_server" = "yes"; then</span><br><span style="color: hsl(120, 100%, 40%);">+      PKG_CHECK_MODULES(ULFIUS, libulfius)</span><br><span style="color: hsl(120, 100%, 40%);">+  PKG_CHECK_MODULES(JANSSON, jansson)</span><br><span style="color: hsl(120, 100%, 40%);">+   AC_DEFINE(BUILD_SERVER, 1, [Define if we want to build osmo-remsim-server])</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+AM_CONDITIONAL(BUILD_SERVER, test "x$osmo_ac_build_server" = "xyes")</span><br><span style="color: hsl(120, 100%, 40%);">+AC_SUBST(BUILD_SERVER)</span><br><span> </span><br><span> AC_CONFIG_MACRO_DIR([m4])</span><br><span> </span><br><span>diff --git a/src/Makefile.am b/src/Makefile.am</span><br><span>index d671f37..5b6efb9 100644</span><br><span>--- a/src/Makefile.am</span><br><span>+++ b/src/Makefile.am</span><br><span>@@ -1,4 +1,7 @@</span><br><span style="color: hsl(0, 100%, 40%);">-SUBDIRS = rspro server</span><br><span style="color: hsl(120, 100%, 40%);">+SUBDIRS = rspro</span><br><span style="color: hsl(120, 100%, 40%);">+if BUILD_SERVER</span><br><span style="color: hsl(120, 100%, 40%);">+SUBDIRS += server</span><br><span style="color: hsl(120, 100%, 40%);">+endif</span><br><span> </span><br><span> AM_CFLAGS = -Wall -I$(top_srcdir)/include -I$(top_builddir)/include \</span><br><span>         $(OSMOCORE_CFLAGS) $(OSMOGSM_CFLAGS) $(OSMOABIS_CFLAGS) \</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13503">change 13503</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/13503"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-remsim </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I2b1ec8a9a88b931ac56a63df88886e37c580a92b </div>
<div style="display:none"> Gerrit-Change-Number: 13503 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Harald Welte <laforge@gnumonks.org> </div>