* Makefile.tpl: Add @build_prefix@ before $(BUILD_SUBDIR).
* Makefile.in: Regenerated.
* configure.in (build_prefix): New. Substitute.
+2002-12-18 H.J. Lu <hjl@gnu.org>
+
+ * Makefile.tpl: Add @build_prefix@ before $(BUILD_SUBDIR).
+ * Makefile.in: Regenerated.
+
+ * configure.in (build_prefix): New. Substitute.
+
2002-12-18 Nathanael Nerode <neroden@gcc.gnu.org>
* Makefile.tpl: Don't let real targets depend on phony targets.
.PHONY: configure-build-libiberty maybe-configure-build-libiberty
maybe-configure-build-libiberty:
configure-build-libiberty: $(BUILD_SUBDIR)/libiberty/Makefile
-$(BUILD_SUBDIR)/libiberty/Makefile: config.status
+@build_prefix@$(BUILD_SUBDIR)/libiberty/Makefile: config.status
@[ -d $(BUILD_SUBDIR)/libiberty ] || mkdir $(BUILD_SUBDIR)/libiberty;\
r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
.PHONY: configure-build-[+module+] maybe-configure-build-[+module+]
maybe-configure-build-[+module+]:
configure-build-[+module+]: $(BUILD_SUBDIR)/[+module+]/Makefile
-$(BUILD_SUBDIR)/[+module+]/Makefile: config.status
+@build_prefix@$(BUILD_SUBDIR)/[+module+]/Makefile: config.status
@[ -d $(BUILD_SUBDIR)/[+module+] ] || mkdir $(BUILD_SUBDIR)/[+module+];\
r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
fi
fi
+if test x"${target_subdir}" = x"${build_subdir}" ; then
+ build_prefix=build-
+fi
+
# Skipdirs are removed silently.
skipdirs=
# Noconfigdirs are removed loudly.
s%@RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%\$(STAGE_CC_WRAPPER) ${qqRAW_CXX_FOR_TARGET}%
s%@target_subdir@%${target_subdir}%
s%@build_subdir@%${build_subdir}%
+s%@build_prefix@%${build_prefix}%
s%@build_configargs@%${buildargs}%
s%@gxx_include_dir@%${gxx_include_dir}%
s%@host_configargs@%${hostargs}%