diff --git a/SRC/plugins/dns/configure.ac b/SRC/plugins/dns/configure.ac index e31c102..2f250ba 100644 --- a/SRC/plugins/dns/configure.ac +++ b/SRC/plugins/dns/configure.ac @@ -7,6 +7,19 @@ dnl Checks for programs. AC_PROG_CC AC_PROG_INSTALL +AC_ARG_WITH(popt, + [--with-popt[=DIR] popt command-line parsing library],dnl + [if test "$withval" != "no"; then + if test "$withval" != "yes"; then + POPTROOT=$withval + LDFLAGS="${LDFLAGS} -L$POPTROOT/lib" + CPPFLAGS="${CPPFLAGS} -I$POPTROOT/include" + fi + else + AC_MSG_ERROR([The popt command-line parsing library is mandatory for this plugin]) + fi], +) + DNS_BUILD=1 AC_CHECK_FUNCS(poptGetContext,, [AC_CHECK_LIB(popt,poptGetContext,,[AC_MSG_WARN([No popt development environment found, not building this plugin]) && DNS_BUILD=0])]) diff --git a/SRC/plugins/whois/configure.ac b/SRC/plugins/whois/configure.ac index 7caeb63..512bcb4 100644 --- a/SRC/plugins/whois/configure.ac +++ b/SRC/plugins/whois/configure.ac @@ -7,6 +7,19 @@ dnl Checks for programs. AC_PROG_CC AC_PROG_INSTALL +AC_ARG_WITH(popt, + [--with-popt[=DIR] popt command-line parsing library],dnl + [if test "$withval" != "no"; then + if test "$withval" != "yes"; then + POPTROOT=$withval + LDFLAGS="${LDFLAGS} -L$POPTROOT/lib" + CPPFLAGS="${CPPFLAGS} -I$POPTROOT/include" + fi + else + AC_MSG_ERROR([The popt command-line parsing library is mandatory for this plugin]) + fi], +) + WHOIS_BUILD=1 AC_CHECK_FUNCS(poptGetContext,, [AC_CHECK_LIB(popt,poptGetContext,,[AC_MSG_WARN([No popt development environment found, not building this plugin]) && WHOIS_BUILD=0])])