]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
autoconf tests to see if squid_session can be built automatically
authorhno <>
Mon, 20 Mar 2006 10:46:17 +0000 (10:46 +0000)
committerhno <>
Mon, 20 Mar 2006 10:46:17 +0000 (10:46 +0000)
helpers/external_acl/session/config.test [new file with mode: 0755]
helpers/external_acl/session/squid_session.c

diff --git a/helpers/external_acl/session/config.test b/helpers/external_acl/session/config.test
new file mode 100755 (executable)
index 0000000..77dbabe
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+if [ -f /usr/include/db_185.h ]; then
+    exit 0
+fi
+if [ -f /usr/include/db.h ]; then
+    exit 0
+fi
+exit 1
index 730b126445d3da49d97c64414948dbab59e3612c..ac4f917ed939783c83c02a91294caca855370248 100644 (file)
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <string.h>
 #include <time.h>
 
+#if defined(HAVE_DB_185_H)
+#include <db_185.h>
+#elif defined(HAVE_DB_H)
+#include <db.h>
+#else
 #include <db_185.h>
+#endif
 
 static int session_ttl = 3600;
 char *db_path = NULL;