Re: Perl @ http://www.ccl4.org/~nick/P/perl-33444.tar.bz2
[p5sagit/p5-mst-13.2.git] / ext / NDBM_File / Makefile.PL
index 6ceab55..dc5cc44 100644 (file)
@@ -1,8 +1,18 @@
+use Config;
 use ExtUtils::MakeMaker;
+
+my $define = "";
+
+if($Config{i_gdbm} && $Config{i_gdbm} eq 'define') {
+    $define .= " -DHAS_GDBM";
+}
+
 WriteMakefile(
     NAME       => 'NDBM_File',
     LIBS => ["-L/usr/local/lib -lndbm", "-ldbm -lucb"],
+    DEFINE => $define,
     MAN3PODS   => {},  # Pods will be built by installman.
     XSPROTOARG => '-noprototypes',             # XXX remove later?
     VERSION_FROM => 'NDBM_File.pm',
+    INC => ($^O eq "MacOS" ? "-i ::::db:include" : "")
 );