Bless Terje <link(a)rito.no> writes:
...I just built GCC 2.95 on a Red Hat 6.0 box and removed the egcs
rpms.
This broke the config.guess (and thus breaks "configure") from XEmacs
21.1.4. Somewhere in there it does a "ld --help" to extract the
"supported
emulations". For some strange reason, it only finds "elf_i386" and not
"i386linux". I assume this is because ld's output format changed and the
sed
filter breaks, but I don't speak sed so I'm not sure. Forcing
"i586-pc-linux" as an argument to "configure" works.
Looking at the config.guess script it should _not_ find i386linux
because that is a.out. Something else must be wrong.
If I look at the latest config.guess at cygnus CVS then I see that they
made the little test program they use to detect the architecture use
ansi prototypes.
i.e. the XEmacs config.guess has
====
# Determine whether the default compiler is a.out or elf
cat >dummy.c <<EOF
#include <features.h>
main(argc, argv)
int argc;
char *argv[];
====
Note the missing 'int'
====
cat >$dummy.c <<EOF
#include <features.h>
#ifdef __cplusplus
int main (int argc, char *argv[]) {
#else
int main (argc, argv) int argc; char *argv[]; {
#endif
#ifdef __ELF__
# ifdef __GLIBC__
# if __GLIBC__ >= 2
printf ("%s-${VENDOR}-linux-gnu\n", argv[1]);
# else
=====
However the XEmacs version is identical to autoconf 2.13. Surely we
would have know by now if every autoconf 2.13 based program stopped
configuring correctly with gcc 2.95 on redhat.
So I suggest you double check your gcc 2.95 install:
Jan