This repository was archived by the owner on Oct 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.in
More file actions
109 lines (94 loc) · 2.52 KB
/
Copy pathconfigure.in
File metadata and controls
109 lines (94 loc) · 2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
AC_PREREQ([2.53])
AC_INIT(rlm_fnasso.c)
AC_REVISION($Revision$)
AC_DEFUN(modname,[rlm_fnasso])
if test x$with_[]modname != xno; then
AC_PROG_CC
AC_PROG_CPP
dnl extra argument: --with-rlm-krb5-lib-dir
rlm_fnasso_lib_dir=
AC_ARG_WITH(rlm-krb5-lib-dir,
[ --with-rlm-krb5-lib-dir=DIR Directory for krb5 library files []],
[ case "$withval" in
no)
AC_MSG_ERROR(Need rlm-krb5-lib-dir)
;;
yes)
;;
*)
rlm_fnasso_lib_dir="$withval"
;;
esac ]
)
dnl extra argument: --with-rlm-krb5-include-dir
rlm_fnasso_inc_dir=
AC_ARG_WITH(rlm-krb5-include-dir,
[ --with-rlm-krb5-include-dir=DIR Directory for krb5 include files []],
[ case "$withval" in
no)
AC_MSG_ERROR(Need rlm-krb5-include-dir)
;;
yes)
;;
*)
rlm_fnasso_include_dir="$withval"
;;
esac ]
)
dnl extra argument: --enable-heimdal-krb5
AC_ARG_ENABLE(heimdal-krb5,
[ --enable-heimdal-krb5 Enable if you have heimdal krb5],
[ case "$enableval" in
yes)
krb5_h_cflags="-DHEIMDAL_KRB5"
;;
esac ]
)
smart_try_dir=$rlm_fnasso_include_dir
FR_SMART_CHECK_INCLUDE(krb5.h)
if test "$ac_cv_header_krb5_h" != "yes"; then
fail="$fail krb5.h"
fi
krb5libcrypto=
smart_try_dir=$rlm_fnasso_lib_dir
FR_SMART_CHECK_LIB(k5crypto, krb5_encrypt_data)
if test "x$ac_cv_lib_k5crypto_krb5_encrypt_data" = xyes; then
krb5libcrypto="-lk5crypto"
fi
if test "x$krb5libcrypto" = x; then
FR_SMART_CHECK_LIB(crypto, DH_new)
if test "x$ac_cv_lib_crypto_DH_new" = xyes; then
krb5libcrypto="-lcrypto"
fi
fi
if test "x$krb5libcrypto" = x; then
AC_MSG_WARN([neither krb5 'k5crypto' nor 'crypto' libraries are found!])
fi
FR_SMART_CHECK_LIB(com_err, set_com_err_hook)
if test "x$ac_cv_lib_com_err_set_com_err_hook" != xyes; then
AC_MSG_WARN([the comm_err library isn't found!])
fi
FR_SMART_CHECK_LIB(krb5, krb5_init_context)
if test "x$ac_cv_lib_krb5_krb5_init_context" != xyes; then
fail="$fail krb5"
fi
targetname=modname
else
targetname=
echo \*\*\* module modname is disabled.
fi
if test x"$fail" != x""; then
if test x"${enable_strict_dependencies}" = x"yes"; then
AC_MSG_ERROR([set --without-]modname[ to disable it explicitly.])
else
AC_MSG_WARN([silently not building ]modname[.])
AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.]);
targetname=""
fi
fi
krb5_ldflags=$SMART_LIBS
krb5_cflags="${krb5_h_cflags} $SMART_CFLAGS"
AC_SUBST(krb5_cflags)
AC_SUBST(krb5_ldflags)
AC_SUBST(targetname)
AC_OUTPUT(Makefile)