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

Last change on this file since 1569 was 1124, checked in by bird, 22 years ago

Regenerated with new autoconf (forced to use stable).

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