2 AC_REVISION($Revision$)
3 AC_DEFUN(modname,[rlm_pam])
5 if test x$with_[]modname != xno; then
10 AC_CHECK_LIB(dl, dlopen,
11 [ pam_ldflags="-ldl" ]
14 AC_CHECK_LIB(pam, pam_start,
15 [ pam_ldflags="-lpam $pam_ldflags" ],
16 [ fail=$fail" libpam" ],
21 dnl # Yes, these DO have to be on seperate lines,
22 dnl # otherwise autoheader won't pick them up.
33 echo \*\*\* module modname is disabled.
36 if test x"$fail" != x""; then
37 if test x"${enable_strict_dependencies}" = x"yes"; then
38 AC_MSG_ERROR([set --without-]modname[ to disable it explicitly.])
40 AC_MSG_WARN([silently not building ]modname[.])
41 AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.]);
49 AC_CONFIG_HEADER(config.h)