Ulf Möller wrote:
> 
> ># 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`
> >if [ $? = "0" ]; then
> >  CC=gcc
> >else
> >  CC=cc
> >fi
> >--<<
> >causing a harmless 'gcc: not found' to be printed.
> >Might be wise to print something stating the harmelessness
> >of it..
> 
> Or use a trick like the one to locate perl so we don't get a warning
> in the first place?
> 

I prefer to work around these (broken?) shells, have them do it
like it was meant in the first place:

GCCVER=`sh -c "gcc -v" 2>&1`

-- 
Niels Poppe - org.net bv <[EMAIL PROTECTED]>
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to