[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: btwowc(EOF) hang with gcc 4.4.2

From: Eric Blake
Subject: Re: btwowc(EOF) hang with gcc 4.4.2
Date: Tue, 22 Dec 2009 22:22:18 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Bruno Haible <bruno <at> clisp.org> writes:

> Here is a proposed change to m4/wchar.m4 that diagnoses the problem before
> the btowc test program is even compiled.

Yes, that is a nicer approach.

>  [
> @@ -34,6 +34,8 @@
>      WCHAR_H=wchar.h
>    fi

Why not AC_REQUIRE it here?

> +  if test $gl_cv_header_wchar_h_correct_inline = no; then
> +    AC_MSG_ERROR([<wchar.h> cannot be used with this compiler ($CC $CFLAGS).

Must we error out, or can we use AC_DEFINE/AC_SUBST to make our <wchar.h> 
substitute work around the problem by never calling #include_next?  In other 
words, can't we treat things like the system <wchar.h> doesn't exist?  All of 
the other system headers that #include <wchar.h> will pick up our working 

Once we solve that issue, then yes, I'm in favor of your approach.

Eric Blake

reply via email to

[Prev in Thread] Current Thread [Next in Thread]