2 AC_INIT([mech_eap], [0.1], [bugs@project-moonshot.org])
3 dnl AC_CONFIG_MACRO_DIR([m4])
6 LT_INIT([dlopen disable-static])
10 AC_CONFIG_HEADERS([config.h])
13 dnl Check if we're on Solaris and set CFLAGS accordingly
14 dnl AC_CANONICAL_TARGET
15 dnl case "${target_os}" in
17 dnl TARGET_CFLAGS="-DSYS_SOLARIS9 -D_POSIX_PTHREAD_SEMANTICS"
18 dnl if test "$GCC" != yes ; then
19 dnl TARGET_CFLAGS="$TARGET_CFLAGS -mt"
21 dnl TARGET_CFLAGS="$TARGET_CFLAGS -pthreads"
23 dnl TARGET_LDFLAGS="-lpthread -lsocket -lnsl"
26 dnl TARGET_CFLAGS="-Wall -pedantic -pthread"
32 [ --enable-reauth whether to enable fast reauthentication protocol: yes/no; default no ],
33 [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
36 echo "--enable-reauth argument must be yes or no"
41 if test "x$reauth" = "xyes" ; then
42 echo "Fast reauthentication protocol enabled"
43 TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_REAUTH"
45 AM_CONDITIONAL(GSSEAP_ENABLE_REAUTH, test "x$reauth" != "xno")
47 AC_SUBST(TARGET_CFLAGS)
48 AC_SUBST(TARGET_LDFLAGS)
54 AC_CONFIG_FILES([Makefile])