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