[PATCH:xfs] Add subdir-objects to automake options

Alan Coopersmith alan.coopersmith at oracle.com
Mon Aug 11 18:52:36 PDT 2014


automake 1.14.1 is asking for it:

 warning: possible forward-incompatibility.
 At least a source file is in a subdirectory, but the 'subdir-objects'
 automake option hasn't been enabled.  For now, the corresponding output
 object file(s) will be placed in the top-level directory.  However,
 this behaviour will change in future Automake versions: they will
 unconditionally cause object files to be placed in the same subdirectory
 of the corresponding sources.
 You are advised to start using 'subdir-objects' option throughout your
 project, to avoid future incompatibilities.

and repeating for every source file:
Makefile.am:35: warning: source file 'difs/charinfo.c' is in a subdirectory,
Makefile.am:35: but option 'subdir-objects' is disabled

This quiets it, and brings us into line with the future state.

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 configure.ac |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 243e487..d29ca8e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,7 +33,7 @@ AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_MACRO_DIR([m4])
 
 # Initialize Automake
-AM_INIT_AUTOMAKE([foreign dist-bzip2])
+AM_INIT_AUTOMAKE([foreign dist-bzip2 subdir-objects])
 
 # Require xorg-macros minimum of 1.10 for HAVE_STYLESHEETS in XORG_CHECK_SGML_DOCTOOLS
 m4_ifndef([XORG_MACROS_VERSION],
-- 
1.7.9.2



More information about the xorg-devel mailing list