OSDN Git Service

bootstrap/3963
[pf3gnuchains/gcc-fork.git] / boehm-gc / configure.host
1 # configure.host
2
3 # This shell script handles all host based configuration for boehm_gc.
4 # It sets various shell variables based on the the host 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.host
10 # If it encounters an error, it will exit with a message.
11
12 # It uses the following shell variables:
13 #   host                The configuration host
14 #   host_cpu            The configuration host CPU
15 #   target_optspace     --enable-target-optspace ("yes", "no", "")
16
17 # It sets the following shell variables:
18 #   boehm_gc_cflags     Special CFLAGS to use when building
19
20 boehm_gc_cflags=-fexceptions
21
22 case "${target_optspace}:${host}" in
23   yes:*)
24     boehm_gc_cflags="${boehm_gc_cflags} -Os"
25     ;;
26   :m32r-* | :d10v-* | :d30v-*)
27     boehm_gc_cflags="${boehm_gc_cflags} -Os"
28     ;;
29   no:* | :*)
30     # Nothing.
31     ;;
32 esac
33
34 # Set any host dependent compiler flags.
35 # THIS TABLE IS SORTED.  KEEP IT THAT WAY.
36
37 case "${host}" in
38   mips-tx39-*|mipstx39-unknown-*)
39         boehm_gc_cflags="${boehm_gc_cflags} -G 0"
40         ;;
41   *)
42         ;;
43 esac