Pull fix from branch_1_1
[freeradius.git] / src / modules / rlm_checkval / configure.in
1 AC_PREREQ([2.53])
2 AC_INIT(rlm_checkval.c)
3 AC_REVISION($Revision$)
4 AC_DEFUN(modname,[rlm_checkval])
5
6 if test x$with_[]modname != xno; then
7
8         AC_PROG_CC
9         AC_PROG_CPP
10
11         targetname=modname
12 else
13         targetname=
14         echo \*\*\* module modname is disabled.
15 fi
16
17 dnl  Don't change this section.
18 if test x"$fail" != x""; then
19         if test x"${enable_strict_dependencies}" = x"yes"; then
20                 AC_MSG_ERROR([set --without-]modname[ to disable it explicitly.])
21         else
22                 AC_MSG_WARN([silently not building ]modname[.])
23                 AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.]); 
24                 targetname=""
25         fi
26 fi
27
28
29 AC_SUBST(checkval_cflags)
30 AC_SUBST(checkval_ldflags)
31
32 AC_SUBST(targetname)
33 AC_OUTPUT(Makefile)