]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 4172: Solaris broken krb5-config
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 1 Feb 2015 07:05:48 +0000 (23:05 -0800)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 1 Feb 2015 07:05:48 +0000 (23:05 -0800)
configure.ac

index 9d5565cee6fe0d1d12ca784d78ccda7a0384e619..15268461c82d7d1cc72ab96356755fe0c270c126 100644 (file)
@@ -1606,8 +1606,12 @@ if test "x$with_solaris_krb5" = "xyes"; then
     AC_MSG_NOTICE([Use krb5-config to get CXXFLAGS and LIBS])
     LIB_KRB5_CFLAGS="`$ac_krb5_config --cflags krb5 2>/dev/null`"
     LIB_KRB5_LIBS="`$ac_krb5_config --libs krb5 2>/dev/null`"
-    LIB_KRB5_CFLAGS="`$ac_krb5_config --cflags gssapi 2>/dev/null` $LIB_KRB5_CFLAGS"
-    LIB_KRB5_LIBS="`$ac_krb5_config --libs gssapi 2>/dev/null` $LIB_KRB5_LIBS"
+    # Solaris 10 Update 11 patches the krb5-config tool to produce stderr messages on stdout.
+    SOLARIS_BROKEN_KRB5CONFIG_GSSAPI="`$ac_krb5_config --libs gssapi 2>/dev/null | grep "krb5-config"`"
+    if test "x$SOLARIS_BROKEN_KRB5CONFIG_GSSAPI" = "x"; then
+      LIB_KRB5_CFLAGS="`$ac_krb5_config --cflags gssapi 2>/dev/null` $LIB_KRB5_CFLAGS"
+      LIB_KRB5_LIBS="`$ac_krb5_config --libs gssapi 2>/dev/null` $LIB_KRB5_LIBS"
+    fi
   else
     ## For some OS pkg-config is broken or unavailable.
     ## Detect libraries the hard way.