]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix build error on systems where SASL include are available, but without link libraries.
authorserassio <>
Sat, 22 Sep 2007 23:40:04 +0000 (23:40 +0000)
committerserassio <>
Sat, 22 Sep 2007 23:40:04 +0000 (23:40 +0000)
On Sun Solaris 10 SASL include are available, but link libraries are missing.
This add a configure check for both include and lib files.

helpers/basic_auth/SASL/config.test

index 993ded8c7090bad8b6265c8b4e92a1e7e780da26..7f4b817f3314cfa67c9906686aa648fdfca85eb8 100755 (executable)
@@ -1,5 +1,10 @@
 #!/bin/sh
 if [ -f /usr/include/sasl.h -o -f /usr/include/sasl/sasl.h ]; then
-       exit 0
+       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
 exit 1