This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Build machinery


So I was trying to add some new files/subdirectories to newlib, which
meant I had to regenerate the build machinery using the autotools. Now,
the 1.18.0 README says;

  It is strongly advised that you use an adequate version of autotools.
  For this latest release, this would be: autoconf 2.59, aclocal 1.9.6,
  and automake 1.9.6.

But...that isn't right, because most of the Makefile.in's seem to have:
# Makefile.in generated by automake 1.11 from Makefile.am.
and configure's have
# Generated by GNU Autoconf 2.63 for newlib 1.18.0.

So...at a loss as to which version should /really/ be used, I figured
following gcc's lead would be a good idea: According to
http://gcc.gnu.org/install/prerequisites.html, the following autotools
should be used:

   autoconf version 2.64
   automake version 1.11
      For directories that use automake, GCC requires the latest release
      in the 1.11 series...When regenerating a directory to a newer
      version, please update all the directories using an older 1.11
      to the latest released version.

So, that says ac-2.64 and (now) am-1.11.1 -- and I already had 'em
installed since that's what gcc wants developers to use.  Besides,
that's pretty close to what the current newlib is using, so I
figured...it couldn't hurt, right?

Wrong.

I ran into two issues (plus a minor nit). The first, I'm sure about the
fix.  The second...not so much, because I don't have a cross environment
to test it. (Could someone who does give it a try?)

Now, since src/libtool* and src/ltmain.sh were updated more recently
(2009-12-05) than the last time Jeff regenerated newlib's build
machinery (2009-10-20), I think this first issue will impact regardless
of whether you now use am-1.11 vs am-1.11.1, or ac-2.63 vs. ac-2.64.
So, that needs to be fixed regardless.


1) libtool issues
==============================
Most significantly: The new libtool.m4 in newlib/../ IS used by all of
the newlib directories once you re-autotool, and causes breakage inside
newlib when configuring --without-libtool. Even when --without-libtool,
many of the libtool-related substitutions get put into config.status --
but those substitutions use $ECHO, which is not actually set in this
scenario, so they don't get evaluated properly, and config.status is borked.

...
SED='`$ECHO $SED | $SED ....`'

so, when you actually execute ./config.status, this becomes:
SED='`/usr/bin/sed | /usr/bin/sed ...`'

which is an error.

The fix is, for every configure.in that includes AM_PROG_LIBTOOL (even
though AM_PROG_LIBTOOL is 'guarded' by if ${with_libtool}), add
_LT_PROG_ECHO_BACKSLASH *outside* the 'if' statement, just like we did
earlier for _LT_DECL_SED.

2) cross-compile support breaking native, with new autoconf
===========================================================
After the above change and during the subsequent configure/build, I'd
get really odd errors about 'CCASFLAGS was not set in the previous run'.
Which is true -- I didn't set it. But somehow, it was getting set later
in the process, and this annoyed the subdirectory configures.  Some
googling says this is usually because 'the build machinery of the
project is broken'. Ooookay.

Well, in newlib/acinclude.m4, we have a bunch of old support for working
around cross-compile deficiencies in ac-2.12:

# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
# are probably using a cross compiler, which will not be able to fully
# link an executable.  This should really be fixed in autoconf
# itself.

