]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
ext_session_acl: updated configure checks
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 24 Oct 2011 00:42:16 +0000 (13:42 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 24 Oct 2011 00:42:16 +0000 (13:42 +1300)
* Drop obsolete check for db_185.h

* Update function check to db_env_create instead of db_open

This enables Squid to skip building of the session helper on systems with
libdb older than 4.0.

helpers/external_acl/session/config.test

index 83b0f9904725763384b64c9c1a896f9f8fe80d80..5407fe39997f1f7e6ed9557316c76a5bb775cb19 100755 (executable)
@@ -1,10 +1,6 @@
 #!/bin/sh
 
-# Actual intended test
-if [ -f /usr/include/db_185.h ]; then
-    exit 0
-fi
-if [ -f /usr/include/db.h ] && grep dbopen /usr/include/db.h; then
+if [ -f /usr/include/db.h ] && grep db_env_create /usr/include/db.h; then
     exit 0
 fi
 exit 1