Finish off thread support (fingers crossed)
[catagits/fcgi2.git] / perl / Makefile.PL
index 5a15047..fe8469d 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Makefile.PL,v 1.1 1999/02/13 05:26:44 roberts Exp $
+# $Id: Makefile.PL,v 1.4 1999/07/28 23:09:56 skimo Exp $
 
 use ExtUtils::MakeMaker;
 use IO::File;
@@ -42,6 +42,15 @@ $sys = $^O eq 'MSWin32' ? 'win32' : 'unix';
 push @o, "fcgiapp.o", "os_$sys.o" unless $prefix;
 $inc = $prefix ? "-I$prefix/include" : '-I.';
 
+push(@extras, CAPI => 'TRUE')
+     if ($] >= 5.005 and $^O eq 'MSWin32'
+        and $Config{archname} =~ /-object\b/i);
+
+push(@extras,
+    ABSTRACT => 'Fast CGI module',
+    AUTHOR   => 'Sven Verdoolaege (skimo@kotnet.org)')
+        if ($ExtUtils::MakeMaker::VERSION >= 5.4301); 
+        
 # See lib/ExtUtils/MakeMaker.pm for details of how to influence
 # the contents of the Makefile that is written.
 WriteMakefile(
@@ -63,7 +72,11 @@ WriteMakefile(
                                '$(MV) MANIFEST.old MANIFEST',
                            },
     'clean'            => { FILES => 'config.cache fcgi_config.h' },
-    'PL_FILES' => { 'echo.PL' => 'echo.fpl', 'FCGI.PL' => 'FCGI.xs' },
+    'PL_FILES' => { 'echo.PL' => 'echo.fpl', 
+                    'threaded.PL' => 'threaded.fpl',
+                    'FCGI.PL' => 'FCGI.xs',
+                  },
+    @extras,
 );
 
 exit if -f 'fcgi_config.h' or $prefix;
@@ -87,7 +100,7 @@ if ($sys eq "win32") {
 
 } else {
     print "Running ./configure for you\n";
-    print "Please read INSTALL for information on how to run it yourself\n";
+    print "Please read configure.readme for information on how to run it yourself\n";
 
     $ENV{'CC'} = $Config{'cc'};
     system("./configure");