Skip to contentSkip to conversation

Makefile.am need reference to m4 directory

PATCH In review Daniel Black 2 participants 4 messages May 23, 2016 – Jul 21, 2016 Kbuild

lore
Share & tools
lore

Daniel Black

author
#0 lore raw

PATCH 1/1 Makefile.am need reference to m4 directory

Running autoreconf (autconf-2.69/automake-1.15/libtoolize-2.4.6) without the m4 directory specified in the Makefile.am file generates the following warning:

./autogen.sh
autoreconf: Entering directory `.'
autoreconf: running: autopoint
autoreconf: running: aclocal
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
autoreconf: running: /usr/bin/autoconf
autoreconf: running: /usr/bin/autoheader
autoreconf: running: automake --add-missing --copy --no-force configure.ac:26: warning: The 'AM_PROG_MKDIR_P' macro is deprecated, and its use is discouraged.
configure.ac:26: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' macro instead,
configure.ac:26: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.
autoreconf: Leaving directory `.'

---
 Makefile.am | 1 +
 1 file changed, 1 insertion(+)
Makefile.am +1 -0
index c8d0ae2..a9cf9db 100644
@@ -1,4 +1,5 @@
 AUTOMAKE_OPTIONS = subdir-objects
+ACLOCAL_AMFLAGS=-I m4
 
 SUBDIRS = \
        traceevent \

--
2.7.4

#1 lore raw

Hi David,

A big sigh about the lag between patch submission and a response. Apologies for that. That lag is not indicative of your submission's value. I appreciate your submissions very much. ^_^

There was a whitespace quirk, likely due to the MUA used to submit it, so I had to pass --ignore-whitespace to git-am for a clean application. That issue seems to specific to this submission and not subsequent ones, so I'll use git-send-email to submit a 'v2' to maintain a strict association between the mailing list and what ultimately lands in the repository.

Style nit inlined below which will not hinder progress whatsoever...

Quoted 30 lines · On Mon, 23 May 2016 12:56:06 +1000 Daniel Black <daniel.black(a)au1.ibm.com>…

Running autoreconf (autconf-2.69/automake-1.15/libtoolize-2.4.6) without the m4 directory specified in the Makefile.am file generates the following warning:

./autogen.sh
autoreconf: Entering directory `.'
autoreconf: running: autopoint
autoreconf: running: aclocal
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
autoreconf: running: /usr/bin/autoconf
autoreconf: running: /usr/bin/autoheader
autoreconf: running: automake --add-missing --copy --no-force configure.ac:26: warning: The 'AM_PROG_MKDIR_P' macro is deprecated, and its use is discouraged.
configure.ac:26: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' macro instead,
configure.ac:26: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.
autoreconf: Leaving directory `.'

---
 Makefile.am | 1 +
 1 file changed, 1 insertion(+)
Makefile.am +0 -0
index c8d0ae2..a9cf9db 100644

Makefile.am line 2

Quoted 2 lines
Makefile.am +1 -0
@@ -1,4 +1,5 @@
 AUTOMAKE_OPTIONS = subdir-objects
+ACLOCAL_AMFLAGS=-I m4

v2 will have spaces surrounding '=' to maintain style consistency. (PS:
I'm aware of numerous style issues around the codebase).

Quoted 5 lines
Makefile.am +0 -1
 SUBDIRS = \
        traceevent \
--

2.7.4

Cheers, and thanks again for the submission

#2 lore raw

PATCH 1/1 Makefile.am need reference to m4 directory

In reply to Daniel Black

From: Daniel Black <daniel.black(a)au1.ibm.com>

Running autoreconf (autconf-2.69/automake-1.15/libtoolize-2.4.6) without the m4 directory specified in the Makefile.am file generates the following warning:

./autogen.sh
autoreconf: Entering directory `.'
autoreconf: running: autopoint
autoreconf: running: aclocal
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
autoreconf: running: /usr/bin/autoconf
autoreconf: running: /usr/bin/autoheader
autoreconf: running: automake --add-missing --copy --no-force configure.ac:26: warning: The 'AM_PROG_MKDIR_P' macro is deprecated, and its use is discouraged.
configure.ac:26: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' macro instead,
configure.ac:26: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.
autoreconf: Leaving directory `.'

v2: (Joe) Re-submission due to a whitespace -ism, added Acked-by

Acked-by Joe Konno <joe.konno(a)intel.com>
---
 Makefile.am | 1 +
 1 file changed, 1 insertion(+)
Makefile.am +1 -0
index c8d0ae210e3f..a9cf9db62601 100644
@@ -1,4 +1,5 @@
 AUTOMAKE_OPTIONS = subdir-objects
+ACLOCAL_AMFLAGS=-I m4
 
 SUBDIRS = \
 	traceevent \
Signature · 1 line
2.9.0
#3 lore raw

PATCH v3 1/1 Makefile.am need reference to m4 directory

In reply to Daniel Black

From: Daniel Black <daniel.black(a)au1.ibm.com>

Running autoreconf (autconf-2.69/automake-1.15/libtoolize-2.4.6) without the m4 directory specified in the Makefile.am file generates the following warning:

./autogen.sh
autoreconf: Entering directory `.'
autoreconf: running: autopoint
autoreconf: running: aclocal
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
autoreconf: running: /usr/bin/autoconf
autoreconf: running: /usr/bin/autoheader
autoreconf: running: automake --add-missing --copy --no-force configure.ac:26: warning: The 'AM_PROG_MKDIR_P' macro is deprecated, and its use is discouraged.
configure.ac:26: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' macro instead,
configure.ac:26: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.
autoreconf: Leaving directory `.'

v3: (Joe) The irony. 'Real' submission fixing all nits from v2.
v2: (Joe) Re-submission due to a whitespace -ism, added Acked-by

Acked-by Joe Konno <joe.konno(a)intel.com>
---
 Makefile.am | 1 +
 1 file changed, 1 insertion(+)
Makefile.am +1 -0
index c8d0ae210e3f..128500e9b67c 100644
@@ -1,4 +1,5 @@
 AUTOMAKE_OPTIONS = subdir-objects
+ACLOCAL_AMFLAGS = -I m4
 
 SUBDIRS = \
 	traceevent \
Signature · 1 line
2.9.0