r7866: Remove some unused autoconf macro calls.
[jelmer/samba4-debian.git] / source / heimdal_build / config.m4
1 AC_CHECK_HEADERS(sys/file.h crypt.h curses.h)
2 AC_CHECK_HEADERS(sys/stropts.h sys/timeb.h sys/un.h)
3 AC_CHECK_HEADERS(sys/utsname.h termcap.h timezone.h ttyname.h)
4
5 AC_CHECK_FUNCS(strupr)
6
7 # these are disabled unless heimdal is found below
8 SMB_MODULE_DEFAULT(KERBEROS_LIB, NOT)
9 SMB_BINARY_ENABLE(asn1_compile, NO)
10 SMB_BINARY_ENABLE(compile_et, NO)
11
12 # to enable kerberos, unpack a heimdal source tree in the heimdal directory
13 # of the samba source tree
14 if test -d heimdal; then
15         AC_DEFINE(HAVE_KRB5,1,[Whether kerberos is available])
16         CFLAGS="${CFLAGS} -Iheimdal_build -Iheimdal/lib/krb5 -Iheimdal/lib/gssapi -Iheimdal/lib/asn1 -Iheimdal/lib/com_err -Iheimdal/lib/hdb"
17         HAVE_KRB5=YES
18         SMB_MODULE_DEFAULT(KERBEROS_LIB, STATIC)
19         SMB_BINARY_ENABLE(asn1_compile, YES)
20         SMB_BINARY_ENABLE(compile_et, YES)
21 fi