summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
Diffstat (limited to 'hints')
-rw-r--r--hints/linux.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/hints/linux.sh b/hints/linux.sh
index 4c2c5f57a8..956adfca25 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -58,7 +58,11 @@ shift
libswanted="$*"
# Debian 4.0 puts ndbm in the -lgdbm_compat library.
-libswanted="$libswanted gdbm_compat"
+echo $libs
+if echo " $libswanted " | grep -q ' gdbm '; then
+ # Only add if gdbm is in libswanted.
+ libswanted="$libswanted gdbm_compat"
+fi
# Configure may fail to find lstat() since it's a static/inline
# function in <sys/stat.h>.