This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: AUTOMAKE_OPTIONS= -Werror
- From: Harlan Stenn <hstenn at cisco dot com>
- To: Harlan Stenn <hstenn at cisco dot com>
- Cc: Alexandre Duret-Lutz <adl at src dot lip6 dot fr>, hstenn at cisco dot com, automake at gnu dot org
- Date: Mon, 26 Apr 2004 21:22:44 -0700
- Subject: Re: AUTOMAKE_OPTIONS= -Werror
So I'm using AM_INIT_AUTOMAKE([-Werror]) and it seems to work.
I do notice this, however:
> Edit Makefile.am bogusly
> gmake
cd /sourceplace && /bin/sh /sourceplace/config/missing --run automake-1.8 --foreign libcdb/Makefile:global-vars.mk:libcdb/Makefile.in
libcdb/Makefile.am:27: AM_CFLAGS multiply defined in condition TRUE ...
build/config.files/am-normal.am:6: ... `AM_CFLAGS' previously defined here
libcdb/Makefile.am:24: `build/config.files/am-normal.am' included from here
make: *** [/sourceplace/libcdb/Makefile.in] Error 1
> gmake
cd../.. && /bin/sh ./config.status libcdb/Makefile depfiles
config.status: creating libcdb/Makefile
config.status: executing depfiles commands
Finished /sourceplace/A.whereverlibcdb
And developers being developers, I am concerned that the "remake" did not
also fail.
H