This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: egcs version breaks configure scripts!


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]