mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

139 lines
4.5 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/base/gcc/config-300.in
  9. # ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. if pkgcheck gcc X
  23. then
  24. menu_begin MENU_COMPILER 'GCC Compiler Options'
  25. bool 'Building gcc 2.x package' ROCKCFG_PKG_GCC_GCC2 0
  26. bool 'Building gcc 3.2.x package' ROCKCFG_PKG_GCC_GCC32 0
  27. bool 'Building gcc 3.3.x package' ROCKCFG_PKG_GCC_GCC33 0
  28. bool 'Building gcc 3.4.x package' ROCKCFG_PKG_GCC_GCC34 1
  29. bool 'Building gcc 4.0.x package' ROCKCFG_PKG_GCC_GCC40 0
  30. bool 'Building gcc 4.1.x package' ROCKCFG_PKG_GCC_GCC41 0
  31. l=""
  32. if [ $ROCKCFG_PKG_GCC_GCC2 = 1 ]; then pkgfork gcc gcc2; l="$l gcc2"; fi
  33. if [ $ROCKCFG_PKG_GCC_GCC32 = 1 ]; then pkgfork gcc gcc32; l="$l gcc32"; fi
  34. if [ $ROCKCFG_PKG_GCC_GCC33 = 1 ]; then pkgfork gcc gcc33; l="$l gcc33"; fi
  35. if [ $ROCKCFG_PKG_GCC_GCC34 = 1 ]; then pkgfork gcc gcc34; l="$l gcc34"; fi
  36. if [ $ROCKCFG_PKG_GCC_GCC40 = 1 ]; then pkgfork gcc gcc40; l="$l gcc40"; fi
  37. if [ $ROCKCFG_PKG_GCC_GCC41 = 1 ]; then pkgfork gcc gcc41; l="$l gcc41"; fi
  38. pkgremove gcc
  39. d="none"
  40. if [ $ROCKCFG_PKG_GCC_GCC2 = 1 ]; then d="gcc2"; fi
  41. if [ $ROCKCFG_PKG_GCC_GCC33 = 1 ]; then d="gcc33"; fi
  42. if [ $ROCKCFG_PKG_GCC_GCC32 = 1 ]; then d="gcc32"; fi
  43. if [ $ROCKCFG_PKG_GCC_GCC34 = 1 ]; then d="gcc34"; fi
  44. if [ $ROCKCFG_PKG_GCC_GCC40 = 1 ]; then d="gcc40"; fi
  45. if [ $ROCKCFG_PKG_GCC_GCC41 = 1 ]; then d="gcc41"; fi
  46. k=""; for x in $l; do
  47. k="$k $x Use_${x}_as_standard_C_compiler"
  48. done
  49. choice ROCKCFG_DEFAULT_CC $d $k
  50. k=""; for x in $l; do
  51. k="$k $x Use_${x}_as_standard_Kernel_C_compiler"
  52. done
  53. choice ROCKCFG_DEFAULT_KCC $d $k
  54. k=""; for x in $l; do
  55. k="$k $x Use_${x}_as_standard_C++_compiler"
  56. done
  57. choice ROCKCFG_DEFAULT_CXX $d $k
  58. k=""; for x in $l; do
  59. k="$k $x Use_${x}_as_standard_Fortran_compiler"
  60. done
  61. choice ROCKCFG_DEFAULT_F77 $d $k
  62. # build non-default CCs in stages 5 and 9
  63. # and a dedicated C++ compiler in stages 2 and 9
  64. k=""; for x in gcc2 gcc32 gcc33 gcc34 gcc40 gcc41; do
  65. if [ "$ROCKCFG_DEFAULT_CC" != "$x" ] ; then
  66. if [ "$ROCKCFG_DEFAULT_CXX" != "$x" ]; then
  67. k="$k / gcc=$x / { s/^\(.\) [0-9-]*/\1 -----5---9/; s/ CORE //g; };"
  68. else
  69. k="$k / gcc=$x / s/^\(.\) [0-9-]*/\1 --2------9/;"
  70. fi
  71. fi
  72. done
  73. pkgfilter sed -e "$k"
  74. bool 'Use Stack-Smashing Protector when available' \
  75. ROCKCFG_PKG_GCC_STACKPRO 0
  76. %include package/*/*/subconfig-gcc.in
  77. if pkgcheck gcc=gcc2 X; then
  78. comment ' '
  79. comment '--- GCC 2.x options'
  80. bool 'Do not build CHILL compiler' \
  81. ROCKCFG_PKG_GCC2_NO_CHILL 1
  82. %include package/*/*/subconfig-gcc2.in
  83. fi
  84. if pkgcheck gcc=gcc32 X; then
  85. comment ' '
  86. comment '--- GCC 3.2.x options'
  87. bool 'Do not build JAVA compiler' \
  88. ROCKCFG_PKG_GCC32_NO_JAVA 1
  89. %include package/*/*/subconfig-gcc32.in
  90. fi
  91. if pkgcheck gcc=gcc33 X; then
  92. comment ' '
  93. comment '--- GCC 3.3.x options'
  94. bool 'Do not build JAVA compiler' \
  95. ROCKCFG_PKG_GCC33_NO_JAVA 1
  96. %include package/*/*/subconfig-gcc33.in
  97. fi
  98. if pkgcheck gcc=gcc34 X; then
  99. comment ' '
  100. comment '--- GCC 3.4.x options'
  101. bool 'Do not build JAVA compiler' \
  102. ROCKCFG_PKG_GCC34_NO_JAVA 1
  103. bool 'Do profiled bootstrap' \
  104. ROCKCFG_PKG_GCC34_PROFILED 1
  105. %include package/*/*/subconfig-gcc34.in
  106. fi
  107. if pkgcheck gcc=gcc40 X; then
  108. comment ' '
  109. comment '--- GCC 4.0.x options'
  110. bool 'Do not build JAVA compiler' \
  111. ROCKCFG_PKG_GCC40_NO_JAVA 1
  112. bool 'Do profiled bootstrap' \
  113. ROCKCFG_PKG_GCC40_PROFILED 1
  114. %include package/*/*/subconfig-gcc40.in
  115. fi
  116. if pkgcheck gcc=gcc41 X; then
  117. comment ' '
  118. comment '--- GCC 4.1.x options'
  119. bool 'Do not build JAVA compiler' \
  120. ROCKCFG_PKG_GCC41_NO_JAVA 1
  121. bool 'Do profiled bootstrap' \
  122. ROCKCFG_PKG_GCC41_PROFILED 1
  123. %include package/*/*/subconfig-gcc41.in
  124. fi
  125. menu_end
  126. fi