OSDN Git Service

* optabs.c (emit_libcall_block): Don't mark calls as CONST_CALL_P.
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / configure.target
1 # configure.target
2
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.
7
8 # This shell script should be invoked as
9 #   . configure.target
10 # If it encounters an error, it will exit with a message.
11
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", "")
17
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
21
22
23 # Set any CPU dependent compiler flags.
24 # THIS TABLE IS SORTED.  KEEP IT THAT WAY.
25
26 case "${target_cpu}" in
27   alpha*)
28     cpu_include_dir="config/cpu/alpha"
29     ;;
30   arm*)
31     cpu_include_dir="config/cpu/arm"
32     ;;
33   ia64)
34     cpu_include_dir="config/cpu/ia64"
35     ;;
36   i386)
37     cpu_include_dir="config/cpu/i386"
38     ;;
39   i486 | i586 | i686 | i786)
40     cpu_include_dir="config/cpu/i486"
41     ;;
42   powerpc | rs6000)
43     cpu_include_dir="config/cpu/powerpc"
44     ;;
45   sparc64 | ultrasparc)
46     cpu_include_dir="config/cpu/sparc/sparc64"
47     ;;
48   sparc*)
49     cpu_include_dir="config/cpu/sparc/sparc32"
50     ;;
51   *)
52     cpu_include_dir="config/cpu/generic"
53     ;;
54 esac
55
56
57 # Set any OS dependent compiler flags.
58 # THIS TABLE IS SORTED.  KEEP IT THAT WAY.
59
60 case "${target_os}" in
61   aix4.[3456789]* | aix[56789]*)
62     os_include_dir="config/os/aix"
63     case "$CXX" in
64       *pthread*)
65         enable_threads='posix'
66         ;;
67       *)
68         enable_threads='no'
69         ;;
70     esac
71     ;;
72   bsd* | freebsd* )
73     os_include_dir="config/os/bsd/freebsd"
74     ;;
75   cygwin*)
76     os_include_dir="config/os/newlib"
77     ;;
78   *djgpp*)
79     os_include_dir="config/os/djgpp"
80     ;;
81   linux* | gnu*)
82     os_include_dir="config/os/gnu-linux"
83     ;;
84   irix[1-6] | irix[1-5].* | irix6.[0-4])
85    # This is known to work on at least IRIX 5.2 and 6.3.
86    os_include_dir="config/os/irix/irix5.2"
87    ;;
88   irix6.5)
89     os_include_dir="config/os/irix/irix6.5"
90     ;;
91   netbsd*)
92     os_include_dir="config/os/bsd/netbsd"
93     ;;
94   solaris2.5*)
95     os_include_dir="config/os/solaris/solaris2.5"
96     ;;
97   solaris2.6*)
98     os_include_dir="config/os/solaris/solaris2.6"
99     ;;
100   solaris2.7* | solaris2.8*)
101     os_include_dir="config/os/solaris/solaris2.7"
102     ;;
103   hpux)
104     os_include_dir="config/os/hpux"
105     ;;
106   *)
107     os_include_dir="config/os/generic"
108     ;;
109 esac
110
111
112 # Set any flags dependant on the full target triplet.
113 # THIS TABLE IS SORTED.  KEEP IT THAT WAY.
114
115 case "${target}" in
116    *-*-aix*)
117      ATOMICITYH=$os_include_dir
118      ;;
119    *-*-irix*)
120      ATOMICITYH=$os_include_dir
121      ;;
122    *)
123      ATOMICITYH=$cpu_include_dir
124      ;;
125 esac
126     
127