* config.bfd, configure.host, configure.in: Remove ia64-aix support.
[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.13
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-shared[=PKGS] build shared libraries [default=no]"
16 ac_help="$ac_help
17 --enable-static[=PKGS] build static libraries [default=yes]"
18 ac_help="$ac_help
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
20 ac_help="$ac_help
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
22 ac_help="$ac_help
23 --disable-libtool-lock avoid locking (might break parallel builds)"
24 ac_help="$ac_help
25 --with-pic try to use only PIC/non-PIC objects [default=use both]"
26 ac_help="$ac_help
27 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
28 ac_help="$ac_help
29 --enable-targets alternative target configurations"
30 ac_help="$ac_help
31 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
32 ac_help="$ac_help
33 --with-mmap try using mmap for BFD input files if available"
34 ac_help="$ac_help
35 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
36 ac_help="$ac_help
37 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
39 ac_help="$ac_help
40 --enable-install-libbfd controls installation of libbfd and related headers"
41 ac_help="$ac_help
42 --disable-nls do not use Native Language Support"
43 ac_help="$ac_help
44 --with-included-gettext use the GNU gettext library included here"
45
46 # Initialize some variables set by options.
47 # The variables have the same names as the options, with
48 # dashes changed to underlines.
49 build=NONE
50 cache_file=./config.cache
51 exec_prefix=NONE
52 host=NONE
53 no_create=
54 nonopt=NONE
55 no_recursion=
56 prefix=NONE
57 program_prefix=NONE
58 program_suffix=NONE
59 program_transform_name=s,x,x,
60 silent=
61 site=
62 srcdir=
63 target=NONE
64 verbose=
65 x_includes=NONE
66 x_libraries=NONE
67 bindir='${exec_prefix}/bin'
68 sbindir='${exec_prefix}/sbin'
69 libexecdir='${exec_prefix}/libexec'
70 datadir='${prefix}/share'
71 sysconfdir='${prefix}/etc'
72 sharedstatedir='${prefix}/com'
73 localstatedir='${prefix}/var'
74 libdir='${exec_prefix}/lib'
75 includedir='${prefix}/include'
76 oldincludedir='/usr/include'
77 infodir='${prefix}/info'
78 mandir='${prefix}/man'
79
80 # Initialize some other variables.
81 subdirs=
82 MFLAGS= MAKEFLAGS=
83 SHELL=${CONFIG_SHELL-/bin/sh}
84 # Maximum number of lines to put in a shell here document.
85 ac_max_here_lines=12
86
87 ac_prev=
88 for ac_option
89 do
90
91 # If the previous option needs an argument, assign it.
92 if test -n "$ac_prev"; then
93 eval "$ac_prev=\$ac_option"
94 ac_prev=
95 continue
96 fi
97
98 case "$ac_option" in
99 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
100 *) ac_optarg= ;;
101 esac
102
103 # Accept the important Cygnus configure options, so we can diagnose typos.
104
105 case "$ac_option" in
106
107 -bindir | --bindir | --bindi | --bind | --bin | --bi)
108 ac_prev=bindir ;;
109 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
110 bindir="$ac_optarg" ;;
111
112 -build | --build | --buil | --bui | --bu)
113 ac_prev=build ;;
114 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
115 build="$ac_optarg" ;;
116
117 -cache-file | --cache-file | --cache-fil | --cache-fi \
118 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
119 ac_prev=cache_file ;;
120 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
121 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
122 cache_file="$ac_optarg" ;;
123
124 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
125 ac_prev=datadir ;;
126 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
127 | --da=*)
128 datadir="$ac_optarg" ;;
129
130 -disable-* | --disable-*)
131 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 fi
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}=no" ;;
138
139 -enable-* | --enable-*)
140 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
141 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144 fi
145 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146 case "$ac_option" in
147 *=*) ;;
148 *) ac_optarg=yes ;;
149 esac
150 eval "enable_${ac_feature}='$ac_optarg'" ;;
151
152 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
153 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
154 | --exec | --exe | --ex)
155 ac_prev=exec_prefix ;;
156 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
157 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
158 | --exec=* | --exe=* | --ex=*)
159 exec_prefix="$ac_optarg" ;;
160
161 -gas | --gas | --ga | --g)
162 # Obsolete; use --with-gas.
163 with_gas=yes ;;
164
165 -help | --help | --hel | --he)
166 # Omit some internal or obsolete options to make the list less imposing.
167 # This message is too long to be a string in the A/UX 3.1 sh.
168 cat << EOF
169 Usage: configure [options] [host]
170 Options: [defaults in brackets after descriptions]
171 Configuration:
172 --cache-file=FILE cache test results in FILE
173 --help print this message
174 --no-create do not create output files
175 --quiet, --silent do not print \`checking...' messages
176 --version print the version of autoconf that created configure
177 Directory and file names:
178 --prefix=PREFIX install architecture-independent files in PREFIX
179 [$ac_default_prefix]
180 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
181 [same as prefix]
182 --bindir=DIR user executables in DIR [EPREFIX/bin]
183 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
184 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
185 --datadir=DIR read-only architecture-independent data in DIR
186 [PREFIX/share]
187 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
188 --sharedstatedir=DIR modifiable architecture-independent data in DIR
189 [PREFIX/com]
190 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
191 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
192 --includedir=DIR C header files in DIR [PREFIX/include]
193 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
194 --infodir=DIR info documentation in DIR [PREFIX/info]
195 --mandir=DIR man documentation in DIR [PREFIX/man]
196 --srcdir=DIR find the sources in DIR [configure dir or ..]
197 --program-prefix=PREFIX prepend PREFIX to installed program names
198 --program-suffix=SUFFIX append SUFFIX to installed program names
199 --program-transform-name=PROGRAM
200 run sed PROGRAM on installed program names
201 EOF
202 cat << EOF
203 Host type:
204 --build=BUILD configure for building on BUILD [BUILD=HOST]
205 --host=HOST configure for HOST [guessed]
206 --target=TARGET configure for TARGET [TARGET=HOST]
207 Features and packages:
208 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
209 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
210 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
211 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
212 --x-includes=DIR X include files are in DIR
213 --x-libraries=DIR X library files are in DIR
214 EOF
215 if test -n "$ac_help"; then
216 echo "--enable and --with options recognized:$ac_help"
217 fi
218 exit 0 ;;
219
220 -host | --host | --hos | --ho)
221 ac_prev=host ;;
222 -host=* | --host=* | --hos=* | --ho=*)
223 host="$ac_optarg" ;;
224
225 -includedir | --includedir | --includedi | --included | --include \
226 | --includ | --inclu | --incl | --inc)
227 ac_prev=includedir ;;
228 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
229 | --includ=* | --inclu=* | --incl=* | --inc=*)
230 includedir="$ac_optarg" ;;
231
232 -infodir | --infodir | --infodi | --infod | --info | --inf)
233 ac_prev=infodir ;;
234 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
235 infodir="$ac_optarg" ;;
236
237 -libdir | --libdir | --libdi | --libd)
238 ac_prev=libdir ;;
239 -libdir=* | --libdir=* | --libdi=* | --libd=*)
240 libdir="$ac_optarg" ;;
241
242 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
243 | --libexe | --libex | --libe)
244 ac_prev=libexecdir ;;
245 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
246 | --libexe=* | --libex=* | --libe=*)
247 libexecdir="$ac_optarg" ;;
248
249 -localstatedir | --localstatedir | --localstatedi | --localstated \
250 | --localstate | --localstat | --localsta | --localst \
251 | --locals | --local | --loca | --loc | --lo)
252 ac_prev=localstatedir ;;
253 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
254 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
255 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
256 localstatedir="$ac_optarg" ;;
257
258 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
259 ac_prev=mandir ;;
260 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
261 mandir="$ac_optarg" ;;
262
263 -nfp | --nfp | --nf)
264 # Obsolete; use --without-fp.
265 with_fp=no ;;
266
267 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
268 | --no-cr | --no-c)
269 no_create=yes ;;
270
271 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
272 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
273 no_recursion=yes ;;
274
275 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
276 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
277 | --oldin | --oldi | --old | --ol | --o)
278 ac_prev=oldincludedir ;;
279 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
280 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
281 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
282 oldincludedir="$ac_optarg" ;;
283
284 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
285 ac_prev=prefix ;;
286 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
287 prefix="$ac_optarg" ;;
288
289 -program-prefix | --program-prefix | --program-prefi | --program-pref \
290 | --program-pre | --program-pr | --program-p)
291 ac_prev=program_prefix ;;
292 -program-prefix=* | --program-prefix=* | --program-prefi=* \
293 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
294 program_prefix="$ac_optarg" ;;
295
296 -program-suffix | --program-suffix | --program-suffi | --program-suff \
297 | --program-suf | --program-su | --program-s)
298 ac_prev=program_suffix ;;
299 -program-suffix=* | --program-suffix=* | --program-suffi=* \
300 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
301 program_suffix="$ac_optarg" ;;
302
303 -program-transform-name | --program-transform-name \
304 | --program-transform-nam | --program-transform-na \
305 | --program-transform-n | --program-transform- \
306 | --program-transform | --program-transfor \
307 | --program-transfo | --program-transf \
308 | --program-trans | --program-tran \
309 | --progr-tra | --program-tr | --program-t)
310 ac_prev=program_transform_name ;;
311 -program-transform-name=* | --program-transform-name=* \
312 | --program-transform-nam=* | --program-transform-na=* \
313 | --program-transform-n=* | --program-transform-=* \
314 | --program-transform=* | --program-transfor=* \
315 | --program-transfo=* | --program-transf=* \
316 | --program-trans=* | --program-tran=* \
317 | --progr-tra=* | --program-tr=* | --program-t=*)
318 program_transform_name="$ac_optarg" ;;
319
320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
321 | -silent | --silent | --silen | --sile | --sil)
322 silent=yes ;;
323
324 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
325 ac_prev=sbindir ;;
326 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
327 | --sbi=* | --sb=*)
328 sbindir="$ac_optarg" ;;
329
330 -sharedstatedir | --sharedstatedir | --sharedstatedi \
331 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
332 | --sharedst | --shareds | --shared | --share | --shar \
333 | --sha | --sh)
334 ac_prev=sharedstatedir ;;
335 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
336 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
337 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
338 | --sha=* | --sh=*)
339 sharedstatedir="$ac_optarg" ;;
340
341 -site | --site | --sit)
342 ac_prev=site ;;
343 -site=* | --site=* | --sit=*)
344 site="$ac_optarg" ;;
345
346 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
347 ac_prev=srcdir ;;
348 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
349 srcdir="$ac_optarg" ;;
350
351 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
352 | --syscon | --sysco | --sysc | --sys | --sy)
353 ac_prev=sysconfdir ;;
354 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
355 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
356 sysconfdir="$ac_optarg" ;;
357
358 -target | --target | --targe | --targ | --tar | --ta | --t)
359 ac_prev=target ;;
360 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
361 target="$ac_optarg" ;;
362
363 -v | -verbose | --verbose | --verbos | --verbo | --verb)
364 verbose=yes ;;
365
366 -version | --version | --versio | --versi | --vers)
367 echo "configure generated by autoconf version 2.13"
368 exit 0 ;;
369
370 -with-* | --with-*)
371 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 fi
376 ac_package=`echo $ac_package| sed 's/-/_/g'`
377 case "$ac_option" in
378 *=*) ;;
379 *) ac_optarg=yes ;;
380 esac
381 eval "with_${ac_package}='$ac_optarg'" ;;
382
383 -without-* | --without-*)
384 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
385 # Reject names that are not valid shell variable names.
386 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388 fi
389 ac_package=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}=no" ;;
391
392 --x)
393 # Obsolete; use --with-x.
394 with_x=yes ;;
395
396 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
397 | --x-incl | --x-inc | --x-in | --x-i)
398 ac_prev=x_includes ;;
399 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
400 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
401 x_includes="$ac_optarg" ;;
402
403 -x-libraries | --x-libraries | --x-librarie | --x-librari \
404 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
405 ac_prev=x_libraries ;;
406 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
407 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
408 x_libraries="$ac_optarg" ;;
409
410 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
411 ;;
412
413 *)
414 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
415 echo "configure: warning: $ac_option: invalid host type" 1>&2
416 fi
417 if test "x$nonopt" != xNONE; then
418 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
419 fi
420 nonopt="$ac_option"
421 ;;
422
423 esac
424 done
425
426 if test -n "$ac_prev"; then
427 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
428 fi
429
430 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
431
432 # File descriptor usage:
433 # 0 standard input
434 # 1 file creation
435 # 2 errors and warnings
436 # 3 some systems may open it to /dev/tty
437 # 4 used on the Kubota Titan
438 # 6 checking for... messages and results
439 # 5 compiler messages saved in config.log
440 if test "$silent" = yes; then
441 exec 6>/dev/null
442 else
443 exec 6>&1
444 fi
445 exec 5>./config.log
446
447 echo "\
448 This file contains any messages produced by compilers while
449 running configure, to aid debugging if configure makes a mistake.
450 " 1>&5
451
452 # Strip out --no-create and --no-recursion so they do not pile up.
453 # Also quote any args containing shell metacharacters.
454 ac_configure_args=
455 for ac_arg
456 do
457 case "$ac_arg" in
458 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
459 | --no-cr | --no-c) ;;
460 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
461 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
462 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
463 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
464 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
465 esac
466 done
467
468 # NLS nuisances.
469 # Only set these to C if already set. These must not be set unconditionally
470 # because not all systems understand e.g. LANG=C (notably SCO).
471 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
472 # Non-C LC_CTYPE values break the ctype check.
473 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
474 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
475 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
476 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
477
478 # confdefs.h avoids OS command line length limits that DEFS can exceed.
479 rm -rf conftest* confdefs.h
480 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
481 echo > confdefs.h
482
483 # A filename unique to this package, relative to the directory that
484 # configure is in, which we can look for to find out if srcdir is correct.
485 ac_unique_file=libbfd.c
486
487 # Find the source files, if location was not specified.
488 if test -z "$srcdir"; then
489 ac_srcdir_defaulted=yes
490 # Try the directory containing this script, then its parent.
491 ac_prog=$0
492 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
493 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
494 srcdir=$ac_confdir
495 if test ! -r $srcdir/$ac_unique_file; then
496 srcdir=..
497 fi
498 else
499 ac_srcdir_defaulted=no
500 fi
501 if test ! -r $srcdir/$ac_unique_file; then
502 if test "$ac_srcdir_defaulted" = yes; then
503 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
504 else
505 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
506 fi
507 fi
508 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
509
510 # Prefer explicitly selected file to automatically selected ones.
511 if test -z "$CONFIG_SITE"; then
512 if test "x$prefix" != xNONE; then
513 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
514 else
515 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
516 fi
517 fi
518 for ac_site_file in $CONFIG_SITE; do
519 if test -r "$ac_site_file"; then
520 echo "loading site script $ac_site_file"
521 . "$ac_site_file"
522 fi
523 done
524
525 if test -r "$cache_file"; then
526 echo "loading cache $cache_file"
527 . $cache_file
528 else
529 echo "creating cache $cache_file"
530 > $cache_file
531 fi
532
533 ac_ext=c
534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
535 ac_cpp='$CPP $CPPFLAGS'
536 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
537 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
538 cross_compiling=$ac_cv_prog_cc_cross
539
540 ac_exeext=
541 ac_objext=o
542 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
543 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
544 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
545 ac_n= ac_c='
546 ' ac_t=' '
547 else
548 ac_n=-n ac_c= ac_t=
549 fi
550 else
551 ac_n= ac_c='\c' ac_t=
552 fi
553
554 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
555 echo "configure:556: checking for Cygwin environment" >&5
556 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
557 echo $ac_n "(cached) $ac_c" 1>&6
558 else
559 cat > conftest.$ac_ext <<EOF
560 #line 561 "configure"
561 #include "confdefs.h"
562
563 int main() {
564
565 #ifndef __CYGWIN__
566 #define __CYGWIN__ __CYGWIN32__
567 #endif
568 return __CYGWIN__;
569 ; return 0; }
570 EOF
571 if { (eval echo configure:572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
572 rm -rf conftest*
573 ac_cv_cygwin=yes
574 else
575 echo "configure: failed program was:" >&5
576 cat conftest.$ac_ext >&5
577 rm -rf conftest*
578 ac_cv_cygwin=no
579 fi
580 rm -f conftest*
581 rm -f conftest*
582 fi
583
584 echo "$ac_t""$ac_cv_cygwin" 1>&6
585 CYGWIN=
586 test "$ac_cv_cygwin" = yes && CYGWIN=yes
587 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
588 echo "configure:589: checking for mingw32 environment" >&5
589 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
590 echo $ac_n "(cached) $ac_c" 1>&6
591 else
592 cat > conftest.$ac_ext <<EOF
593 #line 594 "configure"
594 #include "confdefs.h"
595
596 int main() {
597 return __MINGW32__;
598 ; return 0; }
599 EOF
600 if { (eval echo configure:601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
601 rm -rf conftest*
602 ac_cv_mingw32=yes
603 else
604 echo "configure: failed program was:" >&5
605 cat conftest.$ac_ext >&5
606 rm -rf conftest*
607 ac_cv_mingw32=no
608 fi
609 rm -f conftest*
610 rm -f conftest*
611 fi
612
613 echo "$ac_t""$ac_cv_mingw32" 1>&6
614 MINGW32=
615 test "$ac_cv_mingw32" = yes && MINGW32=yes
616
617
618 ac_aux_dir=
619 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
620 if test -f $ac_dir/install-sh; then
621 ac_aux_dir=$ac_dir
622 ac_install_sh="$ac_aux_dir/install-sh -c"
623 break
624 elif test -f $ac_dir/install.sh; then
625 ac_aux_dir=$ac_dir
626 ac_install_sh="$ac_aux_dir/install.sh -c"
627 break
628 fi
629 done
630 if test -z "$ac_aux_dir"; then
631 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
632 fi
633 ac_config_guess=$ac_aux_dir/config.guess
634 ac_config_sub=$ac_aux_dir/config.sub
635 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
636
637
638 # Do some error checking and defaulting for the host and target type.
639 # The inputs are:
640 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
641 #
642 # The rules are:
643 # 1. You are not allowed to specify --host, --target, and nonopt at the
644 # same time.
645 # 2. Host defaults to nonopt.
646 # 3. If nonopt is not specified, then host defaults to the current host,
647 # as determined by config.guess.
648 # 4. Target and build default to nonopt.
649 # 5. If nonopt is not specified, then target and build default to host.
650
651 # The aliases save the names the user supplied, while $host etc.
652 # will get canonicalized.
653 case $host---$target---$nonopt in
654 NONE---*---* | *---NONE---* | *---*---NONE) ;;
655 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
656 esac
657
658
659 # Make sure we can run config.sub.
660 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
661 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
662 fi
663
664 echo $ac_n "checking host system type""... $ac_c" 1>&6
665 echo "configure:666: checking host system type" >&5
666
667 host_alias=$host
668 case "$host_alias" in
669 NONE)
670 case $nonopt in
671 NONE)
672 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
673 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
674 fi ;;
675 *) host_alias=$nonopt ;;
676 esac ;;
677 esac
678
679 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
680 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
681 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
682 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
683 echo "$ac_t""$host" 1>&6
684
685 echo $ac_n "checking target system type""... $ac_c" 1>&6
686 echo "configure:687: checking target system type" >&5
687
688 target_alias=$target
689 case "$target_alias" in
690 NONE)
691 case $nonopt in
692 NONE) target_alias=$host_alias ;;
693 *) target_alias=$nonopt ;;
694 esac ;;
695 esac
696
697 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
698 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
699 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
700 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
701 echo "$ac_t""$target" 1>&6
702
703 echo $ac_n "checking build system type""... $ac_c" 1>&6
704 echo "configure:705: checking build system type" >&5
705
706 build_alias=$build
707 case "$build_alias" in
708 NONE)
709 case $nonopt in
710 NONE) build_alias=$host_alias ;;
711 *) build_alias=$nonopt ;;
712 esac ;;
713 esac
714
715 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
716 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
717 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
718 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
719 echo "$ac_t""$build" 1>&6
720
721 test "$host_alias" != "$target_alias" &&
722 test "$program_prefix$program_suffix$program_transform_name" = \
723 NONENONEs,x,x, &&
724 program_prefix=${target_alias}-
725
726
727 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
728 echo "configure:729: checking for strerror in -lcposix" >&5
729 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
730 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
731 echo $ac_n "(cached) $ac_c" 1>&6
732 else
733 ac_save_LIBS="$LIBS"
734 LIBS="-lcposix $LIBS"
735 cat > conftest.$ac_ext <<EOF
736 #line 737 "configure"
737 #include "confdefs.h"
738 /* Override any gcc2 internal prototype to avoid an error. */
739 /* We use char because int might match the return type of a gcc2
740 builtin and then its argument prototype would still apply. */
741 char strerror();
742
743 int main() {
744 strerror()
745 ; return 0; }
746 EOF
747 if { (eval echo configure:748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
748 rm -rf conftest*
749 eval "ac_cv_lib_$ac_lib_var=yes"
750 else
751 echo "configure: failed program was:" >&5
752 cat conftest.$ac_ext >&5
753 rm -rf conftest*
754 eval "ac_cv_lib_$ac_lib_var=no"
755 fi
756 rm -f conftest*
757 LIBS="$ac_save_LIBS"
758
759 fi
760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
761 echo "$ac_t""yes" 1>&6
762 LIBS="$LIBS -lcposix"
763 else
764 echo "$ac_t""no" 1>&6
765 fi
766
767
768
769
770 # Find a good install program. We prefer a C program (faster),
771 # so one script is as good as another. But avoid the broken or
772 # incompatible versions:
773 # SysV /etc/install, /usr/sbin/install
774 # SunOS /usr/etc/install
775 # IRIX /sbin/install
776 # AIX /bin/install
777 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
778 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
779 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
780 # ./install, which can be erroneously created by make from ./install.sh.
781 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
782 echo "configure:783: checking for a BSD compatible install" >&5
783 if test -z "$INSTALL"; then
784 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
785 echo $ac_n "(cached) $ac_c" 1>&6
786 else
787 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
788 for ac_dir in $PATH; do
789 # Account for people who put trailing slashes in PATH elements.
790 case "$ac_dir/" in
791 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
792 *)
793 # OSF1 and SCO ODT 3.0 have their own names for install.
794 # Don't use installbsd from OSF since it installs stuff as root
795 # by default.
796 for ac_prog in ginstall scoinst install; do
797 if test -f $ac_dir/$ac_prog; then
798 if test $ac_prog = install &&
799 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
800 # AIX install. It has an incompatible calling convention.
801 :
802 else
803 ac_cv_path_install="$ac_dir/$ac_prog -c"
804 break 2
805 fi
806 fi
807 done
808 ;;
809 esac
810 done
811 IFS="$ac_save_IFS"
812
813 fi
814 if test "${ac_cv_path_install+set}" = set; then
815 INSTALL="$ac_cv_path_install"
816 else
817 # As a last resort, use the slow shell script. We don't cache a
818 # path for INSTALL within a source directory, because that will
819 # break other packages using the cache if that directory is
820 # removed, or if the path is relative.
821 INSTALL="$ac_install_sh"
822 fi
823 fi
824 echo "$ac_t""$INSTALL" 1>&6
825
826 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
827 # It thinks the first close brace ends the variable substitution.
828 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
829
830 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
831
832 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
833
834 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
835 echo "configure:836: checking whether build environment is sane" >&5
836 # Just in case
837 sleep 1
838 echo timestamp > conftestfile
839 # Do `set' in a subshell so we don't clobber the current shell's
840 # arguments. Must try -L first in case configure is actually a
841 # symlink; some systems play weird games with the mod time of symlinks
842 # (eg FreeBSD returns the mod time of the symlink's containing
843 # directory).
844 if (
845 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
846 if test "$*" = "X"; then
847 # -L didn't work.
848 set X `ls -t $srcdir/configure conftestfile`
849 fi
850 if test "$*" != "X $srcdir/configure conftestfile" \
851 && test "$*" != "X conftestfile $srcdir/configure"; then
852
853 # If neither matched, then we have a broken ls. This can happen
854 # if, for instance, CONFIG_SHELL is bash and it inherits a
855 # broken ls alias from the environment. This has actually
856 # happened. Such a system could not be considered "sane".
857 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
858 alias in your environment" 1>&2; exit 1; }
859 fi
860
861 test "$2" = conftestfile
862 )
863 then
864 # Ok.
865 :
866 else
867 { echo "configure: error: newly created file is older than distributed files!
868 Check your system clock" 1>&2; exit 1; }
869 fi
870 rm -f conftest*
871 echo "$ac_t""yes" 1>&6
872 if test "$program_transform_name" = s,x,x,; then
873 program_transform_name=
874 else
875 # Double any \ or $. echo might interpret backslashes.
876 cat <<\EOF_SED > conftestsed
877 s,\\,\\\\,g; s,\$,$$,g
878 EOF_SED
879 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
880 rm -f conftestsed
881 fi
882 test "$program_prefix" != NONE &&
883 program_transform_name="s,^,${program_prefix},; $program_transform_name"
884 # Use a double $ so make ignores it.
885 test "$program_suffix" != NONE &&
886 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
887
888 # sed with no file args requires a program.
889 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
890
891 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
892 echo "configure:893: checking whether ${MAKE-make} sets \${MAKE}" >&5
893 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
894 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
895 echo $ac_n "(cached) $ac_c" 1>&6
896 else
897 cat > conftestmake <<\EOF
898 all:
899 @echo 'ac_maketemp="${MAKE}"'
900 EOF
901 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
902 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
903 if test -n "$ac_maketemp"; then
904 eval ac_cv_prog_make_${ac_make}_set=yes
905 else
906 eval ac_cv_prog_make_${ac_make}_set=no
907 fi
908 rm -f conftestmake
909 fi
910 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
911 echo "$ac_t""yes" 1>&6
912 SET_MAKE=
913 else
914 echo "$ac_t""no" 1>&6
915 SET_MAKE="MAKE=${MAKE-make}"
916 fi
917
918
919 PACKAGE=bfd
920
921 VERSION=2.14.90
922
923 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
924 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
925 fi
926 cat >> confdefs.h <<EOF
927 #define PACKAGE "$PACKAGE"
928 EOF
929
930 cat >> confdefs.h <<EOF
931 #define VERSION "$VERSION"
932 EOF
933
934
935
936 missing_dir=`cd $ac_aux_dir && pwd`
937 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
938 echo "configure:939: checking for working aclocal" >&5
939 # Run test in a subshell; some versions of sh will print an error if
940 # an executable is not found, even if stderr is redirected.
941 # Redirect stdin to placate older versions of autoconf. Sigh.
942 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
943 ACLOCAL=aclocal
944 echo "$ac_t""found" 1>&6
945 else
946 ACLOCAL="$missing_dir/missing aclocal"
947 echo "$ac_t""missing" 1>&6
948 fi
949
950 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
951 echo "configure:952: checking for working autoconf" >&5
952 # Run test in a subshell; some versions of sh will print an error if
953 # an executable is not found, even if stderr is redirected.
954 # Redirect stdin to placate older versions of autoconf. Sigh.
955 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
956 AUTOCONF=autoconf
957 echo "$ac_t""found" 1>&6
958 else
959 AUTOCONF="$missing_dir/missing autoconf"
960 echo "$ac_t""missing" 1>&6
961 fi
962
963 echo $ac_n "checking for working automake""... $ac_c" 1>&6
964 echo "configure:965: checking for working automake" >&5
965 # Run test in a subshell; some versions of sh will print an error if
966 # an executable is not found, even if stderr is redirected.
967 # Redirect stdin to placate older versions of autoconf. Sigh.
968 if (automake --version) < /dev/null > /dev/null 2>&1; then
969 AUTOMAKE=automake
970 echo "$ac_t""found" 1>&6
971 else
972 AUTOMAKE="$missing_dir/missing automake"
973 echo "$ac_t""missing" 1>&6
974 fi
975
976 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
977 echo "configure:978: checking for working autoheader" >&5
978 # Run test in a subshell; some versions of sh will print an error if
979 # an executable is not found, even if stderr is redirected.
980 # Redirect stdin to placate older versions of autoconf. Sigh.
981 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
982 AUTOHEADER=autoheader
983 echo "$ac_t""found" 1>&6
984 else
985 AUTOHEADER="$missing_dir/missing autoheader"
986 echo "$ac_t""missing" 1>&6
987 fi
988
989 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
990 echo "configure:991: checking for working makeinfo" >&5
991 # Run test in a subshell; some versions of sh will print an error if
992 # an executable is not found, even if stderr is redirected.
993 # Redirect stdin to placate older versions of autoconf. Sigh.
994 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
995 MAKEINFO=makeinfo
996 echo "$ac_t""found" 1>&6
997 else
998 MAKEINFO="$missing_dir/missing makeinfo"
999 echo "$ac_t""missing" 1>&6
1000 fi
1001
1002
1003 # Uncomment the next line to remove the date from the reported bfd version
1004 #is_release=y
1005
1006 bfd_version=`echo "${VERSION}" | sed -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$/\1\2\3\4\5/'`
1007
1008 bfd_version_string="\"${VERSION}\""
1009 if test x${is_release} = x; then
1010 bfd_version_date=`sed -n -e 's/.*DATE //p' < ${srcdir}/version.h`
1011 bfd_version_string="\"${VERSION} ${bfd_version_date}\""
1012 fi
1013
1014
1015
1016 if test $host != $build; then
1017 ac_tool_prefix=${host_alias}-
1018 else
1019 ac_tool_prefix=
1020 fi
1021
1022 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1023 set dummy ${ac_tool_prefix}ar; ac_word=$2
1024 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1025 echo "configure:1026: checking for $ac_word" >&5
1026 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1027 echo $ac_n "(cached) $ac_c" 1>&6
1028 else
1029 if test -n "$AR"; then
1030 ac_cv_prog_AR="$AR" # Let the user override the test.
1031 else
1032 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1033 ac_dummy="$PATH"
1034 for ac_dir in $ac_dummy; do
1035 test -z "$ac_dir" && ac_dir=.
1036 if test -f $ac_dir/$ac_word; then
1037 ac_cv_prog_AR="${ac_tool_prefix}ar"
1038 break
1039 fi
1040 done
1041 IFS="$ac_save_ifs"
1042 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1043 fi
1044 fi
1045 AR="$ac_cv_prog_AR"
1046 if test -n "$AR"; then
1047 echo "$ac_t""$AR" 1>&6
1048 else
1049 echo "$ac_t""no" 1>&6
1050 fi
1051
1052
1053
1054 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1055 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1056 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1057 echo "configure:1058: checking for $ac_word" >&5
1058 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1059 echo $ac_n "(cached) $ac_c" 1>&6
1060 else
1061 if test -n "$RANLIB"; then
1062 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1063 else
1064 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1065 ac_dummy="$PATH"
1066 for ac_dir in $ac_dummy; do
1067 test -z "$ac_dir" && ac_dir=.
1068 if test -f $ac_dir/$ac_word; then
1069 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1070 break
1071 fi
1072 done
1073 IFS="$ac_save_ifs"
1074 fi
1075 fi
1076 RANLIB="$ac_cv_prog_RANLIB"
1077 if test -n "$RANLIB"; then
1078 echo "$ac_t""$RANLIB" 1>&6
1079 else
1080 echo "$ac_t""no" 1>&6
1081 fi
1082
1083
1084 if test -z "$ac_cv_prog_RANLIB"; then
1085 if test -n "$ac_tool_prefix"; then
1086 # Extract the first word of "ranlib", so it can be a program name with args.
1087 set dummy ranlib; ac_word=$2
1088 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1089 echo "configure:1090: checking for $ac_word" >&5
1090 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1091 echo $ac_n "(cached) $ac_c" 1>&6
1092 else
1093 if test -n "$RANLIB"; then
1094 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1095 else
1096 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1097 ac_dummy="$PATH"
1098 for ac_dir in $ac_dummy; do
1099 test -z "$ac_dir" && ac_dir=.
1100 if test -f $ac_dir/$ac_word; then
1101 ac_cv_prog_RANLIB="ranlib"
1102 break
1103 fi
1104 done
1105 IFS="$ac_save_ifs"
1106 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1107 fi
1108 fi
1109 RANLIB="$ac_cv_prog_RANLIB"
1110 if test -n "$RANLIB"; then
1111 echo "$ac_t""$RANLIB" 1>&6
1112 else
1113 echo "$ac_t""no" 1>&6
1114 fi
1115
1116 else
1117 RANLIB=":"
1118 fi
1119 fi
1120
1121
1122 # Check whether --enable-shared or --disable-shared was given.
1123 if test "${enable_shared+set}" = set; then
1124 enableval="$enable_shared"
1125 p=${PACKAGE-default}
1126 case $enableval in
1127 yes) enable_shared=yes ;;
1128 no) enable_shared=no ;;
1129 *)
1130 enable_shared=no
1131 # Look at the argument we got. We use all the common list separators.
1132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1133 for pkg in $enableval; do
1134 if test "X$pkg" = "X$p"; then
1135 enable_shared=yes
1136 fi
1137 done
1138 IFS="$ac_save_ifs"
1139 ;;
1140 esac
1141 else
1142 enable_shared=no
1143 fi
1144
1145
1146 # Check whether --enable-static or --disable-static was given.
1147 if test "${enable_static+set}" = set; then
1148 enableval="$enable_static"
1149 p=${PACKAGE-default}
1150 case $enableval in
1151 yes) enable_static=yes ;;
1152 no) enable_static=no ;;
1153 *)
1154 enable_static=no
1155 # Look at the argument we got. We use all the common list separators.
1156 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1157 for pkg in $enableval; do
1158 if test "X$pkg" = "X$p"; then
1159 enable_static=yes
1160 fi
1161 done
1162 IFS="$ac_save_ifs"
1163 ;;
1164 esac
1165 else
1166 enable_static=yes
1167 fi
1168
1169 # Check whether --enable-fast-install or --disable-fast-install was given.
1170 if test "${enable_fast_install+set}" = set; then
1171 enableval="$enable_fast_install"
1172 p=${PACKAGE-default}
1173 case $enableval in
1174 yes) enable_fast_install=yes ;;
1175 no) enable_fast_install=no ;;
1176 *)
1177 enable_fast_install=no
1178 # Look at the argument we got. We use all the common list separators.
1179 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1180 for pkg in $enableval; do
1181 if test "X$pkg" = "X$p"; then
1182 enable_fast_install=yes
1183 fi
1184 done
1185 IFS="$ac_save_ifs"
1186 ;;
1187 esac
1188 else
1189 enable_fast_install=yes
1190 fi
1191
1192 # Extract the first word of "gcc", so it can be a program name with args.
1193 set dummy gcc; ac_word=$2
1194 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1195 echo "configure:1196: checking for $ac_word" >&5
1196 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1197 echo $ac_n "(cached) $ac_c" 1>&6
1198 else
1199 if test -n "$CC"; then
1200 ac_cv_prog_CC="$CC" # Let the user override the test.
1201 else
1202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1203 ac_dummy="$PATH"
1204 for ac_dir in $ac_dummy; do
1205 test -z "$ac_dir" && ac_dir=.
1206 if test -f $ac_dir/$ac_word; then
1207 ac_cv_prog_CC="gcc"
1208 break
1209 fi
1210 done
1211 IFS="$ac_save_ifs"
1212 fi
1213 fi
1214 CC="$ac_cv_prog_CC"
1215 if test -n "$CC"; then
1216 echo "$ac_t""$CC" 1>&6
1217 else
1218 echo "$ac_t""no" 1>&6
1219 fi
1220
1221 if test -z "$CC"; then
1222 # Extract the first word of "cc", so it can be a program name with args.
1223 set dummy cc; ac_word=$2
1224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1225 echo "configure:1226: checking for $ac_word" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1228 else
1229 if test -n "$CC"; then
1230 ac_cv_prog_CC="$CC" # Let the user override the test.
1231 else
1232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1233 ac_prog_rejected=no
1234 ac_dummy="$PATH"
1235 for ac_dir in $ac_dummy; do
1236 test -z "$ac_dir" && ac_dir=.
1237 if test -f $ac_dir/$ac_word; then
1238 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1239 ac_prog_rejected=yes
1240 continue
1241 fi
1242 ac_cv_prog_CC="cc"
1243 break
1244 fi
1245 done
1246 IFS="$ac_save_ifs"
1247 if test $ac_prog_rejected = yes; then
1248 # We found a bogon in the path, so make sure we never use it.
1249 set dummy $ac_cv_prog_CC
1250 shift
1251 if test $# -gt 0; then
1252 # We chose a different compiler from the bogus one.
1253 # However, it has the same basename, so the bogon will be chosen
1254 # first if we set CC to just the basename; use the full file name.
1255 shift
1256 set dummy "$ac_dir/$ac_word" "$@"
1257 shift
1258 ac_cv_prog_CC="$@"
1259 fi
1260 fi
1261 fi
1262 fi
1263 CC="$ac_cv_prog_CC"
1264 if test -n "$CC"; then
1265 echo "$ac_t""$CC" 1>&6
1266 else
1267 echo "$ac_t""no" 1>&6
1268 fi
1269
1270 if test -z "$CC"; then
1271 case "`uname -s`" in
1272 *win32* | *WIN32*)
1273 # Extract the first word of "cl", so it can be a program name with args.
1274 set dummy cl; ac_word=$2
1275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1276 echo "configure:1277: checking for $ac_word" >&5
1277 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1278 echo $ac_n "(cached) $ac_c" 1>&6
1279 else
1280 if test -n "$CC"; then
1281 ac_cv_prog_CC="$CC" # Let the user override the test.
1282 else
1283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1284 ac_dummy="$PATH"
1285 for ac_dir in $ac_dummy; do
1286 test -z "$ac_dir" && ac_dir=.
1287 if test -f $ac_dir/$ac_word; then
1288 ac_cv_prog_CC="cl"
1289 break
1290 fi
1291 done
1292 IFS="$ac_save_ifs"
1293 fi
1294 fi
1295 CC="$ac_cv_prog_CC"
1296 if test -n "$CC"; then
1297 echo "$ac_t""$CC" 1>&6
1298 else
1299 echo "$ac_t""no" 1>&6
1300 fi
1301 ;;
1302 esac
1303 fi
1304 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1305 fi
1306
1307 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1308 echo "configure:1309: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1309
1310 ac_ext=c
1311 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1312 ac_cpp='$CPP $CPPFLAGS'
1313 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1314 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1315 cross_compiling=$ac_cv_prog_cc_cross
1316
1317 cat > conftest.$ac_ext << EOF
1318
1319 #line 1320 "configure"
1320 #include "confdefs.h"
1321
1322 main(){return(0);}
1323 EOF
1324 if { (eval echo configure:1325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1325 ac_cv_prog_cc_works=yes
1326 # If we can't run a trivial program, we are probably using a cross compiler.
1327 if (./conftest; exit) 2>/dev/null; then
1328 ac_cv_prog_cc_cross=no
1329 else
1330 ac_cv_prog_cc_cross=yes
1331 fi
1332 else
1333 echo "configure: failed program was:" >&5
1334 cat conftest.$ac_ext >&5
1335 ac_cv_prog_cc_works=no
1336 fi
1337 rm -fr conftest*
1338 ac_ext=c
1339 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1340 ac_cpp='$CPP $CPPFLAGS'
1341 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1342 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1343 cross_compiling=$ac_cv_prog_cc_cross
1344
1345 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1346 if test $ac_cv_prog_cc_works = no; then
1347 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1348 fi
1349 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1350 echo "configure:1351: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1351 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1352 cross_compiling=$ac_cv_prog_cc_cross
1353
1354 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1355 echo "configure:1356: checking whether we are using GNU C" >&5
1356 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1357 echo $ac_n "(cached) $ac_c" 1>&6
1358 else
1359 cat > conftest.c <<EOF
1360 #ifdef __GNUC__
1361 yes;
1362 #endif
1363 EOF
1364 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1365 ac_cv_prog_gcc=yes
1366 else
1367 ac_cv_prog_gcc=no
1368 fi
1369 fi
1370
1371 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1372
1373 if test $ac_cv_prog_gcc = yes; then
1374 GCC=yes
1375 else
1376 GCC=
1377 fi
1378
1379 ac_test_CFLAGS="${CFLAGS+set}"
1380 ac_save_CFLAGS="$CFLAGS"
1381 CFLAGS=
1382 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1383 echo "configure:1384: checking whether ${CC-cc} accepts -g" >&5
1384 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1385 echo $ac_n "(cached) $ac_c" 1>&6
1386 else
1387 echo 'void f(){}' > conftest.c
1388 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1389 ac_cv_prog_cc_g=yes
1390 else
1391 ac_cv_prog_cc_g=no
1392 fi
1393 rm -f conftest*
1394
1395 fi
1396
1397 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1398 if test "$ac_test_CFLAGS" = set; then
1399 CFLAGS="$ac_save_CFLAGS"
1400 elif test $ac_cv_prog_cc_g = yes; then
1401 if test "$GCC" = yes; then
1402 CFLAGS="-g -O2"
1403 else
1404 CFLAGS="-g"
1405 fi
1406 else
1407 if test "$GCC" = yes; then
1408 CFLAGS="-O2"
1409 else
1410 CFLAGS=
1411 fi
1412 fi
1413
1414 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1415 if test "${with_gnu_ld+set}" = set; then
1416 withval="$with_gnu_ld"
1417 test "$withval" = no || with_gnu_ld=yes
1418 else
1419 with_gnu_ld=no
1420 fi
1421
1422 ac_prog=ld
1423 if test "$GCC" = yes; then
1424 # Check if gcc -print-prog-name=ld gives a path.
1425 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1426 echo "configure:1427: checking for ld used by GCC" >&5
1427 case $host in
1428 *-*-mingw*)
1429 # gcc leaves a trailing carriage return which upsets mingw
1430 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1431 *)
1432 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1433 esac
1434 case $ac_prog in
1435 # Accept absolute paths.
1436 [\\/]* | [A-Za-z]:[\\/]*)
1437 re_direlt='/[^/][^/]*/\.\./'
1438 # Canonicalize the path of ld
1439 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1440 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1441 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1442 done
1443 test -z "$LD" && LD="$ac_prog"
1444 ;;
1445 "")
1446 # If it fails, then pretend we aren't using GCC.
1447 ac_prog=ld
1448 ;;
1449 *)
1450 # If it is relative, then search for the first ld in PATH.
1451 with_gnu_ld=unknown
1452 ;;
1453 esac
1454 elif test "$with_gnu_ld" = yes; then
1455 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1456 echo "configure:1457: checking for GNU ld" >&5
1457 else
1458 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1459 echo "configure:1460: checking for non-GNU ld" >&5
1460 fi
1461 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1462 echo $ac_n "(cached) $ac_c" 1>&6
1463 else
1464 if test -z "$LD"; then
1465 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1466 for ac_dir in $PATH; do
1467 test -z "$ac_dir" && ac_dir=.
1468 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1469 lt_cv_path_LD="$ac_dir/$ac_prog"
1470 # Check to see if the program is GNU ld. I'd rather use --version,
1471 # but apparently some GNU ld's only accept -v.
1472 # Break only if it was the GNU/non-GNU ld that we prefer.
1473 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1474 test "$with_gnu_ld" != no && break
1475 else
1476 test "$with_gnu_ld" != yes && break
1477 fi
1478 fi
1479 done
1480 IFS="$ac_save_ifs"
1481 else
1482 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1483 fi
1484 fi
1485
1486 LD="$lt_cv_path_LD"
1487 if test -n "$LD"; then
1488 echo "$ac_t""$LD" 1>&6
1489 else
1490 echo "$ac_t""no" 1>&6
1491 fi
1492 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1493 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1494 echo "configure:1495: checking if the linker ($LD) is GNU ld" >&5
1495 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1496 echo $ac_n "(cached) $ac_c" 1>&6
1497 else
1498 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1499 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1500 lt_cv_prog_gnu_ld=yes
1501 else
1502 lt_cv_prog_gnu_ld=no
1503 fi
1504 fi
1505
1506 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1507 with_gnu_ld=$lt_cv_prog_gnu_ld
1508
1509
1510 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1511 echo "configure:1512: checking for $LD option to reload object files" >&5
1512 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1513 echo $ac_n "(cached) $ac_c" 1>&6
1514 else
1515 lt_cv_ld_reload_flag='-r'
1516 fi
1517
1518 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1519 reload_flag=$lt_cv_ld_reload_flag
1520 test -n "$reload_flag" && reload_flag=" $reload_flag"
1521
1522 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1523 echo "configure:1524: checking for BSD-compatible nm" >&5
1524 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1525 echo $ac_n "(cached) $ac_c" 1>&6
1526 else
1527 if test -n "$NM"; then
1528 # Let the user override the test.
1529 lt_cv_path_NM="$NM"
1530 else
1531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1532 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1533 test -z "$ac_dir" && ac_dir=.
1534 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1535 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1536 # Check to see if the nm accepts a BSD-compat flag.
1537 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1538 # nm: unknown option "B" ignored
1539 # Tru64's nm complains that /dev/null is an invalid object file
1540 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1541 lt_cv_path_NM="$tmp_nm -B"
1542 break
1543 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1544 lt_cv_path_NM="$tmp_nm -p"
1545 break
1546 else
1547 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1548 continue # so that we can try to find one that supports BSD flags
1549 fi
1550 fi
1551 done
1552 IFS="$ac_save_ifs"
1553 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1554 fi
1555 fi
1556
1557 NM="$lt_cv_path_NM"
1558 echo "$ac_t""$NM" 1>&6
1559
1560 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1561 echo "configure:1562: checking whether ln -s works" >&5
1562 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1563 echo $ac_n "(cached) $ac_c" 1>&6
1564 else
1565 rm -f conftestdata
1566 if ln -s X conftestdata 2>/dev/null
1567 then
1568 rm -f conftestdata
1569 ac_cv_prog_LN_S="ln -s"
1570 else
1571 ac_cv_prog_LN_S=ln
1572 fi
1573 fi
1574 LN_S="$ac_cv_prog_LN_S"
1575 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1576 echo "$ac_t""yes" 1>&6
1577 else
1578 echo "$ac_t""no" 1>&6
1579 fi
1580
1581 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1582 echo "configure:1583: checking how to recognise dependant libraries" >&5
1583 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1584 echo $ac_n "(cached) $ac_c" 1>&6
1585 else
1586 lt_cv_file_magic_cmd='$MAGIC_CMD'
1587 lt_cv_file_magic_test_file=
1588 lt_cv_deplibs_check_method='unknown'
1589 # Need to set the preceding variable on all platforms that support
1590 # interlibrary dependencies.
1591 # 'none' -- dependencies not supported.
1592 # `unknown' -- same as none, but documents that we really don't know.
1593 # 'pass_all' -- all dependencies passed with no checks.
1594 # 'test_compile' -- check by making test program.
1595 # 'file_magic [regex]' -- check by looking for files in library path
1596 # which responds to the $file_magic_cmd with a given egrep regex.
1597 # If you have `file' or equivalent on your system and you're not sure
1598 # whether `pass_all' will *always* work, you probably want this one.
1599
1600 case $host_os in
1601 aix*)
1602 lt_cv_deplibs_check_method=pass_all
1603 ;;
1604
1605 beos*)
1606 lt_cv_deplibs_check_method=pass_all
1607 ;;
1608
1609 bsdi4*)
1610 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1611 lt_cv_file_magic_cmd='/usr/bin/file -L'
1612 lt_cv_file_magic_test_file=/shlib/libc.so
1613 ;;
1614
1615 cygwin* | mingw* |pw32*)
1616 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1617 lt_cv_file_magic_cmd='$OBJDUMP -f'
1618 ;;
1619
1620 darwin* | rhapsody*)
1621 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1622 lt_cv_file_magic_cmd='/usr/bin/file -L'
1623 case "$host_os" in
1624 rhapsody* | darwin1.012)
1625 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1626 ;;
1627 *) # Darwin 1.3 on
1628 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1629 ;;
1630 esac
1631 ;;
1632
1633 freebsd* )
1634 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1635 case $host_cpu in
1636 i*86 )
1637 # Not sure whether the presence of OpenBSD here was a mistake.
1638 # Let's accept both of them until this is cleared up.
1639 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1640 lt_cv_file_magic_cmd=/usr/bin/file
1641 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1642 ;;
1643 esac
1644 else
1645 lt_cv_deplibs_check_method=pass_all
1646 fi
1647 ;;
1648
1649 gnu*)
1650 lt_cv_deplibs_check_method=pass_all
1651 ;;
1652
1653 hpux10.20*|hpux11*)
1654 case $host_cpu in
1655 hppa*)
1656 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1657 lt_cv_file_magic_cmd=/usr/bin/file
1658 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1659 ;;
1660 ia64*)
1661 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1662 lt_cv_file_magic_cmd=/usr/bin/file
1663 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1664 ;;
1665 esac
1666 ;;
1667
1668 irix5* | irix6*)
1669 case $host_os in
1670 irix5*)
1671 # this will be overridden with pass_all, but let us keep it just in case
1672 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1673 ;;
1674 *)
1675 case $LD in
1676 *-32|*"-32 ") libmagic=32-bit;;
1677 *-n32|*"-n32 ") libmagic=N32;;
1678 *-64|*"-64 ") libmagic=64-bit;;
1679 *) libmagic=never-match;;
1680 esac
1681 # this will be overridden with pass_all, but let us keep it just in case
1682 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1683 ;;
1684 esac
1685 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1686 lt_cv_deplibs_check_method=pass_all
1687 ;;
1688
1689 # This must be Linux ELF.
1690 linux-gnu*)
1691 case $host_cpu in
1692 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1693 lt_cv_deplibs_check_method=pass_all ;;
1694 *)
1695 # glibc up to 2.1.1 does not perform some relocations on ARM
1696 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1697 esac
1698 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1699 ;;
1700
1701 netbsd*)
1702 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1703 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1704 else
1705 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1706 fi
1707 ;;
1708
1709 newsos6)
1710 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1711 lt_cv_file_magic_cmd=/usr/bin/file
1712 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1713 ;;
1714
1715 osf3* | osf4* | osf5*)
1716 # this will be overridden with pass_all, but let us keep it just in case
1717 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1718 lt_cv_file_magic_test_file=/shlib/libc.so
1719 lt_cv_deplibs_check_method=pass_all
1720 ;;
1721
1722 sco3.2v5*)
1723 lt_cv_deplibs_check_method=pass_all
1724 ;;
1725
1726 solaris*)
1727 lt_cv_deplibs_check_method=pass_all
1728 lt_cv_file_magic_test_file=/lib/libc.so
1729 ;;
1730
1731 sysv5uw[78]* | sysv4*uw2*)
1732 lt_cv_deplibs_check_method=pass_all
1733 ;;
1734
1735 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1736 case $host_vendor in
1737 ncr)
1738 lt_cv_deplibs_check_method=pass_all
1739 ;;
1740 motorola)
1741 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1742 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1743 ;;
1744 esac
1745 ;;
1746 esac
1747
1748 fi
1749
1750 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1751 file_magic_cmd=$lt_cv_file_magic_cmd
1752 deplibs_check_method=$lt_cv_deplibs_check_method
1753
1754 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1755 echo "configure:1756: checking for object suffix" >&5
1756 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1757 echo $ac_n "(cached) $ac_c" 1>&6
1758 else
1759 rm -f conftest*
1760 echo 'int i = 1;' > conftest.$ac_ext
1761 if { (eval echo configure:1762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1762 for ac_file in conftest.*; do
1763 case $ac_file in
1764 *.c) ;;
1765 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1766 esac
1767 done
1768 else
1769 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1770 fi
1771 rm -f conftest*
1772 fi
1773
1774 echo "$ac_t""$ac_cv_objext" 1>&6
1775 OBJEXT=$ac_cv_objext
1776 ac_objext=$ac_cv_objext
1777
1778
1779
1780 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1781 echo "configure:1782: checking for executable suffix" >&5
1782 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1783 echo $ac_n "(cached) $ac_c" 1>&6
1784 else
1785 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1786 ac_cv_exeext=.exe
1787 else
1788 rm -f conftest*
1789 echo 'int main () { return 0; }' > conftest.$ac_ext
1790 ac_cv_exeext=
1791 if { (eval echo configure:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1792 for file in conftest.*; do
1793 case $file in
1794 *.c | *.o | *.obj) ;;
1795 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1796 esac
1797 done
1798 else
1799 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1800 fi
1801 rm -f conftest*
1802 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1803 fi
1804 fi
1805
1806 EXEEXT=""
1807 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1808 echo "$ac_t""${ac_cv_exeext}" 1>&6
1809 ac_exeext=$EXEEXT
1810
1811 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1812
1813 # Only perform the check for file, if the check method requires it
1814 case $deplibs_check_method in
1815 file_magic*)
1816 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1817 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1818 echo "configure:1819: checking for ${ac_tool_prefix}file" >&5
1819 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1821 else
1822 case $MAGIC_CMD in
1823 /*)
1824 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1825 ;;
1826 ?:/*)
1827 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1828 ;;
1829 *)
1830 ac_save_MAGIC_CMD="$MAGIC_CMD"
1831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1832 ac_dummy="/usr/bin:$PATH"
1833 for ac_dir in $ac_dummy; do
1834 test -z "$ac_dir" && ac_dir=.
1835 if test -f $ac_dir/${ac_tool_prefix}file; then
1836 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1837 if test -n "$file_magic_test_file"; then
1838 case $deplibs_check_method in
1839 "file_magic "*)
1840 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1841 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1842 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1843 egrep "$file_magic_regex" > /dev/null; then
1844 :
1845 else
1846 cat <<EOF 1>&2
1847
1848 *** Warning: the command libtool uses to detect shared libraries,
1849 *** $file_magic_cmd, produces output that libtool cannot recognize.
1850 *** The result is that libtool may fail to recognize shared libraries
1851 *** as such. This will affect the creation of libtool libraries that
1852 *** depend on shared libraries, but programs linked with such libtool
1853 *** libraries will work regardless of this problem. Nevertheless, you
1854 *** may want to report the problem to your system manager and/or to
1855 *** bug-libtool@gnu.org
1856
1857 EOF
1858 fi ;;
1859 esac
1860 fi
1861 break
1862 fi
1863 done
1864 IFS="$ac_save_ifs"
1865 MAGIC_CMD="$ac_save_MAGIC_CMD"
1866 ;;
1867 esac
1868 fi
1869
1870 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1871 if test -n "$MAGIC_CMD"; then
1872 echo "$ac_t""$MAGIC_CMD" 1>&6
1873 else
1874 echo "$ac_t""no" 1>&6
1875 fi
1876
1877 if test -z "$lt_cv_path_MAGIC_CMD"; then
1878 if test -n "$ac_tool_prefix"; then
1879 echo $ac_n "checking for file""... $ac_c" 1>&6
1880 echo "configure:1881: checking for file" >&5
1881 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1883 else
1884 case $MAGIC_CMD in
1885 /*)
1886 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1887 ;;
1888 ?:/*)
1889 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1890 ;;
1891 *)
1892 ac_save_MAGIC_CMD="$MAGIC_CMD"
1893 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1894 ac_dummy="/usr/bin:$PATH"
1895 for ac_dir in $ac_dummy; do
1896 test -z "$ac_dir" && ac_dir=.
1897 if test -f $ac_dir/file; then
1898 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1899 if test -n "$file_magic_test_file"; then
1900 case $deplibs_check_method in
1901 "file_magic "*)
1902 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1903 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1904 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1905 egrep "$file_magic_regex" > /dev/null; then
1906 :
1907 else
1908 cat <<EOF 1>&2
1909
1910 *** Warning: the command libtool uses to detect shared libraries,
1911 *** $file_magic_cmd, produces output that libtool cannot recognize.
1912 *** The result is that libtool may fail to recognize shared libraries
1913 *** as such. This will affect the creation of libtool libraries that
1914 *** depend on shared libraries, but programs linked with such libtool
1915 *** libraries will work regardless of this problem. Nevertheless, you
1916 *** may want to report the problem to your system manager and/or to
1917 *** bug-libtool@gnu.org
1918
1919 EOF
1920 fi ;;
1921 esac
1922 fi
1923 break
1924 fi
1925 done
1926 IFS="$ac_save_ifs"
1927 MAGIC_CMD="$ac_save_MAGIC_CMD"
1928 ;;
1929 esac
1930 fi
1931
1932 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1933 if test -n "$MAGIC_CMD"; then
1934 echo "$ac_t""$MAGIC_CMD" 1>&6
1935 else
1936 echo "$ac_t""no" 1>&6
1937 fi
1938
1939 else
1940 MAGIC_CMD=:
1941 fi
1942 fi
1943
1944 fi
1945 ;;
1946 esac
1947
1948 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1949 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1950 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1951 echo "configure:1952: checking for $ac_word" >&5
1952 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1954 else
1955 if test -n "$RANLIB"; then
1956 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1957 else
1958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1959 ac_dummy="$PATH"
1960 for ac_dir in $ac_dummy; do
1961 test -z "$ac_dir" && ac_dir=.
1962 if test -f $ac_dir/$ac_word; then
1963 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1964 break
1965 fi
1966 done
1967 IFS="$ac_save_ifs"
1968 fi
1969 fi
1970 RANLIB="$ac_cv_prog_RANLIB"
1971 if test -n "$RANLIB"; then
1972 echo "$ac_t""$RANLIB" 1>&6
1973 else
1974 echo "$ac_t""no" 1>&6
1975 fi
1976
1977
1978 if test -z "$ac_cv_prog_RANLIB"; then
1979 if test -n "$ac_tool_prefix"; then
1980 # Extract the first word of "ranlib", so it can be a program name with args.
1981 set dummy ranlib; ac_word=$2
1982 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1983 echo "configure:1984: checking for $ac_word" >&5
1984 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1985 echo $ac_n "(cached) $ac_c" 1>&6
1986 else
1987 if test -n "$RANLIB"; then
1988 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1989 else
1990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1991 ac_dummy="$PATH"
1992 for ac_dir in $ac_dummy; do
1993 test -z "$ac_dir" && ac_dir=.
1994 if test -f $ac_dir/$ac_word; then
1995 ac_cv_prog_RANLIB="ranlib"
1996 break
1997 fi
1998 done
1999 IFS="$ac_save_ifs"
2000 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2001 fi
2002 fi
2003 RANLIB="$ac_cv_prog_RANLIB"
2004 if test -n "$RANLIB"; then
2005 echo "$ac_t""$RANLIB" 1>&6
2006 else
2007 echo "$ac_t""no" 1>&6
2008 fi
2009
2010 else
2011 RANLIB=":"
2012 fi
2013 fi
2014
2015 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2016 set dummy ${ac_tool_prefix}strip; ac_word=$2
2017 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2018 echo "configure:2019: checking for $ac_word" >&5
2019 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2020 echo $ac_n "(cached) $ac_c" 1>&6
2021 else
2022 if test -n "$STRIP"; then
2023 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2024 else
2025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2026 ac_dummy="$PATH"
2027 for ac_dir in $ac_dummy; do
2028 test -z "$ac_dir" && ac_dir=.
2029 if test -f $ac_dir/$ac_word; then
2030 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2031 break
2032 fi
2033 done
2034 IFS="$ac_save_ifs"
2035 fi
2036 fi
2037 STRIP="$ac_cv_prog_STRIP"
2038 if test -n "$STRIP"; then
2039 echo "$ac_t""$STRIP" 1>&6
2040 else
2041 echo "$ac_t""no" 1>&6
2042 fi
2043
2044
2045 if test -z "$ac_cv_prog_STRIP"; then
2046 if test -n "$ac_tool_prefix"; then
2047 # Extract the first word of "strip", so it can be a program name with args.
2048 set dummy strip; ac_word=$2
2049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2050 echo "configure:2051: checking for $ac_word" >&5
2051 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2052 echo $ac_n "(cached) $ac_c" 1>&6
2053 else
2054 if test -n "$STRIP"; then
2055 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2056 else
2057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2058 ac_dummy="$PATH"
2059 for ac_dir in $ac_dummy; do
2060 test -z "$ac_dir" && ac_dir=.
2061 if test -f $ac_dir/$ac_word; then
2062 ac_cv_prog_STRIP="strip"
2063 break
2064 fi
2065 done
2066 IFS="$ac_save_ifs"
2067 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2068 fi
2069 fi
2070 STRIP="$ac_cv_prog_STRIP"
2071 if test -n "$STRIP"; then
2072 echo "$ac_t""$STRIP" 1>&6
2073 else
2074 echo "$ac_t""no" 1>&6
2075 fi
2076
2077 else
2078 STRIP=":"
2079 fi
2080 fi
2081
2082
2083 # Check for any special flags to pass to ltconfig.
2084 libtool_flags="--cache-file=$cache_file"
2085 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2086 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2087 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2088 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2089 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2090
2091
2092 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2093 if test "${enable_libtool_lock+set}" = set; then
2094 enableval="$enable_libtool_lock"
2095 :
2096 fi
2097
2098 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2099 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2100
2101 # Check whether --with-pic or --without-pic was given.
2102 if test "${with_pic+set}" = set; then
2103 withval="$with_pic"
2104 pic_mode="$withval"
2105 else
2106 pic_mode=default
2107 fi
2108
2109 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2110 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2111
2112 # Some flags need to be propagated to the compiler or linker for good
2113 # libtool support.
2114 case $host in
2115 *-*-irix6*)
2116 # Find out which ABI we are using.
2117 echo '#line 2118 "configure"' > conftest.$ac_ext
2118 if { (eval echo configure:2119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2119 if test "$lt_cv_prog_gnu_ld" = yes; then
2120 case `/usr/bin/file conftest.$ac_objext` in
2121 *32-bit*)
2122 LD="${LD-ld} -melf32bsmip"
2123 ;;
2124 *N32*)
2125 LD="${LD-ld} -melf32bmipn32"
2126 ;;
2127 *64-bit*)
2128 LD="${LD-ld} -melf64bmip"
2129 ;;
2130 esac
2131 else
2132 case `/usr/bin/file conftest.$ac_objext` in
2133 *32-bit*)
2134 LD="${LD-ld} -32"
2135 ;;
2136 *N32*)
2137 LD="${LD-ld} -n32"
2138 ;;
2139 *64-bit*)
2140 LD="${LD-ld} -64"
2141 ;;
2142 esac
2143 fi
2144 fi
2145 rm -rf conftest*
2146 ;;
2147
2148 ia64-*-hpux*)
2149 # Find out which ABI we are using.
2150 echo 'int i;' > conftest.$ac_ext
2151 if { (eval echo configure:2152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2152 case "`/usr/bin/file conftest.o`" in
2153 *ELF-32*)
2154 HPUX_IA64_MODE="32"
2155 ;;
2156 *ELF-64*)
2157 HPUX_IA64_MODE="64"
2158 ;;
2159 esac
2160 fi
2161 rm -rf conftest*
2162 ;;
2163
2164 *-*-sco3.2v5*)
2165 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2166 SAVE_CFLAGS="$CFLAGS"
2167 CFLAGS="$CFLAGS -belf"
2168 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2169 echo "configure:2170: checking whether the C compiler needs -belf" >&5
2170 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2172 else
2173
2174 ac_ext=c
2175 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2176 ac_cpp='$CPP $CPPFLAGS'
2177 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2178 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2179 cross_compiling=$ac_cv_prog_cc_cross
2180
2181 cat > conftest.$ac_ext <<EOF
2182 #line 2183 "configure"
2183 #include "confdefs.h"
2184
2185 int main() {
2186
2187 ; return 0; }
2188 EOF
2189 if { (eval echo configure:2190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2190 rm -rf conftest*
2191 lt_cv_cc_needs_belf=yes
2192 else
2193 echo "configure: failed program was:" >&5
2194 cat conftest.$ac_ext >&5
2195 rm -rf conftest*
2196 lt_cv_cc_needs_belf=no
2197 fi
2198 rm -f conftest*
2199 ac_ext=c
2200 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2201 ac_cpp='$CPP $CPPFLAGS'
2202 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2203 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2204 cross_compiling=$ac_cv_prog_cc_cross
2205
2206 fi
2207
2208 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2209 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2210 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2211 CFLAGS="$SAVE_CFLAGS"
2212 fi
2213 ;;
2214
2215
2216 esac
2217
2218
2219 # Save cache, so that ltconfig can load it
2220 cat > confcache <<\EOF
2221 # This file is a shell script that caches the results of configure
2222 # tests run on this system so they can be shared between configure
2223 # scripts and configure runs. It is not useful on other systems.
2224 # If it contains results you don't want to keep, you may remove or edit it.
2225 #
2226 # By default, configure uses ./config.cache as the cache file,
2227 # creating it if it does not exist already. You can give configure
2228 # the --cache-file=FILE option to use a different cache file; that is
2229 # what configure does when it calls configure scripts in
2230 # subdirectories, so they share the cache.
2231 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2232 # config.status only pays attention to the cache file if you give it the
2233 # --recheck option to rerun configure.
2234 #
2235 EOF
2236 # The following way of writing the cache mishandles newlines in values,
2237 # but we know of no workaround that is simple, portable, and efficient.
2238 # So, don't put newlines in cache variables' values.
2239 # Ultrix sh set writes to stderr and can't be redirected directly,
2240 # and sets the high bit in the cache file unless we assign to the vars.
2241 (set) 2>&1 |
2242 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2243 *ac_space=\ *)
2244 # `set' does not quote correctly, so add quotes (double-quote substitution
2245 # turns \\\\ into \\, and sed turns \\ into \).
2246 sed -n \
2247 -e "s/'/'\\\\''/g" \
2248 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2249 ;;
2250 *)
2251 # `set' quotes correctly as required by POSIX, so do not add quotes.
2252 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2253 ;;
2254 esac >> confcache
2255 if cmp -s $cache_file confcache; then
2256 :
2257 else
2258 if test -w $cache_file; then
2259 echo "updating cache $cache_file"
2260 cat confcache > $cache_file
2261 else
2262 echo "not updating unwritable cache $cache_file"
2263 fi
2264 fi
2265 rm -f confcache
2266
2267
2268 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2269 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2270 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2271 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2272 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2273 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2274 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2275 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2276 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2277 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2278
2279 # Reload cache, that may have been modified by ltconfig
2280 if test -r "$cache_file"; then
2281 echo "loading cache $cache_file"
2282 . $cache_file
2283 else
2284 echo "creating cache $cache_file"
2285 > $cache_file
2286 fi
2287
2288
2289 # This can be used to rebuild libtool when needed
2290 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2291
2292 # Always use our own libtool.
2293 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2294
2295 # Redirect the config.log output again, so that the ltconfig log is not
2296 # clobbered by the next message.
2297 exec 5>>./config.log
2298
2299
2300
2301
2302
2303
2304
2305 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
2306 if test "${enable_64_bit_bfd+set}" = set; then
2307 enableval="$enable_64_bit_bfd"
2308 case "${enableval}" in
2309 yes) want64=true ;;
2310 no) want64=false ;;
2311 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
2312 esac
2313 else
2314 want64=false
2315 fi
2316 # Check whether --enable-targets or --disable-targets was given.
2317 if test "${enable_targets+set}" = set; then
2318 enableval="$enable_targets"
2319 case "${enableval}" in
2320 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2321 ;;
2322 no) enable_targets= ;;
2323 *) enable_targets=$enableval ;;
2324 esac
2325 fi
2326 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2327 if test "${enable_commonbfdlib+set}" = set; then
2328 enableval="$enable_commonbfdlib"
2329 case "${enableval}" in
2330 yes) commonbfdlib=true ;;
2331 no) commonbfdlib=false ;;
2332 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2333 esac
2334 fi
2335 # Check whether --with-mmap or --without-mmap was given.
2336 if test "${with_mmap+set}" = set; then
2337 withval="$with_mmap"
2338 case "${withval}" in
2339 yes) want_mmap=true ;;
2340 no) want_mmap=false ;;
2341 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
2342 esac
2343 else
2344 want_mmap=false
2345 fi
2346
2347 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
2348 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2349 if test "${enable_build_warnings+set}" = set; then
2350 enableval="$enable_build_warnings"
2351 case "${enableval}" in
2352 yes) ;;
2353 no) build_warnings="-w";;
2354 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2355 build_warnings="${build_warnings} ${t}";;
2356 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2357 build_warnings="${t} ${build_warnings}";;
2358 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2359 esac
2360 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
2361 echo "Setting warning flags = $build_warnings" 6>&1
2362 fi
2363 fi
2364 WARN_CFLAGS=""
2365 if test "x${build_warnings}" != x && test "x$GCC" = xyes ; then
2366 WARN_CFLAGS="${build_warnings}"
2367 fi
2368
2369
2370
2371
2372
2373
2374 if test -z "$target" ; then
2375 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2376 fi
2377
2378 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2379 echo "configure:2380: checking whether to enable maintainer-specific portions of Makefiles" >&5
2380 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2381 if test "${enable_maintainer_mode+set}" = set; then
2382 enableval="$enable_maintainer_mode"
2383 USE_MAINTAINER_MODE=$enableval
2384 else
2385 USE_MAINTAINER_MODE=no
2386 fi
2387
2388 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2389
2390
2391 if test $USE_MAINTAINER_MODE = yes; then
2392 MAINTAINER_MODE_TRUE=
2393 MAINTAINER_MODE_FALSE='#'
2394 else
2395 MAINTAINER_MODE_TRUE='#'
2396 MAINTAINER_MODE_FALSE=
2397 fi
2398 MAINT=$MAINTAINER_MODE_TRUE
2399
2400
2401 echo $ac_n "checking whether to install libbfd""... $ac_c" 1>&6
2402 echo "configure:2403: checking whether to install libbfd" >&5
2403 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
2404 if test "${enable_install_libbfd+set}" = set; then
2405 enableval="$enable_install_libbfd"
2406 install_libbfd_p=$enableval
2407 else
2408 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
2409 install_libbfd_p=yes
2410 else
2411 install_libbfd_p=no
2412 fi
2413 fi
2414
2415 echo "$ac_t""$install_libbfd_p" 1>&6
2416
2417
2418 if test $install_libbfd_p = yes; then
2419 INSTALL_LIBBFD_TRUE=
2420 INSTALL_LIBBFD_FALSE='#'
2421 else
2422 INSTALL_LIBBFD_TRUE='#'
2423 INSTALL_LIBBFD_FALSE=
2424 fi
2425 # libbfd.a is a host library containing target dependent code
2426 bfdlibdir='$(libdir)'
2427 bfdincludedir='$(includedir)'
2428 if test "${host}" != "${target}"; then
2429 bfdlibdir='$(exec_prefix)/$(host_alias)/$(target_alias)/lib'
2430 bfdincludedir='$(exec_prefix)/$(host_alias)/$(target_alias)/include'
2431 fi
2432
2433
2434
2435
2436
2437
2438 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2439 echo "configure:2440: checking for executable suffix" >&5
2440 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2441 echo $ac_n "(cached) $ac_c" 1>&6
2442 else
2443 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2444 ac_cv_exeext=.exe
2445 else
2446 rm -f conftest*
2447 echo 'int main () { return 0; }' > conftest.$ac_ext
2448 ac_cv_exeext=
2449 if { (eval echo configure:2450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2450 for file in conftest.*; do
2451 case $file in
2452 *.c | *.o | *.obj) ;;
2453 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2454 esac
2455 done
2456 else
2457 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2458 fi
2459 rm -f conftest*
2460 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2461 fi
2462 fi
2463
2464 EXEEXT=""
2465 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2466 echo "$ac_t""${ac_cv_exeext}" 1>&6
2467 ac_exeext=$EXEEXT
2468
2469
2470 host64=false
2471 target64=false
2472 bfd_default_target_size=32
2473
2474 # host stuff:
2475
2476 # Extract the first word of "gcc", so it can be a program name with args.
2477 set dummy gcc; ac_word=$2
2478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2479 echo "configure:2480: checking for $ac_word" >&5
2480 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2482 else
2483 if test -n "$CC"; then
2484 ac_cv_prog_CC="$CC" # Let the user override the test.
2485 else
2486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2487 ac_dummy="$PATH"
2488 for ac_dir in $ac_dummy; do
2489 test -z "$ac_dir" && ac_dir=.
2490 if test -f $ac_dir/$ac_word; then
2491 ac_cv_prog_CC="gcc"
2492 break
2493 fi
2494 done
2495 IFS="$ac_save_ifs"
2496 fi
2497 fi
2498 CC="$ac_cv_prog_CC"
2499 if test -n "$CC"; then
2500 echo "$ac_t""$CC" 1>&6
2501 else
2502 echo "$ac_t""no" 1>&6
2503 fi
2504
2505 if test -z "$CC"; then
2506 # Extract the first word of "cc", so it can be a program name with args.
2507 set dummy cc; ac_word=$2
2508 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2509 echo "configure:2510: checking for $ac_word" >&5
2510 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2511 echo $ac_n "(cached) $ac_c" 1>&6
2512 else
2513 if test -n "$CC"; then
2514 ac_cv_prog_CC="$CC" # Let the user override the test.
2515 else
2516 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2517 ac_prog_rejected=no
2518 ac_dummy="$PATH"
2519 for ac_dir in $ac_dummy; do
2520 test -z "$ac_dir" && ac_dir=.
2521 if test -f $ac_dir/$ac_word; then
2522 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2523 ac_prog_rejected=yes
2524 continue
2525 fi
2526 ac_cv_prog_CC="cc"
2527 break
2528 fi
2529 done
2530 IFS="$ac_save_ifs"
2531 if test $ac_prog_rejected = yes; then
2532 # We found a bogon in the path, so make sure we never use it.
2533 set dummy $ac_cv_prog_CC
2534 shift
2535 if test $# -gt 0; then
2536 # We chose a different compiler from the bogus one.
2537 # However, it has the same basename, so the bogon will be chosen
2538 # first if we set CC to just the basename; use the full file name.
2539 shift
2540 set dummy "$ac_dir/$ac_word" "$@"
2541 shift
2542 ac_cv_prog_CC="$@"
2543 fi
2544 fi
2545 fi
2546 fi
2547 CC="$ac_cv_prog_CC"
2548 if test -n "$CC"; then
2549 echo "$ac_t""$CC" 1>&6
2550 else
2551 echo "$ac_t""no" 1>&6
2552 fi
2553
2554 if test -z "$CC"; then
2555 case "`uname -s`" in
2556 *win32* | *WIN32*)
2557 # Extract the first word of "cl", so it can be a program name with args.
2558 set dummy cl; ac_word=$2
2559 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2560 echo "configure:2561: checking for $ac_word" >&5
2561 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2562 echo $ac_n "(cached) $ac_c" 1>&6
2563 else
2564 if test -n "$CC"; then
2565 ac_cv_prog_CC="$CC" # Let the user override the test.
2566 else
2567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2568 ac_dummy="$PATH"
2569 for ac_dir in $ac_dummy; do
2570 test -z "$ac_dir" && ac_dir=.
2571 if test -f $ac_dir/$ac_word; then
2572 ac_cv_prog_CC="cl"
2573 break
2574 fi
2575 done
2576 IFS="$ac_save_ifs"
2577 fi
2578 fi
2579 CC="$ac_cv_prog_CC"
2580 if test -n "$CC"; then
2581 echo "$ac_t""$CC" 1>&6
2582 else
2583 echo "$ac_t""no" 1>&6
2584 fi
2585 ;;
2586 esac
2587 fi
2588 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2589 fi
2590
2591 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2592 echo "configure:2593: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2593
2594 ac_ext=c
2595 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2596 ac_cpp='$CPP $CPPFLAGS'
2597 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2598 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2599 cross_compiling=$ac_cv_prog_cc_cross
2600
2601 cat > conftest.$ac_ext << EOF
2602
2603 #line 2604 "configure"
2604 #include "confdefs.h"
2605
2606 main(){return(0);}
2607 EOF
2608 if { (eval echo configure:2609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2609 ac_cv_prog_cc_works=yes
2610 # If we can't run a trivial program, we are probably using a cross compiler.
2611 if (./conftest; exit) 2>/dev/null; then
2612 ac_cv_prog_cc_cross=no
2613 else
2614 ac_cv_prog_cc_cross=yes
2615 fi
2616 else
2617 echo "configure: failed program was:" >&5
2618 cat conftest.$ac_ext >&5
2619 ac_cv_prog_cc_works=no
2620 fi
2621 rm -fr conftest*
2622 ac_ext=c
2623 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2624 ac_cpp='$CPP $CPPFLAGS'
2625 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2626 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2627 cross_compiling=$ac_cv_prog_cc_cross
2628
2629 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2630 if test $ac_cv_prog_cc_works = no; then
2631 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2632 fi
2633 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2634 echo "configure:2635: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2635 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2636 cross_compiling=$ac_cv_prog_cc_cross
2637
2638 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2639 echo "configure:2640: checking whether we are using GNU C" >&5
2640 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2641 echo $ac_n "(cached) $ac_c" 1>&6
2642 else
2643 cat > conftest.c <<EOF
2644 #ifdef __GNUC__
2645 yes;
2646 #endif
2647 EOF
2648 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2649 ac_cv_prog_gcc=yes
2650 else
2651 ac_cv_prog_gcc=no
2652 fi
2653 fi
2654
2655 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2656
2657 if test $ac_cv_prog_gcc = yes; then
2658 GCC=yes
2659 else
2660 GCC=
2661 fi
2662
2663 ac_test_CFLAGS="${CFLAGS+set}"
2664 ac_save_CFLAGS="$CFLAGS"
2665 CFLAGS=
2666 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2667 echo "configure:2668: checking whether ${CC-cc} accepts -g" >&5
2668 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2669 echo $ac_n "(cached) $ac_c" 1>&6
2670 else
2671 echo 'void f(){}' > conftest.c
2672 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2673 ac_cv_prog_cc_g=yes
2674 else
2675 ac_cv_prog_cc_g=no
2676 fi
2677 rm -f conftest*
2678
2679 fi
2680
2681 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2682 if test "$ac_test_CFLAGS" = set; then
2683 CFLAGS="$ac_save_CFLAGS"
2684 elif test $ac_cv_prog_cc_g = yes; then
2685 if test "$GCC" = yes; then
2686 CFLAGS="-g -O2"
2687 else
2688 CFLAGS="-g"
2689 fi
2690 else
2691 if test "$GCC" = yes; then
2692 CFLAGS="-O2"
2693 else
2694 CFLAGS=
2695 fi
2696 fi
2697
2698
2699 ALL_LINGUAS="fr tr ja es sv da zh_CN"
2700 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2701 echo "configure:2702: checking how to run the C preprocessor" >&5
2702 # On Suns, sometimes $CPP names a directory.
2703 if test -n "$CPP" && test -d "$CPP"; then
2704 CPP=
2705 fi
2706 if test -z "$CPP"; then
2707 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2708 echo $ac_n "(cached) $ac_c" 1>&6
2709 else
2710 # This must be in double quotes, not single quotes, because CPP may get
2711 # substituted into the Makefile and "${CC-cc}" will confuse make.
2712 CPP="${CC-cc} -E"
2713 # On the NeXT, cc -E runs the code through the compiler's parser,
2714 # not just through cpp.
2715 cat > conftest.$ac_ext <<EOF
2716 #line 2717 "configure"
2717 #include "confdefs.h"
2718 #include <assert.h>
2719 Syntax Error
2720 EOF
2721 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2722 { (eval echo configure:2723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2723 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2724 if test -z "$ac_err"; then
2725 :
2726 else
2727 echo "$ac_err" >&5
2728 echo "configure: failed program was:" >&5
2729 cat conftest.$ac_ext >&5
2730 rm -rf conftest*
2731 CPP="${CC-cc} -E -traditional-cpp"
2732 cat > conftest.$ac_ext <<EOF
2733 #line 2734 "configure"
2734 #include "confdefs.h"
2735 #include <assert.h>
2736 Syntax Error
2737 EOF
2738 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2739 { (eval echo configure:2740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2740 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2741 if test -z "$ac_err"; then
2742 :
2743 else
2744 echo "$ac_err" >&5
2745 echo "configure: failed program was:" >&5
2746 cat conftest.$ac_ext >&5
2747 rm -rf conftest*
2748 CPP="${CC-cc} -nologo -E"
2749 cat > conftest.$ac_ext <<EOF
2750 #line 2751 "configure"
2751 #include "confdefs.h"
2752 #include <assert.h>
2753 Syntax Error
2754 EOF
2755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2756 { (eval echo configure:2757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2757 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2758 if test -z "$ac_err"; then
2759 :
2760 else
2761 echo "$ac_err" >&5
2762 echo "configure: failed program was:" >&5
2763 cat conftest.$ac_ext >&5
2764 rm -rf conftest*
2765 CPP=/lib/cpp
2766 fi
2767 rm -f conftest*
2768 fi
2769 rm -f conftest*
2770 fi
2771 rm -f conftest*
2772 ac_cv_prog_CPP="$CPP"
2773 fi
2774 CPP="$ac_cv_prog_CPP"
2775 else
2776 ac_cv_prog_CPP="$CPP"
2777 fi
2778 echo "$ac_t""$CPP" 1>&6
2779
2780 # Extract the first word of "ranlib", so it can be a program name with args.
2781 set dummy ranlib; ac_word=$2
2782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2783 echo "configure:2784: checking for $ac_word" >&5
2784 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2785 echo $ac_n "(cached) $ac_c" 1>&6
2786 else
2787 if test -n "$RANLIB"; then
2788 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2789 else
2790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2791 ac_dummy="$PATH"
2792 for ac_dir in $ac_dummy; do
2793 test -z "$ac_dir" && ac_dir=.
2794 if test -f $ac_dir/$ac_word; then
2795 ac_cv_prog_RANLIB="ranlib"
2796 break
2797 fi
2798 done
2799 IFS="$ac_save_ifs"
2800 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2801 fi
2802 fi
2803 RANLIB="$ac_cv_prog_RANLIB"
2804 if test -n "$RANLIB"; then
2805 echo "$ac_t""$RANLIB" 1>&6
2806 else
2807 echo "$ac_t""no" 1>&6
2808 fi
2809
2810 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2811 echo "configure:2812: checking for ANSI C header files" >&5
2812 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2813 echo $ac_n "(cached) $ac_c" 1>&6
2814 else
2815 cat > conftest.$ac_ext <<EOF
2816 #line 2817 "configure"
2817 #include "confdefs.h"
2818 #include <stdlib.h>
2819 #include <stdarg.h>
2820 #include <string.h>
2821 #include <float.h>
2822 EOF
2823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2824 { (eval echo configure:2825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2826 if test -z "$ac_err"; then
2827 rm -rf conftest*
2828 ac_cv_header_stdc=yes
2829 else
2830 echo "$ac_err" >&5
2831 echo "configure: failed program was:" >&5
2832 cat conftest.$ac_ext >&5
2833 rm -rf conftest*
2834 ac_cv_header_stdc=no
2835 fi
2836 rm -f conftest*
2837
2838 if test $ac_cv_header_stdc = yes; then
2839 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2840 cat > conftest.$ac_ext <<EOF
2841 #line 2842 "configure"
2842 #include "confdefs.h"
2843 #include <string.h>
2844 EOF
2845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2846 egrep "memchr" >/dev/null 2>&1; then
2847 :
2848 else
2849 rm -rf conftest*
2850 ac_cv_header_stdc=no
2851 fi
2852 rm -f conftest*
2853
2854 fi
2855
2856 if test $ac_cv_header_stdc = yes; then
2857 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2858 cat > conftest.$ac_ext <<EOF
2859 #line 2860 "configure"
2860 #include "confdefs.h"
2861 #include <stdlib.h>
2862 EOF
2863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2864 egrep "free" >/dev/null 2>&1; then
2865 :
2866 else
2867 rm -rf conftest*
2868 ac_cv_header_stdc=no
2869 fi
2870 rm -f conftest*
2871
2872 fi
2873
2874 if test $ac_cv_header_stdc = yes; then
2875 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2876 if test "$cross_compiling" = yes; then
2877 :
2878 else
2879 cat > conftest.$ac_ext <<EOF
2880 #line 2881 "configure"
2881 #include "confdefs.h"
2882 #include <ctype.h>
2883 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2884 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2885 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2886 int main () { int i; for (i = 0; i < 256; i++)
2887 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2888 exit (0); }
2889
2890 EOF
2891 if { (eval echo configure:2892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2892 then
2893 :
2894 else
2895 echo "configure: failed program was:" >&5
2896 cat conftest.$ac_ext >&5
2897 rm -fr conftest*
2898 ac_cv_header_stdc=no
2899 fi
2900 rm -fr conftest*
2901 fi
2902
2903 fi
2904 fi
2905
2906 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2907 if test $ac_cv_header_stdc = yes; then
2908 cat >> confdefs.h <<\EOF
2909 #define STDC_HEADERS 1
2910 EOF
2911
2912 fi
2913
2914 echo $ac_n "checking for working const""... $ac_c" 1>&6
2915 echo "configure:2916: checking for working const" >&5
2916 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2917 echo $ac_n "(cached) $ac_c" 1>&6
2918 else
2919 cat > conftest.$ac_ext <<EOF
2920 #line 2921 "configure"
2921 #include "confdefs.h"
2922
2923 int main() {
2924
2925 /* Ultrix mips cc rejects this. */
2926 typedef int charset[2]; const charset x;
2927 /* SunOS 4.1.1 cc rejects this. */
2928 char const *const *ccp;
2929 char **p;
2930 /* NEC SVR4.0.2 mips cc rejects this. */
2931 struct point {int x, y;};
2932 static struct point const zero = {0,0};
2933 /* AIX XL C 1.02.0.0 rejects this.
2934 It does not let you subtract one const X* pointer from another in an arm
2935 of an if-expression whose if-part is not a constant expression */
2936 const char *g = "string";
2937 ccp = &g + (g ? g-g : 0);
2938 /* HPUX 7.0 cc rejects these. */
2939 ++ccp;
2940 p = (char**) ccp;
2941 ccp = (char const *const *) p;
2942 { /* SCO 3.2v4 cc rejects this. */
2943 char *t;
2944 char const *s = 0 ? (char *) 0 : (char const *) 0;
2945
2946 *t++ = 0;
2947 }
2948 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2949 int x[] = {25, 17};
2950 const int *foo = &x[0];
2951 ++foo;
2952 }
2953 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2954 typedef const int *iptr;
2955 iptr p = 0;
2956 ++p;
2957 }
2958 { /* AIX XL C 1.02.0.0 rejects this saying
2959 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2960 struct s { int j; const int *ap[3]; };
2961 struct s *b; b->j = 5;
2962 }
2963 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2964 const int foo = 10;
2965 }
2966
2967 ; return 0; }
2968 EOF
2969 if { (eval echo configure:2970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2970 rm -rf conftest*
2971 ac_cv_c_const=yes
2972 else
2973 echo "configure: failed program was:" >&5
2974 cat conftest.$ac_ext >&5
2975 rm -rf conftest*
2976 ac_cv_c_const=no
2977 fi
2978 rm -f conftest*
2979 fi
2980
2981 echo "$ac_t""$ac_cv_c_const" 1>&6
2982 if test $ac_cv_c_const = no; then
2983 cat >> confdefs.h <<\EOF
2984 #define const
2985 EOF
2986
2987 fi
2988
2989 echo $ac_n "checking for inline""... $ac_c" 1>&6
2990 echo "configure:2991: checking for inline" >&5
2991 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2992 echo $ac_n "(cached) $ac_c" 1>&6
2993 else
2994 ac_cv_c_inline=no
2995 for ac_kw in inline __inline__ __inline; do
2996 cat > conftest.$ac_ext <<EOF
2997 #line 2998 "configure"
2998 #include "confdefs.h"
2999
3000 int main() {
3001 } $ac_kw foo() {
3002 ; return 0; }
3003 EOF
3004 if { (eval echo configure:3005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3005 rm -rf conftest*
3006 ac_cv_c_inline=$ac_kw; break
3007 else
3008 echo "configure: failed program was:" >&5
3009 cat conftest.$ac_ext >&5
3010 fi
3011 rm -f conftest*
3012 done
3013
3014 fi
3015
3016 echo "$ac_t""$ac_cv_c_inline" 1>&6
3017 case "$ac_cv_c_inline" in
3018 inline | yes) ;;
3019 no) cat >> confdefs.h <<\EOF
3020 #define inline
3021 EOF
3022 ;;
3023 *) cat >> confdefs.h <<EOF
3024 #define inline $ac_cv_c_inline
3025 EOF
3026 ;;
3027 esac
3028
3029 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3030 echo "configure:3031: checking for off_t" >&5
3031 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3033 else
3034 cat > conftest.$ac_ext <<EOF
3035 #line 3036 "configure"
3036 #include "confdefs.h"
3037 #include <sys/types.h>
3038 #if STDC_HEADERS
3039 #include <stdlib.h>
3040 #include <stddef.h>
3041 #endif
3042 EOF
3043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3044 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3045 rm -rf conftest*
3046 ac_cv_type_off_t=yes
3047 else
3048 rm -rf conftest*
3049 ac_cv_type_off_t=no
3050 fi
3051 rm -f conftest*
3052
3053 fi
3054 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3055 if test $ac_cv_type_off_t = no; then
3056 cat >> confdefs.h <<\EOF
3057 #define off_t long
3058 EOF
3059
3060 fi
3061
3062 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3063 echo "configure:3064: checking for size_t" >&5
3064 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3065 echo $ac_n "(cached) $ac_c" 1>&6
3066 else
3067 cat > conftest.$ac_ext <<EOF
3068 #line 3069 "configure"
3069 #include "confdefs.h"
3070 #include <sys/types.h>
3071 #if STDC_HEADERS
3072 #include <stdlib.h>
3073 #include <stddef.h>
3074 #endif
3075 EOF
3076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3077 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3078 rm -rf conftest*
3079 ac_cv_type_size_t=yes
3080 else
3081 rm -rf conftest*
3082 ac_cv_type_size_t=no
3083 fi
3084 rm -f conftest*
3085
3086 fi
3087 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3088 if test $ac_cv_type_size_t = no; then
3089 cat >> confdefs.h <<\EOF
3090 #define size_t unsigned
3091 EOF
3092
3093 fi
3094
3095 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3096 # for constant arguments. Useless!
3097 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3098 echo "configure:3099: checking for working alloca.h" >&5
3099 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3100 echo $ac_n "(cached) $ac_c" 1>&6
3101 else
3102 cat > conftest.$ac_ext <<EOF
3103 #line 3104 "configure"
3104 #include "confdefs.h"
3105 #include <alloca.h>
3106 int main() {
3107 char *p = alloca(2 * sizeof(int));
3108 ; return 0; }
3109 EOF
3110 if { (eval echo configure:3111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3111 rm -rf conftest*
3112 ac_cv_header_alloca_h=yes
3113 else
3114 echo "configure: failed program was:" >&5
3115 cat conftest.$ac_ext >&5
3116 rm -rf conftest*
3117 ac_cv_header_alloca_h=no
3118 fi
3119 rm -f conftest*
3120 fi
3121
3122 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3123 if test $ac_cv_header_alloca_h = yes; then
3124 cat >> confdefs.h <<\EOF
3125 #define HAVE_ALLOCA_H 1
3126 EOF
3127
3128 fi
3129
3130 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3131 echo "configure:3132: checking for alloca" >&5
3132 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3133 echo $ac_n "(cached) $ac_c" 1>&6
3134 else
3135 cat > conftest.$ac_ext <<EOF
3136 #line 3137 "configure"
3137 #include "confdefs.h"
3138
3139 #ifdef __GNUC__
3140 # define alloca __builtin_alloca
3141 #else
3142 # ifdef _MSC_VER
3143 # include <malloc.h>
3144 # define alloca _alloca
3145 # else
3146 # if HAVE_ALLOCA_H
3147 # include <alloca.h>
3148 # else
3149 # ifdef _AIX
3150 #pragma alloca
3151 # else
3152 # ifndef alloca /* predefined by HP cc +Olibcalls */
3153 char *alloca ();
3154 # endif
3155 # endif
3156 # endif
3157 # endif
3158 #endif
3159
3160 int main() {
3161 char *p = (char *) alloca(1);
3162 ; return 0; }
3163 EOF
3164 if { (eval echo configure:3165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3165 rm -rf conftest*
3166 ac_cv_func_alloca_works=yes
3167 else
3168 echo "configure: failed program was:" >&5
3169 cat conftest.$ac_ext >&5
3170 rm -rf conftest*
3171 ac_cv_func_alloca_works=no
3172 fi
3173 rm -f conftest*
3174 fi
3175
3176 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3177 if test $ac_cv_func_alloca_works = yes; then
3178 cat >> confdefs.h <<\EOF
3179 #define HAVE_ALLOCA 1
3180 EOF
3181
3182 fi
3183
3184 if test $ac_cv_func_alloca_works = no; then
3185 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3186 # that cause trouble. Some versions do not even contain alloca or
3187 # contain a buggy version. If you still want to use their alloca,
3188 # use ar to extract alloca.o from them instead of compiling alloca.c.
3189 ALLOCA=alloca.${ac_objext}
3190 cat >> confdefs.h <<\EOF
3191 #define C_ALLOCA 1
3192 EOF
3193
3194
3195 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3196 echo "configure:3197: checking whether alloca needs Cray hooks" >&5
3197 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3198 echo $ac_n "(cached) $ac_c" 1>&6
3199 else
3200 cat > conftest.$ac_ext <<EOF
3201 #line 3202 "configure"
3202 #include "confdefs.h"
3203 #if defined(CRAY) && ! defined(CRAY2)
3204 webecray
3205 #else
3206 wenotbecray
3207 #endif
3208
3209 EOF
3210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3211 egrep "webecray" >/dev/null 2>&1; then
3212 rm -rf conftest*
3213 ac_cv_os_cray=yes
3214 else
3215 rm -rf conftest*
3216 ac_cv_os_cray=no
3217 fi
3218 rm -f conftest*
3219
3220 fi
3221
3222 echo "$ac_t""$ac_cv_os_cray" 1>&6
3223 if test $ac_cv_os_cray = yes; then
3224 for ac_func in _getb67 GETB67 getb67; do
3225 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3226 echo "configure:3227: checking for $ac_func" >&5
3227 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3228 echo $ac_n "(cached) $ac_c" 1>&6
3229 else
3230 cat > conftest.$ac_ext <<EOF
3231 #line 3232 "configure"
3232 #include "confdefs.h"
3233 /* System header to define __stub macros and hopefully few prototypes,
3234 which can conflict with char $ac_func(); below. */
3235 #include <assert.h>
3236 /* Override any gcc2 internal prototype to avoid an error. */
3237 /* We use char because int might match the return type of a gcc2
3238 builtin and then its argument prototype would still apply. */
3239 char $ac_func();
3240
3241 int main() {
3242
3243 /* The GNU C library defines this for functions which it implements
3244 to always fail with ENOSYS. Some functions are actually named
3245 something starting with __ and the normal name is an alias. */
3246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3247 choke me
3248 #else
3249 $ac_func();
3250 #endif
3251
3252 ; return 0; }
3253 EOF
3254 if { (eval echo configure:3255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3255 rm -rf conftest*
3256 eval "ac_cv_func_$ac_func=yes"
3257 else
3258 echo "configure: failed program was:" >&5
3259 cat conftest.$ac_ext >&5
3260 rm -rf conftest*
3261 eval "ac_cv_func_$ac_func=no"
3262 fi
3263 rm -f conftest*
3264 fi
3265
3266 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3267 echo "$ac_t""yes" 1>&6
3268 cat >> confdefs.h <<EOF
3269 #define CRAY_STACKSEG_END $ac_func
3270 EOF
3271
3272 break
3273 else
3274 echo "$ac_t""no" 1>&6
3275 fi
3276
3277 done
3278 fi
3279
3280 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3281 echo "configure:3282: checking stack direction for C alloca" >&5
3282 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3283 echo $ac_n "(cached) $ac_c" 1>&6
3284 else
3285 if test "$cross_compiling" = yes; then
3286 ac_cv_c_stack_direction=0
3287 else
3288 cat > conftest.$ac_ext <<EOF
3289 #line 3290 "configure"
3290 #include "confdefs.h"
3291 find_stack_direction ()
3292 {
3293 static char *addr = 0;
3294 auto char dummy;
3295 if (addr == 0)
3296 {
3297 addr = &dummy;
3298 return find_stack_direction ();
3299 }
3300 else
3301 return (&dummy > addr) ? 1 : -1;
3302 }
3303 main ()
3304 {
3305 exit (find_stack_direction() < 0);
3306 }
3307 EOF
3308 if { (eval echo configure:3309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3309 then
3310 ac_cv_c_stack_direction=1
3311 else
3312 echo "configure: failed program was:" >&5
3313 cat conftest.$ac_ext >&5
3314 rm -fr conftest*
3315 ac_cv_c_stack_direction=-1
3316 fi
3317 rm -fr conftest*
3318 fi
3319
3320 fi
3321
3322 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3323 cat >> confdefs.h <<EOF
3324 #define STACK_DIRECTION $ac_cv_c_stack_direction
3325 EOF
3326
3327 fi
3328
3329 for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
3330 do
3331 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3332 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3333 echo "configure:3334: checking for $ac_hdr" >&5
3334 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3336 else
3337 cat > conftest.$ac_ext <<EOF
3338 #line 3339 "configure"
3339 #include "confdefs.h"
3340 #include <$ac_hdr>
3341 EOF
3342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3343 { (eval echo configure:3344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3345 if test -z "$ac_err"; then
3346 rm -rf conftest*
3347 eval "ac_cv_header_$ac_safe=yes"
3348 else
3349 echo "$ac_err" >&5
3350 echo "configure: failed program was:" >&5
3351 cat conftest.$ac_ext >&5
3352 rm -rf conftest*
3353 eval "ac_cv_header_$ac_safe=no"
3354 fi
3355 rm -f conftest*
3356 fi
3357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3358 echo "$ac_t""yes" 1>&6
3359 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3360 cat >> confdefs.h <<EOF
3361 #define $ac_tr_hdr 1
3362 EOF
3363
3364 else
3365 echo "$ac_t""no" 1>&6
3366 fi
3367 done
3368
3369 for ac_func in getpagesize
3370 do
3371 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3372 echo "configure:3373: checking for $ac_func" >&5
3373 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3374 echo $ac_n "(cached) $ac_c" 1>&6
3375 else
3376 cat > conftest.$ac_ext <<EOF
3377 #line 3378 "configure"
3378 #include "confdefs.h"
3379 /* System header to define __stub macros and hopefully few prototypes,
3380 which can conflict with char $ac_func(); below. */
3381 #include <assert.h>
3382 /* Override any gcc2 internal prototype to avoid an error. */
3383 /* We use char because int might match the return type of a gcc2
3384 builtin and then its argument prototype would still apply. */
3385 char $ac_func();
3386
3387 int main() {
3388
3389 /* The GNU C library defines this for functions which it implements
3390 to always fail with ENOSYS. Some functions are actually named
3391 something starting with __ and the normal name is an alias. */
3392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3393 choke me
3394 #else
3395 $ac_func();
3396 #endif
3397
3398 ; return 0; }
3399 EOF
3400 if { (eval echo configure:3401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3401 rm -rf conftest*
3402 eval "ac_cv_func_$ac_func=yes"
3403 else
3404 echo "configure: failed program was:" >&5
3405 cat conftest.$ac_ext >&5
3406 rm -rf conftest*
3407 eval "ac_cv_func_$ac_func=no"
3408 fi
3409 rm -f conftest*
3410 fi
3411
3412 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3413 echo "$ac_t""yes" 1>&6
3414 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3415 cat >> confdefs.h <<EOF
3416 #define $ac_tr_func 1
3417 EOF
3418
3419 else
3420 echo "$ac_t""no" 1>&6
3421 fi
3422 done
3423
3424 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3425 echo "configure:3426: checking for working mmap" >&5
3426 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3427 echo $ac_n "(cached) $ac_c" 1>&6
3428 else
3429 if test "$cross_compiling" = yes; then
3430 ac_cv_func_mmap_fixed_mapped=no
3431 else
3432 cat > conftest.$ac_ext <<EOF
3433 #line 3434 "configure"
3434 #include "confdefs.h"
3435
3436 /* Thanks to Mike Haertel and Jim Avera for this test.
3437 Here is a matrix of mmap possibilities:
3438 mmap private not fixed
3439 mmap private fixed at somewhere currently unmapped
3440 mmap private fixed at somewhere already mapped
3441 mmap shared not fixed
3442 mmap shared fixed at somewhere currently unmapped
3443 mmap shared fixed at somewhere already mapped
3444 For private mappings, we should verify that changes cannot be read()
3445 back from the file, nor mmap's back from the file at a different
3446 address. (There have been systems where private was not correctly
3447 implemented like the infamous i386 svr4.0, and systems where the
3448 VM page cache was not coherent with the filesystem buffer cache
3449 like early versions of FreeBSD and possibly contemporary NetBSD.)
3450 For shared mappings, we should conversely verify that changes get
3451 propogated back to all the places they're supposed to be.
3452
3453 Grep wants private fixed already mapped.
3454 The main things grep needs to know about mmap are:
3455 * does it exist and is it safe to write into the mmap'd area
3456 * how to use it (BSD variants) */
3457 #include <sys/types.h>
3458 #include <fcntl.h>
3459 #include <sys/mman.h>
3460
3461 #if HAVE_SYS_TYPES_H
3462 # include <sys/types.h>
3463 #endif
3464
3465 #if HAVE_STDLIB_H
3466 # include <stdlib.h>
3467 #endif
3468
3469 #if HAVE_SYS_STAT_H
3470 # include <sys/stat.h>
3471 #endif
3472
3473 #if HAVE_UNISTD_H
3474 # include <unistd.h>
3475 #endif
3476
3477 /* This mess was copied from the GNU getpagesize.h. */
3478 #ifndef HAVE_GETPAGESIZE
3479
3480 /* Assume that all systems that can run configure have sys/param.h. */
3481 # ifndef HAVE_SYS_PARAM_H
3482 # define HAVE_SYS_PARAM_H 1
3483 # endif
3484
3485 # ifdef _SC_PAGESIZE
3486 # define getpagesize() sysconf(_SC_PAGESIZE)
3487 # else /* no _SC_PAGESIZE */
3488 # ifdef HAVE_SYS_PARAM_H
3489 # include <sys/param.h>
3490 # ifdef EXEC_PAGESIZE
3491 # define getpagesize() EXEC_PAGESIZE
3492 # else /* no EXEC_PAGESIZE */
3493 # ifdef NBPG
3494 # define getpagesize() NBPG * CLSIZE
3495 # ifndef CLSIZE
3496 # define CLSIZE 1
3497 # endif /* no CLSIZE */
3498 # else /* no NBPG */
3499 # ifdef NBPC
3500 # define getpagesize() NBPC
3501 # else /* no NBPC */
3502 # ifdef PAGESIZE
3503 # define getpagesize() PAGESIZE
3504 # endif /* PAGESIZE */
3505 # endif /* no NBPC */
3506 # endif /* no NBPG */
3507 # endif /* no EXEC_PAGESIZE */
3508 # else /* no HAVE_SYS_PARAM_H */
3509 # define getpagesize() 8192 /* punt totally */
3510 # endif /* no HAVE_SYS_PARAM_H */
3511 # endif /* no _SC_PAGESIZE */
3512
3513 #endif /* no HAVE_GETPAGESIZE */
3514
3515 #ifdef __cplusplus
3516 extern "C" { void *malloc(unsigned); }
3517 #else
3518 char *malloc();
3519 #endif
3520
3521 int
3522 main()
3523 {
3524 char *data, *data2, *data3;
3525 int i, pagesize;
3526 int fd;
3527
3528 pagesize = getpagesize();
3529
3530 /*
3531 * First, make a file with some known garbage in it.
3532 */
3533 data = malloc(pagesize);
3534 if (!data)
3535 exit(1);
3536 for (i = 0; i < pagesize; ++i)
3537 *(data + i) = rand();
3538 umask(0);
3539 fd = creat("conftestmmap", 0600);
3540 if (fd < 0)
3541 exit(1);
3542 if (write(fd, data, pagesize) != pagesize)
3543 exit(1);
3544 close(fd);
3545
3546 /*
3547 * Next, try to mmap the file at a fixed address which
3548 * already has something else allocated at it. If we can,
3549 * also make sure that we see the same garbage.
3550 */
3551 fd = open("conftestmmap", O_RDWR);
3552 if (fd < 0)
3553 exit(1);
3554 data2 = malloc(2 * pagesize);
3555 if (!data2)
3556 exit(1);
3557 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3558 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3559 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3560 exit(1);
3561 for (i = 0; i < pagesize; ++i)
3562 if (*(data + i) != *(data2 + i))
3563 exit(1);
3564
3565 /*
3566 * Finally, make sure that changes to the mapped area
3567 * do not percolate back to the file as seen by read().
3568 * (This is a bug on some variants of i386 svr4.0.)
3569 */
3570 for (i = 0; i < pagesize; ++i)
3571 *(data2 + i) = *(data2 + i) + 1;
3572 data3 = malloc(pagesize);
3573 if (!data3)
3574 exit(1);
3575 if (read(fd, data3, pagesize) != pagesize)
3576 exit(1);
3577 for (i = 0; i < pagesize; ++i)
3578 if (*(data + i) != *(data3 + i))
3579 exit(1);
3580 close(fd);
3581 unlink("conftestmmap");
3582 exit(0);
3583 }
3584
3585 EOF
3586 if { (eval echo configure:3587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3587 then
3588 ac_cv_func_mmap_fixed_mapped=yes
3589 else
3590 echo "configure: failed program was:" >&5
3591 cat conftest.$ac_ext >&5
3592 rm -fr conftest*
3593 ac_cv_func_mmap_fixed_mapped=no
3594 fi
3595 rm -fr conftest*
3596 fi
3597
3598 fi
3599
3600 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3601 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3602 cat >> confdefs.h <<\EOF
3603 #define HAVE_MMAP 1
3604 EOF
3605
3606 fi
3607
3608
3609 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3610 unistd.h values.h sys/param.h
3611 do
3612 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3613 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3614 echo "configure:3615: checking for $ac_hdr" >&5
3615 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3617 else
3618 cat > conftest.$ac_ext <<EOF
3619 #line 3620 "configure"
3620 #include "confdefs.h"
3621 #include <$ac_hdr>
3622 EOF
3623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3624 { (eval echo configure:3625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3626 if test -z "$ac_err"; then
3627 rm -rf conftest*
3628 eval "ac_cv_header_$ac_safe=yes"
3629 else
3630 echo "$ac_err" >&5
3631 echo "configure: failed program was:" >&5
3632 cat conftest.$ac_ext >&5
3633 rm -rf conftest*
3634 eval "ac_cv_header_$ac_safe=no"
3635 fi
3636 rm -f conftest*
3637 fi
3638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3639 echo "$ac_t""yes" 1>&6
3640 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3641 cat >> confdefs.h <<EOF
3642 #define $ac_tr_hdr 1
3643 EOF
3644
3645 else
3646 echo "$ac_t""no" 1>&6
3647 fi
3648 done
3649
3650 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3651 __argz_count __argz_stringify __argz_next
3652 do
3653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3654 echo "configure:3655: checking for $ac_func" >&5
3655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3656 echo $ac_n "(cached) $ac_c" 1>&6
3657 else
3658 cat > conftest.$ac_ext <<EOF
3659 #line 3660 "configure"
3660 #include "confdefs.h"
3661 /* System header to define __stub macros and hopefully few prototypes,
3662 which can conflict with char $ac_func(); below. */
3663 #include <assert.h>
3664 /* Override any gcc2 internal prototype to avoid an error. */
3665 /* We use char because int might match the return type of a gcc2
3666 builtin and then its argument prototype would still apply. */
3667 char $ac_func();
3668
3669 int main() {
3670
3671 /* The GNU C library defines this for functions which it implements
3672 to always fail with ENOSYS. Some functions are actually named
3673 something starting with __ and the normal name is an alias. */
3674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3675 choke me
3676 #else
3677 $ac_func();
3678 #endif
3679
3680 ; return 0; }
3681 EOF
3682 if { (eval echo configure:3683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3683 rm -rf conftest*
3684 eval "ac_cv_func_$ac_func=yes"
3685 else
3686 echo "configure: failed program was:" >&5
3687 cat conftest.$ac_ext >&5
3688 rm -rf conftest*
3689 eval "ac_cv_func_$ac_func=no"
3690 fi
3691 rm -f conftest*
3692 fi
3693
3694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3695 echo "$ac_t""yes" 1>&6
3696 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3697 cat >> confdefs.h <<EOF
3698 #define $ac_tr_func 1
3699 EOF
3700
3701 else
3702 echo "$ac_t""no" 1>&6
3703 fi
3704 done
3705
3706
3707 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3708 for ac_func in stpcpy
3709 do
3710 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3711 echo "configure:3712: checking for $ac_func" >&5
3712 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3713 echo $ac_n "(cached) $ac_c" 1>&6
3714 else
3715 cat > conftest.$ac_ext <<EOF
3716 #line 3717 "configure"
3717 #include "confdefs.h"
3718 /* System header to define __stub macros and hopefully few prototypes,
3719 which can conflict with char $ac_func(); below. */
3720 #include <assert.h>
3721 /* Override any gcc2 internal prototype to avoid an error. */
3722 /* We use char because int might match the return type of a gcc2
3723 builtin and then its argument prototype would still apply. */
3724 char $ac_func();
3725
3726 int main() {
3727
3728 /* The GNU C library defines this for functions which it implements
3729 to always fail with ENOSYS. Some functions are actually named
3730 something starting with __ and the normal name is an alias. */
3731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3732 choke me
3733 #else
3734 $ac_func();
3735 #endif
3736
3737 ; return 0; }
3738 EOF
3739 if { (eval echo configure:3740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3740 rm -rf conftest*
3741 eval "ac_cv_func_$ac_func=yes"
3742 else
3743 echo "configure: failed program was:" >&5
3744 cat conftest.$ac_ext >&5
3745 rm -rf conftest*
3746 eval "ac_cv_func_$ac_func=no"
3747 fi
3748 rm -f conftest*
3749 fi
3750
3751 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3752 echo "$ac_t""yes" 1>&6
3753 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3754 cat >> confdefs.h <<EOF
3755 #define $ac_tr_func 1
3756 EOF
3757
3758 else
3759 echo "$ac_t""no" 1>&6
3760 fi
3761 done
3762
3763 fi
3764 if test "${ac_cv_func_stpcpy}" = "yes"; then
3765 cat >> confdefs.h <<\EOF
3766 #define HAVE_STPCPY 1
3767 EOF
3768
3769 fi
3770
3771 if test $ac_cv_header_locale_h = yes; then
3772 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3773 echo "configure:3774: checking for LC_MESSAGES" >&5
3774 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3775 echo $ac_n "(cached) $ac_c" 1>&6
3776 else
3777 cat > conftest.$ac_ext <<EOF
3778 #line 3779 "configure"
3779 #include "confdefs.h"
3780 #include <locale.h>
3781 int main() {
3782 return LC_MESSAGES
3783 ; return 0; }
3784 EOF
3785 if { (eval echo configure:3786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3786 rm -rf conftest*
3787 am_cv_val_LC_MESSAGES=yes
3788 else
3789 echo "configure: failed program was:" >&5
3790 cat conftest.$ac_ext >&5
3791 rm -rf conftest*
3792 am_cv_val_LC_MESSAGES=no
3793 fi
3794 rm -f conftest*
3795 fi
3796
3797 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3798 if test $am_cv_val_LC_MESSAGES = yes; then
3799 cat >> confdefs.h <<\EOF
3800 #define HAVE_LC_MESSAGES 1
3801 EOF
3802
3803 fi
3804 fi
3805 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3806 echo "configure:3807: checking whether NLS is requested" >&5
3807 # Check whether --enable-nls or --disable-nls was given.
3808 if test "${enable_nls+set}" = set; then
3809 enableval="$enable_nls"
3810 USE_NLS=$enableval
3811 else
3812 USE_NLS=yes
3813 fi
3814
3815 echo "$ac_t""$USE_NLS" 1>&6
3816
3817
3818 USE_INCLUDED_LIBINTL=no
3819
3820 if test "$USE_NLS" = "yes"; then
3821 cat >> confdefs.h <<\EOF
3822 #define ENABLE_NLS 1
3823 EOF
3824
3825 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3826 echo "configure:3827: checking whether included gettext is requested" >&5
3827 # Check whether --with-included-gettext or --without-included-gettext was given.
3828 if test "${with_included_gettext+set}" = set; then
3829 withval="$with_included_gettext"
3830 nls_cv_force_use_gnu_gettext=$withval
3831 else
3832 nls_cv_force_use_gnu_gettext=no
3833 fi
3834
3835 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3836
3837 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3838 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3839 nls_cv_header_intl=
3840 nls_cv_header_libgt=
3841 CATOBJEXT=NONE
3842
3843 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3844 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3845 echo "configure:3846: checking for libintl.h" >&5
3846 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3847 echo $ac_n "(cached) $ac_c" 1>&6
3848 else
3849 cat > conftest.$ac_ext <<EOF
3850 #line 3851 "configure"
3851 #include "confdefs.h"
3852 #include <libintl.h>
3853 EOF
3854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3855 { (eval echo configure:3856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3857 if test -z "$ac_err"; then
3858 rm -rf conftest*
3859 eval "ac_cv_header_$ac_safe=yes"
3860 else
3861 echo "$ac_err" >&5
3862 echo "configure: failed program was:" >&5
3863 cat conftest.$ac_ext >&5
3864 rm -rf conftest*
3865 eval "ac_cv_header_$ac_safe=no"
3866 fi
3867 rm -f conftest*
3868 fi
3869 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3870 echo "$ac_t""yes" 1>&6
3871 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3872 echo "configure:3873: checking for gettext in libc" >&5
3873 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3874 echo $ac_n "(cached) $ac_c" 1>&6
3875 else
3876 cat > conftest.$ac_ext <<EOF
3877 #line 3878 "configure"
3878 #include "confdefs.h"
3879 #include <libintl.h>
3880 int main() {
3881 return (int) gettext ("")
3882 ; return 0; }
3883 EOF
3884 if { (eval echo configure:3885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3885 rm -rf conftest*
3886 gt_cv_func_gettext_libc=yes
3887 else
3888 echo "configure: failed program was:" >&5
3889 cat conftest.$ac_ext >&5
3890 rm -rf conftest*
3891 gt_cv_func_gettext_libc=no
3892 fi
3893 rm -f conftest*
3894 fi
3895
3896 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3897
3898 if test "$gt_cv_func_gettext_libc" != "yes"; then
3899 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3900 echo "configure:3901: checking for bindtextdomain in -lintl" >&5
3901 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3902 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3903 echo $ac_n "(cached) $ac_c" 1>&6
3904 else
3905 ac_save_LIBS="$LIBS"
3906 LIBS="-lintl $LIBS"
3907 cat > conftest.$ac_ext <<EOF
3908 #line 3909 "configure"
3909 #include "confdefs.h"
3910 /* Override any gcc2 internal prototype to avoid an error. */
3911 /* We use char because int might match the return type of a gcc2
3912 builtin and then its argument prototype would still apply. */
3913 char bindtextdomain();
3914
3915 int main() {
3916 bindtextdomain()
3917 ; return 0; }
3918 EOF
3919 if { (eval echo configure:3920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3920 rm -rf conftest*
3921 eval "ac_cv_lib_$ac_lib_var=yes"
3922 else
3923 echo "configure: failed program was:" >&5
3924 cat conftest.$ac_ext >&5
3925 rm -rf conftest*
3926 eval "ac_cv_lib_$ac_lib_var=no"
3927 fi
3928 rm -f conftest*
3929 LIBS="$ac_save_LIBS"
3930
3931 fi
3932 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3933 echo "$ac_t""yes" 1>&6
3934 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3935 echo "configure:3936: checking for gettext in libintl" >&5
3936 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3937 echo $ac_n "(cached) $ac_c" 1>&6
3938 else
3939 cat > conftest.$ac_ext <<EOF
3940 #line 3941 "configure"
3941 #include "confdefs.h"
3942
3943 int main() {
3944 return (int) gettext ("")
3945 ; return 0; }
3946 EOF
3947 if { (eval echo configure:3948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3948 rm -rf conftest*
3949 gt_cv_func_gettext_libintl=yes
3950 else
3951 echo "configure: failed program was:" >&5
3952 cat conftest.$ac_ext >&5
3953 rm -rf conftest*
3954 gt_cv_func_gettext_libintl=no
3955 fi
3956 rm -f conftest*
3957 fi
3958
3959 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3960 else
3961 echo "$ac_t""no" 1>&6
3962 fi
3963
3964 fi
3965
3966 if test "$gt_cv_func_gettext_libc" = "yes" \
3967 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3968 cat >> confdefs.h <<\EOF
3969 #define HAVE_GETTEXT 1
3970 EOF
3971
3972 # Extract the first word of "msgfmt", so it can be a program name with args.
3973 set dummy msgfmt; ac_word=$2
3974 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3975 echo "configure:3976: checking for $ac_word" >&5
3976 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3977 echo $ac_n "(cached) $ac_c" 1>&6
3978 else
3979 case "$MSGFMT" in
3980 /*)
3981 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3982 ;;
3983 *)
3984 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3985 for ac_dir in $PATH; do
3986 test -z "$ac_dir" && ac_dir=.
3987 if test -f $ac_dir/$ac_word; then
3988 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3989 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3990 break
3991 fi
3992 fi
3993 done
3994 IFS="$ac_save_ifs"
3995 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3996 ;;
3997 esac
3998 fi
3999 MSGFMT="$ac_cv_path_MSGFMT"
4000 if test -n "$MSGFMT"; then
4001 echo "$ac_t""$MSGFMT" 1>&6
4002 else
4003 echo "$ac_t""no" 1>&6
4004 fi
4005 if test "$MSGFMT" != "no"; then
4006 for ac_func in dcgettext
4007 do
4008 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4009 echo "configure:4010: checking for $ac_func" >&5
4010 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4011 echo $ac_n "(cached) $ac_c" 1>&6
4012 else
4013 cat > conftest.$ac_ext <<EOF
4014 #line 4015 "configure"
4015 #include "confdefs.h"
4016 /* System header to define __stub macros and hopefully few prototypes,
4017 which can conflict with char $ac_func(); below. */
4018 #include <assert.h>
4019 /* Override any gcc2 internal prototype to avoid an error. */
4020 /* We use char because int might match the return type of a gcc2
4021 builtin and then its argument prototype would still apply. */
4022 char $ac_func();
4023
4024 int main() {
4025
4026 /* The GNU C library defines this for functions which it implements
4027 to always fail with ENOSYS. Some functions are actually named
4028 something starting with __ and the normal name is an alias. */
4029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4030 choke me
4031 #else
4032 $ac_func();
4033 #endif
4034
4035 ; return 0; }
4036 EOF
4037 if { (eval echo configure:4038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4038 rm -rf conftest*
4039 eval "ac_cv_func_$ac_func=yes"
4040 else
4041 echo "configure: failed program was:" >&5
4042 cat conftest.$ac_ext >&5
4043 rm -rf conftest*
4044 eval "ac_cv_func_$ac_func=no"
4045 fi
4046 rm -f conftest*
4047 fi
4048
4049 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4050 echo "$ac_t""yes" 1>&6
4051 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4052 cat >> confdefs.h <<EOF
4053 #define $ac_tr_func 1
4054 EOF
4055
4056 else
4057 echo "$ac_t""no" 1>&6
4058 fi
4059 done
4060
4061 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4062 set dummy gmsgfmt; ac_word=$2
4063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4064 echo "configure:4065: checking for $ac_word" >&5
4065 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4066 echo $ac_n "(cached) $ac_c" 1>&6
4067 else
4068 case "$GMSGFMT" in
4069 /*)
4070 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4071 ;;
4072 ?:/*)
4073 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4074 ;;
4075 *)
4076 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4077 ac_dummy="$PATH"
4078 for ac_dir in $ac_dummy; do
4079 test -z "$ac_dir" && ac_dir=.
4080 if test -f $ac_dir/$ac_word; then
4081 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4082 break
4083 fi
4084 done
4085 IFS="$ac_save_ifs"
4086 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4087 ;;
4088 esac
4089 fi
4090 GMSGFMT="$ac_cv_path_GMSGFMT"
4091 if test -n "$GMSGFMT"; then
4092 echo "$ac_t""$GMSGFMT" 1>&6
4093 else
4094 echo "$ac_t""no" 1>&6
4095 fi
4096
4097 # Extract the first word of "xgettext", so it can be a program name with args.
4098 set dummy xgettext; ac_word=$2
4099 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4100 echo "configure:4101: checking for $ac_word" >&5
4101 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4102 echo $ac_n "(cached) $ac_c" 1>&6
4103 else
4104 case "$XGETTEXT" in
4105 /*)
4106 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4107 ;;
4108 *)
4109 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4110 for ac_dir in $PATH; do
4111 test -z "$ac_dir" && ac_dir=.
4112 if test -f $ac_dir/$ac_word; then
4113 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4114 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4115 break
4116 fi
4117 fi
4118 done
4119 IFS="$ac_save_ifs"
4120 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4121 ;;
4122 esac
4123 fi
4124 XGETTEXT="$ac_cv_path_XGETTEXT"
4125 if test -n "$XGETTEXT"; then
4126 echo "$ac_t""$XGETTEXT" 1>&6
4127 else
4128 echo "$ac_t""no" 1>&6
4129 fi
4130
4131 cat > conftest.$ac_ext <<EOF
4132 #line 4133 "configure"
4133 #include "confdefs.h"
4134
4135 int main() {
4136 extern int _nl_msg_cat_cntr;
4137 return _nl_msg_cat_cntr
4138 ; return 0; }
4139 EOF
4140 if { (eval echo configure:4141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4141 rm -rf conftest*
4142 CATOBJEXT=.gmo
4143 DATADIRNAME=share
4144 else
4145 echo "configure: failed program was:" >&5
4146 cat conftest.$ac_ext >&5
4147 rm -rf conftest*
4148 CATOBJEXT=.mo
4149 DATADIRNAME=lib
4150 fi
4151 rm -f conftest*
4152 INSTOBJEXT=.mo
4153 fi
4154 fi
4155
4156 else
4157 echo "$ac_t""no" 1>&6
4158 fi
4159
4160
4161
4162 if test "$CATOBJEXT" = "NONE"; then
4163 nls_cv_use_gnu_gettext=yes
4164 fi
4165 fi
4166
4167 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4168 INTLOBJS="\$(GETTOBJS)"
4169 # Extract the first word of "msgfmt", so it can be a program name with args.
4170 set dummy msgfmt; ac_word=$2
4171 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4172 echo "configure:4173: checking for $ac_word" >&5
4173 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4174 echo $ac_n "(cached) $ac_c" 1>&6
4175 else
4176 case "$MSGFMT" in
4177 /*)
4178 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4179 ;;
4180 *)
4181 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4182 for ac_dir in $PATH; do
4183 test -z "$ac_dir" && ac_dir=.
4184 if test -f $ac_dir/$ac_word; then
4185 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4186 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4187 break
4188 fi
4189 fi
4190 done
4191 IFS="$ac_save_ifs"
4192 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4193 ;;
4194 esac
4195 fi
4196 MSGFMT="$ac_cv_path_MSGFMT"
4197 if test -n "$MSGFMT"; then
4198 echo "$ac_t""$MSGFMT" 1>&6
4199 else
4200 echo "$ac_t""no" 1>&6
4201 fi
4202
4203 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4204 set dummy gmsgfmt; ac_word=$2
4205 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4206 echo "configure:4207: checking for $ac_word" >&5
4207 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4208 echo $ac_n "(cached) $ac_c" 1>&6
4209 else
4210 case "$GMSGFMT" in
4211 /*)
4212 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4213 ;;
4214 ?:/*)
4215 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4216 ;;
4217 *)
4218 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4219 ac_dummy="$PATH"
4220 for ac_dir in $ac_dummy; do
4221 test -z "$ac_dir" && ac_dir=.
4222 if test -f $ac_dir/$ac_word; then
4223 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4224 break
4225 fi
4226 done
4227 IFS="$ac_save_ifs"
4228 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4229 ;;
4230 esac
4231 fi
4232 GMSGFMT="$ac_cv_path_GMSGFMT"
4233 if test -n "$GMSGFMT"; then
4234 echo "$ac_t""$GMSGFMT" 1>&6
4235 else
4236 echo "$ac_t""no" 1>&6
4237 fi
4238
4239 # Extract the first word of "xgettext", so it can be a program name with args.
4240 set dummy xgettext; ac_word=$2
4241 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4242 echo "configure:4243: checking for $ac_word" >&5
4243 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4244 echo $ac_n "(cached) $ac_c" 1>&6
4245 else
4246 case "$XGETTEXT" in
4247 /*)
4248 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4249 ;;
4250 *)
4251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4252 for ac_dir in $PATH; do
4253 test -z "$ac_dir" && ac_dir=.
4254 if test -f $ac_dir/$ac_word; then
4255 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4256 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4257 break
4258 fi
4259 fi
4260 done
4261 IFS="$ac_save_ifs"
4262 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4263 ;;
4264 esac
4265 fi
4266 XGETTEXT="$ac_cv_path_XGETTEXT"
4267 if test -n "$XGETTEXT"; then
4268 echo "$ac_t""$XGETTEXT" 1>&6
4269 else
4270 echo "$ac_t""no" 1>&6
4271 fi
4272
4273
4274 USE_INCLUDED_LIBINTL=yes
4275 CATOBJEXT=.gmo
4276 INSTOBJEXT=.mo
4277 DATADIRNAME=share
4278 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4279 INTLLIBS=$INTLDEPS
4280 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4281 nls_cv_header_intl=libintl.h
4282 nls_cv_header_libgt=libgettext.h
4283 fi
4284
4285 if test "$XGETTEXT" != ":"; then
4286 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4287 : ;
4288 else
4289 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4290 XGETTEXT=":"
4291 fi
4292 fi
4293
4294 # We need to process the po/ directory.
4295 POSUB=po
4296 else
4297 DATADIRNAME=share
4298 nls_cv_header_intl=libintl.h
4299 nls_cv_header_libgt=libgettext.h
4300 fi
4301
4302 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4303 # because some of the sources are only built for this goal.
4304 if test "$PACKAGE" = gettext; then
4305 USE_NLS=yes
4306 USE_INCLUDED_LIBINTL=yes
4307 fi
4308
4309 for lang in $ALL_LINGUAS; do
4310 GMOFILES="$GMOFILES $lang.gmo"
4311 POFILES="$POFILES $lang.po"
4312 done
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327 if test "x$CATOBJEXT" != "x"; then
4328 if test "x$ALL_LINGUAS" = "x"; then
4329 LINGUAS=
4330 else
4331 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4332 echo "configure:4333: checking for catalogs to be installed" >&5
4333 NEW_LINGUAS=
4334 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4335 case "$ALL_LINGUAS" in
4336 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4337 esac
4338 done
4339 LINGUAS=$NEW_LINGUAS
4340 echo "$ac_t""$LINGUAS" 1>&6
4341 fi
4342
4343 if test -n "$LINGUAS"; then
4344 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4345 fi
4346 fi
4347
4348 if test $ac_cv_header_locale_h = yes; then
4349 INCLUDE_LOCALE_H="#include <locale.h>"
4350 else
4351 INCLUDE_LOCALE_H="\
4352 /* The system does not provide the header <locale.h>. Take care yourself. */"
4353 fi
4354
4355
4356 if test -f $srcdir/po2tbl.sed.in; then
4357 if test "$CATOBJEXT" = ".cat"; then
4358 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4359 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4360 echo "configure:4361: checking for linux/version.h" >&5
4361 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4362 echo $ac_n "(cached) $ac_c" 1>&6
4363 else
4364 cat > conftest.$ac_ext <<EOF
4365 #line 4366 "configure"
4366 #include "confdefs.h"
4367 #include <linux/version.h>
4368 EOF
4369 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4370 { (eval echo configure:4371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4371 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4372 if test -z "$ac_err"; then
4373 rm -rf conftest*
4374 eval "ac_cv_header_$ac_safe=yes"
4375 else
4376 echo "$ac_err" >&5
4377 echo "configure: failed program was:" >&5
4378 cat conftest.$ac_ext >&5
4379 rm -rf conftest*
4380 eval "ac_cv_header_$ac_safe=no"
4381 fi
4382 rm -f conftest*
4383 fi
4384 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4385 echo "$ac_t""yes" 1>&6
4386 msgformat=linux
4387 else
4388 echo "$ac_t""no" 1>&6
4389 msgformat=xopen
4390 fi
4391
4392
4393 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4394 fi
4395 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4396 $srcdir/po2tbl.sed.in > po2tbl.sed
4397 fi
4398
4399 if test "$PACKAGE" = "gettext"; then
4400 GT_NO="#NO#"
4401 GT_YES=
4402 else
4403 GT_NO=
4404 GT_YES="#YES#"
4405 fi
4406
4407
4408
4409 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4410
4411
4412 l=
4413
4414
4415 if test -f $srcdir/po/POTFILES.in; then
4416 test -d po || mkdir po
4417 if test "x$srcdir" != "x."; then
4418 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4419 posrcprefix="$srcdir/"
4420 else
4421 posrcprefix="../$srcdir/"
4422 fi
4423 else
4424 posrcprefix="../"
4425 fi
4426 rm -f po/POTFILES
4427 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4428 < $srcdir/po/POTFILES.in > po/POTFILES
4429 fi
4430
4431
4432 # Permit host specific settings.
4433 . ${srcdir}/configure.host
4434
4435
4436 # Find a good install program. We prefer a C program (faster),
4437 # so one script is as good as another. But avoid the broken or
4438 # incompatible versions:
4439 # SysV /etc/install, /usr/sbin/install
4440 # SunOS /usr/etc/install
4441 # IRIX /sbin/install
4442 # AIX /bin/install
4443 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4444 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4445 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4446 # ./install, which can be erroneously created by make from ./install.sh.
4447 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4448 echo "configure:4449: checking for a BSD compatible install" >&5
4449 if test -z "$INSTALL"; then
4450 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4451 echo $ac_n "(cached) $ac_c" 1>&6
4452 else
4453 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
4454 for ac_dir in $PATH; do
4455 # Account for people who put trailing slashes in PATH elements.
4456 case "$ac_dir/" in
4457 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4458 *)
4459 # OSF1 and SCO ODT 3.0 have their own names for install.
4460 # Don't use installbsd from OSF since it installs stuff as root
4461 # by default.
4462 for ac_prog in ginstall scoinst install; do
4463 if test -f $ac_dir/$ac_prog; then
4464 if test $ac_prog = install &&
4465 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4466 # AIX install. It has an incompatible calling convention.
4467 :
4468 else
4469 ac_cv_path_install="$ac_dir/$ac_prog -c"
4470 break 2
4471 fi
4472 fi
4473 done
4474 ;;
4475 esac
4476 done
4477 IFS="$ac_save_IFS"
4478
4479 fi
4480 if test "${ac_cv_path_install+set}" = set; then
4481 INSTALL="$ac_cv_path_install"
4482 else
4483 # As a last resort, use the slow shell script. We don't cache a
4484 # path for INSTALL within a source directory, because that will
4485 # break other packages using the cache if that directory is
4486 # removed, or if the path is relative.
4487 INSTALL="$ac_install_sh"
4488 fi
4489 fi
4490 echo "$ac_t""$INSTALL" 1>&6
4491
4492 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4493 # It thinks the first close brace ends the variable substitution.
4494 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4495
4496 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4497
4498 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4499
4500
4501 BFD_HOST_64BIT_LONG=0
4502 BFD_HOST_64_BIT_DEFINED=0
4503 BFD_HOST_64_BIT=
4504 BFD_HOST_U_64_BIT=
4505 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
4506 BFD_HOST_64BIT_LONG=1
4507 elif test "x${HOST_64BIT_TYPE}" != "x"; then
4508 BFD_HOST_64_BIT_DEFINED=1
4509 BFD_HOST_64_BIT=${HOST_64BIT_TYPE}
4510 BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE}
4511 fi
4512
4513
4514
4515
4516
4517 # Put a plausible default for CC_FOR_BUILD in Makefile.
4518 if test -z "$CC_FOR_BUILD"; then
4519 if test "x$cross_compiling" = "xno"; then
4520 CC_FOR_BUILD='$(CC)'
4521 else
4522 CC_FOR_BUILD=gcc
4523 fi
4524 fi
4525
4526 # Also set EXEEXT_FOR_BUILD.
4527 if test "x$cross_compiling" = "xno"; then
4528 EXEEXT_FOR_BUILD='$(EXEEXT)'
4529 else
4530 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4531 echo "configure:4532: checking for build system executable suffix" >&5
4532 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4533 echo $ac_n "(cached) $ac_c" 1>&6
4534 else
4535 rm -f conftest*
4536 echo 'int main () { return 0; }' > conftest.c
4537 bfd_cv_build_exeext=
4538 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
4539 for file in conftest.*; do
4540 case $file in
4541 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
4542 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4543 esac
4544 done
4545 rm -f conftest*
4546 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
4547 fi
4548
4549 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4550 EXEEXT_FOR_BUILD=""
4551 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
4552 fi
4553
4554
4555 for ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h
4556 do
4557 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4558 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4559 echo "configure:4560: checking for $ac_hdr" >&5
4560 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4561 echo $ac_n "(cached) $ac_c" 1>&6
4562 else
4563 cat > conftest.$ac_ext <<EOF
4564 #line 4565 "configure"
4565 #include "confdefs.h"
4566 #include <$ac_hdr>
4567 EOF
4568 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4569 { (eval echo configure:4570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4570 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4571 if test -z "$ac_err"; then
4572 rm -rf conftest*
4573 eval "ac_cv_header_$ac_safe=yes"
4574 else
4575 echo "$ac_err" >&5
4576 echo "configure: failed program was:" >&5
4577 cat conftest.$ac_ext >&5
4578 rm -rf conftest*
4579 eval "ac_cv_header_$ac_safe=no"
4580 fi
4581 rm -f conftest*
4582 fi
4583 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4584 echo "$ac_t""yes" 1>&6
4585 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4586 cat >> confdefs.h <<EOF
4587 #define $ac_tr_hdr 1
4588 EOF
4589
4590 else
4591 echo "$ac_t""no" 1>&6
4592 fi
4593 done
4594
4595 for ac_hdr in fcntl.h sys/file.h sys/time.h
4596 do
4597 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4598 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4599 echo "configure:4600: checking for $ac_hdr" >&5
4600 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4601 echo $ac_n "(cached) $ac_c" 1>&6
4602 else
4603 cat > conftest.$ac_ext <<EOF
4604 #line 4605 "configure"
4605 #include "confdefs.h"
4606 #include <$ac_hdr>
4607 EOF
4608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4609 { (eval echo configure:4610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4611 if test -z "$ac_err"; then
4612 rm -rf conftest*
4613 eval "ac_cv_header_$ac_safe=yes"
4614 else
4615 echo "$ac_err" >&5
4616 echo "configure: failed program was:" >&5
4617 cat conftest.$ac_ext >&5
4618 rm -rf conftest*
4619 eval "ac_cv_header_$ac_safe=no"
4620 fi
4621 rm -f conftest*
4622 fi
4623 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4624 echo "$ac_t""yes" 1>&6
4625 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4626 cat >> confdefs.h <<EOF
4627 #define $ac_tr_hdr 1
4628 EOF
4629
4630 else
4631 echo "$ac_t""no" 1>&6
4632 fi
4633 done
4634
4635 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4636 echo "configure:4637: checking whether time.h and sys/time.h may both be included" >&5
4637 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4638 echo $ac_n "(cached) $ac_c" 1>&6
4639 else
4640 cat > conftest.$ac_ext <<EOF
4641 #line 4642 "configure"
4642 #include "confdefs.h"
4643 #include <sys/types.h>
4644 #include <sys/time.h>
4645 #include <time.h>
4646 int main() {
4647 struct tm *tp;
4648 ; return 0; }
4649 EOF
4650 if { (eval echo configure:4651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4651 rm -rf conftest*
4652 ac_cv_header_time=yes
4653 else
4654 echo "configure: failed program was:" >&5
4655 cat conftest.$ac_ext >&5
4656 rm -rf conftest*
4657 ac_cv_header_time=no
4658 fi
4659 rm -f conftest*
4660 fi
4661
4662 echo "$ac_t""$ac_cv_header_time" 1>&6
4663 if test $ac_cv_header_time = yes; then
4664 cat >> confdefs.h <<\EOF
4665 #define TIME_WITH_SYS_TIME 1
4666 EOF
4667
4668 fi
4669
4670 ac_header_dirent=no
4671 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4672 do
4673 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4674 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4675 echo "configure:4676: checking for $ac_hdr that defines DIR" >&5
4676 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4677 echo $ac_n "(cached) $ac_c" 1>&6
4678 else
4679 cat > conftest.$ac_ext <<EOF
4680 #line 4681 "configure"
4681 #include "confdefs.h"
4682 #include <sys/types.h>
4683 #include <$ac_hdr>
4684 int main() {
4685 DIR *dirp = 0;
4686 ; return 0; }
4687 EOF
4688 if { (eval echo configure:4689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4689 rm -rf conftest*
4690 eval "ac_cv_header_dirent_$ac_safe=yes"
4691 else
4692 echo "configure: failed program was:" >&5
4693 cat conftest.$ac_ext >&5
4694 rm -rf conftest*
4695 eval "ac_cv_header_dirent_$ac_safe=no"
4696 fi
4697 rm -f conftest*
4698 fi
4699 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4700 echo "$ac_t""yes" 1>&6
4701 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4702 cat >> confdefs.h <<EOF
4703 #define $ac_tr_hdr 1
4704 EOF
4705 ac_header_dirent=$ac_hdr; break
4706 else
4707 echo "$ac_t""no" 1>&6
4708 fi
4709 done
4710 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4711 if test $ac_header_dirent = dirent.h; then
4712 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4713 echo "configure:4714: checking for opendir in -ldir" >&5
4714 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4715 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4716 echo $ac_n "(cached) $ac_c" 1>&6
4717 else
4718 ac_save_LIBS="$LIBS"
4719 LIBS="-ldir $LIBS"
4720 cat > conftest.$ac_ext <<EOF
4721 #line 4722 "configure"
4722 #include "confdefs.h"
4723 /* Override any gcc2 internal prototype to avoid an error. */
4724 /* We use char because int might match the return type of a gcc2
4725 builtin and then its argument prototype would still apply. */
4726 char opendir();
4727
4728 int main() {
4729 opendir()
4730 ; return 0; }
4731 EOF
4732 if { (eval echo configure:4733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4733 rm -rf conftest*
4734 eval "ac_cv_lib_$ac_lib_var=yes"
4735 else
4736 echo "configure: failed program was:" >&5
4737 cat conftest.$ac_ext >&5
4738 rm -rf conftest*
4739 eval "ac_cv_lib_$ac_lib_var=no"
4740 fi
4741 rm -f conftest*
4742 LIBS="$ac_save_LIBS"
4743
4744 fi
4745 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4746 echo "$ac_t""yes" 1>&6
4747 LIBS="$LIBS -ldir"
4748 else
4749 echo "$ac_t""no" 1>&6
4750 fi
4751
4752 else
4753 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4754 echo "configure:4755: checking for opendir in -lx" >&5
4755 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4756 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4757 echo $ac_n "(cached) $ac_c" 1>&6
4758 else
4759 ac_save_LIBS="$LIBS"
4760 LIBS="-lx $LIBS"
4761 cat > conftest.$ac_ext <<EOF
4762 #line 4763 "configure"
4763 #include "confdefs.h"
4764 /* Override any gcc2 internal prototype to avoid an error. */
4765 /* We use char because int might match the return type of a gcc2
4766 builtin and then its argument prototype would still apply. */
4767 char opendir();
4768
4769 int main() {
4770 opendir()
4771 ; return 0; }
4772 EOF
4773 if { (eval echo configure:4774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4774 rm -rf conftest*
4775 eval "ac_cv_lib_$ac_lib_var=yes"
4776 else
4777 echo "configure: failed program was:" >&5
4778 cat conftest.$ac_ext >&5
4779 rm -rf conftest*
4780 eval "ac_cv_lib_$ac_lib_var=no"
4781 fi
4782 rm -f conftest*
4783 LIBS="$ac_save_LIBS"
4784
4785 fi
4786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4787 echo "$ac_t""yes" 1>&6
4788 LIBS="$LIBS -lx"
4789 else
4790 echo "$ac_t""no" 1>&6
4791 fi
4792
4793 fi
4794
4795 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
4796 do
4797 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4798 echo "configure:4799: checking for $ac_func" >&5
4799 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4800 echo $ac_n "(cached) $ac_c" 1>&6
4801 else
4802 cat > conftest.$ac_ext <<EOF
4803 #line 4804 "configure"
4804 #include "confdefs.h"
4805 /* System header to define __stub macros and hopefully few prototypes,
4806 which can conflict with char $ac_func(); below. */
4807 #include <assert.h>
4808 /* Override any gcc2 internal prototype to avoid an error. */
4809 /* We use char because int might match the return type of a gcc2
4810 builtin and then its argument prototype would still apply. */
4811 char $ac_func();
4812
4813 int main() {
4814
4815 /* The GNU C library defines this for functions which it implements
4816 to always fail with ENOSYS. Some functions are actually named
4817 something starting with __ and the normal name is an alias. */
4818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4819 choke me
4820 #else
4821 $ac_func();
4822 #endif
4823
4824 ; return 0; }
4825 EOF
4826 if { (eval echo configure:4827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4827 rm -rf conftest*
4828 eval "ac_cv_func_$ac_func=yes"
4829 else
4830 echo "configure: failed program was:" >&5
4831 cat conftest.$ac_ext >&5
4832 rm -rf conftest*
4833 eval "ac_cv_func_$ac_func=no"
4834 fi
4835 rm -f conftest*
4836 fi
4837
4838 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4839 echo "$ac_t""yes" 1>&6
4840 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4841 cat >> confdefs.h <<EOF
4842 #define $ac_tr_func 1
4843 EOF
4844
4845 else
4846 echo "$ac_t""no" 1>&6
4847 fi
4848 done
4849
4850
4851
4852 case "${host}" in
4853 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
4854 cat >> confdefs.h <<\EOF
4855 #define USE_BINARY_FOPEN 1
4856 EOF
4857 ;;
4858 esac
4859
4860 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4861 echo "configure:4862: checking whether strstr must be declared" >&5
4862 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4863 echo $ac_n "(cached) $ac_c" 1>&6
4864 else
4865 cat > conftest.$ac_ext <<EOF
4866 #line 4867 "configure"
4867 #include "confdefs.h"
4868
4869 #include <stdio.h>
4870 #ifdef HAVE_STRING_H
4871 #include <string.h>
4872 #else
4873 #ifdef HAVE_STRINGS_H
4874 #include <strings.h>
4875 #endif
4876 #endif
4877 #ifdef HAVE_STDLIB_H
4878 #include <stdlib.h>
4879 #endif
4880 #ifdef HAVE_UNISTD_H
4881 #include <unistd.h>
4882 #endif
4883 int main() {
4884 char *(*pfn) = (char *(*)) strstr
4885 ; return 0; }
4886 EOF
4887 if { (eval echo configure:4888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4888 rm -rf conftest*
4889 bfd_cv_decl_needed_strstr=no
4890 else
4891 echo "configure: failed program was:" >&5
4892 cat conftest.$ac_ext >&5
4893 rm -rf conftest*
4894 bfd_cv_decl_needed_strstr=yes
4895 fi
4896 rm -f conftest*
4897 fi
4898
4899 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4900 if test $bfd_cv_decl_needed_strstr = yes; then
4901 cat >> confdefs.h <<\EOF
4902 #define NEED_DECLARATION_STRSTR 1
4903 EOF
4904
4905 fi
4906
4907 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4908 echo "configure:4909: checking whether malloc must be declared" >&5
4909 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4910 echo $ac_n "(cached) $ac_c" 1>&6
4911 else
4912 cat > conftest.$ac_ext <<EOF
4913 #line 4914 "configure"
4914 #include "confdefs.h"
4915
4916 #include <stdio.h>
4917 #ifdef HAVE_STRING_H
4918 #include <string.h>
4919 #else
4920 #ifdef HAVE_STRINGS_H
4921 #include <strings.h>
4922 #endif
4923 #endif
4924 #ifdef HAVE_STDLIB_H
4925 #include <stdlib.h>
4926 #endif
4927 #ifdef HAVE_UNISTD_H
4928 #include <unistd.h>
4929 #endif
4930 int main() {
4931 char *(*pfn) = (char *(*)) malloc
4932 ; return 0; }
4933 EOF
4934 if { (eval echo configure:4935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4935 rm -rf conftest*
4936 bfd_cv_decl_needed_malloc=no
4937 else
4938 echo "configure: failed program was:" >&5
4939 cat conftest.$ac_ext >&5
4940 rm -rf conftest*
4941 bfd_cv_decl_needed_malloc=yes
4942 fi
4943 rm -f conftest*
4944 fi
4945
4946 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4947 if test $bfd_cv_decl_needed_malloc = yes; then
4948 cat >> confdefs.h <<\EOF
4949 #define NEED_DECLARATION_MALLOC 1
4950 EOF
4951
4952 fi
4953
4954 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4955 echo "configure:4956: checking whether realloc must be declared" >&5
4956 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4957 echo $ac_n "(cached) $ac_c" 1>&6
4958 else
4959 cat > conftest.$ac_ext <<EOF
4960 #line 4961 "configure"
4961 #include "confdefs.h"
4962
4963 #include <stdio.h>
4964 #ifdef HAVE_STRING_H
4965 #include <string.h>
4966 #else
4967 #ifdef HAVE_STRINGS_H
4968 #include <strings.h>
4969 #endif
4970 #endif
4971 #ifdef HAVE_STDLIB_H
4972 #include <stdlib.h>
4973 #endif
4974 #ifdef HAVE_UNISTD_H
4975 #include <unistd.h>
4976 #endif
4977 int main() {
4978 char *(*pfn) = (char *(*)) realloc
4979 ; return 0; }
4980 EOF
4981 if { (eval echo configure:4982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4982 rm -rf conftest*
4983 bfd_cv_decl_needed_realloc=no
4984 else
4985 echo "configure: failed program was:" >&5
4986 cat conftest.$ac_ext >&5
4987 rm -rf conftest*
4988 bfd_cv_decl_needed_realloc=yes
4989 fi
4990 rm -f conftest*
4991 fi
4992
4993 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4994 if test $bfd_cv_decl_needed_realloc = yes; then
4995 cat >> confdefs.h <<\EOF
4996 #define NEED_DECLARATION_REALLOC 1
4997 EOF
4998
4999 fi
5000
5001 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
5002 echo "configure:5003: checking whether free must be declared" >&5
5003 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
5004 echo $ac_n "(cached) $ac_c" 1>&6
5005 else
5006 cat > conftest.$ac_ext <<EOF
5007 #line 5008 "configure"
5008 #include "confdefs.h"
5009
5010 #include <stdio.h>
5011 #ifdef HAVE_STRING_H
5012 #include <string.h>
5013 #else
5014 #ifdef HAVE_STRINGS_H
5015 #include <strings.h>
5016 #endif
5017 #endif
5018 #ifdef HAVE_STDLIB_H
5019 #include <stdlib.h>
5020 #endif
5021 #ifdef HAVE_UNISTD_H
5022 #include <unistd.h>
5023 #endif
5024 int main() {
5025 char *(*pfn) = (char *(*)) free
5026 ; return 0; }
5027 EOF
5028 if { (eval echo configure:5029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5029 rm -rf conftest*
5030 bfd_cv_decl_needed_free=no
5031 else
5032 echo "configure: failed program was:" >&5
5033 cat conftest.$ac_ext >&5
5034 rm -rf conftest*
5035 bfd_cv_decl_needed_free=yes
5036 fi
5037 rm -f conftest*
5038 fi
5039
5040 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
5041 if test $bfd_cv_decl_needed_free = yes; then
5042 cat >> confdefs.h <<\EOF
5043 #define NEED_DECLARATION_FREE 1
5044 EOF
5045
5046 fi
5047
5048 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
5049 echo "configure:5050: checking whether getenv must be declared" >&5
5050 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
5051 echo $ac_n "(cached) $ac_c" 1>&6
5052 else
5053 cat > conftest.$ac_ext <<EOF
5054 #line 5055 "configure"
5055 #include "confdefs.h"
5056
5057 #include <stdio.h>
5058 #ifdef HAVE_STRING_H
5059 #include <string.h>
5060 #else
5061 #ifdef HAVE_STRINGS_H
5062 #include <strings.h>
5063 #endif
5064 #endif
5065 #ifdef HAVE_STDLIB_H
5066 #include <stdlib.h>
5067 #endif
5068 #ifdef HAVE_UNISTD_H
5069 #include <unistd.h>
5070 #endif
5071 int main() {
5072 char *(*pfn) = (char *(*)) getenv
5073 ; return 0; }
5074 EOF
5075 if { (eval echo configure:5076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5076 rm -rf conftest*
5077 bfd_cv_decl_needed_getenv=no
5078 else
5079 echo "configure: failed program was:" >&5
5080 cat conftest.$ac_ext >&5
5081 rm -rf conftest*
5082 bfd_cv_decl_needed_getenv=yes
5083 fi
5084 rm -f conftest*
5085 fi
5086
5087 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
5088 if test $bfd_cv_decl_needed_getenv = yes; then
5089 cat >> confdefs.h <<\EOF
5090 #define NEED_DECLARATION_GETENV 1
5091 EOF
5092
5093 fi
5094
5095
5096 # If we are configured native, pick a core file support file.
5097 COREFILE=
5098 COREFLAG=
5099 TRAD_HEADER=
5100 if test "${target}" = "${host}"; then
5101 case "${host}" in
5102 alpha*-*-freebsd*)
5103 COREFILE=''
5104 ;;
5105 alpha*-*-linux-gnu*)
5106 COREFILE=trad-core.lo
5107 TRAD_HEADER='"hosts/alphalinux.h"'
5108 ;;
5109 alpha*-*-netbsd* | alpha*-*-openbsd*)
5110 COREFILE=netbsd-core.lo
5111 ;;
5112 alpha*-*-*) COREFILE=osf-core.lo ;;
5113 arm-*-freebsd*) COREFILE='' ;;
5114 arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
5115 arm-*-riscix) COREFILE=trad-core.lo ;;
5116 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
5117 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
5118 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
5119 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
5120 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
5121 i370-*-*)
5122 COREFILE=trad-core.lo
5123 TRAD_HEADER='"hosts/i370linux.h"'
5124 ;;
5125
5126 i[3-7]86-sequent-bsd*)
5127 COREFILE=trad-core.lo
5128 TRAD_HEADER='"hosts/symmetry.h"'
5129 ;;
5130 i[3-7]86-sequent-sysv4*) ;;
5131 i[3-7]86-sequent-sysv*)
5132 COREFILE=trad-core.lo
5133 TRAD_HEADER='"hosts/symmetry.h"'
5134 ;;
5135 i[3-7]86-*-bsdi)
5136 COREFILE=
5137 ;;
5138 i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234]* | i[3-7]86-*-freebsd*aout*)
5139 COREFILE=trad-core.lo
5140 TRAD_HEADER='"hosts/i386bsd.h"'
5141 ;;
5142 i[3-7]86-*-freebsd*)
5143 COREFILE=''
5144 TRAD_HEADER='"hosts/i386bsd.h"'
5145 ;;
5146 i[3-7]86-*-netbsd* | i[3-7]86-*-openbsd*)
5147 COREFILE=netbsd-core.lo
5148 ;;
5149 i[3-7]86-esix-sysv3*)
5150 COREFILE=trad-core.lo
5151 TRAD_HEADER='"hosts/esix.h"'
5152 ;;
5153 i[3-7]86-*-sco3.2v5*)
5154 COREFILE=sco5-core.lo
5155 ;;
5156 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
5157 COREFILE=trad-core.lo
5158 TRAD_HEADER='"hosts/i386sco.h"'
5159 ;;
5160 i[3-7]86-*-mach3*)
5161 COREFILE=trad-core.lo
5162 TRAD_HEADER='"hosts/i386mach3.h"'
5163 ;;
5164 i[3-7]86-*-linux-gnu*)
5165 COREFILE=trad-core.lo
5166 TRAD_HEADER='"hosts/i386linux.h"'
5167 ;;
5168 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
5169 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
5170 i860-*-mach3* | i860-*-osf1*)
5171 COREFILE=trad-core.lo
5172 TRAD_HEADER='"hosts/i860mach3.h"'
5173 ;;
5174 mips-dec-bsd*)
5175 COREFILE=trad-core.lo
5176 TRAD_HEADER='"hosts/mipsbsd.h"'
5177 ;;
5178 mips-dec-mach3*)
5179 COREFILE=trad-core.lo
5180 TRAD_HEADER='"hosts/mipsmach3.h"'
5181 ;;
5182 mips-*-netbsd* | mips*-*-openbsd*)
5183 COREFILE=netbsd-core.lo
5184 ;;
5185 mips-dec-*)
5186 COREFILE=trad-core.lo
5187 TRAD_HEADER='"hosts/decstation.h"'
5188 ;;
5189 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
5190 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
5191 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
5192 mips-*-mach3*)
5193 COREFILE=trad-core.lo
5194 TRAD_HEADER='"hosts/mipsmach3.h"'
5195 ;;
5196 mips-*-sysv4*) ;;
5197 mips-*-sysv* | mips-*-riscos*)
5198 COREFILE=trad-core.lo
5199 TRAD_HEADER='"hosts/riscos.h"'
5200 ;;
5201 mips-sony-bsd*)
5202 COREFILE=trad-core.lo
5203 TRAD_HEADER='"hosts/news-mips.h"'
5204 ;;
5205 m68*-bull*-sysv*)
5206 COREFILE=trad-core.lo
5207 TRAD_HEADER='"hosts/dpx2.h"'
5208 ;;
5209 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
5210 m68*-hp-bsd*)
5211 COREFILE=trad-core.lo
5212 TRAD_HEADER='"hosts/hp300bsd.h"'
5213 ;;
5214 m68*-*-linux-gnu*)
5215 COREFILE=trad-core.lo
5216 TRAD_HEADER='"hosts/m68klinux.h"'
5217 ;;
5218 m68*-motorola-sysv*)
5219 COREFILE=trad-core.lo
5220 TRAD_HEADER='"hosts/delta68.h"'
5221 ;;
5222 m68*-sony-*)
5223 COREFILE=trad-core.lo
5224 TRAD_HEADER='"hosts/news.h"'
5225 ;;
5226 m68*-*-netbsd* | m68*-*-openbsd*)
5227 COREFILE=netbsd-core.lo
5228 ;;
5229 m68*-apple-aux*)
5230 COREFILE=trad-core.lo
5231 TRAD_HEADER='"hosts/m68kaux.h"'
5232 ;;
5233 m88*-*-sysv4*)
5234 ;;
5235 m88*-motorola-sysv*)
5236 COREFILE=ptrace-core.lo
5237 ;;
5238 m88*-*-mach3*)
5239 COREFILE=trad-core.lo
5240 TRAD_HEADER='"hosts/m88kmach3.h"'
5241 ;;
5242 ns32k-pc532-mach)
5243 COREFILE=trad-core.lo
5244 TRAD_HEADER='"hosts/pc532mach.h"'
5245 ;;
5246 ns32k-*-netbsd* | ns32k-*-openbsd*)
5247 COREFILE=netbsd-core.lo
5248 ;;
5249 rs6000-*-lynx*)
5250 COREFILE=lynx-core.lo
5251 ;;
5252 rs6000-*-aix5.* | powerpc-*-aix5.*)
5253 COREFILE=rs6000-core.lo
5254 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
5255 ;;
5256 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
5257 COREFILE=rs6000-core.lo
5258 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
5259 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
5260 # have c_impl as a member of struct core_dumpx
5261 echo $ac_n "checking for c_impl in struct core_dumpx""... $ac_c" 1>&6
5262 echo "configure:5263: checking for c_impl in struct core_dumpx" >&5
5263 cat > conftest.$ac_ext <<EOF
5264 #line 5265 "configure"
5265 #include "confdefs.h"
5266 #include <core.h>
5267 int main() {
5268 struct core_dumpx c; c.c_impl = 0;
5269 ; return 0; }
5270 EOF
5271 if { (eval echo configure:5272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5272 rm -rf conftest*
5273 cat >> confdefs.h <<\EOF
5274 #define HAVE_ST_C_IMPL 1
5275 EOF
5276
5277 echo "$ac_t""yes" 1>&6
5278 else
5279 echo "configure: failed program was:" >&5
5280 cat conftest.$ac_ext >&5
5281 rm -rf conftest*
5282 echo "$ac_t""no" 1>&6
5283 fi
5284 rm -f conftest*
5285 ;;
5286 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
5287 rs6000-*-*) COREFILE=rs6000-core.lo ;;
5288 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
5289 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
5290 powerpc-*-beos*) ;;
5291 powerpc-*-freebsd*) COREFILE='' ;;
5292 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
5293 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
5294 s390*-*-*) COREFILE=trad-core.lo ;;
5295 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
5296 sparc-*-netbsd* | sparc*-*-openbsd*)
5297 COREFILE=netbsd-core.lo
5298 ;;
5299 tahoe-*-*)
5300 COREFILE=trad-core.lo
5301 TRAD_HEADER='"hosts/tahoe.h"'
5302 ;;
5303 vax-*-netbsd* | vax-*-openbsd*)
5304 COREFILE=netbsd-core.lo
5305 ;;
5306 vax-*-ultrix2*)
5307 COREFILE=trad-core.lo
5308 TRAD_HEADER='"hosts/vaxult2.h"'
5309 ;;
5310 vax-*-ultrix*)
5311 COREFILE=trad-core.lo
5312 TRAD_HEADER='"hosts/vaxult2.h"'
5313 ;;
5314 vax-*-*)
5315 COREFILE=trad-core.lo
5316 TRAD_HEADER='"hosts/vaxbsd.h"'
5317 ;;
5318 x86_64-*-netbsd*) COREFILE=netbsd-core.lo ;;
5319 esac
5320
5321 case "$COREFILE" in
5322 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
5323 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
5324 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
5325 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
5326 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
5327 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
5328 osf-core.lo) COREFLAG=-DOSF_CORE ;;
5329 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
5330 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
5331 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
5332 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
5333 esac
5334
5335 # ELF corefile support has several flavors, but all of
5336 # them use something called <sys/procfs.h>
5337 for ac_hdr in sys/procfs.h
5338 do
5339 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5340 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5341 echo "configure:5342: checking for $ac_hdr" >&5
5342 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5343 echo $ac_n "(cached) $ac_c" 1>&6
5344 else
5345 cat > conftest.$ac_ext <<EOF
5346 #line 5347 "configure"
5347 #include "confdefs.h"
5348 #include <$ac_hdr>
5349 EOF
5350 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5351 { (eval echo configure:5352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5352 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5353 if test -z "$ac_err"; then
5354 rm -rf conftest*
5355 eval "ac_cv_header_$ac_safe=yes"
5356 else
5357 echo "$ac_err" >&5
5358 echo "configure: failed program was:" >&5
5359 cat conftest.$ac_ext >&5
5360 rm -rf conftest*
5361 eval "ac_cv_header_$ac_safe=no"
5362 fi
5363 rm -f conftest*
5364 fi
5365 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5366 echo "$ac_t""yes" 1>&6
5367 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5368 cat >> confdefs.h <<EOF
5369 #define $ac_tr_hdr 1
5370 EOF
5371
5372 else
5373 echo "$ac_t""no" 1>&6
5374 fi
5375 done
5376
5377 if test "$ac_cv_header_sys_procfs_h" = yes; then
5378 echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
5379 echo "configure:5380: checking for prstatus_t in sys/procfs.h" >&5
5380 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then
5381 echo $ac_n "(cached) $ac_c" 1>&6
5382 else
5383 cat > conftest.$ac_ext <<EOF
5384 #line 5385 "configure"
5385 #include "confdefs.h"
5386
5387 #define _SYSCALL32
5388 #include <sys/procfs.h>
5389 int main() {
5390 prstatus_t avar
5391 ; return 0; }
5392 EOF
5393 if { (eval echo configure:5394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5394 rm -rf conftest*
5395 bfd_cv_have_sys_procfs_type_prstatus_t=yes
5396 else
5397 echo "configure: failed program was:" >&5
5398 cat conftest.$ac_ext >&5
5399 rm -rf conftest*
5400 bfd_cv_have_sys_procfs_type_prstatus_t=no
5401
5402 fi
5403 rm -f conftest*
5404 fi
5405
5406 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5407 cat >> confdefs.h <<\EOF
5408 #define HAVE_PRSTATUS_T 1
5409 EOF
5410
5411 fi
5412 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
5413
5414 echo $ac_n "checking for prstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5415 echo "configure:5416: checking for prstatus32_t in sys/procfs.h" >&5
5416 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus32_t'+set}'`\" = set"; then
5417 echo $ac_n "(cached) $ac_c" 1>&6
5418 else
5419 cat > conftest.$ac_ext <<EOF
5420 #line 5421 "configure"
5421 #include "confdefs.h"
5422
5423 #define _SYSCALL32
5424 #include <sys/procfs.h>
5425 int main() {
5426 prstatus32_t avar
5427 ; return 0; }
5428 EOF
5429 if { (eval echo configure:5430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5430 rm -rf conftest*
5431 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
5432 else
5433 echo "configure: failed program was:" >&5
5434 cat conftest.$ac_ext >&5
5435 rm -rf conftest*
5436 bfd_cv_have_sys_procfs_type_prstatus32_t=no
5437
5438 fi
5439 rm -f conftest*
5440 fi
5441
5442 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5443 cat >> confdefs.h <<\EOF
5444 #define HAVE_PRSTATUS32_T 1
5445 EOF
5446
5447 fi
5448 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus32_t" 1>&6
5449
5450 echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5451 echo "configure:5452: checking for prstatus_t.pr_who in sys/procfs.h" >&5
5452 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then
5453 echo $ac_n "(cached) $ac_c" 1>&6
5454 else
5455 cat > conftest.$ac_ext <<EOF
5456 #line 5457 "configure"
5457 #include "confdefs.h"
5458
5459 #define _SYSCALL32
5460 #include <sys/procfs.h>
5461 int main() {
5462 prstatus_t avar; void* aref = (void*) &avar.pr_who
5463 ; return 0; }
5464 EOF
5465 if { (eval echo configure:5466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5466 rm -rf conftest*
5467 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
5468 else
5469 echo "configure: failed program was:" >&5
5470 cat conftest.$ac_ext >&5
5471 rm -rf conftest*
5472 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
5473
5474 fi
5475 rm -f conftest*
5476 fi
5477
5478 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5479 cat >> confdefs.h <<\EOF
5480 #define HAVE_PRSTATUS_T_PR_WHO 1
5481 EOF
5482
5483 fi
5484 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
5485
5486 echo $ac_n "checking for prstatus32_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5487 echo "configure:5488: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
5488 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who'+set}'`\" = set"; then
5489 echo $ac_n "(cached) $ac_c" 1>&6
5490 else
5491 cat > conftest.$ac_ext <<EOF
5492 #line 5493 "configure"
5493 #include "confdefs.h"
5494
5495 #define _SYSCALL32
5496 #include <sys/procfs.h>
5497 int main() {
5498 prstatus32_t avar; void* aref = (void*) &avar.pr_who
5499 ; return 0; }
5500 EOF
5501 if { (eval echo configure:5502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5502 rm -rf conftest*
5503 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
5504 else
5505 echo "configure: failed program was:" >&5
5506 cat conftest.$ac_ext >&5
5507 rm -rf conftest*
5508 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
5509
5510 fi
5511 rm -f conftest*
5512 fi
5513
5514 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5515 cat >> confdefs.h <<\EOF
5516 #define HAVE_PRSTATUS32_T_PR_WHO 1
5517 EOF
5518
5519 fi
5520 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" 1>&6
5521
5522 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5523 echo "configure:5524: checking for pstatus_t in sys/procfs.h" >&5
5524 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
5525 echo $ac_n "(cached) $ac_c" 1>&6
5526 else
5527 cat > conftest.$ac_ext <<EOF
5528 #line 5529 "configure"
5529 #include "confdefs.h"
5530
5531 #define _SYSCALL32
5532 #include <sys/procfs.h>
5533 int main() {
5534 pstatus_t avar
5535 ; return 0; }
5536 EOF
5537 if { (eval echo configure:5538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5538 rm -rf conftest*
5539 bfd_cv_have_sys_procfs_type_pstatus_t=yes
5540 else
5541 echo "configure: failed program was:" >&5
5542 cat conftest.$ac_ext >&5
5543 rm -rf conftest*
5544 bfd_cv_have_sys_procfs_type_pstatus_t=no
5545
5546 fi
5547 rm -f conftest*
5548 fi
5549
5550 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5551 cat >> confdefs.h <<\EOF
5552 #define HAVE_PSTATUS_T 1
5553 EOF
5554
5555 fi
5556 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
5557
5558 echo $ac_n "checking for pxstatus_t in sys/procfs.h""... $ac_c" 1>&6
5559 echo "configure:5560: checking for pxstatus_t in sys/procfs.h" >&5
5560 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pxstatus_t'+set}'`\" = set"; then
5561 echo $ac_n "(cached) $ac_c" 1>&6
5562 else
5563 cat > conftest.$ac_ext <<EOF
5564 #line 5565 "configure"
5565 #include "confdefs.h"
5566
5567 #define _SYSCALL32
5568 #include <sys/procfs.h>
5569 int main() {
5570 pxstatus_t avar
5571 ; return 0; }
5572 EOF
5573 if { (eval echo configure:5574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5574 rm -rf conftest*
5575 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
5576 else
5577 echo "configure: failed program was:" >&5
5578 cat conftest.$ac_ext >&5
5579 rm -rf conftest*
5580 bfd_cv_have_sys_procfs_type_pxstatus_t=no
5581
5582 fi
5583 rm -f conftest*
5584 fi
5585
5586 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5587 cat >> confdefs.h <<\EOF
5588 #define HAVE_PXSTATUS_T 1
5589 EOF
5590
5591 fi
5592 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pxstatus_t" 1>&6
5593
5594 echo $ac_n "checking for pstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5595 echo "configure:5596: checking for pstatus32_t in sys/procfs.h" >&5
5596 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus32_t'+set}'`\" = set"; then
5597 echo $ac_n "(cached) $ac_c" 1>&6
5598 else
5599 cat > conftest.$ac_ext <<EOF
5600 #line 5601 "configure"
5601 #include "confdefs.h"
5602
5603 #define _SYSCALL32
5604 #include <sys/procfs.h>
5605 int main() {
5606 pstatus32_t avar
5607 ; return 0; }
5608 EOF
5609 if { (eval echo configure:5610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5610 rm -rf conftest*
5611 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
5612 else
5613 echo "configure: failed program was:" >&5
5614 cat conftest.$ac_ext >&5
5615 rm -rf conftest*
5616 bfd_cv_have_sys_procfs_type_pstatus32_t=no
5617
5618 fi
5619 rm -f conftest*
5620 fi
5621
5622 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5623 cat >> confdefs.h <<\EOF
5624 #define HAVE_PSTATUS32_T 1
5625 EOF
5626
5627 fi
5628 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus32_t" 1>&6
5629
5630 echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
5631 echo "configure:5632: checking for prpsinfo_t in sys/procfs.h" >&5
5632 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then
5633 echo $ac_n "(cached) $ac_c" 1>&6
5634 else
5635 cat > conftest.$ac_ext <<EOF
5636 #line 5637 "configure"
5637 #include "confdefs.h"
5638
5639 #define _SYSCALL32
5640 #include <sys/procfs.h>
5641 int main() {
5642 prpsinfo_t avar
5643 ; return 0; }
5644 EOF
5645 if { (eval echo configure:5646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5646 rm -rf conftest*
5647 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
5648 else
5649 echo "configure: failed program was:" >&5
5650 cat conftest.$ac_ext >&5
5651 rm -rf conftest*
5652 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
5653
5654 fi
5655 rm -f conftest*
5656 fi
5657
5658 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5659 cat >> confdefs.h <<\EOF
5660 #define HAVE_PRPSINFO_T 1
5661 EOF
5662
5663 fi
5664 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
5665
5666 echo $ac_n "checking for prpsinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5667 echo "configure:5668: checking for prpsinfo32_t in sys/procfs.h" >&5
5668 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo32_t'+set}'`\" = set"; then
5669 echo $ac_n "(cached) $ac_c" 1>&6
5670 else
5671 cat > conftest.$ac_ext <<EOF
5672 #line 5673 "configure"
5673 #include "confdefs.h"
5674
5675 #define _SYSCALL32
5676 #include <sys/procfs.h>
5677 int main() {
5678 prpsinfo32_t avar
5679 ; return 0; }
5680 EOF
5681 if { (eval echo configure:5682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5682 rm -rf conftest*
5683 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
5684 else
5685 echo "configure: failed program was:" >&5
5686 cat conftest.$ac_ext >&5
5687 rm -rf conftest*
5688 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
5689
5690 fi
5691 rm -f conftest*
5692 fi
5693
5694 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5695 cat >> confdefs.h <<\EOF
5696 #define HAVE_PRPSINFO32_T 1
5697 EOF
5698
5699 fi
5700 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo32_t" 1>&6
5701
5702 echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
5703 echo "configure:5704: checking for psinfo_t in sys/procfs.h" >&5
5704 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then
5705 echo $ac_n "(cached) $ac_c" 1>&6
5706 else
5707 cat > conftest.$ac_ext <<EOF
5708 #line 5709 "configure"
5709 #include "confdefs.h"
5710
5711 #define _SYSCALL32
5712 #include <sys/procfs.h>
5713 int main() {
5714 psinfo_t avar
5715 ; return 0; }
5716 EOF
5717 if { (eval echo configure:5718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5718 rm -rf conftest*
5719 bfd_cv_have_sys_procfs_type_psinfo_t=yes
5720 else
5721 echo "configure: failed program was:" >&5
5722 cat conftest.$ac_ext >&5
5723 rm -rf conftest*
5724 bfd_cv_have_sys_procfs_type_psinfo_t=no
5725
5726 fi
5727 rm -f conftest*
5728 fi
5729
5730 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5731 cat >> confdefs.h <<\EOF
5732 #define HAVE_PSINFO_T 1
5733 EOF
5734
5735 fi
5736 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
5737
5738 echo $ac_n "checking for psinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5739 echo "configure:5740: checking for psinfo32_t in sys/procfs.h" >&5
5740 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo32_t'+set}'`\" = set"; then
5741 echo $ac_n "(cached) $ac_c" 1>&6
5742 else
5743 cat > conftest.$ac_ext <<EOF
5744 #line 5745 "configure"
5745 #include "confdefs.h"
5746
5747 #define _SYSCALL32
5748 #include <sys/procfs.h>
5749 int main() {
5750 psinfo32_t avar
5751 ; return 0; }
5752 EOF
5753 if { (eval echo configure:5754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5754 rm -rf conftest*
5755 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
5756 else
5757 echo "configure: failed program was:" >&5
5758 cat conftest.$ac_ext >&5
5759 rm -rf conftest*
5760 bfd_cv_have_sys_procfs_type_psinfo32_t=no
5761
5762 fi
5763 rm -f conftest*
5764 fi
5765
5766 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5767 cat >> confdefs.h <<\EOF
5768 #define HAVE_PSINFO32_T 1
5769 EOF
5770
5771 fi
5772 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo32_t" 1>&6
5773
5774 echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
5775 echo "configure:5776: checking for lwpstatus_t in sys/procfs.h" >&5
5776 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then
5777 echo $ac_n "(cached) $ac_c" 1>&6
5778 else
5779 cat > conftest.$ac_ext <<EOF
5780 #line 5781 "configure"
5781 #include "confdefs.h"
5782
5783 #define _SYSCALL32
5784 #include <sys/procfs.h>
5785 int main() {
5786 lwpstatus_t avar
5787 ; return 0; }
5788 EOF
5789 if { (eval echo configure:5790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5790 rm -rf conftest*
5791 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
5792 else
5793 echo "configure: failed program was:" >&5
5794 cat conftest.$ac_ext >&5
5795 rm -rf conftest*
5796 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
5797
5798 fi
5799 rm -f conftest*
5800 fi
5801
5802 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5803 cat >> confdefs.h <<\EOF
5804 #define HAVE_LWPSTATUS_T 1
5805 EOF
5806
5807 fi
5808 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
5809
5810 echo $ac_n "checking for lwpxstatus_t in sys/procfs.h""... $ac_c" 1>&6
5811 echo "configure:5812: checking for lwpxstatus_t in sys/procfs.h" >&5
5812 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpxstatus_t'+set}'`\" = set"; then
5813 echo $ac_n "(cached) $ac_c" 1>&6
5814 else
5815 cat > conftest.$ac_ext <<EOF
5816 #line 5817 "configure"
5817 #include "confdefs.h"
5818
5819 #define _SYSCALL32
5820 #include <sys/procfs.h>
5821 int main() {
5822 lwpxstatus_t avar
5823 ; return 0; }
5824 EOF
5825 if { (eval echo configure:5826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5826 rm -rf conftest*
5827 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
5828 else
5829 echo "configure: failed program was:" >&5
5830 cat conftest.$ac_ext >&5
5831 rm -rf conftest*
5832 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
5833
5834 fi
5835 rm -f conftest*
5836 fi
5837
5838 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5839 cat >> confdefs.h <<\EOF
5840 #define HAVE_LWPXSTATUS_T 1
5841 EOF
5842
5843 fi
5844 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpxstatus_t" 1>&6
5845
5846 echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
5847 echo "configure:5848: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
5848 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then
5849 echo $ac_n "(cached) $ac_c" 1>&6
5850 else
5851 cat > conftest.$ac_ext <<EOF
5852 #line 5853 "configure"
5853 #include "confdefs.h"
5854
5855 #define _SYSCALL32
5856 #include <sys/procfs.h>
5857 int main() {
5858 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5859 ; return 0; }
5860 EOF
5861 if { (eval echo configure:5862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5862 rm -rf conftest*
5863 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
5864 else
5865 echo "configure: failed program was:" >&5
5866 cat conftest.$ac_ext >&5
5867 rm -rf conftest*
5868 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
5869
5870 fi
5871 rm -f conftest*
5872 fi
5873
5874 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5875 cat >> confdefs.h <<\EOF
5876 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5877 EOF
5878
5879 fi
5880 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
5881
5882 echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
5883 echo "configure:5884: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
5884 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then
5885 echo $ac_n "(cached) $ac_c" 1>&6
5886 else
5887 cat > conftest.$ac_ext <<EOF
5888 #line 5889 "configure"
5889 #include "confdefs.h"
5890
5891 #define _SYSCALL32
5892 #include <sys/procfs.h>
5893 int main() {
5894 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5895 ; return 0; }
5896 EOF
5897 if { (eval echo configure:5898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5898 rm -rf conftest*
5899 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
5900 else
5901 echo "configure: failed program was:" >&5
5902 cat conftest.$ac_ext >&5
5903 rm -rf conftest*
5904 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
5905
5906 fi
5907 rm -f conftest*
5908 fi
5909
5910 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5911 cat >> confdefs.h <<\EOF
5912 #define HAVE_LWPSTATUS_T_PR_REG 1
5913 EOF
5914
5915 fi
5916 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
5917
5918 echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5919 echo "configure:5920: checking for win32_pstatus_t in sys/procfs.h" >&5
5920 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then
5921 echo $ac_n "(cached) $ac_c" 1>&6
5922 else
5923 cat > conftest.$ac_ext <<EOF
5924 #line 5925 "configure"
5925 #include "confdefs.h"
5926
5927 #define _SYSCALL32
5928 #include <sys/procfs.h>
5929 int main() {
5930 win32_pstatus_t avar
5931 ; return 0; }
5932 EOF
5933 if { (eval echo configure:5934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5934 rm -rf conftest*
5935 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
5936 else
5937 echo "configure: failed program was:" >&5
5938 cat conftest.$ac_ext >&5
5939 rm -rf conftest*
5940 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
5941
5942 fi
5943 rm -f conftest*
5944 fi
5945
5946 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5947 cat >> confdefs.h <<\EOF
5948 #define HAVE_WIN32_PSTATUS_T 1
5949 EOF
5950
5951 fi
5952 echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6
5953
5954 fi
5955 fi
5956
5957
5958 if test -n "$TRAD_HEADER"; then
5959 cat >> confdefs.h <<EOF
5960 #define TRAD_HEADER $TRAD_HEADER
5961 EOF
5962
5963 fi
5964
5965 # Horrible hacks to build DLLs on Windows.
5966 WIN32LDFLAGS=
5967 WIN32LIBADD=
5968 case "${host}" in
5969 *-*-cygwin*)
5970 if test "$enable_shared" = "yes"; then
5971 WIN32LDFLAGS="-no-undefined"
5972 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
5973 fi
5974 ;;
5975 *-*-linux*)
5976 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
5977 # libiberty.a.
5978 case "${host}" in
5979 mips*-*-linux*)
5980 # Linux/MIPS uses PIC by default.
5981 if test "$enable_shared" = "yes"; then
5982 WIN32LIBADD="-L../libiberty -liberty"
5983 fi
5984 ;;
5985 *)
5986 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
5987 if test -n "$x"; then
5988 WIN32LIBADD="-L../libiberty/pic -liberty"
5989 fi
5990 ;;
5991 esac
5992 ;;
5993 esac
5994
5995
5996
5997 # target stuff:
5998
5999 # Canonicalize the secondary target names.
6000 if test -n "$enable_targets" ; then
6001 for targ in `echo $enable_targets | sed 's/,/ /g'`
6002 do
6003 result=`$ac_config_sub $targ 2>/dev/null`
6004 if test -n "$result" ; then
6005 canon_targets="$canon_targets $result"
6006 else
6007 # Allow targets that config.sub doesn't recognize, like "all".
6008 canon_targets="$canon_targets $targ"
6009 fi
6010 done
6011 fi
6012
6013 all_targets=false
6014 defvec=
6015 selvecs=
6016 assocvecs=
6017 selarchs=
6018 TDEFINES=
6019 for targ in $target $canon_targets
6020 do
6021 if test "x$targ" = "xall"; then
6022 all_targets=true
6023 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
6024 else
6025 . $srcdir/config.bfd
6026 if test "x$targ" = "x$target"; then
6027 defvec=$targ_defvec
6028 fi
6029 selvecs="$selvecs $targ_defvec $targ_selvecs"
6030 selarchs="$selarchs $targ_archs"
6031 TDEFINES="$TDEFINES $targ_cflags"
6032 fi
6033 done
6034
6035
6036 # This processing still needs to be done if we're to decide properly whether
6037 # 64-bit support needs to be compiled in. Currently, it will be included if
6038 # the default or any other explicitly requested target requires it; it
6039 # will not be included on a 32-bit host if no 64-bit target is requested, and
6040 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
6041 # used.
6042
6043 # uniq the default and selected vectors in all the configured targets.
6044 f=""
6045 for i in $selvecs ; do
6046 case " $f " in
6047 *" $i "*) ;;
6048 *) f="$f $i" ;;
6049 esac
6050 done
6051 selvecs="$f"
6052
6053
6054 # uniq the associated vectors in all the configured targets.
6055 f=""
6056 for i in $assocvecs ; do
6057 case " $f " in
6058 *" $i "*) ;;
6059 *) f="$f $i" ;;
6060 esac
6061 done
6062 assocvecs="$f"
6063
6064
6065 # uniq the architectures in all the configured targets.
6066 f=""
6067 for i in $selarchs ; do
6068 case " $f " in
6069 *" $i "*) ;;
6070 *) f="$f $i" ;;
6071 esac
6072 done
6073 selarchs="$f"
6074
6075 # Target backend .o files.
6076 tb=
6077
6078 elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
6079
6080 for vec in $selvecs
6081 do
6082 target_size=32
6083 case "$vec" in
6084 # This list is alphabetized to make it easy to compare
6085 # with the two vector lists in targets.c. For the same reason,
6086 # use one entry per line, even though this leads to long lines.
6087 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
6088 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
6089 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
6090 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
6091 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
6092 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
6093 aout_mips_big_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
6094 aout_mips_little_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
6095 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
6096 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
6097 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
6098 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
6099 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
6100 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
6101 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
6102 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
6103 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
6104 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
6105 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
6106 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
6107 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
6108 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
6109 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
6110 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
6111 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
6112 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
6113 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
6114 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
6115 bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
6116 bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
6117 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6118 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
6119 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
6120 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
6121 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
6122 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
6123 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
6124 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
6125 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
6126 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
6127 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
6128 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
6129 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
6130 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
6131 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
6132 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
6133 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
6134 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
6135 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
6136 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
6137 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
6138 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
6139 bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
6140 bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
6141 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6142 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6143 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
6144 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
6145 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
6146 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
6147 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
6148 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
6149 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
6150 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
6151 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
6152 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6153 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6154 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6155 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6156 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
6157 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
6158 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
6159 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
6160 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
6161 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
6162 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
6163 # FIXME: We include cofflink.lo not because it's needed for
6164 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
6165 # which needs it but does not list it. Should be fixed in right place.
6166 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
6167 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
6168 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
6169 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
6170 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
6171 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
6172 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
6173 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6174 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
6175 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6176 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6177 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6178 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
6179 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6180 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6181 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
6182 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
6183 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
6184 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
6185 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
6186 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
6187 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
6188 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
6189 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
6190 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6191 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
6192 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
6193 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
6194 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
6195 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
6196 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
6197 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6198 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
6199 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
6200 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
6201 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
6202 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
6203 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
6204 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
6205 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
6206 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
6207 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
6208 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"; target_size=64 ;;
6209 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6210 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6211 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
6212 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
6213 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6214 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
6215 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6216 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
6217 cris_aout_vec) tb="$tb aout-cris.lo" ;;
6218 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
6219 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6220 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6221 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6222 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
6223 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
6224 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
6225 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
6226 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
6227 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
6228 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
6229 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
6230 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
6231 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
6232 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
6233 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
6234 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
6235 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
6236 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
6237 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
6238 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
6239 i386msdos_vec) tb="$tb i386msdos.lo" ;;
6240 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
6241 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
6242 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
6243 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
6244 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
6245 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
6246 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
6247 ieee_vec) tb="$tb ieee.lo" ;;
6248 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
6249 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
6250 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
6251 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
6252 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
6253 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
6254 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
6255 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
6256 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
6257 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
6258 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
6259 mach_o_be_vec) tb="$tb mach-o.lo" ;;
6260 mach_o_le_vec) tb="$tb mach-o.lo" ;;
6261 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
6262 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6263 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6264 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
6265 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
6266 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
6267 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
6268 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
6269 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
6270 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
6271 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
6272 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
6273 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
6274 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
6275 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
6276 pef_vec) tb="$tb pef.lo" ;;
6277 pef_xlib_vec) tb="$tb pef.lo" ;;
6278 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6279 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
6280 ppcboot_vec) tb="$tb ppcboot.lo" ;;
6281 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
6282 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
6283 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
6284 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
6285 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
6286 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
6287 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
6288 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
6289 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
6290 som_vec) tb="$tb som.lo" ;;
6291 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
6292 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
6293 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
6294 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
6295 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
6296 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
6297 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
6298 sym_vec) tb="$tb xsym.lo" ;;
6299 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
6300 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
6301 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
6302 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
6303 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
6304 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
6305 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
6306 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
6307 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
6308 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
6309 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
6310 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
6311 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
6312 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
6313 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
6314 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
6315 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
6316 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
6317 versados_vec) tb="$tb versados.lo" ;;
6318 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
6319 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
6320 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
6321 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
6322 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
6323
6324 # These appear out of order in targets.c
6325 srec_vec) tb="$tb srec.lo" ;;
6326 symbolsrec_vec) tb="$tb srec.lo" ;;
6327 tekhex_vec) tb="$tb tekhex.lo" ;;
6328 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
6329 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
6330
6331 "") ;;
6332 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
6333 esac
6334
6335 if test ${target_size} = 64; then
6336 target64=true
6337 fi
6338 if test x"${vec}" = x"${defvec}"; then
6339 bfd_default_target_size=${target_size}
6340 fi
6341 done
6342
6343 # Target architecture .o files.
6344 # A couple of CPUs use shorter file names to avoid problems on DOS
6345 # filesystems.
6346 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
6347
6348 # Weed out duplicate .o files.
6349 f=""
6350 for i in $tb ; do
6351 case " $f " in
6352 *" $i "*) ;;
6353 *) f="$f $i" ;;
6354 esac
6355 done
6356 tb="$f"
6357
6358 f=""
6359 for i in $ta ; do
6360 case " $f " in
6361 *" $i "*) ;;
6362 *) f="$f $i" ;;
6363 esac
6364 done
6365 ta="$f"
6366
6367 bfd_backends="$tb"
6368 bfd_machines="$ta"
6369
6370 if test x${all_targets} = xtrue ; then
6371 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
6372 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
6373 selvecs=
6374 havevecs=
6375 selarchs=
6376 test -n "$assocvecs" &&
6377 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6378 else # all_targets is true
6379 # Only set these if they will be nonempty, for the clever echo.
6380 havevecs=
6381 assocvecs=
6382 test -n "$selvecs" &&
6383 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
6384 test -n "$selvecs" &&
6385 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6386 test -n "$selarchs" &&
6387 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6388 fi # all_targets is true
6389
6390 case ${host64}-${target64}-${want64} in
6391 *true*)
6392 wordsize=64
6393 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
6394 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
6395 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
6396 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
6397 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
6398 fi
6399 if test -n "$GCC" ; then
6400 bad_64bit_gcc=no;
6401 echo $ac_n "checking for gcc version with buggy 64-bit support""... $ac_c" 1>&6
6402 echo "configure:6403: checking for gcc version with buggy 64-bit support" >&5
6403 # Add more tests for gcc versions with non-working 64-bit support here.
6404 cat > conftest.$ac_ext <<EOF
6405 #line 6406 "configure"
6406 #include "confdefs.h"
6407 :__GNUC__:__GNUC_MINOR__:__i386__:
6408 EOF
6409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6410 egrep ": 2 : 91 : 1 :" >/dev/null 2>&1; then
6411 rm -rf conftest*
6412 bad_64bit_gcc=yes;
6413 echo "$ac_t""yes: egcs-1.1.2 on ix86 spotted" 1>&6
6414 else
6415 rm -rf conftest*
6416 echo "$ac_t""no" 1>&6
6417 fi
6418 rm -f conftest*
6419
6420 if test $bad_64bit_gcc = yes ; then
6421 { echo "configure: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" 1>&2; exit 1; }
6422 fi
6423 fi
6424 ;;
6425 false-false-false)
6426 wordsize=32
6427 bfd_libs='$(BFD32_LIBS)'
6428 all_backends='$(BFD32_BACKENDS)'
6429 ;;
6430 esac
6431
6432
6433
6434
6435
6436
6437
6438
6439 tdefaults=""
6440 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
6441 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
6442 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
6443 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
6444 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
6445
6446
6447 for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
6448 do
6449 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6450 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6451 echo "configure:6452: checking for $ac_hdr" >&5
6452 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6453 echo $ac_n "(cached) $ac_c" 1>&6
6454 else
6455 cat > conftest.$ac_ext <<EOF
6456 #line 6457 "configure"
6457 #include "confdefs.h"
6458 #include <$ac_hdr>
6459 EOF
6460 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6461 { (eval echo configure:6462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6462 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6463 if test -z "$ac_err"; then
6464 rm -rf conftest*
6465 eval "ac_cv_header_$ac_safe=yes"
6466 else
6467 echo "$ac_err" >&5
6468 echo "configure: failed program was:" >&5
6469 cat conftest.$ac_ext >&5
6470 rm -rf conftest*
6471 eval "ac_cv_header_$ac_safe=no"
6472 fi
6473 rm -f conftest*
6474 fi
6475 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6476 echo "$ac_t""yes" 1>&6
6477 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6478 cat >> confdefs.h <<EOF
6479 #define $ac_tr_hdr 1
6480 EOF
6481
6482 else
6483 echo "$ac_t""no" 1>&6
6484 fi
6485 done
6486
6487 for ac_func in getpagesize
6488 do
6489 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6490 echo "configure:6491: checking for $ac_func" >&5
6491 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6492 echo $ac_n "(cached) $ac_c" 1>&6
6493 else
6494 cat > conftest.$ac_ext <<EOF
6495 #line 6496 "configure"
6496 #include "confdefs.h"
6497 /* System header to define __stub macros and hopefully few prototypes,
6498 which can conflict with char $ac_func(); below. */
6499 #include <assert.h>
6500 /* Override any gcc2 internal prototype to avoid an error. */
6501 /* We use char because int might match the return type of a gcc2
6502 builtin and then its argument prototype would still apply. */
6503 char $ac_func();
6504
6505 int main() {
6506
6507 /* The GNU C library defines this for functions which it implements
6508 to always fail with ENOSYS. Some functions are actually named
6509 something starting with __ and the normal name is an alias. */
6510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6511 choke me
6512 #else
6513 $ac_func();
6514 #endif
6515
6516 ; return 0; }
6517 EOF
6518 if { (eval echo configure:6519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6519 rm -rf conftest*
6520 eval "ac_cv_func_$ac_func=yes"
6521 else
6522 echo "configure: failed program was:" >&5
6523 cat conftest.$ac_ext >&5
6524 rm -rf conftest*
6525 eval "ac_cv_func_$ac_func=no"
6526 fi
6527 rm -f conftest*
6528 fi
6529
6530 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6531 echo "$ac_t""yes" 1>&6
6532 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6533 cat >> confdefs.h <<EOF
6534 #define $ac_tr_func 1
6535 EOF
6536
6537 else
6538 echo "$ac_t""no" 1>&6
6539 fi
6540 done
6541
6542 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6543 echo "configure:6544: checking for working mmap" >&5
6544 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6545 echo $ac_n "(cached) $ac_c" 1>&6
6546 else
6547 if test "$cross_compiling" = yes; then
6548 ac_cv_func_mmap_fixed_mapped=no
6549 else
6550 cat > conftest.$ac_ext <<EOF
6551 #line 6552 "configure"
6552 #include "confdefs.h"
6553
6554 /* Thanks to Mike Haertel and Jim Avera for this test.
6555 Here is a matrix of mmap possibilities:
6556 mmap private not fixed
6557 mmap private fixed at somewhere currently unmapped
6558 mmap private fixed at somewhere already mapped
6559 mmap shared not fixed
6560 mmap shared fixed at somewhere currently unmapped
6561 mmap shared fixed at somewhere already mapped
6562 For private mappings, we should verify that changes cannot be read()
6563 back from the file, nor mmap's back from the file at a different
6564 address. (There have been systems where private was not correctly
6565 implemented like the infamous i386 svr4.0, and systems where the
6566 VM page cache was not coherent with the filesystem buffer cache
6567 like early versions of FreeBSD and possibly contemporary NetBSD.)
6568 For shared mappings, we should conversely verify that changes get
6569 propogated back to all the places they're supposed to be.
6570
6571 Grep wants private fixed already mapped.
6572 The main things grep needs to know about mmap are:
6573 * does it exist and is it safe to write into the mmap'd area
6574 * how to use it (BSD variants) */
6575 #include <sys/types.h>
6576 #include <fcntl.h>
6577 #include <sys/mman.h>
6578
6579 #if HAVE_SYS_TYPES_H
6580 # include <sys/types.h>
6581 #endif
6582
6583 #if HAVE_STDLIB_H
6584 # include <stdlib.h>
6585 #endif
6586
6587 #if HAVE_SYS_STAT_H
6588 # include <sys/stat.h>
6589 #endif
6590
6591 #if HAVE_UNISTD_H
6592 # include <unistd.h>
6593 #endif
6594
6595 /* This mess was copied from the GNU getpagesize.h. */
6596 #ifndef HAVE_GETPAGESIZE
6597
6598 /* Assume that all systems that can run configure have sys/param.h. */
6599 # ifndef HAVE_SYS_PARAM_H
6600 # define HAVE_SYS_PARAM_H 1
6601 # endif
6602
6603 # ifdef _SC_PAGESIZE
6604 # define getpagesize() sysconf(_SC_PAGESIZE)
6605 # else /* no _SC_PAGESIZE */
6606 # ifdef HAVE_SYS_PARAM_H
6607 # include <sys/param.h>
6608 # ifdef EXEC_PAGESIZE
6609 # define getpagesize() EXEC_PAGESIZE
6610 # else /* no EXEC_PAGESIZE */
6611 # ifdef NBPG
6612 # define getpagesize() NBPG * CLSIZE
6613 # ifndef CLSIZE
6614 # define CLSIZE 1
6615 # endif /* no CLSIZE */
6616 # else /* no NBPG */
6617 # ifdef NBPC
6618 # define getpagesize() NBPC
6619 # else /* no NBPC */
6620 # ifdef PAGESIZE
6621 # define getpagesize() PAGESIZE
6622 # endif /* PAGESIZE */
6623 # endif /* no NBPC */
6624 # endif /* no NBPG */
6625 # endif /* no EXEC_PAGESIZE */
6626 # else /* no HAVE_SYS_PARAM_H */
6627 # define getpagesize() 8192 /* punt totally */
6628 # endif /* no HAVE_SYS_PARAM_H */
6629 # endif /* no _SC_PAGESIZE */
6630
6631 #endif /* no HAVE_GETPAGESIZE */
6632
6633 #ifdef __cplusplus
6634 extern "C" { void *malloc(unsigned); }
6635 #else
6636 char *malloc();
6637 #endif
6638
6639 int
6640 main()
6641 {
6642 char *data, *data2, *data3;
6643 int i, pagesize;
6644 int fd;
6645
6646 pagesize = getpagesize();
6647
6648 /*
6649 * First, make a file with some known garbage in it.
6650 */
6651 data = malloc(pagesize);
6652 if (!data)
6653 exit(1);
6654 for (i = 0; i < pagesize; ++i)
6655 *(data + i) = rand();
6656 umask(0);
6657 fd = creat("conftestmmap", 0600);
6658 if (fd < 0)
6659 exit(1);
6660 if (write(fd, data, pagesize) != pagesize)
6661 exit(1);
6662 close(fd);
6663
6664 /*
6665 * Next, try to mmap the file at a fixed address which
6666 * already has something else allocated at it. If we can,
6667 * also make sure that we see the same garbage.
6668 */
6669 fd = open("conftestmmap", O_RDWR);
6670 if (fd < 0)
6671 exit(1);
6672 data2 = malloc(2 * pagesize);
6673 if (!data2)
6674 exit(1);
6675 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6676 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6677 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6678 exit(1);
6679 for (i = 0; i < pagesize; ++i)
6680 if (*(data + i) != *(data2 + i))
6681 exit(1);
6682
6683 /*
6684 * Finally, make sure that changes to the mapped area
6685 * do not percolate back to the file as seen by read().
6686 * (This is a bug on some variants of i386 svr4.0.)
6687 */
6688 for (i = 0; i < pagesize; ++i)
6689 *(data2 + i) = *(data2 + i) + 1;
6690 data3 = malloc(pagesize);
6691 if (!data3)
6692 exit(1);
6693 if (read(fd, data3, pagesize) != pagesize)
6694 exit(1);
6695 for (i = 0; i < pagesize; ++i)
6696 if (*(data + i) != *(data3 + i))
6697 exit(1);
6698 close(fd);
6699 unlink("conftestmmap");
6700 exit(0);
6701 }
6702
6703 EOF
6704 if { (eval echo configure:6705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6705 then
6706 ac_cv_func_mmap_fixed_mapped=yes
6707 else
6708 echo "configure: failed program was:" >&5
6709 cat conftest.$ac_ext >&5
6710 rm -fr conftest*
6711 ac_cv_func_mmap_fixed_mapped=no
6712 fi
6713 rm -fr conftest*
6714 fi
6715
6716 fi
6717
6718 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6719 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6720 cat >> confdefs.h <<\EOF
6721 #define HAVE_MMAP 1
6722 EOF
6723
6724 fi
6725
6726 for ac_func in madvise mprotect
6727 do
6728 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6729 echo "configure:6730: checking for $ac_func" >&5
6730 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6731 echo $ac_n "(cached) $ac_c" 1>&6
6732 else
6733 cat > conftest.$ac_ext <<EOF
6734 #line 6735 "configure"
6735 #include "confdefs.h"
6736 /* System header to define __stub macros and hopefully few prototypes,
6737 which can conflict with char $ac_func(); below. */
6738 #include <assert.h>
6739 /* Override any gcc2 internal prototype to avoid an error. */
6740 /* We use char because int might match the return type of a gcc2
6741 builtin and then its argument prototype would still apply. */
6742 char $ac_func();
6743
6744 int main() {
6745
6746 /* The GNU C library defines this for functions which it implements
6747 to always fail with ENOSYS. Some functions are actually named
6748 something starting with __ and the normal name is an alias. */
6749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6750 choke me
6751 #else
6752 $ac_func();
6753 #endif
6754
6755 ; return 0; }
6756 EOF
6757 if { (eval echo configure:6758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6758 rm -rf conftest*
6759 eval "ac_cv_func_$ac_func=yes"
6760 else
6761 echo "configure: failed program was:" >&5
6762 cat conftest.$ac_ext >&5
6763 rm -rf conftest*
6764 eval "ac_cv_func_$ac_func=no"
6765 fi
6766 rm -f conftest*
6767 fi
6768
6769 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6770 echo "$ac_t""yes" 1>&6
6771 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6772 cat >> confdefs.h <<EOF
6773 #define $ac_tr_func 1
6774 EOF
6775
6776 else
6777 echo "$ac_t""no" 1>&6
6778 fi
6779 done
6780
6781 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
6782 true+yes ) cat >> confdefs.h <<\EOF
6783 #define USE_MMAP 1
6784 EOF
6785 ;;
6786 esac
6787
6788 rm -f doc/config.status
6789 trap '' 1 2 15
6790 cat > confcache <<\EOF
6791 # This file is a shell script that caches the results of configure
6792 # tests run on this system so they can be shared between configure
6793 # scripts and configure runs. It is not useful on other systems.
6794 # If it contains results you don't want to keep, you may remove or edit it.
6795 #
6796 # By default, configure uses ./config.cache as the cache file,
6797 # creating it if it does not exist already. You can give configure
6798 # the --cache-file=FILE option to use a different cache file; that is
6799 # what configure does when it calls configure scripts in
6800 # subdirectories, so they share the cache.
6801 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6802 # config.status only pays attention to the cache file if you give it the
6803 # --recheck option to rerun configure.
6804 #
6805 EOF
6806 # The following way of writing the cache mishandles newlines in values,
6807 # but we know of no workaround that is simple, portable, and efficient.
6808 # So, don't put newlines in cache variables' values.
6809 # Ultrix sh set writes to stderr and can't be redirected directly,
6810 # and sets the high bit in the cache file unless we assign to the vars.
6811 (set) 2>&1 |
6812 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6813 *ac_space=\ *)
6814 # `set' does not quote correctly, so add quotes (double-quote substitution
6815 # turns \\\\ into \\, and sed turns \\ into \).
6816 sed -n \
6817 -e "s/'/'\\\\''/g" \
6818 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6819 ;;
6820 *)
6821 # `set' quotes correctly as required by POSIX, so do not add quotes.
6822 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6823 ;;
6824 esac >> confcache
6825 if cmp -s $cache_file confcache; then
6826 :
6827 else
6828 if test -w $cache_file; then
6829 echo "updating cache $cache_file"
6830 cat confcache > $cache_file
6831 else
6832 echo "not updating unwritable cache $cache_file"
6833 fi
6834 fi
6835 rm -f confcache
6836
6837 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6838
6839 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6840 # Let make expand exec_prefix.
6841 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6842
6843 # Any assignment to VPATH causes Sun make to only execute
6844 # the first set of double-colon rules, so remove it if not needed.
6845 # If there is a colon in the path, we need to keep it.
6846 if test "x$srcdir" = x.; then
6847 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6848 fi
6849
6850 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6851
6852 DEFS=-DHAVE_CONFIG_H
6853
6854 # Without the "./", some shells look in PATH for config.status.
6855 : ${CONFIG_STATUS=./config.status}
6856
6857 echo creating $CONFIG_STATUS
6858 rm -f $CONFIG_STATUS
6859 cat > $CONFIG_STATUS <<EOF
6860 #! /bin/sh
6861 # Generated automatically by configure.
6862 # Run this file to recreate the current configuration.
6863 # This directory was configured as follows,
6864 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6865 #
6866 # $0 $ac_configure_args
6867 #
6868 # Compiler output produced by configure, useful for debugging
6869 # configure, is in ./config.log if it exists.
6870
6871 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6872 for ac_option
6873 do
6874 case "\$ac_option" in
6875 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6876 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6877 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6878 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6879 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6880 exit 0 ;;
6881 -help | --help | --hel | --he | --h)
6882 echo "\$ac_cs_usage"; exit 0 ;;
6883 *) echo "\$ac_cs_usage"; exit 1 ;;
6884 esac
6885 done
6886
6887 ac_given_srcdir=$srcdir
6888 ac_given_INSTALL="$INSTALL"
6889
6890 trap 'rm -fr `echo "Makefile doc/Makefile bfd-in3.h:bfd-in2.h bfdver.h:version.h po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6891 EOF
6892 cat >> $CONFIG_STATUS <<EOF
6893
6894 # Protect against being on the right side of a sed subst in config.status.
6895 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6896 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6897 $ac_vpsub
6898 $extrasub
6899 s%@SHELL@%$SHELL%g
6900 s%@CFLAGS@%$CFLAGS%g
6901 s%@CPPFLAGS@%$CPPFLAGS%g
6902 s%@CXXFLAGS@%$CXXFLAGS%g
6903 s%@FFLAGS@%$FFLAGS%g
6904 s%@DEFS@%$DEFS%g
6905 s%@LDFLAGS@%$LDFLAGS%g
6906 s%@LIBS@%$LIBS%g
6907 s%@exec_prefix@%$exec_prefix%g
6908 s%@prefix@%$prefix%g
6909 s%@program_transform_name@%$program_transform_name%g
6910 s%@bindir@%$bindir%g
6911 s%@sbindir@%$sbindir%g
6912 s%@libexecdir@%$libexecdir%g
6913 s%@datadir@%$datadir%g
6914 s%@sysconfdir@%$sysconfdir%g
6915 s%@sharedstatedir@%$sharedstatedir%g
6916 s%@localstatedir@%$localstatedir%g
6917 s%@libdir@%$libdir%g
6918 s%@includedir@%$includedir%g
6919 s%@oldincludedir@%$oldincludedir%g
6920 s%@infodir@%$infodir%g
6921 s%@mandir@%$mandir%g
6922 s%@host@%$host%g
6923 s%@host_alias@%$host_alias%g
6924 s%@host_cpu@%$host_cpu%g
6925 s%@host_vendor@%$host_vendor%g
6926 s%@host_os@%$host_os%g
6927 s%@target@%$target%g
6928 s%@target_alias@%$target_alias%g
6929 s%@target_cpu@%$target_cpu%g
6930 s%@target_vendor@%$target_vendor%g
6931 s%@target_os@%$target_os%g
6932 s%@build@%$build%g
6933 s%@build_alias@%$build_alias%g
6934 s%@build_cpu@%$build_cpu%g
6935 s%@build_vendor@%$build_vendor%g
6936 s%@build_os@%$build_os%g
6937 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6938 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6939 s%@INSTALL_DATA@%$INSTALL_DATA%g
6940 s%@PACKAGE@%$PACKAGE%g
6941 s%@VERSION@%$VERSION%g
6942 s%@ACLOCAL@%$ACLOCAL%g
6943 s%@AUTOCONF@%$AUTOCONF%g
6944 s%@AUTOMAKE@%$AUTOMAKE%g
6945 s%@AUTOHEADER@%$AUTOHEADER%g
6946 s%@MAKEINFO@%$MAKEINFO%g
6947 s%@SET_MAKE@%$SET_MAKE%g
6948 s%@bfd_version@%$bfd_version%g
6949 s%@bfd_version_string@%$bfd_version_string%g
6950 s%@AR@%$AR%g
6951 s%@RANLIB@%$RANLIB%g
6952 s%@CC@%$CC%g
6953 s%@LN_S@%$LN_S%g
6954 s%@OBJEXT@%$OBJEXT%g
6955 s%@EXEEXT@%$EXEEXT%g
6956 s%@STRIP@%$STRIP%g
6957 s%@LIBTOOL@%$LIBTOOL%g
6958 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
6959 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6960 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6961 s%@MAINT@%$MAINT%g
6962 s%@INSTALL_LIBBFD_TRUE@%$INSTALL_LIBBFD_TRUE%g
6963 s%@INSTALL_LIBBFD_FALSE@%$INSTALL_LIBBFD_FALSE%g
6964 s%@bfdlibdir@%$bfdlibdir%g
6965 s%@bfdincludedir@%$bfdincludedir%g
6966 s%@CPP@%$CPP%g
6967 s%@ALLOCA@%$ALLOCA%g
6968 s%@USE_NLS@%$USE_NLS%g
6969 s%@MSGFMT@%$MSGFMT%g
6970 s%@GMSGFMT@%$GMSGFMT%g
6971 s%@XGETTEXT@%$XGETTEXT%g
6972 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6973 s%@CATALOGS@%$CATALOGS%g
6974 s%@CATOBJEXT@%$CATOBJEXT%g
6975 s%@DATADIRNAME@%$DATADIRNAME%g
6976 s%@GMOFILES@%$GMOFILES%g
6977 s%@INSTOBJEXT@%$INSTOBJEXT%g
6978 s%@INTLDEPS@%$INTLDEPS%g
6979 s%@INTLLIBS@%$INTLLIBS%g
6980 s%@INTLOBJS@%$INTLOBJS%g
6981 s%@POFILES@%$POFILES%g
6982 s%@POSUB@%$POSUB%g
6983 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6984 s%@GT_NO@%$GT_NO%g
6985 s%@GT_YES@%$GT_YES%g
6986 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6987 s%@l@%$l%g
6988 s%@HDEFINES@%$HDEFINES%g
6989 s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
6990 s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
6991 s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
6992 s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
6993 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
6994 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
6995 s%@COREFILE@%$COREFILE%g
6996 s%@COREFLAG@%$COREFLAG%g
6997 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
6998 s%@WIN32LIBADD@%$WIN32LIBADD%g
6999 s%@TDEFINES@%$TDEFINES%g
7000 s%@wordsize@%$wordsize%g
7001 s%@bfd_libs@%$bfd_libs%g
7002 s%@all_backends@%$all_backends%g
7003 s%@bfd_backends@%$bfd_backends%g
7004 s%@bfd_machines@%$bfd_machines%g
7005 s%@bfd_default_target_size@%$bfd_default_target_size%g
7006 s%@tdefaults@%$tdefaults%g
7007
7008 CEOF
7009 EOF
7010
7011 cat >> $CONFIG_STATUS <<\EOF
7012
7013 # Split the substitutions into bite-sized pieces for seds with
7014 # small command number limits, like on Digital OSF/1 and HP-UX.
7015 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7016 ac_file=1 # Number of current file.
7017 ac_beg=1 # First line for current file.
7018 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7019 ac_more_lines=:
7020 ac_sed_cmds=""
7021 while $ac_more_lines; do
7022 if test $ac_beg -gt 1; then
7023 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7024 else
7025 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7026 fi
7027 if test ! -s conftest.s$ac_file; then
7028 ac_more_lines=false
7029 rm -f conftest.s$ac_file
7030 else
7031 if test -z "$ac_sed_cmds"; then
7032 ac_sed_cmds="sed -f conftest.s$ac_file"
7033 else
7034 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7035 fi
7036 ac_file=`expr $ac_file + 1`
7037 ac_beg=$ac_end
7038 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7039 fi
7040 done
7041 if test -z "$ac_sed_cmds"; then
7042 ac_sed_cmds=cat
7043 fi
7044 EOF
7045
7046 cat >> $CONFIG_STATUS <<EOF
7047
7048 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h bfdver.h:version.h po/Makefile.in:po/Make-in"}
7049 EOF
7050 cat >> $CONFIG_STATUS <<\EOF
7051 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7052 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7053 case "$ac_file" in
7054 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7055 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7056 *) ac_file_in="${ac_file}.in" ;;
7057 esac
7058
7059 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7060
7061 # Remove last slash and all that follows it. Not all systems have dirname.
7062 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7063 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7064 # The file is in a subdirectory.
7065 test ! -d "$ac_dir" && mkdir "$ac_dir"
7066 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7067 # A "../" for each directory in $ac_dir_suffix.
7068 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7069 else
7070 ac_dir_suffix= ac_dots=
7071 fi
7072
7073 case "$ac_given_srcdir" in
7074 .) srcdir=.
7075 if test -z "$ac_dots"; then top_srcdir=.
7076 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7077 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7078 *) # Relative path.
7079 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7080 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7081 esac
7082
7083 case "$ac_given_INSTALL" in
7084 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7085 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7086 esac
7087
7088 echo creating "$ac_file"
7089 rm -f "$ac_file"
7090 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7091 case "$ac_file" in
7092 *Makefile*) ac_comsub="1i\\
7093 # $configure_input" ;;
7094 *) ac_comsub= ;;
7095 esac
7096
7097 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7098 sed -e "$ac_comsub
7099 s%@configure_input@%$configure_input%g
7100 s%@srcdir@%$srcdir%g
7101 s%@top_srcdir@%$top_srcdir%g
7102 s%@INSTALL@%$INSTALL%g
7103 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7104 fi; done
7105 rm -f conftest.s*
7106
7107 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7108 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7109 #
7110 # ac_d sets the value in "#define NAME VALUE" lines.
7111 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7112 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7113 ac_dC='\3'
7114 ac_dD='%g'
7115 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7116 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7117 ac_uB='\([ ]\)%\1#\2define\3'
7118 ac_uC=' '
7119 ac_uD='\4%g'
7120 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7121 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7122 ac_eB='$%\1#\2define\3'
7123 ac_eC=' '
7124 ac_eD='%g'
7125
7126 if test "${CONFIG_HEADERS+set}" != set; then
7127 EOF
7128 cat >> $CONFIG_STATUS <<EOF
7129 CONFIG_HEADERS="config.h:config.in"
7130 EOF
7131 cat >> $CONFIG_STATUS <<\EOF
7132 fi
7133 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7134 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7135 case "$ac_file" in
7136 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7137 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7138 *) ac_file_in="${ac_file}.in" ;;
7139 esac
7140
7141 echo creating $ac_file
7142
7143 rm -f conftest.frag conftest.in conftest.out
7144 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7145 cat $ac_file_inputs > conftest.in
7146
7147 EOF
7148
7149 # Transform confdefs.h into a sed script conftest.vals that substitutes
7150 # the proper values into config.h.in to produce config.h. And first:
7151 # Protect against being on the right side of a sed subst in config.status.
7152 # Protect against being in an unquoted here document in config.status.
7153 rm -f conftest.vals
7154 cat > conftest.hdr <<\EOF
7155 s/[\\&%]/\\&/g
7156 s%[\\$`]%\\&%g
7157 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7158 s%ac_d%ac_u%gp
7159 s%ac_u%ac_e%gp
7160 EOF
7161 sed -n -f conftest.hdr confdefs.h > conftest.vals
7162 rm -f conftest.hdr
7163
7164 # This sed command replaces #undef with comments. This is necessary, for
7165 # example, in the case of _POSIX_SOURCE, which is predefined and required
7166 # on some systems where configure will not decide to define it.
7167 cat >> conftest.vals <<\EOF
7168 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7169 EOF
7170
7171 # Break up conftest.vals because some shells have a limit on
7172 # the size of here documents, and old seds have small limits too.
7173
7174 rm -f conftest.tail
7175 while :
7176 do
7177 ac_lines=`grep -c . conftest.vals`
7178 # grep -c gives empty output for an empty file on some AIX systems.
7179 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7180 # Write a limited-size here document to conftest.frag.
7181 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7182 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7183 echo 'CEOF
7184 sed -f conftest.frag conftest.in > conftest.out
7185 rm -f conftest.in
7186 mv conftest.out conftest.in
7187 ' >> $CONFIG_STATUS
7188 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7189 rm -f conftest.vals
7190 mv conftest.tail conftest.vals
7191 done
7192 rm -f conftest.vals
7193
7194 cat >> $CONFIG_STATUS <<\EOF
7195 rm -f conftest.frag conftest.h
7196 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7197 cat conftest.in >> conftest.h
7198 rm -f conftest.in
7199 if cmp -s $ac_file conftest.h 2>/dev/null; then
7200 echo "$ac_file is unchanged"
7201 rm -f conftest.h
7202 else
7203 # Remove last slash and all that follows it. Not all systems have dirname.
7204 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7205 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7206 # The file is in a subdirectory.
7207 test ! -d "$ac_dir" && mkdir "$ac_dir"
7208 fi
7209 rm -f $ac_file
7210 mv conftest.h $ac_file
7211 fi
7212 fi; done
7213
7214 EOF
7215 cat >> $CONFIG_STATUS <<EOF
7216
7217
7218 EOF
7219 cat >> $CONFIG_STATUS <<\EOF
7220 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
7221 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile
7222 exit 0
7223 EOF
7224 chmod +x $CONFIG_STATUS
7225 rm -fr confdefs* $ac_clean_files
7226 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7227
7228
This page took 0.252637 seconds and 5 git commands to generate.