From 455943ef13e9760585cdc1da7ab27fa6762b0faf Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Wed, 10 Nov 2004 14:51:52 +0000 Subject: [PATCH] Make sure Windows environment vars are quoted. Thanks to Geoff Richards. --- Makefile.PL | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile.PL b/Makefile.PL index aaf2888b..ced12a31 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -50,6 +50,12 @@ my $os = $^O; print "OS: $os\n"; print "PostgreSQL version: $major_ver.$minor_ver.$patch\n"; +if ($os =~ /Win32/) { + for ($POSTGRES_INCLUDE, $POSTGRES_LIB) { + $_ = qq{"$_"} if index($_,'"'); + } +} + ## Warn about older versions if ($major_ver < 7 or ($major_ver == 7 and $minor_ver < 2)) { print "\n****************\n";