diff options
author | Bryce McKinlay <mckinlay@redhat.com> | 2004-10-20 21:36:47 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2004-10-20 22:36:47 +0100 |
commit | a03ea89be35173d7ec33cc329fbb565382c18418 (patch) | |
tree | fce1781edbf9acb00fb268e3b247868f4fc209db /gcc/aclocal.m4 | |
parent | d99d0f209ccbe2513d41226a9e1ab06394526867 (diff) | |
download | gcc-a03ea89be35173d7ec33cc329fbb565382c18418.tar.gz |
re PR java/15575 (HAVE_LANGINFO_CODESET never defined)
2004-10-20 Bryce McKinlay <mckinlay@redhat.com>
PR java/15575
* configure.ac: Declare AM_LANGINFO_CODESET.
* aclocal.m4: Define AM_LANGINFO_CODESET.
* configure, config.in: Rebuilt.
From-SVN: r89345
Diffstat (limited to 'gcc/aclocal.m4')
-rw-r--r-- | gcc/aclocal.m4 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/aclocal.m4 b/gcc/aclocal.m4 index 7bf291323e8..dfcc20be148 100644 --- a/gcc/aclocal.m4 +++ b/gcc/aclocal.m4 @@ -433,6 +433,22 @@ AC_CACHE_CHECK(for __int64, ac_cv_c___int64, fi ]) +dnl From Bruno Haible. + +AC_DEFUN([AM_LANGINFO_CODESET], +[ + AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset, + [AC_TRY_LINK([#include <langinfo.h>], + [char* cs = nl_langinfo(CODESET);], + am_cv_langinfo_codeset=yes, + am_cv_langinfo_codeset=no) + ]) + if test $am_cv_langinfo_codeset = yes; then + AC_DEFINE(HAVE_LANGINFO_CODESET, 1, + [Define if you have <langinfo.h> and nl_langinfo(CODESET).]) + fi +]) + AC_DEFUN([gcc_AC_INITFINI_ARRAY], [AC_ARG_ENABLE(initfini-array, [ --enable-initfini-array use .init_array/.fini_array sections], |