1 From e801ccb2633e3f5842ed6d160af0e6e5cce44c77 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Tue, 2 Sep 2014 22:38:55 +0200
4 Subject: [PATCH 1/4] Fix warnings related to subdir-objects
6 Use AM_INIT_AUTOMAKE in configure.ac to define options such as
7 subdir-objects, instead of AUTOMAKE_OPTIONS in Makefile.am, as it
8 allows to avoid warnings during autoreconf:
10 examples/Makefile.am:25: warning: source file '../lib/connect.c' is in a subdirectory,
11 examples/Makefile.am:25: but option 'subdir-objects' is disabled
13 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
17 2 files changed, 1 insertion(+), 2 deletions(-)
19 diff --git a/Makefile.am b/Makefile.am
20 index 7023988..f9de08c 100644
24 SUBDIRS = lib doc utils test-tool examples
26 ACLOCAL_AMFLAGS =-I m4
27 -AUTOMAKE_OPTIONS = foreign subdir-objects
28 AM_CPPFLAGS=-I. -I$(srcdir)/include "-D_U_=__attribute__((unused))" \
29 "-D_R_(A,B)=__attribute__((format(printf,A,B)))"
30 AM_CFLAGS=$(WARN_CFLAGS)
31 diff --git a/configure.ac b/configure.ac
32 index e1d01c6..6d29af0 100644
35 @@ -3,7 +3,7 @@ AC_INIT(libiscsi, m4_esyscmd([grep 'Version:' ./packaging/RPM/libiscsi.spec.in 2
36 AC_CONFIG_SRCDIR([lib/init.c])
37 AC_CONFIG_MACRO_DIR([m4])
40 +AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])