Update to version 1.02
[p5sagit/p5-mst-13.2.git] / ext / DB_File / Makefile.PL
index 4cda635..39b8bc7 100644 (file)
@@ -1,11 +1,16 @@
-use ExtUtils::MakeMaker;
+use ExtUtils::MakeMaker 5.16 ;
+use Config ;
+
+# OS2 is a special case, so check for it now.
+my $OS2 = "-DOS2" if $Config{'osname'} eq 'os2' ;
 
 WriteMakefile(
-       NAME    => 'DB_File',
-       LIBS    => ["-L/usr/local/lib -ldb"],
-       MAN3PODS        => ' ',         # Pods will be built by installman.
-       #INC    => '-I/usr/local/include',
+       NAME            => 'DB_File',
+       LIBS            => ["-L/usr/local/lib -ldb"],
+        MAN3PODS        => ' ',         # Pods will be built by installman.
+       #INC            => '-I/usr/local/include',
        VERSION_FROM    => 'DB_File.pm',
-       XSPROTOARG => '-noprototypes',          # XXX remove later?
-);
+       XSPROTOARG      => '-noprototypes',
+       DEFINE          => "$OS2",
+       );