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.

70 lines
2.4 KiB

  1. #!/bin/bash
  2. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  3. #
  4. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  5. # Please add additional copyright information _after_ the line containing
  6. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  7. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  8. #
  9. # ROCK Linux: rock-src/package/base/gcc/config-300.in
  10. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  11. #
  12. # This program is free software; you can redistribute it and/or modify
  13. # it under the terms of the GNU General Public License as published by
  14. # the Free Software Foundation; either version 2 of the License, or
  15. # (at your option) any later version. A copy of the GNU General Public
  16. # License can be found at Documentation/COPYING.
  17. #
  18. # Many people helped and are helping developing ROCK Linux. Please
  19. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  20. # file for details.
  21. #
  22. # --- ROCK-COPYRIGHT-NOTE-END ---
  23. if pkgcheck "gcc=.*" X ; then
  24. menu_begin MENU_COMPILER 'GCC Compiler Options'
  25. bool 'Use Stack-Smashing Protector when available' \
  26. ROCKCFG_PKG_GCC_STACKPRO 0
  27. include "package/*/*/subconfig-gcc.in"
  28. for gcc_version in 2 32 33 34 40 41 42 43; do
  29. if eval pkgcheck gcc=gcc${gcc_version} X; then
  30. comment ' '
  31. comment "--- gcc${gcc_version} options"
  32. if [[ $gcc_version -eq 2 ]] ; then
  33. bool 'Build CHILL compiler' \
  34. ROCKCFG_PKG_GCC${gcc_version}_CHILL 1
  35. fi
  36. if [[ $gcc_version -ge 32 ]] ; then
  37. bool 'Build ADA compiler' \
  38. ROCKCFG_PKG_GCC${gcc_version}_ADA 0
  39. fi
  40. bool 'Build C++ compiler' \
  41. ROCKCFG_PKG_GCC${gcc_version}_CPP 1
  42. bool 'Build Fortran compiler' \
  43. ROCKCFG_PKG_GCC${gcc_version}_FORTRAN 1
  44. bool 'Build JAVA compiler' \
  45. ROCKCFG_PKG_GCC${gcc_version}_JAVA 0
  46. bool 'Build Objective C compiler' \
  47. ROCKCFG_PKG_GCC${gcc_version}_OBJC 1
  48. if [[ $gcc_version -gt 40 ]] ; then
  49. bool 'Build Objective C++ compiler' \
  50. ROCKCFG_PKG_GCC${gcc_version}_OBJCPP 1
  51. fi
  52. include "package/*/*/subconfig-gcc{$pkg_gcc_version}.in"
  53. if [[ $gcc_version -ge 40 ]] ; then
  54. bool 'Bootstrap the C compiler' \
  55. ROCKCFG_PKG_GCC${gcc_version}_BOOTSTRAP 1
  56. fi
  57. x="ROCKCFG_PKG_GCC${gcc_version}_BOOTSTRAP"
  58. if [ "${!x}" != 0 ] ; then
  59. if [[ $gcc_version -ge 34 ]] ; then
  60. bool 'Do profiled bootstrap' \
  61. ROCKCFG_PKG_GCC${gcc_version}_PROFILED 1
  62. fi
  63. fi
  64. fi
  65. done
  66. menu_end
  67. fi