]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Simplify SASL config.test. If headers are there then
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Mon, 25 Jul 2011 13:12:53 +0000 (15:12 +0200)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Mon, 25 Jul 2011 13:12:53 +0000 (15:12 +0200)
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.

helpers/basic_auth/SASL/config.test

index 7f4b817f3314cfa67c9906686aa648fdfca85eb8..8054c9555ab5bd9e087b091de8fa23b74430fdbc 100755 (executable)
@@ -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