configure.host 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. # DEFAULTS
  19. fpu_host='fpu-generic'
  20. ieee_support='no'
  21. if test "x${have_fp_enable}" = "xyes" && test "x${have_fp_trap}" = "xyes"; then
  22. fpu_host='fpu-aix'
  23. ieee_support='yes'
  24. fi
  25. if test "x${have_fpsetmask}" = "xyes"; then
  26. fpu_host='fpu-sysv'
  27. ieee_support='yes'
  28. fi
  29. if test "x${have_feenableexcept}" = "xyes"; then
  30. fpu_host='fpu-glibc'
  31. ieee_support='yes'
  32. fi
  33. # x86 asm should be used instead of glibc, since glibc doesn't support
  34. # the x86 denormal exception.
  35. case "${host_cpu}" in
  36. i?86 | x86_64)
  37. fpu_host='fpu-387'
  38. ieee_support='yes'
  39. ;;
  40. esac
  41. # Some targets require additional compiler options for NaN/Inf.
  42. ieee_flags=
  43. case "${host_cpu}" in
  44. alpha*)
  45. ieee_flags="-mieee" ;;
  46. sh*)
  47. ieee_flags="-mieee" ;;
  48. esac