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.

127 lines
4.1 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/gcc3/config-300.in
  9. # ROCK Linux is Copyright (C) 1998 - 2003 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. menu_begin MENU_COMPILER 'Selecting compiler'
  23. pkgout
  24. default='' ; list=''
  25. while read pkg ver ; do
  26. default=${default:-$pkg} ; [ $pkg = gcc3 ] && default=gcc3
  27. list="$list $pkg Use_${pkg}_($ver)_as_standard_C_compiler"
  28. done < <(grep "^X .* CC " config/$config/packages | cut -f5,6 -d' ')
  29. if [ -z "$default" ] ; then
  30. default="cc" ; list="cc Standard_C-Compiler_CC"
  31. fi
  32. choice ROCKCFG_DEFAULT_CC $default $list
  33. # do not build non-default gcc on stages 0 or 1
  34. if [ "$ROCKCFG_DEFAULT_CC" != "gcc2" ]; then
  35. pkgfilter sed -e '/ gcc2 / s/^\(..\)../\1--/'
  36. fi
  37. if [ "$ROCKCFG_DEFAULT_CC" != "gcc3" ]; then
  38. pkgfilter sed -e '/ gcc3 / s/^\(..\)../\1--/'
  39. fi
  40. if [ "$ROCKCFG_DEFAULT_CC" != "gcc33" ]; then
  41. pkgfilter sed -e '/ gcc33 / s/^\(..\)../\1--/'
  42. fi
  43. if [ "$ROCKCFG_DEFAULT_CC" != "gccx" ]; then
  44. pkgfilter sed -e '/ gccx / s/^\(..\)../\1--/'
  45. fi
  46. pkgout
  47. default='' ; list=''
  48. while read pkg ver ; do
  49. default=${default:-$pkg} ; [ $pkg = gcc3 ] && default=gcc3
  50. list="$list $pkg Use_${pkg}_($ver)_as_kernel_C_compiler"
  51. done < <(grep "^X .* KCC " config/$config/packages | cut -f5,6 -d' ')
  52. if [ -z "$default" ] ; then
  53. default="kcc" ; list="kcc Standard_Kernel_C-Compiler_KCC"
  54. fi
  55. choice ROCKCFG_DEFAULT_KCC $default $list
  56. pkgout
  57. default='' ; list=''
  58. while read pkg ver ; do
  59. default=${default:-$pkg} ; [ $pkg = gcc3 ] && default=gcc3
  60. list="$list $pkg Use_${pkg}_($ver)_as_standard_C++_compiler"
  61. done < <(grep "^X .* CXX " config/$config/packages | cut -f5,6 -d' ')
  62. if [ -z "$default" ] ; then
  63. default="c++" ; list="c++ Standard_C++-Compiler_C++"
  64. fi
  65. choice ROCKCFG_DEFAULT_CXX $default $list
  66. pkgout
  67. default='' ; list=''
  68. while read pkg ver ; do
  69. default=${default:-$pkg} ; [ $pkg = gcc3 ] && default=gcc3
  70. list="$list $pkg Use_${pkg}_($ver)_as_standard_F77_compiler"
  71. done < <(grep "^X .* F77 " config/$config/packages | cut -f5,6 -d' ')
  72. if [ -z "$default" ] ; then
  73. default="f77" ; list="f77 Standard_Fortran-Compiler_F77"
  74. fi
  75. choice ROCKCFG_DEFAULT_F77 $default $list
  76. menu_end
  77. if pkgcheck gcc3 X && pkgcheck gcc33 X; then
  78. comment ' '
  79. comment 'WARNING: gcc3 and gcc33 are not designed to work together!!'
  80. comment 'WARNING: please disable one of them.'
  81. fi
  82. if pkgcheck "gcc2|gcc3|gcc33|gccx" X; then
  83. menu_begin MENU_PKG_GCC 'GCC (GNU Compiler Collection) options'
  84. bool 'Use Stack-Smashing Protector when available' \
  85. ROCKCFG_PKG_GCC_STACKPRO 0
  86. %include package/*/*/subconfig-gcc.in
  87. if pkgcheck gcc2 X; then
  88. comment ' '
  89. comment '--- GCC 2.x options'
  90. bool 'Do not build CHILL compiler' \
  91. ROCKCFG_PKG_GCC2_NO_CHILL 0
  92. %include package/*/*/subconfig-gcc2.in
  93. fi
  94. if pkgcheck gcc3 X; then
  95. comment ' '
  96. comment '--- GCC 3.2.x options'
  97. bool 'Do not build JAVA compiler' \
  98. ROCKCFG_PKG_GCC3_NO_JAVA 0
  99. %include package/*/*/subconfig-gcc3.in
  100. fi
  101. if pkgcheck gcc33 X; then
  102. comment ' '
  103. comment '--- GCC 3.3.x options'
  104. bool 'Do not build JAVA compiler' \
  105. ROCKCFG_PKG_GCC33_NO_JAVA 0
  106. %include package/*/*/subconfig-gcc33.in
  107. fi
  108. if pkgcheck gccx X; then
  109. comment ' '
  110. comment '--- GCC-snapshot options'
  111. bool 'Do not build JAVA compiler' \
  112. ROCKCFG_PKG_GCCX_NO_JAVA 0
  113. %include package/*/*/subconfig-gccx.in
  114. fi
  115. menu_end
  116. fi