3 AC_REVISION($Revision$)
4 AC_DEFUN(modname,[rlm_unix])
6 if test x$with_[]modname != xno; then
11 AC_MSG_CHECKING(for system password file)
12 if test -f /etc/passwd; then
13 AC_MSG_RESULT(/etc/passwd)
15 AC_MSG_RESULT(no /etc/passwd file.)
16 [ fail=$fail" /etc/passwd" ],
20 AC_MSG_CHECKING(for system shadow password file)
21 if test -f /etc/shadow; then
22 AC_MSG_RESULT(/etc/shadow)
24 AC_MSG_RESULT(no /etc/shadow file.)
27 AC_CHECK_HEADERS(shadow.h)
28 AC_CHECK_FUNCS(getspnam getusershell)
30 AC_CHECK_LIB(shadow, getspnam,
32 unix_ldflags="${unix_ldflags} -lshadow"
33 AC_DEFINE(HAVE_GETSPNAM)
40 echo \*\*\* module modname is disabled.
43 if test x"$fail" != x""; then
44 if test x"${enable_strict_dependencies}" = x"yes"; then
45 AC_MSG_ERROR([set --without-]modname[ to disable it explicitly.])
47 AC_MSG_WARN([silently not building ]modname[.])
48 AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.]);
53 AC_SUBST(unix_ldflags)
56 AC_CONFIG_HEADER(config.h)