[PATCH] Find a host-prefixed krb5-config when cross-compiling

David Michael david.michael at coreos.com
Wed Dec 7 13:19:48 AEDT 2016


---

Hi,

I've encountered build failures when compiling with a different --host
triplet.  The krb5-config command would use /usr/bin/krb5-config instead
of the host-prefixed version for that target.  Using AC_PATH_TOOL in
configure.ac addresses this.  Can this change be applied?

Thanks.

David

 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 88c4633..4d9382c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4151,7 +4151,7 @@ AC_ARG_WITH([kerberos5],
 		AC_DEFINE([KRB5], [1], [Define if you want Kerberos 5 support])
 		KRB5_MSG="yes"
 
-		AC_PATH_PROG([KRB5CONF], [krb5-config],
+		AC_PATH_TOOL([KRB5CONF], [krb5-config],
 			     [$KRB5ROOT/bin/krb5-config],
 			     [$KRB5ROOT/bin:$PATH])
 		if test -x $KRB5CONF ; then
-- 
2.7.4



More information about the openssh-unix-dev mailing list