mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-19 12:59:21 +08:00
a861509239
* acinclude.m4 (enable-newlib-mb): Change check to default newlib_mb variable to empty string rather than "no". * configure.host: Remove hard-coding of -DMB_CAPABLE for x86-linux and Cygwin. Add code to check for newlib_mb being unset in which case set to "yes" for x86-linux and Cygwin. Change check for newlib_mb being "yes" to allow for an empty string. * configure.in (_MB_LEN_MAX): New AC_DEFINE. * newlib.hin (_MB_LEN_MAX): New define to configure. * aclocal.m4: Regenerated. * configure: Ditto. * libc/include/limits.h: New file. * libc/sys/linux/include/limits.h: Ditto. * doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure libc/machine/aclocal.m4 libc/machine/configure libc/machine/a29k/aclocal.m4 libc/machine/a29k/configure libc/machine/arm/aclocal.m4 libc/machine/arm/configure libc/machine/d10v/aclocal.m4 libc/machine/d10v/configure libc/machine/d30v/aclocal.m4 libc/machine/d30v/configure libc/machine/fr30/aclocal.m4 libc/machine/fr30/configure libc/machine/frv/aclocal.m4 libc/machine/frv/configure libc/machine/h8300/aclocal.m4 libc/machine/h8300/configure libc/machine/h8500/aclocal.m4 libc/machine/h8500/configure libc/machine/hppa/aclocal.m4 libc/machine/hppa/configure libc/machine/i386/aclocal.m4 libc/machine/i386/configure libc/machine/i960/aclocal.m4 libc/machine/i960/configure libc/machine/m32r/aclocal.m4 libc/machine/m32r/configure libc/machine/m68hc11/aclocal.m4 libc/machine/m68hc11/configure libc/machine/m68k/aclocal.m4 libc/machine/m68k/configure libc/machine/m88k/aclocal.m4 libc/machine/m88k/configure libc/machine/mips/aclocal.m4 libc/machine/mips/configure libc/machine/mn10200/aclocal.m4 libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4 libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4 libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4 libc/machine/powerpc/configure libc/machine/sh/aclocal.m4 libc/machine/sh/configure libc/machine/sparc/aclocal.m4 libc/machine/sparc/configure libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure libc/machine/v850/aclocal.m4 libc/machine/v850/configure libc/machine/w65/aclocal.m4 libc/machine/w65/configure libc/machine/xscale/aclocal.m4 libc/machine/xscale/configure libc/machine/xstormy16/aclocal.m4 libc/machine/xstormy16/configure libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure libc/sys/aclocal.m4 libc/sys/configure libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure libc/sys/arc/aclocal.m4 libc/sys/arc/configure libc/sys/arm/aclocal.m4 libc/sys/arm/configure libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure libc/sys/go32/aclocal.m4 libc/sys/go32/configure libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure libc/sys/idt/aclocal.m4 libc/sys/idt/configure libc/sys/linux/aclocal.m4 libc/sys/linux/configure libc/sys/linux/machine/aclocal.m4 libc/sys/linux/machine/configure libc/sys/linux/machine/i386/aclocal.m4 libc/sys/linux/machine/i386/configure libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure libc/sys/mmixware/aclocal.m4 libc/sys/mmixware/configure libc/sys/netware/aclocal.m4 libc/sys/netware/configure libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure libc/sys/sh/aclocal.m4 libc/sys/sh/configure libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure libc/sys/w65/aclocal.m4 libc/sys/w65/configure libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure libm/aclocal.m4 libm/configure: Regenerated.
164 lines
4.1 KiB
Plaintext
164 lines
4.1 KiB
Plaintext
dnl This is the newlib configure.in file.
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
AC_PREREQ(2.5)
|
|
AC_INIT(libc)
|
|
AM_CONFIG_HEADER(newlib.h:newlib.hin)
|
|
|
|
dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
|
|
AC_CONFIG_AUX_DIR(..)
|
|
|
|
dnl Support --enable-newlib-io-pos-args
|
|
dnl This option is actually read in libc/configure.in. It is repeated
|
|
dnl here so that it shows up in the help text.
|
|
AC_ARG_ENABLE(newlib-io-pos-args,
|
|
[ --enable-newlib-io-pos-args enable printf-family positional arg support],
|
|
[case "${enableval}" in
|
|
yes) newlib_io_pos_args=yes ;;
|
|
no) newlib_io_pos_args=no ;;
|
|
*) AC_MSG_ERROR(bad value ${enableval} for newlib-io-pos-args option) ;;
|
|
esac], [newlib_io_pos_args=no])dnl
|
|
|
|
|
|
NEWLIB_CONFIGURE(.)
|
|
|
|
dnl We have to enable libtool after NEWLIB_CONFIGURE because if we try and
|
|
dnl add it into NEWLIB_CONFIGURE, executable tests are made before the first
|
|
dnl line of the macro which fail because appropriate LDFLAGS are not set.
|
|
if test "${use_libtool}" = "yes"; then
|
|
AC_LIBTOOL_WIN32_DLL
|
|
AM_PROG_LIBTOOL
|
|
AC_PROG_AWK
|
|
fi
|
|
|
|
configdirs="libc libm"
|
|
|
|
AC_ARG_ENABLE(newlib_hw_fp,
|
|
[ --enable-newlib-hw-fp Turn on hardware floating point math],
|
|
[case "${enableval}" in
|
|
yes) newlib_hw_fp=true ;;
|
|
no) newlib_hw_fp=false ;;
|
|
*) AC_MSG_ERROR(bad value ${enableval} for --enable-newlib-hw-fp) ;;
|
|
esac],[newlib_hw_fp=false])
|
|
AM_CONDITIONAL(NEWLIB_HW_FP, test x$newlib_hw_fp = xtrue)
|
|
|
|
if test -z "${with_multisubdir}"; then
|
|
configdirs="${configdirs} doc"
|
|
have_doc=yes
|
|
else
|
|
have_doc=
|
|
fi
|
|
AM_CONDITIONAL(HAVE_DOC, test x$have_doc = xyes)
|
|
|
|
# These get added in the top-level configure.in, except in the case where
|
|
# newlib is being built natively.
|
|
if test -z `echo ${CC} | grep \/libc\/include`; then
|
|
CC_FOR_NEWLIB="${CC} -I$PWD/targ-include -I${newlib_basedir}/libc/include"
|
|
else
|
|
CC_FOR_NEWLIB="${CC}"
|
|
fi
|
|
AC_SUBST(CC_FOR_NEWLIB)
|
|
|
|
AC_CONFIG_SUBDIRS(${configdirs})
|
|
|
|
CRT0=
|
|
CRT0_DIR=
|
|
if test -n "${sys_dir}"; then
|
|
CRT0=crt0.o
|
|
CRT0_DIR=libc/
|
|
fi
|
|
AC_SUBST(CRT0)
|
|
AC_SUBST(CRT0_DIR)
|
|
|
|
CRT1=${crt1}
|
|
CRT1_DIR=
|
|
if test -n "${crt1_dir}"; then
|
|
CRT1_DIR=${crt1_dir}/
|
|
fi
|
|
AC_SUBST(CRT1)
|
|
AC_SUBST(CRT1_DIR)
|
|
|
|
if test -n "${libm_machine_dir}"; then
|
|
LIBM_MACHINE_OBJECTLIST=libm/machine/${libm_machine_dir}/objectlist.awk.in
|
|
fi
|
|
AC_SUBST(LIBM_MACHINE_OBJECTLIST)
|
|
|
|
if test -n "${machine_dir}"; then
|
|
MACHINE_OBJECTLIST=libc/machine/${machine_dir}/objectlist.awk.in
|
|
fi
|
|
AC_SUBST(MACHINE_OBJECTLIST)
|
|
|
|
if test -n "${sys_dir}"; then
|
|
SYS_OBJECTLIST=libc/sys/${sys_dir}/objectlist.awk.in
|
|
fi
|
|
AC_SUBST(SYS_OBJECTLIST)
|
|
|
|
if test "${have_sys_mach_dir}" = "yes"; then
|
|
SYS_MACH_OBJECTLIST=libc/sys/${sys_dir}/machine/${machine_dir}/objectlist.awk.in
|
|
fi
|
|
AC_SUBST(SYS_MACH_OBJECTLIST)
|
|
|
|
if test -n "${posix_dir}"; then
|
|
POSIX_OBJECTLIST=libc/${posix_dir}/objectlist.awk.in
|
|
fi
|
|
AC_SUBST(POSIX_OBJECTLIST)
|
|
|
|
if test -n "${signal_dir}"; then
|
|
SIGNAL_OBJECTLIST=libc/${signal_dir}/objectlist.awk.in
|
|
fi
|
|
AC_SUBST(SIGNAL_OBJECTLIST)
|
|
|
|
if test -n "${syscall_dir}"; then
|
|
SYSCALL_OBJECTLIST=libc/${syscall_dir}/objectlist.awk.in
|
|
fi
|
|
AC_SUBST(SYSCALL_OBJECTLIST)
|
|
|
|
if test -n "${unix_dir}"; then
|
|
UNIX_OBJECTLIST=libc/${unix_dir}/objectlist.awk.in
|
|
fi
|
|
AC_SUBST(UNIX_OBJECTLIST)
|
|
|
|
if test -n "${stdio64_dir}"; then
|
|
STDIO64_OBJECTLIST=libc/${stdio64_dir}/objectlist.awk.in
|
|
fi
|
|
AC_SUBST(STDIO64_OBJECTLIST)
|
|
|
|
# Put a plausible default for CC_FOR_BUILD in Makefile.
|
|
if test -z "$CC_FOR_BUILD"; then
|
|
CC_FOR_BUILD=gcc
|
|
fi
|
|
AC_SUBST(CC_FOR_BUILD)
|
|
|
|
if test "${newlib_elix_level}" -gt "0"; then
|
|
AC_DEFINE_UNQUOTED(_ELIX_LEVEL,${newlib_elix_level})
|
|
fi
|
|
|
|
if test "${newlib_mb}" = "yes"; then
|
|
AC_DEFINE_UNQUOTED(_MB_LEN_MAX,8)
|
|
fi
|
|
|
|
AC_DEFINE_UNQUOTED(_NEWLIB_VERSION,"$VERSION")
|
|
|
|
if test "${multilib}" = "yes"; then
|
|
multilib_arg="--enable-multilib"
|
|
else
|
|
multilib_arg=
|
|
fi
|
|
|
|
|
|
AC_OUTPUT(Makefile,
|
|
[if test -n "$CONFIG_FILES"; then
|
|
unset ac_file
|
|
. ${newlib_basedir}/../config-ml.in
|
|
fi],
|
|
srcdir=${srcdir}
|
|
host=${host}
|
|
target=${target}
|
|
with_multisubdir=${with_multisubdir}
|
|
ac_configure_args="${multilib_arg} ${ac_configure_args}"
|
|
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
|
|
newlib_basedir=${newlib_basedir}
|
|
CC="${CC}"
|
|
LDFLAGS="${LDFLAGS}"
|
|
)
|