2 AC_INIT([mech_eap], [0.9.2], [bugs@project-moonshot.org])
3 AC_CONFIG_MACRO_DIR([m4])
4 AC_CONFIG_AUX_DIR([build-aux])
6 dnl AM_INIT_AUTOMAKE([silent-rules])
7 AC_USE_SYSTEM_EXTENSIONS
12 LT_INIT([dlopen disable-static win32-dll])
16 AC_CONFIG_HEADERS([config.h])
17 AC_CHECK_HEADERS(stdarg.h stdio.h stdint.h sys/param.h stdlib.h)
18 AC_REPLACE_FUNCS(vasprintf)
19 AC_CHECK_FUNCS([ secure_getenv])
21 dnl Check if we're on Solaris and set CFLAGS accordingly
22 dnl AC_CANONICAL_TARGET
23 dnl case "${target_os}" in
25 dnl TARGET_CFLAGS="-DSYS_SOLARIS9 -D_POSIX_PTHREAD_SEMANTICS"
26 dnl if test "$GCC" != yes ; then
27 dnl TARGET_CFLAGS="$TARGET_CFLAGS -mt"
29 dnl TARGET_CFLAGS="$TARGET_CFLAGS -pthreads"
31 dnl TARGET_LDFLAGS="-lpthread -lsocket -lnsl"
34 dnl TARGET_CFLAGS="-Wall -pedantic -pthread"
40 [ --enable-reauth whether to enable fast reauthentication protocol: yes/no; default no ],
41 [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
44 echo "--enable-reauth argument must be yes or no"
49 if test "x$reauth" = "xyes" ; then
50 echo "Fast reauthentication protocol enabled"
51 TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_REAUTH"
53 AM_CONDITIONAL(GSSEAP_ENABLE_REAUTH, test "x$reauth" != "xno")
56 AC_ARG_ENABLE(acceptor,
57 [ --enable-acceptor whether to enable acceptor codepaths: yes/no; default yes ],
58 [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
61 echo "--enable-acceptor argument must be yes or no"
66 if test "x$acceptor" = "xyes" ; then
67 echo "acceptor enabled"
68 TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_ACCEPTOR"
70 AM_CONDITIONAL(GSSEAP_ENABLE_ACCEPTOR, test "x$acceptor" != "xno")
72 AC_SUBST(TARGET_CFLAGS)
73 AC_SUBST(TARGET_LDFLAGS)
77 AM_CONDITIONAL(OPENSAML, test "x_$check_opensaml_dir" != "x_no")
79 if test "x$target_windows" = "xyes"; then
80 # Windows Installer XML tools
81 AC_PATH_PROG([WIX_CANDLE], [candle], no,
82 [/c/Program\ Files/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR$PATH])
83 AC_PATH_PROG([WIX_LIGHT], [light], no,
84 [/c/Program\ Files/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR$PATH])
85 AC_PATH_PROG([WIX_LIT], [lit], no,
86 [/c/Program\ Files/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR$PATH])
88 if test "$WIX_CANDLE" = "no" || test "$WIX_LIGHT" = "no" || test "$WIX_LIT" = "no"; then
90 *** Could not find the Windows Installer XML tools. These are required
91 *** for the 'make installer' target. Use the WIX_CANDLE, WIX_LIGHT,and
92 *** WIX_LIT environment variables to pass their locations if they are
93 *** outside the PATH.])
97 AM_CONDITIONAL(SHIBRESOLVER, test "x_$check_shibresolver_dir" != "x_no")
98 if test x_$found_shibresolver = x_yes; then
104 if test "x$acceptor" = "xyes" ; then
110 AC_CONFIG_FILES([Makefile libeap/Makefile mech_eap/Makefile