Return-Path: Delivered-To: apache-cvs-archive@hyperreal.org Received: (qmail 9731 invoked by uid 6000); 7 Mar 1998 21:37:30 -0000 Received: (qmail 9723 invoked by alias); 7 Mar 1998 21:37:28 -0000 Delivered-To: apache-1.3-cvs@hyperreal.org Received: (qmail 9721 invoked by uid 143); 7 Mar 1998 21:37:27 -0000 Date: 7 Mar 1998 21:37:27 -0000 Message-ID: <19980307213727.9720.qmail@hyperreal.org> From: dgaudet@hyperreal.org To: apache-1.3-cvs@hyperreal.org Subject: cvs commit: apache-1.3/src/helpers find-dbm-lib Sender: apache-cvs-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org dgaudet 98/03/07 13:37:27 Modified: src/helpers find-dbm-lib Log: and make it work for linux too Revision Changes Path 1.3 +4 -2 apache-1.3/src/helpers/find-dbm-lib Index: find-dbm-lib =================================================================== RCS file: /export/home/cvs/apache-1.3/src/helpers/find-dbm-lib,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- find-dbm-lib 1998/03/07 21:29:57 1.2 +++ find-dbm-lib 1998/03/07 21:37:25 1.3 @@ -1,4 +1,4 @@ -# Our config tool sucks... if this script decides to modify the + # LIBS variable it won't be used by any of the other TestCompiles. # So unless we protect ourselves with the found_dbm variable # we'd end up having to do the work twice... and we'd end up putting @@ -15,9 +15,11 @@ DBM_LIB="" if ./helpers/TestCompile lib dbm dbm_open; then DBM_LIB="-ldbm" - found_dbm=1 elif ./helpers/TestCompile lib ndbm dbm_open; then DBM_LIB="-lndbm" + fi + if [ "X$DBM_LIB" != "X" ]; then + LIBS="$LIBS $DBM_LIB" found_dbm=1 fi ;;