config.build 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. # GCC build-specific configuration file.
  2. # Copyright (C) 1997-2015 Free Software Foundation, Inc.
  3. #This file is part of GCC.
  4. #GCC is free software; you can redistribute it and/or modify it under
  5. #the terms of the GNU General Public License as published by the Free
  6. #Software Foundation; either version 3, or (at your option) any later
  7. #version.
  8. #GCC is distributed in the hope that it will be useful, but WITHOUT
  9. #ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10. #FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  11. #for more details.
  12. #You should have received a copy of the GNU General Public License
  13. #along with GCC; see the file COPYING3. If not see
  14. #<http://www.gnu.org/licenses/>.
  15. # This is the GCC build-specific configuration file
  16. # where a configuration type is mapped to different system-specific
  17. # definitions and files. This is invoked by the autoconf-generated
  18. # configure script. Putting it in a separate shell file lets us skip
  19. # running autoconf when modifying build-specific information.
  20. # This file switches on the shell variable ${build}. As much of this
  21. # as possible should be replaced with autoconf tests in the future.
  22. # This file sets the following shell variables for use by the
  23. # autoconf-generated configure script:
  24. #
  25. # build_xm_defines List of macros to define when compiling for the
  26. # build machine.
  27. #
  28. # build_xm_file List of files to include when compiling for the
  29. # build machine.
  30. #
  31. # build_install_headers_dir
  32. # Target to use when installing header files.
  33. #
  34. # build_exeext Set to the suffix, if the build machine requires
  35. # executables to have a file name suffix.
  36. # Default settings.
  37. build_xm_file=
  38. build_xm_defines=
  39. build_exeext=
  40. build_install_headers_dir=install-headers-tar
  41. build_file_translate=
  42. # System-specific settings.
  43. case $build in
  44. hppa1.0-*-hpux1[01]* | \
  45. hppa*64*-*-hpux11* | \
  46. hppa1.1-*-hpux11* | \
  47. hppa2*-*-hpux11* )
  48. build_install_headers_dir=install-headers-cpio
  49. ;;
  50. i370-*-opened* | i370-*-mvs* )
  51. # IBM 360/370/390 Architecture
  52. build_xm_defines='FATAL_EXIT_CODE=12'
  53. ;;
  54. i[34567]86-*-cygwin* | x86_64-*-cygwin* )
  55. build_xm_file=i386/xm-cygwin.h
  56. build_exeext=.exe
  57. ;;
  58. i[34567]86-*-mingw32* | x86_64-*-mingw*)
  59. build_xm_file=i386/xm-mingw32.h
  60. build_exeext=.exe
  61. t=`(CMD //c echo /c) 2>/dev/null`
  62. case $t in ?:*)
  63. build_file_translate="CMD //c"
  64. ;;
  65. esac
  66. ;;
  67. i[34567]86-pc-msdosdjgpp*)
  68. build_xm_file=i386/xm-djgpp.h
  69. build_exeext=.exe
  70. ;;
  71. i[34567]86-*-sco3.2v5*)
  72. # 80386 running SCO Open Server 5
  73. build_install_headers_dir=install-headers-cpio
  74. ;;
  75. i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4* )
  76. build_install_headers_dir=install-headers-cpio
  77. ;;
  78. i[34567]86-*-sysv4*)
  79. # Intel x86 running system V r4
  80. build_install_headers_dir=install-headers-cpio
  81. ;;
  82. i[34567]86-*-udk*)
  83. # Intel x86 on SCO UW/OSR5 Dev Kit
  84. build_install_headers_dir=install-headers-cpio
  85. ;;
  86. i[34567]86-*-uwin*)
  87. build_exeext=.exe
  88. ;;
  89. i386-*-vsta)
  90. # Intel 80386's running VSTa kernel
  91. ;;
  92. m68000-hp-hpux* | m68k-hp-hpux*)
  93. # HP 9000 series 300
  94. build_install_headers_dir=install-headers-cpio
  95. ;;
  96. *-*-sysv*)
  97. # All other System V variants.
  98. build_install_headers_dir=install-headers-cpio
  99. ;;
  100. *-*-*vms*)
  101. # All OpenVMS targets.
  102. build_xm_file="vms/xm-vms.h"
  103. build_exeext=.exe
  104. build_install_headers_dir=install-headers-cp
  105. ;;
  106. esac