From cf00cffef237014486eecd0aa04ed8601a7d5265 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 16 Jul 2009 10:52:14 +0200 Subject: [PATCH] Added an option to the configure script to disable building the scripts. --- Makefile.am | 7 ++++++- configure.in | 12 ++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 536ee5728..172949977 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,9 @@ -SUBDIRS = src testing scripts +SUBDIRS = src testing + +if USE_SCRIPTS + SUBDIRS += scripts +endif + EXTRA_DIST = Doxyfile.in CREDITS CLEANFILES = apidoc Doxyfile diff --git a/configure.in b/configure.in index 6a3cfac4f..42fc7d59b 100644 --- a/configure.in +++ b/configure.in @@ -638,6 +638,17 @@ AC_ARG_ENABLE( tools=true ) +AC_ARG_ENABLE( + [scripts], + AS_HELP_STRING([--disable-scripts],[disable additional utilities (found in directory scripts). (default is NO).]), + [if test x$enableval = xyes; then + scripts=true + else + scripts=false + fi], + scripts=true +) + AC_ARG_ENABLE( [updown], AS_HELP_STRING([--disable-updown],[disable updown firewall script plugin. (default is NO).]), @@ -1230,6 +1241,7 @@ AM_CONDITIONAL(USE_PLUTO, test x$pluto = xtrue) AM_CONDITIONAL(USE_THREADS, test x$threads = xtrue) AM_CONDITIONAL(USE_CHARON, test x$charon = xtrue) AM_CONDITIONAL(USE_TOOLS, test x$tools = xtrue) +AM_CONDITIONAL(USE_SCRIPTS, test x$scripts = xtrue) AM_CONDITIONAL(USE_LIBSTRONGSWAN, test x$charon = xtrue -o x$pluto = xtrue -o x$tools = xtrue) AM_CONDITIONAL(USE_FILE_CONFIG, test x$pluto = xtrue -o x$stroke = xtrue) AM_CONDITIONAL(USE_VSTR, test x$vstr = xtrue)