Add LIBFCGI_EXPORTS to defines
[catagits/fcgi2.git] / perl / Makefile.PL
index d075c59..a7deac4 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Makefile.PL,v 1.30 2001/09/25 08:21:27 skimo Exp $
+# $Id: Makefile.PL,v 1.32 2001/09/27 12:11:40 skimo Exp $
 
 use ExtUtils::MakeMaker;
 use IO::File;
@@ -138,7 +138,8 @@ if ($sys eq "win32") {
     use File::Copy qw(copy);
     print "Using prebuilt fcgi_config.h file for Windows\n";
     unlink("fcgi_config.h");
-    die $! unless copy("fcgi_config_x86.h","fcgi_config.h");
+    my $confdir = $prefix ? "$prefix/include/" : '';
+    die $! unless copy("$confdir/fcgi_config_x86.h","fcgi_config.h");
 
     # Win can't deal with existence of FCGI.xs or absence of FCGI.c
     unlink("FCGI.xs");