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
11 LT_INIT([dlopen disable-static win32-dll])
15 AC_CONFIG_HEADERS([config.h])
16 AC_CHECK_HEADERS(stdarg.h stdio.h stdint.h sys/param.h)
17 AC_REPLACE_FUNCS(vasprintf)
19 dnl Check if we're on Solaris and set CFLAGS accordingly
20 dnl AC_CANONICAL_TARGET
21 dnl case "${target_os}" in
23 dnl TARGET_CFLAGS="-DSYS_SOLARIS9 -D_POSIX_PTHREAD_SEMANTICS"
24 dnl if test "$GCC" != yes ; then
25 dnl TARGET_CFLAGS="$TARGET_CFLAGS -mt"
27 dnl TARGET_CFLAGS="$TARGET_CFLAGS -pthreads"
29 dnl TARGET_LDFLAGS="-lpthread -lsocket -lnsl"
32 dnl TARGET_CFLAGS="-Wall -pedantic -pthread"
38 [ --enable-reauth whether to enable fast reauthentication protocol: yes/no; default no ],
39 [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
42 echo "--enable-reauth argument must be yes or no"
47 if test "x$reauth" = "xyes" ; then
48 echo "Fast reauthentication protocol enabled"
49 TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_REAUTH"
51 AM_CONDITIONAL(GSSEAP_ENABLE_REAUTH, test "x$reauth" != "xno")
54 AC_ARG_ENABLE(acceptor,
55 [ --enable-acceptor whether to enable acceptor codepaths: yes/no; default yes ],
56 [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
59 echo "--enable-acceptor argument must be yes or no"
64 if test "x$acceptor" = "xyes" ; then
65 echo "acceptor enabled"
66 TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_ACCEPTOR"
68 AM_CONDITIONAL(GSSEAP_ENABLE_ACCEPTOR, test "x$acceptor" != "xno")
70 AC_SUBST(TARGET_CFLAGS)
71 AC_SUBST(TARGET_LDFLAGS)
75 AM_CONDITIONAL(OPENSAML, test "x_$check_opensaml_dir" != "x_no")
78 AM_CONDITIONAL(SHIBRESOLVER, test "x_$check_shibresolver_dir" != "x_no")
79 if test x_$found_shibresolver = x_yes; then
83 if test "x$acceptor" = "xyes" ; then
89 AC_CONFIG_FILES([Makefile libeap/Makefile mech_eap/Makefile])