From: David MacKenzie Date: Wed, 4 May 1994 14:44:23 +0000 (+0000) Subject: Make the NLS X-Git-Tag: fsf-origin~646 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b2ae0ec4cd3a5f6193de226629cce3c58353f31;p=thirdparty%2Fautoconf.git Make the NLS nuisance test actually do something. --- diff --git a/autoconf.in b/autoconf.in index e222c0a8c..80ff894e7 100644 --- a/autoconf.in +++ b/autoconf.in @@ -24,10 +24,11 @@ usage="Usage: autoconf [-h] [--help] [-m dir] [--macrodir=dir] [-v] [--version] [template-file]" # NLS nuisances. +# Only set `LANG' and `LC_ALL' to "C" if already set. # These must not be set unconditionally because not all systems understand # e.g. LANG=C (notably SCO). -if test "${LC_ALL+set}" = 'set' ; then LC_ALL=C; export LC_ALL; fi -if test "${LANG+set}" = 'set' ; then LANG=C; export LANG; fi +if test "${LC_ALL-unset}" != unset; then LC_ALL=C; export LC_ALL; fi +if test "${LANG-unset}" != unset; then LANG=C; export LANG; fi test -z "${AC_MACRODIR}" && AC_MACRODIR=@datadir@ test -z "${M4}" && M4=@M4@ diff --git a/autoconf.sh b/autoconf.sh index e222c0a8c..80ff894e7 100644 --- a/autoconf.sh +++ b/autoconf.sh @@ -24,10 +24,11 @@ usage="Usage: autoconf [-h] [--help] [-m dir] [--macrodir=dir] [-v] [--version] [template-file]" # NLS nuisances. +# Only set `LANG' and `LC_ALL' to "C" if already set. # These must not be set unconditionally because not all systems understand # e.g. LANG=C (notably SCO). -if test "${LC_ALL+set}" = 'set' ; then LC_ALL=C; export LC_ALL; fi -if test "${LANG+set}" = 'set' ; then LANG=C; export LANG; fi +if test "${LC_ALL-unset}" != unset; then LC_ALL=C; export LC_ALL; fi +if test "${LANG-unset}" != unset; then LANG=C; export LANG; fi test -z "${AC_MACRODIR}" && AC_MACRODIR=@datadir@ test -z "${M4}" && M4=@M4@ diff --git a/autoheader.in b/autoheader.in index ccba6beb1..5092901a4 100644 --- a/autoheader.in +++ b/autoheader.in @@ -26,10 +26,11 @@ usage="Usage: autoheader [-h] [--help] [-m dir] [--macrodir=dir] [-v] [--version] [template-file]" # NLS nuisances. +# Only set `LANG' and `LC_ALL' to "C" if already set. # These must not be set unconditionally because not all systems understand # e.g. LANG=C (notably SCO). -if test "${LC_ALL+set}" = 'set' ; then LC_ALL=C; export LC_ALL; fi -if test "${LANG+set}" = 'set' ; then LANG=C; export LANG; fi +if test "${LC_ALL-unset}" != unset; then LC_ALL=C; export LC_ALL; fi +if test "${LANG-unset}" != unset; then LANG=C; export LANG; fi test -z "${AC_MACRODIR}" && AC_MACRODIR=@datadir@ test -z "${M4}" && M4=@M4@ diff --git a/autoheader.sh b/autoheader.sh index ccba6beb1..5092901a4 100644 --- a/autoheader.sh +++ b/autoheader.sh @@ -26,10 +26,11 @@ usage="Usage: autoheader [-h] [--help] [-m dir] [--macrodir=dir] [-v] [--version] [template-file]" # NLS nuisances. +# Only set `LANG' and `LC_ALL' to "C" if already set. # These must not be set unconditionally because not all systems understand # e.g. LANG=C (notably SCO). -if test "${LC_ALL+set}" = 'set' ; then LC_ALL=C; export LC_ALL; fi -if test "${LANG+set}" = 'set' ; then LANG=C; export LANG; fi +if test "${LC_ALL-unset}" != unset; then LC_ALL=C; export LC_ALL; fi +if test "${LANG-unset}" != unset; then LANG=C; export LANG; fi test -z "${AC_MACRODIR}" && AC_MACRODIR=@datadir@ test -z "${M4}" && M4=@M4@ diff --git a/bin/autoconf.in b/bin/autoconf.in index e222c0a8c..80ff894e7 100644 --- a/bin/autoconf.in +++ b/bin/autoconf.in @@ -24,10 +24,11 @@ usage="Usage: autoconf [-h] [--help] [-m dir] [--macrodir=dir] [-v] [--version] [template-file]" # NLS nuisances. +# Only set `LANG' and `LC_ALL' to "C" if already set. # These must not be set unconditionally because not all systems understand # e.g. LANG=C (notably SCO). -if test "${LC_ALL+set}" = 'set' ; then LC_ALL=C; export LC_ALL; fi -if test "${LANG+set}" = 'set' ; then LANG=C; export LANG; fi +if test "${LC_ALL-unset}" != unset; then LC_ALL=C; export LC_ALL; fi +if test "${LANG-unset}" != unset; then LANG=C; export LANG; fi test -z "${AC_MACRODIR}" && AC_MACRODIR=@datadir@ test -z "${M4}" && M4=@M4@ diff --git a/bin/autoheader.in b/bin/autoheader.in index ccba6beb1..5092901a4 100644 --- a/bin/autoheader.in +++ b/bin/autoheader.in @@ -26,10 +26,11 @@ usage="Usage: autoheader [-h] [--help] [-m dir] [--macrodir=dir] [-v] [--version] [template-file]" # NLS nuisances. +# Only set `LANG' and `LC_ALL' to "C" if already set. # These must not be set unconditionally because not all systems understand # e.g. LANG=C (notably SCO). -if test "${LC_ALL+set}" = 'set' ; then LC_ALL=C; export LC_ALL; fi -if test "${LANG+set}" = 'set' ; then LANG=C; export LANG; fi +if test "${LC_ALL-unset}" != unset; then LC_ALL=C; export LC_ALL; fi +if test "${LANG-unset}" != unset; then LANG=C; export LANG; fi test -z "${AC_MACRODIR}" && AC_MACRODIR=@datadir@ test -z "${M4}" && M4=@M4@