From: Amos Jeffries Date: Mon, 24 Oct 2011 00:42:16 +0000 (+1300) Subject: ext_session_acl: updated configure checks X-Git-Tag: BumpSslServerFirst.take01~78 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1989ffd1fcbbf4c5c48c9aeea544bccf56dbd811;p=thirdparty%2Fsquid.git ext_session_acl: updated configure checks * 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. --- diff --git a/helpers/external_acl/session/config.test b/helpers/external_acl/session/config.test index 83b0f99047..5407fe3999 100755 --- a/helpers/external_acl/session/config.test +++ b/helpers/external_acl/session/config.test @@ -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