Integrate change #9306 from maintperl into mainline,
Jarkko Hietaniemi [Fri, 23 Mar 2001 12:56:14 +0000 (12:56 +0000)]
AIX dynaloader for AIXes without <load.h>.

p4raw-link: @9306 on //depot/maint-5.6/perl: b9a292f48852cf3cc66c257e67dbf85c05aceb9a

p4raw-id: //depot/perl@9307
p4raw-integrated: from //depot/maint-5.6/perl@9301 'copy in'
ext/DynaLoader/hints/aix.pl (@9250..)

ext/DynaLoader/hints/aix.pl

index b1f8c7f..b80ba65 100644 (file)
@@ -8,5 +8,7 @@ if ($Config{libs} =~ /-lC/ && -f '/lib/libC.a') {
        $self->{CCFLAGS} .= ' -DUSE_ibmcxx_load_h';
     } elsif (-f '/usr/lpp/xlC/include/load.h') {
        $self->{CCFLAGS} .= ' -DUSE_xlC_load_h';
+    } elsif (!-f '/usr/include/load.h') {
+       $self->{CCFLAGS} = $Config{ccflags}; # Remove again, no <load.h>
     }
 }