X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fbtowc.m4;h=2c75c8fb02a6e8794a140f44f4ce49d86028e4df;hb=6c53c9025551ed72e7011f8de83aca2639bc5bfa;hp=b46f74fbb9836367b7ad8e5e1b428aea627852d4;hpb=f66b53461406b5ae5cca7c188bd3cf23c82f14bf;p=gnulib.git diff --git a/m4/btowc.m4 b/m4/btowc.m4 index b46f74fbb..2c75c8fb0 100644 --- a/m4/btowc.m4 +++ b/m4/btowc.m4 @@ -1,5 +1,5 @@ -# btowc.m4 serial 4 -dnl Copyright (C) 2008-2009 Free Software Foundation, Inc. +# btowc.m4 serial 5 +dnl Copyright (C) 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -8,6 +8,11 @@ AC_DEFUN([gl_FUNC_BTOWC], [ AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) + dnl Check whether is usable at all, first. Otherwise the test + dnl program below may lead to an endless loop. See + dnl . + AC_REQUIRE([gl_WCHAR_H_INLINE_OK]) + AC_CHECK_FUNCS_ONCE([btowc]) if test $ac_cv_func_btowc = no; then HAVE_BTOWC=0