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 AC_USE_SYSTEM_EXTENSIONS
10 LT_INIT([dlopen disable-static win32-dll])
14 AC_CONFIG_HEADERS([config.h])
16 dnl Check if we're on Solaris and set CFLAGS accordingly
17 dnl AC_CANONICAL_TARGET
18 dnl case "${target_os}" in
20 dnl TARGET_CFLAGS="-DSYS_SOLARIS9 -D_POSIX_PTHREAD_SEMANTICS"
21 dnl if test "$GCC" != yes ; then
22 dnl TARGET_CFLAGS="$TARGET_CFLAGS -mt"
24 dnl TARGET_CFLAGS="$TARGET_CFLAGS -pthreads"
26 dnl TARGET_LDFLAGS="-lpthread -lsocket -lnsl"
29 dnl TARGET_CFLAGS="-Wall -pedantic -pthread"
35 [ --enable-reauth whether to enable fast reauthentication protocol: yes/no; default no ],
36 [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
39 echo "--enable-reauth argument must be yes or no"
44 if test "x$reauth" = "xyes" ; then
45 echo "Fast reauthentication protocol enabled"
46 TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_REAUTH"
48 AM_CONDITIONAL(GSSEAP_ENABLE_REAUTH, test "x$reauth" != "xno")
51 AC_ARG_ENABLE(acceptor,
52 [ --enable-acceptor whether to enable acceptor codepaths: yes/no; default yes ],
53 [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
56 echo "--enable-acceptor argument must be yes or no"
61 if test "x$acceptor" = "xyes" ; then
62 echo "acceptor enabled"
63 TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_ACCEPTOR"
65 AM_CONDITIONAL(GSSEAP_ENABLE_ACCEPTOR, test "x$acceptor" != "xno")
67 AC_SUBST(TARGET_CFLAGS)
68 AC_SUBST(TARGET_LDFLAGS)
70 AM_CONDITIONAL(HEIMDAL, test "x$heimdal" != "xno")
72 if test "x$acceptor" = "xyes" ; then
78 AC_CONFIG_FILES([Makefile libeap/Makefile mech_eap/Makefile])