diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-10-31 02:03:16 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-10-31 02:03:16 -0400 |
commit | 65dcce8f793757be996377b5a15453b4bdf5f87b (patch) | |
tree | ac71eb1550ecef572c5f70a99e2fbc4f797594af /sim/configure.ac | |
parent | 68c2129ae6130d073ac9d1792897e738eebfe030 (diff) | |
download | gdb-65dcce8f793757be996377b5a15453b4bdf5f87b.zip gdb-65dcce8f793757be996377b5a15453b4bdf5f87b.tar.gz 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.ac | 3 |
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: |