summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Villiom Podlaski Christiansen <danchr@gmail.com>2012-10-23 17:44:29 +0200
committerKlaus Kämpf <kkaempf@suse.de>2012-11-08 15:45:19 +0100
commit911e6dda0466708affc38fce2bb395fb998c6695 (patch)
tree84443d2c6df1813194466a678df57c17dd0c08a5
parent40dcab7b27e841f8b7df4044a323102eec893b8a (diff)
downloadwsmancli-911e6dda0466708affc38fce2bb395fb998c6695.tar.gz
wsmancli-911e6dda0466708affc38fce2bb395fb998c6695.tar.xz
wsmancli-911e6dda0466708affc38fce2bb395fb998c6695.zip
don't build examples and tests by default
# HG changeset patch # User Dan Villiom Podlaski Christiansen <dan@cabo.dk> # Date 1351005993 -7200 # Node ID 09c82f0e4a0aed0862fb53714b6d50a14d55d44d # Parent 51a19440f633d0f24c24355f4e1f0e88b4640ad2 don't build examples and tests by default Signed-off-by: Klaus Kämpf <kkaempf@suse.de>
-rw-r--r--Makefile.am9
-rw-r--r--configure.in12
2 files changed, 20 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 1babb55..96cda27 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,13 @@
-SUBDIRS = src examples tests
+SUBDIRS = src
AUTOMAKE_OPTIONS = no-dist-gzip dist-bzip2
+if BUILD_EXAMPLES
+SUBDIRS += examples
+endif
+if BUILD_TESTS
+SUBDIRS += tests
+endif
+
package: dist
cp wsmancli.spec /usr/src/packages/SPEC
cp wsmancli-*.tar.gz /usr/src/packages/SOURCES
diff --git a/configure.in b/configure.in
index e2e3597..6fd1478 100644
--- a/configure.in
+++ b/configure.in
@@ -21,6 +21,18 @@ PKG_CHECK_MODULES(OPENWSMAN, [openwsman >= 2.2.7])
have_cunit=no
AC_CHECK_HEADERS([CUnit/Basic.h], have_cunit="yes" )
AM_CONDITIONAL(BUILD_CUNIT_TESTS, test "$have_cunit" == "yes")
+
+examples_default=no
+AC_ARG_WITH(examples,
+ [ --with-examples=[no/yes] build examples [default=no]],,
+ with_examples=$examples_default)
+AM_CONDITIONAL(BUILD_EXAMPLES, test "x$with_examples" = "xyes")
+tests_default=no
+AC_ARG_WITH(tests,
+ [ --with-tests=[no/yes] build tests [default=no]],,
+ with_tests=$tests_default)
+AM_CONDITIONAL(BUILD_TESTS, test "x$with_tests" = "xyes")
+
dnl *************************************
dnl *** Warnings to show if using GCC ***
dnl *************************************