This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Install arch-dependent files into $archlib.
authorH.Merijn Brand <merijn@nb09.procura.nl>
Fri, 14 Aug 2009 06:03:32 +0000 (08:03 +0200)
committerH.Merijn Brand <merijn@nb09.procura.nl>
Fri, 14 Aug 2009 06:03:32 +0000 (08:03 +0200)
backport 8a240526d678f296ecb86c2b6b7a7bf0cfbaa7e9

U/perl/Extensions.U

index 80c0b4b..670ef2b 100644 (file)
@@ -73,6 +73,10 @@ nonxs_extensions=''
 
 : Function to recursively find available extensions, ignoring DynaLoader
 : NOTE: recursion limit of 10 to prevent runaway in case of symlink madness
+: In 5.10.1 and later, extensions are stored in directories
+: like File-Glob instead of the older File/Glob/.  In this scheme,
+: IO-Compress does not appear to be an XS extension, but we want
+: to install it as one.  A.D.  8/2009.
 find_extensions='
     for xxx in *; do
        case "$xxx" in
@@ -86,6 +90,8 @@ find_extensions='
                    known_extensions="$known_extensions $this_ext";
                elif $contains "\.c$"  $$.tmp > /dev/null 2>&1; then
                    known_extensions="$known_extensions $this_ext";
+               elif $test "$this_ext" = "IO/Compress"; then
+                   known_extensions="$known_extensions $this_ext";
                elif $test -d $xxx; then
                    nonxs_extensions="$nonxs_extensions $this_ext";
                fi;