]>
Commit | Line | Data |
---|---|---|
944b8b35 FXC |
1 | # configure.host |
2 | # | |
3 | # This shell script handles all host based configuration for libgfortran. | |
94792057 | 4 | # It sets various shell variables based on the host triplet. |
944b8b35 FXC |
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. | |
47ddb895 DE |
18 | # tmake_file A list of machine-description-specific |
19 | # makefile fragments. | |
20 | ||
944b8b35 FXC |
21 | |
22 | ||
23 | # DEFAULTS | |
3b14f664 | 24 | fpu_host='fpu-generic' |
8b198102 FXC |
25 | ieee_support='no' |
26 | ||
27 | if test "x${have_fp_enable}" = "xyes" && test "x${have_fp_trap}" = "xyes"; then | |
28 | fpu_host='fpu-aix' | |
29 | ieee_support='yes' | |
30 | fi | |
31 | ||
32 | if test "x${have_fpsetmask}" = "xyes"; then | |
33 | fpu_host='fpu-sysv' | |
34 | ieee_support='yes' | |
35 | fi | |
944b8b35 | 36 | |
9272cac8 JB |
37 | if test "x${have_feenableexcept}" = "xyes"; then |
38 | fpu_host='fpu-glibc' | |
8b198102 | 39 | ieee_support='yes' |
9272cac8 JB |
40 | fi |
41 | ||
944b8b35 | 42 | case "${host_cpu}" in |
220b9bdf FXC |
43 | |
44 | # x86 asm should be used instead of glibc, since glibc doesn't support | |
45 | # the x86 denormal exception. | |
944b8b35 | 46 | i?86 | x86_64) |
7b32a8f6 UB |
47 | if test "x${have_soft_float}" = "xyes"; then |
48 | fpu_host='fpu-generic' | |
220b9bdf | 49 | ieee_support='no' |
7b32a8f6 UB |
50 | else |
51 | fpu_host='fpu-387' | |
220b9bdf | 52 | ieee_support='yes' |
7b32a8f6 | 53 | fi |
8b198102 | 54 | ;; |
220b9bdf FXC |
55 | |
56 | # use asm on aarch64-darwin | |
57 | aarch64) | |
58 | case "${host_os}" in | |
59 | darwin*) | |
60 | fpu_host='fpu-aarch64' | |
61 | ieee_support='yes' | |
62 | ;; | |
63 | esac | |
64 | ||
944b8b35 FXC |
65 | esac |
66 | ||
9fc77574 KK |
67 | # Some targets require additional compiler options for NaN/Inf. |
68 | ieee_flags= | |
69 | case "${host_cpu}" in | |
5b0936da UB |
70 | alpha*) |
71 | ieee_flags="-mieee" ;; | |
9fc77574 KK |
72 | sh*) |
73 | ieee_flags="-mieee" ;; | |
74 | esac | |
47ddb895 DE |
75 | |
76 | tmake_file= | |
77 | # Other system configury | |
78 | case "${target}" in | |
79 | ||
80 | *-*-aix*) | |
81 | # Create AIX-style "FAT" libraries. | |
82 | tmake_file="t-aix" | |
83 | ;; | |
84 | ||
85 | *) | |
86 | ;; | |
87 | ||
88 | esac | |
89 |