summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libjava/ChangeLog4
-rw-r--r--libjava/acinclude.m43
2 files changed, 6 insertions, 1 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 2e852787a8b..cadf1aad75a 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,7 @@
+2003-09-24 Michael Koch <konqueror@gmx.de>
+
+ * acinclude.m4 (AM_LC_LOCALES): Added check for locale.h.
+
2003-09-24 Bryce McKinlay <bryce@mckinlay.net.nz>
* gnu/java/net/PlainSocketImpl.java (read): Remove declaration.
diff --git a/libjava/acinclude.m4 b/libjava/acinclude.m4
index e25b1aed1ad..cb42f3d144e 100644
--- a/libjava/acinclude.m4
+++ b/libjava/acinclude.m4
@@ -234,7 +234,8 @@ size_t iconv();
# serial 2
AC_DEFUN([AM_LC_MESSAGES],
- [if test $ac_cv_header_locale_h = yes; then
+ [AC_CHECK_HEADERS(locale.h)
+ if test $ac_cv_header_locale_h = yes; then
AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])