Add support for parallel instructions.
[deliverable/binutils-gdb.git] / bfd / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.1
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
16 ac_help="$ac_help
17 --enable-shared build shared libraries [default=yes]"
18 ac_help="$ac_help
19 --enable-static build static libraries [default=yes]"
20 ac_help="$ac_help
21 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
22 ac_help="$ac_help
23 --enable-targets alternative target configurations"
24 ac_help="$ac_help
25 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
26 ac_help="$ac_help
27 --with-mmap try using mmap for BFD input files if available"
28 ac_help="$ac_help
29 --enable-maintainer-mode enable make rules and dependencies not useful
30 (and sometimes confusing) to the casual installer"
31
32 enable_shared=no
33
34 # Initialize some variables set by options.
35 # The variables have the same names as the options, with
36 # dashes changed to underlines.
37 build=NONE
38 cache_file=./config.cache
39 exec_prefix=NONE
40 host=NONE
41 no_create=
42 nonopt=NONE
43 no_recursion=
44 prefix=NONE
45 program_prefix=NONE
46 program_suffix=NONE
47 program_transform_name=s,x,x,
48 silent=
49 site=
50 srcdir=
51 target=NONE
52 verbose=
53 x_includes=NONE
54 x_libraries=NONE
55 bindir='${exec_prefix}/bin'
56 sbindir='${exec_prefix}/sbin'
57 libexecdir='${exec_prefix}/libexec'
58 datadir='${prefix}/share'
59 sysconfdir='${prefix}/etc'
60 sharedstatedir='${prefix}/com'
61 localstatedir='${prefix}/var'
62 libdir='${exec_prefix}/lib'
63 includedir='${prefix}/include'
64 oldincludedir='/usr/include'
65 infodir='${prefix}/info'
66 mandir='${prefix}/man'
67
68 # Initialize some other variables.
69 subdirs=
70 MFLAGS= MAKEFLAGS=
71 SHELL=${CONFIG_SHELL-/bin/sh}
72 # Maximum number of lines to put in a shell here document.
73 ac_max_here_lines=12
74
75 ac_prev=
76 for ac_option
77 do
78
79 # If the previous option needs an argument, assign it.
80 if test -n "$ac_prev"; then
81 eval "$ac_prev=\$ac_option"
82 ac_prev=
83 continue
84 fi
85
86 case "$ac_option" in
87 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
88 *) ac_optarg= ;;
89 esac
90
91 # Accept the important Cygnus configure options, so we can diagnose typos.
92
93 case "$ac_option" in
94
95 -bindir | --bindir | --bindi | --bind | --bin | --bi)
96 ac_prev=bindir ;;
97 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
98 bindir="$ac_optarg" ;;
99
100 -build | --build | --buil | --bui | --bu)
101 ac_prev=build ;;
102 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
103 build="$ac_optarg" ;;
104
105 -cache-file | --cache-file | --cache-fil | --cache-fi \
106 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
107 ac_prev=cache_file ;;
108 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
109 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
110 cache_file="$ac_optarg" ;;
111
112 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
113 ac_prev=datadir ;;
114 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
115 | --da=*)
116 datadir="$ac_optarg" ;;
117
118 -disable-* | --disable-*)
119 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123 fi
124 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125 eval "enable_${ac_feature}=no" ;;
126
127 -enable-* | --enable-*)
128 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 fi
133 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
134 case "$ac_option" in
135 *=*) ;;
136 *) ac_optarg=yes ;;
137 esac
138 eval "enable_${ac_feature}='$ac_optarg'" ;;
139
140 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
141 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
142 | --exec | --exe | --ex)
143 ac_prev=exec_prefix ;;
144 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
145 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
146 | --exec=* | --exe=* | --ex=*)
147 exec_prefix="$ac_optarg" ;;
148
149 -gas | --gas | --ga | --g)
150 # Obsolete; use --with-gas.
151 with_gas=yes ;;
152
153 -help | --help | --hel | --he)
154 # Omit some internal or obsolete options to make the list less imposing.
155 # This message is too long to be a string in the A/UX 3.1 sh.
156 cat << EOF
157 Usage: configure [options] [host]
158 Options: [defaults in brackets after descriptions]
159 Configuration:
160 --cache-file=FILE cache test results in FILE
161 --help print this message
162 --no-create do not create output files
163 --quiet, --silent do not print \`checking...' messages
164 --version print the version of autoconf that created configure
165 Directory and file names:
166 --prefix=PREFIX install architecture-independent files in PREFIX
167 [$ac_default_prefix]
168 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
169 [same as prefix]
170 --bindir=DIR user executables in DIR [EPREFIX/bin]
171 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
172 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
173 --datadir=DIR read-only architecture-independent data in DIR
174 [PREFIX/share]
175 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
176 --sharedstatedir=DIR modifiable architecture-independent data in DIR
177 [PREFIX/com]
178 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
179 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
180 --includedir=DIR C header files in DIR [PREFIX/include]
181 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
182 --infodir=DIR info documentation in DIR [PREFIX/info]
183 --mandir=DIR man documentation in DIR [PREFIX/man]
184 --srcdir=DIR find the sources in DIR [configure dir or ..]
185 --program-prefix=PREFIX prepend PREFIX to installed program names
186 --program-suffix=SUFFIX append SUFFIX to installed program names
187 --program-transform-name=PROGRAM
188 run sed PROGRAM on installed program names
189 EOF
190 cat << EOF
191 Host type:
192 --build=BUILD configure for building on BUILD [BUILD=HOST]
193 --host=HOST configure for HOST [guessed]
194 --target=TARGET configure for TARGET [TARGET=HOST]
195 Features and packages:
196 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
197 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
198 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
199 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
200 --x-includes=DIR X include files are in DIR
201 --x-libraries=DIR X library files are in DIR
202 EOF
203 if test -n "$ac_help"; then
204 echo "--enable and --with options recognized:$ac_help"
205 fi
206 exit 0 ;;
207
208 -host | --host | --hos | --ho)
209 ac_prev=host ;;
210 -host=* | --host=* | --hos=* | --ho=*)
211 host="$ac_optarg" ;;
212
213 -includedir | --includedir | --includedi | --included | --include \
214 | --includ | --inclu | --incl | --inc)
215 ac_prev=includedir ;;
216 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
217 | --includ=* | --inclu=* | --incl=* | --inc=*)
218 includedir="$ac_optarg" ;;
219
220 -infodir | --infodir | --infodi | --infod | --info | --inf)
221 ac_prev=infodir ;;
222 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
223 infodir="$ac_optarg" ;;
224
225 -libdir | --libdir | --libdi | --libd)
226 ac_prev=libdir ;;
227 -libdir=* | --libdir=* | --libdi=* | --libd=*)
228 libdir="$ac_optarg" ;;
229
230 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
231 | --libexe | --libex | --libe)
232 ac_prev=libexecdir ;;
233 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
234 | --libexe=* | --libex=* | --libe=*)
235 libexecdir="$ac_optarg" ;;
236
237 -localstatedir | --localstatedir | --localstatedi | --localstated \
238 | --localstate | --localstat | --localsta | --localst \
239 | --locals | --local | --loca | --loc | --lo)
240 ac_prev=localstatedir ;;
241 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
242 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
243 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
244 localstatedir="$ac_optarg" ;;
245
246 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
247 ac_prev=mandir ;;
248 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
249 mandir="$ac_optarg" ;;
250
251 -nfp | --nfp | --nf)
252 # Obsolete; use --without-fp.
253 with_fp=no ;;
254
255 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
256 | --no-cr | --no-c)
257 no_create=yes ;;
258
259 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
260 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
261 no_recursion=yes ;;
262
263 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
264 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
265 | --oldin | --oldi | --old | --ol | --o)
266 ac_prev=oldincludedir ;;
267 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
268 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
269 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
270 oldincludedir="$ac_optarg" ;;
271
272 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
273 ac_prev=prefix ;;
274 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
275 prefix="$ac_optarg" ;;
276
277 -program-prefix | --program-prefix | --program-prefi | --program-pref \
278 | --program-pre | --program-pr | --program-p)
279 ac_prev=program_prefix ;;
280 -program-prefix=* | --program-prefix=* | --program-prefi=* \
281 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
282 program_prefix="$ac_optarg" ;;
283
284 -program-suffix | --program-suffix | --program-suffi | --program-suff \
285 | --program-suf | --program-su | --program-s)
286 ac_prev=program_suffix ;;
287 -program-suffix=* | --program-suffix=* | --program-suffi=* \
288 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
289 program_suffix="$ac_optarg" ;;
290
291 -program-transform-name | --program-transform-name \
292 | --program-transform-nam | --program-transform-na \
293 | --program-transform-n | --program-transform- \
294 | --program-transform | --program-transfor \
295 | --program-transfo | --program-transf \
296 | --program-trans | --program-tran \
297 | --progr-tra | --program-tr | --program-t)
298 ac_prev=program_transform_name ;;
299 -program-transform-name=* | --program-transform-name=* \
300 | --program-transform-nam=* | --program-transform-na=* \
301 | --program-transform-n=* | --program-transform-=* \
302 | --program-transform=* | --program-transfor=* \
303 | --program-transfo=* | --program-transf=* \
304 | --program-trans=* | --program-tran=* \
305 | --progr-tra=* | --program-tr=* | --program-t=*)
306 program_transform_name="$ac_optarg" ;;
307
308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
309 | -silent | --silent | --silen | --sile | --sil)
310 silent=yes ;;
311
312 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
313 ac_prev=sbindir ;;
314 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
315 | --sbi=* | --sb=*)
316 sbindir="$ac_optarg" ;;
317
318 -sharedstatedir | --sharedstatedir | --sharedstatedi \
319 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
320 | --sharedst | --shareds | --shared | --share | --shar \
321 | --sha | --sh)
322 ac_prev=sharedstatedir ;;
323 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
324 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
325 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
326 | --sha=* | --sh=*)
327 sharedstatedir="$ac_optarg" ;;
328
329 -site | --site | --sit)
330 ac_prev=site ;;
331 -site=* | --site=* | --sit=*)
332 site="$ac_optarg" ;;
333
334 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
335 ac_prev=srcdir ;;
336 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
337 srcdir="$ac_optarg" ;;
338
339 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
340 | --syscon | --sysco | --sysc | --sys | --sy)
341 ac_prev=sysconfdir ;;
342 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
343 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
344 sysconfdir="$ac_optarg" ;;
345
346 -target | --target | --targe | --targ | --tar | --ta | --t)
347 ac_prev=target ;;
348 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
349 target="$ac_optarg" ;;
350
351 -v | -verbose | --verbose | --verbos | --verbo | --verb)
352 verbose=yes ;;
353
354 -version | --version | --versio | --versi | --vers)
355 echo "configure generated by autoconf version 2.12.1"
356 exit 0 ;;
357
358 -with-* | --with-*)
359 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
360 # Reject names that are not valid shell variable names.
361 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
363 fi
364 ac_package=`echo $ac_package| sed 's/-/_/g'`
365 case "$ac_option" in
366 *=*) ;;
367 *) ac_optarg=yes ;;
368 esac
369 eval "with_${ac_package}='$ac_optarg'" ;;
370
371 -without-* | --without-*)
372 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 fi
377 ac_package=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}=no" ;;
379
380 --x)
381 # Obsolete; use --with-x.
382 with_x=yes ;;
383
384 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
385 | --x-incl | --x-inc | --x-in | --x-i)
386 ac_prev=x_includes ;;
387 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
388 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
389 x_includes="$ac_optarg" ;;
390
391 -x-libraries | --x-libraries | --x-librarie | --x-librari \
392 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
393 ac_prev=x_libraries ;;
394 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
395 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
396 x_libraries="$ac_optarg" ;;
397
398 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
399 ;;
400
401 *)
402 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
403 echo "configure: warning: $ac_option: invalid host type" 1>&2
404 fi
405 if test "x$nonopt" != xNONE; then
406 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
407 fi
408 nonopt="$ac_option"
409 ;;
410
411 esac
412 done
413
414 if test -n "$ac_prev"; then
415 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
416 fi
417
418 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
419
420 # File descriptor usage:
421 # 0 standard input
422 # 1 file creation
423 # 2 errors and warnings
424 # 3 some systems may open it to /dev/tty
425 # 4 used on the Kubota Titan
426 # 6 checking for... messages and results
427 # 5 compiler messages saved in config.log
428 if test "$silent" = yes; then
429 exec 6>/dev/null
430 else
431 exec 6>&1
432 fi
433 exec 5>./config.log
434
435 echo "\
436 This file contains any messages produced by compilers while
437 running configure, to aid debugging if configure makes a mistake.
438 " 1>&5
439
440 # Strip out --no-create and --no-recursion so they do not pile up.
441 # Also quote any args containing shell metacharacters.
442 ac_configure_args=
443 for ac_arg
444 do
445 case "$ac_arg" in
446 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
447 | --no-cr | --no-c) ;;
448 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
449 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
450 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
451 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
452 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
453 esac
454 done
455
456 # NLS nuisances.
457 # Only set these to C if already set. These must not be set unconditionally
458 # because not all systems understand e.g. LANG=C (notably SCO).
459 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
460 # Non-C LC_CTYPE values break the ctype check.
461 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
462 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
463 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
464 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
465
466 # confdefs.h avoids OS command line length limits that DEFS can exceed.
467 rm -rf conftest* confdefs.h
468 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
469 echo > confdefs.h
470
471 # A filename unique to this package, relative to the directory that
472 # configure is in, which we can look for to find out if srcdir is correct.
473 ac_unique_file=libbfd.c
474
475 # Find the source files, if location was not specified.
476 if test -z "$srcdir"; then
477 ac_srcdir_defaulted=yes
478 # Try the directory containing this script, then its parent.
479 ac_prog=$0
480 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
481 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
482 srcdir=$ac_confdir
483 if test ! -r $srcdir/$ac_unique_file; then
484 srcdir=..
485 fi
486 else
487 ac_srcdir_defaulted=no
488 fi
489 if test ! -r $srcdir/$ac_unique_file; then
490 if test "$ac_srcdir_defaulted" = yes; then
491 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
492 else
493 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494 fi
495 fi
496 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
497
498 # Prefer explicitly selected file to automatically selected ones.
499 if test -z "$CONFIG_SITE"; then
500 if test "x$prefix" != xNONE; then
501 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
502 else
503 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504 fi
505 fi
506 for ac_site_file in $CONFIG_SITE; do
507 if test -r "$ac_site_file"; then
508 echo "loading site script $ac_site_file"
509 . "$ac_site_file"
510 fi
511 done
512
513 if test -r "$cache_file"; then
514 echo "loading cache $cache_file"
515 . $cache_file
516 else
517 echo "creating cache $cache_file"
518 > $cache_file
519 fi
520
521 ac_ext=c
522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
523 ac_cpp='$CPP $CPPFLAGS'
524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
525 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
526 cross_compiling=$ac_cv_prog_cc_cross
527
528 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
529 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
530 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
531 ac_n= ac_c='
532 ' ac_t=' '
533 else
534 ac_n=-n ac_c= ac_t=
535 fi
536 else
537 ac_n= ac_c='\c' ac_t=
538 fi
539
540
541
542 ac_aux_dir=
543 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
544 if test -f $ac_dir/install-sh; then
545 ac_aux_dir=$ac_dir
546 ac_install_sh="$ac_aux_dir/install-sh -c"
547 break
548 elif test -f $ac_dir/install.sh; then
549 ac_aux_dir=$ac_dir
550 ac_install_sh="$ac_aux_dir/install.sh -c"
551 break
552 fi
553 done
554 if test -z "$ac_aux_dir"; then
555 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
556 fi
557 ac_config_guess=$ac_aux_dir/config.guess
558 ac_config_sub=$ac_aux_dir/config.sub
559 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
560
561
562 # Do some error checking and defaulting for the host and target type.
563 # The inputs are:
564 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
565 #
566 # The rules are:
567 # 1. You are not allowed to specify --host, --target, and nonopt at the
568 # same time.
569 # 2. Host defaults to nonopt.
570 # 3. If nonopt is not specified, then host defaults to the current host,
571 # as determined by config.guess.
572 # 4. Target and build default to nonopt.
573 # 5. If nonopt is not specified, then target and build default to host.
574
575 # The aliases save the names the user supplied, while $host etc.
576 # will get canonicalized.
577 case $host---$target---$nonopt in
578 NONE---*---* | *---NONE---* | *---*---NONE) ;;
579 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
580 esac
581
582
583 # Make sure we can run config.sub.
584 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
585 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
586 fi
587
588 echo $ac_n "checking host system type""... $ac_c" 1>&6
589 echo "configure:590: checking host system type" >&5
590
591 host_alias=$host
592 case "$host_alias" in
593 NONE)
594 case $nonopt in
595 NONE)
596 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
597 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
598 fi ;;
599 *) host_alias=$nonopt ;;
600 esac ;;
601 esac
602
603 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
604 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
605 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
606 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
607 echo "$ac_t""$host" 1>&6
608
609 echo $ac_n "checking target system type""... $ac_c" 1>&6
610 echo "configure:611: checking target system type" >&5
611
612 target_alias=$target
613 case "$target_alias" in
614 NONE)
615 case $nonopt in
616 NONE) target_alias=$host_alias ;;
617 *) target_alias=$nonopt ;;
618 esac ;;
619 esac
620
621 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
622 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
623 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
624 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
625 echo "$ac_t""$target" 1>&6
626
627 echo $ac_n "checking build system type""... $ac_c" 1>&6
628 echo "configure:629: checking build system type" >&5
629
630 build_alias=$build
631 case "$build_alias" in
632 NONE)
633 case $nonopt in
634 NONE) build_alias=$host_alias ;;
635 *) build_alias=$nonopt ;;
636 esac ;;
637 esac
638
639 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
640 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
641 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
642 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
643 echo "$ac_t""$build" 1>&6
644
645 test "$host_alias" != "$target_alias" &&
646 test "$program_prefix$program_suffix$program_transform_name" = \
647 NONENONEs,x,x, &&
648 program_prefix=${target_alias}-
649
650 # Extract the first word of "gcc", so it can be a program name with args.
651 set dummy gcc; ac_word=$2
652 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
653 echo "configure:654: checking for $ac_word" >&5
654 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
655 echo $ac_n "(cached) $ac_c" 1>&6
656 else
657 if test -n "$CC"; then
658 ac_cv_prog_CC="$CC" # Let the user override the test.
659 else
660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
661 for ac_dir in $PATH; do
662 test -z "$ac_dir" && ac_dir=.
663 if test -f $ac_dir/$ac_word; then
664 ac_cv_prog_CC="gcc"
665 break
666 fi
667 done
668 IFS="$ac_save_ifs"
669 fi
670 fi
671 CC="$ac_cv_prog_CC"
672 if test -n "$CC"; then
673 echo "$ac_t""$CC" 1>&6
674 else
675 echo "$ac_t""no" 1>&6
676 fi
677
678 if test -z "$CC"; then
679 # Extract the first word of "cc", so it can be a program name with args.
680 set dummy cc; ac_word=$2
681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
682 echo "configure:683: checking for $ac_word" >&5
683 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
684 echo $ac_n "(cached) $ac_c" 1>&6
685 else
686 if test -n "$CC"; then
687 ac_cv_prog_CC="$CC" # Let the user override the test.
688 else
689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
690 ac_prog_rejected=no
691 for ac_dir in $PATH; do
692 test -z "$ac_dir" && ac_dir=.
693 if test -f $ac_dir/$ac_word; then
694 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
695 ac_prog_rejected=yes
696 continue
697 fi
698 ac_cv_prog_CC="cc"
699 break
700 fi
701 done
702 IFS="$ac_save_ifs"
703 if test $ac_prog_rejected = yes; then
704 # We found a bogon in the path, so make sure we never use it.
705 set dummy $ac_cv_prog_CC
706 shift
707 if test $# -gt 0; then
708 # We chose a different compiler from the bogus one.
709 # However, it has the same basename, so the bogon will be chosen
710 # first if we set CC to just the basename; use the full file name.
711 shift
712 set dummy "$ac_dir/$ac_word" "$@"
713 shift
714 ac_cv_prog_CC="$@"
715 fi
716 fi
717 fi
718 fi
719 CC="$ac_cv_prog_CC"
720 if test -n "$CC"; then
721 echo "$ac_t""$CC" 1>&6
722 else
723 echo "$ac_t""no" 1>&6
724 fi
725
726 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
727 fi
728
729 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
730 echo "configure:731: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
731
732 ac_ext=c
733 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
734 ac_cpp='$CPP $CPPFLAGS'
735 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
736 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
737 cross_compiling=$ac_cv_prog_cc_cross
738
739 cat > conftest.$ac_ext <<EOF
740 #line 741 "configure"
741 #include "confdefs.h"
742 main(){return(0);}
743 EOF
744 if { (eval echo configure:745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
745 ac_cv_prog_cc_works=yes
746 # If we can't run a trivial program, we are probably using a cross compiler.
747 if (./conftest; exit) 2>/dev/null; then
748 ac_cv_prog_cc_cross=no
749 else
750 ac_cv_prog_cc_cross=yes
751 fi
752 else
753 echo "configure: failed program was:" >&5
754 cat conftest.$ac_ext >&5
755 ac_cv_prog_cc_works=no
756 fi
757 rm -fr conftest*
758
759 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
760 if test $ac_cv_prog_cc_works = no; then
761 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
762 fi
763 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
764 echo "configure:765: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
765 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
766 cross_compiling=$ac_cv_prog_cc_cross
767
768 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
769 echo "configure:770: checking whether we are using GNU C" >&5
770 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
771 echo $ac_n "(cached) $ac_c" 1>&6
772 else
773 cat > conftest.c <<EOF
774 #ifdef __GNUC__
775 yes;
776 #endif
777 EOF
778 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
779 ac_cv_prog_gcc=yes
780 else
781 ac_cv_prog_gcc=no
782 fi
783 fi
784
785 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
786
787 if test $ac_cv_prog_gcc = yes; then
788 GCC=yes
789 ac_test_CFLAGS="${CFLAGS+set}"
790 ac_save_CFLAGS="$CFLAGS"
791 CFLAGS=
792 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
793 echo "configure:794: checking whether ${CC-cc} accepts -g" >&5
794 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
795 echo $ac_n "(cached) $ac_c" 1>&6
796 else
797 echo 'void f(){}' > conftest.c
798 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
799 ac_cv_prog_cc_g=yes
800 else
801 ac_cv_prog_cc_g=no
802 fi
803 rm -f conftest*
804
805 fi
806
807 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
808 if test "$ac_test_CFLAGS" = set; then
809 CFLAGS="$ac_save_CFLAGS"
810 elif test $ac_cv_prog_cc_g = yes; then
811 CFLAGS="-g -O2"
812 else
813 CFLAGS="-O2"
814 fi
815 else
816 GCC=
817 test "${CFLAGS+set}" = set || CFLAGS="-g"
818 fi
819
820 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
821 echo "configure:822: checking for POSIXized ISC" >&5
822 if test -d /etc/conf/kconfig.d &&
823 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
824 then
825 echo "$ac_t""yes" 1>&6
826 ISC=yes # If later tests want to check for ISC.
827 cat >> confdefs.h <<\EOF
828 #define _POSIX_SOURCE 1
829 EOF
830
831 if test "$GCC" = yes; then
832 CC="$CC -posix"
833 else
834 CC="$CC -Xp"
835 fi
836 else
837 echo "$ac_t""no" 1>&6
838 ISC=
839 fi
840
841
842 # Find a good install program. We prefer a C program (faster),
843 # so one script is as good as another. But avoid the broken or
844 # incompatible versions:
845 # SysV /etc/install, /usr/sbin/install
846 # SunOS /usr/etc/install
847 # IRIX /sbin/install
848 # AIX /bin/install
849 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
850 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
851 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
852 # ./install, which can be erroneously created by make from ./install.sh.
853 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
854 echo "configure:855: checking for a BSD compatible install" >&5
855 if test -z "$INSTALL"; then
856 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
857 echo $ac_n "(cached) $ac_c" 1>&6
858 else
859 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
860 for ac_dir in $PATH; do
861 # Account for people who put trailing slashes in PATH elements.
862 case "$ac_dir/" in
863 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
864 *)
865 # OSF1 and SCO ODT 3.0 have their own names for install.
866 # Don't use installbsd from OSF since it installs stuff as root
867 # by default.
868 for ac_prog in ginstall scoinst install; do
869 if test -f $ac_dir/$ac_prog; then
870 if test $ac_prog = install &&
871 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
872 # AIX install. It has an incompatible calling convention.
873 :
874 else
875 ac_cv_path_install="$ac_dir/$ac_prog -c"
876 break 2
877 fi
878 fi
879 done
880 ;;
881 esac
882 done
883 IFS="$ac_save_IFS"
884
885 fi
886 if test "${ac_cv_path_install+set}" = set; then
887 INSTALL="$ac_cv_path_install"
888 else
889 # As a last resort, use the slow shell script. We don't cache a
890 # path for INSTALL within a source directory, because that will
891 # break other packages using the cache if that directory is
892 # removed, or if the path is relative.
893 INSTALL="$ac_install_sh"
894 fi
895 fi
896 echo "$ac_t""$INSTALL" 1>&6
897
898 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
899 # It thinks the first close brace ends the variable substitution.
900 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
901
902 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
903
904
905 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
906
907
908 PACKAGE=bfd
909
910 VERSION=2.8.2
911
912 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
913 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
914 fi
915 cat >> confdefs.h <<EOF
916 #define PACKAGE "$PACKAGE"
917 EOF
918
919 cat >> confdefs.h <<EOF
920 #define VERSION "$VERSION"
921 EOF
922
923 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
924 echo "configure:925: checking whether build environment is sane" >&5
925 # Just in case
926 sleep 1
927 echo timestamp > conftestfile
928 # Do `set' in a subshell so we don't clobber the current shell's
929 # arguments. Must try -L first in case configure is actually a
930 # symlink; some systems play weird games with the mod time of symlinks
931 # (eg FreeBSD returns the mod time of the symlink's containing
932 # directory).
933 if (
934 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
935 if test "" = "X"; then
936 # -L didn't work.
937 set X `ls -t $srcdir/configure conftestfile`
938 fi
939 test "$2" = conftestfile
940 )
941 then
942 # Ok.
943 :
944 else
945 { echo "configure: error: newly created file is older than distributed files!
946 Check your system clock" 1>&2; exit 1; }
947 fi
948 rm -f conftest*
949 echo "$ac_t""yes" 1>&6
950 if test "$program_transform_name" = s,x,x,; then
951 program_transform_name=
952 else
953 # Double any \ or $. echo might interpret backslashes.
954 cat <<\EOF_SED > conftestsed
955 s,\\,\\\\,g; s,\$,$$,g
956 EOF_SED
957 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
958 rm -f conftestsed
959 fi
960 test "$program_prefix" != NONE &&
961 program_transform_name="s,^,${program_prefix},; $program_transform_name"
962 # Use a double $ so make ignores it.
963 test "$program_suffix" != NONE &&
964 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
965
966 # sed with no file args requires a program.
967 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
968
969 missing_dir=`cd $ac_aux_dir && pwd`
970 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
971 echo "configure:972: checking for working aclocal" >&5
972 # Run test in a subshell; some versions of sh will print an error if
973 # an executable is not found, even if stderr is redirected.
974 # Redirect stdin to placate older versions of autoconf. Sigh.
975 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
976 ACLOCAL=aclocal
977 echo "$ac_t""found" 1>&6
978 else
979 ACLOCAL="$missing_dir/missing aclocal"
980 echo "$ac_t""missing" 1>&6
981 fi
982
983 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
984 echo "configure:985: checking for working autoconf" >&5
985 # Run test in a subshell; some versions of sh will print an error if
986 # an executable is not found, even if stderr is redirected.
987 # Redirect stdin to placate older versions of autoconf. Sigh.
988 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
989 AUTOCONF=autoconf
990 echo "$ac_t""found" 1>&6
991 else
992 AUTOCONF="$missing_dir/missing autoconf"
993 echo "$ac_t""missing" 1>&6
994 fi
995
996 echo $ac_n "checking for working automake""... $ac_c" 1>&6
997 echo "configure:998: checking for working automake" >&5
998 # Run test in a subshell; some versions of sh will print an error if
999 # an executable is not found, even if stderr is redirected.
1000 # Redirect stdin to placate older versions of autoconf. Sigh.
1001 if (automake --version) < /dev/null > /dev/null 2>&1; then
1002 AUTOMAKE=automake
1003 echo "$ac_t""found" 1>&6
1004 else
1005 AUTOMAKE="$missing_dir/missing automake"
1006 echo "$ac_t""missing" 1>&6
1007 fi
1008
1009 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1010 echo "configure:1011: checking for working autoheader" >&5
1011 # Run test in a subshell; some versions of sh will print an error if
1012 # an executable is not found, even if stderr is redirected.
1013 # Redirect stdin to placate older versions of autoconf. Sigh.
1014 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1015 AUTOHEADER=autoheader
1016 echo "$ac_t""found" 1>&6
1017 else
1018 AUTOHEADER="$missing_dir/missing autoheader"
1019 echo "$ac_t""missing" 1>&6
1020 fi
1021
1022 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1023 echo "configure:1024: checking for working makeinfo" >&5
1024 # Run test in a subshell; some versions of sh will print an error if
1025 # an executable is not found, even if stderr is redirected.
1026 # Redirect stdin to placate older versions of autoconf. Sigh.
1027 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1028 MAKEINFO=makeinfo
1029 echo "$ac_t""found" 1>&6
1030 else
1031 MAKEINFO="$missing_dir/missing makeinfo"
1032 echo "$ac_t""missing" 1>&6
1033 fi
1034
1035 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1036 echo "configure:1037: checking whether ${MAKE-make} sets \${MAKE}" >&5
1037 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1038 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1039 echo $ac_n "(cached) $ac_c" 1>&6
1040 else
1041 cat > conftestmake <<\EOF
1042 all:
1043 @echo 'ac_maketemp="${MAKE}"'
1044 EOF
1045 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1046 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1047 if test -n "$ac_maketemp"; then
1048 eval ac_cv_prog_make_${ac_make}_set=yes
1049 else
1050 eval ac_cv_prog_make_${ac_make}_set=no
1051 fi
1052 rm -f conftestmake
1053 fi
1054 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1055 echo "$ac_t""yes" 1>&6
1056 SET_MAKE=
1057 else
1058 echo "$ac_t""no" 1>&6
1059 SET_MAKE="MAKE=${MAKE-make}"
1060 fi
1061
1062
1063 if test $host != $build; then
1064 ac_tool_prefix=${host_alias}-
1065 else
1066 ac_tool_prefix=
1067 fi
1068
1069 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1070 set dummy ${ac_tool_prefix}ar; ac_word=$2
1071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1072 echo "configure:1073: checking for $ac_word" >&5
1073 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1075 else
1076 if test -n "$AR"; then
1077 ac_cv_prog_AR="$AR" # Let the user override the test.
1078 else
1079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1080 for ac_dir in $PATH; do
1081 test -z "$ac_dir" && ac_dir=.
1082 if test -f $ac_dir/$ac_word; then
1083 ac_cv_prog_AR="${ac_tool_prefix}ar"
1084 break
1085 fi
1086 done
1087 IFS="$ac_save_ifs"
1088 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1089 fi
1090 fi
1091 AR="$ac_cv_prog_AR"
1092 if test -n "$AR"; then
1093 echo "$ac_t""$AR" 1>&6
1094 else
1095 echo "$ac_t""no" 1>&6
1096 fi
1097
1098
1099
1100 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1101 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1102 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1103 echo "configure:1104: checking for $ac_word" >&5
1104 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1105 echo $ac_n "(cached) $ac_c" 1>&6
1106 else
1107 if test -n "$RANLIB"; then
1108 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1109 else
1110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1111 for ac_dir in $PATH; do
1112 test -z "$ac_dir" && ac_dir=.
1113 if test -f $ac_dir/$ac_word; then
1114 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1115 break
1116 fi
1117 done
1118 IFS="$ac_save_ifs"
1119 fi
1120 fi
1121 RANLIB="$ac_cv_prog_RANLIB"
1122 if test -n "$RANLIB"; then
1123 echo "$ac_t""$RANLIB" 1>&6
1124 else
1125 echo "$ac_t""no" 1>&6
1126 fi
1127
1128
1129 if test -z "$ac_cv_prog_RANLIB"; then
1130 if test -n "$ac_tool_prefix"; then
1131 # Extract the first word of "ranlib", so it can be a program name with args.
1132 set dummy ranlib; ac_word=$2
1133 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1134 echo "configure:1135: checking for $ac_word" >&5
1135 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1136 echo $ac_n "(cached) $ac_c" 1>&6
1137 else
1138 if test -n "$RANLIB"; then
1139 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1140 else
1141 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1142 for ac_dir in $PATH; do
1143 test -z "$ac_dir" && ac_dir=.
1144 if test -f $ac_dir/$ac_word; then
1145 ac_cv_prog_RANLIB="ranlib"
1146 break
1147 fi
1148 done
1149 IFS="$ac_save_ifs"
1150 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1151 fi
1152 fi
1153 RANLIB="$ac_cv_prog_RANLIB"
1154 if test -n "$RANLIB"; then
1155 echo "$ac_t""$RANLIB" 1>&6
1156 else
1157 echo "$ac_t""no" 1>&6
1158 fi
1159
1160 else
1161 RANLIB=":"
1162 fi
1163 fi
1164
1165
1166 # Extract the first word of "ranlib", so it can be a program name with args.
1167 set dummy ranlib; ac_word=$2
1168 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1169 echo "configure:1170: checking for $ac_word" >&5
1170 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1171 echo $ac_n "(cached) $ac_c" 1>&6
1172 else
1173 if test -n "$RANLIB"; then
1174 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1175 else
1176 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1177 for ac_dir in $PATH; do
1178 test -z "$ac_dir" && ac_dir=.
1179 if test -f $ac_dir/$ac_word; then
1180 ac_cv_prog_RANLIB="ranlib"
1181 break
1182 fi
1183 done
1184 IFS="$ac_save_ifs"
1185 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1186 fi
1187 fi
1188 RANLIB="$ac_cv_prog_RANLIB"
1189 if test -n "$RANLIB"; then
1190 echo "$ac_t""$RANLIB" 1>&6
1191 else
1192 echo "$ac_t""no" 1>&6
1193 fi
1194
1195 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1196 if test "${with_gnu_ld+set}" = set; then
1197 withval="$with_gnu_ld"
1198 test "$withval" = no || with_gnu_ld=yes
1199 else
1200 with_gnu_ld=no
1201 fi
1202
1203 if test "$with_gnu_ld" = yes; then
1204 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1205 echo "configure:1206: checking for GNU ld" >&5
1206 else
1207 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1208 echo "configure:1209: checking for non-GNU ld" >&5
1209 fi
1210 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1211 echo $ac_n "(cached) $ac_c" 1>&6
1212 else
1213 case "$LD" in
1214 "")
1215 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1216 for ac_dir in $PATH; do
1217 test -z "$ac_dir" && ac_dir=.
1218 if test -f "$ac_dir/ld"; then
1219 ac_cv_path_LD="$ac_dir/ld"
1220 # Check to see if the program is GNU ld. I'd rather use --version,
1221 # but apparently some GNU ld's only accept -v.
1222 # Break only if it was the GNU/non-GNU ld that we prefer.
1223 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU ld|with BFD)' > /dev/null; then
1224 test "$with_gnu_ld" = yes && break
1225 else
1226 test "$with_gnu_ld" != yes && break
1227 fi
1228 fi
1229 done
1230 IFS="$ac_save_ifs"
1231 ;;
1232 *)
1233 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1234 ;;
1235 esac
1236 fi
1237
1238 LD="$ac_cv_path_LD"
1239 if test -n "$LD"; then
1240 echo "$ac_t""$LD" 1>&6
1241 else
1242 echo "$ac_t""no" 1>&6
1243 fi
1244 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1245
1246 echo $ac_n "checking whether we are using GNU ld""... $ac_c" 1>&6
1247 echo "configure:1248: checking whether we are using GNU ld" >&5
1248 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1249 echo $ac_n "(cached) $ac_c" 1>&6
1250 else
1251 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1252 if $LD -v 2>&1 </dev/null | egrep '(GNU ld|with BFD)' > /dev/null; then
1253 ac_cv_prog_gnu_ld=yes
1254 else
1255 ac_cv_prog_gnu_ld=no
1256 fi
1257 fi
1258
1259 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1260
1261
1262 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1263 echo "configure:1264: checking whether ln -s works" >&5
1264 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1265 echo $ac_n "(cached) $ac_c" 1>&6
1266 else
1267 rm -f conftestdata
1268 if ln -s X conftestdata 2>/dev/null
1269 then
1270 rm -f conftestdata
1271 ac_cv_prog_LN_S="ln -s"
1272 else
1273 ac_cv_prog_LN_S=ln
1274 fi
1275 fi
1276 LN_S="$ac_cv_prog_LN_S"
1277 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1278 echo "$ac_t""yes" 1>&6
1279 else
1280 echo "$ac_t""no" 1>&6
1281 fi
1282
1283
1284
1285
1286
1287
1288
1289 # Always use our own libtool.
1290 LIBTOOL='$(top_builddir)/libtool'
1291
1292
1293 # Check whether --enable-shared or --disable-shared was given.
1294 if test "${enable_shared+set}" = set; then
1295 enableval="$enable_shared"
1296 case "$enableval" in
1297 yes) enable_shared=yes ;;
1298 no) enable_shared=no ;;
1299 *bfd*) enable_shared=yes ;;
1300 *) shared=no ;;
1301 esac
1302 fi
1303
1304 libtool_shared=
1305 test "$enable_shared" = no && libtool_shared=" --disable-shared"
1306
1307 # Check whether --enable-static or --disable-static was given.
1308 if test "${enable_static+set}" = set; then
1309 enableval="$enable_static"
1310 if test "$enableval" = no; then
1311 enable_static=no
1312 else
1313 enable_static=yes
1314 fi
1315 fi
1316
1317 libtool_static=
1318 test "$enable_static" = no && libtool_static=" --disable-static"
1319
1320 libtool_flags="$libtool_shared$libtool_static"
1321 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1322 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1323 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1324
1325 # Some flags need to be propagated to the compiler or linker for good
1326 # libtool support.
1327 case "$host" in
1328 *-*-irix6*)
1329 ac_save_CFLAGS="$CFLAGS"
1330 # -n32 always needs to be added to the linker when using GCC.
1331 test "$ac_cv_prog_gcc" = yes && CFLAGS="$CFLAGS -n32"
1332 for f in '-32' '-64' '-cckr' '-n32' '-mips1' '-mips2' '-mips3' '-mips4'; do
1333 if echo " $CC $CFLAGS " | egrep -e "[ ]$f[ ]" > /dev/null; then
1334 LD="${LD-ld} $f"
1335 fi
1336 done
1337 CFLAGS="$ac_save_CFLAGS"
1338 ;;
1339
1340 *-*-sco3.2v5*)
1341 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1342 CFLAGS="$CFLAGS -belf"
1343 ;;
1344 esac
1345
1346 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1347 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1348 LD="$LD" RANLIB="$RANLIB" LN_S="$LN_S" \
1349 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1350 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1351 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1352
1353
1354 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
1355 if test "${enable_64_bit_bfd+set}" = set; then
1356 enableval="$enable_64_bit_bfd"
1357 case "${enableval}" in
1358 yes) want64=true ;;
1359 no) want64=false ;;
1360 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
1361 esac
1362 else
1363 want64=false
1364 fi
1365 # Check whether --enable-targets or --disable-targets was given.
1366 if test "${enable_targets+set}" = set; then
1367 enableval="$enable_targets"
1368 case "${enableval}" in
1369 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1370 ;;
1371 no) enable_targets= ;;
1372 *) enable_targets=$enableval ;;
1373 esac
1374 fi
1375 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1376 if test "${enable_commonbfdlib+set}" = set; then
1377 enableval="$enable_commonbfdlib"
1378 case "${enableval}" in
1379 yes) commonbfdlib=true ;;
1380 no) commonbfdlib=false ;;
1381 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
1382 esac
1383 fi
1384 # Check whether --with-mmap or --without-mmap was given.
1385 if test "${with_mmap+set}" = set; then
1386 withval="$with_mmap"
1387 case "${withval}" in
1388 yes) want_mmap=true ;;
1389 no) want_mmap=false ;;
1390 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
1391 esac
1392 else
1393 want_mmap=false
1394 fi
1395
1396
1397
1398
1399
1400 if test -z "$target" ; then
1401 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1402 fi
1403 if test "$program_transform_name" = s,x,x,; then
1404 program_transform_name=
1405 else
1406 # Double any \ or $. echo might interpret backslashes.
1407 cat <<\EOF_SED > conftestsed
1408 s,\\,\\\\,g; s,\$,$$,g
1409 EOF_SED
1410 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1411 rm -f conftestsed
1412 fi
1413 test "$program_prefix" != NONE &&
1414 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1415 # Use a double $ so make ignores it.
1416 test "$program_suffix" != NONE &&
1417 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1418
1419 # sed with no file args requires a program.
1420 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1421
1422
1423 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1424 echo "configure:1425: checking whether to enable maintainer-specific portions of Makefiles" >&5
1425 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1426 if test "${enable_maintainer_mode+set}" = set; then
1427 enableval="$enable_maintainer_mode"
1428 USE_MAINTAINER_MODE=$enableval
1429 else
1430 USE_MAINTAINER_MODE=no
1431 fi
1432
1433 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1434 if test $USE_MAINTAINER_MODE = yes; then
1435 MAINT=
1436 else
1437 MAINT='#M#'
1438 fi
1439
1440
1441 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
1442 echo "configure:1443: checking for Cygwin32 environment" >&5
1443 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
1444 echo $ac_n "(cached) $ac_c" 1>&6
1445 else
1446 cat > conftest.$ac_ext <<EOF
1447 #line 1448 "configure"
1448 #include "confdefs.h"
1449
1450 int main() {
1451 return __CYGWIN32__;
1452 ; return 0; }
1453 EOF
1454 if { (eval echo configure:1455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1455 rm -rf conftest*
1456 am_cv_cygwin32=yes
1457 else
1458 echo "configure: failed program was:" >&5
1459 cat conftest.$ac_ext >&5
1460 rm -rf conftest*
1461 am_cv_cygwin32=no
1462 fi
1463 rm -f conftest*
1464 rm -f conftest*
1465 fi
1466
1467 echo "$ac_t""$am_cv_cygwin32" 1>&6
1468 CYGWIN32=
1469 test "$am_cv_cygwin32" = yes && CYGWIN32=yes
1470 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
1471 echo "configure:1472: checking for Mingw32 environment" >&5
1472 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
1473 echo $ac_n "(cached) $ac_c" 1>&6
1474 else
1475 cat > conftest.$ac_ext <<EOF
1476 #line 1477 "configure"
1477 #include "confdefs.h"
1478
1479 int main() {
1480 return __MINGW32__;
1481 ; return 0; }
1482 EOF
1483 if { (eval echo configure:1484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1484 rm -rf conftest*
1485 am_cv_mingw32=yes
1486 else
1487 echo "configure: failed program was:" >&5
1488 cat conftest.$ac_ext >&5
1489 rm -rf conftest*
1490 am_cv_mingw32=no
1491 fi
1492 rm -f conftest*
1493 rm -f conftest*
1494 fi
1495
1496 echo "$ac_t""$am_cv_mingw32" 1>&6
1497 MINGW32=
1498 test "$am_cv_mingw32" = yes && MINGW32=yes
1499
1500
1501 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1502 echo "configure:1503: checking for executable suffix" >&5
1503 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
1504 echo $ac_n "(cached) $ac_c" 1>&6
1505 else
1506
1507 if test "$CYGWIN32" = yes -o "$MINGW32" = yes; then
1508 am_cv_exeext=.exe
1509 else
1510 cat > am_c_test.c << 'EOF'
1511 int main() {
1512 /* Nothing needed here */
1513 }
1514 EOF
1515 ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
1516 am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
1517 rm -f am_c_test*
1518 fi
1519
1520 test x"${am_cv_exeext}" = x && am_cv_exeext=no
1521 fi
1522 EXEEXT=""
1523 test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
1524 echo "$ac_t""${am_cv_exeext}" 1>&6
1525
1526
1527 host64=false
1528 target64=false
1529
1530 # host stuff:
1531
1532 # Extract the first word of "gcc", so it can be a program name with args.
1533 set dummy gcc; ac_word=$2
1534 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1535 echo "configure:1536: checking for $ac_word" >&5
1536 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1537 echo $ac_n "(cached) $ac_c" 1>&6
1538 else
1539 if test -n "$CC"; then
1540 ac_cv_prog_CC="$CC" # Let the user override the test.
1541 else
1542 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1543 for ac_dir in $PATH; do
1544 test -z "$ac_dir" && ac_dir=.
1545 if test -f $ac_dir/$ac_word; then
1546 ac_cv_prog_CC="gcc"
1547 break
1548 fi
1549 done
1550 IFS="$ac_save_ifs"
1551 fi
1552 fi
1553 CC="$ac_cv_prog_CC"
1554 if test -n "$CC"; then
1555 echo "$ac_t""$CC" 1>&6
1556 else
1557 echo "$ac_t""no" 1>&6
1558 fi
1559
1560 if test -z "$CC"; then
1561 # Extract the first word of "cc", so it can be a program name with args.
1562 set dummy cc; ac_word=$2
1563 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1564 echo "configure:1565: checking for $ac_word" >&5
1565 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1566 echo $ac_n "(cached) $ac_c" 1>&6
1567 else
1568 if test -n "$CC"; then
1569 ac_cv_prog_CC="$CC" # Let the user override the test.
1570 else
1571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1572 ac_prog_rejected=no
1573 for ac_dir in $PATH; do
1574 test -z "$ac_dir" && ac_dir=.
1575 if test -f $ac_dir/$ac_word; then
1576 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1577 ac_prog_rejected=yes
1578 continue
1579 fi
1580 ac_cv_prog_CC="cc"
1581 break
1582 fi
1583 done
1584 IFS="$ac_save_ifs"
1585 if test $ac_prog_rejected = yes; then
1586 # We found a bogon in the path, so make sure we never use it.
1587 set dummy $ac_cv_prog_CC
1588 shift
1589 if test $# -gt 0; then
1590 # We chose a different compiler from the bogus one.
1591 # However, it has the same basename, so the bogon will be chosen
1592 # first if we set CC to just the basename; use the full file name.
1593 shift
1594 set dummy "$ac_dir/$ac_word" "$@"
1595 shift
1596 ac_cv_prog_CC="$@"
1597 fi
1598 fi
1599 fi
1600 fi
1601 CC="$ac_cv_prog_CC"
1602 if test -n "$CC"; then
1603 echo "$ac_t""$CC" 1>&6
1604 else
1605 echo "$ac_t""no" 1>&6
1606 fi
1607
1608 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1609 fi
1610
1611 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1612 echo "configure:1613: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1613
1614 ac_ext=c
1615 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1616 ac_cpp='$CPP $CPPFLAGS'
1617 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1618 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1619 cross_compiling=$ac_cv_prog_cc_cross
1620
1621 cat > conftest.$ac_ext <<EOF
1622 #line 1623 "configure"
1623 #include "confdefs.h"
1624 main(){return(0);}
1625 EOF
1626 if { (eval echo configure:1627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1627 ac_cv_prog_cc_works=yes
1628 # If we can't run a trivial program, we are probably using a cross compiler.
1629 if (./conftest; exit) 2>/dev/null; then
1630 ac_cv_prog_cc_cross=no
1631 else
1632 ac_cv_prog_cc_cross=yes
1633 fi
1634 else
1635 echo "configure: failed program was:" >&5
1636 cat conftest.$ac_ext >&5
1637 ac_cv_prog_cc_works=no
1638 fi
1639 rm -fr conftest*
1640
1641 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1642 if test $ac_cv_prog_cc_works = no; then
1643 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1644 fi
1645 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1646 echo "configure:1647: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1647 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1648 cross_compiling=$ac_cv_prog_cc_cross
1649
1650 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1651 echo "configure:1652: checking whether we are using GNU C" >&5
1652 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1653 echo $ac_n "(cached) $ac_c" 1>&6
1654 else
1655 cat > conftest.c <<EOF
1656 #ifdef __GNUC__
1657 yes;
1658 #endif
1659 EOF
1660 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1661 ac_cv_prog_gcc=yes
1662 else
1663 ac_cv_prog_gcc=no
1664 fi
1665 fi
1666
1667 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1668
1669 if test $ac_cv_prog_gcc = yes; then
1670 GCC=yes
1671 ac_test_CFLAGS="${CFLAGS+set}"
1672 ac_save_CFLAGS="$CFLAGS"
1673 CFLAGS=
1674 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1675 echo "configure:1676: checking whether ${CC-cc} accepts -g" >&5
1676 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1677 echo $ac_n "(cached) $ac_c" 1>&6
1678 else
1679 echo 'void f(){}' > conftest.c
1680 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1681 ac_cv_prog_cc_g=yes
1682 else
1683 ac_cv_prog_cc_g=no
1684 fi
1685 rm -f conftest*
1686
1687 fi
1688
1689 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1690 if test "$ac_test_CFLAGS" = set; then
1691 CFLAGS="$ac_save_CFLAGS"
1692 elif test $ac_cv_prog_cc_g = yes; then
1693 CFLAGS="-g -O2"
1694 else
1695 CFLAGS="-O2"
1696 fi
1697 else
1698 GCC=
1699 test "${CFLAGS+set}" = set || CFLAGS="-g"
1700 fi
1701
1702
1703 # Permit host specific settings.
1704 . ${srcdir}/configure.host
1705
1706
1707
1708 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1709
1710
1711 BFD_HOST_64BIT_LONG=0
1712 BFD_HOST_64_BIT_DEFINED=0
1713 BFD_HOST_64_BIT=
1714 BFD_HOST_U_64_BIT=
1715 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
1716 BFD_HOST_64BIT_LONG=1
1717 elif test "x${HOST_64BIT_TYPE}" != "x"; then
1718 BFD_HOST_64_BIT_DEFINED=1
1719 BFD_HOST_64_BIT=${HOST_64BIT_TYPE}
1720 BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE}
1721 fi
1722
1723
1724
1725
1726
1727 # Put a plausible default for CC_FOR_BUILD in Makefile.
1728 if test -z "$CC_FOR_BUILD"; then
1729 if test "x$cross_compiling" = "xno"; then
1730 CC_FOR_BUILD='$(CC)'
1731 else
1732 CC_FOR_BUILD=gcc
1733 fi
1734 fi
1735
1736 # Also set EXEEXT_FOR_BUILD.
1737 if test "x$cross_compiling" = "xno"; then
1738 EXEEXT_FOR_BUILD='$(EXEEXT)'
1739 else
1740 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
1741 echo "configure:1742: checking for build system executable suffix" >&5
1742 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
1743 echo $ac_n "(cached) $ac_c" 1>&6
1744 else
1745 cat > ac_c_test.c << 'EOF'
1746 int main() {
1747 /* Nothing needed here */
1748 }
1749 EOF
1750 ${CC_FOR_BUILD} -o ac_c_test am_c_test.c 1>&5 2>&5
1751 bfd_cv_build_exeext=`echo ac_c_test.* | grep -v ac_c_test.c | sed -e s/ac_c_test//`
1752 rm -f ac_c_test*
1753 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
1754 fi
1755
1756 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
1757 EXEEXT_FOR_BUILD=""
1758 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
1759 fi
1760
1761
1762 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1763 echo "configure:1764: checking how to run the C preprocessor" >&5
1764 # On Suns, sometimes $CPP names a directory.
1765 if test -n "$CPP" && test -d "$CPP"; then
1766 CPP=
1767 fi
1768 if test -z "$CPP"; then
1769 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1770 echo $ac_n "(cached) $ac_c" 1>&6
1771 else
1772 # This must be in double quotes, not single quotes, because CPP may get
1773 # substituted into the Makefile and "${CC-cc}" will confuse make.
1774 CPP="${CC-cc} -E"
1775 # On the NeXT, cc -E runs the code through the compiler's parser,
1776 # not just through cpp.
1777 cat > conftest.$ac_ext <<EOF
1778 #line 1779 "configure"
1779 #include "confdefs.h"
1780 #include <assert.h>
1781 Syntax Error
1782 EOF
1783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1784 { (eval echo configure:1785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1785 ac_err=`grep -v '^ *+' conftest.out`
1786 if test -z "$ac_err"; then
1787 :
1788 else
1789 echo "$ac_err" >&5
1790 echo "configure: failed program was:" >&5
1791 cat conftest.$ac_ext >&5
1792 rm -rf conftest*
1793 CPP="${CC-cc} -E -traditional-cpp"
1794 cat > conftest.$ac_ext <<EOF
1795 #line 1796 "configure"
1796 #include "confdefs.h"
1797 #include <assert.h>
1798 Syntax Error
1799 EOF
1800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1801 { (eval echo configure:1802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1802 ac_err=`grep -v '^ *+' conftest.out`
1803 if test -z "$ac_err"; then
1804 :
1805 else
1806 echo "$ac_err" >&5
1807 echo "configure: failed program was:" >&5
1808 cat conftest.$ac_ext >&5
1809 rm -rf conftest*
1810 CPP=/lib/cpp
1811 fi
1812 rm -f conftest*
1813 fi
1814 rm -f conftest*
1815 ac_cv_prog_CPP="$CPP"
1816 fi
1817 CPP="$ac_cv_prog_CPP"
1818 else
1819 ac_cv_prog_CPP="$CPP"
1820 fi
1821 echo "$ac_t""$CPP" 1>&6
1822
1823 for ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h
1824 do
1825 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1826 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1827 echo "configure:1828: checking for $ac_hdr" >&5
1828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1829 echo $ac_n "(cached) $ac_c" 1>&6
1830 else
1831 cat > conftest.$ac_ext <<EOF
1832 #line 1833 "configure"
1833 #include "confdefs.h"
1834 #include <$ac_hdr>
1835 EOF
1836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1837 { (eval echo configure:1838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1838 ac_err=`grep -v '^ *+' conftest.out`
1839 if test -z "$ac_err"; then
1840 rm -rf conftest*
1841 eval "ac_cv_header_$ac_safe=yes"
1842 else
1843 echo "$ac_err" >&5
1844 echo "configure: failed program was:" >&5
1845 cat conftest.$ac_ext >&5
1846 rm -rf conftest*
1847 eval "ac_cv_header_$ac_safe=no"
1848 fi
1849 rm -f conftest*
1850 fi
1851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1852 echo "$ac_t""yes" 1>&6
1853 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1854 cat >> confdefs.h <<EOF
1855 #define $ac_tr_hdr 1
1856 EOF
1857
1858 else
1859 echo "$ac_t""no" 1>&6
1860 fi
1861 done
1862
1863 for ac_hdr in fcntl.h sys/file.h sys/time.h
1864 do
1865 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1866 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1867 echo "configure:1868: checking for $ac_hdr" >&5
1868 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1869 echo $ac_n "(cached) $ac_c" 1>&6
1870 else
1871 cat > conftest.$ac_ext <<EOF
1872 #line 1873 "configure"
1873 #include "confdefs.h"
1874 #include <$ac_hdr>
1875 EOF
1876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1877 { (eval echo configure:1878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1878 ac_err=`grep -v '^ *+' conftest.out`
1879 if test -z "$ac_err"; then
1880 rm -rf conftest*
1881 eval "ac_cv_header_$ac_safe=yes"
1882 else
1883 echo "$ac_err" >&5
1884 echo "configure: failed program was:" >&5
1885 cat conftest.$ac_ext >&5
1886 rm -rf conftest*
1887 eval "ac_cv_header_$ac_safe=no"
1888 fi
1889 rm -f conftest*
1890 fi
1891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1892 echo "$ac_t""yes" 1>&6
1893 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1894 cat >> confdefs.h <<EOF
1895 #define $ac_tr_hdr 1
1896 EOF
1897
1898 else
1899 echo "$ac_t""no" 1>&6
1900 fi
1901 done
1902
1903 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1904 echo "configure:1905: checking whether time.h and sys/time.h may both be included" >&5
1905 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1906 echo $ac_n "(cached) $ac_c" 1>&6
1907 else
1908 cat > conftest.$ac_ext <<EOF
1909 #line 1910 "configure"
1910 #include "confdefs.h"
1911 #include <sys/types.h>
1912 #include <sys/time.h>
1913 #include <time.h>
1914 int main() {
1915 struct tm *tp;
1916 ; return 0; }
1917 EOF
1918 if { (eval echo configure:1919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1919 rm -rf conftest*
1920 ac_cv_header_time=yes
1921 else
1922 echo "configure: failed program was:" >&5
1923 cat conftest.$ac_ext >&5
1924 rm -rf conftest*
1925 ac_cv_header_time=no
1926 fi
1927 rm -f conftest*
1928 fi
1929
1930 echo "$ac_t""$ac_cv_header_time" 1>&6
1931 if test $ac_cv_header_time = yes; then
1932 cat >> confdefs.h <<\EOF
1933 #define TIME_WITH_SYS_TIME 1
1934 EOF
1935
1936 fi
1937
1938 for ac_func in fcntl getpagesize setitimer sysconf fdopen
1939 do
1940 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1941 echo "configure:1942: checking for $ac_func" >&5
1942 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1943 echo $ac_n "(cached) $ac_c" 1>&6
1944 else
1945 cat > conftest.$ac_ext <<EOF
1946 #line 1947 "configure"
1947 #include "confdefs.h"
1948 /* System header to define __stub macros and hopefully few prototypes,
1949 which can conflict with char $ac_func(); below. */
1950 #include <assert.h>
1951 /* Override any gcc2 internal prototype to avoid an error. */
1952 /* We use char because int might match the return type of a gcc2
1953 builtin and then its argument prototype would still apply. */
1954 char $ac_func();
1955
1956 int main() {
1957
1958 /* The GNU C library defines this for functions which it implements
1959 to always fail with ENOSYS. Some functions are actually named
1960 something starting with __ and the normal name is an alias. */
1961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1962 choke me
1963 #else
1964 $ac_func();
1965 #endif
1966
1967 ; return 0; }
1968 EOF
1969 if { (eval echo configure:1970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1970 rm -rf conftest*
1971 eval "ac_cv_func_$ac_func=yes"
1972 else
1973 echo "configure: failed program was:" >&5
1974 cat conftest.$ac_ext >&5
1975 rm -rf conftest*
1976 eval "ac_cv_func_$ac_func=no"
1977 fi
1978 rm -f conftest*
1979 fi
1980
1981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1982 echo "$ac_t""yes" 1>&6
1983 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1984 cat >> confdefs.h <<EOF
1985 #define $ac_tr_func 1
1986 EOF
1987
1988 else
1989 echo "$ac_t""no" 1>&6
1990 fi
1991 done
1992
1993
1994
1995 case "${host}" in
1996 i[345]86-*-msdos* | i[345]86-*-go32* | *-*-cygwin32 | *-*-windows)
1997 cat >> confdefs.h <<\EOF
1998 #define USE_BINARY_FOPEN 1
1999 EOF
2000 ;;
2001 esac
2002
2003 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
2004 echo "configure:2005: checking whether strstr must be declared" >&5
2005 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
2006 echo $ac_n "(cached) $ac_c" 1>&6
2007 else
2008 cat > conftest.$ac_ext <<EOF
2009 #line 2010 "configure"
2010 #include "confdefs.h"
2011
2012 #include <stdio.h>
2013 #ifdef HAVE_STRING_H
2014 #include <string.h>
2015 #else
2016 #ifdef HAVE_STRINGS_H
2017 #include <strings.h>
2018 #endif
2019 #endif
2020 #ifdef HAVE_STDLIB_H
2021 #include <stdlib.h>
2022 #endif
2023 #ifdef HAVE_UNISTD_H
2024 #include <unistd.h>
2025 #endif
2026 int main() {
2027 char *(*pfn) = (char *(*)) strstr
2028 ; return 0; }
2029 EOF
2030 if { (eval echo configure:2031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2031 rm -rf conftest*
2032 bfd_cv_decl_needed_strstr=no
2033 else
2034 echo "configure: failed program was:" >&5
2035 cat conftest.$ac_ext >&5
2036 rm -rf conftest*
2037 bfd_cv_decl_needed_strstr=yes
2038 fi
2039 rm -f conftest*
2040 fi
2041
2042 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
2043 if test $bfd_cv_decl_needed_strstr = yes; then
2044 bfd_tr_decl=NEED_DECLARATION_`echo strstr | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2045 cat >> confdefs.h <<EOF
2046 #define $bfd_tr_decl 1
2047 EOF
2048
2049 fi
2050
2051 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
2052 echo "configure:2053: checking whether malloc must be declared" >&5
2053 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
2054 echo $ac_n "(cached) $ac_c" 1>&6
2055 else
2056 cat > conftest.$ac_ext <<EOF
2057 #line 2058 "configure"
2058 #include "confdefs.h"
2059
2060 #include <stdio.h>
2061 #ifdef HAVE_STRING_H
2062 #include <string.h>
2063 #else
2064 #ifdef HAVE_STRINGS_H
2065 #include <strings.h>
2066 #endif
2067 #endif
2068 #ifdef HAVE_STDLIB_H
2069 #include <stdlib.h>
2070 #endif
2071 #ifdef HAVE_UNISTD_H
2072 #include <unistd.h>
2073 #endif
2074 int main() {
2075 char *(*pfn) = (char *(*)) malloc
2076 ; return 0; }
2077 EOF
2078 if { (eval echo configure:2079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2079 rm -rf conftest*
2080 bfd_cv_decl_needed_malloc=no
2081 else
2082 echo "configure: failed program was:" >&5
2083 cat conftest.$ac_ext >&5
2084 rm -rf conftest*
2085 bfd_cv_decl_needed_malloc=yes
2086 fi
2087 rm -f conftest*
2088 fi
2089
2090 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
2091 if test $bfd_cv_decl_needed_malloc = yes; then
2092 bfd_tr_decl=NEED_DECLARATION_`echo malloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2093 cat >> confdefs.h <<EOF
2094 #define $bfd_tr_decl 1
2095 EOF
2096
2097 fi
2098
2099 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
2100 echo "configure:2101: checking whether realloc must be declared" >&5
2101 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
2102 echo $ac_n "(cached) $ac_c" 1>&6
2103 else
2104 cat > conftest.$ac_ext <<EOF
2105 #line 2106 "configure"
2106 #include "confdefs.h"
2107
2108 #include <stdio.h>
2109 #ifdef HAVE_STRING_H
2110 #include <string.h>
2111 #else
2112 #ifdef HAVE_STRINGS_H
2113 #include <strings.h>
2114 #endif
2115 #endif
2116 #ifdef HAVE_STDLIB_H
2117 #include <stdlib.h>
2118 #endif
2119 #ifdef HAVE_UNISTD_H
2120 #include <unistd.h>
2121 #endif
2122 int main() {
2123 char *(*pfn) = (char *(*)) realloc
2124 ; return 0; }
2125 EOF
2126 if { (eval echo configure:2127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2127 rm -rf conftest*
2128 bfd_cv_decl_needed_realloc=no
2129 else
2130 echo "configure: failed program was:" >&5
2131 cat conftest.$ac_ext >&5
2132 rm -rf conftest*
2133 bfd_cv_decl_needed_realloc=yes
2134 fi
2135 rm -f conftest*
2136 fi
2137
2138 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
2139 if test $bfd_cv_decl_needed_realloc = yes; then
2140 bfd_tr_decl=NEED_DECLARATION_`echo realloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2141 cat >> confdefs.h <<EOF
2142 #define $bfd_tr_decl 1
2143 EOF
2144
2145 fi
2146
2147 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
2148 echo "configure:2149: checking whether free must be declared" >&5
2149 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
2150 echo $ac_n "(cached) $ac_c" 1>&6
2151 else
2152 cat > conftest.$ac_ext <<EOF
2153 #line 2154 "configure"
2154 #include "confdefs.h"
2155
2156 #include <stdio.h>
2157 #ifdef HAVE_STRING_H
2158 #include <string.h>
2159 #else
2160 #ifdef HAVE_STRINGS_H
2161 #include <strings.h>
2162 #endif
2163 #endif
2164 #ifdef HAVE_STDLIB_H
2165 #include <stdlib.h>
2166 #endif
2167 #ifdef HAVE_UNISTD_H
2168 #include <unistd.h>
2169 #endif
2170 int main() {
2171 char *(*pfn) = (char *(*)) free
2172 ; return 0; }
2173 EOF
2174 if { (eval echo configure:2175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2175 rm -rf conftest*
2176 bfd_cv_decl_needed_free=no
2177 else
2178 echo "configure: failed program was:" >&5
2179 cat conftest.$ac_ext >&5
2180 rm -rf conftest*
2181 bfd_cv_decl_needed_free=yes
2182 fi
2183 rm -f conftest*
2184 fi
2185
2186 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
2187 if test $bfd_cv_decl_needed_free = yes; then
2188 bfd_tr_decl=NEED_DECLARATION_`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2189 cat >> confdefs.h <<EOF
2190 #define $bfd_tr_decl 1
2191 EOF
2192
2193 fi
2194
2195 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
2196 echo "configure:2197: checking whether getenv must be declared" >&5
2197 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
2198 echo $ac_n "(cached) $ac_c" 1>&6
2199 else
2200 cat > conftest.$ac_ext <<EOF
2201 #line 2202 "configure"
2202 #include "confdefs.h"
2203
2204 #include <stdio.h>
2205 #ifdef HAVE_STRING_H
2206 #include <string.h>
2207 #else
2208 #ifdef HAVE_STRINGS_H
2209 #include <strings.h>
2210 #endif
2211 #endif
2212 #ifdef HAVE_STDLIB_H
2213 #include <stdlib.h>
2214 #endif
2215 #ifdef HAVE_UNISTD_H
2216 #include <unistd.h>
2217 #endif
2218 int main() {
2219 char *(*pfn) = (char *(*)) getenv
2220 ; return 0; }
2221 EOF
2222 if { (eval echo configure:2223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2223 rm -rf conftest*
2224 bfd_cv_decl_needed_getenv=no
2225 else
2226 echo "configure: failed program was:" >&5
2227 cat conftest.$ac_ext >&5
2228 rm -rf conftest*
2229 bfd_cv_decl_needed_getenv=yes
2230 fi
2231 rm -f conftest*
2232 fi
2233
2234 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
2235 if test $bfd_cv_decl_needed_getenv = yes; then
2236 bfd_tr_decl=NEED_DECLARATION_`echo getenv | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2237 cat >> confdefs.h <<EOF
2238 #define $bfd_tr_decl 1
2239 EOF
2240
2241 fi
2242
2243
2244 # If we are configured native, pick a core file support file.
2245 COREFILE=
2246 COREFLAG=
2247 if test "${target}" = "${host}"; then
2248 case "${host}" in
2249 alpha*-*-linux*)
2250 COREFILE=trad-core.lo
2251 cat >> confdefs.h <<\EOF
2252 #define TRAD_HEADER "hosts/alphalinux.h"
2253 EOF
2254
2255 ;;
2256 alpha*-*-*) COREFILE=osf-core.lo ;;
2257 arm-*-riscix) COREFILE=trad-core.lo ;;
2258 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
2259 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
2260 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
2261 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
2262 i[3456]86-sequent-bsd*)
2263 COREFILE=trad-core.lo;
2264 cat >> confdefs.h <<\EOF
2265 #define TRAD_HEADER "hosts/symmetry.h"
2266 EOF
2267
2268 ;;
2269 i[3456]86-sequent-sysv4*) ;;
2270 i[3456]86-sequent-sysv*)
2271 COREFILE=trad-core.lo
2272 cat >> confdefs.h <<\EOF
2273 #define TRAD_HEADER "hosts/symmetry.h"
2274 EOF
2275
2276 ;;
2277 i[3456]86-*-bsd* | i[3456]86-*-freebsd*)
2278 COREFILE=trad-core.lo
2279 cat >> confdefs.h <<\EOF
2280 #define TRAD_HEADER "hosts/i386bsd.h"
2281 EOF
2282
2283 ;;
2284 i[3456]86-*-netbsd* | i[3456]86-*-openbsd*)
2285 COREFILE=netbsd-core.lo
2286 ;;
2287 i[3456]86-esix-sysv3*)
2288 COREFILE=trad-core.lo
2289 cat >> confdefs.h <<\EOF
2290 #define TRAD_HEADER "hosts/esix.h"
2291 EOF
2292
2293 ;;
2294 i[3456]86-*-sco* | i[3456]86-*-isc*)
2295 COREFILE=trad-core.lo
2296 cat >> confdefs.h <<\EOF
2297 #define TRAD_HEADER "hosts/i386sco.h"
2298 EOF
2299
2300 ;;
2301 i[3456]86-*-mach3*)
2302 COREFILE=trad-core.lo
2303 cat >> confdefs.h <<\EOF
2304 #define TRAD_HEADER "hosts/i386mach3.h"
2305 EOF
2306
2307 ;;
2308 i[3456]86-*-linux*)
2309 COREFILE=trad-core.lo
2310 cat >> confdefs.h <<\EOF
2311 #define TRAD_HEADER "hosts/i386linux.h"
2312 EOF
2313
2314 ;;
2315 i[3456]86-*-isc*) COREFILE=trad-core.lo ;;
2316 i[3456]86-*-aix*) COREFILE=aix386-core.lo ;;
2317 i860-*-mach3* | i860-*-osf1*)
2318 COREFILE=trad-core.lo
2319 cat >> confdefs.h <<\EOF
2320 #define TRAD_HEADER "hosts/i860mach3.h"
2321 EOF
2322
2323 ;;
2324 mips-dec-bsd*)
2325 COREFILE=trad-core.lo
2326 cat >> confdefs.h <<\EOF
2327 #define TRAD_HEADER "hosts/mipsbsd.h"
2328 EOF
2329
2330 ;;
2331 mips-dec-mach3*)
2332 COREFILE=trad-core.lo
2333 cat >> confdefs.h <<\EOF
2334 #define TRAD_HEADER "hosts/mipsmach3.h"
2335 EOF
2336
2337 ;;
2338 mips-*-netbsd* | mips*-*-openbsd*)
2339 COREFILE=netbsd-core.lo
2340 ;;
2341 mips-dec-*)
2342 COREFILE=trad-core.lo
2343 cat >> confdefs.h <<\EOF
2344 #define TRAD_HEADER "hosts/decstation.h"
2345 EOF
2346
2347 ;;
2348 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
2349 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
2350 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
2351 mips-*-mach3*)
2352 COREFILE=trad-core.lo
2353 cat >> confdefs.h <<\EOF
2354 #define TRAD_HEADER "hosts/mipsmach3.h"
2355 EOF
2356
2357 ;;
2358 mips-*-sysv4*) ;;
2359 mips-*-sysv* | mips-*-riscos*)
2360 COREFILE=trad-core.lo
2361 cat >> confdefs.h <<\EOF
2362 #define TRAD_HEADER "hosts/riscos.h"
2363 EOF
2364
2365 ;;
2366 mips-sony-bsd*)
2367 COREFILE=trad-core.lo
2368 cat >> confdefs.h <<\EOF
2369 #define TRAD_HEADER "hosts/news-mips.h"
2370 EOF
2371
2372 ;;
2373 m68*-bull*-sysv*)
2374 COREFILE=trad-core.lo
2375 cat >> confdefs.h <<\EOF
2376 #define TRAD_HEADER "hosts/dpx2.h"
2377 EOF
2378
2379 ;;
2380 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
2381 m68*-hp-bsd*)
2382 COREFILE=trad-core.lo
2383 cat >> confdefs.h <<\EOF
2384 #define TRAD_HEADER "hosts/hp300bsd.h"
2385 EOF
2386
2387 ;;
2388 m68*-*-linux*)
2389 COREFILE=trad-core.lo
2390 cat >> confdefs.h <<\EOF
2391 #define TRAD_HEADER "hosts/m68klinux.h"
2392 EOF
2393
2394 ;;
2395 m68*-motorola-sysv*)
2396 COREFILE=trad-core.lo
2397 cat >> confdefs.h <<\EOF
2398 #define TRAD_HEADER "hosts/delta68.h"
2399 EOF
2400
2401 ;;
2402 m68*-sony-*)
2403 COREFILE=trad-core.lo
2404 cat >> confdefs.h <<\EOF
2405 #define TRAD_HEADER "hosts/news.h"
2406 EOF
2407
2408 ;;
2409 m68*-*-netbsd* | m68*-*-openbsd*)
2410 COREFILE=netbsd-core.lo
2411 ;;
2412 m68*-apple-aux*)
2413 COREFILE=trad-core.lo
2414 cat >> confdefs.h <<\EOF
2415 #define TRAD_HEADER "hosts/m68kaux.h"
2416 EOF
2417
2418 ;;
2419 m88*-*-sysv4*) ;;
2420 m88*-motorola-sysv*) COREFILE=ptrace-core.lo ;;
2421 m88*-*-mach3*)
2422 COREFILE=trad-core.lo
2423 cat >> confdefs.h <<\EOF
2424 #define TRAD_HEADER "hosts/m88kmach3.h"
2425 EOF
2426
2427 ;;
2428 ns32k-pc532-mach)
2429 COREFILE=trad-core.lo
2430 cat >> confdefs.h <<\EOF
2431 #define TRAD_HEADER "hosts/pc532mach.h"
2432 EOF
2433
2434 ;;
2435 ns32k-*-netbsd* | ns32k-*-openbsd*)
2436 COREFILE=netbsd-core.lo
2437 ;;
2438 rs6000-*-lynx*) COREFILE=lynx-core.lo ;;
2439 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
2440 rs6000-*-*) COREFILE=rs6000-core.lo ;;
2441 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
2442 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
2443 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
2444 powerpc-*-beos*) ;;
2445 sparc-*-netbsd* | sparc-*-openbsd*)
2446 COREFILE=netbsd-core.lo
2447 ;;
2448 sparc*-*-linux*)
2449 COREFILE=trad-core.lo
2450 cat >> confdefs.h <<\EOF
2451 #define TRAD_HEADER "hosts/sparclinux.h"
2452 EOF
2453
2454 ;;
2455 tahoe-*-*)
2456 COREFILE=trad-core.lo
2457 cat >> confdefs.h <<\EOF
2458 #define TRAD_HEADER "hosts/tahoe.h"
2459 EOF
2460
2461 ;;
2462 vax-*-ultrix2*)
2463 COREFILE=trad-core.lo
2464 cat >> confdefs.h <<\EOF
2465 #define TRAD_HEADER "hosts/vaxult2.h"
2466 EOF
2467
2468 ;;
2469 vax-*-ultrix*)
2470 COREFILE=trad-core.lo
2471 cat >> confdefs.h <<\EOF
2472 #define TRAD_HEADER "hosts/vaxult2.h"
2473 EOF
2474
2475 ;;
2476 vax-*-*)
2477 COREFILE=trad-core.lo
2478 cat >> confdefs.h <<\EOF
2479 #define TRAD_HEADER "hosts/vaxbsd.h"
2480 EOF
2481
2482 ;;
2483 esac
2484
2485 case "$COREFILE" in
2486 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
2487 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
2488 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
2489 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
2490 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
2491 osf-core.lo) COREFLAG=-DOSF_CORE ;;
2492 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
2493 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
2494 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
2495 esac
2496
2497 # The ELF code uses the native <sys/procfs.h> to handle core files.
2498 # Define HAVE_SYS_PROCFS_H if the file exists and defines
2499 # prstatus_t.
2500 echo $ac_n "checking for sys/procfs.h""... $ac_c" 1>&6
2501 echo "configure:2502: checking for sys/procfs.h" >&5
2502 if eval "test \"`echo '$''{'bfd_cv_header_sys_procfs_h'+set}'`\" = set"; then
2503 echo $ac_n "(cached) $ac_c" 1>&6
2504 else
2505 cat > conftest.$ac_ext <<EOF
2506 #line 2507 "configure"
2507 #include "confdefs.h"
2508 #include <sys/procfs.h>
2509 int main() {
2510 prstatus_t t;
2511 ; return 0; }
2512 EOF
2513 if { (eval echo configure:2514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2514 rm -rf conftest*
2515 bfd_cv_header_sys_procfs_h=yes
2516 else
2517 echo "configure: failed program was:" >&5
2518 cat conftest.$ac_ext >&5
2519 rm -rf conftest*
2520 bfd_cv_header_sys_procfs_h=no
2521 fi
2522 rm -f conftest*
2523 fi
2524
2525 echo "$ac_t""$bfd_cv_header_sys_procfs_h" 1>&6
2526 if test $bfd_cv_header_sys_procfs_h = yes; then
2527 cat >> confdefs.h <<\EOF
2528 #define HAVE_SYS_PROCFS_H 1
2529 EOF
2530
2531 fi
2532
2533 fi
2534
2535
2536
2537 # target stuff:
2538
2539 # Canonicalize the secondary target names.
2540 if test -n "$enable_targets" ; then
2541 for targ in `echo $enable_targets | sed 's/,/ /g'`
2542 do
2543 result=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
2544 if test -n "$result" ; then
2545 canon_targets="$canon_targets $result"
2546 else
2547 # Allow targets that config.sub doesn't recognize, like "all".
2548 canon_targets="$canon_targets $targ"
2549 fi
2550 done
2551 fi
2552
2553 all_targets=false
2554 defvec=
2555 selvecs=
2556 selarchs=
2557 TDEFINES=
2558 for targ in $target $canon_targets
2559 do
2560 if test "x$targ" = "xall"; then
2561 all_targets=true
2562 else
2563 . $srcdir/config.bfd
2564 if test "x$targ" = "x$target"; then
2565 defvec=$targ_defvec
2566 fi
2567 selvecs="$selvecs $targ_defvec $targ_selvecs"
2568 selarchs="$selarchs $targ_archs"
2569 TDEFINES="$TDEFINES $targ_cflags"
2570 fi
2571 done
2572
2573
2574 # This processing still needs to be done if we're to decide properly whether
2575 # 64-bit support needs to be compiled in. Currently, it will be included if
2576 # the default or any other explicitly requested target requires it; it
2577 # will not be included on a 32-bit host if no 64-bit target is requested, and
2578 # no "--with-64-bit-bfd" option is given, even if "--with-targets=all" is
2579 # used.
2580
2581 # uniq the default and selected vectors in all the configured targets.
2582 f=""
2583 for i in $selvecs ; do
2584 case " $f " in
2585 *" $i "*) ;;
2586 *) f="$f $i" ;;
2587 esac
2588 done
2589 selvecs="$f"
2590
2591 # uniq the architectures in all the configured targets.
2592 f=""
2593 for i in $selarchs ; do
2594 case " $f " in
2595 *" $i "*) ;;
2596 *) f="$f $i" ;;
2597 esac
2598 done
2599 selarchs="$f"
2600
2601 # Target backend .o files.
2602 tb=
2603
2604 elf="elflink.lo dwarf2.lo"
2605
2606 for vec in $selvecs
2607 do
2608 case "$vec" in
2609 # This list is alphabetized to make it easy to compare
2610 # with the two vector lists in targets.c.
2611 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
2612 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
2613 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
2614 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
2615 armpe_little_vec) tb="$tb pe-arm.lo cofflink.lo " ;;
2616 armpe_big_vec) tb="$tb pe-arm.lo cofflink.lo " ;;
2617 armpei_little_vec) tb="$tb pei-arm.lo cofflink.lo " ;;
2618 armpei_big_vec) tb="$tb pei-arm.lo cofflink.lo " ;;
2619 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
2620 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
2621 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
2622 aout_mips_big_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
2623 aout_mips_little_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
2624 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
2625 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
2626 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
2627 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"
2628 target64=true ;;
2629 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
2630 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
2631 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
2632 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
2633 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
2634 target64=true ;;
2635 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
2636 # start-sanitize-d30v
2637 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
2638 # end-sanitize-d30v
2639 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
2640 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
2641 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
2642 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
2643 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
2644 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
2645 target64=true ;;
2646 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
2647 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
2648 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
2649 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
2650 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
2651 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
2652 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
2653 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
2654 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
2655 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
2656 # start-sanitize-sky
2657 bfd_elf32_txvu_vec) tb="$tb elf32-txvu.lo elf32.lo $elf" ;;
2658 # end-sanitize-sky
2659 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
2660 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"
2661 target64=true ;;
2662 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"
2663 target64=true ;;
2664 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"
2665 target64=true ;;
2666 cisco_core_vec) tb="$tb cisco-core.lo" ;;
2667 demo_64_vec) tb="$tb demo64.lo aout64.lo"
2668 target64=true ;;
2669 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
2670 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
2671 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
2672 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"
2673 target64=true ;;
2674 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
2675 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
2676 evax_alpha_vec) tb="$tb evax-alpha.lo evax-emh.lo evax-egsd.lo evax-etir.lo evax-misc.lo"
2677 target64=true ;;
2678 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
2679 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
2680 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
2681 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
2682 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
2683 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
2684 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
2685 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
2686 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
2687 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
2688 i386msdos_vec) tb="$tb i386msdos.lo" ;;
2689 i386pe_vec) tb="$tb pe-i386.lo cofflink.lo " ;;
2690 i386pei_vec) tb="$tb pei-i386.lo cofflink.lo" ;;
2691 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
2692 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
2693 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
2694 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
2695 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
2696 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
2697 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
2698 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
2699 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
2700 ieee_vec) tb="$tb ieee.lo" ;;
2701 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
2702 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
2703 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
2704 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
2705 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
2706 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
2707 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
2708 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
2709 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
2710 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
2711 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
2712 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
2713 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
2714 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"
2715 target64=true ;;
2716 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
2717 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
2718 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
2719 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
2720 pmac_xcoff_vec) tb="$tb coff-pmac.lo xcofflink.lo" ;;
2721 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
2722 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo cofflink.lo" ;;
2723 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo cofflink.lo" ;;
2724 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo cofflink.lo" ;;
2725 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo cofflink.lo" ;;
2726 ppcboot_vec) tb="$tb ppcboot.lo" ;;
2727 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
2728 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
2729 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
2730 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
2731 som_vec) tb="$tb som.lo" ;;
2732 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
2733 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo stab-syms.lo" ;;
2734 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
2735 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
2736 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
2737 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
2738 srec_vec) tb="$tb srec.lo" ;;
2739 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
2740 symbolsrec_vec) tb="$tb srec.lo" ;;
2741 tekhex_vec) tb="$tb tekhex.lo" ;;
2742 # start-sanitize-tic80
2743 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
2744 # end-sanitize-tic80
2745 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
2746 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
2747 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
2748 versados_vec) tb="$tb versados.lo" ;;
2749
2750 "") ;;
2751 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
2752 esac
2753 done
2754
2755 # Target architecture .o files.
2756 # A couple of CPUs use shorter file names to avoid problems on DOS
2757 # filesystems.
2758 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
2759
2760 # Weed out duplicate .o files.
2761 f=""
2762 for i in $tb ; do
2763 case " $f " in
2764 *" $i "*) ;;
2765 *) f="$f $i" ;;
2766 esac
2767 done
2768 tb="$f"
2769
2770 f=""
2771 for i in $ta ; do
2772 case " $f " in
2773 *" $i "*) ;;
2774 *) f="$f $i" ;;
2775 esac
2776 done
2777 ta="$f"
2778
2779 bfd_backends="$tb"
2780 bfd_machines="$ta"
2781
2782 if test x${all_targets} = xtrue ; then
2783 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
2784 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
2785 selvecs=
2786 havevecs=
2787 selarchs=
2788 else # all_targets is true
2789 # Only set these if they will be nonempty, for the clever echo.
2790 havevecs=
2791 test -n "$selvecs" &&
2792 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
2793 test -n "$selvecs" &&
2794 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
2795 test -n "$selarchs" &&
2796 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
2797 fi # all_targets is true
2798
2799 case ${host64}-${target64}-${want64} in
2800 *true*)
2801 wordsize=64
2802 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
2803 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
2804 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
2805 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
2806 fi
2807 ;;
2808 false-false-false)
2809 wordsize=32
2810 all_backends='$(BFD32_BACKENDS)'
2811 ;;
2812 esac
2813
2814
2815
2816
2817
2818
2819 tdefaults=""
2820 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
2821 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
2822 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
2823 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
2824
2825
2826 for ac_hdr in unistd.h
2827 do
2828 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2829 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2830 echo "configure:2831: checking for $ac_hdr" >&5
2831 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2832 echo $ac_n "(cached) $ac_c" 1>&6
2833 else
2834 cat > conftest.$ac_ext <<EOF
2835 #line 2836 "configure"
2836 #include "confdefs.h"
2837 #include <$ac_hdr>
2838 EOF
2839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2840 { (eval echo configure:2841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2841 ac_err=`grep -v '^ *+' conftest.out`
2842 if test -z "$ac_err"; then
2843 rm -rf conftest*
2844 eval "ac_cv_header_$ac_safe=yes"
2845 else
2846 echo "$ac_err" >&5
2847 echo "configure: failed program was:" >&5
2848 cat conftest.$ac_ext >&5
2849 rm -rf conftest*
2850 eval "ac_cv_header_$ac_safe=no"
2851 fi
2852 rm -f conftest*
2853 fi
2854 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2855 echo "$ac_t""yes" 1>&6
2856 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2857 cat >> confdefs.h <<EOF
2858 #define $ac_tr_hdr 1
2859 EOF
2860
2861 else
2862 echo "$ac_t""no" 1>&6
2863 fi
2864 done
2865
2866 for ac_func in getpagesize
2867 do
2868 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2869 echo "configure:2870: checking for $ac_func" >&5
2870 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2871 echo $ac_n "(cached) $ac_c" 1>&6
2872 else
2873 cat > conftest.$ac_ext <<EOF
2874 #line 2875 "configure"
2875 #include "confdefs.h"
2876 /* System header to define __stub macros and hopefully few prototypes,
2877 which can conflict with char $ac_func(); below. */
2878 #include <assert.h>
2879 /* Override any gcc2 internal prototype to avoid an error. */
2880 /* We use char because int might match the return type of a gcc2
2881 builtin and then its argument prototype would still apply. */
2882 char $ac_func();
2883
2884 int main() {
2885
2886 /* The GNU C library defines this for functions which it implements
2887 to always fail with ENOSYS. Some functions are actually named
2888 something starting with __ and the normal name is an alias. */
2889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2890 choke me
2891 #else
2892 $ac_func();
2893 #endif
2894
2895 ; return 0; }
2896 EOF
2897 if { (eval echo configure:2898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2898 rm -rf conftest*
2899 eval "ac_cv_func_$ac_func=yes"
2900 else
2901 echo "configure: failed program was:" >&5
2902 cat conftest.$ac_ext >&5
2903 rm -rf conftest*
2904 eval "ac_cv_func_$ac_func=no"
2905 fi
2906 rm -f conftest*
2907 fi
2908
2909 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2910 echo "$ac_t""yes" 1>&6
2911 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2912 cat >> confdefs.h <<EOF
2913 #define $ac_tr_func 1
2914 EOF
2915
2916 else
2917 echo "$ac_t""no" 1>&6
2918 fi
2919 done
2920
2921 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2922 echo "configure:2923: checking for working mmap" >&5
2923 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2924 echo $ac_n "(cached) $ac_c" 1>&6
2925 else
2926 if test "$cross_compiling" = yes; then
2927 ac_cv_func_mmap_fixed_mapped=no
2928 else
2929 cat > conftest.$ac_ext <<EOF
2930 #line 2931 "configure"
2931 #include "confdefs.h"
2932
2933 /* Thanks to Mike Haertel and Jim Avera for this test.
2934 Here is a matrix of mmap possibilities:
2935 mmap private not fixed
2936 mmap private fixed at somewhere currently unmapped
2937 mmap private fixed at somewhere already mapped
2938 mmap shared not fixed
2939 mmap shared fixed at somewhere currently unmapped
2940 mmap shared fixed at somewhere already mapped
2941 For private mappings, we should verify that changes cannot be read()
2942 back from the file, nor mmap's back from the file at a different
2943 address. (There have been systems where private was not correctly
2944 implemented like the infamous i386 svr4.0, and systems where the
2945 VM page cache was not coherent with the filesystem buffer cache
2946 like early versions of FreeBSD and possibly contemporary NetBSD.)
2947 For shared mappings, we should conversely verify that changes get
2948 propogated back to all the places they're supposed to be.
2949
2950 Grep wants private fixed already mapped.
2951 The main things grep needs to know about mmap are:
2952 * does it exist and is it safe to write into the mmap'd area
2953 * how to use it (BSD variants) */
2954 #include <sys/types.h>
2955 #include <fcntl.h>
2956 #include <sys/mman.h>
2957
2958 /* This mess was copied from the GNU getpagesize.h. */
2959 #ifndef HAVE_GETPAGESIZE
2960 # ifdef HAVE_UNISTD_H
2961 # include <unistd.h>
2962 # endif
2963
2964 /* Assume that all systems that can run configure have sys/param.h. */
2965 # ifndef HAVE_SYS_PARAM_H
2966 # define HAVE_SYS_PARAM_H 1
2967 # endif
2968
2969 # ifdef _SC_PAGESIZE
2970 # define getpagesize() sysconf(_SC_PAGESIZE)
2971 # else /* no _SC_PAGESIZE */
2972 # ifdef HAVE_SYS_PARAM_H
2973 # include <sys/param.h>
2974 # ifdef EXEC_PAGESIZE
2975 # define getpagesize() EXEC_PAGESIZE
2976 # else /* no EXEC_PAGESIZE */
2977 # ifdef NBPG
2978 # define getpagesize() NBPG * CLSIZE
2979 # ifndef CLSIZE
2980 # define CLSIZE 1
2981 # endif /* no CLSIZE */
2982 # else /* no NBPG */
2983 # ifdef NBPC
2984 # define getpagesize() NBPC
2985 # else /* no NBPC */
2986 # ifdef PAGESIZE
2987 # define getpagesize() PAGESIZE
2988 # endif /* PAGESIZE */
2989 # endif /* no NBPC */
2990 # endif /* no NBPG */
2991 # endif /* no EXEC_PAGESIZE */
2992 # else /* no HAVE_SYS_PARAM_H */
2993 # define getpagesize() 8192 /* punt totally */
2994 # endif /* no HAVE_SYS_PARAM_H */
2995 # endif /* no _SC_PAGESIZE */
2996
2997 #endif /* no HAVE_GETPAGESIZE */
2998
2999 #ifdef __cplusplus
3000 extern "C" { void *malloc(unsigned); }
3001 #else
3002 char *malloc();
3003 #endif
3004
3005 int
3006 main()
3007 {
3008 char *data, *data2, *data3;
3009 int i, pagesize;
3010 int fd;
3011
3012 pagesize = getpagesize();
3013
3014 /*
3015 * First, make a file with some known garbage in it.
3016 */
3017 data = malloc(pagesize);
3018 if (!data)
3019 exit(1);
3020 for (i = 0; i < pagesize; ++i)
3021 *(data + i) = rand();
3022 umask(0);
3023 fd = creat("conftestmmap", 0600);
3024 if (fd < 0)
3025 exit(1);
3026 if (write(fd, data, pagesize) != pagesize)
3027 exit(1);
3028 close(fd);
3029
3030 /*
3031 * Next, try to mmap the file at a fixed address which
3032 * already has something else allocated at it. If we can,
3033 * also make sure that we see the same garbage.
3034 */
3035 fd = open("conftestmmap", O_RDWR);
3036 if (fd < 0)
3037 exit(1);
3038 data2 = malloc(2 * pagesize);
3039 if (!data2)
3040 exit(1);
3041 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3042 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3043 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3044 exit(1);
3045 for (i = 0; i < pagesize; ++i)
3046 if (*(data + i) != *(data2 + i))
3047 exit(1);
3048
3049 /*
3050 * Finally, make sure that changes to the mapped area
3051 * do not percolate back to the file as seen by read().
3052 * (This is a bug on some variants of i386 svr4.0.)
3053 */
3054 for (i = 0; i < pagesize; ++i)
3055 *(data2 + i) = *(data2 + i) + 1;
3056 data3 = malloc(pagesize);
3057 if (!data3)
3058 exit(1);
3059 if (read(fd, data3, pagesize) != pagesize)
3060 exit(1);
3061 for (i = 0; i < pagesize; ++i)
3062 if (*(data + i) != *(data3 + i))
3063 exit(1);
3064 close(fd);
3065 unlink("conftestmmap");
3066 exit(0);
3067 }
3068
3069 EOF
3070 if { (eval echo configure:3071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3071 then
3072 ac_cv_func_mmap_fixed_mapped=yes
3073 else
3074 echo "configure: failed program was:" >&5
3075 cat conftest.$ac_ext >&5
3076 rm -fr conftest*
3077 ac_cv_func_mmap_fixed_mapped=no
3078 fi
3079 rm -fr conftest*
3080 fi
3081
3082 fi
3083
3084 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3085 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3086 cat >> confdefs.h <<\EOF
3087 #define HAVE_MMAP 1
3088 EOF
3089
3090 fi
3091
3092 for ac_func in madvise mprotect
3093 do
3094 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3095 echo "configure:3096: checking for $ac_func" >&5
3096 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3097 echo $ac_n "(cached) $ac_c" 1>&6
3098 else
3099 cat > conftest.$ac_ext <<EOF
3100 #line 3101 "configure"
3101 #include "confdefs.h"
3102 /* System header to define __stub macros and hopefully few prototypes,
3103 which can conflict with char $ac_func(); below. */
3104 #include <assert.h>
3105 /* Override any gcc2 internal prototype to avoid an error. */
3106 /* We use char because int might match the return type of a gcc2
3107 builtin and then its argument prototype would still apply. */
3108 char $ac_func();
3109
3110 int main() {
3111
3112 /* The GNU C library defines this for functions which it implements
3113 to always fail with ENOSYS. Some functions are actually named
3114 something starting with __ and the normal name is an alias. */
3115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3116 choke me
3117 #else
3118 $ac_func();
3119 #endif
3120
3121 ; return 0; }
3122 EOF
3123 if { (eval echo configure:3124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3124 rm -rf conftest*
3125 eval "ac_cv_func_$ac_func=yes"
3126 else
3127 echo "configure: failed program was:" >&5
3128 cat conftest.$ac_ext >&5
3129 rm -rf conftest*
3130 eval "ac_cv_func_$ac_func=no"
3131 fi
3132 rm -f conftest*
3133 fi
3134
3135 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3136 echo "$ac_t""yes" 1>&6
3137 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3138 cat >> confdefs.h <<EOF
3139 #define $ac_tr_func 1
3140 EOF
3141
3142 else
3143 echo "$ac_t""no" 1>&6
3144 fi
3145 done
3146
3147 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
3148 true+yes ) cat >> confdefs.h <<\EOF
3149 #define USE_MMAP 1
3150 EOF
3151 ;;
3152 esac
3153
3154 rm -f doc/config.status
3155 trap '' 1 2 15
3156 cat > confcache <<\EOF
3157 # This file is a shell script that caches the results of configure
3158 # tests run on this system so they can be shared between configure
3159 # scripts and configure runs. It is not useful on other systems.
3160 # If it contains results you don't want to keep, you may remove or edit it.
3161 #
3162 # By default, configure uses ./config.cache as the cache file,
3163 # creating it if it does not exist already. You can give configure
3164 # the --cache-file=FILE option to use a different cache file; that is
3165 # what configure does when it calls configure scripts in
3166 # subdirectories, so they share the cache.
3167 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3168 # config.status only pays attention to the cache file if you give it the
3169 # --recheck option to rerun configure.
3170 #
3171 EOF
3172 # The following way of writing the cache mishandles newlines in values,
3173 # but we know of no workaround that is simple, portable, and efficient.
3174 # So, don't put newlines in cache variables' values.
3175 # Ultrix sh set writes to stderr and can't be redirected directly,
3176 # and sets the high bit in the cache file unless we assign to the vars.
3177 (set) 2>&1 |
3178 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
3179 *ac_space=\ *)
3180 # `set' does not quote correctly, so add quotes (double-quote substitution
3181 # turns \\\\ into \\, and sed turns \\ into \).
3182 sed -n \
3183 -e "s/'/'\\\\''/g" \
3184 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3185 ;;
3186 *)
3187 # `set' quotes correctly as required by POSIX, so do not add quotes.
3188 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3189 ;;
3190 esac >> confcache
3191 if cmp -s $cache_file confcache; then
3192 :
3193 else
3194 if test -w $cache_file; then
3195 echo "updating cache $cache_file"
3196 cat confcache > $cache_file
3197 else
3198 echo "not updating unwritable cache $cache_file"
3199 fi
3200 fi
3201 rm -f confcache
3202
3203 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3204
3205 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3206 # Let make expand exec_prefix.
3207 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3208
3209 # Any assignment to VPATH causes Sun make to only execute
3210 # the first set of double-colon rules, so remove it if not needed.
3211 # If there is a colon in the path, we need to keep it.
3212 if test "x$srcdir" = x.; then
3213 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3214 fi
3215
3216 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3217
3218 DEFS=-DHAVE_CONFIG_H
3219
3220 # Without the "./", some shells look in PATH for config.status.
3221 : ${CONFIG_STATUS=./config.status}
3222
3223 echo creating $CONFIG_STATUS
3224 rm -f $CONFIG_STATUS
3225 cat > $CONFIG_STATUS <<EOF
3226 #! /bin/sh
3227 # Generated automatically by configure.
3228 # Run this file to recreate the current configuration.
3229 # This directory was configured as follows,
3230 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3231 #
3232 # $0 $ac_configure_args
3233 #
3234 # Compiler output produced by configure, useful for debugging
3235 # configure, is in ./config.log if it exists.
3236
3237 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3238 for ac_option
3239 do
3240 case "\$ac_option" in
3241 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3242 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3243 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3244 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3245 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
3246 exit 0 ;;
3247 -help | --help | --hel | --he | --h)
3248 echo "\$ac_cs_usage"; exit 0 ;;
3249 *) echo "\$ac_cs_usage"; exit 1 ;;
3250 esac
3251 done
3252
3253 ac_given_srcdir=$srcdir
3254 ac_given_INSTALL="$INSTALL"
3255
3256 trap 'rm -fr `echo "Makefile doc/Makefile bfd-in3.h:bfd-in2.h config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3257 EOF
3258 cat >> $CONFIG_STATUS <<EOF
3259
3260 # Protect against being on the right side of a sed subst in config.status.
3261 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3262 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3263 $ac_vpsub
3264 $extrasub
3265 s%@SHELL@%$SHELL%g
3266 s%@CFLAGS@%$CFLAGS%g
3267 s%@CPPFLAGS@%$CPPFLAGS%g
3268 s%@CXXFLAGS@%$CXXFLAGS%g
3269 s%@DEFS@%$DEFS%g
3270 s%@LDFLAGS@%$LDFLAGS%g
3271 s%@LIBS@%$LIBS%g
3272 s%@exec_prefix@%$exec_prefix%g
3273 s%@prefix@%$prefix%g
3274 s%@program_transform_name@%$program_transform_name%g
3275 s%@bindir@%$bindir%g
3276 s%@sbindir@%$sbindir%g
3277 s%@libexecdir@%$libexecdir%g
3278 s%@datadir@%$datadir%g
3279 s%@sysconfdir@%$sysconfdir%g
3280 s%@sharedstatedir@%$sharedstatedir%g
3281 s%@localstatedir@%$localstatedir%g
3282 s%@libdir@%$libdir%g
3283 s%@includedir@%$includedir%g
3284 s%@oldincludedir@%$oldincludedir%g
3285 s%@infodir@%$infodir%g
3286 s%@mandir@%$mandir%g
3287 s%@host@%$host%g
3288 s%@host_alias@%$host_alias%g
3289 s%@host_cpu@%$host_cpu%g
3290 s%@host_vendor@%$host_vendor%g
3291 s%@host_os@%$host_os%g
3292 s%@target@%$target%g
3293 s%@target_alias@%$target_alias%g
3294 s%@target_cpu@%$target_cpu%g
3295 s%@target_vendor@%$target_vendor%g
3296 s%@target_os@%$target_os%g
3297 s%@build@%$build%g
3298 s%@build_alias@%$build_alias%g
3299 s%@build_cpu@%$build_cpu%g
3300 s%@build_vendor@%$build_vendor%g
3301 s%@build_os@%$build_os%g
3302 s%@CC@%$CC%g
3303 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3304 s%@INSTALL_DATA@%$INSTALL_DATA%g
3305 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3306 s%@PACKAGE@%$PACKAGE%g
3307 s%@VERSION@%$VERSION%g
3308 s%@ACLOCAL@%$ACLOCAL%g
3309 s%@AUTOCONF@%$AUTOCONF%g
3310 s%@AUTOMAKE@%$AUTOMAKE%g
3311 s%@AUTOHEADER@%$AUTOHEADER%g
3312 s%@MAKEINFO@%$MAKEINFO%g
3313 s%@SET_MAKE@%$SET_MAKE%g
3314 s%@AR@%$AR%g
3315 s%@RANLIB@%$RANLIB%g
3316 s%@LD@%$LD%g
3317 s%@LN_S@%$LN_S%g
3318 s%@LIBTOOL@%$LIBTOOL%g
3319 s%@MAINT@%$MAINT%g
3320 s%@EXEEXT@%$EXEEXT%g
3321 s%@HDEFINES@%$HDEFINES%g
3322 s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
3323 s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
3324 s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
3325 s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
3326 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
3327 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
3328 s%@CPP@%$CPP%g
3329 s%@COREFILE@%$COREFILE%g
3330 s%@COREFLAG@%$COREFLAG%g
3331 s%@TDEFINES@%$TDEFINES%g
3332 s%@wordsize@%$wordsize%g
3333 s%@all_backends@%$all_backends%g
3334 s%@bfd_backends@%$bfd_backends%g
3335 s%@bfd_machines@%$bfd_machines%g
3336 s%@tdefaults@%$tdefaults%g
3337
3338 CEOF
3339 EOF
3340
3341 cat >> $CONFIG_STATUS <<\EOF
3342
3343 # Split the substitutions into bite-sized pieces for seds with
3344 # small command number limits, like on Digital OSF/1 and HP-UX.
3345 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3346 ac_file=1 # Number of current file.
3347 ac_beg=1 # First line for current file.
3348 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3349 ac_more_lines=:
3350 ac_sed_cmds=""
3351 while $ac_more_lines; do
3352 if test $ac_beg -gt 1; then
3353 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3354 else
3355 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3356 fi
3357 if test ! -s conftest.s$ac_file; then
3358 ac_more_lines=false
3359 rm -f conftest.s$ac_file
3360 else
3361 if test -z "$ac_sed_cmds"; then
3362 ac_sed_cmds="sed -f conftest.s$ac_file"
3363 else
3364 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3365 fi
3366 ac_file=`expr $ac_file + 1`
3367 ac_beg=$ac_end
3368 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3369 fi
3370 done
3371 if test -z "$ac_sed_cmds"; then
3372 ac_sed_cmds=cat
3373 fi
3374 EOF
3375
3376 cat >> $CONFIG_STATUS <<EOF
3377
3378 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h"}
3379 EOF
3380 cat >> $CONFIG_STATUS <<\EOF
3381 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3382 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3383 case "$ac_file" in
3384 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3385 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3386 *) ac_file_in="${ac_file}.in" ;;
3387 esac
3388
3389 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3390
3391 # Remove last slash and all that follows it. Not all systems have dirname.
3392 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3393 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3394 # The file is in a subdirectory.
3395 test ! -d "$ac_dir" && mkdir "$ac_dir"
3396 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3397 # A "../" for each directory in $ac_dir_suffix.
3398 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3399 else
3400 ac_dir_suffix= ac_dots=
3401 fi
3402
3403 case "$ac_given_srcdir" in
3404 .) srcdir=.
3405 if test -z "$ac_dots"; then top_srcdir=.
3406 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3407 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3408 *) # Relative path.
3409 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3410 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3411 esac
3412
3413 case "$ac_given_INSTALL" in
3414 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3415 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3416 esac
3417
3418 echo creating "$ac_file"
3419 rm -f "$ac_file"
3420 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3421 case "$ac_file" in
3422 *Makefile*) ac_comsub="1i\\
3423 # $configure_input" ;;
3424 *) ac_comsub= ;;
3425 esac
3426
3427 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3428 sed -e "$ac_comsub
3429 s%@configure_input@%$configure_input%g
3430 s%@srcdir@%$srcdir%g
3431 s%@top_srcdir@%$top_srcdir%g
3432 s%@INSTALL@%$INSTALL%g
3433 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3434 fi; done
3435 rm -f conftest.s*
3436
3437 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3438 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3439 #
3440 # ac_d sets the value in "#define NAME VALUE" lines.
3441 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3442 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3443 ac_dC='\3'
3444 ac_dD='%g'
3445 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3446 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3447 ac_uB='\([ ]\)%\1#\2define\3'
3448 ac_uC=' '
3449 ac_uD='\4%g'
3450 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3451 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3452 ac_eB='$%\1#\2define\3'
3453 ac_eC=' '
3454 ac_eD='%g'
3455
3456 if test "${CONFIG_HEADERS+set}" != set; then
3457 EOF
3458 cat >> $CONFIG_STATUS <<EOF
3459 CONFIG_HEADERS="config.h:config.in"
3460 EOF
3461 cat >> $CONFIG_STATUS <<\EOF
3462 fi
3463 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3464 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3465 case "$ac_file" in
3466 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3467 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3468 *) ac_file_in="${ac_file}.in" ;;
3469 esac
3470
3471 echo creating $ac_file
3472
3473 rm -f conftest.frag conftest.in conftest.out
3474 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3475 cat $ac_file_inputs > conftest.in
3476
3477 EOF
3478
3479 # Transform confdefs.h into a sed script conftest.vals that substitutes
3480 # the proper values into config.h.in to produce config.h. And first:
3481 # Protect against being on the right side of a sed subst in config.status.
3482 # Protect against being in an unquoted here document in config.status.
3483 rm -f conftest.vals
3484 cat > conftest.hdr <<\EOF
3485 s/[\\&%]/\\&/g
3486 s%[\\$`]%\\&%g
3487 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3488 s%ac_d%ac_u%gp
3489 s%ac_u%ac_e%gp
3490 EOF
3491 sed -n -f conftest.hdr confdefs.h > conftest.vals
3492 rm -f conftest.hdr
3493
3494 # This sed command replaces #undef with comments. This is necessary, for
3495 # example, in the case of _POSIX_SOURCE, which is predefined and required
3496 # on some systems where configure will not decide to define it.
3497 cat >> conftest.vals <<\EOF
3498 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3499 EOF
3500
3501 # Break up conftest.vals because some shells have a limit on
3502 # the size of here documents, and old seds have small limits too.
3503
3504 rm -f conftest.tail
3505 while :
3506 do
3507 ac_lines=`grep -c . conftest.vals`
3508 # grep -c gives empty output for an empty file on some AIX systems.
3509 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3510 # Write a limited-size here document to conftest.frag.
3511 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3512 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3513 echo 'CEOF
3514 sed -f conftest.frag conftest.in > conftest.out
3515 rm -f conftest.in
3516 mv conftest.out conftest.in
3517 ' >> $CONFIG_STATUS
3518 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3519 rm -f conftest.vals
3520 mv conftest.tail conftest.vals
3521 done
3522 rm -f conftest.vals
3523
3524 cat >> $CONFIG_STATUS <<\EOF
3525 rm -f conftest.frag conftest.h
3526 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3527 cat conftest.in >> conftest.h
3528 rm -f conftest.in
3529 if cmp -s $ac_file conftest.h 2>/dev/null; then
3530 echo "$ac_file is unchanged"
3531 rm -f conftest.h
3532 else
3533 # Remove last slash and all that follows it. Not all systems have dirname.
3534 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3535 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3536 # The file is in a subdirectory.
3537 test ! -d "$ac_dir" && mkdir "$ac_dir"
3538 fi
3539 rm -f $ac_file
3540 mv conftest.h $ac_file
3541 fi
3542 fi; done
3543
3544 EOF
3545 cat >> $CONFIG_STATUS <<EOF
3546
3547
3548 EOF
3549 cat >> $CONFIG_STATUS <<\EOF
3550 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3551
3552 exit 0
3553 EOF
3554 chmod +x $CONFIG_STATUS
3555 rm -fr confdefs* $ac_clean_files
3556 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3557
This page took 0.113783 seconds and 4 git commands to generate.