This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: Patch: checking for locale.h


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi list,


I commited the attached obvious patch to acinclude.m4 to check if the 
header locale.h exists before using the resulting value of this 
check.


Michael
- -- 
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/cS5cWSOgCCdjSDsRAhn6AJ4z9AN2ir/RT0cS+AvMi9IcWHYhHwCfRWCM
3Ai03gvTVzlUkleIj5/iM30=
=I2EW
-----END PGP SIGNATURE-----
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.2167
diff -u -b -B -r1.2167 ChangeLog
--- ChangeLog	22 Sep 2003 08:05:50 -0000	1.2167
+++ ChangeLog	24 Sep 2003 05:35:58 -0000
@@ -1,3 +1,7 @@
+2003-09-24  Michael Koch  <konqueror@gmx.de>
+
+	* acinclude.m4 (AM_LC_LOCALES): Added check for locale.h.
+
 2003-09-22  Michael Koch  <konqueror@gmx.de>
 
 	* jni.cc (_Jv_LookupJNIMethod): Remove workaround that should hide a
Index: acinclude.m4
===================================================================
RCS file: /cvs/gcc/gcc/libjava/acinclude.m4,v
retrieving revision 1.24
diff -u -b -B -r1.24 acinclude.m4
--- acinclude.m4	6 Aug 2003 02:49:44 -0000	1.24
+++ acinclude.m4	24 Sep 2003 05:35:58 -0000
@@ -234,7 +234,8 @@
 # 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)])

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]