bfd/:
[deliverable/binutils-gdb.git] / bfd / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="libbfd.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S STRIP ac_ct_STRIP LIBTOOL WARN_CFLAGS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
831
832 cat <<\_ACEOF
833
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843 _ACEOF
844 fi
845
846 if test -n "$ac_init_help"; then
847
848 cat <<\_ACEOF
849
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --enable-shared=PKGS build shared libraries default=no
854 --enable-static=PKGS build static libraries default=yes
855 --enable-fast-install=PKGS optimize for fast installation default=yes
856 --disable-libtool-lock avoid locking (might break parallel builds)
857 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
858 --enable-targets alternative target configurations
859 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
860 --enable-build-warnings Enable build-time compiler warnings if gcc is used
861 --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing) to the casual installer
863 --enable-install-libbfd controls installation of libbfd and related headers
864 --disable-nls do not use Native Language Support
865
866 Optional Packages:
867 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
868 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
869 --with-gnu-ld assume the C compiler uses GNU ld default=no
870 --with-pic try to use only PIC/non-PIC objects default=use both
871 --with-mmap try using mmap for BFD input files if available
872 --with-included-gettext use the GNU gettext library included here
873
874 Some influential environment variables:
875 CC C compiler command
876 CFLAGS C compiler flags
877 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
878 nonstandard directory <lib dir>
879 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
880 headers in a nonstandard directory <include dir>
881 CPP C preprocessor
882
883 Use these variables to override the choices made by `configure' or to help
884 it to find libraries and programs with nonstandard names/locations.
885
886 _ACEOF
887 fi
888
889 if test "$ac_init_help" = "recursive"; then
890 # If there are subdirs, report their specific --help.
891 ac_popdir=`pwd`
892 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
893 test -d $ac_dir || continue
894 ac_builddir=.
895
896 if test "$ac_dir" != .; then
897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
898 # A "../" for each directory in $ac_dir_suffix.
899 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
900 else
901 ac_dir_suffix= ac_top_builddir=
902 fi
903
904 case $srcdir in
905 .) # No --srcdir option. We are building in place.
906 ac_srcdir=.
907 if test -z "$ac_top_builddir"; then
908 ac_top_srcdir=.
909 else
910 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
911 fi ;;
912 [\\/]* | ?:[\\/]* ) # Absolute path.
913 ac_srcdir=$srcdir$ac_dir_suffix;
914 ac_top_srcdir=$srcdir ;;
915 *) # Relative path.
916 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
917 ac_top_srcdir=$ac_top_builddir$srcdir ;;
918 esac
919
920 # Do not use `cd foo && pwd` to compute absolute paths, because
921 # the directories may not exist.
922 case `pwd` in
923 .) ac_abs_builddir="$ac_dir";;
924 *)
925 case "$ac_dir" in
926 .) ac_abs_builddir=`pwd`;;
927 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
928 *) ac_abs_builddir=`pwd`/"$ac_dir";;
929 esac;;
930 esac
931 case $ac_abs_builddir in
932 .) ac_abs_top_builddir=${ac_top_builddir}.;;
933 *)
934 case ${ac_top_builddir}. in
935 .) ac_abs_top_builddir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
937 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
938 esac;;
939 esac
940 case $ac_abs_builddir in
941 .) ac_abs_srcdir=$ac_srcdir;;
942 *)
943 case $ac_srcdir in
944 .) ac_abs_srcdir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
946 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
947 esac;;
948 esac
949 case $ac_abs_builddir in
950 .) ac_abs_top_srcdir=$ac_top_srcdir;;
951 *)
952 case $ac_top_srcdir in
953 .) ac_abs_top_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
955 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
956 esac;;
957 esac
958
959 cd $ac_dir
960 # Check for guested configure; otherwise get Cygnus style configure.
961 if test -f $ac_srcdir/configure.gnu; then
962 echo
963 $SHELL $ac_srcdir/configure.gnu --help=recursive
964 elif test -f $ac_srcdir/configure; then
965 echo
966 $SHELL $ac_srcdir/configure --help=recursive
967 elif test -f $ac_srcdir/configure.ac ||
968 test -f $ac_srcdir/configure.in; then
969 echo
970 $ac_configure --help
971 else
972 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
973 fi
974 cd $ac_popdir
975 done
976 fi
977
978 test -n "$ac_init_help" && exit 0
979 if $ac_init_version; then
980 cat <<\_ACEOF
981
982 Copyright (C) 2003 Free Software Foundation, Inc.
983 This configure script is free software; the Free Software Foundation
984 gives unlimited permission to copy, distribute and modify it.
985 _ACEOF
986 exit 0
987 fi
988 exec 5>config.log
989 cat >&5 <<_ACEOF
990 This file contains any messages produced by compilers while
991 running configure, to aid debugging if configure makes a mistake.
992
993 It was created by $as_me, which was
994 generated by GNU Autoconf 2.59. Invocation command line was
995
996 $ $0 $@
997
998 _ACEOF
999 {
1000 cat <<_ASUNAME
1001 ## --------- ##
1002 ## Platform. ##
1003 ## --------- ##
1004
1005 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1006 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1007 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1008 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1009 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1010
1011 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1012 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1013
1014 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1015 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1016 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1017 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1018 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1019 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1020 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1021
1022 _ASUNAME
1023
1024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1025 for as_dir in $PATH
1026 do
1027 IFS=$as_save_IFS
1028 test -z "$as_dir" && as_dir=.
1029 echo "PATH: $as_dir"
1030 done
1031
1032 } >&5
1033
1034 cat >&5 <<_ACEOF
1035
1036
1037 ## ----------- ##
1038 ## Core tests. ##
1039 ## ----------- ##
1040
1041 _ACEOF
1042
1043
1044 # Keep a trace of the command line.
1045 # Strip out --no-create and --no-recursion so they do not pile up.
1046 # Strip out --silent because we don't want to record it for future runs.
1047 # Also quote any args containing shell meta-characters.
1048 # Make two passes to allow for proper duplicate-argument suppression.
1049 ac_configure_args=
1050 ac_configure_args0=
1051 ac_configure_args1=
1052 ac_sep=
1053 ac_must_keep_next=false
1054 for ac_pass in 1 2
1055 do
1056 for ac_arg
1057 do
1058 case $ac_arg in
1059 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061 | -silent | --silent | --silen | --sile | --sil)
1062 continue ;;
1063 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1065 esac
1066 case $ac_pass in
1067 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1068 2)
1069 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1070 if test $ac_must_keep_next = true; then
1071 ac_must_keep_next=false # Got value, back to normal.
1072 else
1073 case $ac_arg in
1074 *=* | --config-cache | -C | -disable-* | --disable-* \
1075 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1076 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1077 | -with-* | --with-* | -without-* | --without-* | --x)
1078 case "$ac_configure_args0 " in
1079 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1080 esac
1081 ;;
1082 -* ) ac_must_keep_next=true ;;
1083 esac
1084 fi
1085 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1086 # Get rid of the leading space.
1087 ac_sep=" "
1088 ;;
1089 esac
1090 done
1091 done
1092 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1093 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1094
1095 # When interrupted or exit'd, cleanup temporary files, and complete
1096 # config.log. We remove comments because anyway the quotes in there
1097 # would cause problems or look ugly.
1098 # WARNING: Be sure not to use single quotes in there, as some shells,
1099 # such as our DU 5.0 friend, will then `close' the trap.
1100 trap 'exit_status=$?
1101 # Save into config.log some information that might help in debugging.
1102 {
1103 echo
1104
1105 cat <<\_ASBOX
1106 ## ---------------- ##
1107 ## Cache variables. ##
1108 ## ---------------- ##
1109 _ASBOX
1110 echo
1111 # The following way of writing the cache mishandles newlines in values,
1112 {
1113 (set) 2>&1 |
1114 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1115 *ac_space=\ *)
1116 sed -n \
1117 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1119 ;;
1120 *)
1121 sed -n \
1122 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1123 ;;
1124 esac;
1125 }
1126 echo
1127
1128 cat <<\_ASBOX
1129 ## ----------------- ##
1130 ## Output variables. ##
1131 ## ----------------- ##
1132 _ASBOX
1133 echo
1134 for ac_var in $ac_subst_vars
1135 do
1136 eval ac_val=$`echo $ac_var`
1137 echo "$ac_var='"'"'$ac_val'"'"'"
1138 done | sort
1139 echo
1140
1141 if test -n "$ac_subst_files"; then
1142 cat <<\_ASBOX
1143 ## ------------- ##
1144 ## Output files. ##
1145 ## ------------- ##
1146 _ASBOX
1147 echo
1148 for ac_var in $ac_subst_files
1149 do
1150 eval ac_val=$`echo $ac_var`
1151 echo "$ac_var='"'"'$ac_val'"'"'"
1152 done | sort
1153 echo
1154 fi
1155
1156 if test -s confdefs.h; then
1157 cat <<\_ASBOX
1158 ## ----------- ##
1159 ## confdefs.h. ##
1160 ## ----------- ##
1161 _ASBOX
1162 echo
1163 sed "/^$/d" confdefs.h | sort
1164 echo
1165 fi
1166 test "$ac_signal" != 0 &&
1167 echo "$as_me: caught signal $ac_signal"
1168 echo "$as_me: exit $exit_status"
1169 } >&5
1170 rm -f core *.core &&
1171 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1172 exit $exit_status
1173 ' 0
1174 for ac_signal in 1 2 13 15; do
1175 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1176 done
1177 ac_signal=0
1178
1179 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1180 rm -rf conftest* confdefs.h
1181 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1182 echo >confdefs.h
1183
1184 # Predefined preprocessor variables.
1185
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_NAME "$PACKAGE_NAME"
1188 _ACEOF
1189
1190
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1193 _ACEOF
1194
1195
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1198 _ACEOF
1199
1200
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_STRING "$PACKAGE_STRING"
1203 _ACEOF
1204
1205
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1208 _ACEOF
1209
1210
1211 # Let the site file select an alternate cache file if it wants to.
1212 # Prefer explicitly selected file to automatically selected ones.
1213 if test -z "$CONFIG_SITE"; then
1214 if test "x$prefix" != xNONE; then
1215 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1216 else
1217 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1218 fi
1219 fi
1220 for ac_site_file in $CONFIG_SITE; do
1221 if test -r "$ac_site_file"; then
1222 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1223 echo "$as_me: loading site script $ac_site_file" >&6;}
1224 sed 's/^/| /' "$ac_site_file" >&5
1225 . "$ac_site_file"
1226 fi
1227 done
1228
1229 if test -r "$cache_file"; then
1230 # Some versions of bash will fail to source /dev/null (special
1231 # files actually), so we avoid doing that.
1232 if test -f "$cache_file"; then
1233 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1234 echo "$as_me: loading cache $cache_file" >&6;}
1235 case $cache_file in
1236 [\\/]* | ?:[\\/]* ) . $cache_file;;
1237 *) . ./$cache_file;;
1238 esac
1239 fi
1240 else
1241 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1242 echo "$as_me: creating cache $cache_file" >&6;}
1243 >$cache_file
1244 fi
1245
1246 # Check that the precious variables saved in the cache have kept the same
1247 # value.
1248 ac_cache_corrupted=false
1249 for ac_var in `(set) 2>&1 |
1250 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1251 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1252 eval ac_new_set=\$ac_env_${ac_var}_set
1253 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1254 eval ac_new_val="\$ac_env_${ac_var}_value"
1255 case $ac_old_set,$ac_new_set in
1256 set,)
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1260 ,set)
1261 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1262 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1264 ,);;
1265 *)
1266 if test "x$ac_old_val" != "x$ac_new_val"; then
1267 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1268 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1269 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1270 echo "$as_me: former value: $ac_old_val" >&2;}
1271 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1272 echo "$as_me: current value: $ac_new_val" >&2;}
1273 ac_cache_corrupted=:
1274 fi;;
1275 esac
1276 # Pass precious variables to config.status.
1277 if test "$ac_new_set" = set; then
1278 case $ac_new_val in
1279 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1280 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1281 *) ac_arg=$ac_var=$ac_new_val ;;
1282 esac
1283 case " $ac_configure_args " in
1284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1285 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1286 esac
1287 fi
1288 done
1289 if $ac_cache_corrupted; then
1290 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294 { (exit 1); exit 1; }; }
1295 fi
1296
1297 ac_ext=c
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323 ac_aux_dir=
1324 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1325 if test -f $ac_dir/install-sh; then
1326 ac_aux_dir=$ac_dir
1327 ac_install_sh="$ac_aux_dir/install-sh -c"
1328 break
1329 elif test -f $ac_dir/install.sh; then
1330 ac_aux_dir=$ac_dir
1331 ac_install_sh="$ac_aux_dir/install.sh -c"
1332 break
1333 elif test -f $ac_dir/shtool; then
1334 ac_aux_dir=$ac_dir
1335 ac_install_sh="$ac_aux_dir/shtool install -c"
1336 break
1337 fi
1338 done
1339 if test -z "$ac_aux_dir"; then
1340 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1341 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1342 { (exit 1); exit 1; }; }
1343 fi
1344 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1345 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1346 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1347
1348 # Make sure we can run config.sub.
1349 $ac_config_sub sun4 >/dev/null 2>&1 ||
1350 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1351 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1352 { (exit 1); exit 1; }; }
1353
1354 echo "$as_me:$LINENO: checking build system type" >&5
1355 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1356 if test "${ac_cv_build+set}" = set; then
1357 echo $ECHO_N "(cached) $ECHO_C" >&6
1358 else
1359 ac_cv_build_alias=$build_alias
1360 test -z "$ac_cv_build_alias" &&
1361 ac_cv_build_alias=`$ac_config_guess`
1362 test -z "$ac_cv_build_alias" &&
1363 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1364 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1365 { (exit 1); exit 1; }; }
1366 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1367 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1368 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1369 { (exit 1); exit 1; }; }
1370
1371 fi
1372 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1373 echo "${ECHO_T}$ac_cv_build" >&6
1374 build=$ac_cv_build
1375 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1376 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1377 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1378
1379
1380 echo "$as_me:$LINENO: checking host system type" >&5
1381 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1382 if test "${ac_cv_host+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1384 else
1385 ac_cv_host_alias=$host_alias
1386 test -z "$ac_cv_host_alias" &&
1387 ac_cv_host_alias=$ac_cv_build_alias
1388 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1389 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1390 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1391 { (exit 1); exit 1; }; }
1392
1393 fi
1394 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1395 echo "${ECHO_T}$ac_cv_host" >&6
1396 host=$ac_cv_host
1397 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1398 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1399 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1400
1401
1402 echo "$as_me:$LINENO: checking target system type" >&5
1403 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1404 if test "${ac_cv_target+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 else
1407 ac_cv_target_alias=$target_alias
1408 test "x$ac_cv_target_alias" = "x" &&
1409 ac_cv_target_alias=$ac_cv_host_alias
1410 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1411 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1412 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1413 { (exit 1); exit 1; }; }
1414
1415 fi
1416 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1417 echo "${ECHO_T}$ac_cv_target" >&6
1418 target=$ac_cv_target
1419 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1420 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1421 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1422
1423
1424 # The aliases save the names the user supplied, while $host etc.
1425 # will get canonicalized.
1426 test -n "$target_alias" &&
1427 test "$program_prefix$program_suffix$program_transform_name" = \
1428 NONENONEs,x,x, &&
1429 program_prefix=${target_alias}-
1430 ac_ext=c
1431 ac_cpp='$CPP $CPPFLAGS'
1432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1435 if test -n "$ac_tool_prefix"; then
1436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1437 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1438 echo "$as_me:$LINENO: checking for $ac_word" >&5
1439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440 if test "${ac_cv_prog_CC+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 else
1443 if test -n "$CC"; then
1444 ac_cv_prog_CC="$CC" # Let the user override the test.
1445 else
1446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447 for as_dir in $PATH
1448 do
1449 IFS=$as_save_IFS
1450 test -z "$as_dir" && as_dir=.
1451 for ac_exec_ext in '' $ac_executable_extensions; do
1452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1455 break 2
1456 fi
1457 done
1458 done
1459
1460 fi
1461 fi
1462 CC=$ac_cv_prog_CC
1463 if test -n "$CC"; then
1464 echo "$as_me:$LINENO: result: $CC" >&5
1465 echo "${ECHO_T}$CC" >&6
1466 else
1467 echo "$as_me:$LINENO: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1469 fi
1470
1471 fi
1472 if test -z "$ac_cv_prog_CC"; then
1473 ac_ct_CC=$CC
1474 # Extract the first word of "gcc", so it can be a program name with args.
1475 set dummy gcc; ac_word=$2
1476 echo "$as_me:$LINENO: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 else
1481 if test -n "$ac_ct_CC"; then
1482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1483 else
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 for as_dir in $PATH
1486 do
1487 IFS=$as_save_IFS
1488 test -z "$as_dir" && as_dir=.
1489 for ac_exec_ext in '' $ac_executable_extensions; do
1490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491 ac_cv_prog_ac_ct_CC="gcc"
1492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493 break 2
1494 fi
1495 done
1496 done
1497
1498 fi
1499 fi
1500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1501 if test -n "$ac_ct_CC"; then
1502 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1503 echo "${ECHO_T}$ac_ct_CC" >&6
1504 else
1505 echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1507 fi
1508
1509 CC=$ac_ct_CC
1510 else
1511 CC="$ac_cv_prog_CC"
1512 fi
1513
1514 if test -z "$CC"; then
1515 if test -n "$ac_tool_prefix"; then
1516 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1517 set dummy ${ac_tool_prefix}cc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523 if test -n "$CC"; then
1524 ac_cv_prog_CC="$CC" # Let the user override the test.
1525 else
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 for as_dir in $PATH
1528 do
1529 IFS=$as_save_IFS
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_CC="${ac_tool_prefix}cc"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 break 2
1536 fi
1537 done
1538 done
1539
1540 fi
1541 fi
1542 CC=$ac_cv_prog_CC
1543 if test -n "$CC"; then
1544 echo "$as_me:$LINENO: result: $CC" >&5
1545 echo "${ECHO_T}$CC" >&6
1546 else
1547 echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1549 fi
1550
1551 fi
1552 if test -z "$ac_cv_prog_CC"; then
1553 ac_ct_CC=$CC
1554 # Extract the first word of "cc", so it can be a program name with args.
1555 set dummy cc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561 if test -n "$ac_ct_CC"; then
1562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1563 else
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1566 do
1567 IFS=$as_save_IFS
1568 test -z "$as_dir" && as_dir=.
1569 for ac_exec_ext in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571 ac_cv_prog_ac_ct_CC="cc"
1572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573 break 2
1574 fi
1575 done
1576 done
1577
1578 fi
1579 fi
1580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1581 if test -n "$ac_ct_CC"; then
1582 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1583 echo "${ECHO_T}$ac_ct_CC" >&6
1584 else
1585 echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1587 fi
1588
1589 CC=$ac_ct_CC
1590 else
1591 CC="$ac_cv_prog_CC"
1592 fi
1593
1594 fi
1595 if test -z "$CC"; then
1596 # Extract the first word of "cc", so it can be a program name with args.
1597 set dummy cc; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 else
1603 if test -n "$CC"; then
1604 ac_cv_prog_CC="$CC" # Let the user override the test.
1605 else
1606 ac_prog_rejected=no
1607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608 for as_dir in $PATH
1609 do
1610 IFS=$as_save_IFS
1611 test -z "$as_dir" && as_dir=.
1612 for ac_exec_ext in '' $ac_executable_extensions; do
1613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1615 ac_prog_rejected=yes
1616 continue
1617 fi
1618 ac_cv_prog_CC="cc"
1619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 break 2
1621 fi
1622 done
1623 done
1624
1625 if test $ac_prog_rejected = yes; then
1626 # We found a bogon in the path, so make sure we never use it.
1627 set dummy $ac_cv_prog_CC
1628 shift
1629 if test $# != 0; then
1630 # We chose a different compiler from the bogus one.
1631 # However, it has the same basename, so the bogon will be chosen
1632 # first if we set CC to just the basename; use the full file name.
1633 shift
1634 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1635 fi
1636 fi
1637 fi
1638 fi
1639 CC=$ac_cv_prog_CC
1640 if test -n "$CC"; then
1641 echo "$as_me:$LINENO: result: $CC" >&5
1642 echo "${ECHO_T}$CC" >&6
1643 else
1644 echo "$as_me:$LINENO: result: no" >&5
1645 echo "${ECHO_T}no" >&6
1646 fi
1647
1648 fi
1649 if test -z "$CC"; then
1650 if test -n "$ac_tool_prefix"; then
1651 for ac_prog in cl
1652 do
1653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1655 echo "$as_me:$LINENO: checking for $ac_word" >&5
1656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657 if test "${ac_cv_prog_CC+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 else
1660 if test -n "$CC"; then
1661 ac_cv_prog_CC="$CC" # Let the user override the test.
1662 else
1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 for as_dir in $PATH
1665 do
1666 IFS=$as_save_IFS
1667 test -z "$as_dir" && as_dir=.
1668 for ac_exec_ext in '' $ac_executable_extensions; do
1669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672 break 2
1673 fi
1674 done
1675 done
1676
1677 fi
1678 fi
1679 CC=$ac_cv_prog_CC
1680 if test -n "$CC"; then
1681 echo "$as_me:$LINENO: result: $CC" >&5
1682 echo "${ECHO_T}$CC" >&6
1683 else
1684 echo "$as_me:$LINENO: result: no" >&5
1685 echo "${ECHO_T}no" >&6
1686 fi
1687
1688 test -n "$CC" && break
1689 done
1690 fi
1691 if test -z "$CC"; then
1692 ac_ct_CC=$CC
1693 for ac_prog in cl
1694 do
1695 # Extract the first word of "$ac_prog", so it can be a program name with args.
1696 set dummy $ac_prog; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1701 else
1702 if test -n "$ac_ct_CC"; then
1703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1704 else
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 for as_dir in $PATH
1707 do
1708 IFS=$as_save_IFS
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_ac_ct_CC="$ac_prog"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 break 2
1715 fi
1716 done
1717 done
1718
1719 fi
1720 fi
1721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1722 if test -n "$ac_ct_CC"; then
1723 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1724 echo "${ECHO_T}$ac_ct_CC" >&6
1725 else
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1728 fi
1729
1730 test -n "$ac_ct_CC" && break
1731 done
1732
1733 CC=$ac_ct_CC
1734 fi
1735
1736 fi
1737
1738
1739 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1740 See \`config.log' for more details." >&5
1741 echo "$as_me: error: no acceptable C compiler found in \$PATH
1742 See \`config.log' for more details." >&2;}
1743 { (exit 1); exit 1; }; }
1744
1745 # Provide some information about the compiler.
1746 echo "$as_me:$LINENO:" \
1747 "checking for C compiler version" >&5
1748 ac_compiler=`set X $ac_compile; echo $2`
1749 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1750 (eval $ac_compiler --version </dev/null >&5) 2>&5
1751 ac_status=$?
1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753 (exit $ac_status); }
1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1755 (eval $ac_compiler -v </dev/null >&5) 2>&5
1756 ac_status=$?
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }
1759 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1760 (eval $ac_compiler -V </dev/null >&5) 2>&5
1761 ac_status=$?
1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763 (exit $ac_status); }
1764
1765 cat >conftest.$ac_ext <<_ACEOF
1766 /* confdefs.h. */
1767 _ACEOF
1768 cat confdefs.h >>conftest.$ac_ext
1769 cat >>conftest.$ac_ext <<_ACEOF
1770 /* end confdefs.h. */
1771
1772 int
1773 main ()
1774 {
1775
1776 ;
1777 return 0;
1778 }
1779 _ACEOF
1780 ac_clean_files_save=$ac_clean_files
1781 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1782 # Try to create an executable without -o first, disregard a.out.
1783 # It will help us diagnose broken compilers, and finding out an intuition
1784 # of exeext.
1785 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1786 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1787 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1788 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1789 (eval $ac_link_default) 2>&5
1790 ac_status=$?
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }; then
1793 # Find the output, starting from the most likely. This scheme is
1794 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1795 # resort.
1796
1797 # Be careful to initialize this variable, since it used to be cached.
1798 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1799 ac_cv_exeext=
1800 # b.out is created by i960 compilers.
1801 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1802 do
1803 test -f "$ac_file" || continue
1804 case $ac_file in
1805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1806 ;;
1807 conftest.$ac_ext )
1808 # This is the source file.
1809 ;;
1810 [ab].out )
1811 # We found the default executable, but exeext='' is most
1812 # certainly right.
1813 break;;
1814 *.* )
1815 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1816 # FIXME: I believe we export ac_cv_exeext for Libtool,
1817 # but it would be cool to find out if it's true. Does anybody
1818 # maintain Libtool? --akim.
1819 export ac_cv_exeext
1820 break;;
1821 * )
1822 break;;
1823 esac
1824 done
1825 else
1826 echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1828
1829 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1830 See \`config.log' for more details." >&5
1831 echo "$as_me: error: C compiler cannot create executables
1832 See \`config.log' for more details." >&2;}
1833 { (exit 77); exit 77; }; }
1834 fi
1835
1836 ac_exeext=$ac_cv_exeext
1837 echo "$as_me:$LINENO: result: $ac_file" >&5
1838 echo "${ECHO_T}$ac_file" >&6
1839
1840 # Check the compiler produces executables we can run. If not, either
1841 # the compiler is broken, or we cross compile.
1842 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1843 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1844 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1845 # If not cross compiling, check that we can run a simple program.
1846 if test "$cross_compiling" != yes; then
1847 if { ac_try='./$ac_file'
1848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1849 (eval $ac_try) 2>&5
1850 ac_status=$?
1851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852 (exit $ac_status); }; }; then
1853 cross_compiling=no
1854 else
1855 if test "$cross_compiling" = maybe; then
1856 cross_compiling=yes
1857 else
1858 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1859 If you meant to cross compile, use \`--host'.
1860 See \`config.log' for more details." >&5
1861 echo "$as_me: error: cannot run C compiled programs.
1862 If you meant to cross compile, use \`--host'.
1863 See \`config.log' for more details." >&2;}
1864 { (exit 1); exit 1; }; }
1865 fi
1866 fi
1867 fi
1868 echo "$as_me:$LINENO: result: yes" >&5
1869 echo "${ECHO_T}yes" >&6
1870
1871 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1872 ac_clean_files=$ac_clean_files_save
1873 # Check the compiler produces executables we can run. If not, either
1874 # the compiler is broken, or we cross compile.
1875 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1876 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1877 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1878 echo "${ECHO_T}$cross_compiling" >&6
1879
1880 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1881 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1883 (eval $ac_link) 2>&5
1884 ac_status=$?
1885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1886 (exit $ac_status); }; then
1887 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1888 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1889 # work properly (i.e., refer to `conftest.exe'), while it won't with
1890 # `rm'.
1891 for ac_file in conftest.exe conftest conftest.*; do
1892 test -f "$ac_file" || continue
1893 case $ac_file in
1894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1895 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1896 export ac_cv_exeext
1897 break;;
1898 * ) break;;
1899 esac
1900 done
1901 else
1902 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1903 See \`config.log' for more details." >&5
1904 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1905 See \`config.log' for more details." >&2;}
1906 { (exit 1); exit 1; }; }
1907 fi
1908
1909 rm -f conftest$ac_cv_exeext
1910 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1911 echo "${ECHO_T}$ac_cv_exeext" >&6
1912
1913 rm -f conftest.$ac_ext
1914 EXEEXT=$ac_cv_exeext
1915 ac_exeext=$EXEEXT
1916 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1917 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1918 if test "${ac_cv_objext+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921 cat >conftest.$ac_ext <<_ACEOF
1922 /* confdefs.h. */
1923 _ACEOF
1924 cat confdefs.h >>conftest.$ac_ext
1925 cat >>conftest.$ac_ext <<_ACEOF
1926 /* end confdefs.h. */
1927
1928 int
1929 main ()
1930 {
1931
1932 ;
1933 return 0;
1934 }
1935 _ACEOF
1936 rm -f conftest.o conftest.obj
1937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1938 (eval $ac_compile) 2>&5
1939 ac_status=$?
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }; then
1942 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1943 case $ac_file in
1944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1945 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1946 break;;
1947 esac
1948 done
1949 else
1950 echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1952
1953 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1954 See \`config.log' for more details." >&5
1955 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1956 See \`config.log' for more details." >&2;}
1957 { (exit 1); exit 1; }; }
1958 fi
1959
1960 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1961 fi
1962 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1963 echo "${ECHO_T}$ac_cv_objext" >&6
1964 OBJEXT=$ac_cv_objext
1965 ac_objext=$OBJEXT
1966 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1967 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1968 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 else
1971 cat >conftest.$ac_ext <<_ACEOF
1972 /* confdefs.h. */
1973 _ACEOF
1974 cat confdefs.h >>conftest.$ac_ext
1975 cat >>conftest.$ac_ext <<_ACEOF
1976 /* end confdefs.h. */
1977
1978 int
1979 main ()
1980 {
1981 #ifndef __GNUC__
1982 choke me
1983 #endif
1984
1985 ;
1986 return 0;
1987 }
1988 _ACEOF
1989 rm -f conftest.$ac_objext
1990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1991 (eval $ac_compile) 2>conftest.er1
1992 ac_status=$?
1993 grep -v '^ *+' conftest.er1 >conftest.err
1994 rm -f conftest.er1
1995 cat conftest.err >&5
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); } &&
1998 { ac_try='test -z "$ac_c_werror_flag"
1999 || test ! -s conftest.err'
2000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001 (eval $ac_try) 2>&5
2002 ac_status=$?
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; } &&
2005 { ac_try='test -s conftest.$ac_objext'
2006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2007 (eval $ac_try) 2>&5
2008 ac_status=$?
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }; }; then
2011 ac_compiler_gnu=yes
2012 else
2013 echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2015
2016 ac_compiler_gnu=no
2017 fi
2018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2019 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2020
2021 fi
2022 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2023 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2024 GCC=`test $ac_compiler_gnu = yes && echo yes`
2025 ac_test_CFLAGS=${CFLAGS+set}
2026 ac_save_CFLAGS=$CFLAGS
2027 CFLAGS="-g"
2028 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2029 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2030 if test "${ac_cv_prog_cc_g+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033 cat >conftest.$ac_ext <<_ACEOF
2034 /* confdefs.h. */
2035 _ACEOF
2036 cat confdefs.h >>conftest.$ac_ext
2037 cat >>conftest.$ac_ext <<_ACEOF
2038 /* end confdefs.h. */
2039
2040 int
2041 main ()
2042 {
2043
2044 ;
2045 return 0;
2046 }
2047 _ACEOF
2048 rm -f conftest.$ac_objext
2049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2050 (eval $ac_compile) 2>conftest.er1
2051 ac_status=$?
2052 grep -v '^ *+' conftest.er1 >conftest.err
2053 rm -f conftest.er1
2054 cat conftest.err >&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); } &&
2057 { ac_try='test -z "$ac_c_werror_flag"
2058 || test ! -s conftest.err'
2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 (eval $ac_try) 2>&5
2061 ac_status=$?
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; } &&
2064 { ac_try='test -s conftest.$ac_objext'
2065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066 (eval $ac_try) 2>&5
2067 ac_status=$?
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; }; then
2070 ac_cv_prog_cc_g=yes
2071 else
2072 echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2074
2075 ac_cv_prog_cc_g=no
2076 fi
2077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2078 fi
2079 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2080 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2081 if test "$ac_test_CFLAGS" = set; then
2082 CFLAGS=$ac_save_CFLAGS
2083 elif test $ac_cv_prog_cc_g = yes; then
2084 if test "$GCC" = yes; then
2085 CFLAGS="-g -O2"
2086 else
2087 CFLAGS="-g"
2088 fi
2089 else
2090 if test "$GCC" = yes; then
2091 CFLAGS="-O2"
2092 else
2093 CFLAGS=
2094 fi
2095 fi
2096 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2097 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2098 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 else
2101 ac_cv_prog_cc_stdc=no
2102 ac_save_CC=$CC
2103 cat >conftest.$ac_ext <<_ACEOF
2104 /* confdefs.h. */
2105 _ACEOF
2106 cat confdefs.h >>conftest.$ac_ext
2107 cat >>conftest.$ac_ext <<_ACEOF
2108 /* end confdefs.h. */
2109 #include <stdarg.h>
2110 #include <stdio.h>
2111 #include <sys/types.h>
2112 #include <sys/stat.h>
2113 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2114 struct buf { int x; };
2115 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2116 static char *e (p, i)
2117 char **p;
2118 int i;
2119 {
2120 return p[i];
2121 }
2122 static char *f (char * (*g) (char **, int), char **p, ...)
2123 {
2124 char *s;
2125 va_list v;
2126 va_start (v,p);
2127 s = g (p, va_arg (v,int));
2128 va_end (v);
2129 return s;
2130 }
2131
2132 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2133 function prototypes and stuff, but not '\xHH' hex character constants.
2134 These don't provoke an error unfortunately, instead are silently treated
2135 as 'x'. The following induces an error, until -std1 is added to get
2136 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2137 array size at least. It's necessary to write '\x00'==0 to get something
2138 that's true only with -std1. */
2139 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2140
2141 int test (int i, double x);
2142 struct s1 {int (*f) (int a);};
2143 struct s2 {int (*f) (double a);};
2144 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2145 int argc;
2146 char **argv;
2147 int
2148 main ()
2149 {
2150 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2151 ;
2152 return 0;
2153 }
2154 _ACEOF
2155 # Don't try gcc -ansi; that turns off useful extensions and
2156 # breaks some systems' header files.
2157 # AIX -qlanglvl=ansi
2158 # Ultrix and OSF/1 -std1
2159 # HP-UX 10.20 and later -Ae
2160 # HP-UX older versions -Aa -D_HPUX_SOURCE
2161 # SVR4 -Xc -D__EXTENSIONS__
2162 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2163 do
2164 CC="$ac_save_CC $ac_arg"
2165 rm -f conftest.$ac_objext
2166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2167 (eval $ac_compile) 2>conftest.er1
2168 ac_status=$?
2169 grep -v '^ *+' conftest.er1 >conftest.err
2170 rm -f conftest.er1
2171 cat conftest.err >&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); } &&
2174 { ac_try='test -z "$ac_c_werror_flag"
2175 || test ! -s conftest.err'
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 (eval $ac_try) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; } &&
2181 { ac_try='test -s conftest.$ac_objext'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 (eval $ac_try) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; }; then
2187 ac_cv_prog_cc_stdc=$ac_arg
2188 break
2189 else
2190 echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2192
2193 fi
2194 rm -f conftest.err conftest.$ac_objext
2195 done
2196 rm -f conftest.$ac_ext conftest.$ac_objext
2197 CC=$ac_save_CC
2198
2199 fi
2200
2201 case "x$ac_cv_prog_cc_stdc" in
2202 x|xno)
2203 echo "$as_me:$LINENO: result: none needed" >&5
2204 echo "${ECHO_T}none needed" >&6 ;;
2205 *)
2206 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2207 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2208 CC="$CC $ac_cv_prog_cc_stdc" ;;
2209 esac
2210
2211 # Some people use a C++ compiler to compile C. Since we use `exit',
2212 # in C++ we need to declare it. In case someone uses the same compiler
2213 # for both compiling C and C++ we need to have the C++ compiler decide
2214 # the declaration of exit, since it's the most demanding environment.
2215 cat >conftest.$ac_ext <<_ACEOF
2216 #ifndef __cplusplus
2217 choke me
2218 #endif
2219 _ACEOF
2220 rm -f conftest.$ac_objext
2221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222 (eval $ac_compile) 2>conftest.er1
2223 ac_status=$?
2224 grep -v '^ *+' conftest.er1 >conftest.err
2225 rm -f conftest.er1
2226 cat conftest.err >&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
2229 { ac_try='test -z "$ac_c_werror_flag"
2230 || test ! -s conftest.err'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 (eval $ac_try) 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; } &&
2236 { ac_try='test -s conftest.$ac_objext'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2242 for ac_declaration in \
2243 '' \
2244 'extern "C" void std::exit (int) throw (); using std::exit;' \
2245 'extern "C" void std::exit (int); using std::exit;' \
2246 'extern "C" void exit (int) throw ();' \
2247 'extern "C" void exit (int);' \
2248 'void exit (int);'
2249 do
2250 cat >conftest.$ac_ext <<_ACEOF
2251 /* confdefs.h. */
2252 _ACEOF
2253 cat confdefs.h >>conftest.$ac_ext
2254 cat >>conftest.$ac_ext <<_ACEOF
2255 /* end confdefs.h. */
2256 $ac_declaration
2257 #include <stdlib.h>
2258 int
2259 main ()
2260 {
2261 exit (42);
2262 ;
2263 return 0;
2264 }
2265 _ACEOF
2266 rm -f conftest.$ac_objext
2267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268 (eval $ac_compile) 2>conftest.er1
2269 ac_status=$?
2270 grep -v '^ *+' conftest.er1 >conftest.err
2271 rm -f conftest.er1
2272 cat conftest.err >&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); } &&
2275 { ac_try='test -z "$ac_c_werror_flag"
2276 || test ! -s conftest.err'
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 (eval $ac_try) 2>&5
2279 ac_status=$?
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; } &&
2282 { ac_try='test -s conftest.$ac_objext'
2283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 (eval $ac_try) 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; }; then
2288 :
2289 else
2290 echo "$as_me: failed program was:" >&5
2291 sed 's/^/| /' conftest.$ac_ext >&5
2292
2293 continue
2294 fi
2295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2296 cat >conftest.$ac_ext <<_ACEOF
2297 /* confdefs.h. */
2298 _ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h. */
2302 $ac_declaration
2303 int
2304 main ()
2305 {
2306 exit (42);
2307 ;
2308 return 0;
2309 }
2310 _ACEOF
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 (eval $ac_compile) 2>conftest.er1
2314 ac_status=$?
2315 grep -v '^ *+' conftest.er1 >conftest.err
2316 rm -f conftest.er1
2317 cat conftest.err >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } &&
2320 { ac_try='test -z "$ac_c_werror_flag"
2321 || test ! -s conftest.err'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 (eval $ac_try) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; } &&
2327 { ac_try='test -s conftest.$ac_objext'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 (eval $ac_try) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2333 break
2334 else
2335 echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2337
2338 fi
2339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2340 done
2341 rm -f conftest*
2342 if test -n "$ac_declaration"; then
2343 echo '#ifdef __cplusplus' >>confdefs.h
2344 echo $ac_declaration >>confdefs.h
2345 echo '#endif' >>confdefs.h
2346 fi
2347
2348 else
2349 echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2351
2352 fi
2353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2354 ac_ext=c
2355 ac_cpp='$CPP $CPPFLAGS'
2356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359
2360
2361
2362 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2363 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2364 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367 ac_check_lib_save_LIBS=$LIBS
2368 LIBS="-lcposix $LIBS"
2369 cat >conftest.$ac_ext <<_ACEOF
2370 /* confdefs.h. */
2371 _ACEOF
2372 cat confdefs.h >>conftest.$ac_ext
2373 cat >>conftest.$ac_ext <<_ACEOF
2374 /* end confdefs.h. */
2375
2376 /* Override any gcc2 internal prototype to avoid an error. */
2377 #ifdef __cplusplus
2378 extern "C"
2379 #endif
2380 /* We use char because int might match the return type of a gcc2
2381 builtin and then its argument prototype would still apply. */
2382 char strerror ();
2383 int
2384 main ()
2385 {
2386 strerror ();
2387 ;
2388 return 0;
2389 }
2390 _ACEOF
2391 rm -f conftest.$ac_objext conftest$ac_exeext
2392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2393 (eval $ac_link) 2>conftest.er1
2394 ac_status=$?
2395 grep -v '^ *+' conftest.er1 >conftest.err
2396 rm -f conftest.er1
2397 cat conftest.err >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); } &&
2400 { ac_try='test -z "$ac_c_werror_flag"
2401 || test ! -s conftest.err'
2402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 (eval $ac_try) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; } &&
2407 { ac_try='test -s conftest$ac_exeext'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 (eval $ac_try) 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; }; then
2413 ac_cv_lib_cposix_strerror=yes
2414 else
2415 echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2417
2418 ac_cv_lib_cposix_strerror=no
2419 fi
2420 rm -f conftest.err conftest.$ac_objext \
2421 conftest$ac_exeext conftest.$ac_ext
2422 LIBS=$ac_check_lib_save_LIBS
2423 fi
2424 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2425 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2426 if test $ac_cv_lib_cposix_strerror = yes; then
2427 LIBS="$LIBS -lcposix"
2428 fi
2429
2430
2431
2432
2433 am__api_version="1.4"
2434 # Find a good install program. We prefer a C program (faster),
2435 # so one script is as good as another. But avoid the broken or
2436 # incompatible versions:
2437 # SysV /etc/install, /usr/sbin/install
2438 # SunOS /usr/etc/install
2439 # IRIX /sbin/install
2440 # AIX /bin/install
2441 # AmigaOS /C/install, which installs bootblocks on floppy discs
2442 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2443 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2444 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2445 # OS/2's system install, which has a completely different semantic
2446 # ./install, which can be erroneously created by make from ./install.sh.
2447 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2448 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2449 if test -z "$INSTALL"; then
2450 if test "${ac_cv_path_install+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 for as_dir in $PATH
2455 do
2456 IFS=$as_save_IFS
2457 test -z "$as_dir" && as_dir=.
2458 # Account for people who put trailing slashes in PATH elements.
2459 case $as_dir/ in
2460 ./ | .// | /cC/* | \
2461 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2462 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2463 /usr/ucb/* ) ;;
2464 *)
2465 # OSF1 and SCO ODT 3.0 have their own names for install.
2466 # Don't use installbsd from OSF since it installs stuff as root
2467 # by default.
2468 for ac_prog in ginstall scoinst install; do
2469 for ac_exec_ext in '' $ac_executable_extensions; do
2470 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2471 if test $ac_prog = install &&
2472 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2473 # AIX install. It has an incompatible calling convention.
2474 :
2475 elif test $ac_prog = install &&
2476 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2477 # program-specific install script used by HP pwplus--don't use.
2478 :
2479 else
2480 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2481 break 3
2482 fi
2483 fi
2484 done
2485 done
2486 ;;
2487 esac
2488 done
2489
2490
2491 fi
2492 if test "${ac_cv_path_install+set}" = set; then
2493 INSTALL=$ac_cv_path_install
2494 else
2495 # As a last resort, use the slow shell script. We don't cache a
2496 # path for INSTALL within a source directory, because that will
2497 # break other packages using the cache if that directory is
2498 # removed, or if the path is relative.
2499 INSTALL=$ac_install_sh
2500 fi
2501 fi
2502 echo "$as_me:$LINENO: result: $INSTALL" >&5
2503 echo "${ECHO_T}$INSTALL" >&6
2504
2505 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2506 # It thinks the first close brace ends the variable substitution.
2507 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2508
2509 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2510
2511 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2512
2513 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2514 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2515 # Just in case
2516 sleep 1
2517 echo timestamp > conftestfile
2518 # Do `set' in a subshell so we don't clobber the current shell's
2519 # arguments. Must try -L first in case configure is actually a
2520 # symlink; some systems play weird games with the mod time of symlinks
2521 # (eg FreeBSD returns the mod time of the symlink's containing
2522 # directory).
2523 if (
2524 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
2525 if test "$*" = "X"; then
2526 # -L didn't work.
2527 set X `ls -t $srcdir/configure conftestfile`
2528 fi
2529 if test "$*" != "X $srcdir/configure conftestfile" \
2530 && test "$*" != "X conftestfile $srcdir/configure"; then
2531
2532 # If neither matched, then we have a broken ls. This can happen
2533 # if, for instance, CONFIG_SHELL is bash and it inherits a
2534 # broken ls alias from the environment. This has actually
2535 # happened. Such a system could not be considered "sane".
2536 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2537 alias in your environment" >&5
2538 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2539 alias in your environment" >&2;}
2540 { (exit 1); exit 1; }; }
2541 fi
2542
2543 test "$2" = conftestfile
2544 )
2545 then
2546 # Ok.
2547 :
2548 else
2549 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2550 Check your system clock" >&5
2551 echo "$as_me: error: newly created file is older than distributed files!
2552 Check your system clock" >&2;}
2553 { (exit 1); exit 1; }; }
2554 fi
2555 rm -f conftest*
2556 echo "$as_me:$LINENO: result: yes" >&5
2557 echo "${ECHO_T}yes" >&6
2558 test "$program_prefix" != NONE &&
2559 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2560 # Use a double $ so make ignores it.
2561 test "$program_suffix" != NONE &&
2562 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2563 # Double any \ or $. echo might interpret backslashes.
2564 # By default was `s,x,x', remove it if useless.
2565 cat <<\_ACEOF >conftest.sed
2566 s/[\\$]/&&/g;s/;s,x,x,$//
2567 _ACEOF
2568 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2569 rm conftest.sed
2570
2571 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2572 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2573 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2574 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2576 else
2577 cat >conftest.make <<\_ACEOF
2578 all:
2579 @echo 'ac_maketemp="$(MAKE)"'
2580 _ACEOF
2581 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2582 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2583 if test -n "$ac_maketemp"; then
2584 eval ac_cv_prog_make_${ac_make}_set=yes
2585 else
2586 eval ac_cv_prog_make_${ac_make}_set=no
2587 fi
2588 rm -f conftest.make
2589 fi
2590 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2591 echo "$as_me:$LINENO: result: yes" >&5
2592 echo "${ECHO_T}yes" >&6
2593 SET_MAKE=
2594 else
2595 echo "$as_me:$LINENO: result: no" >&5
2596 echo "${ECHO_T}no" >&6
2597 SET_MAKE="MAKE=${MAKE-make}"
2598 fi
2599
2600
2601 PACKAGE=bfd
2602
2603 VERSION=2.15.91
2604
2605 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
2606 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2607 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2608 { (exit 1); exit 1; }; }
2609 fi
2610
2611 cat >>confdefs.h <<_ACEOF
2612 #define PACKAGE "$PACKAGE"
2613 _ACEOF
2614
2615
2616 cat >>confdefs.h <<_ACEOF
2617 #define VERSION "$VERSION"
2618 _ACEOF
2619
2620
2621
2622 missing_dir=`cd $ac_aux_dir && pwd`
2623 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
2624 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
2625 # Run test in a subshell; some versions of sh will print an error if
2626 # an executable is not found, even if stderr is redirected.
2627 # Redirect stdin to placate older versions of autoconf. Sigh.
2628 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
2629 ACLOCAL=aclocal-${am__api_version}
2630 echo "$as_me:$LINENO: result: found" >&5
2631 echo "${ECHO_T}found" >&6
2632 else
2633 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
2634 echo "$as_me:$LINENO: result: missing" >&5
2635 echo "${ECHO_T}missing" >&6
2636 fi
2637
2638 echo "$as_me:$LINENO: checking for working autoconf" >&5
2639 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
2640 # Run test in a subshell; some versions of sh will print an error if
2641 # an executable is not found, even if stderr is redirected.
2642 # Redirect stdin to placate older versions of autoconf. Sigh.
2643 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
2644 AUTOCONF=autoconf
2645 echo "$as_me:$LINENO: result: found" >&5
2646 echo "${ECHO_T}found" >&6
2647 else
2648 AUTOCONF="$missing_dir/missing autoconf"
2649 echo "$as_me:$LINENO: result: missing" >&5
2650 echo "${ECHO_T}missing" >&6
2651 fi
2652
2653 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
2654 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
2655 # Run test in a subshell; some versions of sh will print an error if
2656 # an executable is not found, even if stderr is redirected.
2657 # Redirect stdin to placate older versions of autoconf. Sigh.
2658 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
2659 AUTOMAKE=automake-${am__api_version}
2660 echo "$as_me:$LINENO: result: found" >&5
2661 echo "${ECHO_T}found" >&6
2662 else
2663 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
2664 echo "$as_me:$LINENO: result: missing" >&5
2665 echo "${ECHO_T}missing" >&6
2666 fi
2667
2668 echo "$as_me:$LINENO: checking for working autoheader" >&5
2669 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
2670 # Run test in a subshell; some versions of sh will print an error if
2671 # an executable is not found, even if stderr is redirected.
2672 # Redirect stdin to placate older versions of autoconf. Sigh.
2673 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
2674 AUTOHEADER=autoheader
2675 echo "$as_me:$LINENO: result: found" >&5
2676 echo "${ECHO_T}found" >&6
2677 else
2678 AUTOHEADER="$missing_dir/missing autoheader"
2679 echo "$as_me:$LINENO: result: missing" >&5
2680 echo "${ECHO_T}missing" >&6
2681 fi
2682
2683 echo "$as_me:$LINENO: checking for working makeinfo" >&5
2684 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
2685 # Run test in a subshell; some versions of sh will print an error if
2686 # an executable is not found, even if stderr is redirected.
2687 # Redirect stdin to placate older versions of autoconf. Sigh.
2688 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
2689 MAKEINFO=makeinfo
2690 echo "$as_me:$LINENO: result: found" >&5
2691 echo "${ECHO_T}found" >&6
2692 else
2693 MAKEINFO="$missing_dir/missing makeinfo"
2694 echo "$as_me:$LINENO: result: missing" >&5
2695 echo "${ECHO_T}missing" >&6
2696 fi
2697
2698
2699
2700 if test -n "$ac_tool_prefix"; then
2701 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2702 set dummy ${ac_tool_prefix}ar; ac_word=$2
2703 echo "$as_me:$LINENO: checking for $ac_word" >&5
2704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2705 if test "${ac_cv_prog_AR+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 else
2708 if test -n "$AR"; then
2709 ac_cv_prog_AR="$AR" # Let the user override the test.
2710 else
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH
2713 do
2714 IFS=$as_save_IFS
2715 test -z "$as_dir" && as_dir=.
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2718 ac_cv_prog_AR="${ac_tool_prefix}ar"
2719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 break 2
2721 fi
2722 done
2723 done
2724
2725 fi
2726 fi
2727 AR=$ac_cv_prog_AR
2728 if test -n "$AR"; then
2729 echo "$as_me:$LINENO: result: $AR" >&5
2730 echo "${ECHO_T}$AR" >&6
2731 else
2732 echo "$as_me:$LINENO: result: no" >&5
2733 echo "${ECHO_T}no" >&6
2734 fi
2735
2736 fi
2737 if test -z "$ac_cv_prog_AR"; then
2738 ac_ct_AR=$AR
2739 # Extract the first word of "ar", so it can be a program name with args.
2740 set dummy ar; ac_word=$2
2741 echo "$as_me:$LINENO: checking for $ac_word" >&5
2742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2743 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2744 echo $ECHO_N "(cached) $ECHO_C" >&6
2745 else
2746 if test -n "$ac_ct_AR"; then
2747 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2748 else
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2751 do
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2756 ac_cv_prog_ac_ct_AR="ar"
2757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2759 fi
2760 done
2761 done
2762
2763 fi
2764 fi
2765 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2766 if test -n "$ac_ct_AR"; then
2767 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2768 echo "${ECHO_T}$ac_ct_AR" >&6
2769 else
2770 echo "$as_me:$LINENO: result: no" >&5
2771 echo "${ECHO_T}no" >&6
2772 fi
2773
2774 AR=$ac_ct_AR
2775 else
2776 AR="$ac_cv_prog_AR"
2777 fi
2778
2779 if test -n "$ac_tool_prefix"; then
2780 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2781 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2782 echo "$as_me:$LINENO: checking for $ac_word" >&5
2783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2784 if test "${ac_cv_prog_RANLIB+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 else
2787 if test -n "$RANLIB"; then
2788 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2792 do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 break 2
2800 fi
2801 done
2802 done
2803
2804 fi
2805 fi
2806 RANLIB=$ac_cv_prog_RANLIB
2807 if test -n "$RANLIB"; then
2808 echo "$as_me:$LINENO: result: $RANLIB" >&5
2809 echo "${ECHO_T}$RANLIB" >&6
2810 else
2811 echo "$as_me:$LINENO: result: no" >&5
2812 echo "${ECHO_T}no" >&6
2813 fi
2814
2815 fi
2816 if test -z "$ac_cv_prog_RANLIB"; then
2817 ac_ct_RANLIB=$RANLIB
2818 # Extract the first word of "ranlib", so it can be a program name with args.
2819 set dummy ranlib; ac_word=$2
2820 echo "$as_me:$LINENO: checking for $ac_word" >&5
2821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2822 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
2824 else
2825 if test -n "$ac_ct_RANLIB"; then
2826 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2830 do
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835 ac_cv_prog_ac_ct_RANLIB="ranlib"
2836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2838 fi
2839 done
2840 done
2841
2842 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2843 fi
2844 fi
2845 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2846 if test -n "$ac_ct_RANLIB"; then
2847 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2848 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2849 else
2850 echo "$as_me:$LINENO: result: no" >&5
2851 echo "${ECHO_T}no" >&6
2852 fi
2853
2854 RANLIB=$ac_ct_RANLIB
2855 else
2856 RANLIB="$ac_cv_prog_RANLIB"
2857 fi
2858
2859
2860 # Check whether --enable-shared or --disable-shared was given.
2861 if test "${enable_shared+set}" = set; then
2862 enableval="$enable_shared"
2863 p=${PACKAGE-default}
2864 case $enableval in
2865 yes) enable_shared=yes ;;
2866 no) enable_shared=no ;;
2867 *)
2868 enable_shared=no
2869 # Look at the argument we got. We use all the common list separators.
2870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2871 for pkg in $enableval; do
2872 if test "X$pkg" = "X$p"; then
2873 enable_shared=yes
2874 fi
2875 done
2876 IFS="$ac_save_ifs"
2877 ;;
2878 esac
2879 else
2880 enable_shared=no
2881 fi;
2882
2883 # Check whether --enable-static or --disable-static was given.
2884 if test "${enable_static+set}" = set; then
2885 enableval="$enable_static"
2886 p=${PACKAGE-default}
2887 case $enableval in
2888 yes) enable_static=yes ;;
2889 no) enable_static=no ;;
2890 *)
2891 enable_static=no
2892 # Look at the argument we got. We use all the common list separators.
2893 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2894 for pkg in $enableval; do
2895 if test "X$pkg" = "X$p"; then
2896 enable_static=yes
2897 fi
2898 done
2899 IFS="$ac_save_ifs"
2900 ;;
2901 esac
2902 else
2903 enable_static=yes
2904 fi;
2905 # Check whether --enable-fast-install or --disable-fast-install was given.
2906 if test "${enable_fast_install+set}" = set; then
2907 enableval="$enable_fast_install"
2908 p=${PACKAGE-default}
2909 case $enableval in
2910 yes) enable_fast_install=yes ;;
2911 no) enable_fast_install=no ;;
2912 *)
2913 enable_fast_install=no
2914 # Look at the argument we got. We use all the common list separators.
2915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2916 for pkg in $enableval; do
2917 if test "X$pkg" = "X$p"; then
2918 enable_fast_install=yes
2919 fi
2920 done
2921 IFS="$ac_save_ifs"
2922 ;;
2923 esac
2924 else
2925 enable_fast_install=yes
2926 fi;
2927
2928 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2929 if test "${with_gnu_ld+set}" = set; then
2930 withval="$with_gnu_ld"
2931 test "$withval" = no || with_gnu_ld=yes
2932 else
2933 with_gnu_ld=no
2934 fi;
2935 ac_prog=ld
2936 if test "$GCC" = yes; then
2937 # Check if gcc -print-prog-name=ld gives a path.
2938 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2939 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2940 case $host in
2941 *-*-mingw*)
2942 # gcc leaves a trailing carriage return which upsets mingw
2943 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2944 *)
2945 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2946 esac
2947 case $ac_prog in
2948 # Accept absolute paths.
2949 [\\/]* | [A-Za-z]:[\\/]*)
2950 re_direlt='/[^/][^/]*/\.\./'
2951 # Canonicalize the path of ld
2952 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2953 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2954 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2955 done
2956 test -z "$LD" && LD="$ac_prog"
2957 ;;
2958 "")
2959 # If it fails, then pretend we aren't using GCC.
2960 ac_prog=ld
2961 ;;
2962 *)
2963 # If it is relative, then search for the first ld in PATH.
2964 with_gnu_ld=unknown
2965 ;;
2966 esac
2967 elif test "$with_gnu_ld" = yes; then
2968 echo "$as_me:$LINENO: checking for GNU ld" >&5
2969 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2970 else
2971 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2972 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2973 fi
2974 if test "${lt_cv_path_LD+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 else
2977 if test -z "$LD"; then
2978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2979 for ac_dir in $PATH; do
2980 test -z "$ac_dir" && ac_dir=.
2981 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2982 lt_cv_path_LD="$ac_dir/$ac_prog"
2983 # Check to see if the program is GNU ld. I'd rather use --version,
2984 # but apparently some GNU ld's only accept -v.
2985 # Break only if it was the GNU/non-GNU ld that we prefer.
2986 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2987 test "$with_gnu_ld" != no && break
2988 else
2989 test "$with_gnu_ld" != yes && break
2990 fi
2991 fi
2992 done
2993 IFS="$ac_save_ifs"
2994 else
2995 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2996 fi
2997 fi
2998
2999 LD="$lt_cv_path_LD"
3000 if test -n "$LD"; then
3001 echo "$as_me:$LINENO: result: $LD" >&5
3002 echo "${ECHO_T}$LD" >&6
3003 else
3004 echo "$as_me:$LINENO: result: no" >&5
3005 echo "${ECHO_T}no" >&6
3006 fi
3007 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3008 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3009 { (exit 1); exit 1; }; }
3010 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3011 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3012 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3014 else
3015 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3016 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3017 lt_cv_prog_gnu_ld=yes
3018 else
3019 lt_cv_prog_gnu_ld=no
3020 fi
3021 fi
3022 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3023 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3024 with_gnu_ld=$lt_cv_prog_gnu_ld
3025
3026
3027 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3028 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3029 if test "${lt_cv_ld_reload_flag+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 else
3032 lt_cv_ld_reload_flag='-r'
3033 fi
3034 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3035 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3036 reload_flag=$lt_cv_ld_reload_flag
3037 test -n "$reload_flag" && reload_flag=" $reload_flag"
3038
3039 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3040 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3041 if test "${lt_cv_path_NM+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
3043 else
3044 if test -n "$NM"; then
3045 # Let the user override the test.
3046 lt_cv_path_NM="$NM"
3047 else
3048 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3049 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3050 test -z "$ac_dir" && ac_dir=.
3051 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3052 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3053 # Check to see if the nm accepts a BSD-compat flag.
3054 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3055 # nm: unknown option "B" ignored
3056 # Tru64's nm complains that /dev/null is an invalid object file
3057 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3058 lt_cv_path_NM="$tmp_nm -B"
3059 break
3060 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3061 lt_cv_path_NM="$tmp_nm -p"
3062 break
3063 else
3064 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3065 continue # so that we can try to find one that supports BSD flags
3066 fi
3067 fi
3068 done
3069 IFS="$ac_save_ifs"
3070 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3071 fi
3072 fi
3073
3074 NM="$lt_cv_path_NM"
3075 echo "$as_me:$LINENO: result: $NM" >&5
3076 echo "${ECHO_T}$NM" >&6
3077
3078 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3079 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3080 LN_S=$as_ln_s
3081 if test "$LN_S" = "ln -s"; then
3082 echo "$as_me:$LINENO: result: yes" >&5
3083 echo "${ECHO_T}yes" >&6
3084 else
3085 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3086 echo "${ECHO_T}no, using $LN_S" >&6
3087 fi
3088
3089 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3090 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3091 if test "${lt_cv_deplibs_check_method+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3093 else
3094 lt_cv_file_magic_cmd='$MAGIC_CMD'
3095 lt_cv_file_magic_test_file=
3096 lt_cv_deplibs_check_method='unknown'
3097 # Need to set the preceding variable on all platforms that support
3098 # interlibrary dependencies.
3099 # 'none' -- dependencies not supported.
3100 # `unknown' -- same as none, but documents that we really don't know.
3101 # 'pass_all' -- all dependencies passed with no checks.
3102 # 'test_compile' -- check by making test program.
3103 # 'file_magic [regex]' -- check by looking for files in library path
3104 # which responds to the $file_magic_cmd with a given egrep regex.
3105 # If you have `file' or equivalent on your system and you're not sure
3106 # whether `pass_all' will *always* work, you probably want this one.
3107
3108 case $host_os in
3109 aix*)
3110 lt_cv_deplibs_check_method=pass_all
3111 ;;
3112
3113 beos*)
3114 lt_cv_deplibs_check_method=pass_all
3115 ;;
3116
3117 bsdi4*)
3118 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3119 lt_cv_file_magic_cmd='/usr/bin/file -L'
3120 lt_cv_file_magic_test_file=/shlib/libc.so
3121 ;;
3122
3123 cygwin* | mingw* |pw32*)
3124 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3125 lt_cv_file_magic_cmd='$OBJDUMP -f'
3126 ;;
3127
3128 darwin* | rhapsody*)
3129 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3130 lt_cv_file_magic_cmd='/usr/bin/file -L'
3131 case "$host_os" in
3132 rhapsody* | darwin1.012)
3133 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3134 ;;
3135 *) # Darwin 1.3 on
3136 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3137 ;;
3138 esac
3139 ;;
3140
3141 freebsd* | kfreebsd*-gnu)
3142 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3143 case $host_cpu in
3144 i*86 )
3145 # Not sure whether the presence of OpenBSD here was a mistake.
3146 # Let's accept both of them until this is cleared up.
3147 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3148 lt_cv_file_magic_cmd=/usr/bin/file
3149 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3150 ;;
3151 esac
3152 else
3153 lt_cv_deplibs_check_method=pass_all
3154 fi
3155 ;;
3156
3157 gnu*)
3158 lt_cv_deplibs_check_method=pass_all
3159 ;;
3160
3161 hpux10.20*|hpux11*)
3162 case $host_cpu in
3163 hppa*)
3164 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3165 lt_cv_file_magic_cmd=/usr/bin/file
3166 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3167 ;;
3168 ia64*)
3169 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3170 lt_cv_file_magic_cmd=/usr/bin/file
3171 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3172 ;;
3173 esac
3174 ;;
3175
3176 irix5* | irix6*)
3177 case $host_os in
3178 irix5*)
3179 # this will be overridden with pass_all, but let us keep it just in case
3180 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3181 ;;
3182 *)
3183 case $LD in
3184 *-32|*"-32 ") libmagic=32-bit;;
3185 *-n32|*"-n32 ") libmagic=N32;;
3186 *-64|*"-64 ") libmagic=64-bit;;
3187 *) libmagic=never-match;;
3188 esac
3189 # this will be overridden with pass_all, but let us keep it just in case
3190 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3191 ;;
3192 esac
3193 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3194 lt_cv_deplibs_check_method=pass_all
3195 ;;
3196
3197 # This must be Linux ELF.
3198 linux-gnu*)
3199 case $host_cpu in
3200 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3201 lt_cv_deplibs_check_method=pass_all ;;
3202 *)
3203 # glibc up to 2.1.1 does not perform some relocations on ARM
3204 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3205 esac
3206 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3207 ;;
3208
3209 netbsd* | knetbsd*-gnu)
3210 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3211 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3212 else
3213 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3214 fi
3215 ;;
3216
3217 newsos6)
3218 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3219 lt_cv_file_magic_cmd=/usr/bin/file
3220 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3221 ;;
3222
3223 osf3* | osf4* | osf5*)
3224 # this will be overridden with pass_all, but let us keep it just in case
3225 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3226 lt_cv_file_magic_test_file=/shlib/libc.so
3227 lt_cv_deplibs_check_method=pass_all
3228 ;;
3229
3230 sco3.2v5*)
3231 lt_cv_deplibs_check_method=pass_all
3232 ;;
3233
3234 solaris*)
3235 lt_cv_deplibs_check_method=pass_all
3236 lt_cv_file_magic_test_file=/lib/libc.so
3237 ;;
3238
3239 sysv5uw[78]* | sysv4*uw2*)
3240 lt_cv_deplibs_check_method=pass_all
3241 ;;
3242
3243 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3244 case $host_vendor in
3245 ncr)
3246 lt_cv_deplibs_check_method=pass_all
3247 ;;
3248 motorola)
3249 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]'
3250 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3251 ;;
3252 esac
3253 ;;
3254 esac
3255
3256 fi
3257 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3258 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3259 file_magic_cmd=$lt_cv_file_magic_cmd
3260 deplibs_check_method=$lt_cv_deplibs_check_method
3261
3262
3263
3264
3265 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3266
3267 # Only perform the check for file, if the check method requires it
3268 case $deplibs_check_method in
3269 file_magic*)
3270 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3271 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3272 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3273 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276 case $MAGIC_CMD in
3277 /*)
3278 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3279 ;;
3280 ?:/*)
3281 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3282 ;;
3283 *)
3284 ac_save_MAGIC_CMD="$MAGIC_CMD"
3285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3286 ac_dummy="/usr/bin:$PATH"
3287 for ac_dir in $ac_dummy; do
3288 test -z "$ac_dir" && ac_dir=.
3289 if test -f $ac_dir/${ac_tool_prefix}file; then
3290 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3291 if test -n "$file_magic_test_file"; then
3292 case $deplibs_check_method in
3293 "file_magic "*)
3294 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3295 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3296 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3297 egrep "$file_magic_regex" > /dev/null; then
3298 :
3299 else
3300 cat <<EOF 1>&2
3301
3302 *** Warning: the command libtool uses to detect shared libraries,
3303 *** $file_magic_cmd, produces output that libtool cannot recognize.
3304 *** The result is that libtool may fail to recognize shared libraries
3305 *** as such. This will affect the creation of libtool libraries that
3306 *** depend on shared libraries, but programs linked with such libtool
3307 *** libraries will work regardless of this problem. Nevertheless, you
3308 *** may want to report the problem to your system manager and/or to
3309 *** bug-libtool@gnu.org
3310
3311 EOF
3312 fi ;;
3313 esac
3314 fi
3315 break
3316 fi
3317 done
3318 IFS="$ac_save_ifs"
3319 MAGIC_CMD="$ac_save_MAGIC_CMD"
3320 ;;
3321 esac
3322 fi
3323
3324 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3325 if test -n "$MAGIC_CMD"; then
3326 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3327 echo "${ECHO_T}$MAGIC_CMD" >&6
3328 else
3329 echo "$as_me:$LINENO: result: no" >&5
3330 echo "${ECHO_T}no" >&6
3331 fi
3332
3333 if test -z "$lt_cv_path_MAGIC_CMD"; then
3334 if test -n "$ac_tool_prefix"; then
3335 echo "$as_me:$LINENO: checking for file" >&5
3336 echo $ECHO_N "checking for file... $ECHO_C" >&6
3337 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 else
3340 case $MAGIC_CMD in
3341 /*)
3342 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3343 ;;
3344 ?:/*)
3345 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3346 ;;
3347 *)
3348 ac_save_MAGIC_CMD="$MAGIC_CMD"
3349 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3350 ac_dummy="/usr/bin:$PATH"
3351 for ac_dir in $ac_dummy; do
3352 test -z "$ac_dir" && ac_dir=.
3353 if test -f $ac_dir/file; then
3354 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3355 if test -n "$file_magic_test_file"; then
3356 case $deplibs_check_method in
3357 "file_magic "*)
3358 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3359 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3360 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3361 egrep "$file_magic_regex" > /dev/null; then
3362 :
3363 else
3364 cat <<EOF 1>&2
3365
3366 *** Warning: the command libtool uses to detect shared libraries,
3367 *** $file_magic_cmd, produces output that libtool cannot recognize.
3368 *** The result is that libtool may fail to recognize shared libraries
3369 *** as such. This will affect the creation of libtool libraries that
3370 *** depend on shared libraries, but programs linked with such libtool
3371 *** libraries will work regardless of this problem. Nevertheless, you
3372 *** may want to report the problem to your system manager and/or to
3373 *** bug-libtool@gnu.org
3374
3375 EOF
3376 fi ;;
3377 esac
3378 fi
3379 break
3380 fi
3381 done
3382 IFS="$ac_save_ifs"
3383 MAGIC_CMD="$ac_save_MAGIC_CMD"
3384 ;;
3385 esac
3386 fi
3387
3388 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3389 if test -n "$MAGIC_CMD"; then
3390 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3391 echo "${ECHO_T}$MAGIC_CMD" >&6
3392 else
3393 echo "$as_me:$LINENO: result: no" >&5
3394 echo "${ECHO_T}no" >&6
3395 fi
3396
3397 else
3398 MAGIC_CMD=:
3399 fi
3400 fi
3401
3402 fi
3403 ;;
3404 esac
3405
3406 if test -n "$ac_tool_prefix"; then
3407 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3408 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3409 echo "$as_me:$LINENO: checking for $ac_word" >&5
3410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3411 if test "${ac_cv_prog_RANLIB+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414 if test -n "$RANLIB"; then
3415 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3416 else
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 for as_dir in $PATH
3419 do
3420 IFS=$as_save_IFS
3421 test -z "$as_dir" && as_dir=.
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3424 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 break 2
3427 fi
3428 done
3429 done
3430
3431 fi
3432 fi
3433 RANLIB=$ac_cv_prog_RANLIB
3434 if test -n "$RANLIB"; then
3435 echo "$as_me:$LINENO: result: $RANLIB" >&5
3436 echo "${ECHO_T}$RANLIB" >&6
3437 else
3438 echo "$as_me:$LINENO: result: no" >&5
3439 echo "${ECHO_T}no" >&6
3440 fi
3441
3442 fi
3443 if test -z "$ac_cv_prog_RANLIB"; then
3444 ac_ct_RANLIB=$RANLIB
3445 # Extract the first word of "ranlib", so it can be a program name with args.
3446 set dummy ranlib; ac_word=$2
3447 echo "$as_me:$LINENO: checking for $ac_word" >&5
3448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3449 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452 if test -n "$ac_ct_RANLIB"; then
3453 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3454 else
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3457 do
3458 IFS=$as_save_IFS
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462 ac_cv_prog_ac_ct_RANLIB="ranlib"
3463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3464 break 2
3465 fi
3466 done
3467 done
3468
3469 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3470 fi
3471 fi
3472 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3473 if test -n "$ac_ct_RANLIB"; then
3474 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3475 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3476 else
3477 echo "$as_me:$LINENO: result: no" >&5
3478 echo "${ECHO_T}no" >&6
3479 fi
3480
3481 RANLIB=$ac_ct_RANLIB
3482 else
3483 RANLIB="$ac_cv_prog_RANLIB"
3484 fi
3485
3486 if test -n "$ac_tool_prefix"; then
3487 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3488 set dummy ${ac_tool_prefix}strip; ac_word=$2
3489 echo "$as_me:$LINENO: checking for $ac_word" >&5
3490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3491 if test "${ac_cv_prog_STRIP+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 else
3494 if test -n "$STRIP"; then
3495 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3496 else
3497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498 for as_dir in $PATH
3499 do
3500 IFS=$as_save_IFS
3501 test -z "$as_dir" && as_dir=.
3502 for ac_exec_ext in '' $ac_executable_extensions; do
3503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3504 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3506 break 2
3507 fi
3508 done
3509 done
3510
3511 fi
3512 fi
3513 STRIP=$ac_cv_prog_STRIP
3514 if test -n "$STRIP"; then
3515 echo "$as_me:$LINENO: result: $STRIP" >&5
3516 echo "${ECHO_T}$STRIP" >&6
3517 else
3518 echo "$as_me:$LINENO: result: no" >&5
3519 echo "${ECHO_T}no" >&6
3520 fi
3521
3522 fi
3523 if test -z "$ac_cv_prog_STRIP"; then
3524 ac_ct_STRIP=$STRIP
3525 # Extract the first word of "strip", so it can be a program name with args.
3526 set dummy strip; ac_word=$2
3527 echo "$as_me:$LINENO: checking for $ac_word" >&5
3528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3529 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 else
3532 if test -n "$ac_ct_STRIP"; then
3533 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3534 else
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 for as_dir in $PATH
3537 do
3538 IFS=$as_save_IFS
3539 test -z "$as_dir" && as_dir=.
3540 for ac_exec_ext in '' $ac_executable_extensions; do
3541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3542 ac_cv_prog_ac_ct_STRIP="strip"
3543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3544 break 2
3545 fi
3546 done
3547 done
3548
3549 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3550 fi
3551 fi
3552 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3553 if test -n "$ac_ct_STRIP"; then
3554 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3555 echo "${ECHO_T}$ac_ct_STRIP" >&6
3556 else
3557 echo "$as_me:$LINENO: result: no" >&5
3558 echo "${ECHO_T}no" >&6
3559 fi
3560
3561 STRIP=$ac_ct_STRIP
3562 else
3563 STRIP="$ac_cv_prog_STRIP"
3564 fi
3565
3566
3567 # Check for any special flags to pass to ltconfig.
3568 libtool_flags="--cache-file=$cache_file"
3569 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3570 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3571 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3572 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3573 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3574
3575
3576 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3577 if test "${enable_libtool_lock+set}" = set; then
3578 enableval="$enable_libtool_lock"
3579
3580 fi;
3581 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3582 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3583
3584
3585 # Check whether --with-pic or --without-pic was given.
3586 if test "${with_pic+set}" = set; then
3587 withval="$with_pic"
3588 pic_mode="$withval"
3589 else
3590 pic_mode=default
3591 fi;
3592 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3593 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3594
3595 # Some flags need to be propagated to the compiler or linker for good
3596 # libtool support.
3597 case $host in
3598 *-*-irix6*)
3599 # Find out which ABI we are using.
3600 echo '#line 3600 "configure"' > conftest.$ac_ext
3601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3602 (eval $ac_compile) 2>&5
3603 ac_status=$?
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; then
3606 if test "$lt_cv_prog_gnu_ld" = yes; then
3607 case `/usr/bin/file conftest.$ac_objext` in
3608 *32-bit*)
3609 LD="${LD-ld} -melf32bsmip"
3610 ;;
3611 *N32*)
3612 LD="${LD-ld} -melf32bmipn32"
3613 ;;
3614 *64-bit*)
3615 LD="${LD-ld} -melf64bmip"
3616 ;;
3617 esac
3618 else
3619 case `/usr/bin/file conftest.$ac_objext` in
3620 *32-bit*)
3621 LD="${LD-ld} -32"
3622 ;;
3623 *N32*)
3624 LD="${LD-ld} -n32"
3625 ;;
3626 *64-bit*)
3627 LD="${LD-ld} -64"
3628 ;;
3629 esac
3630 fi
3631 fi
3632 rm -rf conftest*
3633 ;;
3634
3635 ia64-*-hpux*)
3636 # Find out which ABI we are using.
3637 echo 'int i;' > conftest.$ac_ext
3638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3639 (eval $ac_compile) 2>&5
3640 ac_status=$?
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }; then
3643 case "`/usr/bin/file conftest.o`" in
3644 *ELF-32*)
3645 HPUX_IA64_MODE="32"
3646 ;;
3647 *ELF-64*)
3648 HPUX_IA64_MODE="64"
3649 ;;
3650 esac
3651 fi
3652 rm -rf conftest*
3653 ;;
3654
3655 *-*-sco3.2v5*)
3656 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3657 SAVE_CFLAGS="$CFLAGS"
3658 CFLAGS="$CFLAGS -belf"
3659 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3660 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3661 if test "${lt_cv_cc_needs_belf+set}" = set; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 else
3664
3665
3666 ac_ext=c
3667 ac_cpp='$CPP $CPPFLAGS'
3668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3671
3672 cat >conftest.$ac_ext <<_ACEOF
3673 /* confdefs.h. */
3674 _ACEOF
3675 cat confdefs.h >>conftest.$ac_ext
3676 cat >>conftest.$ac_ext <<_ACEOF
3677 /* end confdefs.h. */
3678
3679 int
3680 main ()
3681 {
3682
3683 ;
3684 return 0;
3685 }
3686 _ACEOF
3687 rm -f conftest.$ac_objext conftest$ac_exeext
3688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3689 (eval $ac_link) 2>conftest.er1
3690 ac_status=$?
3691 grep -v '^ *+' conftest.er1 >conftest.err
3692 rm -f conftest.er1
3693 cat conftest.err >&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); } &&
3696 { ac_try='test -z "$ac_c_werror_flag"
3697 || test ! -s conftest.err'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 (eval $ac_try) 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; } &&
3703 { ac_try='test -s conftest$ac_exeext'
3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705 (eval $ac_try) 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; }; then
3709 lt_cv_cc_needs_belf=yes
3710 else
3711 echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.$ac_ext >&5
3713
3714 lt_cv_cc_needs_belf=no
3715 fi
3716 rm -f conftest.err conftest.$ac_objext \
3717 conftest$ac_exeext conftest.$ac_ext
3718 ac_ext=c
3719 ac_cpp='$CPP $CPPFLAGS'
3720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723
3724 fi
3725 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3726 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3727 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3728 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3729 CFLAGS="$SAVE_CFLAGS"
3730 fi
3731 ;;
3732
3733
3734 esac
3735
3736
3737 # Save cache, so that ltconfig can load it
3738 cat >confcache <<\_ACEOF
3739 # This file is a shell script that caches the results of configure
3740 # tests run on this system so they can be shared between configure
3741 # scripts and configure runs, see configure's option --config-cache.
3742 # It is not useful on other systems. If it contains results you don't
3743 # want to keep, you may remove or edit it.
3744 #
3745 # config.status only pays attention to the cache file if you give it
3746 # the --recheck option to rerun configure.
3747 #
3748 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3749 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3750 # following values.
3751
3752 _ACEOF
3753
3754 # The following way of writing the cache mishandles newlines in values,
3755 # but we know of no workaround that is simple, portable, and efficient.
3756 # So, don't put newlines in cache variables' values.
3757 # Ultrix sh set writes to stderr and can't be redirected directly,
3758 # and sets the high bit in the cache file unless we assign to the vars.
3759 {
3760 (set) 2>&1 |
3761 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3762 *ac_space=\ *)
3763 # `set' does not quote correctly, so add quotes (double-quote
3764 # substitution turns \\\\ into \\, and sed turns \\ into \).
3765 sed -n \
3766 "s/'/'\\\\''/g;
3767 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3768 ;;
3769 *)
3770 # `set' quotes correctly as required by POSIX, so do not add quotes.
3771 sed -n \
3772 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3773 ;;
3774 esac;
3775 } |
3776 sed '
3777 t clear
3778 : clear
3779 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3780 t end
3781 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3782 : end' >>confcache
3783 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3784 if test -w $cache_file; then
3785 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3786 cat confcache >$cache_file
3787 else
3788 echo "not updating unwritable cache $cache_file"
3789 fi
3790 fi
3791 rm -f confcache
3792
3793 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3794 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3795 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3796 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3797 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3798 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3799 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
3800 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3801 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
3802 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3803 echo "$as_me: error: libtool configure failed" >&2;}
3804 { (exit 1); exit 1; }; }
3805
3806 # Reload cache, that may have been modified by ltconfig
3807 if test -r "$cache_file"; then
3808 # Some versions of bash will fail to source /dev/null (special
3809 # files actually), so we avoid doing that.
3810 if test -f "$cache_file"; then
3811 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3812 echo "$as_me: loading cache $cache_file" >&6;}
3813 case $cache_file in
3814 [\\/]* | ?:[\\/]* ) . $cache_file;;
3815 *) . ./$cache_file;;
3816 esac
3817 fi
3818 else
3819 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3820 echo "$as_me: creating cache $cache_file" >&6;}
3821 >$cache_file
3822 fi
3823
3824
3825 # This can be used to rebuild libtool when needed
3826 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
3827
3828 # Always use our own libtool.
3829 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3830
3831 # Redirect the config.log output again, so that the ltconfig log is not
3832 # clobbered by the next message.
3833 exec 5>>./config.log
3834
3835
3836
3837
3838
3839
3840
3841 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
3842 if test "${enable_64_bit_bfd+set}" = set; then
3843 enableval="$enable_64_bit_bfd"
3844 case "${enableval}" in
3845 yes) want64=true ;;
3846 no) want64=false ;;
3847 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
3848 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
3849 { (exit 1); exit 1; }; } ;;
3850 esac
3851 else
3852 want64=false
3853 fi; # Check whether --enable-targets or --disable-targets was given.
3854 if test "${enable_targets+set}" = set; then
3855 enableval="$enable_targets"
3856 case "${enableval}" in
3857 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3858 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3859 { (exit 1); exit 1; }; }
3860 ;;
3861 no) enable_targets= ;;
3862 *) enable_targets=$enableval ;;
3863 esac
3864 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
3865 if test "${enable_commonbfdlib+set}" = set; then
3866 enableval="$enable_commonbfdlib"
3867 case "${enableval}" in
3868 yes) commonbfdlib=true ;;
3869 no) commonbfdlib=false ;;
3870 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
3871 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
3872 { (exit 1); exit 1; }; } ;;
3873 esac
3874 fi;
3875 # Check whether --with-mmap or --without-mmap was given.
3876 if test "${with_mmap+set}" = set; then
3877 withval="$with_mmap"
3878 case "${withval}" in
3879 yes) want_mmap=true ;;
3880 no) want_mmap=false ;;
3881 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
3882 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
3883 { (exit 1); exit 1; }; } ;;
3884 esac
3885 else
3886 want_mmap=false
3887 fi;
3888 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
3889 # Check whether --enable-build-warnings or --disable-build-warnings was given.
3890 if test "${enable_build_warnings+set}" = set; then
3891 enableval="$enable_build_warnings"
3892 case "${enableval}" in
3893 yes) ;;
3894 no) build_warnings="-w";;
3895 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3896 build_warnings="${build_warnings} ${t}";;
3897 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3898 build_warnings="${t} ${build_warnings}";;
3899 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3900 esac
3901 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
3902 echo "Setting warning flags = $build_warnings" 6>&1
3903 fi
3904 fi; WARN_CFLAGS=""
3905 if test "x${build_warnings}" != x && test "x$GCC" = xyes ; then
3906 WARN_CFLAGS="${build_warnings}"
3907 fi
3908
3909
3910
3911 ac_config_headers="$ac_config_headers config.h:config.in"
3912
3913 ac_config_commands="$ac_config_commands default-1"
3914
3915
3916 if test -z "$target" ; then
3917 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
3918 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
3919 { (exit 1); exit 1; }; }
3920 fi
3921
3922 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3923 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3924 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3925 if test "${enable_maintainer_mode+set}" = set; then
3926 enableval="$enable_maintainer_mode"
3927 USE_MAINTAINER_MODE=$enableval
3928 else
3929 USE_MAINTAINER_MODE=no
3930 fi;
3931 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3932 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3933
3934
3935 if test $USE_MAINTAINER_MODE = yes; then
3936 MAINTAINER_MODE_TRUE=
3937 MAINTAINER_MODE_FALSE='#'
3938 else
3939 MAINTAINER_MODE_TRUE='#'
3940 MAINTAINER_MODE_FALSE=
3941 fi
3942 MAINT=$MAINTAINER_MODE_TRUE
3943
3944
3945 case ${build_alias} in
3946 "") build_noncanonical=${build} ;;
3947 *) build_noncanonical=${build_alias} ;;
3948 esac
3949
3950 case ${host_alias} in
3951 "") host_noncanonical=${build_noncanonical} ;;
3952 *) host_noncanonical=${host_alias} ;;
3953 esac
3954
3955 case ${target_alias} in
3956 "") target_noncanonical=${host_noncanonical} ;;
3957 *) target_noncanonical=${target_alias} ;;
3958 esac
3959
3960 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
3961 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
3962 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
3963 if test "${enable_install_libbfd+set}" = set; then
3964 enableval="$enable_install_libbfd"
3965 install_libbfd_p=$enableval
3966 else
3967 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
3968 install_libbfd_p=yes
3969 else
3970 install_libbfd_p=no
3971 fi
3972 fi;
3973 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
3974 echo "${ECHO_T}$install_libbfd_p" >&6
3975
3976
3977 if test $install_libbfd_p = yes; then
3978 INSTALL_LIBBFD_TRUE=
3979 INSTALL_LIBBFD_FALSE='#'
3980 else
3981 INSTALL_LIBBFD_TRUE='#'
3982 INSTALL_LIBBFD_FALSE=
3983 fi
3984 # Need _noncanonical variables for this.
3985
3986
3987
3988
3989 # libbfd.a is a host library containing target dependent code
3990 bfdlibdir='$(libdir)'
3991 bfdincludedir='$(includedir)'
3992 if test "${host}" != "${target}"; then
3993 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
3994 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
3995 fi
3996
3997
3998
3999
4000
4001
4002 host64=false
4003 target64=false
4004 bfd_default_target_size=32
4005
4006 # host stuff:
4007
4008 ac_ext=c
4009 ac_cpp='$CPP $CPPFLAGS'
4010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4013 if test -n "$ac_tool_prefix"; then
4014 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4015 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4016 echo "$as_me:$LINENO: checking for $ac_word" >&5
4017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4018 if test "${ac_cv_prog_CC+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021 if test -n "$CC"; then
4022 ac_cv_prog_CC="$CC" # Let the user override the test.
4023 else
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in $PATH
4026 do
4027 IFS=$as_save_IFS
4028 test -z "$as_dir" && as_dir=.
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4031 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4033 break 2
4034 fi
4035 done
4036 done
4037
4038 fi
4039 fi
4040 CC=$ac_cv_prog_CC
4041 if test -n "$CC"; then
4042 echo "$as_me:$LINENO: result: $CC" >&5
4043 echo "${ECHO_T}$CC" >&6
4044 else
4045 echo "$as_me:$LINENO: result: no" >&5
4046 echo "${ECHO_T}no" >&6
4047 fi
4048
4049 fi
4050 if test -z "$ac_cv_prog_CC"; then
4051 ac_ct_CC=$CC
4052 # Extract the first word of "gcc", so it can be a program name with args.
4053 set dummy gcc; ac_word=$2
4054 echo "$as_me:$LINENO: checking for $ac_word" >&5
4055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4056 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4058 else
4059 if test -n "$ac_ct_CC"; then
4060 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4061 else
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 for as_dir in $PATH
4064 do
4065 IFS=$as_save_IFS
4066 test -z "$as_dir" && as_dir=.
4067 for ac_exec_ext in '' $ac_executable_extensions; do
4068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4069 ac_cv_prog_ac_ct_CC="gcc"
4070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4071 break 2
4072 fi
4073 done
4074 done
4075
4076 fi
4077 fi
4078 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4079 if test -n "$ac_ct_CC"; then
4080 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4081 echo "${ECHO_T}$ac_ct_CC" >&6
4082 else
4083 echo "$as_me:$LINENO: result: no" >&5
4084 echo "${ECHO_T}no" >&6
4085 fi
4086
4087 CC=$ac_ct_CC
4088 else
4089 CC="$ac_cv_prog_CC"
4090 fi
4091
4092 if test -z "$CC"; then
4093 if test -n "$ac_tool_prefix"; then
4094 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4095 set dummy ${ac_tool_prefix}cc; ac_word=$2
4096 echo "$as_me:$LINENO: checking for $ac_word" >&5
4097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4098 if test "${ac_cv_prog_CC+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101 if test -n "$CC"; then
4102 ac_cv_prog_CC="$CC" # Let the user override the test.
4103 else
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH
4106 do
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4111 ac_cv_prog_CC="${ac_tool_prefix}cc"
4112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4113 break 2
4114 fi
4115 done
4116 done
4117
4118 fi
4119 fi
4120 CC=$ac_cv_prog_CC
4121 if test -n "$CC"; then
4122 echo "$as_me:$LINENO: result: $CC" >&5
4123 echo "${ECHO_T}$CC" >&6
4124 else
4125 echo "$as_me:$LINENO: result: no" >&5
4126 echo "${ECHO_T}no" >&6
4127 fi
4128
4129 fi
4130 if test -z "$ac_cv_prog_CC"; then
4131 ac_ct_CC=$CC
4132 # Extract the first word of "cc", so it can be a program name with args.
4133 set dummy cc; ac_word=$2
4134 echo "$as_me:$LINENO: checking for $ac_word" >&5
4135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4136 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 else
4139 if test -n "$ac_ct_CC"; then
4140 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4141 else
4142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143 for as_dir in $PATH
4144 do
4145 IFS=$as_save_IFS
4146 test -z "$as_dir" && as_dir=.
4147 for ac_exec_ext in '' $ac_executable_extensions; do
4148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4149 ac_cv_prog_ac_ct_CC="cc"
4150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4151 break 2
4152 fi
4153 done
4154 done
4155
4156 fi
4157 fi
4158 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4159 if test -n "$ac_ct_CC"; then
4160 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4161 echo "${ECHO_T}$ac_ct_CC" >&6
4162 else
4163 echo "$as_me:$LINENO: result: no" >&5
4164 echo "${ECHO_T}no" >&6
4165 fi
4166
4167 CC=$ac_ct_CC
4168 else
4169 CC="$ac_cv_prog_CC"
4170 fi
4171
4172 fi
4173 if test -z "$CC"; then
4174 # Extract the first word of "cc", so it can be a program name with args.
4175 set dummy cc; ac_word=$2
4176 echo "$as_me:$LINENO: checking for $ac_word" >&5
4177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4178 if test "${ac_cv_prog_CC+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181 if test -n "$CC"; then
4182 ac_cv_prog_CC="$CC" # Let the user override the test.
4183 else
4184 ac_prog_rejected=no
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH
4187 do
4188 IFS=$as_save_IFS
4189 test -z "$as_dir" && as_dir=.
4190 for ac_exec_ext in '' $ac_executable_extensions; do
4191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4192 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4193 ac_prog_rejected=yes
4194 continue
4195 fi
4196 ac_cv_prog_CC="cc"
4197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 break 2
4199 fi
4200 done
4201 done
4202
4203 if test $ac_prog_rejected = yes; then
4204 # We found a bogon in the path, so make sure we never use it.
4205 set dummy $ac_cv_prog_CC
4206 shift
4207 if test $# != 0; then
4208 # We chose a different compiler from the bogus one.
4209 # However, it has the same basename, so the bogon will be chosen
4210 # first if we set CC to just the basename; use the full file name.
4211 shift
4212 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4213 fi
4214 fi
4215 fi
4216 fi
4217 CC=$ac_cv_prog_CC
4218 if test -n "$CC"; then
4219 echo "$as_me:$LINENO: result: $CC" >&5
4220 echo "${ECHO_T}$CC" >&6
4221 else
4222 echo "$as_me:$LINENO: result: no" >&5
4223 echo "${ECHO_T}no" >&6
4224 fi
4225
4226 fi
4227 if test -z "$CC"; then
4228 if test -n "$ac_tool_prefix"; then
4229 for ac_prog in cl
4230 do
4231 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4232 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4233 echo "$as_me:$LINENO: checking for $ac_word" >&5
4234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4235 if test "${ac_cv_prog_CC+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4237 else
4238 if test -n "$CC"; then
4239 ac_cv_prog_CC="$CC" # Let the user override the test.
4240 else
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH
4243 do
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4248 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 break 2
4251 fi
4252 done
4253 done
4254
4255 fi
4256 fi
4257 CC=$ac_cv_prog_CC
4258 if test -n "$CC"; then
4259 echo "$as_me:$LINENO: result: $CC" >&5
4260 echo "${ECHO_T}$CC" >&6
4261 else
4262 echo "$as_me:$LINENO: result: no" >&5
4263 echo "${ECHO_T}no" >&6
4264 fi
4265
4266 test -n "$CC" && break
4267 done
4268 fi
4269 if test -z "$CC"; then
4270 ac_ct_CC=$CC
4271 for ac_prog in cl
4272 do
4273 # Extract the first word of "$ac_prog", so it can be a program name with args.
4274 set dummy $ac_prog; ac_word=$2
4275 echo "$as_me:$LINENO: checking for $ac_word" >&5
4276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4277 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280 if test -n "$ac_ct_CC"; then
4281 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4282 else
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH
4285 do
4286 IFS=$as_save_IFS
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4290 ac_cv_prog_ac_ct_CC="$ac_prog"
4291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4292 break 2
4293 fi
4294 done
4295 done
4296
4297 fi
4298 fi
4299 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4300 if test -n "$ac_ct_CC"; then
4301 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4302 echo "${ECHO_T}$ac_ct_CC" >&6
4303 else
4304 echo "$as_me:$LINENO: result: no" >&5
4305 echo "${ECHO_T}no" >&6
4306 fi
4307
4308 test -n "$ac_ct_CC" && break
4309 done
4310
4311 CC=$ac_ct_CC
4312 fi
4313
4314 fi
4315
4316
4317 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4318 See \`config.log' for more details." >&5
4319 echo "$as_me: error: no acceptable C compiler found in \$PATH
4320 See \`config.log' for more details." >&2;}
4321 { (exit 1); exit 1; }; }
4322
4323 # Provide some information about the compiler.
4324 echo "$as_me:$LINENO:" \
4325 "checking for C compiler version" >&5
4326 ac_compiler=`set X $ac_compile; echo $2`
4327 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4328 (eval $ac_compiler --version </dev/null >&5) 2>&5
4329 ac_status=$?
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); }
4332 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4333 (eval $ac_compiler -v </dev/null >&5) 2>&5
4334 ac_status=$?
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }
4337 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4338 (eval $ac_compiler -V </dev/null >&5) 2>&5
4339 ac_status=$?
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }
4342
4343 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4344 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4345 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 else
4348 cat >conftest.$ac_ext <<_ACEOF
4349 /* confdefs.h. */
4350 _ACEOF
4351 cat confdefs.h >>conftest.$ac_ext
4352 cat >>conftest.$ac_ext <<_ACEOF
4353 /* end confdefs.h. */
4354
4355 int
4356 main ()
4357 {
4358 #ifndef __GNUC__
4359 choke me
4360 #endif
4361
4362 ;
4363 return 0;
4364 }
4365 _ACEOF
4366 rm -f conftest.$ac_objext
4367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4368 (eval $ac_compile) 2>conftest.er1
4369 ac_status=$?
4370 grep -v '^ *+' conftest.er1 >conftest.err
4371 rm -f conftest.er1
4372 cat conftest.err >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); } &&
4375 { ac_try='test -z "$ac_c_werror_flag"
4376 || test ! -s conftest.err'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 (eval $ac_try) 2>&5
4379 ac_status=$?
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; } &&
4382 { ac_try='test -s conftest.$ac_objext'
4383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384 (eval $ac_try) 2>&5
4385 ac_status=$?
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; }; then
4388 ac_compiler_gnu=yes
4389 else
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4392
4393 ac_compiler_gnu=no
4394 fi
4395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4396 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4397
4398 fi
4399 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4400 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4401 GCC=`test $ac_compiler_gnu = yes && echo yes`
4402 ac_test_CFLAGS=${CFLAGS+set}
4403 ac_save_CFLAGS=$CFLAGS
4404 CFLAGS="-g"
4405 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4406 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4407 if test "${ac_cv_prog_cc_g+set}" = set; then
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
4409 else
4410 cat >conftest.$ac_ext <<_ACEOF
4411 /* confdefs.h. */
4412 _ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4416
4417 int
4418 main ()
4419 {
4420
4421 ;
4422 return 0;
4423 }
4424 _ACEOF
4425 rm -f conftest.$ac_objext
4426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4427 (eval $ac_compile) 2>conftest.er1
4428 ac_status=$?
4429 grep -v '^ *+' conftest.er1 >conftest.err
4430 rm -f conftest.er1
4431 cat conftest.err >&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); } &&
4434 { ac_try='test -z "$ac_c_werror_flag"
4435 || test ! -s conftest.err'
4436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4437 (eval $ac_try) 2>&5
4438 ac_status=$?
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; } &&
4441 { ac_try='test -s conftest.$ac_objext'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443 (eval $ac_try) 2>&5
4444 ac_status=$?
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; }; then
4447 ac_cv_prog_cc_g=yes
4448 else
4449 echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4451
4452 ac_cv_prog_cc_g=no
4453 fi
4454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4455 fi
4456 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4457 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4458 if test "$ac_test_CFLAGS" = set; then
4459 CFLAGS=$ac_save_CFLAGS
4460 elif test $ac_cv_prog_cc_g = yes; then
4461 if test "$GCC" = yes; then
4462 CFLAGS="-g -O2"
4463 else
4464 CFLAGS="-g"
4465 fi
4466 else
4467 if test "$GCC" = yes; then
4468 CFLAGS="-O2"
4469 else
4470 CFLAGS=
4471 fi
4472 fi
4473 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4474 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4475 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4477 else
4478 ac_cv_prog_cc_stdc=no
4479 ac_save_CC=$CC
4480 cat >conftest.$ac_ext <<_ACEOF
4481 /* confdefs.h. */
4482 _ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h. */
4486 #include <stdarg.h>
4487 #include <stdio.h>
4488 #include <sys/types.h>
4489 #include <sys/stat.h>
4490 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4491 struct buf { int x; };
4492 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4493 static char *e (p, i)
4494 char **p;
4495 int i;
4496 {
4497 return p[i];
4498 }
4499 static char *f (char * (*g) (char **, int), char **p, ...)
4500 {
4501 char *s;
4502 va_list v;
4503 va_start (v,p);
4504 s = g (p, va_arg (v,int));
4505 va_end (v);
4506 return s;
4507 }
4508
4509 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4510 function prototypes and stuff, but not '\xHH' hex character constants.
4511 These don't provoke an error unfortunately, instead are silently treated
4512 as 'x'. The following induces an error, until -std1 is added to get
4513 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4514 array size at least. It's necessary to write '\x00'==0 to get something
4515 that's true only with -std1. */
4516 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4517
4518 int test (int i, double x);
4519 struct s1 {int (*f) (int a);};
4520 struct s2 {int (*f) (double a);};
4521 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4522 int argc;
4523 char **argv;
4524 int
4525 main ()
4526 {
4527 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4528 ;
4529 return 0;
4530 }
4531 _ACEOF
4532 # Don't try gcc -ansi; that turns off useful extensions and
4533 # breaks some systems' header files.
4534 # AIX -qlanglvl=ansi
4535 # Ultrix and OSF/1 -std1
4536 # HP-UX 10.20 and later -Ae
4537 # HP-UX older versions -Aa -D_HPUX_SOURCE
4538 # SVR4 -Xc -D__EXTENSIONS__
4539 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4540 do
4541 CC="$ac_save_CC $ac_arg"
4542 rm -f conftest.$ac_objext
4543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4544 (eval $ac_compile) 2>conftest.er1
4545 ac_status=$?
4546 grep -v '^ *+' conftest.er1 >conftest.err
4547 rm -f conftest.er1
4548 cat conftest.err >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } &&
4551 { ac_try='test -z "$ac_c_werror_flag"
4552 || test ! -s conftest.err'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554 (eval $ac_try) 2>&5
4555 ac_status=$?
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; } &&
4558 { ac_try='test -s conftest.$ac_objext'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560 (eval $ac_try) 2>&5
4561 ac_status=$?
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; }; then
4564 ac_cv_prog_cc_stdc=$ac_arg
4565 break
4566 else
4567 echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4569
4570 fi
4571 rm -f conftest.err conftest.$ac_objext
4572 done
4573 rm -f conftest.$ac_ext conftest.$ac_objext
4574 CC=$ac_save_CC
4575
4576 fi
4577
4578 case "x$ac_cv_prog_cc_stdc" in
4579 x|xno)
4580 echo "$as_me:$LINENO: result: none needed" >&5
4581 echo "${ECHO_T}none needed" >&6 ;;
4582 *)
4583 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4584 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4585 CC="$CC $ac_cv_prog_cc_stdc" ;;
4586 esac
4587
4588 # Some people use a C++ compiler to compile C. Since we use `exit',
4589 # in C++ we need to declare it. In case someone uses the same compiler
4590 # for both compiling C and C++ we need to have the C++ compiler decide
4591 # the declaration of exit, since it's the most demanding environment.
4592 cat >conftest.$ac_ext <<_ACEOF
4593 #ifndef __cplusplus
4594 choke me
4595 #endif
4596 _ACEOF
4597 rm -f conftest.$ac_objext
4598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4599 (eval $ac_compile) 2>conftest.er1
4600 ac_status=$?
4601 grep -v '^ *+' conftest.er1 >conftest.err
4602 rm -f conftest.er1
4603 cat conftest.err >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } &&
4606 { ac_try='test -z "$ac_c_werror_flag"
4607 || test ! -s conftest.err'
4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 (eval $ac_try) 2>&5
4610 ac_status=$?
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; } &&
4613 { ac_try='test -s conftest.$ac_objext'
4614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 (eval $ac_try) 2>&5
4616 ac_status=$?
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; }; then
4619 for ac_declaration in \
4620 '' \
4621 'extern "C" void std::exit (int) throw (); using std::exit;' \
4622 'extern "C" void std::exit (int); using std::exit;' \
4623 'extern "C" void exit (int) throw ();' \
4624 'extern "C" void exit (int);' \
4625 'void exit (int);'
4626 do
4627 cat >conftest.$ac_ext <<_ACEOF
4628 /* confdefs.h. */
4629 _ACEOF
4630 cat confdefs.h >>conftest.$ac_ext
4631 cat >>conftest.$ac_ext <<_ACEOF
4632 /* end confdefs.h. */
4633 $ac_declaration
4634 #include <stdlib.h>
4635 int
4636 main ()
4637 {
4638 exit (42);
4639 ;
4640 return 0;
4641 }
4642 _ACEOF
4643 rm -f conftest.$ac_objext
4644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4645 (eval $ac_compile) 2>conftest.er1
4646 ac_status=$?
4647 grep -v '^ *+' conftest.er1 >conftest.err
4648 rm -f conftest.er1
4649 cat conftest.err >&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } &&
4652 { ac_try='test -z "$ac_c_werror_flag"
4653 || test ! -s conftest.err'
4654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655 (eval $ac_try) 2>&5
4656 ac_status=$?
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }; } &&
4659 { ac_try='test -s conftest.$ac_objext'
4660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661 (eval $ac_try) 2>&5
4662 ac_status=$?
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }; }; then
4665 :
4666 else
4667 echo "$as_me: failed program was:" >&5
4668 sed 's/^/| /' conftest.$ac_ext >&5
4669
4670 continue
4671 fi
4672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4673 cat >conftest.$ac_ext <<_ACEOF
4674 /* confdefs.h. */
4675 _ACEOF
4676 cat confdefs.h >>conftest.$ac_ext
4677 cat >>conftest.$ac_ext <<_ACEOF
4678 /* end confdefs.h. */
4679 $ac_declaration
4680 int
4681 main ()
4682 {
4683 exit (42);
4684 ;
4685 return 0;
4686 }
4687 _ACEOF
4688 rm -f conftest.$ac_objext
4689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4690 (eval $ac_compile) 2>conftest.er1
4691 ac_status=$?
4692 grep -v '^ *+' conftest.er1 >conftest.err
4693 rm -f conftest.er1
4694 cat conftest.err >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } &&
4697 { ac_try='test -z "$ac_c_werror_flag"
4698 || test ! -s conftest.err'
4699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4700 (eval $ac_try) 2>&5
4701 ac_status=$?
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }; } &&
4704 { ac_try='test -s conftest.$ac_objext'
4705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706 (eval $ac_try) 2>&5
4707 ac_status=$?
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); }; }; then
4710 break
4711 else
4712 echo "$as_me: failed program was:" >&5
4713 sed 's/^/| /' conftest.$ac_ext >&5
4714
4715 fi
4716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4717 done
4718 rm -f conftest*
4719 if test -n "$ac_declaration"; then
4720 echo '#ifdef __cplusplus' >>confdefs.h
4721 echo $ac_declaration >>confdefs.h
4722 echo '#endif' >>confdefs.h
4723 fi
4724
4725 else
4726 echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4728
4729 fi
4730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4731 ac_ext=c
4732 ac_cpp='$CPP $CPPFLAGS'
4733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4736
4737
4738 ALL_LINGUAS="fr tr ja es sv da zh_CN ro"
4739 if test -n "$ac_tool_prefix"; then
4740 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4741 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4742 echo "$as_me:$LINENO: checking for $ac_word" >&5
4743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4744 if test "${ac_cv_prog_RANLIB+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747 if test -n "$RANLIB"; then
4748 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4749 else
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4752 do
4753 IFS=$as_save_IFS
4754 test -z "$as_dir" && as_dir=.
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4757 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4759 break 2
4760 fi
4761 done
4762 done
4763
4764 fi
4765 fi
4766 RANLIB=$ac_cv_prog_RANLIB
4767 if test -n "$RANLIB"; then
4768 echo "$as_me:$LINENO: result: $RANLIB" >&5
4769 echo "${ECHO_T}$RANLIB" >&6
4770 else
4771 echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6
4773 fi
4774
4775 fi
4776 if test -z "$ac_cv_prog_RANLIB"; then
4777 ac_ct_RANLIB=$RANLIB
4778 # Extract the first word of "ranlib", so it can be a program name with args.
4779 set dummy ranlib; ac_word=$2
4780 echo "$as_me:$LINENO: checking for $ac_word" >&5
4781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4782 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785 if test -n "$ac_ct_RANLIB"; then
4786 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4787 else
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 for as_dir in $PATH
4790 do
4791 IFS=$as_save_IFS
4792 test -z "$as_dir" && as_dir=.
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4795 ac_cv_prog_ac_ct_RANLIB="ranlib"
4796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4797 break 2
4798 fi
4799 done
4800 done
4801
4802 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4803 fi
4804 fi
4805 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4806 if test -n "$ac_ct_RANLIB"; then
4807 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4808 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4809 else
4810 echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6
4812 fi
4813
4814 RANLIB=$ac_ct_RANLIB
4815 else
4816 RANLIB="$ac_cv_prog_RANLIB"
4817 fi
4818
4819 ac_ext=c
4820 ac_cpp='$CPP $CPPFLAGS'
4821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4824 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4825 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4826 # On Suns, sometimes $CPP names a directory.
4827 if test -n "$CPP" && test -d "$CPP"; then
4828 CPP=
4829 fi
4830 if test -z "$CPP"; then
4831 if test "${ac_cv_prog_CPP+set}" = set; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4833 else
4834 # Double quotes because CPP needs to be expanded
4835 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4836 do
4837 ac_preproc_ok=false
4838 for ac_c_preproc_warn_flag in '' yes
4839 do
4840 # Use a header file that comes with gcc, so configuring glibc
4841 # with a fresh cross-compiler works.
4842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4843 # <limits.h> exists even on freestanding compilers.
4844 # On the NeXT, cc -E runs the code through the compiler's parser,
4845 # not just through cpp. "Syntax error" is here to catch this case.
4846 cat >conftest.$ac_ext <<_ACEOF
4847 /* confdefs.h. */
4848 _ACEOF
4849 cat confdefs.h >>conftest.$ac_ext
4850 cat >>conftest.$ac_ext <<_ACEOF
4851 /* end confdefs.h. */
4852 #ifdef __STDC__
4853 # include <limits.h>
4854 #else
4855 # include <assert.h>
4856 #endif
4857 Syntax error
4858 _ACEOF
4859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4861 ac_status=$?
4862 grep -v '^ *+' conftest.er1 >conftest.err
4863 rm -f conftest.er1
4864 cat conftest.err >&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } >/dev/null; then
4867 if test -s conftest.err; then
4868 ac_cpp_err=$ac_c_preproc_warn_flag
4869 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4870 else
4871 ac_cpp_err=
4872 fi
4873 else
4874 ac_cpp_err=yes
4875 fi
4876 if test -z "$ac_cpp_err"; then
4877 :
4878 else
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4881
4882 # Broken: fails on valid input.
4883 continue
4884 fi
4885 rm -f conftest.err conftest.$ac_ext
4886
4887 # OK, works on sane cases. Now check whether non-existent headers
4888 # can be detected and how.
4889 cat >conftest.$ac_ext <<_ACEOF
4890 /* confdefs.h. */
4891 _ACEOF
4892 cat confdefs.h >>conftest.$ac_ext
4893 cat >>conftest.$ac_ext <<_ACEOF
4894 /* end confdefs.h. */
4895 #include <ac_nonexistent.h>
4896 _ACEOF
4897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4898 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4899 ac_status=$?
4900 grep -v '^ *+' conftest.er1 >conftest.err
4901 rm -f conftest.er1
4902 cat conftest.err >&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); } >/dev/null; then
4905 if test -s conftest.err; then
4906 ac_cpp_err=$ac_c_preproc_warn_flag
4907 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4908 else
4909 ac_cpp_err=
4910 fi
4911 else
4912 ac_cpp_err=yes
4913 fi
4914 if test -z "$ac_cpp_err"; then
4915 # Broken: success on invalid input.
4916 continue
4917 else
4918 echo "$as_me: failed program was:" >&5
4919 sed 's/^/| /' conftest.$ac_ext >&5
4920
4921 # Passes both tests.
4922 ac_preproc_ok=:
4923 break
4924 fi
4925 rm -f conftest.err conftest.$ac_ext
4926
4927 done
4928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4929 rm -f conftest.err conftest.$ac_ext
4930 if $ac_preproc_ok; then
4931 break
4932 fi
4933
4934 done
4935 ac_cv_prog_CPP=$CPP
4936
4937 fi
4938 CPP=$ac_cv_prog_CPP
4939 else
4940 ac_cv_prog_CPP=$CPP
4941 fi
4942 echo "$as_me:$LINENO: result: $CPP" >&5
4943 echo "${ECHO_T}$CPP" >&6
4944 ac_preproc_ok=false
4945 for ac_c_preproc_warn_flag in '' yes
4946 do
4947 # Use a header file that comes with gcc, so configuring glibc
4948 # with a fresh cross-compiler works.
4949 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4950 # <limits.h> exists even on freestanding compilers.
4951 # On the NeXT, cc -E runs the code through the compiler's parser,
4952 # not just through cpp. "Syntax error" is here to catch this case.
4953 cat >conftest.$ac_ext <<_ACEOF
4954 /* confdefs.h. */
4955 _ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h. */
4959 #ifdef __STDC__
4960 # include <limits.h>
4961 #else
4962 # include <assert.h>
4963 #endif
4964 Syntax error
4965 _ACEOF
4966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4968 ac_status=$?
4969 grep -v '^ *+' conftest.er1 >conftest.err
4970 rm -f conftest.er1
4971 cat conftest.err >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } >/dev/null; then
4974 if test -s conftest.err; then
4975 ac_cpp_err=$ac_c_preproc_warn_flag
4976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4977 else
4978 ac_cpp_err=
4979 fi
4980 else
4981 ac_cpp_err=yes
4982 fi
4983 if test -z "$ac_cpp_err"; then
4984 :
4985 else
4986 echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.$ac_ext >&5
4988
4989 # Broken: fails on valid input.
4990 continue
4991 fi
4992 rm -f conftest.err conftest.$ac_ext
4993
4994 # OK, works on sane cases. Now check whether non-existent headers
4995 # can be detected and how.
4996 cat >conftest.$ac_ext <<_ACEOF
4997 /* confdefs.h. */
4998 _ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h. */
5002 #include <ac_nonexistent.h>
5003 _ACEOF
5004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5006 ac_status=$?
5007 grep -v '^ *+' conftest.er1 >conftest.err
5008 rm -f conftest.er1
5009 cat conftest.err >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } >/dev/null; then
5012 if test -s conftest.err; then
5013 ac_cpp_err=$ac_c_preproc_warn_flag
5014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5015 else
5016 ac_cpp_err=
5017 fi
5018 else
5019 ac_cpp_err=yes
5020 fi
5021 if test -z "$ac_cpp_err"; then
5022 # Broken: success on invalid input.
5023 continue
5024 else
5025 echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.$ac_ext >&5
5027
5028 # Passes both tests.
5029 ac_preproc_ok=:
5030 break
5031 fi
5032 rm -f conftest.err conftest.$ac_ext
5033
5034 done
5035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5036 rm -f conftest.err conftest.$ac_ext
5037 if $ac_preproc_ok; then
5038 :
5039 else
5040 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5041 See \`config.log' for more details." >&5
5042 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5043 See \`config.log' for more details." >&2;}
5044 { (exit 1); exit 1; }; }
5045 fi
5046
5047 ac_ext=c
5048 ac_cpp='$CPP $CPPFLAGS'
5049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5052
5053
5054 echo "$as_me:$LINENO: checking for egrep" >&5
5055 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5056 if test "${ac_cv_prog_egrep+set}" = set; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 else
5059 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5060 then ac_cv_prog_egrep='grep -E'
5061 else ac_cv_prog_egrep='egrep'
5062 fi
5063 fi
5064 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5065 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5066 EGREP=$ac_cv_prog_egrep
5067
5068
5069 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5070 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5071 if test "${ac_cv_header_stdc+set}" = set; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5073 else
5074 cat >conftest.$ac_ext <<_ACEOF
5075 /* confdefs.h. */
5076 _ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5080 #include <stdlib.h>
5081 #include <stdarg.h>
5082 #include <string.h>
5083 #include <float.h>
5084
5085 int
5086 main ()
5087 {
5088
5089 ;
5090 return 0;
5091 }
5092 _ACEOF
5093 rm -f conftest.$ac_objext
5094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5095 (eval $ac_compile) 2>conftest.er1
5096 ac_status=$?
5097 grep -v '^ *+' conftest.er1 >conftest.err
5098 rm -f conftest.er1
5099 cat conftest.err >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } &&
5102 { ac_try='test -z "$ac_c_werror_flag"
5103 || test ! -s conftest.err'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105 (eval $ac_try) 2>&5
5106 ac_status=$?
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; } &&
5109 { ac_try='test -s conftest.$ac_objext'
5110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 (eval $ac_try) 2>&5
5112 ac_status=$?
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; }; then
5115 ac_cv_header_stdc=yes
5116 else
5117 echo "$as_me: failed program was:" >&5
5118 sed 's/^/| /' conftest.$ac_ext >&5
5119
5120 ac_cv_header_stdc=no
5121 fi
5122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5123
5124 if test $ac_cv_header_stdc = yes; then
5125 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5126 cat >conftest.$ac_ext <<_ACEOF
5127 /* confdefs.h. */
5128 _ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h. */
5132 #include <string.h>
5133
5134 _ACEOF
5135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5136 $EGREP "memchr" >/dev/null 2>&1; then
5137 :
5138 else
5139 ac_cv_header_stdc=no
5140 fi
5141 rm -f conftest*
5142
5143 fi
5144
5145 if test $ac_cv_header_stdc = yes; then
5146 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5147 cat >conftest.$ac_ext <<_ACEOF
5148 /* confdefs.h. */
5149 _ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h. */
5153 #include <stdlib.h>
5154
5155 _ACEOF
5156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5157 $EGREP "free" >/dev/null 2>&1; then
5158 :
5159 else
5160 ac_cv_header_stdc=no
5161 fi
5162 rm -f conftest*
5163
5164 fi
5165
5166 if test $ac_cv_header_stdc = yes; then
5167 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5168 if test "$cross_compiling" = yes; then
5169 :
5170 else
5171 cat >conftest.$ac_ext <<_ACEOF
5172 /* confdefs.h. */
5173 _ACEOF
5174 cat confdefs.h >>conftest.$ac_ext
5175 cat >>conftest.$ac_ext <<_ACEOF
5176 /* end confdefs.h. */
5177 #include <ctype.h>
5178 #if ((' ' & 0x0FF) == 0x020)
5179 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5180 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5181 #else
5182 # define ISLOWER(c) \
5183 (('a' <= (c) && (c) <= 'i') \
5184 || ('j' <= (c) && (c) <= 'r') \
5185 || ('s' <= (c) && (c) <= 'z'))
5186 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5187 #endif
5188
5189 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5190 int
5191 main ()
5192 {
5193 int i;
5194 for (i = 0; i < 256; i++)
5195 if (XOR (islower (i), ISLOWER (i))
5196 || toupper (i) != TOUPPER (i))
5197 exit(2);
5198 exit (0);
5199 }
5200 _ACEOF
5201 rm -f conftest$ac_exeext
5202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5203 (eval $ac_link) 2>&5
5204 ac_status=$?
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208 (eval $ac_try) 2>&5
5209 ac_status=$?
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }; }; then
5212 :
5213 else
5214 echo "$as_me: program exited with status $ac_status" >&5
5215 echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.$ac_ext >&5
5217
5218 ( exit $ac_status )
5219 ac_cv_header_stdc=no
5220 fi
5221 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5222 fi
5223 fi
5224 fi
5225 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5226 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5227 if test $ac_cv_header_stdc = yes; then
5228
5229 cat >>confdefs.h <<\_ACEOF
5230 #define STDC_HEADERS 1
5231 _ACEOF
5232
5233 fi
5234
5235 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5236 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5237 if test "${ac_cv_c_const+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 else
5240 cat >conftest.$ac_ext <<_ACEOF
5241 /* confdefs.h. */
5242 _ACEOF
5243 cat confdefs.h >>conftest.$ac_ext
5244 cat >>conftest.$ac_ext <<_ACEOF
5245 /* end confdefs.h. */
5246
5247 int
5248 main ()
5249 {
5250 /* FIXME: Include the comments suggested by Paul. */
5251 #ifndef __cplusplus
5252 /* Ultrix mips cc rejects this. */
5253 typedef int charset[2];
5254 const charset x;
5255 /* SunOS 4.1.1 cc rejects this. */
5256 char const *const *ccp;
5257 char **p;
5258 /* NEC SVR4.0.2 mips cc rejects this. */
5259 struct point {int x, y;};
5260 static struct point const zero = {0,0};
5261 /* AIX XL C 1.02.0.0 rejects this.
5262 It does not let you subtract one const X* pointer from another in
5263 an arm of an if-expression whose if-part is not a constant
5264 expression */
5265 const char *g = "string";
5266 ccp = &g + (g ? g-g : 0);
5267 /* HPUX 7.0 cc rejects these. */
5268 ++ccp;
5269 p = (char**) ccp;
5270 ccp = (char const *const *) p;
5271 { /* SCO 3.2v4 cc rejects this. */
5272 char *t;
5273 char const *s = 0 ? (char *) 0 : (char const *) 0;
5274
5275 *t++ = 0;
5276 }
5277 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5278 int x[] = {25, 17};
5279 const int *foo = &x[0];
5280 ++foo;
5281 }
5282 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5283 typedef const int *iptr;
5284 iptr p = 0;
5285 ++p;
5286 }
5287 { /* AIX XL C 1.02.0.0 rejects this saying
5288 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5289 struct s { int j; const int *ap[3]; };
5290 struct s *b; b->j = 5;
5291 }
5292 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5293 const int foo = 10;
5294 }
5295 #endif
5296
5297 ;
5298 return 0;
5299 }
5300 _ACEOF
5301 rm -f conftest.$ac_objext
5302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5303 (eval $ac_compile) 2>conftest.er1
5304 ac_status=$?
5305 grep -v '^ *+' conftest.er1 >conftest.err
5306 rm -f conftest.er1
5307 cat conftest.err >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } &&
5310 { ac_try='test -z "$ac_c_werror_flag"
5311 || test ! -s conftest.err'
5312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 (eval $ac_try) 2>&5
5314 ac_status=$?
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; } &&
5317 { ac_try='test -s conftest.$ac_objext'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 (eval $ac_try) 2>&5
5320 ac_status=$?
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; }; then
5323 ac_cv_c_const=yes
5324 else
5325 echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5327
5328 ac_cv_c_const=no
5329 fi
5330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5331 fi
5332 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5333 echo "${ECHO_T}$ac_cv_c_const" >&6
5334 if test $ac_cv_c_const = no; then
5335
5336 cat >>confdefs.h <<\_ACEOF
5337 #define const
5338 _ACEOF
5339
5340 fi
5341
5342 echo "$as_me:$LINENO: checking for inline" >&5
5343 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5344 if test "${ac_cv_c_inline+set}" = set; then
5345 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 else
5347 ac_cv_c_inline=no
5348 for ac_kw in inline __inline__ __inline; do
5349 cat >conftest.$ac_ext <<_ACEOF
5350 /* confdefs.h. */
5351 _ACEOF
5352 cat confdefs.h >>conftest.$ac_ext
5353 cat >>conftest.$ac_ext <<_ACEOF
5354 /* end confdefs.h. */
5355 #ifndef __cplusplus
5356 typedef int foo_t;
5357 static $ac_kw foo_t static_foo () {return 0; }
5358 $ac_kw foo_t foo () {return 0; }
5359 #endif
5360
5361 _ACEOF
5362 rm -f conftest.$ac_objext
5363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5364 (eval $ac_compile) 2>conftest.er1
5365 ac_status=$?
5366 grep -v '^ *+' conftest.er1 >conftest.err
5367 rm -f conftest.er1
5368 cat conftest.err >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); } &&
5371 { ac_try='test -z "$ac_c_werror_flag"
5372 || test ! -s conftest.err'
5373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374 (eval $ac_try) 2>&5
5375 ac_status=$?
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; } &&
5378 { ac_try='test -s conftest.$ac_objext'
5379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380 (eval $ac_try) 2>&5
5381 ac_status=$?
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }; }; then
5384 ac_cv_c_inline=$ac_kw; break
5385 else
5386 echo "$as_me: failed program was:" >&5
5387 sed 's/^/| /' conftest.$ac_ext >&5
5388
5389 fi
5390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5391 done
5392
5393 fi
5394 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5395 echo "${ECHO_T}$ac_cv_c_inline" >&6
5396
5397
5398 case $ac_cv_c_inline in
5399 inline | yes) ;;
5400 *)
5401 case $ac_cv_c_inline in
5402 no) ac_val=;;
5403 *) ac_val=$ac_cv_c_inline;;
5404 esac
5405 cat >>confdefs.h <<_ACEOF
5406 #ifndef __cplusplus
5407 #define inline $ac_val
5408 #endif
5409 _ACEOF
5410 ;;
5411 esac
5412
5413 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5424 inttypes.h stdint.h unistd.h
5425 do
5426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5427 echo "$as_me:$LINENO: checking for $ac_header" >&5
5428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432 cat >conftest.$ac_ext <<_ACEOF
5433 /* confdefs.h. */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 $ac_includes_default
5439
5440 #include <$ac_header>
5441 _ACEOF
5442 rm -f conftest.$ac_objext
5443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5444 (eval $ac_compile) 2>conftest.er1
5445 ac_status=$?
5446 grep -v '^ *+' conftest.er1 >conftest.err
5447 rm -f conftest.er1
5448 cat conftest.err >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } &&
5451 { ac_try='test -z "$ac_c_werror_flag"
5452 || test ! -s conftest.err'
5453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5454 (eval $ac_try) 2>&5
5455 ac_status=$?
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }; } &&
5458 { ac_try='test -s conftest.$ac_objext'
5459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5460 (eval $ac_try) 2>&5
5461 ac_status=$?
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); }; }; then
5464 eval "$as_ac_Header=yes"
5465 else
5466 echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.$ac_ext >&5
5468
5469 eval "$as_ac_Header=no"
5470 fi
5471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5472 fi
5473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5476 cat >>confdefs.h <<_ACEOF
5477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5478 _ACEOF
5479
5480 fi
5481
5482 done
5483
5484
5485 echo "$as_me:$LINENO: checking for off_t" >&5
5486 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5487 if test "${ac_cv_type_off_t+set}" = set; then
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
5489 else
5490 cat >conftest.$ac_ext <<_ACEOF
5491 /* confdefs.h. */
5492 _ACEOF
5493 cat confdefs.h >>conftest.$ac_ext
5494 cat >>conftest.$ac_ext <<_ACEOF
5495 /* end confdefs.h. */
5496 $ac_includes_default
5497 int
5498 main ()
5499 {
5500 if ((off_t *) 0)
5501 return 0;
5502 if (sizeof (off_t))
5503 return 0;
5504 ;
5505 return 0;
5506 }
5507 _ACEOF
5508 rm -f conftest.$ac_objext
5509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5510 (eval $ac_compile) 2>conftest.er1
5511 ac_status=$?
5512 grep -v '^ *+' conftest.er1 >conftest.err
5513 rm -f conftest.er1
5514 cat conftest.err >&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); } &&
5517 { ac_try='test -z "$ac_c_werror_flag"
5518 || test ! -s conftest.err'
5519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5520 (eval $ac_try) 2>&5
5521 ac_status=$?
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }; } &&
5524 { ac_try='test -s conftest.$ac_objext'
5525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526 (eval $ac_try) 2>&5
5527 ac_status=$?
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); }; }; then
5530 ac_cv_type_off_t=yes
5531 else
5532 echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5534
5535 ac_cv_type_off_t=no
5536 fi
5537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5538 fi
5539 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5540 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5541 if test $ac_cv_type_off_t = yes; then
5542 :
5543 else
5544
5545 cat >>confdefs.h <<_ACEOF
5546 #define off_t long
5547 _ACEOF
5548
5549 fi
5550
5551 echo "$as_me:$LINENO: checking for size_t" >&5
5552 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5553 if test "${ac_cv_type_size_t+set}" = set; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5555 else
5556 cat >conftest.$ac_ext <<_ACEOF
5557 /* confdefs.h. */
5558 _ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5562 $ac_includes_default
5563 int
5564 main ()
5565 {
5566 if ((size_t *) 0)
5567 return 0;
5568 if (sizeof (size_t))
5569 return 0;
5570 ;
5571 return 0;
5572 }
5573 _ACEOF
5574 rm -f conftest.$ac_objext
5575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5576 (eval $ac_compile) 2>conftest.er1
5577 ac_status=$?
5578 grep -v '^ *+' conftest.er1 >conftest.err
5579 rm -f conftest.er1
5580 cat conftest.err >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } &&
5583 { ac_try='test -z "$ac_c_werror_flag"
5584 || test ! -s conftest.err'
5585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586 (eval $ac_try) 2>&5
5587 ac_status=$?
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; } &&
5590 { ac_try='test -s conftest.$ac_objext'
5591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592 (eval $ac_try) 2>&5
5593 ac_status=$?
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; }; then
5596 ac_cv_type_size_t=yes
5597 else
5598 echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5600
5601 ac_cv_type_size_t=no
5602 fi
5603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5604 fi
5605 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5606 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5607 if test $ac_cv_type_size_t = yes; then
5608 :
5609 else
5610
5611 cat >>confdefs.h <<_ACEOF
5612 #define size_t unsigned
5613 _ACEOF
5614
5615 fi
5616
5617 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5618 # for constant arguments. Useless!
5619 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5620 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5621 if test "${ac_cv_working_alloca_h+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5623 else
5624 cat >conftest.$ac_ext <<_ACEOF
5625 /* confdefs.h. */
5626 _ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5630 #include <alloca.h>
5631 int
5632 main ()
5633 {
5634 char *p = (char *) alloca (2 * sizeof (int));
5635 ;
5636 return 0;
5637 }
5638 _ACEOF
5639 rm -f conftest.$ac_objext conftest$ac_exeext
5640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5641 (eval $ac_link) 2>conftest.er1
5642 ac_status=$?
5643 grep -v '^ *+' conftest.er1 >conftest.err
5644 rm -f conftest.er1
5645 cat conftest.err >&5
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); } &&
5648 { ac_try='test -z "$ac_c_werror_flag"
5649 || test ! -s conftest.err'
5650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651 (eval $ac_try) 2>&5
5652 ac_status=$?
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; } &&
5655 { ac_try='test -s conftest$ac_exeext'
5656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657 (eval $ac_try) 2>&5
5658 ac_status=$?
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); }; }; then
5661 ac_cv_working_alloca_h=yes
5662 else
5663 echo "$as_me: failed program was:" >&5
5664 sed 's/^/| /' conftest.$ac_ext >&5
5665
5666 ac_cv_working_alloca_h=no
5667 fi
5668 rm -f conftest.err conftest.$ac_objext \
5669 conftest$ac_exeext conftest.$ac_ext
5670 fi
5671 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5672 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5673 if test $ac_cv_working_alloca_h = yes; then
5674
5675 cat >>confdefs.h <<\_ACEOF
5676 #define HAVE_ALLOCA_H 1
5677 _ACEOF
5678
5679 fi
5680
5681 echo "$as_me:$LINENO: checking for alloca" >&5
5682 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5683 if test "${ac_cv_func_alloca_works+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5685 else
5686 cat >conftest.$ac_ext <<_ACEOF
5687 /* confdefs.h. */
5688 _ACEOF
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h. */
5692 #ifdef __GNUC__
5693 # define alloca __builtin_alloca
5694 #else
5695 # ifdef _MSC_VER
5696 # include <malloc.h>
5697 # define alloca _alloca
5698 # else
5699 # if HAVE_ALLOCA_H
5700 # include <alloca.h>
5701 # else
5702 # ifdef _AIX
5703 #pragma alloca
5704 # else
5705 # ifndef alloca /* predefined by HP cc +Olibcalls */
5706 char *alloca ();
5707 # endif
5708 # endif
5709 # endif
5710 # endif
5711 #endif
5712
5713 int
5714 main ()
5715 {
5716 char *p = (char *) alloca (1);
5717 ;
5718 return 0;
5719 }
5720 _ACEOF
5721 rm -f conftest.$ac_objext conftest$ac_exeext
5722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5723 (eval $ac_link) 2>conftest.er1
5724 ac_status=$?
5725 grep -v '^ *+' conftest.er1 >conftest.err
5726 rm -f conftest.er1
5727 cat conftest.err >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } &&
5730 { ac_try='test -z "$ac_c_werror_flag"
5731 || test ! -s conftest.err'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733 (eval $ac_try) 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; } &&
5737 { ac_try='test -s conftest$ac_exeext'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 (eval $ac_try) 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; }; then
5743 ac_cv_func_alloca_works=yes
5744 else
5745 echo "$as_me: failed program was:" >&5
5746 sed 's/^/| /' conftest.$ac_ext >&5
5747
5748 ac_cv_func_alloca_works=no
5749 fi
5750 rm -f conftest.err conftest.$ac_objext \
5751 conftest$ac_exeext conftest.$ac_ext
5752 fi
5753 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5754 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5755
5756 if test $ac_cv_func_alloca_works = yes; then
5757
5758 cat >>confdefs.h <<\_ACEOF
5759 #define HAVE_ALLOCA 1
5760 _ACEOF
5761
5762 else
5763 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5764 # that cause trouble. Some versions do not even contain alloca or
5765 # contain a buggy version. If you still want to use their alloca,
5766 # use ar to extract alloca.o from them instead of compiling alloca.c.
5767
5768 ALLOCA=alloca.$ac_objext
5769
5770 cat >>confdefs.h <<\_ACEOF
5771 #define C_ALLOCA 1
5772 _ACEOF
5773
5774
5775 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5776 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5777 if test "${ac_cv_os_cray+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5779 else
5780 cat >conftest.$ac_ext <<_ACEOF
5781 /* confdefs.h. */
5782 _ACEOF
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5786 #if defined(CRAY) && ! defined(CRAY2)
5787 webecray
5788 #else
5789 wenotbecray
5790 #endif
5791
5792 _ACEOF
5793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5794 $EGREP "webecray" >/dev/null 2>&1; then
5795 ac_cv_os_cray=yes
5796 else
5797 ac_cv_os_cray=no
5798 fi
5799 rm -f conftest*
5800
5801 fi
5802 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5803 echo "${ECHO_T}$ac_cv_os_cray" >&6
5804 if test $ac_cv_os_cray = yes; then
5805 for ac_func in _getb67 GETB67 getb67; do
5806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5807 echo "$as_me:$LINENO: checking for $ac_func" >&5
5808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5809 if eval "test \"\${$as_ac_var+set}\" = set"; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
5811 else
5812 cat >conftest.$ac_ext <<_ACEOF
5813 /* confdefs.h. */
5814 _ACEOF
5815 cat confdefs.h >>conftest.$ac_ext
5816 cat >>conftest.$ac_ext <<_ACEOF
5817 /* end confdefs.h. */
5818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5820 #define $ac_func innocuous_$ac_func
5821
5822 /* System header to define __stub macros and hopefully few prototypes,
5823 which can conflict with char $ac_func (); below.
5824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5825 <limits.h> exists even on freestanding compilers. */
5826
5827 #ifdef __STDC__
5828 # include <limits.h>
5829 #else
5830 # include <assert.h>
5831 #endif
5832
5833 #undef $ac_func
5834
5835 /* Override any gcc2 internal prototype to avoid an error. */
5836 #ifdef __cplusplus
5837 extern "C"
5838 {
5839 #endif
5840 /* We use char because int might match the return type of a gcc2
5841 builtin and then its argument prototype would still apply. */
5842 char $ac_func ();
5843 /* The GNU C library defines this for functions which it implements
5844 to always fail with ENOSYS. Some functions are actually named
5845 something starting with __ and the normal name is an alias. */
5846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5847 choke me
5848 #else
5849 char (*f) () = $ac_func;
5850 #endif
5851 #ifdef __cplusplus
5852 }
5853 #endif
5854
5855 int
5856 main ()
5857 {
5858 return f != $ac_func;
5859 ;
5860 return 0;
5861 }
5862 _ACEOF
5863 rm -f conftest.$ac_objext conftest$ac_exeext
5864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5865 (eval $ac_link) 2>conftest.er1
5866 ac_status=$?
5867 grep -v '^ *+' conftest.er1 >conftest.err
5868 rm -f conftest.er1
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } &&
5872 { ac_try='test -z "$ac_c_werror_flag"
5873 || test ! -s conftest.err'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875 (eval $ac_try) 2>&5
5876 ac_status=$?
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; } &&
5879 { ac_try='test -s conftest$ac_exeext'
5880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881 (eval $ac_try) 2>&5
5882 ac_status=$?
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; }; then
5885 eval "$as_ac_var=yes"
5886 else
5887 echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5889
5890 eval "$as_ac_var=no"
5891 fi
5892 rm -f conftest.err conftest.$ac_objext \
5893 conftest$ac_exeext conftest.$ac_ext
5894 fi
5895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5897 if test `eval echo '${'$as_ac_var'}'` = yes; then
5898
5899 cat >>confdefs.h <<_ACEOF
5900 #define CRAY_STACKSEG_END $ac_func
5901 _ACEOF
5902
5903 break
5904 fi
5905
5906 done
5907 fi
5908
5909 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5910 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5911 if test "${ac_cv_c_stack_direction+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 else
5914 if test "$cross_compiling" = yes; then
5915 ac_cv_c_stack_direction=0
5916 else
5917 cat >conftest.$ac_ext <<_ACEOF
5918 /* confdefs.h. */
5919 _ACEOF
5920 cat confdefs.h >>conftest.$ac_ext
5921 cat >>conftest.$ac_ext <<_ACEOF
5922 /* end confdefs.h. */
5923 int
5924 find_stack_direction ()
5925 {
5926 static char *addr = 0;
5927 auto char dummy;
5928 if (addr == 0)
5929 {
5930 addr = &dummy;
5931 return find_stack_direction ();
5932 }
5933 else
5934 return (&dummy > addr) ? 1 : -1;
5935 }
5936
5937 int
5938 main ()
5939 {
5940 exit (find_stack_direction () < 0);
5941 }
5942 _ACEOF
5943 rm -f conftest$ac_exeext
5944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5945 (eval $ac_link) 2>&5
5946 ac_status=$?
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950 (eval $ac_try) 2>&5
5951 ac_status=$?
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); }; }; then
5954 ac_cv_c_stack_direction=1
5955 else
5956 echo "$as_me: program exited with status $ac_status" >&5
5957 echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5959
5960 ( exit $ac_status )
5961 ac_cv_c_stack_direction=-1
5962 fi
5963 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5964 fi
5965 fi
5966 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5967 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5968
5969 cat >>confdefs.h <<_ACEOF
5970 #define STACK_DIRECTION $ac_cv_c_stack_direction
5971 _ACEOF
5972
5973
5974 fi
5975
5976
5977
5978 for ac_header in stdlib.h unistd.h
5979 do
5980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5982 echo "$as_me:$LINENO: checking for $ac_header" >&5
5983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5985 echo $ECHO_N "(cached) $ECHO_C" >&6
5986 fi
5987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5989 else
5990 # Is the header compilable?
5991 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5993 cat >conftest.$ac_ext <<_ACEOF
5994 /* confdefs.h. */
5995 _ACEOF
5996 cat confdefs.h >>conftest.$ac_ext
5997 cat >>conftest.$ac_ext <<_ACEOF
5998 /* end confdefs.h. */
5999 $ac_includes_default
6000 #include <$ac_header>
6001 _ACEOF
6002 rm -f conftest.$ac_objext
6003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6004 (eval $ac_compile) 2>conftest.er1
6005 ac_status=$?
6006 grep -v '^ *+' conftest.er1 >conftest.err
6007 rm -f conftest.er1
6008 cat conftest.err >&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); } &&
6011 { ac_try='test -z "$ac_c_werror_flag"
6012 || test ! -s conftest.err'
6013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014 (eval $ac_try) 2>&5
6015 ac_status=$?
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); }; } &&
6018 { ac_try='test -s conftest.$ac_objext'
6019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020 (eval $ac_try) 2>&5
6021 ac_status=$?
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }; }; then
6024 ac_header_compiler=yes
6025 else
6026 echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6028
6029 ac_header_compiler=no
6030 fi
6031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6032 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6033 echo "${ECHO_T}$ac_header_compiler" >&6
6034
6035 # Is the header present?
6036 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6037 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6038 cat >conftest.$ac_ext <<_ACEOF
6039 /* confdefs.h. */
6040 _ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6044 #include <$ac_header>
6045 _ACEOF
6046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6048 ac_status=$?
6049 grep -v '^ *+' conftest.er1 >conftest.err
6050 rm -f conftest.er1
6051 cat conftest.err >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } >/dev/null; then
6054 if test -s conftest.err; then
6055 ac_cpp_err=$ac_c_preproc_warn_flag
6056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6057 else
6058 ac_cpp_err=
6059 fi
6060 else
6061 ac_cpp_err=yes
6062 fi
6063 if test -z "$ac_cpp_err"; then
6064 ac_header_preproc=yes
6065 else
6066 echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6068
6069 ac_header_preproc=no
6070 fi
6071 rm -f conftest.err conftest.$ac_ext
6072 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6073 echo "${ECHO_T}$ac_header_preproc" >&6
6074
6075 # So? What about this header?
6076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6077 yes:no: )
6078 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6079 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6081 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6082 ac_header_preproc=yes
6083 ;;
6084 no:yes:* )
6085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6088 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6089 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6090 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6091 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6092 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6095 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6096 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6097 (
6098 cat <<\_ASBOX
6099 ## ------------------------------------------ ##
6100 ## Report this to the AC_PACKAGE_NAME lists. ##
6101 ## ------------------------------------------ ##
6102 _ASBOX
6103 ) |
6104 sed "s/^/$as_me: WARNING: /" >&2
6105 ;;
6106 esac
6107 echo "$as_me:$LINENO: checking for $ac_header" >&5
6108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112 eval "$as_ac_Header=\$ac_header_preproc"
6113 fi
6114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6116
6117 fi
6118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6119 cat >>confdefs.h <<_ACEOF
6120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6121 _ACEOF
6122
6123 fi
6124
6125 done
6126
6127
6128 for ac_func in getpagesize
6129 do
6130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6131 echo "$as_me:$LINENO: checking for $ac_func" >&5
6132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6133 if eval "test \"\${$as_ac_var+set}\" = set"; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 else
6136 cat >conftest.$ac_ext <<_ACEOF
6137 /* confdefs.h. */
6138 _ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6144 #define $ac_func innocuous_$ac_func
6145
6146 /* System header to define __stub macros and hopefully few prototypes,
6147 which can conflict with char $ac_func (); below.
6148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6149 <limits.h> exists even on freestanding compilers. */
6150
6151 #ifdef __STDC__
6152 # include <limits.h>
6153 #else
6154 # include <assert.h>
6155 #endif
6156
6157 #undef $ac_func
6158
6159 /* Override any gcc2 internal prototype to avoid an error. */
6160 #ifdef __cplusplus
6161 extern "C"
6162 {
6163 #endif
6164 /* We use char because int might match the return type of a gcc2
6165 builtin and then its argument prototype would still apply. */
6166 char $ac_func ();
6167 /* The GNU C library defines this for functions which it implements
6168 to always fail with ENOSYS. Some functions are actually named
6169 something starting with __ and the normal name is an alias. */
6170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6171 choke me
6172 #else
6173 char (*f) () = $ac_func;
6174 #endif
6175 #ifdef __cplusplus
6176 }
6177 #endif
6178
6179 int
6180 main ()
6181 {
6182 return f != $ac_func;
6183 ;
6184 return 0;
6185 }
6186 _ACEOF
6187 rm -f conftest.$ac_objext conftest$ac_exeext
6188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6189 (eval $ac_link) 2>conftest.er1
6190 ac_status=$?
6191 grep -v '^ *+' conftest.er1 >conftest.err
6192 rm -f conftest.er1
6193 cat conftest.err >&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } &&
6196 { ac_try='test -z "$ac_c_werror_flag"
6197 || test ! -s conftest.err'
6198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199 (eval $ac_try) 2>&5
6200 ac_status=$?
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); }; } &&
6203 { ac_try='test -s conftest$ac_exeext'
6204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205 (eval $ac_try) 2>&5
6206 ac_status=$?
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); }; }; then
6209 eval "$as_ac_var=yes"
6210 else
6211 echo "$as_me: failed program was:" >&5
6212 sed 's/^/| /' conftest.$ac_ext >&5
6213
6214 eval "$as_ac_var=no"
6215 fi
6216 rm -f conftest.err conftest.$ac_objext \
6217 conftest$ac_exeext conftest.$ac_ext
6218 fi
6219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6220 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6221 if test `eval echo '${'$as_ac_var'}'` = yes; then
6222 cat >>confdefs.h <<_ACEOF
6223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6224 _ACEOF
6225
6226 fi
6227 done
6228
6229 echo "$as_me:$LINENO: checking for working mmap" >&5
6230 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6231 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234 if test "$cross_compiling" = yes; then
6235 ac_cv_func_mmap_fixed_mapped=no
6236 else
6237 cat >conftest.$ac_ext <<_ACEOF
6238 /* confdefs.h. */
6239 _ACEOF
6240 cat confdefs.h >>conftest.$ac_ext
6241 cat >>conftest.$ac_ext <<_ACEOF
6242 /* end confdefs.h. */
6243 $ac_includes_default
6244 /* malloc might have been renamed as rpl_malloc. */
6245 #undef malloc
6246
6247 /* Thanks to Mike Haertel and Jim Avera for this test.
6248 Here is a matrix of mmap possibilities:
6249 mmap private not fixed
6250 mmap private fixed at somewhere currently unmapped
6251 mmap private fixed at somewhere already mapped
6252 mmap shared not fixed
6253 mmap shared fixed at somewhere currently unmapped
6254 mmap shared fixed at somewhere already mapped
6255 For private mappings, we should verify that changes cannot be read()
6256 back from the file, nor mmap's back from the file at a different
6257 address. (There have been systems where private was not correctly
6258 implemented like the infamous i386 svr4.0, and systems where the
6259 VM page cache was not coherent with the file system buffer cache
6260 like early versions of FreeBSD and possibly contemporary NetBSD.)
6261 For shared mappings, we should conversely verify that changes get
6262 propagated back to all the places they're supposed to be.
6263
6264 Grep wants private fixed already mapped.
6265 The main things grep needs to know about mmap are:
6266 * does it exist and is it safe to write into the mmap'd area
6267 * how to use it (BSD variants) */
6268
6269 #include <fcntl.h>
6270 #include <sys/mman.h>
6271
6272 #if !STDC_HEADERS && !HAVE_STDLIB_H
6273 char *malloc ();
6274 #endif
6275
6276 /* This mess was copied from the GNU getpagesize.h. */
6277 #if !HAVE_GETPAGESIZE
6278 /* Assume that all systems that can run configure have sys/param.h. */
6279 # if !HAVE_SYS_PARAM_H
6280 # define HAVE_SYS_PARAM_H 1
6281 # endif
6282
6283 # ifdef _SC_PAGESIZE
6284 # define getpagesize() sysconf(_SC_PAGESIZE)
6285 # else /* no _SC_PAGESIZE */
6286 # if HAVE_SYS_PARAM_H
6287 # include <sys/param.h>
6288 # ifdef EXEC_PAGESIZE
6289 # define getpagesize() EXEC_PAGESIZE
6290 # else /* no EXEC_PAGESIZE */
6291 # ifdef NBPG
6292 # define getpagesize() NBPG * CLSIZE
6293 # ifndef CLSIZE
6294 # define CLSIZE 1
6295 # endif /* no CLSIZE */
6296 # else /* no NBPG */
6297 # ifdef NBPC
6298 # define getpagesize() NBPC
6299 # else /* no NBPC */
6300 # ifdef PAGESIZE
6301 # define getpagesize() PAGESIZE
6302 # endif /* PAGESIZE */
6303 # endif /* no NBPC */
6304 # endif /* no NBPG */
6305 # endif /* no EXEC_PAGESIZE */
6306 # else /* no HAVE_SYS_PARAM_H */
6307 # define getpagesize() 8192 /* punt totally */
6308 # endif /* no HAVE_SYS_PARAM_H */
6309 # endif /* no _SC_PAGESIZE */
6310
6311 #endif /* no HAVE_GETPAGESIZE */
6312
6313 int
6314 main ()
6315 {
6316 char *data, *data2, *data3;
6317 int i, pagesize;
6318 int fd;
6319
6320 pagesize = getpagesize ();
6321
6322 /* First, make a file with some known garbage in it. */
6323 data = (char *) malloc (pagesize);
6324 if (!data)
6325 exit (1);
6326 for (i = 0; i < pagesize; ++i)
6327 *(data + i) = rand ();
6328 umask (0);
6329 fd = creat ("conftest.mmap", 0600);
6330 if (fd < 0)
6331 exit (1);
6332 if (write (fd, data, pagesize) != pagesize)
6333 exit (1);
6334 close (fd);
6335
6336 /* Next, try to mmap the file at a fixed address which already has
6337 something else allocated at it. If we can, also make sure that
6338 we see the same garbage. */
6339 fd = open ("conftest.mmap", O_RDWR);
6340 if (fd < 0)
6341 exit (1);
6342 data2 = (char *) malloc (2 * pagesize);
6343 if (!data2)
6344 exit (1);
6345 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6346 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6347 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6348 exit (1);
6349 for (i = 0; i < pagesize; ++i)
6350 if (*(data + i) != *(data2 + i))
6351 exit (1);
6352
6353 /* Finally, make sure that changes to the mapped area do not
6354 percolate back to the file as seen by read(). (This is a bug on
6355 some variants of i386 svr4.0.) */
6356 for (i = 0; i < pagesize; ++i)
6357 *(data2 + i) = *(data2 + i) + 1;
6358 data3 = (char *) malloc (pagesize);
6359 if (!data3)
6360 exit (1);
6361 if (read (fd, data3, pagesize) != pagesize)
6362 exit (1);
6363 for (i = 0; i < pagesize; ++i)
6364 if (*(data + i) != *(data3 + i))
6365 exit (1);
6366 close (fd);
6367 exit (0);
6368 }
6369 _ACEOF
6370 rm -f conftest$ac_exeext
6371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6372 (eval $ac_link) 2>&5
6373 ac_status=$?
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377 (eval $ac_try) 2>&5
6378 ac_status=$?
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; }; then
6381 ac_cv_func_mmap_fixed_mapped=yes
6382 else
6383 echo "$as_me: program exited with status $ac_status" >&5
6384 echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.$ac_ext >&5
6386
6387 ( exit $ac_status )
6388 ac_cv_func_mmap_fixed_mapped=no
6389 fi
6390 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6391 fi
6392 fi
6393 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6394 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6395 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6396
6397 cat >>confdefs.h <<\_ACEOF
6398 #define HAVE_MMAP 1
6399 _ACEOF
6400
6401 fi
6402 rm -f conftest.mmap
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6415 unistd.h values.h sys/param.h
6416 do
6417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6419 echo "$as_me:$LINENO: checking for $ac_header" >&5
6420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6422 echo $ECHO_N "(cached) $ECHO_C" >&6
6423 fi
6424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6426 else
6427 # Is the header compilable?
6428 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6430 cat >conftest.$ac_ext <<_ACEOF
6431 /* confdefs.h. */
6432 _ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6436 $ac_includes_default
6437 #include <$ac_header>
6438 _ACEOF
6439 rm -f conftest.$ac_objext
6440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6441 (eval $ac_compile) 2>conftest.er1
6442 ac_status=$?
6443 grep -v '^ *+' conftest.er1 >conftest.err
6444 rm -f conftest.er1
6445 cat conftest.err >&5
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); } &&
6448 { ac_try='test -z "$ac_c_werror_flag"
6449 || test ! -s conftest.err'
6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 (eval $ac_try) 2>&5
6452 ac_status=$?
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; } &&
6455 { ac_try='test -s conftest.$ac_objext'
6456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457 (eval $ac_try) 2>&5
6458 ac_status=$?
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); }; }; then
6461 ac_header_compiler=yes
6462 else
6463 echo "$as_me: failed program was:" >&5
6464 sed 's/^/| /' conftest.$ac_ext >&5
6465
6466 ac_header_compiler=no
6467 fi
6468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6469 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6470 echo "${ECHO_T}$ac_header_compiler" >&6
6471
6472 # Is the header present?
6473 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6475 cat >conftest.$ac_ext <<_ACEOF
6476 /* confdefs.h. */
6477 _ACEOF
6478 cat confdefs.h >>conftest.$ac_ext
6479 cat >>conftest.$ac_ext <<_ACEOF
6480 /* end confdefs.h. */
6481 #include <$ac_header>
6482 _ACEOF
6483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6485 ac_status=$?
6486 grep -v '^ *+' conftest.er1 >conftest.err
6487 rm -f conftest.er1
6488 cat conftest.err >&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } >/dev/null; then
6491 if test -s conftest.err; then
6492 ac_cpp_err=$ac_c_preproc_warn_flag
6493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6494 else
6495 ac_cpp_err=
6496 fi
6497 else
6498 ac_cpp_err=yes
6499 fi
6500 if test -z "$ac_cpp_err"; then
6501 ac_header_preproc=yes
6502 else
6503 echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.$ac_ext >&5
6505
6506 ac_header_preproc=no
6507 fi
6508 rm -f conftest.err conftest.$ac_ext
6509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6510 echo "${ECHO_T}$ac_header_preproc" >&6
6511
6512 # So? What about this header?
6513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6514 yes:no: )
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6519 ac_header_preproc=yes
6520 ;;
6521 no:yes:* )
6522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6525 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6526 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6528 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6529 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6532 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6534 (
6535 cat <<\_ASBOX
6536 ## ------------------------------------------ ##
6537 ## Report this to the AC_PACKAGE_NAME lists. ##
6538 ## ------------------------------------------ ##
6539 _ASBOX
6540 ) |
6541 sed "s/^/$as_me: WARNING: /" >&2
6542 ;;
6543 esac
6544 echo "$as_me:$LINENO: checking for $ac_header" >&5
6545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
6548 else
6549 eval "$as_ac_Header=\$ac_header_preproc"
6550 fi
6551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6553
6554 fi
6555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6556 cat >>confdefs.h <<_ACEOF
6557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6558 _ACEOF
6559
6560 fi
6561
6562 done
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6575 __argz_count __argz_stringify __argz_next
6576 do
6577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6578 echo "$as_me:$LINENO: checking for $ac_func" >&5
6579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6580 if eval "test \"\${$as_ac_var+set}\" = set"; then
6581 echo $ECHO_N "(cached) $ECHO_C" >&6
6582 else
6583 cat >conftest.$ac_ext <<_ACEOF
6584 /* confdefs.h. */
6585 _ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h. */
6589 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6591 #define $ac_func innocuous_$ac_func
6592
6593 /* System header to define __stub macros and hopefully few prototypes,
6594 which can conflict with char $ac_func (); below.
6595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6596 <limits.h> exists even on freestanding compilers. */
6597
6598 #ifdef __STDC__
6599 # include <limits.h>
6600 #else
6601 # include <assert.h>
6602 #endif
6603
6604 #undef $ac_func
6605
6606 /* Override any gcc2 internal prototype to avoid an error. */
6607 #ifdef __cplusplus
6608 extern "C"
6609 {
6610 #endif
6611 /* We use char because int might match the return type of a gcc2
6612 builtin and then its argument prototype would still apply. */
6613 char $ac_func ();
6614 /* The GNU C library defines this for functions which it implements
6615 to always fail with ENOSYS. Some functions are actually named
6616 something starting with __ and the normal name is an alias. */
6617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6618 choke me
6619 #else
6620 char (*f) () = $ac_func;
6621 #endif
6622 #ifdef __cplusplus
6623 }
6624 #endif
6625
6626 int
6627 main ()
6628 {
6629 return f != $ac_func;
6630 ;
6631 return 0;
6632 }
6633 _ACEOF
6634 rm -f conftest.$ac_objext conftest$ac_exeext
6635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6636 (eval $ac_link) 2>conftest.er1
6637 ac_status=$?
6638 grep -v '^ *+' conftest.er1 >conftest.err
6639 rm -f conftest.er1
6640 cat conftest.err >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } &&
6643 { ac_try='test -z "$ac_c_werror_flag"
6644 || test ! -s conftest.err'
6645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646 (eval $ac_try) 2>&5
6647 ac_status=$?
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); }; } &&
6650 { ac_try='test -s conftest$ac_exeext'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652 (eval $ac_try) 2>&5
6653 ac_status=$?
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; }; then
6656 eval "$as_ac_var=yes"
6657 else
6658 echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.$ac_ext >&5
6660
6661 eval "$as_ac_var=no"
6662 fi
6663 rm -f conftest.err conftest.$ac_objext \
6664 conftest$ac_exeext conftest.$ac_ext
6665 fi
6666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6667 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6668 if test `eval echo '${'$as_ac_var'}'` = yes; then
6669 cat >>confdefs.h <<_ACEOF
6670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6671 _ACEOF
6672
6673 fi
6674 done
6675
6676
6677 if test "${ac_cv_func_stpcpy+set}" != "set"; then
6678
6679 for ac_func in stpcpy
6680 do
6681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6682 echo "$as_me:$LINENO: checking for $ac_func" >&5
6683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6684 if eval "test \"\${$as_ac_var+set}\" = set"; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 else
6687 cat >conftest.$ac_ext <<_ACEOF
6688 /* confdefs.h. */
6689 _ACEOF
6690 cat confdefs.h >>conftest.$ac_ext
6691 cat >>conftest.$ac_ext <<_ACEOF
6692 /* end confdefs.h. */
6693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6695 #define $ac_func innocuous_$ac_func
6696
6697 /* System header to define __stub macros and hopefully few prototypes,
6698 which can conflict with char $ac_func (); below.
6699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6700 <limits.h> exists even on freestanding compilers. */
6701
6702 #ifdef __STDC__
6703 # include <limits.h>
6704 #else
6705 # include <assert.h>
6706 #endif
6707
6708 #undef $ac_func
6709
6710 /* Override any gcc2 internal prototype to avoid an error. */
6711 #ifdef __cplusplus
6712 extern "C"
6713 {
6714 #endif
6715 /* We use char because int might match the return type of a gcc2
6716 builtin and then its argument prototype would still apply. */
6717 char $ac_func ();
6718 /* The GNU C library defines this for functions which it implements
6719 to always fail with ENOSYS. Some functions are actually named
6720 something starting with __ and the normal name is an alias. */
6721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6722 choke me
6723 #else
6724 char (*f) () = $ac_func;
6725 #endif
6726 #ifdef __cplusplus
6727 }
6728 #endif
6729
6730 int
6731 main ()
6732 {
6733 return f != $ac_func;
6734 ;
6735 return 0;
6736 }
6737 _ACEOF
6738 rm -f conftest.$ac_objext conftest$ac_exeext
6739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6740 (eval $ac_link) 2>conftest.er1
6741 ac_status=$?
6742 grep -v '^ *+' conftest.er1 >conftest.err
6743 rm -f conftest.er1
6744 cat conftest.err >&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); } &&
6747 { ac_try='test -z "$ac_c_werror_flag"
6748 || test ! -s conftest.err'
6749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6750 (eval $ac_try) 2>&5
6751 ac_status=$?
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); }; } &&
6754 { ac_try='test -s conftest$ac_exeext'
6755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756 (eval $ac_try) 2>&5
6757 ac_status=$?
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); }; }; then
6760 eval "$as_ac_var=yes"
6761 else
6762 echo "$as_me: failed program was:" >&5
6763 sed 's/^/| /' conftest.$ac_ext >&5
6764
6765 eval "$as_ac_var=no"
6766 fi
6767 rm -f conftest.err conftest.$ac_objext \
6768 conftest$ac_exeext conftest.$ac_ext
6769 fi
6770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6772 if test `eval echo '${'$as_ac_var'}'` = yes; then
6773 cat >>confdefs.h <<_ACEOF
6774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6775 _ACEOF
6776
6777 fi
6778 done
6779
6780 fi
6781 if test "${ac_cv_func_stpcpy}" = "yes"; then
6782
6783 cat >>confdefs.h <<\_ACEOF
6784 #define HAVE_STPCPY 1
6785 _ACEOF
6786
6787 fi
6788
6789 if test $ac_cv_header_locale_h = yes; then
6790 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6791 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
6792 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6795 cat >conftest.$ac_ext <<_ACEOF
6796 /* confdefs.h. */
6797 _ACEOF
6798 cat confdefs.h >>conftest.$ac_ext
6799 cat >>conftest.$ac_ext <<_ACEOF
6800 /* end confdefs.h. */
6801 #include <locale.h>
6802 int
6803 main ()
6804 {
6805 return LC_MESSAGES
6806 ;
6807 return 0;
6808 }
6809 _ACEOF
6810 rm -f conftest.$ac_objext conftest$ac_exeext
6811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6812 (eval $ac_link) 2>conftest.er1
6813 ac_status=$?
6814 grep -v '^ *+' conftest.er1 >conftest.err
6815 rm -f conftest.er1
6816 cat conftest.err >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); } &&
6819 { ac_try='test -z "$ac_c_werror_flag"
6820 || test ! -s conftest.err'
6821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 (eval $ac_try) 2>&5
6823 ac_status=$?
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }; } &&
6826 { ac_try='test -s conftest$ac_exeext'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 (eval $ac_try) 2>&5
6829 ac_status=$?
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; }; then
6832 am_cv_val_LC_MESSAGES=yes
6833 else
6834 echo "$as_me: failed program was:" >&5
6835 sed 's/^/| /' conftest.$ac_ext >&5
6836
6837 am_cv_val_LC_MESSAGES=no
6838 fi
6839 rm -f conftest.err conftest.$ac_objext \
6840 conftest$ac_exeext conftest.$ac_ext
6841 fi
6842 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6843 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6844 if test $am_cv_val_LC_MESSAGES = yes; then
6845
6846 cat >>confdefs.h <<\_ACEOF
6847 #define HAVE_LC_MESSAGES 1
6848 _ACEOF
6849
6850 fi
6851 fi
6852 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6853 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6854 # Check whether --enable-nls or --disable-nls was given.
6855 if test "${enable_nls+set}" = set; then
6856 enableval="$enable_nls"
6857 USE_NLS=$enableval
6858 else
6859 USE_NLS=yes
6860 fi;
6861 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6862 echo "${ECHO_T}$USE_NLS" >&6
6863
6864
6865 USE_INCLUDED_LIBINTL=no
6866
6867 if test "$USE_NLS" = "yes"; then
6868
6869 cat >>confdefs.h <<\_ACEOF
6870 #define ENABLE_NLS 1
6871 _ACEOF
6872
6873 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
6874 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
6875
6876 # Check whether --with-included-gettext or --without-included-gettext was given.
6877 if test "${with_included_gettext+set}" = set; then
6878 withval="$with_included_gettext"
6879 nls_cv_force_use_gnu_gettext=$withval
6880 else
6881 nls_cv_force_use_gnu_gettext=no
6882 fi;
6883 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
6884 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
6885
6886 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
6887 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6888 nls_cv_header_intl=
6889 nls_cv_header_libgt=
6890 CATOBJEXT=NONE
6891
6892 if test "${ac_cv_header_libintl_h+set}" = set; then
6893 echo "$as_me:$LINENO: checking for libintl.h" >&5
6894 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
6895 if test "${ac_cv_header_libintl_h+set}" = set; then
6896 echo $ECHO_N "(cached) $ECHO_C" >&6
6897 fi
6898 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6899 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
6900 else
6901 # Is the header compilable?
6902 echo "$as_me:$LINENO: checking libintl.h usability" >&5
6903 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
6904 cat >conftest.$ac_ext <<_ACEOF
6905 /* confdefs.h. */
6906 _ACEOF
6907 cat confdefs.h >>conftest.$ac_ext
6908 cat >>conftest.$ac_ext <<_ACEOF
6909 /* end confdefs.h. */
6910 $ac_includes_default
6911 #include <libintl.h>
6912 _ACEOF
6913 rm -f conftest.$ac_objext
6914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6915 (eval $ac_compile) 2>conftest.er1
6916 ac_status=$?
6917 grep -v '^ *+' conftest.er1 >conftest.err
6918 rm -f conftest.er1
6919 cat conftest.err >&5
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); } &&
6922 { ac_try='test -z "$ac_c_werror_flag"
6923 || test ! -s conftest.err'
6924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6925 (eval $ac_try) 2>&5
6926 ac_status=$?
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); }; } &&
6929 { ac_try='test -s conftest.$ac_objext'
6930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931 (eval $ac_try) 2>&5
6932 ac_status=$?
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); }; }; then
6935 ac_header_compiler=yes
6936 else
6937 echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.$ac_ext >&5
6939
6940 ac_header_compiler=no
6941 fi
6942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6943 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6944 echo "${ECHO_T}$ac_header_compiler" >&6
6945
6946 # Is the header present?
6947 echo "$as_me:$LINENO: checking libintl.h presence" >&5
6948 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
6949 cat >conftest.$ac_ext <<_ACEOF
6950 /* confdefs.h. */
6951 _ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h. */
6955 #include <libintl.h>
6956 _ACEOF
6957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6959 ac_status=$?
6960 grep -v '^ *+' conftest.er1 >conftest.err
6961 rm -f conftest.er1
6962 cat conftest.err >&5
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); } >/dev/null; then
6965 if test -s conftest.err; then
6966 ac_cpp_err=$ac_c_preproc_warn_flag
6967 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6968 else
6969 ac_cpp_err=
6970 fi
6971 else
6972 ac_cpp_err=yes
6973 fi
6974 if test -z "$ac_cpp_err"; then
6975 ac_header_preproc=yes
6976 else
6977 echo "$as_me: failed program was:" >&5
6978 sed 's/^/| /' conftest.$ac_ext >&5
6979
6980 ac_header_preproc=no
6981 fi
6982 rm -f conftest.err conftest.$ac_ext
6983 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6984 echo "${ECHO_T}$ac_header_preproc" >&6
6985
6986 # So? What about this header?
6987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6988 yes:no: )
6989 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6990 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6991 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
6992 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
6993 ac_header_preproc=yes
6994 ;;
6995 no:yes:* )
6996 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
6997 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
6998 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
6999 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7000 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7001 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7002 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7003 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7004 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7005 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7006 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7007 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7008 (
7009 cat <<\_ASBOX
7010 ## ------------------------------------------ ##
7011 ## Report this to the AC_PACKAGE_NAME lists. ##
7012 ## ------------------------------------------ ##
7013 _ASBOX
7014 ) |
7015 sed "s/^/$as_me: WARNING: /" >&2
7016 ;;
7017 esac
7018 echo "$as_me:$LINENO: checking for libintl.h" >&5
7019 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7020 if test "${ac_cv_header_libintl_h+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7022 else
7023 ac_cv_header_libintl_h=$ac_header_preproc
7024 fi
7025 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7026 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7027
7028 fi
7029 if test $ac_cv_header_libintl_h = yes; then
7030 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7031 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7032 if test "${gt_cv_func_gettext_libc+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 else
7035 cat >conftest.$ac_ext <<_ACEOF
7036 /* confdefs.h. */
7037 _ACEOF
7038 cat confdefs.h >>conftest.$ac_ext
7039 cat >>conftest.$ac_ext <<_ACEOF
7040 /* end confdefs.h. */
7041 #include <libintl.h>
7042 int
7043 main ()
7044 {
7045 return (int) gettext ("")
7046 ;
7047 return 0;
7048 }
7049 _ACEOF
7050 rm -f conftest.$ac_objext conftest$ac_exeext
7051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7052 (eval $ac_link) 2>conftest.er1
7053 ac_status=$?
7054 grep -v '^ *+' conftest.er1 >conftest.err
7055 rm -f conftest.er1
7056 cat conftest.err >&5
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); } &&
7059 { ac_try='test -z "$ac_c_werror_flag"
7060 || test ! -s conftest.err'
7061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062 (eval $ac_try) 2>&5
7063 ac_status=$?
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); }; } &&
7066 { ac_try='test -s conftest$ac_exeext'
7067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7068 (eval $ac_try) 2>&5
7069 ac_status=$?
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); }; }; then
7072 gt_cv_func_gettext_libc=yes
7073 else
7074 echo "$as_me: failed program was:" >&5
7075 sed 's/^/| /' conftest.$ac_ext >&5
7076
7077 gt_cv_func_gettext_libc=no
7078 fi
7079 rm -f conftest.err conftest.$ac_objext \
7080 conftest$ac_exeext conftest.$ac_ext
7081 fi
7082 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7083 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7084
7085 if test "$gt_cv_func_gettext_libc" != "yes"; then
7086 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7087 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7088 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 else
7091 ac_check_lib_save_LIBS=$LIBS
7092 LIBS="-lintl $LIBS"
7093 cat >conftest.$ac_ext <<_ACEOF
7094 /* confdefs.h. */
7095 _ACEOF
7096 cat confdefs.h >>conftest.$ac_ext
7097 cat >>conftest.$ac_ext <<_ACEOF
7098 /* end confdefs.h. */
7099
7100 /* Override any gcc2 internal prototype to avoid an error. */
7101 #ifdef __cplusplus
7102 extern "C"
7103 #endif
7104 /* We use char because int might match the return type of a gcc2
7105 builtin and then its argument prototype would still apply. */
7106 char bindtextdomain ();
7107 int
7108 main ()
7109 {
7110 bindtextdomain ();
7111 ;
7112 return 0;
7113 }
7114 _ACEOF
7115 rm -f conftest.$ac_objext conftest$ac_exeext
7116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7117 (eval $ac_link) 2>conftest.er1
7118 ac_status=$?
7119 grep -v '^ *+' conftest.er1 >conftest.err
7120 rm -f conftest.er1
7121 cat conftest.err >&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } &&
7124 { ac_try='test -z "$ac_c_werror_flag"
7125 || test ! -s conftest.err'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127 (eval $ac_try) 2>&5
7128 ac_status=$?
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; } &&
7131 { ac_try='test -s conftest$ac_exeext'
7132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7133 (eval $ac_try) 2>&5
7134 ac_status=$?
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); }; }; then
7137 ac_cv_lib_intl_bindtextdomain=yes
7138 else
7139 echo "$as_me: failed program was:" >&5
7140 sed 's/^/| /' conftest.$ac_ext >&5
7141
7142 ac_cv_lib_intl_bindtextdomain=no
7143 fi
7144 rm -f conftest.err conftest.$ac_objext \
7145 conftest$ac_exeext conftest.$ac_ext
7146 LIBS=$ac_check_lib_save_LIBS
7147 fi
7148 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7149 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7150 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7151 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7152 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7153 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7155 else
7156 cat >conftest.$ac_ext <<_ACEOF
7157 /* confdefs.h. */
7158 _ACEOF
7159 cat confdefs.h >>conftest.$ac_ext
7160 cat >>conftest.$ac_ext <<_ACEOF
7161 /* end confdefs.h. */
7162
7163 int
7164 main ()
7165 {
7166 return (int) gettext ("")
7167 ;
7168 return 0;
7169 }
7170 _ACEOF
7171 rm -f conftest.$ac_objext conftest$ac_exeext
7172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7173 (eval $ac_link) 2>conftest.er1
7174 ac_status=$?
7175 grep -v '^ *+' conftest.er1 >conftest.err
7176 rm -f conftest.er1
7177 cat conftest.err >&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } &&
7180 { ac_try='test -z "$ac_c_werror_flag"
7181 || test ! -s conftest.err'
7182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183 (eval $ac_try) 2>&5
7184 ac_status=$?
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); }; } &&
7187 { ac_try='test -s conftest$ac_exeext'
7188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189 (eval $ac_try) 2>&5
7190 ac_status=$?
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }; }; then
7193 gt_cv_func_gettext_libintl=yes
7194 else
7195 echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.$ac_ext >&5
7197
7198 gt_cv_func_gettext_libintl=no
7199 fi
7200 rm -f conftest.err conftest.$ac_objext \
7201 conftest$ac_exeext conftest.$ac_ext
7202 fi
7203 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7204 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7205 fi
7206
7207 fi
7208
7209 if test "$gt_cv_func_gettext_libc" = "yes" \
7210 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7211
7212 cat >>confdefs.h <<\_ACEOF
7213 #define HAVE_GETTEXT 1
7214 _ACEOF
7215
7216 # Extract the first word of "msgfmt", so it can be a program name with args.
7217 set dummy msgfmt; ac_word=$2
7218 echo "$as_me:$LINENO: checking for $ac_word" >&5
7219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7220 if test "${ac_cv_path_MSGFMT+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 else
7223 case "$MSGFMT" in
7224 /*)
7225 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7226 ;;
7227 *)
7228 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7229 for ac_dir in $PATH; do
7230 test -z "$ac_dir" && ac_dir=.
7231 if test -f $ac_dir/$ac_word; then
7232 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7233 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7234 break
7235 fi
7236 fi
7237 done
7238 IFS="$ac_save_ifs"
7239 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7240 ;;
7241 esac
7242 fi
7243 MSGFMT="$ac_cv_path_MSGFMT"
7244 if test -n "$MSGFMT"; then
7245 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7246 echo "${ECHO_T}$MSGFMT" >&6
7247 else
7248 echo "$as_me:$LINENO: result: no" >&5
7249 echo "${ECHO_T}no" >&6
7250 fi
7251 if test "$MSGFMT" != "no"; then
7252
7253 for ac_func in dcgettext
7254 do
7255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7256 echo "$as_me:$LINENO: checking for $ac_func" >&5
7257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7258 if eval "test \"\${$as_ac_var+set}\" = set"; then
7259 echo $ECHO_N "(cached) $ECHO_C" >&6
7260 else
7261 cat >conftest.$ac_ext <<_ACEOF
7262 /* confdefs.h. */
7263 _ACEOF
7264 cat confdefs.h >>conftest.$ac_ext
7265 cat >>conftest.$ac_ext <<_ACEOF
7266 /* end confdefs.h. */
7267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7269 #define $ac_func innocuous_$ac_func
7270
7271 /* System header to define __stub macros and hopefully few prototypes,
7272 which can conflict with char $ac_func (); below.
7273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7274 <limits.h> exists even on freestanding compilers. */
7275
7276 #ifdef __STDC__
7277 # include <limits.h>
7278 #else
7279 # include <assert.h>
7280 #endif
7281
7282 #undef $ac_func
7283
7284 /* Override any gcc2 internal prototype to avoid an error. */
7285 #ifdef __cplusplus
7286 extern "C"
7287 {
7288 #endif
7289 /* We use char because int might match the return type of a gcc2
7290 builtin and then its argument prototype would still apply. */
7291 char $ac_func ();
7292 /* The GNU C library defines this for functions which it implements
7293 to always fail with ENOSYS. Some functions are actually named
7294 something starting with __ and the normal name is an alias. */
7295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7296 choke me
7297 #else
7298 char (*f) () = $ac_func;
7299 #endif
7300 #ifdef __cplusplus
7301 }
7302 #endif
7303
7304 int
7305 main ()
7306 {
7307 return f != $ac_func;
7308 ;
7309 return 0;
7310 }
7311 _ACEOF
7312 rm -f conftest.$ac_objext conftest$ac_exeext
7313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7314 (eval $ac_link) 2>conftest.er1
7315 ac_status=$?
7316 grep -v '^ *+' conftest.er1 >conftest.err
7317 rm -f conftest.er1
7318 cat conftest.err >&5
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); } &&
7321 { ac_try='test -z "$ac_c_werror_flag"
7322 || test ! -s conftest.err'
7323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324 (eval $ac_try) 2>&5
7325 ac_status=$?
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); }; } &&
7328 { ac_try='test -s conftest$ac_exeext'
7329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330 (eval $ac_try) 2>&5
7331 ac_status=$?
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); }; }; then
7334 eval "$as_ac_var=yes"
7335 else
7336 echo "$as_me: failed program was:" >&5
7337 sed 's/^/| /' conftest.$ac_ext >&5
7338
7339 eval "$as_ac_var=no"
7340 fi
7341 rm -f conftest.err conftest.$ac_objext \
7342 conftest$ac_exeext conftest.$ac_ext
7343 fi
7344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7345 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7346 if test `eval echo '${'$as_ac_var'}'` = yes; then
7347 cat >>confdefs.h <<_ACEOF
7348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7349 _ACEOF
7350
7351 fi
7352 done
7353
7354 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7355 set dummy gmsgfmt; ac_word=$2
7356 echo "$as_me:$LINENO: checking for $ac_word" >&5
7357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7358 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7359 echo $ECHO_N "(cached) $ECHO_C" >&6
7360 else
7361 case $GMSGFMT in
7362 [\\/]* | ?:[\\/]*)
7363 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7364 ;;
7365 *)
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 for as_dir in $PATH
7368 do
7369 IFS=$as_save_IFS
7370 test -z "$as_dir" && as_dir=.
7371 for ac_exec_ext in '' $ac_executable_extensions; do
7372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7373 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7375 break 2
7376 fi
7377 done
7378 done
7379
7380 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7381 ;;
7382 esac
7383 fi
7384 GMSGFMT=$ac_cv_path_GMSGFMT
7385
7386 if test -n "$GMSGFMT"; then
7387 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7388 echo "${ECHO_T}$GMSGFMT" >&6
7389 else
7390 echo "$as_me:$LINENO: result: no" >&5
7391 echo "${ECHO_T}no" >&6
7392 fi
7393
7394 # Extract the first word of "xgettext", so it can be a program name with args.
7395 set dummy xgettext; ac_word=$2
7396 echo "$as_me:$LINENO: checking for $ac_word" >&5
7397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7398 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 else
7401 case "$XGETTEXT" in
7402 /*)
7403 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7404 ;;
7405 *)
7406 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7407 for ac_dir in $PATH; do
7408 test -z "$ac_dir" && ac_dir=.
7409 if test -f $ac_dir/$ac_word; then
7410 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7411 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7412 break
7413 fi
7414 fi
7415 done
7416 IFS="$ac_save_ifs"
7417 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7418 ;;
7419 esac
7420 fi
7421 XGETTEXT="$ac_cv_path_XGETTEXT"
7422 if test -n "$XGETTEXT"; then
7423 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7424 echo "${ECHO_T}$XGETTEXT" >&6
7425 else
7426 echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6
7428 fi
7429
7430 cat >conftest.$ac_ext <<_ACEOF
7431 /* confdefs.h. */
7432 _ACEOF
7433 cat confdefs.h >>conftest.$ac_ext
7434 cat >>conftest.$ac_ext <<_ACEOF
7435 /* end confdefs.h. */
7436
7437 int
7438 main ()
7439 {
7440 extern int _nl_msg_cat_cntr;
7441 return _nl_msg_cat_cntr
7442 ;
7443 return 0;
7444 }
7445 _ACEOF
7446 rm -f conftest.$ac_objext conftest$ac_exeext
7447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7448 (eval $ac_link) 2>conftest.er1
7449 ac_status=$?
7450 grep -v '^ *+' conftest.er1 >conftest.err
7451 rm -f conftest.er1
7452 cat conftest.err >&5
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); } &&
7455 { ac_try='test -z "$ac_c_werror_flag"
7456 || test ! -s conftest.err'
7457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458 (eval $ac_try) 2>&5
7459 ac_status=$?
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }; } &&
7462 { ac_try='test -s conftest$ac_exeext'
7463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7464 (eval $ac_try) 2>&5
7465 ac_status=$?
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); }; }; then
7468 CATOBJEXT=.gmo
7469 DATADIRNAME=share
7470 else
7471 echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.$ac_ext >&5
7473
7474 CATOBJEXT=.mo
7475 DATADIRNAME=lib
7476 fi
7477 rm -f conftest.err conftest.$ac_objext \
7478 conftest$ac_exeext conftest.$ac_ext
7479 INSTOBJEXT=.mo
7480 fi
7481 fi
7482
7483 fi
7484
7485
7486
7487
7488 if test "$CATOBJEXT" = "NONE"; then
7489 nls_cv_use_gnu_gettext=yes
7490 fi
7491 fi
7492
7493 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7494 INTLOBJS="\$(GETTOBJS)"
7495 # Extract the first word of "msgfmt", so it can be a program name with args.
7496 set dummy msgfmt; ac_word=$2
7497 echo "$as_me:$LINENO: checking for $ac_word" >&5
7498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7499 if test "${ac_cv_path_MSGFMT+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7501 else
7502 case "$MSGFMT" in
7503 /*)
7504 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7505 ;;
7506 *)
7507 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7508 for ac_dir in $PATH; do
7509 test -z "$ac_dir" && ac_dir=.
7510 if test -f $ac_dir/$ac_word; then
7511 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7512 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7513 break
7514 fi
7515 fi
7516 done
7517 IFS="$ac_save_ifs"
7518 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7519 ;;
7520 esac
7521 fi
7522 MSGFMT="$ac_cv_path_MSGFMT"
7523 if test -n "$MSGFMT"; then
7524 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7525 echo "${ECHO_T}$MSGFMT" >&6
7526 else
7527 echo "$as_me:$LINENO: result: no" >&5
7528 echo "${ECHO_T}no" >&6
7529 fi
7530
7531 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7532 set dummy gmsgfmt; ac_word=$2
7533 echo "$as_me:$LINENO: checking for $ac_word" >&5
7534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7535 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 else
7538 case $GMSGFMT in
7539 [\\/]* | ?:[\\/]*)
7540 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7541 ;;
7542 *)
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 for as_dir in $PATH
7545 do
7546 IFS=$as_save_IFS
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7550 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 break 2
7553 fi
7554 done
7555 done
7556
7557 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7558 ;;
7559 esac
7560 fi
7561 GMSGFMT=$ac_cv_path_GMSGFMT
7562
7563 if test -n "$GMSGFMT"; then
7564 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7565 echo "${ECHO_T}$GMSGFMT" >&6
7566 else
7567 echo "$as_me:$LINENO: result: no" >&5
7568 echo "${ECHO_T}no" >&6
7569 fi
7570
7571 # Extract the first word of "xgettext", so it can be a program name with args.
7572 set dummy xgettext; ac_word=$2
7573 echo "$as_me:$LINENO: checking for $ac_word" >&5
7574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7575 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7576 echo $ECHO_N "(cached) $ECHO_C" >&6
7577 else
7578 case "$XGETTEXT" in
7579 /*)
7580 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7581 ;;
7582 *)
7583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7584 for ac_dir in $PATH; do
7585 test -z "$ac_dir" && ac_dir=.
7586 if test -f $ac_dir/$ac_word; then
7587 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7588 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7589 break
7590 fi
7591 fi
7592 done
7593 IFS="$ac_save_ifs"
7594 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7595 ;;
7596 esac
7597 fi
7598 XGETTEXT="$ac_cv_path_XGETTEXT"
7599 if test -n "$XGETTEXT"; then
7600 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7601 echo "${ECHO_T}$XGETTEXT" >&6
7602 else
7603 echo "$as_me:$LINENO: result: no" >&5
7604 echo "${ECHO_T}no" >&6
7605 fi
7606
7607
7608 USE_INCLUDED_LIBINTL=yes
7609 CATOBJEXT=.gmo
7610 INSTOBJEXT=.mo
7611 DATADIRNAME=share
7612 INTLDEPS='$(top_builddir)/../intl/libintl.a'
7613 INTLLIBS=$INTLDEPS
7614 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7615 nls_cv_header_intl=libintl.h
7616 nls_cv_header_libgt=libgettext.h
7617 fi
7618
7619 if test "$XGETTEXT" != ":"; then
7620 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7621 : ;
7622 else
7623 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7624 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
7625 XGETTEXT=":"
7626 fi
7627 fi
7628
7629 # We need to process the po/ directory.
7630 POSUB=po
7631 else
7632 DATADIRNAME=share
7633 nls_cv_header_intl=libintl.h
7634 nls_cv_header_libgt=libgettext.h
7635 fi
7636
7637 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7638 # because some of the sources are only built for this goal.
7639 if test "$PACKAGE" = gettext; then
7640 USE_NLS=yes
7641 USE_INCLUDED_LIBINTL=yes
7642 fi
7643
7644 for lang in $ALL_LINGUAS; do
7645 GMOFILES="$GMOFILES $lang.gmo"
7646 POFILES="$POFILES $lang.po"
7647 done
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662 if test "x$CATOBJEXT" != "x"; then
7663 if test "x$ALL_LINGUAS" = "x"; then
7664 LINGUAS=
7665 else
7666 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7667 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
7668 NEW_LINGUAS=
7669 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7670 case "$ALL_LINGUAS" in
7671 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7672 esac
7673 done
7674 LINGUAS=$NEW_LINGUAS
7675 echo "$as_me:$LINENO: result: $LINGUAS" >&5
7676 echo "${ECHO_T}$LINGUAS" >&6
7677 fi
7678
7679 if test -n "$LINGUAS"; then
7680 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7681 fi
7682 fi
7683
7684 if test $ac_cv_header_locale_h = yes; then
7685 INCLUDE_LOCALE_H="#include <locale.h>"
7686 else
7687 INCLUDE_LOCALE_H="\
7688 /* The system does not provide the header <locale.h>. Take care yourself. */"
7689 fi
7690
7691
7692 if test -f $srcdir/po2tbl.sed.in; then
7693 if test "$CATOBJEXT" = ".cat"; then
7694 if test "${ac_cv_header_linux_version_h+set}" = set; then
7695 echo "$as_me:$LINENO: checking for linux/version.h" >&5
7696 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7697 if test "${ac_cv_header_linux_version_h+set}" = set; then
7698 echo $ECHO_N "(cached) $ECHO_C" >&6
7699 fi
7700 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7701 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7702 else
7703 # Is the header compilable?
7704 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
7705 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
7706 cat >conftest.$ac_ext <<_ACEOF
7707 /* confdefs.h. */
7708 _ACEOF
7709 cat confdefs.h >>conftest.$ac_ext
7710 cat >>conftest.$ac_ext <<_ACEOF
7711 /* end confdefs.h. */
7712 $ac_includes_default
7713 #include <linux/version.h>
7714 _ACEOF
7715 rm -f conftest.$ac_objext
7716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7717 (eval $ac_compile) 2>conftest.er1
7718 ac_status=$?
7719 grep -v '^ *+' conftest.er1 >conftest.err
7720 rm -f conftest.er1
7721 cat conftest.err >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); } &&
7724 { ac_try='test -z "$ac_c_werror_flag"
7725 || test ! -s conftest.err'
7726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727 (eval $ac_try) 2>&5
7728 ac_status=$?
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); }; } &&
7731 { ac_try='test -s conftest.$ac_objext'
7732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7733 (eval $ac_try) 2>&5
7734 ac_status=$?
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); }; }; then
7737 ac_header_compiler=yes
7738 else
7739 echo "$as_me: failed program was:" >&5
7740 sed 's/^/| /' conftest.$ac_ext >&5
7741
7742 ac_header_compiler=no
7743 fi
7744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7745 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7746 echo "${ECHO_T}$ac_header_compiler" >&6
7747
7748 # Is the header present?
7749 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
7750 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
7751 cat >conftest.$ac_ext <<_ACEOF
7752 /* confdefs.h. */
7753 _ACEOF
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h. */
7757 #include <linux/version.h>
7758 _ACEOF
7759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7761 ac_status=$?
7762 grep -v '^ *+' conftest.er1 >conftest.err
7763 rm -f conftest.er1
7764 cat conftest.err >&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } >/dev/null; then
7767 if test -s conftest.err; then
7768 ac_cpp_err=$ac_c_preproc_warn_flag
7769 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7770 else
7771 ac_cpp_err=
7772 fi
7773 else
7774 ac_cpp_err=yes
7775 fi
7776 if test -z "$ac_cpp_err"; then
7777 ac_header_preproc=yes
7778 else
7779 echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7781
7782 ac_header_preproc=no
7783 fi
7784 rm -f conftest.err conftest.$ac_ext
7785 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7786 echo "${ECHO_T}$ac_header_preproc" >&6
7787
7788 # So? What about this header?
7789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7790 yes:no: )
7791 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
7792 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7793 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
7794 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
7795 ac_header_preproc=yes
7796 ;;
7797 no:yes:* )
7798 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
7799 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
7800 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
7801 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
7802 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
7803 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
7804 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
7805 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
7806 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
7807 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
7808 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
7809 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
7810 (
7811 cat <<\_ASBOX
7812 ## ------------------------------------------ ##
7813 ## Report this to the AC_PACKAGE_NAME lists. ##
7814 ## ------------------------------------------ ##
7815 _ASBOX
7816 ) |
7817 sed "s/^/$as_me: WARNING: /" >&2
7818 ;;
7819 esac
7820 echo "$as_me:$LINENO: checking for linux/version.h" >&5
7821 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7822 if test "${ac_cv_header_linux_version_h+set}" = set; then
7823 echo $ECHO_N "(cached) $ECHO_C" >&6
7824 else
7825 ac_cv_header_linux_version_h=$ac_header_preproc
7826 fi
7827 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7828 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7829
7830 fi
7831 if test $ac_cv_header_linux_version_h = yes; then
7832 msgformat=linux
7833 else
7834 msgformat=xopen
7835 fi
7836
7837
7838
7839 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
7840 fi
7841 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
7842 $srcdir/po2tbl.sed.in > po2tbl.sed
7843 fi
7844
7845 if test "$PACKAGE" = "gettext"; then
7846 GT_NO="#NO#"
7847 GT_YES=
7848 else
7849 GT_NO=
7850 GT_YES="#YES#"
7851 fi
7852
7853
7854
7855 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
7856
7857
7858 l=
7859
7860
7861 if test -f $srcdir/po/POTFILES.in; then
7862 test -d po || mkdir po
7863 if test "x$srcdir" != "x."; then
7864 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7865 posrcprefix="$srcdir/"
7866 else
7867 posrcprefix="../$srcdir/"
7868 fi
7869 else
7870 posrcprefix="../"
7871 fi
7872 rm -f po/POTFILES
7873 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7874 < $srcdir/po/POTFILES.in > po/POTFILES
7875 fi
7876
7877
7878 # Permit host specific settings.
7879 . ${srcdir}/configure.host
7880
7881
7882 # Find a good install program. We prefer a C program (faster),
7883 # so one script is as good as another. But avoid the broken or
7884 # incompatible versions:
7885 # SysV /etc/install, /usr/sbin/install
7886 # SunOS /usr/etc/install
7887 # IRIX /sbin/install
7888 # AIX /bin/install
7889 # AmigaOS /C/install, which installs bootblocks on floppy discs
7890 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7891 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7892 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7893 # OS/2's system install, which has a completely different semantic
7894 # ./install, which can be erroneously created by make from ./install.sh.
7895 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7896 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7897 if test -z "$INSTALL"; then
7898 if test "${ac_cv_path_install+set}" = set; then
7899 echo $ECHO_N "(cached) $ECHO_C" >&6
7900 else
7901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902 for as_dir in $PATH
7903 do
7904 IFS=$as_save_IFS
7905 test -z "$as_dir" && as_dir=.
7906 # Account for people who put trailing slashes in PATH elements.
7907 case $as_dir/ in
7908 ./ | .// | /cC/* | \
7909 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7910 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7911 /usr/ucb/* ) ;;
7912 *)
7913 # OSF1 and SCO ODT 3.0 have their own names for install.
7914 # Don't use installbsd from OSF since it installs stuff as root
7915 # by default.
7916 for ac_prog in ginstall scoinst install; do
7917 for ac_exec_ext in '' $ac_executable_extensions; do
7918 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7919 if test $ac_prog = install &&
7920 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7921 # AIX install. It has an incompatible calling convention.
7922 :
7923 elif test $ac_prog = install &&
7924 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7925 # program-specific install script used by HP pwplus--don't use.
7926 :
7927 else
7928 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7929 break 3
7930 fi
7931 fi
7932 done
7933 done
7934 ;;
7935 esac
7936 done
7937
7938
7939 fi
7940 if test "${ac_cv_path_install+set}" = set; then
7941 INSTALL=$ac_cv_path_install
7942 else
7943 # As a last resort, use the slow shell script. We don't cache a
7944 # path for INSTALL within a source directory, because that will
7945 # break other packages using the cache if that directory is
7946 # removed, or if the path is relative.
7947 INSTALL=$ac_install_sh
7948 fi
7949 fi
7950 echo "$as_me:$LINENO: result: $INSTALL" >&5
7951 echo "${ECHO_T}$INSTALL" >&6
7952
7953 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7954 # It thinks the first close brace ends the variable substitution.
7955 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7956
7957 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7958
7959 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7960
7961
7962 BFD_HOST_64BIT_LONG=0
7963 BFD_HOST_LONG_LONG=0
7964 BFD_HOST_64_BIT_DEFINED=0
7965 BFD_HOST_64_BIT=
7966 BFD_HOST_U_64_BIT=
7967
7968 echo "$as_me:$LINENO: checking for long long" >&5
7969 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7970 if test "${bfd_cv_has_long_long+set}" = set; then
7971 echo $ECHO_N "(cached) $ECHO_C" >&6
7972 else
7973 cat >conftest.$ac_ext <<_ACEOF
7974 /* confdefs.h. */
7975 _ACEOF
7976 cat confdefs.h >>conftest.$ac_ext
7977 cat >>conftest.$ac_ext <<_ACEOF
7978 /* end confdefs.h. */
7979
7980 int
7981 main ()
7982 {
7983 unsigned long long ll = 18446744073709551615ULL;
7984 ;
7985 return 0;
7986 }
7987 _ACEOF
7988 rm -f conftest.$ac_objext
7989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7990 (eval $ac_compile) 2>conftest.er1
7991 ac_status=$?
7992 grep -v '^ *+' conftest.er1 >conftest.err
7993 rm -f conftest.er1
7994 cat conftest.err >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); } &&
7997 { ac_try='test -z "$ac_c_werror_flag"
7998 || test ! -s conftest.err'
7999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000 (eval $ac_try) 2>&5
8001 ac_status=$?
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }; } &&
8004 { ac_try='test -s conftest.$ac_objext'
8005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006 (eval $ac_try) 2>&5
8007 ac_status=$?
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); }; }; then
8010 bfd_cv_has_long_long=yes
8011 else
8012 echo "$as_me: failed program was:" >&5
8013 sed 's/^/| /' conftest.$ac_ext >&5
8014
8015 bfd_cv_has_long_long=no
8016 fi
8017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8018 fi
8019
8020 echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
8021 echo "${ECHO_T}$bfd_cv_has_long_long" >&6
8022 if test $bfd_cv_has_long_long = yes; then
8023 BFD_HOST_LONG_LONG=1
8024 echo "$as_me:$LINENO: checking size of long long" >&5
8025 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8026 if test "${ac_cv_sizeof_long_long+set}" = set; then
8027 echo $ECHO_N "(cached) $ECHO_C" >&6
8028 else
8029 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
8030 cat >conftest.$ac_ext <<_ACEOF
8031 /* confdefs.h. */
8032 _ACEOF
8033 cat confdefs.h >>conftest.$ac_ext
8034 cat >>conftest.$ac_ext <<_ACEOF
8035 /* end confdefs.h. */
8036 #include "confdefs.h"
8037 #include <sys/types.h>
8038
8039
8040 int
8041 main ()
8042 {
8043 switch (0) case 0: case (sizeof (long long) == $ac_size):;
8044 ;
8045 return 0;
8046 }
8047 _ACEOF
8048 rm -f conftest.$ac_objext
8049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8050 (eval $ac_compile) 2>conftest.er1
8051 ac_status=$?
8052 grep -v '^ *+' conftest.er1 >conftest.err
8053 rm -f conftest.er1
8054 cat conftest.err >&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } &&
8057 { ac_try='test -z "$ac_c_werror_flag"
8058 || test ! -s conftest.err'
8059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060 (eval $ac_try) 2>&5
8061 ac_status=$?
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; } &&
8064 { ac_try='test -s conftest.$ac_objext'
8065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 (eval $ac_try) 2>&5
8067 ac_status=$?
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; }; then
8070 ac_cv_sizeof_long_long=$ac_size
8071 else
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8074
8075 fi
8076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8077 if test x$ac_cv_sizeof_long_long != x ; then break; fi
8078 done
8079
8080 fi
8081
8082 if test x$ac_cv_sizeof_long_long = x ; then
8083 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
8084 echo "$as_me: error: cannot determine a size for long long" >&2;}
8085 { (exit 1); exit 1; }; }
8086 fi
8087 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8088 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8089
8090 cat >>confdefs.h <<_ACEOF
8091 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8092 _ACEOF
8093
8094
8095 fi
8096
8097 echo "$as_me:$LINENO: checking size of long" >&5
8098 echo $ECHO_N "checking size of long... $ECHO_C" >&6
8099 if test "${ac_cv_sizeof_long+set}" = set; then
8100 echo $ECHO_N "(cached) $ECHO_C" >&6
8101 else
8102 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
8103 cat >conftest.$ac_ext <<_ACEOF
8104 /* confdefs.h. */
8105 _ACEOF
8106 cat confdefs.h >>conftest.$ac_ext
8107 cat >>conftest.$ac_ext <<_ACEOF
8108 /* end confdefs.h. */
8109 #include "confdefs.h"
8110 #include <sys/types.h>
8111
8112
8113 int
8114 main ()
8115 {
8116 switch (0) case 0: case (sizeof (long) == $ac_size):;
8117 ;
8118 return 0;
8119 }
8120 _ACEOF
8121 rm -f conftest.$ac_objext
8122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8123 (eval $ac_compile) 2>conftest.er1
8124 ac_status=$?
8125 grep -v '^ *+' conftest.er1 >conftest.err
8126 rm -f conftest.er1
8127 cat conftest.err >&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); } &&
8130 { ac_try='test -z "$ac_c_werror_flag"
8131 || test ! -s conftest.err'
8132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8133 (eval $ac_try) 2>&5
8134 ac_status=$?
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); }; } &&
8137 { ac_try='test -s conftest.$ac_objext'
8138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8139 (eval $ac_try) 2>&5
8140 ac_status=$?
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); }; }; then
8143 ac_cv_sizeof_long=$ac_size
8144 else
8145 echo "$as_me: failed program was:" >&5
8146 sed 's/^/| /' conftest.$ac_ext >&5
8147
8148 fi
8149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8150 if test x$ac_cv_sizeof_long != x ; then break; fi
8151 done
8152
8153 fi
8154
8155 if test x$ac_cv_sizeof_long = x ; then
8156 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
8157 echo "$as_me: error: cannot determine a size for long" >&2;}
8158 { (exit 1); exit 1; }; }
8159 fi
8160 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8161 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8162
8163 cat >>confdefs.h <<_ACEOF
8164 #define SIZEOF_LONG $ac_cv_sizeof_long
8165 _ACEOF
8166
8167
8168 if test "x${ac_cv_sizeof_long}" = "x8"; then
8169 host64=true
8170 BFD_HOST_64BIT_LONG=1
8171 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
8172 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
8173 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
8174 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
8175 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
8176 fi
8177
8178 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
8179 BFD_HOST_64_BIT_DEFINED=1
8180 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
8181 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
8182 fi
8183
8184
8185
8186
8187
8188
8189
8190 # Put a plausible default for CC_FOR_BUILD in Makefile.
8191 if test -z "$CC_FOR_BUILD"; then
8192 if test "x$cross_compiling" = "xno"; then
8193 CC_FOR_BUILD='$(CC)'
8194 else
8195 CC_FOR_BUILD=gcc
8196 fi
8197 fi
8198
8199 # Also set EXEEXT_FOR_BUILD.
8200 if test "x$cross_compiling" = "xno"; then
8201 EXEEXT_FOR_BUILD='$(EXEEXT)'
8202 else
8203 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
8204 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
8205 if test "${bfd_cv_build_exeext+set}" = set; then
8206 echo $ECHO_N "(cached) $ECHO_C" >&6
8207 else
8208 rm -f conftest*
8209 echo 'int main () { return 0; }' > conftest.c
8210 bfd_cv_build_exeext=
8211 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
8212 for file in conftest.*; do
8213 case $file in
8214 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8215 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
8216 esac
8217 done
8218 rm -f conftest*
8219 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
8220 fi
8221 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
8222 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
8223 EXEEXT_FOR_BUILD=""
8224 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
8225 fi
8226
8227
8228
8229
8230
8231
8232
8233
8234 for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
8235 do
8236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8238 echo "$as_me:$LINENO: checking for $ac_header" >&5
8239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8241 echo $ECHO_N "(cached) $ECHO_C" >&6
8242 fi
8243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8245 else
8246 # Is the header compilable?
8247 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8249 cat >conftest.$ac_ext <<_ACEOF
8250 /* confdefs.h. */
8251 _ACEOF
8252 cat confdefs.h >>conftest.$ac_ext
8253 cat >>conftest.$ac_ext <<_ACEOF
8254 /* end confdefs.h. */
8255 $ac_includes_default
8256 #include <$ac_header>
8257 _ACEOF
8258 rm -f conftest.$ac_objext
8259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8260 (eval $ac_compile) 2>conftest.er1
8261 ac_status=$?
8262 grep -v '^ *+' conftest.er1 >conftest.err
8263 rm -f conftest.er1
8264 cat conftest.err >&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } &&
8267 { ac_try='test -z "$ac_c_werror_flag"
8268 || test ! -s conftest.err'
8269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8270 (eval $ac_try) 2>&5
8271 ac_status=$?
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; } &&
8274 { ac_try='test -s conftest.$ac_objext'
8275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276 (eval $ac_try) 2>&5
8277 ac_status=$?
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); }; }; then
8280 ac_header_compiler=yes
8281 else
8282 echo "$as_me: failed program was:" >&5
8283 sed 's/^/| /' conftest.$ac_ext >&5
8284
8285 ac_header_compiler=no
8286 fi
8287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8288 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8289 echo "${ECHO_T}$ac_header_compiler" >&6
8290
8291 # Is the header present?
8292 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8294 cat >conftest.$ac_ext <<_ACEOF
8295 /* confdefs.h. */
8296 _ACEOF
8297 cat confdefs.h >>conftest.$ac_ext
8298 cat >>conftest.$ac_ext <<_ACEOF
8299 /* end confdefs.h. */
8300 #include <$ac_header>
8301 _ACEOF
8302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8304 ac_status=$?
8305 grep -v '^ *+' conftest.er1 >conftest.err
8306 rm -f conftest.er1
8307 cat conftest.err >&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); } >/dev/null; then
8310 if test -s conftest.err; then
8311 ac_cpp_err=$ac_c_preproc_warn_flag
8312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8313 else
8314 ac_cpp_err=
8315 fi
8316 else
8317 ac_cpp_err=yes
8318 fi
8319 if test -z "$ac_cpp_err"; then
8320 ac_header_preproc=yes
8321 else
8322 echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8324
8325 ac_header_preproc=no
8326 fi
8327 rm -f conftest.err conftest.$ac_ext
8328 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8329 echo "${ECHO_T}$ac_header_preproc" >&6
8330
8331 # So? What about this header?
8332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8333 yes:no: )
8334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8337 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8338 ac_header_preproc=yes
8339 ;;
8340 no:yes:* )
8341 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8342 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8343 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8344 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8345 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8346 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8347 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8348 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8351 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8352 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8353 (
8354 cat <<\_ASBOX
8355 ## ------------------------------------------ ##
8356 ## Report this to the AC_PACKAGE_NAME lists. ##
8357 ## ------------------------------------------ ##
8358 _ASBOX
8359 ) |
8360 sed "s/^/$as_me: WARNING: /" >&2
8361 ;;
8362 esac
8363 echo "$as_me:$LINENO: checking for $ac_header" >&5
8364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8366 echo $ECHO_N "(cached) $ECHO_C" >&6
8367 else
8368 eval "$as_ac_Header=\$ac_header_preproc"
8369 fi
8370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8372
8373 fi
8374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8375 cat >>confdefs.h <<_ACEOF
8376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8377 _ACEOF
8378
8379 fi
8380
8381 done
8382
8383
8384
8385
8386 for ac_header in fcntl.h sys/file.h sys/time.h
8387 do
8388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8390 echo "$as_me:$LINENO: checking for $ac_header" >&5
8391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8393 echo $ECHO_N "(cached) $ECHO_C" >&6
8394 fi
8395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8397 else
8398 # Is the header compilable?
8399 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8400 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8401 cat >conftest.$ac_ext <<_ACEOF
8402 /* confdefs.h. */
8403 _ACEOF
8404 cat confdefs.h >>conftest.$ac_ext
8405 cat >>conftest.$ac_ext <<_ACEOF
8406 /* end confdefs.h. */
8407 $ac_includes_default
8408 #include <$ac_header>
8409 _ACEOF
8410 rm -f conftest.$ac_objext
8411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8412 (eval $ac_compile) 2>conftest.er1
8413 ac_status=$?
8414 grep -v '^ *+' conftest.er1 >conftest.err
8415 rm -f conftest.er1
8416 cat conftest.err >&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); } &&
8419 { ac_try='test -z "$ac_c_werror_flag"
8420 || test ! -s conftest.err'
8421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422 (eval $ac_try) 2>&5
8423 ac_status=$?
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; } &&
8426 { ac_try='test -s conftest.$ac_objext'
8427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 (eval $ac_try) 2>&5
8429 ac_status=$?
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); }; }; then
8432 ac_header_compiler=yes
8433 else
8434 echo "$as_me: failed program was:" >&5
8435 sed 's/^/| /' conftest.$ac_ext >&5
8436
8437 ac_header_compiler=no
8438 fi
8439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8440 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8441 echo "${ECHO_T}$ac_header_compiler" >&6
8442
8443 # Is the header present?
8444 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8445 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8446 cat >conftest.$ac_ext <<_ACEOF
8447 /* confdefs.h. */
8448 _ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h. */
8452 #include <$ac_header>
8453 _ACEOF
8454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8456 ac_status=$?
8457 grep -v '^ *+' conftest.er1 >conftest.err
8458 rm -f conftest.er1
8459 cat conftest.err >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } >/dev/null; then
8462 if test -s conftest.err; then
8463 ac_cpp_err=$ac_c_preproc_warn_flag
8464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8465 else
8466 ac_cpp_err=
8467 fi
8468 else
8469 ac_cpp_err=yes
8470 fi
8471 if test -z "$ac_cpp_err"; then
8472 ac_header_preproc=yes
8473 else
8474 echo "$as_me: failed program was:" >&5
8475 sed 's/^/| /' conftest.$ac_ext >&5
8476
8477 ac_header_preproc=no
8478 fi
8479 rm -f conftest.err conftest.$ac_ext
8480 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8481 echo "${ECHO_T}$ac_header_preproc" >&6
8482
8483 # So? What about this header?
8484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8485 yes:no: )
8486 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8487 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8489 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8490 ac_header_preproc=yes
8491 ;;
8492 no:yes:* )
8493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8494 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8496 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8497 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8498 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8499 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8500 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8503 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8504 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8505 (
8506 cat <<\_ASBOX
8507 ## ------------------------------------------ ##
8508 ## Report this to the AC_PACKAGE_NAME lists. ##
8509 ## ------------------------------------------ ##
8510 _ASBOX
8511 ) |
8512 sed "s/^/$as_me: WARNING: /" >&2
8513 ;;
8514 esac
8515 echo "$as_me:$LINENO: checking for $ac_header" >&5
8516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 else
8520 eval "$as_ac_Header=\$ac_header_preproc"
8521 fi
8522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8524
8525 fi
8526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8527 cat >>confdefs.h <<_ACEOF
8528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8529 _ACEOF
8530
8531 fi
8532
8533 done
8534
8535 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8536 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8537 if test "${ac_cv_header_time+set}" = set; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8539 else
8540 cat >conftest.$ac_ext <<_ACEOF
8541 /* confdefs.h. */
8542 _ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h. */
8546 #include <sys/types.h>
8547 #include <sys/time.h>
8548 #include <time.h>
8549
8550 int
8551 main ()
8552 {
8553 if ((struct tm *) 0)
8554 return 0;
8555 ;
8556 return 0;
8557 }
8558 _ACEOF
8559 rm -f conftest.$ac_objext
8560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8561 (eval $ac_compile) 2>conftest.er1
8562 ac_status=$?
8563 grep -v '^ *+' conftest.er1 >conftest.err
8564 rm -f conftest.er1
8565 cat conftest.err >&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); } &&
8568 { ac_try='test -z "$ac_c_werror_flag"
8569 || test ! -s conftest.err'
8570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571 (eval $ac_try) 2>&5
8572 ac_status=$?
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); }; } &&
8575 { ac_try='test -s conftest.$ac_objext'
8576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577 (eval $ac_try) 2>&5
8578 ac_status=$?
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); }; }; then
8581 ac_cv_header_time=yes
8582 else
8583 echo "$as_me: failed program was:" >&5
8584 sed 's/^/| /' conftest.$ac_ext >&5
8585
8586 ac_cv_header_time=no
8587 fi
8588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8589 fi
8590 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8591 echo "${ECHO_T}$ac_cv_header_time" >&6
8592 if test $ac_cv_header_time = yes; then
8593
8594 cat >>confdefs.h <<\_ACEOF
8595 #define TIME_WITH_SYS_TIME 1
8596 _ACEOF
8597
8598 fi
8599
8600
8601
8602
8603
8604
8605 ac_header_dirent=no
8606 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8607 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8608 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8609 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8611 echo $ECHO_N "(cached) $ECHO_C" >&6
8612 else
8613 cat >conftest.$ac_ext <<_ACEOF
8614 /* confdefs.h. */
8615 _ACEOF
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h. */
8619 #include <sys/types.h>
8620 #include <$ac_hdr>
8621
8622 int
8623 main ()
8624 {
8625 if ((DIR *) 0)
8626 return 0;
8627 ;
8628 return 0;
8629 }
8630 _ACEOF
8631 rm -f conftest.$ac_objext
8632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8633 (eval $ac_compile) 2>conftest.er1
8634 ac_status=$?
8635 grep -v '^ *+' conftest.er1 >conftest.err
8636 rm -f conftest.er1
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } &&
8640 { ac_try='test -z "$ac_c_werror_flag"
8641 || test ! -s conftest.err'
8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 (eval $ac_try) 2>&5
8644 ac_status=$?
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; } &&
8647 { ac_try='test -s conftest.$ac_objext'
8648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649 (eval $ac_try) 2>&5
8650 ac_status=$?
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; }; then
8653 eval "$as_ac_Header=yes"
8654 else
8655 echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.$ac_ext >&5
8657
8658 eval "$as_ac_Header=no"
8659 fi
8660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8661 fi
8662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8665 cat >>confdefs.h <<_ACEOF
8666 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8667 _ACEOF
8668
8669 ac_header_dirent=$ac_hdr; break
8670 fi
8671
8672 done
8673 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8674 if test $ac_header_dirent = dirent.h; then
8675 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8676 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8677 if test "${ac_cv_search_opendir+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8679 else
8680 ac_func_search_save_LIBS=$LIBS
8681 ac_cv_search_opendir=no
8682 cat >conftest.$ac_ext <<_ACEOF
8683 /* confdefs.h. */
8684 _ACEOF
8685 cat confdefs.h >>conftest.$ac_ext
8686 cat >>conftest.$ac_ext <<_ACEOF
8687 /* end confdefs.h. */
8688
8689 /* Override any gcc2 internal prototype to avoid an error. */
8690 #ifdef __cplusplus
8691 extern "C"
8692 #endif
8693 /* We use char because int might match the return type of a gcc2
8694 builtin and then its argument prototype would still apply. */
8695 char opendir ();
8696 int
8697 main ()
8698 {
8699 opendir ();
8700 ;
8701 return 0;
8702 }
8703 _ACEOF
8704 rm -f conftest.$ac_objext conftest$ac_exeext
8705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8706 (eval $ac_link) 2>conftest.er1
8707 ac_status=$?
8708 grep -v '^ *+' conftest.er1 >conftest.err
8709 rm -f conftest.er1
8710 cat conftest.err >&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); } &&
8713 { ac_try='test -z "$ac_c_werror_flag"
8714 || test ! -s conftest.err'
8715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716 (eval $ac_try) 2>&5
8717 ac_status=$?
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); }; } &&
8720 { ac_try='test -s conftest$ac_exeext'
8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722 (eval $ac_try) 2>&5
8723 ac_status=$?
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; }; then
8726 ac_cv_search_opendir="none required"
8727 else
8728 echo "$as_me: failed program was:" >&5
8729 sed 's/^/| /' conftest.$ac_ext >&5
8730
8731 fi
8732 rm -f conftest.err conftest.$ac_objext \
8733 conftest$ac_exeext conftest.$ac_ext
8734 if test "$ac_cv_search_opendir" = no; then
8735 for ac_lib in dir; do
8736 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8737 cat >conftest.$ac_ext <<_ACEOF
8738 /* confdefs.h. */
8739 _ACEOF
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h. */
8743
8744 /* Override any gcc2 internal prototype to avoid an error. */
8745 #ifdef __cplusplus
8746 extern "C"
8747 #endif
8748 /* We use char because int might match the return type of a gcc2
8749 builtin and then its argument prototype would still apply. */
8750 char opendir ();
8751 int
8752 main ()
8753 {
8754 opendir ();
8755 ;
8756 return 0;
8757 }
8758 _ACEOF
8759 rm -f conftest.$ac_objext conftest$ac_exeext
8760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8761 (eval $ac_link) 2>conftest.er1
8762 ac_status=$?
8763 grep -v '^ *+' conftest.er1 >conftest.err
8764 rm -f conftest.er1
8765 cat conftest.err >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } &&
8768 { ac_try='test -z "$ac_c_werror_flag"
8769 || test ! -s conftest.err'
8770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771 (eval $ac_try) 2>&5
8772 ac_status=$?
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); }; } &&
8775 { ac_try='test -s conftest$ac_exeext'
8776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777 (eval $ac_try) 2>&5
8778 ac_status=$?
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); }; }; then
8781 ac_cv_search_opendir="-l$ac_lib"
8782 break
8783 else
8784 echo "$as_me: failed program was:" >&5
8785 sed 's/^/| /' conftest.$ac_ext >&5
8786
8787 fi
8788 rm -f conftest.err conftest.$ac_objext \
8789 conftest$ac_exeext conftest.$ac_ext
8790 done
8791 fi
8792 LIBS=$ac_func_search_save_LIBS
8793 fi
8794 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8795 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8796 if test "$ac_cv_search_opendir" != no; then
8797 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8798
8799 fi
8800
8801 else
8802 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8803 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8804 if test "${ac_cv_search_opendir+set}" = set; then
8805 echo $ECHO_N "(cached) $ECHO_C" >&6
8806 else
8807 ac_func_search_save_LIBS=$LIBS
8808 ac_cv_search_opendir=no
8809 cat >conftest.$ac_ext <<_ACEOF
8810 /* confdefs.h. */
8811 _ACEOF
8812 cat confdefs.h >>conftest.$ac_ext
8813 cat >>conftest.$ac_ext <<_ACEOF
8814 /* end confdefs.h. */
8815
8816 /* Override any gcc2 internal prototype to avoid an error. */
8817 #ifdef __cplusplus
8818 extern "C"
8819 #endif
8820 /* We use char because int might match the return type of a gcc2
8821 builtin and then its argument prototype would still apply. */
8822 char opendir ();
8823 int
8824 main ()
8825 {
8826 opendir ();
8827 ;
8828 return 0;
8829 }
8830 _ACEOF
8831 rm -f conftest.$ac_objext conftest$ac_exeext
8832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8833 (eval $ac_link) 2>conftest.er1
8834 ac_status=$?
8835 grep -v '^ *+' conftest.er1 >conftest.err
8836 rm -f conftest.er1
8837 cat conftest.err >&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); } &&
8840 { ac_try='test -z "$ac_c_werror_flag"
8841 || test ! -s conftest.err'
8842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843 (eval $ac_try) 2>&5
8844 ac_status=$?
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); }; } &&
8847 { ac_try='test -s conftest$ac_exeext'
8848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849 (eval $ac_try) 2>&5
8850 ac_status=$?
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); }; }; then
8853 ac_cv_search_opendir="none required"
8854 else
8855 echo "$as_me: failed program was:" >&5
8856 sed 's/^/| /' conftest.$ac_ext >&5
8857
8858 fi
8859 rm -f conftest.err conftest.$ac_objext \
8860 conftest$ac_exeext conftest.$ac_ext
8861 if test "$ac_cv_search_opendir" = no; then
8862 for ac_lib in x; do
8863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8864 cat >conftest.$ac_ext <<_ACEOF
8865 /* confdefs.h. */
8866 _ACEOF
8867 cat confdefs.h >>conftest.$ac_ext
8868 cat >>conftest.$ac_ext <<_ACEOF
8869 /* end confdefs.h. */
8870
8871 /* Override any gcc2 internal prototype to avoid an error. */
8872 #ifdef __cplusplus
8873 extern "C"
8874 #endif
8875 /* We use char because int might match the return type of a gcc2
8876 builtin and then its argument prototype would still apply. */
8877 char opendir ();
8878 int
8879 main ()
8880 {
8881 opendir ();
8882 ;
8883 return 0;
8884 }
8885 _ACEOF
8886 rm -f conftest.$ac_objext conftest$ac_exeext
8887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8888 (eval $ac_link) 2>conftest.er1
8889 ac_status=$?
8890 grep -v '^ *+' conftest.er1 >conftest.err
8891 rm -f conftest.er1
8892 cat conftest.err >&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } &&
8895 { ac_try='test -z "$ac_c_werror_flag"
8896 || test ! -s conftest.err'
8897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898 (eval $ac_try) 2>&5
8899 ac_status=$?
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; } &&
8902 { ac_try='test -s conftest$ac_exeext'
8903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904 (eval $ac_try) 2>&5
8905 ac_status=$?
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); }; }; then
8908 ac_cv_search_opendir="-l$ac_lib"
8909 break
8910 else
8911 echo "$as_me: failed program was:" >&5
8912 sed 's/^/| /' conftest.$ac_ext >&5
8913
8914 fi
8915 rm -f conftest.err conftest.$ac_objext \
8916 conftest$ac_exeext conftest.$ac_ext
8917 done
8918 fi
8919 LIBS=$ac_func_search_save_LIBS
8920 fi
8921 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8922 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8923 if test "$ac_cv_search_opendir" != no; then
8924 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8925
8926 fi
8927
8928 fi
8929
8930
8931
8932
8933
8934
8935
8936
8937 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
8938 do
8939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8940 echo "$as_me:$LINENO: checking for $ac_func" >&5
8941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8942 if eval "test \"\${$as_ac_var+set}\" = set"; then
8943 echo $ECHO_N "(cached) $ECHO_C" >&6
8944 else
8945 cat >conftest.$ac_ext <<_ACEOF
8946 /* confdefs.h. */
8947 _ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h. */
8951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8953 #define $ac_func innocuous_$ac_func
8954
8955 /* System header to define __stub macros and hopefully few prototypes,
8956 which can conflict with char $ac_func (); below.
8957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8958 <limits.h> exists even on freestanding compilers. */
8959
8960 #ifdef __STDC__
8961 # include <limits.h>
8962 #else
8963 # include <assert.h>
8964 #endif
8965
8966 #undef $ac_func
8967
8968 /* Override any gcc2 internal prototype to avoid an error. */
8969 #ifdef __cplusplus
8970 extern "C"
8971 {
8972 #endif
8973 /* We use char because int might match the return type of a gcc2
8974 builtin and then its argument prototype would still apply. */
8975 char $ac_func ();
8976 /* The GNU C library defines this for functions which it implements
8977 to always fail with ENOSYS. Some functions are actually named
8978 something starting with __ and the normal name is an alias. */
8979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8980 choke me
8981 #else
8982 char (*f) () = $ac_func;
8983 #endif
8984 #ifdef __cplusplus
8985 }
8986 #endif
8987
8988 int
8989 main ()
8990 {
8991 return f != $ac_func;
8992 ;
8993 return 0;
8994 }
8995 _ACEOF
8996 rm -f conftest.$ac_objext conftest$ac_exeext
8997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8998 (eval $ac_link) 2>conftest.er1
8999 ac_status=$?
9000 grep -v '^ *+' conftest.er1 >conftest.err
9001 rm -f conftest.er1
9002 cat conftest.err >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); } &&
9005 { ac_try='test -z "$ac_c_werror_flag"
9006 || test ! -s conftest.err'
9007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008 (eval $ac_try) 2>&5
9009 ac_status=$?
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); }; } &&
9012 { ac_try='test -s conftest$ac_exeext'
9013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014 (eval $ac_try) 2>&5
9015 ac_status=$?
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); }; }; then
9018 eval "$as_ac_var=yes"
9019 else
9020 echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.$ac_ext >&5
9022
9023 eval "$as_ac_var=no"
9024 fi
9025 rm -f conftest.err conftest.$ac_objext \
9026 conftest$ac_exeext conftest.$ac_ext
9027 fi
9028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9030 if test `eval echo '${'$as_ac_var'}'` = yes; then
9031 cat >>confdefs.h <<_ACEOF
9032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9033 _ACEOF
9034
9035 fi
9036 done
9037
9038
9039 for ac_func in strtoull
9040 do
9041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9042 echo "$as_me:$LINENO: checking for $ac_func" >&5
9043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9044 if eval "test \"\${$as_ac_var+set}\" = set"; then
9045 echo $ECHO_N "(cached) $ECHO_C" >&6
9046 else
9047 cat >conftest.$ac_ext <<_ACEOF
9048 /* confdefs.h. */
9049 _ACEOF
9050 cat confdefs.h >>conftest.$ac_ext
9051 cat >>conftest.$ac_ext <<_ACEOF
9052 /* end confdefs.h. */
9053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9055 #define $ac_func innocuous_$ac_func
9056
9057 /* System header to define __stub macros and hopefully few prototypes,
9058 which can conflict with char $ac_func (); below.
9059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9060 <limits.h> exists even on freestanding compilers. */
9061
9062 #ifdef __STDC__
9063 # include <limits.h>
9064 #else
9065 # include <assert.h>
9066 #endif
9067
9068 #undef $ac_func
9069
9070 /* Override any gcc2 internal prototype to avoid an error. */
9071 #ifdef __cplusplus
9072 extern "C"
9073 {
9074 #endif
9075 /* We use char because int might match the return type of a gcc2
9076 builtin and then its argument prototype would still apply. */
9077 char $ac_func ();
9078 /* The GNU C library defines this for functions which it implements
9079 to always fail with ENOSYS. Some functions are actually named
9080 something starting with __ and the normal name is an alias. */
9081 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9082 choke me
9083 #else
9084 char (*f) () = $ac_func;
9085 #endif
9086 #ifdef __cplusplus
9087 }
9088 #endif
9089
9090 int
9091 main ()
9092 {
9093 return f != $ac_func;
9094 ;
9095 return 0;
9096 }
9097 _ACEOF
9098 rm -f conftest.$ac_objext conftest$ac_exeext
9099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9100 (eval $ac_link) 2>conftest.er1
9101 ac_status=$?
9102 grep -v '^ *+' conftest.er1 >conftest.err
9103 rm -f conftest.er1
9104 cat conftest.err >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } &&
9107 { ac_try='test -z "$ac_c_werror_flag"
9108 || test ! -s conftest.err'
9109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9110 (eval $ac_try) 2>&5
9111 ac_status=$?
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); }; } &&
9114 { ac_try='test -s conftest$ac_exeext'
9115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116 (eval $ac_try) 2>&5
9117 ac_status=$?
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); }; }; then
9120 eval "$as_ac_var=yes"
9121 else
9122 echo "$as_me: failed program was:" >&5
9123 sed 's/^/| /' conftest.$ac_ext >&5
9124
9125 eval "$as_ac_var=no"
9126 fi
9127 rm -f conftest.err conftest.$ac_objext \
9128 conftest$ac_exeext conftest.$ac_ext
9129 fi
9130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9131 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9132 if test `eval echo '${'$as_ac_var'}'` = yes; then
9133 cat >>confdefs.h <<_ACEOF
9134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9135 _ACEOF
9136
9137 fi
9138 done
9139
9140
9141
9142 case "${host}" in
9143 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
9144
9145 cat >>confdefs.h <<\_ACEOF
9146 #define USE_BINARY_FOPEN 1
9147 _ACEOF
9148 ;;
9149 esac
9150
9151 echo "$as_me:$LINENO: checking whether strstr must be declared" >&5
9152 echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6
9153 if test "${bfd_cv_decl_needed_strstr+set}" = set; then
9154 echo $ECHO_N "(cached) $ECHO_C" >&6
9155 else
9156 cat >conftest.$ac_ext <<_ACEOF
9157 /* confdefs.h. */
9158 _ACEOF
9159 cat confdefs.h >>conftest.$ac_ext
9160 cat >>conftest.$ac_ext <<_ACEOF
9161 /* end confdefs.h. */
9162
9163 #include <stdio.h>
9164 #ifdef HAVE_STRING_H
9165 #include <string.h>
9166 #else
9167 #ifdef HAVE_STRINGS_H
9168 #include <strings.h>
9169 #endif
9170 #endif
9171 #ifdef HAVE_STDLIB_H
9172 #include <stdlib.h>
9173 #endif
9174 #ifdef HAVE_UNISTD_H
9175 #include <unistd.h>
9176 #endif
9177 int
9178 main ()
9179 {
9180 char *(*pfn) = (char *(*)) strstr
9181 ;
9182 return 0;
9183 }
9184 _ACEOF
9185 rm -f conftest.$ac_objext
9186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9187 (eval $ac_compile) 2>conftest.er1
9188 ac_status=$?
9189 grep -v '^ *+' conftest.er1 >conftest.err
9190 rm -f conftest.er1
9191 cat conftest.err >&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); } &&
9194 { ac_try='test -z "$ac_c_werror_flag"
9195 || test ! -s conftest.err'
9196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 (eval $ac_try) 2>&5
9198 ac_status=$?
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); }; } &&
9201 { ac_try='test -s conftest.$ac_objext'
9202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9203 (eval $ac_try) 2>&5
9204 ac_status=$?
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); }; }; then
9207 bfd_cv_decl_needed_strstr=no
9208 else
9209 echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.$ac_ext >&5
9211
9212 bfd_cv_decl_needed_strstr=yes
9213 fi
9214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9215 fi
9216
9217 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strstr" >&5
9218 echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6
9219 if test $bfd_cv_decl_needed_strstr = yes; then
9220
9221 cat >>confdefs.h <<\_ACEOF
9222 #define NEED_DECLARATION_STRSTR 1
9223 _ACEOF
9224
9225 fi
9226
9227 echo "$as_me:$LINENO: checking whether malloc must be declared" >&5
9228 echo $ECHO_N "checking whether malloc must be declared... $ECHO_C" >&6
9229 if test "${bfd_cv_decl_needed_malloc+set}" = set; then
9230 echo $ECHO_N "(cached) $ECHO_C" >&6
9231 else
9232 cat >conftest.$ac_ext <<_ACEOF
9233 /* confdefs.h. */
9234 _ACEOF
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h. */
9238
9239 #include <stdio.h>
9240 #ifdef HAVE_STRING_H
9241 #include <string.h>
9242 #else
9243 #ifdef HAVE_STRINGS_H
9244 #include <strings.h>
9245 #endif
9246 #endif
9247 #ifdef HAVE_STDLIB_H
9248 #include <stdlib.h>
9249 #endif
9250 #ifdef HAVE_UNISTD_H
9251 #include <unistd.h>
9252 #endif
9253 int
9254 main ()
9255 {
9256 char *(*pfn) = (char *(*)) malloc
9257 ;
9258 return 0;
9259 }
9260 _ACEOF
9261 rm -f conftest.$ac_objext
9262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9263 (eval $ac_compile) 2>conftest.er1
9264 ac_status=$?
9265 grep -v '^ *+' conftest.er1 >conftest.err
9266 rm -f conftest.er1
9267 cat conftest.err >&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } &&
9270 { ac_try='test -z "$ac_c_werror_flag"
9271 || test ! -s conftest.err'
9272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9273 (eval $ac_try) 2>&5
9274 ac_status=$?
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); }; } &&
9277 { ac_try='test -s conftest.$ac_objext'
9278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9279 (eval $ac_try) 2>&5
9280 ac_status=$?
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); }; }; then
9283 bfd_cv_decl_needed_malloc=no
9284 else
9285 echo "$as_me: failed program was:" >&5
9286 sed 's/^/| /' conftest.$ac_ext >&5
9287
9288 bfd_cv_decl_needed_malloc=yes
9289 fi
9290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9291 fi
9292
9293 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_malloc" >&5
9294 echo "${ECHO_T}$bfd_cv_decl_needed_malloc" >&6
9295 if test $bfd_cv_decl_needed_malloc = yes; then
9296
9297 cat >>confdefs.h <<\_ACEOF
9298 #define NEED_DECLARATION_MALLOC 1
9299 _ACEOF
9300
9301 fi
9302
9303 echo "$as_me:$LINENO: checking whether realloc must be declared" >&5
9304 echo $ECHO_N "checking whether realloc must be declared... $ECHO_C" >&6
9305 if test "${bfd_cv_decl_needed_realloc+set}" = set; then
9306 echo $ECHO_N "(cached) $ECHO_C" >&6
9307 else
9308 cat >conftest.$ac_ext <<_ACEOF
9309 /* confdefs.h. */
9310 _ACEOF
9311 cat confdefs.h >>conftest.$ac_ext
9312 cat >>conftest.$ac_ext <<_ACEOF
9313 /* end confdefs.h. */
9314
9315 #include <stdio.h>
9316 #ifdef HAVE_STRING_H
9317 #include <string.h>
9318 #else
9319 #ifdef HAVE_STRINGS_H
9320 #include <strings.h>
9321 #endif
9322 #endif
9323 #ifdef HAVE_STDLIB_H
9324 #include <stdlib.h>
9325 #endif
9326 #ifdef HAVE_UNISTD_H
9327 #include <unistd.h>
9328 #endif
9329 int
9330 main ()
9331 {
9332 char *(*pfn) = (char *(*)) realloc
9333 ;
9334 return 0;
9335 }
9336 _ACEOF
9337 rm -f conftest.$ac_objext
9338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9339 (eval $ac_compile) 2>conftest.er1
9340 ac_status=$?
9341 grep -v '^ *+' conftest.er1 >conftest.err
9342 rm -f conftest.er1
9343 cat conftest.err >&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); } &&
9346 { ac_try='test -z "$ac_c_werror_flag"
9347 || test ! -s conftest.err'
9348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9349 (eval $ac_try) 2>&5
9350 ac_status=$?
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); }; } &&
9353 { ac_try='test -s conftest.$ac_objext'
9354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9355 (eval $ac_try) 2>&5
9356 ac_status=$?
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); }; }; then
9359 bfd_cv_decl_needed_realloc=no
9360 else
9361 echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9363
9364 bfd_cv_decl_needed_realloc=yes
9365 fi
9366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9367 fi
9368
9369 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_realloc" >&5
9370 echo "${ECHO_T}$bfd_cv_decl_needed_realloc" >&6
9371 if test $bfd_cv_decl_needed_realloc = yes; then
9372
9373 cat >>confdefs.h <<\_ACEOF
9374 #define NEED_DECLARATION_REALLOC 1
9375 _ACEOF
9376
9377 fi
9378
9379 echo "$as_me:$LINENO: checking whether free must be declared" >&5
9380 echo $ECHO_N "checking whether free must be declared... $ECHO_C" >&6
9381 if test "${bfd_cv_decl_needed_free+set}" = set; then
9382 echo $ECHO_N "(cached) $ECHO_C" >&6
9383 else
9384 cat >conftest.$ac_ext <<_ACEOF
9385 /* confdefs.h. */
9386 _ACEOF
9387 cat confdefs.h >>conftest.$ac_ext
9388 cat >>conftest.$ac_ext <<_ACEOF
9389 /* end confdefs.h. */
9390
9391 #include <stdio.h>
9392 #ifdef HAVE_STRING_H
9393 #include <string.h>
9394 #else
9395 #ifdef HAVE_STRINGS_H
9396 #include <strings.h>
9397 #endif
9398 #endif
9399 #ifdef HAVE_STDLIB_H
9400 #include <stdlib.h>
9401 #endif
9402 #ifdef HAVE_UNISTD_H
9403 #include <unistd.h>
9404 #endif
9405 int
9406 main ()
9407 {
9408 char *(*pfn) = (char *(*)) free
9409 ;
9410 return 0;
9411 }
9412 _ACEOF
9413 rm -f conftest.$ac_objext
9414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9415 (eval $ac_compile) 2>conftest.er1
9416 ac_status=$?
9417 grep -v '^ *+' conftest.er1 >conftest.err
9418 rm -f conftest.er1
9419 cat conftest.err >&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); } &&
9422 { ac_try='test -z "$ac_c_werror_flag"
9423 || test ! -s conftest.err'
9424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9425 (eval $ac_try) 2>&5
9426 ac_status=$?
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); }; } &&
9429 { ac_try='test -s conftest.$ac_objext'
9430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9431 (eval $ac_try) 2>&5
9432 ac_status=$?
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); }; }; then
9435 bfd_cv_decl_needed_free=no
9436 else
9437 echo "$as_me: failed program was:" >&5
9438 sed 's/^/| /' conftest.$ac_ext >&5
9439
9440 bfd_cv_decl_needed_free=yes
9441 fi
9442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9443 fi
9444
9445 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_free" >&5
9446 echo "${ECHO_T}$bfd_cv_decl_needed_free" >&6
9447 if test $bfd_cv_decl_needed_free = yes; then
9448
9449 cat >>confdefs.h <<\_ACEOF
9450 #define NEED_DECLARATION_FREE 1
9451 _ACEOF
9452
9453 fi
9454
9455 echo "$as_me:$LINENO: checking whether getenv must be declared" >&5
9456 echo $ECHO_N "checking whether getenv must be declared... $ECHO_C" >&6
9457 if test "${bfd_cv_decl_needed_getenv+set}" = set; then
9458 echo $ECHO_N "(cached) $ECHO_C" >&6
9459 else
9460 cat >conftest.$ac_ext <<_ACEOF
9461 /* confdefs.h. */
9462 _ACEOF
9463 cat confdefs.h >>conftest.$ac_ext
9464 cat >>conftest.$ac_ext <<_ACEOF
9465 /* end confdefs.h. */
9466
9467 #include <stdio.h>
9468 #ifdef HAVE_STRING_H
9469 #include <string.h>
9470 #else
9471 #ifdef HAVE_STRINGS_H
9472 #include <strings.h>
9473 #endif
9474 #endif
9475 #ifdef HAVE_STDLIB_H
9476 #include <stdlib.h>
9477 #endif
9478 #ifdef HAVE_UNISTD_H
9479 #include <unistd.h>
9480 #endif
9481 int
9482 main ()
9483 {
9484 char *(*pfn) = (char *(*)) getenv
9485 ;
9486 return 0;
9487 }
9488 _ACEOF
9489 rm -f conftest.$ac_objext
9490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9491 (eval $ac_compile) 2>conftest.er1
9492 ac_status=$?
9493 grep -v '^ *+' conftest.er1 >conftest.err
9494 rm -f conftest.er1
9495 cat conftest.err >&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); } &&
9498 { ac_try='test -z "$ac_c_werror_flag"
9499 || test ! -s conftest.err'
9500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9501 (eval $ac_try) 2>&5
9502 ac_status=$?
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); }; } &&
9505 { ac_try='test -s conftest.$ac_objext'
9506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507 (eval $ac_try) 2>&5
9508 ac_status=$?
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; }; then
9511 bfd_cv_decl_needed_getenv=no
9512 else
9513 echo "$as_me: failed program was:" >&5
9514 sed 's/^/| /' conftest.$ac_ext >&5
9515
9516 bfd_cv_decl_needed_getenv=yes
9517 fi
9518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9519 fi
9520
9521 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_getenv" >&5
9522 echo "${ECHO_T}$bfd_cv_decl_needed_getenv" >&6
9523 if test $bfd_cv_decl_needed_getenv = yes; then
9524
9525 cat >>confdefs.h <<\_ACEOF
9526 #define NEED_DECLARATION_GETENV 1
9527 _ACEOF
9528
9529 fi
9530
9531
9532 # If we are configured native, pick a core file support file.
9533 COREFILE=
9534 COREFLAG=
9535 TRAD_HEADER=
9536 if test "${target}" = "${host}"; then
9537 case "${host}" in
9538 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
9539 COREFILE=''
9540 ;;
9541 alpha*-*-linux-gnu*)
9542 COREFILE=trad-core.lo
9543 TRAD_HEADER='"hosts/alphalinux.h"'
9544 ;;
9545 alpha*-*-netbsd* | alpha*-*-openbsd*)
9546 COREFILE=netbsd-core.lo
9547 ;;
9548 alpha*-*-*) COREFILE=osf-core.lo ;;
9549 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
9550 COREFILE='' ;;
9551 arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
9552 arm-*-riscix) COREFILE=trad-core.lo ;;
9553 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
9554 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
9555 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
9556 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
9557 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
9558 hppa*-*-netbsd* | hppa*-*-openbsd*)
9559 COREFILE=netbsd-core.lo
9560 ;;
9561
9562 i370-*-*)
9563 COREFILE=trad-core.lo
9564 TRAD_HEADER='"hosts/i370linux.h"'
9565 ;;
9566
9567 i[3-7]86-sequent-bsd*)
9568 COREFILE=trad-core.lo
9569 TRAD_HEADER='"hosts/symmetry.h"'
9570 ;;
9571 i[3-7]86-sequent-sysv4*) ;;
9572 i[3-7]86-sequent-sysv*)
9573 COREFILE=trad-core.lo
9574 TRAD_HEADER='"hosts/symmetry.h"'
9575 ;;
9576 i[3-7]86-*-bsdi)
9577 COREFILE=
9578 ;;
9579 i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
9580 COREFILE=trad-core.lo
9581 TRAD_HEADER='"hosts/i386bsd.h"'
9582 ;;
9583 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
9584 COREFILE=''
9585 TRAD_HEADER='"hosts/i386bsd.h"'
9586 ;;
9587 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
9588 COREFILE=netbsd-core.lo
9589 ;;
9590 i[3-7]86-esix-sysv3*)
9591 COREFILE=trad-core.lo
9592 TRAD_HEADER='"hosts/esix.h"'
9593 ;;
9594 i[3-7]86-*-sco3.2v5*)
9595 COREFILE=sco5-core.lo
9596 ;;
9597 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
9598 COREFILE=trad-core.lo
9599 TRAD_HEADER='"hosts/i386sco.h"'
9600 ;;
9601 i[3-7]86-*-mach3*)
9602 COREFILE=trad-core.lo
9603 TRAD_HEADER='"hosts/i386mach3.h"'
9604 ;;
9605 i[3-7]86-*-linux-gnu*)
9606 COREFILE=trad-core.lo
9607 TRAD_HEADER='"hosts/i386linux.h"'
9608 ;;
9609 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
9610 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
9611 i860-*-mach3* | i860-*-osf1*)
9612 COREFILE=trad-core.lo
9613 TRAD_HEADER='"hosts/i860mach3.h"'
9614 ;;
9615 mips-*-netbsd* | mips*-*-openbsd*)
9616 COREFILE=netbsd-core.lo
9617 ;;
9618 mips-dec-*)
9619 COREFILE=trad-core.lo
9620 TRAD_HEADER='"hosts/decstation.h"'
9621 ;;
9622 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
9623 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
9624 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
9625 mips-*-sysv4*) ;;
9626 mips-*-sysv* | mips-*-riscos*)
9627 COREFILE=trad-core.lo
9628 TRAD_HEADER='"hosts/riscos.h"'
9629 ;;
9630 mips-sony-bsd*)
9631 COREFILE=trad-core.lo
9632 TRAD_HEADER='"hosts/news-mips.h"'
9633 ;;
9634 m68*-bull*-sysv*)
9635 COREFILE=trad-core.lo
9636 TRAD_HEADER='"hosts/dpx2.h"'
9637 ;;
9638 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
9639 m68*-hp-bsd*)
9640 COREFILE=trad-core.lo
9641 TRAD_HEADER='"hosts/hp300bsd.h"'
9642 ;;
9643 m68*-*-linux-gnu*)
9644 COREFILE=trad-core.lo
9645 TRAD_HEADER='"hosts/m68klinux.h"'
9646 ;;
9647 m68*-motorola-sysv*)
9648 COREFILE=trad-core.lo
9649 TRAD_HEADER='"hosts/delta68.h"'
9650 ;;
9651 m68*-sony-*)
9652 COREFILE=trad-core.lo
9653 TRAD_HEADER='"hosts/news.h"'
9654 ;;
9655 m68*-*-netbsd* | m68*-*-openbsd*)
9656 COREFILE=netbsd-core.lo
9657 ;;
9658 m68*-apple-aux*)
9659 COREFILE=trad-core.lo
9660 TRAD_HEADER='"hosts/m68kaux.h"'
9661 ;;
9662 m88*-*-sysv4*)
9663 ;;
9664 m88*-motorola-sysv*)
9665 COREFILE=ptrace-core.lo
9666 ;;
9667 m88*-*-mach3*)
9668 COREFILE=trad-core.lo
9669 TRAD_HEADER='"hosts/m88kmach3.h"'
9670 ;;
9671 m88*-*-openbsd*)
9672 COREFILE=netbsd-core.lo
9673 ;;
9674 ns32k-pc532-mach)
9675 COREFILE=trad-core.lo
9676 TRAD_HEADER='"hosts/pc532mach.h"'
9677 ;;
9678 ns32k-*-netbsd* | ns32k-*-openbsd*)
9679 COREFILE=netbsd-core.lo
9680 ;;
9681 rs6000-*-lynx*)
9682 COREFILE=lynx-core.lo
9683 ;;
9684 rs6000-*-aix5.* | powerpc-*-aix5.*)
9685 COREFILE=rs6000-core.lo
9686 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
9687 ;;
9688 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
9689 COREFILE=rs6000-core.lo
9690 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
9691 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
9692 # have c_impl as a member of struct core_dumpx
9693 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
9694 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
9695 cat >conftest.$ac_ext <<_ACEOF
9696 /* confdefs.h. */
9697 _ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h. */
9701 #include <core.h>
9702 int
9703 main ()
9704 {
9705 struct core_dumpx c; c.c_impl = 0;
9706 ;
9707 return 0;
9708 }
9709 _ACEOF
9710 rm -f conftest.$ac_objext
9711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9712 (eval $ac_compile) 2>conftest.er1
9713 ac_status=$?
9714 grep -v '^ *+' conftest.er1 >conftest.err
9715 rm -f conftest.er1
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } &&
9719 { ac_try='test -z "$ac_c_werror_flag"
9720 || test ! -s conftest.err'
9721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722 (eval $ac_try) 2>&5
9723 ac_status=$?
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; } &&
9726 { ac_try='test -s conftest.$ac_objext'
9727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728 (eval $ac_try) 2>&5
9729 ac_status=$?
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; }; then
9732
9733 cat >>confdefs.h <<\_ACEOF
9734 #define HAVE_ST_C_IMPL 1
9735 _ACEOF
9736
9737 echo "$as_me:$LINENO: result: yes" >&5
9738 echo "${ECHO_T}yes" >&6
9739 else
9740 echo "$as_me: failed program was:" >&5
9741 sed 's/^/| /' conftest.$ac_ext >&5
9742
9743 echo "$as_me:$LINENO: result: no" >&5
9744 echo "${ECHO_T}no" >&6
9745 fi
9746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9747 ;;
9748 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
9749 rs6000-*-*) COREFILE=rs6000-core.lo ;;
9750 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
9751 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
9752 powerpc-*-beos*) ;;
9753 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
9754 COREFILE='' ;;
9755 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
9756 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
9757 s390*-*-*) COREFILE=trad-core.lo ;;
9758 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
9759 sparc-*-netbsd* | sparc*-*-openbsd*)
9760 COREFILE=netbsd-core.lo
9761 ;;
9762 tahoe-*-*)
9763 COREFILE=trad-core.lo
9764 TRAD_HEADER='"hosts/tahoe.h"'
9765 ;;
9766 vax-*-netbsd* | vax-*-openbsd*)
9767 COREFILE=netbsd-core.lo
9768 ;;
9769 vax-*-ultrix2*)
9770 COREFILE=trad-core.lo
9771 TRAD_HEADER='"hosts/vaxult2.h"'
9772 ;;
9773 vax-*-ultrix*)
9774 COREFILE=trad-core.lo
9775 TRAD_HEADER='"hosts/vaxult2.h"'
9776 ;;
9777 vax-*-linux-gnu*)
9778 COREFILE=trad-core.lo
9779 TRAD_HEADER='"hosts/vaxlinux.h"'
9780 ;;
9781 vax-*-*)
9782 COREFILE=trad-core.lo
9783 TRAD_HEADER='"hosts/vaxbsd.h"'
9784 ;;
9785 x86_64-*-netbsd* | x86_64-*-openbsd*)
9786 COREFILE=netbsd-core.lo
9787 ;;
9788 esac
9789
9790 case "$COREFILE" in
9791 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
9792 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
9793 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
9794 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
9795 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
9796 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
9797 osf-core.lo) COREFLAG=-DOSF_CORE ;;
9798 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
9799 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
9800 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
9801 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
9802 esac
9803
9804 # ELF corefile support has several flavors, but all of
9805 # them use something called <sys/procfs.h>
9806
9807 for ac_header in sys/procfs.h
9808 do
9809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9811 echo "$as_me:$LINENO: checking for $ac_header" >&5
9812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
9815 fi
9816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9818 else
9819 # Is the header compilable?
9820 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9822 cat >conftest.$ac_ext <<_ACEOF
9823 /* confdefs.h. */
9824 _ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h. */
9828 $ac_includes_default
9829 #include <$ac_header>
9830 _ACEOF
9831 rm -f conftest.$ac_objext
9832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9833 (eval $ac_compile) 2>conftest.er1
9834 ac_status=$?
9835 grep -v '^ *+' conftest.er1 >conftest.err
9836 rm -f conftest.er1
9837 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } &&
9840 { ac_try='test -z "$ac_c_werror_flag"
9841 || test ! -s conftest.err'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 (eval $ac_try) 2>&5
9844 ac_status=$?
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; } &&
9847 { ac_try='test -s conftest.$ac_objext'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 (eval $ac_try) 2>&5
9850 ac_status=$?
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; }; then
9853 ac_header_compiler=yes
9854 else
9855 echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.$ac_ext >&5
9857
9858 ac_header_compiler=no
9859 fi
9860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9861 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9862 echo "${ECHO_T}$ac_header_compiler" >&6
9863
9864 # Is the header present?
9865 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9867 cat >conftest.$ac_ext <<_ACEOF
9868 /* confdefs.h. */
9869 _ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h. */
9873 #include <$ac_header>
9874 _ACEOF
9875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9877 ac_status=$?
9878 grep -v '^ *+' conftest.er1 >conftest.err
9879 rm -f conftest.er1
9880 cat conftest.err >&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); } >/dev/null; then
9883 if test -s conftest.err; then
9884 ac_cpp_err=$ac_c_preproc_warn_flag
9885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9886 else
9887 ac_cpp_err=
9888 fi
9889 else
9890 ac_cpp_err=yes
9891 fi
9892 if test -z "$ac_cpp_err"; then
9893 ac_header_preproc=yes
9894 else
9895 echo "$as_me: failed program was:" >&5
9896 sed 's/^/| /' conftest.$ac_ext >&5
9897
9898 ac_header_preproc=no
9899 fi
9900 rm -f conftest.err conftest.$ac_ext
9901 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9902 echo "${ECHO_T}$ac_header_preproc" >&6
9903
9904 # So? What about this header?
9905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9906 yes:no: )
9907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9911 ac_header_preproc=yes
9912 ;;
9913 no:yes:* )
9914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9919 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9920 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9921 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9924 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9926 (
9927 cat <<\_ASBOX
9928 ## ------------------------------------------ ##
9929 ## Report this to the AC_PACKAGE_NAME lists. ##
9930 ## ------------------------------------------ ##
9931 _ASBOX
9932 ) |
9933 sed "s/^/$as_me: WARNING: /" >&2
9934 ;;
9935 esac
9936 echo "$as_me:$LINENO: checking for $ac_header" >&5
9937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9939 echo $ECHO_N "(cached) $ECHO_C" >&6
9940 else
9941 eval "$as_ac_Header=\$ac_header_preproc"
9942 fi
9943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9945
9946 fi
9947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9948 cat >>confdefs.h <<_ACEOF
9949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9950 _ACEOF
9951
9952 fi
9953
9954 done
9955
9956 if test "$ac_cv_header_sys_procfs_h" = yes; then
9957 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
9958 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
9959 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9961 else
9962 cat >conftest.$ac_ext <<_ACEOF
9963 /* confdefs.h. */
9964 _ACEOF
9965 cat confdefs.h >>conftest.$ac_ext
9966 cat >>conftest.$ac_ext <<_ACEOF
9967 /* end confdefs.h. */
9968
9969 #define _SYSCALL32
9970 #include <sys/procfs.h>
9971 int
9972 main ()
9973 {
9974 prstatus_t avar
9975 ;
9976 return 0;
9977 }
9978 _ACEOF
9979 rm -f conftest.$ac_objext
9980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9981 (eval $ac_compile) 2>conftest.er1
9982 ac_status=$?
9983 grep -v '^ *+' conftest.er1 >conftest.err
9984 rm -f conftest.er1
9985 cat conftest.err >&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); } &&
9988 { ac_try='test -z "$ac_c_werror_flag"
9989 || test ! -s conftest.err'
9990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991 (eval $ac_try) 2>&5
9992 ac_status=$?
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; } &&
9995 { ac_try='test -s conftest.$ac_objext'
9996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997 (eval $ac_try) 2>&5
9998 ac_status=$?
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; }; then
10001 bfd_cv_have_sys_procfs_type_prstatus_t=yes
10002 else
10003 echo "$as_me: failed program was:" >&5
10004 sed 's/^/| /' conftest.$ac_ext >&5
10005
10006 bfd_cv_have_sys_procfs_type_prstatus_t=no
10007
10008 fi
10009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10010 fi
10011
10012 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
10013
10014 cat >>confdefs.h <<\_ACEOF
10015 #define HAVE_PRSTATUS_T 1
10016 _ACEOF
10017
10018 fi
10019 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
10020 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
10021
10022 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
10023 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
10024 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
10025 echo $ECHO_N "(cached) $ECHO_C" >&6
10026 else
10027 cat >conftest.$ac_ext <<_ACEOF
10028 /* confdefs.h. */
10029 _ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h. */
10033
10034 #define _SYSCALL32
10035 #include <sys/procfs.h>
10036 int
10037 main ()
10038 {
10039 prstatus32_t avar
10040 ;
10041 return 0;
10042 }
10043 _ACEOF
10044 rm -f conftest.$ac_objext
10045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10046 (eval $ac_compile) 2>conftest.er1
10047 ac_status=$?
10048 grep -v '^ *+' conftest.er1 >conftest.err
10049 rm -f conftest.er1
10050 cat conftest.err >&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); } &&
10053 { ac_try='test -z "$ac_c_werror_flag"
10054 || test ! -s conftest.err'
10055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10056 (eval $ac_try) 2>&5
10057 ac_status=$?
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); }; } &&
10060 { ac_try='test -s conftest.$ac_objext'
10061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10062 (eval $ac_try) 2>&5
10063 ac_status=$?
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); }; }; then
10066 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
10067 else
10068 echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.$ac_ext >&5
10070
10071 bfd_cv_have_sys_procfs_type_prstatus32_t=no
10072
10073 fi
10074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10075 fi
10076
10077 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
10078
10079 cat >>confdefs.h <<\_ACEOF
10080 #define HAVE_PRSTATUS32_T 1
10081 _ACEOF
10082
10083 fi
10084 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
10085 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
10086
10087 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
10088 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
10089 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
10090 echo $ECHO_N "(cached) $ECHO_C" >&6
10091 else
10092 cat >conftest.$ac_ext <<_ACEOF
10093 /* confdefs.h. */
10094 _ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h. */
10098
10099 #define _SYSCALL32
10100 #include <sys/procfs.h>
10101 int
10102 main ()
10103 {
10104 prstatus_t avar; void* aref = (void*) &avar.pr_who
10105 ;
10106 return 0;
10107 }
10108 _ACEOF
10109 rm -f conftest.$ac_objext
10110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10111 (eval $ac_compile) 2>conftest.er1
10112 ac_status=$?
10113 grep -v '^ *+' conftest.er1 >conftest.err
10114 rm -f conftest.er1
10115 cat conftest.err >&5
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); } &&
10118 { ac_try='test -z "$ac_c_werror_flag"
10119 || test ! -s conftest.err'
10120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10121 (eval $ac_try) 2>&5
10122 ac_status=$?
10123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124 (exit $ac_status); }; } &&
10125 { ac_try='test -s conftest.$ac_objext'
10126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10127 (eval $ac_try) 2>&5
10128 ac_status=$?
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); }; }; then
10131 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
10132 else
10133 echo "$as_me: failed program was:" >&5
10134 sed 's/^/| /' conftest.$ac_ext >&5
10135
10136 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
10137
10138 fi
10139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10140 fi
10141
10142 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
10143
10144 cat >>confdefs.h <<\_ACEOF
10145 #define HAVE_PRSTATUS_T_PR_WHO 1
10146 _ACEOF
10147
10148 fi
10149 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
10150 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
10151
10152 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
10153 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
10154 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 else
10157 cat >conftest.$ac_ext <<_ACEOF
10158 /* confdefs.h. */
10159 _ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h. */
10163
10164 #define _SYSCALL32
10165 #include <sys/procfs.h>
10166 int
10167 main ()
10168 {
10169 prstatus32_t avar; void* aref = (void*) &avar.pr_who
10170 ;
10171 return 0;
10172 }
10173 _ACEOF
10174 rm -f conftest.$ac_objext
10175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10176 (eval $ac_compile) 2>conftest.er1
10177 ac_status=$?
10178 grep -v '^ *+' conftest.er1 >conftest.err
10179 rm -f conftest.er1
10180 cat conftest.err >&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } &&
10183 { ac_try='test -z "$ac_c_werror_flag"
10184 || test ! -s conftest.err'
10185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10186 (eval $ac_try) 2>&5
10187 ac_status=$?
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); }; } &&
10190 { ac_try='test -s conftest.$ac_objext'
10191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192 (eval $ac_try) 2>&5
10193 ac_status=$?
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); }; }; then
10196 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
10197 else
10198 echo "$as_me: failed program was:" >&5
10199 sed 's/^/| /' conftest.$ac_ext >&5
10200
10201 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
10202
10203 fi
10204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10205 fi
10206
10207 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
10208
10209 cat >>confdefs.h <<\_ACEOF
10210 #define HAVE_PRSTATUS32_T_PR_WHO 1
10211 _ACEOF
10212
10213 fi
10214 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
10215 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
10216
10217 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
10218 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
10219 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
10220 echo $ECHO_N "(cached) $ECHO_C" >&6
10221 else
10222 cat >conftest.$ac_ext <<_ACEOF
10223 /* confdefs.h. */
10224 _ACEOF
10225 cat confdefs.h >>conftest.$ac_ext
10226 cat >>conftest.$ac_ext <<_ACEOF
10227 /* end confdefs.h. */
10228
10229 #define _SYSCALL32
10230 #include <sys/procfs.h>
10231 int
10232 main ()
10233 {
10234 pstatus_t avar
10235 ;
10236 return 0;
10237 }
10238 _ACEOF
10239 rm -f conftest.$ac_objext
10240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10241 (eval $ac_compile) 2>conftest.er1
10242 ac_status=$?
10243 grep -v '^ *+' conftest.er1 >conftest.err
10244 rm -f conftest.er1
10245 cat conftest.err >&5
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); } &&
10248 { ac_try='test -z "$ac_c_werror_flag"
10249 || test ! -s conftest.err'
10250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251 (eval $ac_try) 2>&5
10252 ac_status=$?
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; } &&
10255 { ac_try='test -s conftest.$ac_objext'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10258 ac_status=$?
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
10261 bfd_cv_have_sys_procfs_type_pstatus_t=yes
10262 else
10263 echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10265
10266 bfd_cv_have_sys_procfs_type_pstatus_t=no
10267
10268 fi
10269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10270 fi
10271
10272 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
10273
10274 cat >>confdefs.h <<\_ACEOF
10275 #define HAVE_PSTATUS_T 1
10276 _ACEOF
10277
10278 fi
10279 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
10280 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
10281
10282 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
10283 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
10284 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
10285 echo $ECHO_N "(cached) $ECHO_C" >&6
10286 else
10287 cat >conftest.$ac_ext <<_ACEOF
10288 /* confdefs.h. */
10289 _ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h. */
10293
10294 #define _SYSCALL32
10295 #include <sys/procfs.h>
10296 int
10297 main ()
10298 {
10299 pxstatus_t avar
10300 ;
10301 return 0;
10302 }
10303 _ACEOF
10304 rm -f conftest.$ac_objext
10305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10306 (eval $ac_compile) 2>conftest.er1
10307 ac_status=$?
10308 grep -v '^ *+' conftest.er1 >conftest.err
10309 rm -f conftest.er1
10310 cat conftest.err >&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); } &&
10313 { ac_try='test -z "$ac_c_werror_flag"
10314 || test ! -s conftest.err'
10315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316 (eval $ac_try) 2>&5
10317 ac_status=$?
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); }; } &&
10320 { ac_try='test -s conftest.$ac_objext'
10321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322 (eval $ac_try) 2>&5
10323 ac_status=$?
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; }; then
10326 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
10327 else
10328 echo "$as_me: failed program was:" >&5
10329 sed 's/^/| /' conftest.$ac_ext >&5
10330
10331 bfd_cv_have_sys_procfs_type_pxstatus_t=no
10332
10333 fi
10334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10335 fi
10336
10337 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
10338
10339 cat >>confdefs.h <<\_ACEOF
10340 #define HAVE_PXSTATUS_T 1
10341 _ACEOF
10342
10343 fi
10344 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
10345 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
10346
10347 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
10348 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
10349 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
10350 echo $ECHO_N "(cached) $ECHO_C" >&6
10351 else
10352 cat >conftest.$ac_ext <<_ACEOF
10353 /* confdefs.h. */
10354 _ACEOF
10355 cat confdefs.h >>conftest.$ac_ext
10356 cat >>conftest.$ac_ext <<_ACEOF
10357 /* end confdefs.h. */
10358
10359 #define _SYSCALL32
10360 #include <sys/procfs.h>
10361 int
10362 main ()
10363 {
10364 pstatus32_t avar
10365 ;
10366 return 0;
10367 }
10368 _ACEOF
10369 rm -f conftest.$ac_objext
10370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10371 (eval $ac_compile) 2>conftest.er1
10372 ac_status=$?
10373 grep -v '^ *+' conftest.er1 >conftest.err
10374 rm -f conftest.er1
10375 cat conftest.err >&5
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } &&
10378 { ac_try='test -z "$ac_c_werror_flag"
10379 || test ! -s conftest.err'
10380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10381 (eval $ac_try) 2>&5
10382 ac_status=$?
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }; } &&
10385 { ac_try='test -s conftest.$ac_objext'
10386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10387 (eval $ac_try) 2>&5
10388 ac_status=$?
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); }; }; then
10391 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
10392 else
10393 echo "$as_me: failed program was:" >&5
10394 sed 's/^/| /' conftest.$ac_ext >&5
10395
10396 bfd_cv_have_sys_procfs_type_pstatus32_t=no
10397
10398 fi
10399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10400 fi
10401
10402 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
10403
10404 cat >>confdefs.h <<\_ACEOF
10405 #define HAVE_PSTATUS32_T 1
10406 _ACEOF
10407
10408 fi
10409 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
10410 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
10411
10412 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
10413 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
10414 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
10415 echo $ECHO_N "(cached) $ECHO_C" >&6
10416 else
10417 cat >conftest.$ac_ext <<_ACEOF
10418 /* confdefs.h. */
10419 _ACEOF
10420 cat confdefs.h >>conftest.$ac_ext
10421 cat >>conftest.$ac_ext <<_ACEOF
10422 /* end confdefs.h. */
10423
10424 #define _SYSCALL32
10425 #include <sys/procfs.h>
10426 int
10427 main ()
10428 {
10429 prpsinfo_t avar
10430 ;
10431 return 0;
10432 }
10433 _ACEOF
10434 rm -f conftest.$ac_objext
10435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10436 (eval $ac_compile) 2>conftest.er1
10437 ac_status=$?
10438 grep -v '^ *+' conftest.er1 >conftest.err
10439 rm -f conftest.er1
10440 cat conftest.err >&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } &&
10443 { ac_try='test -z "$ac_c_werror_flag"
10444 || test ! -s conftest.err'
10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446 (eval $ac_try) 2>&5
10447 ac_status=$?
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; } &&
10450 { ac_try='test -s conftest.$ac_objext'
10451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10452 (eval $ac_try) 2>&5
10453 ac_status=$?
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); }; }; then
10456 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
10457 else
10458 echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10460
10461 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
10462
10463 fi
10464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10465 fi
10466
10467 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
10468
10469 cat >>confdefs.h <<\_ACEOF
10470 #define HAVE_PRPSINFO_T 1
10471 _ACEOF
10472
10473 fi
10474 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
10475 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
10476
10477 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
10478 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
10479 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
10480 echo $ECHO_N "(cached) $ECHO_C" >&6
10481 else
10482 cat >conftest.$ac_ext <<_ACEOF
10483 /* confdefs.h. */
10484 _ACEOF
10485 cat confdefs.h >>conftest.$ac_ext
10486 cat >>conftest.$ac_ext <<_ACEOF
10487 /* end confdefs.h. */
10488
10489 #define _SYSCALL32
10490 #include <sys/procfs.h>
10491 int
10492 main ()
10493 {
10494 prpsinfo32_t avar
10495 ;
10496 return 0;
10497 }
10498 _ACEOF
10499 rm -f conftest.$ac_objext
10500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10501 (eval $ac_compile) 2>conftest.er1
10502 ac_status=$?
10503 grep -v '^ *+' conftest.er1 >conftest.err
10504 rm -f conftest.er1
10505 cat conftest.err >&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } &&
10508 { ac_try='test -z "$ac_c_werror_flag"
10509 || test ! -s conftest.err'
10510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511 (eval $ac_try) 2>&5
10512 ac_status=$?
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; } &&
10515 { ac_try='test -s conftest.$ac_objext'
10516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10518 ac_status=$?
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; }; then
10521 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
10522 else
10523 echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10525
10526 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
10527
10528 fi
10529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10530 fi
10531
10532 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
10533
10534 cat >>confdefs.h <<\_ACEOF
10535 #define HAVE_PRPSINFO32_T 1
10536 _ACEOF
10537
10538 fi
10539 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
10540 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
10541
10542 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
10543 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
10544 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
10545 echo $ECHO_N "(cached) $ECHO_C" >&6
10546 else
10547 cat >conftest.$ac_ext <<_ACEOF
10548 /* confdefs.h. */
10549 _ACEOF
10550 cat confdefs.h >>conftest.$ac_ext
10551 cat >>conftest.$ac_ext <<_ACEOF
10552 /* end confdefs.h. */
10553
10554 #define _SYSCALL32
10555 #include <sys/procfs.h>
10556 int
10557 main ()
10558 {
10559 psinfo_t avar
10560 ;
10561 return 0;
10562 }
10563 _ACEOF
10564 rm -f conftest.$ac_objext
10565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10566 (eval $ac_compile) 2>conftest.er1
10567 ac_status=$?
10568 grep -v '^ *+' conftest.er1 >conftest.err
10569 rm -f conftest.er1
10570 cat conftest.err >&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); } &&
10573 { ac_try='test -z "$ac_c_werror_flag"
10574 || test ! -s conftest.err'
10575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10576 (eval $ac_try) 2>&5
10577 ac_status=$?
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); }; } &&
10580 { ac_try='test -s conftest.$ac_objext'
10581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582 (eval $ac_try) 2>&5
10583 ac_status=$?
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; }; then
10586 bfd_cv_have_sys_procfs_type_psinfo_t=yes
10587 else
10588 echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.$ac_ext >&5
10590
10591 bfd_cv_have_sys_procfs_type_psinfo_t=no
10592
10593 fi
10594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10595 fi
10596
10597 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
10598
10599 cat >>confdefs.h <<\_ACEOF
10600 #define HAVE_PSINFO_T 1
10601 _ACEOF
10602
10603 fi
10604 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
10605 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
10606
10607 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
10608 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
10609 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10611 else
10612 cat >conftest.$ac_ext <<_ACEOF
10613 /* confdefs.h. */
10614 _ACEOF
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h. */
10618
10619 #define _SYSCALL32
10620 #include <sys/procfs.h>
10621 int
10622 main ()
10623 {
10624 psinfo32_t avar
10625 ;
10626 return 0;
10627 }
10628 _ACEOF
10629 rm -f conftest.$ac_objext
10630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10631 (eval $ac_compile) 2>conftest.er1
10632 ac_status=$?
10633 grep -v '^ *+' conftest.er1 >conftest.err
10634 rm -f conftest.er1
10635 cat conftest.err >&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } &&
10638 { ac_try='test -z "$ac_c_werror_flag"
10639 || test ! -s conftest.err'
10640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641 (eval $ac_try) 2>&5
10642 ac_status=$?
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); }; } &&
10645 { ac_try='test -s conftest.$ac_objext'
10646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647 (eval $ac_try) 2>&5
10648 ac_status=$?
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); }; }; then
10651 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
10652 else
10653 echo "$as_me: failed program was:" >&5
10654 sed 's/^/| /' conftest.$ac_ext >&5
10655
10656 bfd_cv_have_sys_procfs_type_psinfo32_t=no
10657
10658 fi
10659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10660 fi
10661
10662 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
10663
10664 cat >>confdefs.h <<\_ACEOF
10665 #define HAVE_PSINFO32_T 1
10666 _ACEOF
10667
10668 fi
10669 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
10670 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
10671
10672 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
10673 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
10674 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
10675 echo $ECHO_N "(cached) $ECHO_C" >&6
10676 else
10677 cat >conftest.$ac_ext <<_ACEOF
10678 /* confdefs.h. */
10679 _ACEOF
10680 cat confdefs.h >>conftest.$ac_ext
10681 cat >>conftest.$ac_ext <<_ACEOF
10682 /* end confdefs.h. */
10683
10684 #define _SYSCALL32
10685 #include <sys/procfs.h>
10686 int
10687 main ()
10688 {
10689 lwpstatus_t avar
10690 ;
10691 return 0;
10692 }
10693 _ACEOF
10694 rm -f conftest.$ac_objext
10695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10696 (eval $ac_compile) 2>conftest.er1
10697 ac_status=$?
10698 grep -v '^ *+' conftest.er1 >conftest.err
10699 rm -f conftest.er1
10700 cat conftest.err >&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); } &&
10703 { ac_try='test -z "$ac_c_werror_flag"
10704 || test ! -s conftest.err'
10705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10706 (eval $ac_try) 2>&5
10707 ac_status=$?
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); }; } &&
10710 { ac_try='test -s conftest.$ac_objext'
10711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10712 (eval $ac_try) 2>&5
10713 ac_status=$?
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); }; }; then
10716 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
10717 else
10718 echo "$as_me: failed program was:" >&5
10719 sed 's/^/| /' conftest.$ac_ext >&5
10720
10721 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
10722
10723 fi
10724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10725 fi
10726
10727 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
10728
10729 cat >>confdefs.h <<\_ACEOF
10730 #define HAVE_LWPSTATUS_T 1
10731 _ACEOF
10732
10733 fi
10734 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
10735 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
10736
10737 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
10738 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
10739 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10741 else
10742 cat >conftest.$ac_ext <<_ACEOF
10743 /* confdefs.h. */
10744 _ACEOF
10745 cat confdefs.h >>conftest.$ac_ext
10746 cat >>conftest.$ac_ext <<_ACEOF
10747 /* end confdefs.h. */
10748
10749 #define _SYSCALL32
10750 #include <sys/procfs.h>
10751 int
10752 main ()
10753 {
10754 lwpxstatus_t avar
10755 ;
10756 return 0;
10757 }
10758 _ACEOF
10759 rm -f conftest.$ac_objext
10760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10761 (eval $ac_compile) 2>conftest.er1
10762 ac_status=$?
10763 grep -v '^ *+' conftest.er1 >conftest.err
10764 rm -f conftest.er1
10765 cat conftest.err >&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); } &&
10768 { ac_try='test -z "$ac_c_werror_flag"
10769 || test ! -s conftest.err'
10770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771 (eval $ac_try) 2>&5
10772 ac_status=$?
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; } &&
10775 { ac_try='test -s conftest.$ac_objext'
10776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10777 (eval $ac_try) 2>&5
10778 ac_status=$?
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); }; }; then
10781 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
10782 else
10783 echo "$as_me: failed program was:" >&5
10784 sed 's/^/| /' conftest.$ac_ext >&5
10785
10786 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
10787
10788 fi
10789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10790 fi
10791
10792 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
10793
10794 cat >>confdefs.h <<\_ACEOF
10795 #define HAVE_LWPXSTATUS_T 1
10796 _ACEOF
10797
10798 fi
10799 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
10800 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
10801
10802 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
10803 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
10804 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
10805 echo $ECHO_N "(cached) $ECHO_C" >&6
10806 else
10807 cat >conftest.$ac_ext <<_ACEOF
10808 /* confdefs.h. */
10809 _ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h. */
10813
10814 #define _SYSCALL32
10815 #include <sys/procfs.h>
10816 int
10817 main ()
10818 {
10819 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
10820 ;
10821 return 0;
10822 }
10823 _ACEOF
10824 rm -f conftest.$ac_objext
10825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10826 (eval $ac_compile) 2>conftest.er1
10827 ac_status=$?
10828 grep -v '^ *+' conftest.er1 >conftest.err
10829 rm -f conftest.er1
10830 cat conftest.err >&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); } &&
10833 { ac_try='test -z "$ac_c_werror_flag"
10834 || test ! -s conftest.err'
10835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10836 (eval $ac_try) 2>&5
10837 ac_status=$?
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); }; } &&
10840 { ac_try='test -s conftest.$ac_objext'
10841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842 (eval $ac_try) 2>&5
10843 ac_status=$?
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); }; }; then
10846 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
10847 else
10848 echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10850
10851 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
10852
10853 fi
10854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10855 fi
10856
10857 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
10858
10859 cat >>confdefs.h <<\_ACEOF
10860 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
10861 _ACEOF
10862
10863 fi
10864 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
10865 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
10866
10867 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
10868 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
10869 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10871 else
10872 cat >conftest.$ac_ext <<_ACEOF
10873 /* confdefs.h. */
10874 _ACEOF
10875 cat confdefs.h >>conftest.$ac_ext
10876 cat >>conftest.$ac_ext <<_ACEOF
10877 /* end confdefs.h. */
10878
10879 #define _SYSCALL32
10880 #include <sys/procfs.h>
10881 int
10882 main ()
10883 {
10884 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
10885 ;
10886 return 0;
10887 }
10888 _ACEOF
10889 rm -f conftest.$ac_objext
10890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10891 (eval $ac_compile) 2>conftest.er1
10892 ac_status=$?
10893 grep -v '^ *+' conftest.er1 >conftest.err
10894 rm -f conftest.er1
10895 cat conftest.err >&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } &&
10898 { ac_try='test -z "$ac_c_werror_flag"
10899 || test ! -s conftest.err'
10900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10901 (eval $ac_try) 2>&5
10902 ac_status=$?
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; } &&
10905 { ac_try='test -s conftest.$ac_objext'
10906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10907 (eval $ac_try) 2>&5
10908 ac_status=$?
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; }; then
10911 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
10912 else
10913 echo "$as_me: failed program was:" >&5
10914 sed 's/^/| /' conftest.$ac_ext >&5
10915
10916 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
10917
10918 fi
10919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10920 fi
10921
10922 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
10923
10924 cat >>confdefs.h <<\_ACEOF
10925 #define HAVE_LWPSTATUS_T_PR_REG 1
10926 _ACEOF
10927
10928 fi
10929 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
10930 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
10931
10932 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
10933 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
10934 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10936 else
10937 cat >conftest.$ac_ext <<_ACEOF
10938 /* confdefs.h. */
10939 _ACEOF
10940 cat confdefs.h >>conftest.$ac_ext
10941 cat >>conftest.$ac_ext <<_ACEOF
10942 /* end confdefs.h. */
10943
10944 #define _SYSCALL32
10945 #include <sys/procfs.h>
10946 int
10947 main ()
10948 {
10949 win32_pstatus_t avar
10950 ;
10951 return 0;
10952 }
10953 _ACEOF
10954 rm -f conftest.$ac_objext
10955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10956 (eval $ac_compile) 2>conftest.er1
10957 ac_status=$?
10958 grep -v '^ *+' conftest.er1 >conftest.err
10959 rm -f conftest.er1
10960 cat conftest.err >&5
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); } &&
10963 { ac_try='test -z "$ac_c_werror_flag"
10964 || test ! -s conftest.err'
10965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10966 (eval $ac_try) 2>&5
10967 ac_status=$?
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; } &&
10970 { ac_try='test -s conftest.$ac_objext'
10971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10972 (eval $ac_try) 2>&5
10973 ac_status=$?
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); }; }; then
10976 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
10977 else
10978 echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.$ac_ext >&5
10980
10981 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
10982
10983 fi
10984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10985 fi
10986
10987 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
10988
10989 cat >>confdefs.h <<\_ACEOF
10990 #define HAVE_WIN32_PSTATUS_T 1
10991 _ACEOF
10992
10993 fi
10994 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
10995 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
10996
10997 fi
10998 fi
10999
11000
11001 if test -n "$TRAD_HEADER"; then
11002
11003 cat >>confdefs.h <<_ACEOF
11004 #define TRAD_HEADER $TRAD_HEADER
11005 _ACEOF
11006
11007 fi
11008
11009 # Horrible hacks to build DLLs on Windows.
11010 WIN32LDFLAGS=
11011 WIN32LIBADD=
11012 case "${host}" in
11013 *-*-cygwin*)
11014 if test "$enable_shared" = "yes"; then
11015 WIN32LDFLAGS="-no-undefined"
11016 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
11017 fi
11018 ;;
11019 *-*-linux*)
11020 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
11021 # libiberty.a.
11022 case "${host}" in
11023 mips*-*-linux*)
11024 # Linux/MIPS uses PIC by default.
11025 if test "$enable_shared" = "yes"; then
11026 WIN32LIBADD="-L../libiberty -liberty"
11027 fi
11028 ;;
11029 *)
11030 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
11031 if test -n "$x"; then
11032 WIN32LIBADD="-L../libiberty/pic -liberty"
11033 fi
11034 ;;
11035 esac
11036 ;;
11037 esac
11038
11039
11040
11041 # target stuff:
11042
11043 # Canonicalize the secondary target names.
11044 if test -n "$enable_targets" ; then
11045 for targ in `echo $enable_targets | sed 's/,/ /g'`
11046 do
11047 result=`$ac_config_sub $targ 2>/dev/null`
11048 if test -n "$result" ; then
11049 canon_targets="$canon_targets $result"
11050 else
11051 # Allow targets that config.sub doesn't recognize, like "all".
11052 canon_targets="$canon_targets $targ"
11053 fi
11054 done
11055 fi
11056
11057 all_targets=false
11058 defvec=
11059 selvecs=
11060 assocvecs=
11061 selarchs=
11062 TDEFINES=
11063 for targ in $target $canon_targets
11064 do
11065 if test "x$targ" = "xall"; then
11066 all_targets=true
11067 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
11068 else
11069 . $srcdir/config.bfd
11070 if test "x$targ" = "x$target"; then
11071 defvec=$targ_defvec
11072 fi
11073 selvecs="$selvecs $targ_defvec $targ_selvecs"
11074 selarchs="$selarchs $targ_archs"
11075 TDEFINES="$TDEFINES $targ_cflags"
11076 fi
11077 done
11078
11079
11080 # This processing still needs to be done if we're to decide properly whether
11081 # 64-bit support needs to be compiled in. Currently, it will be included if
11082 # the default or any other explicitly requested target requires it; it
11083 # will not be included on a 32-bit host if no 64-bit target is requested, and
11084 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
11085 # used.
11086
11087 # uniq the default and selected vectors in all the configured targets.
11088 f=""
11089 for i in $selvecs ; do
11090 case " $f " in
11091 *" $i "*) ;;
11092 *) f="$f $i" ;;
11093 esac
11094 done
11095 selvecs="$f"
11096
11097
11098 # uniq the associated vectors in all the configured targets.
11099 f=""
11100 for i in $assocvecs ; do
11101 case " $f " in
11102 *" $i "*) ;;
11103 *) f="$f $i" ;;
11104 esac
11105 done
11106 assocvecs="$f"
11107
11108
11109 # uniq the architectures in all the configured targets.
11110 f=""
11111 for i in $selarchs ; do
11112 case " $f " in
11113 *" $i "*) ;;
11114 *) f="$f $i" ;;
11115 esac
11116 done
11117 selarchs="$f"
11118
11119 # Target backend .o files.
11120 tb=
11121
11122 elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
11123
11124 for vec in $selvecs
11125 do
11126 target_size=32
11127 case "$vec" in
11128 # This list is alphabetized to make it easy to compare
11129 # with the two vector lists in targets.c. For the same reason,
11130 # use one entry per line, even though this leads to long lines.
11131 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
11132 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
11133 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
11134 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
11135 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
11136 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
11137 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
11138 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
11139 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
11140 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
11141 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
11142 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
11143 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
11144 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
11145 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
11146 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
11147 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
11148 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
11149 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
11150 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
11151 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
11152 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
11153 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
11154 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
11155 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
11156 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
11157 bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
11158 bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
11159 bfd_elf32_bigarm_symbian_vec)
11160 tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
11161 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11162 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
11163 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
11164 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
11165 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
11166 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
11167 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
11168 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
11169 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
11170 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
11171 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
11172 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
11173 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
11174 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
11175 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
11176 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
11177 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
11178 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
11179 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
11180 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
11181 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
11182 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
11183 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
11184 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
11185 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
11186 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
11187 bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
11188 bfd_elf32_littlearm_symbian_vec)
11189 tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
11190 bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
11191 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11192 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11193 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11194 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11195 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11196 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
11197 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
11198 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
11199 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
11200 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
11201 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
11202 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
11203 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
11204 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
11205 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11206 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11207 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11208 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11209 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
11210 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
11211 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
11212 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
11213 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
11214 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
11215 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
11216 # FIXME: We include cofflink.lo not because it's needed for
11217 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
11218 # which needs it but does not list it. Should be fixed in right place.
11219 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11220 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11221 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11222 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11223 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
11224 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
11225 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
11226 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11227 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
11228 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
11229 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11230 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11231 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11232 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
11233 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11234 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11235 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
11236 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
11237 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
11238 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
11239 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
11240 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
11241 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
11242 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
11243 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
11244 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11245 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
11246 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
11247 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
11248 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
11249 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
11250 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
11251 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11252 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
11253 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
11254 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
11255 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
11256 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11257 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11258 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11259 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11260 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11261 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11262 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"; target_size=64 ;;
11263 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11264 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11265 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
11266 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
11267 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
11268 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
11269 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
11270 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
11271 cris_aout_vec) tb="$tb aout-cris.lo" ;;
11272 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
11273 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11274 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11275 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11276 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
11277 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
11278 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
11279 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
11280 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
11281 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
11282 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
11283 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
11284 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
11285 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
11286 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
11287 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
11288 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
11289 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
11290 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
11291 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
11292 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
11293 i386msdos_vec) tb="$tb i386msdos.lo" ;;
11294 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
11295 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
11296 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
11297 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
11298 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
11299 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11300 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11301 ieee_vec) tb="$tb ieee.lo" ;;
11302 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
11303 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
11304 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
11305 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
11306 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
11307 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
11308 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
11309 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
11310 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
11311 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
11312 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
11313 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
11314 mach_o_be_vec) tb="$tb mach-o.lo" ;;
11315 mach_o_le_vec) tb="$tb mach-o.lo" ;;
11316 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
11317 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11318 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11319 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11320 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11321 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
11322 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
11323 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
11324 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
11325 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
11326 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
11327 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
11328 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
11329 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
11330 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
11331 pef_vec) tb="$tb pef.lo" ;;
11332 pef_xlib_vec) tb="$tb pef.lo" ;;
11333 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
11334 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
11335 ppcboot_vec) tb="$tb ppcboot.lo" ;;
11336 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
11337 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
11338 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
11339 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11340 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11341 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11342 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11343 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11344 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11345 som_vec) tb="$tb som.lo" ;;
11346 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
11347 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
11348 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
11349 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
11350 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
11351 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
11352 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
11353 sym_vec) tb="$tb xsym.lo" ;;
11354 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
11355 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
11356 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
11357 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
11358 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
11359 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
11360 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
11361 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
11362 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
11363 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
11364 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
11365 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
11366 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
11367 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
11368 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
11369 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
11370 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
11371 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
11372 versados_vec) tb="$tb versados.lo" ;;
11373 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
11374 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
11375 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
11376 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
11377 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
11378
11379 # These appear out of order in targets.c
11380 srec_vec) tb="$tb srec.lo" ;;
11381 symbolsrec_vec) tb="$tb srec.lo" ;;
11382 tekhex_vec) tb="$tb tekhex.lo" ;;
11383 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
11384 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
11385
11386 "") ;;
11387 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
11388 echo "$as_me: error: *** unknown target vector $vec" >&2;}
11389 { (exit 1); exit 1; }; } ;;
11390 esac
11391
11392 if test ${target_size} = 64; then
11393 target64=true
11394 fi
11395 if test x"${vec}" = x"${defvec}"; then
11396 bfd_default_target_size=${target_size}
11397 fi
11398 done
11399
11400 # Target architecture .o files.
11401 # A couple of CPUs use shorter file names to avoid problems on DOS
11402 # filesystems.
11403 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
11404
11405 # Weed out duplicate .o files.
11406 f=""
11407 for i in $tb ; do
11408 case " $f " in
11409 *" $i "*) ;;
11410 *) f="$f $i" ;;
11411 esac
11412 done
11413 tb="$f"
11414
11415 f=""
11416 for i in $ta ; do
11417 case " $f " in
11418 *" $i "*) ;;
11419 *) f="$f $i" ;;
11420 esac
11421 done
11422 ta="$f"
11423
11424 bfd_backends="$tb"
11425 bfd_machines="$ta"
11426
11427 if test x${all_targets} = xtrue ; then
11428 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
11429 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
11430 selvecs=
11431 havevecs=
11432 selarchs=
11433 test -n "$assocvecs" &&
11434 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11435 else # all_targets is true
11436 # Only set these if they will be nonempty, for the clever echo.
11437 havevecs=
11438 assocvecs=
11439 test -n "$selvecs" &&
11440 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
11441 test -n "$selvecs" &&
11442 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11443 test -n "$selarchs" &&
11444 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11445 fi # all_targets is true
11446
11447 case ${host64}-${target64}-${want64} in
11448 *true*)
11449 wordsize=64
11450 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
11451 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
11452 if test $BFD_HOST_64_BIT_DEFINED = 0; then
11453 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
11454 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
11455 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
11456 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
11457 fi
11458 if test -n "$GCC" ; then
11459 bad_64bit_gcc=no;
11460 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
11461 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
11462 # Add more tests for gcc versions with non-working 64-bit support here.
11463 cat >conftest.$ac_ext <<_ACEOF
11464 /* confdefs.h. */
11465 _ACEOF
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h. */
11469 :__GNUC__:__GNUC_MINOR__:__i386__:
11470 _ACEOF
11471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11472 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
11473 bad_64bit_gcc=yes;
11474 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
11475 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
11476 else
11477 echo "$as_me:$LINENO: result: no" >&5
11478 echo "${ECHO_T}no" >&6
11479 fi
11480 rm -f conftest*
11481
11482 if test $bad_64bit_gcc = yes ; then
11483 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
11484 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
11485 { (exit 1); exit 1; }; }
11486 fi
11487 fi
11488 ;;
11489 false-false-false)
11490 wordsize=32
11491 bfd_libs='$(BFD32_LIBS)'
11492 all_backends='$(BFD32_BACKENDS)'
11493 ;;
11494 esac
11495
11496
11497
11498
11499
11500
11501
11502
11503 # Determine the host dependant file_ptr a.k.a. off_t type. In order
11504 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
11505 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
11506 # Hopefully a reasonable assumption since fseeko et.al. should be
11507 # upward compatible.
11508
11509
11510
11511
11512 for ac_func in ftello ftello64 fseeko fseeko64
11513 do
11514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11515 echo "$as_me:$LINENO: checking for $ac_func" >&5
11516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11517 if eval "test \"\${$as_ac_var+set}\" = set"; then
11518 echo $ECHO_N "(cached) $ECHO_C" >&6
11519 else
11520 cat >conftest.$ac_ext <<_ACEOF
11521 /* confdefs.h. */
11522 _ACEOF
11523 cat confdefs.h >>conftest.$ac_ext
11524 cat >>conftest.$ac_ext <<_ACEOF
11525 /* end confdefs.h. */
11526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11528 #define $ac_func innocuous_$ac_func
11529
11530 /* System header to define __stub macros and hopefully few prototypes,
11531 which can conflict with char $ac_func (); below.
11532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11533 <limits.h> exists even on freestanding compilers. */
11534
11535 #ifdef __STDC__
11536 # include <limits.h>
11537 #else
11538 # include <assert.h>
11539 #endif
11540
11541 #undef $ac_func
11542
11543 /* Override any gcc2 internal prototype to avoid an error. */
11544 #ifdef __cplusplus
11545 extern "C"
11546 {
11547 #endif
11548 /* We use char because int might match the return type of a gcc2
11549 builtin and then its argument prototype would still apply. */
11550 char $ac_func ();
11551 /* The GNU C library defines this for functions which it implements
11552 to always fail with ENOSYS. Some functions are actually named
11553 something starting with __ and the normal name is an alias. */
11554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11555 choke me
11556 #else
11557 char (*f) () = $ac_func;
11558 #endif
11559 #ifdef __cplusplus
11560 }
11561 #endif
11562
11563 int
11564 main ()
11565 {
11566 return f != $ac_func;
11567 ;
11568 return 0;
11569 }
11570 _ACEOF
11571 rm -f conftest.$ac_objext conftest$ac_exeext
11572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11573 (eval $ac_link) 2>conftest.er1
11574 ac_status=$?
11575 grep -v '^ *+' conftest.er1 >conftest.err
11576 rm -f conftest.er1
11577 cat conftest.err >&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); } &&
11580 { ac_try='test -z "$ac_c_werror_flag"
11581 || test ! -s conftest.err'
11582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11583 (eval $ac_try) 2>&5
11584 ac_status=$?
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); }; } &&
11587 { ac_try='test -s conftest$ac_exeext'
11588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11589 (eval $ac_try) 2>&5
11590 ac_status=$?
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); }; }; then
11593 eval "$as_ac_var=yes"
11594 else
11595 echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.$ac_ext >&5
11597
11598 eval "$as_ac_var=no"
11599 fi
11600 rm -f conftest.err conftest.$ac_objext \
11601 conftest$ac_exeext conftest.$ac_ext
11602 fi
11603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11605 if test `eval echo '${'$as_ac_var'}'` = yes; then
11606 cat >>confdefs.h <<_ACEOF
11607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11608 _ACEOF
11609
11610 fi
11611 done
11612
11613 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
11614 echo "$as_me:$LINENO: checking size of off_t" >&5
11615 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
11616 if test "${ac_cv_sizeof_off_t+set}" = set; then
11617 echo $ECHO_N "(cached) $ECHO_C" >&6
11618 else
11619 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
11620 cat >conftest.$ac_ext <<_ACEOF
11621 /* confdefs.h. */
11622 _ACEOF
11623 cat confdefs.h >>conftest.$ac_ext
11624 cat >>conftest.$ac_ext <<_ACEOF
11625 /* end confdefs.h. */
11626 #include "confdefs.h"
11627 #include <sys/types.h>
11628
11629
11630 int
11631 main ()
11632 {
11633 switch (0) case 0: case (sizeof (off_t) == $ac_size):;
11634 ;
11635 return 0;
11636 }
11637 _ACEOF
11638 rm -f conftest.$ac_objext
11639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11640 (eval $ac_compile) 2>conftest.er1
11641 ac_status=$?
11642 grep -v '^ *+' conftest.er1 >conftest.err
11643 rm -f conftest.er1
11644 cat conftest.err >&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); } &&
11647 { ac_try='test -z "$ac_c_werror_flag"
11648 || test ! -s conftest.err'
11649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11650 (eval $ac_try) 2>&5
11651 ac_status=$?
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; } &&
11654 { ac_try='test -s conftest.$ac_objext'
11655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11656 (eval $ac_try) 2>&5
11657 ac_status=$?
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }; }; then
11660 ac_cv_sizeof_off_t=$ac_size
11661 else
11662 echo "$as_me: failed program was:" >&5
11663 sed 's/^/| /' conftest.$ac_ext >&5
11664
11665 fi
11666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11667 if test x$ac_cv_sizeof_off_t != x ; then break; fi
11668 done
11669
11670 fi
11671
11672 if test x$ac_cv_sizeof_off_t = x ; then
11673 { { echo "$as_me:$LINENO: error: cannot determine a size for off_t" >&5
11674 echo "$as_me: error: cannot determine a size for off_t" >&2;}
11675 { (exit 1); exit 1; }; }
11676 fi
11677 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
11678 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
11679
11680 cat >>confdefs.h <<_ACEOF
11681 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
11682 _ACEOF
11683
11684
11685 fi
11686 echo "$as_me:$LINENO: checking file_ptr type" >&5
11687 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
11688 bfd_file_ptr="long"
11689 bfd_ufile_ptr="unsigned long"
11690 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
11691 -o x"${ac_cv_sizeof_off_t}" = x8; then
11692 bfd_file_ptr=BFD_HOST_64_BIT
11693 bfd_ufile_ptr=BFD_HOST_U_64_BIT
11694 fi
11695 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
11696 echo "${ECHO_T}$bfd_file_ptr" >&6
11697
11698
11699
11700
11701 tdefaults=""
11702 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
11703 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
11704 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
11705 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
11706 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
11707
11708
11709
11710
11711 for ac_header in stdlib.h unistd.h
11712 do
11713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11715 echo "$as_me:$LINENO: checking for $ac_header" >&5
11716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11718 echo $ECHO_N "(cached) $ECHO_C" >&6
11719 fi
11720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11722 else
11723 # Is the header compilable?
11724 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11726 cat >conftest.$ac_ext <<_ACEOF
11727 /* confdefs.h. */
11728 _ACEOF
11729 cat confdefs.h >>conftest.$ac_ext
11730 cat >>conftest.$ac_ext <<_ACEOF
11731 /* end confdefs.h. */
11732 $ac_includes_default
11733 #include <$ac_header>
11734 _ACEOF
11735 rm -f conftest.$ac_objext
11736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11737 (eval $ac_compile) 2>conftest.er1
11738 ac_status=$?
11739 grep -v '^ *+' conftest.er1 >conftest.err
11740 rm -f conftest.er1
11741 cat conftest.err >&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); } &&
11744 { ac_try='test -z "$ac_c_werror_flag"
11745 || test ! -s conftest.err'
11746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747 (eval $ac_try) 2>&5
11748 ac_status=$?
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; } &&
11751 { ac_try='test -s conftest.$ac_objext'
11752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753 (eval $ac_try) 2>&5
11754 ac_status=$?
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); }; }; then
11757 ac_header_compiler=yes
11758 else
11759 echo "$as_me: failed program was:" >&5
11760 sed 's/^/| /' conftest.$ac_ext >&5
11761
11762 ac_header_compiler=no
11763 fi
11764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11765 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11766 echo "${ECHO_T}$ac_header_compiler" >&6
11767
11768 # Is the header present?
11769 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11770 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11771 cat >conftest.$ac_ext <<_ACEOF
11772 /* confdefs.h. */
11773 _ACEOF
11774 cat confdefs.h >>conftest.$ac_ext
11775 cat >>conftest.$ac_ext <<_ACEOF
11776 /* end confdefs.h. */
11777 #include <$ac_header>
11778 _ACEOF
11779 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11780 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11781 ac_status=$?
11782 grep -v '^ *+' conftest.er1 >conftest.err
11783 rm -f conftest.er1
11784 cat conftest.err >&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } >/dev/null; then
11787 if test -s conftest.err; then
11788 ac_cpp_err=$ac_c_preproc_warn_flag
11789 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11790 else
11791 ac_cpp_err=
11792 fi
11793 else
11794 ac_cpp_err=yes
11795 fi
11796 if test -z "$ac_cpp_err"; then
11797 ac_header_preproc=yes
11798 else
11799 echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11801
11802 ac_header_preproc=no
11803 fi
11804 rm -f conftest.err conftest.$ac_ext
11805 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11806 echo "${ECHO_T}$ac_header_preproc" >&6
11807
11808 # So? What about this header?
11809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11810 yes:no: )
11811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11814 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11815 ac_header_preproc=yes
11816 ;;
11817 no:yes:* )
11818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11821 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11822 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11823 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11824 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11825 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11828 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11829 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11830 (
11831 cat <<\_ASBOX
11832 ## ------------------------------------------ ##
11833 ## Report this to the AC_PACKAGE_NAME lists. ##
11834 ## ------------------------------------------ ##
11835 _ASBOX
11836 ) |
11837 sed "s/^/$as_me: WARNING: /" >&2
11838 ;;
11839 esac
11840 echo "$as_me:$LINENO: checking for $ac_header" >&5
11841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11843 echo $ECHO_N "(cached) $ECHO_C" >&6
11844 else
11845 eval "$as_ac_Header=\$ac_header_preproc"
11846 fi
11847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11849
11850 fi
11851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11852 cat >>confdefs.h <<_ACEOF
11853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11854 _ACEOF
11855
11856 fi
11857
11858 done
11859
11860
11861 for ac_func in getpagesize
11862 do
11863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11864 echo "$as_me:$LINENO: checking for $ac_func" >&5
11865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11866 if eval "test \"\${$as_ac_var+set}\" = set"; then
11867 echo $ECHO_N "(cached) $ECHO_C" >&6
11868 else
11869 cat >conftest.$ac_ext <<_ACEOF
11870 /* confdefs.h. */
11871 _ACEOF
11872 cat confdefs.h >>conftest.$ac_ext
11873 cat >>conftest.$ac_ext <<_ACEOF
11874 /* end confdefs.h. */
11875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11877 #define $ac_func innocuous_$ac_func
11878
11879 /* System header to define __stub macros and hopefully few prototypes,
11880 which can conflict with char $ac_func (); below.
11881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11882 <limits.h> exists even on freestanding compilers. */
11883
11884 #ifdef __STDC__
11885 # include <limits.h>
11886 #else
11887 # include <assert.h>
11888 #endif
11889
11890 #undef $ac_func
11891
11892 /* Override any gcc2 internal prototype to avoid an error. */
11893 #ifdef __cplusplus
11894 extern "C"
11895 {
11896 #endif
11897 /* We use char because int might match the return type of a gcc2
11898 builtin and then its argument prototype would still apply. */
11899 char $ac_func ();
11900 /* The GNU C library defines this for functions which it implements
11901 to always fail with ENOSYS. Some functions are actually named
11902 something starting with __ and the normal name is an alias. */
11903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11904 choke me
11905 #else
11906 char (*f) () = $ac_func;
11907 #endif
11908 #ifdef __cplusplus
11909 }
11910 #endif
11911
11912 int
11913 main ()
11914 {
11915 return f != $ac_func;
11916 ;
11917 return 0;
11918 }
11919 _ACEOF
11920 rm -f conftest.$ac_objext conftest$ac_exeext
11921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11922 (eval $ac_link) 2>conftest.er1
11923 ac_status=$?
11924 grep -v '^ *+' conftest.er1 >conftest.err
11925 rm -f conftest.er1
11926 cat conftest.err >&5
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); } &&
11929 { ac_try='test -z "$ac_c_werror_flag"
11930 || test ! -s conftest.err'
11931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11932 (eval $ac_try) 2>&5
11933 ac_status=$?
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); }; } &&
11936 { ac_try='test -s conftest$ac_exeext'
11937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938 (eval $ac_try) 2>&5
11939 ac_status=$?
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; }; then
11942 eval "$as_ac_var=yes"
11943 else
11944 echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11946
11947 eval "$as_ac_var=no"
11948 fi
11949 rm -f conftest.err conftest.$ac_objext \
11950 conftest$ac_exeext conftest.$ac_ext
11951 fi
11952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11953 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11954 if test `eval echo '${'$as_ac_var'}'` = yes; then
11955 cat >>confdefs.h <<_ACEOF
11956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11957 _ACEOF
11958
11959 fi
11960 done
11961
11962 echo "$as_me:$LINENO: checking for working mmap" >&5
11963 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
11964 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
11965 echo $ECHO_N "(cached) $ECHO_C" >&6
11966 else
11967 if test "$cross_compiling" = yes; then
11968 ac_cv_func_mmap_fixed_mapped=no
11969 else
11970 cat >conftest.$ac_ext <<_ACEOF
11971 /* confdefs.h. */
11972 _ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h. */
11976 $ac_includes_default
11977 /* malloc might have been renamed as rpl_malloc. */
11978 #undef malloc
11979
11980 /* Thanks to Mike Haertel and Jim Avera for this test.
11981 Here is a matrix of mmap possibilities:
11982 mmap private not fixed
11983 mmap private fixed at somewhere currently unmapped
11984 mmap private fixed at somewhere already mapped
11985 mmap shared not fixed
11986 mmap shared fixed at somewhere currently unmapped
11987 mmap shared fixed at somewhere already mapped
11988 For private mappings, we should verify that changes cannot be read()
11989 back from the file, nor mmap's back from the file at a different
11990 address. (There have been systems where private was not correctly
11991 implemented like the infamous i386 svr4.0, and systems where the
11992 VM page cache was not coherent with the file system buffer cache
11993 like early versions of FreeBSD and possibly contemporary NetBSD.)
11994 For shared mappings, we should conversely verify that changes get
11995 propagated back to all the places they're supposed to be.
11996
11997 Grep wants private fixed already mapped.
11998 The main things grep needs to know about mmap are:
11999 * does it exist and is it safe to write into the mmap'd area
12000 * how to use it (BSD variants) */
12001
12002 #include <fcntl.h>
12003 #include <sys/mman.h>
12004
12005 #if !STDC_HEADERS && !HAVE_STDLIB_H
12006 char *malloc ();
12007 #endif
12008
12009 /* This mess was copied from the GNU getpagesize.h. */
12010 #if !HAVE_GETPAGESIZE
12011 /* Assume that all systems that can run configure have sys/param.h. */
12012 # if !HAVE_SYS_PARAM_H
12013 # define HAVE_SYS_PARAM_H 1
12014 # endif
12015
12016 # ifdef _SC_PAGESIZE
12017 # define getpagesize() sysconf(_SC_PAGESIZE)
12018 # else /* no _SC_PAGESIZE */
12019 # if HAVE_SYS_PARAM_H
12020 # include <sys/param.h>
12021 # ifdef EXEC_PAGESIZE
12022 # define getpagesize() EXEC_PAGESIZE
12023 # else /* no EXEC_PAGESIZE */
12024 # ifdef NBPG
12025 # define getpagesize() NBPG * CLSIZE
12026 # ifndef CLSIZE
12027 # define CLSIZE 1
12028 # endif /* no CLSIZE */
12029 # else /* no NBPG */
12030 # ifdef NBPC
12031 # define getpagesize() NBPC
12032 # else /* no NBPC */
12033 # ifdef PAGESIZE
12034 # define getpagesize() PAGESIZE
12035 # endif /* PAGESIZE */
12036 # endif /* no NBPC */
12037 # endif /* no NBPG */
12038 # endif /* no EXEC_PAGESIZE */
12039 # else /* no HAVE_SYS_PARAM_H */
12040 # define getpagesize() 8192 /* punt totally */
12041 # endif /* no HAVE_SYS_PARAM_H */
12042 # endif /* no _SC_PAGESIZE */
12043
12044 #endif /* no HAVE_GETPAGESIZE */
12045
12046 int
12047 main ()
12048 {
12049 char *data, *data2, *data3;
12050 int i, pagesize;
12051 int fd;
12052
12053 pagesize = getpagesize ();
12054
12055 /* First, make a file with some known garbage in it. */
12056 data = (char *) malloc (pagesize);
12057 if (!data)
12058 exit (1);
12059 for (i = 0; i < pagesize; ++i)
12060 *(data + i) = rand ();
12061 umask (0);
12062 fd = creat ("conftest.mmap", 0600);
12063 if (fd < 0)
12064 exit (1);
12065 if (write (fd, data, pagesize) != pagesize)
12066 exit (1);
12067 close (fd);
12068
12069 /* Next, try to mmap the file at a fixed address which already has
12070 something else allocated at it. If we can, also make sure that
12071 we see the same garbage. */
12072 fd = open ("conftest.mmap", O_RDWR);
12073 if (fd < 0)
12074 exit (1);
12075 data2 = (char *) malloc (2 * pagesize);
12076 if (!data2)
12077 exit (1);
12078 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12079 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12080 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12081 exit (1);
12082 for (i = 0; i < pagesize; ++i)
12083 if (*(data + i) != *(data2 + i))
12084 exit (1);
12085
12086 /* Finally, make sure that changes to the mapped area do not
12087 percolate back to the file as seen by read(). (This is a bug on
12088 some variants of i386 svr4.0.) */
12089 for (i = 0; i < pagesize; ++i)
12090 *(data2 + i) = *(data2 + i) + 1;
12091 data3 = (char *) malloc (pagesize);
12092 if (!data3)
12093 exit (1);
12094 if (read (fd, data3, pagesize) != pagesize)
12095 exit (1);
12096 for (i = 0; i < pagesize; ++i)
12097 if (*(data + i) != *(data3 + i))
12098 exit (1);
12099 close (fd);
12100 exit (0);
12101 }
12102 _ACEOF
12103 rm -f conftest$ac_exeext
12104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12105 (eval $ac_link) 2>&5
12106 ac_status=$?
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12110 (eval $ac_try) 2>&5
12111 ac_status=$?
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); }; }; then
12114 ac_cv_func_mmap_fixed_mapped=yes
12115 else
12116 echo "$as_me: program exited with status $ac_status" >&5
12117 echo "$as_me: failed program was:" >&5
12118 sed 's/^/| /' conftest.$ac_ext >&5
12119
12120 ( exit $ac_status )
12121 ac_cv_func_mmap_fixed_mapped=no
12122 fi
12123 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12124 fi
12125 fi
12126 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12127 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12128 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12129
12130 cat >>confdefs.h <<\_ACEOF
12131 #define HAVE_MMAP 1
12132 _ACEOF
12133
12134 fi
12135 rm -f conftest.mmap
12136
12137
12138
12139 for ac_func in madvise mprotect
12140 do
12141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12142 echo "$as_me:$LINENO: checking for $ac_func" >&5
12143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12144 if eval "test \"\${$as_ac_var+set}\" = set"; then
12145 echo $ECHO_N "(cached) $ECHO_C" >&6
12146 else
12147 cat >conftest.$ac_ext <<_ACEOF
12148 /* confdefs.h. */
12149 _ACEOF
12150 cat confdefs.h >>conftest.$ac_ext
12151 cat >>conftest.$ac_ext <<_ACEOF
12152 /* end confdefs.h. */
12153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12155 #define $ac_func innocuous_$ac_func
12156
12157 /* System header to define __stub macros and hopefully few prototypes,
12158 which can conflict with char $ac_func (); below.
12159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12160 <limits.h> exists even on freestanding compilers. */
12161
12162 #ifdef __STDC__
12163 # include <limits.h>
12164 #else
12165 # include <assert.h>
12166 #endif
12167
12168 #undef $ac_func
12169
12170 /* Override any gcc2 internal prototype to avoid an error. */
12171 #ifdef __cplusplus
12172 extern "C"
12173 {
12174 #endif
12175 /* We use char because int might match the return type of a gcc2
12176 builtin and then its argument prototype would still apply. */
12177 char $ac_func ();
12178 /* The GNU C library defines this for functions which it implements
12179 to always fail with ENOSYS. Some functions are actually named
12180 something starting with __ and the normal name is an alias. */
12181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12182 choke me
12183 #else
12184 char (*f) () = $ac_func;
12185 #endif
12186 #ifdef __cplusplus
12187 }
12188 #endif
12189
12190 int
12191 main ()
12192 {
12193 return f != $ac_func;
12194 ;
12195 return 0;
12196 }
12197 _ACEOF
12198 rm -f conftest.$ac_objext conftest$ac_exeext
12199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12200 (eval $ac_link) 2>conftest.er1
12201 ac_status=$?
12202 grep -v '^ *+' conftest.er1 >conftest.err
12203 rm -f conftest.er1
12204 cat conftest.err >&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } &&
12207 { ac_try='test -z "$ac_c_werror_flag"
12208 || test ! -s conftest.err'
12209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12210 (eval $ac_try) 2>&5
12211 ac_status=$?
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; } &&
12214 { ac_try='test -s conftest$ac_exeext'
12215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216 (eval $ac_try) 2>&5
12217 ac_status=$?
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; }; then
12220 eval "$as_ac_var=yes"
12221 else
12222 echo "$as_me: failed program was:" >&5
12223 sed 's/^/| /' conftest.$ac_ext >&5
12224
12225 eval "$as_ac_var=no"
12226 fi
12227 rm -f conftest.err conftest.$ac_objext \
12228 conftest$ac_exeext conftest.$ac_ext
12229 fi
12230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12231 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12232 if test `eval echo '${'$as_ac_var'}'` = yes; then
12233 cat >>confdefs.h <<_ACEOF
12234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12235 _ACEOF
12236
12237 fi
12238 done
12239
12240 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
12241 true+yes )
12242 cat >>confdefs.h <<\_ACEOF
12243 #define USE_MMAP 1
12244 _ACEOF
12245 ;;
12246 esac
12247
12248 rm -f doc/config.status
12249 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
12250
12251 ac_config_commands="$ac_config_commands default"
12252
12253 cat >confcache <<\_ACEOF
12254 # This file is a shell script that caches the results of configure
12255 # tests run on this system so they can be shared between configure
12256 # scripts and configure runs, see configure's option --config-cache.
12257 # It is not useful on other systems. If it contains results you don't
12258 # want to keep, you may remove or edit it.
12259 #
12260 # config.status only pays attention to the cache file if you give it
12261 # the --recheck option to rerun configure.
12262 #
12263 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12264 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12265 # following values.
12266
12267 _ACEOF
12268
12269 # The following way of writing the cache mishandles newlines in values,
12270 # but we know of no workaround that is simple, portable, and efficient.
12271 # So, don't put newlines in cache variables' values.
12272 # Ultrix sh set writes to stderr and can't be redirected directly,
12273 # and sets the high bit in the cache file unless we assign to the vars.
12274 {
12275 (set) 2>&1 |
12276 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12277 *ac_space=\ *)
12278 # `set' does not quote correctly, so add quotes (double-quote
12279 # substitution turns \\\\ into \\, and sed turns \\ into \).
12280 sed -n \
12281 "s/'/'\\\\''/g;
12282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12283 ;;
12284 *)
12285 # `set' quotes correctly as required by POSIX, so do not add quotes.
12286 sed -n \
12287 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12288 ;;
12289 esac;
12290 } |
12291 sed '
12292 t clear
12293 : clear
12294 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12295 t end
12296 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12297 : end' >>confcache
12298 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12299 if test -w $cache_file; then
12300 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12301 cat confcache >$cache_file
12302 else
12303 echo "not updating unwritable cache $cache_file"
12304 fi
12305 fi
12306 rm -f confcache
12307
12308 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12309 # Let make expand exec_prefix.
12310 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12311
12312 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12313 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12314 # trailing colons and then remove the whole line if VPATH becomes empty
12315 # (actually we leave an empty line to preserve line numbers).
12316 if test "x$srcdir" = x.; then
12317 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12318 s/:*\$(srcdir):*/:/;
12319 s/:*\${srcdir}:*/:/;
12320 s/:*@srcdir@:*/:/;
12321 s/^\([^=]*=[ ]*\):*/\1/;
12322 s/:*$//;
12323 s/^[^=]*=[ ]*$//;
12324 }'
12325 fi
12326
12327 DEFS=-DHAVE_CONFIG_H
12328
12329 ac_libobjs=
12330 ac_ltlibobjs=
12331 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12332 # 1. Remove the extension, and $U if already installed.
12333 ac_i=`echo "$ac_i" |
12334 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12335 # 2. Add them.
12336 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12337 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12338 done
12339 LIBOBJS=$ac_libobjs
12340
12341 LTLIBOBJS=$ac_ltlibobjs
12342
12343
12344
12345 : ${CONFIG_STATUS=./config.status}
12346 ac_clean_files_save=$ac_clean_files
12347 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12348 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12349 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12350 cat >$CONFIG_STATUS <<_ACEOF
12351 #! $SHELL
12352 # Generated by $as_me.
12353 # Run this file to recreate the current configuration.
12354 # Compiler output produced by configure, useful for debugging
12355 # configure, is in config.log if it exists.
12356
12357 debug=false
12358 ac_cs_recheck=false
12359 ac_cs_silent=false
12360 SHELL=\${CONFIG_SHELL-$SHELL}
12361 _ACEOF
12362
12363 cat >>$CONFIG_STATUS <<\_ACEOF
12364 ## --------------------- ##
12365 ## M4sh Initialization. ##
12366 ## --------------------- ##
12367
12368 # Be Bourne compatible
12369 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12370 emulate sh
12371 NULLCMD=:
12372 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12373 # is contrary to our usage. Disable this feature.
12374 alias -g '${1+"$@"}'='"$@"'
12375 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12376 set -o posix
12377 fi
12378 DUALCASE=1; export DUALCASE # for MKS sh
12379
12380 # Support unset when possible.
12381 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12382 as_unset=unset
12383 else
12384 as_unset=false
12385 fi
12386
12387
12388 # Work around bugs in pre-3.0 UWIN ksh.
12389 $as_unset ENV MAIL MAILPATH
12390 PS1='$ '
12391 PS2='> '
12392 PS4='+ '
12393
12394 # NLS nuisances.
12395 for as_var in \
12396 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12397 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12398 LC_TELEPHONE LC_TIME
12399 do
12400 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12401 eval $as_var=C; export $as_var
12402 else
12403 $as_unset $as_var
12404 fi
12405 done
12406
12407 # Required to use basename.
12408 if expr a : '\(a\)' >/dev/null 2>&1; then
12409 as_expr=expr
12410 else
12411 as_expr=false
12412 fi
12413
12414 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12415 as_basename=basename
12416 else
12417 as_basename=false
12418 fi
12419
12420
12421 # Name of the executable.
12422 as_me=`$as_basename "$0" ||
12423 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12424 X"$0" : 'X\(//\)$' \| \
12425 X"$0" : 'X\(/\)$' \| \
12426 . : '\(.\)' 2>/dev/null ||
12427 echo X/"$0" |
12428 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12429 /^X\/\(\/\/\)$/{ s//\1/; q; }
12430 /^X\/\(\/\).*/{ s//\1/; q; }
12431 s/.*/./; q'`
12432
12433
12434 # PATH needs CR, and LINENO needs CR and PATH.
12435 # Avoid depending upon Character Ranges.
12436 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12437 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12438 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12439 as_cr_digits='0123456789'
12440 as_cr_alnum=$as_cr_Letters$as_cr_digits
12441
12442 # The user is always right.
12443 if test "${PATH_SEPARATOR+set}" != set; then
12444 echo "#! /bin/sh" >conf$$.sh
12445 echo "exit 0" >>conf$$.sh
12446 chmod +x conf$$.sh
12447 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12448 PATH_SEPARATOR=';'
12449 else
12450 PATH_SEPARATOR=:
12451 fi
12452 rm -f conf$$.sh
12453 fi
12454
12455
12456 as_lineno_1=$LINENO
12457 as_lineno_2=$LINENO
12458 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12459 test "x$as_lineno_1" != "x$as_lineno_2" &&
12460 test "x$as_lineno_3" = "x$as_lineno_2" || {
12461 # Find who we are. Look in the path if we contain no path at all
12462 # relative or not.
12463 case $0 in
12464 *[\\/]* ) as_myself=$0 ;;
12465 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12466 for as_dir in $PATH
12467 do
12468 IFS=$as_save_IFS
12469 test -z "$as_dir" && as_dir=.
12470 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12471 done
12472
12473 ;;
12474 esac
12475 # We did not find ourselves, most probably we were run as `sh COMMAND'
12476 # in which case we are not to be found in the path.
12477 if test "x$as_myself" = x; then
12478 as_myself=$0
12479 fi
12480 if test ! -f "$as_myself"; then
12481 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12482 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12483 { (exit 1); exit 1; }; }
12484 fi
12485 case $CONFIG_SHELL in
12486 '')
12487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12488 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12489 do
12490 IFS=$as_save_IFS
12491 test -z "$as_dir" && as_dir=.
12492 for as_base in sh bash ksh sh5; do
12493 case $as_dir in
12494 /*)
12495 if ("$as_dir/$as_base" -c '
12496 as_lineno_1=$LINENO
12497 as_lineno_2=$LINENO
12498 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12499 test "x$as_lineno_1" != "x$as_lineno_2" &&
12500 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12501 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12502 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12503 CONFIG_SHELL=$as_dir/$as_base
12504 export CONFIG_SHELL
12505 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12506 fi;;
12507 esac
12508 done
12509 done
12510 ;;
12511 esac
12512
12513 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12514 # uniformly replaced by the line number. The first 'sed' inserts a
12515 # line-number line before each line; the second 'sed' does the real
12516 # work. The second script uses 'N' to pair each line-number line
12517 # with the numbered line, and appends trailing '-' during
12518 # substitution so that $LINENO is not a special case at line end.
12519 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12520 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12521 sed '=' <$as_myself |
12522 sed '
12523 N
12524 s,$,-,
12525 : loop
12526 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12527 t loop
12528 s,-$,,
12529 s,^['$as_cr_digits']*\n,,
12530 ' >$as_me.lineno &&
12531 chmod +x $as_me.lineno ||
12532 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12533 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12534 { (exit 1); exit 1; }; }
12535
12536 # Don't try to exec as it changes $[0], causing all sort of problems
12537 # (the dirname of $[0] is not the place where we might find the
12538 # original and so on. Autoconf is especially sensible to this).
12539 . ./$as_me.lineno
12540 # Exit status is that of the last command.
12541 exit
12542 }
12543
12544
12545 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12546 *c*,-n*) ECHO_N= ECHO_C='
12547 ' ECHO_T=' ' ;;
12548 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12549 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12550 esac
12551
12552 if expr a : '\(a\)' >/dev/null 2>&1; then
12553 as_expr=expr
12554 else
12555 as_expr=false
12556 fi
12557
12558 rm -f conf$$ conf$$.exe conf$$.file
12559 echo >conf$$.file
12560 if ln -s conf$$.file conf$$ 2>/dev/null; then
12561 # We could just check for DJGPP; but this test a) works b) is more generic
12562 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12563 if test -f conf$$.exe; then
12564 # Don't use ln at all; we don't have any links
12565 as_ln_s='cp -p'
12566 else
12567 as_ln_s='ln -s'
12568 fi
12569 elif ln conf$$.file conf$$ 2>/dev/null; then
12570 as_ln_s=ln
12571 else
12572 as_ln_s='cp -p'
12573 fi
12574 rm -f conf$$ conf$$.exe conf$$.file
12575
12576 if mkdir -p . 2>/dev/null; then
12577 as_mkdir_p=:
12578 else
12579 test -d ./-p && rmdir ./-p
12580 as_mkdir_p=false
12581 fi
12582
12583 as_executable_p="test -f"
12584
12585 # Sed expression to map a string onto a valid CPP name.
12586 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12587
12588 # Sed expression to map a string onto a valid variable name.
12589 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12590
12591
12592 # IFS
12593 # We need space, tab and new line, in precisely that order.
12594 as_nl='
12595 '
12596 IFS=" $as_nl"
12597
12598 # CDPATH.
12599 $as_unset CDPATH
12600
12601 exec 6>&1
12602
12603 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12604 # report actual input values of CONFIG_FILES etc. instead of their
12605 # values after options handling. Logging --version etc. is OK.
12606 exec 5>>config.log
12607 {
12608 echo
12609 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12610 ## Running $as_me. ##
12611 _ASBOX
12612 } >&5
12613 cat >&5 <<_CSEOF
12614
12615 This file was extended by $as_me, which was
12616 generated by GNU Autoconf 2.59. Invocation command line was
12617
12618 CONFIG_FILES = $CONFIG_FILES
12619 CONFIG_HEADERS = $CONFIG_HEADERS
12620 CONFIG_LINKS = $CONFIG_LINKS
12621 CONFIG_COMMANDS = $CONFIG_COMMANDS
12622 $ $0 $@
12623
12624 _CSEOF
12625 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12626 echo >&5
12627 _ACEOF
12628
12629 # Files that config.status was made for.
12630 if test -n "$ac_config_files"; then
12631 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12632 fi
12633
12634 if test -n "$ac_config_headers"; then
12635 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12636 fi
12637
12638 if test -n "$ac_config_links"; then
12639 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12640 fi
12641
12642 if test -n "$ac_config_commands"; then
12643 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12644 fi
12645
12646 cat >>$CONFIG_STATUS <<\_ACEOF
12647
12648 ac_cs_usage="\
12649 \`$as_me' instantiates files from templates according to the
12650 current configuration.
12651
12652 Usage: $0 [OPTIONS] [FILE]...
12653
12654 -h, --help print this help, then exit
12655 -V, --version print version number, then exit
12656 -q, --quiet do not print progress messages
12657 -d, --debug don't remove temporary files
12658 --recheck update $as_me by reconfiguring in the same conditions
12659 --file=FILE[:TEMPLATE]
12660 instantiate the configuration file FILE
12661 --header=FILE[:TEMPLATE]
12662 instantiate the configuration header FILE
12663
12664 Configuration files:
12665 $config_files
12666
12667 Configuration headers:
12668 $config_headers
12669
12670 Configuration commands:
12671 $config_commands
12672
12673 Report bugs to <bug-autoconf@gnu.org>."
12674 _ACEOF
12675
12676 cat >>$CONFIG_STATUS <<_ACEOF
12677 ac_cs_version="\\
12678 config.status
12679 configured by $0, generated by GNU Autoconf 2.59,
12680 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12681
12682 Copyright (C) 2003 Free Software Foundation, Inc.
12683 This config.status script is free software; the Free Software Foundation
12684 gives unlimited permission to copy, distribute and modify it."
12685 srcdir=$srcdir
12686 INSTALL="$INSTALL"
12687 _ACEOF
12688
12689 cat >>$CONFIG_STATUS <<\_ACEOF
12690 # If no file are specified by the user, then we need to provide default
12691 # value. By we need to know if files were specified by the user.
12692 ac_need_defaults=:
12693 while test $# != 0
12694 do
12695 case $1 in
12696 --*=*)
12697 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12698 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12699 ac_shift=:
12700 ;;
12701 -*)
12702 ac_option=$1
12703 ac_optarg=$2
12704 ac_shift=shift
12705 ;;
12706 *) # This is not an option, so the user has probably given explicit
12707 # arguments.
12708 ac_option=$1
12709 ac_need_defaults=false;;
12710 esac
12711
12712 case $ac_option in
12713 # Handling of the options.
12714 _ACEOF
12715 cat >>$CONFIG_STATUS <<\_ACEOF
12716 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12717 ac_cs_recheck=: ;;
12718 --version | --vers* | -V )
12719 echo "$ac_cs_version"; exit 0 ;;
12720 --he | --h)
12721 # Conflict between --help and --header
12722 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12723 Try \`$0 --help' for more information." >&5
12724 echo "$as_me: error: ambiguous option: $1
12725 Try \`$0 --help' for more information." >&2;}
12726 { (exit 1); exit 1; }; };;
12727 --help | --hel | -h )
12728 echo "$ac_cs_usage"; exit 0 ;;
12729 --debug | --d* | -d )
12730 debug=: ;;
12731 --file | --fil | --fi | --f )
12732 $ac_shift
12733 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12734 ac_need_defaults=false;;
12735 --header | --heade | --head | --hea )
12736 $ac_shift
12737 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12738 ac_need_defaults=false;;
12739 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12740 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12741 ac_cs_silent=: ;;
12742
12743 # This is an error.
12744 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12745 Try \`$0 --help' for more information." >&5
12746 echo "$as_me: error: unrecognized option: $1
12747 Try \`$0 --help' for more information." >&2;}
12748 { (exit 1); exit 1; }; } ;;
12749
12750 *) ac_config_targets="$ac_config_targets $1" ;;
12751
12752 esac
12753 shift
12754 done
12755
12756 ac_configure_extra_args=
12757
12758 if $ac_cs_silent; then
12759 exec 6>/dev/null
12760 ac_configure_extra_args="$ac_configure_extra_args --silent"
12761 fi
12762
12763 _ACEOF
12764 cat >>$CONFIG_STATUS <<_ACEOF
12765 if \$ac_cs_recheck; then
12766 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12767 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12768 fi
12769
12770 _ACEOF
12771
12772 cat >>$CONFIG_STATUS <<_ACEOF
12773 #
12774 # INIT-COMMANDS section.
12775 #
12776
12777
12778
12779
12780 _ACEOF
12781
12782
12783
12784 cat >>$CONFIG_STATUS <<\_ACEOF
12785 for ac_config_target in $ac_config_targets
12786 do
12787 case "$ac_config_target" in
12788 # Handling of arguments.
12789 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12790 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12791 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
12792 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
12793 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12794 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12795 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12796 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12797 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12798 { (exit 1); exit 1; }; };;
12799 esac
12800 done
12801
12802 # If the user did not use the arguments to specify the items to instantiate,
12803 # then the envvar interface is used. Set only those that are not.
12804 # We use the long form for the default assignment because of an extremely
12805 # bizarre bug on SunOS 4.1.3.
12806 if $ac_need_defaults; then
12807 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12808 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12809 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12810 fi
12811
12812 # Have a temporary directory for convenience. Make it in the build tree
12813 # simply because there is no reason to put it here, and in addition,
12814 # creating and moving files from /tmp can sometimes cause problems.
12815 # Create a temporary directory, and hook for its removal unless debugging.
12816 $debug ||
12817 {
12818 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12819 trap '{ (exit 1); exit 1; }' 1 2 13 15
12820 }
12821
12822 # Create a (secure) tmp directory for tmp files.
12823
12824 {
12825 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12826 test -n "$tmp" && test -d "$tmp"
12827 } ||
12828 {
12829 tmp=./confstat$$-$RANDOM
12830 (umask 077 && mkdir $tmp)
12831 } ||
12832 {
12833 echo "$me: cannot create a temporary directory in ." >&2
12834 { (exit 1); exit 1; }
12835 }
12836
12837 _ACEOF
12838
12839 cat >>$CONFIG_STATUS <<_ACEOF
12840
12841 #
12842 # CONFIG_FILES section.
12843 #
12844
12845 # No need to generate the scripts if there are no CONFIG_FILES.
12846 # This happens for instance when ./config.status config.h
12847 if test -n "\$CONFIG_FILES"; then
12848 # Protect against being on the right side of a sed subst in config.status.
12849 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12850 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12851 s,@SHELL@,$SHELL,;t t
12852 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12853 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12854 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12855 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12856 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12857 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12858 s,@exec_prefix@,$exec_prefix,;t t
12859 s,@prefix@,$prefix,;t t
12860 s,@program_transform_name@,$program_transform_name,;t t
12861 s,@bindir@,$bindir,;t t
12862 s,@sbindir@,$sbindir,;t t
12863 s,@libexecdir@,$libexecdir,;t t
12864 s,@datadir@,$datadir,;t t
12865 s,@sysconfdir@,$sysconfdir,;t t
12866 s,@sharedstatedir@,$sharedstatedir,;t t
12867 s,@localstatedir@,$localstatedir,;t t
12868 s,@libdir@,$libdir,;t t
12869 s,@includedir@,$includedir,;t t
12870 s,@oldincludedir@,$oldincludedir,;t t
12871 s,@infodir@,$infodir,;t t
12872 s,@mandir@,$mandir,;t t
12873 s,@build_alias@,$build_alias,;t t
12874 s,@host_alias@,$host_alias,;t t
12875 s,@target_alias@,$target_alias,;t t
12876 s,@DEFS@,$DEFS,;t t
12877 s,@ECHO_C@,$ECHO_C,;t t
12878 s,@ECHO_N@,$ECHO_N,;t t
12879 s,@ECHO_T@,$ECHO_T,;t t
12880 s,@LIBS@,$LIBS,;t t
12881 s,@build@,$build,;t t
12882 s,@build_cpu@,$build_cpu,;t t
12883 s,@build_vendor@,$build_vendor,;t t
12884 s,@build_os@,$build_os,;t t
12885 s,@host@,$host,;t t
12886 s,@host_cpu@,$host_cpu,;t t
12887 s,@host_vendor@,$host_vendor,;t t
12888 s,@host_os@,$host_os,;t t
12889 s,@target@,$target,;t t
12890 s,@target_cpu@,$target_cpu,;t t
12891 s,@target_vendor@,$target_vendor,;t t
12892 s,@target_os@,$target_os,;t t
12893 s,@CC@,$CC,;t t
12894 s,@CFLAGS@,$CFLAGS,;t t
12895 s,@LDFLAGS@,$LDFLAGS,;t t
12896 s,@CPPFLAGS@,$CPPFLAGS,;t t
12897 s,@ac_ct_CC@,$ac_ct_CC,;t t
12898 s,@EXEEXT@,$EXEEXT,;t t
12899 s,@OBJEXT@,$OBJEXT,;t t
12900 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12901 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12902 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12903 s,@PACKAGE@,$PACKAGE,;t t
12904 s,@VERSION@,$VERSION,;t t
12905 s,@ACLOCAL@,$ACLOCAL,;t t
12906 s,@AUTOCONF@,$AUTOCONF,;t t
12907 s,@AUTOMAKE@,$AUTOMAKE,;t t
12908 s,@AUTOHEADER@,$AUTOHEADER,;t t
12909 s,@MAKEINFO@,$MAKEINFO,;t t
12910 s,@SET_MAKE@,$SET_MAKE,;t t
12911 s,@AR@,$AR,;t t
12912 s,@ac_ct_AR@,$ac_ct_AR,;t t
12913 s,@RANLIB@,$RANLIB,;t t
12914 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12915 s,@LN_S@,$LN_S,;t t
12916 s,@STRIP@,$STRIP,;t t
12917 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12918 s,@LIBTOOL@,$LIBTOOL,;t t
12919 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
12920 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12921 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12922 s,@MAINT@,$MAINT,;t t
12923 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
12924 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
12925 s,@host_noncanonical@,$host_noncanonical,;t t
12926 s,@target_noncanonical@,$target_noncanonical,;t t
12927 s,@bfdlibdir@,$bfdlibdir,;t t
12928 s,@bfdincludedir@,$bfdincludedir,;t t
12929 s,@CPP@,$CPP,;t t
12930 s,@EGREP@,$EGREP,;t t
12931 s,@ALLOCA@,$ALLOCA,;t t
12932 s,@USE_NLS@,$USE_NLS,;t t
12933 s,@MSGFMT@,$MSGFMT,;t t
12934 s,@GMSGFMT@,$GMSGFMT,;t t
12935 s,@XGETTEXT@,$XGETTEXT,;t t
12936 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
12937 s,@CATALOGS@,$CATALOGS,;t t
12938 s,@CATOBJEXT@,$CATOBJEXT,;t t
12939 s,@DATADIRNAME@,$DATADIRNAME,;t t
12940 s,@GMOFILES@,$GMOFILES,;t t
12941 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12942 s,@INTLDEPS@,$INTLDEPS,;t t
12943 s,@INTLLIBS@,$INTLLIBS,;t t
12944 s,@INTLOBJS@,$INTLOBJS,;t t
12945 s,@POFILES@,$POFILES,;t t
12946 s,@POSUB@,$POSUB,;t t
12947 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
12948 s,@GT_NO@,$GT_NO,;t t
12949 s,@GT_YES@,$GT_YES,;t t
12950 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12951 s,@l@,$l,;t t
12952 s,@HDEFINES@,$HDEFINES,;t t
12953 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
12954 s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
12955 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
12956 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
12957 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
12958 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12959 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
12960 s,@COREFILE@,$COREFILE,;t t
12961 s,@COREFLAG@,$COREFLAG,;t t
12962 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
12963 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
12964 s,@TDEFINES@,$TDEFINES,;t t
12965 s,@wordsize@,$wordsize,;t t
12966 s,@bfd_libs@,$bfd_libs,;t t
12967 s,@all_backends@,$all_backends,;t t
12968 s,@bfd_backends@,$bfd_backends,;t t
12969 s,@bfd_machines@,$bfd_machines,;t t
12970 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
12971 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
12972 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
12973 s,@tdefaults@,$tdefaults,;t t
12974 s,@LIBOBJS@,$LIBOBJS,;t t
12975 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12976 CEOF
12977
12978 _ACEOF
12979
12980 cat >>$CONFIG_STATUS <<\_ACEOF
12981 # Split the substitutions into bite-sized pieces for seds with
12982 # small command number limits, like on Digital OSF/1 and HP-UX.
12983 ac_max_sed_lines=48
12984 ac_sed_frag=1 # Number of current file.
12985 ac_beg=1 # First line for current file.
12986 ac_end=$ac_max_sed_lines # Line after last line for current file.
12987 ac_more_lines=:
12988 ac_sed_cmds=
12989 while $ac_more_lines; do
12990 if test $ac_beg -gt 1; then
12991 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12992 else
12993 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12994 fi
12995 if test ! -s $tmp/subs.frag; then
12996 ac_more_lines=false
12997 else
12998 # The purpose of the label and of the branching condition is to
12999 # speed up the sed processing (if there are no `@' at all, there
13000 # is no need to browse any of the substitutions).
13001 # These are the two extra sed commands mentioned above.
13002 (echo ':t
13003 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13004 if test -z "$ac_sed_cmds"; then
13005 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13006 else
13007 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13008 fi
13009 ac_sed_frag=`expr $ac_sed_frag + 1`
13010 ac_beg=$ac_end
13011 ac_end=`expr $ac_end + $ac_max_sed_lines`
13012 fi
13013 done
13014 if test -z "$ac_sed_cmds"; then
13015 ac_sed_cmds=cat
13016 fi
13017 fi # test -n "$CONFIG_FILES"
13018
13019 _ACEOF
13020 cat >>$CONFIG_STATUS <<\_ACEOF
13021 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13022 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13023 case $ac_file in
13024 - | *:- | *:-:* ) # input from stdin
13025 cat >$tmp/stdin
13026 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13027 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13028 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13029 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13030 * ) ac_file_in=$ac_file.in ;;
13031 esac
13032
13033 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13034 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13035 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13036 X"$ac_file" : 'X\(//\)[^/]' \| \
13037 X"$ac_file" : 'X\(//\)$' \| \
13038 X"$ac_file" : 'X\(/\)' \| \
13039 . : '\(.\)' 2>/dev/null ||
13040 echo X"$ac_file" |
13041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13042 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13043 /^X\(\/\/\)$/{ s//\1/; q; }
13044 /^X\(\/\).*/{ s//\1/; q; }
13045 s/.*/./; q'`
13046 { if $as_mkdir_p; then
13047 mkdir -p "$ac_dir"
13048 else
13049 as_dir="$ac_dir"
13050 as_dirs=
13051 while test ! -d "$as_dir"; do
13052 as_dirs="$as_dir $as_dirs"
13053 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13054 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13055 X"$as_dir" : 'X\(//\)[^/]' \| \
13056 X"$as_dir" : 'X\(//\)$' \| \
13057 X"$as_dir" : 'X\(/\)' \| \
13058 . : '\(.\)' 2>/dev/null ||
13059 echo X"$as_dir" |
13060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13061 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13062 /^X\(\/\/\)$/{ s//\1/; q; }
13063 /^X\(\/\).*/{ s//\1/; q; }
13064 s/.*/./; q'`
13065 done
13066 test ! -n "$as_dirs" || mkdir $as_dirs
13067 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13068 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13069 { (exit 1); exit 1; }; }; }
13070
13071 ac_builddir=.
13072
13073 if test "$ac_dir" != .; then
13074 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13075 # A "../" for each directory in $ac_dir_suffix.
13076 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13077 else
13078 ac_dir_suffix= ac_top_builddir=
13079 fi
13080
13081 case $srcdir in
13082 .) # No --srcdir option. We are building in place.
13083 ac_srcdir=.
13084 if test -z "$ac_top_builddir"; then
13085 ac_top_srcdir=.
13086 else
13087 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13088 fi ;;
13089 [\\/]* | ?:[\\/]* ) # Absolute path.
13090 ac_srcdir=$srcdir$ac_dir_suffix;
13091 ac_top_srcdir=$srcdir ;;
13092 *) # Relative path.
13093 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13094 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13095 esac
13096
13097 # Do not use `cd foo && pwd` to compute absolute paths, because
13098 # the directories may not exist.
13099 case `pwd` in
13100 .) ac_abs_builddir="$ac_dir";;
13101 *)
13102 case "$ac_dir" in
13103 .) ac_abs_builddir=`pwd`;;
13104 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13105 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13106 esac;;
13107 esac
13108 case $ac_abs_builddir in
13109 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13110 *)
13111 case ${ac_top_builddir}. in
13112 .) ac_abs_top_builddir=$ac_abs_builddir;;
13113 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13114 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13115 esac;;
13116 esac
13117 case $ac_abs_builddir in
13118 .) ac_abs_srcdir=$ac_srcdir;;
13119 *)
13120 case $ac_srcdir in
13121 .) ac_abs_srcdir=$ac_abs_builddir;;
13122 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13123 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13124 esac;;
13125 esac
13126 case $ac_abs_builddir in
13127 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13128 *)
13129 case $ac_top_srcdir in
13130 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13131 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13132 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13133 esac;;
13134 esac
13135
13136
13137 case $INSTALL in
13138 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13139 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13140 esac
13141
13142 if test x"$ac_file" != x-; then
13143 { echo "$as_me:$LINENO: creating $ac_file" >&5
13144 echo "$as_me: creating $ac_file" >&6;}
13145 rm -f "$ac_file"
13146 fi
13147 # Let's still pretend it is `configure' which instantiates (i.e., don't
13148 # use $as_me), people would be surprised to read:
13149 # /* config.h. Generated by config.status. */
13150 if test x"$ac_file" = x-; then
13151 configure_input=
13152 else
13153 configure_input="$ac_file. "
13154 fi
13155 configure_input=$configure_input"Generated from `echo $ac_file_in |
13156 sed 's,.*/,,'` by configure."
13157
13158 # First look for the input files in the build tree, otherwise in the
13159 # src tree.
13160 ac_file_inputs=`IFS=:
13161 for f in $ac_file_in; do
13162 case $f in
13163 -) echo $tmp/stdin ;;
13164 [\\/$]*)
13165 # Absolute (can't be DOS-style, as IFS=:)
13166 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13167 echo "$as_me: error: cannot find input file: $f" >&2;}
13168 { (exit 1); exit 1; }; }
13169 echo "$f";;
13170 *) # Relative
13171 if test -f "$f"; then
13172 # Build tree
13173 echo "$f"
13174 elif test -f "$srcdir/$f"; then
13175 # Source tree
13176 echo "$srcdir/$f"
13177 else
13178 # /dev/null tree
13179 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13180 echo "$as_me: error: cannot find input file: $f" >&2;}
13181 { (exit 1); exit 1; }; }
13182 fi;;
13183 esac
13184 done` || { (exit 1); exit 1; }
13185 _ACEOF
13186 cat >>$CONFIG_STATUS <<_ACEOF
13187 sed "$ac_vpsub
13188 $extrasub
13189 _ACEOF
13190 cat >>$CONFIG_STATUS <<\_ACEOF
13191 :t
13192 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13193 s,@configure_input@,$configure_input,;t t
13194 s,@srcdir@,$ac_srcdir,;t t
13195 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13196 s,@top_srcdir@,$ac_top_srcdir,;t t
13197 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13198 s,@builddir@,$ac_builddir,;t t
13199 s,@abs_builddir@,$ac_abs_builddir,;t t
13200 s,@top_builddir@,$ac_top_builddir,;t t
13201 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13202 s,@INSTALL@,$ac_INSTALL,;t t
13203 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13204 rm -f $tmp/stdin
13205 if test x"$ac_file" != x-; then
13206 mv $tmp/out $ac_file
13207 else
13208 cat $tmp/out
13209 rm -f $tmp/out
13210 fi
13211
13212 done
13213 _ACEOF
13214 cat >>$CONFIG_STATUS <<\_ACEOF
13215
13216 #
13217 # CONFIG_HEADER section.
13218 #
13219
13220 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13221 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13222 #
13223 # ac_d sets the value in "#define NAME VALUE" lines.
13224 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13225 ac_dB='[ ].*$,\1#\2'
13226 ac_dC=' '
13227 ac_dD=',;t'
13228 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13229 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13230 ac_uB='$,\1#\2define\3'
13231 ac_uC=' '
13232 ac_uD=',;t'
13233
13234 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13235 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13236 case $ac_file in
13237 - | *:- | *:-:* ) # input from stdin
13238 cat >$tmp/stdin
13239 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13240 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13241 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13242 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13243 * ) ac_file_in=$ac_file.in ;;
13244 esac
13245
13246 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13247 echo "$as_me: creating $ac_file" >&6;}
13248
13249 # First look for the input files in the build tree, otherwise in the
13250 # src tree.
13251 ac_file_inputs=`IFS=:
13252 for f in $ac_file_in; do
13253 case $f in
13254 -) echo $tmp/stdin ;;
13255 [\\/$]*)
13256 # Absolute (can't be DOS-style, as IFS=:)
13257 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13258 echo "$as_me: error: cannot find input file: $f" >&2;}
13259 { (exit 1); exit 1; }; }
13260 # Do quote $f, to prevent DOS paths from being IFS'd.
13261 echo "$f";;
13262 *) # Relative
13263 if test -f "$f"; then
13264 # Build tree
13265 echo "$f"
13266 elif test -f "$srcdir/$f"; then
13267 # Source tree
13268 echo "$srcdir/$f"
13269 else
13270 # /dev/null tree
13271 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13272 echo "$as_me: error: cannot find input file: $f" >&2;}
13273 { (exit 1); exit 1; }; }
13274 fi;;
13275 esac
13276 done` || { (exit 1); exit 1; }
13277 # Remove the trailing spaces.
13278 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13279
13280 _ACEOF
13281
13282 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13283 # `conftest.undefs', that substitutes the proper values into
13284 # config.h.in to produce config.h. The first handles `#define'
13285 # templates, and the second `#undef' templates.
13286 # And first: Protect against being on the right side of a sed subst in
13287 # config.status. Protect against being in an unquoted here document
13288 # in config.status.
13289 rm -f conftest.defines conftest.undefs
13290 # Using a here document instead of a string reduces the quoting nightmare.
13291 # Putting comments in sed scripts is not portable.
13292 #
13293 # `end' is used to avoid that the second main sed command (meant for
13294 # 0-ary CPP macros) applies to n-ary macro definitions.
13295 # See the Autoconf documentation for `clear'.
13296 cat >confdef2sed.sed <<\_ACEOF
13297 s/[\\&,]/\\&/g
13298 s,[\\$`],\\&,g
13299 t clear
13300 : clear
13301 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13302 t end
13303 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13304 : end
13305 _ACEOF
13306 # If some macros were called several times there might be several times
13307 # the same #defines, which is useless. Nevertheless, we may not want to
13308 # sort them, since we want the *last* AC-DEFINE to be honored.
13309 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13310 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13311 rm -f confdef2sed.sed
13312
13313 # This sed command replaces #undef with comments. This is necessary, for
13314 # example, in the case of _POSIX_SOURCE, which is predefined and required
13315 # on some systems where configure will not decide to define it.
13316 cat >>conftest.undefs <<\_ACEOF
13317 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13318 _ACEOF
13319
13320 # Break up conftest.defines because some shells have a limit on the size
13321 # of here documents, and old seds have small limits too (100 cmds).
13322 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13323 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13324 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13325 echo ' :' >>$CONFIG_STATUS
13326 rm -f conftest.tail
13327 while grep . conftest.defines >/dev/null
13328 do
13329 # Write a limited-size here document to $tmp/defines.sed.
13330 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13331 # Speed up: don't consider the non `#define' lines.
13332 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13333 # Work around the forget-to-reset-the-flag bug.
13334 echo 't clr' >>$CONFIG_STATUS
13335 echo ': clr' >>$CONFIG_STATUS
13336 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13337 echo 'CEOF
13338 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13339 rm -f $tmp/in
13340 mv $tmp/out $tmp/in
13341 ' >>$CONFIG_STATUS
13342 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13343 rm -f conftest.defines
13344 mv conftest.tail conftest.defines
13345 done
13346 rm -f conftest.defines
13347 echo ' fi # grep' >>$CONFIG_STATUS
13348 echo >>$CONFIG_STATUS
13349
13350 # Break up conftest.undefs because some shells have a limit on the size
13351 # of here documents, and old seds have small limits too (100 cmds).
13352 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13353 rm -f conftest.tail
13354 while grep . conftest.undefs >/dev/null
13355 do
13356 # Write a limited-size here document to $tmp/undefs.sed.
13357 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13358 # Speed up: don't consider the non `#undef'
13359 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13360 # Work around the forget-to-reset-the-flag bug.
13361 echo 't clr' >>$CONFIG_STATUS
13362 echo ': clr' >>$CONFIG_STATUS
13363 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13364 echo 'CEOF
13365 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13366 rm -f $tmp/in
13367 mv $tmp/out $tmp/in
13368 ' >>$CONFIG_STATUS
13369 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13370 rm -f conftest.undefs
13371 mv conftest.tail conftest.undefs
13372 done
13373 rm -f conftest.undefs
13374
13375 cat >>$CONFIG_STATUS <<\_ACEOF
13376 # Let's still pretend it is `configure' which instantiates (i.e., don't
13377 # use $as_me), people would be surprised to read:
13378 # /* config.h. Generated by config.status. */
13379 if test x"$ac_file" = x-; then
13380 echo "/* Generated by configure. */" >$tmp/config.h
13381 else
13382 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13383 fi
13384 cat $tmp/in >>$tmp/config.h
13385 rm -f $tmp/in
13386 if test x"$ac_file" != x-; then
13387 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13388 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13389 echo "$as_me: $ac_file is unchanged" >&6;}
13390 else
13391 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13392 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13393 X"$ac_file" : 'X\(//\)[^/]' \| \
13394 X"$ac_file" : 'X\(//\)$' \| \
13395 X"$ac_file" : 'X\(/\)' \| \
13396 . : '\(.\)' 2>/dev/null ||
13397 echo X"$ac_file" |
13398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13399 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13400 /^X\(\/\/\)$/{ s//\1/; q; }
13401 /^X\(\/\).*/{ s//\1/; q; }
13402 s/.*/./; q'`
13403 { if $as_mkdir_p; then
13404 mkdir -p "$ac_dir"
13405 else
13406 as_dir="$ac_dir"
13407 as_dirs=
13408 while test ! -d "$as_dir"; do
13409 as_dirs="$as_dir $as_dirs"
13410 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13411 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13412 X"$as_dir" : 'X\(//\)[^/]' \| \
13413 X"$as_dir" : 'X\(//\)$' \| \
13414 X"$as_dir" : 'X\(/\)' \| \
13415 . : '\(.\)' 2>/dev/null ||
13416 echo X"$as_dir" |
13417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13418 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13419 /^X\(\/\/\)$/{ s//\1/; q; }
13420 /^X\(\/\).*/{ s//\1/; q; }
13421 s/.*/./; q'`
13422 done
13423 test ! -n "$as_dirs" || mkdir $as_dirs
13424 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13425 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13426 { (exit 1); exit 1; }; }; }
13427
13428 rm -f $ac_file
13429 mv $tmp/config.h $ac_file
13430 fi
13431 else
13432 cat $tmp/config.h
13433 rm -f $tmp/config.h
13434 fi
13435 done
13436 _ACEOF
13437 cat >>$CONFIG_STATUS <<\_ACEOF
13438
13439 #
13440 # CONFIG_COMMANDS section.
13441 #
13442 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13443 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13444 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13445 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13446 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13447 X"$ac_dest" : 'X\(//\)[^/]' \| \
13448 X"$ac_dest" : 'X\(//\)$' \| \
13449 X"$ac_dest" : 'X\(/\)' \| \
13450 . : '\(.\)' 2>/dev/null ||
13451 echo X"$ac_dest" |
13452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13453 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13454 /^X\(\/\/\)$/{ s//\1/; q; }
13455 /^X\(\/\).*/{ s//\1/; q; }
13456 s/.*/./; q'`
13457 { if $as_mkdir_p; then
13458 mkdir -p "$ac_dir"
13459 else
13460 as_dir="$ac_dir"
13461 as_dirs=
13462 while test ! -d "$as_dir"; do
13463 as_dirs="$as_dir $as_dirs"
13464 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13465 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13466 X"$as_dir" : 'X\(//\)[^/]' \| \
13467 X"$as_dir" : 'X\(//\)$' \| \
13468 X"$as_dir" : 'X\(/\)' \| \
13469 . : '\(.\)' 2>/dev/null ||
13470 echo X"$as_dir" |
13471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13472 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13473 /^X\(\/\/\)$/{ s//\1/; q; }
13474 /^X\(\/\).*/{ s//\1/; q; }
13475 s/.*/./; q'`
13476 done
13477 test ! -n "$as_dirs" || mkdir $as_dirs
13478 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13479 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13480 { (exit 1); exit 1; }; }; }
13481
13482 ac_builddir=.
13483
13484 if test "$ac_dir" != .; then
13485 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13486 # A "../" for each directory in $ac_dir_suffix.
13487 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13488 else
13489 ac_dir_suffix= ac_top_builddir=
13490 fi
13491
13492 case $srcdir in
13493 .) # No --srcdir option. We are building in place.
13494 ac_srcdir=.
13495 if test -z "$ac_top_builddir"; then
13496 ac_top_srcdir=.
13497 else
13498 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13499 fi ;;
13500 [\\/]* | ?:[\\/]* ) # Absolute path.
13501 ac_srcdir=$srcdir$ac_dir_suffix;
13502 ac_top_srcdir=$srcdir ;;
13503 *) # Relative path.
13504 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13505 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13506 esac
13507
13508 # Do not use `cd foo && pwd` to compute absolute paths, because
13509 # the directories may not exist.
13510 case `pwd` in
13511 .) ac_abs_builddir="$ac_dir";;
13512 *)
13513 case "$ac_dir" in
13514 .) ac_abs_builddir=`pwd`;;
13515 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13516 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13517 esac;;
13518 esac
13519 case $ac_abs_builddir in
13520 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13521 *)
13522 case ${ac_top_builddir}. in
13523 .) ac_abs_top_builddir=$ac_abs_builddir;;
13524 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13525 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13526 esac;;
13527 esac
13528 case $ac_abs_builddir in
13529 .) ac_abs_srcdir=$ac_srcdir;;
13530 *)
13531 case $ac_srcdir in
13532 .) ac_abs_srcdir=$ac_abs_builddir;;
13533 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13534 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13535 esac;;
13536 esac
13537 case $ac_abs_builddir in
13538 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13539 *)
13540 case $ac_top_srcdir in
13541 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13542 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13543 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13544 esac;;
13545 esac
13546
13547
13548 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13549 echo "$as_me: executing $ac_dest commands" >&6;}
13550 case $ac_dest in
13551 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
13552 default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
13553 esac
13554 done
13555 _ACEOF
13556
13557 cat >>$CONFIG_STATUS <<\_ACEOF
13558
13559 { (exit 0); exit 0; }
13560 _ACEOF
13561 chmod +x $CONFIG_STATUS
13562 ac_clean_files=$ac_clean_files_save
13563
13564
13565 # configure is writing to config.log, and then calls config.status.
13566 # config.status does its own redirection, appending to config.log.
13567 # Unfortunately, on DOS this fails, as config.log is still kept open
13568 # by configure, so config.status won't be able to write to it; its
13569 # output is simply discarded. So we exec the FD to /dev/null,
13570 # effectively closing config.log, so it can be properly (re)opened and
13571 # appended to by config.status. When coming back to configure, we
13572 # need to make the FD available again.
13573 if test "$no_create" != yes; then
13574 ac_cs_success=:
13575 ac_config_status_args=
13576 test "$silent" = yes &&
13577 ac_config_status_args="$ac_config_status_args --quiet"
13578 exec 5>/dev/null
13579 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13580 exec 5>>config.log
13581 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13582 # would make configure fail if this is the last instruction.
13583 $ac_cs_success || { (exit 1); exit 1; }
13584 fi
13585
13586
This page took 0.341827 seconds and 4 git commands to generate.