egcs version breaks configure scripts!

Alexandre Oliva oliva@dcc.unicamp.br
Fri Apr 10 16:25:00 GMT 1998


Horst von Brand writes:

> At least the configure script for libpcap-0.4a6 (from ftp://ftp.ee.lbl.gov/ )
> tries to determine the _numerical_ gcc version by something like:

>  ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
>                             sed -n -e '$s/.* //' -e '$s/\..*//p'`

> This gives nothing, and the configuration crashes.

It is libpcap that is broken, as this configure command is not
produced by autoconf.  Perhaps they should use the following
equivalent command:

ac_cv_lbl_gcc_vers=`echo __GNUC__ | $CPP -P -`

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil




More information about the Gcc-bugs mailing list