From: Amos Jeffries Date: Tue, 24 Aug 2010 09:20:49 +0000 (-0600) Subject: Test for SASL libraries before building ext_kerberos_ldap_group_acl X-Git-Tag: take1~336 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ecf05ce1cf5e89ddcba137aee4a3dea256e7cc94;p=thirdparty%2Fsquid.git Test for SASL libraries before building ext_kerberos_ldap_group_acl --- diff --git a/helpers/external_acl/kerberos_ldap_group/config.test b/helpers/external_acl/kerberos_ldap_group/config.test index 24d58a69e1..4c1c762e9f 100644 --- a/helpers/external_acl/kerberos_ldap_group/config.test +++ b/helpers/external_acl/kerberos_ldap_group/config.test @@ -1,6 +1,14 @@ #!/bin/sh # Don't build without gssapi.h -if test -f /usr/include/ldap.h || test -f /usr/local/include/ldap.h ; then - exit 0 +if [ -f /usr/include/ldap.h -o -f /usr/local/include/ldap.h ]; then + # Won't link without SASL as well + if [ -f /usr/include/sasl.h -o -f /usr/include/sasl/sasl.h ]; then + if [ -f /usr/lib/libsasl.a -o -f /usr/lib/libsasl2.a ]; then + exit 0 + fi + if [ -f /usr/lib/libsasl.la -o -f /usr/lib/libsasl2.la ]; then + exit 0 + fi + fi fi exit 1