aboutsummaryrefslogtreecommitdiff
path: root/bfd/configure.ac
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-12-04 00:28:14 -0500
committerMike Frysinger <vapier@gentoo.org>2022-01-01 12:49:07 -0500
commit1d5269c994bf4af088b1a9d0ed39825541623a99 (patch)
tree427712dedcd41fc7d1d0e8f837444ec8f6c6c762 /bfd/configure.ac
parent3cc8ed6aaee33355a5d911a7401db3f1b05a2714 (diff)
downloadgdb-1d5269c994bf4af088b1a9d0ed39825541623a99.zip
gdb-1d5269c994bf4af088b1a9d0ed39825541623a99.tar.gz
gdb-1d5269c994bf4af088b1a9d0ed39825541623a99.tar.bz2
unify 64-bit bfd checks
Move the 64-bit bfd logic out of bfd/configure.ac and into bfd64.m4 under config so it can be shared between all the other subdirs. This replaces want64 with enable_64_bit_bfd which was already being declared, but not used directly.
Diffstat (limited to 'bfd/configure.ac')
-rw-r--r--bfd/configure.ac13
1 files changed, 6 insertions, 7 deletions
diff --git a/bfd/configure.ac b/bfd/configure.ac
index a578c3a..bdc2fc4 100644
--- a/bfd/configure.ac
+++ b/bfd/configure.ac
@@ -82,13 +82,12 @@ if test x$ac_checking != x ; then
AC_DEFINE(ENABLE_CHECKING, 1, [Define if you want run-time sanity checks.])
fi
-AC_ARG_ENABLE(64-bit-bfd,
-[ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)],
-[case "${enableval}" in
- yes) want64=true ;;
- no) want64=false ;;
- *) AC_MSG_ERROR(bad value ${enableval} for 64-bit-bfd option) ;;
-esac],[want64=false])dnl
+BFD_64_BIT
+if test $enable_64_bit_bfd = yes ; then
+ want64=true
+else
+ want64=false
+fi
AC_ARG_ENABLE(targets,
[ --enable-targets alternative target configurations],