1 dnl Based on the one from the Boinc project by Reinhard
3 AC_DEFUN([AX_CHECK_KRB5],
4 [AC_MSG_CHECKING(for GSS-API and Kerberos implementation)
8 AC_HELP_STRING([--with-krb5],
9 [Use krb5 (in specified installation directory)]),
10 [check_krb5_dir="$withval"],
12 for dir in $check_krb5_dir /usr /usr/local ; do
14 if test -f "$dir/include/krb5.h"; then
17 KRB5_CFLAGS="-I$krb5dir/include";
21 AC_MSG_RESULT($found_krb5)
22 if test x_$found_krb5 != x_yes; then
24 ----------------------------------------------------------------------
25 Cannot find GSS-API/Kerberos libraries.
27 Please install MIT or Heimdal or specify installation directory with
29 ----------------------------------------------------------------------
32 printf "Kerberos found in $krb5dir\n";
33 KRB5_LIBS="-lgssapi_krb5 -lkrb5";
34 KRB5_LDFLAGS="-L$krb5dir/lib";
36 AC_SUBST(KRB5_LDFLAGS)
41 AC_DEFUN([AX_CHECK_EAP],
42 [AC_MSG_CHECKING(for EAP implementation)
46 AC_HELP_STRING([--with-eap],
47 [Use eap (in specified installation directory)]),
48 [check_eap_dir="$withval"],
50 for dir in $check_eap_dir /usr /usr/local ; do
52 if test -f "$dir/src/eap_peer/eap.h"; then
55 EAP_CFLAGS="-I$eapdir/src/common -I$eapdir/src -I$eapdir/src/utils";
59 AC_MSG_RESULT($found_eap)
60 if test x_$found_eap != x_yes; then
62 ----------------------------------------------------------------------
63 Cannot find EAP libraries.
65 Please install wpa_supplicant or specify installation directory with
67 ----------------------------------------------------------------------
70 printf "EAP found in $eapdir\n";
71 EAP_CFLAGS="$EAP_CFLAGS \
85 -DEAP_SERVER_IDENTITY \
90 -DEAP_SERVER_MSCHAPV2 \
96 -DEAP_SERVER_GPSK_SHA256 \
98 EAP_LIBS="-leap -lutils -lcrypto -ltls";
99 EAP_LDFLAGS="-L$eapdir/eap_example -L$eapdir/src/utils -L$eapdir/src/crypto -L$eapdir/src/tls";
101 AC_SUBST(EAP_LDFLAGS)