silent-rules unknown with my version of automake
[moonshot.git] / moonshot / configure.ac
1 AC_PREREQ([2.61])
2 AC_INIT([mech_eap], [0.1], [bugs@project-moonshot.org])
3 dnl AC_CONFIG_MACRO_DIR([m4])
4 dnl AM_INIT_AUTOMAKE([silent-rules])
5 AM_INIT_AUTOMAKE
6 LT_PREREQ([2.2])
7 LT_INIT([dlopen disable-static])
8
9 AC_PROG_CC
10 AC_PROG_CXX
11 AC_CONFIG_HEADERS([config.h])
12 AC_GNU_SOURCE
13
14 dnl Check if we're on Solaris and set CFLAGS accordingly
15 dnl AC_CANONICAL_TARGET
16 dnl case "${target_os}" in
17 dnl   solaris*)
18 dnl     TARGET_CFLAGS="-DSYS_SOLARIS9 -D_POSIX_PTHREAD_SEMANTICS"
19 dnl     if test "$GCC" != yes ; then
20 dnl       TARGET_CFLAGS="$TARGET_CFLAGS -mt"
21 dnl     else
22 dnl       TARGET_CFLAGS="$TARGET_CFLAGS -pthreads"
23 dnl     fi
24 dnl     TARGET_LDFLAGS="-lpthread -lsocket -lnsl"
25 dnl     ;;
26 dnl   *)
27 dnl     TARGET_CFLAGS="-Wall -pedantic -pthread"
28 dnl     TARGET_LDFLAGS=""
29 dnl   esac
30
31 reauth=no
32 AC_ARG_ENABLE(reauth,
33   [  --enable-reauth whether to enable fast reauthentication protocol: yes/no; default no ],
34   [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
35       reauth=$enableval
36     else
37       echo "--enable-reauth argument must be yes or no"
38       exit -1
39     fi
40   ])
41
42 if test "x$reauth" = "xyes" ; then
43   echo "Fast reauthentication protocol enabled"
44   TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_REAUTH"
45 fi
46 AM_CONDITIONAL(GSSEAP_ENABLE_REAUTH, test "x$reauth" != "xno")
47
48 AC_SUBST(TARGET_CFLAGS)
49 AC_SUBST(TARGET_LDFLAGS)
50 AX_CHECK_KRB5
51 dnl AX_CHECK_EAP
52 AX_CHECK_SHIBSP
53 AX_CHECK_SHIBRESOLVER
54 AX_CHECK_RADSEC
55 AX_CHECK_JANSSON
56 AC_CONFIG_FILES([Makefile libeap/Makefile mech_eap/Makefile])
57 AC_OUTPUT