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