source: trunk/src/binutils/bfd/configure@ 657

Last change on this file since 657 was 619, checked in by bird, 22 years ago

Regenerated configure files after 2.14 join.

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