[virt-tools-list] [virt-viewer] build-sys: Use automake 'subdir-objects' option

Christophe Fergeau cfergeau at redhat.com
Tue May 13 09:50:58 UTC 2014

This silences an automake 1.14 warning:

src/Makefile.am:35: warning: source file 'view/autoDrawer.c' is in a
src/Makefile.am:35: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least a source file is in a subdirectory, but the
automake: automake option hasn't been enabled.  For now, the
corresponding output
automake: object file(s) will be placed in the top-level directory.
automake: this behaviour will change in future Automake versions: they
automake: unconditionally cause object files to be placed in the same
automake: of the corresponding sources.
automake: You are advised to start using 'subdir-objects' option
throughout your
automake: project, to avoid future incompatibilities.
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 4e0d7b3..2363fa5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5,7 +5,7 @@ AC_CONFIG_MACRO_DIR([m4])
 dnl Make automake keep quiet about wildcards & other GNUmake-isms
+AM_INIT_AUTOMAKE([subdir-objects -Wno-portability])
 # Use the silent-rules feature when possible.

More information about the virt-tools-list mailing list