]> arthur.barton.de Git - ngircd-alex.git/commitdiff
automake: enable colored test output, if available
authorAlexander Barton <alex@barton.de>
Mon, 24 Sep 2012 15:43:02 +0000 (17:43 +0200)
committerAlexander Barton <alex@barton.de>
Mon, 24 Sep 2012 15:43:02 +0000 (17:43 +0200)
The "color-tests" option can't be checked for, but is available starting
with automake 1.11 which introduced AM_SILENT_RULES -- so we check this ...

configure.in

index 34c76e164e5fc06f21ba7078727d8401b45c4166..ac7c0cbd72879817c417487aaf076d4e2f5c98eb 100644 (file)
 
 define(VERSION_ID,esyscmd(git describe|sed -e 's/rel-//g'|sed -e 's/-/~/'|tr -d \\n))
 
+m4_ifdef([AM_SILENT_RULES],
+       [m4_define([ng_color_tests], [color-tests])],
+       [m4_define([ng_color_tests], [])])
+
 # -- Initialisation --
 
 AC_PREREQ([2.61])
@@ -21,7 +25,7 @@ AC_CONFIG_SRCDIR([src/ngircd/ngircd.c])
 AC_CONFIG_HEADER([src/config.h])
 AC_CANONICAL_HOST
 
-AM_INIT_AUTOMAKE([1.10])
+AM_INIT_AUTOMAKE([-Wall 1.10 ]ng_color_tests)
 
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])