GCC 3.1 and higher output different syntax on option "--version":
| $ gcc-3.0.4 --version | 3.0.4 | $ gcc-3.1 --version | gcc (GCC) 3.1 | Copyright (C) 2002 Free Software Foundation, Inc. | This is free software; see the source for copying conditions. There is NO | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This unfortunately breaks our "config" script. I patched "config" the following way to make it working again. I people think this does not break anything else (I personally do not think it breaks) this should be comitted to CVS. --- config.orig Fri Mar 15 17:47:23 2002 +++ config Tue Jun 4 09:00:37 2002 @@ -381,9 +381,11 @@ # figure out if gcc is available and if so we use it otherwise # we fallback to whatever cc does on the system -GCCVER=`(gcc --version) 2>/dev/null` +GCCVER=`(gcc --version) 2>/dev/null | head -1` if [ "$GCCVER" != "" ]; then CC=gcc + # then strip off whatever prefix GCC 3.1 and higher prepends the number with... + GCCVER=`echo $GCCVER | sed 's/^gcc (GCC) //'` # then strip off whatever prefix Cygnus prepends the number with... GCCVER=`echo $GCCVER | sed 's/^[a-z]*\-//'` # peak single digit before and after first dot, e.g. 2.95.1 gives 29 Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]