]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Make sure that those systems having gdbm can use it when a db library is
authorVictor J. Orlikowski <orlikowski@apache.org>
Tue, 22 Jan 2002 07:39:15 +0000 (07:39 +0000)
committerVictor J. Orlikowski <orlikowski@apache.org>
Tue, 22 Jan 2002 07:39:15 +0000 (07:39 +0000)
needed.
Submitted by: Thomas Eibner <thomas@stderr.net>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@92969 13f79535-47bb-0310-9956-ffa450edef68

src/helpers/find-dbm-lib

index 5f66b4aba3217eafe3353fcdfc57283d76d87eaa..69dd884eb038e425fb4832c4d6055ce3d13c37e5 100644 (file)
@@ -13,9 +13,7 @@ if [ "x$found_dbm" = "x" ]; then
            *-linux*)
                # many systems don't have -ldbm
                DBM_LIB=""
-               if ./helpers/TestCompile lib dbm dbm_open; then
-                   DBM_LIB="-ldbm"
-               elif ./helpers/TestCompile lib ndbm dbm_open; then
+               if ./helpers/TestCompile lib ndbm dbm_open; then
                    DBM_LIB="-lndbm"
                    if ./helpers/TestCompile lib db1 dbm_open; then
                        # Red Hat needs this; ndbm.h lives in db1
@@ -25,6 +23,11 @@ if [ "x$found_dbm" = "x" ]; then
                    # For Red Hat 7, if not handled by the ndbm case above
                    DBM_LIB="-ldb1"
                    CFLAGS="$CFLAGS -I/usr/include/db1"
+                elif ./helpers/TestCompile lib gdbm dbm_open; then
+                    DBM_LIB="-lgdbm"
+                    CFLAGS="$CFLAGS -I/usr/include/gdbm"
+               elif ./helpers/TestCompile lib dbm dbm_open; then
+                   DBM_LIB="-ldbm"
                fi
                if [ "x$DBM_LIB" != "x" ]; then
                    LIBS="$LIBS $DBM_LIB"