Fix two regressions caused by CU / TU merging
[deliverable/binutils-gdb.git] / binutils / configure.ac
CommitLineData
252b5132
RH
1dnl Process this file with autoconf to produce a configure script.
2dnl
250d07de 3dnl Copyright (C) 2012-2021 Free Software Foundation, Inc.
5bf135a7
NC
4dnl
5dnl This file is free software; you can redistribute it and/or modify
6dnl it under the terms of the GNU General Public License as published by
7dnl the Free Software Foundation; either version 3 of the License, or
8dnl (at your option) any later version.
3aade688 9dnl
5bf135a7
NC
10dnl This program is distributed in the hope that it will be useful,
11dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
12dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13dnl GNU General Public License for more details.
3aade688 14dnl
5bf135a7
NC
15dnl You should have received a copy of the GNU General Public License
16dnl along with this program; see the file COPYING3. If not see
17dnl <http://www.gnu.org/licenses/>.
18dnl
19
2e98a7bd 20m4_include([../bfd/version.m4])
301a9420 21m4_include([../config/debuginfod.m4])
2e98a7bd 22AC_INIT([binutils], BFD_VERSION)
da594c4a 23AC_CONFIG_SRCDIR(ar.c)
252b5132 24
da594c4a 25AC_CANONICAL_TARGET
252b5132 26
2e98a7bd 27AM_INIT_AUTOMAKE
252b5132 28
d45dc31f
SE
29AC_PROG_CC
30AC_GNU_SOURCE
7357c5b6 31AC_USE_SYSTEM_EXTENSIONS
e3525117 32
da594c4a 33LT_INIT
b879806f 34ACX_LARGEFILE
252b5132 35
43e05cd4
AM
36ac_checking=
37. ${srcdir}/../bfd/development.sh
38test "$development" = true && ac_checking=yes
39AC_ARG_ENABLE(checking,
40[ --enable-checking enable run-time checks],
41[case "${enableval}" in
42 no|none) ac_checking= ;;
43 *) ac_checking=yes ;;
44esac])dnl
45if test x$ac_checking != x ; then
46 AC_DEFINE(ENABLE_CHECKING, 1, [Define if you want run-time sanity checks.])
47fi
48
252b5132
RH
49AC_ARG_ENABLE(targets,
50[ --enable-targets alternative target configurations],
51[case "${enableval}" in
da594c4a 52 yes | "") AC_MSG_ERROR(enable-targets option must specify target names or 'all')
252b5132
RH
53 ;;
54 no) enable_targets= ;;
55 *) enable_targets=$enableval ;;
56esac])dnl
252b5132 57
e6f6aa8d 58
9cb80f72
RM
59AC_ARG_ENABLE(deterministic-archives,
60[AS_HELP_STRING([--enable-deterministic-archives],
61 [ar and ranlib default to -D behavior])], [
62if test "${enableval}" = no; then
63 default_ar_deterministic=0
64else
65 default_ar_deterministic=1
66fi], [default_ar_deterministic=0])
67
68AC_DEFINE_UNQUOTED(DEFAULT_AR_DETERMINISTIC, $default_ar_deterministic,
69 [Should ar and ranlib use -D behavior by default?])
70
e6f6aa8d 71
7fac9594
NC
72AC_ARG_ENABLE(default-strings-all,
73[AS_HELP_STRING([--disable-default-strings-all],
74 [strings defaults to --data behavior])], [
75if test "${enableval}" = no; then
76 default_strings_all=0
77else
78 default_strings_all=1
79fi], [default_strings_all=1])
80
81AC_DEFINE_UNQUOTED(DEFAULT_STRINGS_ALL, $default_strings_all,
82 [Should strings use -a behavior by default?])
83
e6f6aa8d
NC
84
85AC_ARG_ENABLE(f-for-ifunc-symbols,
86[AS_HELP_STRING([--enable-f-for-ifunc-symbols],
87 [Have nm use F and f for global and local ifunc symbols])], [
88if test "${enableval}" = no; then
89 default_f_for_ifunc=0
90else
91 default_f_for_ifunc=1
92fi], [default_f_for_ifunc=0])
93
94AC_DEFINE_UNQUOTED(DEFAULT_F_FOR_IFUNC_SYMBOLS, $default_f_for_ifunc,
95 [Have nm use F and f for global and local ifunc symbols])
96
c46b7066
NC
97
98AC_ARG_ENABLE(follow-debug-links,
99[AS_HELP_STRING([--enable-follow-debug-links],
100 [Have readelf and objdump follow debug links by default])], [
101if test "${enableval}" = no; then
102 default_for_follow_links=0
103else
104 default_for_follow_links=1
105fi], [default_for_follow_links=1])
106
107AC_DEFINE_UNQUOTED(DEFAULT_FOR_FOLLOW_LINKS, $default_for_follow_links,
108 [Have readelf and objdump follow debug links by default])
109
110
e6f6aa8d
NC
111AC_DEBUGINFOD
112
094e34f2
NA
113GCC_ENABLE([libctf], [yes], [], [Handle .ctf type-info sections])
114if test "${enable_libctf}" = yes; then
115 AC_DEFINE(ENABLE_LIBCTF, 1, [Handle .ctf type-info sections])
116fi
117AM_CONDITIONAL(ENABLE_LIBCTF, test "${enable_libctf}" = yes)
118
398ee8f1 119AM_BINUTILS_WARNINGS
9cb80f72 120
da594c4a 121AC_CONFIG_HEADERS(config.h:config.in)
252b5132 122
df7b86aa
NC
123AH_VERBATIM([00_CONFIG_H_CHECK],
124[/* Check that config.h is #included before system headers
125 (this works only for glibc, but that should be enough). */
e6f88107 126#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__)
df7b86aa 127# error config.h must be #included before system headers
e6f88107
AM
128#endif
129#define __CONFIG_H__ 1])
df7b86aa 130
252b5132
RH
131if test -z "$target" ; then
132 AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
133fi
134if test -z "$host" ; then
135 AC_MSG_ERROR(Unrecognized host system type; please check config.sub.)
136fi
137
252b5132
RH
138AC_PROG_YACC
139AM_PROG_LEX
140
e184813f 141ALL_LINGUAS="bg ca da es fi fr hr id it ja pt ro ru rw sk sr sv tr uk vi zh_CN zh_TW"
20e95c23
DJ
142ZW_GNU_GETTEXT_SISTER_DIR
143AM_PO_SUBDIRS
252b5132
RH
144
145AM_MAINTAINER_MODE
d5fbea21 146AM_CONDITIONAL(GENINSRC_NEVER, false)
252b5132 147AC_EXEEXT
2481e6a2
ILT
148if test -n "$EXEEXT"; then
149 AC_DEFINE(HAVE_EXECUTABLE_SUFFIX, 1,
150 [Does the platform use an executable suffix?])
151fi
bb0cb4db
ILT
152AC_DEFINE_UNQUOTED(EXECUTABLE_SUFFIX, "${EXEEXT}",
153 [Suffix used for executables, if any.])
252b5132
RH
154
155# host-specific stuff:
156
157HDEFINES=
158
159. ${srcdir}/../bfd/configure.host
160
161AC_SUBST(HDEFINES)
162AR=${AR-ar}
163AC_SUBST(AR)
164AC_PROG_RANLIB
165AC_PROG_INSTALL
166
167BFD_CC_FOR_BUILD
168
8a965946
ILT
169DEMANGLER_NAME=c++filt
170case "${host}" in
171 *-*-go32* | *-*-msdos*)
172 DEMANGLER_NAME=cxxfilt
173esac
174AC_SUBST(DEMANGLER_NAME)
175
4c219c2e 176AC_CHECK_SIZEOF([long])
87b9f255
AM
177AC_CHECK_SIZEOF([long long])
178
179# We use headers from include/ that check various HAVE_*_H macros, thus
180# should ensure they are set by configure. This is true even when C99
181# guarantees they are available.
182# plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H
183# Besides those, we need to check anything used in binutils/ not in C99.
13acb58d 184AC_CHECK_HEADERS(fcntl.h inttypes.h stdint.h sys/file.h \
985e0264 185 sys/stat.h sys/time.h sys/types.h unistd.h)
252b5132 186AC_HEADER_SYS_WAIT
34156b23 187AC_FUNC_MMAP
985e0264
AM
188AC_CHECK_FUNCS(getc_unlocked mkdtemp mkstemp sbrk utimensat utimes)
189
190AC_MSG_CHECKING([for mbstate_t])
191AC_TRY_COMPILE([#include <wchar.h>],
192[mbstate_t teststate;],
193have_mbstate_t=yes, have_mbstate_t=no)
194AC_MSG_RESULT($have_mbstate_t)
195if test x"$have_mbstate_t" = xyes; then
196 AC_DEFINE(HAVE_MBSTATE_T,1,[Define if mbstate_t exists in wchar.h.])
197fi
198
199# Copied from gnulib stat-time.m4.
200# We should just switch over to using gnulib.
201AC_CHECK_MEMBERS([struct stat.st_atim.tv_nsec],
202 [AC_CACHE_CHECK([whether struct stat.st_atim is of type struct timespec],
203 [ac_cv_typeof_struct_stat_st_atim_is_struct_timespec],
204 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
205 [[
206 #include <sys/types.h>
207 #include <sys/stat.h>
208 #if HAVE_SYS_TIME_H
209 # include <sys/time.h>
210 #endif
211 #include <time.h>
212 struct timespec ts;
213 struct stat st;
214 ]],
215 [[
216 st.st_atim = ts;
217 ]])],
218 [ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes],
219 [ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no])])
220 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
221 AC_DEFINE([TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC], [1],
222 [Define to 1 if the type of the st_atim member of a struct stat is
223 struct timespec.])
224 fi],
225 [AC_CHECK_MEMBERS([struct stat.st_atimespec.tv_nsec], [],
226 [AC_CHECK_MEMBERS([struct stat.st_atimensec], [],
227 [AC_CHECK_MEMBERS([struct stat.st_atim.st__tim.tv_nsec], [], [],
228 [#include <sys/types.h>
229 #include <sys/stat.h>])],
230 [#include <sys/types.h>
231 #include <sys/stat.h>])],
232 [#include <sys/types.h>
233 #include <sys/stat.h>])],
234 [#include <sys/types.h>
235 #include <sys/stat.h>])
cedd9a58 236
f353eb8a 237# Some systems have frexp only in -lm, not in -lc.
07735828 238AC_SEARCH_LIBS(frexp, m)
f353eb8a 239
44350750
NC
240AM_LC_MESSAGES
241
e46eba98
NC
242AC_MSG_CHECKING(for a known getopt prototype in unistd.h)
243AC_CACHE_VAL(bu_cv_decl_getopt_unistd_h,
da594c4a 244[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <unistd.h>], [extern int getopt (int, char *const*, const char *);])],
e46eba98
NC
245bu_cv_decl_getopt_unistd_h=yes, bu_cv_decl_getopt_unistd_h=no)])
246AC_MSG_RESULT($bu_cv_decl_getopt_unistd_h)
247if test $bu_cv_decl_getopt_unistd_h = yes; then
248 AC_DEFINE([HAVE_DECL_GETOPT], 1,
249 [Is the prototype for getopt in <unistd.h> in the expected format?])
250fi
251
252b5132
RH
252# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
253# by default.
254AC_MSG_CHECKING([for utime.h])
255AC_CACHE_VAL(bu_cv_header_utime_h,
da594c4a 256[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <sys/types.h>
252b5132
RH
257#ifdef HAVE_TIME_H
258#include <time.h>
259#endif
260#include <utime.h>],
da594c4a 261[struct utimbuf s;])],
252b5132
RH
262bu_cv_header_utime_h=yes, bu_cv_header_utime_h=no)])
263AC_MSG_RESULT($bu_cv_header_utime_h)
264if test $bu_cv_header_utime_h = yes; then
265 AC_DEFINE(HAVE_GOOD_UTIME_H, 1, [Does <utime.h> define struct utimbuf?])
266fi
267
87b9f255 268AC_CHECK_DECLS([asprintf, environ, getc_unlocked, sbrk, stpcpy])
252b5132 269
ed2b5077
L
270# Link in zlib if we can. This allows us to read compressed debug
271# sections. This is used only by readelf.c (objdump uses bfd for
272# reading compressed sections).
273AM_ZLIB
1b315056 274
252b5132
RH
275BFD_BINARY_FOPEN
276
277# target-specific stuff:
278
279# Canonicalize the secondary target names.
280if test -n "$enable_targets"; then
281 for targ in `echo $enable_targets | sed 's/,/ /g'`
282 do
6d83c84b 283 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
284 if test -n "$result"; then
285 canon_targets="$canon_targets $result"
286 else
287 # Allow targets that config.sub doesn't recognize, like "all".
288 canon_targets="$canon_targets $targ"
289 fi
290 done
291fi
292
5ba684e2
NC
293AC_CHECK_HEADER(iconv.h)
294AM_ICONV
295
252b5132 296all_targets=false
252b5132
RH
297BUILD_SRCONV=
298BUILD_DLLTOOL=
299DLLTOOL_DEFS=
7aad4c3d 300DLLTOOL_DEFAULT=
252b5132 301BUILD_WINDRES=
692ed3e7 302BUILD_WINDMC=
252b5132
RH
303BUILD_DLLWRAP=
304BUILD_MISC=
1d97d67f 305BUILD_INSTALL_MISC=
8b1e6df3 306OBJDUMP_DEFS=
6abcee90
TG
307OBJDUMP_PRIVATE_VECTORS=
308OBJDUMP_PRIVATE_OFILES=
309od_vectors=
252b5132
RH
310
311for targ in $target $canon_targets
312do
313 if test "x$targ" = "xall"; then
314 all_targets=true
252b5132 315 BUILD_SRCONV='$(SRCONV_PROG)'
1d97d67f 316 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
003bc0ba
NC
317 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
318 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
319 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
320 if test -z "$DLLTOOL_DEFAULT"; then
321 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
322 fi
323 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
324 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
6abcee90 325 od_vectors="$od_vectors objdump_private_desc_xcoff"
252b5132
RH
326 else
327 case $targ in
252b5132
RH
328 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
329 esac
6abcee90 330
252b5132 331 case $targ in
361dff73 332 arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
7148cc28 333 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
334 if test -z "$DLLTOOL_DEFAULT"; then
335 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
336 fi
7148cc28
NC
337 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
338 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 339 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7148cc28
NC
340 ;;
341 arm-*-pe*)
252b5132 342 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
343 if test -z "$DLLTOOL_DEFAULT"; then
344 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
345 fi
252b5132
RH
346 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
347 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 348 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 349 ;;
ee36d918 350 x86_64-*-mingw* | x86_64-*-cygwin*)
99ad8390 351 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
352 if test -z "$DLLTOOL_DEFAULT"; then
353 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
354 fi
99ad8390
NC
355 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
356 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 357 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
99ad8390
NC
358 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
359 ;;
252b5132 360changequote(,)dnl
80c7c40a 361 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
252b5132
RH
362changequote([,])dnl
363 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
364 if test -z "$DLLTOOL_DEFAULT"; then
365 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
366 fi
252b5132
RH
367 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
368 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 369 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
252b5132 370 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
7a7b06ef 371 ;;
80c7c40a
NC
372changequote(,)dnl
373 i[3-7]86-*-interix)
374changequote([,])dnl
7a7b06ef 375 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
7aad4c3d
L
376 if test -z "$DLLTOOL_DEFAULT"; then
377 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
378 fi
7a7b06ef
ILT
379 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
380 ;;
f0660b73
NC
381changequote(,)dnl
382 powerpc*-aix5.[01])
383changequote([,])dnl
384 ;;
e5231592
RS
385changequote(,)dnl
386 powerpc*-aix[5-9].*)
387changequote([,])dnl
f0660b73
NC
388 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
389 ;;
59678365 390 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
1ab52cbe
AM
391 case "$BUILD_INSTALL_MISC" in
392 *embedspu*) ;;
393 *) BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
394 esac
669a9a2a 395 ;;
e1d5b1e7 396 sh*-*-pe)
8a0e0f38 397 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
398 if test -z "$DLLTOOL_DEFAULT"; then
399 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
400 fi
8a0e0f38
NC
401 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
402 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 403 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 404 ;;
cd14b966 405 spu-*-*)
1d97d67f 406 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
cd14b966 407 ;;
e1d5b1e7 408 mips*-*-pe)
8a0e0f38 409 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
410 if test -z "$DLLTOOL_DEFAULT"; then
411 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
412 fi
8a0e0f38
NC
413 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
414 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 415 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 416 ;;
27a710e5 417 mcore-*-pe)
661016bb 418 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
419 if test -z "$DLLTOOL_DEFAULT"; then
420 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
421 fi
661016bb
NC
422 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
423 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 424 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 425 ;;
27a710e5 426 mcore-*-elf)
661016bb 427 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
428 if test -z "$DLLTOOL_DEFAULT"; then
429 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
430 fi
661016bb 431 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
7a7b06ef 432 ;;
15ab5209
DB
433 mep-*)
434 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
435 ;;
252b5132 436 esac
6abcee90
TG
437
438 # Add objdump private vectors.
439 case $targ in
6d0cfb9c
DC
440 avr-*-*)
441 od_vectors="$od_vectors objdump_private_desc_elf32_avr"
442 ;;
52fe4420 443 powerpc*-*-aix* | rs6000-*-aix*)
c5012cd8
TG
444 od_vectors="$od_vectors objdump_private_desc_xcoff"
445 ;;
446 *-*-darwin*)
447 od_vectors="$od_vectors objdump_private_desc_mach_o"
6abcee90
TG
448 ;;
449 esac
252b5132
RH
450 fi
451done
452
6abcee90
TG
453# Uniq objdump private vector, build objdump target ofiles.
454od_files=
455f=""
456for i in $od_vectors ; do
457 case " $f " in
458 *" $i "*) ;;
459 *)
460 f="$f $i"
461 OBJDUMP_PRIVATE_VECTORS="$OBJDUMP_PRIVATE_VECTORS &$i,"
462 case $i in
6d0cfb9c
DC
463 objdump_private_desc_elf32_avr)
464 od_files="$od_files od-elf32_avr" ;;
6abcee90
TG
465 objdump_private_desc_xcoff)
466 od_files="$od_files od-xcoff" ;;
c5012cd8
TG
467 objdump_private_desc_mach_o)
468 od_files="$od_files od-macho" ;;
6abcee90
TG
469 *) AC_MSG_ERROR(*** unknown private vector $i) ;;
470 esac
471 ;;
472 esac
473done
474
475# Uniq objdump target ofiles
476f=""
477for i in $od_files ; do
478 case " $f " in
479 *" $i "*) ;;
480 *)
481 f="$f $i"
482 OBJDUMP_PRIVATE_OFILES="$OBJDUMP_PRIVATE_OFILES $i.$objext"
483 ;;
484 esac
485done
486
7aad4c3d
L
487DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
488
c918cb96
DD
489if test "${with_windres+set}" = set; then
490 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
491fi
492
692ed3e7
NC
493if test "${with_windmc+set}" = set; then
494 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
495fi
496
6abcee90
TG
497OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\""
498
252b5132
RH
499AC_SUBST(BUILD_SRCONV)
500AC_SUBST(BUILD_DLLTOOL)
501AC_SUBST(DLLTOOL_DEFS)
502AC_SUBST(BUILD_WINDRES)
692ed3e7 503AC_SUBST(BUILD_WINDMC)
252b5132
RH
504AC_SUBST(BUILD_DLLWRAP)
505AC_SUBST(BUILD_MISC)
1d97d67f 506AC_SUBST(BUILD_INSTALL_MISC)
8b1e6df3 507AC_SUBST(OBJDUMP_DEFS)
6abcee90 508AC_SUBST(OBJDUMP_PRIVATE_OFILES)
252b5132
RH
509
510AC_DEFINE_UNQUOTED(TARGET, "${target}", [Configured target name.])
511
512targ=$target
513. $srcdir/../bfd/config.bfd
514if test "x$targ_underscore" = "xyes"; then
515 UNDERSCORE=1
516else
517 UNDERSCORE=0
518fi
bb279dc0
ZW
519AC_DEFINE_UNQUOTED(TARGET_PREPENDS_UNDERSCORE, $UNDERSCORE,
520 [Define to 1 if user symbol names have a leading underscore, 0 if not.])
252b5132 521
9cb80f72 522# Emulation
52fbfb5d
AM
523targ=$target
524. ${srcdir}/configure.tgt
525EMULATION=$targ_emul
9cb80f72 526EMULATION_VECTOR=$targ_emul_vector
eb1e0e80
NC
527
528AC_SUBST(EMULATION)
529AC_SUBST(EMULATION_VECTOR)
530
108a6f8e
CD
531# Required for html and install-html
532AC_SUBST(datarootdir)
533AC_SUBST(docdir)
534AC_SUBST(htmldir)
31dd3154 535AC_SUBST(pdfdir)
108a6f8e 536
da594c4a
AM
537AC_CONFIG_FILES(Makefile doc/Makefile po/Makefile.in:po/Make-in)
538AC_OUTPUT
d546b610
L
539
540GNU_MAKE_JOBSERVER
This page took 0.857729 seconds and 4 git commands to generate.