aboutsummaryrefslogtreecommitdiff
path: root/sim/m4
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-06-19 00:52:10 -0400
committerMike Frysinger <vapier@gentoo.org>2021-06-19 16:18:07 -0400
commitce3ec98acd2f344ae911de3f41dd2e3c6c68b141 (patch)
treefa9a1ef1190111696b857178593ee7a1b777c65a /sim/m4
parentbc56166f66244a9e3abc62c7bc595a6f800f23b0 (diff)
downloadgdb-ce3ec98acd2f344ae911de3f41dd2e3c6c68b141.zip
gdb-ce3ec98acd2f344ae911de3f41dd2e3c6c68b141.tar.gz
gdb-ce3ec98acd2f344ae911de3f41dd2e3c6c68b141.tar.bz2
sim: unify gettext/intl probing logic
Move these options up to the common dir so we only test & export them once across all ports.
Diffstat (limited to 'sim/m4')
-rw-r--r--sim/m4/sim_ac_common.m45
-rw-r--r--sim/m4/sim_ac_platform.m45
2 files changed, 5 insertions, 5 deletions
diff --git a/sim/m4/sim_ac_common.m4 b/sim/m4/sim_ac_common.m4
index 1dff64e..26d0eef 100644
--- a/sim/m4/sim_ac_common.m4
+++ b/sim/m4/sim_ac_common.m4
@@ -21,11 +21,6 @@ dnl
dnl See README-HACKING for more details.
AC_DEFUN([SIM_AC_COMMON],
[dnl
-dnl We don't use gettext, but bfd does. So we do the appropriate checks
-dnl to see if there are intl libraries we should link against.
-ALL_LINGUAS=
-ZW_GNU_GETTEXT_SISTER_DIR(../../intl)
-
dnl We don't use automake, but we still want to support
dnl --enable-maintainer-mode.
AM_MAINTAINER_MODE
diff --git a/sim/m4/sim_ac_platform.m4 b/sim/m4/sim_ac_platform.m4
index 87ebe6a..b757356 100644
--- a/sim/m4/sim_ac_platform.m4
+++ b/sim/m4/sim_ac_platform.m4
@@ -142,6 +142,11 @@ AC_TYPE_SIGNAL
AC_TYPE_SIZE_T
AC_TYPE_UID_T
+dnl We don't use gettext, but bfd does. So we do the appropriate checks
+dnl to see if there are intl libraries we should link against.
+ALL_LINGUAS=
+ZW_GNU_GETTEXT_SISTER_DIR
+
dnl BFD conditionally uses zlib, so we must link it in if libbfd does, by
dnl using the same condition.
AM_ZLIB