blob: 61271a8f4b1775899b0392d257f9f72b7cf30a94 (
plain)
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
|
K5_AC_INIT(configure.in)
CONFIG_RULES
AC_CHECK_HEADERS(unistd.h)
AC_TYPE_MODE_T
AC_TYPE_OFF_T
AC_CHECK_FUNCS(srand48 srand srandom umask)
LDAP_OKAY=1
AC_CHECK_HEADERS([ldap.h], :, [LDAP_OKAY=0; AC_MSG_WARN([ldap.h not found])])
AC_CHECK_HEADERS([lber.h], :, [LDAP_OKAY=0; AC_MSG_WARN([lber.h not found])])
AC_CHECK_LIB(ldap, ldap_init, :, [LDAP_OKAY=0; AC_MSG_WARN([libldap not found])])
if test "$LDAP_OKAY" = "0"; then
AC_ERROR("LDAP libraries missing - skipping LDAP database module")
fi
BER_OKAY=0
AC_CHECK_LIB(ldap, ber_init, [BER_OKAY=1])
if test "$BER_OKAY" = "1"; then
LDAP_LIBS='-lldap'
else
AC_CHECK_LIB(lber, ber_init, [BER_OKAY=1], [AC_MSG_WARN([libber not found])])
if test "$BER_OKAY" = "1"; then
LDAP_LIBS='-lldap -llber'
else
AC_ERROR("BER library missing - skipping LDAP database module")
fi
fi
AC_SUBST(LDAP_LIBS)
KRB5_RUN_FLAGS
dnl The following is for check...
KRB5_BUILD_PROGRAM
KRB5_BUILD_LIBOBJS
KRB5_BUILD_LIBRARY
dnl
V5_AC_OUTPUT_MAKEFILE
|