summaryrefslogtreecommitdiff
path: root/gcc/aclocal.m4
diff options
context:
space:
mode:
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-20 21:36:47 +0000
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-20 21:36:47 +0000
commitac31415f468cd518a195c09fdbf2d4395c945a40 (patch)
treefce1781edbf9acb00fb268e3b247868f4fc209db /gcc/aclocal.m4
parent9067a7e23b5c6991fec51e233f850322ad20d0cc (diff)
downloadgcc-ac31415f468cd518a195c09fdbf2d4395c945a40.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89345 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/aclocal.m4')
-rw-r--r--gcc/aclocal.m416
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],