Author: particle
Date: Fri Sep 30 07:31:57 2005
New Revision: 9281

Modified:
   trunk/README.win32
   trunk/t/library/pcre.t
Log:
This small patch enables t/library/pcre.t on Win32.
Courtesy of François PERRAD.

Modified: trunk/README.win32
==============================================================================
--- trunk/README.win32  (original)
+++ trunk/README.win32  Fri Sep 30 07:31:57 2005
@@ -82,6 +82,9 @@ L<http://gnuwin32.sourceforge.net/>
 B<GMP> - GNU multiple precision arithmetic library 
 L<http://developer.berlios.de/projects/win32gmp/>
 
+B<pcre> - Perl-Compatible Regular Expression library 
+L<http://gnuwin32.sourceforge.net/>
+
 =item Optional utilities
 
 The availability of these utilities is checked by Configure.pl.
@@ -134,7 +137,8 @@ L<http://prdownloads.sf.net/mingw/MinGW-
 
 The HomePage is on L<http://www.mingw.org/>.
 
-With the ActiveState Perl distribution, tell Configure.pl to use gcc :
+With the ActiveState Perl distribution or PXPerl distribution,
+tell Configure.pl to use gcc :
 
     perl Configure.pl --cc=gcc --icushared="C:\usr\lib\icu\lib\icudt.lib 
C:\usr\lib\icu\lib\icuuc.lib" --icuheaders="C:\usr\lib\icu\include" 
--icudatadir="C:\usr\local\icu\data"
 or
@@ -173,10 +177,6 @@ directories.
 
 =over
 
-=item Dynclasses
-
-Dynclasses are currently broken due to linkage.
-
 =item Features
 
 Threads, Events, and Signals are missing.

Modified: trunk/t/library/pcre.t
==============================================================================
--- trunk/t/library/pcre.t      (original)
+++ trunk/t/library/pcre.t      Fri Sep 30 07:31:57 2005
@@ -22,8 +22,8 @@ use strict;
 use Parrot::Test tests => 1;
 
 # if we keep pcre, we need a config test
-my $has_pcre = Parrot::Test::run_command("pcre-config --version",
-    STDERR => '/dev/null') == 0;
+my $cmd = ($^O =~ /MSWin32/) ? "pcregrep --version" : "pcre-config --version";
+my $has_pcre = Parrot::Test::run_command($cmd, STDERR => '/dev/null') == 0;
 
 SKIP: {
     skip("no pcre-config", Test::Builder->new()->expected_tests())

Reply via email to