aboutsummaryrefslogtreecommitdiff
path: root/ld/configure.ac
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-04-12 19:02:44 +0930
committerAlan Modra <amodra@gmail.com>2019-04-13 12:12:43 +0930
commit50ff67e6cf65dbe1b8fbbdb7a6c2e43919af95f4 (patch)
tree5da1073c6f1f1a089bef93c79f842c3b54bb08d8 /ld/configure.ac
parent35add35e85c21f02e3e5808273cb77b24069b0aa (diff)
downloadgdb-50ff67e6cf65dbe1b8fbbdb7a6c2e43919af95f4.zip
gdb-50ff67e6cf65dbe1b8fbbdb7a6c2e43919af95f4.tar.gz
gdb-50ff67e6cf65dbe1b8fbbdb7a6c2e43919af95f4.tar.bz2
ld TDIRS substitution
It is no longer true that autoconf/automake cannot substitute vars with embedded new-lines. * configure.ac (TDIRS): Build up tdirs in this variable and AC_SUBST, also using AM_SUBST_NOTMAKE. * configure: Regenerate. * Makefile.am (DISTCLEANFILES): Remove tdirs. * Makefile.in: Regenerate.
Diffstat (limited to 'ld/configure.ac')
-rw-r--r--ld/configure.ac14
1 files changed, 5 insertions, 9 deletions
diff --git a/ld/configure.ac b/ld/configure.ac
index d335f21..ec43406 100644
--- a/ld/configure.ac
+++ b/ld/configure.ac
@@ -319,12 +319,7 @@ EMUL=
all_emuls=
all_emul_extras=
all_libpath=
-
-dnl We need to get an arbitrary number of tdir definitions into
-dnl Makefile. We can't do it using AC_SUBST, because autoconf does
-dnl not permit literal newlines in an AC_SUBST variables. So we use a
-dnl file.
-rm -f tdirs
+TDIRS=
# If the host is 64-bit, then we enable 64-bit targets by default.
# This is consistent with what ../bfd/configure.ac does.
@@ -376,7 +371,8 @@ do
all_emuls="$all_emuls e${i}.o"
eval result=\$tdir_$i
test -z "$result" && result=$targ_alias
- echo tdir_$i=$result >> tdirs
+ TDIRS="$TDIRS
+tdir_$i=$result"
case "${i}" in
*elf*)
elf_list_options=TRUE
@@ -463,8 +459,8 @@ AC_SUBST(elf_shlib_list_options)
AC_SUBST(elf_plt_unwind_list_options)
AC_SUBST(EMUL)
-TDIRS=tdirs
-AC_SUBST_FILE(TDIRS)
+AC_SUBST(TDIRS)
+AM_SUBST_NOTMAKE(TDIRS)
if test x${all_targets} = xtrue; then
if test x${want64} = xtrue; then