[lasem/lasem-0-4] Adopt GNOME compile warnings (if available)



commit c3d0bf12f2ef98202d217e5c5b72819a46386801
Author: J.H.M. Dassen (Ray) <jdassen debian org>
Date:   Tue Jan 1 12:17:02 2013 +0100

    Adopt GNOME compile warnings (if available)

 configure.ac |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 7fbcd6f..fc0d643 100644
--- a/configure.ac
+++ b/configure.ac
@@ -47,6 +47,12 @@ PKG_CHECK_MODULES(LASEM, [gobject-2.0
 # a pkgconfig file.
 LASEM_LIBS="${LASEM_LIBS} -lm"
 
+## this should come after `AC_PROG_CC'
+ifdef([GNOME_COMPILE_WARNINGS],
+	[GNOME_COMPILE_WARNINGS] CFLAGS="$CFLAGS $WARN_CFLAGS",
+	[]
+)
+
 AC_SUBST(LASEM_CFLAGS)
 AC_SUBST(LASEM_LIBS)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]