fc1e3d4769632552cbb81237b174fe024073c2f3
[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.10
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 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
16 ac_help="$ac_help
17 --enable-targets alternative target configurations"
18 ac_help="$ac_help
19 --enable-shared build shared BFD library"
20 ac_help="$ac_help
21 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
22 ac_help="$ac_help
23 --with-mmap try using mmap for BFD input files if available"
24
25 # Initialize some variables set by options.
26 # The variables have the same names as the options, with
27 # dashes changed to underlines.
28 build=NONE
29 cache_file=./config.cache
30 exec_prefix=NONE
31 host=NONE
32 no_create=
33 nonopt=NONE
34 no_recursion=
35 prefix=NONE
36 program_prefix=NONE
37 program_suffix=NONE
38 program_transform_name=s,x,x,
39 silent=
40 site=
41 srcdir=
42 target=NONE
43 verbose=
44 x_includes=NONE
45 x_libraries=NONE
46 bindir='${exec_prefix}/bin'
47 sbindir='${exec_prefix}/sbin'
48 libexecdir='${exec_prefix}/libexec'
49 datadir='${prefix}/share'
50 sysconfdir='${prefix}/etc'
51 sharedstatedir='${prefix}/com'
52 localstatedir='${prefix}/var'
53 libdir='${exec_prefix}/lib'
54 includedir='${prefix}/include'
55 oldincludedir='/usr/include'
56 infodir='${prefix}/info'
57 mandir='${prefix}/man'
58
59 # Initialize some other variables.
60 subdirs=
61 MFLAGS= MAKEFLAGS=
62
63 ac_prev=
64 for ac_option
65 do
66
67 # If the previous option needs an argument, assign it.
68 if test -n "$ac_prev"; then
69 eval "$ac_prev=\$ac_option"
70 ac_prev=
71 continue
72 fi
73
74 case "$ac_option" in
75 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
76 *) ac_optarg= ;;
77 esac
78
79 # Accept the important Cygnus configure options, so we can diagnose typos.
80
81 case "$ac_option" in
82
83 -bindir | --bindir | --bindi | --bind | --bin | --bi)
84 ac_prev=bindir ;;
85 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
86 bindir="$ac_optarg" ;;
87
88 -build | --build | --buil | --bui | --bu)
89 ac_prev=build ;;
90 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
91 build="$ac_optarg" ;;
92
93 -cache-file | --cache-file | --cache-fil | --cache-fi \
94 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
95 ac_prev=cache_file ;;
96 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
97 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
98 cache_file="$ac_optarg" ;;
99
100 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
101 ac_prev=datadir ;;
102 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
103 | --da=*)
104 datadir="$ac_optarg" ;;
105
106 -disable-* | --disable-*)
107 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
108 # Reject names that are not valid shell variable names.
109 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
110 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
111 fi
112 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
113 eval "enable_${ac_feature}=no" ;;
114
115 -enable-* | --enable-*)
116 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 fi
121 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
122 case "$ac_option" in
123 *=*) ;;
124 *) ac_optarg=yes ;;
125 esac
126 eval "enable_${ac_feature}='$ac_optarg'" ;;
127
128 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
129 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
130 | --exec | --exe | --ex)
131 ac_prev=exec_prefix ;;
132 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
133 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
134 | --exec=* | --exe=* | --ex=*)
135 exec_prefix="$ac_optarg" ;;
136
137 -gas | --gas | --ga | --g)
138 # Obsolete; use --with-gas.
139 with_gas=yes ;;
140
141 -help | --help | --hel | --he)
142 # Omit some internal or obsolete options to make the list less imposing.
143 # This message is too long to be a string in the A/UX 3.1 sh.
144 cat << EOF
145 Usage: configure [options] [host]
146 Options: [defaults in brackets after descriptions]
147 Configuration:
148 --cache-file=FILE cache test results in FILE
149 --help print this message
150 --no-create do not create output files
151 --quiet, --silent do not print \`checking...' messages
152 --version print the version of autoconf that created configure
153 Directory and file names:
154 --prefix=PREFIX install architecture-independent files in PREFIX
155 [$ac_default_prefix]
156 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
157 [same as prefix]
158 --bindir=DIR user executables in DIR [EPREFIX/bin]
159 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
160 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
161 --datadir=DIR read-only architecture-independent data in DIR
162 [PREFIX/share]
163 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
164 --sharedstatedir=DIR modifiable architecture-independent data in DIR
165 [PREFIX/com]
166 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
167 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
168 --includedir=DIR C header files in DIR [PREFIX/include]
169 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
170 --infodir=DIR info documentation in DIR [PREFIX/info]
171 --mandir=DIR man documentation in DIR [PREFIX/man]
172 --srcdir=DIR find the sources in DIR [configure dir or ..]
173 --program-prefix=PREFIX prepend PREFIX to installed program names
174 --program-suffix=SUFFIX append SUFFIX to installed program names
175 --program-transform-name=PROGRAM
176 run sed PROGRAM on installed program names
177 EOF
178 cat << EOF
179 Host type:
180 --build=BUILD configure for building on BUILD [BUILD=HOST]
181 --host=HOST configure for HOST [guessed]
182 --target=TARGET configure for TARGET [TARGET=HOST]
183 Features and packages:
184 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
185 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
186 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
187 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
188 --x-includes=DIR X include files are in DIR
189 --x-libraries=DIR X library files are in DIR
190 EOF
191 if test -n "$ac_help"; then
192 echo "--enable and --with options recognized:$ac_help"
193 fi
194 exit 0 ;;
195
196 -host | --host | --hos | --ho)
197 ac_prev=host ;;
198 -host=* | --host=* | --hos=* | --ho=*)
199 host="$ac_optarg" ;;
200
201 -includedir | --includedir | --includedi | --included | --include \
202 | --includ | --inclu | --incl | --inc)
203 ac_prev=includedir ;;
204 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
205 | --includ=* | --inclu=* | --incl=* | --inc=*)
206 includedir="$ac_optarg" ;;
207
208 -infodir | --infodir | --infodi | --infod | --info | --inf)
209 ac_prev=infodir ;;
210 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
211 infodir="$ac_optarg" ;;
212
213 -libdir | --libdir | --libdi | --libd)
214 ac_prev=libdir ;;
215 -libdir=* | --libdir=* | --libdi=* | --libd=*)
216 libdir="$ac_optarg" ;;
217
218 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
219 | --libexe | --libex | --libe)
220 ac_prev=libexecdir ;;
221 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
222 | --libexe=* | --libex=* | --libe=*)
223 libexecdir="$ac_optarg" ;;
224
225 -localstatedir | --localstatedir | --localstatedi | --localstated \
226 | --localstate | --localstat | --localsta | --localst \
227 | --locals | --local | --loca | --loc | --lo)
228 ac_prev=localstatedir ;;
229 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
230 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
231 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
232 localstatedir="$ac_optarg" ;;
233
234 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
235 ac_prev=mandir ;;
236 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
237 mandir="$ac_optarg" ;;
238
239 -nfp | --nfp | --nf)
240 # Obsolete; use --without-fp.
241 with_fp=no ;;
242
243 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
244 | --no-cr | --no-c)
245 no_create=yes ;;
246
247 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
248 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
249 no_recursion=yes ;;
250
251 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
252 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
253 | --oldin | --oldi | --old | --ol | --o)
254 ac_prev=oldincludedir ;;
255 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
256 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
257 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
258 oldincludedir="$ac_optarg" ;;
259
260 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
261 ac_prev=prefix ;;
262 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
263 prefix="$ac_optarg" ;;
264
265 -program-prefix | --program-prefix | --program-prefi | --program-pref \
266 | --program-pre | --program-pr | --program-p)
267 ac_prev=program_prefix ;;
268 -program-prefix=* | --program-prefix=* | --program-prefi=* \
269 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
270 program_prefix="$ac_optarg" ;;
271
272 -program-suffix | --program-suffix | --program-suffi | --program-suff \
273 | --program-suf | --program-su | --program-s)
274 ac_prev=program_suffix ;;
275 -program-suffix=* | --program-suffix=* | --program-suffi=* \
276 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
277 program_suffix="$ac_optarg" ;;
278
279 -program-transform-name | --program-transform-name \
280 | --program-transform-nam | --program-transform-na \
281 | --program-transform-n | --program-transform- \
282 | --program-transform | --program-transfor \
283 | --program-transfo | --program-transf \
284 | --program-trans | --program-tran \
285 | --progr-tra | --program-tr | --program-t)
286 ac_prev=program_transform_name ;;
287 -program-transform-name=* | --program-transform-name=* \
288 | --program-transform-nam=* | --program-transform-na=* \
289 | --program-transform-n=* | --program-transform-=* \
290 | --program-transform=* | --program-transfor=* \
291 | --program-transfo=* | --program-transf=* \
292 | --program-trans=* | --program-tran=* \
293 | --progr-tra=* | --program-tr=* | --program-t=*)
294 program_transform_name="$ac_optarg" ;;
295
296 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
297 | -silent | --silent | --silen | --sile | --sil)
298 silent=yes ;;
299
300 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
301 ac_prev=sbindir ;;
302 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
303 | --sbi=* | --sb=*)
304 sbindir="$ac_optarg" ;;
305
306 -sharedstatedir | --sharedstatedir | --sharedstatedi \
307 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
308 | --sharedst | --shareds | --shared | --share | --shar \
309 | --sha | --sh)
310 ac_prev=sharedstatedir ;;
311 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
312 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
313 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
314 | --sha=* | --sh=*)
315 sharedstatedir="$ac_optarg" ;;
316
317 -site | --site | --sit)
318 ac_prev=site ;;
319 -site=* | --site=* | --sit=*)
320 site="$ac_optarg" ;;
321
322 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
323 ac_prev=srcdir ;;
324 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
325 srcdir="$ac_optarg" ;;
326
327 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
328 | --syscon | --sysco | --sysc | --sys | --sy)
329 ac_prev=sysconfdir ;;
330 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
331 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
332 sysconfdir="$ac_optarg" ;;
333
334 -target | --target | --targe | --targ | --tar | --ta | --t)
335 ac_prev=target ;;
336 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
337 target="$ac_optarg" ;;
338
339 -v | -verbose | --verbose | --verbos | --verbo | --verb)
340 verbose=yes ;;
341
342 -version | --version | --versio | --versi | --vers)
343 echo "configure generated by autoconf version 2.10"
344 exit 0 ;;
345
346 -with-* | --with-*)
347 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
348 # Reject names that are not valid shell variable names.
349 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
350 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
351 fi
352 ac_package=`echo $ac_package| sed 's/-/_/g'`
353 case "$ac_option" in
354 *=*) ;;
355 *) ac_optarg=yes ;;
356 esac
357 eval "with_${ac_package}='$ac_optarg'" ;;
358
359 -without-* | --without-*)
360 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 fi
365 ac_package=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}=no" ;;
367
368 --x)
369 # Obsolete; use --with-x.
370 with_x=yes ;;
371
372 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
373 | --x-incl | --x-inc | --x-in | --x-i)
374 ac_prev=x_includes ;;
375 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
376 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
377 x_includes="$ac_optarg" ;;
378
379 -x-libraries | --x-libraries | --x-librarie | --x-librari \
380 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
381 ac_prev=x_libraries ;;
382 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
383 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
384 x_libraries="$ac_optarg" ;;
385
386 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
387 ;;
388
389 *)
390 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
391 echo "configure: warning: $ac_option: invalid host type" 1>&2
392 fi
393 if test "x$nonopt" != xNONE; then
394 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
395 fi
396 nonopt="$ac_option"
397 ;;
398
399 esac
400 done
401
402 if test -n "$ac_prev"; then
403 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
404 fi
405
406 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
407
408 # File descriptor usage:
409 # 0 standard input
410 # 1 file creation
411 # 2 errors and warnings
412 # 3 some systems may open it to /dev/tty
413 # 4 used on the Kubota Titan
414 # 6 checking for... messages and results
415 # 5 compiler messages saved in config.log
416 if test "$silent" = yes; then
417 exec 6>/dev/null
418 else
419 exec 6>&1
420 fi
421 exec 5>./config.log
422
423 echo "\
424 This file contains any messages produced by compilers while
425 running configure, to aid debugging if configure makes a mistake.
426 " 1>&5
427
428 # Strip out --no-create and --no-recursion so they do not pile up.
429 # Also quote any args containing shell metacharacters.
430 ac_configure_args=
431 for ac_arg
432 do
433 case "$ac_arg" in
434 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
435 | --no-cr | --no-c) ;;
436 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
437 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
438 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
439 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
440 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
441 esac
442 done
443
444 # NLS nuisances.
445 # Only set LANG and LC_ALL to C if already set.
446 # These must not be set unconditionally because not all systems understand
447 # e.g. LANG=C (notably SCO).
448 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
449 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
450
451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
452 rm -rf conftest* confdefs.h
453 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
454 echo > confdefs.h
455
456 # A filename unique to this package, relative to the directory that
457 # configure is in, which we can look for to find out if srcdir is correct.
458 ac_unique_file=libbfd.c
459
460 # Find the source files, if location was not specified.
461 if test -z "$srcdir"; then
462 ac_srcdir_defaulted=yes
463 # Try the directory containing this script, then its parent.
464 ac_prog=$0
465 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
466 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
467 srcdir=$ac_confdir
468 if test ! -r $srcdir/$ac_unique_file; then
469 srcdir=..
470 fi
471 else
472 ac_srcdir_defaulted=no
473 fi
474 if test ! -r $srcdir/$ac_unique_file; then
475 if test "$ac_srcdir_defaulted" = yes; then
476 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
477 else
478 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
479 fi
480 fi
481 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
482
483 # Prefer explicitly selected file to automatically selected ones.
484 if test -z "$CONFIG_SITE"; then
485 if test "x$prefix" != xNONE; then
486 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
487 else
488 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
489 fi
490 fi
491 for ac_site_file in $CONFIG_SITE; do
492 if test -r "$ac_site_file"; then
493 echo "loading site script $ac_site_file"
494 . "$ac_site_file"
495 fi
496 done
497
498 if test -r "$cache_file"; then
499 echo "loading cache $cache_file"
500 . $cache_file
501 else
502 echo "creating cache $cache_file"
503 > $cache_file
504 fi
505
506 ac_ext=c
507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
508 ac_cpp='$CPP $CPPFLAGS'
509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
510 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
511
512 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
513 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
514 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
515 ac_n= ac_c='
516 ' ac_t=' '
517 else
518 ac_n=-n ac_c= ac_t=
519 fi
520 else
521 ac_n= ac_c='\c' ac_t=
522 fi
523
524
525
526 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
527 if test "${enable_64_bit_bfd+set}" = set; then
528 enableval="$enable_64_bit_bfd"
529 case "${enableval}" in
530 yes) want64=true ;;
531 no) want64=false ;;
532 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
533 esac
534 else
535 want64=false
536 fi
537 # Check whether --enable-targets or --disable-targets was given.
538 if test "${enable_targets+set}" = set; then
539 enableval="$enable_targets"
540 case "${enableval}" in
541 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
542 ;;
543 no) enable_targets= ;;
544 *) enable_targets=$enableval ;;
545 esac
546 fi
547 # Check whether --enable-shared or --disable-shared was given.
548 if test "${enable_shared+set}" = set; then
549 enableval="$enable_shared"
550 case "${enableval}" in
551 yes) shared=true ;;
552 no) shared=false ;;
553 *bfd*) shared=true ;;
554 *) shared=false ;;
555 esac
556 fi
557 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
558 if test "${enable_commonbfdlib+set}" = set; then
559 enableval="$enable_commonbfdlib"
560 case "${enableval}" in
561 yes) commonbfdlib=true ;;
562 no) commonbfdlib=false ;;
563 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
564 esac
565 fi
566 # Check whether --with-mmap or --without-mmap was given.
567 if test "${with_mmap+set}" = set; then
568 withval="$with_mmap"
569 case "${withval}" in
570 yes) want_mmap=true ;;
571 no) want_mmap=false ;;
572 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
573 esac
574 else
575 want_mmap=false
576 fi
577
578
579
580 ac_aux_dir=
581 for ac_dir in `cd $srcdir/..;pwd` $srcdir/`cd $srcdir/..;pwd`; do
582 if test -f $ac_dir/install-sh; then
583 ac_aux_dir=$ac_dir
584 ac_install_sh="$ac_aux_dir/install-sh -c"
585 break
586 elif test -f $ac_dir/install.sh; then
587 ac_aux_dir=$ac_dir
588 ac_install_sh="$ac_aux_dir/install.sh -c"
589 break
590 fi
591 done
592 if test -z "$ac_aux_dir"; then
593 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir/..;pwd` $srcdir/`cd $srcdir/..;pwd`" 1>&2; exit 1; }
594 fi
595 ac_config_guess=$ac_aux_dir/config.guess
596 ac_config_sub=$ac_aux_dir/config.sub
597 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
598
599
600 # Do some error checking and defaulting for the host and target type.
601 # The inputs are:
602 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
603 #
604 # The rules are:
605 # 1. You are not allowed to specify --host, --target, and nonopt at the
606 # same time.
607 # 2. Host defaults to nonopt.
608 # 3. If nonopt is not specified, then host defaults to the current host,
609 # as determined by config.guess.
610 # 4. Target and build default to nonopt.
611 # 5. If nonopt is not specified, then target and build default to host.
612
613 # The aliases save the names the user supplied, while $host etc.
614 # will get canonicalized.
615 case $host---$target---$nonopt in
616 NONE---*---* | *---NONE---* | *---*---NONE) ;;
617 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
618 esac
619
620
621 # Make sure we can run config.sub.
622 if $ac_config_sub sun4 >/dev/null 2>&1; then :
623 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
624 fi
625
626 echo $ac_n "checking host system type""... $ac_c" 1>&6
627
628 host_alias=$host
629 case "$host_alias" in
630 NONE)
631 case $nonopt in
632 NONE)
633 if host_alias=`$ac_config_guess`; then :
634 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
635 fi ;;
636 *) host_alias=$nonopt ;;
637 esac ;;
638 esac
639
640 host=`$ac_config_sub $host_alias`
641 host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
642 host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
643 host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
644 echo "$ac_t""$host" 1>&6
645
646 echo $ac_n "checking target system type""... $ac_c" 1>&6
647
648 target_alias=$target
649 case "$target_alias" in
650 NONE)
651 case $nonopt in
652 NONE) target_alias=$host_alias ;;
653 *) target_alias=$nonopt ;;
654 esac ;;
655 esac
656
657 target=`$ac_config_sub $target_alias`
658 target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
659 target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
660 target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
661 echo "$ac_t""$target" 1>&6
662
663 echo $ac_n "checking build system type""... $ac_c" 1>&6
664
665 build_alias=$build
666 case "$build_alias" in
667 NONE)
668 case $nonopt in
669 NONE) build_alias=$host_alias ;;
670 *) build_alias=$nonopt ;;
671 esac ;;
672 esac
673
674 build=`$ac_config_sub $build_alias`
675 build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
676 build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
677 build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
678 echo "$ac_t""$build" 1>&6
679
680 test "$host_alias" != "$target_alias" &&
681 test "$program_prefix$program_suffix$program_transform_name" = \
682 NONENONEs,x,x, &&
683 program_prefix=${target_alias}-
684
685 if test -z "$target" ; then
686 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
687 fi
688 if test "$program_transform_name" = s,x,x,; then
689 program_transform_name=
690 else
691 # Double any \ or $. echo might interpret backslashes.
692 cat <<\EOF_SED > conftestsed
693 s,\\,\\\\,g; s,\$,$$,g
694 EOF_SED
695 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
696 rm -f conftestsed
697 fi
698 test "$program_prefix" != NONE &&
699 program_transform_name="s,^,${program_prefix},; $program_transform_name"
700 # Use a double $ so make ignores it.
701 test "$program_suffix" != NONE &&
702 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
703
704 # sed with no file args requires a program.
705 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
706
707
708 host64=false
709 target64=false
710
711 # host stuff:
712
713 ALLLIBS='$(TARGETLIB)'
714 PICFLAG=
715 SHLIB=unused-shlib
716 SHLINK=unused-shlink
717 if test "${shared}" = "true"; then
718 PICFLAG=-fpic
719 if test "${commonbfdlib}" = "true"; then
720 ALLLIBS='$(TARGETLIB)'
721 else
722 ALLLIBS='$(TARGETLIB) $(SHLIB) $(SHLINK)'
723 SHLIB=libbfd.so.`sed -e 's/[^0-9]*\([0-9.]*\).*/\1/' ${srcdir}/VERSION`
724 SHLINK=libbfd.so
725 fi
726 fi
727
728 # Extract the first word of "gcc", so it can be a program name with args.
729 set dummy gcc; ac_word=$2
730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
731 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
732 echo $ac_n "(cached) $ac_c" 1>&6
733 else
734 if test -n "$CC"; then
735 ac_cv_prog_CC="$CC" # Let the user override the test.
736 else
737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
738 for ac_dir in $PATH; do
739 test -z "$ac_dir" && ac_dir=.
740 if test -f $ac_dir/$ac_word; then
741 ac_cv_prog_CC="gcc"
742 break
743 fi
744 done
745 IFS="$ac_save_ifs"
746 fi
747 fi
748 CC="$ac_cv_prog_CC"
749 if test -n "$CC"; then
750 echo "$ac_t""$CC" 1>&6
751 else
752 echo "$ac_t""no" 1>&6
753 fi
754
755 if test -z "$CC"; then
756 # Extract the first word of "cc", so it can be a program name with args.
757 set dummy cc; ac_word=$2
758 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
759 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
760 echo $ac_n "(cached) $ac_c" 1>&6
761 else
762 if test -n "$CC"; then
763 ac_cv_prog_CC="$CC" # Let the user override the test.
764 else
765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
766 ac_prog_rejected=no
767 for ac_dir in $PATH; do
768 test -z "$ac_dir" && ac_dir=.
769 if test -f $ac_dir/$ac_word; then
770 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
771 ac_prog_rejected=yes
772 continue
773 fi
774 ac_cv_prog_CC="cc"
775 break
776 fi
777 done
778 IFS="$ac_save_ifs"
779 if test $ac_prog_rejected = yes; then
780 # We found a bogon in the path, so make sure we never use it.
781 set dummy $ac_cv_prog_CC
782 shift
783 if test $# -gt 0; then
784 # We chose a different compiler from the bogus one.
785 # However, it has the same basename, so the bogon will be chosen
786 # first if we set CC to just the basename; use the full file name.
787 shift
788 set dummy "$ac_dir/$ac_word" "$@"
789 shift
790 ac_cv_prog_CC="$@"
791 fi
792 fi
793 fi
794 fi
795 CC="$ac_cv_prog_CC"
796 if test -n "$CC"; then
797 echo "$ac_t""$CC" 1>&6
798 else
799 echo "$ac_t""no" 1>&6
800 fi
801
802 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
803 fi
804
805 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
806 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
808 else
809 cat > conftest.c <<EOF
810 #ifdef __GNUC__
811 yes;
812 #endif
813 EOF
814 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
815 ac_cv_prog_gcc=yes
816 else
817 ac_cv_prog_gcc=no
818 fi
819 fi
820
821 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
822 if test $ac_cv_prog_gcc = yes; then
823 GCC=yes
824 if test "${CFLAGS+set}" != set; then
825 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
826 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
827 echo $ac_n "(cached) $ac_c" 1>&6
828 else
829 echo 'void f(){}' > conftest.c
830 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
831 ac_cv_prog_gcc_g=yes
832 else
833 ac_cv_prog_gcc_g=no
834 fi
835 rm -f conftest*
836
837 fi
838
839 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
840 if test $ac_cv_prog_gcc_g = yes; then
841 CFLAGS="-g -O"
842 else
843 CFLAGS="-O"
844 fi
845 fi
846 else
847 GCC=
848 test "${CFLAGS+set}" = set || CFLAGS="-g"
849 fi
850
851
852 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
853 if test -d /etc/conf/kconfig.d &&
854 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
855 then
856 echo "$ac_t""yes" 1>&6
857 ISC=yes # If later tests want to check for ISC.
858 cat >> confdefs.h <<\EOF
859 #define _POSIX_SOURCE 1
860 EOF
861
862 if test "$GCC" = yes; then
863 CC="$CC -posix"
864 else
865 CC="$CC -Xp"
866 fi
867 else
868 echo "$ac_t""no" 1>&6
869 ISC=
870 fi
871
872
873 # Permit host specific settings.
874 . ${srcdir}/configure.host
875
876
877 if test $host != $build; then
878 ac_tool_prefix=${host_alias}-
879 else
880 ac_tool_prefix=
881 fi
882
883 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
884 set dummy ${ac_tool_prefix}ar; ac_word=$2
885 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
886 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
887 echo $ac_n "(cached) $ac_c" 1>&6
888 else
889 if test -n "$AR"; then
890 ac_cv_prog_AR="$AR" # Let the user override the test.
891 else
892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
893 for ac_dir in $PATH; do
894 test -z "$ac_dir" && ac_dir=.
895 if test -f $ac_dir/$ac_word; then
896 ac_cv_prog_AR="${ac_tool_prefix}ar"
897 break
898 fi
899 done
900 IFS="$ac_save_ifs"
901 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
902 fi
903 fi
904 AR="$ac_cv_prog_AR"
905 if test -n "$AR"; then
906 echo "$ac_t""$AR" 1>&6
907 else
908 echo "$ac_t""no" 1>&6
909 fi
910
911
912
913 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
914 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
916 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
917 echo $ac_n "(cached) $ac_c" 1>&6
918 else
919 if test -n "$RANLIB"; then
920 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
921 else
922 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
923 for ac_dir in $PATH; do
924 test -z "$ac_dir" && ac_dir=.
925 if test -f $ac_dir/$ac_word; then
926 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
927 break
928 fi
929 done
930 IFS="$ac_save_ifs"
931 fi
932 fi
933 RANLIB="$ac_cv_prog_RANLIB"
934 if test -n "$RANLIB"; then
935 echo "$ac_t""$RANLIB" 1>&6
936 else
937 echo "$ac_t""no" 1>&6
938 fi
939
940
941 if test -z "$ac_cv_prog_RANLIB"; then
942 if test -n "$ac_tool_prefix"; then
943 # Extract the first word of "ranlib", so it can be a program name with args.
944 set dummy ranlib; ac_word=$2
945 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
946 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
947 echo $ac_n "(cached) $ac_c" 1>&6
948 else
949 if test -n "$RANLIB"; then
950 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
951 else
952 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
953 for ac_dir in $PATH; do
954 test -z "$ac_dir" && ac_dir=.
955 if test -f $ac_dir/$ac_word; then
956 ac_cv_prog_RANLIB="ranlib"
957 break
958 fi
959 done
960 IFS="$ac_save_ifs"
961 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
962 fi
963 fi
964 RANLIB="$ac_cv_prog_RANLIB"
965 if test -n "$RANLIB"; then
966 echo "$ac_t""$RANLIB" 1>&6
967 else
968 echo "$ac_t""no" 1>&6
969 fi
970
971 else
972 RANLIB=":"
973 fi
974 fi
975
976 # Find a good install program. We prefer a C program (faster),
977 # so one script is as good as another. But avoid the broken or
978 # incompatible versions:
979 # SysV /etc/install, /usr/sbin/install
980 # SunOS /usr/etc/install
981 # IRIX /sbin/install
982 # AIX /bin/install
983 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
984 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
985 # ./install, which can be erroneously created by make from ./install.sh.
986 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
987 if test -z "$INSTALL"; then
988 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
989 echo $ac_n "(cached) $ac_c" 1>&6
990 else
991 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
992 for ac_dir in $PATH; do
993 # Account for people who put trailing slashes in PATH elements.
994 case "$ac_dir/" in
995 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
996 *)
997 # OSF1 and SCO ODT 3.0 have their own names for install.
998 for ac_prog in ginstall installbsd scoinst install; do
999 if test -f $ac_dir/$ac_prog; then
1000 if test $ac_prog = install &&
1001 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1002 # AIX install. It has an incompatible calling convention.
1003 # OSF/1 installbsd also uses dspmsg, but is usable.
1004 :
1005 else
1006 ac_cv_path_install="$ac_dir/$ac_prog -c"
1007 break 2
1008 fi
1009 fi
1010 done
1011 ;;
1012 esac
1013 done
1014 IFS="$ac_save_ifs"
1015
1016 fi
1017 if test "${ac_cv_path_install+set}" = set; then
1018 INSTALL="$ac_cv_path_install"
1019 else
1020 # As a last resort, use the slow shell script. We don't cache a
1021 # path for INSTALL within a source directory, because that will
1022 # break other packages using the cache if that directory is
1023 # removed, or if the path is relative.
1024 INSTALL="$ac_install_sh"
1025 fi
1026 fi
1027 echo "$ac_t""$INSTALL" 1>&6
1028
1029 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1030 # It thinks the first close brace ends the variable substitution.
1031 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1032
1033 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1034
1035
1036 if test "${shared}" = "true"; then
1037 if test "${GCC}" != "yes" && test "${shared_non_gcc}" != "yes"; then
1038 echo "configure: warning: BFD --enable-shared only supported when using gcc" 1>&2
1039 shared=false
1040 ALLLIBS='$(TARGETLIB)'
1041 PICFLAG=
1042 SHLIB=unused-shlib
1043 fi
1044 fi
1045
1046
1047
1048
1049
1050
1051 if test "${commonbfdlib}" = "true"; then
1052 COMMON_SHLIB=yes
1053 PICLIST=piclist
1054 else
1055 COMMON_SHLIB=
1056 PICLIST=
1057 fi
1058
1059
1060
1061
1062
1063 HOST_64BIT_LONG=0
1064 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
1065 HOST_64BIT_LONG=1
1066 fi
1067
1068
1069 # If we cannot run a trivial program, we must be cross compiling.
1070 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
1071 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
1072 echo $ac_n "(cached) $ac_c" 1>&6
1073 else
1074 if test "$cross_compiling" = yes; then
1075 ac_cv_c_cross=yes
1076 else
1077 cat > conftest.$ac_ext <<EOF
1078 #line 1079 "configure"
1079 #include "confdefs.h"
1080 main(){return(0);}
1081 EOF
1082 { (eval echo configure:1083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1083 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1084 ac_cv_c_cross=no
1085 else
1086 ac_cv_c_cross=yes
1087 fi
1088 fi
1089 rm -fr conftest*
1090 fi
1091
1092 echo "$ac_t""$ac_cv_c_cross" 1>&6
1093 cross_compiling=$ac_cv_c_cross
1094
1095 # Put a plausible default for CC_FOR_BUILD in Makefile.
1096 if test -z "$CC_FOR_BUILD"; then
1097 if test "x$cross_compiling" = "xno"; then
1098 CC_FOR_BUILD='$(CC)'
1099 else
1100 CC_FOR_BUILD=gcc
1101 fi
1102 fi
1103
1104
1105 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1106 # On Suns, sometimes $CPP names a directory.
1107 if test -n "$CPP" && test -d "$CPP"; then
1108 CPP=
1109 fi
1110 if test -z "$CPP"; then
1111 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1112 echo $ac_n "(cached) $ac_c" 1>&6
1113 else
1114 # This must be in double quotes, not single quotes, because CPP may get
1115 # substituted into the Makefile and "${CC-cc}" will confuse make.
1116 CPP="${CC-cc} -E"
1117 # On the NeXT, cc -E runs the code through the compiler's parser,
1118 # not just through cpp.
1119 cat > conftest.$ac_ext <<EOF
1120 #line 1121 "configure"
1121 #include "confdefs.h"
1122 #include <assert.h>
1123 Syntax Error
1124 EOF
1125 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1126 { (eval echo configure:1127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1127 ac_err=`grep -v '^ *+' conftest.out`
1128 if test -z "$ac_err"; then
1129 :
1130 else
1131 echo "$ac_err" >&5
1132 rm -rf conftest*
1133 CPP="${CC-cc} -E -traditional-cpp"
1134 cat > conftest.$ac_ext <<EOF
1135 #line 1136 "configure"
1136 #include "confdefs.h"
1137 #include <assert.h>
1138 Syntax Error
1139 EOF
1140 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1141 { (eval echo configure:1142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1142 ac_err=`grep -v '^ *+' conftest.out`
1143 if test -z "$ac_err"; then
1144 :
1145 else
1146 echo "$ac_err" >&5
1147 rm -rf conftest*
1148 CPP=/lib/cpp
1149 fi
1150 rm -f conftest*
1151 fi
1152 rm -f conftest*
1153 ac_cv_prog_CPP="$CPP"
1154 fi
1155 CPP="$ac_cv_prog_CPP"
1156 else
1157 ac_cv_prog_CPP="$CPP"
1158 fi
1159 echo "$ac_t""$CPP" 1>&6
1160
1161 for ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h
1162 do
1163 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1164 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1165 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1167 else
1168 cat > conftest.$ac_ext <<EOF
1169 #line 1170 "configure"
1170 #include "confdefs.h"
1171 #include <$ac_hdr>
1172 EOF
1173 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1174 { (eval echo configure:1175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1175 ac_err=`grep -v '^ *+' conftest.out`
1176 if test -z "$ac_err"; then
1177 rm -rf conftest*
1178 eval "ac_cv_header_$ac_safe=yes"
1179 else
1180 echo "$ac_err" >&5
1181 rm -rf conftest*
1182 eval "ac_cv_header_$ac_safe=no"
1183 fi
1184 rm -f conftest*
1185 fi
1186 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1187 echo "$ac_t""yes" 1>&6
1188 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1189 cat >> confdefs.h <<EOF
1190 #define $ac_tr_hdr 1
1191 EOF
1192
1193 else
1194 echo "$ac_t""no" 1>&6
1195 fi
1196 done
1197
1198 for ac_hdr in fcntl.h sys/file.h sys/time.h
1199 do
1200 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1201 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1202 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1204 else
1205 cat > conftest.$ac_ext <<EOF
1206 #line 1207 "configure"
1207 #include "confdefs.h"
1208 #include <$ac_hdr>
1209 EOF
1210 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1211 { (eval echo configure:1212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1212 ac_err=`grep -v '^ *+' conftest.out`
1213 if test -z "$ac_err"; then
1214 rm -rf conftest*
1215 eval "ac_cv_header_$ac_safe=yes"
1216 else
1217 echo "$ac_err" >&5
1218 rm -rf conftest*
1219 eval "ac_cv_header_$ac_safe=no"
1220 fi
1221 rm -f conftest*
1222 fi
1223 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1224 echo "$ac_t""yes" 1>&6
1225 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1226 cat >> confdefs.h <<EOF
1227 #define $ac_tr_hdr 1
1228 EOF
1229
1230 else
1231 echo "$ac_t""no" 1>&6
1232 fi
1233 done
1234
1235 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1236 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1237 echo $ac_n "(cached) $ac_c" 1>&6
1238 else
1239 cat > conftest.$ac_ext <<EOF
1240 #line 1241 "configure"
1241 #include "confdefs.h"
1242 #include <sys/types.h>
1243 #include <sys/time.h>
1244 #include <time.h>
1245 int main() { return 0; }
1246 int t() {
1247 struct tm *tp;
1248 ; return 0; }
1249 EOF
1250 if { (eval echo configure:1251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1251 rm -rf conftest*
1252 ac_cv_header_time=yes
1253 else
1254 rm -rf conftest*
1255 ac_cv_header_time=no
1256 fi
1257 rm -f conftest*
1258
1259 fi
1260
1261 echo "$ac_t""$ac_cv_header_time" 1>&6
1262 if test $ac_cv_header_time = yes; then
1263 cat >> confdefs.h <<\EOF
1264 #define TIME_WITH_SYS_TIME 1
1265 EOF
1266
1267 fi
1268
1269 for ac_func in fcntl getpagesize setitimer sysconf
1270 do
1271 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1272 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1273 echo $ac_n "(cached) $ac_c" 1>&6
1274 else
1275 cat > conftest.$ac_ext <<EOF
1276 #line 1277 "configure"
1277 #include "confdefs.h"
1278 /* System header to define __stub macros and hopefully few prototypes,
1279 which can conflict with char $ac_func(); below. */
1280 #include <assert.h>
1281 /* Override any gcc2 internal prototype to avoid an error. */
1282 /* We use char because int might match the return type of a gcc2
1283 builtin and then its argument prototype would still apply. */
1284 char $ac_func();
1285
1286 int main() { return 0; }
1287 int t() {
1288
1289 /* The GNU C library defines this for functions which it implements
1290 to always fail with ENOSYS. Some functions are actually named
1291 something starting with __ and the normal name is an alias. */
1292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1293 choke me
1294 #else
1295 $ac_func();
1296 #endif
1297
1298 ; return 0; }
1299 EOF
1300 if { (eval echo configure:1301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1301 rm -rf conftest*
1302 eval "ac_cv_func_$ac_func=yes"
1303 else
1304 rm -rf conftest*
1305 eval "ac_cv_func_$ac_func=no"
1306 fi
1307 rm -f conftest*
1308
1309 fi
1310 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1311 echo "$ac_t""yes" 1>&6
1312 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1313 cat >> confdefs.h <<EOF
1314 #define $ac_tr_func 1
1315 EOF
1316
1317 else
1318 echo "$ac_t""no" 1>&6
1319 fi
1320 done
1321
1322
1323
1324 case "${host}" in
1325 i[345]86-*-msdos* | i[345]86-*-go32* | *-*-cygwin32)
1326 cat >> confdefs.h <<\EOF
1327 #define USE_BINARY_FOPEN 1
1328 EOF
1329 ;;
1330 esac
1331
1332 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
1333 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1335 else
1336 cat > conftest.$ac_ext <<EOF
1337 #line 1338 "configure"
1338 #include "confdefs.h"
1339
1340 #include <stdio.h>
1341 #ifdef HAVE_STDLIB_H
1342 #include <stdlib.h>
1343 #endif
1344 #ifdef HAVE_UNISTD_H
1345 #include <unistd.h>
1346 #endif
1347 int main() { return 0; }
1348 int t() {
1349 char *(*pfn) = (char *(*)) malloc
1350 ; return 0; }
1351 EOF
1352 if { (eval echo configure:1353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1353 rm -rf conftest*
1354 bfd_cv_decl_needed_malloc=no
1355 else
1356 rm -rf conftest*
1357 bfd_cv_decl_needed_malloc=yes
1358 fi
1359 rm -f conftest*
1360
1361 fi
1362
1363 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
1364 if test $bfd_cv_decl_needed_malloc = yes; then
1365 bfd_tr_decl=NEED_DECLARATION_`echo malloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1366 cat >> confdefs.h <<EOF
1367 #define $bfd_tr_decl 1
1368 EOF
1369
1370 fi
1371
1372 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
1373 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
1374 echo $ac_n "(cached) $ac_c" 1>&6
1375 else
1376 cat > conftest.$ac_ext <<EOF
1377 #line 1378 "configure"
1378 #include "confdefs.h"
1379
1380 #include <stdio.h>
1381 #ifdef HAVE_STDLIB_H
1382 #include <stdlib.h>
1383 #endif
1384 #ifdef HAVE_UNISTD_H
1385 #include <unistd.h>
1386 #endif
1387 int main() { return 0; }
1388 int t() {
1389 char *(*pfn) = (char *(*)) free
1390 ; return 0; }
1391 EOF
1392 if { (eval echo configure:1393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1393 rm -rf conftest*
1394 bfd_cv_decl_needed_free=no
1395 else
1396 rm -rf conftest*
1397 bfd_cv_decl_needed_free=yes
1398 fi
1399 rm -f conftest*
1400
1401 fi
1402
1403 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
1404 if test $bfd_cv_decl_needed_free = yes; then
1405 bfd_tr_decl=NEED_DECLARATION_`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1406 cat >> confdefs.h <<EOF
1407 #define $bfd_tr_decl 1
1408 EOF
1409
1410 fi
1411
1412
1413 # If we are configured native, pick a core file support file.
1414 COREFILE=
1415 COREFLAG=
1416 if test "${target}" = "${host}"; then
1417 case "${host}" in
1418 alpha*-*-linux*)
1419 COREFILE=trad-core.o
1420 cat >> confdefs.h <<\EOF
1421 #define TRAD_HEADER "hosts/alphalinux.h"
1422 EOF
1423
1424 ;;
1425 alpha*-*-*) COREFILE=osf-core.o ;;
1426 arm-*-riscix) COREFILE=trad-core.o ;;
1427 hppa*-*-hpux*) COREFILE=hpux-core.o ;;
1428 hppa*-*-hiux*) COREFILE=hpux-core.o ;;
1429 hppa*-*-bsd*) COREFILE="hpux-core.o hppabsd-core.o"
1430 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
1431 i[345]86-sequent-bsd*)
1432 COREFILE=trad-core.o;
1433 cat >> confdefs.h <<\EOF
1434 #define TRAD_HEADER "hosts/symmetry.h"
1435 EOF
1436
1437 ;;
1438 i[345]86-sequent-sysv4*) ;;
1439 i[345]86-sequent-sysv*)
1440 COREFILE=trad-core.o
1441 cat >> confdefs.h <<\EOF
1442 #define TRAD_HEADER "hosts/symmetry.h"
1443 EOF
1444
1445 ;;
1446 i[345]86-*-bsd* | i[345]86-*-freebsd*)
1447 COREFILE=trad-core.o
1448 cat >> confdefs.h <<\EOF
1449 #define TRAD_HEADER "hosts/i386bsd.h"
1450 EOF
1451
1452 ;;
1453 i[345]86-*-netbsd*)
1454 COREFILE=netbsd-core.o
1455 ;;
1456 i[345]86-esix-sysv3*)
1457 COREFILE=trad-core.o
1458 cat >> confdefs.h <<\EOF
1459 #define TRAD_HEADER "hosts/esix.h"
1460 EOF
1461
1462 ;;
1463 i[345]86-*-sco* | i[345]86-*-isc*)
1464 COREFILE=trad-core.o
1465 cat >> confdefs.h <<\EOF
1466 #define TRAD_HEADER "hosts/i386sco.h"
1467 EOF
1468
1469 ;;
1470 i[345]86-*-mach3*)
1471 COREFILE=trad-core.o
1472 cat >> confdefs.h <<\EOF
1473 #define TRAD_HEADER "hosts/i386mach3.h"
1474 EOF
1475
1476 ;;
1477 i[345]86-*-linux*)
1478 COREFILE=trad-core.o
1479 cat >> confdefs.h <<\EOF
1480 #define TRAD_HEADER "hosts/i386linux.h"
1481 EOF
1482
1483 ;;
1484 i[345]86-*-isc*) COREFILE=trad-core.o ;;
1485 i[345]86-*-aix*) COREFILE=aix386-core.o ;;
1486 i860-*-mach3* | i860-*-osf1*)
1487 COREFILE=trad-core.o
1488 cat >> confdefs.h <<\EOF
1489 #define TRAD_HEADER "hosts/i860mach3.h"
1490 EOF
1491
1492 ;;
1493 mips-dec-bsd*)
1494 COREFILE=trad-core.o
1495 cat >> confdefs.h <<\EOF
1496 #define TRAD_HEADER "hosts/mipsbsd.h"
1497 EOF
1498
1499 ;;
1500 mips-dec-mach3*)
1501 COREFILE=trad-core.o
1502 cat >> confdefs.h <<\EOF
1503 #define TRAD_HEADER "hosts/mipsmach3.h"
1504 EOF
1505
1506 ;;
1507 mips-*-netbsd*)
1508 COREFILE=netbsd-core.o
1509 ;;
1510 mips-dec-*)
1511 COREFILE=trad-core.o
1512 cat >> confdefs.h <<\EOF
1513 #define TRAD_HEADER "hosts/decstation.h"
1514 EOF
1515
1516 ;;
1517 mips-sgi-irix4*) COREFILE=irix-core.o ;;
1518 mips-sgi-irix5*) COREFILE=irix-core.o ;;
1519 mips-*-mach3*)
1520 COREFILE=trad-core.o
1521 cat >> confdefs.h <<\EOF
1522 #define TRAD_HEADER "hosts/mipsmach3.h"
1523 EOF
1524
1525 ;;
1526 mips-*-sysv4*) ;;
1527 mips-*-sysv* | mips-*-riscos*)
1528 COREFILE=trad-core.o
1529 cat >> confdefs.h <<\EOF
1530 #define TRAD_HEADER "hosts/riscos.h"
1531 EOF
1532
1533 ;;
1534 mips-sony-bsd*)
1535 COREFILE=trad-core.o
1536 cat >> confdefs.h <<\EOF
1537 #define TRAD_HEADER "hosts/news-mips.h"
1538 EOF
1539
1540 ;;
1541 m68*-bull*-sysv*)
1542 COREFILE=trad-core.o
1543 cat >> confdefs.h <<\EOF
1544 #define TRAD_HEADER "hosts/dpx2.h"
1545 EOF
1546
1547 ;;
1548 m68*-hp-hpux*) COREFILE=hpux-core.o ;;
1549 m68*-hp-bsd*)
1550 COREFILE=trad-core.o
1551 cat >> confdefs.h <<\EOF
1552 #define TRAD_HEADER "hosts/hp300bsd.h"
1553 EOF
1554
1555 ;;
1556 m68*-*-linux*)
1557 COREFILE=trad-core.o
1558 cat >> confdefs.h <<\EOF
1559 #define TRAD_HEADER "hosts/m68klinux.h"
1560 EOF
1561
1562 ;;
1563 m68*-motorola-sysv*)
1564 COREFILE=trad-core.o
1565 cat >> confdefs.h <<\EOF
1566 #define TRAD_HEADER "hosts/delta68.h"
1567 EOF
1568
1569 ;;
1570 m68*-sony-*)
1571 COREFILE=trad-core.o
1572 cat >> confdefs.h <<\EOF
1573 #define TRAD_HEADER "hosts/news.h"
1574 EOF
1575
1576 ;;
1577 m68*-*-netbsd*)
1578 COREFILE=netbsd-core.o
1579 ;;
1580 m68*-apple-aux*)
1581 COREFILE=trad-core.o
1582 cat >> confdefs.h <<\EOF
1583 #define TRAD_HEADER "hosts/m68kaux.h"
1584 EOF
1585
1586 ;;
1587 m88*-*-sysv4*) ;;
1588 m88*-motorola-sysv*) COREFILE=ptrace-core.o ;;
1589 m88*-*-mach3*)
1590 COREFILE=trad-core.o
1591 cat >> confdefs.h <<\EOF
1592 #define TRAD_HEADER "hosts/m88kmach3.h"
1593 EOF
1594
1595 ;;
1596 ns32k-pc532-mach)
1597 COREFILE=trad-core.o
1598 cat >> confdefs.h <<\EOF
1599 #define TRAD_HEADER "hosts/pc532mach.h"
1600 EOF
1601
1602 ;;
1603 ns32k-*-netbsd*)
1604 COREFILE=netbsd-core.o
1605 ;;
1606 rs6000-*-lynx*) COREFILE=lynx-core.o ;;
1607 rs6000-*-aix4*) COREFILE=rs6000-core.o ;;
1608 rs6000-*-*) COREFILE=rs6000-core.o ;;
1609 powerpc-*-aix4*) COREFILE=rs6000-core.o ;;
1610 powerpc-*-aix*) COREFILE=rs6000-core.o ;;
1611 sparc-*-netbsd*)
1612 COREFILE=netbsd-core.o
1613 ;;
1614 tahoe-*-*)
1615 COREFILE=trad-core.o
1616 cat >> confdefs.h <<\EOF
1617 #define TRAD_HEADER "hosts/tahoe.h"
1618 EOF
1619
1620 ;;
1621 vax-*-ultrix2*)
1622 COREFILE=trad-core.o
1623 cat >> confdefs.h <<\EOF
1624 #define TRAD_HEADER "hosts/vaxult2.h"
1625 EOF
1626
1627 ;;
1628 vax-*-ultrix*)
1629 COREFILE=trad-core.o
1630 cat >> confdefs.h <<\EOF
1631 #define TRAD_HEADER "hosts/vaxult2.h"
1632 EOF
1633
1634 ;;
1635 vax-*-*)
1636 COREFILE=trad-core.o
1637 cat >> confdefs.h <<\EOF
1638 #define TRAD_HEADER "hosts/vaxbsd.h"
1639 EOF
1640
1641 ;;
1642 esac
1643
1644 case "$COREFILE" in
1645 aix386-core.o) COREFLAG=-DAIX386_CORE ;;
1646 hppabsd-core.o) COREFLAG=-DHPPABSD_CORE ;;
1647 hpux-core.o) COREFLAG=-DHPUX_CORE ;;
1648 irix-core.o) COREFLAG=-DIRIX_CORE ;;
1649 lynx-core.o) COREFLAG=-DLYNX_CORE ;;
1650 osf-core.o) COREFLAG=-DOSF_CORE ;;
1651 ptrace-core.o) COREFLAG=-DPTRACE_CORE ;;
1652 rs6000-core.o) COREFLAG="$COREFLAG -DAIX_CORE" ;;
1653 trad-core.o) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
1654 esac
1655
1656 # The ELF code uses the native <sys/procfs.h> to handle core files.
1657 # Define HAVE_SYS_PROCFS_H if the file exists and defines
1658 # prstatus_t.
1659 echo $ac_n "checking for sys/procfs.h""... $ac_c" 1>&6
1660 if eval "test \"`echo '$''{'bfd_cv_header_sys_procfs_h'+set}'`\" = set"; then
1661 echo $ac_n "(cached) $ac_c" 1>&6
1662 else
1663 cat > conftest.$ac_ext <<EOF
1664 #line 1665 "configure"
1665 #include "confdefs.h"
1666 #include <sys/procfs.h>
1667 int main() { return 0; }
1668 int t() {
1669 prstatus_t t;
1670 ; return 0; }
1671 EOF
1672 if { (eval echo configure:1673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1673 rm -rf conftest*
1674 bfd_cv_header_sys_procfs_h=yes
1675 else
1676 rm -rf conftest*
1677 bfd_cv_header_sys_procfs_h=no
1678 fi
1679 rm -f conftest*
1680
1681 fi
1682
1683 echo "$ac_t""$bfd_cv_header_sys_procfs_h" 1>&6
1684 if test $bfd_cv_header_sys_procfs_h = yes; then
1685 cat >> confdefs.h <<\EOF
1686 #define HAVE_SYS_PROCFS_H 1
1687 EOF
1688
1689 fi
1690
1691 fi
1692
1693
1694
1695 # target stuff:
1696
1697 # Canonicalize the secondary target names.
1698 if test -n "$enable_targets" ; then
1699 for targ in `echo $enable_targets | sed 's/,/ /g'`
1700 do
1701 result=`$ac_config_sub $targ 2>/dev/null`
1702 if test -n "$result" ; then
1703 canon_targets="$canon_targets $result"
1704 else
1705 # Allow targets that config.sub doesn't recognize, like "all".
1706 canon_targets="$canon_targets $targ"
1707 fi
1708 done
1709 fi
1710
1711 all_targets=false
1712 defvec=
1713 selvecs=
1714 selarchs=
1715 TDEFINES=
1716 for targ in $target $canon_targets
1717 do
1718 if test "x$targ" = "xall"; then
1719 all_targets=true
1720 else
1721 . $srcdir/config.bfd
1722 if test "x$targ" = "x$target"; then
1723 defvec=$targ_defvec
1724 fi
1725 selvecs="$selvecs $targ_defvec $targ_selvecs"
1726 selarchs="$selarchs $targ_archs"
1727 TDEFINES="$TDEFINES $targ_cflags"
1728 fi
1729 done
1730
1731
1732 # This processing still needs to be done if we're to decide properly whether
1733 # 64-bit support needs to be compiled in. Currently, it will be included if
1734 # the default or any other explicitly requested target requires it; it
1735 # will not be included on a 32-bit host if no 64-bit target is requested, and
1736 # no "--with-64-bit-bfd" option is given, even if "--with-targets=all" is
1737 # used.
1738
1739 # uniq the default and selected vectors in all the configured targets.
1740 f=""
1741 for i in $selvecs ; do
1742 case " $f " in
1743 *" $i "*) ;;
1744 *) f="$f $i" ;;
1745 esac
1746 done
1747 selvecs="$f"
1748
1749 # uniq the architectures in all the configured targets.
1750 f=""
1751 for i in $selarchs ; do
1752 case " $f " in
1753 *" $i "*) ;;
1754 *) f="$f $i" ;;
1755 esac
1756 done
1757 selarchs="$f"
1758
1759 # Target backend .o files.
1760 tb=
1761
1762 elf="elf.o elflink.o"
1763
1764 for vec in $selvecs
1765 do
1766 case "$vec" in
1767 # This list is alphabetized to make it easy to compare
1768 # with the two vector lists in targets.c.
1769 a29kcoff_big_vec) tb="$tb coff-a29k.o cofflink.o" ;;
1770 a_out_adobe_vec) tb="$tb aout-adobe.o aout32.o" ;;
1771 armcoff_little_vec) tb="$tb coff-arm.o cofflink.o " ;;
1772 armcoff_big_vec) tb="$tb coff-arm.o cofflink.o " ;;
1773 armpe_little_vec) tb="$tb pe-arm.o cofflink.o " ;;
1774 armpe_big_vec) tb="$tb pe-arm.o cofflink.o " ;;
1775 armpei_little_vec) tb="$tb pei-arm.o cofflink.o " ;;
1776 armpei_big_vec) tb="$tb pei-arm.o cofflink.o " ;;
1777 aout0_big_vec) tb="$tb aout0.o aout32.o" ;;
1778 aout_arm_big_vec) tb="$tb aout-arm.o aout32.o" ;;
1779 aout_arm_little_vec) tb="$tb aout-arm.o aout32.o" ;;
1780 aout_mips_big_vec) tb="$tb mipsbsd.o aout32.o" ;;
1781 aout_mips_little_vec) tb="$tb mipsbsd.o aout32.o" ;;
1782 apollocoff_vec) tb="$tb coff-apollo.o" ;;
1783 b_out_vec_big_host) tb="$tb bout.o aout32.o" ;;
1784 b_out_vec_little_host) tb="$tb bout.o aout32.o" ;;
1785 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.o elf64.o $elf"
1786 target64=true ;;
1787 # start-sanitize-arc
1788 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.o elf32.o $elf" ;;
1789 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.o elf32.o $elf" ;;
1790 # end-sanitize-arc
1791 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.o elf32.o $elf" ;;
1792 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.o elf32.o $elf ecofflink.o" ;;
1793 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.o elf64.o elf32-mips.o elf32.o $elf ecofflink.o"
1794 target64=true ;;
1795 # start-sanitize-d10v
1796 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.o elf32.o $elf" ;;
1797 # end-sanitize-d10v
1798 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.o elf32.o $elf" ;;
1799 bfd_elf32_i386_vec) tb="$tb elf32-i386.o elf32.o $elf" ;;
1800 bfd_elf32_i860_vec) tb="$tb elf32-i860.o elf32.o $elf" ;;
1801 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.o elf32.o $elf" ;;
1802 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.o elf32.o $elf ecofflink.o" ;;
1803 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.o elf64.o elf32-mips.o elf32.o $elf ecofflink.o"
1804 target64=true ;;
1805 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.o elf32.o $elf" ;;
1806 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.o elf32.o $elf" ;;
1807 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.o elf32.o $elf" ;;
1808 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.o elf32.o $elf" ;;
1809 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.o elf32.o $elf" ;;
1810 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.o elf64.o $elf"
1811 target64=true ;;
1812 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.o elf64.o $elf"
1813 target64=true ;;
1814 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.o elf64.o $elf"
1815 target64=true ;;
1816 cisco_core_vec) tb="$tb cisco-core.o" ;;
1817 demo_64_vec) tb="$tb demo64.o aout64.o"
1818 target64=true ;;
1819 ecoff_big_vec) tb="$tb coff-mips.o ecoff.o ecofflink.o" ;;
1820 ecoff_little_vec) tb="$tb coff-mips.o ecoff.o ecofflink.o" ;;
1821 ecoffalpha_little_vec) tb="$tb coff-alpha.o ecoff.o ecofflink.o"
1822 target64=true ;;
1823 evax_alpha_vec) tb="$tb evax-alpha.o evax-emh.o evax-egsd.o evax-etir.o evax-misc.o"
1824 target64=true ;;
1825 h8300coff_vec) tb="$tb coff-h8300.o reloc16.o" ;;
1826 h8500coff_vec) tb="$tb coff-h8500.o reloc16.o" ;;
1827 host_aout_vec) tb="$tb host-aout.o aout32.o" ;;
1828 hp300bsd_vec) tb="$tb hp300bsd.o aout32.o" ;;
1829 hp300hpux_vec) tb="$tb hp300hpux.o aout32.o" ;;
1830 i386aout_vec) tb="$tb i386aout.o aout32.o" ;;
1831 i386bsd_vec) tb="$tb i386bsd.o aout32.o" ;;
1832 i386coff_vec) tb="$tb coff-i386.o cofflink.o" ;;
1833 i386dynix_vec) tb="$tb i386dynix.o aout32.o" ;;
1834 i386freebsd_vec) tb="$tb i386freebsd.o aout32.o" ;;
1835 i386msdos_vec) tb="$tb i386msdos.o" ;;
1836 i386pe_vec) tb="$tb pe-i386.o cofflink.o " ;;
1837 i386pei_vec) tb="$tb pei-i386.o cofflink.o" ;;
1838 i386linux_vec) tb="$tb i386linux.o aout32.o" ;;
1839 i386lynx_aout_vec) tb="$tb i386lynx.o lynx-core.o aout32.o" ;;
1840 i386lynx_coff_vec) tb="$tb cf-i386lynx.o cofflink.o lynx-core.o" ;;
1841 i386mach3_vec) tb="$tb i386mach3.o aout32.o" ;;
1842 i386netbsd_vec) tb="$tb i386netbsd.o aout32.o" ;;
1843 i386os9k_vec) tb="$tb i386os9k.o aout32.o" ;;
1844 i860coff_vec) tb="$tb coff-i860.o cofflink.o" ;;
1845 icoff_big_vec) tb="$tb coff-i960.o cofflink.o" ;;
1846 icoff_little_vec) tb="$tb coff-i960.o cofflink.o" ;;
1847 ieee_vec) tb="$tb ieee.o" ;;
1848 m68kcoff_vec) tb="$tb coff-m68k.o cofflink.o" ;;
1849 m68kcoffun_vec) tb="$tb coff-u68k.o coff-m68k.o cofflink.o" ;;
1850 m68klinux_vec) tb="$tb m68klinux.o aout32.o" ;;
1851 m68klynx_aout_vec) tb="$tb m68klynx.o lynx-core.o aout32.o" ;;
1852 m68klynx_coff_vec) tb="$tb cf-m68klynx.o coff-m68k.o cofflink.o lynx-core.o" ;;
1853 m68knetbsd_vec) tb="$tb m68knetbsd.o aout32.o" ;;
1854 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.o aout32.o" ;;
1855 m68kaux_coff_vec) tb="$tb coff-aux.o coff-m68k.o cofflink.o" ;;
1856 m88kbcs_vec) tb="$tb coff-m88k.o" ;;
1857 newsos3_vec) tb="$tb newsos3.o aout32.o" ;;
1858 nlm32_i386_vec) tb="$tb nlm32-i386.o nlm32.o nlm.o" ;;
1859 nlm32_sparc_vec) tb="$tb nlm32-sparc.o nlm32.o nlm.o" ;;
1860 nlm32_alpha_vec) tb="$tb nlm32-alpha.o nlm32.o nlm.o"
1861 target64=true ;;
1862 riscix_vec) tb="$tb aout32.o riscix.o" ;;
1863 nlm32_powerpc_vec) tb="$tb nlm32-ppc.o nlm32.o nlm.o" ;;
1864 pc532netbsd_vec) tb="$tb ns32knetbsd.o aout-ns32k.o" ;;
1865 pc532machaout_vec) tb="$tb pc532-mach.o aout-ns32k.o" ;;
1866 pmac_xcoff_vec) tb="$tb coff-pmac.o xcofflink.o" ;;
1867 rs6000coff_vec) tb="$tb coff-rs6000.o xcofflink.o" ;;
1868 bfd_powerpc_pe_vec) tb="$tb pe-ppc.o cofflink.o" ;;
1869 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.o cofflink.o" ;;
1870 bfd_powerpc_pei_vec) tb="$tb pei-ppc.o cofflink.o" ;;
1871 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.o cofflink.o" ;;
1872 ppcboot_vec) tb="$tb ppcboot.o" ;;
1873 shcoff_vec) tb="$tb coff-sh.o cofflink.o" ;;
1874 shlcoff_vec) tb="$tb coff-sh.o cofflink.o" ;;
1875 som_vec) tb="$tb som.o" ;;
1876 sparclynx_aout_vec) tb="$tb sparclynx.o lynx-core.o aout32.o" ;;
1877 sparclynx_coff_vec) tb="$tb cf-sparclynx.o lynx-core.o" ;;
1878 sparcnetbsd_vec) tb="$tb sparcnetbsd.o aout32.o" ;;
1879 sparccoff_vec) tb="$tb coff-sparc.o" ;;
1880 srec_vec) tb="$tb srec.o" ;;
1881 sunos_big_vec) tb="$tb sunos.o aout32.o" ;;
1882 symbolsrec_vec) tb="$tb srec.o" ;;
1883 tekhex_vec) tb="$tb tekhex.o" ;;
1884 we32kcoff_vec) tb="$tb coff-we32k.o" ;;
1885 z8kcoff_vec) tb="$tb coff-z8k.o reloc16.o" ;;
1886 w65_vec) tb="$tb coff-w65.o reloc16.o" ;;
1887 versados_vec) tb="$tb versados.o" ;;
1888
1889 "") ;;
1890 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
1891 esac
1892 done
1893
1894 # Target architecture .o files.
1895 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.o/g`
1896
1897 # Weed out duplicate .o files.
1898 f=""
1899 for i in $tb ; do
1900 case " $f " in
1901 *" $i "*) ;;
1902 *) f="$f $i" ;;
1903 esac
1904 done
1905 tb="$f"
1906
1907 f=""
1908 for i in $ta ; do
1909 case " $f " in
1910 *" $i "*) ;;
1911 *) f="$f $i" ;;
1912 esac
1913 done
1914 ta="$f"
1915
1916 bfd_backends="$tb"
1917 bfd_machines="$ta"
1918
1919 if test x${all_targets} = xtrue ; then
1920 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
1921 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
1922 selvecs=
1923 selarchs=
1924 else # all_targets is true
1925 # Only set these if they will be nonempty, for the clever echo.
1926 test -n "$selvecs" &&
1927 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
1928 test -n "$selarchs" &&
1929 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
1930 fi # all_targets is true
1931
1932 case ${host64}-${target64}-${want64} in
1933 *true*)
1934 wordsize=64
1935 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
1936 if test -z "$GCC" && test "$HOST_64BIT_LONG" = "0"; then
1937 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
1938 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
1939 fi
1940 ;;
1941 false-false-false)
1942 wordsize=32
1943 all_backends='$(BFD32_BACKENDS)'
1944 ;;
1945 esac
1946
1947
1948
1949
1950
1951
1952 tdefaults=""
1953 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
1954 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
1955 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
1956
1957
1958 for ac_func in valloc getpagesize
1959 do
1960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1961 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1962 echo $ac_n "(cached) $ac_c" 1>&6
1963 else
1964 cat > conftest.$ac_ext <<EOF
1965 #line 1966 "configure"
1966 #include "confdefs.h"
1967 /* System header to define __stub macros and hopefully few prototypes,
1968 which can conflict with char $ac_func(); below. */
1969 #include <assert.h>
1970 /* Override any gcc2 internal prototype to avoid an error. */
1971 /* We use char because int might match the return type of a gcc2
1972 builtin and then its argument prototype would still apply. */
1973 char $ac_func();
1974
1975 int main() { return 0; }
1976 int t() {
1977
1978 /* The GNU C library defines this for functions which it implements
1979 to always fail with ENOSYS. Some functions are actually named
1980 something starting with __ and the normal name is an alias. */
1981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1982 choke me
1983 #else
1984 $ac_func();
1985 #endif
1986
1987 ; return 0; }
1988 EOF
1989 if { (eval echo configure:1990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1990 rm -rf conftest*
1991 eval "ac_cv_func_$ac_func=yes"
1992 else
1993 rm -rf conftest*
1994 eval "ac_cv_func_$ac_func=no"
1995 fi
1996 rm -f conftest*
1997
1998 fi
1999 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2000 echo "$ac_t""yes" 1>&6
2001 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2002 cat >> confdefs.h <<EOF
2003 #define $ac_tr_func 1
2004 EOF
2005
2006 else
2007 echo "$ac_t""no" 1>&6
2008 fi
2009 done
2010
2011 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2012 if eval "test \"`echo '$''{'ac_cv_func_mmap'+set}'`\" = set"; then
2013 echo $ac_n "(cached) $ac_c" 1>&6
2014 else
2015 if test "$cross_compiling" = yes; then
2016 ac_cv_func_mmap=no
2017 else
2018 cat > conftest.$ac_ext <<EOF
2019 #line 2020 "configure"
2020 #include "confdefs.h"
2021
2022 /* Thanks to Mike Haertel and Jim Avera for this test. */
2023 #include <sys/types.h>
2024 #include <fcntl.h>
2025 #include <sys/mman.h>
2026
2027 #ifndef HAVE_GETPAGESIZE
2028 # include <sys/param.h>
2029 # ifdef EXEC_PAGESIZE
2030 # define getpagesize() EXEC_PAGESIZE
2031 # else
2032 # ifdef NBPG
2033 # define getpagesize() NBPG * CLSIZE
2034 # ifndef CLSIZE
2035 # define CLSIZE 1
2036 # endif
2037 # else
2038 # ifdef NBPC
2039 # define getpagesize() NBPC
2040 # else
2041 # define getpagesize() PAGESIZE /* SVR4 */
2042 # endif
2043 # endif
2044 # endif
2045 #endif
2046
2047 #ifndef HAVE_VALLOC
2048 # define valloc malloc
2049 #endif
2050
2051 #ifdef __cplusplus
2052 extern "C" { void *valloc(unsigned), *malloc(unsigned); }
2053 #else
2054 char *valloc(), *malloc();
2055 #endif
2056
2057 int
2058 main()
2059 {
2060 char *buf1, *buf2, *buf3;
2061 int i = getpagesize(), j;
2062 int i2 = i * 2;
2063 int fd;
2064
2065 buf1 = (char *)valloc(i2);
2066 buf2 = (char *)valloc(i);
2067 buf3 = (char *)malloc(i2);
2068 for (j = 0; j < i2; ++j)
2069 *(buf1 + j) = rand();
2070 fd = open("conftestmmap", O_CREAT | O_RDWR, 0666);
2071 write(fd, buf1, i2);
2072 mmap(buf2, i, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE, fd, 0);
2073 for (j = 0; j < i; ++j)
2074 if (*(buf1 + j) != *(buf2 + j))
2075 exit(1);
2076 lseek(fd, (long)i, 0);
2077 read(fd, buf2, i); /* read into mapped memory -- file should not change */
2078 /* (it does in i386 SVR4.0 - Jim Avera, jima@netcom.com) */
2079 lseek(fd, (long)0, 0);
2080 read(fd, buf3, i2);
2081 for (j = 0; j < i2; ++j)
2082 if (*(buf1 + j) != *(buf3 + j))
2083 exit(1);
2084 exit(0);
2085 }
2086
2087 EOF
2088 { (eval echo configure:2089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
2089 if test -s conftest && (./conftest; exit) 2>/dev/null; then
2090 ac_cv_func_mmap=yes
2091 else
2092 ac_cv_func_mmap=no
2093 fi
2094 fi
2095 rm -fr conftest*
2096 fi
2097
2098 echo "$ac_t""$ac_cv_func_mmap" 1>&6
2099 if test $ac_cv_func_mmap = yes; then
2100 cat >> confdefs.h <<\EOF
2101 #define HAVE_MMAP 1
2102 EOF
2103
2104 fi
2105
2106 for ac_func in madvise mprotect
2107 do
2108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2109 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2111 else
2112 cat > conftest.$ac_ext <<EOF
2113 #line 2114 "configure"
2114 #include "confdefs.h"
2115 /* System header to define __stub macros and hopefully few prototypes,
2116 which can conflict with char $ac_func(); below. */
2117 #include <assert.h>
2118 /* Override any gcc2 internal prototype to avoid an error. */
2119 /* We use char because int might match the return type of a gcc2
2120 builtin and then its argument prototype would still apply. */
2121 char $ac_func();
2122
2123 int main() { return 0; }
2124 int t() {
2125
2126 /* The GNU C library defines this for functions which it implements
2127 to always fail with ENOSYS. Some functions are actually named
2128 something starting with __ and the normal name is an alias. */
2129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2130 choke me
2131 #else
2132 $ac_func();
2133 #endif
2134
2135 ; return 0; }
2136 EOF
2137 if { (eval echo configure:2138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2138 rm -rf conftest*
2139 eval "ac_cv_func_$ac_func=yes"
2140 else
2141 rm -rf conftest*
2142 eval "ac_cv_func_$ac_func=no"
2143 fi
2144 rm -f conftest*
2145
2146 fi
2147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2148 echo "$ac_t""yes" 1>&6
2149 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2150 cat >> confdefs.h <<EOF
2151 #define $ac_tr_func 1
2152 EOF
2153
2154 else
2155 echo "$ac_t""no" 1>&6
2156 fi
2157 done
2158
2159 case ${want_mmap}+${ac_cv_func_mmap} in
2160 true+yes ) cat >> confdefs.h <<\EOF
2161 #define USE_MMAP 1
2162 EOF
2163 ;;
2164 esac
2165
2166 rm -f doc/config.status
2167 trap '' 1 2 15
2168 cat > confcache <<\EOF
2169 # This file is a shell script that caches the results of configure
2170 # tests run on this system so they can be shared between configure
2171 # scripts and configure runs. It is not useful on other systems.
2172 # If it contains results you don't want to keep, you may remove or edit it.
2173 #
2174 # By default, configure uses ./config.cache as the cache file,
2175 # creating it if it does not exist already. You can give configure
2176 # the --cache-file=FILE option to use a different cache file; that is
2177 # what configure does when it calls configure scripts in
2178 # subdirectories, so they share the cache.
2179 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2180 # config.status only pays attention to the cache file if you give it the
2181 # --recheck option to rerun configure.
2182 #
2183 EOF
2184 # Ultrix sh set writes to stderr and can't be redirected directly,
2185 # and sets the high bit in the cache file unless we assign to the vars.
2186 (set) 2>&1 |
2187 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
2188 >> confcache
2189 if cmp -s $cache_file confcache; then
2190 :
2191 else
2192 if test -w $cache_file; then
2193 echo "updating cache $cache_file"
2194 cat confcache > $cache_file
2195 else
2196 echo "not updating unwritable cache $cache_file"
2197 fi
2198 fi
2199 rm -f confcache
2200
2201 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2202
2203 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2204 # Let make expand exec_prefix.
2205 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2206
2207 # Any assignment to VPATH causes Sun make to only execute
2208 # the first set of double-colon rules, so remove it if not needed.
2209 # If there is a colon in the path, we need to keep it.
2210 if test "x$srcdir" = x.; then
2211 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2212 fi
2213
2214 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2215
2216 DEFS=-DHAVE_CONFIG_H
2217
2218 # Without the "./", some shells look in PATH for config.status.
2219 : ${CONFIG_STATUS=./config.status}
2220
2221 echo creating $CONFIG_STATUS
2222 rm -f $CONFIG_STATUS
2223 cat > $CONFIG_STATUS <<EOF
2224 #! /bin/sh
2225 # Generated automatically by configure.
2226 # Run this file to recreate the current configuration.
2227 # This directory was configured as follows,
2228 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2229 #
2230 # $0 $ac_configure_args
2231 #
2232 # Compiler output produced by configure, useful for debugging
2233 # configure, is in ./config.log if it exists.
2234
2235 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2236 for ac_option
2237 do
2238 case "\$ac_option" in
2239 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2240 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2241 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2242 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2243 echo "$CONFIG_STATUS generated by autoconf version 2.10"
2244 exit 0 ;;
2245 -help | --help | --hel | --he | --h)
2246 echo "\$ac_cs_usage"; exit 0 ;;
2247 *) echo "\$ac_cs_usage"; exit 1 ;;
2248 esac
2249 done
2250
2251 ac_given_srcdir=$srcdir
2252 ac_given_INSTALL="$INSTALL"
2253
2254 trap 'rm -fr `echo "Makefile doc/Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2255 EOF
2256 cat >> $CONFIG_STATUS <<EOF
2257
2258 # Protect against being on the right side of a sed subst in config.status.
2259 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2260 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2261 $ac_vpsub
2262 $extrasub
2263 s%@CFLAGS@%$CFLAGS%g
2264 s%@CPPFLAGS@%$CPPFLAGS%g
2265 s%@CXXFLAGS@%$CXXFLAGS%g
2266 s%@DEFS@%$DEFS%g
2267 s%@LDFLAGS@%$LDFLAGS%g
2268 s%@LIBS@%$LIBS%g
2269 s%@exec_prefix@%$exec_prefix%g
2270 s%@prefix@%$prefix%g
2271 s%@program_transform_name@%$program_transform_name%g
2272 s%@bindir@%$bindir%g
2273 s%@sbindir@%$sbindir%g
2274 s%@libexecdir@%$libexecdir%g
2275 s%@datadir@%$datadir%g
2276 s%@sysconfdir@%$sysconfdir%g
2277 s%@sharedstatedir@%$sharedstatedir%g
2278 s%@localstatedir@%$localstatedir%g
2279 s%@libdir@%$libdir%g
2280 s%@includedir@%$includedir%g
2281 s%@oldincludedir@%$oldincludedir%g
2282 s%@infodir@%$infodir%g
2283 s%@mandir@%$mandir%g
2284 s%@host@%$host%g
2285 s%@host_alias@%$host_alias%g
2286 s%@host_cpu@%$host_cpu%g
2287 s%@host_vendor@%$host_vendor%g
2288 s%@host_os@%$host_os%g
2289 s%@target@%$target%g
2290 s%@target_alias@%$target_alias%g
2291 s%@target_cpu@%$target_cpu%g
2292 s%@target_vendor@%$target_vendor%g
2293 s%@target_os@%$target_os%g
2294 s%@build@%$build%g
2295 s%@build_alias@%$build_alias%g
2296 s%@build_cpu@%$build_cpu%g
2297 s%@build_vendor@%$build_vendor%g
2298 s%@build_os@%$build_os%g
2299 s%@CC@%$CC%g
2300 s%@HDEFINES@%$HDEFINES%g
2301 s%@AR@%$AR%g
2302 s%@RANLIB@%$RANLIB%g
2303 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2304 s%@INSTALL_DATA@%$INSTALL_DATA%g
2305 s%@ALLLIBS@%$ALLLIBS%g
2306 s%@PICFLAG@%$PICFLAG%g
2307 s%@SHLIB@%$SHLIB%g
2308 s%@SHLIB_CC@%$SHLIB_CC%g
2309 s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
2310 s%@COMMON_SHLIB@%$COMMON_SHLIB%g
2311 s%@PICLIST@%$PICLIST%g
2312 s%@SHLINK@%$SHLINK%g
2313 s%@INSTALL_SHLIB@%$INSTALL_SHLIB%g
2314 s%@HOST_64BIT_LONG@%$HOST_64BIT_LONG%g
2315 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
2316 s%@CPP@%$CPP%g
2317 s%@COREFILE@%$COREFILE%g
2318 s%@COREFLAG@%$COREFLAG%g
2319 s%@TDEFINES@%$TDEFINES%g
2320 s%@wordsize@%$wordsize%g
2321 s%@all_backends@%$all_backends%g
2322 s%@bfd_backends@%$bfd_backends%g
2323 s%@bfd_machines@%$bfd_machines%g
2324 s%@tdefaults@%$tdefaults%g
2325
2326 CEOF
2327 EOF
2328 cat >> $CONFIG_STATUS <<EOF
2329
2330 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile"}
2331 EOF
2332 cat >> $CONFIG_STATUS <<\EOF
2333 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2334 # Support "outfile[:infile]", defaulting infile="outfile.in".
2335 case "$ac_file" in
2336 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
2337 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2338 *) ac_file_in="${ac_file}.in" ;;
2339 esac
2340
2341 # Adjust relative srcdir, etc. for subdirectories.
2342
2343 # Remove last slash and all that follows it. Not all systems have dirname.
2344 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2345 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2346 # The file is in a subdirectory.
2347 test ! -d "$ac_dir" && mkdir "$ac_dir"
2348 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2349 # A "../" for each directory in $ac_dir_suffix.
2350 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2351 else
2352 ac_dir_suffix= ac_dots=
2353 fi
2354
2355 case "$ac_given_srcdir" in
2356 .) srcdir=.
2357 if test -z "$ac_dots"; then top_srcdir=.
2358 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2359 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2360 *) # Relative path.
2361 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2362 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2363 esac
2364
2365 case "$ac_given_INSTALL" in
2366 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2367 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2368 esac
2369 echo creating "$ac_file"
2370 rm -f "$ac_file"
2371 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2372 case "$ac_file" in
2373 *Makefile*) ac_comsub="1i\\
2374 # $configure_input" ;;
2375 *) ac_comsub= ;;
2376 esac
2377 sed -e "$ac_comsub
2378 s%@configure_input@%$configure_input%g
2379 s%@srcdir@%$srcdir%g
2380 s%@top_srcdir@%$top_srcdir%g
2381 s%@INSTALL@%$INSTALL%g
2382 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
2383 fi; done
2384 rm -f conftest.subs
2385
2386 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2387 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2388 #
2389 # ac_d sets the value in "#define NAME VALUE" lines.
2390 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2391 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2392 ac_dC='\3'
2393 ac_dD='%g'
2394 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2395 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2396 ac_uB='\([ ]\)%\1#\2define\3'
2397 ac_uC=' '
2398 ac_uD='\4%g'
2399 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2400 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2401 ac_eB='$%\1#\2define\3'
2402 ac_eC=' '
2403 ac_eD='%g'
2404
2405 CONFIG_HEADERS=${CONFIG_HEADERS-"config.h:config.in"}
2406 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2407 # Support "outfile[:infile]", defaulting infile="outfile.in".
2408 case "$ac_file" in
2409 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
2410 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2411 *) ac_file_in="${ac_file}.in" ;;
2412 esac
2413
2414 echo creating $ac_file
2415
2416 rm -f conftest.frag conftest.in conftest.out
2417 cp $ac_given_srcdir/$ac_file_in conftest.in
2418
2419 EOF
2420
2421 # Transform confdefs.h into a sed script conftest.vals that substitutes
2422 # the proper values into config.h.in to produce config.h. And first:
2423 # Protect against being on the right side of a sed subst in config.status.
2424 # Protect against being in an unquoted here document in config.status.
2425 rm -f conftest.vals
2426 cat > conftest.hdr <<\EOF
2427 s/[\\&%]/\\&/g
2428 s%[\\$`]%\\&%g
2429 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2430 s%ac_d%ac_u%gp
2431 s%ac_u%ac_e%gp
2432 EOF
2433 sed -n -f conftest.hdr confdefs.h > conftest.vals
2434 rm -f conftest.hdr
2435
2436 # This sed command replaces #undef with comments. This is necessary, for
2437 # example, in the case of _POSIX_SOURCE, which is predefined and required
2438 # on some systems where configure will not decide to define it.
2439 cat >> conftest.vals <<\EOF
2440 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2441 EOF
2442
2443 # Break up conftest.vals because some shells have a limit on
2444 # the size of here documents, and old seds have small limits too.
2445 # Maximum number of lines to put in a single here document.
2446 ac_max_here_lines=12
2447
2448 rm -f conftest.tail
2449 while :
2450 do
2451 ac_lines=`grep -c . conftest.vals`
2452 # grep -c gives empty output for an empty file on some AIX systems.
2453 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2454 # Write a limited-size here document to conftest.frag.
2455 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2456 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2457 echo 'CEOF
2458 sed -f conftest.frag conftest.in > conftest.out
2459 rm -f conftest.in
2460 mv conftest.out conftest.in
2461 ' >> $CONFIG_STATUS
2462 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2463 rm -f conftest.vals
2464 mv conftest.tail conftest.vals
2465 done
2466 rm -f conftest.vals
2467
2468 cat >> $CONFIG_STATUS <<\EOF
2469 rm -f conftest.frag conftest.h
2470 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2471 cat conftest.in >> conftest.h
2472 rm -f conftest.in
2473 if cmp -s $ac_file conftest.h 2>/dev/null; then
2474 echo "$ac_file is unchanged"
2475 rm -f conftest.h
2476 else
2477 # Remove last slash and all that follows it. Not all systems have dirname.
2478 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2479 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2480 # The file is in a subdirectory.
2481 test ! -d "$ac_dir" && mkdir "$ac_dir"
2482 fi
2483 rm -f $ac_file
2484 mv conftest.h $ac_file
2485 fi
2486 fi; done
2487
2488
2489 case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac
2490 exit 0
2491 EOF
2492 chmod +x $CONFIG_STATUS
2493 rm -fr confdefs* $ac_clean_files
2494 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2495
This page took 0.141562 seconds and 3 git commands to generate.