diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-06-18 02:03:44 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-06-19 01:08:39 -0400 |
commit | b5689863bdca11c6c86fe8d02b4f7330804f6883 (patch) | |
tree | 476345a0c215c29f8aa171f46be48e65ecb78602 /sim/m4 | |
parent | 17a5da800dc59d3aaca5daece1a9374c8bc2d9f0 (diff) | |
download | gdb-b5689863bdca11c6c86fe8d02b4f7330804f6883.zip gdb-b5689863bdca11c6c86fe8d02b4f7330804f6883.tar.gz gdb-b5689863bdca11c6c86fe8d02b4f7330804f6883.tar.bz2 |
sim: unify bfd library dependency testing 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.m4 | 10 | ||||
-rw-r--r-- | sim/m4/sim_ac_platform.m4 | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/sim/m4/sim_ac_common.m4 b/sim/m4/sim_ac_common.m4 index f44e436..b04d1c6 100644 --- a/sim/m4/sim_ac_common.m4 +++ b/sim/m4/sim_ac_common.m4 @@ -32,16 +32,6 @@ dnl to see if there are intl libraries we should link against. ALL_LINGUAS= ZW_GNU_GETTEXT_SISTER_DIR(../../intl) -# BFD conditionally uses zlib, so we must link it in if libbfd does, by -# using the same condition. -AM_ZLIB - -# BFD uses libdl when when plugins enabled. -AC_PLUGINS -AM_CONDITIONAL(PLUGINS, test "$plugins" = yes) -LT_INIT([dlopen]) -AC_SUBST(lt_cv_dlopen_libs) - 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 d2e1d36..87ebe6a 100644 --- a/sim/m4/sim_ac_platform.m4 +++ b/sim/m4/sim_ac_platform.m4 @@ -142,6 +142,16 @@ AC_TYPE_SIGNAL AC_TYPE_SIZE_T AC_TYPE_UID_T +dnl BFD conditionally uses zlib, so we must link it in if libbfd does, by +dnl using the same condition. +AM_ZLIB + +dnl BFD uses libdl when when plugins enabled. +AC_PLUGINS +AM_CONDITIONAL(PLUGINS, test "$plugins" = yes) +LT_INIT([dlopen]) +AC_SUBST(lt_cv_dlopen_libs) + dnl Libraries. AC_CHECK_LIB(socket, bind) AC_CHECK_LIB(nsl, gethostbyname) |