2004-04-09 13:05:16 +00:00
|
|
|
dnl $Id$
|
|
|
|
|
|
|
|
AC_INIT(whois.c)
|
|
|
|
AC_CONFIG_HEADERS(config.h)
|
|
|
|
|
|
|
|
dnl Checks for programs.
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
|
2004-05-27 12:12:06 +00:00
|
|
|
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],
|
|
|
|
)
|
|
|
|
|
2004-04-09 13:05:16 +00:00
|
|
|
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])])
|
|
|
|
AC_SUBST(WHOIS_BUILD,$WHOIS_BUILD)
|
|
|
|
AC_OUTPUT(Makefile)
|
|
|
|
|