From ed83cd50fe586a993e4af18a6345383391711f18 Mon Sep 17 00:00:00 2001 From: Nedko Arnaudov Date: Sat, 25 Aug 2007 13:14:17 +0000 Subject: [PATCH] Ease new version release process by auto-adjusting flags (-Werror) git-svn-id: svn://svn.gna.org/svn/jackmixer/code@88 330dde89-2920-0410-a79a-889b863ea5ce --- Makefile.am | 6 +++++- configure.ac | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 5b55be3..bf38c1a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -17,7 +17,11 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. # -AM_CFLAGS = @JACK_CFLAGS@ -D_GNU_SOURCE -Wall -Werror -fno-strict-aliasing +AM_CFLAGS = @JACK_CFLAGS@ -D_GNU_SOURCE -Wall -fno-strict-aliasing +if DEV_VERSION +AM_CFLAGS += -Werror +endif + INCLUDES = $(PYTHON_INCLUDES) jack_mixerdir = $(pkgdatadir) diff --git a/configure.ac b/configure.ac index 330949c..f7df0cb 100644 --- a/configure.ac +++ b/configure.ac @@ -25,6 +25,9 @@ AC_CONFIG_AUX_DIR(config) AM_INIT_AUTOMAKE AC_CONFIG_HEADER([config.h]) +# not real check but hack (because version is not parameter to configure script) to detect development version +AM_CONDITIONAL(DEV_VERSION, test $VERSION = dev) + AC_SUBST(DATADIR) # Checks for programs. -- 2.11.4.GIT