Made it 2.0.0, and removed the changes that are in 1.1.x, as
[freeradius.git] / src / modules / rlm_otp / configure.in
1 AC_PREREQ([2.53])
2 AC_INIT(otp_rlm.c)
3 AC_REVISION($Revision$)
4 AC_DEFUN(modname,[rlm_otp])
5
6 SMART_CFLAGS=
7 if test x$with_[]modname != xno; then
8
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.
12
13         dnl test for almost-c99 compliant compiler
14         AC_CHECK_HEADER(inttypes.h, ,
15                 [ fail="$fail inttypes.h" ]
16         )
17
18         if test "x$OPENSSL_LIBS" = "x"; then
19                 fail="$fail OpenSSL"
20         fi
21
22         targetname=modname     # keep this!  Don't change!
23 else
24         targetname=            # keep this!  Don't change!
25         echo \*\*\* module modname is disabled.  # keep this!  Don't change!
26 fi
27
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.])
32         else
33                 AC_MSG_WARN([silently not building ]modname[.])
34                 AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.]); 
35                 targetname=""
36         fi
37 fi
38
39 otp_cflags="$otp_cflags -DOTP_MODULE_NAME=\\\"modname\\\" $SMART_CFLAGS"
40 otp_cflags="$otp_cflags -DFREERADIUS"
41 AC_SUBST(otp_cflags)
42 AC_SUBST(otp_ldflags)
43
44 AC_SUBST(targetname)  # keep this!  Don't change!
45 AC_OUTPUT(Makefile)  # keep this!  Don't change!