summaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2002-11-20 13:41:51 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2002-11-20 13:41:51 +0000
commitb6cc40a1e7b4476ce03d95a5c755e91990d85ea8 (patch)
tree8df035248de757f41bcc0e91708856dc7e8ecee2 /acinclude.m4
parent6fa25bcd97e9fc401188bdf8319563ad8151465a (diff)
downloadrtems-b6cc40a1e7b4476ce03d95a5c755e91990d85ea8.tar.bz2
2002-11-20 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* acinclude.m4: Conditionally append --target=.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m45
1 files changed, 4 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index ddd7028c76..0a1b9d94da 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -317,7 +317,10 @@ m4_ifdef([_RTEMS_BUILD_CONFIGDIRS_LIST],
[
m4_expand_once([_RTEMS_CONFIGURE_ARGS_PRUNE([buildargs])])
eval buildargs_prune $ac_configure_args
-buildargs="'--host=${build}' '--build=${build}' '--target=${target_alias}' ${buildargs}"
+buildargs="'--host=${build}' '--build=${build}' ${buildargs}"
+test -n "${target_alias}" && \
+buildargs="${buildargs} --target='${target_alias}'"
+
## AC_SUBST(buildargs)
build_subdir="."