Steven G. Johnson, whom you probably know, suggested I should report the following problem.
I'm running Mac OS X 10.2 and using the following versions of gcc :
Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs
Thread model: posix
Apple Computer, Inc. GCC version 1161, based on gcc version 3.1 20020420 (prerelease)
and g77 :
Reading specs from /sw/lib/gcc-lib/powerpc-apple-darwin6.1/3.1/specs
Configured with: ../gcc3/configure --prefix=/sw --enable-languages=f77 --infodir=${prefix}/share/info
Thread model: single
Apple Computer, Inc. GCC version 1151, based on gcc version 3.1 20020420 (prerelease)
On my system, autoconf determines the following FLIBS :
fails because of multiple definitions. The multiply defined symbols indeed belong to several libraries, which confuses the compiler (however, I'm not sure the problem isn't due to Apple's modifications since the faulty symbols are mostly MacOS X specific). In order to fix compilation, I had to bypass the test performed by AC_F77_LIBRARY_LDFLAGS by setting FLIBS, removing crt1.o and crtbegin.o.