dgaudet 98/03/07 13:29:57
Modified: src/helpers find-dbm-lib
Log:
Fix a logic problem -- it was giving false positives because DBM_LIB is
sometimes set when it shouldn't be... it's set by default in Configure.
Revision Changes Path
1.2 +15 -3 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.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- find-dbm-lib 1998/03/05 12:42:31 1.1
+++ find-dbm-lib 1998/03/07 21:29:57 1.2
@@ -15,15 +15,27 @@
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"
+ found_dbm=1
+ fi
+ ;;
+ *)
+ if [ "X$DBM_LIB" != "X" ]; then
+ oldLIBS="$LIBS"
+ LIBS="$LIBS $DBM_LIB"
+ if ./helpers/TestCompile func dbm_open; then
+ found_dbm=1
+ else
+ found_dbm=0
+ LIBS="$oldLIBS"
+ fi
fi
;;
esac
- LIBS="$LIBS $DBM_LIB"
- if [ "X$DBM_LIB" != "X" ]; then
+ if [ "X$found_dbm" = "X1" ]; then
echo " + using $DBM_LIB"
- found_dbm=1
fi
fi
fi