3 # This shell script handles all host based configuration for libgcj.
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.
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 # host The configuration host
14 # host_cpu The configuration host CPU
15 # target_optspace --enable-target-optspace ("yes", "no", "")
17 # It sets the following shell variables:
18 # libgcj_cflags Special CFLAGS to use when building
19 # libgcj_cxxflags Special CXXFLAGS to use when building
20 # libgcj_javaflags Special JAVAFLAGS to use when building
21 # libgcj_interpreter If the bytecode interpreter supports this platform.
22 # enable_java_net_default If java.net native code should be enabled by
24 # enable_hash_synchronization_default If hash synchronization should be
26 # sysdeps_dir Directory containing system-dependent headers
27 # slow_pthread_self The synchronization code should try to avoid
28 # pthread_self calls by caching thread IDs in a hashtable
29 # can_unwind_signal Set to "yes" if the EH unwinder supports throwing
30 # from a signal handler.
37 enable_java_net_default=yes
38 enable_hash_synchronization_default=no
43 case "${target_optspace}:${host}" in
45 libgcj_flags="${libgcj_flags} -Os"
47 :m32r-* | :d10v-* | :d30v-*)
48 libgcj_flags="${libgcj_flags} -Os"
57 # Set any host dependent compiler flags.
58 # THIS TABLE IS SORTED. KEEP IT THAT WAY.
62 DIVIDESPEC=-fuse-divide-subroutine
63 EXCEPTIONSPEC=-fnon-call-exceptions
66 # This case statement supports per-CPU defaults.
68 mips-tx39-*|mipstx39-unknown-*)
69 libgcj_flags="${libgcj_flags} -G 0"
70 LDFLAGS="$LDFLAGS -Tjmr3904dram.ld"
71 AM_RUNTESTFLAGS="--target_board=jmr3904-sim"
72 # Use "Ecos" processes since they are a no-op.
75 enable_java_net_default=no
76 enable_getenv_properties_default=no
78 i686-*|i586-*|i486-*|i386-*)
80 libgcj_flags="${libgcj_flags} -ffloat-store"
81 libgcj_interpreter=yes
82 libgcj_cxxflags="-D__NO_MATH_INLINES"
83 libgcj_cflags="-D__NO_MATH_INLINES"
84 DIVIDESPEC=-fno-use-divide-subroutine
85 enable_hash_synchronization_default=yes
90 libgcj_flags="${libgcj_flags} -mieee"
91 libgcj_interpreter=yes
92 enable_hash_synchronization_default=yes
96 libgcj_interpreter=yes
97 enable_hash_synchronization_default=yes
104 libgcj_flags="${libgcj_flags} -funwind-tables"
105 libgcj_interpreter=yes
106 enable_hash_synchronization_default=yes
109 with_libffi_default=no
112 CHECKREFSPEC=-fcheck-references
114 enable_java_net_default=no
115 enable_getenv_properties_default=no
116 enable_main_args_default=no
120 # This case statement supports generic port properties and may refine
121 # the above per-CPU defaults. Note: If your OS implements
122 # MD_FALLBACK_FRAME_STATE_FOR, then you want to set can_unwind_signal
125 i[34567]86*-linux* | \
130 can_unwind_signal=yes
133 enable_hash_synchronization_default=no
140 # The cygwin linker doesn't do 8-byte alignment by default, so
141 # disable hash synchronization for now.
142 enable_hash_synchronization_default=no
147 libgcj_cflags="${libgcj_cflags} ${libgcj_flags}"
148 libgcj_cxxflags="${libgcj_cxxflags} ${libgcj_flags}"
149 libgcj_javaflags="${libgcj_javaflags} ${libgcj_flags}"