2003-05-23 04:31:07 +02:00
|
|
|
# configure.host
|
2002-06-18 21:07:12 +02:00
|
|
|
#
|
2003-05-23 04:31:07 +02:00
|
|
|
# This shell script handles all host based configuration for libstdc++.
|
|
|
|
# It sets various shell variables based on the the host and the
|
2002-06-18 21:07:12 +02:00
|
|
|
# configuration options. You can modify this shell script without needing
|
|
|
|
# to rerun autoconf/aclocal/etc. This file is "sourced" not executed.
|
|
|
|
#
|
|
|
|
# You should read docs/html/17_intro/porting.* to make sense of this file.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# It uses the following shell variables as set by config.guess:
|
2003-05-23 04:31:07 +02:00
|
|
|
# host The configuration host (full CPU-vendor-OS triplet)
|
|
|
|
# host_cpu The configuration host CPU
|
|
|
|
# host_os The configuration host OS
|
2002-06-18 21:07:12 +02:00
|
|
|
#
|
|
|
|
#
|
|
|
|
# It sets the following shell variables:
|
|
|
|
#
|
|
|
|
# cpu_include_dir CPU-specific directory, defaults to cpu/generic
|
2004-07-11 09:46:21 +02:00
|
|
|
# if cpu/host_cpu doesn't exist. This is not used
|
|
|
|
# directly, but sets the default for others.
|
2002-06-18 21:07:12 +02:00
|
|
|
#
|
|
|
|
# os_include_dir OS-specific directory, defaults to os/generic.
|
|
|
|
#
|
2007-03-22 17:43:41 +01:00
|
|
|
# c_model the "C" header model, defaults to c_global.
|
2002-06-20 21:08:42 +02:00
|
|
|
#
|
2002-07-08 21:41:57 +02:00
|
|
|
# c_compatibility if "C" compatibility headers are necessary,
|
2003-06-14 07:38:04 +02:00
|
|
|
# defaults to no.
|
2002-06-18 21:07:12 +02:00
|
|
|
#
|
2003-06-14 07:38:04 +02:00
|
|
|
# abi_baseline_pair directory name for ABI compat testing,
|
|
|
|
# defaults to host_cpu-host_os (as per config.guess)
|
2002-08-23 21:33:41 +02:00
|
|
|
#
|
2011-07-08 10:49:57 +02:00
|
|
|
# abi_baseline_subdir_switch
|
|
|
|
# g++ switch to determine ABI baseline subdir for
|
|
|
|
# multilibbed targets,
|
|
|
|
# defaults to --print-multi-directory
|
|
|
|
#
|
2004-07-11 09:46:21 +02:00
|
|
|
# abi_tweaks_dir location of cxxabi_tweaks.h,
|
|
|
|
# defaults to cpu_include_dir
|
|
|
|
#
|
2004-02-27 01:49:50 +01:00
|
|
|
# atomicity_dir location of atomicity.h,
|
2003-06-14 07:38:04 +02:00
|
|
|
# defaults to cpu_include_dir
|
2002-09-26 07:25:14 +02:00
|
|
|
#
|
2004-02-27 01:49:50 +01:00
|
|
|
# atomic_word_dir location of atomic_word.h
|
|
|
|
# defaults to generic.
|
|
|
|
#
|
2007-09-12 00:32:51 +02:00
|
|
|
# atomic_flags extra flags to pass to use atomic instructions
|
|
|
|
# defaults to nothing.
|
|
|
|
#
|
2005-11-05 10:42:01 +01:00
|
|
|
# cpu_defines_dir location of cpu_defines.h
|
|
|
|
# defaults to generic.
|
|
|
|
#
|
2012-09-26 15:10:26 +02:00
|
|
|
# cpu_opt_bits_random path name of random.h containing CPU-specific
|
2012-09-17 15:02:39 +02:00
|
|
|
# optimizations
|
2007-09-07 06:18:40 +02:00
|
|
|
#
|
2012-09-26 15:10:26 +02:00
|
|
|
# cpu_opt_ext_random path name of random.h containing CPU-specific
|
|
|
|
# optimizations for extensions
|
|
|
|
#
|
2007-09-07 06:18:40 +02:00
|
|
|
# error_constants_dir location of error_constants.h
|
|
|
|
# defaults to os/generic.
|
|
|
|
#
|
2002-06-18 21:07:12 +02:00
|
|
|
# It possibly modifies the following variables:
|
|
|
|
#
|
|
|
|
# OPT_LDFLAGS extra flags to pass when linking the library, of
|
2003-06-14 07:38:04 +02:00
|
|
|
# the form '-Wl,blah'
|
|
|
|
# (defaults to empty in acinclude.m4)
|
2002-06-18 21:07:12 +02:00
|
|
|
#
|
2003-07-11 06:04:49 +02:00
|
|
|
# port_specific_symbol_files
|
2013-07-04 23:07:44 +02:00
|
|
|
# whitespace-separated list of files containing
|
2003-08-05 04:00:18 +02:00
|
|
|
# additional symbols to export from the shared
|
|
|
|
# library, when symbol versioning is in use
|
2003-07-06 06:07:36 +02:00
|
|
|
#
|
2002-06-18 21:07:12 +02:00
|
|
|
#
|
|
|
|
# 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
|
2003-05-23 04:31:07 +02:00
|
|
|
# working variable to its default. Most hosts only need to change the two
|
2002-06-18 21:07:12 +02:00
|
|
|
# *_include_dir variables.
|
2000-11-14 00:49:41 +01:00
|
|
|
|
|
|
|
|
2002-06-20 21:08:42 +02:00
|
|
|
# DEFAULTS
|
2002-06-18 21:07:12 +02:00
|
|
|
# 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. :-)
|
2007-03-04 23:59:49 +01:00
|
|
|
c_model=c_global
|
2002-11-02 02:42:22 +01:00
|
|
|
c_compatibility=no
|
2004-02-27 01:49:50 +01:00
|
|
|
atomic_word_dir=cpu/generic
|
2007-09-12 00:32:51 +02:00
|
|
|
atomic_flags=""
|
2006-07-15 00:41:43 +02:00
|
|
|
atomicity_dir="cpu/generic"
|
|
|
|
cpu_defines_dir="cpu/generic"
|
|
|
|
try_cpu=generic
|
2011-07-08 10:49:57 +02:00
|
|
|
abi_baseline_subdir_switch=--print-multi-directory
|
2006-07-15 00:41:43 +02:00
|
|
|
abi_tweaks_dir="cpu/generic"
|
2007-09-07 06:18:40 +02:00
|
|
|
error_constants_dir="os/generic"
|
2002-06-18 21:07:12 +02:00
|
|
|
|
2003-05-23 04:31:07 +02:00
|
|
|
# HOST-SPECIFIC OVERRIDES
|
2002-06-20 21:08:42 +02:00
|
|
|
# Set any CPU-dependent bits.
|
2003-06-14 07:38:04 +02:00
|
|
|
|
2006-07-15 00:41:43 +02:00
|
|
|
# Provide a way to funnel exotic flavors and prefixed/postfixed chip
|
|
|
|
# variants into the established source config/cpu/* sub-directories.
|
2000-11-14 00:49:41 +01:00
|
|
|
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
|
2003-05-23 04:31:07 +02:00
|
|
|
case "${host_cpu}" in
|
2000-11-14 00:49:41 +01:00
|
|
|
alpha*)
|
2003-06-14 07:38:04 +02:00
|
|
|
try_cpu=alpha
|
2000-11-14 00:49:41 +01:00
|
|
|
;;
|
MAINTAINERS (mt port): Remove.
* MAINTAINERS (mt port): Remove.
(sco5, unixware, sco udk): Remove.
(Kean Johnston): Add to Write After Approval.
fixincludes:
* inclhack.def (AAB_svr4_replace_byteorder,
AAB_ultrix_ansi_compat, AAB_ultrix_limits, AAB_ultrix_memory,
libc1_G_va_list, libc1_ifdefd_memx, nested_motorola,
ptx_sys_mc_param_h, sco_regset, sco_static_func, sco_utime,
solaris_mutex_init_1, solaris_socket, solaris_unistd,
solaris_widec, svr4_krnl, ultrix_atexit_param, ultrix_atof_param,
ultrix_const3, ultrix_fix_fixproto, ultrix_ifdef, ultrix_locale,
ultrix_math_ifdef, ultrix_nested_ioctl, ultrix_nested_svc,
ultrix_stat, ultrix_static, ultrix_stdlib, ultrix_strings,
ultrix_strings2, ultrix_sys_time, ultrix_unistd,
unicosmk_restrict, uw7_byteorder_fix, windiss_math1,
windiss_math2, windiss_valist): Remove.
* fixincl.x: Regenerate.
* mkfixinc.sh: (arm-semi-aof, hppa1.1-*-osf*, hppa1.1-*-bsd*,
i370-*-openedition, i?86-*-moss*, i?86-*-uwin*,
powerpc-*-eabiaix*): Remove.
* tests/base/math.h: Update.
* tests/base/pthread.h: Update.
* tests/base/stdio.h: Update.
* tests/base/stdlib.h: Update.
* tests/base/string.h: Update.
* tests/base/strings.h: Update.
* tests/base/sys/file.h: Update.
* tests/base/sys/limits.h: Update.
* tests/base/sys/socket.h: Update.
* tests/base/sys/stat.h: Update.
* tests/base/sys/time.h: Update.
* tests/base/testing.h: Update.
* tests/base/unistd.h: Update.
* tests/base/_G_config.h: Remove.
* tests/base/arpa: Remove directory.
* tests/base/fs: Remove directory.
* tests/base/locale.h: Remove.
* tests/base/machine: Remove directory.
* tests/base/rpc/svc.h: Remove.
* tests/base/sys/ioctl.h: Remove.
* tests/base/sys/regset.h: Remove.
* tests/base/sys/times.h: Remove.
* tests/base/sys/utsname.h: Remove.
* tests/base/widec.h: Remove.
gcc:
* config.gcc (Obsolete configurations): Remove list of
configurations.
(Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
*-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
targets matched by those patterns.
(strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
Make code for Solaris 7 and greater unconditional for Solaris.
(ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
Remove --with-* handling.
* config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
(LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
LINK_OS_WINDISS_SPEC): Remove.
* config/rs6000/sysv4.opt (mwindiss): Remove.
* configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
* configure: Regenerate.
* doc/cpp.texi: Don't mention BeOS.
* doc/extend.texi (interrupt): Don't mention MS1.
* doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
Remove.
* doc/invoke.texi (MT Options): Remove.
(-mwindiss): Remove.
(CRIS Options): Remove cris-axis-aout references.
(HPPA Options): Don't mention hppa1.1-*-pro.
* doc/md.texi: (MorphoTech family): Remove.
* libgcc2.c: Don't handle UWIN.
* config/alpha/t-unicosmk: Remove.
* config/alpha/unicosmk.h: Remove.
* config/arm/kaos-arm.h: Remove.
* config/arm/kaos-strongarm.h: Remove.
* config/arm/strongarm-coff.h: Remove.
* config/arm/strongarm-elf.h: Remove.
* config/arm/strongarm-pe.h: Remove.
* config/arm/t-strongarm-pe: Remove.
* config/arm/t-xscale-coff: Remove.
* config/arm/t-xscale-elf: Remove.
* config/arm/xscale-coff.h: Remove.
* config/arm/xscale-elf.h: Remove.
* config/chorus.h: Remove.
* config/cris/aout.h: Remove.
* config/cris/aout.opt: Remove.
* config/cris/t-aout: Remove.
* config/i386/beos-elf.h: Remove.
* config/i386/kaos-i386.h: Remove.
* config/i386/ptx4-i.h: Remove.
* config/i386/sco5.h: Remove.
* config/i386/sco5.opt: Remove.
* config/i386/sysv4-cpp.h: Remove.
* config/i386/sysv5.h: Remove.
* config/i386/t-beos: Remove.
* config/i386/t-sco5: Remove.
* config/i386/t-uwin: Remove.
* config/i386/uwin.asm: Remove.
* config/i386/uwin.h: Remove.
* config/kaos.h: Remove.
* config/mips/windiss.h: Remove.
* config/mt: Remove directory.
* config/pa/pa-osf.h: Remove.
* config/pa/pa-pro-end.h: Remove.
* config/pa/t-pro: Remove.
* config/ptx4.h: Remove.
* config/rs6000/beos.h: Remove.
* config/rs6000/kaos-ppc.h: Remove.
* config/rs6000/t-beos: Remove.
* config/rs6000/windiss.h: Remove.
* config/sh/kaos-sh.h: Remove.
* config/sol2-6.h: Remove.
* config/sparc/sol26-sld.h: Remove.
* config/sparc/sysv4-only.h: Remove.
* config/vax/bsd.h: Remove.
* config/vax/t-memfuncs: Remove.
* config/vax/ultrix.h: Remove.
* config/vax/vaxv.h: Remove.
* config/windiss.h: Remove.
gcc/testsuite:
* g++.dg/abi/arm_cxa_vec1.C: Don't handle xscale*-*-*.
* g++.dg/eh/spbp.C: Don't handle *-*-solaris2.[56]*.
* g++.dg/warn/miss-format-1.C: Don't handle Solaris before Solaris
7.
* gcc.c-torture/compile/981006-1.c: Don't handle xscale*-*-*,
strongarm*-*-* and cris-*-aout*.
* gcc.c-torture/execute/941014-1.x: Don't handle xscale*-*-* and
strongarm*-*-*.
* gcc.dg/20030909-1.c: Don't handle xscale*-*-* and
strongarm*-*-*.
* gcc.dg/20031108-1.c: Don't handle xscale*-*-* and
strongarm*-*-*.
* gcc.dg/20040813-1.c: Don't handle *-*-sysv5*.
* gcc.dg/arm-asm.c: Don't handle strongarm*-*-* and xscale*-*-*.
* gcc.dg/arm-scd42-1.c: Use target arm*-*-*.
* gcc.dg/arm-scd42-3.c: Use target arm*-*-*.
* gcc.dg/cpp/assert4.c: Don't handle BeOS.
* gcc.dg/debug/pr35154.c: Don't handle *-*-sysv5*.
* gcc.dg/intmax_t-1.c: Don't handle *-*-solaris2.5.1 and
xscale*-*-elf*.
* gcc.dg/pragma-align.c: Don't handle i?86-*-sco3.2v5*.
* gcc.dg/pthread-init-2.c: Don't handle *-*-solaris2.5.1.
* gcc.misc-tests/arm-isr.exp: Use target arm*-*-*.
* gcc.target/powerpc/ppc-sdata-1.c: Don't handle powerpc-*-sysv*.
* gcc.target/powerpc/ppc-sdata-2.c: Don't handle powerpc-*-sysv*.
* gcc.target/powerpc/ppc-stackalign-1.c: Don't handle
powerpc-*-sysv*.
* gfortran.dg/debug/pr35154-stabs.f: Don't handle *-*-sysv5*.
* lib/target-supports.exp: Don't handle strongarm*-*-elf,
xscale*-*-elf and *-*-windiss.
* obj-c++.dg/dwarf-2.mm: Don't handle *-*-solaris2.[56]*.
* objc.dg/dwarf-1.m: Don't handle *-*-solaris2.[56]*.
* objc.dg/dwarf-2.m: Don't handle *-*-solaris2.[56]*.
* gcc.dg/mt-loopi1.c: Remove.
gnattools:
* configure.ac (xscale*-wrs-vx*, xscale*-wrs-coff): Remove.
* configure: Regenerate.
libcpp:
* configure.ac (parisc*64*-*-*): Remove.
* configure: Regenerate.
libffi:
* configure.ac (parisc*-*-linux*, powerpc-*-sysv*,
powerpc-*-beos*): Remove.
* configure: Regenerate.
libgcc:
* config.host (strongarm*-*-*, ep9312*-*-*, xscale-*-*,
parisc*-*-*, m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
vax-*-ultrix*, xscale-*-elf, xscale-*-coff): Remove.
libjava:
* configure.host (strongarm*-elf, xscale*-elf): Remove.
libstdc++-v3:
* configure.host (xscale, ep9312, m680[246]0, solaris2.5,
solaris2.5.[0-9], solaris2.6, windiss*): Remove.
* crossconfig.m4 (*-solaris2.5, *-solaris2.6, *-windiss*): Remove.
* configure: Regenerate.
* config/os/solaris/solaris2.5: Remove directory.
* config/os/solaris/solaris2.6: Remove directory.
* config/os/windiss: Remove directory.
From-SVN: r136534
2008-06-07 20:00:15 +02:00
|
|
|
arm*)
|
2004-07-11 09:46:21 +02:00
|
|
|
try_cpu=arm
|
|
|
|
;;
|
2007-12-15 22:33:45 +01:00
|
|
|
crisv32)
|
|
|
|
try_cpu=cris
|
|
|
|
;;
|
2003-07-06 06:07:36 +02:00
|
|
|
i[567]86 | x86_64)
|
2003-06-14 07:38:04 +02:00
|
|
|
try_cpu=i486
|
2000-11-14 00:49:41 +01:00
|
|
|
;;
|
2002-11-05 22:24:37 +01:00
|
|
|
hppa*)
|
2003-06-14 07:38:04 +02:00
|
|
|
try_cpu=hppa
|
2002-11-05 22:24:37 +01:00
|
|
|
;;
|
2009-06-24 06:16:25 +02:00
|
|
|
mep*)
|
|
|
|
EXTRA_CXX_FLAGS=-mm
|
|
|
|
try_cpu=generic
|
|
|
|
;;
|
2003-05-06 09:01:25 +02:00
|
|
|
mips*)
|
2006-07-15 00:41:43 +02:00
|
|
|
try_cpu=mips
|
2003-05-06 09:01:25 +02:00
|
|
|
;;
|
2002-07-30 01:26:00 +02:00
|
|
|
powerpc* | rs6000)
|
2003-06-14 07:38:04 +02:00
|
|
|
try_cpu=powerpc
|
2000-11-14 00:49:41 +01:00
|
|
|
;;
|
2002-09-06 20:30:36 +02:00
|
|
|
sparc* | ultrasparc)
|
2003-06-14 07:38:04 +02:00
|
|
|
try_cpu=sparc
|
|
|
|
;;
|
|
|
|
*)
|
2004-07-03 01:40:19 +02:00
|
|
|
if test -d ${glibcxx_srcdir}/config/cpu/${host_cpu}; then
|
2003-06-20 10:10:54 +02:00
|
|
|
try_cpu=${host_cpu}
|
|
|
|
fi
|
2000-11-14 00:49:41 +01:00
|
|
|
esac
|
|
|
|
|
2006-07-15 00:41:43 +02:00
|
|
|
|
|
|
|
# Now look for the file(s) usually tied to a CPU model, and make
|
|
|
|
# default choices for those if they haven't been explicitly set
|
|
|
|
# already.
|
|
|
|
cpu_include_dir=cpu/${try_cpu}
|
|
|
|
|
2004-02-27 01:49:50 +01:00
|
|
|
|
2005-11-05 10:42:01 +01:00
|
|
|
# Set specific CPU overrides for cpu_defines_dir. Most can just use generic.
|
|
|
|
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
|
|
|
|
case "${host_cpu}" in
|
2005-11-05 11:00:55 +01:00
|
|
|
powerpc* | rs6000)
|
2005-11-05 10:42:01 +01:00
|
|
|
cpu_defines_dir=cpu/powerpc
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2002-06-18 21:07:12 +02:00
|
|
|
|
2007-09-12 00:32:51 +02:00
|
|
|
# Set specific CPU overrides for atomic_word_dir and atomic_flags.
|
|
|
|
# Most can just use generic.
|
2006-07-15 00:41:43 +02:00
|
|
|
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
|
2006-05-27 14:05:58 +02:00
|
|
|
case "${host_cpu}" in
|
2006-07-15 00:41:43 +02:00
|
|
|
alpha*)
|
|
|
|
atomic_word_dir=cpu/alpha
|
2006-05-27 14:05:58 +02:00
|
|
|
;;
|
2006-07-15 00:41:43 +02:00
|
|
|
cris*)
|
|
|
|
atomic_word_dir=cpu/cris
|
|
|
|
;;
|
|
|
|
ia64)
|
|
|
|
atomic_word_dir=cpu/ia64
|
|
|
|
;;
|
2007-09-18 17:25:39 +02:00
|
|
|
i[4567]86 | x86_64)
|
2007-09-12 00:32:51 +02:00
|
|
|
atomic_flags="-march=native"
|
|
|
|
;;
|
2006-07-15 00:41:43 +02:00
|
|
|
powerpc* | rs6000)
|
|
|
|
atomic_word_dir=cpu/powerpc
|
|
|
|
;;
|
|
|
|
sparc* | ultrasparc)
|
|
|
|
atomic_word_dir=cpu/sparc
|
2007-09-12 00:32:51 +02:00
|
|
|
atomic_flags="-mcpu=v9"
|
2006-05-27 14:05:58 +02:00
|
|
|
;;
|
|
|
|
esac
|
2004-07-03 01:40:19 +02:00
|
|
|
|
2006-07-15 00:41:43 +02:00
|
|
|
|
|
|
|
# Set specific CPU overrides for atomicity_dir.
|
|
|
|
# This can be over-ridden in GLIBCXX_ENABLE_ATOMIC_BUILTINS.
|
|
|
|
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
|
|
|
|
if test -f ${glibcxx_srcdir}/config/${cpu_include_dir}/atomicity.h ; then
|
|
|
|
atomicity_dir=$cpu_include_dir
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2004-07-03 01:40:19 +02:00
|
|
|
if test -f ${glibcxx_srcdir}/config/${cpu_include_dir}/cxxabi_tweaks.h ; then
|
|
|
|
abi_tweaks_dir=$cpu_include_dir
|
|
|
|
fi
|
2002-06-18 21:07:12 +02:00
|
|
|
|
2006-07-15 00:41:43 +02:00
|
|
|
|
2012-09-17 15:02:39 +02:00
|
|
|
# Set directory with CPU-specific optimization
|
|
|
|
cpu_opt_dir=${cpu_include_dir}/opt
|
|
|
|
test -d ${glibcxx_srcdir}/config/${cpu_include_dir}/opt ||
|
|
|
|
cpu_opt_dir=cpu/generic/opt
|
|
|
|
# For each header with CPU-specific optimizations check whether it
|
|
|
|
# exists in ${cpu_opt_dir}. If not, point the variable at the
|
|
|
|
# appropriate file in the generic directory.
|
|
|
|
cpu_opt_ext_random=${cpu_opt_dir}/ext/opt_random.h
|
|
|
|
test -f ${glibcxx_srcdir}/config/${cpu_opt_ext_random} ||
|
|
|
|
cpu_opt_ext_random=cpu/generic/opt/ext/opt_random.h
|
|
|
|
|
2012-09-26 15:10:26 +02:00
|
|
|
cpu_opt_bits_random=${cpu_opt_dir}/bits/opt_random.h
|
|
|
|
test -f ${glibcxx_srcdir}/config/${cpu_opt_ext_random} ||
|
|
|
|
cpu_opt_ext_random=cpu/generic/opt/bits/opt_random.h
|
|
|
|
|
2012-09-17 15:02:39 +02:00
|
|
|
|
2002-06-20 21:08:42 +02:00
|
|
|
# Set any OS-dependent bits.
|
2002-07-08 21:41:57 +02:00
|
|
|
# Set the os_include_dir.
|
2007-09-07 06:18:40 +02:00
|
|
|
# Set the error_costants_dir.
|
2002-06-20 21:08:42 +02:00
|
|
|
# Set c_model, c_compatibility here.
|
|
|
|
# If atomic ops and/or numeric limits are OS-specific rather than
|
|
|
|
# CPU-specifc, set those here too.
|
2000-11-14 00:49:41 +01:00
|
|
|
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
|
2003-05-23 04:31:07 +02:00
|
|
|
case "${host_os}" in
|
2014-10-30 15:20:50 +01:00
|
|
|
aix[56789]*)
|
|
|
|
# Newer versions of AIX only support PowerPC architecture, so use
|
|
|
|
# atomic instructions directly.
|
|
|
|
os_include_dir="os/aix"
|
|
|
|
atomic_word_dir="os/aix"
|
|
|
|
;;
|
|
|
|
aix4.[3456789]*)
|
2002-06-18 21:07:12 +02:00
|
|
|
# We set os_include_dir to os/aix only on AIX 4.3 and newer, but
|
2002-06-24 07:50:58 +02:00
|
|
|
# os/aix/atomicity.h works on earlier versions of AIX 4.*, so we
|
2002-06-18 21:07:12 +02:00
|
|
|
# explicitly duplicate the directory for 4.[<3].
|
|
|
|
os_include_dir="os/aix"
|
2004-02-27 01:49:50 +01:00
|
|
|
atomicity_dir="os/aix"
|
2004-12-28 17:34:16 +01:00
|
|
|
atomic_word_dir="os/aix"
|
2000-11-14 00:49:41 +01:00
|
|
|
;;
|
2002-06-18 21:07:12 +02:00
|
|
|
aix4.*)
|
2003-10-19 22:58:22 +02:00
|
|
|
os_include_dir="os/generic"
|
2004-02-27 01:49:50 +01:00
|
|
|
atomicity_dir="os/aix"
|
2004-12-28 17:34:16 +01:00
|
|
|
atomic_word_dir="os/aix"
|
2002-06-18 21:07:12 +02:00
|
|
|
;;
|
|
|
|
aix*)
|
2003-10-19 22:58:22 +02:00
|
|
|
os_include_dir="os/generic"
|
2004-02-27 01:49:50 +01:00
|
|
|
atomicity_dir="cpu/generic"
|
2002-06-18 21:07:12 +02:00
|
|
|
;;
|
2002-10-18 23:22:16 +02:00
|
|
|
bsd*)
|
|
|
|
# Plain BSD attempts to share FreeBSD files.
|
2002-06-18 21:07:12 +02:00
|
|
|
os_include_dir="os/bsd/freebsd"
|
2000-11-14 00:49:41 +01:00
|
|
|
;;
|
2000-11-27 07:04:16 +01:00
|
|
|
cygwin*)
|
2002-06-18 21:07:12 +02:00
|
|
|
os_include_dir="os/newlib"
|
2010-12-06 01:50:04 +01:00
|
|
|
OPT_LDFLAGS="${OPT_LDFLAGS} \$(lt_host_flags)"
|
2002-06-18 21:07:12 +02:00
|
|
|
;;
|
2005-01-13 23:48:14 +01:00
|
|
|
darwin | darwin[1-7] | darwin[1-7].*)
|
2004-10-26 08:09:05 +02:00
|
|
|
# On Darwin, performance is improved if libstdc++ is single-module.
|
2005-01-13 23:48:14 +01:00
|
|
|
# Up to at least 10.3.7, -flat_namespace is required for proper
|
2004-10-26 08:09:05 +02:00
|
|
|
# treatment of coalesced symbols.
|
|
|
|
OPT_LDFLAGS="${OPT_LDFLAGS} -Wl,-single_module -Wl,-flat_namespace"
|
2004-10-30 03:03:12 +02:00
|
|
|
os_include_dir="os/bsd/darwin"
|
2004-10-26 08:09:05 +02:00
|
|
|
;;
|
2005-01-13 23:48:14 +01:00
|
|
|
darwin[89] | darwin[89].* | darwin[1-9][0-9]* )
|
|
|
|
# On Darwin, performance is improved if libstdc++ is single-module,
|
|
|
|
# and on 8+ compatibility is better if not -flat_namespace.
|
|
|
|
OPT_LDFLAGS="${OPT_LDFLAGS} -Wl,-single_module"
|
2006-12-02 18:06:57 +01:00
|
|
|
case "${host_cpu}" in
|
|
|
|
i[34567]86 | x86_64)
|
|
|
|
OPTIMIZE_CXXFLAGS="${OPTIMIZE_CXXFLAGS} -fvisibility-inlines-hidden"
|
|
|
|
;;
|
|
|
|
esac
|
2005-01-13 23:48:14 +01:00
|
|
|
os_include_dir="os/bsd/darwin"
|
|
|
|
;;
|
2002-06-18 21:07:12 +02:00
|
|
|
*djgpp*) # leading * picks up "msdosdjgpp"
|
|
|
|
os_include_dir="os/djgpp"
|
2010-06-10 16:53:15 +02:00
|
|
|
error_constants_dir="os/djgpp"
|
2000-11-27 07:04:16 +01:00
|
|
|
;;
|
2014-05-21 13:08:58 +02:00
|
|
|
dragonfly*)
|
|
|
|
os_include_dir="os/bsd/dragonfly"
|
|
|
|
;;
|
2002-10-18 23:22:16 +02:00
|
|
|
freebsd*)
|
|
|
|
os_include_dir="os/bsd/freebsd"
|
|
|
|
;;
|
2003-11-07 17:49:18 +01:00
|
|
|
gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
|
2006-02-17 00:29:10 +01:00
|
|
|
if [ "$uclibc" = "yes" ]; then
|
|
|
|
os_include_dir="os/uclibc"
|
2010-06-01 11:54:08 +02:00
|
|
|
elif [ "$bionic" = "yes" ]; then
|
|
|
|
os_include_dir="os/bionic"
|
2006-02-17 00:29:10 +01:00
|
|
|
else
|
|
|
|
os_include_dir="os/gnu-linux"
|
|
|
|
fi
|
2001-01-12 20:39:07 +01:00
|
|
|
;;
|
2002-06-18 21:07:12 +02:00
|
|
|
hpux*)
|
|
|
|
os_include_dir="os/hpux"
|
2000-11-14 00:49:41 +01:00
|
|
|
;;
|
2001-11-08 21:52:29 +01:00
|
|
|
mingw32*)
|
2011-10-14 08:57:55 +02:00
|
|
|
case "$host" in
|
|
|
|
*-w64-*)
|
|
|
|
os_include_dir="os/mingw32-w64"
|
|
|
|
error_constants_dir="os/mingw32-w64"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
os_include_dir="os/mingw32"
|
|
|
|
error_constants_dir="os/mingw32"
|
|
|
|
;;
|
|
|
|
esac
|
2010-12-06 01:50:04 +01:00
|
|
|
OPT_LDFLAGS="${OPT_LDFLAGS} \$(lt_host_flags)"
|
2001-11-08 21:52:29 +01:00
|
|
|
;;
|
2000-12-05 11:29:47 +01:00
|
|
|
netbsd*)
|
2002-06-18 21:07:12 +02:00
|
|
|
os_include_dir="os/bsd/netbsd"
|
2000-12-05 11:29:47 +01:00
|
|
|
;;
|
2012-10-11 01:11:54 +02:00
|
|
|
openbsd*)
|
|
|
|
os_include_dir="os/bsd/openbsd"
|
|
|
|
;;
|
2003-08-05 04:00:18 +02:00
|
|
|
qnx6.[12]*)
|
|
|
|
os_include_dir="os/qnx/qnx6.1"
|
|
|
|
c_model=c
|
|
|
|
;;
|
2003-09-17 22:28:07 +02:00
|
|
|
solaris2)
|
|
|
|
# This too-vague configuration does not provide enough information
|
|
|
|
# to select a ctype include, and thus os_include_dir is a crap shoot.
|
2014-04-22 14:30:59 +02:00
|
|
|
echo "Please specify the full version of Solaris, ie. solaris2.10 " 1>&2
|
2004-07-11 09:46:21 +02:00
|
|
|
exit 1
|
2003-09-17 22:28:07 +02:00
|
|
|
;;
|
2014-04-22 14:30:59 +02:00
|
|
|
solaris2.1[0-9])
|
|
|
|
os_include_dir="os/solaris/solaris2.10"
|
2011-08-18 16:59:47 +02:00
|
|
|
;;
|
2004-01-27 16:36:22 +01:00
|
|
|
tpf)
|
|
|
|
os_include_dir="os/tpf"
|
|
|
|
;;
|
2003-10-20 20:27:17 +02:00
|
|
|
vxworks)
|
|
|
|
os_include_dir="os/vxworks"
|
|
|
|
;;
|
2000-11-14 00:49:41 +01:00
|
|
|
*)
|
2002-06-18 21:07:12 +02:00
|
|
|
os_include_dir="os/generic"
|
2000-11-14 00:49:41 +01:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
2002-06-20 21:08:42 +02:00
|
|
|
# Set any OS-dependent and CPU-dependent bits.
|
2000-11-14 00:49:41 +01:00
|
|
|
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
|
2003-05-23 04:31:07 +02:00
|
|
|
case "${host}" in
|
2006-07-15 00:41:43 +02:00
|
|
|
*-*-linux*)
|
|
|
|
case "${host_cpu}" in
|
|
|
|
i[567]86)
|
|
|
|
abi_baseline_pair=i486-linux-gnu
|
|
|
|
;;
|
2009-02-09 21:24:08 +01:00
|
|
|
mips64*)
|
|
|
|
abi_baseline_pair=mips64-linux-gnu
|
|
|
|
;;
|
2013-06-14 10:40:47 +02:00
|
|
|
powerpc64*)
|
2006-07-15 00:41:43 +02:00
|
|
|
abi_baseline_pair=powerpc64-linux-gnu
|
|
|
|
;;
|
|
|
|
s390)
|
|
|
|
abi_baseline_pair=s390-linux-gnu
|
|
|
|
;;
|
|
|
|
s390x)
|
|
|
|
abi_baseline_pair=s390x-linux-gnu
|
|
|
|
;;
|
|
|
|
x86_64)
|
|
|
|
abi_baseline_pair=x86_64-linux-gnu
|
|
|
|
;;
|
|
|
|
*)
|
2014-09-30 00:33:41 +02:00
|
|
|
if test $try_cpu = generic; then
|
|
|
|
try_abi_cpu=$host_cpu
|
|
|
|
else
|
|
|
|
try_abi_cpu=$try_cpu
|
|
|
|
fi
|
|
|
|
if test -d ${glibcxx_srcdir}/config/abi/post/${try_abi_cpu}-linux-gnu; then
|
|
|
|
abi_baseline_pair=${try_abi_cpu}-linux-gnu
|
2006-07-15 00:41:43 +02:00
|
|
|
fi
|
|
|
|
esac
|
2008-07-21 21:21:45 +02:00
|
|
|
case "${host}" in
|
2012-10-15 23:12:23 +02:00
|
|
|
arm*-*-linux-*)
|
2008-07-21 21:21:45 +02:00
|
|
|
port_specific_symbol_files="\$(srcdir)/../config/os/gnu-linux/arm-eabi-extra.ver"
|
|
|
|
;;
|
|
|
|
esac
|
2006-07-15 00:41:43 +02:00
|
|
|
;;
|
2015-01-09 15:06:02 +01:00
|
|
|
arm*-*-freebsd*)
|
|
|
|
port_specific_symbol_files="\$(srcdir)/../config/os/gnu-linux/arm-eabi-extra.ver"
|
|
|
|
;;
|
2005-11-17 21:10:51 +01:00
|
|
|
powerpc*-*-darwin*)
|
|
|
|
port_specific_symbol_files="\$(srcdir)/../config/os/bsd/darwin/ppc-extra.ver"
|
|
|
|
;;
|
2010-10-01 13:58:21 +02:00
|
|
|
*-*-solaris2.1[0-9])
|
|
|
|
abi_baseline_pair=solaris2.10
|
2011-07-08 10:49:57 +02:00
|
|
|
abi_baseline_subdir_switch=--print-multi-os-directory
|
2010-07-02 12:05:49 +02:00
|
|
|
;;
|
2000-11-17 21:35:06 +01:00
|
|
|
esac
|