X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=configure.ac;h=4b8bfde04f2c6b14e1c664e3405ba4a97d59a4ff;hb=26311844916784cc0781b1a304b590dff5742fcb;hp=9f95e441df98c782303fb660dbe086165669c813;hpb=d3586fddc2afb973dcc83daf1f3247e28b27abb4;p=mech_eap.git diff --git a/configure.ac b/configure.ac index 9f95e44..4b8bfde 100644 --- a/configure.ac +++ b/configure.ac @@ -1,13 +1,21 @@ -AC_PREREQ([2.61]) -AC_INIT([mech_eap], [0.1], [bugs@project-moonshot.org]) -dnl AC_CONFIG_MACRO_DIR([m4]) +/AC_PREREQ([2.61]) +AC_INIT([mech_eap], [0.9], [bugs@project-moonshot.org]) +AC_CONFIG_MACRO_DIR([m4]) +AC_CONFIG_AUX_DIR([build-aux]) + +dnl AM_INIT_AUTOMAKE([silent-rules]) +AC_USE_SYSTEM_EXTENSIONS AM_INIT_AUTOMAKE +AM_PROG_CC_C_O +AM_MAINTAINER_MODE() LT_PREREQ([2.2]) -LT_INIT([dlopen disable-static]) +LT_INIT([dlopen disable-static win32-dll]) -AC_PROG_CC +dnl AC_PROG_CC AC_PROG_CXX AC_CONFIG_HEADERS([config.h]) +AC_CHECK_HEADERS(stdarg.h stdio.h stdint.h sys/param.h) +AC_REPLACE_FUNCS(vasprintf) dnl Check if we're on Solaris and set CFLAGS accordingly dnl AC_CANONICAL_TARGET @@ -26,11 +34,61 @@ dnl TARGET_CFLAGS="-Wall -pedantic -pthread" dnl TARGET_LDFLAGS="" dnl esac +reauth=no +AC_ARG_ENABLE(reauth, + [ --enable-reauth whether to enable fast reauthentication protocol: yes/no; default no ], + [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then + reauth=$enableval + else + echo "--enable-reauth argument must be yes or no" + exit -1 + fi + ]) + +if test "x$reauth" = "xyes" ; then + echo "Fast reauthentication protocol enabled" + TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_REAUTH" +fi +AM_CONDITIONAL(GSSEAP_ENABLE_REAUTH, test "x$reauth" != "xno") + +acceptor=yes +AC_ARG_ENABLE(acceptor, + [ --enable-acceptor whether to enable acceptor codepaths: yes/no; default yes ], + [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then + acceptor=$enableval + else + echo "--enable-acceptor argument must be yes or no" + exit -1 + fi + ]) + +if test "x$acceptor" = "xyes" ; then + echo "acceptor enabled" + TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_ACCEPTOR" +fi +AM_CONDITIONAL(GSSEAP_ENABLE_ACCEPTOR, test "x$acceptor" != "xno") + AC_SUBST(TARGET_CFLAGS) AC_SUBST(TARGET_LDFLAGS) +AX_CHECK_WINDOWS AX_CHECK_KRB5 -AX_CHECK_EAP -AX_CHECK_SHIBSP +AX_CHECK_OPENSAML +AM_CONDITIONAL(OPENSAML, test "x_$check_opensaml_dir" != "x_no") + AX_CHECK_SHIBRESOLVER -AC_CONFIG_FILES([Makefile]) +AM_CONDITIONAL(SHIBRESOLVER, test "x_$check_shibresolver_dir" != "x_no") +if test x_$found_shibresolver = x_yes; then + AX_CHECK_SHIBSP +fi + +AX_CHECK_OPENSSL + +if test "x$acceptor" = "xyes" ; then + AX_CHECK_RADSEC + AX_CHECK_JANSSON +fi + +AX_CHECK_LIBMOONSHOT +AC_CONFIG_FILES([Makefile libeap/Makefile mech_eap/Makefile + mech_eap.spec]) AC_OUTPUT