]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Make the NLS
authorDavid MacKenzie <djm@djmnet.org>
Wed, 4 May 1994 14:44:23 +0000 (14:44 +0000)
committerDavid MacKenzie <djm@djmnet.org>
Wed, 4 May 1994 14:44:23 +0000 (14:44 +0000)
nuisance test actually do something.

autoconf.in
autoconf.sh
autoheader.in
autoheader.sh
bin/autoconf.in
bin/autoheader.in

index e222c0a8cfed0d6315d5e668521e389dfddb0334..80ff894e7e3a52360a75bd15a2aafb1a778e2e75 100644 (file)
@@ -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@
index e222c0a8cfed0d6315d5e668521e389dfddb0334..80ff894e7e3a52360a75bd15a2aafb1a778e2e75 100644 (file)
@@ -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@
index ccba6beb19026956867d42a3163186c015abc2a0..5092901a4a936d29109899b19225ca17402f5da0 100644 (file)
@@ -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@
index ccba6beb19026956867d42a3163186c015abc2a0..5092901a4a936d29109899b19225ca17402f5da0 100644 (file)
@@ -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@
index e222c0a8cfed0d6315d5e668521e389dfddb0334..80ff894e7e3a52360a75bd15a2aafb1a778e2e75 100644 (file)
@@ -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@
index ccba6beb19026956867d42a3163186c015abc2a0..5092901a4a936d29109899b19225ca17402f5da0 100644 (file)
@@ -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@