]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/configure.ac
(Ada) Add ravenscar tasking support on AArch64
[thirdparty/binutils-gdb.git] / binutils / configure.ac
CommitLineData
252b5132
RH
1dnl Process this file with autoconf to produce a configure script.
2dnl
219d1afa 3dnl Copyright (C) 2012-2018 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
AM
20m4_include([../bfd/version.m4])
21AC_INIT([binutils], BFD_VERSION)
da594c4a 22AC_CONFIG_SRCDIR(ar.c)
252b5132 23
da594c4a 24AC_CANONICAL_TARGET
5d64ca4e 25AC_ISC_POSIX
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
RH
35
36AC_ARG_ENABLE(targets,
37[ --enable-targets alternative target configurations],
38[case "${enableval}" in
da594c4a 39 yes | "") AC_MSG_ERROR(enable-targets option must specify target names or 'all')
252b5132
RH
40 ;;
41 no) enable_targets= ;;
42 *) enable_targets=$enableval ;;
43esac])dnl
252b5132 44
9cb80f72
RM
45AC_ARG_ENABLE(deterministic-archives,
46[AS_HELP_STRING([--enable-deterministic-archives],
47 [ar and ranlib default to -D behavior])], [
48if test "${enableval}" = no; then
49 default_ar_deterministic=0
50else
51 default_ar_deterministic=1
52fi], [default_ar_deterministic=0])
53
54AC_DEFINE_UNQUOTED(DEFAULT_AR_DETERMINISTIC, $default_ar_deterministic,
55 [Should ar and ranlib use -D behavior by default?])
56
7fac9594
NC
57AC_ARG_ENABLE(default-strings-all,
58[AS_HELP_STRING([--disable-default-strings-all],
59 [strings defaults to --data behavior])], [
60if test "${enableval}" = no; then
61 default_strings_all=0
62else
63 default_strings_all=1
64fi], [default_strings_all=1])
65
66AC_DEFINE_UNQUOTED(DEFAULT_STRINGS_ALL, $default_strings_all,
67 [Should strings use -a behavior by default?])
68
398ee8f1 69AM_BINUTILS_WARNINGS
9cb80f72 70
da594c4a 71AC_CONFIG_HEADERS(config.h:config.in)
252b5132 72
df7b86aa
NC
73AH_VERBATIM([00_CONFIG_H_CHECK],
74[/* Check that config.h is #included before system headers
75 (this works only for glibc, but that should be enough). */
e6f88107 76#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__)
df7b86aa 77# error config.h must be #included before system headers
e6f88107
AM
78#endif
79#define __CONFIG_H__ 1])
df7b86aa 80
252b5132
RH
81if test -z "$target" ; then
82 AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
83fi
84if test -z "$host" ; then
85 AC_MSG_ERROR(Unrecognized host system type; please check config.sub.)
86fi
87
252b5132
RH
88AC_PROG_YACC
89AM_PROG_LEX
90
e184813f 91ALL_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
92ZW_GNU_GETTEXT_SISTER_DIR
93AM_PO_SUBDIRS
252b5132
RH
94
95AM_MAINTAINER_MODE
d5fbea21 96AM_CONDITIONAL(GENINSRC_NEVER, false)
252b5132 97AC_EXEEXT
2481e6a2
ILT
98if test -n "$EXEEXT"; then
99 AC_DEFINE(HAVE_EXECUTABLE_SUFFIX, 1,
100 [Does the platform use an executable suffix?])
101fi
bb0cb4db
ILT
102AC_DEFINE_UNQUOTED(EXECUTABLE_SUFFIX, "${EXEEXT}",
103 [Suffix used for executables, if any.])
252b5132
RH
104
105# host-specific stuff:
106
107HDEFINES=
108
109. ${srcdir}/../bfd/configure.host
110
111AC_SUBST(HDEFINES)
112AR=${AR-ar}
113AC_SUBST(AR)
114AC_PROG_RANLIB
115AC_PROG_INSTALL
116
117BFD_CC_FOR_BUILD
118
8a965946
ILT
119DEMANGLER_NAME=c++filt
120case "${host}" in
121 *-*-go32* | *-*-msdos*)
122 DEMANGLER_NAME=cxxfilt
123esac
124AC_SUBST(DEMANGLER_NAME)
125
4c219c2e
AM
126AC_CHECK_SIZEOF([long])
127AC_CHECK_TYPES([long long], [AC_CHECK_SIZEOF(long long)])
128
3bfcb652 129AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h locale.h sys/param.h wchar.h)
252b5132 130AC_HEADER_SYS_WAIT
208a4923 131ACX_HEADER_STRING
252b5132 132AC_FUNC_ALLOCA
44350750 133AC_CHECK_FUNCS(sbrk utimes setmode getc_unlocked strcoll setlocale)
f9c026a8
NC
134AC_CHECK_FUNC([mkstemp],
135 AC_DEFINE([HAVE_MKSTEMP], 1,
136 [Define to 1 if you have the `mkstemp' function.]))
137AC_CHECK_FUNC([mkdtemp],
138 AC_DEFINE([HAVE_MKDTEMP], 1,
139 [Define to 1 if you have the `mkdtemp' function.]))
3bfcb652
NC
140 AC_MSG_CHECKING([for mbstate_t])
141 AC_TRY_COMPILE([#include <wchar.h>],
142 [mbstate_t teststate;],
143 have_mbstate_t=yes, have_mbstate_t=no)
144 AC_MSG_RESULT($have_mbstate_t)
145 if test x"$have_mbstate_t" = xyes; then
146 AC_DEFINE(HAVE_MBSTATE_T,1,[Define if mbstate_t exists in wchar.h.])
147 fi
cedd9a58 148
f353eb8a 149# Some systems have frexp only in -lm, not in -lc.
07735828 150AC_SEARCH_LIBS(frexp, m)
f353eb8a 151
44350750
NC
152AM_LC_MESSAGES
153
252b5132
RH
154AC_MSG_CHECKING(for time_t in time.h)
155AC_CACHE_VAL(bu_cv_decl_time_t_time_h,
da594c4a 156[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <time.h>], [time_t i;])],
252b5132
RH
157bu_cv_decl_time_t_time_h=yes, bu_cv_decl_time_t_time_h=no)])
158AC_MSG_RESULT($bu_cv_decl_time_t_time_h)
159if test $bu_cv_decl_time_t_time_h = yes; then
160 AC_DEFINE([HAVE_TIME_T_IN_TIME_H], 1,
161 [Is the type time_t defined in <time.h>?])
162fi
163
164AC_MSG_CHECKING(for time_t in sys/types.h)
165AC_CACHE_VAL(bu_cv_decl_time_t_types_h,
da594c4a 166[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <sys/types.h>], [time_t i;])],
252b5132
RH
167bu_cv_decl_time_t_types_h=yes, bu_cv_decl_time_t_types_h=no)])
168AC_MSG_RESULT($bu_cv_decl_time_t_types_h)
169if test $bu_cv_decl_time_t_types_h = yes; then
170 AC_DEFINE([HAVE_TIME_T_IN_TYPES_H], 1,
171 [Is the type time_t defined in <sys/types.h>?])
172fi
173
e46eba98
NC
174AC_MSG_CHECKING(for a known getopt prototype in unistd.h)
175AC_CACHE_VAL(bu_cv_decl_getopt_unistd_h,
da594c4a 176[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <unistd.h>], [extern int getopt (int, char *const*, const char *);])],
e46eba98
NC
177bu_cv_decl_getopt_unistd_h=yes, bu_cv_decl_getopt_unistd_h=no)])
178AC_MSG_RESULT($bu_cv_decl_getopt_unistd_h)
179if test $bu_cv_decl_getopt_unistd_h = yes; then
180 AC_DEFINE([HAVE_DECL_GETOPT], 1,
181 [Is the prototype for getopt in <unistd.h> in the expected format?])
182fi
183
252b5132
RH
184# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
185# by default.
186AC_MSG_CHECKING([for utime.h])
187AC_CACHE_VAL(bu_cv_header_utime_h,
da594c4a 188[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <sys/types.h>
252b5132
RH
189#ifdef HAVE_TIME_H
190#include <time.h>
191#endif
192#include <utime.h>],
da594c4a 193[struct utimbuf s;])],
252b5132
RH
194bu_cv_header_utime_h=yes, bu_cv_header_utime_h=no)])
195AC_MSG_RESULT($bu_cv_header_utime_h)
196if test $bu_cv_header_utime_h = yes; then
197 AC_DEFINE(HAVE_GOOD_UTIME_H, 1, [Does <utime.h> define struct utimbuf?])
198fi
199
1f5345a6 200AC_CHECK_DECLS([asprintf, environ, fprintf, getc_unlocked, getenv,
952781e8 201 sbrk, snprintf, stpcpy, strnlen, strstr, vsnprintf])
252b5132 202
ed2b5077
L
203# Link in zlib if we can. This allows us to read compressed debug
204# sections. This is used only by readelf.c (objdump uses bfd for
205# reading compressed sections).
206AM_ZLIB
1b315056 207
252b5132
RH
208BFD_BINARY_FOPEN
209
210# target-specific stuff:
211
212# Canonicalize the secondary target names.
213if test -n "$enable_targets"; then
214 for targ in `echo $enable_targets | sed 's/,/ /g'`
215 do
6d83c84b 216 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
217 if test -n "$result"; then
218 canon_targets="$canon_targets $result"
219 else
220 # Allow targets that config.sub doesn't recognize, like "all".
221 canon_targets="$canon_targets $targ"
222 fi
223 done
224fi
225
5ba684e2
NC
226AC_CHECK_HEADER(iconv.h)
227AM_ICONV
228
252b5132 229all_targets=false
252b5132
RH
230BUILD_SRCONV=
231BUILD_DLLTOOL=
232DLLTOOL_DEFS=
7aad4c3d 233DLLTOOL_DEFAULT=
252b5132 234BUILD_WINDRES=
692ed3e7 235BUILD_WINDMC=
252b5132
RH
236BUILD_DLLWRAP=
237BUILD_MISC=
1d97d67f 238BUILD_INSTALL_MISC=
8b1e6df3 239OBJDUMP_DEFS=
6abcee90
TG
240OBJDUMP_PRIVATE_VECTORS=
241OBJDUMP_PRIVATE_OFILES=
242od_vectors=
252b5132
RH
243
244for targ in $target $canon_targets
245do
246 if test "x$targ" = "xall"; then
247 all_targets=true
252b5132 248 BUILD_SRCONV='$(SRCONV_PROG)'
1d97d67f 249 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
003bc0ba
NC
250 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
251 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
252 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
253 if test -z "$DLLTOOL_DEFAULT"; then
254 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
255 fi
256 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
257 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
6abcee90 258 od_vectors="$od_vectors objdump_private_desc_xcoff"
252b5132
RH
259 else
260 case $targ in
252b5132
RH
261 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
262 esac
6abcee90 263
252b5132 264 case $targ in
361dff73 265 arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
7148cc28 266 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
267 if test -z "$DLLTOOL_DEFAULT"; then
268 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
269 fi
7148cc28
NC
270 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
271 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 272 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7148cc28
NC
273 ;;
274 arm-*-pe*)
252b5132 275 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
276 if test -z "$DLLTOOL_DEFAULT"; then
277 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
278 fi
252b5132
RH
279 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
280 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 281 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 282 ;;
ee36d918 283 x86_64-*-mingw* | x86_64-*-cygwin*)
99ad8390 284 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
285 if test -z "$DLLTOOL_DEFAULT"; then
286 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
287 fi
99ad8390
NC
288 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
289 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 290 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
99ad8390
NC
291 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
292 ;;
252b5132 293changequote(,)dnl
80c7c40a 294 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
252b5132
RH
295changequote([,])dnl
296 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
297 if test -z "$DLLTOOL_DEFAULT"; then
298 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
299 fi
252b5132
RH
300 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
301 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 302 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
252b5132 303 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
7a7b06ef 304 ;;
80c7c40a
NC
305changequote(,)dnl
306 i[3-7]86-*-interix)
307changequote([,])dnl
7a7b06ef 308 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
7aad4c3d
L
309 if test -z "$DLLTOOL_DEFAULT"; then
310 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
311 fi
7a7b06ef
ILT
312 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
313 ;;
f0660b73
NC
314changequote(,)dnl
315 powerpc*-aix5.[01])
316changequote([,])dnl
317 ;;
e5231592
RS
318changequote(,)dnl
319 powerpc*-aix[5-9].*)
320changequote([,])dnl
f0660b73
NC
321 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
322 ;;
e1d5b1e7 323 powerpc*-*-pe* | powerpc*-*-cygwin*)
252b5132 324 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
325 if test -z "$DLLTOOL_DEFAULT"; then
326 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
327 fi
252b5132
RH
328 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
329 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 330 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 331 ;;
59678365 332 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
1ab52cbe
AM
333 case "$BUILD_INSTALL_MISC" in
334 *embedspu*) ;;
335 *) BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
336 esac
669a9a2a 337 ;;
e1d5b1e7 338 sh*-*-pe)
8a0e0f38 339 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
340 if test -z "$DLLTOOL_DEFAULT"; then
341 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
342 fi
8a0e0f38
NC
343 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
344 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 345 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 346 ;;
cd14b966 347 spu-*-*)
1d97d67f 348 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
cd14b966 349 ;;
e1d5b1e7 350 mips*-*-pe)
8a0e0f38 351 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
352 if test -z "$DLLTOOL_DEFAULT"; then
353 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
354 fi
8a0e0f38
NC
355 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
356 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 357 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 358 ;;
27a710e5 359 mcore-*-pe)
661016bb 360 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
361 if test -z "$DLLTOOL_DEFAULT"; then
362 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
363 fi
661016bb
NC
364 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
365 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 366 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 367 ;;
27a710e5 368 mcore-*-elf)
661016bb 369 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
370 if test -z "$DLLTOOL_DEFAULT"; then
371 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
372 fi
661016bb 373 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
7a7b06ef 374 ;;
15ab5209
DB
375 mep-*)
376 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
377 ;;
252b5132 378 esac
6abcee90
TG
379
380 # Add objdump private vectors.
381 case $targ in
6d0cfb9c
DC
382 avr-*-*)
383 od_vectors="$od_vectors objdump_private_desc_elf32_avr"
384 ;;
52fe4420 385 powerpc*-*-aix* | rs6000-*-aix*)
c5012cd8
TG
386 od_vectors="$od_vectors objdump_private_desc_xcoff"
387 ;;
388 *-*-darwin*)
389 od_vectors="$od_vectors objdump_private_desc_mach_o"
6abcee90
TG
390 ;;
391 esac
252b5132
RH
392 fi
393done
394
6abcee90
TG
395# Uniq objdump private vector, build objdump target ofiles.
396od_files=
397f=""
398for i in $od_vectors ; do
399 case " $f " in
400 *" $i "*) ;;
401 *)
402 f="$f $i"
403 OBJDUMP_PRIVATE_VECTORS="$OBJDUMP_PRIVATE_VECTORS &$i,"
404 case $i in
6d0cfb9c
DC
405 objdump_private_desc_elf32_avr)
406 od_files="$od_files od-elf32_avr" ;;
6abcee90
TG
407 objdump_private_desc_xcoff)
408 od_files="$od_files od-xcoff" ;;
c5012cd8
TG
409 objdump_private_desc_mach_o)
410 od_files="$od_files od-macho" ;;
6abcee90
TG
411 *) AC_MSG_ERROR(*** unknown private vector $i) ;;
412 esac
413 ;;
414 esac
415done
416
417# Uniq objdump target ofiles
418f=""
419for i in $od_files ; do
420 case " $f " in
421 *" $i "*) ;;
422 *)
423 f="$f $i"
424 OBJDUMP_PRIVATE_OFILES="$OBJDUMP_PRIVATE_OFILES $i.$objext"
425 ;;
426 esac
427done
428
7aad4c3d
L
429DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
430
c918cb96
DD
431if test "${with_windres+set}" = set; then
432 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
433fi
434
692ed3e7
NC
435if test "${with_windmc+set}" = set; then
436 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
437fi
438
6abcee90
TG
439OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\""
440
252b5132
RH
441AC_SUBST(BUILD_SRCONV)
442AC_SUBST(BUILD_DLLTOOL)
443AC_SUBST(DLLTOOL_DEFS)
444AC_SUBST(BUILD_WINDRES)
692ed3e7 445AC_SUBST(BUILD_WINDMC)
252b5132
RH
446AC_SUBST(BUILD_DLLWRAP)
447AC_SUBST(BUILD_MISC)
1d97d67f 448AC_SUBST(BUILD_INSTALL_MISC)
8b1e6df3 449AC_SUBST(OBJDUMP_DEFS)
6abcee90 450AC_SUBST(OBJDUMP_PRIVATE_OFILES)
252b5132
RH
451
452AC_DEFINE_UNQUOTED(TARGET, "${target}", [Configured target name.])
453
454targ=$target
455. $srcdir/../bfd/config.bfd
456if test "x$targ_underscore" = "xyes"; then
457 UNDERSCORE=1
458else
459 UNDERSCORE=0
460fi
bb279dc0
ZW
461AC_DEFINE_UNQUOTED(TARGET_PREPENDS_UNDERSCORE, $UNDERSCORE,
462 [Define to 1 if user symbol names have a leading underscore, 0 if not.])
252b5132 463
9cb80f72 464# Emulation
52fbfb5d
AM
465targ=$target
466. ${srcdir}/configure.tgt
467EMULATION=$targ_emul
9cb80f72 468EMULATION_VECTOR=$targ_emul_vector
eb1e0e80
NC
469
470AC_SUBST(EMULATION)
471AC_SUBST(EMULATION_VECTOR)
472
108a6f8e
CD
473# Required for html and install-html
474AC_SUBST(datarootdir)
475AC_SUBST(docdir)
476AC_SUBST(htmldir)
31dd3154 477AC_SUBST(pdfdir)
108a6f8e 478
da594c4a
AM
479AC_CONFIG_FILES(Makefile doc/Makefile po/Makefile.in:po/Make-in)
480AC_OUTPUT