Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release-src > by-pkgid > 7912bb06918d6a527e73020df99a8beb > files > 3

ocaml-camldbm-1.0-11.mga5.src.rpm

--- camldbm-1.0/configure.0001	2011-11-22 23:56:49.000000000 +0800
+++ camldbm-1.0/configure	2012-12-11 12:38:31.823489671 +0800
@@ -35,7 +35,7 @@
   ${CC:-cc} -I$1 -o hasgot.exe hasgot.c $3 $4
   res=$?
   rm -f hasgot.c hasgot.exe
-  return $?
+  return $res
 }
 
 dbm_include="not found"
@@ -45,15 +45,7 @@
 for dir in /usr/include /usr/include/db1 /usr/include/gdbm; do
   if test -f $dir/ndbm.h; then
     dbm_include=$dir
-    if hasgot $dir ndbm.h; then
-      dbm_link=""
-    elif hasgot $dir ndbm.h -lndbm; then
-      dbm_link="-lndbm"
-    elif hasgot $dir ndbm.h -ldb1; then
-      dbm_link="-ldb1"
-    elif hasgot $dir ndbm.h -lgdbm; then
-      dbm_link="-lgdbm"
-    elif hasgot $dir ndbm.h -lgdbm_compat -lgdbm; then
+    if hasgot $dir ndbm.h -lgdbm_compat -lgdbm; then
       dbm_link="-lgdbm_compat -lgdbm"
     fi
     break