2 AC_INIT(rlm_sql_log.c) # change 'example'
3 AC_REVISION($Revision$)
4 AC_DEFUN(modname,[rlm_sql_log]) # change 'example'
6 if test x$with_[]modname != xno; then
11 dnl put configuration checks here.
12 dnl set $fail to what's missing, on fatal errors.
13 dnl use AC_MSG_WARN() on important messages.
14 AC_CHECK_LIB(c, printf,
15 [ sql_log_ldflags="$sql_log_ldflags -lc" ],
16 [ fail=$fail" printf" ]
19 AC_CHECK_HEADER(stdio.h,
20 [ sql_log_cflags="$sql_log_cflags -I/usr/include" ],
21 [ fail=$fail" stdio.h" ]
24 AC_CHECK_HEADERS(stdio.h stdlib.h) # for the config.h defs
25 AC_CHECK_FUNCS(printf) # for the config.h defs
27 targetname=modname # keep this! Don't change!
29 targetname= # keep this! Don't change!
30 echo \*\*\* module modname is disabled. # keep this! Don't change!
33 dnl Don't change this section.
34 if test x"$fail" != x""; then
35 if test x"${enable_strict_dependencies}" = x"yes"; then
36 AC_MSG_ERROR([set --without-]modname[ to disable it explicitly.])
38 AC_MSG_WARN([silently not building ]modname[.])
39 AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.]);
44 AC_SUBST(sql_log_cflags) # change 'example'
45 AC_SUBST(sql_log_ldflags) # change 'example'
46 AC_SUBST(targetname) # keep this! Don't change!
47 AC_OUTPUT(Makefile) # keep this! Don't change!