Fix: bootstrap with autoconf >= 2.70
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 17 Feb 2021 17:27:20 +0000 (12:27 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 19 Feb 2021 21:35:46 +0000 (16:35 -0500)
We want to enable all warnings and treat them as errors when running
autoreconf but we have to disable 'obsolete' because of
AM_PATH_GLIB_2_0. Turns out that autoconf >= 2.70 will drop all other
warnings categories when 'all' is used. So the only way to enable all
categories but 'obsolete' is to list them all.

Change-Id: I6fae9c86130d79a1bc9d3bb7d0610a24d734532a
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
bootstrap

index 8702a76e1321786bcd738be3f5d5b42893d370f7..452813a46b4b4d7456f304a20d074b455a9051be 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -7,5 +7,8 @@ if [ ! -d "config" ]; then
 fi
 
 # Run autoreconf with all warning types as errors except
-# for 'obsolete' because of AM_PATH_GLIB_2_0
-autoreconf -vif -W all,error,no-obsolete
+# for 'obsolete' because of AM_PATH_GLIB_2_0, we have to
+# list all categories because when 'all' is used, autoreconf
+# will drop all the other specified categories except 'error'
+# even if they start with 'no-'.
+autoreconf -vif -W cross,gnu,no-obsolete,override,portability,portability-recursive,extra-portability,syntax,unsupported,error
This page took 0.024993 seconds and 4 git commands to generate.