Fix const declarations.
[openssl.git] / config
diff --git a/config b/config
index 78aac51b507b6ab3d73294e568f82550cec7e72a..2bc53c24249520b8c3f7773c2f9ca774a78743b8 100755 (executable)
--- a/config
+++ b/config
@@ -284,7 +284,7 @@ done
 
 # figure out if gcc is available and if so we use it otherwise
 # we fallback to whatever cc does on the system
-GCCVER=`gcc -v 2>&1`
+GCCVER=`(gcc -v) 2>&1`
 if [ $? = "0" ]; then
   CC=gcc
 else
@@ -344,13 +344,15 @@ fi
 if [ ".$PERL" = . ] ; then
        for i in . `echo $PATH | sed 's/:/ /g'`; do
                if [ -f "$i/perl" ] ; then
-                       PERL="$i/perl"
-                       break;
+                       if "$i/perl" -e 'exit($]<5.0)'; then
+                               PERL="$i/perl"
+                               break;
+                       fi;
                fi;
        done
 fi
 
-if $PERL -e 'exit($]>=5.0);' ; then
+if [ ".$PERL" = . ] ; then
        echo "You need Perl 5."
        exit 1
 fi