base-files: fix enter failsafe message
[openwrt-10.03/.git] / package / openssl / patches / 121-ocf-config.patch
1 --- a/config
2 +++ b/config
3 @@ -399,8 +399,11 @@ exit 0
4  # this is where the translation occurs into SSLeay terms
5  # ---------------------------------------------------------------------------
6  
7 +# figure out if gcc is available and if so we use it otherwise
8 +# we fallback to whatever cc does on the system
9  GCCVER=`(gcc -dumpversion) 2>/dev/null`
10  if [ "$GCCVER" != "" ]; then
11 +  CC=gcc
12    # then strip off whatever prefix egcs prepends the number with...
13    # Hopefully, this will work for any future prefixes as well.
14    GCCVER=`echo $GCCVER | LC_ALL=C sed 's/^[a-zA-Z]*\-//'`
15 @@ -409,6 +412,8 @@ if [ "$GCCVER" != "" ]; then
16    # major and minor version numbers.
17    # peak single digit before and after first dot, e.g. 2.95.1 gives 29
18    GCCVER=`echo $GCCVER | sed 's/\([0-9]\)\.\([0-9]\).*/\1\2/'`
19 +else
20 +  CC=cc
21  fi
22  
23  # Only set CC if not supplied already