AC_DEFUN([LIB_AC_PROG_CC_GNU]
AC_DEFUN([LIB_AM_PROG_AS]
AC_DEFUN([LIB_AC_PROG_CC]

and later, we invoke explicitly

LIB_AC_PROG_CC
and
LIB_AM_PROG_AS


Well.  The gcc source tree doesn't appear to need workarounds like this
anymore for cross compiling.  And then there was the whole rewrite for
handling --host/--build cross-compile in auto* back in the 2.5x days.
So, I *guessed* that these workarounds were no longer necessary, and
ripped them out, replacing the explicit invocations with their updated
official versions:

AC_PROG_CC
AM_PROG_AS

With one minor nit, this worked -- I can build newlib "natively" on
cygwin now.  But...I don't really know if my *guess* about whether these
workarounds can be removed in actual cross-compile scenarios is true.

3) minor nit, due to changes above:
====================================================
In newlib/libc/machine/sh/configure.in, AC_NO_EXECUTABLES is called
before NEWLIB_CONFIGURE.  This is now a problem, because you can't call
AC_NO_EXECUTABLES after _AC_COMPILER_EXEEXT, but NEWLIB_CONFIGURE calls
the official AC_PROG_CC, which calls _AC_COMPILER_EXEEXT.  The simple
solution is to just move AC_NO_EXECUTABLES to before NEWLIB_CONFIGURE.




At the beginning of the message, I mentioned some additions to newlib I
was planning. The attached patch does not have any of those changes; I
pulled them out and re-regenerated all of the auto*-generated files for
the purposes of the attached patch.

I've also separated the changes into two patches: one for "primary"
modifications, and the other containing all of the autotool-generated
changes (with the exception of newlib.hin, since that has to be hand
edited).  This second patch is available here:
http://cygwin.cwilson.fastmail.fm/ITP/work-around-libtool-changes-auto.patch.lzma
because it's over 100k even lzma compressed (1.1M bzip2!) and the
mailing list doesn't like that.

Also, this would allow Jeff to apply the first patch only, and
regenerate everything else manually using am-1.11 and ac-2.63, if he's
not ready to update to the gcc-preferred autotool versions yet.

--
Chuck


First patch:
2010-02-12  Charles Wilson  <...>

	Work around issues with new libtool files in ..
	* acinclude.m4 (LIB_AC_PROG_CC_GNU): Remove.
	(LIB_AM_PROG_AS): Ditto.
	(LIB_AC_PROG_CC): Ditto.
	(NEWLIB_CONFIGURE): Call standard AC_PROG_CC
	and AM_PROG_AS instead.
	* newlib.hin: Regenerate, and re-edit.
	* configure.in: Unconditionally call
	_LT_PROG_ECHO_BACKSLASH.
	* iconvdata/configure.in: Ditto.
	* libc/configure.in: Ditto.
	* libc/machine/configure.in: Ditto.
	* libc/machine/i386/configure.in: Ditto.
	* libc/sys/configure.in: Ditto.
	* libc/sys/linux/configure.in: Ditto.
	* libc/sys/linux/linuxthreads/configure.in: Ditto.
	* libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
	* libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
	* libc/sys/linux/machine/configure.in: Ditto.
	* libc/sys/linux/machine/i386/configure.in: Ditto.
	* libm/configure.in: Ditto.
	* libm/machine/configure.in: Ditto.
	* libm/machine/i386/configure.in: Ditto.
	* libc/machine/sh/configure.in: Ditto. Also, call
	AC_NO_EXECUTABLES before NEWLIB_CONFIGURE.


Second patch:
http://cygwin.cwilson.fastmail.fm/ITP/work-around-libtool-changes-auto.patch.lzma

2010-02-12  Charles Wilson  <...>

        Regenerate using ac-2.64 and am-1.11.1
	* Makefile.in: Regenerate.
	* aclocal.m4: Ditto.
	* configure: Ditto.
	* doc/Makefile.in: Ditto.
	* doc/aclocal.m4: Ditto.
	* doc/configure: Ditto.
	* iconvdata/Makefile.in: Ditto.
	* iconvdata/aclocal.m4: Ditto.
	* iconvdata/configure: Ditto.
	* libc/Makefile.in: Ditto.
	* libc/aclocal.m4: Ditto.
	* libc/argz/Makefile.in: Ditto.
	* libc/configure: Ditto.
	* libc/ctype/Makefile.in: Ditto.
	* libc/errno/Makefile.in: Ditto.
	* libc/iconv/Makefile.in: Ditto.
	* libc/iconv/ccs/Makefile.in: Ditto.
	* libc/iconv/ccs/binary/Makefile.in: Ditto.
	* libc/iconv/ces/Makefile.in: Ditto.
	* libc/iconv/lib/Makefile.in: Ditto.
	* libc/locale/Makefile.in: Ditto.
	* libc/machine/Makefile.in: Ditto.
	* libc/machine/a29k/Makefile.in: Ditto.
	* libc/machine/a29k/aclocal.m4: Ditto.
	* libc/machine/a29k/configure: Ditto.
	* libc/machine/aclocal.m4: Ditto.
	* libc/machine/arm/Makefile.in: Ditto.
	* libc/machine/arm/aclocal.m4: Ditto.
	* libc/machine/arm/configure: Ditto.
	* libc/machine/bfin/Makefile.in: Ditto.
	* libc/machine/bfin/aclocal.m4: Ditto.
	* libc/machine/bfin/configure: Ditto.
	* libc/machine/configure: Ditto.
	* libc/machine/cris/Makefile.in: Ditto.
	* libc/machine/cris/aclocal.m4: Ditto.
	* libc/machine/cris/configure: Ditto.
	* libc/machine/crx/Makefile.in: Ditto.
	* libc/machine/crx/aclocal.m4: Ditto.
	* libc/machine/crx/configure: Ditto.
	* libc/machine/d10v/Makefile.in: Ditto.
	* libc/machine/d10v/aclocal.m4: Ditto.
	* libc/machine/d10v/configure: Ditto.
	* libc/machine/d30v/Makefile.in: Ditto.
	* libc/machine/d30v/aclocal.m4: Ditto.
	* libc/machine/d30v/configure: Ditto.
	* libc/machine/fr30/Makefile.in: Ditto.
	* libc/machine/fr30/aclocal.m4: Ditto.
	* libc/machine/fr30/configure: Ditto.
	* libc/machine/frv/Makefile.in: Ditto.
	* libc/machine/frv/aclocal.m4: Ditto.
	* libc/machine/frv/configure: Ditto.
	* libc/machine/h8300/Makefile.in: Ditto.
	* libc/machine/h8300/aclocal.m4: Ditto.
	* libc/machine/h8300/configure: Ditto.
	* libc/machine/h8500/Makefile.in: Ditto.
	* libc/machine/h8500/aclocal.m4: Ditto.
	* libc/machine/h8500/configure: Ditto.
	* libc/machine/hppa/Makefile.in: Ditto.
	* libc/machine/hppa/aclocal.m4: Ditto.
	* libc/machine/hppa/configure: Ditto.
	* libc/machine/i386/Makefile.in: Ditto.
	* libc/machine/i386/aclocal.m4: Ditto.
	* libc/machine/i386/configure: Ditto.
	* libc/machine/i960/Makefile.in: Ditto.
	* libc/machine/i960/aclocal.m4: Ditto.
	* libc/machine/i960/configure: Ditto.
	* libc/machine/iq2000/Makefile.in: Ditto.
	* libc/machine/iq2000/aclocal.m4: Ditto.
	* libc/machine/iq2000/configure: Ditto.
	* libc/machine/m32c/Makefile.in: Ditto.
	* libc/machine/m32c/aclocal.m4: Ditto.
	* libc/machine/m32c/configure: Ditto.
	* libc/machine/m32r/Makefile.in: Ditto.
	* libc/machine/m32r/aclocal.m4: Ditto.
	* libc/machine/m32r/configure: Ditto.
	* libc/machine/m68hc11/Makefile.in: Ditto.
	* libc/machine/m68hc11/aclocal.m4: Ditto.
	* libc/machine/m68hc11/configure: Ditto.
	* libc/machine/m68k/Makefile.in: Ditto.
	* libc/machine/m68k/aclocal.m4: Ditto.
	* libc/machine/m68k/configure: Ditto.
	* libc/machine/m88k/Makefile.in: Ditto.
	* libc/machine/m88k/aclocal.m4: Ditto.
	* libc/machine/m88k/configure: Ditto.
	* libc/machine/mep/Makefile.in: Ditto.
	* libc/machine/mep/aclocal.m4: Ditto.
	* libc/machine/mep/configure: Ditto.
	* libc/machine/mips/Makefile.in: Ditto.
	* libc/machine/mips/aclocal.m4: Ditto.
	* libc/machine/mips/configure: Ditto.
	* libc/machine/mn10200/Makefile.in: Ditto.
	* libc/machine/mn10200/aclocal.m4: Ditto.
	* libc/machine/mn10200/configure: Ditto.
	* libc/machine/mn10300/Makefile.in: Ditto.
	* libc/machine/mn10300/aclocal.m4: Ditto.
	* libc/machine/mn10300/configure: Ditto.
	* libc/machine/mt/Makefile.in: Ditto.
	* libc/machine/mt/aclocal.m4: Ditto.
	* libc/machine/mt/configure: Ditto.
	* libc/machine/necv70/Makefile.in: Ditto.
	* libc/machine/necv70/aclocal.m4: Ditto.
	* libc/machine/necv70/configure: Ditto.
	* libc/machine/powerpc/Makefile.in: Ditto.
	* libc/machine/powerpc/aclocal.m4: Ditto.
	* libc/machine/powerpc/configure: Ditto.
	* libc/machine/sh/Makefile.in: Ditto.
	* libc/machine/sh/aclocal.m4: Ditto.
	* libc/machine/sh/configure: Ditto.
	* libc/machine/sparc/Makefile.in: Ditto.
	* libc/machine/sparc/aclocal.m4: Ditto.
	* libc/machine/sparc/configure: Ditto.
	* libc/machine/spu/Makefile.in: Ditto.
	* libc/machine/spu/aclocal.m4: Ditto.
	* libc/machine/spu/configure: Ditto.
	* libc/machine/tic4x/Makefile.in: Ditto.
	* libc/machine/tic4x/aclocal.m4: Ditto.
	* libc/machine/tic4x/configure: Ditto.
	* libc/machine/tic80/Makefile.in: Ditto.
	* libc/machine/tic80/aclocal.m4: Ditto.
	* libc/machine/tic80/configure: Ditto.
	* libc/machine/v850/Makefile.in: Ditto.
	* libc/machine/v850/aclocal.m4: Ditto.
	* libc/machine/v850/configure: Ditto.
	* libc/machine/w65/Makefile.in: Ditto.
	* libc/machine/w65/aclocal.m4: Ditto.
	* libc/machine/w65/configure: Ditto.
	* libc/machine/x86_64/Makefile.in: Ditto.
	* libc/machine/x86_64/aclocal.m4: Ditto.
	* libc/machine/x86_64/configure: Ditto.
	* libc/machine/xscale/Makefile.in: Ditto.
	* libc/machine/xscale/aclocal.m4: Ditto.
	* libc/machine/xscale/configure: Ditto.
	* libc/machine/xstormy16/Makefile.in: Ditto.
	* libc/machine/xstormy16/aclocal.m4: Ditto.
	* libc/machine/xstormy16/configure: Ditto.
	* libc/machine/z8k/Makefile.in: Ditto.
	* libc/machine/z8k/aclocal.m4: Ditto.
	* libc/machine/z8k/configure: Ditto.
	* libc/misc/Makefile.in: Ditto.
	* libc/posix/Makefile.in: Ditto.
	* libc/reent/Makefile.in: Ditto.
	* libc/search/Makefile.in: Ditto.
	* libc/signal/Makefile.in: Ditto.
	* libc/stdio/Makefile.in: Ditto.
	* libc/stdio64/Makefile.in: Ditto.
	* libc/stdlib/Makefile.in: Ditto.
	* libc/string/Makefile.in: Ditto.
	* libc/sys/Makefile.in: Ditto.
	* libc/sys/a29khif/Makefile.in: Ditto.
	* libc/sys/a29khif/aclocal.m4: Ditto.
	* libc/sys/a29khif/configure: Ditto.
	* libc/sys/aclocal.m4: Ditto.
	* libc/sys/arc/Makefile.in: Ditto.
	* libc/sys/arc/aclocal.m4: Ditto.
	* libc/sys/arc/configure: Ditto.
	* libc/sys/arm/Makefile.in: Ditto.
	* libc/sys/arm/aclocal.m4: Ditto.
	* libc/sys/arm/configure: Ditto.
	* libc/sys/configure: Ditto.
	* libc/sys/d10v/Makefile.in: Ditto.
	* libc/sys/d10v/aclocal.m4: Ditto.
	* libc/sys/d10v/configure: Ditto.
	* libc/sys/decstation/Makefile.in: Ditto.
	* libc/sys/decstation/aclocal.m4: Ditto.
	* libc/sys/decstation/configure: Ditto.
	* libc/sys/h8300hms/Makefile.in: Ditto.
	* libc/sys/h8300hms/aclocal.m4: Ditto.
	* libc/sys/h8300hms/configure: Ditto.
	* libc/sys/h8500hms/Makefile.in: Ditto.
	* libc/sys/h8500hms/aclocal.m4: Ditto.
	* libc/sys/h8500hms/configure: Ditto.
	* libc/sys/linux/Makefile.in: Ditto.
	* libc/sys/linux/aclocal.m4: Ditto.
	* libc/sys/linux/argp/Makefile.in: Ditto.
	* libc/sys/linux/cmath/Makefile.in: Ditto.
	* libc/sys/linux/configure: Ditto.
	* libc/sys/linux/dl/Makefile.in: Ditto.
	* libc/sys/linux/iconv/Makefile.in: Ditto.
	* libc/sys/linux/intl/Makefile.in: Ditto.
	* libc/sys/linux/linuxthreads/Makefile.in: Ditto.
	* libc/sys/linux/linuxthreads/aclocal.m4: Ditto.
	* libc/sys/linux/linuxthreads/configure: Ditto.
	* libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto.
	* libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto.
	* libc/sys/linux/linuxthreads/machine/configure: Ditto.
	* libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto.
	* libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto.
	* libc/sys/linux/linuxthreads/machine/i386/configure: Ditto.
	* libc/sys/linux/machine/Makefile.in: Ditto.
	* libc/sys/linux/machine/aclocal.m4: Ditto.
	* libc/sys/linux/machine/configure: Ditto.
	* libc/sys/linux/machine/i386/Makefile.in: Ditto.
	* libc/sys/linux/machine/i386/aclocal.m4: Ditto.
	* libc/sys/linux/machine/i386/configure: Ditto.
	* libc/sys/linux/net/Makefile.in: Ditto.
	* libc/sys/m88kbug/Makefile.in: Ditto.
	* libc/sys/m88kbug/aclocal.m4: Ditto.
	* libc/sys/m88kbug/configure: Ditto.
	* libc/sys/mmixware/Makefile.in: Ditto.
	* libc/sys/mmixware/aclocal.m4: Ditto.
	* libc/sys/mmixware/configure: Ditto.
	* libc/sys/netware/Makefile.in: Ditto.
	* libc/sys/netware/aclocal.m4: Ditto.
	* libc/sys/netware/configure: Ditto.
	* libc/sys/rdos/Makefile.in: Ditto.
	* libc/sys/rdos/aclocal.m4: Ditto.
	* libc/sys/rdos/configure: Ditto.
	* libc/sys/rtems/Makefile.in: Ditto.
	* libc/sys/rtems/aclocal.m4: Ditto.
	* libc/sys/rtems/configure: Ditto.
	* libc/sys/sh/Makefile.in: Ditto.
	* libc/sys/sh/aclocal.m4: Ditto.
	* libc/sys/sh/configure: Ditto.
	* libc/sys/sparc64/Makefile.in: Ditto.
	* libc/sys/sparc64/aclocal.m4: Ditto.
	* libc/sys/sparc64/configure: Ditto.
	* libc/sys/sun4/Makefile.in: Ditto.
	* libc/sys/sun4/aclocal.m4: Ditto.
	* libc/sys/sun4/configure: Ditto.
	* libc/sys/sysmec/Makefile.in: Ditto.
	* libc/sys/sysmec/aclocal.m4: Ditto.
	* libc/sys/sysmec/configure: Ditto.
	* libc/sys/sysnec810/Makefile.in: Ditto.
	* libc/sys/sysnec810/aclocal.m4: Ditto.
	* libc/sys/sysnec810/configure: Ditto.
	* libc/sys/sysnecv850/Makefile.in: Ditto.
	* libc/sys/sysnecv850/aclocal.m4: Ditto.
	* libc/sys/sysnecv850/configure: Ditto.
	* libc/sys/sysvi386/Makefile.in: Ditto.
	* libc/sys/sysvi386/aclocal.m4: Ditto.
	* libc/sys/sysvi386/configure: Ditto.
	* libc/sys/sysvnecv70/Makefile.in: Ditto.
	* libc/sys/sysvnecv70/aclocal.m4: Ditto.
	* libc/sys/sysvnecv70/configure: Ditto.
	* libc/sys/tic80/Makefile.in: Ditto.
	* libc/sys/tic80/aclocal.m4: Ditto.
	* libc/sys/tic80/configure: Ditto.
	* libc/sys/w65/Makefile.in: Ditto.
	* libc/sys/w65/aclocal.m4: Ditto.
	* libc/sys/w65/configure: Ditto.
	* libc/sys/z8ksim/Makefile.in: Ditto.
	* libc/sys/z8ksim/aclocal.m4: Ditto.
	* libc/sys/z8ksim/configure: Ditto.
	* libc/syscalls/Makefile.in: Ditto.
	* libc/time/Makefile.in: Ditto.
	* libc/unix/Makefile.in: Ditto.
	* libm/Makefile.in: Ditto.
	* libm/aclocal.m4: Ditto.
	* libm/common/Makefile.in: Ditto.
	* libm/configure: Ditto.
	* libm/machine/Makefile.in: Ditto.
	* libm/machine/aclocal.m4: Ditto.
	* libm/machine/configure: Ditto.
	* libm/machine/i386/Makefile.in: Ditto.
	* libm/machine/i386/aclocal.m4: Ditto.
	* libm/machine/i386/configure: Ditto.
	* libm/machine/spu/Makefile.in: Ditto.
	* libm/machine/spu/aclocal.m4: Ditto.
	* libm/machine/spu/configure: Ditto.
	* libm/math/Makefile.in: Ditto.
	* libm/mathfp/Makefile.in: Ditto.
Index: acinclude.m4
===================================================================
RCS file: /cvs/src/src/newlib/acinclude.m4,v
retrieving revision 1.31
diff -u -p -r1.31 acinclude.m4
--- acinclude.m4	17 Dec 2009 20:40:05 -0000	1.31
+++ acinclude.m4	12 Feb 2010 21:03:15 -0000
@@ -110,68 +110,7 @@ AC_CANONICAL_HOST
 
 AM_INIT_AUTOMAKE([cygnus no-define 1.9.5])
 
-# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
-# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
-# are probably using a cross compiler, which will not be able to fully
-# link an executable.  This should really be fixed in autoconf
-# itself.
-
-AC_DEFUN([LIB_AC_PROG_CC_GNU],
-[AC_CACHE_CHECK(whether we are using GNU C, ac_cv_prog_gcc,
-[dnl The semicolon is to pacify NeXT's syntax-checking cpp.
-cat > conftest.c <<EOF
-#ifdef __GNUC__
-  yes;
-#endif
-EOF
-if AC_TRY_COMMAND(${CC-cc} -E conftest.c) | egrep yes >/dev/null 2>&1; then
-  ac_cv_prog_gcc=yes
-else
-  ac_cv_prog_gcc=no
-fi])])
-
-AC_DEFUN([LIB_AM_PROG_AS],
-[# By default we simply use the C compiler to build assembly code.
-AC_REQUIRE([LIB_AC_PROG_CC])
-test "${CCAS+set}" = set || CCAS=$CC
-test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
-AC_ARG_VAR([CCAS],      [assembler compiler command (defaults to CC)])
-AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
-])
-
-AC_DEFUN([LIB_AC_PROG_CC],
-[AC_BEFORE([$0], [AC_PROG_CPP])dnl
-AC_CHECK_PROG(CC, gcc, gcc)
-_AM_DEPENDENCIES(CC)
-if test -z "$CC"; then
-  AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc)
-  test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
-fi
-
-LIB_AC_PROG_CC_GNU
-
-if test $ac_cv_prog_gcc = yes; then
-  GCC=yes
-dnl Check whether -g works, even if CFLAGS is set, in case the package
-dnl plays around with CFLAGS (such as to build both debugging and
-dnl normal versions of a library), tasteless as that idea is.
-  ac_test_CFLAGS="${CFLAGS+set}"
-  ac_save_CFLAGS="$CFLAGS"
-  _AC_PROG_CC_G
-  if test "$ac_test_CFLAGS" = set; then
-    CFLAGS="$ac_save_CFLAGS"
-  elif test $ac_cv_prog_cc_g = yes; then
-    CFLAGS="-g -O2"
-  else
-    CFLAGS="-O2"
-  fi
-else
-  GCC=
-  test "${CFLAGS+set}" = set || CFLAGS="-g"
-fi
-])
-
-LIB_AC_PROG_CC
+AC_PROG_CC
 
 AC_CHECK_TOOL(AS, as)
 AC_CHECK_TOOL(AR, ar)
@@ -184,7 +123,7 @@ AC_PROG_INSTALL
 ac_given_INSTALL=$INSTALL
 
 AM_MAINTAINER_MODE
-LIB_AM_PROG_AS
+AM_PROG_AS
 
 # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
 # at least currently, we never actually build a program, so we never
Index: configure.in
===================================================================
RCS file: /cvs/src/src/newlib/configure.in,v
retrieving revision 1.43
diff -u -p -r1.43 configure.in
--- configure.in	20 Oct 2009 22:43:46 -0000	1.43
+++ configure.in	12 Feb 2010 21:03:17 -0000
@@ -121,6 +121,7 @@ dnl We have to enable libtool after NEWL
 dnl add it into NEWLIB_CONFIGURE, executable tests are made before the first
 dnl line of the macro which fail because appropriate LDFLAGS are not set.
 _LT_DECL_SED
+_LT_PROG_ECHO_BACKSLASH
 AC_PROG_AWK
 if test "${use_libtool}" = "yes"; then
 AC_LIBTOOL_WIN32_DLL
Index: newlib.hin
===================================================================
RCS file: /cvs/src/src/newlib/newlib.hin,v
retrieving revision 1.20
diff -u -p -r1.20 newlib.hin
--- newlib.hin	18 Aug 2009 21:48:04 -0000	1.20
+++ newlib.hin	12 Feb 2010 21:03:20 -0000
@@ -49,12 +49,52 @@
    functions.  */
 #undef  _ATEXIT_DYNAMIC_ALLOC
 
-/* True if long double supported.  */
+/* Define if the compiler supports aliasing an array to an address.  */
+#undef  _HAVE_ARRAY_ALIASING
+
+/* Define if the platform supports long double type.  */
 #undef  _HAVE_LONG_DOUBLE
 
-/* True if long double supported and it is equal to double.  */
+/* Define if the platform long double type is equal to double.  */
 #undef  _LDBL_EQ_DBL
 
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#undef HAVE_DLFCN_H
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#undef HAVE_INTTYPES_H
+
+/* Define to 1 if you have the <memory.h> header file. */
+#undef HAVE_MEMORY_H
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#undef HAVE_STDINT_H
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#undef HAVE_STDLIB_H
+
+/* Define to 1 if you have the <strings.h> header file. */
+#undef HAVE_STRINGS_H
+
+/* Define to 1 if you have the <string.h> header file. */
+#undef HAVE_STRING_H
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#undef HAVE_SYS_STAT_H
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#undef HAVE_SYS_TYPES_H
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#undef HAVE_UNISTD_H
+
+/* Define to the sub-directory in which libtool stores uninstalled libraries.
+   */
+#undef LT_OBJDIR
+
+/* Define to 1 if you have the ANSI C header files. */
+#undef STDC_HEADERS
 /*
  * Iconv encodings enabled ("to" direction)
  */
@@ -164,4 +204,3 @@
 #undef _ICONV_FROM_ENCODING_WIN_1258
 
 #endif /* !__NEWLIB_H__ */
-
Index: iconvdata/configure.in
===================================================================
RCS file: /cvs/src/src/newlib/iconvdata/configure.in,v
retrieving revision 1.3
diff -u -p -r1.3 configure.in
--- iconvdata/configure.in	24 May 2007 17:33:30 -0000	1.3
+++ iconvdata/configure.in	12 Feb 2010 21:03:22 -0000
@@ -14,6 +14,7 @@ dnl We have to enable libtool after NEWL
 dnl add it into NEWLIB_CONFIGURE, executable tests are made before the first
 dnl line of the macro which fail because appropriate LDFLAGS are not set.
 _LT_DECL_SED
+_LT_PROG_ECHO_BACKSLASH
 if test "${use_libtool}" = "yes"; then
 AC_LIBTOOL_WIN32_DLL
 AM_PROG_LIBTOOL
Index: libc/configure.in
===================================================================
RCS file: /cvs/src/src/newlib/libc/configure.in,v
retrieving revision 1.17
diff -u -p -r1.17 configure.in
--- libc/configure.in	17 Apr 2009 20:50:44 -0000	1.17
+++ libc/configure.in	12 Feb 2010 21:03:24 -0000
@@ -23,6 +23,7 @@ dnl We have to enable libtool after NEWL
 dnl add it into NEWLIB_CONFIGURE, executable tests are made before the first
 dnl line of the macro which fail because appropriate LDFLAGS are not set.
 _LT_DECL_SED
+_LT_PROG_ECHO_BACKSLASH
 if test "${use_libtool}" = "yes"; then
 AC_LIBTOOL_WIN32_DLL
 AM_PROG_LIBTOOL
Index: libc/machine/configure.in
===================================================================
RCS file: /cvs/src/src/newlib/libc/machine/configure.in,v
retrieving revision 1.14
diff -u -p -r1.14 configure.in
--- libc/machine/configure.in	10 Dec 2009 17:12:11 -0000	1.14
+++ libc/machine/configure.in	12 Feb 2010 21:03:26 -0000
@@ -15,6 +15,7 @@ dnl references to libtool libraries from
 dnl AM_PROG_LIBTOOL is being used.  This must be added after
 dnl the call to NEWLIB_CONFIGURE.
 _LT_DECL_SED
+_LT_PROG_ECHO_BACKSLASH
 if test "${use_libtool}" = "yes"; then
 AC_LIBTOOL_WIN32_DLL
 AM_PROG_LIBTOOL
Index: libc/machine/i386/configure.in
===================================================================
RCS file: /cvs/src/src/newlib/libc/machine/i386/configure.in,v
retrieving revision 1.4
diff -u -p -r1.4 configure.in
--- libc/machine/i386/configure.in	24 May 2007 17:33:34 -0000	1.4
+++ libc/machine/i386/configure.in	12 Feb 2010 21:03:29 -0000
@@ -15,6 +15,7 @@ dnl references to libtool libraries from
 dnl AM_PROG_LIBTOOL is being used.  This code must occur after
 dnl NEWLIB_CONFIGURE. 
 _LT_DECL_SED
+_LT_PROG_ECHO_BACKSLASH
 if test "${use_libtool}" = "yes"; then
 AC_LIBTOOL_WIN32_DLL
 AM_PROG_LIBTOOL
Index: libc/sys/configure.in
===================================================================
RCS file: /cvs/src/src/newlib/libc/sys/configure.in,v
retrieving revision 1.8
diff -u -p -r1.8 configure.in
--- libc/sys/configure.in	24 May 2007 17:33:37 -0000	1.8
+++ libc/sys/configure.in	12 Feb 2010 21:03:31 -0000
@@ -14,6 +14,7 @@ dnl We have to enable libtool after NEWL
 dnl add it into NEWLIB_CONFIGURE, executable tests are made before the first
 dnl line of the macro which fail because appropriate LDFLAGS are not set.
 _LT_DECL_SED
+_LT_PROG_ECHO_BACKSLASH
 if test "${use_libtool}" = "yes"; then
 AC_LIBTOOL_WIN32_DLL
 AM_PROG_LIBTOOL
Index: libc/sys/linux/configure.in
===================================================================
RCS file: /cvs/src/src/newlib/libc/sys/linux/configure.in,v
retrieving revision 1.13
diff -u -p -r1.13 configure.in
--- libc/sys/linux/configure.in	31 Oct 2008 21:03:41 -0000	1.13
+++ libc/sys/linux/configure.in	12 Feb 2010 21:03:34 -0000
@@ -14,6 +14,7 @@ dnl We have to enable libtool after NEWL
 dnl add it into NEWLIB_CONFIGURE, executable tests are made before the first
 dnl line of the macro which fail because appropriate LDFLAGS are not set.
 _LT_DECL_SED
+_LT_PROG_ECHO_BACKSLASH
 AC_PROG_AWK
 if test "${use_libtool}" = "yes"; then
 AC_LIBTOOL_WIN32_DLL
Index: libc/sys/linux/linuxthreads/configure.in
===================================================================
RCS file: /cvs/src/src/newlib/libc/sys/linux/linuxthreads/configure.in,v
retrieving revision 1.3
diff -u -p -r1.3 configure.in
--- libc/sys/linux/linuxthreads/configure.in	24 May 2007 17:33:38 -0000	1.3
+++ libc/sys/linux/linuxthreads/configure.in	12 Feb 2010 21:03:36 -0000
@@ -14,6 +14,7 @@ dnl We have to enable libtool after NEWL
 dnl add it into NEWLIB_CONFIGURE, executable tests are made before the first
 dnl line of the macro which fail because appropriate LDFLAGS are not set.
 _LT_DECL_SED
+_LT_PROG_ECHO_BACKSLASH
 AC_PROG_AWK
 if test "${use_libtool}" = "yes"; then
 AC_LIBTOOL_WIN32_DLL
Index: libc/sys/linux/linuxthreads/machine/configure.in
===================================================================
RCS file: /cvs/src/src/newlib/libc/sys/linux/linuxthreads/machine/configure.in,v
retrieving revision 1.4
diff -u -p -r1.4 configure.in
--- libc/sys/linux/linuxthreads/machine/configure.in	24 May 2007 17:33:39 -0000	1.4
+++ libc/sys/linux/linuxthreads/machine/configure.in	12 Feb 2010 21:03:40 -0000
@@ -14,6 +14,7 @@ dnl We have to enable libtool after NEWL
 dnl add it into NEWLIB_CONFIGURE, executable tests are made before the first
 dnl line of the macro which fail because appropriate LDFLAGS are not set.
 _LT_DECL_SED
+_LT_PROG_ECHO_BACKSLASH
 if test "${use_libtool}" = "yes"; then
 AC_LIBTOOL_WIN32_DLL
 AM_PROG_LIBTOOL
Index: libc/sys/linux/linuxthreads/machine/i386/configure.in
===================================================================
RCS file: /cvs/src/src/newlib/libc/sys/linux/linuxthreads/machine/i386/configure.in,v
retrieving revision 1.3
diff -u -p -r1.3 configure.in
--- libc/sys/linux/linuxthreads/machine/i386/configure.in	24 May 2007 17:33:39 -0000	1.3
+++ libc/sys/linux/linuxthreads/machine/i386/configure.in	12 Feb 2010 21:03:44 -0000
@@ -14,6 +14,7 @@ dnl We have to enable libtool after NEWL
 dnl add it into NEWLIB_CONFIGURE, executable tests are made before the first
 dnl line of the macro which fail because appropriate LDFLAGS are not set.
 _LT_DECL_SED
+_LT_PROG_ECHO_BACKSLASH
 AC_PROG_AWK
 if test "${use_libtool}" = "yes"; then
 AC_LIBTOOL_WIN32_DLL
Index: libc/sys/linux/machine/configure.in
===================================================================
RCS file: /cvs/src/src/newlib/libc/sys/linux/machine/configure.in,v
retrieving revision 1.4
diff -u -p -r1.4 configure.in
--- libc/sys/linux/machine/configure.in	24 May 2007 17:33:39 -0000	1.4
+++ libc/sys/linux/machine/configure.in	12 Feb 2010 21:03:48 -0000
@@ -14,6 +14,7 @@ dnl We have to enable libtool after NEWL
 dnl add it into NEWLIB_CONFIGURE, executable tests are made before the first
 dnl line of the macro which fail because appropriate LDFLAGS are not set.
 _LT_DECL_SED
+_LT_PROG_ECHO_BACKSLASH
 if test "${use_libtool}" = "yes"; then
 AC_LIBTOOL_WIN32_DLL
 AM_PROG_LIBTOOL
Index: libc/sys/linux/machine/i386/configure.in
===================================================================
RCS file: /cvs/src/src/newlib/libc/sys/linux/machine/i386/configure.in,v
retrieving revision 1.3
diff -u -p -r1.3 configure.in
--- libc/sys/linux/machine/i386/configure.in	24 May 2007 17:33:39 -0000	1.3
+++ libc/sys/linux/machine/i386/configure.in	12 Feb 2010 21:03:52 -0000
@@ -14,6 +14,7 @@ dnl We have to enable libtool after NEWL
 dnl add it into NEWLIB_CONFIGURE, executable tests are made before the first
 dnl line of the macro which fail because appropriate LDFLAGS are not set.
 _LT_DECL_SED
+_LT_PROG_ECHO_BACKSLASH
 AC_PROG_AWK
 if test "${use_libtool}" = "yes"; then
 AC_LIBTOOL_WIN32_DLL
Index: libm/configure.in
===================================================================
RCS file: /cvs/src/src/newlib/libm/configure.in,v
retrieving revision 1.9
diff -u -p -r1.9 configure.in
--- libm/configure.in	17 Apr 2009 16:18:17 -0000	1.9
+++ libm/configure.in	12 Feb 2010 21:03:56 -0000
@@ -43,6 +43,7 @@ dnl We have to enable libtool after NEWL
 dnl add it into NEWLIB_CONFIGURE, executable tests are made before the first
 dnl line of the macro which fail because appropriate LDFLAGS are not set.
 _LT_DECL_SED
+_LT_PROG_ECHO_BACKSLASH
 if test "${use_libtool}" = "yes"; then
 AC_LIBTOOL_WIN32_DLL
 AM_PROG_LIBTOOL
Index: libm/machine/configure.in
===================================================================
RCS file: /cvs/src/src/newlib/libm/machine/configure.in,v
retrieving revision 1.6
diff -u -p -r1.6 configure.in
--- libm/machine/configure.in	24 May 2007 17:33:42 -0000	1.6
+++ libm/machine/configure.in	12 Feb 2010 21:04:00 -0000
@@ -15,6 +15,7 @@ dnl references to libtool libraries from
 dnl AM_PROG_LIBTOOL is being used.  This must be added after
 dnl the call to NEWLIB_CONFIGURE.
 _LT_DECL_SED
+_LT_PROG_ECHO_BACKSLASH
 if test "${use_libtool}" = "yes"; then
 AC_LIBTOOL_WIN32_DLL
 AM_PROG_LIBTOOL
Index: libm/machine/i386/configure.in
===================================================================
RCS file: /cvs/src/src/newlib/libm/machine/i386/configure.in,v
retrieving revision 1.3
diff -u -p -r1.3 configure.in
--- libm/machine/i386/configure.in	24 May 2007 17:33:42 -0000	1.3
+++ libm/machine/i386/configure.in	12 Feb 2010 21:04:05 -0000
@@ -15,6 +15,7 @@ dnl references to libtool libraries from
 dnl AM_PROG_LIBTOOL is being used.  This code must occur after
 dnl NEWLIB_CONFIGURE. 
 _LT_DECL_SED
+_LT_PROG_ECHO_BACKSLASH
 if test "${use_libtool}" = "yes"; then
 AC_LIBTOOL_WIN32_DLL
 AM_PROG_LIBTOOL
Index: libc/machine/sh/configure.in
===================================================================
RCS file: /cvs/src/src/newlib/libc/machine/sh/configure.in,v
retrieving revision 1.4
diff -u -p -r1.4 configure.in
--- libc/machine/sh/configure.in	24 Apr 2006 20:19:52 -0000	1.4
+++ libc/machine/sh/configure.in	12 Feb 2010 21:04:11 -0000
@@ -8,10 +8,10 @@ AC_CONFIG_SRCDIR([asm.h])
 dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 
 AC_CONFIG_AUX_DIR(../../../..)
 
-NEWLIB_CONFIGURE(../../..)
-
 AC_NO_EXECUTABLES
 
+NEWLIB_CONFIGURE(../../..)
+
 AC_EGREP_CPP([sh5], [
 #if __SH5__
   sh5

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