1
0
mirror of https://github.com/apache/httpd.git synced 2026-01-28 07:20:58 +03:00
Files
apache/modules/aaa/mod_auth_db.module
Roy T. Fielding e3e87d34a0 Apache 1.3.9 baseline for the Apache 2.0 repository.
Obtained from: Apache 1.3.9 (minus unused files), tag APACHE_1_3_9
Submitted by: Apache Group


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83751 13f79535-47bb-0310-9956-ffa450edef68
1999-08-24 06:55:44 +00:00

37 lines
1.2 KiB
Plaintext

Name: db_auth_module
ConfigStart
DB_VERSION=''
DB_LIB=''
if ./helpers/TestCompile func db_open; then
DB_VERSION='Berkeley-DB/2.x'
else
if ./helpers/TestCompile lib db db_open; then
DB_VERSION='Berkeley-DB/2.x'
DB_LIB='-ldb'
else
if ./helpers/TestCompile func dbopen; then
DB_VERSION='Berkeley-DB/1.x'
else
if ./helpers/TestCompile lib db dbopen; then
DB_VERSION='Berkeley-DB/1.x'
DB_LIB='-ldb'
fi
fi
fi
fi
if [ ".$DB_VERSION" != . ]; then
if [ ".$DB_LIB" != . ]; then
LIBS="$LIBS $DB_LIB"
echo " using $DB_VERSION for mod_auth_db ($DB_LIB)"
else
echo " using $DB_VERSION for mod_auth_db (-lc)"
fi
else
echo "Error: Neither Berkeley-DB/1.x nor Berkeley-DB/2.x library found."
echo " Either disable mod_auth_db or provide us with the paths"
echo " to the Berkeley-DB include and library files."
echo " (Hint: INCLUDES, LDFLAGS, LIBS)"
exit 1
fi
ConfigEnd