From: Andrei Pavel Date: Tue, 18 Mar 2025 09:02:17 +0000 (+0200) Subject: [#3731] Simplify heimdal checking X-Git-Tag: Kea-2.7.7~44 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=62a61f4d6909f8627ff669aed8295e5a3e084236;p=thirdparty%2Fkea.git [#3731] Simplify heimdal checking --- diff --git a/meson.build b/meson.build index 5e105701e8..363754d824 100644 --- a/meson.build +++ b/meson.build @@ -421,7 +421,7 @@ if result.returncode() == 0 conf_data.set('LIBC_MUSL', d.endswith('-musl')) endif -if KRB5_DEP.found() and KRB5_DEP.get_variable('vendor') == 'Heimdal' +if KRB5_DEP.found() and KRB5_DEP.get_variable('vendor').contains('Heimdal') conf_data.set('WITH_HEIMDAL', true) endif diff --git a/subprojects/krb5/meson.build b/subprojects/krb5/meson.build index a16e70c536..7f1dad7589 100644 --- a/subprojects/krb5/meson.build +++ b/subprojects/krb5/meson.build @@ -3,21 +3,12 @@ current_source_dir = meson.current_source_dir() krb5 = disabler() krb5_config = find_program('krb5-config', required: false) -check_heimdal = find_program( - current_source_dir / 'check-heimdal.sh', - required: true, -) if krb5_config.found() cflags = run_command([krb5_config, '--cflags', 'gssapi'], check: false) libs = run_command([krb5_config, '--libs', 'gssapi'], check: false) version = run_command([krb5_config, '--version'], check: false) - heimdal = run_command(check_heimdal, krb5_config.full_path(), check: false) - if heimdal.returncode() == 0 - vendor = 'Heimdal' - else - vendor = 'MIT' - endif - if cflags.returncode() == 0 and libs.returncode() == 0 and version.returncode() == 0 + vendor = run_command([krb5_config, '--vendor'], check: false) + if cflags.returncode() == 0 and libs.returncode() == 0 and version.returncode() == 0 and vendor.returncode() == 0 krb5_version = version.stdout().strip() krb5 = declare_dependency( compile_args: cflags.stdout().split(),