]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Test for SASL libraries before building ext_kerberos_ldap_group_acl
authorAmos Jeffries <amosjeffries@squid-cache.org>
Tue, 24 Aug 2010 09:20:49 +0000 (03:20 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Tue, 24 Aug 2010 09:20:49 +0000 (03:20 -0600)
helpers/external_acl/kerberos_ldap_group/config.test

index 24d58a69e1ad43dff6599dc608f53b126ca5cb43..4c1c762e9f7757b061fb1a3091f61ee7de6ffbf9 100644 (file)
@@ -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