From: Amos Jeffries Date: Sat, 13 Apr 2019 08:46:49 +0000 (+0000) Subject: Check user-provided PATH for krb5-config (#390) X-Git-Tag: SQUID_5_0_1~104 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c4b12583c05b23b98d4319a47d80aecd3f5a33c5;p=thirdparty%2Fsquid.git Check user-provided PATH for krb5-config (#390) When MIT or Heimdal Keberos libraries are installed at a custom location there may be several krb5-config installed. The one located at the user-provided path (if any) needs to have preference. --- diff --git a/configure.ac b/configure.ac index f46110d86c..a08203ab94 100644 --- a/configure.ac +++ b/configure.ac @@ -1420,7 +1420,7 @@ if test "x$with_mit_krb5" != "xno"; then ]) if test "x$squid_pc_krb5_name" = "x" -a "$cross_compiling" = "no"; then # Look for krb5-config (unless cross-compiling) - AC_PATH_PROG(krb5_config,krb5-config,no) + AC_PATH_PROG(krb5_config,krb5-config,no,$krb5confpath) if test "x$ac_cv_path_krb5_config" != "xno" ; then krb5confpath="`dirname $ac_cv_path_krb5_config`" ac_heimdal="`$ac_cv_path_krb5_config --version 2>/dev/null | grep -c -i heimdal`" @@ -1653,7 +1653,7 @@ if test "x$with_heimdal_krb5" != "xno" -a "x$KRB5LIBS" = "x"; then fi if test "x$squid_pc_krb5_name" = "x" -a "$cross_compiling" = "no"; then # Look for krb5-config (unless cross-compiling) - AC_PATH_PROG(krb5_config,krb5-config,no) + AC_PATH_PROG(krb5_config,krb5-config,no,$krb5confpath) if test "x$ac_cv_path_krb5_config" != "xno" ; then krb5confpath="`dirname $ac_cv_path_krb5_config`" ac_heimdal="`$ac_cv_path_krb5_config --version 2>/dev/null | grep -c -i heimdal`"