--- ./src/modules/standard/mod_auth_db.module.orig	Tue Jan 30 19:48:20 2001
+++ ./src/modules/standard/mod_auth_db.module	Tue Jan 30 19:53:18 2001
@@ -17,6 +17,11 @@
     elif ./helpers/TestCompile lib db dbopen; then
         DB_VERSION='Berkeley-DB/1.x'
         DB_LIB='-ldb'
+    elif ./helpers/TestCompile lib db1 dbm_open; then
+        # For Red Hat 7
+        DB_VERSION='Berkeley-DB/1.x'
+        DB_LIB='-ldb1'
+        CFLAGS="$CFLAGS -I/usr/include/db1"
     fi
     if [ ".$DB_VERSION" != . ]; then
         if [ ".$DB_LIB" != . ]; then
