bfd/
[deliverable/binutils-gdb.git] / binutils / configure.in
CommitLineData
252b5132
RH
1dnl Process this file with autoconf to produce a configure script.
2dnl
da594c4a
AM
3AC_PREREQ(2.59)
4AC_INIT
5AC_CONFIG_SRCDIR(ar.c)
252b5132 6
da594c4a 7AC_CANONICAL_TARGET
5d64ca4e 8AC_ISC_POSIX
252b5132 9
27b7e12d
AM
10changequote(,)dnl
11BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
12changequote([,])dnl
13AM_INIT_AUTOMAKE(binutils, ${BFD_VERSION})
252b5132 14
d45dc31f
SE
15AC_PROG_CC
16AC_GNU_SOURCE
7357c5b6 17AC_USE_SYSTEM_EXTENSIONS
d053aef8 18AC_SYS_LARGEFILE
da594c4a 19LT_INIT
252b5132
RH
20
21AC_ARG_ENABLE(targets,
22[ --enable-targets alternative target configurations],
23[case "${enableval}" in
da594c4a 24 yes | "") AC_MSG_ERROR(enable-targets option must specify target names or 'all')
252b5132
RH
25 ;;
26 no) enable_targets= ;;
27 *) enable_targets=$enableval ;;
28esac])dnl
252b5132 29
398ee8f1 30AM_BINUTILS_WARNINGS
9e9b66a9 31
da594c4a 32AC_CONFIG_HEADERS(config.h:config.in)
252b5132
RH
33
34if test -z "$target" ; then
35 AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
36fi
37if test -z "$host" ; then
38 AC_MSG_ERROR(Unrecognized host system type; please check config.sub.)
39fi
40
252b5132
RH
41AC_PROG_YACC
42AM_PROG_LEX
43
ac5d747e 44ALL_LINGUAS="da es fi fr id ja ro ru rw sk sv tr uk vi zh_CN zh_TW"
20e95c23
DJ
45ZW_GNU_GETTEXT_SISTER_DIR
46AM_PO_SUBDIRS
252b5132
RH
47
48AM_MAINTAINER_MODE
d5fbea21 49AM_CONDITIONAL(GENINSRC_NEVER, false)
252b5132 50AC_EXEEXT
2481e6a2
ILT
51if test -n "$EXEEXT"; then
52 AC_DEFINE(HAVE_EXECUTABLE_SUFFIX, 1,
53 [Does the platform use an executable suffix?])
54fi
bb0cb4db
ILT
55AC_DEFINE_UNQUOTED(EXECUTABLE_SUFFIX, "${EXEEXT}",
56 [Suffix used for executables, if any.])
252b5132
RH
57
58# host-specific stuff:
59
60HDEFINES=
61
62. ${srcdir}/../bfd/configure.host
63
64AC_SUBST(HDEFINES)
65AR=${AR-ar}
66AC_SUBST(AR)
67AC_PROG_RANLIB
68AC_PROG_INSTALL
69
70BFD_CC_FOR_BUILD
71
8a965946
ILT
72DEMANGLER_NAME=c++filt
73case "${host}" in
74 *-*-go32* | *-*-msdos*)
75 DEMANGLER_NAME=cxxfilt
76esac
77AC_SUBST(DEMANGLER_NAME)
78
f8eae8b2 79AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h)
252b5132
RH
80AC_HEADER_SYS_WAIT
81AC_FUNC_ALLOCA
9710509e 82AC_CHECK_FUNCS(sbrk utimes setmode getc_unlocked strcoll)
f9c026a8
NC
83AC_CHECK_FUNC([mkstemp],
84 AC_DEFINE([HAVE_MKSTEMP], 1,
85 [Define to 1 if you have the `mkstemp' function.]))
86AC_CHECK_FUNC([mkdtemp],
87 AC_DEFINE([HAVE_MKDTEMP], 1,
88 [Define to 1 if you have the `mkdtemp' function.]))
cedd9a58
JJ
89
90# Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
91# needs to be defined for it
92AC_MSG_CHECKING([for fopen64])
93AC_CACHE_VAL(bu_cv_have_fopen64,
da594c4a 94[AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <stdio.h>], [FILE *f = fopen64 ("/tmp/foo","r");])],
cedd9a58
JJ
95bu_cv_have_fopen64=yes,
96[saved_CPPFLAGS=$CPPFLAGS
97 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
da594c4a
AM
98 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <stdio.h>], [FILE *f = fopen64 ("/tmp/foo","r");])],
99 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE",
100 bu_cv_have_fopen64=no)
cedd9a58
JJ
101 CPPFLAGS=$saved_CPPFLAGS])])
102AC_MSG_RESULT($bu_cv_have_fopen64)
6db7a086 103if test "$bu_cv_have_fopen64" != no; then
cedd9a58
JJ
104 AC_DEFINE([HAVE_FOPEN64], 1,
105 [Is fopen64 available?])
fb5b5478
JJ
106fi
107AC_MSG_CHECKING([for stat64])
108AC_CACHE_VAL(bu_cv_have_stat64,
da594c4a 109[AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <sys/stat.h>], [struct stat64 st; stat64 ("/tmp/foo", &st);])],
fb5b5478
JJ
110bu_cv_have_stat64=yes,
111[saved_CPPFLAGS=$CPPFLAGS
112 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
da594c4a
AM
113 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <sys/stat.h>], [struct stat64 st; stat64 ("/tmp/foo", &st);])],
114 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE",
115 bu_cv_have_stat64=no)
fb5b5478
JJ
116 CPPFLAGS=$saved_CPPFLAGS])])
117AC_MSG_RESULT($bu_cv_have_stat64)
118if test "$bu_cv_have_stat64" != no; then
119 AC_DEFINE([HAVE_STAT64], 1,
120 [Is stat64 available?])
121fi
122if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
123 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
124 AC_DEFINE([_LARGEFILE64_SOURCE], 1,
125 [Enable LFS])
126 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
cedd9a58 127fi
252b5132 128
f353eb8a 129# Some systems have frexp only in -lm, not in -lc.
07735828 130AC_SEARCH_LIBS(frexp, m)
f353eb8a 131
252b5132
RH
132AC_MSG_CHECKING(for time_t in time.h)
133AC_CACHE_VAL(bu_cv_decl_time_t_time_h,
da594c4a 134[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <time.h>], [time_t i;])],
252b5132
RH
135bu_cv_decl_time_t_time_h=yes, bu_cv_decl_time_t_time_h=no)])
136AC_MSG_RESULT($bu_cv_decl_time_t_time_h)
137if test $bu_cv_decl_time_t_time_h = yes; then
138 AC_DEFINE([HAVE_TIME_T_IN_TIME_H], 1,
139 [Is the type time_t defined in <time.h>?])
140fi
141
142AC_MSG_CHECKING(for time_t in sys/types.h)
143AC_CACHE_VAL(bu_cv_decl_time_t_types_h,
da594c4a 144[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <sys/types.h>], [time_t i;])],
252b5132
RH
145bu_cv_decl_time_t_types_h=yes, bu_cv_decl_time_t_types_h=no)])
146AC_MSG_RESULT($bu_cv_decl_time_t_types_h)
147if test $bu_cv_decl_time_t_types_h = yes; then
148 AC_DEFINE([HAVE_TIME_T_IN_TYPES_H], 1,
149 [Is the type time_t defined in <sys/types.h>?])
150fi
151
e46eba98
NC
152AC_MSG_CHECKING(for a known getopt prototype in unistd.h)
153AC_CACHE_VAL(bu_cv_decl_getopt_unistd_h,
da594c4a 154[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <unistd.h>], [extern int getopt (int, char *const*, const char *);])],
e46eba98
NC
155bu_cv_decl_getopt_unistd_h=yes, bu_cv_decl_getopt_unistd_h=no)])
156AC_MSG_RESULT($bu_cv_decl_getopt_unistd_h)
157if test $bu_cv_decl_getopt_unistd_h = yes; then
158 AC_DEFINE([HAVE_DECL_GETOPT], 1,
159 [Is the prototype for getopt in <unistd.h> in the expected format?])
160fi
161
252b5132
RH
162# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
163# by default.
164AC_MSG_CHECKING([for utime.h])
165AC_CACHE_VAL(bu_cv_header_utime_h,
da594c4a 166[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <sys/types.h>
252b5132
RH
167#ifdef HAVE_TIME_H
168#include <time.h>
169#endif
170#include <utime.h>],
da594c4a 171[struct utimbuf s;])],
252b5132
RH
172bu_cv_header_utime_h=yes, bu_cv_header_utime_h=no)])
173AC_MSG_RESULT($bu_cv_header_utime_h)
174if test $bu_cv_header_utime_h = yes; then
175 AC_DEFINE(HAVE_GOOD_UTIME_H, 1, [Does <utime.h> define struct utimbuf?])
176fi
177
db50c840
EB
178AC_CHECK_DECLS([fprintf, stpcpy, strstr, sbrk, getenv, environ, getc_unlocked,
179 snprintf, vsnprintf])
252b5132 180
1b315056
CS
181# Link in zlib if we can. This allows us to read compressed debug
182# sections. This is used only by readelf.c (objdump uses bfd for
183# reading compressed sections).
184AC_SEARCH_LIBS(zlibVersion, z, [AC_CHECK_HEADERS(zlib.h)])
185
252b5132
RH
186BFD_BINARY_FOPEN
187
188# target-specific stuff:
189
190# Canonicalize the secondary target names.
191if test -n "$enable_targets"; then
192 for targ in `echo $enable_targets | sed 's/,/ /g'`
193 do
6d83c84b 194 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
195 if test -n "$result"; then
196 canon_targets="$canon_targets $result"
197 else
198 # Allow targets that config.sub doesn't recognize, like "all".
199 canon_targets="$canon_targets $targ"
200 fi
201 done
202fi
203
5ba684e2
NC
204AC_CHECK_HEADER(iconv.h)
205AM_ICONV
206
252b5132
RH
207all_targets=false
208BUILD_NLMCONV=
209NLMCONV_DEFS=
210BUILD_SRCONV=
211BUILD_DLLTOOL=
212DLLTOOL_DEFS=
7aad4c3d 213DLLTOOL_DEFAULT=
252b5132 214BUILD_WINDRES=
692ed3e7 215BUILD_WINDMC=
252b5132
RH
216BUILD_DLLWRAP=
217BUILD_MISC=
1d97d67f 218BUILD_INSTALL_MISC=
8b1e6df3 219OBJDUMP_DEFS=
252b5132
RH
220
221for targ in $target $canon_targets
222do
223 if test "x$targ" = "xall"; then
224 all_targets=true
225 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
226 BUILD_SRCONV='$(SRCONV_PROG)'
227 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
1d97d67f 228 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
003bc0ba
NC
229 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
230 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
231 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
232 if test -z "$DLLTOOL_DEFAULT"; then
233 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
234 fi
235 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
236 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
252b5132
RH
237 else
238 case $targ in
239changequote(,)dnl
80c7c40a 240 i[3-7]86*-*-netware*)
252b5132
RH
241changequote([,])dnl
242 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
243 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
244 ;;
245 alpha*-*-netware*)
246 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
247 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
248 ;;
249 powerpc*-*-netware*)
250 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
251 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
252 ;;
253 sparc*-*-netware*)
254 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
255 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
256 ;;
257 esac
258 case $targ in
259 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
260 esac
261 case $targ in
a8c548cb
NC
262 arm-epoc-pe*)
263 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
264 if test -z "$DLLTOOL_DEFAULT"; then
265 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
266 fi
a8c548cb
NC
267 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
268 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 269 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
a8c548cb 270 ;;
7148cc28
NC
271 arm-wince-pe* | arm-*-wince)
272 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
273 if test -z "$DLLTOOL_DEFAULT"; then
274 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
275 fi
7148cc28
NC
276 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
277 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 278 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7148cc28
NC
279 ;;
280 arm-*-pe*)
252b5132 281 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
282 if test -z "$DLLTOOL_DEFAULT"; then
283 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
284 fi
252b5132
RH
285 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
286 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 287 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 288 ;;
27a710e5 289 thumb-*-pe*)
252b5132 290 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
291 if test -z "$DLLTOOL_DEFAULT"; then
292 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
293 fi
252b5132
RH
294 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
295 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 296 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 297 ;;
42037fe5 298 x86_64-*-mingw*)
99ad8390 299 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
300 if test -z "$DLLTOOL_DEFAULT"; then
301 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
302 fi
99ad8390
NC
303 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
304 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 305 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
99ad8390
NC
306 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
307 ;;
252b5132 308changequote(,)dnl
80c7c40a 309 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
252b5132
RH
310changequote([,])dnl
311 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
312 if test -z "$DLLTOOL_DEFAULT"; then
313 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
314 fi
252b5132
RH
315 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
316 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 317 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
252b5132 318 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
7a7b06ef 319 ;;
80c7c40a
NC
320changequote(,)dnl
321 i[3-7]86-*-interix)
322changequote([,])dnl
7a7b06ef 323 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
7aad4c3d
L
324 if test -z "$DLLTOOL_DEFAULT"; then
325 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
326 fi
7a7b06ef
ILT
327 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
328 ;;
f0660b73
NC
329changequote(,)dnl
330 powerpc*-aix5.[01])
331changequote([,])dnl
332 ;;
333 powerpc*-aix5.*)
334 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
335 ;;
e1d5b1e7 336 powerpc*-*-pe* | powerpc*-*-cygwin*)
252b5132 337 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
338 if test -z "$DLLTOOL_DEFAULT"; then
339 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
340 fi
252b5132
RH
341 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
342 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 343 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 344 ;;
59678365 345 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
1d97d67f 346 BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
669a9a2a 347 ;;
e1d5b1e7 348 sh*-*-pe)
8a0e0f38 349 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
350 if test -z "$DLLTOOL_DEFAULT"; then
351 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
352 fi
8a0e0f38
NC
353 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
354 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 355 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 356 ;;
cd14b966 357 spu-*-*)
1d97d67f 358 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
cd14b966 359 ;;
e1d5b1e7 360 mips*-*-pe)
8a0e0f38 361 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
362 if test -z "$DLLTOOL_DEFAULT"; then
363 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
364 fi
8a0e0f38
NC
365 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
366 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 367 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 368 ;;
27a710e5 369 mcore-*-pe)
661016bb 370 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
371 if test -z "$DLLTOOL_DEFAULT"; then
372 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
373 fi
661016bb
NC
374 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
375 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 376 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 377 ;;
27a710e5 378 mcore-*-elf)
661016bb 379 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
380 if test -z "$DLLTOOL_DEFAULT"; then
381 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
382 fi
661016bb 383 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
7a7b06ef 384 ;;
15ab5209
DB
385 mep-*)
386 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
387 ;;
252b5132
RH
388 esac
389 fi
390done
391
7aad4c3d
L
392DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
393
c918cb96
DD
394if test "${with_windres+set}" = set; then
395 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
396fi
397
692ed3e7
NC
398if test "${with_windmc+set}" = set; then
399 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
400fi
401
252b5132
RH
402AC_SUBST(NLMCONV_DEFS)
403AC_SUBST(BUILD_NLMCONV)
404AC_SUBST(BUILD_SRCONV)
405AC_SUBST(BUILD_DLLTOOL)
406AC_SUBST(DLLTOOL_DEFS)
407AC_SUBST(BUILD_WINDRES)
692ed3e7 408AC_SUBST(BUILD_WINDMC)
252b5132
RH
409AC_SUBST(BUILD_DLLWRAP)
410AC_SUBST(BUILD_MISC)
1d97d67f 411AC_SUBST(BUILD_INSTALL_MISC)
8b1e6df3 412AC_SUBST(OBJDUMP_DEFS)
252b5132
RH
413
414AC_DEFINE_UNQUOTED(TARGET, "${target}", [Configured target name.])
415
416targ=$target
417. $srcdir/../bfd/config.bfd
418if test "x$targ_underscore" = "xyes"; then
419 UNDERSCORE=1
420else
421 UNDERSCORE=0
422fi
bb279dc0
ZW
423AC_DEFINE_UNQUOTED(TARGET_PREPENDS_UNDERSCORE, $UNDERSCORE,
424 [Define to 1 if user symbol names have a leading underscore, 0 if not.])
252b5132 425
eb1e0e80
NC
426# Emulation
427for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
428do
429 # Canonicalize the secondary target names.
430 result=`$ac_config_sub $targ_alias 2>/dev/null`
431 if test -n "$result"; then
432 targ=$result
433 else
434 targ=$targ_alias
435 fi
436
437 . ${srcdir}/configure.tgt
438
439 EMULATION=$targ_emul
440 EMULATION_VECTOR=$targ_emul_vector
441done
442
443AC_SUBST(EMULATION)
444AC_SUBST(EMULATION_VECTOR)
445
108a6f8e
CD
446# Required for html and install-html
447AC_SUBST(datarootdir)
448AC_SUBST(docdir)
449AC_SUBST(htmldir)
450
da594c4a
AM
451AC_CONFIG_FILES(Makefile doc/Makefile po/Makefile.in:po/Make-in)
452AC_OUTPUT
This page took 0.361262 seconds and 4 git commands to generate.