Allow -C on the #! line when it is identical to -C on the command line.
[p5sagit/p5-mst-13.2.git] / Configure
index 2d6f7de..23d605d 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -6530,6 +6530,7 @@ if (-d $stem) {
     chdir($stem);
     ;@candidates = map {
        [ $_, pack "sss", split m/[._]/, "$_.0.0" ] } glob("5.*");
+    ;@candidates = sort { $a->[1] cmp $b->[1]} @candidates;
 }
 else {
     ;@candidates = ();
@@ -21655,7 +21656,7 @@ find_extensions='
                $ls -1 $xxx > $$.tmp;
                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";