3 AC_REVISION($Revision$)
4 AC_DEFUN(modname,[rlm_otp])
7 if test x$with_[]modname != xno; then
9 dnl put configuration checks here.
10 dnl set $fail to what's missing, on fatal errors.
11 dnl use AC_MSG_WARN() on important messages.
13 dnl test for almost-c99 compliant compiler
14 AC_CHECK_HEADER(inttypes.h, ,
15 [ fail="$fail inttypes.h" ]
18 if test "x$OPENSSL_LIBS" = "x"; then
22 targetname=modname # keep this! Don't change!
24 targetname= # keep this! Don't change!
25 echo \*\*\* module modname is disabled. # keep this! Don't change!
28 dnl Don't change this section.
29 if test x"$fail" != x""; then
30 if test x"${enable_strict_dependencies}" = x"yes"; then
31 AC_MSG_ERROR([set --without-]modname[ to disable it explicitly.])
33 AC_MSG_WARN([silently not building ]modname[.])
34 AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.]);
39 otp_cflags="$otp_cflags -DOTP_MODULE_NAME=\\\"modname\\\" $SMART_CFLAGS"
40 otp_cflags="$otp_cflags -DFREERADIUS"
44 AC_SUBST(targetname) # keep this! Don't change!
45 AC_OUTPUT(Makefile) # keep this! Don't change!