3 AC_REVISION($Revision$)
4 AC_DEFUN(modname,[rlm_ippool])
6 if test x$with_[]modname != xno; then
11 FR_SMART_CHECK_INCLUDE(gdbm.h)
12 FR_SMART_CHECK_LIB(gdbm, gdbm_open)
13 if test "x$ac_cv_lib_gdbm_gdbm_open" != "xyes"; then
17 if test "x$fail" = "x"; then
18 AC_MSG_CHECKING(to see GDBM_SYNC status)
19 AC_EGREP_CPP(found-gdbm-sync, [
24 not found. this version must use sync by default.
27 AC_DEFINE(NEED_GDBM_SYNC, yes)
28 AC_MSG_RESULT(needs it.)
30 AC_MSG_RESULT(SYNCs by default.)
36 LIBS="$LIBS $SMART_LIBS"
37 AC_CHECK_FUNC(gdbm_fdesc)
38 if test "x$ac_cv_func_gdbm_fdesc" = "xyes";
40 AC_DEFINE(HAVE_GDBM_FDESC)
47 echo \*\*\* module modname is disabled.
50 if test x"$fail" != x""; then
51 if test x"${enable_strict_dependencies}" = x"yes"; then
52 AC_MSG_ERROR([set --without-]modname[ to disable it explicitly.])
54 AC_MSG_WARN([silently not building ]modname[.])
55 AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.]);
60 if test x"$targetname" != x""; then
61 ippool_utils="rlm_ippool_tool"
62 ippool_install="rlm_ippool_install"
65 ippool_ldflags=$SMART_LIBS
66 ippool_cflags=$SMART_CFLAGS
67 AC_SUBST(ippool_ldflags)
68 AC_SUBST(ippool_cflags)
70 AC_SUBST(ippool_utils)
71 AC_SUBST(ippool_install)
72 AC_CONFIG_HEADER(config.h)