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