freebsd-ports/databases/ruby-bdb1/files/patch-extconf.rb
Akinori MUSHA f5ee20dc56 Add ruby-bdb1, a Ruby interface to Berkeley DB revision 1.8x with full
feature support (unlike the standard "dbm" library).
2002-01-15 22:16:30 +00:00

13 lines
512 B
Ruby

--- src/extconf.rb.orig Mon Nov 26 22:35:33 2001
+++ src/extconf.rb Wed Jan 16 07:00:46 2002
@@ -6,7 +6,9 @@
end
$CFLAGS += " -I#{incdir}" if incdir = with_config("db-include-dir")
$LDFLAGS += " -I#{libdir}" if libdir = with_config("db-lib-dir")
-if !(have_library("db1", "__hash_open") || have_library("db", "__hash_open"))
+if !(have_func("__hash_open") || \
+ have_library("db1", "__hash_open") || \
+ have_library("db", "__hash_open"))
raise "libdb.a not found"
end
create_makefile("bdb1")