From 234ba8ac523227049eb899437157439bf5200620 Mon Sep 17 00:00:00 2001 From: Andrew Jeffery Date: Tue, 18 Apr 2017 16:55:25 +0930 Subject: autotools: Silence warnings from autoreconf Previously invoking ./bootstrap.sh would output: $ ./bootstrap.sh + AUTOCONF_FILES=Makefile.in aclocal.m4 ar-lib autom4te.cache compile config.guess config.h.in config.sub configure depcomp install-sh ltmain.sh missing *libtoo l test-driver + autoreconf -i libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac, libtoolize: and rerunning libtoolize and aclocal. libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am. configure.ac:22: installing './compile' configure.ac:22: installing './config.guess' configure.ac:22: installing './config.sub' configure.ac:5: installing './install-sh' configure.ac:5: installing './missing' Makefile.am: installing './depcomp' parallel-tests: installing './test-driver' + echo Run "./configure ${CONFIGURE_FLAGS} && make" Run "./configure ${CONFIGURE_FLAGS} && make" Address the three lines: libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac, libtoolize: and rerunning libtoolize and aclocal. libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am. Change-Id: I0e4b4318ff5cd3775455e7c7514609060375f24d Signed-off-by: Andrew Jeffery --- Makefile.am | 2 ++ configure.ac | 2 ++ m4/.gitkeep | 0 3 files changed, 4 insertions(+) create mode 100644 m4/.gitkeep diff --git a/Makefile.am b/Makefile.am index 38ef2ada6..4ea52cb7f 100755 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,7 @@ AM_DEFAULT_SOURCE_EXT = .cpp +ACLOCAL_AMFLAGS = -Im4 + sbin_PROGRAMS = \ openpower-version-host-software-manager \ openpower-update-manager diff --git a/configure.ac b/configure.ac index 9c0b40681..c8c90a782 100755 --- a/configure.ac +++ b/configure.ac @@ -5,6 +5,8 @@ AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz]) AM_SILENT_RULES([yes]) +AC_CONFIG_MACRO_DIRS([m4]) + # Checks for programs AC_PROG_CXX AC_PROG_INSTALL #Checks/sets the install variable to be used diff --git a/m4/.gitkeep b/m4/.gitkeep new file mode 100644 index 000000000..e69de29bb -- cgit v1.2.1