diff options
Diffstat (limited to 'source4/heimdal_build/external.m4')
-rw-r--r-- | source4/heimdal_build/external.m4 | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/source4/heimdal_build/external.m4 b/source4/heimdal_build/external.m4 new file mode 100644 index 0000000000..3cd8900a12 --- /dev/null +++ b/source4/heimdal_build/external.m4 @@ -0,0 +1,54 @@ +# This is every experimental +# We should really add configure checks +# to verify the installed heimdal libraries +# are good enough for our usage!!! + +HEIMDAL_KRB5_LIBS="-lkrb5 -lcom_err" +HEIMDAL_KRB5_CFLAGS="" +HEIMDAL_KRB5_CPPFLAGS="" +HEIMDAL_KRB5_LDFLAGS="" +SMB_EXT_LIB(HEIMDAL_KRB5, + [${HEIMDAL_KRB5_LIBS}], + [${HEIMDAL_KRB5_CFLAGS}], + [${HEIMDAL_KRB5_CPPFLAGS}], + [${HEIMDAL_KRB5_LDFLAGS}]) +SMB_ENABLE(HEIMDAL_KRB5) +AC_DEFINE(HAVE_KRB5,1,[Whether kerberos is available]) +HAVE_KRB5=YES +AC_DEFINE(HAVE_COM_ERR,1,[Whether com_err is available]) +HAVE_COM_ERR=YES + +HEIMDAL_GSSAPI_LIBS="-lgssapi" +HEIMDAL_GSSAPI_CFLAGS="" +HEIMDAL_GSSAPI_CPPFLAGS="" +HEIMDAL_GSSAPI_LDFLAGS="" +SMB_EXT_LIB(HEIMDAL_GSSAPI, + [${HEIMDAL_GSSAPI_LIBS}], + [${HEIMDAL_GSSAPI_CFLAGS}], + [${HEIMDAL_GSSAPI_CPPFLAGS}], + [${HEIMDAL_GSSAPI_LDFLAGS}]) +SMB_ENABLE(HEIMDAL_GSSAPI) +AC_DEFINE(HAVE_GSSAPI,1,[Whether GSSAPI is available]) +HAVE_GSSAPI=YES + +HEIMDAL_HDB_LIBS="-lhdb" +HEIMDAL_HDB_CFLAGS="" +HEIMDAL_HDB_CPPFLAGS="" +HEIMDAL_HDB_LDFLAGS="" +SMB_EXT_LIB(HEIMDAL_HDB, + [${HEIMDAL_HDB_LIBS}], + [${HEIMDAL_HDB_CFLAGS}], + [${HEIMDAL_HDB_CPPFLAGS}], + [${HEIMDAL_HDB_LDFLAGS}]) +SMB_ENABLE(HEIMDAL_HDB) + +HEIMDAL_KDC_LIBS="-lkdc" +HEIMDAL_KDC_CFLAGS="" +HEIMDAL_KDC_CPPFLAGS="" +HEIMDAL_KDC_LDFLAGS="" +SMB_EXT_LIB(HEIMDAL_KDC, + [${HEIMDAL_KDC_LIBS}], + [${HEIMDAL_KDC_CFLAGS}], + [${HEIMDAL_KDC_CPPFLAGS}], + [${HEIMDAL_KDC_LDFLAGS}]) +SMB_ENABLE(HEIMDAL_KDC) |