diff options
author | Bruno Haible <bruno@clisp.org> | 2009-12-23 03:41:34 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-12-23 03:41:34 +0100 |
commit | 674d5d1d539840702930a21365d61c91a6962ee6 (patch) | |
tree | 38e7e286e636d1150767458a4c8d91d3bdb92cd3 /m4/btowc.m4 | |
parent | adbded99ab66dd4da5daa65db02fe890ab3e9729 (diff) | |
download | gnulib-674d5d1d539840702930a21365d61c91a6962ee6.tar.gz |
wchar: Diagnose broken combination of glibc and gcc versions and flags.
Diffstat (limited to 'm4/btowc.m4')
-rw-r--r-- | m4/btowc.m4 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/m4/btowc.m4 b/m4/btowc.m4 index b46f74fbb9..ce435735c9 100644 --- a/m4/btowc.m4 +++ b/m4/btowc.m4 @@ -1,4 +1,4 @@ -# btowc.m4 serial 4 +# btowc.m4 serial 5 dnl Copyright (C) 2008-2009 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -8,6 +8,11 @@ AC_DEFUN([gl_FUNC_BTOWC], [ AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) + dnl Check whether <wchar.h> is usable at all, first. Otherwise the test + dnl program below may lead to an endless loop. See + dnl <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42440>. + AC_REQUIRE([gl_WCHAR_H_INLINE_OK]) + AC_CHECK_FUNCS_ONCE([btowc]) if test $ac_cv_func_btowc = no; then HAVE_BTOWC=0 |