Enable -Werror in maintainer mode

This commit is contained in:
Jesse van den Kieboom 2010-05-29 18:01:14 +02:00
parent 0c14b150e1
commit ecc4e1baad

View file

@ -71,6 +71,13 @@ AC_ARG_ENABLE([bundle],
[enable_bundle=$enableval],
[enable_bundle=no])
if test "x$USE_MAINTAINER_MODE" = "xyes"; then
PACKAGE_CFLAGS="$PACKAGE_CFLAGS -Wall -Werror -Wuninitialized -Wmissing-declarations"
fi
AC_SUBST(PACKAGE_CFLAGS)
AC_SUBST(PACKAGE_LIBS)
if test "$enable_bundle" = "yes"; then
AC_DEFINE([ENABLE_BUNDLE],[1],[Defined if building bundle])
fi