Index: acinclude.m4 =================================================================== RCS file: /home/freeciv/CVS/freeciv/acinclude.m4,v retrieving revision 1.11 diff -u -r1.11 acinclude.m4 --- acinclude.m4 2002/02/06 17:47:52 1.11 +++ acinclude.m4 2002/04/06 17:29:23 @@ -488,6 +488,8 @@ [ templibs="$LIBS" LIBS="$1 $LIBS" +templang="$LANG" +LANG="de_DE" AC_TRY_RUN([ /* * Check to make sure that ngettext works at runtime. Specifically, @@ -501,7 +503,6 @@ int main(int argc, char *argv[]) { - setenv("LANG", "de_DE", 1); setlocale(LC_ALL, ""); if (strcmp(ngettext("unit", "units", 1), "unit") == 0 && @@ -519,6 +520,7 @@ [AC_MSG_RESULT(unknown: cross-compiling) [$2]]) LIBS="$templibs" +LANG="$templang" ]) dnl @synopsis AC_FUNC_VSNPRINTF Index: aclocal.m4 =================================================================== RCS file: /home/freeciv/CVS/freeciv/aclocal.m4,v retrieving revision 1.22 diff -u -r1.22 aclocal.m4 --- aclocal.m4 2002/03/23 19:05:26 1.22 +++ aclocal.m4 2002/04/06 17:29:24 @@ -500,6 +500,8 @@ [ templibs="$LIBS" LIBS="$1 $LIBS" +templang="$LANG" +LANG="de_DE" AC_TRY_RUN([ /* * Check to make sure that ngettext works at runtime. Specifically, @@ -513,7 +515,6 @@ int main(int argc, char *argv[]) { - setenv("LANG", "de_DE", 1); setlocale(LC_ALL, ""); if (strcmp(ngettext("unit", "units", 1), "unit") == 0 && @@ -531,6 +532,7 @@ [AC_MSG_RESULT(unknown: cross-compiling) [$2]]) LIBS="$templibs" +LANG="$templang" ]) dnl @synopsis AC_FUNC_VSNPRINTF