On Fri, 2010-04-30 at 22:49 +0200, Bruno Haible wrote: > Patrik Olsson wrote: > > When the "filevercmp" module is imported I get the following warnings > > (several times) during autoreconf: > > > > configure.ac:33: warning: AC_COMPILE_IFELSE was called before > > AC_USE_SYSTEM_EXTENSIONS > > ../../lib/autoconf/specific.m4:310: AC_GNU_SOURCE is expanded from... > > m4/gnulib-comp.m4:21: GNULIB_EARLY is expanded from... > > configure.ac:33: the top level > > configure.ac:33: warning: AC_RUN_IFELSE was called before > > AC_USE_SYSTEM_EXTENSIONS > > > > What is wrong? > > It means that GNULIB_EARLY - which adjusts the value of CPPFLAGS - is being > called at a point where CPPFLAGS has already been used. This might lead to > inconsistent configure results and therefore to errors or even miscompiled > programs. > > > Perhaps I don't have GNULIB_EARLY and/or GNULIB_INIT in > > the right place? > > Yes, GNULIB_EARLY is likely not at the right place. > > > My configure.ac and gnulib-cache.m4 are attached. > > I would try to move the two lines > AC_PROG_CC > GNULIB_EARLY > up, line by line, until the warning disappears. Likely they need to be before > LTDL_INIT. Possibly even before LT_INIT, I don't know. >
I had to move down both LT_INIT and LTDL_INIT. I placed them just before GNULIB_INIT and made that a "late initializations" section. No warnings anymore. Thanks! :-) /Patrik
signature.asc
Description: This is a digitally signed message part
