Squashed from patches by Stefan Metzmacher as part of his Heimdal update branch
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
if not conf.env['BISON']:
conf.fatal("Embedded Heimdal build requires bison but it was not found. Install bison or use --with-system-mitkrb5 or --with-system-heimdalkrb5")
if not conf.env['BISON']:
conf.fatal("Embedded Heimdal build requires bison but it was not found. Install bison or use --with-system-mitkrb5 or --with-system-heimdalkrb5")
+conf.define('USING_EMBEDDED_HEIMDAL', 1)
conf.RECURSE('source4/heimdal_build')
conf.RECURSE('source4/heimdal_build')
check_system_heimdal_binary("compile_et")
check_system_heimdal_binary("asn1_compile")
check_system_heimdal_binary("compile_et")
check_system_heimdal_binary("asn1_compile")
+conf.env.KRB5_VENDOR = 'heimdal'
conf.define('USING_SYSTEM_KRB5', 1)
conf.define('USING_SYSTEM_KRB5', 1)
+conf.define('USING_SYSTEM_HEIMDAL', 1)
if parse_version(krb5_version) < parse_version('1.18'):
conf.DEFINE('HAVE_MIT_KRB5_PRE_1_18', 1)
if parse_version(krb5_version) < parse_version('1.18'):
conf.DEFINE('HAVE_MIT_KRB5_PRE_1_18', 1)
+ conf.define('USING_SYSTEM_MITKRB5', '"%s"' % krb5_version)
conf.CHECK_CFG(args="--cflags --libs", package="com_err", uselib_store="com_err")
conf.CHECK_FUNCS_IN('_et_list', 'com_err')
conf.CHECK_CFG(args="--cflags --libs", package="com_err", uselib_store="com_err")
conf.CHECK_FUNCS_IN('_et_list', 'com_err')