ubsan: nios2: left shift cannot be represented in type 'int'
[deliverable/binutils-gdb.git] / binutils / configure.ac
CommitLineData
252b5132
RH
1dnl Process this file with autoconf to produce a configure script.
2dnl
82704155 3dnl Copyright (C) 2012-2019 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
34156b23 133AC_FUNC_MMAP
44350750 134AC_CHECK_FUNCS(sbrk utimes setmode getc_unlocked strcoll setlocale)
f9c026a8
NC
135AC_CHECK_FUNC([mkstemp],
136 AC_DEFINE([HAVE_MKSTEMP], 1,
137 [Define to 1 if you have the `mkstemp' function.]))
138AC_CHECK_FUNC([mkdtemp],
139 AC_DEFINE([HAVE_MKDTEMP], 1,
140 [Define to 1 if you have the `mkdtemp' function.]))
3bfcb652
NC
141 AC_MSG_CHECKING([for mbstate_t])
142 AC_TRY_COMPILE([#include <wchar.h>],
143 [mbstate_t teststate;],
144 have_mbstate_t=yes, have_mbstate_t=no)
145 AC_MSG_RESULT($have_mbstate_t)
146 if test x"$have_mbstate_t" = xyes; then
147 AC_DEFINE(HAVE_MBSTATE_T,1,[Define if mbstate_t exists in wchar.h.])
148 fi
cedd9a58 149
f353eb8a 150# Some systems have frexp only in -lm, not in -lc.
07735828 151AC_SEARCH_LIBS(frexp, m)
f353eb8a 152
44350750
NC
153AM_LC_MESSAGES
154
252b5132
RH
155AC_MSG_CHECKING(for time_t in time.h)
156AC_CACHE_VAL(bu_cv_decl_time_t_time_h,
da594c4a 157[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <time.h>], [time_t i;])],
252b5132
RH
158bu_cv_decl_time_t_time_h=yes, bu_cv_decl_time_t_time_h=no)])
159AC_MSG_RESULT($bu_cv_decl_time_t_time_h)
160if test $bu_cv_decl_time_t_time_h = yes; then
161 AC_DEFINE([HAVE_TIME_T_IN_TIME_H], 1,
162 [Is the type time_t defined in <time.h>?])
163fi
164
165AC_MSG_CHECKING(for time_t in sys/types.h)
166AC_CACHE_VAL(bu_cv_decl_time_t_types_h,
da594c4a 167[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <sys/types.h>], [time_t i;])],
252b5132
RH
168bu_cv_decl_time_t_types_h=yes, bu_cv_decl_time_t_types_h=no)])
169AC_MSG_RESULT($bu_cv_decl_time_t_types_h)
170if test $bu_cv_decl_time_t_types_h = yes; then
171 AC_DEFINE([HAVE_TIME_T_IN_TYPES_H], 1,
172 [Is the type time_t defined in <sys/types.h>?])
173fi
174
e46eba98
NC
175AC_MSG_CHECKING(for a known getopt prototype in unistd.h)
176AC_CACHE_VAL(bu_cv_decl_getopt_unistd_h,
da594c4a 177[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <unistd.h>], [extern int getopt (int, char *const*, const char *);])],
e46eba98
NC
178bu_cv_decl_getopt_unistd_h=yes, bu_cv_decl_getopt_unistd_h=no)])
179AC_MSG_RESULT($bu_cv_decl_getopt_unistd_h)
180if test $bu_cv_decl_getopt_unistd_h = yes; then
181 AC_DEFINE([HAVE_DECL_GETOPT], 1,
182 [Is the prototype for getopt in <unistd.h> in the expected format?])
183fi
184
252b5132
RH
185# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
186# by default.
187AC_MSG_CHECKING([for utime.h])
188AC_CACHE_VAL(bu_cv_header_utime_h,
da594c4a 189[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <sys/types.h>
252b5132
RH
190#ifdef HAVE_TIME_H
191#include <time.h>
192#endif
193#include <utime.h>],
da594c4a 194[struct utimbuf s;])],
252b5132
RH
195bu_cv_header_utime_h=yes, bu_cv_header_utime_h=no)])
196AC_MSG_RESULT($bu_cv_header_utime_h)
197if test $bu_cv_header_utime_h = yes; then
198 AC_DEFINE(HAVE_GOOD_UTIME_H, 1, [Does <utime.h> define struct utimbuf?])
199fi
200
1f5345a6 201AC_CHECK_DECLS([asprintf, environ, fprintf, getc_unlocked, getenv,
952781e8 202 sbrk, snprintf, stpcpy, strnlen, strstr, vsnprintf])
252b5132 203
ed2b5077
L
204# Link in zlib if we can. This allows us to read compressed debug
205# sections. This is used only by readelf.c (objdump uses bfd for
206# reading compressed sections).
207AM_ZLIB
1b315056 208
252b5132
RH
209BFD_BINARY_FOPEN
210
211# target-specific stuff:
212
213# Canonicalize the secondary target names.
214if test -n "$enable_targets"; then
215 for targ in `echo $enable_targets | sed 's/,/ /g'`
216 do
6d83c84b 217 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
218 if test -n "$result"; then
219 canon_targets="$canon_targets $result"
220 else
221 # Allow targets that config.sub doesn't recognize, like "all".
222 canon_targets="$canon_targets $targ"
223 fi
224 done
225fi
226
5ba684e2
NC
227AC_CHECK_HEADER(iconv.h)
228AM_ICONV
229
252b5132 230all_targets=false
252b5132
RH
231BUILD_SRCONV=
232BUILD_DLLTOOL=
233DLLTOOL_DEFS=
7aad4c3d 234DLLTOOL_DEFAULT=
252b5132 235BUILD_WINDRES=
692ed3e7 236BUILD_WINDMC=
252b5132
RH
237BUILD_DLLWRAP=
238BUILD_MISC=
1d97d67f 239BUILD_INSTALL_MISC=
8b1e6df3 240OBJDUMP_DEFS=
6abcee90
TG
241OBJDUMP_PRIVATE_VECTORS=
242OBJDUMP_PRIVATE_OFILES=
243od_vectors=
252b5132
RH
244
245for targ in $target $canon_targets
246do
247 if test "x$targ" = "xall"; then
248 all_targets=true
252b5132 249 BUILD_SRCONV='$(SRCONV_PROG)'
1d97d67f 250 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
003bc0ba
NC
251 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
252 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
253 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
254 if test -z "$DLLTOOL_DEFAULT"; then
255 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
256 fi
257 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
258 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
6abcee90 259 od_vectors="$od_vectors objdump_private_desc_xcoff"
252b5132
RH
260 else
261 case $targ in
252b5132
RH
262 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
263 esac
6abcee90 264
252b5132 265 case $targ in
361dff73 266 arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
7148cc28 267 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
268 if test -z "$DLLTOOL_DEFAULT"; then
269 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
270 fi
7148cc28
NC
271 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
272 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 273 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7148cc28
NC
274 ;;
275 arm-*-pe*)
252b5132 276 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
277 if test -z "$DLLTOOL_DEFAULT"; then
278 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
279 fi
252b5132
RH
280 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
281 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 282 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 283 ;;
ee36d918 284 x86_64-*-mingw* | x86_64-*-cygwin*)
99ad8390 285 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
286 if test -z "$DLLTOOL_DEFAULT"; then
287 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
288 fi
99ad8390
NC
289 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
290 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 291 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
99ad8390
NC
292 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
293 ;;
252b5132 294changequote(,)dnl
80c7c40a 295 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
252b5132
RH
296changequote([,])dnl
297 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
298 if test -z "$DLLTOOL_DEFAULT"; then
299 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
300 fi
252b5132
RH
301 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
302 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 303 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
252b5132 304 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
7a7b06ef 305 ;;
80c7c40a
NC
306changequote(,)dnl
307 i[3-7]86-*-interix)
308changequote([,])dnl
7a7b06ef 309 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
7aad4c3d
L
310 if test -z "$DLLTOOL_DEFAULT"; then
311 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
312 fi
7a7b06ef
ILT
313 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
314 ;;
f0660b73
NC
315changequote(,)dnl
316 powerpc*-aix5.[01])
317changequote([,])dnl
318 ;;
e5231592
RS
319changequote(,)dnl
320 powerpc*-aix[5-9].*)
321changequote([,])dnl
f0660b73
NC
322 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
323 ;;
e1d5b1e7 324 powerpc*-*-pe* | powerpc*-*-cygwin*)
252b5132 325 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
326 if test -z "$DLLTOOL_DEFAULT"; then
327 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
328 fi
252b5132
RH
329 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
330 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 331 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 332 ;;
59678365 333 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
1ab52cbe
AM
334 case "$BUILD_INSTALL_MISC" in
335 *embedspu*) ;;
336 *) BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
337 esac
669a9a2a 338 ;;
e1d5b1e7 339 sh*-*-pe)
8a0e0f38 340 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
341 if test -z "$DLLTOOL_DEFAULT"; then
342 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
343 fi
8a0e0f38
NC
344 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
345 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 346 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 347 ;;
cd14b966 348 spu-*-*)
1d97d67f 349 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
cd14b966 350 ;;
e1d5b1e7 351 mips*-*-pe)
8a0e0f38 352 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
353 if test -z "$DLLTOOL_DEFAULT"; then
354 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
355 fi
8a0e0f38
NC
356 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
357 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 358 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 359 ;;
27a710e5 360 mcore-*-pe)
661016bb 361 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
362 if test -z "$DLLTOOL_DEFAULT"; then
363 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
364 fi
661016bb
NC
365 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
366 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 367 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 368 ;;
27a710e5 369 mcore-*-elf)
661016bb 370 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
371 if test -z "$DLLTOOL_DEFAULT"; then
372 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
373 fi
661016bb 374 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
7a7b06ef 375 ;;
15ab5209
DB
376 mep-*)
377 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
378 ;;
252b5132 379 esac
6abcee90
TG
380
381 # Add objdump private vectors.
382 case $targ in
6d0cfb9c
DC
383 avr-*-*)
384 od_vectors="$od_vectors objdump_private_desc_elf32_avr"
385 ;;
52fe4420 386 powerpc*-*-aix* | rs6000-*-aix*)
c5012cd8
TG
387 od_vectors="$od_vectors objdump_private_desc_xcoff"
388 ;;
389 *-*-darwin*)
390 od_vectors="$od_vectors objdump_private_desc_mach_o"
6abcee90
TG
391 ;;
392 esac
252b5132
RH
393 fi
394done
395
6abcee90
TG
396# Uniq objdump private vector, build objdump target ofiles.
397od_files=
398f=""
399for i in $od_vectors ; do
400 case " $f " in
401 *" $i "*) ;;
402 *)
403 f="$f $i"
404 OBJDUMP_PRIVATE_VECTORS="$OBJDUMP_PRIVATE_VECTORS &$i,"
405 case $i in
6d0cfb9c
DC
406 objdump_private_desc_elf32_avr)
407 od_files="$od_files od-elf32_avr" ;;
6abcee90
TG
408 objdump_private_desc_xcoff)
409 od_files="$od_files od-xcoff" ;;
c5012cd8
TG
410 objdump_private_desc_mach_o)
411 od_files="$od_files od-macho" ;;
6abcee90
TG
412 *) AC_MSG_ERROR(*** unknown private vector $i) ;;
413 esac
414 ;;
415 esac
416done
417
418# Uniq objdump target ofiles
419f=""
420for i in $od_files ; do
421 case " $f " in
422 *" $i "*) ;;
423 *)
424 f="$f $i"
425 OBJDUMP_PRIVATE_OFILES="$OBJDUMP_PRIVATE_OFILES $i.$objext"
426 ;;
427 esac
428done
429
7aad4c3d
L
430DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
431
c918cb96
DD
432if test "${with_windres+set}" = set; then
433 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
434fi
435
692ed3e7
NC
436if test "${with_windmc+set}" = set; then
437 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
438fi
439
6abcee90
TG
440OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\""
441
252b5132
RH
442AC_SUBST(BUILD_SRCONV)
443AC_SUBST(BUILD_DLLTOOL)
444AC_SUBST(DLLTOOL_DEFS)
445AC_SUBST(BUILD_WINDRES)
692ed3e7 446AC_SUBST(BUILD_WINDMC)
252b5132
RH
447AC_SUBST(BUILD_DLLWRAP)
448AC_SUBST(BUILD_MISC)
1d97d67f 449AC_SUBST(BUILD_INSTALL_MISC)
8b1e6df3 450AC_SUBST(OBJDUMP_DEFS)
6abcee90 451AC_SUBST(OBJDUMP_PRIVATE_OFILES)
252b5132
RH
452
453AC_DEFINE_UNQUOTED(TARGET, "${target}", [Configured target name.])
454
455targ=$target
456. $srcdir/../bfd/config.bfd
457if test "x$targ_underscore" = "xyes"; then
458 UNDERSCORE=1
459else
460 UNDERSCORE=0
461fi
bb279dc0
ZW
462AC_DEFINE_UNQUOTED(TARGET_PREPENDS_UNDERSCORE, $UNDERSCORE,
463 [Define to 1 if user symbol names have a leading underscore, 0 if not.])
252b5132 464
9cb80f72 465# Emulation
52fbfb5d
AM
466targ=$target
467. ${srcdir}/configure.tgt
468EMULATION=$targ_emul
9cb80f72 469EMULATION_VECTOR=$targ_emul_vector
eb1e0e80
NC
470
471AC_SUBST(EMULATION)
472AC_SUBST(EMULATION_VECTOR)
473
108a6f8e
CD
474# Required for html and install-html
475AC_SUBST(datarootdir)
476AC_SUBST(docdir)
477AC_SUBST(htmldir)
31dd3154 478AC_SUBST(pdfdir)
108a6f8e 479
da594c4a
AM
480AC_CONFIG_FILES(Makefile doc/Makefile po/Makefile.in:po/Make-in)
481AC_OUTPUT
This page took 0.748697 seconds and 4 git commands to generate.