This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
backport of 9cf72a4efbbd7d24d3d9d7f5c9d5be6e4ef4297a
[metaconfig.git] / U / perl / Extensions.U
index b9ad549..80c0b4b 100644 (file)
@@ -82,9 +82,9 @@ find_extensions='
            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
+               if   $contains "\.xs$" $$.tmp > /dev/null 2>&1; then
                    known_extensions="$known_extensions $this_ext";
-               elif $contains "\.c$" $$.tmp; then
+               elif $contains "\.c$"  $$.tmp > /dev/null 2>&1; then
                    known_extensions="$known_extensions $this_ext";
                elif $test -d $xxx; then
                    nonxs_extensions="$nonxs_extensions $this_ext";