summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-04-12 05:22:15 +0200
committerDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-04-12 09:50:07 +0200
commite148e873e05e4ebe4d7a90cdbe8cdd72618eb7ac (patch)
tree797208a6ad8e7bde171ae2c9cdd27e7a323390ed /configure.ac
parent24043cc4eedd11bca8adc27491aafe80e14a8a86 (diff)
Add configure switch to disable pygos specific config defaults
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 3ac614a..2f16261 100644
--- a/configure.ac
+++ b/configure.ac
@@ -10,6 +10,17 @@ AC_PROG_RANLIB
AC_PROG_MKDIR_P
AC_PROG_LN_S
+AC_ARG_WITH([pygos],
+ [AS_HELP_STRING([--without-pygos],
+ [Disable Pygos specific default configuration])],
+ [case "${withval}" in
+ yes) AM_CONDITIONAL([PYGOSCFG], [true]) ;;
+ no) AM_CONDITIONAL([PYGOSCFG], [false]) ;;
+ *) AC_MSG_ERROR([bad value ${withval} for --without-pygos]) ;;
+ esac],
+ [AM_CONDITIONAL([PYGOSCFG], [true])])
+
+
AC_CONFIG_HEADERS([lib/include/config.h])
AC_DEFINE_DIR(SVCDIR, sysconfdir/init.d, [Startup service directory])
AC_DEFINE_DIR(TEMPLATEDIR, datadir/init, [Service template directory])