When we have a tunneled MS-CHAP2-Success attribute, it goes
[freeradius.git] / src / modules / rlm_eap / types / rlm_eap_tls / configure.in
1 #
2 # Autoconf input file.
3 #
4 # Version:      $Id$
5 #
6
7 AC_INIT(rlm_eap_tls.c)
8 AC_REVISION($Revision$)
9 AC_DEFUN(modname,[rlm_eap_tls])
10
11 fail=
12 eap_tls_ldflags=
13 eap_tls_cflags=
14
15 if test x$with_[]modname != xno; then
16
17         dnl ############################################################
18         dnl # Check for command line options
19         dnl ############################################################
20
21         AC_ARG_WITH(rlm-eap-tls-lib-dir,
22         [  --with-rlm-eap-tls-lib-dir       directory for eap-tls libs],
23         eap_tls_ldflags="-L$withval")
24
25         AC_ARG_WITH(rlm-eap-tls-include-dir,
26         [  --with-rlm-eap-tls-include-dir   directory for eap-tls includes],
27         eap_tls_cflags="-I$withval")
28
29         dnl ############################################################
30         dnl # Check for OpenSSL support
31         dnl ############################################################
32
33         AC_MSG_CHECKING(for OpenSSL support)
34         if test "x$OPENSSL_LIBS" != "x"; then
35                 AC_MSG_RESULT(yes)
36         else
37                 AC_MSG_RESULT(no)
38                 fail="OpenSSL"
39         fi
40
41         targetname=modname
42 else
43         targetname=
44         echo \*\*\* module modname is disabled.
45 fi
46
47 if test x"$fail" != x""; then
48         if test x"${enable_strict_dependencies}" = x"yes"; then
49                 AC_MSG_ERROR([set --without-]modname[ to disable it explicitly.])
50         else
51                 AC_MSG_WARN([silently not building ]modname[.])
52                 AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.])
53                 if test x"$headersuggestion" != x; then
54                         AC_MSG_WARN([$headersuggestion])
55                 fi
56                 if test x"$libsuggestion" != x; then
57                         AC_MSG_WARN([$libsuggestion])
58                 fi
59                 targetname=""
60         fi
61 fi
62
63 AC_SUBST(eap_tls_ldflags)
64 AC_SUBST(eap_tls_cflags)
65 AC_SUBST(targetname)
66 AC_CONFIG_HEADER([config.h])
67 AC_OUTPUT(Makefile)