gcc-configure-LANG.patch 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. The LANG vars aren't reset early enough so when sed tries to use [a-zA-Z] in
  2. option parsing, it may break.
  3. http://bugs.gentoo.org/103483
  4. --- configure
  5. +++ configure
  6. @@ -54,6 +54,19 @@
  7. infodir='${prefix}/info'
  8. mandir='${prefix}/man'
  9. +# NLS nuisances.
  10. +for as_var in \
  11. + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  12. + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  13. + LC_TELEPHONE LC_TIME
  14. +do
  15. + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  16. + eval $as_var=C; export $as_var
  17. + else
  18. + unset $as_var
  19. + fi
  20. +done
  21. +
  22. # Initialize some other variables.
  23. subdirs=
  24. MFLAGS= MAKEFLAGS=
  25. @@ -452,16 +463,6 @@
  26. esac
  27. done
  28. -# NLS nuisances.
  29. -# Only set these to C if already set. These must not be set unconditionally
  30. -# because not all systems understand e.g. LANG=C (notably SCO).
  31. -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  32. -# Non-C LC_CTYPE values break the ctype check.
  33. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  34. -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  35. -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  36. -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  37. -
  38. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  39. rm -rf conftest* confdefs.h
  40. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  41. @@ -1850,6 +1850,19 @@
  42. # Compiler output produced by configure, useful for debugging
  43. # configure, is in ./config.log if it exists.
  44. +# NLS nuisances.
  45. +for as_var in \
  46. + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  47. + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  48. + LC_TELEPHONE LC_TIME
  49. +do
  50. + if (set +x; test -z "`(eval \$as_var=C; export \$as_var) 2>&1`"); then
  51. + eval \$as_var=C; export \$as_var
  52. + else
  53. + unset \$as_var
  54. + fi
  55. +done
  56. +
  57. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  58. for ac_option
  59. do