aboutsummaryrefslogtreecommitdiff
path: root/sim/configure.ac
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-10-31 02:03:16 -0400
committerMike Frysinger <vapier@gentoo.org>2021-10-31 02:03:16 -0400
commit65dcce8f793757be996377b5a15453b4bdf5f87b (patch)
treeac71eb1550ecef572c5f70a99e2fbc4f797594af /sim/configure.ac
parent68c2129ae6130d073ac9d1792897e738eebfe030 (diff)
downloadfsf-binutils-gdb-65dcce8f793757be996377b5a15453b4bdf5f87b.zip
fsf-binutils-gdb-65dcce8f793757be996377b5a15453b4bdf5f87b.tar.gz
fsf-binutils-gdb-65dcce8f793757be996377b5a15453b4bdf5f87b.tar.bz2
sim: add arch-specific conditional logic
This will make it easy to include arch-specific logic (build files) as we migrate ports to the common top level build.
Diffstat (limited to 'sim/configure.ac')
-rw-r--r--sim/configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/sim/configure.ac b/sim/configure.ac
index 5d36e55..00d1e8d 100644
--- a/sim/configure.ac
+++ b/sim/configure.ac
@@ -92,15 +92,18 @@ dnl arg[2] is the arch subdir name.
dnl arg[3] is whether the arch has a dedicated configure script.
dnl arg[4] is any additional shell code to run for this arch.
m4_define([SIM_TARGET], [dnl
+ sim_enable_arch_$2=false
case "${targ}" in
all|$1)
if test "${targ}" = "${target}"; then
SIM_PRIMARY_TARGET=$2
fi
SIM_BUILD_TARGET($2, $3)
+ sim_enable_arch_$2=true
$4
;;
esac
+ AM_CONDITIONAL([SIM_ENABLE_ARCH_$2], [${sim_enable_arch_$2}])
])
dnl WHEN ADDING ENTRIES TO THIS MATRIX: