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

Last change on this file since 610 was 196, checked in by bird, 22 years ago

Regenerated configure.

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