Automatic date update in version.in
[external/binutils.git] / bfd / configure.ac
1 dnl Process this file with autoconf to produce a configure script.
2 dnl
3 dnl   Copyright (C) 2012-2018 Free Software Foundation, Inc.
4 dnl
5 dnl This file is free software; you can redistribute it and/or modify
6 dnl it under the terms of the GNU General Public License as published by
7 dnl the Free Software Foundation; either version 3 of the License, or
8 dnl (at your option) any later version.
9 dnl
10 dnl This program is distributed in the hope that it will be useful,
11 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
12 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 dnl GNU General Public License for more details.
14 dnl
15 dnl You should have received a copy of the GNU General Public License
16 dnl along with this program; see the file COPYING3.  If not see
17 dnl <http://www.gnu.org/licenses/>.
18 dnl
19
20 m4_include([version.m4])
21 AC_INIT([bfd], BFD_VERSION)
22 AC_CONFIG_SRCDIR([libbfd.c])
23
24 AC_CANONICAL_TARGET
25 AC_ISC_POSIX
26
27 AM_INIT_AUTOMAKE
28
29 dnl These must be called before LT_INIT, because it may want
30 dnl to call AC_CHECK_PROG.
31 AC_CHECK_TOOL(AR, ar)
32 AC_CHECK_TOOL(RANLIB, ranlib, :)
33
34 dnl Default to a non shared library.  This may be overridden by the
35 dnl configure option --enable-shared.
36 AC_DISABLE_SHARED
37
38 AC_PROG_CC
39 AC_GNU_SOURCE
40 AC_USE_SYSTEM_EXTENSIONS
41
42 LT_INIT([dlopen])
43
44 # AC_PLUGINS setting $plugins is called by ACX_LARGEFILE.
45 ACX_LARGEFILE
46
47 AM_CONDITIONAL(PLUGINS, test "$plugins" = "yes")
48
49 if test "$plugins" = "yes"; then
50   enable_targets="$enable_targets plugin"
51 fi
52
53 AC_ARG_ENABLE(64-bit-bfd,
54 [  --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)],
55 [case "${enableval}" in
56   yes)  want64=true  ;;
57   no)   want64=false ;;
58   *)    AC_MSG_ERROR(bad value ${enableval} for 64-bit-bfd option) ;;
59 esac],[want64=false])dnl
60
61 AC_ARG_ENABLE(targets,
62 [  --enable-targets        alternative target configurations],
63 [case "${enableval}" in
64   yes | "") AC_MSG_ERROR([enable-targets option must specify target names or 'all'])
65             ;;
66   no)       enable_targets= ;;
67   *)        enable_targets=$enableval ;;
68 esac])dnl
69
70 AC_ARG_ENABLE(64_bit_archive,
71               AS_HELP_STRING([--enable-64-bit-archive],
72               [force 64-bit archives]),
73 [case "${enableval}" in
74   yes)  want_64_bit_archive=true  ;;
75   no)   want_64_bit_archive=false ;;
76   *)    AC_MSG_ERROR(bad value ${enableval} for 64-bit-archive option) ;;
77 esac],[want_64_bit_archive=unset])dnl
78
79 AC_ARG_WITH(mmap,
80 [  --with-mmap             try using mmap for BFD input files if available],
81 [case "${withval}" in
82   yes)  want_mmap=true ;;
83   no)   want_mmap=false ;;
84   *)    AC_MSG_ERROR(bad value ${withval} for BFD with-mmap option) ;;
85 esac],[want_mmap=false])dnl
86
87 AC_ARG_ENABLE(secureplt,
88 [  --enable-secureplt      Default to creating read-only plt entries],
89 [case "${enableval}" in
90   yes)  use_secureplt=true  ;;
91   no)   use_secureplt=false ;;
92   *)    AC_MSG_ERROR(bad value ${enableval} for secureplt option) ;;
93 esac],[use_secureplt=true])dnl
94 if test $use_secureplt = true; then
95   AC_DEFINE(USE_SECUREPLT, 1,
96     [Define if we should default to creating read-only plt entries])
97 fi
98
99 # Decide if -z separate-code should be enabled in ELF linker by default.
100 ac_default_ld_z_separate_code=unset
101 AC_ARG_ENABLE(separate-code,
102               AS_HELP_STRING([--enable-separate-code],
103               [enable -z separate-code in ELF linker by default]),
104 [case "${enableval}" in
105   yes) ac_default_ld_z_separate_code=1 ;;
106   no) ac_default_ld_z_separate_code=0 ;;
107 esac])
108 # Enable -z separate-code by default for Linux/x86.
109 case "${target}" in
110 i[3-7]86-*-linux-* | x86_64-*-linux-*)
111   if test ${ac_default_ld_z_separate_code} = unset; then
112     ac_default_ld_z_separate_code=1
113   fi
114   ;;
115 esac
116 if test "${ac_default_ld_z_separate_code}" = unset; then
117   ac_default_ld_z_separate_code=0
118 fi
119 AC_DEFINE_UNQUOTED(DEFAULT_LD_Z_SEPARATE_CODE,
120   $ac_default_ld_z_separate_code,
121   [Define to 1 if you want to enable -z separate-code in ELF linker by default.])
122
123 AC_ARG_ENABLE(leading-mingw64-underscores,
124   AS_HELP_STRING([--enable-leading-mingw64-underscores],
125                  [Enable leading underscores on 64 bit mingw targets]),
126   [],[])
127 AS_IF([ test x"$enable_leading_mingw64_underscores" = xyes ],
128   [AC_DEFINE(USE_MINGW64_LEADING_UNDERSCORES, 1,
129     [Define if we should use leading underscore on 64 bit mingw targets])])
130
131 DEBUGDIR=${libdir}/debug
132 AC_ARG_WITH(separate-debug-dir,
133   AS_HELP_STRING([--with-separate-debug-dir=DIR],
134                  [Look for global separate debug info in DIR [[default=LIBDIR/debug]]]),
135 [DEBUGDIR="${withval}"])
136 AC_SUBST(DEBUGDIR)
137
138 ACX_PKGVERSION([GNU Binutils])
139 ACX_BUGURL([http://www.sourceware.org/bugzilla/])
140
141 AM_BINUTILS_WARNINGS
142
143 AC_CONFIG_HEADERS(config.h:config.in)
144
145 # PR 14072
146 AH_VERBATIM([00_CONFIG_H_CHECK],
147 [/* Check that config.h is #included before system headers
148     (this works only for glibc, but that should be enough).  */
149 #if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__)
150 #  error config.h must be #included before system headers
151 #endif
152 #define __CONFIG_H__ 1])
153
154 if test -z "$target" ; then
155     AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
156 fi
157
158 AM_MAINTAINER_MODE
159 AM_CONDITIONAL(GENINSRC_NEVER, false)
160 AM_INSTALL_LIBBFD
161 AC_EXEEXT
162
163 host64=false
164 target64=false
165 bfd_default_target_size=32
166
167 # host stuff:
168
169 ALL_LINGUAS="da es fi fr hr id ja ro ru rw sr sv tr uk vi zh_CN pt"
170 ZW_GNU_GETTEXT_SISTER_DIR
171 AM_PO_SUBDIRS
172
173 # Permit host specific settings.
174 . ${srcdir}/configure.host
175
176 AC_SUBST(HDEFINES)
177 AC_PROG_INSTALL
178
179 BFD_HOST_64BIT_LONG=0
180 BFD_HOST_64BIT_LONG_LONG=0
181 BFD_HOST_64_BIT_DEFINED=0
182 BFD_HOST_64_BIT=
183 BFD_HOST_U_64_BIT=
184 BFD_HOSTPTR_T="unsigned long"
185
186 AC_TYPE_LONG_DOUBLE
187 AC_CHECK_TYPES([long long], [AC_CHECK_SIZEOF(long long)])
188 AC_CHECK_SIZEOF(void *)
189 AC_CHECK_SIZEOF(long)
190
191 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
192   host64=true
193 fi
194
195 if test "x${ac_cv_sizeof_long}" = "x8"; then
196   BFD_HOST_64BIT_LONG=1
197   test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
198   test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
199 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
200   BFD_HOST_64BIT_LONG_LONG=1
201   test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
202   test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
203   if test "x${ac_cv_sizeof_void_p}" = "x8"; then
204     BFD_HOSTPTR_T="unsigned long long"
205   fi
206 fi
207
208 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
209   BFD_HOST_64_BIT_DEFINED=1
210   BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
211   BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
212 fi
213
214 AC_SUBST(BFD_HOST_64BIT_LONG)
215 AC_SUBST(BFD_HOST_64BIT_LONG_LONG)
216 AC_SUBST(BFD_HOST_64_BIT_DEFINED)
217 AC_SUBST(BFD_HOST_64_BIT)
218 AC_SUBST(BFD_HOST_U_64_BIT)
219 AC_SUBST(BFD_HOSTPTR_T)
220
221 BFD_CC_FOR_BUILD
222
223 AC_CHECK_HEADERS(alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h wchar.h wctype.h)
224 AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h sys/stat.h sys/resource.h)
225 GCC_HEADER_STDINT(bfd_stdint.h)
226 AC_HEADER_TIME
227 AC_HEADER_DIRENT
228
229 ACX_HEADER_STRING
230 AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno)
231 AC_CHECK_FUNCS(strtoull getrlimit)
232
233 AC_CHECK_DECLS(basename)
234 AC_CHECK_DECLS(ftello)
235 AC_CHECK_DECLS(ftello64)
236 AC_CHECK_DECLS(fseeko)
237 AC_CHECK_DECLS(fseeko64)
238
239 BFD_BINARY_FOPEN
240
241 AC_CHECK_DECLS(ffs)
242 AC_CHECK_DECLS(free)
243 AC_CHECK_DECLS(getenv)
244 AC_CHECK_DECLS(malloc)
245 AC_CHECK_DECLS(realloc)
246 AC_CHECK_DECLS(stpcpy)
247 AC_CHECK_DECLS(strstr)
248 AC_CHECK_DECLS(asprintf)
249 AC_CHECK_DECLS(vasprintf)
250 AC_CHECK_DECLS(snprintf)
251 AC_CHECK_DECLS(vsnprintf)
252 AC_CHECK_DECLS(strnlen)
253
254 # Link in zlib if we can.  This allows us to read compressed debug sections.
255 # This is used only by compress.c.
256 AM_ZLIB
257
258 save_CFLAGS="$CFLAGS"
259 CFLAGS="$CFLAGS -Werror"
260 AC_CACHE_CHECK([compiler support for hidden visibility], bfd_cv_hidden,
261 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
262 const char hw[] __attribute__ ((__visibility__ ("hidden"))) = "Hello, World\n";
263 extern void print (const char *) __attribute__ ((__visibility__ ("hidden")));]],
264         [[print (hw);]])],
265   [bfd_cv_hidden=yes], [bfd_cv_hidden=no])])
266 CFLAGS="$save_CFLAGS"
267 if test $bfd_cv_hidden = yes; then
268   AC_DEFINE(HAVE_HIDDEN, 1,
269             [Define if your compiler supports hidden visibility.])
270 fi
271
272 # Check if linker supports --as-needed and --no-as-needed options
273 AC_CACHE_CHECK(linker --as-needed support, bfd_cv_ld_as_needed,
274         [bfd_cv_ld_as_needed=no
275         if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
276                 bfd_cv_ld_as_needed=yes
277         fi
278         ])
279
280 LT_LIB_M
281
282 # When building a shared libbfd, link against the pic version of libiberty
283 # so that apps that use libbfd won't need libiberty just to satisfy any
284 # libbfd references.
285 # We can't do that if a pic libiberty is unavailable since including non-pic
286 # code would insert text relocations into libbfd.
287 SHARED_LIBADD=
288 SHARED_LDFLAGS=
289 if test "$enable_shared" = "yes"; then
290 changequote(,)dnl
291   x=`sed -n -e 's/^[    ]*PICFLAG[      ]*=[    ]*//p' < ../libiberty/Makefile | sed -n '$p'`
292 changequote([,])dnl
293   if test -n "$x"; then
294     SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
295   fi
296
297 # More hacks to build DLLs on Windows.
298   case "${host}" in
299   *-*-cygwin*)
300     SHARED_LDFLAGS="-no-undefined"
301     SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
302   ;;
303
304   # Hack to build or1k-src on OSX
305   or1k*-*-darwin*)
306     SHARED_LIBADD="-L`pwd`/../libiberty/pic -L`pwd`/../intl -liberty -lintl"
307   ;;
308   esac
309
310   if test -n "$SHARED_LIBADD"; then
311     if test -n "$LIBM"; then
312       if test x"$bfd_cv_ld_as_needed" = xyes; then
313         # Link against libm only when needed.  Put -lc, -lm inside -Wl
314         # to stop libtool reordering these options.
315         SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
316       else
317         SHARED_LIBADD="$SHARED_LIBADD $LIBM"
318       fi
319     fi
320   fi
321 fi
322 AC_SUBST(SHARED_LDFLAGS)
323 AC_SUBST(SHARED_LIBADD)
324
325 # target stuff:
326
327 # Canonicalize the secondary target names.
328 if test -n "$enable_targets" ; then
329     for targ in `echo $enable_targets | sed 's/,/ /g'`
330     do
331         result=`$ac_config_sub $targ 2>/dev/null`
332         if test -n "$result" ; then
333             canon_targets="$canon_targets $result"
334         else
335             # Allow targets that config.sub doesn't recognize, like "all".
336             canon_targets="$canon_targets $targ"
337         fi
338     done
339 fi
340
341 all_targets=false
342 defvec=
343 selvecs=
344 assocvecs=
345 selarchs=
346 TDEFINES=
347 for targ in $target $canon_targets
348 do
349     if test "x$targ" = "xall"; then
350         all_targets=true
351         assocvecs="$assocvecs $targ_defvec $targ_selvecs"
352     else
353         . $srcdir/config.bfd
354         if test "x$targ" = "x$target"; then
355             defvec=$targ_defvec
356         fi
357         selvecs="$selvecs $targ_defvec $targ_selvecs"
358         selarchs="$selarchs $targ_archs"
359         TDEFINES="$TDEFINES $targ_cflags"
360     fi
361 done
362 AC_SUBST(TDEFINES)
363
364 # This processing still needs to be done if we're to decide properly whether
365 # 64-bit support needs to be compiled in.  Currently, it will be included if
366 # the default or any other explicitly requested target requires it; it
367 # will not be included on a 32-bit host if no 64-bit target is requested, and
368 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
369 # used.
370
371 # uniq the default and selected vectors in all the configured targets.
372 f=""
373 for i in $selvecs ; do
374     case " $f " in
375     *" $i "*) ;;
376     *) f="$f $i" ;;
377     esac
378 done
379 selvecs="$f"
380
381
382 # uniq the associated vectors in all the configured targets.
383 f=""
384 for i in $assocvecs ; do
385     case " $f " in
386     *" $i "*) ;;
387     *) f="$f $i" ;;
388     esac
389 done
390 assocvecs="$f"
391
392
393 # uniq the architectures in all the configured targets.
394 f=""
395 for i in $selarchs ; do
396     case " $f " in
397     *" $i "*) ;;
398     *) f="$f $i" ;;
399     esac
400 done
401 selarchs="$f"
402
403 # Target backend .o files.
404 tb=
405
406 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-properties.lo
407      elf-eh-frame.lo dwarf1.lo dwarf2.lo"
408 coffgen="coffgen.lo dwarf2.lo"
409 coff="cofflink.lo $coffgen"
410 ecoff="ecofflink.lo $coffgen"
411 xcoff="xcofflink.lo $coffgen"
412
413 for vec in $selvecs
414 do
415     target_size=32
416     case "$vec" in
417     # This list is alphabetized to make it easy to compare
418     # with the two vector lists in targets.c.  For the same reason,
419     # use one entry per line, even though this leads to long lines.
420     aarch64_elf32_be_vec)        tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
421     aarch64_elf32_le_vec)        tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
422     aarch64_elf64_be_vec)          tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
423     aarch64_elf64_be_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
424     aarch64_elf64_le_vec)          tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
425     aarch64_elf64_le_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
426     aarch64_mach_o_vec)          tb="$tb mach-o-aarch64.lo"; target_size=64 ;;
427     alpha_ecoff_le_vec)          tb="$tb coff-alpha.lo ecoff.lo $ecoff"; target_size=64 ;;
428     alpha_elf64_vec)             tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
429     alpha_elf64_fbsd_vec)        tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
430     alpha_vms_vec)               tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;;
431     alpha_vms_lib_txt_vec)       tb="$tb vms-lib.lo vms-misc.lo" ;;
432     am33_elf32_linux_vec)        tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
433     aout0_be_vec)                tb="$tb aout0.lo aout32.lo" ;;
434     aout64_vec)                  tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
435     aout_vec)                    tb="$tb host-aout.lo aout32.lo" ;;
436     arc_elf32_be_vec)            tb="$tb elf32-arc.lo elf32.lo $elf" ;;
437     arc_elf32_le_vec)            tb="$tb elf32-arc.lo elf32.lo $elf" ;;
438     arm_elf32_be_vec)            tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
439     arm_elf32_le_vec)            tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
440     arm_elf32_fdpic_be_vec)      tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
441     arm_elf32_fdpic_le_vec)      tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
442     arm_elf32_nacl_be_vec)       tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
443     arm_elf32_nacl_le_vec)       tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
444     arm_elf32_symbian_be_vec)    tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
445     arm_elf32_symbian_le_vec)    tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
446     arm_elf32_vxworks_be_vec)    tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
447     arm_elf32_vxworks_le_vec)    tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
448     arm_pe_be_vec)               tb="$tb pe-arm.lo peigen.lo $coff" ;;
449     arm_pe_le_vec)               tb="$tb pe-arm.lo peigen.lo $coff" ;;
450     arm_pe_wince_be_vec)         tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
451     arm_pe_wince_le_vec)         tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
452     arm_pei_be_vec)              tb="$tb pei-arm.lo peigen.lo $coff" ;;
453     arm_pei_le_vec)              tb="$tb pei-arm.lo peigen.lo $coff" ;;
454     arm_pei_wince_be_vec)        tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
455     arm_pei_wince_le_vec)        tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
456     arm_mach_o_vec)              tb="$tb mach-o-arm.lo" ;;
457     avr_elf32_vec)               tb="$tb elf32-avr.lo elf32.lo $elf" ;;
458     bfin_elf32_vec)              tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
459     bfin_elf32_fdpic_vec)        tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
460     cr16_elf32_vec)              tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
461     cr16c_elf32_vec)             tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
462     cris_aout_vec)               tb="$tb aout-cris.lo" ;;
463     cris_elf32_vec)              tb="$tb elf32-cris.lo elf32.lo $elf" ;;
464     cris_elf32_us_vec)           tb="$tb elf32-cris.lo elf32.lo $elf" ;;
465     crx_elf32_vec)               tb="$tb elf32-crx.lo elf32.lo $elf" ;;
466     d10v_elf32_vec)              tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
467     d30v_elf32_vec)              tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
468     dlx_elf32_be_vec)            tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
469     elf32_be_vec)                tb="$tb elf32-gen.lo elf32.lo $elf" ;;
470     elf32_le_vec)                tb="$tb elf32-gen.lo elf32.lo $elf" ;;
471     elf64_be_vec)                tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
472     elf64_le_vec)                tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
473     epiphany_elf32_vec)          tb="$tb elf32-epiphany.lo elf32.lo $elf" ;;
474     fr30_elf32_vec)              tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
475     frv_elf32_vec)               tb="$tb elf32-frv.lo elf32.lo $elf" ;;
476     frv_elf32_fdpic_vec)         tb="$tb elf32-frv.lo elf32.lo $elf" ;;
477     h8300_elf32_vec)             tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
478     h8300_elf32_linux_vec)       tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
479     hppa_elf32_vec)              tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
480     hppa_elf32_linux_vec)        tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
481     hppa_elf32_nbsd_vec)         tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
482     hppa_elf64_vec)              tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
483     hppa_elf64_linux_vec)        tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
484     hppa_som_vec)                tb="$tb som.lo" ;;
485     i386_aout_vec)               tb="$tb i386aout.lo aout32.lo" ;;
486     i386_aout_bsd_vec)           tb="$tb i386bsd.lo aout32.lo" ;;
487     i386_aout_lynx_vec)          tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
488     i386_coff_vec)               tb="$tb coff-i386.lo $coff" ;;
489     i386_coff_go32_vec)          tb="$tb coff-go32.lo $coff" ;;
490     i386_coff_go32stubbed_vec)   tb="$tb coff-stgo32.lo $coff" ;;
491     i386_coff_lynx_vec)          tb="$tb cf-i386lynx.lo lynx-core.lo $coff" ;;
492     i386_elf32_vec)              tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
493     i386_elf32_fbsd_vec)         tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
494     i386_elf32_nacl_vec)         tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
495     i386_elf32_sol2_vec)         tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
496     i386_elf32_vxworks_vec)      tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
497     i386_mach_o_vec)             tb="$tb mach-o-i386.lo" ;;
498     i386_msdos_vec)              tb="$tb i386msdos.lo" ;;
499     i386_pe_vec)                 tb="$tb pe-i386.lo peigen.lo $coff" ;;
500     i386_pei_vec)                tb="$tb pei-i386.lo peigen.lo $coff" ;;
501     iamcu_elf32_vec)             tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
502     ia64_elf32_be_vec)           tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
503     ia64_elf32_hpux_be_vec)      tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
504     ia64_elf64_be_vec)           tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
505     ia64_elf64_le_vec)           tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
506     ia64_elf64_hpux_be_vec)      tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
507     ia64_elf64_vms_vec)          tb="$tb elf64-ia64-vms.lo elf64-ia64.lo elfxx-ia64.lo elf64.lo vms-lib.lo vms-misc.lo $elf"; target_size=64 ;;
508     ia64_pei_vec)                tb="$tb pei-ia64.lo pepigen.lo $coff"; target_size=64 ;;
509     ip2k_elf32_vec)              tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
510     iq2000_elf32_vec)            tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
511     k1om_elf64_vec)              tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
512     k1om_elf64_fbsd_vec)         tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
513     l1om_elf64_vec)              tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
514     l1om_elf64_fbsd_vec)         tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
515     lm32_elf32_vec)              tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
516     lm32_elf32_fdpic_vec)        tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
517     m32c_elf32_vec)              tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
518     m32r_elf32_vec)              tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
519     m32r_elf32_le_vec)           tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
520     m32r_elf32_linux_vec)        tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
521     m32r_elf32_linux_le_vec)     tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
522     m68hc11_elf32_vec)           tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
523     m68hc12_elf32_vec)           tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
524     m68k_elf32_vec)              tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
525     s12z_elf32_vec)              tb="$tb elf32-s12z.lo elf32.lo $elf" ;;
526     mach_o_be_vec)               tb="$tb mach-o.lo dwarf2.lo" ;;
527     mach_o_le_vec)               tb="$tb mach-o.lo dwarf2.lo" ;;
528     mach_o_fat_vec)              tb="$tb mach-o.lo dwarf2.lo" ;;
529     mcore_elf32_be_vec)          tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
530     mcore_elf32_le_vec)          tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
531     mcore_pe_be_vec)             tb="$tb pe-mcore.lo peigen.lo $coff" ;;
532     mcore_pe_le_vec)             tb="$tb pe-mcore.lo peigen.lo $coff" ;;
533     mcore_pei_be_vec)            tb="$tb pei-mcore.lo peigen.lo $coff" ;;
534     mcore_pei_le_vec)            tb="$tb pei-mcore.lo peigen.lo $coff" ;;
535     mep_elf32_vec)               tb="$tb elf32-mep.lo elf32.lo $elf" ;;
536     mep_elf32_le_vec)            tb="$tb elf32-mep.lo elf32.lo $elf" ;;
537     metag_elf32_vec)             tb="$tb elf32-metag.lo elf32.lo $elf" ;;
538     microblaze_elf32_vec)        tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
539     microblaze_elf32_le_vec)     tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
540     mips_ecoff_be_vec)           tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
541     mips_ecoff_le_vec)           tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
542     mips_ecoff_bele_vec)         tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
543     mips_elf32_be_vec)           tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
544     mips_elf32_le_vec)           tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
545     mips_elf32_n_be_vec)         tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
546     mips_elf32_n_le_vec)         tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
547     mips_elf32_ntrad_be_vec)     tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
548     mips_elf32_ntrad_le_vec)     tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
549     mips_elf32_ntradfbsd_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
550     mips_elf32_ntradfbsd_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
551     mips_elf32_trad_be_vec)      tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
552     mips_elf32_trad_le_vec)      tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
553     mips_elf32_tradfbsd_be_vec)  tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
554     mips_elf32_tradfbsd_le_vec)  tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
555     mips_elf32_vxworks_be_vec)   tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
556     mips_elf32_vxworks_le_vec)   tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
557     mips_elf64_be_vec)           tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
558     mips_elf64_le_vec)           tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
559     mips_elf64_trad_be_vec)      tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
560     mips_elf64_trad_le_vec)      tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
561     mips_elf64_tradfbsd_be_vec)  tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
562     mips_elf64_tradfbsd_le_vec)  tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
563     mmix_elf64_vec)              tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
564     mmix_mmo_vec)                        tb="$tb mmo.lo" target_size=64 ;;
565     mn10200_elf32_vec)           tb="$tb elf-m10200.lo elf32.lo $elf" ;;
566     mn10300_elf32_vec)           tb="$tb elf-m10300.lo elf32.lo $elf" ;;
567     moxie_elf32_be_vec)          tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
568     moxie_elf32_le_vec)          tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
569     msp430_elf32_vec)            tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
570     msp430_elf32_ti_vec)         tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
571     mt_elf32_vec)                tb="$tb elf32-mt.lo elf32.lo $elf" ;;
572     nds32_elf32_be_vec)          tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
573     nds32_elf32_le_vec)          tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
574     nds32_elf32_linux_be_vec)    tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
575     nds32_elf32_linux_le_vec)    tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
576     nfp_elf64_vec)               tb="$tb elf64-nfp.lo elf64.lo $elf" ;;
577     nios2_elf32_be_vec)          tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
578     nios2_elf32_le_vec)          tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
579     ns32k_aout_pc532mach_vec)    tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
580     ns32k_aout_pc532nbsd_vec)    tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
581     or1k_elf32_vec)              tb="$tb elf32-or1k.lo elf32.lo $elf" ;;
582     pdp11_aout_vec)              tb="$tb pdp11.lo" ;;
583     pef_vec)                     tb="$tb pef.lo" ;;
584     pef_xlib_vec)                tb="$tb pef.lo" ;;
585     pj_elf32_vec)                tb="$tb elf32-pj.lo elf32.lo $elf" ;;
586     pj_elf32_le_vec)             tb="$tb elf32-pj.lo elf32.lo $elf" ;;
587     plugin_vec)                  tb="$tb plugin.lo" ;;
588     powerpc_boot_vec)            tb="$tb ppcboot.lo" ;;
589     powerpc_elf32_vec)           tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
590     powerpc_elf32_le_vec)        tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
591     powerpc_elf32_fbsd_vec)      tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
592     powerpc_elf32_vxworks_vec)   tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
593     powerpc_elf64_vec)           tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
594     powerpc_elf64_le_vec)        tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
595     powerpc_elf64_fbsd_vec)      tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
596     powerpc_pe_vec)              tb="$tb pe-ppc.lo peigen.lo $coff" ;;
597     powerpc_pe_le_vec)           tb="$tb pe-ppc.lo peigen.lo $coff" ;;
598     powerpc_pei_vec)             tb="$tb pei-ppc.lo peigen.lo $coff" ;;
599     powerpc_pei_le_vec)          tb="$tb pei-ppc.lo peigen.lo $coff" ;;
600     powerpc_xcoff_vec)           tb="$tb coff-rs6000.lo $xcoff" ;;
601     pru_elf32_vec)               tb="$tb elf32-pru.lo elf32.lo $elf" ;;
602     riscv_elf32_vec)             tb="$tb elf32-riscv.lo elfxx-riscv.lo elf32.lo $elf" ;;
603     riscv_elf64_vec)             tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf32.lo $elf"; target_size=64 ;;
604     rl78_elf32_vec)              tb="$tb elf32-rl78.lo elf32.lo $elf" ;;
605     rs6000_xcoff64_vec)          tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
606     rs6000_xcoff64_aix_vec)      tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
607     rs6000_xcoff_vec)            tb="$tb coff-rs6000.lo $xcoff" ;;
608     rx_elf32_be_vec)             tb="$tb elf32-rx.lo elf32.lo $elf" ;;
609     rx_elf32_be_ns_vec)          tb="$tb elf32-rx.lo elf32.lo $elf" ;;
610     rx_elf32_le_vec)             tb="$tb elf32-rx.lo elf32.lo $elf" ;;
611     s390_elf32_vec)              tb="$tb elf32-s390.lo elf32.lo $elf" ;;
612     s390_elf64_vec)              tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
613     score_elf32_be_vec)          tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;;
614     score_elf32_le_vec)          tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;;
615     sh_coff_vec)                 tb="$tb coff-sh.lo $coff" ;;
616     sh_coff_le_vec)              tb="$tb coff-sh.lo $coff" ;;
617     sh_coff_small_vec)           tb="$tb coff-sh.lo $coff" ;;
618     sh_coff_small_le_vec)        tb="$tb coff-sh.lo $coff" ;;
619     sh_elf32_vec)                tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
620     sh_elf32_le_vec)             tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
621     sh_elf32_fdpic_be_vec)       tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
622     sh_elf32_fdpic_le_vec)       tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
623     sh_elf32_linux_vec)          tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
624     sh_elf32_linux_be_vec)       tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
625     sh_elf32_nbsd_vec)           tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
626     sh_elf32_nbsd_le_vec)        tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
627     sh_elf32_vxworks_vec)        tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
628     sh_elf32_vxworks_le_vec)     tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
629     sh_pe_le_vec)                tb="$tb pe-sh.lo coff-sh.lo peigen.lo $coff" ;;
630     sh_pei_le_vec)               tb="$tb pei-sh.lo coff-sh.lo peigen.lo $coff" ;;
631     sparc_elf32_vec)             tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
632     sparc_elf32_sol2_vec)        tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
633     sparc_elf32_vxworks_vec)     tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
634     sparc_elf64_vec)             tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
635     sparc_elf64_fbsd_vec)        tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
636     sparc_elf64_sol2_vec)        tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
637     spu_elf32_vec)               tb="$tb elf32-spu.lo elf32.lo $elf" ;;
638     sym_vec)                     tb="$tb xsym.lo" ;;
639     tic30_aout_vec)              tb="$tb aout-tic30.lo" ;;
640     tic30_coff_vec)              tb="$tb coff-tic30.lo $coffgen" ;;
641     tic4x_coff0_vec)             tb="$tb coff-tic4x.lo $coffgen" ;;
642     tic4x_coff0_beh_vec)         tb="$tb coff-tic4x.lo $coffgen" ;;
643     tic4x_coff1_vec)             tb="$tb coff-tic4x.lo $coffgen" ;;
644     tic4x_coff1_beh_vec)         tb="$tb coff-tic4x.lo $coffgen" ;;
645     tic4x_coff2_vec)             tb="$tb coff-tic4x.lo $coffgen" ;;
646     tic4x_coff2_beh_vec)         tb="$tb coff-tic4x.lo $coffgen" ;;
647     tic54x_coff0_vec)            tb="$tb coff-tic54x.lo $coffgen" ;;
648     tic54x_coff0_beh_vec)        tb="$tb coff-tic54x.lo $coffgen" ;;
649     tic54x_coff1_vec)            tb="$tb coff-tic54x.lo $coffgen" ;;
650     tic54x_coff1_beh_vec)        tb="$tb coff-tic54x.lo $coffgen" ;;
651     tic54x_coff2_vec)            tb="$tb coff-tic54x.lo $coffgen" ;;
652     tic54x_coff2_beh_vec)        tb="$tb coff-tic54x.lo $coffgen" ;;
653     tic6x_elf32_be_vec)          tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
654     tic6x_elf32_le_vec)          tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
655     tic6x_elf32_c6000_be_vec)    tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
656     tic6x_elf32_c6000_le_vec)    tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
657     tic6x_elf32_linux_be_vec)    tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
658     tic6x_elf32_linux_le_vec)    tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
659     tic80_coff_vec)              tb="$tb coff-tic80.lo $coff" ;;
660     tilegx_elf32_be_vec)         tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
661     tilegx_elf32_le_vec)         tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
662     tilegx_elf64_be_vec)         tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
663     tilegx_elf64_le_vec)         tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
664     tilepro_elf32_vec)           tb="$tb elf32-tilepro.lo elf32.lo $elf" ;;
665     v800_elf32_vec)              tb="$tb elf32-v850.lo elf32.lo $elf" ;;
666     v850_elf32_vec)              tb="$tb elf32-v850.lo elf32.lo $elf" ;;
667     vax_aout_1knbsd_vec)         tb="$tb vax1knetbsd.lo aout32.lo" ;;
668     vax_aout_nbsd_vec)           tb="$tb vaxnetbsd.lo aout32.lo" ;;
669     vax_elf32_vec)               tb="$tb elf32-vax.lo elf32.lo $elf" ;;
670     ft32_elf32_vec)              tb="$tb elf32-ft32.lo elf32.lo $elf" ;;
671     visium_elf32_vec)            tb="$tb elf32-visium.lo elf32.lo $elf" ;;
672     wasm_vec)                    tb="$tb wasm-module.lo" ;;
673     wasm32_elf32_vec)            tb="$tb elf32-wasm32.lo elf32.lo $elf" ;;
674     x86_64_coff_vec)             tb="$tb coff-x86_64.lo $coff"; target_size=64 ;;
675     x86_64_elf32_vec)            tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
676     x86_64_elf32_nacl_vec)       tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
677     x86_64_elf64_vec)            tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
678     x86_64_elf64_cloudabi_vec)   tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
679     x86_64_elf64_fbsd_vec)       tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
680     x86_64_elf64_nacl_vec)       tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
681     x86_64_elf64_sol2_vec)       tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
682     x86_64_mach_o_vec)           tb="$tb mach-o-x86-64.lo" ;;
683     x86_64_pe_vec)               tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
684     x86_64_pe_be_vec)            tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
685     x86_64_pei_vec)              tb="$tb pei-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
686     xc16x_elf32_vec)             tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
687     xgate_elf32_vec)             tb="$tb elf32-xgate.lo elf32.lo $elf" ;;
688     xstormy16_elf32_vec)         tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
689     xtensa_elf32_be_vec)         tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
690     xtensa_elf32_le_vec)         tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
691     z80_coff_vec)                tb="$tb coff-z80.lo reloc16.lo $coffgen" ;;
692     z8k_coff_vec)                tb="$tb coff-z8k.lo reloc16.lo $coff" ;;
693
694     # These appear out of order in targets.c
695     srec_vec)                    tb="$tb srec.lo" ;;
696     symbolsrec_vec)              tb="$tb srec.lo" ;;
697     tekhex_vec)                  tb="$tb tekhex.lo" ;;
698     core_cisco_be_vec)           tb="$tb cisco-core.lo" ;;
699     core_cisco_le_vec)           tb="$tb cisco-core.lo" ;;
700
701     "")                          ;;
702     *) AC_MSG_ERROR(*** unknown target vector $vec) ;;
703     esac
704
705     if test ${target_size} = 64; then
706         target64=true
707     fi
708     if test x"${vec}" = x"${defvec}"; then
709         bfd_default_target_size=${target_size}
710     fi
711 done
712
713 # Target architecture .o files.
714 # A couple of CPUs use shorter file names to avoid problems on DOS
715 # filesystems.
716 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
717
718 # Weed out duplicate .o files.
719 f=""
720 for i in $tb ; do
721     case " $f " in
722     *" $i "*) ;;
723     *) f="$f $i" ;;
724     esac
725 done
726 tb="$f"
727
728 f=""
729 for i in $ta ; do
730     case " $f " in
731     *" $i "*) ;;
732     *) f="$f $i" ;;
733     esac
734 done
735 ta="$f"
736
737 bfd_backends="$tb"
738 bfd_machines="$ta"
739
740 if test x${all_targets} = xtrue ; then
741   bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
742   bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
743   selvecs=
744   havevecs=-DHAVE_all_vecs
745   selarchs=
746   test -n "$assocvecs" &&
747     assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
748 else    # all_targets is true
749   # Only set these if they will be nonempty, for the clever echo.
750   havevecs=
751   assocvecs=
752   test -n "$selvecs" &&
753     havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
754   test -n "$selvecs" &&
755     selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
756   test -n "$selarchs" &&
757     selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
758 fi      # all_targets is true
759
760 # 64-bit archives need a 64-bit bfd_vma.
761 if test "x$want_64_bit_archive" = xtrue; then
762   want64=true
763   AC_DEFINE(USE_64_BIT_ARCHIVE, 1,
764     [Define if 64-bit archives should always be used.])
765 fi
766
767 case ${host64}-${target64}-${want64} in
768   *true*)
769     wordsize=64
770     bfd64_libs='$(BFD64_LIBS)'
771     all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
772     if test $BFD_HOST_64_BIT_DEFINED = 0; then
773       AC_MSG_WARN([You have requested a 64 bit BFD configuration, but])
774       AC_MSG_WARN([your compiler may not have a 64 bit integral type])
775     fi
776     if test -n "$GCC" ; then
777        bad_64bit_gcc=no;
778        AC_MSG_CHECKING([for gcc version with buggy 64-bit support])
779        # Add more tests for gcc versions with non-working 64-bit support here.
780        AC_EGREP_CPP([: 2 : 91 : 1 :],[:__GNUC__:__GNUC_MINOR__:__i386__:],
781                     bad_64bit_gcc=yes;
782                     AC_MSG_RESULT([yes: egcs-1.1.2 on ix86 spotted]),
783                     AC_MSG_RESULT(no))
784        if test $bad_64bit_gcc = yes ; then
785          AC_MSG_ERROR([A newer version of gcc is needed for the requested 64-bit BFD configuration])
786        fi
787     fi
788     ;;
789   false-false-false)
790     wordsize=32
791     all_backends='$(BFD32_BACKENDS)'
792     ;;
793 esac
794
795 tdefaults=""
796 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
797 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
798 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
799 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
800
801 AC_SUBST(wordsize)
802 AC_SUBST(bfd64_libs)
803 AC_SUBST(all_backends)
804 AC_SUBST(bfd_backends)
805 AC_SUBST(bfd_machines)
806 AC_SUBST(bfd_default_target_size)
807 AC_SUBST(tdefaults)
808 AC_SUBST(havevecs)
809
810 # If we are configured native, pick a core file support file.
811 COREFILE=
812 COREFLAG=
813 CORE_HEADER=
814 TRAD_HEADER=
815 if test "${target}" = "${host}"; then
816   case "${host}" in
817   alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-*vms*)
818         COREFILE=''
819         ;;
820   alpha*-*-linux-*)
821         COREFILE=trad-core.lo
822         TRAD_HEADER='"hosts/alphalinux.h"'
823         ;;
824   alpha*-*-netbsd* | alpha*-*-openbsd*)
825         COREFILE=netbsd-core.lo
826         ;;
827   alpha*-*-*)
828         COREFILE=osf-core.lo
829         ;;
830   arm-*-freebsd* | arm-*-kfreebsd*-gnu)
831         COREFILE='' ;;
832   arm-*-netbsd* | arm-*-openbsd*)
833         COREFILE=netbsd-core.lo
834         ;;
835   arm-*-riscix)         COREFILE=trad-core.lo ;;
836   hppa*-*-hpux*)        COREFILE=hpux-core.lo ;;
837   hppa*-*-hiux*)        COREFILE=hpux-core.lo ;;
838   hppa*-*-mpeix*)       COREFILE=hpux-core.lo ;;
839   hppa*-*-bsd*)         COREFILE="hpux-core.lo hppabsd-core.lo"
840                         COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
841   hppa*-*-netbsd* | hppa*-*-openbsd*)
842         COREFILE=netbsd-core.lo
843         ;;
844
845 changequote(,)dnl
846   i[3-7]86-sequent-bsd*)
847 changequote([,])dnl
848         COREFILE=trad-core.lo
849         TRAD_HEADER='"hosts/symmetry.h"'
850         ;;
851 changequote(,)dnl
852   i[3-7]86-sequent-sysv4*) ;;
853   i[3-7]86-sequent-sysv*)
854 changequote([,])dnl
855         COREFILE=trad-core.lo
856         TRAD_HEADER='"hosts/symmetry.h"'
857         ;;
858 changequote(,)dnl
859   i[3-7]86-*-bsdi)
860 changequote([,])dnl
861         COREFILE=
862         ;;
863 changequote(,)dnl
864   i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
865 changequote([,])dnl
866         COREFILE=trad-core.lo
867         TRAD_HEADER='"hosts/i386bsd.h"'
868         ;;
869 changequote(,)dnl
870   i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
871 changequote([,])dnl
872         COREFILE=''
873         TRAD_HEADER='"hosts/i386bsd.h"'
874         ;;
875 changequote(,)dnl
876   i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
877 changequote([,])dnl
878         COREFILE=netbsd-core.lo
879         ;;
880 changequote(,)dnl
881   i[3-7]86-esix-sysv3*)
882 changequote([,])dnl
883         COREFILE=trad-core.lo
884         TRAD_HEADER='"hosts/esix.h"'
885         ;;
886 changequote(,)dnl
887   i[3-7]86-*-sco3.2v5*)
888 changequote([,])dnl
889         COREFILE=sco5-core.lo
890         ;;
891 changequote(,)dnl
892   i[3-7]86-*-sco* | i[3-7]86-*-isc*)
893 changequote([,])dnl
894         COREFILE=trad-core.lo
895         TRAD_HEADER='"hosts/i386sco.h"'
896         ;;
897 changequote(,)dnl
898   i[3-7]86-*-mach3*)
899 changequote([,])dnl
900         COREFILE=trad-core.lo
901         TRAD_HEADER='"hosts/i386mach3.h"'
902         ;;
903 changequote(,)dnl
904   i[3-7]86-*-linux-*)
905 changequote([,])dnl
906         COREFILE=trad-core.lo
907         TRAD_HEADER='"hosts/i386linux.h"'
908         case "$enable_targets"-"$want64" in
909         *x86_64-*linux*|*-true)
910           CORE_HEADER='"hosts/x86-64linux.h"'
911         esac
912         ;;
913 changequote(,)dnl
914   i[3-7]86-*-isc*)      COREFILE=trad-core.lo ;;
915   i[3-7]86-*-aix*)      COREFILE=aix386-core.lo ;;
916 changequote([,])dnl
917   mips-*-netbsd* | mips*-*-openbsd*)
918         COREFILE=netbsd-core.lo
919         ;;
920   mips-sgi-irix4*)      COREFILE=irix-core.lo ;;
921   mips-sgi-irix5*)      COREFILE=irix-core.lo ;;
922   mips-sgi-irix6*)      COREFILE=irix-core.lo ;;
923   m68*-*-linux-*)
924         COREFILE=trad-core.lo
925         TRAD_HEADER='"hosts/m68klinux.h"'
926         ;;
927   m68*-*-netbsd*)
928         COREFILE=netbsd-core.lo
929         ;;
930   ns32k-pc532-mach)
931         COREFILE=trad-core.lo
932         TRAD_HEADER='"hosts/pc532mach.h"'
933         ;;
934   ns32k-*-netbsd* | ns32k-*-openbsd*)
935         COREFILE=netbsd-core.lo
936         ;;
937   rs6000-*-lynx*)
938         COREFILE=lynx-core.lo
939         ;;
940 changequote(,)dnl
941   rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].* | powerpc64-*-aix[5-9].*)
942 changequote([,])dnl
943         COREFILE=rs6000-core.lo
944         COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
945         ;;
946 changequote(,)dnl
947   rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
948 changequote([,])dnl
949         COREFILE=rs6000-core.lo
950         COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
951         # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
952         # have c_impl as a member of struct core_dumpx
953         AC_MSG_CHECKING([for c_impl in struct core_dumpx])
954         AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <core.h>]], [[struct core_dumpx c; c.c_impl = 0;]])],[AC_DEFINE(HAVE_ST_C_IMPL, 1,
955             [Define if struct core_dumpx has member c_impl])
956           AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
957         ;;
958   rs6000-*-aix4*)       COREFILE=rs6000-core.lo ;;
959   rs6000-*-*)           COREFILE=rs6000-core.lo ;;
960   powerpc64-*-aix*)     COREFILE=rs6000-core.lo ;;
961   powerpc-*-aix4*)      COREFILE=rs6000-core.lo ;;
962   powerpc-*-aix*)       COREFILE=rs6000-core.lo ;;
963   powerpc-*-beos*)      ;;
964   powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
965                         COREFILE='' ;;
966   powerpc-*-netbsd*)    COREFILE=netbsd-core.lo ;;
967   powerpc-*-*bsd*)      COREFILE=netbsd-core.lo ;;
968   s390*-*-*)            COREFILE=trad-core.lo ;;
969   sh*-*-netbsd* | sh*-*-openbsd*)
970         COREFILE=netbsd-core.lo
971         ;;
972   sparc-*-netbsd* | sparc*-*-openbsd*)
973         COREFILE=netbsd-core.lo
974         ;;
975   vax-*-netbsd* | vax-*-openbsd*)
976         COREFILE=netbsd-core.lo
977         ;;
978   vax-*-ultrix2*)
979         COREFILE=trad-core.lo
980         TRAD_HEADER='"hosts/vaxult2.h"'
981         ;;
982   vax-*-ultrix*)
983         COREFILE=trad-core.lo
984         TRAD_HEADER='"hosts/vaxult2.h"'
985         ;;
986   vax-*-linux-*)
987         COREFILE=trad-core.lo
988         TRAD_HEADER='"hosts/vaxlinux.h"'
989         ;;
990   vax-*-*)
991         COREFILE=trad-core.lo
992         TRAD_HEADER='"hosts/vaxbsd.h"'
993         ;;
994   x86_64-*-linux*)
995         CORE_HEADER='"hosts/x86-64linux.h"'
996         ;;
997   x86_64-*-netbsd* | x86_64-*-openbsd*)
998         COREFILE=netbsd-core.lo
999         ;;
1000   esac
1001
1002   case "$COREFILE" in
1003   aix386-core.lo)       COREFLAG=-DAIX386_CORE ;;
1004   hppabsd-core.lo)      COREFLAG=-DHPPABSD_CORE ;;
1005   hpux-core.lo)         COREFLAG=-DHPUX_CORE ;;
1006   irix-core.lo)         COREFLAG=-DIRIX_CORE ;;
1007   lynx-core.lo)         COREFLAG=-DLYNX_CORE ;;
1008   netbsd-core.lo)       COREFLAG=-DNETBSD_CORE ;;
1009   osf-core.lo)          COREFLAG=-DOSF_CORE ;;
1010   ptrace-core.lo)       COREFLAG=-DPTRACE_CORE ;;
1011   rs6000-core.lo)       COREFLAG="$COREFLAG -DAIX_CORE" ;;
1012   sco5-core.lo)         COREFLAG="$COREFLAG -DSCO5_CORE" ;;
1013   trad-core.lo)         COREFLAG="$COREFLAG -DTRAD_CORE" ;;
1014   esac
1015
1016   # ELF corefile support has several flavors, but all of
1017   # them use something called <sys/procfs.h>
1018   AC_CHECK_HEADERS(sys/procfs.h)
1019   if test "$ac_cv_header_sys_procfs_h" = yes; then
1020     BFD_HAVE_SYS_PROCFS_TYPE(prstatus_t)
1021     BFD_HAVE_SYS_PROCFS_TYPE(prstatus32_t)
1022     BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus_t, pr_who)
1023     BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus32_t, pr_who)
1024     BFD_HAVE_SYS_PROCFS_TYPE(pstatus_t)
1025     BFD_HAVE_SYS_PROCFS_TYPE(pxstatus_t)
1026     BFD_HAVE_SYS_PROCFS_TYPE(pstatus32_t)
1027     BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo_t)
1028     BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prpsinfo_t, pr_pid)
1029     BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo32_t)
1030     BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prpsinfo32_t, pr_pid)
1031     BFD_HAVE_SYS_PROCFS_TYPE(psinfo_t)
1032     BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(psinfo_t, pr_pid)
1033     BFD_HAVE_SYS_PROCFS_TYPE(psinfo32_t)
1034     BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(psinfo32_t, pr_pid)
1035     BFD_HAVE_SYS_PROCFS_TYPE(lwpstatus_t)
1036     BFD_HAVE_SYS_PROCFS_TYPE(lwpxstatus_t)
1037     BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_context)
1038     BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_reg)
1039     BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_fpreg)
1040     BFD_HAVE_SYS_PROCFS_TYPE(win32_pstatus_t)
1041   fi
1042 fi
1043 AC_SUBST(COREFILE)
1044 AC_SUBST(COREFLAG)
1045 if test -n "$CORE_HEADER"; then
1046   AC_DEFINE_UNQUOTED(CORE_HEADER, $CORE_HEADER,
1047     [Name of host specific core header file to include in elf.c.])
1048 fi
1049 if test -n "$TRAD_HEADER"; then
1050   AC_DEFINE_UNQUOTED(TRAD_HEADER, $TRAD_HEADER,
1051     [Name of host specific header file to include in trad-core.c.])
1052 fi
1053
1054 if test "$plugins" = "yes"; then
1055   supports_plugins=1
1056 else
1057   supports_plugins=0
1058 fi
1059 AC_SUBST(supports_plugins)
1060 AC_SUBST(lt_cv_dlopen_libs)
1061
1062 # Determine the host dependent file_ptr a.k.a. off_t type.  In order
1063 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
1064 # fseeko, long.  This assumes that sizeof off_t is .ge. sizeof long.
1065 # Hopefully a reasonable assumption since fseeko et.al. should be
1066 # upward compatible.
1067 AC_CHECK_FUNCS(ftello ftello64 fseeko fseeko64 fopen64)
1068 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
1069     AC_CHECK_SIZEOF(off_t)
1070 fi
1071 AC_MSG_CHECKING([file_ptr type])
1072 bfd_file_ptr="long"
1073 bfd_ufile_ptr="unsigned long"
1074 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
1075         -o x"${ac_cv_sizeof_off_t}" = x8; then
1076     bfd_file_ptr=BFD_HOST_64_BIT
1077     bfd_ufile_ptr=BFD_HOST_U_64_BIT
1078 fi
1079 AC_MSG_RESULT($bfd_file_ptr)
1080 AC_SUBST(bfd_file_ptr)
1081 AC_SUBST(bfd_ufile_ptr)
1082
1083 dnl AC_CHECK_HEADERS(sys/mman.h)
1084 AC_FUNC_MMAP
1085 AC_CHECK_FUNCS(madvise mprotect)
1086 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
1087   true+yes )  AC_DEFINE(USE_MMAP, 1, [Use mmap if it's available?]) ;;
1088 esac
1089
1090 rm -f doc/config.status
1091 AC_CONFIG_FILES([Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in])
1092
1093 dnl We need this duplication, even though we use AM_PO_SUBDIRS, because of
1094 dnl our two separate POTFILES.  Yuck.
1095 AC_CONFIG_COMMANDS([default],
1096 [[
1097 case "$srcdir" in
1098   .) srcdirpre= ;;
1099   *) srcdirpre='$(srcdir)/' ;;
1100 esac
1101 POFILES=
1102 GMOFILES=
1103 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
1104   if test $lang != dummy; then
1105     POFILES="$POFILES $srcdirpre$lang.po"
1106     GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
1107   fi
1108 done
1109 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
1110     -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
1111     -e "s,@POFILES@,$POFILES," \
1112     -e "s,@GMOFILES@,$GMOFILES," \
1113     po/Makefile.in > po/Makefile]],[[]])
1114
1115 dnl Required by html, pdf, install-pdf and install-html
1116 AC_SUBST(datarootdir)
1117 AC_SUBST(docdir)
1118 AC_SUBST(htmldir)
1119 AC_SUBST(pdfdir)
1120
1121 AC_OUTPUT