re PR libstdc++/3066 (configure.in generates bad arguments for cross compiling libraries)
2003-05-22 Benjamin Kosnik <bkoz@redhat.com> PR libstdc++/3066. * configure.in: Switch target to host, don't assume newlib. (target_alias): Remove. * configure: Regenerate. * acinclude.m4: Same. * aclocal.m4: Regenerate. * configure.target: Same. Rename to... * configure.host: This. From-SVN: r67110
This commit is contained in:
parent
14a9c399be
commit
b731048b47
@ -1,3 +1,14 @@
|
||||
2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
PR libstdc++/3066.
|
||||
* configure.in: Switch target to host, don't assume newlib.
|
||||
(target_alias): Remove.
|
||||
* configure: Regenerate.
|
||||
* acinclude.m4: Same.
|
||||
* aclocal.m4: Regenerate.
|
||||
* configure.target: Same. Rename to...
|
||||
* configure.host: This.
|
||||
|
||||
2003-05-22 Paolo Carlini <pcarlini@unitus.it>
|
||||
|
||||
* include/std/std_fstream.h (_S_pback_size): Remove definition.
|
||||
|
@ -70,6 +70,9 @@ AC_DEFUN(GLIBCPP_CONFIGURE, [
|
||||
AC_ARG_WITH(cross-host,
|
||||
[ --with-cross-host=HOST configuring with a cross compiler])
|
||||
|
||||
AC_ARG_WITH(newlib,
|
||||
[ --with-newlib Configuring with newlib])
|
||||
|
||||
glibcpp_basedir=$srcdir/$toprel/$1/libstdc++-v3
|
||||
AC_SUBST(glibcpp_basedir)
|
||||
|
||||
@ -201,7 +204,7 @@ AC_DEFUN(GLIBCPP_CONFIGURE, [
|
||||
|
||||
# Find platform-specific directories containing configuration info. In
|
||||
# addition to possibly modifying the same flags, it also sets up symlinks.
|
||||
GLIBCPP_CHECK_TARGET
|
||||
GLIBCPP_CHECK_HOST
|
||||
])
|
||||
|
||||
|
||||
@ -874,9 +877,9 @@ dnl Check to see what architecture and operating system we are compiling
|
||||
dnl for. Also, if architecture- or OS-specific flags are required for
|
||||
dnl compilation, pick them up here.
|
||||
dnl
|
||||
dnl GLIBCPP_CHECK_TARGET
|
||||
AC_DEFUN(GLIBCPP_CHECK_TARGET, [
|
||||
. [$]{glibcpp_basedir}/configure.target
|
||||
dnl GLIBCPP_CHECK_HOST
|
||||
AC_DEFUN(GLIBCPP_CHECK_HOST, [
|
||||
. [$]{glibcpp_basedir}/configure.host
|
||||
AC_MSG_RESULT(CPU config directory is $cpu_include_dir)
|
||||
AC_MSG_RESULT(OS config directory is $os_include_dir)
|
||||
])
|
||||
|
11
libstdc++-v3/aclocal.m4
vendored
11
libstdc++-v3/aclocal.m4
vendored
@ -82,6 +82,9 @@ AC_DEFUN(GLIBCPP_CONFIGURE, [
|
||||
AC_ARG_WITH(cross-host,
|
||||
[ --with-cross-host=HOST configuring with a cross compiler])
|
||||
|
||||
AC_ARG_WITH(newlib,
|
||||
[ --with-newlib Configuring with newlib])
|
||||
|
||||
glibcpp_basedir=$srcdir/$toprel/$1/libstdc++-v3
|
||||
AC_SUBST(glibcpp_basedir)
|
||||
|
||||
@ -213,7 +216,7 @@ AC_DEFUN(GLIBCPP_CONFIGURE, [
|
||||
|
||||
# Find platform-specific directories containing configuration info. In
|
||||
# addition to possibly modifying the same flags, it also sets up symlinks.
|
||||
GLIBCPP_CHECK_TARGET
|
||||
GLIBCPP_CHECK_HOST
|
||||
])
|
||||
|
||||
|
||||
@ -886,9 +889,9 @@ dnl Check to see what architecture and operating system we are compiling
|
||||
dnl for. Also, if architecture- or OS-specific flags are required for
|
||||
dnl compilation, pick them up here.
|
||||
dnl
|
||||
dnl GLIBCPP_CHECK_TARGET
|
||||
AC_DEFUN(GLIBCPP_CHECK_TARGET, [
|
||||
. [$]{glibcpp_basedir}/configure.target
|
||||
dnl GLIBCPP_CHECK_HOST
|
||||
AC_DEFUN(GLIBCPP_CHECK_HOST, [
|
||||
. [$]{glibcpp_basedir}/configure.host
|
||||
AC_MSG_RESULT(CPU config directory is $cpu_include_dir)
|
||||
AC_MSG_RESULT(OS config directory is $os_include_dir)
|
||||
])
|
||||
|
10068
libstdc++-v3/configure
vendored
10068
libstdc++-v3/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,7 @@
|
||||
# configure.target
|
||||
# configure.host
|
||||
#
|
||||
# This shell script handles all target based configuration for libstdc++.
|
||||
# It sets various shell variables based on the the target and the
|
||||
# This shell script handles all host based configuration for libstdc++.
|
||||
# It sets various shell variables based on the the host and the
|
||||
# configuration options. You can modify this shell script without needing
|
||||
# to rerun autoconf/aclocal/etc. This file is "sourced" not executed.
|
||||
#
|
||||
@ -9,15 +9,15 @@
|
||||
#
|
||||
#
|
||||
# It uses the following shell variables as set by config.guess:
|
||||
# target The configuration target (full CPU-vendor-OS triplet)
|
||||
# target_cpu The configuration target CPU
|
||||
# target_os The configuration target OS
|
||||
# host The configuration host (full CPU-vendor-OS triplet)
|
||||
# host_cpu The configuration host CPU
|
||||
# host_os The configuration host OS
|
||||
#
|
||||
#
|
||||
# It sets the following shell variables:
|
||||
#
|
||||
# cpu_include_dir CPU-specific directory, defaults to cpu/generic
|
||||
# if cpu/target_cpu doesn't exist. This is
|
||||
# if cpu/host_cpu doesn't exist. This is
|
||||
# used to set ATOMICITYH.
|
||||
#
|
||||
# os_include_dir OS-specific directory, defaults to os/generic.
|
||||
@ -28,7 +28,7 @@
|
||||
# defaults to no.
|
||||
#
|
||||
# abi_baseline_triplet directory name for ABI compat testing,
|
||||
# defaults to target (as per config.guess)
|
||||
# defaults to host (as per config.guess)
|
||||
#
|
||||
# ATOMICITYH location of atomicity.h,
|
||||
# defaults to cpu_include_dir
|
||||
@ -42,7 +42,7 @@
|
||||
#
|
||||
# If the defaults will not work for your platform, you need only change the
|
||||
# variables that won't work, i.e., you do not need to explicitly set a
|
||||
# working variable to its default. Most targets only need to change the two
|
||||
# working variable to its default. Most hosts only need to change the two
|
||||
# *_include_dir variables.
|
||||
|
||||
|
||||
@ -50,22 +50,22 @@
|
||||
# Try to guess a default cpu_include_dir based on the name of the CPU. We
|
||||
# cannot do this for os_include_dir; there are too many portable operating
|
||||
# systems out there. :-)
|
||||
abi_baseline_triplet=${target}
|
||||
abi_baseline_triplet=${host}
|
||||
c_model=c_std
|
||||
c_compatibility=no
|
||||
if test -d ${glibcpp_srcdir}/config/cpu/${target_cpu}; then
|
||||
cpu_include_dir="cpu/${target_cpu}"
|
||||
if test -d ${glibcpp_srcdir}/config/cpu/${host_cpu}; then
|
||||
cpu_include_dir="cpu/${host_cpu}"
|
||||
else
|
||||
cpu_include_dir="cpu/generic"
|
||||
fi
|
||||
|
||||
|
||||
# TARGET-SPECIFIC OVERRIDES
|
||||
# HOST-SPECIFIC OVERRIDES
|
||||
# Set any CPU-dependent bits.
|
||||
# Here we override defaults and catch more general cases due to naming
|
||||
# conventions (e.g., chip_name* to catch all variants).
|
||||
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
|
||||
case "${target_cpu}" in
|
||||
case "${host_cpu}" in
|
||||
alpha*)
|
||||
cpu_include_dir="cpu/alpha"
|
||||
;;
|
||||
@ -114,7 +114,7 @@ unset _cpu_incdir_fullpath
|
||||
# If atomic ops and/or numeric limits are OS-specific rather than
|
||||
# CPU-specifc, set those here too.
|
||||
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
|
||||
case "${target_os}" in
|
||||
case "${host_os}" in
|
||||
aix4.[3456789]* | aix[56789]*)
|
||||
# We set os_include_dir to os/aix only on AIX 4.3 and newer, but
|
||||
# os/aix/atomicity.h works on earlier versions of AIX 4.*, so we
|
||||
@ -142,7 +142,7 @@ case "${target_os}" in
|
||||
freebsd*)
|
||||
os_include_dir="os/bsd/freebsd"
|
||||
# The FreeBSD ABI is expressed in the major version number only.
|
||||
abi_baseline_triplet=`echo ${target} | sed 's,\(\.[0-9]*\)*$,,'`
|
||||
abi_baseline_triplet=`echo ${host} | sed 's,\(\.[0-9]*\)*$,,'`
|
||||
;;
|
||||
gnu* | linux*)
|
||||
os_include_dir="os/gnu-linux"
|
||||
@ -189,7 +189,7 @@ esac
|
||||
|
||||
# Set any OS-dependent and CPU-dependent bits.
|
||||
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
|
||||
case "${target}" in
|
||||
case "${host}" in
|
||||
mips*-*-linux*)
|
||||
ATOMICITYH="cpu/mips"
|
||||
;;
|
@ -30,14 +30,10 @@ GLIBCPP_TOPREL_CONFIGURE
|
||||
# Also, if v3 is being configured as part of a cross compiler, the top-level
|
||||
# configure script will pass the "real" host as $with_cross_host.
|
||||
#
|
||||
# AC 2.5x sets target_alias iff the user specified --target, but we use it
|
||||
# everywhere, so we set it here just to be sure. In AC 2.13
|
||||
# AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
|
||||
# In AC 2.13 AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
|
||||
AC_CANONICAL_SYSTEM
|
||||
target_alias=${target_alias-$target}
|
||||
AC_SUBST(target_alias)
|
||||
|
||||
# Runs configure.target, finds CC, CXX and assorted other critical bits.
|
||||
# Runs configure.host, finds CC, CXX and assorted other critical bits.
|
||||
# Must run this before the GLIBCPP_ENABLE_* macros below.
|
||||
GLIBCPP_CONFIGURE(.)
|
||||
|
||||
@ -82,7 +78,7 @@ if test $ATOMICITYH = cpu/generic ; then
|
||||
fi
|
||||
|
||||
|
||||
if test -n "$with_cross_host" || test x"$build" != x"$host"; then
|
||||
if test x"$build" != x"$host"; then
|
||||
|
||||
# We are being configured with some form of cross compiler.
|
||||
GLIBCPP_IS_CROSS_COMPILING=1
|
||||
@ -103,7 +99,8 @@ if test -n "$with_cross_host" || test x"$build" != x"$host"; then
|
||||
|
||||
# If Canadian cross, then don't pick up tools from the build directory.
|
||||
# Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
|
||||
if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
|
||||
if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host" \
|
||||
&& test x"$build" != x"$target"; then
|
||||
CANADIAN=yes
|
||||
else
|
||||
CANADIAN=no
|
||||
@ -114,7 +111,7 @@ if test -n "$with_cross_host" || test x"$build" != x"$host"; then
|
||||
# GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
|
||||
# GLIBCPP_CHECK_MATH_SUPPORT
|
||||
|
||||
case "$target" in
|
||||
case "${host}" in
|
||||
*-freebsd*)
|
||||
os_include_dir="os/bsd/freebsd"
|
||||
AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h \
|
||||
@ -329,40 +326,44 @@ if test -n "$with_cross_host" || test x"$build" != x"$host"; then
|
||||
AC_DEFINE(HAVE_TANHF)
|
||||
;;
|
||||
*)
|
||||
os_include_dir="os/newlib"
|
||||
AC_DEFINE(HAVE_HYPOT)
|
||||
if test "x${with_newlib}" = "xyes"; then
|
||||
os_include_dir="os/newlib"
|
||||
AC_DEFINE(HAVE_HYPOT)
|
||||
|
||||
# GLIBCPP_CHECK_STDLIB_SUPPORT
|
||||
AC_DEFINE(HAVE_STRTOF)
|
||||
AC_DEFINE(HAVE_STRTOLD)
|
||||
# AC_FUNC_MMAP
|
||||
AC_DEFINE(HAVE_MMAP)
|
||||
# GLIBCPP_CHECK_STDLIB_SUPPORT
|
||||
AC_DEFINE(HAVE_STRTOF)
|
||||
AC_DEFINE(HAVE_STRTOLD)
|
||||
# AC_FUNC_MMAP
|
||||
AC_DEFINE(HAVE_MMAP)
|
||||
|
||||
AC_DEFINE(HAVE_ACOSF)
|
||||
AC_DEFINE(HAVE_ASINF)
|
||||
AC_DEFINE(HAVE_ATAN2F)
|
||||
AC_DEFINE(HAVE_ATANF)
|
||||
AC_DEFINE(HAVE_CEILF)
|
||||
AC_DEFINE(HAVE_COPYSIGN)
|
||||
AC_DEFINE(HAVE_COPYSIGNF)
|
||||
AC_DEFINE(HAVE_COSF)
|
||||
AC_DEFINE(HAVE_COSHF)
|
||||
AC_DEFINE(HAVE_EXPF)
|
||||
AC_DEFINE(HAVE_FABSF)
|
||||
AC_DEFINE(HAVE_FLOORF)
|
||||
AC_DEFINE(HAVE_FMODF)
|
||||
AC_DEFINE(HAVE_FREXPF)
|
||||
AC_DEFINE(HAVE_LDEXPF)
|
||||
AC_DEFINE(HAVE_LOG10F)
|
||||
AC_DEFINE(HAVE_LOGF)
|
||||
AC_DEFINE(HAVE_MODFF)
|
||||
AC_DEFINE(HAVE_POWF)
|
||||
AC_DEFINE(HAVE_SINF)
|
||||
AC_DEFINE(HAVE_SINHF)
|
||||
AC_DEFINE(HAVE_SQRTF)
|
||||
AC_DEFINE(HAVE_TANF)
|
||||
AC_DEFINE(HAVE_TANHF)
|
||||
;;
|
||||
AC_DEFINE(HAVE_ACOSF)
|
||||
AC_DEFINE(HAVE_ASINF)
|
||||
AC_DEFINE(HAVE_ATAN2F)
|
||||
AC_DEFINE(HAVE_ATANF)
|
||||
AC_DEFINE(HAVE_CEILF)
|
||||
AC_DEFINE(HAVE_COPYSIGN)
|
||||
AC_DEFINE(HAVE_COPYSIGNF)
|
||||
AC_DEFINE(HAVE_COSF)
|
||||
AC_DEFINE(HAVE_COSHF)
|
||||
AC_DEFINE(HAVE_EXPF)
|
||||
AC_DEFINE(HAVE_FABSF)
|
||||
AC_DEFINE(HAVE_FLOORF)
|
||||
AC_DEFINE(HAVE_FMODF)
|
||||
AC_DEFINE(HAVE_FREXPF)
|
||||
AC_DEFINE(HAVE_LDEXPF)
|
||||
AC_DEFINE(HAVE_LOG10F)
|
||||
AC_DEFINE(HAVE_LOGF)
|
||||
AC_DEFINE(HAVE_MODFF)
|
||||
AC_DEFINE(HAVE_POWF)
|
||||
AC_DEFINE(HAVE_SINF)
|
||||
AC_DEFINE(HAVE_SINHF)
|
||||
AC_DEFINE(HAVE_SQRTF)
|
||||
AC_DEFINE(HAVE_TANF)
|
||||
AC_DEFINE(HAVE_TANHF)
|
||||
else
|
||||
AC_MSG_ERROR([No support for this host/target combination.])
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
# At some point, we should differentiate between architectures
|
||||
|
Loading…
Reference in New Issue
Block a user