--- hydra/configure.in 2002/09/27 10:35:54 1.5 +++ hydra/configure.in 2002/09/27 23:40:28 1.6 @@ -1,4 +1,4 @@ -dnl $Id: configure.in,v 1.5 2002/09/27 10:35:54 nmav Exp $ +dnl $Id: configure.in,v 1.6 2002/09/27 23:40:28 nmav Exp $ dnl Process this file with autoconf to produce a configure script. AC_PREREQ(2.50) @@ -190,6 +190,28 @@ CFLAGS="$CFLAGS -D_REENTRANT" fi +use_hic=yes + +AC_MSG_CHECKING(whether to include HIC (internally handled CGIs) support) +AC_ARG_ENABLE(hic, [ --disable-hic Do not include HIC support], + [ + if test "$enableval" = "yes" ; then + use_hic=yes + else + use_hic=no + fi + ] +) + +AC_MSG_RESULT($use_hic) + +if test "$use_hic" = "yes"; then + AC_CHECK_LIB(dl, dlopen, + LIBS="$LIBS -ldl" + AC_DEFINE( ENABLE_HIC, 1, [whether to use HIC code]) + ) +fi + if test $ac_cv_func_strdup = no -o $ac_cv_func_strstr = no; then # strdup or strstr not defined