]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Extra hack for NetBSD.
authorBruno Haible <bruno@clisp.org>
Fri, 20 Jun 2003 10:31:12 +0000 (10:31 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:10:43 +0000 (12:10 +0200)
gettext-tools/m4/locale-fr.m4

index 7788af9468ba85a44e301bcdbf6d58d0f6bca572..ee9707c47bdab2706056d1c4723dfce2c5fbc91a 100644 (file)
@@ -37,7 +37,7 @@ changequote([,])dnl
       else
         # Test for the locale name with explicit encoding suffix.
         if (LC_ALL=fr_FR.ISO-8859-1 ./conftest; exit) 2>/dev/null; then
-          gt_cv_locale_fr=fr_FR
+          gt_cv_locale_fr=fr_FR.ISO-8859-1
         else
           # Test for the AIX, OSF/1, FreeBSD, NetBSD locale name.
           if (LC_ALL=fr_FR.ISO8859-1 ./conftest; exit) 2>/dev/null; then
@@ -47,8 +47,13 @@ changequote([,])dnl
             if (LC_ALL=fr_FR.iso88591 ./conftest; exit) 2>/dev/null; then
               gt_cv_locale_fr=fr_FR.iso88591
             else
-              # None found.
-              gt_cv_locale_fr=fr_FR
+              # Special test for NetBSD 1.6.
+              if test -f /usr/share/locale/fr_FR.ISO8859-1/LC_CTYPE; then
+                gt_cv_locale_fr=fr_FR.ISO8859-1
+              else
+                # None found.
+                gt_cv_locale_fr=fr_FR
+              fi
             fi
           fi
         fi