diff mbox

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

Message ID 1465335438-17503-3-git-send-email-ao2@ao2.it
State Not Applicable
Headers show

Commit Message

Antonio Ospite June 7, 2016, 9:37 p.m. UTC
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@ao2.it>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stewart Smith July 12, 2016, 8:31 a.m. UTC | #1
Antonio Ospite <ao2@ao2.it> writes:
> 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@ao2.it>
> ---
>  configure.ac | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Acked-by: Stewart Smith <stewart@linux.vnet.ibm.com>
diff mbox

Patch

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@infradead.org>])
 AC_CONFIG_AUX_DIR(.)
-AM_INIT_AUTOMAKE()
+AM_INIT_AUTOMAKE([subdir-objects])
 AM_MAINTAINER_MODE
 
 # Library versioning info