3 # This shell script handles all target based configuration for libstdc++.
4 # It sets various shell variables based on the the target and the
5 # configuration options. You can modify this shell script without
6 # needing to rerun autoconf.
8 # This shell script should be invoked as
10 # If it encounters an error, it will exit with a message.
12 # It uses the following shell variables:
13 # target The configuration target
14 # target_cpu The configuration target CPU
15 # target_os The configuration target OS
16 # target_optspace --enable-target-optspace ("yes", "no", "")
18 # It possibly modifies the following shell variables:
19 # cpu_include_dir CPU-specific include directory, relative to srcdir
20 # os_include_dir OS-specific include directory, relative to srcdir
23 # Set any CPU dependent compiler flags.
24 # THIS TABLE IS SORTED. KEEP IT THAT WAY.
26 case "${target_cpu}" in
28 cpu_include_dir="config/cpu/alpha"
31 cpu_include_dir="config/cpu/arm"
34 cpu_include_dir="config/cpu/ia64"
37 cpu_include_dir="config/cpu/i386"
39 i486 | i586 | i686 | i786)
40 cpu_include_dir="config/cpu/i486"
43 cpu_include_dir="config/cpu/powerpc"
46 cpu_include_dir="config/cpu/sparc/sparc64"
49 cpu_include_dir="config/cpu/sparc/sparc32"
52 cpu_include_dir="config/cpu/generic"
57 # Set any OS dependent compiler flags.
58 # THIS TABLE IS SORTED. KEEP IT THAT WAY.
60 case "${target_os}" in
61 aix4.[3456789]* | aix[56789]*)
62 os_include_dir="config/os/aix"
65 enable_threads='posix'
73 os_include_dir="config/os/aix"
76 os_include_dir="config/os/bsd/freebsd"
79 os_include_dir="config/os/newlib"
82 os_include_dir="config/os/djgpp"
85 os_include_dir="config/os/gnu-linux"
88 os_include_dir="config/os/irix"
91 os_include_dir="config/os/bsd/netbsd"
94 os_include_dir="config/os/solaris/solaris2.5"
97 os_include_dir="config/os/solaris/solaris2.6"
99 solaris2.7* | solaris2.8*)
100 os_include_dir="config/os/solaris/solaris2.7"
103 os_include_dir="config/os/hpux"
106 os_include_dir="config/os/generic"
111 # Set any flags dependant on the full target triplet.
112 # THIS TABLE IS SORTED. KEEP IT THAT WAY.
116 ATOMICITYH=$os_include_dir
119 ATOMICITYH=$os_include_dir
122 ATOMICITYH=$cpu_include_dir