2 AC_REVISION($Revision$)
3 AC_DEFUN(modname,[rlm_mschap])
5 if test x$with_[]modname != xno; then
10 FR_SMART_CHECK_INCLUDE(membership.h)
11 if test "x$ac_cv_header_membership_h" = "xyes"; then
12 AC_DEFINE([HAVE_MEMBERSHIP_H],[1],[Build with Apple Open Directory support])
13 mschap_sources+="opendir.c"
14 mod_ldflags+=" -framework DirectoryService"
19 echo \*\*\* module modname is disabled.
22 if test x"$fail" != x""; then
23 if test x"${enable_strict_dependencies}" = x"yes"; then
24 AC_MSG_ERROR([set --without-]modname[ to disable it explicitly.])
26 AC_MSG_WARN([silently not building ]modname[.])
27 AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.]);
32 AC_SUBST(mschap_sources)
37 AC_CONFIG_HEADER(config.h)
38 AC_OUTPUT(rlm_mschap.mk)