From 8da1639b0c63e581d73bfc169ae6158b36958aeb Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Tue, 27 Aug 2002 20:27:35 +0000 Subject: 2002-08-27 Jeff Johnston * Makefile.am(stmp-targ-include): Copy newlib.h to targ-include. (install-data-local): Install newlib.h. * Makefile.in: Regenerated. * aclocal.m4: Ditto. * configure: Ditto. * configure.in: Add AM_CONFIG_HEADER to generate newlib.h based on newlib.hin. Add AC_DEFINE_UNQUOTED entries for _ELIX_LEVEL and _NEWLIB_VERSION to fill in newlib.h header file entries. In AC_OUTPUT statement, unset ac_file so multilib support does not use last ac_file temporary used in newlib.h configuration. * libc/include/_ansi.h: Include . * newlib.hin: New template file for newlib.h. * stamp-h.in: New file. --- newlib/configure.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'newlib/configure.in') diff --git a/newlib/configure.in b/newlib/configure.in index 050948aa3..fc93ae773 100644 --- a/newlib/configure.in +++ b/newlib/configure.in @@ -3,6 +3,7 @@ dnl Process this file with autoconf to produce a configure script. AC_PREREQ(2.5) AC_INIT(libc) +AM_CONFIG_HEADER(newlib.h:newlib.hin) dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. AC_CONFIG_AUX_DIR(..) @@ -18,7 +19,6 @@ AC_ARG_ENABLE(newlib-io-pos-args, *) AC_MSG_ERROR(bad value ${enableval} for newlib-io-pos-args option) ;; esac], [newlib_io_pos_args=no])dnl - NEWLIB_CONFIGURE(.) dnl We have to enable libtool after NEWLIB_CONFIGURE because if we try and @@ -128,6 +128,11 @@ if test -z "$CC_FOR_BUILD"; then fi AC_SUBST(CC_FOR_BUILD) +if test "${newlib_elix_level}" -gt "0"; then +AC_DEFINE_UNQUOTED(_ELIX_LEVEL,${newlib_elix_level}) +fi + +AC_DEFINE_UNQUOTED(_NEWLIB_VERSION,"$VERSION") if test "${multilib}" = "yes"; then multilib_arg="--enable-multilib" @@ -138,6 +143,7 @@ fi AC_OUTPUT(Makefile, [if test -n "$CONFIG_FILES"; then + unset ac_file . ${newlib_basedir}/../config-ml.in fi], srcdir=${srcdir} -- cgit v1.2.3