From: Henrik Nordstrom Date: Tue, 2 Aug 2011 08:08:49 +0000 (-0600) Subject: Simplify SASL config.test. X-Git-Tag: SQUID_3_1_15~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a280ac69a3298dc4518b17d59996c290f5c97a77;p=thirdparty%2Fsquid.git Simplify SASL config.test. If headers are there then it's reasonable to expect libs as well being present. Note: not all archs places libs in /lib /usr/lib and full searching is overkill. --- diff --git a/helpers/basic_auth/SASL/config.test b/helpers/basic_auth/SASL/config.test index 7f4b817f33..8054c9555a 100755 --- a/helpers/basic_auth/SASL/config.test +++ b/helpers/basic_auth/SASL/config.test @@ -1,10 +1,8 @@ #!/bin/sh -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 +if [ -f /usr/include/sasl.h ]; then + exit 0 +fi +if [ -f /usr/include/sasl/sasl.h ]; then + exit 0 fi exit 1