Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2006-04-11 23:02:16 +0400
committerJeff Johnston <jjohnstn@redhat.com>2006-04-11 23:02:16 +0400
commit34e666798a87d0dad90a78a807bbea97b09a5b2a (patch)
tree78f07a274320e1557a0d054871a7e2691523d317 /newlib/configure.in
parent84ac4d51125059b0326549effccbd0b409b04e29 (diff)
2006-04-11 Jeff Johnston <jjohnstn@redhat.com>
* acinclude.m4: Properly add square brackets for AC_DEFUN macros. Rewrite LIB_AC_PROG_CC to remove macros no longer available. Add LIB_AM_PROG_AS to remove prereq of AC_PROG_CC. Add LIB_AC_PROG_CC_GNU macro. Substitute lpfx (library object prefix). * configure.host: Set lpfx depending on whether libtool is used or not. * configure.in: Individually specify libc and libm to AC_CONFIG_SUBDIRS. Add square bracket quoting as necessary. * Makefile.am: Use $(lpfx) to get object names for math-library functions that should also be in libc. * libc/machine/configure.in: Use case statement to determine AC_CONFIG_SUBDIRS statement. * libc/sys/linux/linuxthreads/machine/configure.in: Ditto. * libc/sys/linux/machine/configure.in: Ditto. * libc/sys/configure.in: Ditto. * libm/machine/configure.in: Ditto. * libc/sys/linux/configure.in: Fix up AC_CONFIG_SUBDIRS. * libm/configure.in: Add AM_CONDITIONAL statement for HAVE_LIBM_MACHINE_DIR. * libc/machine/a29k/Makefile.am: Modified to work with latest automake. Change includes setting AM_CCASFLAGS so building .S files will properly pick up flags used to build C files. * libc/machine/arm/Makefile.am: Ditto. * libc/machine/crx/Makefile.am: Ditto. * libc/machine/d10v/Makefile.am: Ditto. * libc/machine/d30v/Makefile.am: Ditto. * libc/machine/fr30/Makefile.am: Ditto. * libc/machine/frv/Makefile.am: Ditto. * libc/machine/h8300/Makefile.am: Ditto. * libc/machine/h8500/Makefile.am: Ditto. * libc/machine/hppa/Makefile.am: Ditto. * libc/machine/i386/Makefile.am: Ditto. * libc/machine/iq2000/Makefile.am: Ditto. * libc/machine/m32c/Makefile.am: Ditto. * libc/machine/m32r/Makefile.am: Ditto. * libc/machine/m68hc11/Makefile.am: Ditto. * libc/machine/m68k/Makefile.am: Ditto. * libc/machine/m88k/Makefile.am: Ditto. * libc/machine/mips/Makefile.am: Ditto. * libc/machine/mn10200/Makefile.am: Ditto. * libc/machine/mn10300/Makefile.am: Ditto. * libc/machine/mt/Makefile.am: Ditto. * libc/machine/necv70/Makefile.am: Ditto. * libc/machine/powerpc/Makefile.am: Ditto. * libc/machine/sh/Makefile.am: Ditto. * libc/machine/sparc/Makefile.am: Ditto. * libc/machine/tic4x/Makefile.am: Ditto. * libc/machine/tic80/Makefile.am: Ditto. * libc/machine/v850/Makefile.am: Ditto. * libc/machine/w65/Makefile.am: Ditto. * libc/machine/xscale/Makefile.am: Ditto. * libc/machine/xstormy16/Makefile.am: Ditto. * libc/machine/z8k/Makefile.am: Ditto. * libc/sys/a29khif/Makefile.am: Ditto. * libc/sys/arc/Makefile.am: Ditto. * libc/sys/arm/Makefile.am: Ditto. * libc/sys/d10v/Makefile.am: Ditto. * libc/sys/decstation/Makefile.am: Ditto. * libc/sys/h8300hms/Makefile.am: Ditto. * libc/sys/h8500hms/Makefile.am: Ditto. * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto. * libc/sys/linux/machine/i386/Makefile.am: Ditto. * libc/sys/m88kbug/Makefile.am: Ditto. * libc/sys/mmixware/Makefile.am: Ditto. * libc/sys/netware/Makefile.am: Ditto. * libc/sys/rdos/Makefile.am: Ditto. * libc/sys/rtems/Makefile.am: Ditto. * libc/sys/sh/Makefile.am: Ditto. * libc/sys/sparc64/Makefile.am: Ditto. * libc/sys/sysmec/Makefile.am: Ditto. * libc/sys/sysnec810/Makefile.am: Ditto. * libc/sys/sysnecv850/Makefile.am: Ditto. * libc/sys/sysvi386/Makefile.am: Ditto. * libc/sys/sysvnecv70/Makefile.am: Ditto. * libc/sys/tic80/Makefile.am: Ditto. * libc/sys/w65/Makefile.am: Ditto. * libc/sys/z8ksim/Makefile.am: Ditto. * libm/machine/i386/Makefile.am: Ditto. * libc/sys/arm/Makefile.am: Ditto plus add EXTRA sources including trap.S so that automake will generate a .S.o suffix rule. * libc/argz/Makefile.am: Modified to work with latest automake. Change includes adding lib_a_CFLAGS so automake doesn't complain about libtool and non-libtool libraries sharing objects. * libc/ctype/Makefile.am: Ditto. * libc/errno/Makefile.am: Ditto. * libc/iconv/ccs/Makefile.am: Ditto. * libc/iconv/ces/Makefile.am: Ditto. * libc/iconv/lib/Makefile.am: Ditto. * libc/locale/Makefile.am: Ditto. * libc/misc/Makefile.am: Ditto. * libc/posix/Makefile.am: Ditto. * libc/reent/Makefile.am: Ditto. * libc/search/Makefile.am: Ditto. * libc/signal/Makefile.am: Ditto. * libc/stdio/Makefile.am: Ditto. * libc/stdio64/Makefile.am: Ditto. * libc/stdlib/Makefile.am: Ditto. * libc/string/Makefile.am: Ditto. * libc/sys/linux/Makefile.am: Ditto. * libc/sys/linux/argp/Makefile.am: Ditto. * libc/sys/linux/cmath/Makefile.am: Ditto. * libc/sys/linux/dl/Makefile.am: Ditto. * libc/sys/linux/iconv/Makefile.am: Ditto. * libc/sys/linux/intl/Makefile.am: Ditto. * libc/sys/linux/linuxthreads/Makefile.am: Ditto. * libc/sys/linux/net/Makefile.am: Ditto. * libc/sys/linux/stdlib/Makefile.am: Ditto. * libc/syscalls/Makefile.am: Ditto. * libc/time/Makefile.am: Ditto. * libc/unix/Makefile.am: Ditto. * libm/Makefile.am: Ditto. * libm/common/Makefile.am: Ditto. * libm/math/Makefile.am: Ditto. * libm/mathfp/Makefile.am: Ditto. * Regenerate all aclocal.m4, Makefile.in, and configure files.
Diffstat (limited to 'newlib/configure.in')
-rw-r--r--newlib/configure.in46
1 files changed, 22 insertions, 24 deletions
diff --git a/newlib/configure.in b/newlib/configure.in
index 3cd213c6f..e2e4e18a8 100644
--- a/newlib/configure.in
+++ b/newlib/configure.in
@@ -107,8 +107,6 @@ 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
@@ -118,8 +116,22 @@ AC_ARG_ENABLE(newlib_hw_fp,
esac],[newlib_hw_fp=false])
AM_CONDITIONAL(NEWLIB_HW_FP, test x$newlib_hw_fp = xtrue)
+# These get added in the top-level configure.in, except in the case where
+# newlib is being built natively.
+LIBC_INCLUDE_GREP=`echo ${CC} | grep \/libc\/include`
+abs_newlib_basedir=`cd ${newlib_basedir} && pwd`
+if test -z "${LIBC_INCLUDE_GREP}"; then
+ CC_FOR_NEWLIB="${CC} -I$PWD/targ-include -I${abs_newlib_basedir}/libc/include"
+else
+ CC_FOR_NEWLIB="${CC}"
+fi
+AC_SUBST(CC_FOR_NEWLIB)
+
+AC_CONFIG_SUBDIRS(libc)
+AC_CONFIG_SUBDIRS(libm)
+
if test -z "${with_multisubdir}"; then
- configdirs="${configdirs} doc"
+ AC_CONFIG_SUBDIRS(doc)
have_doc=yes
else
have_doc=
@@ -129,25 +141,12 @@ AM_CONDITIONAL(HAVE_DOC, test x$have_doc = xyes)
EXTRA_DIRS=
case $host in
i[[34567]]86-pc-linux-*)
- configdirs="${configdirs} iconvdata"
+ AC_CONFIG_SUBDIRS(iconvdata)
EXTRA_DIRS=iconvdata
;;
esac
AC_SUBST(EXTRA_DIRS)
-# These get added in the top-level configure.in, except in the case where
-# newlib is being built natively.
-LIBC_INCLUDE_GREP=`echo ${CC} | grep \/libc\/include`
-abs_newlib_basedir=`cd ${newlib_basedir} && pwd`
-if test -z "${LIBC_INCLUDE_GREP}"; then
- CC_FOR_NEWLIB="${CC} -I$PWD/targ-include -I${abs_newlib_basedir}/libc/include"
-else
- CC_FOR_NEWLIB="${CC}"
-fi
-AC_SUBST(CC_FOR_NEWLIB)
-
-AC_CONFIG_SUBDIRS(${configdirs})
-
CRT0=
CRT0_DIR=
if test "x${have_crt0}" = "xyes"; then
@@ -243,10 +242,6 @@ if test "${newlib_iconv_external_ccs}" = "yes"; then
AC_DEFINE_UNQUOTED(_ICONV_ENABLE_EXTERNAL_CCS)
fi
-if test "${newlib_atexit_dynamic_alloc}" = "yes"; then
-AC_DEFINE_UNQUOTED(_ATEXIT_DYNAMIC_ALLOC)
-fi
-
AC_DEFINE_UNQUOTED(_NEWLIB_VERSION,"$VERSION")
if test "${multilib}" = "yes"; then
@@ -266,16 +261,19 @@ if test "x${newlib_iconv_external_ccs}" = "xyes"; then
AC_DEFINE_UNQUOTED(_ICONV_ENABLE_EXTERNAL_CCS,1)
fi
+if test "${newlib_atexit_dynamic_alloc}" = "yes"; then
+AC_DEFINE_UNQUOTED(_ATEXIT_DYNAMIC_ALLOC)
+fi
+
dnl
dnl Parse --enable-newlib-iconv-encodings option argument
dnl
+
if test "x${iconv_encodings}" != "x" \
|| test "x${iconv_to_encodings}" != "x" \
|| test "x${iconv_from_encodings}" != "x"; then
-
- dnl Check that --enable-newlib-iconv was enabled
if test "x${newlib_iconv}" = "x"; then
- AC_MSG_ERROR(--enable-newlib-iconv-encodings, --enable-newlib-iconv-from-encodings and --enable-newlib-iconv-to-encodings option can't be used if iconv library is disabled, use --enable-newlib-iconv to enable it.)
+ AC_MSG_ERROR([--enable-newlib-iconv-encodings, --enable-newlib-iconv-from-encodings and --enable-newlib-iconv-to-encodings option can't be used if iconv library is disabled, use --enable-newlib-iconv to enable it.])
fi
dnl Normalize encodings names and delete commas