Module Name: src
Committed By: apb
Date: Wed Aug 7 17:50:55 UTC 2013
Modified Files:
src/tools: Makefile.gnuhost
src/tools/autoconf: Makefile
Log Message:
Revert previous change to tools/Makefile.gnuhost. When getenv("M4")
contains multiple words, flex fails.
Adjust tools/autoconf/Makefile to pass the necessary extra arguments via
M4=... in CONFIGURE_ENV. This is similar to what used to be in
revision 1.4 of tools/autoconf/Makefile, but it's now after instead of
before the inclusion of Makefile.gnuhost, because it has to override the
value of M4=... that Makefile.gnuhost stores in CONFIGURE_ENV.
To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/tools/Makefile.gnuhost
cvs rdiff -u -r1.5 -r1.6 src/tools/autoconf/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tools/Makefile.gnuhost
diff -u src/tools/Makefile.gnuhost:1.40 src/tools/Makefile.gnuhost:1.41
--- src/tools/Makefile.gnuhost:1.40 Tue Aug 6 21:47:01 2013
+++ src/tools/Makefile.gnuhost Wed Aug 7 17:50:55 2013
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.gnuhost,v 1.40 2013/08/06 21:47:01 apb Exp $
+# $NetBSD: Makefile.gnuhost,v 1.41 2013/08/07 17:50:55 apb Exp $
#
# Rules used when building a GNU host package. Expects MODULE to be set.
#
@@ -56,7 +56,7 @@ CONFIGURE_ENV+= \
INSTALL=${HOST_INSTALL_FILE:Q} \
LDFLAGS=${HOST_LDFLAGS:Q} \
LEX=${LEX:Q} \
- M4=${TOOL_M4:Q}" -g -D__gnu__" \
+ M4=${TOOL_M4:Q} \
MAKE=${MAKE_PROGRAM:Q} \
PATH="${TOOLDIR}/bin:$$PATH" \
RANLIB=${HOST_RANLIB:Q} \
Index: src/tools/autoconf/Makefile
diff -u src/tools/autoconf/Makefile:1.5 src/tools/autoconf/Makefile:1.6
--- src/tools/autoconf/Makefile:1.5 Tue Aug 6 21:47:01 2013
+++ src/tools/autoconf/Makefile Wed Aug 7 17:50:55 2013
@@ -1,7 +1,14 @@
-# $NetBSD: Makefile,v 1.5 2013/08/06 21:47:01 apb Exp $
+# $NetBSD: Makefile,v 1.6 2013/08/07 17:50:55 apb Exp $
MODULE= autoconf
CONFIGURE_ARGS= --program-prefix=${_TOOL_PREFIX}
.include "${.CURDIR}/../Makefile.gnuhost"
+
+# This value of M4=... makes our ${TOOL_M4} emulate GNU M4.
+# Makefile.gnuhost stores a different value of M4=... in CONFIGURE_ENV,
+# so we have to append to CONFIGURE_ENV *after* including
+# Makefile.gnuhost.
+#
+CONFIGURE_ENV+= M4=${TOOL_M4:Q}" -g -D__gnu__"