From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1521) id A6DE73858D28; Sat, 26 Feb 2022 04:06:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A6DE73858D28 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Frysinger To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] newlib: libc: move configure into top-level X-Act-Checkin: newlib-cygwin X-Git-Author: Mike Frysinger X-Git-Refname: refs/heads/master X-Git-Oldrev: 3a6b11c6979e59b850a138cdc78a9819e1065ac4 X-Git-Newrev: 8343db918f7609c49b6f5eb432a82a5a12ab1dd2 Message-Id: <20220226040658.A6DE73858D28@sourceware.org> Date: Sat, 26 Feb 2022 04:06:58 +0000 (GMT) X-BeenThere: newlib-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib GIT logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Feb 2022 04:06:58 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D8343db918f7= 609c49b6f5eb432a82a5a12ab1dd2 commit 8343db918f7609c49b6f5eb432a82a5a12ab1dd2 Author: Mike Frysinger Date: Sat Feb 12 19:49:23 2022 -0500 newlib: libc: move configure into top-level =20 This kills off the last configure script under libc/ and folds it into the top newlib configure script. The a lot of the logic was already in the top configure script, so move what's left into a libc/acinclude.m4 file. Diff: --- newlib/Makefile.in | 21 +- newlib/configure | 954 +++- newlib/configure.ac | 7 +- newlib/libc/Makefile.am | 3 - newlib/libc/Makefile.in | 110 +- newlib/libc/acinclude.m4 | 182 + newlib/libc/aclocal.m4 | 937 ---- newlib/libc/argz/Makefile.in | 43 +- newlib/libc/configure | 6333 -------------------= ---- newlib/libc/configure.ac | 237 - newlib/libc/ctype/Makefile.in | 43 +- newlib/libc/errno/Makefile.in | 43 +- newlib/libc/iconv/Makefile.in | 41 +- newlib/libc/iconv/ccs/Makefile.in | 43 +- newlib/libc/iconv/ccs/binary/Makefile.in | 41 +- newlib/libc/iconv/ces/Makefile.in | 43 +- newlib/libc/iconv/lib/Makefile.in | 43 +- newlib/libc/locale/Makefile.in | 43 +- newlib/libc/machine/a29k/Makefile.in | 43 +- newlib/libc/machine/aarch64/Makefile.in | 43 +- newlib/libc/machine/amdgcn/Makefile.in | 43 +- newlib/libc/machine/arc/Makefile.in | 43 +- newlib/libc/machine/arm/Makefile.in | 43 +- newlib/libc/machine/bfin/Makefile.in | 43 +- newlib/libc/machine/cr16/Makefile.in | 43 +- newlib/libc/machine/cris/Makefile.in | 43 +- newlib/libc/machine/crx/Makefile.in | 43 +- newlib/libc/machine/csky/Makefile.in | 43 +- newlib/libc/machine/d10v/Makefile.in | 43 +- newlib/libc/machine/d30v/Makefile.in | 43 +- newlib/libc/machine/epiphany/Makefile.in | 43 +- newlib/libc/machine/fr30/Makefile.in | 43 +- newlib/libc/machine/frv/Makefile.in | 43 +- newlib/libc/machine/ft32/Makefile.in | 43 +- newlib/libc/machine/h8300/Makefile.in | 43 +- newlib/libc/machine/h8500/Makefile.in | 43 +- newlib/libc/machine/hppa/Makefile.in | 43 +- newlib/libc/machine/i386/Makefile.in | 43 +- newlib/libc/machine/i960/Makefile.in | 43 +- newlib/libc/machine/iq2000/Makefile.in | 43 +- newlib/libc/machine/lm32/Makefile.in | 43 +- newlib/libc/machine/m32c/Makefile.in | 43 +- newlib/libc/machine/m32r/Makefile.in | 43 +- newlib/libc/machine/m68hc11/Makefile.in | 43 +- newlib/libc/machine/m68k/Makefile.in | 43 +- newlib/libc/machine/m88k/Makefile.in | 43 +- newlib/libc/machine/mep/Makefile.in | 43 +- newlib/libc/machine/microblaze/Makefile.in | 43 +- newlib/libc/machine/mips/Makefile.in | 43 +- newlib/libc/machine/mn10200/Makefile.in | 43 +- newlib/libc/machine/mn10300/Makefile.in | 43 +- newlib/libc/machine/moxie/Makefile.in | 43 +- newlib/libc/machine/msp430/Makefile.in | 43 +- newlib/libc/machine/mt/Makefile.in | 43 +- newlib/libc/machine/nds32/Makefile.in | 43 +- newlib/libc/machine/necv70/Makefile.in | 43 +- newlib/libc/machine/nios2/Makefile.in | 43 +- newlib/libc/machine/nvptx/Makefile.in | 43 +- newlib/libc/machine/or1k/Makefile.in | 43 +- newlib/libc/machine/powerpc/Makefile.in | 43 +- newlib/libc/machine/pru/Makefile.in | 43 +- newlib/libc/machine/riscv/Makefile.in | 43 +- newlib/libc/machine/rl78/Makefile.in | 43 +- newlib/libc/machine/rx/Makefile.in | 43 +- newlib/libc/machine/sh/Makefile.in | 43 +- newlib/libc/machine/sparc/Makefile.in | 43 +- newlib/libc/machine/spu/Makefile.in | 43 +- newlib/libc/machine/tic4x/Makefile.in | 43 +- newlib/libc/machine/tic6x/Makefile.in | 43 +- newlib/libc/machine/tic80/Makefile.in | 43 +- newlib/libc/machine/v850/Makefile.in | 43 +- newlib/libc/machine/visium/Makefile.in | 43 +- newlib/libc/machine/w65/Makefile.in | 43 +- newlib/libc/machine/x86_64/Makefile.in | 43 +- newlib/libc/machine/xc16x/Makefile.in | 43 +- newlib/libc/machine/xstormy16/Makefile.in | 43 +- newlib/libc/machine/z8k/Makefile.in | 43 +- newlib/libc/misc/Makefile.in | 43 +- newlib/libc/posix/Makefile.in | 43 +- newlib/libc/reent/Makefile.in | 43 +- newlib/libc/search/Makefile.in | 43 +- newlib/libc/signal/Makefile.in | 43 +- newlib/libc/ssp/Makefile.in | 43 +- newlib/libc/stdio/Makefile.in | 43 +- newlib/libc/stdio64/Makefile.in | 43 +- newlib/libc/stdlib/Makefile.in | 43 +- newlib/libc/string/Makefile.in | 43 +- newlib/libc/sys/a29khif/Makefile.in | 43 +- newlib/libc/sys/amdgcn/Makefile.in | 43 +- newlib/libc/sys/arm/Makefile.in | 43 +- newlib/libc/sys/d10v/Makefile.in | 43 +- newlib/libc/sys/epiphany/Makefile.in | 43 +- newlib/libc/sys/h8300hms/Makefile.in | 43 +- newlib/libc/sys/h8500hms/Makefile.in | 43 +- newlib/libc/sys/m88kbug/Makefile.in | 43 +- newlib/libc/sys/mmixware/Makefile.in | 43 +- newlib/libc/sys/netware/Makefile.in | 43 +- newlib/libc/sys/or1k/Makefile.in | 43 +- newlib/libc/sys/phoenix/Makefile.in | 43 +- newlib/libc/sys/phoenix/acinclude.m4 | 2 +- newlib/libc/sys/phoenix/machine/arm/Makefile.in | 43 +- newlib/libc/sys/rdos/Makefile.in | 43 +- newlib/libc/sys/rtems/Makefile.in | 43 +- newlib/libc/sys/sh/Makefile.in | 43 +- newlib/libc/sys/sysmec/Makefile.in | 43 +- newlib/libc/sys/sysnec810/Makefile.in | 43 +- newlib/libc/sys/sysnecv850/Makefile.in | 43 +- newlib/libc/sys/sysvi386/Makefile.in | 43 +- newlib/libc/sys/sysvnecv70/Makefile.in | 43 +- newlib/libc/sys/tic80/Makefile.in | 43 +- newlib/libc/sys/tirtos/Makefile.in | 43 +- newlib/libc/sys/w65/Makefile.in | 43 +- newlib/libc/sys/z8ksim/Makefile.in | 43 +- newlib/libc/syscalls/Makefile.in | 43 +- newlib/libc/time/Makefile.in | 43 +- newlib/libc/unix/Makefile.in | 43 +- newlib/libc/xdr/Makefile.in | 43 +- 117 files changed, 4268 insertions(+), 9115 deletions(-) diff --git a/newlib/Makefile.in b/newlib/Makefile.in index 1734b5de2..1491aa1c3 100644 --- a/newlib/Makefile.in +++ b/newlib/Makefile.in @@ -163,7 +163,13 @@ ACLOCAL_M4 =3D $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps =3D $(top_srcdir)/../config/lead-dot.m4 \ $(top_srcdir)/../config/multi.m4 \ $(top_srcdir)/../config/override.m4 $(top_srcdir)/iconv.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/libm/acinclude.m4 \ + $(top_srcdir)/acinclude.m4 $(top_srcdir)/libc/acinclude.m4 \ + $(top_srcdir)/libc/machine/nds32/acinclude.m4 \ + $(top_srcdir)/libc/machine/powerpc/acinclude.m4 \ + $(top_srcdir)/libc/machine/sh/acinclude.m4 \ + $(top_srcdir)/libc/machine/spu/acinclude.m4 \ + $(top_srcdir)/libc/sys/phoenix/acinclude.m4 \ + $(top_srcdir)/libm/acinclude.m4 \ $(top_srcdir)/libm/machine/nds32/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps =3D $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ @@ -1204,6 +1210,16 @@ INSTALL_PROGRAM =3D @INSTALL_PROGRAM@ INSTALL_SCRIPT =3D @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM =3D @INSTALL_STRIP_PROGRAM@ LDFLAGS =3D @LDFLAGS@ +LIBC_MACHINE_DIR =3D @LIBC_MACHINE_DIR@ +LIBC_MACHINE_LIB =3D @LIBC_MACHINE_LIB@ +LIBC_POSIX_LIB =3D @LIBC_POSIX_LIB@ +LIBC_SIGNAL_LIB =3D @LIBC_SIGNAL_LIB@ +LIBC_STDIO64_LIB =3D @LIBC_STDIO64_LIB@ +LIBC_STDIO_LIB =3D @LIBC_STDIO_LIB@ +LIBC_SYSCALL_LIB =3D @LIBC_SYSCALL_LIB@ +LIBC_SYS_LIB =3D @LIBC_SYS_LIB@ +LIBC_UNIX_LIB =3D @LIBC_UNIX_LIB@ +LIBC_XDR_LIB =3D @LIBC_XDR_LIB@ LIBOBJS =3D @LIBOBJS@ LIBS =3D @LIBS@ LTLIBOBJS =3D @LTLIBOBJS@ @@ -1225,11 +1241,13 @@ PACKAGE_TARNAME =3D @PACKAGE_TARNAME@ PACKAGE_URL =3D @PACKAGE_URL@ PACKAGE_VERSION =3D @PACKAGE_VERSION@ PATH_SEPARATOR =3D @PATH_SEPARATOR@ +PHOENIX_MACHINE_DIR =3D @PHOENIX_MACHINE_DIR@ RANLIB =3D @RANLIB@ READELF =3D @READELF@ SET_MAKE =3D @SET_MAKE@ SHELL =3D @SHELL@ STRIP =3D @STRIP@ +SYS_DIR =3D @SYS_DIR@ VERSION =3D @VERSION@ abs_builddir =3D @abs_builddir@ abs_newlib_basedir =3D @abs_newlib_basedir@ @@ -1282,7 +1300,6 @@ sbindir =3D @sbindir@ shared_machine_dir =3D @shared_machine_dir@ sharedstatedir =3D @sharedstatedir@ srcdir =3D @srcdir@ -subdirs =3D @subdirs@ sys_dir =3D @sys_dir@ sysconfdir =3D @sysconfdir@ target_alias =3D @target_alias@ diff --git a/newlib/configure b/newlib/configure index 998104ad7..4a145c8ba 100755 --- a/newlib/configure +++ b/newlib/configure @@ -583,13 +583,10 @@ PACKAGE_URL=3D'' =20 ac_unique_file=3D"libc" ac_no_link=3Dno -enable_option_checking=3Dno ac_subst_vars=3D'am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS -HAVE_LONG_DOUBLE_FALSE -HAVE_LONG_DOUBLE_TRUE NEWLIB_PATCHLEVEL_VERSION NEWLIB_MINOR_VERSION NEWLIB_MAJOR_VERSION @@ -632,7 +629,52 @@ HAS_NDS32_FPU_DP_FALSE HAS_NDS32_FPU_DP_TRUE HAS_NDS32_FPU_SP_FALSE HAS_NDS32_FPU_SP_TRUE -subdirs +MACH_ADD_SETJMP_FALSE +MACH_ADD_SETJMP_TRUE +LIBC_MACHINE_LIB +LIBC_MACHINE_DIR +HAVE_LIBC_MACHINE_DIR_FALSE +HAVE_LIBC_MACHINE_DIR_TRUE +PHOENIX_MACHINE_DIR +HAVE_SPU_EA_FALSE +HAVE_SPU_EA_TRUE +SH64_FALSE +SH64_TRUE +HAVE_POWERPC_SPE_FALSE +HAVE_POWERPC_SPE_TRUE +HAVE_POWERPC_ALTIVEC_FALSE +HAVE_POWERPC_ALTIVEC_TRUE +IS_NDS32_ISA_V3M_FALSE +IS_NDS32_ISA_V3M_TRUE +ENABLE_NEWLIB_ICONV_FALSE +ENABLE_NEWLIB_ICONV_TRUE +HAVE_LONG_DOUBLE_FALSE +HAVE_LONG_DOUBLE_TRUE +LIBC_SYS_LIB +HAVE_SYS_DIR_FALSE +HAVE_SYS_DIR_TRUE +SYS_DIR +HAVE_UNIX_DIR_FALSE +HAVE_UNIX_DIR_TRUE +LIBC_UNIX_LIB +HAVE_SYSCALL_DIR_FALSE +HAVE_SYSCALL_DIR_TRUE +LIBC_SYSCALL_LIB +HAVE_XDR_DIR_FALSE +HAVE_XDR_DIR_TRUE +LIBC_XDR_LIB +HAVE_POSIX_DIR_FALSE +HAVE_POSIX_DIR_TRUE +LIBC_POSIX_LIB +HAVE_STDIO64_DIR_FALSE +HAVE_STDIO64_DIR_TRUE +LIBC_STDIO64_LIB +HAVE_STDIO_DIR_FALSE +HAVE_STDIO_DIR_TRUE +LIBC_STDIO_LIB +HAVE_SIGNAL_DIR_FALSE +HAVE_SIGNAL_DIR_TRUE +LIBC_SIGNAL_LIB CC_FOR_NEWLIB NEWLIB_HW_FP_FALSE NEWLIB_HW_FP_TRUE @@ -710,6 +752,12 @@ newlib_basedir MAY_SUPPLY_SYSCALLS_FALSE MAY_SUPPLY_SYSCALLS_TRUE multi_basedir +NEWLIB_RETARGETABLE_LOCKING_FALSE +NEWLIB_RETARGETABLE_LOCKING_TRUE +NEWLIB_NANO_FORMATTED_IO_FALSE +NEWLIB_NANO_FORMATTED_IO_TRUE +NEWLIB_NANO_MALLOC_FALSE +NEWLIB_NANO_MALLOC_TRUE target_alias host_alias build_alias @@ -799,7 +847,7 @@ CPPFLAGS CPP CCAS CCASFLAGS' -ac_subdirs_all=3D'libc' + =20 # Initialize some variables set by options. ac_init_help=3D @@ -1438,7 +1486,7 @@ Optional Features: --enable-newlib-nano-malloc use small-footprint nano-malloc implement= ation --disable-newlib-unbuf-stream-opt disable unbuffered stream optimizat= ion in streamio --enable-lite-exit enable light weight exit - --enable-newlib-nano-formatted-io Use nano version formatted IO + --enable-newlib-nano-formatted-io Use small-footprint nano-formatted-= IO implementation --enable-newlib-retargetable-locking Allow locking routines to be ret= argeted at link time --enable-newlib-long-time_t define time_t to long --enable-newlib-use-gdtoa Use gdtoa rather than legacy ldtoa @@ -2239,6 +2287,14 @@ if test "${enable_newlib_nano_malloc+set}" =3D set; = then : else newlib_nano_malloc=3D fi + if test x$newlib_nano_malloc =3D xyes; then + NEWLIB_NANO_MALLOC_TRUE=3D + NEWLIB_NANO_MALLOC_FALSE=3D'#' +else + NEWLIB_NANO_MALLOC_TRUE=3D'#' + NEWLIB_NANO_MALLOC_FALSE=3D +fi + =20 # Check whether --enable-newlib-unbuf-stream-opt was given. if test "${enable_newlib_unbuf_stream_opt+set}" =3D set; then : @@ -2277,6 +2333,14 @@ else newlib_nano_formatted_io=3Dno fi =20 + if test x$newlib_nano_formatted_io =3D xyes; then + NEWLIB_NANO_FORMATTED_IO_TRUE=3D + NEWLIB_NANO_FORMATTED_IO_FALSE=3D'#' +else + NEWLIB_NANO_FORMATTED_IO_TRUE=3D'#' + NEWLIB_NANO_FORMATTED_IO_FALSE=3D +fi + =20 # Check whether --enable-newlib-retargetable-locking was given. if test "${enable_newlib_retargetable_locking+set}" =3D set; then : @@ -2289,6 +2353,14 @@ else newlib_retargetable_locking=3Dno fi =20 + if test x$newlib_retargetable_locking =3D xyes; then + NEWLIB_RETARGETABLE_LOCKING_TRUE=3D + NEWLIB_RETARGETABLE_LOCKING_FALSE=3D'#' +else + NEWLIB_RETARGETABLE_LOCKING_TRUE=3D'#' + NEWLIB_RETARGETABLE_LOCKING_FALSE=3D +fi + =20 # Check whether --enable-newlib-long-time_t was given. if test "${enable_newlib_long_time_t+set}" =3D set; then : @@ -4730,12 +4802,543 @@ fi =20 =20 =20 +LIBC_SIGNAL_LIB=3D +if test -n "${signal_dir}"; then + LIBC_SIGNAL_LIB=3D${signal_dir}/lib.a +fi =20 -subdirs=3D"$subdirs libc" + if test x${signal_dir} !=3D x; then + HAVE_SIGNAL_DIR_TRUE=3D + HAVE_SIGNAL_DIR_FALSE=3D'#' +else + HAVE_SIGNAL_DIR_TRUE=3D'#' + HAVE_SIGNAL_DIR_FALSE=3D +fi + + +LIBC_STDIO_LIB=3D +if test -n "${stdio_dir}"; then + LIBC_STDIO_LIB=3D${stdio_dir}/lib.a +fi + + if test x${stdio_dir} !=3D x; then + HAVE_STDIO_DIR_TRUE=3D + HAVE_STDIO_DIR_FALSE=3D'#' +else + HAVE_STDIO_DIR_TRUE=3D'#' + HAVE_STDIO_DIR_FALSE=3D +fi + + +LIBC_STDIO64_LIB=3D +if test -n "${stdio64_dir}"; then + LIBC_STDIO64_LIB=3D${stdio64_dir}/lib.a +fi + + if test x${stdio64_dir} !=3D x; then + HAVE_STDIO64_DIR_TRUE=3D + HAVE_STDIO64_DIR_FALSE=3D'#' +else + HAVE_STDIO64_DIR_TRUE=3D'#' + HAVE_STDIO64_DIR_FALSE=3D +fi + + +LIBC_POSIX_LIB=3D +if test -n "${posix_dir}"; then + LIBC_POSIX_LIB=3D${posix_dir}/lib.a +fi + + if test x${posix_dir} !=3D x; then + HAVE_POSIX_DIR_TRUE=3D + HAVE_POSIX_DIR_FALSE=3D'#' +else + HAVE_POSIX_DIR_TRUE=3D'#' + HAVE_POSIX_DIR_FALSE=3D +fi + + +LIBC_XDR_LIB=3D +if test -n "${xdr_dir}"; then + LIBC_XDR_LIB=3D${xdr_dir}/lib.a +fi + + if test x${xdr_dir} !=3D x; then + HAVE_XDR_DIR_TRUE=3D + HAVE_XDR_DIR_FALSE=3D'#' +else + HAVE_XDR_DIR_TRUE=3D'#' + HAVE_XDR_DIR_FALSE=3D +fi + + +LIBC_SYSCALL_LIB=3D +if test -n "${syscall_dir}"; then + LIBC_SYSCALL_LIB=3D${syscall_dir}/lib.a +fi + + if test x${syscall_dir} !=3D x; then + HAVE_SYSCALL_DIR_TRUE=3D + HAVE_SYSCALL_DIR_FALSE=3D'#' +else + HAVE_SYSCALL_DIR_TRUE=3D'#' + HAVE_SYSCALL_DIR_FALSE=3D +fi + + +LIBC_UNIX_LIB=3D +if test -n "${unix_dir}"; then + LIBC_UNIX_LIB=3D${unix_dir}/lib.a +fi + + if test x${unix_dir} !=3D x; then + HAVE_UNIX_DIR_TRUE=3D + HAVE_UNIX_DIR_FALSE=3D'#' +else + HAVE_UNIX_DIR_TRUE=3D'#' + HAVE_UNIX_DIR_FALSE=3D +fi + + + +LIBC_SYS_LIB=3D +if test -n "${sys_dir}"; then + case ${sys_dir} in + a29khif) ac_config_files=3D"$ac_config_files libc/sys/a29khif/Makefile" + ;; + amdgcn) ac_config_files=3D"$ac_config_files libc/sys/amdgcn/Makefile" + ;; + arm) ac_config_files=3D"$ac_config_files libc/sys/arm/Makefile" + ;; + d10v) ac_config_files=3D"$ac_config_files libc/sys/d10v/Makefile" + ;; + epiphany) ac_config_files=3D"$ac_config_files libc/sys/epiphany/Makefi= le" + ;; + h8300hms) ac_config_files=3D"$ac_config_files libc/sys/h8300hms/Makefi= le" + ;; + h8500hms) ac_config_files=3D"$ac_config_files libc/sys/h8500hms/Makefi= le" + ;; + m88kbug) ac_config_files=3D"$ac_config_files libc/sys/m88kbug/Makefile" + ;; + mmixware) ac_config_files=3D"$ac_config_files libc/sys/mmixware/Makefi= le" + ;; + netware) ac_config_files=3D"$ac_config_files libc/sys/netware/Makefile" + ;; + or1k) ac_config_files=3D"$ac_config_files libc/sys/or1k/Makefile" + ;; + phoenix) ac_config_files=3D"$ac_config_files libc/sys/phoenix/Makefile" + ;; + rdos) ac_config_files=3D"$ac_config_files libc/sys/rdos/Makefile" + ;; + rtems) ac_config_files=3D"$ac_config_files libc/sys/rtems/Makefile" + ;; + sh) ac_config_files=3D"$ac_config_files libc/sys/sh/Makefile" + ;; + sysmec) ac_config_files=3D"$ac_config_files libc/sys/sysmec/Makefile" + ;; + sysnec810) ac_config_files=3D"$ac_config_files libc/sys/sysnec810/Make= file" + ;; + sysnecv850) ac_config_files=3D"$ac_config_files libc/sys/sysnecv850/Ma= kefile" + ;; + sysvi386) ac_config_files=3D"$ac_config_files libc/sys/sysvi386/Makefi= le" + ;; + sysvnecv70) ac_config_files=3D"$ac_config_files libc/sys/sysvnecv70/Ma= kefile" + ;; + tic80) ac_config_files=3D"$ac_config_files libc/sys/tic80/Makefile" + ;; + tirtos) ac_config_files=3D"$ac_config_files libc/sys/tirtos/Makefile" + ;; + w65) ac_config_files=3D"$ac_config_files libc/sys/w65/Makefile" + ;; + z8ksim) ac_config_files=3D"$ac_config_files libc/sys/z8ksim/Makefile" + ;; + *) as_fn_error $? "unsupported sys_dir \"${sys_dir}\"" "$LINENO" 5 ;; + esac + + SYS_DIR=3Dsys/${sys_dir} + LIBC_SYS_LIB=3D${SYS_DIR}/lib.a +fi + + if test x${sys_dir} !=3D x; then + HAVE_SYS_DIR_TRUE=3D + HAVE_SYS_DIR_FALSE=3D'#' +else + HAVE_SYS_DIR_TRUE=3D'#' + HAVE_SYS_DIR_FALSE=3D +fi + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 +$as_echo_n "checking for long double... " >&6; } +if ${ac_cv_type_long_double+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$GCC" =3D yes; then + ac_cv_type_long_double=3Dyes + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* The Stardent Vistra knows sizeof (long double), but does + not support it. */ + long double foo =3D 0.0L; +int +main () +{ +static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and= double is 8. */ + sizeof (double) <=3D sizeof (long double))]; +test_array [0] =3D 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_type_long_double=3Dyes +else + ac_cv_type_long_double=3Dno +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" = >&5 +$as_echo "$ac_cv_type_long_double" >&6; } + if test $ac_cv_type_long_double =3D yes; then + +$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h + + fi + + if test x"$ac_cv_type_long_double" =3D x"yes"; then + HAVE_LONG_DOUBLE_TRUE=3D + HAVE_LONG_DOUBLE_FALSE=3D'#' +else + HAVE_LONG_DOUBLE_TRUE=3D'#' + HAVE_LONG_DOUBLE_FALSE=3D +fi + + + if test x${newlib_iconv} !=3D x; then + ENABLE_NEWLIB_ICONV_TRUE=3D + ENABLE_NEWLIB_ICONV_FALSE=3D'#' +else + ENABLE_NEWLIB_ICONV_TRUE=3D'#' + ENABLE_NEWLIB_ICONV_FALSE=3D +fi =20 -if test "${libm_machine_dir}" =3D "nds32"; then =20 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nds32 FPU SP extensi= on" >&5 +if test "${machine_dir}" =3D "nds32"; then + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nds32 V3M ISA" >&5 +$as_echo_n "checking for nds32 V3M ISA... " >&6; } +if ${newlib_cv_nds32_isa_v3m+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __NDS32_ISA_V3M__ +# error "This is nds32_isa_v3m." +#endif + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + newlib_cv_nds32_isa_v3m=3D"no" +else + newlib_cv_nds32_isa_v3m=3D"yes" +fi +rm -f conftest.err conftest.i conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $newlib_cv_nds32_isa_v3m"= >&5 +$as_echo "$newlib_cv_nds32_isa_v3m" >&6; } +fi + + if test "$newlib_cv_nds32_isa_v3m" =3D "yes"; then + IS_NDS32_ISA_V3M_TRUE=3D + IS_NDS32_ISA_V3M_FALSE=3D'#' +else + IS_NDS32_ISA_V3M_TRUE=3D'#' + IS_NDS32_ISA_V3M_FALSE=3D +fi + + +HAVE_POWERPC_ALTIVEC=3Dno +HAVE_POWERPC_SPE=3Dno +if test "${machine_dir}" =3D "powerpc"; then + case $host in + powerpc*-*altivec*) HAVE_POWERPC_ALTIVEC=3Dyes ;; + powerpc*-*spe*) HAVE_POWERPC_SPE=3Dyes ;; + esac +fi + if test "$HAVE_POWERPC_ALTIVEC" =3D yes; then + HAVE_POWERPC_ALTIVEC_TRUE=3D + HAVE_POWERPC_ALTIVEC_FALSE=3D'#' +else + HAVE_POWERPC_ALTIVEC_TRUE=3D'#' + HAVE_POWERPC_ALTIVEC_FALSE=3D +fi + + if test "$HAVE_POWERPC_SPE" =3D yes; then + HAVE_POWERPC_SPE_TRUE=3D + HAVE_POWERPC_SPE_FALSE=3D'#' +else + HAVE_POWERPC_SPE_TRUE=3D'#' + HAVE_POWERPC_SPE_FALSE=3D +fi + + +if test "${machine_dir}" =3D "sh"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH5 (64-bit)" >&5 +$as_echo_n "checking for SH5 (64-bit)... " >&6; } +if ${newlib_cv_sh64+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if !defined(__SH5__) +# error "not SH5" +#endif + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + newlib_cv_sh64=3Dyes +else + newlib_cv_sh64=3Dno +fi +rm -f conftest.err conftest.i conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $newlib_cv_sh64" >&5 +$as_echo "$newlib_cv_sh64" >&6; } +fi + + if test "$newlib_cv_sh64" =3D yes; then + SH64_TRUE=3D + SH64_FALSE=3D'#' +else + SH64_TRUE=3D'#' + SH64_FALSE=3D +fi + + +if test "${machine_dir}" =3D "spu"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler s= upports __ea" >&5 +$as_echo_n "checking whether the compiler supports __ea... " >&6; } +if ${newlib_cv_spu_compiler_has_ea+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if !defined (__EA32__) && !defined (__EA64__) +# error "__ea not supported" +#endif + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + newlib_cv_spu_compiler_has_ea=3Dyes +else + newlib_cv_spu_compiler_has_ea=3Dno +fi +rm -f conftest.err conftest.i conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $newlib_cv_spu_compiler_h= as_ea" >&5 +$as_echo "$newlib_cv_spu_compiler_has_ea" >&6; } +fi + if test "$newlib_cv_spu_compiler_has_ea" =3D yes; then + HAVE_SPU_EA_TRUE=3D + HAVE_SPU_EA_FALSE=3D'#' +else + HAVE_SPU_EA_TRUE=3D'#' + HAVE_SPU_EA_FALSE=3D +fi + + +if test "$sys_dir" =3D "phoenix"; then : + if test "${machine_dir}" =3D arm; then : + ac_config_files=3D"$ac_config_files libc/sys/phoenix/machine/arm/Makefil= e" + +fi + + + PHOENIX_MACHINE_DIR=3Dmachine/${machine_dir} + +fi + + + +LIBC_MACHINE_LIB=3D +if test -n "${machine_dir}"; then + case ${machine_dir} in + a29k) ac_config_files=3D"$ac_config_files libc/machine/a29k/Makefile" + ;; + aarch64) ac_config_files=3D"$ac_config_files libc/machine/aarch64/Make= file" + ;; + amdgcn) ac_config_files=3D"$ac_config_files libc/machine/amdgcn/Makefi= le" + ;; + arc) ac_config_files=3D"$ac_config_files libc/machine/arc/Makefile" + ;; + arm) ac_config_files=3D"$ac_config_files libc/machine/arm/Makefile" + ;; + bfin) ac_config_files=3D"$ac_config_files libc/machine/bfin/Makefile" + ;; + cr16) ac_config_files=3D"$ac_config_files libc/machine/cr16/Makefile" + ;; + cris) ac_config_files=3D"$ac_config_files libc/machine/cris/Makefile" + ;; + crx) ac_config_files=3D"$ac_config_files libc/machine/crx/Makefile" + ;; + csky) ac_config_files=3D"$ac_config_files libc/machine/csky/Makefile" + ;; + d10v) ac_config_files=3D"$ac_config_files libc/machine/d10v/Makefile" + ;; + d30v) ac_config_files=3D"$ac_config_files libc/machine/d30v/Makefile" + ;; + epiphany) ac_config_files=3D"$ac_config_files libc/machine/epiphany/Ma= kefile" + ;; + fr30) ac_config_files=3D"$ac_config_files libc/machine/fr30/Makefile" + ;; + frv) ac_config_files=3D"$ac_config_files libc/machine/frv/Makefile" + ;; + ft32) ac_config_files=3D"$ac_config_files libc/machine/ft32/Makefile" + ;; + h8300) ac_config_files=3D"$ac_config_files libc/machine/h8300/Makefile" + ;; + h8500) ac_config_files=3D"$ac_config_files libc/machine/h8500/Makefile" + ;; + hppa) ac_config_files=3D"$ac_config_files libc/machine/hppa/Makefile" + ;; + i386) ac_config_files=3D"$ac_config_files libc/machine/i386/Makefile" + ;; + i960) ac_config_files=3D"$ac_config_files libc/machine/i960/Makefile" + ;; + iq2000) ac_config_files=3D"$ac_config_files libc/machine/iq2000/Makefi= le" + ;; + lm32) ac_config_files=3D"$ac_config_files libc/machine/lm32/Makefile" + ;; + m32c) ac_config_files=3D"$ac_config_files libc/machine/m32c/Makefile" + ;; + m32r) ac_config_files=3D"$ac_config_files libc/machine/m32r/Makefile" + ;; + m68hc11) ac_config_files=3D"$ac_config_files libc/machine/m68hc11/Make= file" + ;; + m68k) ac_config_files=3D"$ac_config_files libc/machine/m68k/Makefile" + ;; + m88k) ac_config_files=3D"$ac_config_files libc/machine/m88k/Makefile" + ;; + mep) ac_config_files=3D"$ac_config_files libc/machine/mep/Makefile" + ;; + microblaze) ac_config_files=3D"$ac_config_files libc/machine/microblaz= e/Makefile" + ;; + mips) ac_config_files=3D"$ac_config_files libc/machine/mips/Makefile" + ;; + riscv) ac_config_files=3D"$ac_config_files libc/machine/riscv/Makefile" + ;; + mn10200) ac_config_files=3D"$ac_config_files libc/machine/mn10200/Make= file" + ;; + mn10300) ac_config_files=3D"$ac_config_files libc/machine/mn10300/Make= file" + ;; + moxie) ac_config_files=3D"$ac_config_files libc/machine/moxie/Makefile" + ;; + msp430) ac_config_files=3D"$ac_config_files libc/machine/msp430/Makefi= le" + ;; + mt) ac_config_files=3D"$ac_config_files libc/machine/mt/Makefile" + ;; + nds32) ac_config_files=3D"$ac_config_files libc/machine/nds32/Makefile" + ;; + necv70) ac_config_files=3D"$ac_config_files libc/machine/necv70/Makefi= le" + ;; + nios2) ac_config_files=3D"$ac_config_files libc/machine/nios2/Makefile" + ;; + nvptx) ac_config_files=3D"$ac_config_files libc/machine/nvptx/Makefile" + ;; + or1k) ac_config_files=3D"$ac_config_files libc/machine/or1k/Makefile" + ;; + powerpc) ac_config_files=3D"$ac_config_files libc/machine/powerpc/Make= file" + ;; + pru) ac_config_files=3D"$ac_config_files libc/machine/pru/Makefile" + ;; + rl78) ac_config_files=3D"$ac_config_files libc/machine/rl78/Makefile" + ;; + rx) ac_config_files=3D"$ac_config_files libc/machine/rx/Makefile" + ;; + sh) ac_config_files=3D"$ac_config_files libc/machine/sh/Makefile" + ;; + sparc) ac_config_files=3D"$ac_config_files libc/machine/sparc/Makefile" + ;; + spu) ac_config_files=3D"$ac_config_files libc/machine/spu/Makefile" + ;; + tic4x) ac_config_files=3D"$ac_config_files libc/machine/tic4x/Makefile" + ;; + tic6x) ac_config_files=3D"$ac_config_files libc/machine/tic6x/Makefile" + ;; + tic80) ac_config_files=3D"$ac_config_files libc/machine/tic80/Makefile" + ;; + v850) ac_config_files=3D"$ac_config_files libc/machine/v850/Makefile" + ;; + visium) ac_config_files=3D"$ac_config_files libc/machine/visium/Makefi= le" + ;; + w65) ac_config_files=3D"$ac_config_files libc/machine/w65/Makefile" + ;; + x86_64) ac_config_files=3D"$ac_config_files libc/machine/x86_64/Makefi= le" + ;; + xc16x) ac_config_files=3D"$ac_config_files libc/machine/xc16x/Makefile" + ;; + xstormy16) ac_config_files=3D"$ac_config_files libc/machine/xstormy16/= Makefile" + ;; + z8k) ac_config_files=3D"$ac_config_files libc/machine/z8k/Makefile" + ;; + *) as_fn_error $? "unsupported machine_dir \"${machine_dir}\"" "$LINEN= O" 5 ;; + esac + + LIBC_MACHINE_DIR=3Dmachine/${machine_dir} + LIBC_MACHINE_LIB=3D${LIBC_MACHINE_DIR}/lib.a +fi + if test "x${LIBC_MACHINE_DIR}" !=3D x; then + HAVE_LIBC_MACHINE_DIR_TRUE=3D + HAVE_LIBC_MACHINE_DIR_FALSE=3D'#' +else + HAVE_LIBC_MACHINE_DIR_TRUE=3D'#' + HAVE_LIBC_MACHINE_DIR_FALSE=3D +fi + + + + + if test "x$mach_add_setjmp" =3D "xtrue"; then + MACH_ADD_SETJMP_TRUE=3D + MACH_ADD_SETJMP_FALSE=3D'#' +else + MACH_ADD_SETJMP_TRUE=3D'#' + MACH_ADD_SETJMP_FALSE=3D +fi + + +ac_config_files=3D"$ac_config_files libc/Makefile libc/argz/Makefile libc/= ctype/Makefile libc/errno/Makefile libc/locale/Makefile libc/misc/Makefile = libc/reent/Makefile libc/search/Makefile libc/stdio/Makefile libc/stdio64/M= akefile libc/stdlib/Makefile libc/string/Makefile libc/time/Makefile libc/p= osix/Makefile libc/signal/Makefile libc/syscalls/Makefile libc/unix/Makefil= e libc/iconv/Makefile libc/iconv/ces/Makefile libc/iconv/ccs/Makefile libc/= iconv/ccs/binary/Makefile libc/iconv/lib/Makefile libc/ssp/Makefile libc/xd= r/Makefile" + + +if test "${libm_machine_dir}" =3D "nds32"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nds32 FPU SP ext= ension" >&5 $as_echo_n "checking for nds32 FPU SP extension... " >&6; } if ${newlib_cv_nds32_fpu_sp+:} false; then : $as_echo_n "(cached) " >&6 @@ -5998,6 +6601,18 @@ LIBOBJS=3D$ac_libobjs LTLIBOBJS=3D$ac_ltlibobjs =20 =20 +if test -z "${NEWLIB_NANO_MALLOC_TRUE}" && test -z "${NEWLIB_NANO_MALLOC_F= ALSE}"; then + as_fn_error $? "conditional \"NEWLIB_NANO_MALLOC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${NEWLIB_NANO_FORMATTED_IO_TRUE}" && test -z "${NEWLIB_NANO_FO= RMATTED_IO_FALSE}"; then + as_fn_error $? "conditional \"NEWLIB_NANO_FORMATTED_IO\" was never defin= ed. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${NEWLIB_RETARGETABLE_LOCKING_TRUE}" && test -z "${NEWLIB_RETA= RGETABLE_LOCKING_FALSE}"; then + as_fn_error $? "conditional \"NEWLIB_RETARGETABLE_LOCKING\" was never de= fined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS= _FALSE}"; then as_fn_error $? "conditional \"MAY_SUPPLY_SYSCALLS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 @@ -6050,6 +6665,74 @@ if test -z "${NEWLIB_HW_FP_TRUE}" && test -z "${NEWL= IB_HW_FP_FALSE}"; then as_fn_error $? "conditional \"NEWLIB_HW_FP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${HAVE_SIGNAL_DIR_TRUE}" && test -z "${HAVE_SIGNAL_DIR_FALSE}"= ; then + as_fn_error $? "conditional \"HAVE_SIGNAL_DIR\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_STDIO_DIR_TRUE}" && test -z "${HAVE_STDIO_DIR_FALSE}"; = then + as_fn_error $? "conditional \"HAVE_STDIO_DIR\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_STDIO64_DIR_TRUE}" && test -z "${HAVE_STDIO64_DIR_FALSE= }"; then + as_fn_error $? "conditional \"HAVE_STDIO64_DIR\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_POSIX_DIR_TRUE}" && test -z "${HAVE_POSIX_DIR_FALSE}"; = then + as_fn_error $? "conditional \"HAVE_POSIX_DIR\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_XDR_DIR_TRUE}" && test -z "${HAVE_XDR_DIR_FALSE}"; then + as_fn_error $? "conditional \"HAVE_XDR_DIR\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_SYSCALL_DIR_TRUE}" && test -z "${HAVE_SYSCALL_DIR_FALSE= }"; then + as_fn_error $? "conditional \"HAVE_SYSCALL_DIR\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_UNIX_DIR_TRUE}" && test -z "${HAVE_UNIX_DIR_FALSE}"; th= en + as_fn_error $? "conditional \"HAVE_UNIX_DIR\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_SYS_DIR_TRUE}" && test -z "${HAVE_SYS_DIR_FALSE}"; then + as_fn_error $? "conditional \"HAVE_SYS_DIR\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LONG_DOUBLE_TRUE}" && test -z "${HAVE_LONG_DOUBLE_FALSE= }"; then + as_fn_error $? "conditional \"HAVE_LONG_DOUBLE\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${ENABLE_NEWLIB_ICONV_TRUE}" && test -z "${ENABLE_NEWLIB_ICONV= _FALSE}"; then + as_fn_error $? "conditional \"ENABLE_NEWLIB_ICONV\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${IS_NDS32_ISA_V3M_TRUE}" && test -z "${IS_NDS32_ISA_V3M_FALSE= }"; then + as_fn_error $? "conditional \"IS_NDS32_ISA_V3M\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_POWERPC_ALTIVEC_TRUE}" && test -z "${HAVE_POWERPC_ALTIV= EC_FALSE}"; then + as_fn_error $? "conditional \"HAVE_POWERPC_ALTIVEC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_POWERPC_SPE_TRUE}" && test -z "${HAVE_POWERPC_SPE_FALSE= }"; then + as_fn_error $? "conditional \"HAVE_POWERPC_SPE\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then + as_fn_error $? "conditional \"SH64\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_SPU_EA_TRUE}" && test -z "${HAVE_SPU_EA_FALSE}"; then + as_fn_error $? "conditional \"HAVE_SPU_EA\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIBC_MACHINE_DIR_TRUE}" && test -z "${HAVE_LIBC_MACHINE= _DIR_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIBC_MACHINE_DIR\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${MACH_ADD_SETJMP_TRUE}" && test -z "${MACH_ADD_SETJMP_FALSE}"= ; then + as_fn_error $? "conditional \"MACH_ADD_SETJMP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${HAS_NDS32_FPU_SP_TRUE}" && test -z "${HAS_NDS32_FPU_SP_FALSE= }"; then as_fn_error $? "conditional \"HAS_NDS32_FPU_SP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 @@ -6726,6 +7409,114 @@ do "newlib.h") CONFIG_HEADERS=3D"$CONFIG_HEADERS newlib.h:newlib.hin" ;; "_newlib_version.h") CONFIG_HEADERS=3D"$CONFIG_HEADERS _newlib_version= .h:_newlib_version.hin" ;; "default-1") CONFIG_COMMANDS=3D"$CONFIG_COMMANDS default-1" ;; + "libc/sys/a29khif/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/sys/a2= 9khif/Makefile" ;; + "libc/sys/amdgcn/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/sys/amd= gcn/Makefile" ;; + "libc/sys/arm/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/sys/arm/Ma= kefile" ;; + "libc/sys/d10v/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/sys/d10v/= Makefile" ;; + "libc/sys/epiphany/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/sys/e= piphany/Makefile" ;; + "libc/sys/h8300hms/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/sys/h= 8300hms/Makefile" ;; + "libc/sys/h8500hms/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/sys/h= 8500hms/Makefile" ;; + "libc/sys/m88kbug/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/sys/m8= 8kbug/Makefile" ;; + "libc/sys/mmixware/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/sys/m= mixware/Makefile" ;; + "libc/sys/netware/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/sys/ne= tware/Makefile" ;; + "libc/sys/or1k/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/sys/or1k/= Makefile" ;; + "libc/sys/phoenix/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/sys/ph= oenix/Makefile" ;; + "libc/sys/rdos/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/sys/rdos/= Makefile" ;; + "libc/sys/rtems/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/sys/rtem= s/Makefile" ;; + "libc/sys/sh/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/sys/sh/Make= file" ;; + "libc/sys/sysmec/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/sys/sys= mec/Makefile" ;; + "libc/sys/sysnec810/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/sys/= sysnec810/Makefile" ;; + "libc/sys/sysnecv850/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/sys= /sysnecv850/Makefile" ;; + "libc/sys/sysvi386/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/sys/s= ysvi386/Makefile" ;; + "libc/sys/sysvnecv70/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/sys= /sysvnecv70/Makefile" ;; + "libc/sys/tic80/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/sys/tic8= 0/Makefile" ;; + "libc/sys/tirtos/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/sys/tir= tos/Makefile" ;; + "libc/sys/w65/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/sys/w65/Ma= kefile" ;; + "libc/sys/z8ksim/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/sys/z8k= sim/Makefile" ;; + "libc/sys/phoenix/machine/arm/Makefile") CONFIG_FILES=3D"$CONFIG_FILES= libc/sys/phoenix/machine/arm/Makefile" ;; + "libc/machine/a29k/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machi= ne/a29k/Makefile" ;; + "libc/machine/aarch64/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/ma= chine/aarch64/Makefile" ;; + "libc/machine/amdgcn/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/mac= hine/amdgcn/Makefile" ;; + "libc/machine/arc/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machin= e/arc/Makefile" ;; + "libc/machine/arm/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machin= e/arm/Makefile" ;; + "libc/machine/bfin/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machi= ne/bfin/Makefile" ;; + "libc/machine/cr16/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machi= ne/cr16/Makefile" ;; + "libc/machine/cris/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machi= ne/cris/Makefile" ;; + "libc/machine/crx/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machin= e/crx/Makefile" ;; + "libc/machine/csky/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machi= ne/csky/Makefile" ;; + "libc/machine/d10v/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machi= ne/d10v/Makefile" ;; + "libc/machine/d30v/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machi= ne/d30v/Makefile" ;; + "libc/machine/epiphany/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/m= achine/epiphany/Makefile" ;; + "libc/machine/fr30/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machi= ne/fr30/Makefile" ;; + "libc/machine/frv/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machin= e/frv/Makefile" ;; + "libc/machine/ft32/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machi= ne/ft32/Makefile" ;; + "libc/machine/h8300/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/mach= ine/h8300/Makefile" ;; + "libc/machine/h8500/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/mach= ine/h8500/Makefile" ;; + "libc/machine/hppa/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machi= ne/hppa/Makefile" ;; + "libc/machine/i386/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machi= ne/i386/Makefile" ;; + "libc/machine/i960/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machi= ne/i960/Makefile" ;; + "libc/machine/iq2000/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/mac= hine/iq2000/Makefile" ;; + "libc/machine/lm32/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machi= ne/lm32/Makefile" ;; + "libc/machine/m32c/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machi= ne/m32c/Makefile" ;; + "libc/machine/m32r/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machi= ne/m32r/Makefile" ;; + "libc/machine/m68hc11/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/ma= chine/m68hc11/Makefile" ;; + "libc/machine/m68k/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machi= ne/m68k/Makefile" ;; + "libc/machine/m88k/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machi= ne/m88k/Makefile" ;; + "libc/machine/mep/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machin= e/mep/Makefile" ;; + "libc/machine/microblaze/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc= /machine/microblaze/Makefile" ;; + "libc/machine/mips/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machi= ne/mips/Makefile" ;; + "libc/machine/riscv/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/mach= ine/riscv/Makefile" ;; + "libc/machine/mn10200/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/ma= chine/mn10200/Makefile" ;; + "libc/machine/mn10300/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/ma= chine/mn10300/Makefile" ;; + "libc/machine/moxie/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/mach= ine/moxie/Makefile" ;; + "libc/machine/msp430/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/mac= hine/msp430/Makefile" ;; + "libc/machine/mt/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machine= /mt/Makefile" ;; + "libc/machine/nds32/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/mach= ine/nds32/Makefile" ;; + "libc/machine/necv70/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/mac= hine/necv70/Makefile" ;; + "libc/machine/nios2/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/mach= ine/nios2/Makefile" ;; + "libc/machine/nvptx/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/mach= ine/nvptx/Makefile" ;; + "libc/machine/or1k/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machi= ne/or1k/Makefile" ;; + "libc/machine/powerpc/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/ma= chine/powerpc/Makefile" ;; + "libc/machine/pru/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machin= e/pru/Makefile" ;; + "libc/machine/rl78/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machi= ne/rl78/Makefile" ;; + "libc/machine/rx/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machine= /rx/Makefile" ;; + "libc/machine/sh/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machine= /sh/Makefile" ;; + "libc/machine/sparc/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/mach= ine/sparc/Makefile" ;; + "libc/machine/spu/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machin= e/spu/Makefile" ;; + "libc/machine/tic4x/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/mach= ine/tic4x/Makefile" ;; + "libc/machine/tic6x/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/mach= ine/tic6x/Makefile" ;; + "libc/machine/tic80/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/mach= ine/tic80/Makefile" ;; + "libc/machine/v850/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machi= ne/v850/Makefile" ;; + "libc/machine/visium/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/mac= hine/visium/Makefile" ;; + "libc/machine/w65/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machin= e/w65/Makefile" ;; + "libc/machine/x86_64/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/mac= hine/x86_64/Makefile" ;; + "libc/machine/xc16x/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/mach= ine/xc16x/Makefile" ;; + "libc/machine/xstormy16/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/= machine/xstormy16/Makefile" ;; + "libc/machine/z8k/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/machin= e/z8k/Makefile" ;; + "libc/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/Makefile" ;; + "libc/argz/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/argz/Makefile= " ;; + "libc/ctype/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/ctype/Makefi= le" ;; + "libc/errno/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/errno/Makefi= le" ;; + "libc/locale/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/locale/Make= file" ;; + "libc/misc/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/misc/Makefile= " ;; + "libc/reent/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/reent/Makefi= le" ;; + "libc/search/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/search/Make= file" ;; + "libc/stdio/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/stdio/Makefi= le" ;; + "libc/stdio64/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/stdio64/Ma= kefile" ;; + "libc/stdlib/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/stdlib/Make= file" ;; + "libc/string/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/string/Make= file" ;; + "libc/time/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/time/Makefile= " ;; + "libc/posix/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/posix/Makefi= le" ;; + "libc/signal/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/signal/Make= file" ;; + "libc/syscalls/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/syscalls/= Makefile" ;; + "libc/unix/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/unix/Makefile= " ;; + "libc/iconv/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/iconv/Makefi= le" ;; + "libc/iconv/ces/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/iconv/ce= s/Makefile" ;; + "libc/iconv/ccs/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/iconv/cc= s/Makefile" ;; + "libc/iconv/ccs/binary/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/i= conv/ccs/binary/Makefile" ;; + "libc/iconv/lib/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/iconv/li= b/Makefile" ;; + "libc/ssp/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/ssp/Makefile" = ;; + "libc/xdr/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libc/xdr/Makefile" = ;; "Makefile") CONFIG_FILES=3D"$CONFIG_FILES Makefile" ;; =20 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; @@ -7364,151 +8155,6 @@ if test "$no_create" !=3D yes; then # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi - -# -# CONFIG_SUBDIRS section. -# -if test "$no_recursion" !=3D yes; then - - # Remove --cache-file, --srcdir, and --disable-option-checking arguments - # so they do not pile up. - ac_sub_configure_args=3D - ac_prev=3D - eval "set x $ac_configure_args" - shift - for ac_arg - do - if test -n "$ac_prev"; then - ac_prev=3D - continue - fi - case $ac_arg in - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=3Dcache_file ;; - -cache-file=3D* | --cache-file=3D* | --cache-fil=3D* | --cache-fi=3D* \ - | --cache-f=3D* | --cache-=3D* | --cache=3D* | --cach=3D* | --cac=3D* = | --ca=3D* \ - | --c=3D*) - ;; - --config-cache | -C) - ;; - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=3Dsrcdir ;; - -srcdir=3D* | --srcdir=3D* | --srcdi=3D* | --srcd=3D* | --src=3D* | --= sr=3D*) - ;; - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=3Dprefix ;; - -prefix=3D* | --prefix=3D* | --prefi=3D* | --pref=3D* | --pre=3D* | --= pr=3D* | --p=3D*) - ;; - --disable-option-checking) - ;; - *) - case $ac_arg in - *\'*) ac_arg=3D`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - as_fn_append ac_sub_configure_args " '$ac_arg'" ;; - esac - done - - # Always prepend --prefix to ensure using the same prefix - # in subdir configurations. - ac_arg=3D"--prefix=3D$prefix" - case $ac_arg in - *\'*) ac_arg=3D`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - ac_sub_configure_args=3D"'$ac_arg' $ac_sub_configure_args" - - # Pass --silent - if test "$silent" =3D yes; then - ac_sub_configure_args=3D"--silent $ac_sub_configure_args" - fi - - # Always prepend --disable-option-checking to silence warnings, since - # different subdirs can have different --enable and --with options. - ac_sub_configure_args=3D"--disable-option-checking $ac_sub_configure_arg= s" - - ac_popdir=3D`pwd` - for ac_dir in : $subdirs; do test "x$ac_dir" =3D x: && continue - - # Do not complain, so a configure script can configure whichever - # parts of a large source tree are present. - test -d "$srcdir/$ac_dir" || continue - - ac_msg=3D"=3D=3D=3D configuring in $ac_dir (`pwd`/$ac_dir)" - $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 - $as_echo "$ac_msg" >&6 - as_dir=3D"$ac_dir"; as_fn_mkdir_p - ac_builddir=3D. - -case "$ac_dir" in -.) ac_dir_suffix=3D ac_top_builddir_sub=3D. ac_top_build_prefix=3D ;; -*) - ac_dir_suffix=3D/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=3D`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g= ;s|/||'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=3D. ac_top_build_prefix=3D ;; - *) ac_top_build_prefix=3D$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=3D$ac_pwd -ac_abs_builddir=3D$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=3D$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=3D. - ac_top_srcdir=3D$ac_top_builddir_sub - ac_abs_top_srcdir=3D$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=3D$srcdir$ac_dir_suffix; - ac_top_srcdir=3D$srcdir - ac_abs_top_srcdir=3D$srcdir ;; - *) # Relative name. - ac_srcdir=3D$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=3D$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=3D$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=3D$ac_abs_top_srcdir$ac_dir_suffix - - - cd "$ac_dir" - - # Check for guested configure; otherwise get Cygnus style configure. - if test -f "$ac_srcdir/configure.gnu"; then - ac_sub_configure=3D$ac_srcdir/configure.gnu - elif test -f "$ac_srcdir/configure"; then - ac_sub_configure=3D$ac_srcdir/configure - elif test -f "$ac_srcdir/configure.in"; then - # This should be Cygnus configure. - ac_sub_configure=3D$ac_aux_dir/configure - else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration i= nformation is in $ac_dir" >&5 -$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2= ;} - ac_sub_configure=3D - fi - - # The recursion is here. - if test -n "$ac_sub_configure"; then - # Make the cache file name correct relative to the subdirectory. - case $cache_file in - [\\/]* | ?:[\\/]* ) ac_sub_cache_file=3D$cache_file ;; - *) # Relative name. - ac_sub_cache_file=3D$ac_top_build_prefix$cache_file ;; - esac - - { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_conf= igure $ac_sub_configure_args --cache-file=3D$ac_sub_cache_file --srcdir=3D$= ac_srcdir" >&5 -$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args = --cache-file=3D$ac_sub_cache_file --srcdir=3D$ac_srcdir" >&6;} - # The eval makes quoting arguments work. - eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ - --cache-file=3D\"\$ac_sub_cache_file\" --srcdir=3D\"\$ac_srcdir\"" || - as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 - fi - - cd "$ac_popdir" - done -fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" !=3D = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: = $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&= 2;} diff --git a/newlib/configure.ac b/newlib/configure.ac index b97d7a600..195d336f2 100644 --- a/newlib/configure.ac +++ b/newlib/configure.ac @@ -216,6 +216,7 @@ AC_ARG_ENABLE(newlib-nano-malloc, *) AC_MSG_ERROR(bad value ${enableval} for newlib-nano-malloc option= ) ;; esac fi], [newlib_nano_malloc=3D])dnl +AM_CONDITIONAL(NEWLIB_NANO_MALLOC, test x$newlib_nano_malloc =3D xyes) =20 dnl Support --disable-newlib-unbuf-stream-opt AC_ARG_ENABLE(newlib-unbuf-stream-opt, @@ -245,12 +246,13 @@ dnl Support --enable-newlib-nano-formatted-io dnl This option is also read in libc/configure.in. It is repeated dnl here so that it shows up in the help text. AC_ARG_ENABLE(newlib_nano_formatted_io, -[ --enable-newlib-nano-formatted-io Use nano version formatted IO], +[ --enable-newlib-nano-formatted-io Use small-footprint nano-formatted= -IO implementation], [case "${enableval}" in yes) newlib_nano_formatted_io=3Dyes ;; no) newlib_nano_formatted_io=3Dno ;; *) AC_MSG_ERROR(bad value ${enableval} for newlib-nano-formatted-io) ;; esac],[newlib_nano_formatted_io=3Dno]) +AM_CONDITIONAL(NEWLIB_NANO_FORMATTED_IO, test x$newlib_nano_formatted_io = =3D xyes) =20 dnl Support --enable-retargetable-locking dnl This option is also read in libc/configure.in. It is repeated @@ -262,6 +264,7 @@ AC_ARG_ENABLE(newlib-retargetable-locking, no) newlib_retargetable_locking=3Dno ;; *) AC_MSG_ERROR(bad value ${enableval} for newlib-retargetable-locking)= ;; esac],[newlib_retargetable_locking=3Dno]) +AM_CONDITIONAL(NEWLIB_RETARGETABLE_LOCKING, test x$newlib_retargetable_loc= king =3D xyes) =20 dnl Support --enable-newlib-long-time_t AC_ARG_ENABLE(newlib-long-time_t, @@ -313,7 +316,7 @@ else fi AC_SUBST(CC_FOR_NEWLIB) =20 -AC_CONFIG_SUBDIRS(libc) +m4_include([libc/acinclude.m4]) m4_include([libm/acinclude.m4]) =20 if test -z "${with_multisubdir}"; then diff --git a/newlib/libc/Makefile.am b/newlib/libc/Makefile.am index b3ea976fa..f4cdcf1b6 100644 --- a/newlib/libc/Makefile.am +++ b/newlib/libc/Makefile.am @@ -88,6 +88,3 @@ libc.a: $(SUBLIBS) rm -rf tmp =20 $(SUBLIBS): ; @true - -ACLOCAL_AMFLAGS =3D -I .. -I ../.. -I ../../config -CONFIG_STATUS_DEPENDENCIES =3D $(newlib_basedir)/configure.host diff --git a/newlib/libc/Makefile.in b/newlib/libc/Makefile.in index 64f305aa1..50c5d26f1 100644 --- a/newlib/libc/Makefile.in +++ b/newlib/libc/Makefile.in @@ -92,24 +92,26 @@ host_triplet =3D @host@ # NB: Machine dir must come last so it can override common objects when cr= eating # libc.a below. @HAVE_LIBC_MACHINE_DIR_TRUE@am__append_2 =3D $(LIBC_MACHINE_DIR) -subdir =3D . +subdir =3D libc ACLOCAL_M4 =3D $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps =3D $(top_srcdir)/../../config/lead-dot.m4 \ - $(top_srcdir)/../../config/override.m4 \ - $(top_srcdir)/../acinclude.m4 \ - $(top_srcdir)/machine/nds32/acinclude.m4 \ - $(top_srcdir)/machine/powerpc/acinclude.m4 \ - $(top_srcdir)/machine/sh/acinclude.m4 \ - $(top_srcdir)/machine/spu/acinclude.m4 \ - $(top_srcdir)/sys/phoenix/acinclude.m4 \ +am__aclocal_m4_deps =3D $(top_srcdir)/../config/lead-dot.m4 \ + $(top_srcdir)/../config/multi.m4 \ + $(top_srcdir)/../config/override.m4 $(top_srcdir)/iconv.m4 \ + $(top_srcdir)/acinclude.m4 $(top_srcdir)/libc/acinclude.m4 \ + $(top_srcdir)/libc/machine/nds32/acinclude.m4 \ + $(top_srcdir)/libc/machine/powerpc/acinclude.m4 \ + $(top_srcdir)/libc/machine/sh/acinclude.m4 \ + $(top_srcdir)/libc/machine/spu/acinclude.m4 \ + $(top_srcdir)/libc/sys/phoenix/acinclude.m4 \ + $(top_srcdir)/libm/acinclude.m4 \ + $(top_srcdir)/libm/machine/nds32/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps =3D $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) -DIST_COMMON =3D $(srcdir)/Makefile.am $(top_srcdir)/configure \ - $(am__configure_deps) -am__CONFIG_DISTCLEAN_FILES =3D config.status config.cache config.log \ - configure.lineno config.status.lineno -mkinstalldirs =3D $(SHELL) $(top_srcdir)/../../mkinstalldirs +DIST_COMMON =3D $(srcdir)/Makefile.am +mkinstalldirs =3D $(SHELL) $(top_srcdir)/../mkinstalldirs +CONFIG_HEADER =3D $(top_builddir)/newlib.h \ + $(top_builddir)/_newlib_version.h CONFIG_CLEAN_FILES =3D CONFIG_CLEAN_VPATH_FILES =3D LIBRARIES =3D $(noinst_LIBRARIES) @@ -134,7 +136,7 @@ AM_V_at =3D $(am__v_at_@AM_V@) am__v_at_ =3D $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 =3D @ am__v_at_1 =3D=20 -DEFAULT_INCLUDES =3D -I.@am__isrc@ +DEFAULT_INCLUDES =3D -I.@am__isrc@ -I$(top_builddir) depcomp =3D am__depfiles_maybe =3D COMPILE =3D $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ @@ -169,8 +171,7 @@ am__recursive_targets =3D \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) -AM_RECURSIVE_TARGETS =3D $(am__recursive_targets:-recursive=3D) TAGS CTAGS= \ - cscope +AM_RECURSIVE_TARGETS =3D $(am__recursive_targets:-recursive=3D) TAGS CTAGS am__tagged_files =3D $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is @@ -190,7 +191,6 @@ am__define_uniq_tagged_files =3D \ done | $(am__uniquify_input)` ETAGS =3D etags CTAGS =3D ctags -CSCOPE =3D cscope DIST_SUBDIRS =3D argz stdlib ctype search stdio stdio64 string signal \ time locale reent errno misc unix posix syscalls iconv xdr ssp \ @SYS_DIR@ @LIBC_MACHINE_DIR@ . @@ -205,15 +205,22 @@ AWK =3D @AWK@ CC =3D @CC@ CCAS =3D @CCAS@ CCASFLAGS =3D @CCASFLAGS@ +CC_FOR_BUILD =3D @CC_FOR_BUILD@ +CC_FOR_NEWLIB =3D @CC_FOR_NEWLIB@ CFLAGS =3D @CFLAGS@ CPP =3D @CPP@ CPPFLAGS =3D @CPPFLAGS@ +CRT0 =3D @CRT0@ +CRT0_DIR =3D @CRT0_DIR@ +CRT1 =3D @CRT1@ +CRT1_DIR =3D @CRT1_DIR@ CYGPATH_W =3D @CYGPATH_W@ DEFS =3D @DEFS@ ECHO_C =3D @ECHO_C@ ECHO_N =3D @ECHO_N@ ECHO_T =3D @ECHO_T@ EXEEXT =3D @EXEEXT@ +EXEEXT_FOR_BUILD =3D @EXEEXT_FOR_BUILD@ INSTALL =3D @INSTALL@ INSTALL_DATA =3D @INSTALL_DATA@ INSTALL_PROGRAM =3D @INSTALL_PROGRAM@ @@ -237,6 +244,10 @@ MAINT =3D @MAINT@ MAKEINFO =3D @MAKEINFO@ MKDIR_P =3D @MKDIR_P@ NEWLIB_CFLAGS =3D @NEWLIB_CFLAGS@ +NEWLIB_MAJOR_VERSION =3D @NEWLIB_MAJOR_VERSION@ +NEWLIB_MINOR_VERSION =3D @NEWLIB_MINOR_VERSION@ +NEWLIB_PATCHLEVEL_VERSION =3D @NEWLIB_PATCHLEVEL_VERSION@ +NEWLIB_VERSION =3D @NEWLIB_VERSION@ NO_INCLUDE_LIST =3D @NO_INCLUDE_LIST@ OBJEXT =3D @OBJEXT@ PACKAGE =3D @PACKAGE@ @@ -295,6 +306,7 @@ lpfx =3D @lpfx@ machine_dir =3D @machine_dir@ mandir =3D @mandir@ mkdir_p =3D @mkdir_p@ +multi_basedir =3D @multi_basedir@ newlib_basedir =3D @newlib_basedir@ oldincludedir =3D @oldincludedir@ pdfdir =3D @pdfdir@ @@ -353,44 +365,38 @@ SUBLIBS =3D \ $(LIBC_MACHINE_LIB) \ $(LIBC_SYS_LIB) =20 -ACLOCAL_AMFLAGS =3D -I .. -I ../.. -I ../../config -CONFIG_STATUS_DEPENDENCIES =3D $(newlib_basedir)/configure.host all: all-recursive =20 .SUFFIXES: .SUFFIXES: .c .o .obj -am--refresh: Makefile - @: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am_= _configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --foreign --ignore-deps'; \ - $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign --ignore-deps \ - && exit 0; \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign --ignore-deps Makefile';= \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign --ignore-deps libc/Makef= ile'; \ $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign --ignore-deps Makefile + $(AUTOMAKE) --foreign --ignore-deps libc/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ - echo ' $(SHELL) ./config.status'; \ - $(SHELL) ./config.status;; \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfil= es_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_mayb= e);; \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(= am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__dep= files_maybe);; \ esac; =20 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEP= ENDENCIES) - $(SHELL) ./config.status --recheck + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh =20 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - $(am__cd) $(srcdir) && $(AUTOCONF) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): =20 clean-noinstLIBRARIES: @@ -488,12 +494,6 @@ GTAGS: here=3D`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" -cscope: cscope.files - test ! -s cscope.files \ - || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(C= SCOPE_ARGS) -clean-cscope: - -rm -f cscope.files -cscope.files: clean-cscope cscopelist cscopelist: cscopelist-recursive =20 cscopelist-am: $(am__tagged_files) @@ -512,7 +512,6 @@ cscopelist-am: $(am__tagged_files) =20 distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -rm -f cscope.out cscope.in.out cscope.po.out cscope.files check-am: all-am check: check-recursive all-am: Makefile $(LIBRARIES) @@ -553,7 +552,6 @@ clean: clean-recursive clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am =20 distclean: distclean-recursive - -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags @@ -599,8 +597,6 @@ install-ps-am: installcheck-am: =20 maintainer-clean: maintainer-clean-recursive - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic =20 @@ -620,19 +616,19 @@ uninstall-am: =20 .MAKE: $(am__recursive_targets) install-am install-strip =20 -.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ - am--refresh check check-am clean clean-cscope clean-generic \ - clean-noinstLIBRARIES cscope cscopelist-am ctags ctags-am \ - distclean distclean-compile distclean-generic distclean-tags \ - dvi dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-dvi install-dvi-am \ - install-exec install-exec-am install-html install-html-am \ - install-info install-info-am install-man install-pdf \ - install-pdf-am install-ps install-ps-am install-strip \ - installcheck installcheck-am installdirs installdirs-am \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \ - tags tags-am uninstall uninstall-am +.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ + check-am clean clean-generic clean-noinstLIBRARIES \ + cscopelist-am ctags ctags-am distclean distclean-compile \ + distclean-generic distclean-tags dvi dvi-am html html-am info \ + info-am install install-am install-data install-data-am \ + install-dvi install-dvi-am install-exec install-exec-am \ + install-html install-html-am install-info install-info-am \ + install-man install-pdf install-pdf-am install-ps \ + install-ps-am install-strip installcheck installcheck-am \ + installdirs installdirs-am maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \ + uninstall-am =20 .PRECIOUS: Makefile =20 diff --git a/newlib/libc/acinclude.m4 b/newlib/libc/acinclude.m4 new file mode 100644 index 000000000..69c956cb4 --- /dev/null +++ b/newlib/libc/acinclude.m4 @@ -0,0 +1,182 @@ +dnl For each directory which we may or may not want, we define a name +dnl for the library and an automake conditional for whether we should +dnl build the library. + +LIBC_SIGNAL_LIB=3D +if test -n "${signal_dir}"; then + LIBC_SIGNAL_LIB=3D${signal_dir}/lib.a +fi +AC_SUBST(LIBC_SIGNAL_LIB) +AM_CONDITIONAL(HAVE_SIGNAL_DIR, test x${signal_dir} !=3D x) + +LIBC_STDIO_LIB=3D +if test -n "${stdio_dir}"; then + LIBC_STDIO_LIB=3D${stdio_dir}/lib.a +fi +AC_SUBST(LIBC_STDIO_LIB) +AM_CONDITIONAL(HAVE_STDIO_DIR, test x${stdio_dir} !=3D x) + +LIBC_STDIO64_LIB=3D +if test -n "${stdio64_dir}"; then + LIBC_STDIO64_LIB=3D${stdio64_dir}/lib.a +fi +AC_SUBST(LIBC_STDIO64_LIB) +AM_CONDITIONAL(HAVE_STDIO64_DIR, test x${stdio64_dir} !=3D x) + +LIBC_POSIX_LIB=3D +if test -n "${posix_dir}"; then + LIBC_POSIX_LIB=3D${posix_dir}/lib.a +fi +AC_SUBST(LIBC_POSIX_LIB) +AM_CONDITIONAL(HAVE_POSIX_DIR, test x${posix_dir} !=3D x) + +LIBC_XDR_LIB=3D +if test -n "${xdr_dir}"; then + LIBC_XDR_LIB=3D${xdr_dir}/lib.a +fi +AC_SUBST(LIBC_XDR_LIB) +AM_CONDITIONAL(HAVE_XDR_DIR, test x${xdr_dir} !=3D x) + +LIBC_SYSCALL_LIB=3D +if test -n "${syscall_dir}"; then + LIBC_SYSCALL_LIB=3D${syscall_dir}/lib.a +fi +AC_SUBST(LIBC_SYSCALL_LIB) +AM_CONDITIONAL(HAVE_SYSCALL_DIR, test x${syscall_dir} !=3D x) + +LIBC_UNIX_LIB=3D +if test -n "${unix_dir}"; then + LIBC_UNIX_LIB=3D${unix_dir}/lib.a +fi +AC_SUBST(LIBC_UNIX_LIB) +AM_CONDITIONAL(HAVE_UNIX_DIR, test x${unix_dir} !=3D x) + +dnl We always recur into sys and machine, and let them decide what to +dnl do. However, we do need to know whether they will produce a library. + +LIBC_SYS_LIB=3D +if test -n "${sys_dir}"; then + case ${sys_dir} in + a29khif) AC_CONFIG_FILES([libc/sys/a29khif/Makefile]) ;; + amdgcn) AC_CONFIG_FILES([libc/sys/amdgcn/Makefile]) ;; + arm) AC_CONFIG_FILES([libc/sys/arm/Makefile]) ;; + d10v) AC_CONFIG_FILES([libc/sys/d10v/Makefile]) ;; + epiphany) AC_CONFIG_FILES([libc/sys/epiphany/Makefile]) ;; + h8300hms) AC_CONFIG_FILES([libc/sys/h8300hms/Makefile]) ;; + h8500hms) AC_CONFIG_FILES([libc/sys/h8500hms/Makefile]) ;; + m88kbug) AC_CONFIG_FILES([libc/sys/m88kbug/Makefile]) ;; + mmixware) AC_CONFIG_FILES([libc/sys/mmixware/Makefile]) ;; + netware) AC_CONFIG_FILES([libc/sys/netware/Makefile]) ;; + or1k) AC_CONFIG_FILES([libc/sys/or1k/Makefile]) ;; + phoenix) AC_CONFIG_FILES([libc/sys/phoenix/Makefile]) ;; + rdos) AC_CONFIG_FILES([libc/sys/rdos/Makefile]) ;; + rtems) AC_CONFIG_FILES([libc/sys/rtems/Makefile]) ;; + sh) AC_CONFIG_FILES([libc/sys/sh/Makefile]) ;; + sysmec) AC_CONFIG_FILES([libc/sys/sysmec/Makefile]) ;; + sysnec810) AC_CONFIG_FILES([libc/sys/sysnec810/Makefile]) ;; + sysnecv850) AC_CONFIG_FILES([libc/sys/sysnecv850/Makefile]) ;; + sysvi386) AC_CONFIG_FILES([libc/sys/sysvi386/Makefile]) ;; + sysvnecv70) AC_CONFIG_FILES([libc/sys/sysvnecv70/Makefile]) ;; + tic80) AC_CONFIG_FILES([libc/sys/tic80/Makefile]) ;; + tirtos) AC_CONFIG_FILES([libc/sys/tirtos/Makefile]) ;; + w65) AC_CONFIG_FILES([libc/sys/w65/Makefile]) ;; + z8ksim) AC_CONFIG_FILES([libc/sys/z8ksim/Makefile]) ;; + *) AC_MSG_ERROR([unsupported sys_dir "${sys_dir}"]) ;; + esac + + SYS_DIR=3Dsys/${sys_dir} + LIBC_SYS_LIB=3D${SYS_DIR}/lib.a +fi +AC_SUBST(SYS_DIR) +AM_CONDITIONAL(HAVE_SYS_DIR, test x${sys_dir} !=3D x) +AC_SUBST(LIBC_SYS_LIB) + +AC_TYPE_LONG_DOUBLE +AM_CONDITIONAL(HAVE_LONG_DOUBLE, test x"$ac_cv_type_long_double" =3D x"yes= ") + +dnl iconv library will be compiled if --enable-newlib-iconv option is enab= led +AM_CONDITIONAL(ENABLE_NEWLIB_ICONV, test x${newlib_iconv} !=3D x) + +dnl We have to include these unconditionally since machines might want to = use +dnl AM_CONDITIONAL in their subdirs. +m4_include([libc/machine/nds32/acinclude.m4]) +m4_include([libc/machine/powerpc/acinclude.m4]) +m4_include([libc/machine/sh/acinclude.m4]) +m4_include([libc/machine/spu/acinclude.m4]) +m4_include([libc/sys/phoenix/acinclude.m4]) + +LIBC_MACHINE_LIB=3D +if test -n "${machine_dir}"; then + case ${machine_dir} in + a29k) AC_CONFIG_FILES([libc/machine/a29k/Makefile]) ;; + aarch64) AC_CONFIG_FILES([libc/machine/aarch64/Makefile]) ;; + amdgcn) AC_CONFIG_FILES([libc/machine/amdgcn/Makefile]) ;; + arc) AC_CONFIG_FILES([libc/machine/arc/Makefile]) ;; + arm) AC_CONFIG_FILES([libc/machine/arm/Makefile]) ;; + bfin) AC_CONFIG_FILES([libc/machine/bfin/Makefile]) ;; + cr16) AC_CONFIG_FILES([libc/machine/cr16/Makefile]) ;; + cris) AC_CONFIG_FILES([libc/machine/cris/Makefile]) ;; + crx) AC_CONFIG_FILES([libc/machine/crx/Makefile]) ;; + csky) AC_CONFIG_FILES([libc/machine/csky/Makefile]) ;; + d10v) AC_CONFIG_FILES([libc/machine/d10v/Makefile]) ;; + d30v) AC_CONFIG_FILES([libc/machine/d30v/Makefile]) ;; + epiphany) AC_CONFIG_FILES([libc/machine/epiphany/Makefile]) ;; + fr30) AC_CONFIG_FILES([libc/machine/fr30/Makefile]) ;; + frv) AC_CONFIG_FILES([libc/machine/frv/Makefile]) ;; + ft32) AC_CONFIG_FILES([libc/machine/ft32/Makefile]) ;; + h8300) AC_CONFIG_FILES([libc/machine/h8300/Makefile]) ;; + h8500) AC_CONFIG_FILES([libc/machine/h8500/Makefile]) ;; + hppa) AC_CONFIG_FILES([libc/machine/hppa/Makefile]) ;; + i386) AC_CONFIG_FILES([libc/machine/i386/Makefile]) ;; + i960) AC_CONFIG_FILES([libc/machine/i960/Makefile]) ;; + iq2000) AC_CONFIG_FILES([libc/machine/iq2000/Makefile]) ;; + lm32) AC_CONFIG_FILES([libc/machine/lm32/Makefile]) ;; + m32c) AC_CONFIG_FILES([libc/machine/m32c/Makefile]) ;; + m32r) AC_CONFIG_FILES([libc/machine/m32r/Makefile]) ;; + m68hc11) AC_CONFIG_FILES([libc/machine/m68hc11/Makefile]) ;; + m68k) AC_CONFIG_FILES([libc/machine/m68k/Makefile]) ;; + m88k) AC_CONFIG_FILES([libc/machine/m88k/Makefile]) ;; + mep) AC_CONFIG_FILES([libc/machine/mep/Makefile]) ;; + microblaze) AC_CONFIG_FILES([libc/machine/microblaze/Makefile]) ;; + mips) AC_CONFIG_FILES([libc/machine/mips/Makefile]) ;; + riscv) AC_CONFIG_FILES([libc/machine/riscv/Makefile]) ;; + mn10200) AC_CONFIG_FILES([libc/machine/mn10200/Makefile]) ;; + mn10300) AC_CONFIG_FILES([libc/machine/mn10300/Makefile]) ;; + moxie) AC_CONFIG_FILES([libc/machine/moxie/Makefile]) ;; + msp430) AC_CONFIG_FILES([libc/machine/msp430/Makefile]) ;; + mt) AC_CONFIG_FILES([libc/machine/mt/Makefile]) ;; + nds32) AC_CONFIG_FILES([libc/machine/nds32/Makefile]) ;; + necv70) AC_CONFIG_FILES([libc/machine/necv70/Makefile]) ;; + nios2) AC_CONFIG_FILES([libc/machine/nios2/Makefile]) ;; + nvptx) AC_CONFIG_FILES([libc/machine/nvptx/Makefile]) ;; + or1k) AC_CONFIG_FILES([libc/machine/or1k/Makefile]) ;; + powerpc) AC_CONFIG_FILES([libc/machine/powerpc/Makefile]) ;; + pru) AC_CONFIG_FILES([libc/machine/pru/Makefile]) ;; + rl78) AC_CONFIG_FILES([libc/machine/rl78/Makefile]) ;; + rx) AC_CONFIG_FILES([libc/machine/rx/Makefile]) ;; + sh) AC_CONFIG_FILES([libc/machine/sh/Makefile]) ;; + sparc) AC_CONFIG_FILES([libc/machine/sparc/Makefile]) ;; + spu) AC_CONFIG_FILES([libc/machine/spu/Makefile]) ;; + tic4x) AC_CONFIG_FILES([libc/machine/tic4x/Makefile]) ;; + tic6x) AC_CONFIG_FILES([libc/machine/tic6x/Makefile]) ;; + tic80) AC_CONFIG_FILES([libc/machine/tic80/Makefile]) ;; + v850) AC_CONFIG_FILES([libc/machine/v850/Makefile]) ;; + visium) AC_CONFIG_FILES([libc/machine/visium/Makefile]) ;; + w65) AC_CONFIG_FILES([libc/machine/w65/Makefile]) ;; + x86_64) AC_CONFIG_FILES([libc/machine/x86_64/Makefile]) ;; + xc16x) AC_CONFIG_FILES([libc/machine/xc16x/Makefile]) ;; + xstormy16) AC_CONFIG_FILES([libc/machine/xstormy16/Makefile]) ;; + z8k) AC_CONFIG_FILES([libc/machine/z8k/Makefile]) ;; + *) AC_MSG_ERROR([unsupported machine_dir "${machine_dir}"]) ;; + esac + + LIBC_MACHINE_DIR=3Dmachine/${machine_dir} + LIBC_MACHINE_LIB=3D${LIBC_MACHINE_DIR}/lib.a +fi +AM_CONDITIONAL(HAVE_LIBC_MACHINE_DIR, test "x${LIBC_MACHINE_DIR}" !=3D x) +AC_SUBST(LIBC_MACHINE_DIR) +AC_SUBST(LIBC_MACHINE_LIB) + +AM_CONDITIONAL(MACH_ADD_SETJMP, test "x$mach_add_setjmp" =3D "xtrue") + +AC_CONFIG_FILES([libc/Makefile libc/argz/Makefile libc/ctype/Makefile libc= /errno/Makefile libc/locale/Makefile libc/misc/Makefile libc/reent/Makefile= libc/search/Makefile libc/stdio/Makefile libc/stdio64/Makefile libc/stdlib= /Makefile libc/string/Makefile libc/time/Makefile libc/posix/Makefile libc/= signal/Makefile libc/syscalls/Makefile libc/unix/Makefile libc/iconv/Makefi= le libc/iconv/ces/Makefile libc/iconv/ccs/Makefile libc/iconv/ccs/binary/Ma= kefile libc/iconv/lib/Makefile libc/ssp/Makefile libc/xdr/Makefile]) diff --git a/newlib/libc/aclocal.m4 b/newlib/libc/aclocal.m4 deleted file mode 100644 index 9f8ed8209..000000000 --- a/newlib/libc/aclocal.m4 +++ /dev/null @@ -1,937 +0,0 @@ -# generated automatically by aclocal 1.15.1 -*- Autoconf -*- - -# Copyright (C) 1996-2017 Free Software Foundation, Inc. - -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4= _defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) -m4_ifndef([AC_AUTOCONF_VERSION], - [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl -m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, -[m4_warning([this file was generated for autoconf 2.69. -You have another version of autoconf. It may work, but is not guaranteed = to. -If you have problems, you may need to regenerate the build system entirely. -To do so, use the procedure documented by the package, typically 'autoreco= nf'.])]) - -# Copyright (C) 2002-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_AUTOMAKE_VERSION(VERSION) -# ---------------------------- -# Automake X.Y traces this macro to ensure aclocal.m4 has been -# generated from the m4 files accompanying Automake X.Y. -# (This private macro should not be called outside this file.) -AC_DEFUN([AM_AUTOMAKE_VERSION], -[am__api_version=3D'1.15' -dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to -dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.15.1], [], - [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl -]) - -# _AM_AUTOCONF_VERSION(VERSION) -# ----------------------------- -# aclocal traces this macro to find the Autoconf version. -# This is a private macro too. Using m4_define simplifies -# the logic in aclocal, which can simply ignore this definition. -m4_define([_AM_AUTOCONF_VERSION], []) - -# AM_SET_CURRENT_AUTOMAKE_VERSION -# ------------------------------- -# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. -# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.15.1])dnl -m4_ifndef([AC_AUTOCONF_VERSION], - [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl -_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) - -# Copyright (C) 2011-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_AR([ACT-IF-FAIL]) -# ------------------------- -# Try to determine the archiver interface, and trigger the ar-lib wrapper -# if it is needed. If the detection of archiver interface fails, run -# ACT-IF-FAIL (default is to abort configure with a proper error message). -AC_DEFUN([AM_PROG_AR], -[AC_BEFORE([$0], [LT_INIT])dnl -AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl -AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -AC_REQUIRE_AUX_FILE([ar-lib])dnl -AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false]) -: ${AR=3Dar} - -AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface], - [AC_LANG_PUSH([C]) - am_cv_ar_interface=3Dar - AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable =3D 0;]])], - [am_ar_try=3D'$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_= LOG_FD' - AC_TRY_EVAL([am_ar_try]) - if test "$ac_status" -eq 0; then - am_cv_ar_interface=3Dar - else - am_ar_try=3D'$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&A= S_MESSAGE_LOG_FD' - AC_TRY_EVAL([am_ar_try]) - if test "$ac_status" -eq 0; then - am_cv_ar_interface=3Dlib - else - am_cv_ar_interface=3Dunknown - fi - fi - rm -f conftest.lib libconftest.a - ]) - AC_LANG_POP([C])]) - -case $am_cv_ar_interface in -ar) - ;; -lib) - # Microsoft lib, so override with the ar-lib wrapper script. - # FIXME: It is wrong to rewrite AR. - # But if we don't then we get into trouble of one sort or another. - # A longer-term fix would be to have automake use am__AR in this case, - # and then we could set am__AR=3D"$am_aux_dir/ar-lib \$(AR)" or something - # similar. - AR=3D"$am_aux_dir/ar-lib $AR" - ;; -unknown) - m4_default([$1], - [AC_MSG_ERROR([could not determine $AR interface])]) - ;; -esac -AC_SUBST([AR])dnl -]) - -# Figure out how to run the assembler. -*- Autoconf -= *- - -# Copyright (C) 2001-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_AS -# ---------- -AC_DEFUN([AM_PROG_AS], -[# By default we simply use the C compiler to build assembly code. -AC_REQUIRE([AC_PROG_CC]) -test "${CCAS+set}" =3D set || CCAS=3D$CC -test "${CCASFLAGS+set}" =3D set || CCASFLAGS=3D$CFLAGS -AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)]) -AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)]) -_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl -]) - -# AM_AUX_DIR_EXPAND -*- Autoconf -= *- - -# Copyright (C) 2001-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets -# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to -# '$srcdir', '$srcdir/..', or '$srcdir/../..'. -# -# Of course, Automake must honor this variable whenever it calls a -# tool from the auxiliary directory. The problem is that $srcdir (and -# therefore $ac_aux_dir as well) can be either absolute or relative, -# depending on how configure is run. This is pretty annoying, since -# it makes $ac_aux_dir quite unusable in subdirectories: in the top -# source directory, any form will work fine, but in subdirectories a -# relative path needs to be adjusted first. -# -# $ac_aux_dir/missing -# fails when called from a subdirectory if $ac_aux_dir is relative -# $top_srcdir/$ac_aux_dir/missing -# fails if $ac_aux_dir is absolute, -# fails when called from a subdirectory in a VPATH build with -# a relative $ac_aux_dir -# -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir -# are both prefixed by $srcdir. In an in-source build this is usually -# harmless because $srcdir is '.', but things will broke when you -# start a VPATH build or use an absolute $srcdir. -# -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, -# iff we strip the leading $srcdir from $ac_aux_dir. That would be: -# am_aux_dir=3D'\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` -# and then we would define $MISSING as -# MISSING=3D"\${SHELL} $am_aux_dir/missing" -# This will work as long as MISSING is not called from configure, because -# unfortunately $(top_srcdir) has no meaning in configure. -# However there are other variables, like CC, which are often used in -# configure, and could therefore not use this "fixed" $ac_aux_dir. -# -# Another solution, used here, is to always expand $ac_aux_dir to an -# absolute PATH. The drawback is that using absolute paths prevent a -# configured tree to be moved without reconfiguration. - -AC_DEFUN([AM_AUX_DIR_EXPAND], -[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl -# Expand $ac_aux_dir to an absolute path. -am_aux_dir=3D`cd "$ac_aux_dir" && pwd` -]) - -# AM_CONDITIONAL -*- Autoconf -= *- - -# Copyright (C) 1997-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_CONDITIONAL(NAME, SHELL-CONDITION) -# ------------------------------------- -# Define a conditional. -AC_DEFUN([AM_CONDITIONAL], -[AC_PREREQ([2.52])dnl - m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl -AC_SUBST([$1_TRUE])dnl -AC_SUBST([$1_FALSE])dnl -_AM_SUBST_NOTMAKE([$1_TRUE])dnl -_AM_SUBST_NOTMAKE([$1_FALSE])dnl -m4_define([_AM_COND_VALUE_$1], [$2])dnl -if $2; then - $1_TRUE=3D - $1_FALSE=3D'#' -else - $1_TRUE=3D'#' - $1_FALSE=3D -fi -AC_CONFIG_COMMANDS_PRE( -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then - AC_MSG_ERROR([[conditional "$1" was never defined. -Usually this means the macro was only invoked conditionally.]]) -fi])]) - -# Do all the work for Automake. -*- Autoconf -= *- - -# Copyright (C) 1996-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This macro actually does too much. Some checks are only needed if -# your package does certain things. But this isn't really a big deal. - -dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. -m4_define([AC_PROG_CC], -m4_defn([AC_PROG_CC]) -[_AM_PROG_CC_C_O -]) - -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) -# AM_INIT_AUTOMAKE([OPTIONS]) -# ----------------------------------------------- -# The call with PACKAGE and VERSION arguments is the old style -# call (pre autoconf-2.50), which is being phased out. PACKAGE -# and VERSION should now be passed to AC_INIT and removed from -# the call to AM_INIT_AUTOMAKE. -# We support both call styles for the transition. After -# the next Automake release, Autoconf can make the AC_INIT -# arguments mandatory, and then we can depend on a new Autoconf -# release and drop the old call support. -AC_DEFUN([AM_INIT_AUTOMAKE], -[AC_PREREQ([2.65])dnl -dnl Autoconf wants to disallow AM_ names. We explicitly allow -dnl the ones we care about. -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl -AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl -AC_REQUIRE([AC_PROG_INSTALL])dnl -if test "`cd $srcdir && pwd`" !=3D "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) !=3D ., so that make's output - # is not polluted with repeated "-I." - AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean= " there first]) - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W=3D'cygpath -w' - else - CYGPATH_W=3Decho - fi -fi -AC_SUBST([CYGPATH_W]) - -# Define the identity of the package. -dnl Distinguish between old-style and new-style calls. -m4_ifval([$2], -[AC_DIAGNOSE([obsolete], - [$0: two- and three-arguments forms are deprecated.]) -m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl - AC_SUBST([PACKAGE], [$1])dnl - AC_SUBST([VERSION], [$2])], -[_AM_SET_OPTIONS([$1])dnl -dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. -m4_if( - m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), - [ok:ok],, - [m4_fatal([AC_INIT should be called with package and version arguments])= ])dnl - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl - -_AM_IF_OPTION([no-define],, -[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) - AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])]= )dnl - -# Some tools Automake needs. -AC_REQUIRE([AM_SANITY_CHECK])dnl -AC_REQUIRE([AC_ARG_PROGRAM])dnl -AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) -AM_MISSING_PROG([AUTOCONF], [autoconf]) -AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) -AM_MISSING_PROG([AUTOHEADER], [autoheader]) -AM_MISSING_PROG([MAKEINFO], [makeinfo]) -AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl -AC_REQUIRE([AC_PROG_MKDIR_P])dnl -# For better backward compatibility. To be removed once Automake 1.9.x -# dies out for good. For more background, see: -# -# -AC_SUBST([mkdir_p], ['$(MKDIR_P)']) -# We need awk for the "check" target (and possibly the TAP driver). The -# system "awk" is bad on some platforms. -AC_REQUIRE([AC_PROG_AWK])dnl -AC_REQUIRE([AC_PROG_MAKE_SET])dnl -AC_REQUIRE([AM_SET_LEADING_DOT])dnl -_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], - [_AM_PROG_TAR([v7])])]) -_AM_IF_OPTION([no-dependencies],, -[AC_PROVIDE_IFELSE([AC_PROG_CC], - [_AM_DEPENDENCIES([CC])], - [m4_define([AC_PROG_CC], - m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl -AC_PROVIDE_IFELSE([AC_PROG_CXX], - [_AM_DEPENDENCIES([CXX])], - [m4_define([AC_PROG_CXX], - m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl -AC_PROVIDE_IFELSE([AC_PROG_OBJC], - [_AM_DEPENDENCIES([OBJC])], - [m4_define([AC_PROG_OBJC], - m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl -AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], - [_AM_DEPENDENCIES([OBJCXX])], - [m4_define([AC_PROG_OBJCXX], - m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl -]) -AC_REQUIRE([AM_SILENT_RULES])dnl -dnl The testsuite driver may need to know about EXEEXT, so add the -dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This -dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. -AC_CONFIG_COMMANDS_PRE(dnl -[m4_provide_if([_AM_COMPILER_EXEEXT], - [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl - -# POSIX will say in a future version that running "rm -f" with no argument -# is OK; and we want to be able to make that assumption in our Makefile -# recipes. So use an aggressive probe to check that the usage we want is -# actually supported "in the wild" to an acceptable degree. -# See automake bug#10828. -# To make any issue more visible, cause the running configure to be aborted -# by default if the 'rm' program in use doesn't match our expectations; the -# user can still override this though. -if rm -f && rm -fr && rm -rf; then : OK; else - cat >&2 <<'END' -Oops! - -Your 'rm' program seems unable to run without file operands specified -on the command line, even when the '-f' option is present. This is contra= ry -to the behaviour of most rm programs out there, and not conforming with -the upcoming POSIX standard: - -Please tell bug-automake@gnu.org about your system, including the value -of your $PATH and any error possibly output before this message. This -can help us improve future automake versions. - -END - if test x"$ACCEPT_INFERIOR_RM_PROGRAM" =3D x"yes"; then - echo 'Configuration will proceed anyway, since you have set the' >&2 - echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 - echo >&2 - else - cat >&2 <<'END' -Aborting the configuration process, to ensure you take notice of the issue. - -You can download and install GNU coreutils to get an 'rm' implementation -that behaves properly: . - -If you want to complete the configuration process using your problematic -'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM -to "yes", and re-run configure. - -END - AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) - fi -fi -dnl The trailing newline in this macro's definition is deliberate, for -dnl backward compatibility and to allow trailing 'dnl'-style comments -dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. -]) - -dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not -dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further -dnl mangled by Autoconf and run in a shell conditional statement. -m4_define([_AC_COMPILER_EXEEXT], -m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) - -# When config.status generates a header, we must update the stamp-h file. -# This file resides in the same directory as the config header -# that is generated. The stamp files are numbered to have different names. - -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the -# loop where config.status creates the headers, so we can generate -# our stamp files there. -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], -[# Compute $1's index in $config_headers. -_am_arg=3D$1 -_am_stamp_count=3D1 -for _am_header in $config_headers :; do - case $_am_header in - $_am_arg | $_am_arg:* ) - break ;; - * ) - _am_stamp_count=3D`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_st= amp_count]) - -# Copyright (C) 2001-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_SH -# ------------------ -# Define $install_sh. -AC_DEFUN([AM_PROG_INSTALL_SH], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -if test x"${install_sh+set}" !=3D xset; then - case $am_aux_dir in - *\ * | *\ *) - install_sh=3D"\${SHELL} '$am_aux_dir/install-sh'" ;; - *) - install_sh=3D"\${SHELL} $am_aux_dir/install-sh" - esac -fi -AC_SUBST([install_sh])]) - -# Add --enable-maintainer-mode option to configure. -*- Autoconf -= *- -# From Jim Meyering - -# Copyright (C) 1996-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_MAINTAINER_MODE([DEFAULT-MODE]) -# ---------------------------------- -# Control maintainer-specific portions of Makefiles. -# Default is to disable them, unless 'enable' is passed literally. -# For symmetry, 'disable' may be passed as well. Anyway, the user -# can override the default with the --enable/--disable switch. -AC_DEFUN([AM_MAINTAINER_MODE], -[m4_case(m4_default([$1], [disable]), - [enable], [m4_define([am_maintainer_other], [disable])], - [disable], [m4_define([am_maintainer_other], [enable])], - [m4_define([am_maintainer_other], [enable]) - m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: = $1])]) -AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefil= es]) - dnl maintainer-mode's default is 'disable' unless 'enable' is passed - AC_ARG_ENABLE([maintainer-mode], - [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], - am_maintainer_other[ make rules and dependencies not useful - (and sometimes confusing) to the casual installer])], - [USE_MAINTAINER_MODE=3D$enableval], - [USE_MAINTAINER_MODE=3D]m4_if(am_maintainer_other, [enable], [no], [ye= s])) - AC_MSG_RESULT([$USE_MAINTAINER_MODE]) - AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE =3D yes]) - MAINT=3D$MAINTAINER_MODE_TRUE - AC_SUBST([MAINT])dnl -] -) - -# Fake the existence of programs that GNU maintainers use. -*- Autoconf -= *- - -# Copyright (C) 1997-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_MISSING_PROG(NAME, PROGRAM) -# ------------------------------ -AC_DEFUN([AM_MISSING_PROG], -[AC_REQUIRE([AM_MISSING_HAS_RUN]) -$1=3D${$1-"${am_missing_run}$2"} -AC_SUBST($1)]) - -# AM_MISSING_HAS_RUN -# ------------------ -# Define MISSING if not defined so far and test if it is modern enough. -# If it is, set am_missing_run to use it, otherwise, to nothing. -AC_DEFUN([AM_MISSING_HAS_RUN], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -AC_REQUIRE_AUX_FILE([missing])dnl -if test x"${MISSING+set}" !=3D xset; then - case $am_aux_dir in - *\ * | *\ *) - MISSING=3D"\${SHELL} \"$am_aux_dir/missing\"" ;; - *) - MISSING=3D"\${SHELL} $am_aux_dir/missing" ;; - esac -fi -# Use eval to expand $SHELL -if eval "$MISSING --is-lightweight"; then - am_missing_run=3D"$MISSING " -else - am_missing_run=3D - AC_MSG_WARN(['missing' script is too old or missing]) -fi -]) - -# Helper functions for option handling. -*- Autoconf -= *- - -# Copyright (C) 2001-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# _AM_MANGLE_OPTION(NAME) -# ----------------------- -AC_DEFUN([_AM_MANGLE_OPTION], -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) - -# _AM_SET_OPTION(NAME) -# -------------------- -# Set option NAME. Presently that only means defining a flag for this opt= ion. -AC_DEFUN([_AM_SET_OPTION], -[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) - -# _AM_SET_OPTIONS(OPTIONS) -# ------------------------ -# OPTIONS is a space-separated list of Automake options. -AC_DEFUN([_AM_SET_OPTIONS], -[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) - -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) -# ------------------------------------------- -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. -AC_DEFUN([_AM_IF_OPTION], -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) - -# Copyright (C) 1999-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# _AM_PROG_CC_C_O -# --------------- -# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC -# to automatically call this. -AC_DEFUN([_AM_PROG_CC_C_O], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -AC_REQUIRE_AUX_FILE([compile])dnl -AC_LANG_PUSH([C])dnl -AC_CACHE_CHECK( - [whether $CC understands -c and -o together], - [am_cv_prog_cc_c_o], - [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) - # Make sure it works both with $CC and with simple cc. - # Following AC_PROG_CC_C_O, we do the test twice because some - # compilers refuse to overwrite an existing .o file with -o, - # though they will create one. - am_cv_prog_cc_c_o=3Dyes - for am_i in 1 2; do - if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ - && test -f conftest2.$ac_objext; then - : OK - else - am_cv_prog_cc_c_o=3Dno - break - fi - done - rm -f core conftest* - unset am_i]) -if test "$am_cv_prog_cc_c_o" !=3D yes; then - # Losing compiler, so override with the script. - # FIXME: It is wrong to rewrite CC. - # But if we don't then we get into trouble of one sort or another. - # A longer-term fix would be to have automake use am__CC in this case, - # and then we could set am__CC=3D"\$(top_srcdir)/compile \$(CC)" - CC=3D"$am_aux_dir/compile $CC" -fi -AC_LANG_POP([C])]) - -# For backward compatibility. -AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) - -# Copyright (C) 2001-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_RUN_LOG(COMMAND) -# ------------------- -# Run COMMAND, save the exit status in ac_status, and log it. -# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) -AC_DEFUN([AM_RUN_LOG], -[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD - ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD - ac_status=3D$? - echo "$as_me:$LINENO: \$? =3D $ac_status" >&AS_MESSAGE_LOG_FD - (exit $ac_status); }]) - -# Check to make sure that the build environment is sane. -*- Autoconf -= *- - -# Copyright (C) 1996-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_SANITY_CHECK -# --------------- -AC_DEFUN([AM_SANITY_CHECK], -[AC_MSG_CHECKING([whether build environment is sane]) -# Reject unsafe characters in $srcdir or the absolute working directory -# name. Accept space and tab only in the latter. -am_lf=3D' -' -case `pwd` in - *[[\\\"\#\$\&\'\`$am_lf]]*) - AC_MSG_ERROR([unsafe absolute working directory name]);; -esac -case $srcdir in - *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) - AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; -esac - -# Do 'set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - am_has_slept=3Dno - for am_try in 1 2; do - echo "timestamp, slept: $am_has_slept" > conftest.file - set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` - if test "$[*]" =3D "X"; then - # -L didn't work. - set X `ls -t "$srcdir/configure" conftest.file` - fi - if test "$[*]" !=3D "X $srcdir/configure conftest.file" \ - && test "$[*]" !=3D "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken - alias in your environment]) - fi - if test "$[2]" =3D conftest.file || test $am_try -eq 2; then - break - fi - # Just in case. - sleep 1 - am_has_slept=3Dyes - done - test "$[2]" =3D conftest.file - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -AC_MSG_RESULT([yes]) -# If we didn't sleep, we still need to ensure time stamps of config.status= and -# generated files are strictly newer. -am_sleep_pid=3D -if grep 'slept: no' conftest.file >/dev/null 2>&1; then - ( sleep 1 ) & - am_sleep_pid=3D$! -fi -AC_CONFIG_COMMANDS_PRE( - [AC_MSG_CHECKING([that generated files are newer than configure]) - if test -n "$am_sleep_pid"; then - # Hide warnings about reused PIDs. - wait $am_sleep_pid 2>/dev/null - fi - AC_MSG_RESULT([done])]) -rm -f conftest.file -]) - -# Copyright (C) 2009-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_SILENT_RULES([DEFAULT]) -# -------------------------- -# Enable less verbose build rules; with the default set to DEFAULT -# ("yes" being less verbose, "no" or empty being verbose). -AC_DEFUN([AM_SILENT_RULES], -[AC_ARG_ENABLE([silent-rules], [dnl -AS_HELP_STRING( - [--enable-silent-rules], - [less verbose build output (undo: "make V=3D1")]) -AS_HELP_STRING( - [--disable-silent-rules], - [verbose build output (undo: "make V=3D0")])dnl -]) -case $enable_silent_rules in @%:@ ((( - yes) AM_DEFAULT_VERBOSITY=3D0;; - no) AM_DEFAULT_VERBOSITY=3D1;; - *) AM_DEFAULT_VERBOSITY=3Dm4_if([$1], [yes], [0], [1]);; -esac -dnl -dnl A few 'make' implementations (e.g., NonStop OS and NextStep) -dnl do not support nested variable expansions. -dnl See automake bug#9928 and bug#10237. -am_make=3D${MAKE-make} -AC_CACHE_CHECK([whether $am_make supports nested variables], - [am_cv_make_support_nested_variables], - [if AS_ECHO([['TRUE=3D$(BAR$(V)) -BAR0=3Dfalse -BAR1=3Dtrue -V=3D1 -am__doit: - @$(TRUE) -.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then - am_cv_make_support_nested_variables=3Dyes -else - am_cv_make_support_nested_variables=3Dno -fi]) -if test $am_cv_make_support_nested_variables =3D yes; then - dnl Using '$V' instead of '$(V)' breaks IRIX make. - AM_V=3D'$(V)' - AM_DEFAULT_V=3D'$(AM_DEFAULT_VERBOSITY)' -else - AM_V=3D$AM_DEFAULT_VERBOSITY - AM_DEFAULT_V=3D$AM_DEFAULT_VERBOSITY -fi -AC_SUBST([AM_V])dnl -AM_SUBST_NOTMAKE([AM_V])dnl -AC_SUBST([AM_DEFAULT_V])dnl -AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl -AC_SUBST([AM_DEFAULT_VERBOSITY])dnl -AM_BACKSLASH=3D'\' -AC_SUBST([AM_BACKSLASH])dnl -_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl -]) - -# Copyright (C) 2001-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_STRIP -# --------------------- -# One issue with vendor 'install' (even GNU) is that you can't -# specify the program used to strip binaries. This is especially -# annoying in cross-compiling environments, where the build's strip -# is unlikely to handle the host's binaries. -# Fortunately install-sh will honor a STRIPPROG variable, so we -# always use install-sh in "make install-strip", and initialize -# STRIPPROG with the value of the STRIP variable (set by the user). -AC_DEFUN([AM_PROG_INSTALL_STRIP], -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -# Installed binaries are usually stripped using 'strip' when the user -# run "make install-strip". However 'strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the 'STRIP' environment variable to overrule this program. -dnl Don't test for $cross_compiling =3D yes, because it might be 'maybe'. -if test "$cross_compiling" !=3D no; then - AC_CHECK_TOOL([STRIP], [strip], :) -fi -INSTALL_STRIP_P[...] [diff truncated at 100000 bytes]