[PATCH 2/4] configure.ac: use the subdir-objects option

Antonio Ospite ao2 at ao2.it
Tue Jun 7 07:50:49 AEST 2016


This avoids clutter in the top-level dir, and also fixes this automake
warning:

Makefile.am:118: warning: source file 'twin_demos/twin_calc.c' is in a subdirectory,
Makefile.am:118: but option 'subdir-objects' is disabled
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.

Signed-off-by: Antonio Ospite <ao2 at ao2.it>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 2ab7f96..78dcf83 100644
--- a/configure.ac
+++ b/configure.ac
@@ -25,7 +25,7 @@ AC_PREREQ([2.69])
 
 AC_INIT([libtwin],[0.0.3],[Geoff Levand <geoff at infradead.org>])
 AC_CONFIG_AUX_DIR(.)
-AM_INIT_AUTOMAKE()
+AM_INIT_AUTOMAKE([subdir-objects])
 AM_MAINTAINER_MODE
 
 # Library versioning info
-- 
2.8.1



More information about the Petitboot mailing list