Fix: don't build examples in static builds
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 14 Jun 2013 22:32:04 +0000 (18:32 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 14 Jun 2013 22:32:04 +0000 (18:32 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
configure.ac
doc/examples/Makefile.am

index 058be2065dfd62215a8960efcefe6843b94b7511..52b20d841b3124a1ddc95b2b078be47ee89d0af9 100644 (file)
@@ -162,6 +162,7 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
 
 AM_CONDITIONAL([COMPAT_FUTEX], [test "x$compat_futex_test" = "x1"])
 AM_CONDITIONAL([COMPAT_ARCH], [test "x$SUBARCHTYPE" = "xx86compat"])
+AM_CONDITIONAL([NO_SHARED], [test "x$enable_shared" = "xno"])
 
 # smp-support configure option
 AC_ARG_ENABLE([smp-support], 
index 4583b5bdf1884605603ac1f66d56c2c6f0212d36..646213bceb3fd3ce1346719c2343e1867d08dc0e 100644 (file)
@@ -1,3 +1,7 @@
+if NO_SHARED
+# Don't build examples if shared libraries support was explicitly
+# disabled.
+else
 SUBDIRS = qsbr-minimal
 
 doc_examplesdir = ${docdir}/examples
@@ -10,3 +14,4 @@ doc_examples_qsbr_minimal_DATA = \
 
 BUILD_EXAMPLES_FROM_TREE = 1
 export
+endif
This page took 0.025258 seconds and 4 git commands to generate.