]>
Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | dnl Process this file with autoconf to produce a configure script. |
2 | dnl | |
219d1afa | 3 | dnl Copyright (C) 2012-2018 Free Software Foundation, Inc. |
5bf135a7 NC |
4 | dnl |
5 | dnl This file is free software; you can redistribute it and/or modify | |
6 | dnl it under the terms of the GNU General Public License as published by | |
7 | dnl the Free Software Foundation; either version 3 of the License, or | |
8 | dnl (at your option) any later version. | |
3aade688 | 9 | dnl |
5bf135a7 NC |
10 | dnl This program is distributed in the hope that it will be useful, |
11 | dnl but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | dnl GNU General Public License for more details. | |
3aade688 | 14 | dnl |
5bf135a7 NC |
15 | dnl You should have received a copy of the GNU General Public License |
16 | dnl along with this program; see the file COPYING3. If not see | |
17 | dnl <http://www.gnu.org/licenses/>. | |
18 | dnl | |
19 | ||
2e98a7bd AM |
20 | m4_include([../bfd/version.m4]) |
21 | AC_INIT([binutils], BFD_VERSION) | |
da594c4a | 22 | AC_CONFIG_SRCDIR(ar.c) |
252b5132 | 23 | |
da594c4a | 24 | AC_CANONICAL_TARGET |
5d64ca4e | 25 | AC_ISC_POSIX |
252b5132 | 26 | |
2e98a7bd | 27 | AM_INIT_AUTOMAKE |
252b5132 | 28 | |
d45dc31f SE |
29 | AC_PROG_CC |
30 | AC_GNU_SOURCE | |
7357c5b6 | 31 | AC_USE_SYSTEM_EXTENSIONS |
e3525117 | 32 | |
da594c4a | 33 | LT_INIT |
b879806f | 34 | ACX_LARGEFILE |
252b5132 RH |
35 | |
36 | AC_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 ;; | |
43 | esac])dnl | |
252b5132 | 44 | |
9cb80f72 RM |
45 | AC_ARG_ENABLE(deterministic-archives, |
46 | [AS_HELP_STRING([--enable-deterministic-archives], | |
47 | [ar and ranlib default to -D behavior])], [ | |
48 | if test "${enableval}" = no; then | |
49 | default_ar_deterministic=0 | |
50 | else | |
51 | default_ar_deterministic=1 | |
52 | fi], [default_ar_deterministic=0]) | |
53 | ||
54 | AC_DEFINE_UNQUOTED(DEFAULT_AR_DETERMINISTIC, $default_ar_deterministic, | |
55 | [Should ar and ranlib use -D behavior by default?]) | |
56 | ||
7fac9594 NC |
57 | AC_ARG_ENABLE(default-strings-all, |
58 | [AS_HELP_STRING([--disable-default-strings-all], | |
59 | [strings defaults to --data behavior])], [ | |
60 | if test "${enableval}" = no; then | |
61 | default_strings_all=0 | |
62 | else | |
63 | default_strings_all=1 | |
64 | fi], [default_strings_all=1]) | |
65 | ||
66 | AC_DEFINE_UNQUOTED(DEFAULT_STRINGS_ALL, $default_strings_all, | |
67 | [Should strings use -a behavior by default?]) | |
68 | ||
398ee8f1 | 69 | AM_BINUTILS_WARNINGS |
9cb80f72 | 70 | |
da594c4a | 71 | AC_CONFIG_HEADERS(config.h:config.in) |
252b5132 | 72 | |
df7b86aa NC |
73 | AH_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 |
81 | if test -z "$target" ; then |
82 | AC_MSG_ERROR(Unrecognized target system type; please check config.sub.) | |
83 | fi | |
84 | if test -z "$host" ; then | |
85 | AC_MSG_ERROR(Unrecognized host system type; please check config.sub.) | |
86 | fi | |
87 | ||
252b5132 RH |
88 | AC_PROG_YACC |
89 | AM_PROG_LEX | |
90 | ||
e184813f | 91 | ALL_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 |
92 | ZW_GNU_GETTEXT_SISTER_DIR |
93 | AM_PO_SUBDIRS | |
252b5132 RH |
94 | |
95 | AM_MAINTAINER_MODE | |
d5fbea21 | 96 | AM_CONDITIONAL(GENINSRC_NEVER, false) |
252b5132 | 97 | AC_EXEEXT |
2481e6a2 ILT |
98 | if test -n "$EXEEXT"; then |
99 | AC_DEFINE(HAVE_EXECUTABLE_SUFFIX, 1, | |
100 | [Does the platform use an executable suffix?]) | |
101 | fi | |
bb0cb4db ILT |
102 | AC_DEFINE_UNQUOTED(EXECUTABLE_SUFFIX, "${EXEEXT}", |
103 | [Suffix used for executables, if any.]) | |
252b5132 RH |
104 | |
105 | # host-specific stuff: | |
106 | ||
107 | HDEFINES= | |
108 | ||
109 | . ${srcdir}/../bfd/configure.host | |
110 | ||
111 | AC_SUBST(HDEFINES) | |
112 | AR=${AR-ar} | |
113 | AC_SUBST(AR) | |
114 | AC_PROG_RANLIB | |
115 | AC_PROG_INSTALL | |
116 | ||
117 | BFD_CC_FOR_BUILD | |
118 | ||
8a965946 ILT |
119 | DEMANGLER_NAME=c++filt |
120 | case "${host}" in | |
121 | *-*-go32* | *-*-msdos*) | |
122 | DEMANGLER_NAME=cxxfilt | |
123 | esac | |
124 | AC_SUBST(DEMANGLER_NAME) | |
125 | ||
4c219c2e AM |
126 | AC_CHECK_SIZEOF([long]) |
127 | AC_CHECK_TYPES([long long], [AC_CHECK_SIZEOF(long long)]) | |
128 | ||
3bfcb652 | 129 | AC_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 | 130 | AC_HEADER_SYS_WAIT |
208a4923 | 131 | ACX_HEADER_STRING |
252b5132 | 132 | AC_FUNC_ALLOCA |
44350750 | 133 | AC_CHECK_FUNCS(sbrk utimes setmode getc_unlocked strcoll setlocale) |
f9c026a8 NC |
134 | AC_CHECK_FUNC([mkstemp], |
135 | AC_DEFINE([HAVE_MKSTEMP], 1, | |
136 | [Define to 1 if you have the `mkstemp' function.])) | |
137 | AC_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 | 150 | AC_SEARCH_LIBS(frexp, m) |
f353eb8a | 151 | |
44350750 NC |
152 | AM_LC_MESSAGES |
153 | ||
252b5132 RH |
154 | AC_MSG_CHECKING(for time_t in time.h) |
155 | AC_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 |
157 | bu_cv_decl_time_t_time_h=yes, bu_cv_decl_time_t_time_h=no)]) |
158 | AC_MSG_RESULT($bu_cv_decl_time_t_time_h) | |
159 | if 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>?]) | |
162 | fi | |
163 | ||
164 | AC_MSG_CHECKING(for time_t in sys/types.h) | |
165 | AC_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 |
167 | bu_cv_decl_time_t_types_h=yes, bu_cv_decl_time_t_types_h=no)]) |
168 | AC_MSG_RESULT($bu_cv_decl_time_t_types_h) | |
169 | if 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>?]) | |
172 | fi | |
173 | ||
e46eba98 NC |
174 | AC_MSG_CHECKING(for a known getopt prototype in unistd.h) |
175 | AC_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 |
177 | bu_cv_decl_getopt_unistd_h=yes, bu_cv_decl_getopt_unistd_h=no)]) |
178 | AC_MSG_RESULT($bu_cv_decl_getopt_unistd_h) | |
179 | if 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?]) | |
182 | fi | |
183 | ||
252b5132 RH |
184 | # Under Next 3.2 <utime.h> apparently does not define struct utimbuf |
185 | # by default. | |
186 | AC_MSG_CHECKING([for utime.h]) | |
187 | AC_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 |
194 | bu_cv_header_utime_h=yes, bu_cv_header_utime_h=no)]) |
195 | AC_MSG_RESULT($bu_cv_header_utime_h) | |
196 | if test $bu_cv_header_utime_h = yes; then | |
197 | AC_DEFINE(HAVE_GOOD_UTIME_H, 1, [Does <utime.h> define struct utimbuf?]) | |
198 | fi | |
199 | ||
1f5345a6 | 200 | AC_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). | |
206 | AM_ZLIB | |
1b315056 | 207 | |
252b5132 RH |
208 | BFD_BINARY_FOPEN |
209 | ||
210 | # target-specific stuff: | |
211 | ||
212 | # Canonicalize the secondary target names. | |
213 | if 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 | |
224 | fi | |
225 | ||
5ba684e2 NC |
226 | AC_CHECK_HEADER(iconv.h) |
227 | AM_ICONV | |
228 | ||
252b5132 | 229 | all_targets=false |
252b5132 RH |
230 | BUILD_SRCONV= |
231 | BUILD_DLLTOOL= | |
232 | DLLTOOL_DEFS= | |
7aad4c3d | 233 | DLLTOOL_DEFAULT= |
252b5132 | 234 | BUILD_WINDRES= |
692ed3e7 | 235 | BUILD_WINDMC= |
252b5132 RH |
236 | BUILD_DLLWRAP= |
237 | BUILD_MISC= | |
1d97d67f | 238 | BUILD_INSTALL_MISC= |
8b1e6df3 | 239 | OBJDUMP_DEFS= |
6abcee90 TG |
240 | OBJDUMP_PRIVATE_VECTORS= |
241 | OBJDUMP_PRIVATE_OFILES= | |
242 | od_vectors= | |
252b5132 RH |
243 | |
244 | for targ in $target $canon_targets | |
245 | do | |
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 | 293 | changequote(,)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 |
295 | changequote([,])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 |
305 | changequote(,)dnl |
306 | i[3-7]86-*-interix) | |
307 | changequote([,])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 |
314 | changequote(,)dnl |
315 | powerpc*-aix5.[01]) | |
316 | changequote([,])dnl | |
317 | ;; | |
e5231592 RS |
318 | changequote(,)dnl |
319 | powerpc*-aix[5-9].*) | |
320 | changequote([,])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 |
393 | done | |
394 | ||
6abcee90 TG |
395 | # Uniq objdump private vector, build objdump target ofiles. |
396 | od_files= | |
397 | f="" | |
398 | for 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 | |
415 | done | |
416 | ||
417 | # Uniq objdump target ofiles | |
418 | f="" | |
419 | for 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 | |
427 | done | |
428 | ||
7aad4c3d L |
429 | DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT" |
430 | ||
c918cb96 DD |
431 | if test "${with_windres+set}" = set; then |
432 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
433 | fi | |
434 | ||
692ed3e7 NC |
435 | if test "${with_windmc+set}" = set; then |
436 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' | |
437 | fi | |
438 | ||
6abcee90 TG |
439 | OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\"" |
440 | ||
252b5132 RH |
441 | AC_SUBST(BUILD_SRCONV) |
442 | AC_SUBST(BUILD_DLLTOOL) | |
443 | AC_SUBST(DLLTOOL_DEFS) | |
444 | AC_SUBST(BUILD_WINDRES) | |
692ed3e7 | 445 | AC_SUBST(BUILD_WINDMC) |
252b5132 RH |
446 | AC_SUBST(BUILD_DLLWRAP) |
447 | AC_SUBST(BUILD_MISC) | |
1d97d67f | 448 | AC_SUBST(BUILD_INSTALL_MISC) |
8b1e6df3 | 449 | AC_SUBST(OBJDUMP_DEFS) |
6abcee90 | 450 | AC_SUBST(OBJDUMP_PRIVATE_OFILES) |
252b5132 RH |
451 | |
452 | AC_DEFINE_UNQUOTED(TARGET, "${target}", [Configured target name.]) | |
453 | ||
454 | targ=$target | |
455 | . $srcdir/../bfd/config.bfd | |
456 | if test "x$targ_underscore" = "xyes"; then | |
457 | UNDERSCORE=1 | |
458 | else | |
459 | UNDERSCORE=0 | |
460 | fi | |
bb279dc0 ZW |
461 | AC_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 |
465 | targ=$target |
466 | . ${srcdir}/configure.tgt | |
467 | EMULATION=$targ_emul | |
9cb80f72 | 468 | EMULATION_VECTOR=$targ_emul_vector |
eb1e0e80 NC |
469 | |
470 | AC_SUBST(EMULATION) | |
471 | AC_SUBST(EMULATION_VECTOR) | |
472 | ||
108a6f8e CD |
473 | # Required for html and install-html |
474 | AC_SUBST(datarootdir) | |
475 | AC_SUBST(docdir) | |
476 | AC_SUBST(htmldir) | |
31dd3154 | 477 | AC_SUBST(pdfdir) |
108a6f8e | 478 | |
da594c4a AM |
479 | AC_CONFIG_FILES(Makefile doc/Makefile po/Makefile.in:po/Make-in) |
480 | AC_OUTPUT |