diff options
Diffstat (limited to 'source4/heimdal_build/config.m4')
-rw-r--r-- | source4/heimdal_build/config.m4 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source4/heimdal_build/config.m4 b/source4/heimdal_build/config.m4 index 7bdcbdb030..3b32d9b22e 100644 --- a/source4/heimdal_build/config.m4 +++ b/source4/heimdal_build/config.m4 @@ -4,3 +4,18 @@ AC_CHECK_HEADERS(sys/utsname.h termcap.h term.h timezone.h time.h ttyname.h) AC_CHECK_FUNCS(setitimer uname umask unsetenv socket sendmsg putenv atexit) +# these are disabled unless heimdal is found below +SMB_MODULE_DEFAULT(KERBEROS_LIB, NOT) +SMB_BINARY_ENABLE(asn1_compile, NO) +SMB_BINARY_ENABLE(compile_et, NO) + +# to enable kerberos, unpack a heimdal source tree in the heimdal directory +# of the samba source tree +if test -d heimdal; then + AC_DEFINE(HAVE_KRB5,1,[Whether kerberos is available]) + CFLAGS="${CFLAGS} -Iheimdal_build -Iheimdal/lib/krb5 -Iheimdal/lib/gssapi -Iheimdal/lib/asn1 -Iheimdal/lib/com_err -Iheimdal/lib/hdb" + HAVE_KRB5=YES + SMB_MODULE_DEFAULT(KERBEROS_LIB, STATIC) + SMB_BINARY_ENABLE(asn1_compile, YES) + SMB_BINARY_ENABLE(compile_et, YES) +fi |