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])
7 LT_INIT([dlopen disable-static])
11 AC_CONFIG_HEADERS([config.h])
14 dnl Check if we're on Solaris and set CFLAGS accordingly
15 dnl AC_CANONICAL_TARGET
16 dnl case "${target_os}" in
18 dnl TARGET_CFLAGS="-DSYS_SOLARIS9 -D_POSIX_PTHREAD_SEMANTICS"
19 dnl if test "$GCC" != yes ; then
20 dnl TARGET_CFLAGS="$TARGET_CFLAGS -mt"
22 dnl TARGET_CFLAGS="$TARGET_CFLAGS -pthreads"
24 dnl TARGET_LDFLAGS="-lpthread -lsocket -lnsl"
27 dnl TARGET_CFLAGS="-Wall -pedantic -pthread"
33 [ --enable-reauth whether to enable fast reauthentication protocol: yes/no; default no ],
34 [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
37 echo "--enable-reauth argument must be yes or no"
42 if test "x$reauth" = "xyes" ; then
43 echo "Fast reauthentication protocol enabled"
44 TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_REAUTH"
46 AM_CONDITIONAL(GSSEAP_ENABLE_REAUTH, test "x$reauth" != "xno")
48 AC_SUBST(TARGET_CFLAGS)
49 AC_SUBST(TARGET_LDFLAGS)
56 AC_CONFIG_FILES([Makefile libeap/Makefile mech_eap/Makefile])