s3-configure: Add CFLAGS_APPEND variable
authorVolker Lendecke <vl@samba.org>
Sat, 25 Feb 2012 22:42:52 +0000 (23:42 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 26 Feb 2012 00:21:48 +0000 (01:21 +0100)
This makes it possible to add some CFLAGS to the end of the CFLAGS list. I use
it for adding -Wno-unused-value when compiling with clang.

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Sun Feb 26 01:21:49 CET 2012 on sn-devel-104

source3/configure.in

index dc47f13ff6772cfc10b22f9161bca81b33feccfe..6c7c3b09690994b3f87e507f7df3c5b04b379805 100644 (file)
@@ -7183,7 +7183,7 @@ AC_TRY_RUN([#include "${srcdir-.}/../tests/summary.c"],
 dnl Merge in developer cflags from now on
 AC_SUBST(DEVELOPER_CFLAGS)
 if test x"$krb5_developer" = x"yes" -o x"$developer" = x"yes" -o x"$picky_developer" = x"yes"; then
-    CFLAGS="${CFLAGS} \$(DEVELOPER_CFLAGS)"
+    CFLAGS="${CFLAGS} \$(DEVELOPER_CFLAGS) ${CFLAGS_APPEND}"
 fi
 
 # Stuff the smbd-only libraries at the end of the smbd link