From 0d13deb0e44afb80ec0a35e827548d891d48f6b6 Mon Sep 17 00:00:00 2001 From: Thomas Guyot-Sionnest Date: Wed, 2 Apr 2008 09:11:44 +0000 Subject: - Add --enable-extra-opts configure option for compiling extra-opts support - Auto-update po/pot files git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1973 f882894a-f735-0410-b71e-b25c423dba1c --- configure.in | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'configure.in') diff --git a/configure.in b/configure.in index d0bd0efc..418b597b 100644 --- a/configure.in +++ b/configure.in @@ -160,6 +160,19 @@ AC_CHECK_LIB(tap, plan_tests, AC_SUBST(EXTRA_TEST) ) +dnl INI Parsing +AC_ARG_ENABLE(extra-opts, + AC_HELP_STRING([--enable-extra-opts], + [Enables parsing of plugins ini config files for extra options (default: no)]), + [enable_extra_opts=$enableval], + [enable_extra_opts=no]) +AM_CONDITIONAL([USE_PARSE_INI],[test "$enable_extra_opts" = "yes"]) +if test "$enable_extra_opts" = "yes" ; then + EXTRA_TEST="$EXTRA_TEST test_ini test_opts" + AC_SUBST(EXTRA_TEST) + AC_DEFINE(NP_EXTRA_OPTS,[1],[Enable INI file parsing.]) +fi + dnl Check for PostgreSQL libraries _SAVEDLIBS="$LIBS" _SAVEDCPPFLAGS="$CPPFLAGS" @@ -1621,6 +1634,7 @@ ACX_FEATURE([with],[ipv6]) ACX_FEATURE([with],[mysql]) ACX_FEATURE([with],[openssl]) ACX_FEATURE([with],[gnutls]) +ACX_FEATURE([enable],[extra-opts]) ACX_FEATURE([with],[perl]) ACX_FEATURE([enable],[perl-modules]) ACX_FEATURE([with],[cgiurl]) -- cgit v1.2.3-74-g34f1