Merge pull request #700 from mcnewton/rlm_files
[freeradius.git] / src / modules / rlm_sqlcounter / configure.ac
1 AC_PREREQ([2.53])
2 AC_INIT(rlm_sqlcounter.c)
3 AC_REVISION($Revision$)
4 AC_DEFUN(modname,[rlm_sqlcounter])
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 if test x"$fail" != x""; then
18         if test x"${enable_strict_dependencies}" = x"yes"; then
19                 AC_MSG_ERROR([set --without-]modname[ to disable it explicitly.])
20         else
21                 AC_MSG_WARN([silently not building ]modname[.])
22                 AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.]);
23                 targetname=""
24         fi
25 fi
26
27 mod_ldflags="$SMART_LIBS"
28 mod_cflags="$SMART_CPPFLAGS"
29 AC_SUBST(mod_ldflags)
30 AC_SUBST(mod_cflags)
31 AC_SUBST(targetname)
32 AC_OUTPUT(all.mk)