source: branches/libc-0.6/src/binutils/bfd/configure

Last change on this file was 1853, checked in by bird, 20 years ago

regenerated (intl)

  • Property cvs2svn:cvs-rev set to 1.13
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 216.3 KB
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --enable-shared[=PKGS] build shared libraries [default=no]"
16ac_help="$ac_help
17 --enable-static[=PKGS] build static libraries [default=yes]"
18ac_help="$ac_help
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
20ac_help="$ac_help
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
22ac_help="$ac_help
23 --disable-libtool-lock avoid locking (might break parallel builds)"
24ac_help="$ac_help
25 --with-pic try to use only PIC/non-PIC objects [default=use both]"
26ac_help="$ac_help
27 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
28ac_help="$ac_help
29 --enable-targets alternative target configurations"
30ac_help="$ac_help
31 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
32ac_help="$ac_help
33 --with-mmap try using mmap for BFD input files if available"
34ac_help="$ac_help
35 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
36ac_help="$ac_help
37 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
39ac_help="$ac_help
40 --enable-install-libbfd controls installation of libbfd and related headers"
41ac_help="$ac_help
42 --disable-nls do not use Native Language Support"
43ac_help="$ac_help
44 --with-included-gettext use the GNU gettext library included here"
45
46# Initialize some variables set by options.
47# The variables have the same names as the options, with
48# dashes changed to underlines.
49build=NONE
50cache_file=./config.cache
51exec_prefix=NONE
52host=NONE
53no_create=
54nonopt=NONE
55no_recursion=
56prefix=NONE
57program_prefix=NONE
58program_suffix=NONE
59program_transform_name=s,x,x,
60silent=
61site=
62srcdir=
63target=NONE
64verbose=
65x_includes=NONE
66x_libraries=NONE
67bindir='${exec_prefix}/bin'
68sbindir='${exec_prefix}/sbin'
69libexecdir='${exec_prefix}/libexec'
70datadir='${prefix}/share'
71sysconfdir='${prefix}/etc'
72sharedstatedir='${prefix}/com'
73localstatedir='${prefix}/var'
74libdir='${exec_prefix}/lib'
75includedir='${prefix}/include'
76oldincludedir='/usr/include'
77infodir='${prefix}/info'
78mandir='${prefix}/man'
79
80# Initialize some other variables.
81subdirs=
82MFLAGS= MAKEFLAGS=
83SHELL=${CONFIG_SHELL-/bin/sh}
84# Maximum number of lines to put in a shell here document.
85ac_max_here_lines=12
86
87ac_prev=
88for ac_option
89do
90
91 # If the previous option needs an argument, assign it.
92 if test -n "$ac_prev"; then
93 eval "$ac_prev=\$ac_option"
94 ac_prev=
95 continue
96 fi
97
98 case "$ac_option" in
99 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
100 *) ac_optarg= ;;
101 esac
102
103 # Accept the important Cygnus configure options, so we can diagnose typos.
104
105 case "$ac_option" in
106
107 -bindir | --bindir | --bindi | --bind | --bin | --bi)
108 ac_prev=bindir ;;
109 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
110 bindir="$ac_optarg" ;;
111
112 -build | --build | --buil | --bui | --bu)
113 ac_prev=build ;;
114 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
115 build="$ac_optarg" ;;
116
117 -cache-file | --cache-file | --cache-fil | --cache-fi \
118 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
119 ac_prev=cache_file ;;
120 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
121 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
122 cache_file="$ac_optarg" ;;
123
124 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
125 ac_prev=datadir ;;
126 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
127 | --da=*)
128 datadir="$ac_optarg" ;;
129
130 -disable-* | --disable-*)
131 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 fi
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}=no" ;;
138
139 -enable-* | --enable-*)
140 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
141 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144 fi
145 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146 case "$ac_option" in
147 *=*) ;;
148 *) ac_optarg=yes ;;
149 esac
150 eval "enable_${ac_feature}='$ac_optarg'" ;;
151
152 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
153 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
154 | --exec | --exe | --ex)
155 ac_prev=exec_prefix ;;
156 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
157 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
158 | --exec=* | --exe=* | --ex=*)
159 exec_prefix="$ac_optarg" ;;
160
161 -gas | --gas | --ga | --g)
162 # Obsolete; use --with-gas.
163 with_gas=yes ;;
164
165 -help | --help | --hel | --he)
166 # Omit some internal or obsolete options to make the list less imposing.
167 # This message is too long to be a string in the A/UX 3.1 sh.
168 cat << EOF
169Usage: configure [options] [host]
170Options: [defaults in brackets after descriptions]
171Configuration:
172 --cache-file=FILE cache test results in FILE
173 --help print this message
174 --no-create do not create output files
175 --quiet, --silent do not print \`checking...' messages
176 --version print the version of autoconf that created configure
177Directory and file names:
178 --prefix=PREFIX install architecture-independent files in PREFIX
179 [$ac_default_prefix]
180 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
181 [same as prefix]
182 --bindir=DIR user executables in DIR [EPREFIX/bin]
183 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
184 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
185 --datadir=DIR read-only architecture-independent data in DIR
186 [PREFIX/share]
187 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
188 --sharedstatedir=DIR modifiable architecture-independent data in DIR
189 [PREFIX/com]
190 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
191 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
192 --includedir=DIR C header files in DIR [PREFIX/include]
193 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
194 --infodir=DIR info documentation in DIR [PREFIX/info]
195 --mandir=DIR man documentation in DIR [PREFIX/man]
196 --srcdir=DIR find the sources in DIR [configure dir or ..]
197 --program-prefix=PREFIX prepend PREFIX to installed program names
198 --program-suffix=SUFFIX append SUFFIX to installed program names
199 --program-transform-name=PROGRAM
200 run sed PROGRAM on installed program names
201EOF
202 cat << EOF
203Host type:
204 --build=BUILD configure for building on BUILD [BUILD=HOST]
205 --host=HOST configure for HOST [guessed]
206 --target=TARGET configure for TARGET [TARGET=HOST]
207Features and packages:
208 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
209 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
210 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
211 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
212 --x-includes=DIR X include files are in DIR
213 --x-libraries=DIR X library files are in DIR
214EOF
215 if test -n "$ac_help"; then
216 echo "--enable and --with options recognized:$ac_help"
217 fi
218 exit 0 ;;
219
220 -host | --host | --hos | --ho)
221 ac_prev=host ;;
222 -host=* | --host=* | --hos=* | --ho=*)
223 host="$ac_optarg" ;;
224
225 -includedir | --includedir | --includedi | --included | --include \
226 | --includ | --inclu | --incl | --inc)
227 ac_prev=includedir ;;
228 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
229 | --includ=* | --inclu=* | --incl=* | --inc=*)
230 includedir="$ac_optarg" ;;
231
232 -infodir | --infodir | --infodi | --infod | --info | --inf)
233 ac_prev=infodir ;;
234 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
235 infodir="$ac_optarg" ;;
236
237 -libdir | --libdir | --libdi | --libd)
238 ac_prev=libdir ;;
239 -libdir=* | --libdir=* | --libdi=* | --libd=*)
240 libdir="$ac_optarg" ;;
241
242 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
243 | --libexe | --libex | --libe)
244 ac_prev=libexecdir ;;
245 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
246 | --libexe=* | --libex=* | --libe=*)
247 libexecdir="$ac_optarg" ;;
248
249 -localstatedir | --localstatedir | --localstatedi | --localstated \
250 | --localstate | --localstat | --localsta | --localst \
251 | --locals | --local | --loca | --loc | --lo)
252 ac_prev=localstatedir ;;
253 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
254 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
255 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
256 localstatedir="$ac_optarg" ;;
257
258 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
259 ac_prev=mandir ;;
260 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
261 mandir="$ac_optarg" ;;
262
263 -nfp | --nfp | --nf)
264 # Obsolete; use --without-fp.
265 with_fp=no ;;
266
267 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
268 | --no-cr | --no-c)
269 no_create=yes ;;
270
271 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
272 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
273 no_recursion=yes ;;
274
275 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
276 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
277 | --oldin | --oldi | --old | --ol | --o)
278 ac_prev=oldincludedir ;;
279 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
280 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
281 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
282 oldincludedir="$ac_optarg" ;;
283
284 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
285 ac_prev=prefix ;;
286 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
287 prefix="$ac_optarg" ;;
288
289 -program-prefix | --program-prefix | --program-prefi | --program-pref \
290 | --program-pre | --program-pr | --program-p)
291 ac_prev=program_prefix ;;
292 -program-prefix=* | --program-prefix=* | --program-prefi=* \
293 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
294 program_prefix="$ac_optarg" ;;
295
296 -program-suffix | --program-suffix | --program-suffi | --program-suff \
297 | --program-suf | --program-su | --program-s)
298 ac_prev=program_suffix ;;
299 -program-suffix=* | --program-suffix=* | --program-suffi=* \
300 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
301 program_suffix="$ac_optarg" ;;
302
303 -program-transform-name | --program-transform-name \
304 | --program-transform-nam | --program-transform-na \
305 | --program-transform-n | --program-transform- \
306 | --program-transform | --program-transfor \
307 | --program-transfo | --program-transf \
308 | --program-trans | --program-tran \
309 | --progr-tra | --program-tr | --program-t)
310 ac_prev=program_transform_name ;;
311 -program-transform-name=* | --program-transform-name=* \
312 | --program-transform-nam=* | --program-transform-na=* \
313 | --program-transform-n=* | --program-transform-=* \
314 | --program-transform=* | --program-transfor=* \
315 | --program-transfo=* | --program-transf=* \
316 | --program-trans=* | --program-tran=* \
317 | --progr-tra=* | --program-tr=* | --program-t=*)
318 program_transform_name="$ac_optarg" ;;
319
320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
321 | -silent | --silent | --silen | --sile | --sil)
322 silent=yes ;;
323
324 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
325 ac_prev=sbindir ;;
326 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
327 | --sbi=* | --sb=*)
328 sbindir="$ac_optarg" ;;
329
330 -sharedstatedir | --sharedstatedir | --sharedstatedi \
331 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
332 | --sharedst | --shareds | --shared | --share | --shar \
333 | --sha | --sh)
334 ac_prev=sharedstatedir ;;
335 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
336 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
337 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
338 | --sha=* | --sh=*)
339 sharedstatedir="$ac_optarg" ;;
340
341 -site | --site | --sit)
342 ac_prev=site ;;
343 -site=* | --site=* | --sit=*)
344 site="$ac_optarg" ;;
345
346 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
347 ac_prev=srcdir ;;
348 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
349 srcdir="$ac_optarg" ;;
350
351 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
352 | --syscon | --sysco | --sysc | --sys | --sy)
353 ac_prev=sysconfdir ;;
354 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
355 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
356 sysconfdir="$ac_optarg" ;;
357
358 -target | --target | --targe | --targ | --tar | --ta | --t)
359 ac_prev=target ;;
360 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
361 target="$ac_optarg" ;;
362
363 -v | -verbose | --verbose | --verbos | --verbo | --verb)
364 verbose=yes ;;
365
366 -version | --version | --versio | --versi | --vers)
367 echo "configure generated by autoconf version 2.13"
368 exit 0 ;;
369
370 -with-* | --with-*)
371 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 fi
376 ac_package=`echo $ac_package| sed 's/-/_/g'`
377 case "$ac_option" in
378 *=*) ;;
379 *) ac_optarg=yes ;;
380 esac
381 eval "with_${ac_package}='$ac_optarg'" ;;
382
383 -without-* | --without-*)
384 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
385 # Reject names that are not valid shell variable names.
386 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388 fi
389 ac_package=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}=no" ;;
391
392 --x)
393 # Obsolete; use --with-x.
394 with_x=yes ;;
395
396 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
397 | --x-incl | --x-inc | --x-in | --x-i)
398 ac_prev=x_includes ;;
399 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
400 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
401 x_includes="$ac_optarg" ;;
402
403 -x-libraries | --x-libraries | --x-librarie | --x-librari \
404 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
405 ac_prev=x_libraries ;;
406 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
407 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
408 x_libraries="$ac_optarg" ;;
409
410 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
411 ;;
412
413 *)
414 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
415 echo "configure: warning: $ac_option: invalid host type" 1>&2
416 fi
417 if test "x$nonopt" != xNONE; then
418 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
419 fi
420 nonopt="$ac_option"
421 ;;
422
423 esac
424done
425
426if test -n "$ac_prev"; then
427 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
428fi
429
430trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
431
432# File descriptor usage:
433# 0 standard input
434# 1 file creation
435# 2 errors and warnings
436# 3 some systems may open it to /dev/tty
437# 4 used on the Kubota Titan
438# 6 checking for... messages and results
439# 5 compiler messages saved in config.log
440if test "$silent" = yes; then
441 exec 6>/dev/null
442else
443 exec 6>&1
444fi
445exec 5>./config.log
446
447echo "\
448This file contains any messages produced by compilers while
449running configure, to aid debugging if configure makes a mistake.
450" 1>&5
451
452# Strip out --no-create and --no-recursion so they do not pile up.
453# Also quote any args containing shell metacharacters.
454ac_configure_args=
455for ac_arg
456do
457 case "$ac_arg" in
458 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
459 | --no-cr | --no-c) ;;
460 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
461 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
462 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
463 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
464 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
465 esac
466done
467
468# NLS nuisances.
469# Only set these to C if already set. These must not be set unconditionally
470# because not all systems understand e.g. LANG=C (notably SCO).
471# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
472# Non-C LC_CTYPE values break the ctype check.
473if test "${LANG+set}" = set; then LANG=C; export LANG; fi
474if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
475if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
476if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
477
478# confdefs.h avoids OS command line length limits that DEFS can exceed.
479rm -rf conftest* confdefs.h
480# AIX cpp loses on an empty file, so make sure it contains at least a newline.
481echo > confdefs.h
482
483# A filename unique to this package, relative to the directory that
484# configure is in, which we can look for to find out if srcdir is correct.
485ac_unique_file=libbfd.c
486
487# Find the source files, if location was not specified.
488if test -z "$srcdir"; then
489 ac_srcdir_defaulted=yes
490 # Try the directory containing this script, then its parent.
491 ac_prog=$0
492 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
493 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
494 srcdir=$ac_confdir
495 if test ! -r $srcdir/$ac_unique_file; then
496 srcdir=..
497 fi
498else
499 ac_srcdir_defaulted=no
500fi
501if test ! -r $srcdir/$ac_unique_file; then
502 if test "$ac_srcdir_defaulted" = yes; then
503 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
504 else
505 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
506 fi
507fi
508srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
509
510# Prefer explicitly selected file to automatically selected ones.
511if test -z "$CONFIG_SITE"; then
512 if test "x$prefix" != xNONE; then
513 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
514 else
515 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
516 fi
517fi
518for ac_site_file in $CONFIG_SITE; do
519 if test -r "$ac_site_file"; then
520 echo "loading site script $ac_site_file"
521 . "$ac_site_file"
522 fi
523done
524
525if test -r "$cache_file"; then
526 echo "loading cache $cache_file"
527 . $cache_file
528else
529 echo "creating cache $cache_file"
530 > $cache_file
531fi
532
533ac_ext=c
534# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
535ac_cpp='$CPP $CPPFLAGS'
536ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
537ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
538cross_compiling=$ac_cv_prog_cc_cross
539
540ac_exeext=
541ac_objext=o
542if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
543 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
544 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
545 ac_n= ac_c='
546' ac_t=' '
547 else
548 ac_n=-n ac_c= ac_t=
549 fi
550else
551 ac_n= ac_c='\c' ac_t=
552fi
553
554echo $ac_n "checking for path separator""... $ac_c" 1>&6
555echo "configure:556: checking for path separator" >&5
556# Filter path to get backslahes into forwardslashes
557case "`uname -s 2> /dev/null`" in
558OS/2)
559 PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
560 PATH_IFS=';'
561 ;;
562*)
563 PATH_IFS=':'
564 ;;
565esac
566echo "$ac_t""${PATH_IFS}" 1>&6
567
568echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
569echo "configure:570: checking for Cygwin environment" >&5
570if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
571 echo $ac_n "(cached) $ac_c" 1>&6
572else
573 cat > conftest.$ac_ext <<EOF
574#line 575 "configure"
575#include "confdefs.h"
576
577int main() {
578
579#ifndef __CYGWIN__
580#define __CYGWIN__ __CYGWIN32__
581#endif
582return __CYGWIN__;
583; return 0; }
584EOF
585if { (eval echo configure:586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
586 rm -rf conftest*
587 ac_cv_cygwin=yes
588else
589 echo "configure: failed program was:" >&5
590 cat conftest.$ac_ext >&5
591 rm -rf conftest*
592 ac_cv_cygwin=no
593fi
594rm -f conftest*
595rm -f conftest*
596fi
597
598echo "$ac_t""$ac_cv_cygwin" 1>&6
599CYGWIN=
600test "$ac_cv_cygwin" = yes && CYGWIN=yes
601echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
602echo "configure:603: checking for mingw32 environment" >&5
603if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
604 echo $ac_n "(cached) $ac_c" 1>&6
605else
606 cat > conftest.$ac_ext <<EOF
607#line 608 "configure"
608#include "confdefs.h"
609
610int main() {
611return __MINGW32__;
612; return 0; }
613EOF
614if { (eval echo configure:615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
615 rm -rf conftest*
616 ac_cv_mingw32=yes
617else
618 echo "configure: failed program was:" >&5
619 cat conftest.$ac_ext >&5
620 rm -rf conftest*
621 ac_cv_mingw32=no
622fi
623rm -f conftest*
624rm -f conftest*
625fi
626
627echo "$ac_t""$ac_cv_mingw32" 1>&6
628MINGW32=
629test "$ac_cv_mingw32" = yes && MINGW32=yes
630echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
631echo "configure:632: checking for EMX/OS2 environment" >&5
632if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
633 echo $ac_n "(cached) $ac_c" 1>&6
634else
635 : ${CC=gcc.exe}
636cat > conftest.$ac_ext <<EOF
637#line 638 "configure"
638#include "confdefs.h"
639
640int main() {
641return __EMX__;
642; return 0; }
643EOF
644if { (eval echo configure:645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
645 rm -rf conftest*
646 ac_cv_emxos2=yes
647else
648 echo "configure: failed program was:" >&5
649 cat conftest.$ac_ext >&5
650 rm -rf conftest*
651 ac_cv_emxos2=no
652fi
653rm -f conftest*
654rm -f conftest*
655fi
656
657echo "$ac_t""$ac_cv_emxos2" 1>&6
658if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
659 echo $ac_n "(cached) $ac_c" 1>&6
660else
661 if test "$ac_cv_emxos2" = yes ; then
662 ac_cv_libpre=
663else
664 ac_cv_libpre=lib
665fi
666
667fi
668
669EMXOS2=
670test "$ac_cv_emxos2" = yes && EMXOS2=yes
671
672
673
674echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
675echo "configure:676: checking for executable suffix" >&5
676if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
677 echo $ac_n "(cached) $ac_c" 1>&6
678else
679 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
680 ac_cv_exeext=.exe
681else
682 rm -f conftest*
683 echo 'int main () { return 0; }' > conftest.$ac_ext
684 ac_cv_exeext=
685 if { (eval echo configure:686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
686 for file in conftest.*; do
687 case $file in
688 *.c | *.o | *.obj) ;;
689 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
690 esac
691 done
692 else
693 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
694 fi
695 rm -f conftest*
696 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
697fi
698fi
699
700EXEEXT=""
701test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
702echo "$ac_t""${ac_cv_exeext}" 1>&6
703ac_exeext=$EXEEXT
704
705
706
707ac_aux_dir=
708for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
709 if test -f $ac_dir/install-sh; then
710 ac_aux_dir=$ac_dir
711 ac_install_sh="$ac_aux_dir/install-sh -c"
712 break
713 elif test -f $ac_dir/install.sh; then
714 ac_aux_dir=$ac_dir
715 ac_install_sh="$ac_aux_dir/install.sh -c"
716 break
717 fi
718done
719if test -z "$ac_aux_dir"; then
720 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
721fi
722ac_config_guess=$ac_aux_dir/config.guess
723ac_config_sub=$ac_aux_dir/config.sub
724ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
725
726
727# Do some error checking and defaulting for the host and target type.
728# The inputs are:
729# configure --host=HOST --target=TARGET --build=BUILD NONOPT
730#
731# The rules are:
732# 1. You are not allowed to specify --host, --target, and nonopt at the
733# same time.
734# 2. Host defaults to nonopt.
735# 3. If nonopt is not specified, then host defaults to the current host,
736# as determined by config.guess.
737# 4. Target and build default to nonopt.
738# 5. If nonopt is not specified, then target and build default to host.
739
740# The aliases save the names the user supplied, while $host etc.
741# will get canonicalized.
742case $host---$target---$nonopt in
743NONE---*---* | *---NONE---* | *---*---NONE) ;;
744*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
745esac
746
747
748# Make sure we can run config.sub.
749if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
750else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
751fi
752
753echo $ac_n "checking host system type""... $ac_c" 1>&6
754echo "configure:755: checking host system type" >&5
755
756host_alias=$host
757case "$host_alias" in
758NONE)
759 case $nonopt in
760 NONE)
761 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
762 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
763 fi ;;
764 *) host_alias=$nonopt ;;
765 esac ;;
766esac
767
768host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
769host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
770host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
771host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
772echo "$ac_t""$host" 1>&6
773
774echo $ac_n "checking target system type""... $ac_c" 1>&6
775echo "configure:776: checking target system type" >&5
776
777target_alias=$target
778case "$target_alias" in
779NONE)
780 case $nonopt in
781 NONE) target_alias=$host_alias ;;
782 *) target_alias=$nonopt ;;
783 esac ;;
784esac
785
786target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
787target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
788target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
789target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
790echo "$ac_t""$target" 1>&6
791
792echo $ac_n "checking build system type""... $ac_c" 1>&6
793echo "configure:794: checking build system type" >&5
794
795build_alias=$build
796case "$build_alias" in
797NONE)
798 case $nonopt in
799 NONE) build_alias=$host_alias ;;
800 *) build_alias=$nonopt ;;
801 esac ;;
802esac
803
804build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
805build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
806build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
807build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
808echo "$ac_t""$build" 1>&6
809
810test "$host_alias" != "$target_alias" &&
811 test "$program_prefix$program_suffix$program_transform_name" = \
812 NONENONEs,x,x, &&
813 program_prefix=${target_alias}-
814
815# 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 fi
4391
4392 if test "$XGETTEXT" != ":"; then
4393 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4394 : ;
4395 else
4396 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4397 XGETTEXT=":"
4398 fi
4399 fi
4400
4401 # We need to process the po/ directory.
4402 POSUB=po
4403 else
4404 DATADIRNAME=share
4405 nls_cv_header_intl=libintl.h
4406 nls_cv_header_libgt=libgettext.h
4407 fi
4408
4409 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4410 # because some of the sources are only built for this goal.
4411 if test "$PACKAGE" = gettext; then
4412 USE_NLS=yes
4413 USE_INCLUDED_LIBINTL=yes
4414 fi
4415
4416 for lang in $ALL_LINGUAS; do
4417 GMOFILES="$GMOFILES $lang.gmo"
4418 POFILES="$POFILES $lang.po"
4419 done
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434 if test "x$CATOBJEXT" != "x"; then
4435 if test "x$ALL_LINGUAS" = "x"; then
4436 LINGUAS=
4437 else
4438 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4439echo "configure:4440: checking for catalogs to be installed" >&5
4440 NEW_LINGUAS=
4441 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4442 case "$ALL_LINGUAS" in
4443 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4444 esac
4445 done
4446 LINGUAS=$NEW_LINGUAS
4447 echo "$ac_t""$LINGUAS" 1>&6
4448 fi
4449
4450 if test -n "$LINGUAS"; then
4451 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4452 fi
4453 fi
4454
4455 if test $ac_cv_header_locale_h = yes; then
4456 INCLUDE_LOCALE_H="#include <locale.h>"
4457 else
4458 INCLUDE_LOCALE_H="\
4459/* The system does not provide the header <locale.h>. Take care yourself. */"
4460 fi
4461
4462
4463 if test -f $srcdir/po2tbl.sed.in; then
4464 if test "$CATOBJEXT" = ".cat"; then
4465 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4466echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4467echo "configure:4468: checking for linux/version.h" >&5
4468if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4469 echo $ac_n "(cached) $ac_c" 1>&6
4470else
4471 cat > conftest.$ac_ext <<EOF
4472#include <sys/types.h>
4473#line 4474 "configure"
4474#include "confdefs.h"
4475#include <linux/version.h>
4476EOF
4477ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4478{ (eval echo configure:4479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4479ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4480if test -z "$ac_err"; then
4481 rm -rf conftest*
4482 eval "ac_cv_header_$ac_safe=yes"
4483else
4484 echo "$ac_err" >&5
4485 echo "configure: failed program was:" >&5
4486 cat conftest.$ac_ext >&5
4487 rm -rf conftest*
4488 eval "ac_cv_header_$ac_safe=no"
4489fi
4490rm -f conftest*
4491fi
4492if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4493 echo "$ac_t""yes" 1>&6
4494 msgformat=linux
4495else
4496 echo "$ac_t""no" 1>&6
4497msgformat=xopen
4498fi
4499
4500
4501 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4502 fi
4503 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4504 $srcdir/po2tbl.sed.in > po2tbl.sed
4505 fi
4506
4507 if test "$PACKAGE" = "gettext"; then
4508 GT_NO="#NO#"
4509 GT_YES=
4510 else
4511 GT_NO=
4512 GT_YES="#YES#"
4513 fi
4514
4515
4516
4517 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4518
4519
4520 l=
4521
4522
4523 if test -f $srcdir/po/POTFILES.in; then
4524 test -d po || mkdir po
4525 if test "x$srcdir" != "x."; then
4526 if test "x`echo $srcdir | sed -e 's@.\:/.*@@' -e 's@/.*@@' `" = "x"; then
4527 posrcprefix="$srcdir/"
4528 else
4529 posrcprefix="../$srcdir/"
4530 fi
4531 else
4532 posrcprefix="../"
4533 fi
4534 rm -f po/POTFILES
4535 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4536 < $srcdir/po/POTFILES.in > po/POTFILES
4537 fi
4538
4539
4540# Permit host specific settings.
4541. ${srcdir}/configure.host
4542
4543
4544# Find a good install program. We prefer a C program (faster),
4545# so one script is as good as another. But avoid the broken or
4546# incompatible versions:
4547# SysV /etc/install, /usr/sbin/install
4548# SunOS /usr/etc/install
4549# IRIX /sbin/install
4550# AIX /bin/install
4551# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4552# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4553# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4554# ./install, which can be erroneously created by make from ./install.sh.
4555echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4556echo "configure:4557: checking for a BSD compatible install" >&5
4557if test -z "$INSTALL"; then
4558if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4559 echo $ac_n "(cached) $ac_c" 1>&6
4560else
4561 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
4562 for ac_dir in $PATH; do
4563 # Account for people who put trailing slashes in PATH elements.
4564 case "$ac_dir/" in
4565 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4566 # We reject the install program from OS/2 or W3.1
4567 */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
4568 *)
4569 # OSF1 and SCO ODT 3.0 have their own names for install.
4570 # Don't use installbsd from OSF since it installs stuff as root
4571 # by default.
4572 for ac_prog in ginstall scoinst install; do
4573 if test -f $ac_dir/$ac_prog$ac_exeext; then
4574 if test $ac_prog = install &&
4575 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4576 # AIX install. It has an incompatible calling convention.
4577 :
4578 else
4579 ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
4580 break 2
4581 fi
4582 fi
4583 done
4584 ;;
4585 esac
4586 done
4587 IFS="$ac_save_IFS"
4588
4589fi
4590 if test "${ac_cv_path_install+set}" = set; then
4591 INSTALL="$ac_cv_path_install"
4592 else
4593 # As a last resort, use the slow shell script. We don't cache a
4594 # path for INSTALL within a source directory, because that will
4595 # break other packages using the cache if that directory is
4596 # removed, or if the path is relative.
4597 INSTALL="$ac_install_sh"
4598 fi
4599fi
4600echo "$ac_t""$INSTALL" 1>&6
4601
4602# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4603# It thinks the first close brace ends the variable substitution.
4604test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4605
4606test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4607
4608test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4609
4610
4611BFD_HOST_64BIT_LONG=0
4612BFD_HOST_64_BIT_DEFINED=0
4613BFD_HOST_64_BIT=
4614BFD_HOST_U_64_BIT=
4615if test "x${HOST_64BIT_TYPE}" = "xlong"; then
4616 BFD_HOST_64BIT_LONG=1
4617elif test "x${HOST_64BIT_TYPE}" != "x"; then
4618 BFD_HOST_64_BIT_DEFINED=1
4619 BFD_HOST_64_BIT=${HOST_64BIT_TYPE}
4620 BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE}
4621fi
4622
4623
4624
4625
4626
4627# Put a plausible default for CC_FOR_BUILD in Makefile.
4628if test -z "$CC_FOR_BUILD"; then
4629 if test "x$cross_compiling" = "xno"; then
4630 CC_FOR_BUILD='$(CC)'
4631 else
4632 CC_FOR_BUILD=gcc
4633 fi
4634fi
4635
4636# Also set EXEEXT_FOR_BUILD.
4637if test "x$cross_compiling" = "xno"; then
4638 EXEEXT_FOR_BUILD='$(EXEEXT)'
4639else
4640 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4641echo "configure:4642: checking for build system executable suffix" >&5
4642if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4643 echo $ac_n "(cached) $ac_c" 1>&6
4644else
4645 rm -f conftest*
4646 echo 'int main () { return 0; }' > conftest.c
4647 bfd_cv_build_exeext=
4648 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
4649 for file in conftest.*; do
4650 case $file in
4651 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
4652 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4653 esac
4654 done
4655 rm -f conftest*
4656 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
4657fi
4658
4659echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4660 EXEEXT_FOR_BUILD=""
4661 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
4662fi
4663
4664
4665for ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h
4666do
4667ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4668echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4669echo "configure:4670: checking for $ac_hdr" >&5
4670if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4671 echo $ac_n "(cached) $ac_c" 1>&6
4672else
4673 cat > conftest.$ac_ext <<EOF
4674#include <sys/types.h>
4675#line 4676 "configure"
4676#include "confdefs.h"
4677#include <$ac_hdr>
4678EOF
4679ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4680{ (eval echo configure:4681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4681ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4682if test -z "$ac_err"; then
4683 rm -rf conftest*
4684 eval "ac_cv_header_$ac_safe=yes"
4685else
4686 echo "$ac_err" >&5
4687 echo "configure: failed program was:" >&5
4688 cat conftest.$ac_ext >&5
4689 rm -rf conftest*
4690 eval "ac_cv_header_$ac_safe=no"
4691fi
4692rm -f conftest*
4693fi
4694if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4695 echo "$ac_t""yes" 1>&6
4696 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4697 cat >> confdefs.h <<EOF
4698#define $ac_tr_hdr 1
4699EOF
4700
4701else
4702 echo "$ac_t""no" 1>&6
4703fi
4704done
4705
4706for ac_hdr in fcntl.h sys/file.h sys/time.h
4707do
4708ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4709echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4710echo "configure:4711: checking for $ac_hdr" >&5
4711if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4712 echo $ac_n "(cached) $ac_c" 1>&6
4713else
4714 cat > conftest.$ac_ext <<EOF
4715#include <sys/types.h>
4716#line 4717 "configure"
4717#include "confdefs.h"
4718#include <$ac_hdr>
4719EOF
4720ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4721{ (eval echo configure:4722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4722ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4723if test -z "$ac_err"; then
4724 rm -rf conftest*
4725 eval "ac_cv_header_$ac_safe=yes"
4726else
4727 echo "$ac_err" >&5
4728 echo "configure: failed program was:" >&5
4729 cat conftest.$ac_ext >&5
4730 rm -rf conftest*
4731 eval "ac_cv_header_$ac_safe=no"
4732fi
4733rm -f conftest*
4734fi
4735if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4736 echo "$ac_t""yes" 1>&6
4737 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4738 cat >> confdefs.h <<EOF
4739#define $ac_tr_hdr 1
4740EOF
4741
4742else
4743 echo "$ac_t""no" 1>&6
4744fi
4745done
4746
4747echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4748echo "configure:4749: checking whether time.h and sys/time.h may both be included" >&5
4749if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4750 echo $ac_n "(cached) $ac_c" 1>&6
4751else
4752 cat > conftest.$ac_ext <<EOF
4753#line 4754 "configure"
4754#include "confdefs.h"
4755#include <sys/types.h>
4756#include <sys/time.h>
4757#include <time.h>
4758int main() {
4759struct tm *tp;
4760; return 0; }
4761EOF
4762if { (eval echo configure:4763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4763 rm -rf conftest*
4764 ac_cv_header_time=yes
4765else
4766 echo "configure: failed program was:" >&5
4767 cat conftest.$ac_ext >&5
4768 rm -rf conftest*
4769 ac_cv_header_time=no
4770fi
4771rm -f conftest*
4772fi
4773
4774echo "$ac_t""$ac_cv_header_time" 1>&6
4775if test $ac_cv_header_time = yes; then
4776 cat >> confdefs.h <<\EOF
4777#define TIME_WITH_SYS_TIME 1
4778EOF
4779
4780fi
4781
4782ac_header_dirent=no
4783for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4784do
4785ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4786echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4787echo "configure:4788: checking for $ac_hdr that defines DIR" >&5
4788if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4789 echo $ac_n "(cached) $ac_c" 1>&6
4790else
4791 cat > conftest.$ac_ext <<EOF
4792#line 4793 "configure"
4793#include "confdefs.h"
4794#include <sys/types.h>
4795#include <$ac_hdr>
4796int main() {
4797DIR *dirp = 0;
4798; return 0; }
4799EOF
4800if { (eval echo configure:4801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4801 rm -rf conftest*
4802 eval "ac_cv_header_dirent_$ac_safe=yes"
4803else
4804 echo "configure: failed program was:" >&5
4805 cat conftest.$ac_ext >&5
4806 rm -rf conftest*
4807 eval "ac_cv_header_dirent_$ac_safe=no"
4808fi
4809rm -f conftest*
4810fi
4811if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4812 echo "$ac_t""yes" 1>&6
4813 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4814 cat >> confdefs.h <<EOF
4815#define $ac_tr_hdr 1
4816EOF
4817 ac_header_dirent=$ac_hdr; break
4818else
4819 echo "$ac_t""no" 1>&6
4820fi
4821done
4822# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4823if test $ac_header_dirent = dirent.h; then
4824echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4825echo "configure:4826: checking for opendir in -ldir" >&5
4826ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4827if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4828 echo $ac_n "(cached) $ac_c" 1>&6
4829else
4830 ac_save_LIBS="$LIBS"
4831LIBS="-ldir $LIBS"
4832cat > conftest.$ac_ext <<EOF
4833#line 4834 "configure"
4834#include "confdefs.h"
4835/* Override any gcc2 internal prototype to avoid an error. */
4836/* We use char because int might match the return type of a gcc2
4837 builtin and then its argument prototype would still apply. */
4838char opendir();
4839
4840int main() {
4841opendir()
4842; return 0; }
4843EOF
4844if { (eval echo configure:4845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4845 rm -rf conftest*
4846 eval "ac_cv_lib_$ac_lib_var=yes"
4847else
4848 echo "configure: failed program was:" >&5
4849 cat conftest.$ac_ext >&5
4850 rm -rf conftest*
4851 eval "ac_cv_lib_$ac_lib_var=no"
4852fi
4853rm -f conftest*
4854LIBS="$ac_save_LIBS"
4855
4856fi
4857if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4858 echo "$ac_t""yes" 1>&6
4859 LIBS="$LIBS -ldir"
4860else
4861 echo "$ac_t""no" 1>&6
4862fi
4863
4864else
4865echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4866echo "configure:4867: checking for opendir in -lx" >&5
4867ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4868if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4869 echo $ac_n "(cached) $ac_c" 1>&6
4870else
4871 ac_save_LIBS="$LIBS"
4872LIBS="-lx $LIBS"
4873cat > conftest.$ac_ext <<EOF
4874#line 4875 "configure"
4875#include "confdefs.h"
4876/* Override any gcc2 internal prototype to avoid an error. */
4877/* We use char because int might match the return type of a gcc2
4878 builtin and then its argument prototype would still apply. */
4879char opendir();
4880
4881int main() {
4882opendir()
4883; return 0; }
4884EOF
4885if { (eval echo configure:4886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4886 rm -rf conftest*
4887 eval "ac_cv_lib_$ac_lib_var=yes"
4888else
4889 echo "configure: failed program was:" >&5
4890 cat conftest.$ac_ext >&5
4891 rm -rf conftest*
4892 eval "ac_cv_lib_$ac_lib_var=no"
4893fi
4894rm -f conftest*
4895LIBS="$ac_save_LIBS"
4896
4897fi
4898if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4899 echo "$ac_t""yes" 1>&6
4900 LIBS="$LIBS -lx"
4901else
4902 echo "$ac_t""no" 1>&6
4903fi
4904
4905fi
4906
4907for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
4908do
4909echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4910echo "configure:4911: checking for $ac_func" >&5
4911if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4912 echo $ac_n "(cached) $ac_c" 1>&6
4913else
4914 cat > conftest.$ac_ext <<EOF
4915#line 4916 "configure"
4916#include "confdefs.h"
4917/* System header to define __stub macros and hopefully few prototypes,
4918 which can conflict with char $ac_func(); below. */
4919#include <assert.h>
4920/* Override any gcc2 internal prototype to avoid an error. */
4921/* We use char because int might match the return type of a gcc2
4922 builtin and then its argument prototype would still apply. */
4923char $ac_func();
4924
4925int main() {
4926
4927/* The GNU C library defines this for functions which it implements
4928 to always fail with ENOSYS. Some functions are actually named
4929 something starting with __ and the normal name is an alias. */
4930#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4931choke me
4932#else
4933$ac_func();
4934#endif
4935
4936; return 0; }
4937EOF
4938if { (eval echo configure:4939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4939 rm -rf conftest*
4940 eval "ac_cv_func_$ac_func=yes"
4941else
4942 echo "configure: failed program was:" >&5
4943 cat conftest.$ac_ext >&5
4944 rm -rf conftest*
4945 eval "ac_cv_func_$ac_func=no"
4946fi
4947rm -f conftest*
4948fi
4949
4950if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4951 echo "$ac_t""yes" 1>&6
4952 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4953 cat >> confdefs.h <<EOF
4954#define $ac_tr_func 1
4955EOF
4956
4957else
4958 echo "$ac_t""no" 1>&6
4959fi
4960done
4961
4962
4963
4964case "${host}" in
4965*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows* | *-*-os2*)
4966 cat >> confdefs.h <<\EOF
4967#define USE_BINARY_FOPEN 1
4968EOF
4969 ;;
4970esac
4971
4972echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4973echo "configure:4974: checking whether strstr must be declared" >&5
4974if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4975 echo $ac_n "(cached) $ac_c" 1>&6
4976else
4977 cat > conftest.$ac_ext <<EOF
4978#line 4979 "configure"
4979#include "confdefs.h"
4980
4981#include <stdio.h>
4982#ifdef HAVE_STRING_H
4983#include <string.h>
4984#else
4985#ifdef HAVE_STRINGS_H
4986#include <strings.h>
4987#endif
4988#endif
4989#ifdef HAVE_STDLIB_H
4990#include <stdlib.h>
4991#endif
4992#ifdef HAVE_UNISTD_H
4993#include <unistd.h>
4994#endif
4995int main() {
4996char *(*pfn) = (char *(*)) strstr
4997; return 0; }
4998EOF
4999if { (eval echo configure:5000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5000 rm -rf conftest*
5001 bfd_cv_decl_needed_strstr=no
5002else
5003 echo "configure: failed program was:" >&5
5004 cat conftest.$ac_ext >&5
5005 rm -rf conftest*
5006 bfd_cv_decl_needed_strstr=yes
5007fi
5008rm -f conftest*
5009fi
5010
5011echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
5012if test $bfd_cv_decl_needed_strstr = yes; then
5013 cat >> confdefs.h <<\EOF
5014#define NEED_DECLARATION_STRSTR 1
5015EOF
5016
5017fi
5018
5019echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
5020echo "configure:5021: checking whether malloc must be declared" >&5
5021if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
5022 echo $ac_n "(cached) $ac_c" 1>&6
5023else
5024 cat > conftest.$ac_ext <<EOF
5025#line 5026 "configure"
5026#include "confdefs.h"
5027
5028#include <stdio.h>
5029#ifdef HAVE_STRING_H
5030#include <string.h>
5031#else
5032#ifdef HAVE_STRINGS_H
5033#include <strings.h>
5034#endif
5035#endif
5036#ifdef HAVE_STDLIB_H
5037#include <stdlib.h>
5038#endif
5039#ifdef HAVE_UNISTD_H
5040#include <unistd.h>
5041#endif
5042int main() {
5043char *(*pfn) = (char *(*)) malloc
5044; return 0; }
5045EOF
5046if { (eval echo configure:5047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5047 rm -rf conftest*
5048 bfd_cv_decl_needed_malloc=no
5049else
5050 echo "configure: failed program was:" >&5
5051 cat conftest.$ac_ext >&5
5052 rm -rf conftest*
5053 bfd_cv_decl_needed_malloc=yes
5054fi
5055rm -f conftest*
5056fi
5057
5058echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
5059if test $bfd_cv_decl_needed_malloc = yes; then
5060 cat >> confdefs.h <<\EOF
5061#define NEED_DECLARATION_MALLOC 1
5062EOF
5063
5064fi
5065
5066echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
5067echo "configure:5068: checking whether realloc must be declared" >&5
5068if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
5069 echo $ac_n "(cached) $ac_c" 1>&6
5070else
5071 cat > conftest.$ac_ext <<EOF
5072#line 5073 "configure"
5073#include "confdefs.h"
5074
5075#include <stdio.h>
5076#ifdef HAVE_STRING_H
5077#include <string.h>
5078#else
5079#ifdef HAVE_STRINGS_H
5080#include <strings.h>
5081#endif
5082#endif
5083#ifdef HAVE_STDLIB_H
5084#include <stdlib.h>
5085#endif
5086#ifdef HAVE_UNISTD_H
5087#include <unistd.h>
5088#endif
5089int main() {
5090char *(*pfn) = (char *(*)) realloc
5091; return 0; }
5092EOF
5093if { (eval echo configure:5094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5094 rm -rf conftest*
5095 bfd_cv_decl_needed_realloc=no
5096else
5097 echo "configure: failed program was:" >&5
5098 cat conftest.$ac_ext >&5
5099 rm -rf conftest*
5100 bfd_cv_decl_needed_realloc=yes
5101fi
5102rm -f conftest*
5103fi
5104
5105echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
5106if test $bfd_cv_decl_needed_realloc = yes; then
5107 cat >> confdefs.h <<\EOF
5108#define NEED_DECLARATION_REALLOC 1
5109EOF
5110
5111fi
5112
5113echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
5114echo "configure:5115: checking whether free must be declared" >&5
5115if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
5116 echo $ac_n "(cached) $ac_c" 1>&6
5117else
5118 cat > conftest.$ac_ext <<EOF
5119#line 5120 "configure"
5120#include "confdefs.h"
5121
5122#include <stdio.h>
5123#ifdef HAVE_STRING_H
5124#include <string.h>
5125#else
5126#ifdef HAVE_STRINGS_H
5127#include <strings.h>
5128#endif
5129#endif
5130#ifdef HAVE_STDLIB_H
5131#include <stdlib.h>
5132#endif
5133#ifdef HAVE_UNISTD_H
5134#include <unistd.h>
5135#endif
5136int main() {
5137char *(*pfn) = (char *(*)) free
5138; return 0; }
5139EOF
5140if { (eval echo configure:5141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5141 rm -rf conftest*
5142 bfd_cv_decl_needed_free=no
5143else
5144 echo "configure: failed program was:" >&5
5145 cat conftest.$ac_ext >&5
5146 rm -rf conftest*
5147 bfd_cv_decl_needed_free=yes
5148fi
5149rm -f conftest*
5150fi
5151
5152echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
5153if test $bfd_cv_decl_needed_free = yes; then
5154 cat >> confdefs.h <<\EOF
5155#define NEED_DECLARATION_FREE 1
5156EOF
5157
5158fi
5159
5160echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
5161echo "configure:5162: checking whether getenv must be declared" >&5
5162if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
5163 echo $ac_n "(cached) $ac_c" 1>&6
5164else
5165 cat > conftest.$ac_ext <<EOF
5166#line 5167 "configure"
5167#include "confdefs.h"
5168
5169#include <stdio.h>
5170#ifdef HAVE_STRING_H
5171#include <string.h>
5172#else
5173#ifdef HAVE_STRINGS_H
5174#include <strings.h>
5175#endif
5176#endif
5177#ifdef HAVE_STDLIB_H
5178#include <stdlib.h>
5179#endif
5180#ifdef HAVE_UNISTD_H
5181#include <unistd.h>
5182#endif
5183int main() {
5184char *(*pfn) = (char *(*)) getenv
5185; return 0; }
5186EOF
5187if { (eval echo configure:5188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5188 rm -rf conftest*
5189 bfd_cv_decl_needed_getenv=no
5190else
5191 echo "configure: failed program was:" >&5
5192 cat conftest.$ac_ext >&5
5193 rm -rf conftest*
5194 bfd_cv_decl_needed_getenv=yes
5195fi
5196rm -f conftest*
5197fi
5198
5199echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
5200if test $bfd_cv_decl_needed_getenv = yes; then
5201 cat >> confdefs.h <<\EOF
5202#define NEED_DECLARATION_GETENV 1
5203EOF
5204
5205fi
5206
5207
5208# If we are configured native, pick a core file support file.
5209COREFILE=
5210COREFLAG=
5211TRAD_HEADER=
5212if test "${target}" = "${host}"; then
5213 case "${host}" in
5214 alpha*-*-freebsd*)
5215 COREFILE=''
5216 ;;
5217 alpha*-*-linux-gnu*)
5218 COREFILE=trad-core.lo
5219 TRAD_HEADER='"hosts/alphalinux.h"'
5220 ;;
5221 alpha*-*-netbsd* | alpha*-*-openbsd*)
5222 COREFILE=netbsd-core.lo
5223 ;;
5224 alpha*-*-*) COREFILE=osf-core.lo ;;
5225 arm-*-freebsd*) COREFILE='' ;;
5226 arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
5227 arm-*-riscix) COREFILE=trad-core.lo ;;
5228 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
5229 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
5230 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
5231 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
5232 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
5233 i370-*-*)
5234 COREFILE=trad-core.lo
5235 TRAD_HEADER='"hosts/i370linux.h"'
5236 ;;
5237
5238 i[3456]86-sequent-bsd*)
5239 COREFILE=trad-core.lo
5240 TRAD_HEADER='"hosts/symmetry.h"'
5241 ;;
5242 i[3456]86-sequent-sysv4*) ;;
5243 i[3456]86-sequent-sysv*)
5244 COREFILE=trad-core.lo
5245 TRAD_HEADER='"hosts/symmetry.h"'
5246 ;;
5247 i[3456]86-*-bsdi)
5248 COREFILE=
5249 ;;
5250 i[3456]86-*-bsd* | i[34567]86-*-freebsd[123] | i[34567]86-*-freebsd[123]\.* | i[34567]86-*-freebsd4\.[01234]* | i[34567]86-*-freebsd*aout*)
5251 COREFILE=trad-core.lo
5252 TRAD_HEADER='"hosts/i386bsd.h"'
5253 ;;
5254 i[3456]86-*-freebsd*)
5255 COREFILE=''
5256 TRAD_HEADER='"hosts/i386bsd.h"'
5257 ;;
5258 i[3456]86-*-netbsd* | i[3456]86-*-openbsd*)
5259 COREFILE=netbsd-core.lo
5260 ;;
5261 i[3456]86-esix-sysv3*)
5262 COREFILE=trad-core.lo
5263 TRAD_HEADER='"hosts/esix.h"'
5264 ;;
5265 i[3456]86-*-sco3.2v5*)
5266 COREFILE=sco5-core.lo
5267 ;;
5268 i[3456]86-*-sco* | i[3456]86-*-isc*)
5269 COREFILE=trad-core.lo
5270 TRAD_HEADER='"hosts/i386sco.h"'
5271 ;;
5272 i[3456]86-*-mach3*)
5273 COREFILE=trad-core.lo
5274 TRAD_HEADER='"hosts/i386mach3.h"'
5275 ;;
5276 i[3456]86-*-linux-gnu*)
5277 COREFILE=trad-core.lo
5278 TRAD_HEADER='"hosts/i386linux.h"'
5279 ;;
5280 i[3456]86-*-isc*) COREFILE=trad-core.lo ;;
5281 i[3456]86-*-aix*) COREFILE=aix386-core.lo ;;
5282 i[3456]86-*-os2*)
5283 COREFILE=trad-core.lo
5284 TRAD_HEADER='"hosts/i386emx.h"'
5285 ;;
5286 i860-*-mach3* | i860-*-osf1*)
5287 COREFILE=trad-core.lo
5288 TRAD_HEADER='"hosts/i860mach3.h"'
5289 ;;
5290 mips-dec-bsd*)
5291 COREFILE=trad-core.lo
5292 TRAD_HEADER='"hosts/mipsbsd.h"'
5293 ;;
5294 mips-dec-mach3*)
5295 COREFILE=trad-core.lo
5296 TRAD_HEADER='"hosts/mipsmach3.h"'
5297 ;;
5298 mips-*-netbsd* | mips*-*-openbsd*)
5299 COREFILE=netbsd-core.lo
5300 ;;
5301 mips-dec-*)
5302 COREFILE=trad-core.lo
5303 TRAD_HEADER='"hosts/decstation.h"'
5304 ;;
5305 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
5306 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
5307 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
5308 mips-*-mach3*)
5309 COREFILE=trad-core.lo
5310 TRAD_HEADER='"hosts/mipsmach3.h"'
5311 ;;
5312 mips-*-sysv4*) ;;
5313 mips-*-sysv* | mips-*-riscos*)
5314 COREFILE=trad-core.lo
5315 TRAD_HEADER='"hosts/riscos.h"'
5316 ;;
5317 mips-sony-bsd*)
5318 COREFILE=trad-core.lo
5319 TRAD_HEADER='"hosts/news-mips.h"'
5320 ;;
5321 m68*-bull*-sysv*)
5322 COREFILE=trad-core.lo
5323 TRAD_HEADER='"hosts/dpx2.h"'
5324 ;;
5325 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
5326 m68*-hp-bsd*)
5327 COREFILE=trad-core.lo
5328 TRAD_HEADER='"hosts/hp300bsd.h"'
5329 ;;
5330 m68*-*-linux-gnu*)
5331 COREFILE=trad-core.lo
5332 TRAD_HEADER='"hosts/m68klinux.h"'
5333 ;;
5334 m68*-motorola-sysv*)
5335 COREFILE=trad-core.lo
5336 TRAD_HEADER='"hosts/delta68.h"'
5337 ;;
5338 m68*-sony-*)
5339 COREFILE=trad-core.lo
5340 TRAD_HEADER='"hosts/news.h"'
5341 ;;
5342 m68*-*-netbsd* | m68*-*-openbsd*)
5343 COREFILE=netbsd-core.lo
5344 ;;
5345 m68*-apple-aux*)
5346 COREFILE=trad-core.lo
5347 TRAD_HEADER='"hosts/m68kaux.h"'
5348 ;;
5349 m88*-*-sysv4*)
5350 ;;
5351 m88*-motorola-sysv*)
5352 COREFILE=ptrace-core.lo
5353 ;;
5354 m88*-*-mach3*)
5355 COREFILE=trad-core.lo
5356 TRAD_HEADER='"hosts/m88kmach3.h"'
5357 ;;
5358 ns32k-pc532-mach)
5359 COREFILE=trad-core.lo
5360 TRAD_HEADER='"hosts/pc532mach.h"'
5361 ;;
5362 ns32k-*-netbsd* | ns32k-*-openbsd*)
5363 COREFILE=netbsd-core.lo
5364 ;;
5365 rs6000-*-lynx*)
5366 COREFILE=lynx-core.lo
5367 ;;
5368 rs6000-*-aix5.* | powerpc-*-aix5.*)
5369 COREFILE=rs6000-core.lo
5370 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
5371 ;;
5372 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
5373 COREFILE=rs6000-core.lo
5374 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
5375 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
5376 # have c_impl as a member of struct core_dumpx
5377 echo $ac_n "checking for c_impl in struct core_dumpx""... $ac_c" 1>&6
5378echo "configure:5379: checking for c_impl in struct core_dumpx" >&5
5379 cat > conftest.$ac_ext <<EOF
5380#line 5381 "configure"
5381#include "confdefs.h"
5382#include <core.h>
5383int main() {
5384struct core_dumpx c; c.c_impl = 0;
5385; return 0; }
5386EOF
5387if { (eval echo configure:5388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5388 rm -rf conftest*
5389 cat >> confdefs.h <<\EOF
5390#define HAVE_ST_C_IMPL 1
5391EOF
5392
5393 echo "$ac_t""yes" 1>&6
5394else
5395 echo "configure: failed program was:" >&5
5396 cat conftest.$ac_ext >&5
5397 rm -rf conftest*
5398 echo "$ac_t""no" 1>&6
5399fi
5400rm -f conftest*
5401 ;;
5402 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
5403 rs6000-*-*) COREFILE=rs6000-core.lo ;;
5404 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
5405 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
5406 powerpc-*-beos*) ;;
5407 powerpc-*-freebsd*) COREFILE='' ;;
5408 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
5409 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
5410 s390*-*-*) COREFILE=trad-core.lo ;;
5411 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
5412 sparc-*-netbsd* | sparc*-*-openbsd*)
5413 COREFILE=netbsd-core.lo
5414 ;;
5415 tahoe-*-*)
5416 COREFILE=trad-core.lo
5417 TRAD_HEADER='"hosts/tahoe.h"'
5418 ;;
5419 vax-*-netbsd*) COREFILE=netbsd-core.lo ;;
5420 vax-*-ultrix2*)
5421 COREFILE=trad-core.lo
5422 TRAD_HEADER='"hosts/vaxult2.h"'
5423 ;;
5424 vax-*-ultrix*)
5425 COREFILE=trad-core.lo
5426 TRAD_HEADER='"hosts/vaxult2.h"'
5427 ;;
5428 vax-*-*)
5429 COREFILE=trad-core.lo
5430 TRAD_HEADER='"hosts/vaxbsd.h"'
5431 ;;
5432 x86_64-*-netbsd*) COREFILE=netbsd-core.lo ;;
5433 esac
5434
5435 case "$COREFILE" in
5436 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
5437 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
5438 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
5439 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
5440 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
5441 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
5442 osf-core.lo) COREFLAG=-DOSF_CORE ;;
5443 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
5444 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
5445 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
5446 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
5447 esac
5448
5449 # ELF corefile support has several flavors, but all of
5450 # them use something called <sys/procfs.h>
5451 for ac_hdr in sys/procfs.h
5452do
5453ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5454echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5455echo "configure:5456: checking for $ac_hdr" >&5
5456if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5457 echo $ac_n "(cached) $ac_c" 1>&6
5458else
5459 cat > conftest.$ac_ext <<EOF
5460#include <sys/types.h>
5461#line 5462 "configure"
5462#include "confdefs.h"
5463#include <$ac_hdr>
5464EOF
5465ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5466{ (eval echo configure:5467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5467ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5468if test -z "$ac_err"; then
5469 rm -rf conftest*
5470 eval "ac_cv_header_$ac_safe=yes"
5471else
5472 echo "$ac_err" >&5
5473 echo "configure: failed program was:" >&5
5474 cat conftest.$ac_ext >&5
5475 rm -rf conftest*
5476 eval "ac_cv_header_$ac_safe=no"
5477fi
5478rm -f conftest*
5479fi
5480if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5481 echo "$ac_t""yes" 1>&6
5482 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5483 cat >> confdefs.h <<EOF
5484#define $ac_tr_hdr 1
5485EOF
5486
5487else
5488 echo "$ac_t""no" 1>&6
5489fi
5490done
5491
5492 if test "$ac_cv_header_sys_procfs_h" = yes; then
5493 echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
5494echo "configure:5495: checking for prstatus_t in sys/procfs.h" >&5
5495 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then
5496 echo $ac_n "(cached) $ac_c" 1>&6
5497else
5498 cat > conftest.$ac_ext <<EOF
5499#line 5500 "configure"
5500#include "confdefs.h"
5501
5502#define _SYSCALL32
5503#include <sys/procfs.h>
5504int main() {
5505prstatus_t avar
5506; return 0; }
5507EOF
5508if { (eval echo configure:5509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5509 rm -rf conftest*
5510 bfd_cv_have_sys_procfs_type_prstatus_t=yes
5511else
5512 echo "configure: failed program was:" >&5
5513 cat conftest.$ac_ext >&5
5514 rm -rf conftest*
5515 bfd_cv_have_sys_procfs_type_prstatus_t=no
5516
5517fi
5518rm -f conftest*
5519fi
5520
5521 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5522 cat >> confdefs.h <<\EOF
5523#define HAVE_PRSTATUS_T 1
5524EOF
5525
5526 fi
5527 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
5528
5529 echo $ac_n "checking for prstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5530echo "configure:5531: checking for prstatus32_t in sys/procfs.h" >&5
5531 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus32_t'+set}'`\" = set"; then
5532 echo $ac_n "(cached) $ac_c" 1>&6
5533else
5534 cat > conftest.$ac_ext <<EOF
5535#line 5536 "configure"
5536#include "confdefs.h"
5537
5538#define _SYSCALL32
5539#include <sys/procfs.h>
5540int main() {
5541prstatus32_t avar
5542; return 0; }
5543EOF
5544if { (eval echo configure:5545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5545 rm -rf conftest*
5546 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
5547else
5548 echo "configure: failed program was:" >&5
5549 cat conftest.$ac_ext >&5
5550 rm -rf conftest*
5551 bfd_cv_have_sys_procfs_type_prstatus32_t=no
5552
5553fi
5554rm -f conftest*
5555fi
5556
5557 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5558 cat >> confdefs.h <<\EOF
5559#define HAVE_PRSTATUS32_T 1
5560EOF
5561
5562 fi
5563 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus32_t" 1>&6
5564
5565 echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5566echo "configure:5567: checking for prstatus_t.pr_who in sys/procfs.h" >&5
5567 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then
5568 echo $ac_n "(cached) $ac_c" 1>&6
5569else
5570 cat > conftest.$ac_ext <<EOF
5571#line 5572 "configure"
5572#include "confdefs.h"
5573
5574#define _SYSCALL32
5575#include <sys/procfs.h>
5576int main() {
5577prstatus_t avar; void* aref = (void*) &avar.pr_who
5578; return 0; }
5579EOF
5580if { (eval echo configure:5581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5581 rm -rf conftest*
5582 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
5583else
5584 echo "configure: failed program was:" >&5
5585 cat conftest.$ac_ext >&5
5586 rm -rf conftest*
5587 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
5588
5589fi
5590rm -f conftest*
5591fi
5592
5593 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5594 cat >> confdefs.h <<\EOF
5595#define HAVE_PRSTATUS_T_PR_WHO 1
5596EOF
5597
5598 fi
5599 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
5600
5601 echo $ac_n "checking for prstatus32_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5602echo "configure:5603: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
5603 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who'+set}'`\" = set"; then
5604 echo $ac_n "(cached) $ac_c" 1>&6
5605else
5606 cat > conftest.$ac_ext <<EOF
5607#line 5608 "configure"
5608#include "confdefs.h"
5609
5610#define _SYSCALL32
5611#include <sys/procfs.h>
5612int main() {
5613prstatus32_t avar; void* aref = (void*) &avar.pr_who
5614; return 0; }
5615EOF
5616if { (eval echo configure:5617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5617 rm -rf conftest*
5618 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
5619else
5620 echo "configure: failed program was:" >&5
5621 cat conftest.$ac_ext >&5
5622 rm -rf conftest*
5623 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
5624
5625fi
5626rm -f conftest*
5627fi
5628
5629 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5630 cat >> confdefs.h <<\EOF
5631#define HAVE_PRSTATUS32_T_PR_WHO 1
5632EOF
5633
5634 fi
5635 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" 1>&6
5636
5637 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5638echo "configure:5639: checking for pstatus_t in sys/procfs.h" >&5
5639 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
5640 echo $ac_n "(cached) $ac_c" 1>&6
5641else
5642 cat > conftest.$ac_ext <<EOF
5643#line 5644 "configure"
5644#include "confdefs.h"
5645
5646#define _SYSCALL32
5647#include <sys/procfs.h>
5648int main() {
5649pstatus_t avar
5650; return 0; }
5651EOF
5652if { (eval echo configure:5653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5653 rm -rf conftest*
5654 bfd_cv_have_sys_procfs_type_pstatus_t=yes
5655else
5656 echo "configure: failed program was:" >&5
5657 cat conftest.$ac_ext >&5
5658 rm -rf conftest*
5659 bfd_cv_have_sys_procfs_type_pstatus_t=no
5660
5661fi
5662rm -f conftest*
5663fi
5664
5665 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5666 cat >> confdefs.h <<\EOF
5667#define HAVE_PSTATUS_T 1
5668EOF
5669
5670 fi
5671 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
5672
5673 echo $ac_n "checking for pxstatus_t in sys/procfs.h""... $ac_c" 1>&6
5674echo "configure:5675: checking for pxstatus_t in sys/procfs.h" >&5
5675 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pxstatus_t'+set}'`\" = set"; then
5676 echo $ac_n "(cached) $ac_c" 1>&6
5677else
5678 cat > conftest.$ac_ext <<EOF
5679#line 5680 "configure"
5680#include "confdefs.h"
5681
5682#define _SYSCALL32
5683#include <sys/procfs.h>
5684int main() {
5685pxstatus_t avar
5686; return 0; }
5687EOF
5688if { (eval echo configure:5689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5689 rm -rf conftest*
5690 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
5691else
5692 echo "configure: failed program was:" >&5
5693 cat conftest.$ac_ext >&5
5694 rm -rf conftest*
5695 bfd_cv_have_sys_procfs_type_pxstatus_t=no
5696
5697fi
5698rm -f conftest*
5699fi
5700
5701 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5702 cat >> confdefs.h <<\EOF
5703#define HAVE_PXSTATUS_T 1
5704EOF
5705
5706 fi
5707 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pxstatus_t" 1>&6
5708
5709 echo $ac_n "checking for pstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5710echo "configure:5711: checking for pstatus32_t in sys/procfs.h" >&5
5711 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus32_t'+set}'`\" = set"; then
5712 echo $ac_n "(cached) $ac_c" 1>&6
5713else
5714 cat > conftest.$ac_ext <<EOF
5715#line 5716 "configure"
5716#include "confdefs.h"
5717
5718#define _SYSCALL32
5719#include <sys/procfs.h>
5720int main() {
5721pstatus32_t avar
5722; return 0; }
5723EOF
5724if { (eval echo configure:5725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5725 rm -rf conftest*
5726 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
5727else
5728 echo "configure: failed program was:" >&5
5729 cat conftest.$ac_ext >&5
5730 rm -rf conftest*
5731 bfd_cv_have_sys_procfs_type_pstatus32_t=no
5732
5733fi
5734rm -f conftest*
5735fi
5736
5737 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5738 cat >> confdefs.h <<\EOF
5739#define HAVE_PSTATUS32_T 1
5740EOF
5741
5742 fi
5743 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus32_t" 1>&6
5744
5745 echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
5746echo "configure:5747: checking for prpsinfo_t in sys/procfs.h" >&5
5747 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then
5748 echo $ac_n "(cached) $ac_c" 1>&6
5749else
5750 cat > conftest.$ac_ext <<EOF
5751#line 5752 "configure"
5752#include "confdefs.h"
5753
5754#define _SYSCALL32
5755#include <sys/procfs.h>
5756int main() {
5757prpsinfo_t avar
5758; return 0; }
5759EOF
5760if { (eval echo configure:5761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5761 rm -rf conftest*
5762 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
5763else
5764 echo "configure: failed program was:" >&5
5765 cat conftest.$ac_ext >&5
5766 rm -rf conftest*
5767 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
5768
5769fi
5770rm -f conftest*
5771fi
5772
5773 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5774 cat >> confdefs.h <<\EOF
5775#define HAVE_PRPSINFO_T 1
5776EOF
5777
5778 fi
5779 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
5780
5781 echo $ac_n "checking for prpsinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5782echo "configure:5783: checking for prpsinfo32_t in sys/procfs.h" >&5
5783 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo32_t'+set}'`\" = set"; then
5784 echo $ac_n "(cached) $ac_c" 1>&6
5785else
5786 cat > conftest.$ac_ext <<EOF
5787#line 5788 "configure"
5788#include "confdefs.h"
5789
5790#define _SYSCALL32
5791#include <sys/procfs.h>
5792int main() {
5793prpsinfo32_t avar
5794; return 0; }
5795EOF
5796if { (eval echo configure:5797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5797 rm -rf conftest*
5798 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
5799else
5800 echo "configure: failed program was:" >&5
5801 cat conftest.$ac_ext >&5
5802 rm -rf conftest*
5803 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
5804
5805fi
5806rm -f conftest*
5807fi
5808
5809 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5810 cat >> confdefs.h <<\EOF
5811#define HAVE_PRPSINFO32_T 1
5812EOF
5813
5814 fi
5815 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo32_t" 1>&6
5816
5817 echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
5818echo "configure:5819: checking for psinfo_t in sys/procfs.h" >&5
5819 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then
5820 echo $ac_n "(cached) $ac_c" 1>&6
5821else
5822 cat > conftest.$ac_ext <<EOF
5823#line 5824 "configure"
5824#include "confdefs.h"
5825
5826#define _SYSCALL32
5827#include <sys/procfs.h>
5828int main() {
5829psinfo_t avar
5830; return 0; }
5831EOF
5832if { (eval echo configure:5833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5833 rm -rf conftest*
5834 bfd_cv_have_sys_procfs_type_psinfo_t=yes
5835else
5836 echo "configure: failed program was:" >&5
5837 cat conftest.$ac_ext >&5
5838 rm -rf conftest*
5839 bfd_cv_have_sys_procfs_type_psinfo_t=no
5840
5841fi
5842rm -f conftest*
5843fi
5844
5845 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5846 cat >> confdefs.h <<\EOF
5847#define HAVE_PSINFO_T 1
5848EOF
5849
5850 fi
5851 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
5852
5853 echo $ac_n "checking for psinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5854echo "configure:5855: checking for psinfo32_t in sys/procfs.h" >&5
5855 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo32_t'+set}'`\" = set"; then
5856 echo $ac_n "(cached) $ac_c" 1>&6
5857else
5858 cat > conftest.$ac_ext <<EOF
5859#line 5860 "configure"
5860#include "confdefs.h"
5861
5862#define _SYSCALL32
5863#include <sys/procfs.h>
5864int main() {
5865psinfo32_t avar
5866; return 0; }
5867EOF
5868if { (eval echo configure:5869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5869 rm -rf conftest*
5870 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
5871else
5872 echo "configure: failed program was:" >&5
5873 cat conftest.$ac_ext >&5
5874 rm -rf conftest*
5875 bfd_cv_have_sys_procfs_type_psinfo32_t=no
5876
5877fi
5878rm -f conftest*
5879fi
5880
5881 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5882 cat >> confdefs.h <<\EOF
5883#define HAVE_PSINFO32_T 1
5884EOF
5885
5886 fi
5887 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo32_t" 1>&6
5888
5889 echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
5890echo "configure:5891: checking for lwpstatus_t in sys/procfs.h" >&5
5891 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then
5892 echo $ac_n "(cached) $ac_c" 1>&6
5893else
5894 cat > conftest.$ac_ext <<EOF
5895#line 5896 "configure"
5896#include "confdefs.h"
5897
5898#define _SYSCALL32
5899#include <sys/procfs.h>
5900int main() {
5901lwpstatus_t avar
5902; return 0; }
5903EOF
5904if { (eval echo configure:5905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5905 rm -rf conftest*
5906 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
5907else
5908 echo "configure: failed program was:" >&5
5909 cat conftest.$ac_ext >&5
5910 rm -rf conftest*
5911 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
5912
5913fi
5914rm -f conftest*
5915fi
5916
5917 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5918 cat >> confdefs.h <<\EOF
5919#define HAVE_LWPSTATUS_T 1
5920EOF
5921
5922 fi
5923 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
5924
5925 echo $ac_n "checking for lwpxstatus_t in sys/procfs.h""... $ac_c" 1>&6
5926echo "configure:5927: checking for lwpxstatus_t in sys/procfs.h" >&5
5927 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpxstatus_t'+set}'`\" = set"; then
5928 echo $ac_n "(cached) $ac_c" 1>&6
5929else
5930 cat > conftest.$ac_ext <<EOF
5931#line 5932 "configure"
5932#include "confdefs.h"
5933
5934#define _SYSCALL32
5935#include <sys/procfs.h>
5936int main() {
5937lwpxstatus_t avar
5938; return 0; }
5939EOF
5940if { (eval echo configure:5941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5941 rm -rf conftest*
5942 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
5943else
5944 echo "configure: failed program was:" >&5
5945 cat conftest.$ac_ext >&5
5946 rm -rf conftest*
5947 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
5948
5949fi
5950rm -f conftest*
5951fi
5952
5953 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5954 cat >> confdefs.h <<\EOF
5955#define HAVE_LWPXSTATUS_T 1
5956EOF
5957
5958 fi
5959 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpxstatus_t" 1>&6
5960
5961 echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
5962echo "configure:5963: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
5963 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then
5964 echo $ac_n "(cached) $ac_c" 1>&6
5965else
5966 cat > conftest.$ac_ext <<EOF
5967#line 5968 "configure"
5968#include "confdefs.h"
5969
5970#define _SYSCALL32
5971#include <sys/procfs.h>
5972int main() {
5973lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5974; return 0; }
5975EOF
5976if { (eval echo configure:5977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5977 rm -rf conftest*
5978 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
5979else
5980 echo "configure: failed program was:" >&5
5981 cat conftest.$ac_ext >&5
5982 rm -rf conftest*
5983 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
5984
5985fi
5986rm -f conftest*
5987fi
5988
5989 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5990 cat >> confdefs.h <<\EOF
5991#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5992EOF
5993
5994 fi
5995 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
5996
5997 echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
5998echo "configure:5999: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
5999 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then
6000 echo $ac_n "(cached) $ac_c" 1>&6
6001else
6002 cat > conftest.$ac_ext <<EOF
6003#line 6004 "configure"
6004#include "confdefs.h"
6005
6006#define _SYSCALL32
6007#include <sys/procfs.h>
6008int main() {
6009lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
6010; return 0; }
6011EOF
6012if { (eval echo configure:6013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6013 rm -rf conftest*
6014 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
6015else
6016 echo "configure: failed program was:" >&5
6017 cat conftest.$ac_ext >&5
6018 rm -rf conftest*
6019 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
6020
6021fi
6022rm -f conftest*
6023fi
6024
6025 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
6026 cat >> confdefs.h <<\EOF
6027#define HAVE_LWPSTATUS_T_PR_REG 1
6028EOF
6029
6030 fi
6031 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
6032
6033 echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6
6034echo "configure:6035: checking for win32_pstatus_t in sys/procfs.h" >&5
6035 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then
6036 echo $ac_n "(cached) $ac_c" 1>&6
6037else
6038 cat > conftest.$ac_ext <<EOF
6039#line 6040 "configure"
6040#include "confdefs.h"
6041
6042#define _SYSCALL32
6043#include <sys/procfs.h>
6044int main() {
6045win32_pstatus_t avar
6046; return 0; }
6047EOF
6048if { (eval echo configure:6049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6049 rm -rf conftest*
6050 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
6051else
6052 echo "configure: failed program was:" >&5
6053 cat conftest.$ac_ext >&5
6054 rm -rf conftest*
6055 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
6056
6057fi
6058rm -f conftest*
6059fi
6060
6061 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
6062 cat >> confdefs.h <<\EOF
6063#define HAVE_WIN32_PSTATUS_T 1
6064EOF
6065
6066 fi
6067 echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6
6068
6069 fi
6070fi
6071
6072
6073if test -n "$TRAD_HEADER"; then
6074 cat >> confdefs.h <<EOF
6075#define TRAD_HEADER $TRAD_HEADER
6076EOF
6077
6078fi
6079
6080# Horrible hacks to build DLLs on Windows.
6081WIN32LDFLAGS=
6082WIN32LIBADD=
6083case "${host}" in
6084*-*-cygwin*)
6085 if test "$enable_shared" = "yes"; then
6086 WIN32LDFLAGS="-no-undefined"
6087 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
6088 fi
6089 ;;
6090*-*-os2*)
6091 if test "$enable_shared" = "yes"; then
6092 WIN32LDFLAGS="-no-undefined"
6093 WIN32LIBADD="-L`pwd`/../libiberty -liberty"
6094# WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl"
6095 fi
6096 ;;
6097*-*-linux*)
6098 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
6099 # libiberty.a.
6100 case "${host}" in
6101 mips*-*-linux*)
6102 # Linux/MIPS uses PIC by default.
6103 if test "$enable_shared" = "yes"; then
6104 WIN32LIBADD="-L../libiberty -liberty"
6105 fi
6106 ;;
6107 *)
6108 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
6109 if test -n "$x"; then
6110 WIN32LIBADD="-L../libiberty/pic -liberty"
6111 fi
6112 ;;
6113 esac
6114 ;;
6115esac
6116
6117
6118
6119# target stuff:
6120
6121# Canonicalize the secondary target names.
6122if test -n "$enable_targets" ; then
6123 for targ in `echo $enable_targets | sed 's/,/ /g'`
6124 do
6125 result=`$ac_config_sub $targ 2>/dev/null`
6126 if test -n "$result" ; then
6127 canon_targets="$canon_targets $result"
6128 else
6129 # Allow targets that config.sub doesn't recognize, like "all".
6130 canon_targets="$canon_targets $targ"
6131 fi
6132 done
6133fi
6134
6135all_targets=false
6136defvec=
6137selvecs=
6138assocvecs=
6139selarchs=
6140TDEFINES=
6141for targ in $target $canon_targets
6142do
6143 if test "x$targ" = "xall"; then
6144 all_targets=true
6145 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
6146 else
6147 . $srcdir/config.bfd
6148 if test "x$targ" = "x$target"; then
6149 defvec=$targ_defvec
6150 fi
6151 selvecs="$selvecs $targ_defvec $targ_selvecs"
6152 selarchs="$selarchs $targ_archs"
6153 TDEFINES="$TDEFINES $targ_cflags"
6154 fi
6155done
6156
6157
6158# This processing still needs to be done if we're to decide properly whether
6159# 64-bit support needs to be compiled in. Currently, it will be included if
6160# the default or any other explicitly requested target requires it; it
6161# will not be included on a 32-bit host if no 64-bit target is requested, and
6162# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
6163# used.
6164
6165# uniq the default and selected vectors in all the configured targets.
6166f=""
6167for i in $selvecs ; do
6168 case " $f " in
6169 *" $i "*) ;;
6170 *) f="$f $i" ;;
6171 esac
6172done
6173selvecs="$f"
6174
6175
6176# uniq the associated vectors in all the configured targets.
6177f=""
6178for i in $assocvecs ; do
6179 case " $f " in
6180 *" $i "*) ;;
6181 *) f="$f $i" ;;
6182 esac
6183done
6184assocvecs="$f"
6185
6186
6187# uniq the architectures in all the configured targets.
6188f=""
6189for i in $selarchs ; do
6190 case " $f " in
6191 *" $i "*) ;;
6192 *) f="$f $i" ;;
6193 esac
6194done
6195selarchs="$f"
6196
6197# Target backend .o files.
6198tb=
6199
6200elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
6201
6202for vec in $selvecs
6203do
6204 target_size=32
6205 case "$vec" in
6206 # This list is alphabetized to make it easy to compare
6207 # with the two vector lists in targets.c. For the same reason,
6208 # use one entry per line, even though this leads to long lines.
6209 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
6210 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
6211 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
6212 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
6213 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
6214 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
6215 aout_mips_big_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
6216 aout_mips_little_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
6217 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
6218 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
6219 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
6220 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
6221 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
6222 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
6223 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
6224 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
6225 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
6226 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
6227 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
6228 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
6229 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
6230 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
6231 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
6232 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
6233 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
6234 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
6235 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
6236 bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
6237 bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
6238 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6239 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
6240 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
6241 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
6242 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
6243 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
6244 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
6245 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
6246 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
6247 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
6248 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
6249 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
6250 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
6251 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
6252 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
6253 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
6254 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
6255 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
6256 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
6257 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
6258 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
6259 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
6260 bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
6261 bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
6262 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6263 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6264 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
6265 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
6266 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
6267 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
6268 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
6269 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
6270 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
6271 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
6272 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
6273 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6274 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6275 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6276 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6277 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
6278 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
6279 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
6280 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
6281 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
6282 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
6283 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
6284 # FIXME: We include cofflink.lo not because it's needed for
6285 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
6286 # which needs it but does not list it. Should be fixed in right place.
6287 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
6288 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
6289 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
6290 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
6291 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
6292 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
6293 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
6294 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6295 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
6296 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6297 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6298 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6299 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
6300 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6301 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6302 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
6303 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
6304 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
6305 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
6306 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
6307 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
6308 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
6309 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
6310 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
6311 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6312 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
6313 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
6314 bfd_elf64_ia64_aix_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
6315 bfd_elf64_ia64_aix_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
6316 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
6317 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
6318 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
6319 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
6320 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6321 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
6322 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
6323 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
6324 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
6325 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
6326 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
6327 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
6328 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
6329 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
6330 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
6331 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"; target_size=64 ;;
6332 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6333 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6334 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
6335 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
6336 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6337 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
6338 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6339 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
6340 cris_aout_vec) tb="$tb aout-cris.lo" ;;
6341 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
6342 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6343 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6344 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6345 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
6346 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
6347 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
6348 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
6349 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
6350 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
6351 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
6352 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
6353 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
6354 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
6355 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
6356 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
6357 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
6358 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
6359 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
6360 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
6361 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
6362 i386msdos_vec) tb="$tb i386msdos.lo" ;;
6363 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
6364 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
6365 i386aout_emx_vec) tb="$tb i386aoutemx.lo aout32.lo" ;;
6366 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
6367 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
6368 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
6369 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
6370 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
6371 ieee_vec) tb="$tb ieee.lo" ;;
6372 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
6373 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
6374 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
6375 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
6376 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
6377 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
6378 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
6379 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
6380 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
6381 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
6382 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
6383 mach_o_be_vec) tb="$tb mach-o.lo" ;;
6384 mach_o_le_vec) tb="$tb mach-o.lo" ;;
6385 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
6386 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6387 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6388 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
6389 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
6390 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
6391 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
6392 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
6393 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
6394 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
6395 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
6396 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
6397 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
6398 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
6399 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
6400 pef_vec) tb="$tb pef.lo" ;;
6401 pef_xlib_vec) tb="$tb pef.lo" ;;
6402 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6403 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
6404 ppcboot_vec) tb="$tb ppcboot.lo" ;;
6405 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
6406 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
6407 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
6408 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
6409 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
6410 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
6411 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
6412 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
6413 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
6414 som_vec) tb="$tb som.lo" ;;
6415 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
6416 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
6417 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
6418 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
6419 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
6420 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
6421 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
6422 sym_vec) tb="$tb xsym.lo" ;;
6423 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
6424 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
6425 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
6426 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
6427 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
6428 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
6429 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
6430 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
6431 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
6432 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
6433 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
6434 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
6435 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
6436 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
6437 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
6438 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
6439 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
6440 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
6441 versados_vec) tb="$tb versados.lo" ;;
6442 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
6443 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
6444 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
6445 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
6446 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
6447
6448 # These appear out of order in targets.c
6449 srec_vec) tb="$tb srec.lo" ;;
6450 symbolsrec_vec) tb="$tb srec.lo" ;;
6451 tekhex_vec) tb="$tb tekhex.lo" ;;
6452 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
6453 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
6454
6455 "") ;;
6456 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
6457 esac
6458
6459 if test ${target_size} = 64; then
6460 target64=true
6461 fi
6462 if test x"${vec}" = x"${defvec}"; then
6463 bfd_default_target_size=${target_size}
6464 fi
6465done
6466
6467# Target architecture .o files.
6468# A couple of CPUs use shorter file names to avoid problems on DOS
6469# filesystems.
6470ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
6471
6472# Weed out duplicate .o files.
6473f=""
6474for i in $tb ; do
6475 case " $f " in
6476 *" $i "*) ;;
6477 *) f="$f $i" ;;
6478 esac
6479done
6480tb="$f"
6481
6482f=""
6483for i in $ta ; do
6484 case " $f " in
6485 *" $i "*) ;;
6486 *) f="$f $i" ;;
6487 esac
6488done
6489ta="$f"
6490
6491bfd_backends="$tb"
6492bfd_machines="$ta"
6493
6494if test x${all_targets} = xtrue ; then
6495 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
6496 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
6497 selvecs=
6498 havevecs=
6499 selarchs=
6500 test -n "$assocvecs" &&
6501 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6502else # all_targets is true
6503 # Only set these if they will be nonempty, for the clever echo.
6504 havevecs=
6505 assocvecs=
6506 test -n "$selvecs" &&
6507 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
6508 test -n "$selvecs" &&
6509 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6510 test -n "$selarchs" &&
6511 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6512fi # all_targets is true
6513
6514case ${host64}-${target64}-${want64} in
6515 *true*)
6516 wordsize=64
6517 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
6518 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
6519 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
6520 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
6521 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
6522 fi
6523 if test -n "$GCC" ; then
6524 bad_64bit_gcc=no;
6525 echo $ac_n "checking for gcc version with buggy 64-bit support""... $ac_c" 1>&6
6526echo "configure:6527: checking for gcc version with buggy 64-bit support" >&5
6527 # Add more tests for gcc versions with non-working 64-bit support here.
6528 cat > conftest.$ac_ext <<EOF
6529#line 6530 "configure"
6530#include "confdefs.h"
6531:__GNUC__:__GNUC_MINOR__:__i386__:
6532EOF
6533if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6534 egrep ": 2 : 91 : 1 :" >/dev/null 2>&1; then
6535 rm -rf conftest*
6536 bad_64bit_gcc=yes;
6537 echo "$ac_t""yes: egcs-1.1.2 on ix86 spotted" 1>&6
6538else
6539 rm -rf conftest*
6540 echo "$ac_t""no" 1>&6
6541fi
6542rm -f conftest*
6543
6544 if test $bad_64bit_gcc = yes ; then
6545 { echo "configure: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" 1>&2; exit 1; }
6546 fi
6547 fi
6548 ;;
6549 false-false-false)
6550 wordsize=32
6551 bfd_libs='$(BFD32_LIBS)'
6552 all_backends='$(BFD32_BACKENDS)'
6553 ;;
6554esac
6555
6556
6557
6558
6559
6560
6561
6562
6563tdefaults=""
6564test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
6565test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
6566test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
6567test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
6568test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
6569
6570
6571for ac_hdr in unistd.h
6572do
6573ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6574echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6575echo "configure:6576: checking for $ac_hdr" >&5
6576if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6577 echo $ac_n "(cached) $ac_c" 1>&6
6578else
6579 cat > conftest.$ac_ext <<EOF
6580#include <sys/types.h>
6581#line 6582 "configure"
6582#include "confdefs.h"
6583#include <$ac_hdr>
6584EOF
6585ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6586{ (eval echo configure:6587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6587ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6588if test -z "$ac_err"; then
6589 rm -rf conftest*
6590 eval "ac_cv_header_$ac_safe=yes"
6591else
6592 echo "$ac_err" >&5
6593 echo "configure: failed program was:" >&5
6594 cat conftest.$ac_ext >&5
6595 rm -rf conftest*
6596 eval "ac_cv_header_$ac_safe=no"
6597fi
6598rm -f conftest*
6599fi
6600if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6601 echo "$ac_t""yes" 1>&6
6602 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6603 cat >> confdefs.h <<EOF
6604#define $ac_tr_hdr 1
6605EOF
6606
6607else
6608 echo "$ac_t""no" 1>&6
6609fi
6610done
6611
6612for ac_func in getpagesize
6613do
6614echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6615echo "configure:6616: checking for $ac_func" >&5
6616if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6617 echo $ac_n "(cached) $ac_c" 1>&6
6618else
6619 cat > conftest.$ac_ext <<EOF
6620#line 6621 "configure"
6621#include "confdefs.h"
6622/* System header to define __stub macros and hopefully few prototypes,
6623 which can conflict with char $ac_func(); below. */
6624#include <assert.h>
6625/* Override any gcc2 internal prototype to avoid an error. */
6626/* We use char because int might match the return type of a gcc2
6627 builtin and then its argument prototype would still apply. */
6628char $ac_func();
6629
6630int main() {
6631
6632/* The GNU C library defines this for functions which it implements
6633 to always fail with ENOSYS. Some functions are actually named
6634 something starting with __ and the normal name is an alias. */
6635#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6636choke me
6637#else
6638$ac_func();
6639#endif
6640
6641; return 0; }
6642EOF
6643if { (eval echo configure:6644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6644 rm -rf conftest*
6645 eval "ac_cv_func_$ac_func=yes"
6646else
6647 echo "configure: failed program was:" >&5
6648 cat conftest.$ac_ext >&5
6649 rm -rf conftest*
6650 eval "ac_cv_func_$ac_func=no"
6651fi
6652rm -f conftest*
6653fi
6654
6655if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6656 echo "$ac_t""yes" 1>&6
6657 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6658 cat >> confdefs.h <<EOF
6659#define $ac_tr_func 1
6660EOF
6661
6662else
6663 echo "$ac_t""no" 1>&6
6664fi
6665done
6666
6667echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6668echo "configure:6669: checking for working mmap" >&5
6669if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6670 echo $ac_n "(cached) $ac_c" 1>&6
6671else
6672 if test "$cross_compiling" = yes; then
6673 ac_cv_func_mmap_fixed_mapped=no
6674else
6675 cat > conftest.$ac_ext <<EOF
6676#line 6677 "configure"
6677#include "confdefs.h"
6678
6679/* Thanks to Mike Haertel and Jim Avera for this test.
6680 Here is a matrix of mmap possibilities:
6681 mmap private not fixed
6682 mmap private fixed at somewhere currently unmapped
6683 mmap private fixed at somewhere already mapped
6684 mmap shared not fixed
6685 mmap shared fixed at somewhere currently unmapped
6686 mmap shared fixed at somewhere already mapped
6687 For private mappings, we should verify that changes cannot be read()
6688 back from the file, nor mmap's back from the file at a different
6689 address. (There have been systems where private was not correctly
6690 implemented like the infamous i386 svr4.0, and systems where the
6691 VM page cache was not coherent with the filesystem buffer cache
6692 like early versions of FreeBSD and possibly contemporary NetBSD.)
6693 For shared mappings, we should conversely verify that changes get
6694 propogated back to all the places they're supposed to be.
6695
6696 Grep wants private fixed already mapped.
6697 The main things grep needs to know about mmap are:
6698 * does it exist and is it safe to write into the mmap'd area
6699 * how to use it (BSD variants) */
6700#include <sys/types.h>
6701#include <fcntl.h>
6702#include <sys/mman.h>
6703
6704/* This mess was copied from the GNU getpagesize.h. */
6705#ifndef HAVE_GETPAGESIZE
6706# ifdef HAVE_UNISTD_H
6707# include <unistd.h>
6708# endif
6709
6710/* Assume that all systems that can run configure have sys/param.h. */
6711# ifndef HAVE_SYS_PARAM_H
6712# define HAVE_SYS_PARAM_H 1
6713# endif
6714
6715# ifdef _SC_PAGESIZE
6716# define getpagesize() sysconf(_SC_PAGESIZE)
6717# else /* no _SC_PAGESIZE */
6718# ifdef HAVE_SYS_PARAM_H
6719# include <sys/param.h>
6720# ifdef EXEC_PAGESIZE
6721# define getpagesize() EXEC_PAGESIZE
6722# else /* no EXEC_PAGESIZE */
6723# ifdef NBPG
6724# define getpagesize() NBPG * CLSIZE
6725# ifndef CLSIZE
6726# define CLSIZE 1
6727# endif /* no CLSIZE */
6728# else /* no NBPG */
6729# ifdef NBPC
6730# define getpagesize() NBPC
6731# else /* no NBPC */
6732# ifdef PAGESIZE
6733# define getpagesize() PAGESIZE
6734# endif /* PAGESIZE */
6735# endif /* no NBPC */
6736# endif /* no NBPG */
6737# endif /* no EXEC_PAGESIZE */
6738# else /* no HAVE_SYS_PARAM_H */
6739# define getpagesize() 8192 /* punt totally */
6740# endif /* no HAVE_SYS_PARAM_H */
6741# endif /* no _SC_PAGESIZE */
6742
6743#endif /* no HAVE_GETPAGESIZE */
6744
6745#ifdef __cplusplus
6746extern "C" { void *malloc(unsigned); }
6747#else
6748char *malloc();
6749#endif
6750
6751int
6752main()
6753{
6754 char *data, *data2, *data3;
6755 int i, pagesize;
6756 int fd;
6757
6758 pagesize = getpagesize();
6759
6760 /*
6761 * First, make a file with some known garbage in it.
6762 */
6763 data = malloc(pagesize);
6764 if (!data)
6765 exit(1);
6766 for (i = 0; i < pagesize; ++i)
6767 *(data + i) = rand();
6768 umask(0);
6769 fd = creat("conftestmmap", 0600);
6770 if (fd < 0)
6771 exit(1);
6772 if (write(fd, data, pagesize) != pagesize)
6773 exit(1);
6774 close(fd);
6775
6776 /*
6777 * Next, try to mmap the file at a fixed address which
6778 * already has something else allocated at it. If we can,
6779 * also make sure that we see the same garbage.
6780 */
6781 fd = open("conftestmmap", O_RDWR);
6782 if (fd < 0)
6783 exit(1);
6784 data2 = malloc(2 * pagesize);
6785 if (!data2)
6786 exit(1);
6787 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6788 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6789 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6790 exit(1);
6791 for (i = 0; i < pagesize; ++i)
6792 if (*(data + i) != *(data2 + i))
6793 exit(1);
6794
6795 /*
6796 * Finally, make sure that changes to the mapped area
6797 * do not percolate back to the file as seen by read().
6798 * (This is a bug on some variants of i386 svr4.0.)
6799 */
6800 for (i = 0; i < pagesize; ++i)
6801 *(data2 + i) = *(data2 + i) + 1;
6802 data3 = malloc(pagesize);
6803 if (!data3)
6804 exit(1);
6805 if (read(fd, data3, pagesize) != pagesize)
6806 exit(1);
6807 for (i = 0; i < pagesize; ++i)
6808 if (*(data + i) != *(data3 + i))
6809 exit(1);
6810 close(fd);
6811 unlink("conftestmmap");
6812 exit(0);
6813}
6814
6815EOF
6816if { (eval echo configure:6817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6817then
6818 ac_cv_func_mmap_fixed_mapped=yes
6819else
6820 echo "configure: failed program was:" >&5
6821 cat conftest.$ac_ext >&5
6822 rm -fr conftest*
6823 ac_cv_func_mmap_fixed_mapped=no
6824fi
6825rm -fr conftest*
6826fi
6827
6828fi
6829
6830echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6831if test $ac_cv_func_mmap_fixed_mapped = yes; then
6832 cat >> confdefs.h <<\EOF
6833#define HAVE_MMAP 1
6834EOF
6835
6836fi
6837
6838for ac_func in madvise mprotect
6839do
6840echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6841echo "configure:6842: checking for $ac_func" >&5
6842if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6843 echo $ac_n "(cached) $ac_c" 1>&6
6844else
6845 cat > conftest.$ac_ext <<EOF
6846#line 6847 "configure"
6847#include "confdefs.h"
6848/* System header to define __stub macros and hopefully few prototypes,
6849 which can conflict with char $ac_func(); below. */
6850#include <assert.h>
6851/* Override any gcc2 internal prototype to avoid an error. */
6852/* We use char because int might match the return type of a gcc2
6853 builtin and then its argument prototype would still apply. */
6854char $ac_func();
6855
6856int main() {
6857
6858/* The GNU C library defines this for functions which it implements
6859 to always fail with ENOSYS. Some functions are actually named
6860 something starting with __ and the normal name is an alias. */
6861#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6862choke me
6863#else
6864$ac_func();
6865#endif
6866
6867; return 0; }
6868EOF
6869if { (eval echo configure:6870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6870 rm -rf conftest*
6871 eval "ac_cv_func_$ac_func=yes"
6872else
6873 echo "configure: failed program was:" >&5
6874 cat conftest.$ac_ext >&5
6875 rm -rf conftest*
6876 eval "ac_cv_func_$ac_func=no"
6877fi
6878rm -f conftest*
6879fi
6880
6881if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6882 echo "$ac_t""yes" 1>&6
6883 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6884 cat >> confdefs.h <<EOF
6885#define $ac_tr_func 1
6886EOF
6887
6888else
6889 echo "$ac_t""no" 1>&6
6890fi
6891done
6892
6893case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
6894 true+yes ) cat >> confdefs.h <<\EOF
6895#define USE_MMAP 1
6896EOF
6897 ;;
6898esac
6899
6900rm -f doc/config.status
6901trap '' 1 2 15
6902cat > confcache <<\EOF
6903# This file is a shell script that caches the results of configure
6904# tests run on this system so they can be shared between configure
6905# scripts and configure runs. It is not useful on other systems.
6906# If it contains results you don't want to keep, you may remove or edit it.
6907#
6908# By default, configure uses ./config.cache as the cache file,
6909# creating it if it does not exist already. You can give configure
6910# the --cache-file=FILE option to use a different cache file; that is
6911# what configure does when it calls configure scripts in
6912# subdirectories, so they share the cache.
6913# Giving --cache-file=/dev/null disables caching, for debugging configure.
6914# config.status only pays attention to the cache file if you give it the
6915# --recheck option to rerun configure.
6916#
6917EOF
6918# The following way of writing the cache mishandles newlines in values,
6919# but we know of no workaround that is simple, portable, and efficient.
6920# So, don't put newlines in cache variables' values.
6921# Ultrix sh set writes to stderr and can't be redirected directly,
6922# and sets the high bit in the cache file unless we assign to the vars.
6923(set) 2>&1 |
6924 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6925 *ac_space=\ *)
6926 # `set' does not quote correctly, so add quotes (double-quote substitution
6927 # turns \\\\ into \\, and sed turns \\ into \).
6928 sed -n \
6929 -e "s/'/'\\\\''/g" \
6930 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6931 ;;
6932 *)
6933 # `set' quotes correctly as required by POSIX, so do not add quotes.
6934 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6935 ;;
6936 esac >> confcache
6937if cmp -s $cache_file confcache; then
6938 :
6939else
6940 if test -w $cache_file; then
6941 echo "updating cache $cache_file"
6942 cat confcache > $cache_file
6943 else
6944 echo "not updating unwritable cache $cache_file"
6945 fi
6946fi
6947rm -f confcache
6948
6949trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6950
6951test "x$prefix" = xNONE && prefix=$ac_default_prefix
6952# Let make expand exec_prefix.
6953test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6954
6955# Any assignment to VPATH causes Sun make to only execute
6956# the first set of double-colon rules, so remove it if not needed.
6957# If there is a colon in the path, we need to keep it.
6958if test "x$srcdir" = x.; then
6959 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6960fi
6961
6962trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6963
6964DEFS=-DHAVE_CONFIG_H
6965
6966# Without the "./", some shells look in PATH for config.status.
6967: ${CONFIG_STATUS=./config.status}
6968
6969echo creating $CONFIG_STATUS
6970rm -f $CONFIG_STATUS
6971cat > $CONFIG_STATUS <<EOF
6972#! /bin/sh
6973# Generated automatically by configure.
6974# Run this file to recreate the current configuration.
6975# This directory was configured as follows,
6976EOF
6977echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
6978cat >> $CONFIG_STATUS <<EOF
6979# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6980#
6981# $0 $ac_configure_args
6982#
6983# Compiler output produced by configure, useful for debugging
6984# configure, is in ./config.log if it exists.
6985
6986ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6987for ac_option
6988do
6989 case "\$ac_option" in
6990 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6991 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6992 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6993 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6994 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6995 exit 0 ;;
6996 -help | --help | --hel | --he | --h)
6997 echo "\$ac_cs_usage"; exit 0 ;;
6998 *) echo "\$ac_cs_usage"; exit 1 ;;
6999 esac
7000done
7001
7002ac_given_srcdir=$srcdir
7003ac_given_INSTALL="$INSTALL"
7004PATHIFS="$PATH_IFS"
7005
7006trap '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
7007EOF
7008cat >> $CONFIG_STATUS <<EOF
7009
7010# Protect against being on the right side of a sed subst in config.status.
7011sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7012 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7013$ac_vpsub
7014$extrasub
7015s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g
7016s%@SHELL@%$SHELL%g
7017s%@CFLAGS@%$CFLAGS%g
7018s%@CPPFLAGS@%$CPPFLAGS%g
7019s%@CXXFLAGS@%$CXXFLAGS%g
7020s%@FFLAGS@%$FFLAGS%g
7021s%@DEFS@%$DEFS%g
7022s%@LDFLAGS@%$LDFLAGS%g
7023s%@LIBS@%$LIBS%g
7024s%@exec_prefix@%$exec_prefix%g
7025s%@prefix@%$prefix%g
7026s%@program_transform_name@%$program_transform_name%g
7027s%@bindir@%$bindir%g
7028s%@sbindir@%$sbindir%g
7029s%@libexecdir@%$libexecdir%g
7030s%@datadir@%$datadir%g
7031s%@sysconfdir@%$sysconfdir%g
7032s%@sharedstatedir@%$sharedstatedir%g
7033s%@localstatedir@%$localstatedir%g
7034s%@libdir@%$libdir%g
7035s%@includedir@%$includedir%g
7036s%@oldincludedir@%$oldincludedir%g
7037s%@infodir@%$infodir%g
7038s%@mandir@%$mandir%g
7039s%@PATH_IFS@%$PATH_IFS%g
7040s%@EXEEXT@%$EXEEXT%g
7041s%@host@%$host%g
7042s%@host_alias@%$host_alias%g
7043s%@host_cpu@%$host_cpu%g
7044s%@host_vendor@%$host_vendor%g
7045s%@host_os@%$host_os%g
7046s%@target@%$target%g
7047s%@target_alias@%$target_alias%g
7048s%@target_cpu@%$target_cpu%g
7049s%@target_vendor@%$target_vendor%g
7050s%@target_os@%$target_os%g
7051s%@build@%$build%g
7052s%@build_alias@%$build_alias%g
7053s%@build_cpu@%$build_cpu%g
7054s%@build_vendor@%$build_vendor%g
7055s%@build_os@%$build_os%g
7056s%@CC@%$CC%g
7057s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7058s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7059s%@INSTALL_DATA@%$INSTALL_DATA%g
7060s%@PACKAGE@%$PACKAGE%g
7061s%@VERSION@%$VERSION%g
7062s%@ACLOCAL@%$ACLOCAL%g
7063s%@AUTOCONF@%$AUTOCONF%g
7064s%@AUTOMAKE@%$AUTOMAKE%g
7065s%@AUTOHEADER@%$AUTOHEADER%g
7066s%@MAKEINFO@%$MAKEINFO%g
7067s%@SET_MAKE@%$SET_MAKE%g
7068s%@bfd_version@%$bfd_version%g
7069s%@bfd_version_string@%$bfd_version_string%g
7070s%@AR@%$AR%g
7071s%@RANLIB@%$RANLIB%g
7072s%@LN_S@%$LN_S%g
7073s%@OBJEXT@%$OBJEXT%g
7074s%@STRIP@%$STRIP%g
7075s%@LIBTOOL@%$LIBTOOL%g
7076s%@WARN_CFLAGS@%$WARN_CFLAGS%g
7077s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7078s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7079s%@MAINT@%$MAINT%g
7080s%@INSTALL_LIBBFD_TRUE@%$INSTALL_LIBBFD_TRUE%g
7081s%@INSTALL_LIBBFD_FALSE@%$INSTALL_LIBBFD_FALSE%g
7082s%@bfdlibdir@%$bfdlibdir%g
7083s%@bfdincludedir@%$bfdincludedir%g
7084s%@CPP@%$CPP%g
7085s%@ALLOCA@%$ALLOCA%g
7086s%@USE_NLS@%$USE_NLS%g
7087s%@MSGFMT@%$MSGFMT%g
7088s%@GMSGFMT@%$GMSGFMT%g
7089s%@XGETTEXT@%$XGETTEXT%g
7090s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
7091s%@CATALOGS@%$CATALOGS%g
7092s%@CATOBJEXT@%$CATOBJEXT%g
7093s%@DATADIRNAME@%$DATADIRNAME%g
7094s%@GMOFILES@%$GMOFILES%g
7095s%@INSTOBJEXT@%$INSTOBJEXT%g
7096s%@INTLDEPS@%$INTLDEPS%g
7097s%@INTLLIBS@%$INTLLIBS%g
7098s%@INTLOBJS@%$INTLOBJS%g
7099s%@POFILES@%$POFILES%g
7100s%@POSUB@%$POSUB%g
7101s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
7102s%@GT_NO@%$GT_NO%g
7103s%@GT_YES@%$GT_YES%g
7104s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
7105s%@l@%$l%g
7106s%@HDEFINES@%$HDEFINES%g
7107s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
7108s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
7109s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
7110s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
7111s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7112s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
7113s%@COREFILE@%$COREFILE%g
7114s%@COREFLAG@%$COREFLAG%g
7115s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
7116s%@WIN32LIBADD@%$WIN32LIBADD%g
7117s%@TDEFINES@%$TDEFINES%g
7118s%@wordsize@%$wordsize%g
7119s%@bfd_libs@%$bfd_libs%g
7120s%@all_backends@%$all_backends%g
7121s%@bfd_backends@%$bfd_backends%g
7122s%@bfd_machines@%$bfd_machines%g
7123s%@bfd_default_target_size@%$bfd_default_target_size%g
7124s%@tdefaults@%$tdefaults%g
7125
7126CEOF
7127EOF
7128
7129cat >> $CONFIG_STATUS <<\EOF
7130
7131# Split the substitutions into bite-sized pieces for seds with
7132# small command number limits, like on Digital OSF/1 and HP-UX.
7133ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7134ac_file=1 # Number of current file.
7135ac_beg=1 # First line for current file.
7136ac_end=$ac_max_sed_cmds # Line after last line for current file.
7137ac_more_lines=:
7138ac_sed_cmds=""
7139while $ac_more_lines; do
7140 if test $ac_beg -gt 1; then
7141 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7142 else
7143 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7144 fi
7145 if test ! -s conftest.s$ac_file; then
7146 ac_more_lines=false
7147 rm -f conftest.s$ac_file
7148 else
7149 if test -z "$ac_sed_cmds"; then
7150 ac_sed_cmds="sed -f conftest.s$ac_file"
7151 else
7152 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7153 fi
7154 ac_file=`expr $ac_file + 1`
7155 ac_beg=$ac_end
7156 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7157 fi
7158done
7159if test -z "$ac_sed_cmds"; then
7160 ac_sed_cmds=cat
7161fi
7162EOF
7163
7164cat >> $CONFIG_STATUS <<EOF
7165
7166CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h bfdver.h:version.h po/Makefile.in:po/Make-in"}
7167EOF
7168cat >> $CONFIG_STATUS <<\EOF
7169for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7170 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7171 case "$ac_file" in
7172 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7173 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7174 *) ac_file_in="${ac_file}.in" ;;
7175 esac
7176
7177 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7178
7179 # Remove last slash and all that follows it. Not all systems have dirname.
7180 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7181 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7182 # The file is in a subdirectory.
7183 test ! -d "$ac_dir" && mkdir "$ac_dir"
7184 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7185 # A "../" for each directory in $ac_dir_suffix.
7186 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7187 else
7188 ac_dir_suffix= ac_dots=
7189 fi
7190
7191 case "$ac_given_srcdir" in
7192 .) srcdir=.
7193 if test -z "$ac_dots"; then top_srcdir=.
7194 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7195 [/\\]* | [a-zA-Z]:*)
7196 srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7197 *) # Relative path.
7198 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7199 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7200 esac
7201
7202 case "$ac_given_INSTALL" in
7203 [/$\\]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
7204 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7205 esac
7206
7207 echo creating "$ac_file"
7208 rm -f "$ac_file"
7209 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7210 case "$ac_file" in
7211 *Makefile*) ac_comsub="1i\\
7212# $configure_input" ;;
7213 *) ac_comsub= ;;
7214 esac
7215
7216 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"`
7217 sed -e "$ac_comsub
7218s%@configure_input@%$configure_input%g
7219s%@srcdir@%$srcdir%g
7220s%@top_srcdir@%$top_srcdir%g
7221s%@INSTALL@%$INSTALL%g
7222" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7223fi; done
7224rm -f conftest.s*
7225
7226# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7227# NAME is the cpp macro being defined and VALUE is the value it is being given.
7228#
7229# ac_d sets the value in "#define NAME VALUE" lines.
7230ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7231ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7232ac_dC='\3'
7233ac_dD='%g'
7234# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7235ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7236ac_uB='\([ ]\)%\1#\2define\3'
7237ac_uC=' '
7238ac_uD='\4%g'
7239# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7240ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7241ac_eB='$%\1#\2define\3'
7242ac_eC=' '
7243ac_eD='%g'
7244
7245if test "${CONFIG_HEADERS+set}" != set; then
7246EOF
7247cat >> $CONFIG_STATUS <<EOF
7248 CONFIG_HEADERS="config.h:config.in"
7249EOF
7250cat >> $CONFIG_STATUS <<\EOF
7251fi
7252for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7253 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7254 case "$ac_file" in
7255 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7256 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7257 *) ac_file_in="${ac_file}.in" ;;
7258 esac
7259
7260 echo creating $ac_file
7261
7262 rm -f conftest.frag conftest.in conftest.out
7263# kso the other way around might work better with drive letters and such.
7264# ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7265 ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" `
7266 cat $ac_file_inputs > conftest.in
7267
7268EOF
7269
7270# Transform confdefs.h into a sed script conftest.vals that substitutes
7271# the proper values into config.h.in to produce config.h. And first:
7272# Protect against being on the right side of a sed subst in config.status.
7273# Protect against being in an unquoted here document in config.status.
7274rm -f conftest.vals
7275cat > conftest.hdr <<\EOF
7276s/[\\&%]/\\&/g
7277s%[\\$`]%\\&%g
7278s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7279s%ac_d%ac_u%gp
7280s%ac_u%ac_e%gp
7281EOF
7282sed -n -f conftest.hdr confdefs.h > conftest.vals
7283rm -f conftest.hdr
7284
7285# This sed command replaces #undef with comments. This is necessary, for
7286# example, in the case of _POSIX_SOURCE, which is predefined and required
7287# on some systems where configure will not decide to define it.
7288cat >> conftest.vals <<\EOF
7289s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7290EOF
7291
7292# Break up conftest.vals because some shells have a limit on
7293# the size of here documents, and old seds have small limits too.
7294
7295rm -f conftest.tail
7296while :
7297do
7298 ac_lines=`grep -c . conftest.vals`
7299 # grep -c gives empty output for an empty file on some AIX systems.
7300 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7301 # Write a limited-size here document to conftest.frag.
7302 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7303 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7304 echo 'CEOF
7305 sed -f conftest.frag conftest.in > conftest.out
7306 rm -f conftest.in
7307 mv conftest.out conftest.in
7308' >> $CONFIG_STATUS
7309 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7310 rm -f conftest.vals
7311 mv conftest.tail conftest.vals
7312done
7313rm -f conftest.vals
7314
7315cat >> $CONFIG_STATUS <<\EOF
7316 rm -f conftest.frag conftest.h
7317 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7318 cat conftest.in >> conftest.h
7319 rm -f conftest.in
7320 if cmp -s $ac_file conftest.h 2>/dev/null; then
7321 echo "$ac_file is unchanged"
7322 rm -f conftest.h
7323 else
7324 # Remove last slash and all that follows it. Not all systems have dirname.
7325 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7326 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7327 # The file is in a subdirectory.
7328 test ! -d "$ac_dir" && mkdir "$ac_dir"
7329 fi
7330 rm -f $ac_file
7331 mv conftest.h $ac_file
7332 fi
7333fi; done
7334
7335EOF
7336cat >> $CONFIG_STATUS <<EOF
7337
7338
7339EOF
7340cat >> $CONFIG_STATUS <<\EOF
7341test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
7342sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile
7343exit 0
7344EOF
7345chmod +x $CONFIG_STATUS
7346rm -fr confdefs* $ac_clean_files
7347test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7348
7349
Note: See TracBrowser for help on using the repository browser.