configure: Use -Wundef if supported by the compiler.

Gerald Pfeifer gerald at
Mon Jan 3 18:23:58 CST 2011

On Mon, 3 Jan 2011, Alexandre Julliard wrote:
>> I verified this does not cause any warning on FreeBSD 8.1 test
>> builds, and all the tools like bison and flex in somewhat current
>> versions.
> It's broken here with bison 2.4.1:
> make[1]: Entering directory `/home/julliard/wine/wine/libs/wpp'
> gcc -m32 -c -I. -I. -I../../include -I../../include   -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wtype-limits -Wundef -Wwrite-strings -Wpointer-arith -Werror  -g -O2  -o
> error: "YYENABLE_NLS" is not defined
> error: "YYLTYPE_IS_TRIVIAL" is not defined
> make[1]: *** [] Error 1

This does not occur with bison 2.4.3.  I investigated, and it seems
this was actually fixed with bision 2.4.2:

Checking this via autoconf sounds a bit involved.  Do you have a
recommendation?  Perhaps just wait until "Alexandre runs bison 2.4.2
or later on all his machines"? ;-)


More information about the wine-devel mailing list