]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgfortran/configure.host
[Darwin, specs] Tidy some more linker options.
[thirdparty/gcc.git] / libgfortran / configure.host
CommitLineData
8c84a5de 1# configure.host
2#
3# This shell script handles all host based configuration for libgfortran.
4# It sets various shell variables based on the the host triplet.
5# You can modify this shell script without rerunning autoconf/aclocal/etc.
6# This file is "sourced", not executed.
7#
8#
9# It uses the following shell variables as set by config.guess:
10# host The configuration host (full CPU-vendor-OS triplet)
11# host_cpu The configuration host CPU
12# host_os The configuration host OS
13#
14#
15# It sets the following shell variables:
16#
17# fpu_host FPU-specific code file, defaults to fpu-generic.
18
19
20# DEFAULTS
aaa798ba 21fpu_host='fpu-generic'
d566c3e0 22ieee_support='no'
23
24if test "x${have_fp_enable}" = "xyes" && test "x${have_fp_trap}" = "xyes"; then
25 fpu_host='fpu-aix'
26 ieee_support='yes'
27fi
28
29if test "x${have_fpsetmask}" = "xyes"; then
30 fpu_host='fpu-sysv'
31 ieee_support='yes'
32fi
8c84a5de 33
1000431d 34if test "x${have_feenableexcept}" = "xyes"; then
35 fpu_host='fpu-glibc'
d566c3e0 36 ieee_support='yes'
1000431d 37fi
38
39# x86 asm should be used instead of glibc, since glibc doesn't support
40# the x86 denormal exception.
8c84a5de 41case "${host_cpu}" in
42 i?86 | x86_64)
a3180a39 43 if test "x${have_soft_float}" = "xyes"; then
44 fpu_host='fpu-generic'
45 else
46 fpu_host='fpu-387'
47 fi
d566c3e0 48 ieee_support='yes'
49 ;;
8c84a5de 50esac
51
72934c53 52# Some targets require additional compiler options for NaN/Inf.
53ieee_flags=
54case "${host_cpu}" in
5cb73389 55 alpha*)
56 ieee_flags="-mieee" ;;
72934c53 57 sh*)
58 ieee_flags="-mieee" ;;
59esac