[gom] build-sys: Use subdir-objects



commit 020ff0fbbee17eda510122550099f8ba08203bd2
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Tue Feb 17 16:30:47 2015 +0100

    build-sys: Use subdir-objects
    
    Recent automake versions complain at autogen.sh time:
    
    automake: warning: possible forward-incompatibility.
    automake: At least a source file is in a subdirectory, but the 'subdir-objects'
    automake: automake option hasn't been enabled.  For now, the corresponding output
    automake: object file(s) will be placed in the top-level directory.  However,
    automake: this behaviour will change in future Automake versions: they will
    automake: unconditionally cause object files to be placed in the same subdirectory
    automake: of the corresponding sources.
    automake: You are advised to start using 'subdir-objects' option throughout your
    automake: project, to avoid future incompatibilities.
    gom/Makefile.include:21: warning: source file '$(top_srcdir)/gom/gom-command-builder.c' is in a 
subdirectory
    gom/Makefile.include:21: but option 'subdir-objects' is disabled
    
    This fixes this warning.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=740948

 configure.ac |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index a45f4e0..52a8cff 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,7 +23,7 @@ AC_INIT([gom],[gom_version])
 AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_MACRO_DIR([m4])
 
-AM_INIT_AUTOMAKE([-Wno-portability no-dist-gzip dist-xz])
+AM_INIT_AUTOMAKE([subdir-objects -Wno-portability no-dist-gzip dist-xz])
 
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 AS_AM_REALLY_SILENT


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]