2003-09-04 Theodore A. Roth * Makefile.am: Change AM_CPPFLAGS to avrdude_CPPFLAGS. Define avrdude_CFLAGS. * configure.ac: Set ENABLE_WARNINGS to "-Wall -Werror" if using gcc. Index: Makefile.am =================================================================== RCS file: /cvsroot/avrdude/avrdude/Makefile.am,v retrieving revision 1.16 diff -u -r1.16 Makefile.am --- Makefile.am 13 Mar 2003 03:52:18 -0000 1.16 +++ Makefile.am 5 Sep 2003 02:09:44 -0000 @@ -39,7 +39,9 @@ AM_YFLAGS = -d -AM_CPPFLAGS = -DCONFIG_DIR=\"$(sysconfdir)\" +avrdude_CPPFLAGS = -DCONFIG_DIR=\"$(sysconfdir)\" + +avrdude_CFLAGS = @ENABLE_WARNINGS@ bin_PROGRAMS = avrdude Index: configure.ac =================================================================== RCS file: /cvsroot/avrdude/avrdude/configure.ac,v retrieving revision 1.12 diff -u -r1.12 configure.ac --- configure.ac 5 May 2003 02:29:28 -0000 1.12 +++ configure.ac 5 Sep 2003 02:09:44 -0000 @@ -125,6 +125,12 @@ esac AC_SUBST(WINDOWS_DIRS,$WINDOWS_DIRS) +# If we are compiling with gcc, enable all warning and make warnings errors. +if test "$GCC" = yes; then + ENABLE_WARNINGS="-Wall -Werror" +fi +AC_SUBST(ENABLE_WARNINGS,$ENABLE_WARNINGS) + AC_CONFIG_FILES([ doc/Makefile windows/Makefile