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