3 AC_CONFIG_HEADER(config.h)
4 AC_REVISION($Revision$)
5 AC_DEFUN(modname,[rlm_smb])
7 if test x$with_[]modname != xno; then
12 dnl extra argument: --with-rlm-smb-lib-dir
14 AC_ARG_WITH(rlm-smb-lib-dir,
15 [ --with-rlm-smb-lib-dir=DIR Directory for samba library files []],
18 AC_MSG_ERROR(Need rlm-smb-lib-dir)
23 rlm_smb_lib_dir="$withval"
28 dnl extra argument: --with-rlm-smb-include-dir
30 AC_ARG_WITH(rlm-smb-include-dir,
31 [ --with-rlm-smb-include-dir=DIR Directory for samba include files []],
34 AC_MSG_ERROR(Need rlm-smb-include-dir)
39 rlm_smb_include_dir="$withval"
44 AC_CHECK_HEADERS(arpa/inet.h \
62 echo \*\*\* module modname is disabled.
65 if test x"$fail" != x""; then
66 if test x"${enable_strict_dependencies}" = x"yes"; then
67 AC_MSG_ERROR([set --without-]modname[ to disable it explicitly.])
69 AC_MSG_WARN([silently not building ]modname[.])
70 AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.]);