diff options
author | Nicholas Clark <nick@ccl4.org> | 2009-09-24 10:12:13 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2009-09-24 10:12:13 +0100 |
commit | dd6c21bebf897e04754ff0d50210c6e54cc753c7 (patch) | |
tree | 51c244f50a712ee692f6a774a403b1bc34151ac1 /Configure | |
parent | 8a99276313ed95fde25e45e5b89a48e5080ab4cd (diff) | |
download | perl-dd6c21bebf897e04754ff0d50210c6e54cc753c7.tar.gz |
Search for extensions in cpan/ as well as ext/
This required inverting the logic of test for "are we flattened or not".
Currently we can only build XS extensions on Unix from cpan/
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 30 |
1 files changed, 17 insertions, 13 deletions
@@ -21656,19 +21656,7 @@ find_extensions=' *) this_ext=`echo $xxx | $sed -e s/-/\\\//g`; leaf=`echo $xxx | $sed -e s/.*-//`; - if $test -d File-Glob; then - $ls -1 $xxx > $$.tmp; - if $contains "\.xs$" $$.tmp > /dev/null 2>&1; then - 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; - $rm -f $$.tmp; - else + if $test -d File; then if $test -f $xxx/$leaf.xs -o -f $xxx/$leaf.c; then known_extensions="$known_extensions $1$this_ext"; elif $test -f $xxx/Makefile.PL; then @@ -21682,11 +21670,27 @@ find_extensions=' shift; fi; fi; + else + $ls -1 $xxx > $$.tmp; + if $contains "\.xs$" $$.tmp > /dev/null 2>&1; then + 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; + $rm -f $$.tmp; fi ;; esac; done' tdir=`pwd` +cd "$rsrc/cpan" +set X +shift +eval $find_extensions cd "$rsrc/ext" set X shift |