bfd:
[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 CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES CPP EGREP 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 bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir 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 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=no
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
860 --enable-targets alternative target configurations
861 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
862 --enable-secureplt Default to creating read-only plt entries
863 --enable-werror treat compile warnings as errors
864 --enable-build-warnings enable build-time compiler warnings
865 --enable-maintainer-mode enable make rules and dependencies not useful
866 (and sometimes confusing) to the casual installer
867 --enable-install-libbfd controls installation of libbfd and related headers
868 --disable-nls do not use Native Language Support
869
870 Optional Packages:
871 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
872 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
873 --with-gnu-ld assume the C compiler uses GNU ld default=no
874 --with-pic try to use only PIC/non-PIC objects default=use both
875 --with-mmap try using mmap for BFD input files if available
876 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
877 Binutils"
878 --with-bugurl=URL Direct users to URL to report a bug
879
880 Some influential environment variables:
881 CC C compiler command
882 CFLAGS C compiler flags
883 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
884 nonstandard directory <lib dir>
885 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
886 headers in a nonstandard directory <include dir>
887 CPP C preprocessor
888
889 Use these variables to override the choices made by `configure' or to help
890 it to find libraries and programs with nonstandard names/locations.
891
892 _ACEOF
893 fi
894
895 if test "$ac_init_help" = "recursive"; then
896 # If there are subdirs, report their specific --help.
897 ac_popdir=`pwd`
898 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
899 test -d $ac_dir || continue
900 ac_builddir=.
901
902 if test "$ac_dir" != .; then
903 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
904 # A "../" for each directory in $ac_dir_suffix.
905 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906 else
907 ac_dir_suffix= ac_top_builddir=
908 fi
909
910 case $srcdir in
911 .) # No --srcdir option. We are building in place.
912 ac_srcdir=.
913 if test -z "$ac_top_builddir"; then
914 ac_top_srcdir=.
915 else
916 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917 fi ;;
918 [\\/]* | ?:[\\/]* ) # Absolute path.
919 ac_srcdir=$srcdir$ac_dir_suffix;
920 ac_top_srcdir=$srcdir ;;
921 *) # Relative path.
922 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
923 ac_top_srcdir=$ac_top_builddir$srcdir ;;
924 esac
925
926 # Do not use `cd foo && pwd` to compute absolute paths, because
927 # the directories may not exist.
928 case `pwd` in
929 .) ac_abs_builddir="$ac_dir";;
930 *)
931 case "$ac_dir" in
932 .) ac_abs_builddir=`pwd`;;
933 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
934 *) ac_abs_builddir=`pwd`/"$ac_dir";;
935 esac;;
936 esac
937 case $ac_abs_builddir in
938 .) ac_abs_top_builddir=${ac_top_builddir}.;;
939 *)
940 case ${ac_top_builddir}. in
941 .) ac_abs_top_builddir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
943 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
944 esac;;
945 esac
946 case $ac_abs_builddir in
947 .) ac_abs_srcdir=$ac_srcdir;;
948 *)
949 case $ac_srcdir in
950 .) ac_abs_srcdir=$ac_abs_builddir;;
951 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
952 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
953 esac;;
954 esac
955 case $ac_abs_builddir in
956 .) ac_abs_top_srcdir=$ac_top_srcdir;;
957 *)
958 case $ac_top_srcdir in
959 .) ac_abs_top_srcdir=$ac_abs_builddir;;
960 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
961 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
962 esac;;
963 esac
964
965 cd $ac_dir
966 # Check for guested configure; otherwise get Cygnus style configure.
967 if test -f $ac_srcdir/configure.gnu; then
968 echo
969 $SHELL $ac_srcdir/configure.gnu --help=recursive
970 elif test -f $ac_srcdir/configure; then
971 echo
972 $SHELL $ac_srcdir/configure --help=recursive
973 elif test -f $ac_srcdir/configure.ac ||
974 test -f $ac_srcdir/configure.in; then
975 echo
976 $ac_configure --help
977 else
978 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979 fi
980 cd $ac_popdir
981 done
982 fi
983
984 test -n "$ac_init_help" && exit 0
985 if $ac_init_version; then
986 cat <<\_ACEOF
987
988 Copyright (C) 2003 Free Software Foundation, Inc.
989 This configure script is free software; the Free Software Foundation
990 gives unlimited permission to copy, distribute and modify it.
991 _ACEOF
992 exit 0
993 fi
994 exec 5>config.log
995 cat >&5 <<_ACEOF
996 This file contains any messages produced by compilers while
997 running configure, to aid debugging if configure makes a mistake.
998
999 It was created by $as_me, which was
1000 generated by GNU Autoconf 2.59. Invocation command line was
1001
1002 $ $0 $@
1003
1004 _ACEOF
1005 {
1006 cat <<_ASUNAME
1007 ## --------- ##
1008 ## Platform. ##
1009 ## --------- ##
1010
1011 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1012 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1013 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1014 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1015 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1016
1017 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1018 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1019
1020 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1021 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1022 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1023 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1024 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1025 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1026 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1027
1028 _ASUNAME
1029
1030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1031 for as_dir in $PATH
1032 do
1033 IFS=$as_save_IFS
1034 test -z "$as_dir" && as_dir=.
1035 echo "PATH: $as_dir"
1036 done
1037
1038 } >&5
1039
1040 cat >&5 <<_ACEOF
1041
1042
1043 ## ----------- ##
1044 ## Core tests. ##
1045 ## ----------- ##
1046
1047 _ACEOF
1048
1049
1050 # Keep a trace of the command line.
1051 # Strip out --no-create and --no-recursion so they do not pile up.
1052 # Strip out --silent because we don't want to record it for future runs.
1053 # Also quote any args containing shell meta-characters.
1054 # Make two passes to allow for proper duplicate-argument suppression.
1055 ac_configure_args=
1056 ac_configure_args0=
1057 ac_configure_args1=
1058 ac_sep=
1059 ac_must_keep_next=false
1060 for ac_pass in 1 2
1061 do
1062 for ac_arg
1063 do
1064 case $ac_arg in
1065 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1068 continue ;;
1069 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1070 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1071 esac
1072 case $ac_pass in
1073 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1074 2)
1075 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1076 if test $ac_must_keep_next = true; then
1077 ac_must_keep_next=false # Got value, back to normal.
1078 else
1079 case $ac_arg in
1080 *=* | --config-cache | -C | -disable-* | --disable-* \
1081 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1082 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1083 | -with-* | --with-* | -without-* | --without-* | --x)
1084 case "$ac_configure_args0 " in
1085 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1086 esac
1087 ;;
1088 -* ) ac_must_keep_next=true ;;
1089 esac
1090 fi
1091 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1092 # Get rid of the leading space.
1093 ac_sep=" "
1094 ;;
1095 esac
1096 done
1097 done
1098 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1099 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1100
1101 # When interrupted or exit'd, cleanup temporary files, and complete
1102 # config.log. We remove comments because anyway the quotes in there
1103 # would cause problems or look ugly.
1104 # WARNING: Be sure not to use single quotes in there, as some shells,
1105 # such as our DU 5.0 friend, will then `close' the trap.
1106 trap 'exit_status=$?
1107 # Save into config.log some information that might help in debugging.
1108 {
1109 echo
1110
1111 cat <<\_ASBOX
1112 ## ---------------- ##
1113 ## Cache variables. ##
1114 ## ---------------- ##
1115 _ASBOX
1116 echo
1117 # The following way of writing the cache mishandles newlines in values,
1118 {
1119 (set) 2>&1 |
1120 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1121 *ac_space=\ *)
1122 sed -n \
1123 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1125 ;;
1126 *)
1127 sed -n \
1128 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1129 ;;
1130 esac;
1131 }
1132 echo
1133
1134 cat <<\_ASBOX
1135 ## ----------------- ##
1136 ## Output variables. ##
1137 ## ----------------- ##
1138 _ASBOX
1139 echo
1140 for ac_var in $ac_subst_vars
1141 do
1142 eval ac_val=$`echo $ac_var`
1143 echo "$ac_var='"'"'$ac_val'"'"'"
1144 done | sort
1145 echo
1146
1147 if test -n "$ac_subst_files"; then
1148 cat <<\_ASBOX
1149 ## ------------- ##
1150 ## Output files. ##
1151 ## ------------- ##
1152 _ASBOX
1153 echo
1154 for ac_var in $ac_subst_files
1155 do
1156 eval ac_val=$`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
1158 done | sort
1159 echo
1160 fi
1161
1162 if test -s confdefs.h; then
1163 cat <<\_ASBOX
1164 ## ----------- ##
1165 ## confdefs.h. ##
1166 ## ----------- ##
1167 _ASBOX
1168 echo
1169 sed "/^$/d" confdefs.h | sort
1170 echo
1171 fi
1172 test "$ac_signal" != 0 &&
1173 echo "$as_me: caught signal $ac_signal"
1174 echo "$as_me: exit $exit_status"
1175 } >&5
1176 rm -f core *.core &&
1177 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1178 exit $exit_status
1179 ' 0
1180 for ac_signal in 1 2 13 15; do
1181 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1182 done
1183 ac_signal=0
1184
1185 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1186 rm -rf conftest* confdefs.h
1187 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1188 echo >confdefs.h
1189
1190 # Predefined preprocessor variables.
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_NAME "$PACKAGE_NAME"
1194 _ACEOF
1195
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1204 _ACEOF
1205
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_STRING "$PACKAGE_STRING"
1209 _ACEOF
1210
1211
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1214 _ACEOF
1215
1216
1217 # Let the site file select an alternate cache file if it wants to.
1218 # Prefer explicitly selected file to automatically selected ones.
1219 if test -z "$CONFIG_SITE"; then
1220 if test "x$prefix" != xNONE; then
1221 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1222 else
1223 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1224 fi
1225 fi
1226 for ac_site_file in $CONFIG_SITE; do
1227 if test -r "$ac_site_file"; then
1228 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1229 echo "$as_me: loading site script $ac_site_file" >&6;}
1230 sed 's/^/| /' "$ac_site_file" >&5
1231 . "$ac_site_file"
1232 fi
1233 done
1234
1235 if test -r "$cache_file"; then
1236 # Some versions of bash will fail to source /dev/null (special
1237 # files actually), so we avoid doing that.
1238 if test -f "$cache_file"; then
1239 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1240 echo "$as_me: loading cache $cache_file" >&6;}
1241 case $cache_file in
1242 [\\/]* | ?:[\\/]* ) . $cache_file;;
1243 *) . ./$cache_file;;
1244 esac
1245 fi
1246 else
1247 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1248 echo "$as_me: creating cache $cache_file" >&6;}
1249 >$cache_file
1250 fi
1251
1252 # Check that the precious variables saved in the cache have kept the same
1253 # value.
1254 ac_cache_corrupted=false
1255 for ac_var in `(set) 2>&1 |
1256 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1257 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1258 eval ac_new_set=\$ac_env_${ac_var}_set
1259 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1260 eval ac_new_val="\$ac_env_${ac_var}_value"
1261 case $ac_old_set,$ac_new_set in
1262 set,)
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,set)
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1270 ,);;
1271 *)
1272 if test "x$ac_old_val" != "x$ac_new_val"; then
1273 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1274 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1275 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1276 echo "$as_me: former value: $ac_old_val" >&2;}
1277 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1278 echo "$as_me: current value: $ac_new_val" >&2;}
1279 ac_cache_corrupted=:
1280 fi;;
1281 esac
1282 # Pass precious variables to config.status.
1283 if test "$ac_new_set" = set; then
1284 case $ac_new_val in
1285 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1287 *) ac_arg=$ac_var=$ac_new_val ;;
1288 esac
1289 case " $ac_configure_args " in
1290 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1291 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1292 esac
1293 fi
1294 done
1295 if $ac_cache_corrupted; then
1296 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1297 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1298 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1299 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1300 { (exit 1); exit 1; }; }
1301 fi
1302
1303 ac_ext=c
1304 ac_cpp='$CPP $CPPFLAGS'
1305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329 ac_aux_dir=
1330 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1331 if test -f $ac_dir/install-sh; then
1332 ac_aux_dir=$ac_dir
1333 ac_install_sh="$ac_aux_dir/install-sh -c"
1334 break
1335 elif test -f $ac_dir/install.sh; then
1336 ac_aux_dir=$ac_dir
1337 ac_install_sh="$ac_aux_dir/install.sh -c"
1338 break
1339 elif test -f $ac_dir/shtool; then
1340 ac_aux_dir=$ac_dir
1341 ac_install_sh="$ac_aux_dir/shtool install -c"
1342 break
1343 fi
1344 done
1345 if test -z "$ac_aux_dir"; then
1346 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1347 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1348 { (exit 1); exit 1; }; }
1349 fi
1350 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1351 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1352 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1353
1354 # Make sure we can run config.sub.
1355 $ac_config_sub sun4 >/dev/null 2>&1 ||
1356 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1357 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1358 { (exit 1); exit 1; }; }
1359
1360 echo "$as_me:$LINENO: checking build system type" >&5
1361 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1362 if test "${ac_cv_build+set}" = set; then
1363 echo $ECHO_N "(cached) $ECHO_C" >&6
1364 else
1365 ac_cv_build_alias=$build_alias
1366 test -z "$ac_cv_build_alias" &&
1367 ac_cv_build_alias=`$ac_config_guess`
1368 test -z "$ac_cv_build_alias" &&
1369 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1370 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1371 { (exit 1); exit 1; }; }
1372 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1373 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1374 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1375 { (exit 1); exit 1; }; }
1376
1377 fi
1378 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1379 echo "${ECHO_T}$ac_cv_build" >&6
1380 build=$ac_cv_build
1381 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1382 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1383 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1384
1385
1386 echo "$as_me:$LINENO: checking host system type" >&5
1387 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1388 if test "${ac_cv_host+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1390 else
1391 ac_cv_host_alias=$host_alias
1392 test -z "$ac_cv_host_alias" &&
1393 ac_cv_host_alias=$ac_cv_build_alias
1394 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1395 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1396 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1397 { (exit 1); exit 1; }; }
1398
1399 fi
1400 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1401 echo "${ECHO_T}$ac_cv_host" >&6
1402 host=$ac_cv_host
1403 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1404 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1405 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1406
1407
1408 echo "$as_me:$LINENO: checking target system type" >&5
1409 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1410 if test "${ac_cv_target+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1412 else
1413 ac_cv_target_alias=$target_alias
1414 test "x$ac_cv_target_alias" = "x" &&
1415 ac_cv_target_alias=$ac_cv_host_alias
1416 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1417 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1418 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1419 { (exit 1); exit 1; }; }
1420
1421 fi
1422 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1423 echo "${ECHO_T}$ac_cv_target" >&6
1424 target=$ac_cv_target
1425 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1428
1429
1430 # The aliases save the names the user supplied, while $host etc.
1431 # will get canonicalized.
1432 test -n "$target_alias" &&
1433 test "$program_prefix$program_suffix$program_transform_name" = \
1434 NONENONEs,x,x, &&
1435 program_prefix=${target_alias}-
1436 ac_ext=c
1437 ac_cpp='$CPP $CPPFLAGS'
1438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1441 if test -n "$ac_tool_prefix"; then
1442 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1443 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1444 echo "$as_me:$LINENO: checking for $ac_word" >&5
1445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1446 if test "${ac_cv_prog_CC+set}" = set; then
1447 echo $ECHO_N "(cached) $ECHO_C" >&6
1448 else
1449 if test -n "$CC"; then
1450 ac_cv_prog_CC="$CC" # Let the user override the test.
1451 else
1452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1453 for as_dir in $PATH
1454 do
1455 IFS=$as_save_IFS
1456 test -z "$as_dir" && as_dir=.
1457 for ac_exec_ext in '' $ac_executable_extensions; do
1458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1459 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1461 break 2
1462 fi
1463 done
1464 done
1465
1466 fi
1467 fi
1468 CC=$ac_cv_prog_CC
1469 if test -n "$CC"; then
1470 echo "$as_me:$LINENO: result: $CC" >&5
1471 echo "${ECHO_T}$CC" >&6
1472 else
1473 echo "$as_me:$LINENO: result: no" >&5
1474 echo "${ECHO_T}no" >&6
1475 fi
1476
1477 fi
1478 if test -z "$ac_cv_prog_CC"; then
1479 ac_ct_CC=$CC
1480 # Extract the first word of "gcc", so it can be a program name with args.
1481 set dummy gcc; ac_word=$2
1482 echo "$as_me:$LINENO: checking for $ac_word" >&5
1483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1484 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487 if test -n "$ac_ct_CC"; then
1488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1489 else
1490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491 for as_dir in $PATH
1492 do
1493 IFS=$as_save_IFS
1494 test -z "$as_dir" && as_dir=.
1495 for ac_exec_ext in '' $ac_executable_extensions; do
1496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1497 ac_cv_prog_ac_ct_CC="gcc"
1498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 break 2
1500 fi
1501 done
1502 done
1503
1504 fi
1505 fi
1506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1507 if test -n "$ac_ct_CC"; then
1508 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1509 echo "${ECHO_T}$ac_ct_CC" >&6
1510 else
1511 echo "$as_me:$LINENO: result: no" >&5
1512 echo "${ECHO_T}no" >&6
1513 fi
1514
1515 CC=$ac_ct_CC
1516 else
1517 CC="$ac_cv_prog_CC"
1518 fi
1519
1520 if test -z "$CC"; then
1521 if test -n "$ac_tool_prefix"; then
1522 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1523 set dummy ${ac_tool_prefix}cc; ac_word=$2
1524 echo "$as_me:$LINENO: checking for $ac_word" >&5
1525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1526 if test "${ac_cv_prog_CC+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1528 else
1529 if test -n "$CC"; then
1530 ac_cv_prog_CC="$CC" # Let the user override the test.
1531 else
1532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1533 for as_dir in $PATH
1534 do
1535 IFS=$as_save_IFS
1536 test -z "$as_dir" && as_dir=.
1537 for ac_exec_ext in '' $ac_executable_extensions; do
1538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1539 ac_cv_prog_CC="${ac_tool_prefix}cc"
1540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1541 break 2
1542 fi
1543 done
1544 done
1545
1546 fi
1547 fi
1548 CC=$ac_cv_prog_CC
1549 if test -n "$CC"; then
1550 echo "$as_me:$LINENO: result: $CC" >&5
1551 echo "${ECHO_T}$CC" >&6
1552 else
1553 echo "$as_me:$LINENO: result: no" >&5
1554 echo "${ECHO_T}no" >&6
1555 fi
1556
1557 fi
1558 if test -z "$ac_cv_prog_CC"; then
1559 ac_ct_CC=$CC
1560 # Extract the first word of "cc", so it can be a program name with args.
1561 set dummy cc; ac_word=$2
1562 echo "$as_me:$LINENO: checking for $ac_word" >&5
1563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1564 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1566 else
1567 if test -n "$ac_ct_CC"; then
1568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1569 else
1570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1571 for as_dir in $PATH
1572 do
1573 IFS=$as_save_IFS
1574 test -z "$as_dir" && as_dir=.
1575 for ac_exec_ext in '' $ac_executable_extensions; do
1576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1577 ac_cv_prog_ac_ct_CC="cc"
1578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1579 break 2
1580 fi
1581 done
1582 done
1583
1584 fi
1585 fi
1586 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1587 if test -n "$ac_ct_CC"; then
1588 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1589 echo "${ECHO_T}$ac_ct_CC" >&6
1590 else
1591 echo "$as_me:$LINENO: result: no" >&5
1592 echo "${ECHO_T}no" >&6
1593 fi
1594
1595 CC=$ac_ct_CC
1596 else
1597 CC="$ac_cv_prog_CC"
1598 fi
1599
1600 fi
1601 if test -z "$CC"; then
1602 # Extract the first word of "cc", so it can be a program name with args.
1603 set dummy cc; ac_word=$2
1604 echo "$as_me:$LINENO: checking for $ac_word" >&5
1605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1606 if test "${ac_cv_prog_CC+set}" = set; then
1607 echo $ECHO_N "(cached) $ECHO_C" >&6
1608 else
1609 if test -n "$CC"; then
1610 ac_cv_prog_CC="$CC" # Let the user override the test.
1611 else
1612 ac_prog_rejected=no
1613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614 for as_dir in $PATH
1615 do
1616 IFS=$as_save_IFS
1617 test -z "$as_dir" && as_dir=.
1618 for ac_exec_ext in '' $ac_executable_extensions; do
1619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1620 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1621 ac_prog_rejected=yes
1622 continue
1623 fi
1624 ac_cv_prog_CC="cc"
1625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626 break 2
1627 fi
1628 done
1629 done
1630
1631 if test $ac_prog_rejected = yes; then
1632 # We found a bogon in the path, so make sure we never use it.
1633 set dummy $ac_cv_prog_CC
1634 shift
1635 if test $# != 0; then
1636 # We chose a different compiler from the bogus one.
1637 # However, it has the same basename, so the bogon will be chosen
1638 # first if we set CC to just the basename; use the full file name.
1639 shift
1640 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1641 fi
1642 fi
1643 fi
1644 fi
1645 CC=$ac_cv_prog_CC
1646 if test -n "$CC"; then
1647 echo "$as_me:$LINENO: result: $CC" >&5
1648 echo "${ECHO_T}$CC" >&6
1649 else
1650 echo "$as_me:$LINENO: result: no" >&5
1651 echo "${ECHO_T}no" >&6
1652 fi
1653
1654 fi
1655 if test -z "$CC"; then
1656 if test -n "$ac_tool_prefix"; then
1657 for ac_prog in cl
1658 do
1659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1660 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1661 echo "$as_me:$LINENO: checking for $ac_word" >&5
1662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1663 if test "${ac_cv_prog_CC+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1665 else
1666 if test -n "$CC"; then
1667 ac_cv_prog_CC="$CC" # Let the user override the test.
1668 else
1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 for as_dir in $PATH
1671 do
1672 IFS=$as_save_IFS
1673 test -z "$as_dir" && as_dir=.
1674 for ac_exec_ext in '' $ac_executable_extensions; do
1675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1676 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1678 break 2
1679 fi
1680 done
1681 done
1682
1683 fi
1684 fi
1685 CC=$ac_cv_prog_CC
1686 if test -n "$CC"; then
1687 echo "$as_me:$LINENO: result: $CC" >&5
1688 echo "${ECHO_T}$CC" >&6
1689 else
1690 echo "$as_me:$LINENO: result: no" >&5
1691 echo "${ECHO_T}no" >&6
1692 fi
1693
1694 test -n "$CC" && break
1695 done
1696 fi
1697 if test -z "$CC"; then
1698 ac_ct_CC=$CC
1699 for ac_prog in cl
1700 do
1701 # Extract the first word of "$ac_prog", so it can be a program name with args.
1702 set dummy $ac_prog; ac_word=$2
1703 echo "$as_me:$LINENO: checking for $ac_word" >&5
1704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1705 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
1707 else
1708 if test -n "$ac_ct_CC"; then
1709 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1710 else
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 for as_dir in $PATH
1713 do
1714 IFS=$as_save_IFS
1715 test -z "$as_dir" && as_dir=.
1716 for ac_exec_ext in '' $ac_executable_extensions; do
1717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718 ac_cv_prog_ac_ct_CC="$ac_prog"
1719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720 break 2
1721 fi
1722 done
1723 done
1724
1725 fi
1726 fi
1727 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1728 if test -n "$ac_ct_CC"; then
1729 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1730 echo "${ECHO_T}$ac_ct_CC" >&6
1731 else
1732 echo "$as_me:$LINENO: result: no" >&5
1733 echo "${ECHO_T}no" >&6
1734 fi
1735
1736 test -n "$ac_ct_CC" && break
1737 done
1738
1739 CC=$ac_ct_CC
1740 fi
1741
1742 fi
1743
1744
1745 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1746 See \`config.log' for more details." >&5
1747 echo "$as_me: error: no acceptable C compiler found in \$PATH
1748 See \`config.log' for more details." >&2;}
1749 { (exit 1); exit 1; }; }
1750
1751 # Provide some information about the compiler.
1752 echo "$as_me:$LINENO:" \
1753 "checking for C compiler version" >&5
1754 ac_compiler=`set X $ac_compile; echo $2`
1755 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1756 (eval $ac_compiler --version </dev/null >&5) 2>&5
1757 ac_status=$?
1758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759 (exit $ac_status); }
1760 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1761 (eval $ac_compiler -v </dev/null >&5) 2>&5
1762 ac_status=$?
1763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764 (exit $ac_status); }
1765 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1766 (eval $ac_compiler -V </dev/null >&5) 2>&5
1767 ac_status=$?
1768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1769 (exit $ac_status); }
1770
1771 cat >conftest.$ac_ext <<_ACEOF
1772 /* confdefs.h. */
1773 _ACEOF
1774 cat confdefs.h >>conftest.$ac_ext
1775 cat >>conftest.$ac_ext <<_ACEOF
1776 /* end confdefs.h. */
1777
1778 int
1779 main ()
1780 {
1781
1782 ;
1783 return 0;
1784 }
1785 _ACEOF
1786 ac_clean_files_save=$ac_clean_files
1787 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1788 # Try to create an executable without -o first, disregard a.out.
1789 # It will help us diagnose broken compilers, and finding out an intuition
1790 # of exeext.
1791 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1792 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1793 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1794 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1795 (eval $ac_link_default) 2>&5
1796 ac_status=$?
1797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798 (exit $ac_status); }; then
1799 # Find the output, starting from the most likely. This scheme is
1800 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1801 # resort.
1802
1803 # Be careful to initialize this variable, since it used to be cached.
1804 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1805 ac_cv_exeext=
1806 # b.out is created by i960 compilers.
1807 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1808 do
1809 test -f "$ac_file" || continue
1810 case $ac_file in
1811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1812 ;;
1813 conftest.$ac_ext )
1814 # This is the source file.
1815 ;;
1816 [ab].out )
1817 # We found the default executable, but exeext='' is most
1818 # certainly right.
1819 break;;
1820 *.* )
1821 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1822 # FIXME: I believe we export ac_cv_exeext for Libtool,
1823 # but it would be cool to find out if it's true. Does anybody
1824 # maintain Libtool? --akim.
1825 export ac_cv_exeext
1826 break;;
1827 * )
1828 break;;
1829 esac
1830 done
1831 else
1832 echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1834
1835 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1836 See \`config.log' for more details." >&5
1837 echo "$as_me: error: C compiler cannot create executables
1838 See \`config.log' for more details." >&2;}
1839 { (exit 77); exit 77; }; }
1840 fi
1841
1842 ac_exeext=$ac_cv_exeext
1843 echo "$as_me:$LINENO: result: $ac_file" >&5
1844 echo "${ECHO_T}$ac_file" >&6
1845
1846 # Check the compiler produces executables we can run. If not, either
1847 # the compiler is broken, or we cross compile.
1848 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1849 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1850 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1851 # If not cross compiling, check that we can run a simple program.
1852 if test "$cross_compiling" != yes; then
1853 if { ac_try='./$ac_file'
1854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1855 (eval $ac_try) 2>&5
1856 ac_status=$?
1857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858 (exit $ac_status); }; }; then
1859 cross_compiling=no
1860 else
1861 if test "$cross_compiling" = maybe; then
1862 cross_compiling=yes
1863 else
1864 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1865 If you meant to cross compile, use \`--host'.
1866 See \`config.log' for more details." >&5
1867 echo "$as_me: error: cannot run C compiled programs.
1868 If you meant to cross compile, use \`--host'.
1869 See \`config.log' for more details." >&2;}
1870 { (exit 1); exit 1; }; }
1871 fi
1872 fi
1873 fi
1874 echo "$as_me:$LINENO: result: yes" >&5
1875 echo "${ECHO_T}yes" >&6
1876
1877 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1878 ac_clean_files=$ac_clean_files_save
1879 # Check the compiler produces executables we can run. If not, either
1880 # the compiler is broken, or we cross compile.
1881 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1882 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1883 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1884 echo "${ECHO_T}$cross_compiling" >&6
1885
1886 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1887 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1889 (eval $ac_link) 2>&5
1890 ac_status=$?
1891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892 (exit $ac_status); }; then
1893 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1894 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1895 # work properly (i.e., refer to `conftest.exe'), while it won't with
1896 # `rm'.
1897 for ac_file in conftest.exe conftest conftest.*; do
1898 test -f "$ac_file" || continue
1899 case $ac_file in
1900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1901 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1902 export ac_cv_exeext
1903 break;;
1904 * ) break;;
1905 esac
1906 done
1907 else
1908 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1909 See \`config.log' for more details." >&5
1910 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1911 See \`config.log' for more details." >&2;}
1912 { (exit 1); exit 1; }; }
1913 fi
1914
1915 rm -f conftest$ac_cv_exeext
1916 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1917 echo "${ECHO_T}$ac_cv_exeext" >&6
1918
1919 rm -f conftest.$ac_ext
1920 EXEEXT=$ac_cv_exeext
1921 ac_exeext=$EXEEXT
1922 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1923 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1924 if test "${ac_cv_objext+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1926 else
1927 cat >conftest.$ac_ext <<_ACEOF
1928 /* confdefs.h. */
1929 _ACEOF
1930 cat confdefs.h >>conftest.$ac_ext
1931 cat >>conftest.$ac_ext <<_ACEOF
1932 /* end confdefs.h. */
1933
1934 int
1935 main ()
1936 {
1937
1938 ;
1939 return 0;
1940 }
1941 _ACEOF
1942 rm -f conftest.o conftest.obj
1943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1944 (eval $ac_compile) 2>&5
1945 ac_status=$?
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); }; then
1948 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1949 case $ac_file in
1950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1951 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1952 break;;
1953 esac
1954 done
1955 else
1956 echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1958
1959 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1960 See \`config.log' for more details." >&5
1961 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1962 See \`config.log' for more details." >&2;}
1963 { (exit 1); exit 1; }; }
1964 fi
1965
1966 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1967 fi
1968 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1969 echo "${ECHO_T}$ac_cv_objext" >&6
1970 OBJEXT=$ac_cv_objext
1971 ac_objext=$OBJEXT
1972 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1973 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1974 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 else
1977 cat >conftest.$ac_ext <<_ACEOF
1978 /* confdefs.h. */
1979 _ACEOF
1980 cat confdefs.h >>conftest.$ac_ext
1981 cat >>conftest.$ac_ext <<_ACEOF
1982 /* end confdefs.h. */
1983
1984 int
1985 main ()
1986 {
1987 #ifndef __GNUC__
1988 choke me
1989 #endif
1990
1991 ;
1992 return 0;
1993 }
1994 _ACEOF
1995 rm -f conftest.$ac_objext
1996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1997 (eval $ac_compile) 2>conftest.er1
1998 ac_status=$?
1999 grep -v '^ *+' conftest.er1 >conftest.err
2000 rm -f conftest.er1
2001 cat conftest.err >&5
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); } &&
2004 { ac_try='test -z "$ac_c_werror_flag"
2005 || test ! -s conftest.err'
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); }; } &&
2011 { ac_try='test -s conftest.$ac_objext'
2012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2013 (eval $ac_try) 2>&5
2014 ac_status=$?
2015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016 (exit $ac_status); }; }; then
2017 ac_compiler_gnu=yes
2018 else
2019 echo "$as_me: failed program was:" >&5
2020 sed 's/^/| /' conftest.$ac_ext >&5
2021
2022 ac_compiler_gnu=no
2023 fi
2024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2025 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2026
2027 fi
2028 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2029 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2030 GCC=`test $ac_compiler_gnu = yes && echo yes`
2031 ac_test_CFLAGS=${CFLAGS+set}
2032 ac_save_CFLAGS=$CFLAGS
2033 CFLAGS="-g"
2034 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2035 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2036 if test "${ac_cv_prog_cc_g+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2038 else
2039 cat >conftest.$ac_ext <<_ACEOF
2040 /* confdefs.h. */
2041 _ACEOF
2042 cat confdefs.h >>conftest.$ac_ext
2043 cat >>conftest.$ac_ext <<_ACEOF
2044 /* end confdefs.h. */
2045
2046 int
2047 main ()
2048 {
2049
2050 ;
2051 return 0;
2052 }
2053 _ACEOF
2054 rm -f conftest.$ac_objext
2055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2056 (eval $ac_compile) 2>conftest.er1
2057 ac_status=$?
2058 grep -v '^ *+' conftest.er1 >conftest.err
2059 rm -f conftest.er1
2060 cat conftest.err >&5
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); } &&
2063 { ac_try='test -z "$ac_c_werror_flag"
2064 || test ! -s conftest.err'
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); }; } &&
2070 { ac_try='test -s conftest.$ac_objext'
2071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2072 (eval $ac_try) 2>&5
2073 ac_status=$?
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }; }; then
2076 ac_cv_prog_cc_g=yes
2077 else
2078 echo "$as_me: failed program was:" >&5
2079 sed 's/^/| /' conftest.$ac_ext >&5
2080
2081 ac_cv_prog_cc_g=no
2082 fi
2083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2084 fi
2085 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2086 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2087 if test "$ac_test_CFLAGS" = set; then
2088 CFLAGS=$ac_save_CFLAGS
2089 elif test $ac_cv_prog_cc_g = yes; then
2090 if test "$GCC" = yes; then
2091 CFLAGS="-g -O2"
2092 else
2093 CFLAGS="-g"
2094 fi
2095 else
2096 if test "$GCC" = yes; then
2097 CFLAGS="-O2"
2098 else
2099 CFLAGS=
2100 fi
2101 fi
2102 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2103 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2104 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 else
2107 ac_cv_prog_cc_stdc=no
2108 ac_save_CC=$CC
2109 cat >conftest.$ac_ext <<_ACEOF
2110 /* confdefs.h. */
2111 _ACEOF
2112 cat confdefs.h >>conftest.$ac_ext
2113 cat >>conftest.$ac_ext <<_ACEOF
2114 /* end confdefs.h. */
2115 #include <stdarg.h>
2116 #include <stdio.h>
2117 #include <sys/types.h>
2118 #include <sys/stat.h>
2119 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2120 struct buf { int x; };
2121 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2122 static char *e (p, i)
2123 char **p;
2124 int i;
2125 {
2126 return p[i];
2127 }
2128 static char *f (char * (*g) (char **, int), char **p, ...)
2129 {
2130 char *s;
2131 va_list v;
2132 va_start (v,p);
2133 s = g (p, va_arg (v,int));
2134 va_end (v);
2135 return s;
2136 }
2137
2138 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2139 function prototypes and stuff, but not '\xHH' hex character constants.
2140 These don't provoke an error unfortunately, instead are silently treated
2141 as 'x'. The following induces an error, until -std1 is added to get
2142 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2143 array size at least. It's necessary to write '\x00'==0 to get something
2144 that's true only with -std1. */
2145 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2146
2147 int test (int i, double x);
2148 struct s1 {int (*f) (int a);};
2149 struct s2 {int (*f) (double a);};
2150 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2151 int argc;
2152 char **argv;
2153 int
2154 main ()
2155 {
2156 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2157 ;
2158 return 0;
2159 }
2160 _ACEOF
2161 # Don't try gcc -ansi; that turns off useful extensions and
2162 # breaks some systems' header files.
2163 # AIX -qlanglvl=ansi
2164 # Ultrix and OSF/1 -std1
2165 # HP-UX 10.20 and later -Ae
2166 # HP-UX older versions -Aa -D_HPUX_SOURCE
2167 # SVR4 -Xc -D__EXTENSIONS__
2168 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2169 do
2170 CC="$ac_save_CC $ac_arg"
2171 rm -f conftest.$ac_objext
2172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2173 (eval $ac_compile) 2>conftest.er1
2174 ac_status=$?
2175 grep -v '^ *+' conftest.er1 >conftest.err
2176 rm -f conftest.er1
2177 cat conftest.err >&5
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); } &&
2180 { ac_try='test -z "$ac_c_werror_flag"
2181 || test ! -s conftest.err'
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); }; } &&
2187 { ac_try='test -s conftest.$ac_objext'
2188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 (eval $ac_try) 2>&5
2190 ac_status=$?
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; }; then
2193 ac_cv_prog_cc_stdc=$ac_arg
2194 break
2195 else
2196 echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2198
2199 fi
2200 rm -f conftest.err conftest.$ac_objext
2201 done
2202 rm -f conftest.$ac_ext conftest.$ac_objext
2203 CC=$ac_save_CC
2204
2205 fi
2206
2207 case "x$ac_cv_prog_cc_stdc" in
2208 x|xno)
2209 echo "$as_me:$LINENO: result: none needed" >&5
2210 echo "${ECHO_T}none needed" >&6 ;;
2211 *)
2212 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2213 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2214 CC="$CC $ac_cv_prog_cc_stdc" ;;
2215 esac
2216
2217 # Some people use a C++ compiler to compile C. Since we use `exit',
2218 # in C++ we need to declare it. In case someone uses the same compiler
2219 # for both compiling C and C++ we need to have the C++ compiler decide
2220 # the declaration of exit, since it's the most demanding environment.
2221 cat >conftest.$ac_ext <<_ACEOF
2222 #ifndef __cplusplus
2223 choke me
2224 #endif
2225 _ACEOF
2226 rm -f conftest.$ac_objext
2227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228 (eval $ac_compile) 2>conftest.er1
2229 ac_status=$?
2230 grep -v '^ *+' conftest.er1 >conftest.err
2231 rm -f conftest.er1
2232 cat conftest.err >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); } &&
2235 { ac_try='test -z "$ac_c_werror_flag"
2236 || test ! -s conftest.err'
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); }; } &&
2242 { ac_try='test -s conftest.$ac_objext'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 (eval $ac_try) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2248 for ac_declaration in \
2249 '' \
2250 'extern "C" void std::exit (int) throw (); using std::exit;' \
2251 'extern "C" void std::exit (int); using std::exit;' \
2252 'extern "C" void exit (int) throw ();' \
2253 'extern "C" void exit (int);' \
2254 'void exit (int);'
2255 do
2256 cat >conftest.$ac_ext <<_ACEOF
2257 /* confdefs.h. */
2258 _ACEOF
2259 cat confdefs.h >>conftest.$ac_ext
2260 cat >>conftest.$ac_ext <<_ACEOF
2261 /* end confdefs.h. */
2262 $ac_declaration
2263 #include <stdlib.h>
2264 int
2265 main ()
2266 {
2267 exit (42);
2268 ;
2269 return 0;
2270 }
2271 _ACEOF
2272 rm -f conftest.$ac_objext
2273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274 (eval $ac_compile) 2>conftest.er1
2275 ac_status=$?
2276 grep -v '^ *+' conftest.er1 >conftest.err
2277 rm -f conftest.er1
2278 cat conftest.err >&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); } &&
2281 { ac_try='test -z "$ac_c_werror_flag"
2282 || test ! -s conftest.err'
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); }; } &&
2288 { ac_try='test -s conftest.$ac_objext'
2289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290 (eval $ac_try) 2>&5
2291 ac_status=$?
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }; }; then
2294 :
2295 else
2296 echo "$as_me: failed program was:" >&5
2297 sed 's/^/| /' conftest.$ac_ext >&5
2298
2299 continue
2300 fi
2301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2302 cat >conftest.$ac_ext <<_ACEOF
2303 /* confdefs.h. */
2304 _ACEOF
2305 cat confdefs.h >>conftest.$ac_ext
2306 cat >>conftest.$ac_ext <<_ACEOF
2307 /* end confdefs.h. */
2308 $ac_declaration
2309 int
2310 main ()
2311 {
2312 exit (42);
2313 ;
2314 return 0;
2315 }
2316 _ACEOF
2317 rm -f conftest.$ac_objext
2318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319 (eval $ac_compile) 2>conftest.er1
2320 ac_status=$?
2321 grep -v '^ *+' conftest.er1 >conftest.err
2322 rm -f conftest.er1
2323 cat conftest.err >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); } &&
2326 { ac_try='test -z "$ac_c_werror_flag"
2327 || test ! -s conftest.err'
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); }; } &&
2333 { ac_try='test -s conftest.$ac_objext'
2334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335 (eval $ac_try) 2>&5
2336 ac_status=$?
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; }; then
2339 break
2340 else
2341 echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2343
2344 fi
2345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2346 done
2347 rm -f conftest*
2348 if test -n "$ac_declaration"; then
2349 echo '#ifdef __cplusplus' >>confdefs.h
2350 echo $ac_declaration >>confdefs.h
2351 echo '#endif' >>confdefs.h
2352 fi
2353
2354 else
2355 echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.$ac_ext >&5
2357
2358 fi
2359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2360 ac_ext=c
2361 ac_cpp='$CPP $CPPFLAGS'
2362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2365
2366
2367 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2368 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2369 if test "${ac_cv_search_strerror+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372 ac_func_search_save_LIBS=$LIBS
2373 ac_cv_search_strerror=no
2374 cat >conftest.$ac_ext <<_ACEOF
2375 /* confdefs.h. */
2376 _ACEOF
2377 cat confdefs.h >>conftest.$ac_ext
2378 cat >>conftest.$ac_ext <<_ACEOF
2379 /* end confdefs.h. */
2380
2381 /* Override any gcc2 internal prototype to avoid an error. */
2382 #ifdef __cplusplus
2383 extern "C"
2384 #endif
2385 /* We use char because int might match the return type of a gcc2
2386 builtin and then its argument prototype would still apply. */
2387 char strerror ();
2388 int
2389 main ()
2390 {
2391 strerror ();
2392 ;
2393 return 0;
2394 }
2395 _ACEOF
2396 rm -f conftest.$ac_objext conftest$ac_exeext
2397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2398 (eval $ac_link) 2>conftest.er1
2399 ac_status=$?
2400 grep -v '^ *+' conftest.er1 >conftest.err
2401 rm -f conftest.er1
2402 cat conftest.err >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
2405 { ac_try='test -z "$ac_c_werror_flag"
2406 || test ! -s conftest.err'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try='test -s conftest$ac_exeext'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 (eval $ac_try) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
2418 ac_cv_search_strerror="none required"
2419 else
2420 echo "$as_me: failed program was:" >&5
2421 sed 's/^/| /' conftest.$ac_ext >&5
2422
2423 fi
2424 rm -f conftest.err conftest.$ac_objext \
2425 conftest$ac_exeext conftest.$ac_ext
2426 if test "$ac_cv_search_strerror" = no; then
2427 for ac_lib in cposix; do
2428 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2429 cat >conftest.$ac_ext <<_ACEOF
2430 /* confdefs.h. */
2431 _ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h. */
2435
2436 /* Override any gcc2 internal prototype to avoid an error. */
2437 #ifdef __cplusplus
2438 extern "C"
2439 #endif
2440 /* We use char because int might match the return type of a gcc2
2441 builtin and then its argument prototype would still apply. */
2442 char strerror ();
2443 int
2444 main ()
2445 {
2446 strerror ();
2447 ;
2448 return 0;
2449 }
2450 _ACEOF
2451 rm -f conftest.$ac_objext conftest$ac_exeext
2452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2453 (eval $ac_link) 2>conftest.er1
2454 ac_status=$?
2455 grep -v '^ *+' conftest.er1 >conftest.err
2456 rm -f conftest.er1
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } &&
2460 { ac_try='test -z "$ac_c_werror_flag"
2461 || test ! -s conftest.err'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; } &&
2467 { ac_try='test -s conftest$ac_exeext'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469 (eval $ac_try) 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; }; then
2473 ac_cv_search_strerror="-l$ac_lib"
2474 break
2475 else
2476 echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.$ac_ext >&5
2478
2479 fi
2480 rm -f conftest.err conftest.$ac_objext \
2481 conftest$ac_exeext conftest.$ac_ext
2482 done
2483 fi
2484 LIBS=$ac_func_search_save_LIBS
2485 fi
2486 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2487 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2488 if test "$ac_cv_search_strerror" != no; then
2489 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2490
2491 fi
2492
2493
2494 am__api_version="1.9"
2495 # Find a good install program. We prefer a C program (faster),
2496 # so one script is as good as another. But avoid the broken or
2497 # incompatible versions:
2498 # SysV /etc/install, /usr/sbin/install
2499 # SunOS /usr/etc/install
2500 # IRIX /sbin/install
2501 # AIX /bin/install
2502 # AmigaOS /C/install, which installs bootblocks on floppy discs
2503 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2504 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2505 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2506 # OS/2's system install, which has a completely different semantic
2507 # ./install, which can be erroneously created by make from ./install.sh.
2508 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2509 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2510 if test -z "$INSTALL"; then
2511 if test "${ac_cv_path_install+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2513 else
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 for as_dir in $PATH
2516 do
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
2519 # Account for people who put trailing slashes in PATH elements.
2520 case $as_dir/ in
2521 ./ | .// | /cC/* | \
2522 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2523 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2524 /usr/ucb/* ) ;;
2525 *)
2526 # OSF1 and SCO ODT 3.0 have their own names for install.
2527 # Don't use installbsd from OSF since it installs stuff as root
2528 # by default.
2529 for ac_prog in ginstall scoinst install; do
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2532 if test $ac_prog = install &&
2533 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2534 # AIX install. It has an incompatible calling convention.
2535 :
2536 elif test $ac_prog = install &&
2537 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2538 # program-specific install script used by HP pwplus--don't use.
2539 :
2540 else
2541 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2542 break 3
2543 fi
2544 fi
2545 done
2546 done
2547 ;;
2548 esac
2549 done
2550
2551
2552 fi
2553 if test "${ac_cv_path_install+set}" = set; then
2554 INSTALL=$ac_cv_path_install
2555 else
2556 # As a last resort, use the slow shell script. We don't cache a
2557 # path for INSTALL within a source directory, because that will
2558 # break other packages using the cache if that directory is
2559 # removed, or if the path is relative.
2560 INSTALL=$ac_install_sh
2561 fi
2562 fi
2563 echo "$as_me:$LINENO: result: $INSTALL" >&5
2564 echo "${ECHO_T}$INSTALL" >&6
2565
2566 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2567 # It thinks the first close brace ends the variable substitution.
2568 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2569
2570 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2571
2572 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2573
2574 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2575 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2576 # Just in case
2577 sleep 1
2578 echo timestamp > conftest.file
2579 # Do `set' in a subshell so we don't clobber the current shell's
2580 # arguments. Must try -L first in case configure is actually a
2581 # symlink; some systems play weird games with the mod time of symlinks
2582 # (eg FreeBSD returns the mod time of the symlink's containing
2583 # directory).
2584 if (
2585 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2586 if test "$*" = "X"; then
2587 # -L didn't work.
2588 set X `ls -t $srcdir/configure conftest.file`
2589 fi
2590 rm -f conftest.file
2591 if test "$*" != "X $srcdir/configure conftest.file" \
2592 && test "$*" != "X conftest.file $srcdir/configure"; then
2593
2594 # If neither matched, then we have a broken ls. This can happen
2595 # if, for instance, CONFIG_SHELL is bash and it inherits a
2596 # broken ls alias from the environment. This has actually
2597 # happened. Such a system could not be considered "sane".
2598 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2599 alias in your environment" >&5
2600 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2601 alias in your environment" >&2;}
2602 { (exit 1); exit 1; }; }
2603 fi
2604
2605 test "$2" = conftest.file
2606 )
2607 then
2608 # Ok.
2609 :
2610 else
2611 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2612 Check your system clock" >&5
2613 echo "$as_me: error: newly created file is older than distributed files!
2614 Check your system clock" >&2;}
2615 { (exit 1); exit 1; }; }
2616 fi
2617 echo "$as_me:$LINENO: result: yes" >&5
2618 echo "${ECHO_T}yes" >&6
2619 test "$program_prefix" != NONE &&
2620 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2621 # Use a double $ so make ignores it.
2622 test "$program_suffix" != NONE &&
2623 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2624 # Double any \ or $. echo might interpret backslashes.
2625 # By default was `s,x,x', remove it if useless.
2626 cat <<\_ACEOF >conftest.sed
2627 s/[\\$]/&&/g;s/;s,x,x,$//
2628 _ACEOF
2629 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2630 rm conftest.sed
2631
2632 # expand $ac_aux_dir to an absolute path
2633 am_aux_dir=`cd $ac_aux_dir && pwd`
2634
2635 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2636 # Use eval to expand $SHELL
2637 if eval "$MISSING --run true"; then
2638 am_missing_run="$MISSING --run "
2639 else
2640 am_missing_run=
2641 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2642 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2643 fi
2644
2645 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2646 # We used to keeping the `.' as first argument, in order to
2647 # allow $(mkdir_p) to be used without argument. As in
2648 # $(mkdir_p) $(somedir)
2649 # where $(somedir) is conditionally defined. However this is wrong
2650 # for two reasons:
2651 # 1. if the package is installed by a user who cannot write `.'
2652 # make install will fail,
2653 # 2. the above comment should most certainly read
2654 # $(mkdir_p) $(DESTDIR)$(somedir)
2655 # so it does not work when $(somedir) is undefined and
2656 # $(DESTDIR) is not.
2657 # To support the latter case, we have to write
2658 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2659 # so the `.' trick is pointless.
2660 mkdir_p='mkdir -p --'
2661 else
2662 # On NextStep and OpenStep, the `mkdir' command does not
2663 # recognize any option. It will interpret all options as
2664 # directories to create, and then abort because `.' already
2665 # exists.
2666 for d in ./-p ./--version;
2667 do
2668 test -d $d && rmdir $d
2669 done
2670 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2671 if test -f "$ac_aux_dir/mkinstalldirs"; then
2672 mkdir_p='$(mkinstalldirs)'
2673 else
2674 mkdir_p='$(install_sh) -d'
2675 fi
2676 fi
2677
2678 for ac_prog in gawk mawk nawk awk
2679 do
2680 # Extract the first word of "$ac_prog", so it can be a program name with args.
2681 set dummy $ac_prog; ac_word=$2
2682 echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2684 if test "${ac_cv_prog_AWK+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687 if test -n "$AWK"; then
2688 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697 ac_cv_prog_AWK="$ac_prog"
2698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 break 2
2700 fi
2701 done
2702 done
2703
2704 fi
2705 fi
2706 AWK=$ac_cv_prog_AWK
2707 if test -n "$AWK"; then
2708 echo "$as_me:$LINENO: result: $AWK" >&5
2709 echo "${ECHO_T}$AWK" >&6
2710 else
2711 echo "$as_me:$LINENO: result: no" >&5
2712 echo "${ECHO_T}no" >&6
2713 fi
2714
2715 test -n "$AWK" && break
2716 done
2717
2718 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2719 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2720 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2721 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 else
2724 cat >conftest.make <<\_ACEOF
2725 all:
2726 @echo 'ac_maketemp="$(MAKE)"'
2727 _ACEOF
2728 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2729 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2730 if test -n "$ac_maketemp"; then
2731 eval ac_cv_prog_make_${ac_make}_set=yes
2732 else
2733 eval ac_cv_prog_make_${ac_make}_set=no
2734 fi
2735 rm -f conftest.make
2736 fi
2737 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2738 echo "$as_me:$LINENO: result: yes" >&5
2739 echo "${ECHO_T}yes" >&6
2740 SET_MAKE=
2741 else
2742 echo "$as_me:$LINENO: result: no" >&5
2743 echo "${ECHO_T}no" >&6
2744 SET_MAKE="MAKE=${MAKE-make}"
2745 fi
2746
2747 rm -rf .tst 2>/dev/null
2748 mkdir .tst 2>/dev/null
2749 if test -d .tst; then
2750 am__leading_dot=.
2751 else
2752 am__leading_dot=_
2753 fi
2754 rmdir .tst 2>/dev/null
2755
2756 DEPDIR="${am__leading_dot}deps"
2757
2758 ac_config_commands="$ac_config_commands depfiles"
2759
2760
2761 am_make=${MAKE-make}
2762 cat > confinc << 'END'
2763 am__doit:
2764 @echo done
2765 .PHONY: am__doit
2766 END
2767 # If we don't find an include directive, just comment out the code.
2768 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2769 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2770 am__include="#"
2771 am__quote=
2772 _am_result=none
2773 # First try GNU make style include.
2774 echo "include confinc" > confmf
2775 # We grep out `Entering directory' and `Leaving directory'
2776 # messages which can occur if `w' ends up in MAKEFLAGS.
2777 # In particular we don't look at `^make:' because GNU make might
2778 # be invoked under some other name (usually "gmake"), in which
2779 # case it prints its new name instead of `make'.
2780 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2781 am__include=include
2782 am__quote=
2783 _am_result=GNU
2784 fi
2785 # Now try BSD make style include.
2786 if test "$am__include" = "#"; then
2787 echo '.include "confinc"' > confmf
2788 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2789 am__include=.include
2790 am__quote="\""
2791 _am_result=BSD
2792 fi
2793 fi
2794
2795
2796 echo "$as_me:$LINENO: result: $_am_result" >&5
2797 echo "${ECHO_T}$_am_result" >&6
2798 rm -f confinc confmf
2799
2800 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2801 if test "${enable_dependency_tracking+set}" = set; then
2802 enableval="$enable_dependency_tracking"
2803
2804 fi;
2805 if test "x$enable_dependency_tracking" != xno; then
2806 am_depcomp="$ac_aux_dir/depcomp"
2807 AMDEPBACKSLASH='\'
2808 fi
2809
2810
2811 if test "x$enable_dependency_tracking" != xno; then
2812 AMDEP_TRUE=
2813 AMDEP_FALSE='#'
2814 else
2815 AMDEP_TRUE='#'
2816 AMDEP_FALSE=
2817 fi
2818
2819
2820
2821 # test to see if srcdir already configured
2822 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2823 test -f $srcdir/config.status; then
2824 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2825 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2826 { (exit 1); exit 1; }; }
2827 fi
2828
2829 # test whether we have cygpath
2830 if test -z "$CYGPATH_W"; then
2831 if (cygpath --version) >/dev/null 2>/dev/null; then
2832 CYGPATH_W='cygpath -w'
2833 else
2834 CYGPATH_W=echo
2835 fi
2836 fi
2837
2838
2839 # Define the identity of the package.
2840 PACKAGE=bfd
2841 VERSION=2.17.50
2842
2843
2844 cat >>confdefs.h <<_ACEOF
2845 #define PACKAGE "$PACKAGE"
2846 _ACEOF
2847
2848
2849 cat >>confdefs.h <<_ACEOF
2850 #define VERSION "$VERSION"
2851 _ACEOF
2852
2853 # Some tools Automake needs.
2854
2855 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2856
2857
2858 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2859
2860
2861 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2862
2863
2864 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2865
2866
2867 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2868
2869 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2870
2871 # Installed binaries are usually stripped using `strip' when the user
2872 # run `make install-strip'. However `strip' might not be the right
2873 # tool to use in cross-compilation environments, therefore Automake
2874 # will honor the `STRIP' environment variable to overrule this program.
2875 if test "$cross_compiling" != no; then
2876 if test -n "$ac_tool_prefix"; then
2877 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2878 set dummy ${ac_tool_prefix}strip; ac_word=$2
2879 echo "$as_me:$LINENO: checking for $ac_word" >&5
2880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2881 if test "${ac_cv_prog_STRIP+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2883 else
2884 if test -n "$STRIP"; then
2885 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2886 else
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2889 do
2890 IFS=$as_save_IFS
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2894 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 break 2
2897 fi
2898 done
2899 done
2900
2901 fi
2902 fi
2903 STRIP=$ac_cv_prog_STRIP
2904 if test -n "$STRIP"; then
2905 echo "$as_me:$LINENO: result: $STRIP" >&5
2906 echo "${ECHO_T}$STRIP" >&6
2907 else
2908 echo "$as_me:$LINENO: result: no" >&5
2909 echo "${ECHO_T}no" >&6
2910 fi
2911
2912 fi
2913 if test -z "$ac_cv_prog_STRIP"; then
2914 ac_ct_STRIP=$STRIP
2915 # Extract the first word of "strip", so it can be a program name with args.
2916 set dummy strip; ac_word=$2
2917 echo "$as_me:$LINENO: checking for $ac_word" >&5
2918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2919 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2921 else
2922 if test -n "$ac_ct_STRIP"; then
2923 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2924 else
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2927 do
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2932 ac_cv_prog_ac_ct_STRIP="strip"
2933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 break 2
2935 fi
2936 done
2937 done
2938
2939 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2940 fi
2941 fi
2942 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2943 if test -n "$ac_ct_STRIP"; then
2944 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2945 echo "${ECHO_T}$ac_ct_STRIP" >&6
2946 else
2947 echo "$as_me:$LINENO: result: no" >&5
2948 echo "${ECHO_T}no" >&6
2949 fi
2950
2951 STRIP=$ac_ct_STRIP
2952 else
2953 STRIP="$ac_cv_prog_STRIP"
2954 fi
2955
2956 fi
2957 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2958
2959 # We need awk for the "check" target. The system "awk" is bad on
2960 # some platforms.
2961 # Always define AMTAR for backward compatibility.
2962
2963 AMTAR=${AMTAR-"${am_missing_run}tar"}
2964
2965 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2966
2967
2968
2969
2970 depcc="$CC" am_compiler_list=
2971
2972 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2973 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2974 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 else
2977 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2978 # We make a subdir and do the tests there. Otherwise we can end up
2979 # making bogus files that we don't know about and never remove. For
2980 # instance it was reported that on HP-UX the gcc test will end up
2981 # making a dummy file named `D' -- because `-MD' means `put the output
2982 # in D'.
2983 mkdir conftest.dir
2984 # Copy depcomp to subdir because otherwise we won't find it if we're
2985 # using a relative directory.
2986 cp "$am_depcomp" conftest.dir
2987 cd conftest.dir
2988 # We will build objects and dependencies in a subdirectory because
2989 # it helps to detect inapplicable dependency modes. For instance
2990 # both Tru64's cc and ICC support -MD to output dependencies as a
2991 # side effect of compilation, but ICC will put the dependencies in
2992 # the current directory while Tru64 will put them in the object
2993 # directory.
2994 mkdir sub
2995
2996 am_cv_CC_dependencies_compiler_type=none
2997 if test "$am_compiler_list" = ""; then
2998 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2999 fi
3000 for depmode in $am_compiler_list; do
3001 # Setup a source with many dependencies, because some compilers
3002 # like to wrap large dependency lists on column 80 (with \), and
3003 # we should not choose a depcomp mode which is confused by this.
3004 #
3005 # We need to recreate these files for each test, as the compiler may
3006 # overwrite some of them when testing with obscure command lines.
3007 # This happens at least with the AIX C compiler.
3008 : > sub/conftest.c
3009 for i in 1 2 3 4 5 6; do
3010 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3011 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3012 # Solaris 8's {/usr,}/bin/sh.
3013 touch sub/conftst$i.h
3014 done
3015 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3016
3017 case $depmode in
3018 nosideeffect)
3019 # after this tag, mechanisms are not by side-effect, so they'll
3020 # only be used when explicitly requested
3021 if test "x$enable_dependency_tracking" = xyes; then
3022 continue
3023 else
3024 break
3025 fi
3026 ;;
3027 none) break ;;
3028 esac
3029 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3030 # mode. It turns out that the SunPro C++ compiler does not properly
3031 # handle `-M -o', and we need to detect this.
3032 if depmode=$depmode \
3033 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3034 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3035 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3036 >/dev/null 2>conftest.err &&
3037 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3038 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3039 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3040 # icc doesn't choke on unknown options, it will just issue warnings
3041 # or remarks (even with -Werror). So we grep stderr for any message
3042 # that says an option was ignored or not supported.
3043 # When given -MP, icc 7.0 and 7.1 complain thusly:
3044 # icc: Command line warning: ignoring option '-M'; no argument required
3045 # The diagnosis changed in icc 8.0:
3046 # icc: Command line remark: option '-MP' not supported
3047 if (grep 'ignoring option' conftest.err ||
3048 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3049 am_cv_CC_dependencies_compiler_type=$depmode
3050 break
3051 fi
3052 fi
3053 done
3054
3055 cd ..
3056 rm -rf conftest.dir
3057 else
3058 am_cv_CC_dependencies_compiler_type=none
3059 fi
3060
3061 fi
3062 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3063 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3064 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3065
3066
3067
3068 if
3069 test "x$enable_dependency_tracking" != xno \
3070 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3071 am__fastdepCC_TRUE=
3072 am__fastdepCC_FALSE='#'
3073 else
3074 am__fastdepCC_TRUE='#'
3075 am__fastdepCC_FALSE=
3076 fi
3077
3078
3079
3080
3081 if test -n "$ac_tool_prefix"; then
3082 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3083 set dummy ${ac_tool_prefix}ar; ac_word=$2
3084 echo "$as_me:$LINENO: checking for $ac_word" >&5
3085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3086 if test "${ac_cv_prog_AR+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3088 else
3089 if test -n "$AR"; then
3090 ac_cv_prog_AR="$AR" # Let the user override the test.
3091 else
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 for as_dir in $PATH
3094 do
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099 ac_cv_prog_AR="${ac_tool_prefix}ar"
3100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 break 2
3102 fi
3103 done
3104 done
3105
3106 fi
3107 fi
3108 AR=$ac_cv_prog_AR
3109 if test -n "$AR"; then
3110 echo "$as_me:$LINENO: result: $AR" >&5
3111 echo "${ECHO_T}$AR" >&6
3112 else
3113 echo "$as_me:$LINENO: result: no" >&5
3114 echo "${ECHO_T}no" >&6
3115 fi
3116
3117 fi
3118 if test -z "$ac_cv_prog_AR"; then
3119 ac_ct_AR=$AR
3120 # Extract the first word of "ar", so it can be a program name with args.
3121 set dummy ar; ac_word=$2
3122 echo "$as_me:$LINENO: checking for $ac_word" >&5
3123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3124 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3126 else
3127 if test -n "$ac_ct_AR"; then
3128 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3129 else
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 for as_dir in $PATH
3132 do
3133 IFS=$as_save_IFS
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137 ac_cv_prog_ac_ct_AR="ar"
3138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 break 2
3140 fi
3141 done
3142 done
3143
3144 fi
3145 fi
3146 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3147 if test -n "$ac_ct_AR"; then
3148 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3149 echo "${ECHO_T}$ac_ct_AR" >&6
3150 else
3151 echo "$as_me:$LINENO: result: no" >&5
3152 echo "${ECHO_T}no" >&6
3153 fi
3154
3155 AR=$ac_ct_AR
3156 else
3157 AR="$ac_cv_prog_AR"
3158 fi
3159
3160 if test -n "$ac_tool_prefix"; then
3161 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3162 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3163 echo "$as_me:$LINENO: checking for $ac_word" >&5
3164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3165 if test "${ac_cv_prog_RANLIB+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3167 else
3168 if test -n "$RANLIB"; then
3169 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3170 else
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3173 do
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 break 2
3181 fi
3182 done
3183 done
3184
3185 fi
3186 fi
3187 RANLIB=$ac_cv_prog_RANLIB
3188 if test -n "$RANLIB"; then
3189 echo "$as_me:$LINENO: result: $RANLIB" >&5
3190 echo "${ECHO_T}$RANLIB" >&6
3191 else
3192 echo "$as_me:$LINENO: result: no" >&5
3193 echo "${ECHO_T}no" >&6
3194 fi
3195
3196 fi
3197 if test -z "$ac_cv_prog_RANLIB"; then
3198 ac_ct_RANLIB=$RANLIB
3199 # Extract the first word of "ranlib", so it can be a program name with args.
3200 set dummy ranlib; ac_word=$2
3201 echo "$as_me:$LINENO: checking for $ac_word" >&5
3202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3203 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206 if test -n "$ac_ct_RANLIB"; then
3207 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3208 else
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3211 do
3212 IFS=$as_save_IFS
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216 ac_cv_prog_ac_ct_RANLIB="ranlib"
3217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 break 2
3219 fi
3220 done
3221 done
3222
3223 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3224 fi
3225 fi
3226 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3227 if test -n "$ac_ct_RANLIB"; then
3228 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3229 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3230 else
3231 echo "$as_me:$LINENO: result: no" >&5
3232 echo "${ECHO_T}no" >&6
3233 fi
3234
3235 RANLIB=$ac_ct_RANLIB
3236 else
3237 RANLIB="$ac_cv_prog_RANLIB"
3238 fi
3239
3240
3241 # Check whether --enable-shared or --disable-shared was given.
3242 if test "${enable_shared+set}" = set; then
3243 enableval="$enable_shared"
3244 p=${PACKAGE-default}
3245 case $enableval in
3246 yes) enable_shared=yes ;;
3247 no) enable_shared=no ;;
3248 *)
3249 enable_shared=no
3250 # Look at the argument we got. We use all the common list separators.
3251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3252 for pkg in $enableval; do
3253 if test "X$pkg" = "X$p"; then
3254 enable_shared=yes
3255 fi
3256 done
3257 IFS="$ac_save_ifs"
3258 ;;
3259 esac
3260 else
3261 enable_shared=no
3262 fi;
3263
3264 # Check whether --enable-static or --disable-static was given.
3265 if test "${enable_static+set}" = set; then
3266 enableval="$enable_static"
3267 p=${PACKAGE-default}
3268 case $enableval in
3269 yes) enable_static=yes ;;
3270 no) enable_static=no ;;
3271 *)
3272 enable_static=no
3273 # Look at the argument we got. We use all the common list separators.
3274 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3275 for pkg in $enableval; do
3276 if test "X$pkg" = "X$p"; then
3277 enable_static=yes
3278 fi
3279 done
3280 IFS="$ac_save_ifs"
3281 ;;
3282 esac
3283 else
3284 enable_static=yes
3285 fi;
3286 # Check whether --enable-fast-install or --disable-fast-install was given.
3287 if test "${enable_fast_install+set}" = set; then
3288 enableval="$enable_fast_install"
3289 p=${PACKAGE-default}
3290 case $enableval in
3291 yes) enable_fast_install=yes ;;
3292 no) enable_fast_install=no ;;
3293 *)
3294 enable_fast_install=no
3295 # Look at the argument we got. We use all the common list separators.
3296 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3297 for pkg in $enableval; do
3298 if test "X$pkg" = "X$p"; then
3299 enable_fast_install=yes
3300 fi
3301 done
3302 IFS="$ac_save_ifs"
3303 ;;
3304 esac
3305 else
3306 enable_fast_install=yes
3307 fi;
3308
3309 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3310 if test "${with_gnu_ld+set}" = set; then
3311 withval="$with_gnu_ld"
3312 test "$withval" = no || with_gnu_ld=yes
3313 else
3314 with_gnu_ld=no
3315 fi;
3316 ac_prog=ld
3317 if test "$GCC" = yes; then
3318 # Check if gcc -print-prog-name=ld gives a path.
3319 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3320 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3321 case $host in
3322 *-*-mingw*)
3323 # gcc leaves a trailing carriage return which upsets mingw
3324 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3325 *)
3326 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3327 esac
3328 case $ac_prog in
3329 # Accept absolute paths.
3330 [\\/]* | [A-Za-z]:[\\/]*)
3331 re_direlt='/[^/][^/]*/\.\./'
3332 # Canonicalize the path of ld
3333 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3334 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3335 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3336 done
3337 test -z "$LD" && LD="$ac_prog"
3338 ;;
3339 "")
3340 # If it fails, then pretend we aren't using GCC.
3341 ac_prog=ld
3342 ;;
3343 *)
3344 # If it is relative, then search for the first ld in PATH.
3345 with_gnu_ld=unknown
3346 ;;
3347 esac
3348 elif test "$with_gnu_ld" = yes; then
3349 echo "$as_me:$LINENO: checking for GNU ld" >&5
3350 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3351 else
3352 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3353 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3354 fi
3355 if test "${lt_cv_path_LD+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 else
3358 if test -z "$LD"; then
3359 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3360 for ac_dir in $PATH; do
3361 test -z "$ac_dir" && ac_dir=.
3362 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3363 lt_cv_path_LD="$ac_dir/$ac_prog"
3364 # Check to see if the program is GNU ld. I'd rather use --version,
3365 # but apparently some GNU ld's only accept -v.
3366 # Break only if it was the GNU/non-GNU ld that we prefer.
3367 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3368 test "$with_gnu_ld" != no && break
3369 else
3370 test "$with_gnu_ld" != yes && break
3371 fi
3372 fi
3373 done
3374 IFS="$ac_save_ifs"
3375 else
3376 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3377 fi
3378 fi
3379
3380 LD="$lt_cv_path_LD"
3381 if test -n "$LD"; then
3382 echo "$as_me:$LINENO: result: $LD" >&5
3383 echo "${ECHO_T}$LD" >&6
3384 else
3385 echo "$as_me:$LINENO: result: no" >&5
3386 echo "${ECHO_T}no" >&6
3387 fi
3388 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3389 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3390 { (exit 1); exit 1; }; }
3391 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3392 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3393 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 else
3396 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3397 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3398 lt_cv_prog_gnu_ld=yes
3399 else
3400 lt_cv_prog_gnu_ld=no
3401 fi
3402 fi
3403 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3404 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3405 with_gnu_ld=$lt_cv_prog_gnu_ld
3406
3407
3408 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3409 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3410 if test "${lt_cv_ld_reload_flag+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3412 else
3413 lt_cv_ld_reload_flag='-r'
3414 fi
3415 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3416 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3417 reload_flag=$lt_cv_ld_reload_flag
3418 test -n "$reload_flag" && reload_flag=" $reload_flag"
3419
3420 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3421 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3422 if test "${lt_cv_path_NM+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 else
3425 if test -n "$NM"; then
3426 # Let the user override the test.
3427 lt_cv_path_NM="$NM"
3428 else
3429 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3430 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3431 test -z "$ac_dir" && ac_dir=.
3432 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3433 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3434 # Check to see if the nm accepts a BSD-compat flag.
3435 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3436 # nm: unknown option "B" ignored
3437 # Tru64's nm complains that /dev/null is an invalid object file
3438 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3439 lt_cv_path_NM="$tmp_nm -B"
3440 break
3441 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3442 lt_cv_path_NM="$tmp_nm -p"
3443 break
3444 else
3445 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3446 continue # so that we can try to find one that supports BSD flags
3447 fi
3448 fi
3449 done
3450 IFS="$ac_save_ifs"
3451 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3452 fi
3453 fi
3454
3455 NM="$lt_cv_path_NM"
3456 echo "$as_me:$LINENO: result: $NM" >&5
3457 echo "${ECHO_T}$NM" >&6
3458
3459 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3460 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3461 LN_S=$as_ln_s
3462 if test "$LN_S" = "ln -s"; then
3463 echo "$as_me:$LINENO: result: yes" >&5
3464 echo "${ECHO_T}yes" >&6
3465 else
3466 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3467 echo "${ECHO_T}no, using $LN_S" >&6
3468 fi
3469
3470 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3471 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3472 if test "${lt_cv_deplibs_check_method+set}" = set; then
3473 echo $ECHO_N "(cached) $ECHO_C" >&6
3474 else
3475 lt_cv_file_magic_cmd='$MAGIC_CMD'
3476 lt_cv_file_magic_test_file=
3477 lt_cv_deplibs_check_method='unknown'
3478 # Need to set the preceding variable on all platforms that support
3479 # interlibrary dependencies.
3480 # 'none' -- dependencies not supported.
3481 # `unknown' -- same as none, but documents that we really don't know.
3482 # 'pass_all' -- all dependencies passed with no checks.
3483 # 'test_compile' -- check by making test program.
3484 # 'file_magic [regex]' -- check by looking for files in library path
3485 # which responds to the $file_magic_cmd with a given egrep regex.
3486 # If you have `file' or equivalent on your system and you're not sure
3487 # whether `pass_all' will *always* work, you probably want this one.
3488
3489 case $host_os in
3490 aix*)
3491 lt_cv_deplibs_check_method=pass_all
3492 ;;
3493
3494 beos*)
3495 lt_cv_deplibs_check_method=pass_all
3496 ;;
3497
3498 bsdi4*)
3499 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3500 lt_cv_file_magic_cmd='/usr/bin/file -L'
3501 lt_cv_file_magic_test_file=/shlib/libc.so
3502 ;;
3503
3504 cygwin* | mingw* |pw32*)
3505 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3506 lt_cv_file_magic_cmd='$OBJDUMP -f'
3507 ;;
3508
3509 darwin* | rhapsody*)
3510 # this will be overwritten by pass_all, but leave it in just in case
3511 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3512 lt_cv_file_magic_cmd='/usr/bin/file -L'
3513 case "$host_os" in
3514 rhapsody* | darwin1.012)
3515 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3516 ;;
3517 *) # Darwin 1.3 on
3518 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3519 ;;
3520 esac
3521 lt_cv_deplibs_check_method=pass_all
3522 ;;
3523
3524 freebsd* | kfreebsd*-gnu)
3525 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3526 case $host_cpu in
3527 i*86 )
3528 # Not sure whether the presence of OpenBSD here was a mistake.
3529 # Let's accept both of them until this is cleared up.
3530 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3531 lt_cv_file_magic_cmd=/usr/bin/file
3532 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3533 ;;
3534 esac
3535 else
3536 lt_cv_deplibs_check_method=pass_all
3537 fi
3538 ;;
3539
3540 gnu*)
3541 lt_cv_deplibs_check_method=pass_all
3542 ;;
3543
3544 hpux10.20*|hpux11*)
3545 case $host_cpu in
3546 hppa*)
3547 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3548 lt_cv_file_magic_cmd=/usr/bin/file
3549 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3550 ;;
3551 ia64*)
3552 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3553 lt_cv_file_magic_cmd=/usr/bin/file
3554 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3555 ;;
3556 esac
3557 ;;
3558
3559 irix5* | irix6*)
3560 case $host_os in
3561 irix5*)
3562 # this will be overridden with pass_all, but let us keep it just in case
3563 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3564 ;;
3565 *)
3566 case $LD in
3567 *-32|*"-32 ") libmagic=32-bit;;
3568 *-n32|*"-n32 ") libmagic=N32;;
3569 *-64|*"-64 ") libmagic=64-bit;;
3570 *) libmagic=never-match;;
3571 esac
3572 # this will be overridden with pass_all, but let us keep it just in case
3573 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3574 ;;
3575 esac
3576 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3577 lt_cv_deplibs_check_method=pass_all
3578 ;;
3579
3580 # This must be Linux ELF.
3581 linux-gnu*)
3582 lt_cv_deplibs_check_method=pass_all
3583 ;;
3584
3585 netbsd* | knetbsd*-gnu)
3586 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3587 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3588 else
3589 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3590 fi
3591 ;;
3592
3593 newsos6)
3594 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3595 lt_cv_file_magic_cmd=/usr/bin/file
3596 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3597 ;;
3598
3599 osf3* | osf4* | osf5*)
3600 # this will be overridden with pass_all, but let us keep it just in case
3601 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3602 lt_cv_file_magic_test_file=/shlib/libc.so
3603 lt_cv_deplibs_check_method=pass_all
3604 ;;
3605
3606 sco3.2v5*)
3607 lt_cv_deplibs_check_method=pass_all
3608 ;;
3609
3610 solaris*)
3611 lt_cv_deplibs_check_method=pass_all
3612 lt_cv_file_magic_test_file=/lib/libc.so
3613 ;;
3614
3615 sysv5uw[78]* | sysv4*uw2*)
3616 lt_cv_deplibs_check_method=pass_all
3617 ;;
3618
3619 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3620 case $host_vendor in
3621 ncr)
3622 lt_cv_deplibs_check_method=pass_all
3623 ;;
3624 motorola)
3625 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]'
3626 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3627 ;;
3628 esac
3629 ;;
3630 esac
3631
3632 fi
3633 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3634 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3635 file_magic_cmd=$lt_cv_file_magic_cmd
3636 deplibs_check_method=$lt_cv_deplibs_check_method
3637
3638
3639
3640
3641 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3642
3643 # find the maximum length of command line arguments
3644 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3645 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3646 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649 i=0
3650 teststring="ABCD"
3651
3652 case $build_os in
3653 msdosdjgpp*)
3654 # On DJGPP, this test can blow up pretty badly due to problems in libc
3655 # (any single argument exceeding 2000 bytes causes a buffer overrun
3656 # during glob expansion). Even if it were fixed, the result of this
3657 # check would be larger than it should be.
3658 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3659 ;;
3660
3661 cygwin* | mingw*)
3662 # On Win9x/ME, this test blows up -- it succeeds, but takes
3663 # about 5 minutes as the teststring grows exponentially.
3664 # Worse, since 9x/ME are not pre-emptively multitasking,
3665 # you end up with a "frozen" computer, even though with patience
3666 # the test eventually succeeds (with a max line length of 256k).
3667 # Instead, let's just punt: use the minimum linelength reported by
3668 # all of the supported platforms: 8192 (on NT/2K/XP).
3669 lt_cv_sys_max_cmd_len=8192;
3670 ;;
3671
3672 amigaos*)
3673 # On AmigaOS with pdksh, this test takes hours, literally.
3674 # So we just punt and use a minimum line length of 8192.
3675 lt_cv_sys_max_cmd_len=8192;
3676 ;;
3677
3678 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3679 # This has been around since 386BSD, at least. Likely further.
3680 if test -x /sbin/sysctl; then
3681 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3682 elif test -x /usr/sbin/sysctl; then
3683 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3684 else
3685 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3686 fi
3687 # And add a safety zone
3688 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3689 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3690 ;;
3691 esac
3692
3693 fi
3694
3695 if test -n "$lt_cv_sys_max_cmd_len" ; then
3696 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3697 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3698 else
3699 echo "$as_me:$LINENO: result: none" >&5
3700 echo "${ECHO_T}none" >&6
3701 fi
3702
3703
3704 # Only perform the check for file, if the check method requires it
3705 case $deplibs_check_method in
3706 file_magic*)
3707 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3708 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3709 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3710 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3712 else
3713 case $MAGIC_CMD in
3714 /*)
3715 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3716 ;;
3717 ?:/*)
3718 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3719 ;;
3720 *)
3721 ac_save_MAGIC_CMD="$MAGIC_CMD"
3722 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3723 ac_dummy="/usr/bin:$PATH"
3724 for ac_dir in $ac_dummy; do
3725 test -z "$ac_dir" && ac_dir=.
3726 if test -f $ac_dir/${ac_tool_prefix}file; then
3727 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3728 if test -n "$file_magic_test_file"; then
3729 case $deplibs_check_method in
3730 "file_magic "*)
3731 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3732 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3733 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3734 egrep "$file_magic_regex" > /dev/null; then
3735 :
3736 else
3737 cat <<EOF 1>&2
3738
3739 *** Warning: the command libtool uses to detect shared libraries,
3740 *** $file_magic_cmd, produces output that libtool cannot recognize.
3741 *** The result is that libtool may fail to recognize shared libraries
3742 *** as such. This will affect the creation of libtool libraries that
3743 *** depend on shared libraries, but programs linked with such libtool
3744 *** libraries will work regardless of this problem. Nevertheless, you
3745 *** may want to report the problem to your system manager and/or to
3746 *** bug-libtool@gnu.org
3747
3748 EOF
3749 fi ;;
3750 esac
3751 fi
3752 break
3753 fi
3754 done
3755 IFS="$ac_save_ifs"
3756 MAGIC_CMD="$ac_save_MAGIC_CMD"
3757 ;;
3758 esac
3759 fi
3760
3761 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3762 if test -n "$MAGIC_CMD"; then
3763 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3764 echo "${ECHO_T}$MAGIC_CMD" >&6
3765 else
3766 echo "$as_me:$LINENO: result: no" >&5
3767 echo "${ECHO_T}no" >&6
3768 fi
3769
3770 if test -z "$lt_cv_path_MAGIC_CMD"; then
3771 if test -n "$ac_tool_prefix"; then
3772 echo "$as_me:$LINENO: checking for file" >&5
3773 echo $ECHO_N "checking for file... $ECHO_C" >&6
3774 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 else
3777 case $MAGIC_CMD in
3778 /*)
3779 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3780 ;;
3781 ?:/*)
3782 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3783 ;;
3784 *)
3785 ac_save_MAGIC_CMD="$MAGIC_CMD"
3786 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3787 ac_dummy="/usr/bin:$PATH"
3788 for ac_dir in $ac_dummy; do
3789 test -z "$ac_dir" && ac_dir=.
3790 if test -f $ac_dir/file; then
3791 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3792 if test -n "$file_magic_test_file"; then
3793 case $deplibs_check_method in
3794 "file_magic "*)
3795 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3796 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3797 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3798 egrep "$file_magic_regex" > /dev/null; then
3799 :
3800 else
3801 cat <<EOF 1>&2
3802
3803 *** Warning: the command libtool uses to detect shared libraries,
3804 *** $file_magic_cmd, produces output that libtool cannot recognize.
3805 *** The result is that libtool may fail to recognize shared libraries
3806 *** as such. This will affect the creation of libtool libraries that
3807 *** depend on shared libraries, but programs linked with such libtool
3808 *** libraries will work regardless of this problem. Nevertheless, you
3809 *** may want to report the problem to your system manager and/or to
3810 *** bug-libtool@gnu.org
3811
3812 EOF
3813 fi ;;
3814 esac
3815 fi
3816 break
3817 fi
3818 done
3819 IFS="$ac_save_ifs"
3820 MAGIC_CMD="$ac_save_MAGIC_CMD"
3821 ;;
3822 esac
3823 fi
3824
3825 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3826 if test -n "$MAGIC_CMD"; then
3827 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3828 echo "${ECHO_T}$MAGIC_CMD" >&6
3829 else
3830 echo "$as_me:$LINENO: result: no" >&5
3831 echo "${ECHO_T}no" >&6
3832 fi
3833
3834 else
3835 MAGIC_CMD=:
3836 fi
3837 fi
3838
3839 fi
3840 ;;
3841 esac
3842
3843 if test -n "$ac_tool_prefix"; then
3844 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3845 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3846 echo "$as_me:$LINENO: checking for $ac_word" >&5
3847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3848 if test "${ac_cv_prog_RANLIB+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851 if test -n "$RANLIB"; then
3852 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3853 else
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 for as_dir in $PATH
3856 do
3857 IFS=$as_save_IFS
3858 test -z "$as_dir" && as_dir=.
3859 for ac_exec_ext in '' $ac_executable_extensions; do
3860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3861 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3863 break 2
3864 fi
3865 done
3866 done
3867
3868 fi
3869 fi
3870 RANLIB=$ac_cv_prog_RANLIB
3871 if test -n "$RANLIB"; then
3872 echo "$as_me:$LINENO: result: $RANLIB" >&5
3873 echo "${ECHO_T}$RANLIB" >&6
3874 else
3875 echo "$as_me:$LINENO: result: no" >&5
3876 echo "${ECHO_T}no" >&6
3877 fi
3878
3879 fi
3880 if test -z "$ac_cv_prog_RANLIB"; then
3881 ac_ct_RANLIB=$RANLIB
3882 # Extract the first word of "ranlib", so it can be a program name with args.
3883 set dummy ranlib; ac_word=$2
3884 echo "$as_me:$LINENO: checking for $ac_word" >&5
3885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3886 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889 if test -n "$ac_ct_RANLIB"; then
3890 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3891 else
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH
3894 do
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3899 ac_cv_prog_ac_ct_RANLIB="ranlib"
3900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3901 break 2
3902 fi
3903 done
3904 done
3905
3906 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3907 fi
3908 fi
3909 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3910 if test -n "$ac_ct_RANLIB"; then
3911 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3912 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3913 else
3914 echo "$as_me:$LINENO: result: no" >&5
3915 echo "${ECHO_T}no" >&6
3916 fi
3917
3918 RANLIB=$ac_ct_RANLIB
3919 else
3920 RANLIB="$ac_cv_prog_RANLIB"
3921 fi
3922
3923 if test -n "$ac_tool_prefix"; then
3924 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3925 set dummy ${ac_tool_prefix}strip; ac_word=$2
3926 echo "$as_me:$LINENO: checking for $ac_word" >&5
3927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3928 if test "${ac_cv_prog_STRIP+set}" = set; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3930 else
3931 if test -n "$STRIP"; then
3932 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3933 else
3934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935 for as_dir in $PATH
3936 do
3937 IFS=$as_save_IFS
3938 test -z "$as_dir" && as_dir=.
3939 for ac_exec_ext in '' $ac_executable_extensions; do
3940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3941 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3943 break 2
3944 fi
3945 done
3946 done
3947
3948 fi
3949 fi
3950 STRIP=$ac_cv_prog_STRIP
3951 if test -n "$STRIP"; then
3952 echo "$as_me:$LINENO: result: $STRIP" >&5
3953 echo "${ECHO_T}$STRIP" >&6
3954 else
3955 echo "$as_me:$LINENO: result: no" >&5
3956 echo "${ECHO_T}no" >&6
3957 fi
3958
3959 fi
3960 if test -z "$ac_cv_prog_STRIP"; then
3961 ac_ct_STRIP=$STRIP
3962 # Extract the first word of "strip", so it can be a program name with args.
3963 set dummy strip; ac_word=$2
3964 echo "$as_me:$LINENO: checking for $ac_word" >&5
3965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3966 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 else
3969 if test -n "$ac_ct_STRIP"; then
3970 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3971 else
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH
3974 do
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3979 ac_cv_prog_ac_ct_STRIP="strip"
3980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3981 break 2
3982 fi
3983 done
3984 done
3985
3986 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3987 fi
3988 fi
3989 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3990 if test -n "$ac_ct_STRIP"; then
3991 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3992 echo "${ECHO_T}$ac_ct_STRIP" >&6
3993 else
3994 echo "$as_me:$LINENO: result: no" >&5
3995 echo "${ECHO_T}no" >&6
3996 fi
3997
3998 STRIP=$ac_ct_STRIP
3999 else
4000 STRIP="$ac_cv_prog_STRIP"
4001 fi
4002
4003
4004 # Check for any special flags to pass to ltconfig.
4005 libtool_flags="--cache-file=$cache_file"
4006 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4007 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4008 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4009 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4010 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4011
4012
4013 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4014 if test "${enable_libtool_lock+set}" = set; then
4015 enableval="$enable_libtool_lock"
4016
4017 fi;
4018 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4019 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4020
4021
4022 # Check whether --with-pic or --without-pic was given.
4023 if test "${with_pic+set}" = set; then
4024 withval="$with_pic"
4025 pic_mode="$withval"
4026 else
4027 pic_mode=default
4028 fi;
4029 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4030 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4031
4032 # Some flags need to be propagated to the compiler or linker for good
4033 # libtool support.
4034 case $host in
4035 *-*-irix6*)
4036 # Find out which ABI we are using.
4037 echo '#line 4037 "configure"' > conftest.$ac_ext
4038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4039 (eval $ac_compile) 2>&5
4040 ac_status=$?
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; then
4043 if test "$lt_cv_prog_gnu_ld" = yes; then
4044 case `/usr/bin/file conftest.$ac_objext` in
4045 *32-bit*)
4046 LD="${LD-ld} -melf32bsmip"
4047 ;;
4048 *N32*)
4049 LD="${LD-ld} -melf32bmipn32"
4050 ;;
4051 *64-bit*)
4052 LD="${LD-ld} -melf64bmip"
4053 ;;
4054 esac
4055 else
4056 case `/usr/bin/file conftest.$ac_objext` in
4057 *32-bit*)
4058 LD="${LD-ld} -32"
4059 ;;
4060 *N32*)
4061 LD="${LD-ld} -n32"
4062 ;;
4063 *64-bit*)
4064 LD="${LD-ld} -64"
4065 ;;
4066 esac
4067 fi
4068 fi
4069 rm -rf conftest*
4070 ;;
4071
4072 ia64-*-hpux*)
4073 # Find out which ABI we are using.
4074 echo 'int i;' > conftest.$ac_ext
4075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4076 (eval $ac_compile) 2>&5
4077 ac_status=$?
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; then
4080 case "`/usr/bin/file conftest.o`" in
4081 *ELF-32*)
4082 HPUX_IA64_MODE="32"
4083 ;;
4084 *ELF-64*)
4085 HPUX_IA64_MODE="64"
4086 ;;
4087 esac
4088 fi
4089 rm -rf conftest*
4090 ;;
4091
4092 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4093 # Find out which ABI we are using.
4094 echo 'int i;' > conftest.$ac_ext
4095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4096 (eval $ac_compile) 2>&5
4097 ac_status=$?
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; then
4100 case "`/usr/bin/file conftest.o`" in
4101 *32-bit*)
4102 case $host in
4103 x86_64-*linux*)
4104 LD="${LD-ld} -m elf_i386"
4105 ;;
4106 ppc64-*linux*|powerpc64-*linux*)
4107 LD="${LD-ld} -m elf32ppclinux"
4108 ;;
4109 s390x-*linux*)
4110 LD="${LD-ld} -m elf_s390"
4111 ;;
4112 sparc64-*linux*)
4113 LD="${LD-ld} -m elf32_sparc"
4114 ;;
4115 esac
4116 ;;
4117 *64-bit*)
4118 case $host in
4119 x86_64-*linux*)
4120 LD="${LD-ld} -m elf_x86_64"
4121 ;;
4122 ppc*-*linux*|powerpc*-*linux*)
4123 LD="${LD-ld} -m elf64ppc"
4124 ;;
4125 s390*-*linux*)
4126 LD="${LD-ld} -m elf64_s390"
4127 ;;
4128 sparc*-*linux*)
4129 LD="${LD-ld} -m elf64_sparc"
4130 ;;
4131 esac
4132 ;;
4133 esac
4134 fi
4135 rm -rf conftest*
4136 ;;
4137
4138 *-*-sco3.2v5*)
4139 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4140 SAVE_CFLAGS="$CFLAGS"
4141 CFLAGS="$CFLAGS -belf"
4142 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4143 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4144 if test "${lt_cv_cc_needs_belf+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4146 else
4147
4148
4149 ac_ext=c
4150 ac_cpp='$CPP $CPPFLAGS'
4151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4154
4155 cat >conftest.$ac_ext <<_ACEOF
4156 /* confdefs.h. */
4157 _ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4161
4162 int
4163 main ()
4164 {
4165
4166 ;
4167 return 0;
4168 }
4169 _ACEOF
4170 rm -f conftest.$ac_objext conftest$ac_exeext
4171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4172 (eval $ac_link) 2>conftest.er1
4173 ac_status=$?
4174 grep -v '^ *+' conftest.er1 >conftest.err
4175 rm -f conftest.er1
4176 cat conftest.err >&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } &&
4179 { ac_try='test -z "$ac_c_werror_flag"
4180 || test ! -s conftest.err'
4181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182 (eval $ac_try) 2>&5
4183 ac_status=$?
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; } &&
4186 { ac_try='test -s conftest$ac_exeext'
4187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 (eval $ac_try) 2>&5
4189 ac_status=$?
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; }; then
4192 lt_cv_cc_needs_belf=yes
4193 else
4194 echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4196
4197 lt_cv_cc_needs_belf=no
4198 fi
4199 rm -f conftest.err conftest.$ac_objext \
4200 conftest$ac_exeext conftest.$ac_ext
4201 ac_ext=c
4202 ac_cpp='$CPP $CPPFLAGS'
4203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4206
4207 fi
4208 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4209 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4210 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4211 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4212 CFLAGS="$SAVE_CFLAGS"
4213 fi
4214 ;;
4215
4216
4217 esac
4218
4219
4220 # Save cache, so that ltconfig can load it
4221 cat >confcache <<\_ACEOF
4222 # This file is a shell script that caches the results of configure
4223 # tests run on this system so they can be shared between configure
4224 # scripts and configure runs, see configure's option --config-cache.
4225 # It is not useful on other systems. If it contains results you don't
4226 # want to keep, you may remove or edit it.
4227 #
4228 # config.status only pays attention to the cache file if you give it
4229 # the --recheck option to rerun configure.
4230 #
4231 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4232 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4233 # following values.
4234
4235 _ACEOF
4236
4237 # The following way of writing the cache mishandles newlines in values,
4238 # but we know of no workaround that is simple, portable, and efficient.
4239 # So, don't put newlines in cache variables' values.
4240 # Ultrix sh set writes to stderr and can't be redirected directly,
4241 # and sets the high bit in the cache file unless we assign to the vars.
4242 {
4243 (set) 2>&1 |
4244 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4245 *ac_space=\ *)
4246 # `set' does not quote correctly, so add quotes (double-quote
4247 # substitution turns \\\\ into \\, and sed turns \\ into \).
4248 sed -n \
4249 "s/'/'\\\\''/g;
4250 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4251 ;;
4252 *)
4253 # `set' quotes correctly as required by POSIX, so do not add quotes.
4254 sed -n \
4255 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4256 ;;
4257 esac;
4258 } |
4259 sed '
4260 t clear
4261 : clear
4262 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4263 t end
4264 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4265 : end' >>confcache
4266 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4267 if test -w $cache_file; then
4268 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4269 cat confcache >$cache_file
4270 else
4271 echo "not updating unwritable cache $cache_file"
4272 fi
4273 fi
4274 rm -f confcache
4275
4276 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4277 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4278 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4279 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4280 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4281 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4282 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4283 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4284 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4285 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4286 echo "$as_me: error: libtool configure failed" >&2;}
4287 { (exit 1); exit 1; }; }
4288
4289 # Reload cache, that may have been modified by ltconfig
4290 if test -r "$cache_file"; then
4291 # Some versions of bash will fail to source /dev/null (special
4292 # files actually), so we avoid doing that.
4293 if test -f "$cache_file"; then
4294 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4295 echo "$as_me: loading cache $cache_file" >&6;}
4296 case $cache_file in
4297 [\\/]* | ?:[\\/]* ) . $cache_file;;
4298 *) . ./$cache_file;;
4299 esac
4300 fi
4301 else
4302 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4303 echo "$as_me: creating cache $cache_file" >&6;}
4304 >$cache_file
4305 fi
4306
4307
4308 # This can be used to rebuild libtool when needed
4309 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4310
4311 # Always use our own libtool.
4312 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4313
4314 # Redirect the config.log output again, so that the ltconfig log is not
4315 # clobbered by the next message.
4316 exec 5>>./config.log
4317
4318
4319
4320
4321
4322
4323
4324 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4325 if test "${enable_64_bit_bfd+set}" = set; then
4326 enableval="$enable_64_bit_bfd"
4327 case "${enableval}" in
4328 yes) want64=true ;;
4329 no) want64=false ;;
4330 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4331 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4332 { (exit 1); exit 1; }; } ;;
4333 esac
4334 else
4335 want64=false
4336 fi; # Check whether --enable-targets or --disable-targets was given.
4337 if test "${enable_targets+set}" = set; then
4338 enableval="$enable_targets"
4339 case "${enableval}" in
4340 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4341 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4342 { (exit 1); exit 1; }; }
4343 ;;
4344 no) enable_targets= ;;
4345 *) enable_targets=$enableval ;;
4346 esac
4347 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4348 if test "${enable_commonbfdlib+set}" = set; then
4349 enableval="$enable_commonbfdlib"
4350 case "${enableval}" in
4351 yes) commonbfdlib=true ;;
4352 no) commonbfdlib=false ;;
4353 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4354 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4355 { (exit 1); exit 1; }; } ;;
4356 esac
4357 fi;
4358 # Check whether --with-mmap or --without-mmap was given.
4359 if test "${with_mmap+set}" = set; then
4360 withval="$with_mmap"
4361 case "${withval}" in
4362 yes) want_mmap=true ;;
4363 no) want_mmap=false ;;
4364 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4365 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4366 { (exit 1); exit 1; }; } ;;
4367 esac
4368 else
4369 want_mmap=false
4370 fi;
4371 # Check whether --enable-secureplt or --disable-secureplt was given.
4372 if test "${enable_secureplt+set}" = set; then
4373 enableval="$enable_secureplt"
4374 case "${enableval}" in
4375 yes) use_secureplt=true ;;
4376 no) use_secureplt=false ;;
4377 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
4378 echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
4379 { (exit 1); exit 1; }; } ;;
4380 esac
4381 else
4382 use_secureplt=false
4383 fi; if test $use_secureplt = true; then
4384
4385 cat >>confdefs.h <<\_ACEOF
4386 #define USE_SECUREPLT 1
4387 _ACEOF
4388
4389 fi
4390
4391
4392
4393 # Check whether --with-pkgversion or --without-pkgversion was given.
4394 if test "${with_pkgversion+set}" = set; then
4395 withval="$with_pkgversion"
4396 case "$withval" in
4397 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
4398 echo "$as_me: error: package version not specified" >&2;}
4399 { (exit 1); exit 1; }; } ;;
4400 no) PKGVERSION= ;;
4401 *) PKGVERSION="($withval) " ;;
4402 esac
4403 else
4404 PKGVERSION="(GNU Binutils) "
4405
4406 fi;
4407
4408
4409
4410
4411 # Check whether --with-bugurl or --without-bugurl was given.
4412 if test "${with_bugurl+set}" = set; then
4413 withval="$with_bugurl"
4414 case "$withval" in
4415 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
4416 echo "$as_me: error: bug URL not specified" >&2;}
4417 { (exit 1); exit 1; }; } ;;
4418 no) REPORT_BUGS_TO="";
4419 REPORT_BUGS_TEXI=""
4420 ;;
4421 *) REPORT_BUGS_TO="<$withval>"
4422 REPORT_BUGS_TEXI="@uref{`echo $withval | sed 's/@/@@/g'`}"
4423 ;;
4424 esac
4425 else
4426 REPORT_BUGS_TO="<http://www.sourceware.org/bugzilla/>"
4427 REPORT_BUGS_TEXI="@uref{http://www.sourceware.org/bugzilla/}"
4428
4429 fi;
4430
4431
4432
4433
4434
4435 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4436
4437 # Check whether --enable-werror or --disable-werror was given.
4438 if test "${enable_werror+set}" = set; then
4439 enableval="$enable_werror"
4440 case "${enableval}" in
4441 yes | y) ERROR_ON_WARNING="yes" ;;
4442 no | n) ERROR_ON_WARNING="no" ;;
4443 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4444 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4445 { (exit 1); exit 1; }; } ;;
4446 esac
4447 fi;
4448
4449 # Enable -Werror by default when using gcc
4450 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4451 ERROR_ON_WARNING=yes
4452 fi
4453
4454 NO_WERROR=
4455 if test "${ERROR_ON_WARNING}" = yes ; then
4456 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4457 NO_WERROR="-Wno-error"
4458 fi
4459
4460 if test "${GCC}" = yes ; then
4461 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4462 fi
4463
4464 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4465 if test "${enable_build_warnings+set}" = set; then
4466 enableval="$enable_build_warnings"
4467 case "${enableval}" in
4468 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4469 no) if test "${GCC}" = yes ; then
4470 WARN_CFLAGS="-w"
4471 fi;;
4472 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4473 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4474 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4475 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4476 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4477 esac
4478 fi;
4479
4480 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4481 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4482 fi
4483
4484
4485
4486
4487
4488 ac_config_headers="$ac_config_headers config.h:config.in"
4489
4490
4491 if test -z "$target" ; then
4492 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4493 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4494 { (exit 1); exit 1; }; }
4495 fi
4496
4497 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4498 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4499 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4500 if test "${enable_maintainer_mode+set}" = set; then
4501 enableval="$enable_maintainer_mode"
4502 USE_MAINTAINER_MODE=$enableval
4503 else
4504 USE_MAINTAINER_MODE=no
4505 fi;
4506 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4507 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4508
4509
4510 if test $USE_MAINTAINER_MODE = yes; then
4511 MAINTAINER_MODE_TRUE=
4512 MAINTAINER_MODE_FALSE='#'
4513 else
4514 MAINTAINER_MODE_TRUE='#'
4515 MAINTAINER_MODE_FALSE=
4516 fi
4517
4518 MAINT=$MAINTAINER_MODE_TRUE
4519
4520
4521
4522
4523 if false; then
4524 GENINSRC_NEVER_TRUE=
4525 GENINSRC_NEVER_FALSE='#'
4526 else
4527 GENINSRC_NEVER_TRUE='#'
4528 GENINSRC_NEVER_FALSE=
4529 fi
4530
4531 case ${build_alias} in
4532 "") build_noncanonical=${build} ;;
4533 *) build_noncanonical=${build_alias} ;;
4534 esac
4535
4536 case ${host_alias} in
4537 "") host_noncanonical=${build_noncanonical} ;;
4538 *) host_noncanonical=${host_alias} ;;
4539 esac
4540
4541 case ${target_alias} in
4542 "") target_noncanonical=${host_noncanonical} ;;
4543 *) target_noncanonical=${target_alias} ;;
4544 esac
4545
4546 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4547 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
4548 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4549 if test "${enable_install_libbfd+set}" = set; then
4550 enableval="$enable_install_libbfd"
4551 install_libbfd_p=$enableval
4552 else
4553 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
4554 install_libbfd_p=yes
4555 else
4556 install_libbfd_p=no
4557 fi
4558 fi;
4559 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4560 echo "${ECHO_T}$install_libbfd_p" >&6
4561
4562
4563 if test $install_libbfd_p = yes; then
4564 INSTALL_LIBBFD_TRUE=
4565 INSTALL_LIBBFD_FALSE='#'
4566 else
4567 INSTALL_LIBBFD_TRUE='#'
4568 INSTALL_LIBBFD_FALSE=
4569 fi
4570
4571 # Need _noncanonical variables for this.
4572
4573
4574
4575
4576 # libbfd.a is a host library containing target dependent code
4577 bfdlibdir='$(libdir)'
4578 bfdincludedir='$(includedir)'
4579 if test "${host}" != "${target}"; then
4580 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4581 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
4582 fi
4583
4584
4585
4586
4587
4588
4589 host64=false
4590 target64=false
4591 bfd_default_target_size=32
4592
4593 # host stuff:
4594
4595 ac_ext=c
4596 ac_cpp='$CPP $CPPFLAGS'
4597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4600 if test -n "$ac_tool_prefix"; then
4601 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4602 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4603 echo "$as_me:$LINENO: checking for $ac_word" >&5
4604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4605 if test "${ac_cv_prog_CC+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 else
4608 if test -n "$CC"; then
4609 ac_cv_prog_CC="$CC" # Let the user override the test.
4610 else
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 for as_dir in $PATH
4613 do
4614 IFS=$as_save_IFS
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4618 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 break 2
4621 fi
4622 done
4623 done
4624
4625 fi
4626 fi
4627 CC=$ac_cv_prog_CC
4628 if test -n "$CC"; then
4629 echo "$as_me:$LINENO: result: $CC" >&5
4630 echo "${ECHO_T}$CC" >&6
4631 else
4632 echo "$as_me:$LINENO: result: no" >&5
4633 echo "${ECHO_T}no" >&6
4634 fi
4635
4636 fi
4637 if test -z "$ac_cv_prog_CC"; then
4638 ac_ct_CC=$CC
4639 # Extract the first word of "gcc", so it can be a program name with args.
4640 set dummy gcc; ac_word=$2
4641 echo "$as_me:$LINENO: checking for $ac_word" >&5
4642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4643 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4645 else
4646 if test -n "$ac_ct_CC"; then
4647 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4648 else
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4651 do
4652 IFS=$as_save_IFS
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4656 ac_cv_prog_ac_ct_CC="gcc"
4657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 break 2
4659 fi
4660 done
4661 done
4662
4663 fi
4664 fi
4665 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4666 if test -n "$ac_ct_CC"; then
4667 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4668 echo "${ECHO_T}$ac_ct_CC" >&6
4669 else
4670 echo "$as_me:$LINENO: result: no" >&5
4671 echo "${ECHO_T}no" >&6
4672 fi
4673
4674 CC=$ac_ct_CC
4675 else
4676 CC="$ac_cv_prog_CC"
4677 fi
4678
4679 if test -z "$CC"; then
4680 if test -n "$ac_tool_prefix"; then
4681 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4682 set dummy ${ac_tool_prefix}cc; ac_word=$2
4683 echo "$as_me:$LINENO: checking for $ac_word" >&5
4684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4685 if test "${ac_cv_prog_CC+set}" = set; then
4686 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 else
4688 if test -n "$CC"; then
4689 ac_cv_prog_CC="$CC" # Let the user override the test.
4690 else
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH
4693 do
4694 IFS=$as_save_IFS
4695 test -z "$as_dir" && as_dir=.
4696 for ac_exec_ext in '' $ac_executable_extensions; do
4697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4698 ac_cv_prog_CC="${ac_tool_prefix}cc"
4699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 break 2
4701 fi
4702 done
4703 done
4704
4705 fi
4706 fi
4707 CC=$ac_cv_prog_CC
4708 if test -n "$CC"; then
4709 echo "$as_me:$LINENO: result: $CC" >&5
4710 echo "${ECHO_T}$CC" >&6
4711 else
4712 echo "$as_me:$LINENO: result: no" >&5
4713 echo "${ECHO_T}no" >&6
4714 fi
4715
4716 fi
4717 if test -z "$ac_cv_prog_CC"; then
4718 ac_ct_CC=$CC
4719 # Extract the first word of "cc", so it can be a program name with args.
4720 set dummy cc; ac_word=$2
4721 echo "$as_me:$LINENO: checking for $ac_word" >&5
4722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4723 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4724 echo $ECHO_N "(cached) $ECHO_C" >&6
4725 else
4726 if test -n "$ac_ct_CC"; then
4727 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4728 else
4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 for as_dir in $PATH
4731 do
4732 IFS=$as_save_IFS
4733 test -z "$as_dir" && as_dir=.
4734 for ac_exec_ext in '' $ac_executable_extensions; do
4735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4736 ac_cv_prog_ac_ct_CC="cc"
4737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4738 break 2
4739 fi
4740 done
4741 done
4742
4743 fi
4744 fi
4745 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4746 if test -n "$ac_ct_CC"; then
4747 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4748 echo "${ECHO_T}$ac_ct_CC" >&6
4749 else
4750 echo "$as_me:$LINENO: result: no" >&5
4751 echo "${ECHO_T}no" >&6
4752 fi
4753
4754 CC=$ac_ct_CC
4755 else
4756 CC="$ac_cv_prog_CC"
4757 fi
4758
4759 fi
4760 if test -z "$CC"; then
4761 # Extract the first word of "cc", so it can be a program name with args.
4762 set dummy cc; ac_word=$2
4763 echo "$as_me:$LINENO: checking for $ac_word" >&5
4764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4765 if test "${ac_cv_prog_CC+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 else
4768 if test -n "$CC"; then
4769 ac_cv_prog_CC="$CC" # Let the user override the test.
4770 else
4771 ac_prog_rejected=no
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4774 do
4775 IFS=$as_save_IFS
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4779 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4780 ac_prog_rejected=yes
4781 continue
4782 fi
4783 ac_cv_prog_CC="cc"
4784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4785 break 2
4786 fi
4787 done
4788 done
4789
4790 if test $ac_prog_rejected = yes; then
4791 # We found a bogon in the path, so make sure we never use it.
4792 set dummy $ac_cv_prog_CC
4793 shift
4794 if test $# != 0; then
4795 # We chose a different compiler from the bogus one.
4796 # However, it has the same basename, so the bogon will be chosen
4797 # first if we set CC to just the basename; use the full file name.
4798 shift
4799 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4800 fi
4801 fi
4802 fi
4803 fi
4804 CC=$ac_cv_prog_CC
4805 if test -n "$CC"; then
4806 echo "$as_me:$LINENO: result: $CC" >&5
4807 echo "${ECHO_T}$CC" >&6
4808 else
4809 echo "$as_me:$LINENO: result: no" >&5
4810 echo "${ECHO_T}no" >&6
4811 fi
4812
4813 fi
4814 if test -z "$CC"; then
4815 if test -n "$ac_tool_prefix"; then
4816 for ac_prog in cl
4817 do
4818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4819 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4820 echo "$as_me:$LINENO: checking for $ac_word" >&5
4821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4822 if test "${ac_cv_prog_CC+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4824 else
4825 if test -n "$CC"; then
4826 ac_cv_prog_CC="$CC" # Let the user override the test.
4827 else
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH
4830 do
4831 IFS=$as_save_IFS
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4835 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 break 2
4838 fi
4839 done
4840 done
4841
4842 fi
4843 fi
4844 CC=$ac_cv_prog_CC
4845 if test -n "$CC"; then
4846 echo "$as_me:$LINENO: result: $CC" >&5
4847 echo "${ECHO_T}$CC" >&6
4848 else
4849 echo "$as_me:$LINENO: result: no" >&5
4850 echo "${ECHO_T}no" >&6
4851 fi
4852
4853 test -n "$CC" && break
4854 done
4855 fi
4856 if test -z "$CC"; then
4857 ac_ct_CC=$CC
4858 for ac_prog in cl
4859 do
4860 # Extract the first word of "$ac_prog", so it can be a program name with args.
4861 set dummy $ac_prog; ac_word=$2
4862 echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4864 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867 if test -n "$ac_ct_CC"; then
4868 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4869 else
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4872 do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4877 ac_cv_prog_ac_ct_CC="$ac_prog"
4878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2
4880 fi
4881 done
4882 done
4883
4884 fi
4885 fi
4886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4887 if test -n "$ac_ct_CC"; then
4888 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4889 echo "${ECHO_T}$ac_ct_CC" >&6
4890 else
4891 echo "$as_me:$LINENO: result: no" >&5
4892 echo "${ECHO_T}no" >&6
4893 fi
4894
4895 test -n "$ac_ct_CC" && break
4896 done
4897
4898 CC=$ac_ct_CC
4899 fi
4900
4901 fi
4902
4903
4904 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4905 See \`config.log' for more details." >&5
4906 echo "$as_me: error: no acceptable C compiler found in \$PATH
4907 See \`config.log' for more details." >&2;}
4908 { (exit 1); exit 1; }; }
4909
4910 # Provide some information about the compiler.
4911 echo "$as_me:$LINENO:" \
4912 "checking for C compiler version" >&5
4913 ac_compiler=`set X $ac_compile; echo $2`
4914 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4915 (eval $ac_compiler --version </dev/null >&5) 2>&5
4916 ac_status=$?
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); }
4919 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4920 (eval $ac_compiler -v </dev/null >&5) 2>&5
4921 ac_status=$?
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }
4924 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4925 (eval $ac_compiler -V </dev/null >&5) 2>&5
4926 ac_status=$?
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); }
4929
4930 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4931 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4932 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 else
4935 cat >conftest.$ac_ext <<_ACEOF
4936 /* confdefs.h. */
4937 _ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h. */
4941
4942 int
4943 main ()
4944 {
4945 #ifndef __GNUC__
4946 choke me
4947 #endif
4948
4949 ;
4950 return 0;
4951 }
4952 _ACEOF
4953 rm -f conftest.$ac_objext
4954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4955 (eval $ac_compile) 2>conftest.er1
4956 ac_status=$?
4957 grep -v '^ *+' conftest.er1 >conftest.err
4958 rm -f conftest.er1
4959 cat conftest.err >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } &&
4962 { ac_try='test -z "$ac_c_werror_flag"
4963 || test ! -s conftest.err'
4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965 (eval $ac_try) 2>&5
4966 ac_status=$?
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; } &&
4969 { ac_try='test -s conftest.$ac_objext'
4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971 (eval $ac_try) 2>&5
4972 ac_status=$?
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; }; then
4975 ac_compiler_gnu=yes
4976 else
4977 echo "$as_me: failed program was:" >&5
4978 sed 's/^/| /' conftest.$ac_ext >&5
4979
4980 ac_compiler_gnu=no
4981 fi
4982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4983 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4984
4985 fi
4986 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4987 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4988 GCC=`test $ac_compiler_gnu = yes && echo yes`
4989 ac_test_CFLAGS=${CFLAGS+set}
4990 ac_save_CFLAGS=$CFLAGS
4991 CFLAGS="-g"
4992 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4993 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4994 if test "${ac_cv_prog_cc_g+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4996 else
4997 cat >conftest.$ac_ext <<_ACEOF
4998 /* confdefs.h. */
4999 _ACEOF
5000 cat confdefs.h >>conftest.$ac_ext
5001 cat >>conftest.$ac_ext <<_ACEOF
5002 /* end confdefs.h. */
5003
5004 int
5005 main ()
5006 {
5007
5008 ;
5009 return 0;
5010 }
5011 _ACEOF
5012 rm -f conftest.$ac_objext
5013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5014 (eval $ac_compile) 2>conftest.er1
5015 ac_status=$?
5016 grep -v '^ *+' conftest.er1 >conftest.err
5017 rm -f conftest.er1
5018 cat conftest.err >&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); } &&
5021 { ac_try='test -z "$ac_c_werror_flag"
5022 || test ! -s conftest.err'
5023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024 (eval $ac_try) 2>&5
5025 ac_status=$?
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; } &&
5028 { ac_try='test -s conftest.$ac_objext'
5029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030 (eval $ac_try) 2>&5
5031 ac_status=$?
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); }; }; then
5034 ac_cv_prog_cc_g=yes
5035 else
5036 echo "$as_me: failed program was:" >&5
5037 sed 's/^/| /' conftest.$ac_ext >&5
5038
5039 ac_cv_prog_cc_g=no
5040 fi
5041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5042 fi
5043 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5044 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5045 if test "$ac_test_CFLAGS" = set; then
5046 CFLAGS=$ac_save_CFLAGS
5047 elif test $ac_cv_prog_cc_g = yes; then
5048 if test "$GCC" = yes; then
5049 CFLAGS="-g -O2"
5050 else
5051 CFLAGS="-g"
5052 fi
5053 else
5054 if test "$GCC" = yes; then
5055 CFLAGS="-O2"
5056 else
5057 CFLAGS=
5058 fi
5059 fi
5060 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5061 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5062 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5064 else
5065 ac_cv_prog_cc_stdc=no
5066 ac_save_CC=$CC
5067 cat >conftest.$ac_ext <<_ACEOF
5068 /* confdefs.h. */
5069 _ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h. */
5073 #include <stdarg.h>
5074 #include <stdio.h>
5075 #include <sys/types.h>
5076 #include <sys/stat.h>
5077 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5078 struct buf { int x; };
5079 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5080 static char *e (p, i)
5081 char **p;
5082 int i;
5083 {
5084 return p[i];
5085 }
5086 static char *f (char * (*g) (char **, int), char **p, ...)
5087 {
5088 char *s;
5089 va_list v;
5090 va_start (v,p);
5091 s = g (p, va_arg (v,int));
5092 va_end (v);
5093 return s;
5094 }
5095
5096 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5097 function prototypes and stuff, but not '\xHH' hex character constants.
5098 These don't provoke an error unfortunately, instead are silently treated
5099 as 'x'. The following induces an error, until -std1 is added to get
5100 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5101 array size at least. It's necessary to write '\x00'==0 to get something
5102 that's true only with -std1. */
5103 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5104
5105 int test (int i, double x);
5106 struct s1 {int (*f) (int a);};
5107 struct s2 {int (*f) (double a);};
5108 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5109 int argc;
5110 char **argv;
5111 int
5112 main ()
5113 {
5114 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5115 ;
5116 return 0;
5117 }
5118 _ACEOF
5119 # Don't try gcc -ansi; that turns off useful extensions and
5120 # breaks some systems' header files.
5121 # AIX -qlanglvl=ansi
5122 # Ultrix and OSF/1 -std1
5123 # HP-UX 10.20 and later -Ae
5124 # HP-UX older versions -Aa -D_HPUX_SOURCE
5125 # SVR4 -Xc -D__EXTENSIONS__
5126 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5127 do
5128 CC="$ac_save_CC $ac_arg"
5129 rm -f conftest.$ac_objext
5130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5131 (eval $ac_compile) 2>conftest.er1
5132 ac_status=$?
5133 grep -v '^ *+' conftest.er1 >conftest.err
5134 rm -f conftest.er1
5135 cat conftest.err >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } &&
5138 { ac_try='test -z "$ac_c_werror_flag"
5139 || test ! -s conftest.err'
5140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141 (eval $ac_try) 2>&5
5142 ac_status=$?
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; } &&
5145 { ac_try='test -s conftest.$ac_objext'
5146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147 (eval $ac_try) 2>&5
5148 ac_status=$?
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); }; }; then
5151 ac_cv_prog_cc_stdc=$ac_arg
5152 break
5153 else
5154 echo "$as_me: failed program was:" >&5
5155 sed 's/^/| /' conftest.$ac_ext >&5
5156
5157 fi
5158 rm -f conftest.err conftest.$ac_objext
5159 done
5160 rm -f conftest.$ac_ext conftest.$ac_objext
5161 CC=$ac_save_CC
5162
5163 fi
5164
5165 case "x$ac_cv_prog_cc_stdc" in
5166 x|xno)
5167 echo "$as_me:$LINENO: result: none needed" >&5
5168 echo "${ECHO_T}none needed" >&6 ;;
5169 *)
5170 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5171 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5172 CC="$CC $ac_cv_prog_cc_stdc" ;;
5173 esac
5174
5175 # Some people use a C++ compiler to compile C. Since we use `exit',
5176 # in C++ we need to declare it. In case someone uses the same compiler
5177 # for both compiling C and C++ we need to have the C++ compiler decide
5178 # the declaration of exit, since it's the most demanding environment.
5179 cat >conftest.$ac_ext <<_ACEOF
5180 #ifndef __cplusplus
5181 choke me
5182 #endif
5183 _ACEOF
5184 rm -f conftest.$ac_objext
5185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5186 (eval $ac_compile) 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } &&
5193 { ac_try='test -z "$ac_c_werror_flag"
5194 || test ! -s conftest.err'
5195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196 (eval $ac_try) 2>&5
5197 ac_status=$?
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; } &&
5200 { ac_try='test -s conftest.$ac_objext'
5201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 (eval $ac_try) 2>&5
5203 ac_status=$?
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }; }; then
5206 for ac_declaration in \
5207 '' \
5208 'extern "C" void std::exit (int) throw (); using std::exit;' \
5209 'extern "C" void std::exit (int); using std::exit;' \
5210 'extern "C" void exit (int) throw ();' \
5211 'extern "C" void exit (int);' \
5212 'void exit (int);'
5213 do
5214 cat >conftest.$ac_ext <<_ACEOF
5215 /* confdefs.h. */
5216 _ACEOF
5217 cat confdefs.h >>conftest.$ac_ext
5218 cat >>conftest.$ac_ext <<_ACEOF
5219 /* end confdefs.h. */
5220 $ac_declaration
5221 #include <stdlib.h>
5222 int
5223 main ()
5224 {
5225 exit (42);
5226 ;
5227 return 0;
5228 }
5229 _ACEOF
5230 rm -f conftest.$ac_objext
5231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5232 (eval $ac_compile) 2>conftest.er1
5233 ac_status=$?
5234 grep -v '^ *+' conftest.er1 >conftest.err
5235 rm -f conftest.er1
5236 cat conftest.err >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); } &&
5239 { ac_try='test -z "$ac_c_werror_flag"
5240 || test ! -s conftest.err'
5241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5242 (eval $ac_try) 2>&5
5243 ac_status=$?
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); }; } &&
5246 { ac_try='test -s conftest.$ac_objext'
5247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5248 (eval $ac_try) 2>&5
5249 ac_status=$?
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); }; }; then
5252 :
5253 else
5254 echo "$as_me: failed program was:" >&5
5255 sed 's/^/| /' conftest.$ac_ext >&5
5256
5257 continue
5258 fi
5259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5260 cat >conftest.$ac_ext <<_ACEOF
5261 /* confdefs.h. */
5262 _ACEOF
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h. */
5266 $ac_declaration
5267 int
5268 main ()
5269 {
5270 exit (42);
5271 ;
5272 return 0;
5273 }
5274 _ACEOF
5275 rm -f conftest.$ac_objext
5276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5277 (eval $ac_compile) 2>conftest.er1
5278 ac_status=$?
5279 grep -v '^ *+' conftest.er1 >conftest.err
5280 rm -f conftest.er1
5281 cat conftest.err >&5
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); } &&
5284 { ac_try='test -z "$ac_c_werror_flag"
5285 || test ! -s conftest.err'
5286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5287 (eval $ac_try) 2>&5
5288 ac_status=$?
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }; } &&
5291 { ac_try='test -s conftest.$ac_objext'
5292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293 (eval $ac_try) 2>&5
5294 ac_status=$?
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); }; }; then
5297 break
5298 else
5299 echo "$as_me: failed program was:" >&5
5300 sed 's/^/| /' conftest.$ac_ext >&5
5301
5302 fi
5303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5304 done
5305 rm -f conftest*
5306 if test -n "$ac_declaration"; then
5307 echo '#ifdef __cplusplus' >>confdefs.h
5308 echo $ac_declaration >>confdefs.h
5309 echo '#endif' >>confdefs.h
5310 fi
5311
5312 else
5313 echo "$as_me: failed program was:" >&5
5314 sed 's/^/| /' conftest.$ac_ext >&5
5315
5316 fi
5317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5318 ac_ext=c
5319 ac_cpp='$CPP $CPPFLAGS'
5320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5323
5324
5325 cat >>confdefs.h <<\_ACEOF
5326 #define _GNU_SOURCE 1
5327 _ACEOF
5328
5329
5330
5331 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi"
5332 # If we haven't got the data from the intl directory,
5333 # assume NLS is disabled.
5334 USE_NLS=no
5335 LIBINTL=
5336 LIBINTL_DEP=
5337 INCINTL=
5338 XGETTEXT=
5339 GMSGFMT=
5340 POSUB=
5341
5342 if test -f ../intl/config.intl; then
5343 . ../intl/config.intl
5344 fi
5345 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5346 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5347 if test x"$USE_NLS" != xyes; then
5348 echo "$as_me:$LINENO: result: no" >&5
5349 echo "${ECHO_T}no" >&6
5350 else
5351 echo "$as_me:$LINENO: result: yes" >&5
5352 echo "${ECHO_T}yes" >&6
5353
5354 cat >>confdefs.h <<\_ACEOF
5355 #define ENABLE_NLS 1
5356 _ACEOF
5357
5358
5359 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5360 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5361 # Look for .po and .gmo files in the source directory.
5362 CATALOGS=
5363 XLINGUAS=
5364 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5365 # If there aren't any .gmo files the shell will give us the
5366 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5367 # weeded out.
5368 case "$cat" in *\**)
5369 continue;;
5370 esac
5371 # The quadruple backslash is collapsed to a double backslash
5372 # by the backticks, then collapsed again by the double quotes,
5373 # leaving us with one backslash in the sed expression (right
5374 # before the dot that mustn't act as a wildcard).
5375 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5376 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5377 # The user is allowed to set LINGUAS to a list of languages to
5378 # install catalogs for. If it's empty that means "all of them."
5379 if test "x$LINGUAS" = x; then
5380 CATALOGS="$CATALOGS $cat"
5381 XLINGUAS="$XLINGUAS $lang"
5382 else
5383 case "$LINGUAS" in *$lang*)
5384 CATALOGS="$CATALOGS $cat"
5385 XLINGUAS="$XLINGUAS $lang"
5386 ;;
5387 esac
5388 fi
5389 done
5390 LINGUAS="$XLINGUAS"
5391 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5392 echo "${ECHO_T}$LINGUAS" >&6
5393
5394
5395 DATADIRNAME=share
5396
5397 INSTOBJEXT=.mo
5398
5399 GENCAT=gencat
5400
5401 CATOBJEXT=.gmo
5402
5403 fi
5404
5405 MKINSTALLDIRS=
5406 if test -n "$ac_aux_dir"; then
5407 case "$ac_aux_dir" in
5408 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5409 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5410 esac
5411 fi
5412 if test -z "$MKINSTALLDIRS"; then
5413 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5414 fi
5415
5416
5417
5418 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5419 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5420 # Check whether --enable-nls or --disable-nls was given.
5421 if test "${enable_nls+set}" = set; then
5422 enableval="$enable_nls"
5423 USE_NLS=$enableval
5424 else
5425 USE_NLS=yes
5426 fi;
5427 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5428 echo "${ECHO_T}$USE_NLS" >&6
5429
5430
5431
5432
5433
5434
5435 # Prepare PATH_SEPARATOR.
5436 # The user is always right.
5437 if test "${PATH_SEPARATOR+set}" != set; then
5438 echo "#! /bin/sh" >conf$$.sh
5439 echo "exit 0" >>conf$$.sh
5440 chmod +x conf$$.sh
5441 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5442 PATH_SEPARATOR=';'
5443 else
5444 PATH_SEPARATOR=:
5445 fi
5446 rm -f conf$$.sh
5447 fi
5448
5449 # Find out how to test for executable files. Don't use a zero-byte file,
5450 # as systems may use methods other than mode bits to determine executability.
5451 cat >conf$$.file <<_ASEOF
5452 #! /bin/sh
5453 exit 0
5454 _ASEOF
5455 chmod +x conf$$.file
5456 if test -x conf$$.file >/dev/null 2>&1; then
5457 ac_executable_p="test -x"
5458 else
5459 ac_executable_p="test -f"
5460 fi
5461 rm -f conf$$.file
5462
5463 # Extract the first word of "msgfmt", so it can be a program name with args.
5464 set dummy msgfmt; ac_word=$2
5465 echo "$as_me:$LINENO: checking for $ac_word" >&5
5466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5467 if test "${ac_cv_path_MSGFMT+set}" = set; then
5468 echo $ECHO_N "(cached) $ECHO_C" >&6
5469 else
5470 case "$MSGFMT" in
5471 [\\/]* | ?:[\\/]*)
5472 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5473 ;;
5474 *)
5475 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5476 for ac_dir in $PATH; do
5477 IFS="$ac_save_IFS"
5478 test -z "$ac_dir" && ac_dir=.
5479 for ac_exec_ext in '' $ac_executable_extensions; do
5480 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5481 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5482 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5483 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5484 break 2
5485 fi
5486 fi
5487 done
5488 done
5489 IFS="$ac_save_IFS"
5490 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5491 ;;
5492 esac
5493 fi
5494 MSGFMT="$ac_cv_path_MSGFMT"
5495 if test "$MSGFMT" != ":"; then
5496 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5497 echo "${ECHO_T}$MSGFMT" >&6
5498 else
5499 echo "$as_me:$LINENO: result: no" >&5
5500 echo "${ECHO_T}no" >&6
5501 fi
5502
5503 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5504 set dummy gmsgfmt; ac_word=$2
5505 echo "$as_me:$LINENO: checking for $ac_word" >&5
5506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5507 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 else
5510 case $GMSGFMT in
5511 [\\/]* | ?:[\\/]*)
5512 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5513 ;;
5514 *)
5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 for as_dir in $PATH
5517 do
5518 IFS=$as_save_IFS
5519 test -z "$as_dir" && as_dir=.
5520 for ac_exec_ext in '' $ac_executable_extensions; do
5521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5522 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 break 2
5525 fi
5526 done
5527 done
5528
5529 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5530 ;;
5531 esac
5532 fi
5533 GMSGFMT=$ac_cv_path_GMSGFMT
5534
5535 if test -n "$GMSGFMT"; then
5536 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5537 echo "${ECHO_T}$GMSGFMT" >&6
5538 else
5539 echo "$as_me:$LINENO: result: no" >&5
5540 echo "${ECHO_T}no" >&6
5541 fi
5542
5543
5544
5545 # Prepare PATH_SEPARATOR.
5546 # The user is always right.
5547 if test "${PATH_SEPARATOR+set}" != set; then
5548 echo "#! /bin/sh" >conf$$.sh
5549 echo "exit 0" >>conf$$.sh
5550 chmod +x conf$$.sh
5551 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5552 PATH_SEPARATOR=';'
5553 else
5554 PATH_SEPARATOR=:
5555 fi
5556 rm -f conf$$.sh
5557 fi
5558
5559 # Find out how to test for executable files. Don't use a zero-byte file,
5560 # as systems may use methods other than mode bits to determine executability.
5561 cat >conf$$.file <<_ASEOF
5562 #! /bin/sh
5563 exit 0
5564 _ASEOF
5565 chmod +x conf$$.file
5566 if test -x conf$$.file >/dev/null 2>&1; then
5567 ac_executable_p="test -x"
5568 else
5569 ac_executable_p="test -f"
5570 fi
5571 rm -f conf$$.file
5572
5573 # Extract the first word of "xgettext", so it can be a program name with args.
5574 set dummy xgettext; ac_word=$2
5575 echo "$as_me:$LINENO: checking for $ac_word" >&5
5576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5577 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5579 else
5580 case "$XGETTEXT" in
5581 [\\/]* | ?:[\\/]*)
5582 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5583 ;;
5584 *)
5585 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5586 for ac_dir in $PATH; do
5587 IFS="$ac_save_IFS"
5588 test -z "$ac_dir" && ac_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5591 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5592 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5593 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5594 break 2
5595 fi
5596 fi
5597 done
5598 done
5599 IFS="$ac_save_IFS"
5600 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5601 ;;
5602 esac
5603 fi
5604 XGETTEXT="$ac_cv_path_XGETTEXT"
5605 if test "$XGETTEXT" != ":"; then
5606 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5607 echo "${ECHO_T}$XGETTEXT" >&6
5608 else
5609 echo "$as_me:$LINENO: result: no" >&5
5610 echo "${ECHO_T}no" >&6
5611 fi
5612
5613 rm -f messages.po
5614
5615
5616 # Prepare PATH_SEPARATOR.
5617 # The user is always right.
5618 if test "${PATH_SEPARATOR+set}" != set; then
5619 echo "#! /bin/sh" >conf$$.sh
5620 echo "exit 0" >>conf$$.sh
5621 chmod +x conf$$.sh
5622 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5623 PATH_SEPARATOR=';'
5624 else
5625 PATH_SEPARATOR=:
5626 fi
5627 rm -f conf$$.sh
5628 fi
5629
5630 # Find out how to test for executable files. Don't use a zero-byte file,
5631 # as systems may use methods other than mode bits to determine executability.
5632 cat >conf$$.file <<_ASEOF
5633 #! /bin/sh
5634 exit 0
5635 _ASEOF
5636 chmod +x conf$$.file
5637 if test -x conf$$.file >/dev/null 2>&1; then
5638 ac_executable_p="test -x"
5639 else
5640 ac_executable_p="test -f"
5641 fi
5642 rm -f conf$$.file
5643
5644 # Extract the first word of "msgmerge", so it can be a program name with args.
5645 set dummy msgmerge; ac_word=$2
5646 echo "$as_me:$LINENO: checking for $ac_word" >&5
5647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5648 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5649 echo $ECHO_N "(cached) $ECHO_C" >&6
5650 else
5651 case "$MSGMERGE" in
5652 [\\/]* | ?:[\\/]*)
5653 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5654 ;;
5655 *)
5656 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5657 for ac_dir in $PATH; do
5658 IFS="$ac_save_IFS"
5659 test -z "$ac_dir" && ac_dir=.
5660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5662 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5663 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5664 break 2
5665 fi
5666 fi
5667 done
5668 done
5669 IFS="$ac_save_IFS"
5670 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5671 ;;
5672 esac
5673 fi
5674 MSGMERGE="$ac_cv_path_MSGMERGE"
5675 if test "$MSGMERGE" != ":"; then
5676 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5677 echo "${ECHO_T}$MSGMERGE" >&6
5678 else
5679 echo "$as_me:$LINENO: result: no" >&5
5680 echo "${ECHO_T}no" >&6
5681 fi
5682
5683
5684 if test "$GMSGFMT" != ":"; then
5685 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5686 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5687 : ;
5688 else
5689 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5690 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5691 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5692 GMSGFMT=":"
5693 fi
5694 fi
5695
5696 if test "$XGETTEXT" != ":"; then
5697 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5698 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5699 : ;
5700 else
5701 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5702 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5703 XGETTEXT=":"
5704 fi
5705 rm -f messages.po
5706 fi
5707
5708 ac_config_commands="$ac_config_commands default-1"
5709
5710
5711
5712 # Permit host specific settings.
5713 . ${srcdir}/configure.host
5714
5715
5716 # Find a good install program. We prefer a C program (faster),
5717 # so one script is as good as another. But avoid the broken or
5718 # incompatible versions:
5719 # SysV /etc/install, /usr/sbin/install
5720 # SunOS /usr/etc/install
5721 # IRIX /sbin/install
5722 # AIX /bin/install
5723 # AmigaOS /C/install, which installs bootblocks on floppy discs
5724 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5725 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5726 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5727 # OS/2's system install, which has a completely different semantic
5728 # ./install, which can be erroneously created by make from ./install.sh.
5729 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5730 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5731 if test -z "$INSTALL"; then
5732 if test "${ac_cv_path_install+set}" = set; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 else
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736 for as_dir in $PATH
5737 do
5738 IFS=$as_save_IFS
5739 test -z "$as_dir" && as_dir=.
5740 # Account for people who put trailing slashes in PATH elements.
5741 case $as_dir/ in
5742 ./ | .// | /cC/* | \
5743 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5744 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5745 /usr/ucb/* ) ;;
5746 *)
5747 # OSF1 and SCO ODT 3.0 have their own names for install.
5748 # Don't use installbsd from OSF since it installs stuff as root
5749 # by default.
5750 for ac_prog in ginstall scoinst install; do
5751 for ac_exec_ext in '' $ac_executable_extensions; do
5752 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5753 if test $ac_prog = install &&
5754 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5755 # AIX install. It has an incompatible calling convention.
5756 :
5757 elif test $ac_prog = install &&
5758 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5759 # program-specific install script used by HP pwplus--don't use.
5760 :
5761 else
5762 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5763 break 3
5764 fi
5765 fi
5766 done
5767 done
5768 ;;
5769 esac
5770 done
5771
5772
5773 fi
5774 if test "${ac_cv_path_install+set}" = set; then
5775 INSTALL=$ac_cv_path_install
5776 else
5777 # As a last resort, use the slow shell script. We don't cache a
5778 # path for INSTALL within a source directory, because that will
5779 # break other packages using the cache if that directory is
5780 # removed, or if the path is relative.
5781 INSTALL=$ac_install_sh
5782 fi
5783 fi
5784 echo "$as_me:$LINENO: result: $INSTALL" >&5
5785 echo "${ECHO_T}$INSTALL" >&6
5786
5787 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5788 # It thinks the first close brace ends the variable substitution.
5789 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5790
5791 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5792
5793 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5794
5795
5796 BFD_HOST_64BIT_LONG=0
5797 BFD_HOST_LONG_LONG=0
5798 BFD_HOST_64_BIT_DEFINED=0
5799 BFD_HOST_64_BIT=
5800 BFD_HOST_U_64_BIT=
5801
5802 echo "$as_me:$LINENO: checking for long long" >&5
5803 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5804 if test "${bfd_cv_has_long_long+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 else
5807 cat >conftest.$ac_ext <<_ACEOF
5808 /* confdefs.h. */
5809 _ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h. */
5813
5814 int
5815 main ()
5816 {
5817 unsigned long long ll = 18446744073709551615ULL;
5818 ;
5819 return 0;
5820 }
5821 _ACEOF
5822 rm -f conftest.$ac_objext
5823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5824 (eval $ac_compile) 2>conftest.er1
5825 ac_status=$?
5826 grep -v '^ *+' conftest.er1 >conftest.err
5827 rm -f conftest.er1
5828 cat conftest.err >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); } &&
5831 { ac_try='test -z "$ac_c_werror_flag"
5832 || test ! -s conftest.err'
5833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834 (eval $ac_try) 2>&5
5835 ac_status=$?
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; } &&
5838 { ac_try='test -s conftest.$ac_objext'
5839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840 (eval $ac_try) 2>&5
5841 ac_status=$?
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; }; then
5844 bfd_cv_has_long_long=yes
5845 else
5846 echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.$ac_ext >&5
5848
5849 bfd_cv_has_long_long=no
5850 fi
5851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5852 fi
5853
5854 echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
5855 echo "${ECHO_T}$bfd_cv_has_long_long" >&6
5856 if test $bfd_cv_has_long_long = yes; then
5857 BFD_HOST_LONG_LONG=1
5858 ac_ext=c
5859 ac_cpp='$CPP $CPPFLAGS'
5860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5863 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5864 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5865 # On Suns, sometimes $CPP names a directory.
5866 if test -n "$CPP" && test -d "$CPP"; then
5867 CPP=
5868 fi
5869 if test -z "$CPP"; then
5870 if test "${ac_cv_prog_CPP+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5872 else
5873 # Double quotes because CPP needs to be expanded
5874 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5875 do
5876 ac_preproc_ok=false
5877 for ac_c_preproc_warn_flag in '' yes
5878 do
5879 # Use a header file that comes with gcc, so configuring glibc
5880 # with a fresh cross-compiler works.
5881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5882 # <limits.h> exists even on freestanding compilers.
5883 # On the NeXT, cc -E runs the code through the compiler's parser,
5884 # not just through cpp. "Syntax error" is here to catch this case.
5885 cat >conftest.$ac_ext <<_ACEOF
5886 /* confdefs.h. */
5887 _ACEOF
5888 cat confdefs.h >>conftest.$ac_ext
5889 cat >>conftest.$ac_ext <<_ACEOF
5890 /* end confdefs.h. */
5891 #ifdef __STDC__
5892 # include <limits.h>
5893 #else
5894 # include <assert.h>
5895 #endif
5896 Syntax error
5897 _ACEOF
5898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5900 ac_status=$?
5901 grep -v '^ *+' conftest.er1 >conftest.err
5902 rm -f conftest.er1
5903 cat conftest.err >&5
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); } >/dev/null; then
5906 if test -s conftest.err; then
5907 ac_cpp_err=$ac_c_preproc_warn_flag
5908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5909 else
5910 ac_cpp_err=
5911 fi
5912 else
5913 ac_cpp_err=yes
5914 fi
5915 if test -z "$ac_cpp_err"; then
5916 :
5917 else
5918 echo "$as_me: failed program was:" >&5
5919 sed 's/^/| /' conftest.$ac_ext >&5
5920
5921 # Broken: fails on valid input.
5922 continue
5923 fi
5924 rm -f conftest.err conftest.$ac_ext
5925
5926 # OK, works on sane cases. Now check whether non-existent headers
5927 # can be detected and how.
5928 cat >conftest.$ac_ext <<_ACEOF
5929 /* confdefs.h. */
5930 _ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5934 #include <ac_nonexistent.h>
5935 _ACEOF
5936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5938 ac_status=$?
5939 grep -v '^ *+' conftest.er1 >conftest.err
5940 rm -f conftest.er1
5941 cat conftest.err >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } >/dev/null; then
5944 if test -s conftest.err; then
5945 ac_cpp_err=$ac_c_preproc_warn_flag
5946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5947 else
5948 ac_cpp_err=
5949 fi
5950 else
5951 ac_cpp_err=yes
5952 fi
5953 if test -z "$ac_cpp_err"; then
5954 # Broken: success on invalid input.
5955 continue
5956 else
5957 echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5959
5960 # Passes both tests.
5961 ac_preproc_ok=:
5962 break
5963 fi
5964 rm -f conftest.err conftest.$ac_ext
5965
5966 done
5967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5968 rm -f conftest.err conftest.$ac_ext
5969 if $ac_preproc_ok; then
5970 break
5971 fi
5972
5973 done
5974 ac_cv_prog_CPP=$CPP
5975
5976 fi
5977 CPP=$ac_cv_prog_CPP
5978 else
5979 ac_cv_prog_CPP=$CPP
5980 fi
5981 echo "$as_me:$LINENO: result: $CPP" >&5
5982 echo "${ECHO_T}$CPP" >&6
5983 ac_preproc_ok=false
5984 for ac_c_preproc_warn_flag in '' yes
5985 do
5986 # Use a header file that comes with gcc, so configuring glibc
5987 # with a fresh cross-compiler works.
5988 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5989 # <limits.h> exists even on freestanding compilers.
5990 # On the NeXT, cc -E runs the code through the compiler's parser,
5991 # not just through cpp. "Syntax error" is here to catch this case.
5992 cat >conftest.$ac_ext <<_ACEOF
5993 /* confdefs.h. */
5994 _ACEOF
5995 cat confdefs.h >>conftest.$ac_ext
5996 cat >>conftest.$ac_ext <<_ACEOF
5997 /* end confdefs.h. */
5998 #ifdef __STDC__
5999 # include <limits.h>
6000 #else
6001 # include <assert.h>
6002 #endif
6003 Syntax error
6004 _ACEOF
6005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6007 ac_status=$?
6008 grep -v '^ *+' conftest.er1 >conftest.err
6009 rm -f conftest.er1
6010 cat conftest.err >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); } >/dev/null; then
6013 if test -s conftest.err; then
6014 ac_cpp_err=$ac_c_preproc_warn_flag
6015 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6016 else
6017 ac_cpp_err=
6018 fi
6019 else
6020 ac_cpp_err=yes
6021 fi
6022 if test -z "$ac_cpp_err"; then
6023 :
6024 else
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6027
6028 # Broken: fails on valid input.
6029 continue
6030 fi
6031 rm -f conftest.err conftest.$ac_ext
6032
6033 # OK, works on sane cases. Now check whether non-existent headers
6034 # can be detected and how.
6035 cat >conftest.$ac_ext <<_ACEOF
6036 /* confdefs.h. */
6037 _ACEOF
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h. */
6041 #include <ac_nonexistent.h>
6042 _ACEOF
6043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6045 ac_status=$?
6046 grep -v '^ *+' conftest.er1 >conftest.err
6047 rm -f conftest.er1
6048 cat conftest.err >&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } >/dev/null; then
6051 if test -s conftest.err; then
6052 ac_cpp_err=$ac_c_preproc_warn_flag
6053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6054 else
6055 ac_cpp_err=
6056 fi
6057 else
6058 ac_cpp_err=yes
6059 fi
6060 if test -z "$ac_cpp_err"; then
6061 # Broken: success on invalid input.
6062 continue
6063 else
6064 echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6066
6067 # Passes both tests.
6068 ac_preproc_ok=:
6069 break
6070 fi
6071 rm -f conftest.err conftest.$ac_ext
6072
6073 done
6074 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6075 rm -f conftest.err conftest.$ac_ext
6076 if $ac_preproc_ok; then
6077 :
6078 else
6079 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6080 See \`config.log' for more details." >&5
6081 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6082 See \`config.log' for more details." >&2;}
6083 { (exit 1); exit 1; }; }
6084 fi
6085
6086 ac_ext=c
6087 ac_cpp='$CPP $CPPFLAGS'
6088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6091
6092
6093 echo "$as_me:$LINENO: checking for egrep" >&5
6094 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6095 if test "${ac_cv_prog_egrep+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 else
6098 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6099 then ac_cv_prog_egrep='grep -E'
6100 else ac_cv_prog_egrep='egrep'
6101 fi
6102 fi
6103 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6104 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6105 EGREP=$ac_cv_prog_egrep
6106
6107
6108 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6109 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6110 if test "${ac_cv_header_stdc+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6112 else
6113 cat >conftest.$ac_ext <<_ACEOF
6114 /* confdefs.h. */
6115 _ACEOF
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h. */
6119 #include <stdlib.h>
6120 #include <stdarg.h>
6121 #include <string.h>
6122 #include <float.h>
6123
6124 int
6125 main ()
6126 {
6127
6128 ;
6129 return 0;
6130 }
6131 _ACEOF
6132 rm -f conftest.$ac_objext
6133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6134 (eval $ac_compile) 2>conftest.er1
6135 ac_status=$?
6136 grep -v '^ *+' conftest.er1 >conftest.err
6137 rm -f conftest.er1
6138 cat conftest.err >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } &&
6141 { ac_try='test -z "$ac_c_werror_flag"
6142 || test ! -s conftest.err'
6143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144 (eval $ac_try) 2>&5
6145 ac_status=$?
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }; } &&
6148 { ac_try='test -s conftest.$ac_objext'
6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 (eval $ac_try) 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; }; then
6154 ac_cv_header_stdc=yes
6155 else
6156 echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6158
6159 ac_cv_header_stdc=no
6160 fi
6161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6162
6163 if test $ac_cv_header_stdc = yes; then
6164 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6165 cat >conftest.$ac_ext <<_ACEOF
6166 /* confdefs.h. */
6167 _ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6171 #include <string.h>
6172
6173 _ACEOF
6174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6175 $EGREP "memchr" >/dev/null 2>&1; then
6176 :
6177 else
6178 ac_cv_header_stdc=no
6179 fi
6180 rm -f conftest*
6181
6182 fi
6183
6184 if test $ac_cv_header_stdc = yes; then
6185 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6186 cat >conftest.$ac_ext <<_ACEOF
6187 /* confdefs.h. */
6188 _ACEOF
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h. */
6192 #include <stdlib.h>
6193
6194 _ACEOF
6195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6196 $EGREP "free" >/dev/null 2>&1; then
6197 :
6198 else
6199 ac_cv_header_stdc=no
6200 fi
6201 rm -f conftest*
6202
6203 fi
6204
6205 if test $ac_cv_header_stdc = yes; then
6206 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6207 if test "$cross_compiling" = yes; then
6208 :
6209 else
6210 cat >conftest.$ac_ext <<_ACEOF
6211 /* confdefs.h. */
6212 _ACEOF
6213 cat confdefs.h >>conftest.$ac_ext
6214 cat >>conftest.$ac_ext <<_ACEOF
6215 /* end confdefs.h. */
6216 #include <ctype.h>
6217 #if ((' ' & 0x0FF) == 0x020)
6218 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6219 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6220 #else
6221 # define ISLOWER(c) \
6222 (('a' <= (c) && (c) <= 'i') \
6223 || ('j' <= (c) && (c) <= 'r') \
6224 || ('s' <= (c) && (c) <= 'z'))
6225 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6226 #endif
6227
6228 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6229 int
6230 main ()
6231 {
6232 int i;
6233 for (i = 0; i < 256; i++)
6234 if (XOR (islower (i), ISLOWER (i))
6235 || toupper (i) != TOUPPER (i))
6236 exit(2);
6237 exit (0);
6238 }
6239 _ACEOF
6240 rm -f conftest$ac_exeext
6241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6242 (eval $ac_link) 2>&5
6243 ac_status=$?
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 (eval $ac_try) 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6251 :
6252 else
6253 echo "$as_me: program exited with status $ac_status" >&5
6254 echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6256
6257 ( exit $ac_status )
6258 ac_cv_header_stdc=no
6259 fi
6260 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6261 fi
6262 fi
6263 fi
6264 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6265 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6266 if test $ac_cv_header_stdc = yes; then
6267
6268 cat >>confdefs.h <<\_ACEOF
6269 #define STDC_HEADERS 1
6270 _ACEOF
6271
6272 fi
6273
6274 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6285 inttypes.h stdint.h unistd.h
6286 do
6287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6288 echo "$as_me:$LINENO: checking for $ac_header" >&5
6289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 else
6293 cat >conftest.$ac_ext <<_ACEOF
6294 /* confdefs.h. */
6295 _ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6299 $ac_includes_default
6300
6301 #include <$ac_header>
6302 _ACEOF
6303 rm -f conftest.$ac_objext
6304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6305 (eval $ac_compile) 2>conftest.er1
6306 ac_status=$?
6307 grep -v '^ *+' conftest.er1 >conftest.err
6308 rm -f conftest.er1
6309 cat conftest.err >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } &&
6312 { ac_try='test -z "$ac_c_werror_flag"
6313 || test ! -s conftest.err'
6314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315 (eval $ac_try) 2>&5
6316 ac_status=$?
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; } &&
6319 { ac_try='test -s conftest.$ac_objext'
6320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321 (eval $ac_try) 2>&5
6322 ac_status=$?
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); }; }; then
6325 eval "$as_ac_Header=yes"
6326 else
6327 echo "$as_me: failed program was:" >&5
6328 sed 's/^/| /' conftest.$ac_ext >&5
6329
6330 eval "$as_ac_Header=no"
6331 fi
6332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6333 fi
6334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6337 cat >>confdefs.h <<_ACEOF
6338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6339 _ACEOF
6340
6341 fi
6342
6343 done
6344
6345
6346 echo "$as_me:$LINENO: checking for long long" >&5
6347 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6348 if test "${ac_cv_type_long_long+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6350 else
6351 cat >conftest.$ac_ext <<_ACEOF
6352 /* confdefs.h. */
6353 _ACEOF
6354 cat confdefs.h >>conftest.$ac_ext
6355 cat >>conftest.$ac_ext <<_ACEOF
6356 /* end confdefs.h. */
6357 $ac_includes_default
6358 int
6359 main ()
6360 {
6361 if ((long long *) 0)
6362 return 0;
6363 if (sizeof (long long))
6364 return 0;
6365 ;
6366 return 0;
6367 }
6368 _ACEOF
6369 rm -f conftest.$ac_objext
6370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6371 (eval $ac_compile) 2>conftest.er1
6372 ac_status=$?
6373 grep -v '^ *+' conftest.er1 >conftest.err
6374 rm -f conftest.er1
6375 cat conftest.err >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); } &&
6378 { ac_try='test -z "$ac_c_werror_flag"
6379 || test ! -s conftest.err'
6380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6381 (eval $ac_try) 2>&5
6382 ac_status=$?
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); }; } &&
6385 { ac_try='test -s conftest.$ac_objext'
6386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387 (eval $ac_try) 2>&5
6388 ac_status=$?
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); }; }; then
6391 ac_cv_type_long_long=yes
6392 else
6393 echo "$as_me: failed program was:" >&5
6394 sed 's/^/| /' conftest.$ac_ext >&5
6395
6396 ac_cv_type_long_long=no
6397 fi
6398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6399 fi
6400 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6401 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6402
6403 echo "$as_me:$LINENO: checking size of long long" >&5
6404 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6405 if test "${ac_cv_sizeof_long_long+set}" = set; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 else
6408 if test "$ac_cv_type_long_long" = yes; then
6409 # The cast to unsigned long works around a bug in the HP C Compiler
6410 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6411 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6412 # This bug is HP SR number 8606223364.
6413 if test "$cross_compiling" = yes; then
6414 # Depending upon the size, compute the lo and hi bounds.
6415 cat >conftest.$ac_ext <<_ACEOF
6416 /* confdefs.h. */
6417 _ACEOF
6418 cat confdefs.h >>conftest.$ac_ext
6419 cat >>conftest.$ac_ext <<_ACEOF
6420 /* end confdefs.h. */
6421 $ac_includes_default
6422 int
6423 main ()
6424 {
6425 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6426 test_array [0] = 0
6427
6428 ;
6429 return 0;
6430 }
6431 _ACEOF
6432 rm -f conftest.$ac_objext
6433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6434 (eval $ac_compile) 2>conftest.er1
6435 ac_status=$?
6436 grep -v '^ *+' conftest.er1 >conftest.err
6437 rm -f conftest.er1
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } &&
6441 { ac_try='test -z "$ac_c_werror_flag"
6442 || test ! -s conftest.err'
6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 (eval $ac_try) 2>&5
6445 ac_status=$?
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; } &&
6448 { ac_try='test -s conftest.$ac_objext'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 (eval $ac_try) 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; }; then
6454 ac_lo=0 ac_mid=0
6455 while :; do
6456 cat >conftest.$ac_ext <<_ACEOF
6457 /* confdefs.h. */
6458 _ACEOF
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h. */
6462 $ac_includes_default
6463 int
6464 main ()
6465 {
6466 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6467 test_array [0] = 0
6468
6469 ;
6470 return 0;
6471 }
6472 _ACEOF
6473 rm -f conftest.$ac_objext
6474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6475 (eval $ac_compile) 2>conftest.er1
6476 ac_status=$?
6477 grep -v '^ *+' conftest.er1 >conftest.err
6478 rm -f conftest.er1
6479 cat conftest.err >&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); } &&
6482 { ac_try='test -z "$ac_c_werror_flag"
6483 || test ! -s conftest.err'
6484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485 (eval $ac_try) 2>&5
6486 ac_status=$?
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); }; } &&
6489 { ac_try='test -s conftest.$ac_objext'
6490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491 (eval $ac_try) 2>&5
6492 ac_status=$?
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); }; }; then
6495 ac_hi=$ac_mid; break
6496 else
6497 echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6499
6500 ac_lo=`expr $ac_mid + 1`
6501 if test $ac_lo -le $ac_mid; then
6502 ac_lo= ac_hi=
6503 break
6504 fi
6505 ac_mid=`expr 2 '*' $ac_mid + 1`
6506 fi
6507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6508 done
6509 else
6510 echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.$ac_ext >&5
6512
6513 cat >conftest.$ac_ext <<_ACEOF
6514 /* confdefs.h. */
6515 _ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h. */
6519 $ac_includes_default
6520 int
6521 main ()
6522 {
6523 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6524 test_array [0] = 0
6525
6526 ;
6527 return 0;
6528 }
6529 _ACEOF
6530 rm -f conftest.$ac_objext
6531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6532 (eval $ac_compile) 2>conftest.er1
6533 ac_status=$?
6534 grep -v '^ *+' conftest.er1 >conftest.err
6535 rm -f conftest.er1
6536 cat conftest.err >&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); } &&
6539 { ac_try='test -z "$ac_c_werror_flag"
6540 || test ! -s conftest.err'
6541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542 (eval $ac_try) 2>&5
6543 ac_status=$?
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); }; } &&
6546 { ac_try='test -s conftest.$ac_objext'
6547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548 (eval $ac_try) 2>&5
6549 ac_status=$?
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }; }; then
6552 ac_hi=-1 ac_mid=-1
6553 while :; do
6554 cat >conftest.$ac_ext <<_ACEOF
6555 /* confdefs.h. */
6556 _ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6560 $ac_includes_default
6561 int
6562 main ()
6563 {
6564 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6565 test_array [0] = 0
6566
6567 ;
6568 return 0;
6569 }
6570 _ACEOF
6571 rm -f conftest.$ac_objext
6572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6573 (eval $ac_compile) 2>conftest.er1
6574 ac_status=$?
6575 grep -v '^ *+' conftest.er1 >conftest.err
6576 rm -f conftest.er1
6577 cat conftest.err >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); } &&
6580 { ac_try='test -z "$ac_c_werror_flag"
6581 || test ! -s conftest.err'
6582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583 (eval $ac_try) 2>&5
6584 ac_status=$?
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }; } &&
6587 { ac_try='test -s conftest.$ac_objext'
6588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589 (eval $ac_try) 2>&5
6590 ac_status=$?
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); }; }; then
6593 ac_lo=$ac_mid; break
6594 else
6595 echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6597
6598 ac_hi=`expr '(' $ac_mid ')' - 1`
6599 if test $ac_mid -le $ac_hi; then
6600 ac_lo= ac_hi=
6601 break
6602 fi
6603 ac_mid=`expr 2 '*' $ac_mid`
6604 fi
6605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6606 done
6607 else
6608 echo "$as_me: failed program was:" >&5
6609 sed 's/^/| /' conftest.$ac_ext >&5
6610
6611 ac_lo= ac_hi=
6612 fi
6613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6614 fi
6615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6616 # Binary search between lo and hi bounds.
6617 while test "x$ac_lo" != "x$ac_hi"; do
6618 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6619 cat >conftest.$ac_ext <<_ACEOF
6620 /* confdefs.h. */
6621 _ACEOF
6622 cat confdefs.h >>conftest.$ac_ext
6623 cat >>conftest.$ac_ext <<_ACEOF
6624 /* end confdefs.h. */
6625 $ac_includes_default
6626 int
6627 main ()
6628 {
6629 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6630 test_array [0] = 0
6631
6632 ;
6633 return 0;
6634 }
6635 _ACEOF
6636 rm -f conftest.$ac_objext
6637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6638 (eval $ac_compile) 2>conftest.er1
6639 ac_status=$?
6640 grep -v '^ *+' conftest.er1 >conftest.err
6641 rm -f conftest.er1
6642 cat conftest.err >&5
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); } &&
6645 { ac_try='test -z "$ac_c_werror_flag"
6646 || test ! -s conftest.err'
6647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6648 (eval $ac_try) 2>&5
6649 ac_status=$?
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); }; } &&
6652 { ac_try='test -s conftest.$ac_objext'
6653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654 (eval $ac_try) 2>&5
6655 ac_status=$?
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); }; }; then
6658 ac_hi=$ac_mid
6659 else
6660 echo "$as_me: failed program was:" >&5
6661 sed 's/^/| /' conftest.$ac_ext >&5
6662
6663 ac_lo=`expr '(' $ac_mid ')' + 1`
6664 fi
6665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6666 done
6667 case $ac_lo in
6668 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6669 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6670 See \`config.log' for more details." >&5
6671 echo "$as_me: error: cannot compute sizeof (long long), 77
6672 See \`config.log' for more details." >&2;}
6673 { (exit 1); exit 1; }; } ;;
6674 esac
6675 else
6676 if test "$cross_compiling" = yes; then
6677 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6678 See \`config.log' for more details." >&5
6679 echo "$as_me: error: cannot run test program while cross compiling
6680 See \`config.log' for more details." >&2;}
6681 { (exit 1); exit 1; }; }
6682 else
6683 cat >conftest.$ac_ext <<_ACEOF
6684 /* confdefs.h. */
6685 _ACEOF
6686 cat confdefs.h >>conftest.$ac_ext
6687 cat >>conftest.$ac_ext <<_ACEOF
6688 /* end confdefs.h. */
6689 $ac_includes_default
6690 long longval () { return (long) (sizeof (long long)); }
6691 unsigned long ulongval () { return (long) (sizeof (long long)); }
6692 #include <stdio.h>
6693 #include <stdlib.h>
6694 int
6695 main ()
6696 {
6697
6698 FILE *f = fopen ("conftest.val", "w");
6699 if (! f)
6700 exit (1);
6701 if (((long) (sizeof (long long))) < 0)
6702 {
6703 long i = longval ();
6704 if (i != ((long) (sizeof (long long))))
6705 exit (1);
6706 fprintf (f, "%ld\n", i);
6707 }
6708 else
6709 {
6710 unsigned long i = ulongval ();
6711 if (i != ((long) (sizeof (long long))))
6712 exit (1);
6713 fprintf (f, "%lu\n", i);
6714 }
6715 exit (ferror (f) || fclose (f) != 0);
6716
6717 ;
6718 return 0;
6719 }
6720 _ACEOF
6721 rm -f conftest$ac_exeext
6722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6723 (eval $ac_link) 2>&5
6724 ac_status=$?
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728 (eval $ac_try) 2>&5
6729 ac_status=$?
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); }; }; then
6732 ac_cv_sizeof_long_long=`cat conftest.val`
6733 else
6734 echo "$as_me: program exited with status $ac_status" >&5
6735 echo "$as_me: failed program was:" >&5
6736 sed 's/^/| /' conftest.$ac_ext >&5
6737
6738 ( exit $ac_status )
6739 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6740 See \`config.log' for more details." >&5
6741 echo "$as_me: error: cannot compute sizeof (long long), 77
6742 See \`config.log' for more details." >&2;}
6743 { (exit 1); exit 1; }; }
6744 fi
6745 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6746 fi
6747 fi
6748 rm -f conftest.val
6749 else
6750 ac_cv_sizeof_long_long=0
6751 fi
6752 fi
6753 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6754 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6755 cat >>confdefs.h <<_ACEOF
6756 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6757 _ACEOF
6758
6759
6760 fi
6761
6762 echo "$as_me:$LINENO: checking for long" >&5
6763 echo $ECHO_N "checking for long... $ECHO_C" >&6
6764 if test "${ac_cv_type_long+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 else
6767 cat >conftest.$ac_ext <<_ACEOF
6768 /* confdefs.h. */
6769 _ACEOF
6770 cat confdefs.h >>conftest.$ac_ext
6771 cat >>conftest.$ac_ext <<_ACEOF
6772 /* end confdefs.h. */
6773 $ac_includes_default
6774 int
6775 main ()
6776 {
6777 if ((long *) 0)
6778 return 0;
6779 if (sizeof (long))
6780 return 0;
6781 ;
6782 return 0;
6783 }
6784 _ACEOF
6785 rm -f conftest.$ac_objext
6786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6787 (eval $ac_compile) 2>conftest.er1
6788 ac_status=$?
6789 grep -v '^ *+' conftest.er1 >conftest.err
6790 rm -f conftest.er1
6791 cat conftest.err >&5
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); } &&
6794 { ac_try='test -z "$ac_c_werror_flag"
6795 || test ! -s conftest.err'
6796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6797 (eval $ac_try) 2>&5
6798 ac_status=$?
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); }; } &&
6801 { ac_try='test -s conftest.$ac_objext'
6802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6803 (eval $ac_try) 2>&5
6804 ac_status=$?
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); }; }; then
6807 ac_cv_type_long=yes
6808 else
6809 echo "$as_me: failed program was:" >&5
6810 sed 's/^/| /' conftest.$ac_ext >&5
6811
6812 ac_cv_type_long=no
6813 fi
6814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6815 fi
6816 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6817 echo "${ECHO_T}$ac_cv_type_long" >&6
6818
6819 echo "$as_me:$LINENO: checking size of long" >&5
6820 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6821 if test "${ac_cv_sizeof_long+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 else
6824 if test "$ac_cv_type_long" = yes; then
6825 # The cast to unsigned long works around a bug in the HP C Compiler
6826 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6827 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6828 # This bug is HP SR number 8606223364.
6829 if test "$cross_compiling" = yes; then
6830 # Depending upon the size, compute the lo and hi bounds.
6831 cat >conftest.$ac_ext <<_ACEOF
6832 /* confdefs.h. */
6833 _ACEOF
6834 cat confdefs.h >>conftest.$ac_ext
6835 cat >>conftest.$ac_ext <<_ACEOF
6836 /* end confdefs.h. */
6837 $ac_includes_default
6838 int
6839 main ()
6840 {
6841 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6842 test_array [0] = 0
6843
6844 ;
6845 return 0;
6846 }
6847 _ACEOF
6848 rm -f conftest.$ac_objext
6849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6850 (eval $ac_compile) 2>conftest.er1
6851 ac_status=$?
6852 grep -v '^ *+' conftest.er1 >conftest.err
6853 rm -f conftest.er1
6854 cat conftest.err >&5
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } &&
6857 { ac_try='test -z "$ac_c_werror_flag"
6858 || test ! -s conftest.err'
6859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6860 (eval $ac_try) 2>&5
6861 ac_status=$?
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); }; } &&
6864 { ac_try='test -s conftest.$ac_objext'
6865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6866 (eval $ac_try) 2>&5
6867 ac_status=$?
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); }; }; then
6870 ac_lo=0 ac_mid=0
6871 while :; do
6872 cat >conftest.$ac_ext <<_ACEOF
6873 /* confdefs.h. */
6874 _ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h. */
6878 $ac_includes_default
6879 int
6880 main ()
6881 {
6882 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6883 test_array [0] = 0
6884
6885 ;
6886 return 0;
6887 }
6888 _ACEOF
6889 rm -f conftest.$ac_objext
6890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6891 (eval $ac_compile) 2>conftest.er1
6892 ac_status=$?
6893 grep -v '^ *+' conftest.er1 >conftest.err
6894 rm -f conftest.er1
6895 cat conftest.err >&5
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); } &&
6898 { ac_try='test -z "$ac_c_werror_flag"
6899 || test ! -s conftest.err'
6900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901 (eval $ac_try) 2>&5
6902 ac_status=$?
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); }; } &&
6905 { ac_try='test -s conftest.$ac_objext'
6906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907 (eval $ac_try) 2>&5
6908 ac_status=$?
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); }; }; then
6911 ac_hi=$ac_mid; break
6912 else
6913 echo "$as_me: failed program was:" >&5
6914 sed 's/^/| /' conftest.$ac_ext >&5
6915
6916 ac_lo=`expr $ac_mid + 1`
6917 if test $ac_lo -le $ac_mid; then
6918 ac_lo= ac_hi=
6919 break
6920 fi
6921 ac_mid=`expr 2 '*' $ac_mid + 1`
6922 fi
6923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6924 done
6925 else
6926 echo "$as_me: failed program was:" >&5
6927 sed 's/^/| /' conftest.$ac_ext >&5
6928
6929 cat >conftest.$ac_ext <<_ACEOF
6930 /* confdefs.h. */
6931 _ACEOF
6932 cat confdefs.h >>conftest.$ac_ext
6933 cat >>conftest.$ac_ext <<_ACEOF
6934 /* end confdefs.h. */
6935 $ac_includes_default
6936 int
6937 main ()
6938 {
6939 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6940 test_array [0] = 0
6941
6942 ;
6943 return 0;
6944 }
6945 _ACEOF
6946 rm -f conftest.$ac_objext
6947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6948 (eval $ac_compile) 2>conftest.er1
6949 ac_status=$?
6950 grep -v '^ *+' conftest.er1 >conftest.err
6951 rm -f conftest.er1
6952 cat conftest.err >&5
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); } &&
6955 { ac_try='test -z "$ac_c_werror_flag"
6956 || test ! -s conftest.err'
6957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958 (eval $ac_try) 2>&5
6959 ac_status=$?
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; } &&
6962 { ac_try='test -s conftest.$ac_objext'
6963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964 (eval $ac_try) 2>&5
6965 ac_status=$?
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); }; }; then
6968 ac_hi=-1 ac_mid=-1
6969 while :; do
6970 cat >conftest.$ac_ext <<_ACEOF
6971 /* confdefs.h. */
6972 _ACEOF
6973 cat confdefs.h >>conftest.$ac_ext
6974 cat >>conftest.$ac_ext <<_ACEOF
6975 /* end confdefs.h. */
6976 $ac_includes_default
6977 int
6978 main ()
6979 {
6980 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6981 test_array [0] = 0
6982
6983 ;
6984 return 0;
6985 }
6986 _ACEOF
6987 rm -f conftest.$ac_objext
6988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6989 (eval $ac_compile) 2>conftest.er1
6990 ac_status=$?
6991 grep -v '^ *+' conftest.er1 >conftest.err
6992 rm -f conftest.er1
6993 cat conftest.err >&5
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } &&
6996 { ac_try='test -z "$ac_c_werror_flag"
6997 || test ! -s conftest.err'
6998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999 (eval $ac_try) 2>&5
7000 ac_status=$?
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); }; } &&
7003 { ac_try='test -s conftest.$ac_objext'
7004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005 (eval $ac_try) 2>&5
7006 ac_status=$?
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); }; }; then
7009 ac_lo=$ac_mid; break
7010 else
7011 echo "$as_me: failed program was:" >&5
7012 sed 's/^/| /' conftest.$ac_ext >&5
7013
7014 ac_hi=`expr '(' $ac_mid ')' - 1`
7015 if test $ac_mid -le $ac_hi; then
7016 ac_lo= ac_hi=
7017 break
7018 fi
7019 ac_mid=`expr 2 '*' $ac_mid`
7020 fi
7021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7022 done
7023 else
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7026
7027 ac_lo= ac_hi=
7028 fi
7029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7030 fi
7031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7032 # Binary search between lo and hi bounds.
7033 while test "x$ac_lo" != "x$ac_hi"; do
7034 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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 $ac_includes_default
7042 int
7043 main ()
7044 {
7045 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7046 test_array [0] = 0
7047
7048 ;
7049 return 0;
7050 }
7051 _ACEOF
7052 rm -f conftest.$ac_objext
7053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7054 (eval $ac_compile) 2>conftest.er1
7055 ac_status=$?
7056 grep -v '^ *+' conftest.er1 >conftest.err
7057 rm -f conftest.er1
7058 cat conftest.err >&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } &&
7061 { ac_try='test -z "$ac_c_werror_flag"
7062 || test ! -s conftest.err'
7063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7064 (eval $ac_try) 2>&5
7065 ac_status=$?
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); }; } &&
7068 { ac_try='test -s conftest.$ac_objext'
7069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7070 (eval $ac_try) 2>&5
7071 ac_status=$?
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); }; }; then
7074 ac_hi=$ac_mid
7075 else
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7078
7079 ac_lo=`expr '(' $ac_mid ')' + 1`
7080 fi
7081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7082 done
7083 case $ac_lo in
7084 ?*) ac_cv_sizeof_long=$ac_lo;;
7085 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7086 See \`config.log' for more details." >&5
7087 echo "$as_me: error: cannot compute sizeof (long), 77
7088 See \`config.log' for more details." >&2;}
7089 { (exit 1); exit 1; }; } ;;
7090 esac
7091 else
7092 if test "$cross_compiling" = yes; then
7093 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7094 See \`config.log' for more details." >&5
7095 echo "$as_me: error: cannot run test program while cross compiling
7096 See \`config.log' for more details." >&2;}
7097 { (exit 1); exit 1; }; }
7098 else
7099 cat >conftest.$ac_ext <<_ACEOF
7100 /* confdefs.h. */
7101 _ACEOF
7102 cat confdefs.h >>conftest.$ac_ext
7103 cat >>conftest.$ac_ext <<_ACEOF
7104 /* end confdefs.h. */
7105 $ac_includes_default
7106 long longval () { return (long) (sizeof (long)); }
7107 unsigned long ulongval () { return (long) (sizeof (long)); }
7108 #include <stdio.h>
7109 #include <stdlib.h>
7110 int
7111 main ()
7112 {
7113
7114 FILE *f = fopen ("conftest.val", "w");
7115 if (! f)
7116 exit (1);
7117 if (((long) (sizeof (long))) < 0)
7118 {
7119 long i = longval ();
7120 if (i != ((long) (sizeof (long))))
7121 exit (1);
7122 fprintf (f, "%ld\n", i);
7123 }
7124 else
7125 {
7126 unsigned long i = ulongval ();
7127 if (i != ((long) (sizeof (long))))
7128 exit (1);
7129 fprintf (f, "%lu\n", i);
7130 }
7131 exit (ferror (f) || fclose (f) != 0);
7132
7133 ;
7134 return 0;
7135 }
7136 _ACEOF
7137 rm -f conftest$ac_exeext
7138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7139 (eval $ac_link) 2>&5
7140 ac_status=$?
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7144 (eval $ac_try) 2>&5
7145 ac_status=$?
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); }; }; then
7148 ac_cv_sizeof_long=`cat conftest.val`
7149 else
7150 echo "$as_me: program exited with status $ac_status" >&5
7151 echo "$as_me: failed program was:" >&5
7152 sed 's/^/| /' conftest.$ac_ext >&5
7153
7154 ( exit $ac_status )
7155 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7156 See \`config.log' for more details." >&5
7157 echo "$as_me: error: cannot compute sizeof (long), 77
7158 See \`config.log' for more details." >&2;}
7159 { (exit 1); exit 1; }; }
7160 fi
7161 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7162 fi
7163 fi
7164 rm -f conftest.val
7165 else
7166 ac_cv_sizeof_long=0
7167 fi
7168 fi
7169 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7170 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7171 cat >>confdefs.h <<_ACEOF
7172 #define SIZEOF_LONG $ac_cv_sizeof_long
7173 _ACEOF
7174
7175
7176 if test "x${ac_cv_sizeof_long}" = "x8"; then
7177 host64=true
7178 BFD_HOST_64BIT_LONG=1
7179 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
7180 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
7181 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
7182 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
7183 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
7184 fi
7185
7186 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
7187 BFD_HOST_64_BIT_DEFINED=1
7188 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
7189 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
7190 fi
7191
7192
7193
7194
7195
7196
7197
7198 # Put a plausible default for CC_FOR_BUILD in Makefile.
7199 if test -z "$CC_FOR_BUILD"; then
7200 if test "x$cross_compiling" = "xno"; then
7201 CC_FOR_BUILD='$(CC)'
7202 else
7203 CC_FOR_BUILD=gcc
7204 fi
7205 fi
7206
7207 # Also set EXEEXT_FOR_BUILD.
7208 if test "x$cross_compiling" = "xno"; then
7209 EXEEXT_FOR_BUILD='$(EXEEXT)'
7210 else
7211 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
7212 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
7213 if test "${bfd_cv_build_exeext+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 else
7216 rm -f conftest*
7217 echo 'int main () { return 0; }' > conftest.c
7218 bfd_cv_build_exeext=
7219 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
7220 for file in conftest.*; do
7221 case $file in
7222 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
7223 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
7224 esac
7225 done
7226 rm -f conftest*
7227 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
7228 fi
7229 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
7230 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
7231 EXEEXT_FOR_BUILD=""
7232 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
7233 fi
7234
7235
7236
7237
7238
7239
7240
7241
7242 for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
7243 do
7244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7246 echo "$as_me:$LINENO: checking for $ac_header" >&5
7247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 fi
7251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7253 else
7254 # Is the header compilable?
7255 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7257 cat >conftest.$ac_ext <<_ACEOF
7258 /* confdefs.h. */
7259 _ACEOF
7260 cat confdefs.h >>conftest.$ac_ext
7261 cat >>conftest.$ac_ext <<_ACEOF
7262 /* end confdefs.h. */
7263 $ac_includes_default
7264 #include <$ac_header>
7265 _ACEOF
7266 rm -f conftest.$ac_objext
7267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7268 (eval $ac_compile) 2>conftest.er1
7269 ac_status=$?
7270 grep -v '^ *+' conftest.er1 >conftest.err
7271 rm -f conftest.er1
7272 cat conftest.err >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } &&
7275 { ac_try='test -z "$ac_c_werror_flag"
7276 || test ! -s conftest.err'
7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278 (eval $ac_try) 2>&5
7279 ac_status=$?
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; } &&
7282 { ac_try='test -s conftest.$ac_objext'
7283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7284 (eval $ac_try) 2>&5
7285 ac_status=$?
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); }; }; then
7288 ac_header_compiler=yes
7289 else
7290 echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.$ac_ext >&5
7292
7293 ac_header_compiler=no
7294 fi
7295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7296 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7297 echo "${ECHO_T}$ac_header_compiler" >&6
7298
7299 # Is the header present?
7300 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7301 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7302 cat >conftest.$ac_ext <<_ACEOF
7303 /* confdefs.h. */
7304 _ACEOF
7305 cat confdefs.h >>conftest.$ac_ext
7306 cat >>conftest.$ac_ext <<_ACEOF
7307 /* end confdefs.h. */
7308 #include <$ac_header>
7309 _ACEOF
7310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7312 ac_status=$?
7313 grep -v '^ *+' conftest.er1 >conftest.err
7314 rm -f conftest.er1
7315 cat conftest.err >&5
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); } >/dev/null; then
7318 if test -s conftest.err; then
7319 ac_cpp_err=$ac_c_preproc_warn_flag
7320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7321 else
7322 ac_cpp_err=
7323 fi
7324 else
7325 ac_cpp_err=yes
7326 fi
7327 if test -z "$ac_cpp_err"; then
7328 ac_header_preproc=yes
7329 else
7330 echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7332
7333 ac_header_preproc=no
7334 fi
7335 rm -f conftest.err conftest.$ac_ext
7336 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7337 echo "${ECHO_T}$ac_header_preproc" >&6
7338
7339 # So? What about this header?
7340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7341 yes:no: )
7342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7346 ac_header_preproc=yes
7347 ;;
7348 no:yes:* )
7349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7356 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7361 (
7362 cat <<\_ASBOX
7363 ## ------------------------------------------ ##
7364 ## Report this to the AC_PACKAGE_NAME lists. ##
7365 ## ------------------------------------------ ##
7366 _ASBOX
7367 ) |
7368 sed "s/^/$as_me: WARNING: /" >&2
7369 ;;
7370 esac
7371 echo "$as_me:$LINENO: checking for $ac_header" >&5
7372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 else
7376 eval "$as_ac_Header=\$ac_header_preproc"
7377 fi
7378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7380
7381 fi
7382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7383 cat >>confdefs.h <<_ACEOF
7384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7385 _ACEOF
7386
7387 fi
7388
7389 done
7390
7391
7392
7393
7394 for ac_header in fcntl.h sys/file.h sys/time.h
7395 do
7396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7398 echo "$as_me:$LINENO: checking for $ac_header" >&5
7399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7401 echo $ECHO_N "(cached) $ECHO_C" >&6
7402 fi
7403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7405 else
7406 # Is the header compilable?
7407 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7409 cat >conftest.$ac_ext <<_ACEOF
7410 /* confdefs.h. */
7411 _ACEOF
7412 cat confdefs.h >>conftest.$ac_ext
7413 cat >>conftest.$ac_ext <<_ACEOF
7414 /* end confdefs.h. */
7415 $ac_includes_default
7416 #include <$ac_header>
7417 _ACEOF
7418 rm -f conftest.$ac_objext
7419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7420 (eval $ac_compile) 2>conftest.er1
7421 ac_status=$?
7422 grep -v '^ *+' conftest.er1 >conftest.err
7423 rm -f conftest.er1
7424 cat conftest.err >&5
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } &&
7427 { ac_try='test -z "$ac_c_werror_flag"
7428 || test ! -s conftest.err'
7429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7430 (eval $ac_try) 2>&5
7431 ac_status=$?
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); }; } &&
7434 { ac_try='test -s conftest.$ac_objext'
7435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7436 (eval $ac_try) 2>&5
7437 ac_status=$?
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); }; }; then
7440 ac_header_compiler=yes
7441 else
7442 echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.$ac_ext >&5
7444
7445 ac_header_compiler=no
7446 fi
7447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7449 echo "${ECHO_T}$ac_header_compiler" >&6
7450
7451 # Is the header present?
7452 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7454 cat >conftest.$ac_ext <<_ACEOF
7455 /* confdefs.h. */
7456 _ACEOF
7457 cat confdefs.h >>conftest.$ac_ext
7458 cat >>conftest.$ac_ext <<_ACEOF
7459 /* end confdefs.h. */
7460 #include <$ac_header>
7461 _ACEOF
7462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7464 ac_status=$?
7465 grep -v '^ *+' conftest.er1 >conftest.err
7466 rm -f conftest.er1
7467 cat conftest.err >&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } >/dev/null; then
7470 if test -s conftest.err; then
7471 ac_cpp_err=$ac_c_preproc_warn_flag
7472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7473 else
7474 ac_cpp_err=
7475 fi
7476 else
7477 ac_cpp_err=yes
7478 fi
7479 if test -z "$ac_cpp_err"; then
7480 ac_header_preproc=yes
7481 else
7482 echo "$as_me: failed program was:" >&5
7483 sed 's/^/| /' conftest.$ac_ext >&5
7484
7485 ac_header_preproc=no
7486 fi
7487 rm -f conftest.err conftest.$ac_ext
7488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7489 echo "${ECHO_T}$ac_header_preproc" >&6
7490
7491 # So? What about this header?
7492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7493 yes:no: )
7494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7498 ac_header_preproc=yes
7499 ;;
7500 no:yes:* )
7501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7504 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7508 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7513 (
7514 cat <<\_ASBOX
7515 ## ------------------------------------------ ##
7516 ## Report this to the AC_PACKAGE_NAME lists. ##
7517 ## ------------------------------------------ ##
7518 _ASBOX
7519 ) |
7520 sed "s/^/$as_me: WARNING: /" >&2
7521 ;;
7522 esac
7523 echo "$as_me:$LINENO: checking for $ac_header" >&5
7524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7527 else
7528 eval "$as_ac_Header=\$ac_header_preproc"
7529 fi
7530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7532
7533 fi
7534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7535 cat >>confdefs.h <<_ACEOF
7536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7537 _ACEOF
7538
7539 fi
7540
7541 done
7542
7543 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7544 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7545 if test "${ac_cv_header_time+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 else
7548 cat >conftest.$ac_ext <<_ACEOF
7549 /* confdefs.h. */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7554 #include <sys/types.h>
7555 #include <sys/time.h>
7556 #include <time.h>
7557
7558 int
7559 main ()
7560 {
7561 if ((struct tm *) 0)
7562 return 0;
7563 ;
7564 return 0;
7565 }
7566 _ACEOF
7567 rm -f conftest.$ac_objext
7568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7569 (eval $ac_compile) 2>conftest.er1
7570 ac_status=$?
7571 grep -v '^ *+' conftest.er1 >conftest.err
7572 rm -f conftest.er1
7573 cat conftest.err >&5
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); } &&
7576 { ac_try='test -z "$ac_c_werror_flag"
7577 || test ! -s conftest.err'
7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579 (eval $ac_try) 2>&5
7580 ac_status=$?
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }; } &&
7583 { ac_try='test -s conftest.$ac_objext'
7584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7585 (eval $ac_try) 2>&5
7586 ac_status=$?
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); }; }; then
7589 ac_cv_header_time=yes
7590 else
7591 echo "$as_me: failed program was:" >&5
7592 sed 's/^/| /' conftest.$ac_ext >&5
7593
7594 ac_cv_header_time=no
7595 fi
7596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7597 fi
7598 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7599 echo "${ECHO_T}$ac_cv_header_time" >&6
7600 if test $ac_cv_header_time = yes; then
7601
7602 cat >>confdefs.h <<\_ACEOF
7603 #define TIME_WITH_SYS_TIME 1
7604 _ACEOF
7605
7606 fi
7607
7608
7609
7610
7611
7612
7613 ac_header_dirent=no
7614 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7615 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7616 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7617 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 else
7621 cat >conftest.$ac_ext <<_ACEOF
7622 /* confdefs.h. */
7623 _ACEOF
7624 cat confdefs.h >>conftest.$ac_ext
7625 cat >>conftest.$ac_ext <<_ACEOF
7626 /* end confdefs.h. */
7627 #include <sys/types.h>
7628 #include <$ac_hdr>
7629
7630 int
7631 main ()
7632 {
7633 if ((DIR *) 0)
7634 return 0;
7635 ;
7636 return 0;
7637 }
7638 _ACEOF
7639 rm -f conftest.$ac_objext
7640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7641 (eval $ac_compile) 2>conftest.er1
7642 ac_status=$?
7643 grep -v '^ *+' conftest.er1 >conftest.err
7644 rm -f conftest.er1
7645 cat conftest.err >&5
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); } &&
7648 { ac_try='test -z "$ac_c_werror_flag"
7649 || test ! -s conftest.err'
7650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651 (eval $ac_try) 2>&5
7652 ac_status=$?
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); }; } &&
7655 { ac_try='test -s conftest.$ac_objext'
7656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657 (eval $ac_try) 2>&5
7658 ac_status=$?
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); }; }; then
7661 eval "$as_ac_Header=yes"
7662 else
7663 echo "$as_me: failed program was:" >&5
7664 sed 's/^/| /' conftest.$ac_ext >&5
7665
7666 eval "$as_ac_Header=no"
7667 fi
7668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7669 fi
7670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7673 cat >>confdefs.h <<_ACEOF
7674 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7675 _ACEOF
7676
7677 ac_header_dirent=$ac_hdr; break
7678 fi
7679
7680 done
7681 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7682 if test $ac_header_dirent = dirent.h; then
7683 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7684 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7685 if test "${ac_cv_search_opendir+set}" = set; then
7686 echo $ECHO_N "(cached) $ECHO_C" >&6
7687 else
7688 ac_func_search_save_LIBS=$LIBS
7689 ac_cv_search_opendir=no
7690 cat >conftest.$ac_ext <<_ACEOF
7691 /* confdefs.h. */
7692 _ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h. */
7696
7697 /* Override any gcc2 internal prototype to avoid an error. */
7698 #ifdef __cplusplus
7699 extern "C"
7700 #endif
7701 /* We use char because int might match the return type of a gcc2
7702 builtin and then its argument prototype would still apply. */
7703 char opendir ();
7704 int
7705 main ()
7706 {
7707 opendir ();
7708 ;
7709 return 0;
7710 }
7711 _ACEOF
7712 rm -f conftest.$ac_objext conftest$ac_exeext
7713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7714 (eval $ac_link) 2>conftest.er1
7715 ac_status=$?
7716 grep -v '^ *+' conftest.er1 >conftest.err
7717 rm -f conftest.er1
7718 cat conftest.err >&5
7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); } &&
7721 { ac_try='test -z "$ac_c_werror_flag"
7722 || test ! -s conftest.err'
7723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7724 (eval $ac_try) 2>&5
7725 ac_status=$?
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); }; } &&
7728 { ac_try='test -s conftest$ac_exeext'
7729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7730 (eval $ac_try) 2>&5
7731 ac_status=$?
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); }; }; then
7734 ac_cv_search_opendir="none required"
7735 else
7736 echo "$as_me: failed program was:" >&5
7737 sed 's/^/| /' conftest.$ac_ext >&5
7738
7739 fi
7740 rm -f conftest.err conftest.$ac_objext \
7741 conftest$ac_exeext conftest.$ac_ext
7742 if test "$ac_cv_search_opendir" = no; then
7743 for ac_lib in dir; do
7744 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7745 cat >conftest.$ac_ext <<_ACEOF
7746 /* confdefs.h. */
7747 _ACEOF
7748 cat confdefs.h >>conftest.$ac_ext
7749 cat >>conftest.$ac_ext <<_ACEOF
7750 /* end confdefs.h. */
7751
7752 /* Override any gcc2 internal prototype to avoid an error. */
7753 #ifdef __cplusplus
7754 extern "C"
7755 #endif
7756 /* We use char because int might match the return type of a gcc2
7757 builtin and then its argument prototype would still apply. */
7758 char opendir ();
7759 int
7760 main ()
7761 {
7762 opendir ();
7763 ;
7764 return 0;
7765 }
7766 _ACEOF
7767 rm -f conftest.$ac_objext conftest$ac_exeext
7768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7769 (eval $ac_link) 2>conftest.er1
7770 ac_status=$?
7771 grep -v '^ *+' conftest.er1 >conftest.err
7772 rm -f conftest.er1
7773 cat conftest.err >&5
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); } &&
7776 { ac_try='test -z "$ac_c_werror_flag"
7777 || test ! -s conftest.err'
7778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7779 (eval $ac_try) 2>&5
7780 ac_status=$?
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); }; } &&
7783 { ac_try='test -s conftest$ac_exeext'
7784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7785 (eval $ac_try) 2>&5
7786 ac_status=$?
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); }; }; then
7789 ac_cv_search_opendir="-l$ac_lib"
7790 break
7791 else
7792 echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.$ac_ext >&5
7794
7795 fi
7796 rm -f conftest.err conftest.$ac_objext \
7797 conftest$ac_exeext conftest.$ac_ext
7798 done
7799 fi
7800 LIBS=$ac_func_search_save_LIBS
7801 fi
7802 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7803 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7804 if test "$ac_cv_search_opendir" != no; then
7805 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7806
7807 fi
7808
7809 else
7810 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7811 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7812 if test "${ac_cv_search_opendir+set}" = set; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7814 else
7815 ac_func_search_save_LIBS=$LIBS
7816 ac_cv_search_opendir=no
7817 cat >conftest.$ac_ext <<_ACEOF
7818 /* confdefs.h. */
7819 _ACEOF
7820 cat confdefs.h >>conftest.$ac_ext
7821 cat >>conftest.$ac_ext <<_ACEOF
7822 /* end confdefs.h. */
7823
7824 /* Override any gcc2 internal prototype to avoid an error. */
7825 #ifdef __cplusplus
7826 extern "C"
7827 #endif
7828 /* We use char because int might match the return type of a gcc2
7829 builtin and then its argument prototype would still apply. */
7830 char opendir ();
7831 int
7832 main ()
7833 {
7834 opendir ();
7835 ;
7836 return 0;
7837 }
7838 _ACEOF
7839 rm -f conftest.$ac_objext conftest$ac_exeext
7840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7841 (eval $ac_link) 2>conftest.er1
7842 ac_status=$?
7843 grep -v '^ *+' conftest.er1 >conftest.err
7844 rm -f conftest.er1
7845 cat conftest.err >&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); } &&
7848 { ac_try='test -z "$ac_c_werror_flag"
7849 || test ! -s conftest.err'
7850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7851 (eval $ac_try) 2>&5
7852 ac_status=$?
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); }; } &&
7855 { ac_try='test -s conftest$ac_exeext'
7856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7857 (eval $ac_try) 2>&5
7858 ac_status=$?
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); }; }; then
7861 ac_cv_search_opendir="none required"
7862 else
7863 echo "$as_me: failed program was:" >&5
7864 sed 's/^/| /' conftest.$ac_ext >&5
7865
7866 fi
7867 rm -f conftest.err conftest.$ac_objext \
7868 conftest$ac_exeext conftest.$ac_ext
7869 if test "$ac_cv_search_opendir" = no; then
7870 for ac_lib in x; do
7871 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7872 cat >conftest.$ac_ext <<_ACEOF
7873 /* confdefs.h. */
7874 _ACEOF
7875 cat confdefs.h >>conftest.$ac_ext
7876 cat >>conftest.$ac_ext <<_ACEOF
7877 /* end confdefs.h. */
7878
7879 /* Override any gcc2 internal prototype to avoid an error. */
7880 #ifdef __cplusplus
7881 extern "C"
7882 #endif
7883 /* We use char because int might match the return type of a gcc2
7884 builtin and then its argument prototype would still apply. */
7885 char opendir ();
7886 int
7887 main ()
7888 {
7889 opendir ();
7890 ;
7891 return 0;
7892 }
7893 _ACEOF
7894 rm -f conftest.$ac_objext conftest$ac_exeext
7895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7896 (eval $ac_link) 2>conftest.er1
7897 ac_status=$?
7898 grep -v '^ *+' conftest.er1 >conftest.err
7899 rm -f conftest.er1
7900 cat conftest.err >&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); } &&
7903 { ac_try='test -z "$ac_c_werror_flag"
7904 || test ! -s conftest.err'
7905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906 (eval $ac_try) 2>&5
7907 ac_status=$?
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); }; } &&
7910 { ac_try='test -s conftest$ac_exeext'
7911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912 (eval $ac_try) 2>&5
7913 ac_status=$?
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); }; }; then
7916 ac_cv_search_opendir="-l$ac_lib"
7917 break
7918 else
7919 echo "$as_me: failed program was:" >&5
7920 sed 's/^/| /' conftest.$ac_ext >&5
7921
7922 fi
7923 rm -f conftest.err conftest.$ac_objext \
7924 conftest$ac_exeext conftest.$ac_ext
7925 done
7926 fi
7927 LIBS=$ac_func_search_save_LIBS
7928 fi
7929 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7930 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7931 if test "$ac_cv_search_opendir" != no; then
7932 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7933
7934 fi
7935
7936 fi
7937
7938 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7939 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7940 if test "${gcc_cv_header_string+set}" = set; then
7941 echo $ECHO_N "(cached) $ECHO_C" >&6
7942 else
7943 cat >conftest.$ac_ext <<_ACEOF
7944 /* confdefs.h. */
7945 _ACEOF
7946 cat confdefs.h >>conftest.$ac_ext
7947 cat >>conftest.$ac_ext <<_ACEOF
7948 /* end confdefs.h. */
7949 #include <string.h>
7950 #include <strings.h>
7951 int
7952 main ()
7953 {
7954
7955 ;
7956 return 0;
7957 }
7958 _ACEOF
7959 rm -f conftest.$ac_objext
7960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7961 (eval $ac_compile) 2>conftest.er1
7962 ac_status=$?
7963 grep -v '^ *+' conftest.er1 >conftest.err
7964 rm -f conftest.er1
7965 cat conftest.err >&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } &&
7968 { ac_try='test -z "$ac_c_werror_flag"
7969 || test ! -s conftest.err'
7970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971 (eval $ac_try) 2>&5
7972 ac_status=$?
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); }; } &&
7975 { ac_try='test -s conftest.$ac_objext'
7976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7977 (eval $ac_try) 2>&5
7978 ac_status=$?
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); }; }; then
7981 gcc_cv_header_string=yes
7982 else
7983 echo "$as_me: failed program was:" >&5
7984 sed 's/^/| /' conftest.$ac_ext >&5
7985
7986 gcc_cv_header_string=no
7987 fi
7988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7989 fi
7990 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7991 echo "${ECHO_T}$gcc_cv_header_string" >&6
7992 if test $gcc_cv_header_string = yes; then
7993
7994 cat >>confdefs.h <<\_ACEOF
7995 #define STRING_WITH_STRINGS 1
7996 _ACEOF
7997
7998 fi
7999
8000
8001
8002
8003
8004
8005
8006
8007 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
8008 do
8009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8010 echo "$as_me:$LINENO: checking for $ac_func" >&5
8011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8012 if eval "test \"\${$as_ac_var+set}\" = set"; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8014 else
8015 cat >conftest.$ac_ext <<_ACEOF
8016 /* confdefs.h. */
8017 _ACEOF
8018 cat confdefs.h >>conftest.$ac_ext
8019 cat >>conftest.$ac_ext <<_ACEOF
8020 /* end confdefs.h. */
8021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8023 #define $ac_func innocuous_$ac_func
8024
8025 /* System header to define __stub macros and hopefully few prototypes,
8026 which can conflict with char $ac_func (); below.
8027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8028 <limits.h> exists even on freestanding compilers. */
8029
8030 #ifdef __STDC__
8031 # include <limits.h>
8032 #else
8033 # include <assert.h>
8034 #endif
8035
8036 #undef $ac_func
8037
8038 /* Override any gcc2 internal prototype to avoid an error. */
8039 #ifdef __cplusplus
8040 extern "C"
8041 {
8042 #endif
8043 /* We use char because int might match the return type of a gcc2
8044 builtin and then its argument prototype would still apply. */
8045 char $ac_func ();
8046 /* The GNU C library defines this for functions which it implements
8047 to always fail with ENOSYS. Some functions are actually named
8048 something starting with __ and the normal name is an alias. */
8049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8050 choke me
8051 #else
8052 char (*f) () = $ac_func;
8053 #endif
8054 #ifdef __cplusplus
8055 }
8056 #endif
8057
8058 int
8059 main ()
8060 {
8061 return f != $ac_func;
8062 ;
8063 return 0;
8064 }
8065 _ACEOF
8066 rm -f conftest.$ac_objext conftest$ac_exeext
8067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8068 (eval $ac_link) 2>conftest.er1
8069 ac_status=$?
8070 grep -v '^ *+' conftest.er1 >conftest.err
8071 rm -f conftest.er1
8072 cat conftest.err >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } &&
8075 { ac_try='test -z "$ac_c_werror_flag"
8076 || test ! -s conftest.err'
8077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8078 (eval $ac_try) 2>&5
8079 ac_status=$?
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; } &&
8082 { ac_try='test -s conftest$ac_exeext'
8083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084 (eval $ac_try) 2>&5
8085 ac_status=$?
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }; }; then
8088 eval "$as_ac_var=yes"
8089 else
8090 echo "$as_me: failed program was:" >&5
8091 sed 's/^/| /' conftest.$ac_ext >&5
8092
8093 eval "$as_ac_var=no"
8094 fi
8095 rm -f conftest.err conftest.$ac_objext \
8096 conftest$ac_exeext conftest.$ac_ext
8097 fi
8098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8099 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8100 if test `eval echo '${'$as_ac_var'}'` = yes; then
8101 cat >>confdefs.h <<_ACEOF
8102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8103 _ACEOF
8104
8105 fi
8106 done
8107
8108
8109 for ac_func in strtoull
8110 do
8111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8112 echo "$as_me:$LINENO: checking for $ac_func" >&5
8113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8114 if eval "test \"\${$as_ac_var+set}\" = set"; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
8116 else
8117 cat >conftest.$ac_ext <<_ACEOF
8118 /* confdefs.h. */
8119 _ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8125 #define $ac_func innocuous_$ac_func
8126
8127 /* System header to define __stub macros and hopefully few prototypes,
8128 which can conflict with char $ac_func (); below.
8129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8130 <limits.h> exists even on freestanding compilers. */
8131
8132 #ifdef __STDC__
8133 # include <limits.h>
8134 #else
8135 # include <assert.h>
8136 #endif
8137
8138 #undef $ac_func
8139
8140 /* Override any gcc2 internal prototype to avoid an error. */
8141 #ifdef __cplusplus
8142 extern "C"
8143 {
8144 #endif
8145 /* We use char because int might match the return type of a gcc2
8146 builtin and then its argument prototype would still apply. */
8147 char $ac_func ();
8148 /* The GNU C library defines this for functions which it implements
8149 to always fail with ENOSYS. Some functions are actually named
8150 something starting with __ and the normal name is an alias. */
8151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8152 choke me
8153 #else
8154 char (*f) () = $ac_func;
8155 #endif
8156 #ifdef __cplusplus
8157 }
8158 #endif
8159
8160 int
8161 main ()
8162 {
8163 return f != $ac_func;
8164 ;
8165 return 0;
8166 }
8167 _ACEOF
8168 rm -f conftest.$ac_objext conftest$ac_exeext
8169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8170 (eval $ac_link) 2>conftest.er1
8171 ac_status=$?
8172 grep -v '^ *+' conftest.er1 >conftest.err
8173 rm -f conftest.er1
8174 cat conftest.err >&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } &&
8177 { ac_try='test -z "$ac_c_werror_flag"
8178 || test ! -s conftest.err'
8179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180 (eval $ac_try) 2>&5
8181 ac_status=$?
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); }; } &&
8184 { ac_try='test -s conftest$ac_exeext'
8185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186 (eval $ac_try) 2>&5
8187 ac_status=$?
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; }; then
8190 eval "$as_ac_var=yes"
8191 else
8192 echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8194
8195 eval "$as_ac_var=no"
8196 fi
8197 rm -f conftest.err conftest.$ac_objext \
8198 conftest$ac_exeext conftest.$ac_ext
8199 fi
8200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8202 if test `eval echo '${'$as_ac_var'}'` = yes; then
8203 cat >>confdefs.h <<_ACEOF
8204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8205 _ACEOF
8206
8207 fi
8208 done
8209
8210
8211 echo "$as_me:$LINENO: checking whether basename is declared" >&5
8212 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
8213 if test "${ac_cv_have_decl_basename+set}" = set; then
8214 echo $ECHO_N "(cached) $ECHO_C" >&6
8215 else
8216 cat >conftest.$ac_ext <<_ACEOF
8217 /* confdefs.h. */
8218 _ACEOF
8219 cat confdefs.h >>conftest.$ac_ext
8220 cat >>conftest.$ac_ext <<_ACEOF
8221 /* end confdefs.h. */
8222 $ac_includes_default
8223 int
8224 main ()
8225 {
8226 #ifndef basename
8227 char *p = (char *) basename;
8228 #endif
8229
8230 ;
8231 return 0;
8232 }
8233 _ACEOF
8234 rm -f conftest.$ac_objext
8235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8236 (eval $ac_compile) 2>conftest.er1
8237 ac_status=$?
8238 grep -v '^ *+' conftest.er1 >conftest.err
8239 rm -f conftest.er1
8240 cat conftest.err >&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } &&
8243 { ac_try='test -z "$ac_c_werror_flag"
8244 || test ! -s conftest.err'
8245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246 (eval $ac_try) 2>&5
8247 ac_status=$?
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); }; } &&
8250 { ac_try='test -s conftest.$ac_objext'
8251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252 (eval $ac_try) 2>&5
8253 ac_status=$?
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); }; }; then
8256 ac_cv_have_decl_basename=yes
8257 else
8258 echo "$as_me: failed program was:" >&5
8259 sed 's/^/| /' conftest.$ac_ext >&5
8260
8261 ac_cv_have_decl_basename=no
8262 fi
8263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8264 fi
8265 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
8266 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
8267 if test $ac_cv_have_decl_basename = yes; then
8268
8269 cat >>confdefs.h <<_ACEOF
8270 #define HAVE_DECL_BASENAME 1
8271 _ACEOF
8272
8273
8274 else
8275 cat >>confdefs.h <<_ACEOF
8276 #define HAVE_DECL_BASENAME 0
8277 _ACEOF
8278
8279
8280 fi
8281
8282
8283 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
8284 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
8285 if test "${ac_cv_have_decl_ftello+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 else
8288 cat >conftest.$ac_ext <<_ACEOF
8289 /* confdefs.h. */
8290 _ACEOF
8291 cat confdefs.h >>conftest.$ac_ext
8292 cat >>conftest.$ac_ext <<_ACEOF
8293 /* end confdefs.h. */
8294 $ac_includes_default
8295 int
8296 main ()
8297 {
8298 #ifndef ftello
8299 char *p = (char *) ftello;
8300 #endif
8301
8302 ;
8303 return 0;
8304 }
8305 _ACEOF
8306 rm -f conftest.$ac_objext
8307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8308 (eval $ac_compile) 2>conftest.er1
8309 ac_status=$?
8310 grep -v '^ *+' conftest.er1 >conftest.err
8311 rm -f conftest.er1
8312 cat conftest.err >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } &&
8315 { ac_try='test -z "$ac_c_werror_flag"
8316 || test ! -s conftest.err'
8317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8318 (eval $ac_try) 2>&5
8319 ac_status=$?
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); }; } &&
8322 { ac_try='test -s conftest.$ac_objext'
8323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324 (eval $ac_try) 2>&5
8325 ac_status=$?
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); }; }; then
8328 ac_cv_have_decl_ftello=yes
8329 else
8330 echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.$ac_ext >&5
8332
8333 ac_cv_have_decl_ftello=no
8334 fi
8335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8336 fi
8337 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
8338 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
8339 if test $ac_cv_have_decl_ftello = yes; then
8340
8341 cat >>confdefs.h <<_ACEOF
8342 #define HAVE_DECL_FTELLO 1
8343 _ACEOF
8344
8345
8346 else
8347 cat >>confdefs.h <<_ACEOF
8348 #define HAVE_DECL_FTELLO 0
8349 _ACEOF
8350
8351
8352 fi
8353
8354
8355 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
8356 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
8357 if test "${ac_cv_have_decl_ftello64+set}" = set; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
8359 else
8360 cat >conftest.$ac_ext <<_ACEOF
8361 /* confdefs.h. */
8362 _ACEOF
8363 cat confdefs.h >>conftest.$ac_ext
8364 cat >>conftest.$ac_ext <<_ACEOF
8365 /* end confdefs.h. */
8366 $ac_includes_default
8367 int
8368 main ()
8369 {
8370 #ifndef ftello64
8371 char *p = (char *) ftello64;
8372 #endif
8373
8374 ;
8375 return 0;
8376 }
8377 _ACEOF
8378 rm -f conftest.$ac_objext
8379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8380 (eval $ac_compile) 2>conftest.er1
8381 ac_status=$?
8382 grep -v '^ *+' conftest.er1 >conftest.err
8383 rm -f conftest.er1
8384 cat conftest.err >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); } &&
8387 { ac_try='test -z "$ac_c_werror_flag"
8388 || test ! -s conftest.err'
8389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390 (eval $ac_try) 2>&5
8391 ac_status=$?
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); }; } &&
8394 { ac_try='test -s conftest.$ac_objext'
8395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396 (eval $ac_try) 2>&5
8397 ac_status=$?
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); }; }; then
8400 ac_cv_have_decl_ftello64=yes
8401 else
8402 echo "$as_me: failed program was:" >&5
8403 sed 's/^/| /' conftest.$ac_ext >&5
8404
8405 ac_cv_have_decl_ftello64=no
8406 fi
8407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8408 fi
8409 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
8410 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
8411 if test $ac_cv_have_decl_ftello64 = yes; then
8412
8413 cat >>confdefs.h <<_ACEOF
8414 #define HAVE_DECL_FTELLO64 1
8415 _ACEOF
8416
8417
8418 else
8419 cat >>confdefs.h <<_ACEOF
8420 #define HAVE_DECL_FTELLO64 0
8421 _ACEOF
8422
8423
8424 fi
8425
8426
8427 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
8428 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
8429 if test "${ac_cv_have_decl_fseeko+set}" = set; then
8430 echo $ECHO_N "(cached) $ECHO_C" >&6
8431 else
8432 cat >conftest.$ac_ext <<_ACEOF
8433 /* confdefs.h. */
8434 _ACEOF
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h. */
8438 $ac_includes_default
8439 int
8440 main ()
8441 {
8442 #ifndef fseeko
8443 char *p = (char *) fseeko;
8444 #endif
8445
8446 ;
8447 return 0;
8448 }
8449 _ACEOF
8450 rm -f conftest.$ac_objext
8451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8452 (eval $ac_compile) 2>conftest.er1
8453 ac_status=$?
8454 grep -v '^ *+' conftest.er1 >conftest.err
8455 rm -f conftest.er1
8456 cat conftest.err >&5
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); } &&
8459 { ac_try='test -z "$ac_c_werror_flag"
8460 || test ! -s conftest.err'
8461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462 (eval $ac_try) 2>&5
8463 ac_status=$?
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; } &&
8466 { ac_try='test -s conftest.$ac_objext'
8467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8468 (eval $ac_try) 2>&5
8469 ac_status=$?
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); }; }; then
8472 ac_cv_have_decl_fseeko=yes
8473 else
8474 echo "$as_me: failed program was:" >&5
8475 sed 's/^/| /' conftest.$ac_ext >&5
8476
8477 ac_cv_have_decl_fseeko=no
8478 fi
8479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8480 fi
8481 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
8482 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
8483 if test $ac_cv_have_decl_fseeko = yes; then
8484
8485 cat >>confdefs.h <<_ACEOF
8486 #define HAVE_DECL_FSEEKO 1
8487 _ACEOF
8488
8489
8490 else
8491 cat >>confdefs.h <<_ACEOF
8492 #define HAVE_DECL_FSEEKO 0
8493 _ACEOF
8494
8495
8496 fi
8497
8498
8499 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
8500 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
8501 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
8502 echo $ECHO_N "(cached) $ECHO_C" >&6
8503 else
8504 cat >conftest.$ac_ext <<_ACEOF
8505 /* confdefs.h. */
8506 _ACEOF
8507 cat confdefs.h >>conftest.$ac_ext
8508 cat >>conftest.$ac_ext <<_ACEOF
8509 /* end confdefs.h. */
8510 $ac_includes_default
8511 int
8512 main ()
8513 {
8514 #ifndef fseeko64
8515 char *p = (char *) fseeko64;
8516 #endif
8517
8518 ;
8519 return 0;
8520 }
8521 _ACEOF
8522 rm -f conftest.$ac_objext
8523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8524 (eval $ac_compile) 2>conftest.er1
8525 ac_status=$?
8526 grep -v '^ *+' conftest.er1 >conftest.err
8527 rm -f conftest.er1
8528 cat conftest.err >&5
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); } &&
8531 { ac_try='test -z "$ac_c_werror_flag"
8532 || test ! -s conftest.err'
8533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534 (eval $ac_try) 2>&5
8535 ac_status=$?
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; } &&
8538 { ac_try='test -s conftest.$ac_objext'
8539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540 (eval $ac_try) 2>&5
8541 ac_status=$?
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); }; }; then
8544 ac_cv_have_decl_fseeko64=yes
8545 else
8546 echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8548
8549 ac_cv_have_decl_fseeko64=no
8550 fi
8551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8552 fi
8553 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
8554 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
8555 if test $ac_cv_have_decl_fseeko64 = yes; then
8556
8557 cat >>confdefs.h <<_ACEOF
8558 #define HAVE_DECL_FSEEKO64 1
8559 _ACEOF
8560
8561
8562 else
8563 cat >>confdefs.h <<_ACEOF
8564 #define HAVE_DECL_FSEEKO64 0
8565 _ACEOF
8566
8567
8568 fi
8569
8570
8571
8572
8573 case "${host}" in
8574 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
8575
8576 cat >>confdefs.h <<\_ACEOF
8577 #define USE_BINARY_FOPEN 1
8578 _ACEOF
8579 ;;
8580 esac
8581
8582 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
8583 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
8584 if test "${ac_cv_have_decl_ffs+set}" = set; then
8585 echo $ECHO_N "(cached) $ECHO_C" >&6
8586 else
8587 cat >conftest.$ac_ext <<_ACEOF
8588 /* confdefs.h. */
8589 _ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h. */
8593 $ac_includes_default
8594 int
8595 main ()
8596 {
8597 #ifndef ffs
8598 char *p = (char *) ffs;
8599 #endif
8600
8601 ;
8602 return 0;
8603 }
8604 _ACEOF
8605 rm -f conftest.$ac_objext
8606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8607 (eval $ac_compile) 2>conftest.er1
8608 ac_status=$?
8609 grep -v '^ *+' conftest.er1 >conftest.err
8610 rm -f conftest.er1
8611 cat conftest.err >&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); } &&
8614 { ac_try='test -z "$ac_c_werror_flag"
8615 || test ! -s conftest.err'
8616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617 (eval $ac_try) 2>&5
8618 ac_status=$?
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; } &&
8621 { ac_try='test -s conftest.$ac_objext'
8622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623 (eval $ac_try) 2>&5
8624 ac_status=$?
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; }; then
8627 ac_cv_have_decl_ffs=yes
8628 else
8629 echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8631
8632 ac_cv_have_decl_ffs=no
8633 fi
8634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8635 fi
8636 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
8637 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
8638 if test $ac_cv_have_decl_ffs = yes; then
8639
8640 cat >>confdefs.h <<_ACEOF
8641 #define HAVE_DECL_FFS 1
8642 _ACEOF
8643
8644
8645 else
8646 cat >>confdefs.h <<_ACEOF
8647 #define HAVE_DECL_FFS 0
8648 _ACEOF
8649
8650
8651 fi
8652
8653
8654 echo "$as_me:$LINENO: checking whether free is declared" >&5
8655 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
8656 if test "${ac_cv_have_decl_free+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8658 else
8659 cat >conftest.$ac_ext <<_ACEOF
8660 /* confdefs.h. */
8661 _ACEOF
8662 cat confdefs.h >>conftest.$ac_ext
8663 cat >>conftest.$ac_ext <<_ACEOF
8664 /* end confdefs.h. */
8665 $ac_includes_default
8666 int
8667 main ()
8668 {
8669 #ifndef free
8670 char *p = (char *) free;
8671 #endif
8672
8673 ;
8674 return 0;
8675 }
8676 _ACEOF
8677 rm -f conftest.$ac_objext
8678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8679 (eval $ac_compile) 2>conftest.er1
8680 ac_status=$?
8681 grep -v '^ *+' conftest.er1 >conftest.err
8682 rm -f conftest.er1
8683 cat conftest.err >&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); } &&
8686 { ac_try='test -z "$ac_c_werror_flag"
8687 || test ! -s conftest.err'
8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689 (eval $ac_try) 2>&5
8690 ac_status=$?
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; } &&
8693 { ac_try='test -s conftest.$ac_objext'
8694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8695 (eval $ac_try) 2>&5
8696 ac_status=$?
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); }; }; then
8699 ac_cv_have_decl_free=yes
8700 else
8701 echo "$as_me: failed program was:" >&5
8702 sed 's/^/| /' conftest.$ac_ext >&5
8703
8704 ac_cv_have_decl_free=no
8705 fi
8706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8707 fi
8708 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
8709 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
8710 if test $ac_cv_have_decl_free = yes; then
8711
8712 cat >>confdefs.h <<_ACEOF
8713 #define HAVE_DECL_FREE 1
8714 _ACEOF
8715
8716
8717 else
8718 cat >>confdefs.h <<_ACEOF
8719 #define HAVE_DECL_FREE 0
8720 _ACEOF
8721
8722
8723 fi
8724
8725
8726 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8727 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
8728 if test "${ac_cv_have_decl_getenv+set}" = set; then
8729 echo $ECHO_N "(cached) $ECHO_C" >&6
8730 else
8731 cat >conftest.$ac_ext <<_ACEOF
8732 /* confdefs.h. */
8733 _ACEOF
8734 cat confdefs.h >>conftest.$ac_ext
8735 cat >>conftest.$ac_ext <<_ACEOF
8736 /* end confdefs.h. */
8737 $ac_includes_default
8738 int
8739 main ()
8740 {
8741 #ifndef getenv
8742 char *p = (char *) getenv;
8743 #endif
8744
8745 ;
8746 return 0;
8747 }
8748 _ACEOF
8749 rm -f conftest.$ac_objext
8750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8751 (eval $ac_compile) 2>conftest.er1
8752 ac_status=$?
8753 grep -v '^ *+' conftest.er1 >conftest.err
8754 rm -f conftest.er1
8755 cat conftest.err >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); } &&
8758 { ac_try='test -z "$ac_c_werror_flag"
8759 || test ! -s conftest.err'
8760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8761 (eval $ac_try) 2>&5
8762 ac_status=$?
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); }; } &&
8765 { ac_try='test -s conftest.$ac_objext'
8766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8767 (eval $ac_try) 2>&5
8768 ac_status=$?
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); }; }; then
8771 ac_cv_have_decl_getenv=yes
8772 else
8773 echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8775
8776 ac_cv_have_decl_getenv=no
8777 fi
8778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8779 fi
8780 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
8781 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
8782 if test $ac_cv_have_decl_getenv = yes; then
8783
8784 cat >>confdefs.h <<_ACEOF
8785 #define HAVE_DECL_GETENV 1
8786 _ACEOF
8787
8788
8789 else
8790 cat >>confdefs.h <<_ACEOF
8791 #define HAVE_DECL_GETENV 0
8792 _ACEOF
8793
8794
8795 fi
8796
8797
8798 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
8799 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
8800 if test "${ac_cv_have_decl_malloc+set}" = set; then
8801 echo $ECHO_N "(cached) $ECHO_C" >&6
8802 else
8803 cat >conftest.$ac_ext <<_ACEOF
8804 /* confdefs.h. */
8805 _ACEOF
8806 cat confdefs.h >>conftest.$ac_ext
8807 cat >>conftest.$ac_ext <<_ACEOF
8808 /* end confdefs.h. */
8809 $ac_includes_default
8810 int
8811 main ()
8812 {
8813 #ifndef malloc
8814 char *p = (char *) malloc;
8815 #endif
8816
8817 ;
8818 return 0;
8819 }
8820 _ACEOF
8821 rm -f conftest.$ac_objext
8822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8823 (eval $ac_compile) 2>conftest.er1
8824 ac_status=$?
8825 grep -v '^ *+' conftest.er1 >conftest.err
8826 rm -f conftest.er1
8827 cat conftest.err >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); } &&
8830 { ac_try='test -z "$ac_c_werror_flag"
8831 || test ! -s conftest.err'
8832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833 (eval $ac_try) 2>&5
8834 ac_status=$?
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; } &&
8837 { ac_try='test -s conftest.$ac_objext'
8838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839 (eval $ac_try) 2>&5
8840 ac_status=$?
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); }; }; then
8843 ac_cv_have_decl_malloc=yes
8844 else
8845 echo "$as_me: failed program was:" >&5
8846 sed 's/^/| /' conftest.$ac_ext >&5
8847
8848 ac_cv_have_decl_malloc=no
8849 fi
8850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8851 fi
8852 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
8853 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
8854 if test $ac_cv_have_decl_malloc = yes; then
8855
8856 cat >>confdefs.h <<_ACEOF
8857 #define HAVE_DECL_MALLOC 1
8858 _ACEOF
8859
8860
8861 else
8862 cat >>confdefs.h <<_ACEOF
8863 #define HAVE_DECL_MALLOC 0
8864 _ACEOF
8865
8866
8867 fi
8868
8869
8870 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
8871 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
8872 if test "${ac_cv_have_decl_realloc+set}" = set; then
8873 echo $ECHO_N "(cached) $ECHO_C" >&6
8874 else
8875 cat >conftest.$ac_ext <<_ACEOF
8876 /* confdefs.h. */
8877 _ACEOF
8878 cat confdefs.h >>conftest.$ac_ext
8879 cat >>conftest.$ac_ext <<_ACEOF
8880 /* end confdefs.h. */
8881 $ac_includes_default
8882 int
8883 main ()
8884 {
8885 #ifndef realloc
8886 char *p = (char *) realloc;
8887 #endif
8888
8889 ;
8890 return 0;
8891 }
8892 _ACEOF
8893 rm -f conftest.$ac_objext
8894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8895 (eval $ac_compile) 2>conftest.er1
8896 ac_status=$?
8897 grep -v '^ *+' conftest.er1 >conftest.err
8898 rm -f conftest.er1
8899 cat conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } &&
8902 { ac_try='test -z "$ac_c_werror_flag"
8903 || test ! -s conftest.err'
8904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8905 (eval $ac_try) 2>&5
8906 ac_status=$?
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); }; } &&
8909 { ac_try='test -s conftest.$ac_objext'
8910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911 (eval $ac_try) 2>&5
8912 ac_status=$?
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }; }; then
8915 ac_cv_have_decl_realloc=yes
8916 else
8917 echo "$as_me: failed program was:" >&5
8918 sed 's/^/| /' conftest.$ac_ext >&5
8919
8920 ac_cv_have_decl_realloc=no
8921 fi
8922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8923 fi
8924 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
8925 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
8926 if test $ac_cv_have_decl_realloc = yes; then
8927
8928 cat >>confdefs.h <<_ACEOF
8929 #define HAVE_DECL_REALLOC 1
8930 _ACEOF
8931
8932
8933 else
8934 cat >>confdefs.h <<_ACEOF
8935 #define HAVE_DECL_REALLOC 0
8936 _ACEOF
8937
8938
8939 fi
8940
8941
8942 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
8943 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
8944 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
8945 echo $ECHO_N "(cached) $ECHO_C" >&6
8946 else
8947 cat >conftest.$ac_ext <<_ACEOF
8948 /* confdefs.h. */
8949 _ACEOF
8950 cat confdefs.h >>conftest.$ac_ext
8951 cat >>conftest.$ac_ext <<_ACEOF
8952 /* end confdefs.h. */
8953 $ac_includes_default
8954 int
8955 main ()
8956 {
8957 #ifndef stpcpy
8958 char *p = (char *) stpcpy;
8959 #endif
8960
8961 ;
8962 return 0;
8963 }
8964 _ACEOF
8965 rm -f conftest.$ac_objext
8966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8967 (eval $ac_compile) 2>conftest.er1
8968 ac_status=$?
8969 grep -v '^ *+' conftest.er1 >conftest.err
8970 rm -f conftest.er1
8971 cat conftest.err >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); } &&
8974 { ac_try='test -z "$ac_c_werror_flag"
8975 || test ! -s conftest.err'
8976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977 (eval $ac_try) 2>&5
8978 ac_status=$?
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); }; } &&
8981 { ac_try='test -s conftest.$ac_objext'
8982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8983 (eval $ac_try) 2>&5
8984 ac_status=$?
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); }; }; then
8987 ac_cv_have_decl_stpcpy=yes
8988 else
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8991
8992 ac_cv_have_decl_stpcpy=no
8993 fi
8994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8995 fi
8996 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
8997 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
8998 if test $ac_cv_have_decl_stpcpy = yes; then
8999
9000 cat >>confdefs.h <<_ACEOF
9001 #define HAVE_DECL_STPCPY 1
9002 _ACEOF
9003
9004
9005 else
9006 cat >>confdefs.h <<_ACEOF
9007 #define HAVE_DECL_STPCPY 0
9008 _ACEOF
9009
9010
9011 fi
9012
9013
9014 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
9015 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
9016 if test "${ac_cv_have_decl_strstr+set}" = set; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9018 else
9019 cat >conftest.$ac_ext <<_ACEOF
9020 /* confdefs.h. */
9021 _ACEOF
9022 cat confdefs.h >>conftest.$ac_ext
9023 cat >>conftest.$ac_ext <<_ACEOF
9024 /* end confdefs.h. */
9025 $ac_includes_default
9026 int
9027 main ()
9028 {
9029 #ifndef strstr
9030 char *p = (char *) strstr;
9031 #endif
9032
9033 ;
9034 return 0;
9035 }
9036 _ACEOF
9037 rm -f conftest.$ac_objext
9038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9039 (eval $ac_compile) 2>conftest.er1
9040 ac_status=$?
9041 grep -v '^ *+' conftest.er1 >conftest.err
9042 rm -f conftest.er1
9043 cat conftest.err >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); } &&
9046 { ac_try='test -z "$ac_c_werror_flag"
9047 || test ! -s conftest.err'
9048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9049 (eval $ac_try) 2>&5
9050 ac_status=$?
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); }; } &&
9053 { ac_try='test -s conftest.$ac_objext'
9054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055 (eval $ac_try) 2>&5
9056 ac_status=$?
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); }; }; then
9059 ac_cv_have_decl_strstr=yes
9060 else
9061 echo "$as_me: failed program was:" >&5
9062 sed 's/^/| /' conftest.$ac_ext >&5
9063
9064 ac_cv_have_decl_strstr=no
9065 fi
9066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9067 fi
9068 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
9069 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
9070 if test $ac_cv_have_decl_strstr = yes; then
9071
9072 cat >>confdefs.h <<_ACEOF
9073 #define HAVE_DECL_STRSTR 1
9074 _ACEOF
9075
9076
9077 else
9078 cat >>confdefs.h <<_ACEOF
9079 #define HAVE_DECL_STRSTR 0
9080 _ACEOF
9081
9082
9083 fi
9084
9085
9086 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
9087 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
9088 if test "${ac_cv_have_decl_snprintf+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9090 else
9091 cat >conftest.$ac_ext <<_ACEOF
9092 /* confdefs.h. */
9093 _ACEOF
9094 cat confdefs.h >>conftest.$ac_ext
9095 cat >>conftest.$ac_ext <<_ACEOF
9096 /* end confdefs.h. */
9097 $ac_includes_default
9098 int
9099 main ()
9100 {
9101 #ifndef snprintf
9102 char *p = (char *) snprintf;
9103 #endif
9104
9105 ;
9106 return 0;
9107 }
9108 _ACEOF
9109 rm -f conftest.$ac_objext
9110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9111 (eval $ac_compile) 2>conftest.er1
9112 ac_status=$?
9113 grep -v '^ *+' conftest.er1 >conftest.err
9114 rm -f conftest.er1
9115 cat conftest.err >&5
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); } &&
9118 { ac_try='test -z "$ac_c_werror_flag"
9119 || test ! -s conftest.err'
9120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9121 (eval $ac_try) 2>&5
9122 ac_status=$?
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); }; } &&
9125 { ac_try='test -s conftest.$ac_objext'
9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9127 (eval $ac_try) 2>&5
9128 ac_status=$?
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; }; then
9131 ac_cv_have_decl_snprintf=yes
9132 else
9133 echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9135
9136 ac_cv_have_decl_snprintf=no
9137 fi
9138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9139 fi
9140 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
9141 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
9142 if test $ac_cv_have_decl_snprintf = yes; then
9143
9144 cat >>confdefs.h <<_ACEOF
9145 #define HAVE_DECL_SNPRINTF 1
9146 _ACEOF
9147
9148
9149 else
9150 cat >>confdefs.h <<_ACEOF
9151 #define HAVE_DECL_SNPRINTF 0
9152 _ACEOF
9153
9154
9155 fi
9156
9157
9158 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
9159 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
9160 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9162 else
9163 cat >conftest.$ac_ext <<_ACEOF
9164 /* confdefs.h. */
9165 _ACEOF
9166 cat confdefs.h >>conftest.$ac_ext
9167 cat >>conftest.$ac_ext <<_ACEOF
9168 /* end confdefs.h. */
9169 $ac_includes_default
9170 int
9171 main ()
9172 {
9173 #ifndef vsnprintf
9174 char *p = (char *) vsnprintf;
9175 #endif
9176
9177 ;
9178 return 0;
9179 }
9180 _ACEOF
9181 rm -f conftest.$ac_objext
9182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9183 (eval $ac_compile) 2>conftest.er1
9184 ac_status=$?
9185 grep -v '^ *+' conftest.er1 >conftest.err
9186 rm -f conftest.er1
9187 cat conftest.err >&5
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); } &&
9190 { ac_try='test -z "$ac_c_werror_flag"
9191 || test ! -s conftest.err'
9192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9193 (eval $ac_try) 2>&5
9194 ac_status=$?
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); }; } &&
9197 { ac_try='test -s conftest.$ac_objext'
9198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9199 (eval $ac_try) 2>&5
9200 ac_status=$?
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); }; }; then
9203 ac_cv_have_decl_vsnprintf=yes
9204 else
9205 echo "$as_me: failed program was:" >&5
9206 sed 's/^/| /' conftest.$ac_ext >&5
9207
9208 ac_cv_have_decl_vsnprintf=no
9209 fi
9210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9211 fi
9212 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
9213 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
9214 if test $ac_cv_have_decl_vsnprintf = yes; then
9215
9216 cat >>confdefs.h <<_ACEOF
9217 #define HAVE_DECL_VSNPRINTF 1
9218 _ACEOF
9219
9220
9221 else
9222 cat >>confdefs.h <<_ACEOF
9223 #define HAVE_DECL_VSNPRINTF 0
9224 _ACEOF
9225
9226
9227 fi
9228
9229
9230
9231 # If we are configured native, pick a core file support file.
9232 COREFILE=
9233 COREFLAG=
9234 TRAD_HEADER=
9235 if test "${target}" = "${host}"; then
9236 case "${host}" in
9237 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
9238 COREFILE=''
9239 ;;
9240 alpha*-*-linux-*)
9241 COREFILE=trad-core.lo
9242 TRAD_HEADER='"hosts/alphalinux.h"'
9243 ;;
9244 alpha*-*-netbsd* | alpha*-*-openbsd*)
9245 COREFILE=netbsd-core.lo
9246 ;;
9247 alpha*-*-*) COREFILE=osf-core.lo ;;
9248 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
9249 COREFILE='' ;;
9250 arm-*-netbsd* | arm-*-openbsd*)
9251 COREFILE=netbsd-core.lo
9252 ;;
9253 arm-*-riscix) COREFILE=trad-core.lo ;;
9254 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
9255 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
9256 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
9257 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
9258 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
9259 hppa*-*-netbsd* | hppa*-*-openbsd*)
9260 COREFILE=netbsd-core.lo
9261 ;;
9262
9263 i370-*-*)
9264 COREFILE=trad-core.lo
9265 TRAD_HEADER='"hosts/i370linux.h"'
9266 ;;
9267
9268 i[3-7]86-sequent-bsd*)
9269 COREFILE=trad-core.lo
9270 TRAD_HEADER='"hosts/symmetry.h"'
9271 ;;
9272 i[3-7]86-sequent-sysv4*) ;;
9273 i[3-7]86-sequent-sysv*)
9274 COREFILE=trad-core.lo
9275 TRAD_HEADER='"hosts/symmetry.h"'
9276 ;;
9277 i[3-7]86-*-bsdi)
9278 COREFILE=
9279 ;;
9280 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*)
9281 COREFILE=trad-core.lo
9282 TRAD_HEADER='"hosts/i386bsd.h"'
9283 ;;
9284 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
9285 COREFILE=''
9286 TRAD_HEADER='"hosts/i386bsd.h"'
9287 ;;
9288 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
9289 COREFILE=netbsd-core.lo
9290 ;;
9291 i[3-7]86-esix-sysv3*)
9292 COREFILE=trad-core.lo
9293 TRAD_HEADER='"hosts/esix.h"'
9294 ;;
9295 i[3-7]86-*-sco3.2v5*)
9296 COREFILE=sco5-core.lo
9297 ;;
9298 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
9299 COREFILE=trad-core.lo
9300 TRAD_HEADER='"hosts/i386sco.h"'
9301 ;;
9302 i[3-7]86-*-mach3*)
9303 COREFILE=trad-core.lo
9304 TRAD_HEADER='"hosts/i386mach3.h"'
9305 ;;
9306 i[3-7]86-*-linux-*)
9307 COREFILE=trad-core.lo
9308 TRAD_HEADER='"hosts/i386linux.h"'
9309 ;;
9310 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
9311 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
9312 i860-*-mach3* | i860-*-osf1*)
9313 COREFILE=trad-core.lo
9314 TRAD_HEADER='"hosts/i860mach3.h"'
9315 ;;
9316 mips-*-netbsd* | mips*-*-openbsd*)
9317 COREFILE=netbsd-core.lo
9318 ;;
9319 mips-dec-*)
9320 COREFILE=trad-core.lo
9321 TRAD_HEADER='"hosts/decstation.h"'
9322 ;;
9323 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
9324 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
9325 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
9326 mips-*-sysv4*) ;;
9327 mips-*-sysv* | mips-*-riscos*)
9328 COREFILE=trad-core.lo
9329 TRAD_HEADER='"hosts/riscos.h"'
9330 ;;
9331 mips-sony-bsd*)
9332 COREFILE=trad-core.lo
9333 TRAD_HEADER='"hosts/news-mips.h"'
9334 ;;
9335 m68*-bull*-sysv*)
9336 COREFILE=trad-core.lo
9337 TRAD_HEADER='"hosts/dpx2.h"'
9338 ;;
9339 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
9340 m68*-hp-bsd*)
9341 COREFILE=trad-core.lo
9342 TRAD_HEADER='"hosts/hp300bsd.h"'
9343 ;;
9344 m68*-*-linux-*)
9345 COREFILE=trad-core.lo
9346 TRAD_HEADER='"hosts/m68klinux.h"'
9347 ;;
9348 m68*-motorola-sysv*)
9349 COREFILE=trad-core.lo
9350 TRAD_HEADER='"hosts/delta68.h"'
9351 ;;
9352 m68*-sony-*)
9353 COREFILE=trad-core.lo
9354 TRAD_HEADER='"hosts/news.h"'
9355 ;;
9356 m68*-*-netbsd* | m68*-*-openbsd*)
9357 COREFILE=netbsd-core.lo
9358 ;;
9359 m68*-apple-aux*)
9360 COREFILE=trad-core.lo
9361 TRAD_HEADER='"hosts/m68kaux.h"'
9362 ;;
9363 m88*-*-sysv4*)
9364 ;;
9365 m88*-motorola-sysv*)
9366 COREFILE=ptrace-core.lo
9367 ;;
9368 m88*-*-mach3*)
9369 COREFILE=trad-core.lo
9370 TRAD_HEADER='"hosts/m88kmach3.h"'
9371 ;;
9372 m88*-*-openbsd*)
9373 COREFILE=netbsd-core.lo
9374 ;;
9375 ns32k-pc532-mach)
9376 COREFILE=trad-core.lo
9377 TRAD_HEADER='"hosts/pc532mach.h"'
9378 ;;
9379 ns32k-*-netbsd* | ns32k-*-openbsd*)
9380 COREFILE=netbsd-core.lo
9381 ;;
9382 rs6000-*-lynx*)
9383 COREFILE=lynx-core.lo
9384 ;;
9385 rs6000-*-aix5.* | powerpc-*-aix5.*)
9386 COREFILE=rs6000-core.lo
9387 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
9388 ;;
9389 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
9390 COREFILE=rs6000-core.lo
9391 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
9392 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
9393 # have c_impl as a member of struct core_dumpx
9394 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
9395 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
9396 cat >conftest.$ac_ext <<_ACEOF
9397 /* confdefs.h. */
9398 _ACEOF
9399 cat confdefs.h >>conftest.$ac_ext
9400 cat >>conftest.$ac_ext <<_ACEOF
9401 /* end confdefs.h. */
9402 #include <core.h>
9403 int
9404 main ()
9405 {
9406 struct core_dumpx c; c.c_impl = 0;
9407 ;
9408 return 0;
9409 }
9410 _ACEOF
9411 rm -f conftest.$ac_objext
9412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9413 (eval $ac_compile) 2>conftest.er1
9414 ac_status=$?
9415 grep -v '^ *+' conftest.er1 >conftest.err
9416 rm -f conftest.er1
9417 cat conftest.err >&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } &&
9420 { ac_try='test -z "$ac_c_werror_flag"
9421 || test ! -s conftest.err'
9422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423 (eval $ac_try) 2>&5
9424 ac_status=$?
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; } &&
9427 { ac_try='test -s conftest.$ac_objext'
9428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9429 (eval $ac_try) 2>&5
9430 ac_status=$?
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); }; }; then
9433
9434 cat >>confdefs.h <<\_ACEOF
9435 #define HAVE_ST_C_IMPL 1
9436 _ACEOF
9437
9438 echo "$as_me:$LINENO: result: yes" >&5
9439 echo "${ECHO_T}yes" >&6
9440 else
9441 echo "$as_me: failed program was:" >&5
9442 sed 's/^/| /' conftest.$ac_ext >&5
9443
9444 echo "$as_me:$LINENO: result: no" >&5
9445 echo "${ECHO_T}no" >&6
9446 fi
9447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9448 ;;
9449 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
9450 rs6000-*-*) COREFILE=rs6000-core.lo ;;
9451 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
9452 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
9453 powerpc-*-beos*) ;;
9454 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
9455 COREFILE='' ;;
9456 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
9457 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
9458 s390*-*-*) COREFILE=trad-core.lo ;;
9459 sh*-*-netbsd* | sh*-*-openbsd*)
9460 COREFILE=netbsd-core.lo
9461 ;;
9462 sparc-*-netbsd* | sparc*-*-openbsd*)
9463 COREFILE=netbsd-core.lo
9464 ;;
9465 tahoe-*-*)
9466 COREFILE=trad-core.lo
9467 TRAD_HEADER='"hosts/tahoe.h"'
9468 ;;
9469 vax-*-netbsd* | vax-*-openbsd*)
9470 COREFILE=netbsd-core.lo
9471 ;;
9472 vax-*-ultrix2*)
9473 COREFILE=trad-core.lo
9474 TRAD_HEADER='"hosts/vaxult2.h"'
9475 ;;
9476 vax-*-ultrix*)
9477 COREFILE=trad-core.lo
9478 TRAD_HEADER='"hosts/vaxult2.h"'
9479 ;;
9480 vax-*-linux-*)
9481 COREFILE=trad-core.lo
9482 TRAD_HEADER='"hosts/vaxlinux.h"'
9483 ;;
9484 vax-*-*)
9485 COREFILE=trad-core.lo
9486 TRAD_HEADER='"hosts/vaxbsd.h"'
9487 ;;
9488 x86_64-*-netbsd* | x86_64-*-openbsd*)
9489 COREFILE=netbsd-core.lo
9490 ;;
9491 esac
9492
9493 case "$COREFILE" in
9494 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
9495 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
9496 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
9497 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
9498 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
9499 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
9500 osf-core.lo) COREFLAG=-DOSF_CORE ;;
9501 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
9502 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
9503 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
9504 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
9505 esac
9506
9507 # ELF corefile support has several flavors, but all of
9508 # them use something called <sys/procfs.h>
9509
9510 for ac_header in sys/procfs.h
9511 do
9512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9514 echo "$as_me:$LINENO: checking for $ac_header" >&5
9515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9517 echo $ECHO_N "(cached) $ECHO_C" >&6
9518 fi
9519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9521 else
9522 # Is the header compilable?
9523 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9525 cat >conftest.$ac_ext <<_ACEOF
9526 /* confdefs.h. */
9527 _ACEOF
9528 cat confdefs.h >>conftest.$ac_ext
9529 cat >>conftest.$ac_ext <<_ACEOF
9530 /* end confdefs.h. */
9531 $ac_includes_default
9532 #include <$ac_header>
9533 _ACEOF
9534 rm -f conftest.$ac_objext
9535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9536 (eval $ac_compile) 2>conftest.er1
9537 ac_status=$?
9538 grep -v '^ *+' conftest.er1 >conftest.err
9539 rm -f conftest.er1
9540 cat conftest.err >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } &&
9543 { ac_try='test -z "$ac_c_werror_flag"
9544 || test ! -s conftest.err'
9545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9546 (eval $ac_try) 2>&5
9547 ac_status=$?
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); }; } &&
9550 { ac_try='test -s conftest.$ac_objext'
9551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552 (eval $ac_try) 2>&5
9553 ac_status=$?
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); }; }; then
9556 ac_header_compiler=yes
9557 else
9558 echo "$as_me: failed program was:" >&5
9559 sed 's/^/| /' conftest.$ac_ext >&5
9560
9561 ac_header_compiler=no
9562 fi
9563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9564 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9565 echo "${ECHO_T}$ac_header_compiler" >&6
9566
9567 # Is the header present?
9568 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9570 cat >conftest.$ac_ext <<_ACEOF
9571 /* confdefs.h. */
9572 _ACEOF
9573 cat confdefs.h >>conftest.$ac_ext
9574 cat >>conftest.$ac_ext <<_ACEOF
9575 /* end confdefs.h. */
9576 #include <$ac_header>
9577 _ACEOF
9578 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9579 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9580 ac_status=$?
9581 grep -v '^ *+' conftest.er1 >conftest.err
9582 rm -f conftest.er1
9583 cat conftest.err >&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } >/dev/null; then
9586 if test -s conftest.err; then
9587 ac_cpp_err=$ac_c_preproc_warn_flag
9588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9589 else
9590 ac_cpp_err=
9591 fi
9592 else
9593 ac_cpp_err=yes
9594 fi
9595 if test -z "$ac_cpp_err"; then
9596 ac_header_preproc=yes
9597 else
9598 echo "$as_me: failed program was:" >&5
9599 sed 's/^/| /' conftest.$ac_ext >&5
9600
9601 ac_header_preproc=no
9602 fi
9603 rm -f conftest.err conftest.$ac_ext
9604 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9605 echo "${ECHO_T}$ac_header_preproc" >&6
9606
9607 # So? What about this header?
9608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9609 yes:no: )
9610 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9611 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9613 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9614 ac_header_preproc=yes
9615 ;;
9616 no:yes:* )
9617 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9618 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9619 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9620 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9621 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9622 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9623 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9624 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9627 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9628 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9629 (
9630 cat <<\_ASBOX
9631 ## ------------------------------------------ ##
9632 ## Report this to the AC_PACKAGE_NAME lists. ##
9633 ## ------------------------------------------ ##
9634 _ASBOX
9635 ) |
9636 sed "s/^/$as_me: WARNING: /" >&2
9637 ;;
9638 esac
9639 echo "$as_me:$LINENO: checking for $ac_header" >&5
9640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9642 echo $ECHO_N "(cached) $ECHO_C" >&6
9643 else
9644 eval "$as_ac_Header=\$ac_header_preproc"
9645 fi
9646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9648
9649 fi
9650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9651 cat >>confdefs.h <<_ACEOF
9652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9653 _ACEOF
9654
9655 fi
9656
9657 done
9658
9659 if test "$ac_cv_header_sys_procfs_h" = yes; then
9660 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
9661 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
9662 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
9663 echo $ECHO_N "(cached) $ECHO_C" >&6
9664 else
9665 cat >conftest.$ac_ext <<_ACEOF
9666 /* confdefs.h. */
9667 _ACEOF
9668 cat confdefs.h >>conftest.$ac_ext
9669 cat >>conftest.$ac_ext <<_ACEOF
9670 /* end confdefs.h. */
9671
9672 #define _SYSCALL32
9673 #include <sys/procfs.h>
9674 int
9675 main ()
9676 {
9677 prstatus_t avar
9678 ;
9679 return 0;
9680 }
9681 _ACEOF
9682 rm -f conftest.$ac_objext
9683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9684 (eval $ac_compile) 2>conftest.er1
9685 ac_status=$?
9686 grep -v '^ *+' conftest.er1 >conftest.err
9687 rm -f conftest.er1
9688 cat conftest.err >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); } &&
9691 { ac_try='test -z "$ac_c_werror_flag"
9692 || test ! -s conftest.err'
9693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694 (eval $ac_try) 2>&5
9695 ac_status=$?
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); }; } &&
9698 { ac_try='test -s conftest.$ac_objext'
9699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9700 (eval $ac_try) 2>&5
9701 ac_status=$?
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); }; }; then
9704 bfd_cv_have_sys_procfs_type_prstatus_t=yes
9705 else
9706 echo "$as_me: failed program was:" >&5
9707 sed 's/^/| /' conftest.$ac_ext >&5
9708
9709 bfd_cv_have_sys_procfs_type_prstatus_t=no
9710
9711 fi
9712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9713 fi
9714
9715 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
9716
9717 cat >>confdefs.h <<\_ACEOF
9718 #define HAVE_PRSTATUS_T 1
9719 _ACEOF
9720
9721 fi
9722 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
9723 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
9724
9725 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
9726 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
9727 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9729 else
9730 cat >conftest.$ac_ext <<_ACEOF
9731 /* confdefs.h. */
9732 _ACEOF
9733 cat confdefs.h >>conftest.$ac_ext
9734 cat >>conftest.$ac_ext <<_ACEOF
9735 /* end confdefs.h. */
9736
9737 #define _SYSCALL32
9738 #include <sys/procfs.h>
9739 int
9740 main ()
9741 {
9742 prstatus32_t avar
9743 ;
9744 return 0;
9745 }
9746 _ACEOF
9747 rm -f conftest.$ac_objext
9748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9749 (eval $ac_compile) 2>conftest.er1
9750 ac_status=$?
9751 grep -v '^ *+' conftest.er1 >conftest.err
9752 rm -f conftest.er1
9753 cat conftest.err >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } &&
9756 { ac_try='test -z "$ac_c_werror_flag"
9757 || test ! -s conftest.err'
9758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 (eval $ac_try) 2>&5
9760 ac_status=$?
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; } &&
9763 { ac_try='test -s conftest.$ac_objext'
9764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765 (eval $ac_try) 2>&5
9766 ac_status=$?
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); }; }; then
9769 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
9770 else
9771 echo "$as_me: failed program was:" >&5
9772 sed 's/^/| /' conftest.$ac_ext >&5
9773
9774 bfd_cv_have_sys_procfs_type_prstatus32_t=no
9775
9776 fi
9777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9778 fi
9779
9780 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
9781
9782 cat >>confdefs.h <<\_ACEOF
9783 #define HAVE_PRSTATUS32_T 1
9784 _ACEOF
9785
9786 fi
9787 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
9788 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
9789
9790 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
9791 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
9792 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
9794 else
9795 cat >conftest.$ac_ext <<_ACEOF
9796 /* confdefs.h. */
9797 _ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9801
9802 #define _SYSCALL32
9803 #include <sys/procfs.h>
9804 int
9805 main ()
9806 {
9807 prstatus_t avar; void* aref = (void*) &avar.pr_who
9808 ;
9809 return 0;
9810 }
9811 _ACEOF
9812 rm -f conftest.$ac_objext
9813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9814 (eval $ac_compile) 2>conftest.er1
9815 ac_status=$?
9816 grep -v '^ *+' conftest.er1 >conftest.err
9817 rm -f conftest.er1
9818 cat conftest.err >&5
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); } &&
9821 { ac_try='test -z "$ac_c_werror_flag"
9822 || test ! -s conftest.err'
9823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824 (eval $ac_try) 2>&5
9825 ac_status=$?
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); }; } &&
9828 { ac_try='test -s conftest.$ac_objext'
9829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830 (eval $ac_try) 2>&5
9831 ac_status=$?
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); }; }; then
9834 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
9835 else
9836 echo "$as_me: failed program was:" >&5
9837 sed 's/^/| /' conftest.$ac_ext >&5
9838
9839 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
9840
9841 fi
9842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9843 fi
9844
9845 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
9846
9847 cat >>confdefs.h <<\_ACEOF
9848 #define HAVE_PRSTATUS_T_PR_WHO 1
9849 _ACEOF
9850
9851 fi
9852 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
9853 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
9854
9855 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
9856 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
9857 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
9858 echo $ECHO_N "(cached) $ECHO_C" >&6
9859 else
9860 cat >conftest.$ac_ext <<_ACEOF
9861 /* confdefs.h. */
9862 _ACEOF
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h. */
9866
9867 #define _SYSCALL32
9868 #include <sys/procfs.h>
9869 int
9870 main ()
9871 {
9872 prstatus32_t avar; void* aref = (void*) &avar.pr_who
9873 ;
9874 return 0;
9875 }
9876 _ACEOF
9877 rm -f conftest.$ac_objext
9878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9879 (eval $ac_compile) 2>conftest.er1
9880 ac_status=$?
9881 grep -v '^ *+' conftest.er1 >conftest.err
9882 rm -f conftest.er1
9883 cat conftest.err >&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); } &&
9886 { ac_try='test -z "$ac_c_werror_flag"
9887 || test ! -s conftest.err'
9888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9889 (eval $ac_try) 2>&5
9890 ac_status=$?
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); }; } &&
9893 { ac_try='test -s conftest.$ac_objext'
9894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9895 (eval $ac_try) 2>&5
9896 ac_status=$?
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); }; }; then
9899 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
9900 else
9901 echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9903
9904 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
9905
9906 fi
9907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9908 fi
9909
9910 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
9911
9912 cat >>confdefs.h <<\_ACEOF
9913 #define HAVE_PRSTATUS32_T_PR_WHO 1
9914 _ACEOF
9915
9916 fi
9917 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
9918 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
9919
9920 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
9921 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
9922 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
9923 echo $ECHO_N "(cached) $ECHO_C" >&6
9924 else
9925 cat >conftest.$ac_ext <<_ACEOF
9926 /* confdefs.h. */
9927 _ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h. */
9931
9932 #define _SYSCALL32
9933 #include <sys/procfs.h>
9934 int
9935 main ()
9936 {
9937 pstatus_t avar
9938 ;
9939 return 0;
9940 }
9941 _ACEOF
9942 rm -f conftest.$ac_objext
9943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9944 (eval $ac_compile) 2>conftest.er1
9945 ac_status=$?
9946 grep -v '^ *+' conftest.er1 >conftest.err
9947 rm -f conftest.er1
9948 cat conftest.err >&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); } &&
9951 { ac_try='test -z "$ac_c_werror_flag"
9952 || test ! -s conftest.err'
9953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954 (eval $ac_try) 2>&5
9955 ac_status=$?
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); }; } &&
9958 { ac_try='test -s conftest.$ac_objext'
9959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960 (eval $ac_try) 2>&5
9961 ac_status=$?
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; }; then
9964 bfd_cv_have_sys_procfs_type_pstatus_t=yes
9965 else
9966 echo "$as_me: failed program was:" >&5
9967 sed 's/^/| /' conftest.$ac_ext >&5
9968
9969 bfd_cv_have_sys_procfs_type_pstatus_t=no
9970
9971 fi
9972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9973 fi
9974
9975 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
9976
9977 cat >>confdefs.h <<\_ACEOF
9978 #define HAVE_PSTATUS_T 1
9979 _ACEOF
9980
9981 fi
9982 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
9983 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
9984
9985 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
9986 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
9987 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
9988 echo $ECHO_N "(cached) $ECHO_C" >&6
9989 else
9990 cat >conftest.$ac_ext <<_ACEOF
9991 /* confdefs.h. */
9992 _ACEOF
9993 cat confdefs.h >>conftest.$ac_ext
9994 cat >>conftest.$ac_ext <<_ACEOF
9995 /* end confdefs.h. */
9996
9997 #define _SYSCALL32
9998 #include <sys/procfs.h>
9999 int
10000 main ()
10001 {
10002 pxstatus_t avar
10003 ;
10004 return 0;
10005 }
10006 _ACEOF
10007 rm -f conftest.$ac_objext
10008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10009 (eval $ac_compile) 2>conftest.er1
10010 ac_status=$?
10011 grep -v '^ *+' conftest.er1 >conftest.err
10012 rm -f conftest.er1
10013 cat conftest.err >&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); } &&
10016 { ac_try='test -z "$ac_c_werror_flag"
10017 || test ! -s conftest.err'
10018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10019 (eval $ac_try) 2>&5
10020 ac_status=$?
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; } &&
10023 { ac_try='test -s conftest.$ac_objext'
10024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025 (eval $ac_try) 2>&5
10026 ac_status=$?
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); }; }; then
10029 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
10030 else
10031 echo "$as_me: failed program was:" >&5
10032 sed 's/^/| /' conftest.$ac_ext >&5
10033
10034 bfd_cv_have_sys_procfs_type_pxstatus_t=no
10035
10036 fi
10037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10038 fi
10039
10040 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
10041
10042 cat >>confdefs.h <<\_ACEOF
10043 #define HAVE_PXSTATUS_T 1
10044 _ACEOF
10045
10046 fi
10047 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
10048 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
10049
10050 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
10051 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
10052 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
10053 echo $ECHO_N "(cached) $ECHO_C" >&6
10054 else
10055 cat >conftest.$ac_ext <<_ACEOF
10056 /* confdefs.h. */
10057 _ACEOF
10058 cat confdefs.h >>conftest.$ac_ext
10059 cat >>conftest.$ac_ext <<_ACEOF
10060 /* end confdefs.h. */
10061
10062 #define _SYSCALL32
10063 #include <sys/procfs.h>
10064 int
10065 main ()
10066 {
10067 pstatus32_t avar
10068 ;
10069 return 0;
10070 }
10071 _ACEOF
10072 rm -f conftest.$ac_objext
10073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10074 (eval $ac_compile) 2>conftest.er1
10075 ac_status=$?
10076 grep -v '^ *+' conftest.er1 >conftest.err
10077 rm -f conftest.er1
10078 cat conftest.err >&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } &&
10081 { ac_try='test -z "$ac_c_werror_flag"
10082 || test ! -s conftest.err'
10083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10084 (eval $ac_try) 2>&5
10085 ac_status=$?
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); }; } &&
10088 { ac_try='test -s conftest.$ac_objext'
10089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10090 (eval $ac_try) 2>&5
10091 ac_status=$?
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); }; }; then
10094 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
10095 else
10096 echo "$as_me: failed program was:" >&5
10097 sed 's/^/| /' conftest.$ac_ext >&5
10098
10099 bfd_cv_have_sys_procfs_type_pstatus32_t=no
10100
10101 fi
10102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10103 fi
10104
10105 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
10106
10107 cat >>confdefs.h <<\_ACEOF
10108 #define HAVE_PSTATUS32_T 1
10109 _ACEOF
10110
10111 fi
10112 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
10113 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
10114
10115 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
10116 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
10117 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
10118 echo $ECHO_N "(cached) $ECHO_C" >&6
10119 else
10120 cat >conftest.$ac_ext <<_ACEOF
10121 /* confdefs.h. */
10122 _ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10126
10127 #define _SYSCALL32
10128 #include <sys/procfs.h>
10129 int
10130 main ()
10131 {
10132 prpsinfo_t avar
10133 ;
10134 return 0;
10135 }
10136 _ACEOF
10137 rm -f conftest.$ac_objext
10138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10139 (eval $ac_compile) 2>conftest.er1
10140 ac_status=$?
10141 grep -v '^ *+' conftest.er1 >conftest.err
10142 rm -f conftest.er1
10143 cat conftest.err >&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); } &&
10146 { ac_try='test -z "$ac_c_werror_flag"
10147 || test ! -s conftest.err'
10148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10149 (eval $ac_try) 2>&5
10150 ac_status=$?
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; } &&
10153 { ac_try='test -s conftest.$ac_objext'
10154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10155 (eval $ac_try) 2>&5
10156 ac_status=$?
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }; }; then
10159 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
10160 else
10161 echo "$as_me: failed program was:" >&5
10162 sed 's/^/| /' conftest.$ac_ext >&5
10163
10164 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
10165
10166 fi
10167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10168 fi
10169
10170 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
10171
10172 cat >>confdefs.h <<\_ACEOF
10173 #define HAVE_PRPSINFO_T 1
10174 _ACEOF
10175
10176 fi
10177 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
10178 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
10179
10180 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
10181 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
10182 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
10183 echo $ECHO_N "(cached) $ECHO_C" >&6
10184 else
10185 cat >conftest.$ac_ext <<_ACEOF
10186 /* confdefs.h. */
10187 _ACEOF
10188 cat confdefs.h >>conftest.$ac_ext
10189 cat >>conftest.$ac_ext <<_ACEOF
10190 /* end confdefs.h. */
10191
10192 #define _SYSCALL32
10193 #include <sys/procfs.h>
10194 int
10195 main ()
10196 {
10197 prpsinfo32_t avar
10198 ;
10199 return 0;
10200 }
10201 _ACEOF
10202 rm -f conftest.$ac_objext
10203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10204 (eval $ac_compile) 2>conftest.er1
10205 ac_status=$?
10206 grep -v '^ *+' conftest.er1 >conftest.err
10207 rm -f conftest.er1
10208 cat conftest.err >&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); } &&
10211 { ac_try='test -z "$ac_c_werror_flag"
10212 || test ! -s conftest.err'
10213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214 (eval $ac_try) 2>&5
10215 ac_status=$?
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); }; } &&
10218 { ac_try='test -s conftest.$ac_objext'
10219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220 (eval $ac_try) 2>&5
10221 ac_status=$?
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; }; then
10224 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
10225 else
10226 echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10228
10229 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
10230
10231 fi
10232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10233 fi
10234
10235 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
10236
10237 cat >>confdefs.h <<\_ACEOF
10238 #define HAVE_PRPSINFO32_T 1
10239 _ACEOF
10240
10241 fi
10242 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
10243 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
10244
10245 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
10246 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
10247 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10249 else
10250 cat >conftest.$ac_ext <<_ACEOF
10251 /* confdefs.h. */
10252 _ACEOF
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h. */
10256
10257 #define _SYSCALL32
10258 #include <sys/procfs.h>
10259 int
10260 main ()
10261 {
10262 psinfo_t avar
10263 ;
10264 return 0;
10265 }
10266 _ACEOF
10267 rm -f conftest.$ac_objext
10268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10269 (eval $ac_compile) 2>conftest.er1
10270 ac_status=$?
10271 grep -v '^ *+' conftest.er1 >conftest.err
10272 rm -f conftest.er1
10273 cat conftest.err >&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } &&
10276 { ac_try='test -z "$ac_c_werror_flag"
10277 || test ! -s conftest.err'
10278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10279 (eval $ac_try) 2>&5
10280 ac_status=$?
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); }; } &&
10283 { ac_try='test -s conftest.$ac_objext'
10284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10285 (eval $ac_try) 2>&5
10286 ac_status=$?
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); }; }; then
10289 bfd_cv_have_sys_procfs_type_psinfo_t=yes
10290 else
10291 echo "$as_me: failed program was:" >&5
10292 sed 's/^/| /' conftest.$ac_ext >&5
10293
10294 bfd_cv_have_sys_procfs_type_psinfo_t=no
10295
10296 fi
10297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10298 fi
10299
10300 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
10301
10302 cat >>confdefs.h <<\_ACEOF
10303 #define HAVE_PSINFO_T 1
10304 _ACEOF
10305
10306 fi
10307 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
10308 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
10309
10310 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
10311 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
10312 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
10314 else
10315 cat >conftest.$ac_ext <<_ACEOF
10316 /* confdefs.h. */
10317 _ACEOF
10318 cat confdefs.h >>conftest.$ac_ext
10319 cat >>conftest.$ac_ext <<_ACEOF
10320 /* end confdefs.h. */
10321
10322 #define _SYSCALL32
10323 #include <sys/procfs.h>
10324 int
10325 main ()
10326 {
10327 psinfo32_t avar
10328 ;
10329 return 0;
10330 }
10331 _ACEOF
10332 rm -f conftest.$ac_objext
10333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10334 (eval $ac_compile) 2>conftest.er1
10335 ac_status=$?
10336 grep -v '^ *+' conftest.er1 >conftest.err
10337 rm -f conftest.er1
10338 cat conftest.err >&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } &&
10341 { ac_try='test -z "$ac_c_werror_flag"
10342 || test ! -s conftest.err'
10343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10344 (eval $ac_try) 2>&5
10345 ac_status=$?
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); }; } &&
10348 { ac_try='test -s conftest.$ac_objext'
10349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350 (eval $ac_try) 2>&5
10351 ac_status=$?
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); }; }; then
10354 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
10355 else
10356 echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10358
10359 bfd_cv_have_sys_procfs_type_psinfo32_t=no
10360
10361 fi
10362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10363 fi
10364
10365 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
10366
10367 cat >>confdefs.h <<\_ACEOF
10368 #define HAVE_PSINFO32_T 1
10369 _ACEOF
10370
10371 fi
10372 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
10373 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
10374
10375 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
10376 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
10377 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10379 else
10380 cat >conftest.$ac_ext <<_ACEOF
10381 /* confdefs.h. */
10382 _ACEOF
10383 cat confdefs.h >>conftest.$ac_ext
10384 cat >>conftest.$ac_ext <<_ACEOF
10385 /* end confdefs.h. */
10386
10387 #define _SYSCALL32
10388 #include <sys/procfs.h>
10389 int
10390 main ()
10391 {
10392 lwpstatus_t avar
10393 ;
10394 return 0;
10395 }
10396 _ACEOF
10397 rm -f conftest.$ac_objext
10398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10399 (eval $ac_compile) 2>conftest.er1
10400 ac_status=$?
10401 grep -v '^ *+' conftest.er1 >conftest.err
10402 rm -f conftest.er1
10403 cat conftest.err >&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } &&
10406 { ac_try='test -z "$ac_c_werror_flag"
10407 || test ! -s conftest.err'
10408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10410 ac_status=$?
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; } &&
10413 { ac_try='test -s conftest.$ac_objext'
10414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10415 (eval $ac_try) 2>&5
10416 ac_status=$?
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); }; }; then
10419 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
10420 else
10421 echo "$as_me: failed program was:" >&5
10422 sed 's/^/| /' conftest.$ac_ext >&5
10423
10424 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
10425
10426 fi
10427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10428 fi
10429
10430 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
10431
10432 cat >>confdefs.h <<\_ACEOF
10433 #define HAVE_LWPSTATUS_T 1
10434 _ACEOF
10435
10436 fi
10437 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
10438 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
10439
10440 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
10441 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
10442 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
10444 else
10445 cat >conftest.$ac_ext <<_ACEOF
10446 /* confdefs.h. */
10447 _ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h. */
10451
10452 #define _SYSCALL32
10453 #include <sys/procfs.h>
10454 int
10455 main ()
10456 {
10457 lwpxstatus_t avar
10458 ;
10459 return 0;
10460 }
10461 _ACEOF
10462 rm -f conftest.$ac_objext
10463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10464 (eval $ac_compile) 2>conftest.er1
10465 ac_status=$?
10466 grep -v '^ *+' conftest.er1 >conftest.err
10467 rm -f conftest.er1
10468 cat conftest.err >&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); } &&
10471 { ac_try='test -z "$ac_c_werror_flag"
10472 || test ! -s conftest.err'
10473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10474 (eval $ac_try) 2>&5
10475 ac_status=$?
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); }; } &&
10478 { ac_try='test -s conftest.$ac_objext'
10479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10480 (eval $ac_try) 2>&5
10481 ac_status=$?
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; }; then
10484 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
10485 else
10486 echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10488
10489 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
10490
10491 fi
10492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10493 fi
10494
10495 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
10496
10497 cat >>confdefs.h <<\_ACEOF
10498 #define HAVE_LWPXSTATUS_T 1
10499 _ACEOF
10500
10501 fi
10502 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
10503 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
10504
10505 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
10506 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
10507 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
10508 echo $ECHO_N "(cached) $ECHO_C" >&6
10509 else
10510 cat >conftest.$ac_ext <<_ACEOF
10511 /* confdefs.h. */
10512 _ACEOF
10513 cat confdefs.h >>conftest.$ac_ext
10514 cat >>conftest.$ac_ext <<_ACEOF
10515 /* end confdefs.h. */
10516
10517 #define _SYSCALL32
10518 #include <sys/procfs.h>
10519 int
10520 main ()
10521 {
10522 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
10523 ;
10524 return 0;
10525 }
10526 _ACEOF
10527 rm -f conftest.$ac_objext
10528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10529 (eval $ac_compile) 2>conftest.er1
10530 ac_status=$?
10531 grep -v '^ *+' conftest.er1 >conftest.err
10532 rm -f conftest.er1
10533 cat conftest.err >&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } &&
10536 { ac_try='test -z "$ac_c_werror_flag"
10537 || test ! -s conftest.err'
10538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10539 (eval $ac_try) 2>&5
10540 ac_status=$?
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); }; } &&
10543 { ac_try='test -s conftest.$ac_objext'
10544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10545 (eval $ac_try) 2>&5
10546 ac_status=$?
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); }; }; then
10549 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
10550 else
10551 echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10553
10554 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
10555
10556 fi
10557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10558 fi
10559
10560 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
10561
10562 cat >>confdefs.h <<\_ACEOF
10563 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
10564 _ACEOF
10565
10566 fi
10567 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
10568 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
10569
10570 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
10571 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
10572 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
10573 echo $ECHO_N "(cached) $ECHO_C" >&6
10574 else
10575 cat >conftest.$ac_ext <<_ACEOF
10576 /* confdefs.h. */
10577 _ACEOF
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h. */
10581
10582 #define _SYSCALL32
10583 #include <sys/procfs.h>
10584 int
10585 main ()
10586 {
10587 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
10588 ;
10589 return 0;
10590 }
10591 _ACEOF
10592 rm -f conftest.$ac_objext
10593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10594 (eval $ac_compile) 2>conftest.er1
10595 ac_status=$?
10596 grep -v '^ *+' conftest.er1 >conftest.err
10597 rm -f conftest.er1
10598 cat conftest.err >&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } &&
10601 { ac_try='test -z "$ac_c_werror_flag"
10602 || test ! -s conftest.err'
10603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604 (eval $ac_try) 2>&5
10605 ac_status=$?
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; } &&
10608 { ac_try='test -s conftest.$ac_objext'
10609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610 (eval $ac_try) 2>&5
10611 ac_status=$?
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); }; }; then
10614 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
10615 else
10616 echo "$as_me: failed program was:" >&5
10617 sed 's/^/| /' conftest.$ac_ext >&5
10618
10619 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
10620
10621 fi
10622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10623 fi
10624
10625 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
10626
10627 cat >>confdefs.h <<\_ACEOF
10628 #define HAVE_LWPSTATUS_T_PR_REG 1
10629 _ACEOF
10630
10631 fi
10632 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
10633 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
10634
10635 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
10636 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
10637 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
10638 echo $ECHO_N "(cached) $ECHO_C" >&6
10639 else
10640 cat >conftest.$ac_ext <<_ACEOF
10641 /* confdefs.h. */
10642 _ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h. */
10646
10647 #define _SYSCALL32
10648 #include <sys/procfs.h>
10649 int
10650 main ()
10651 {
10652 win32_pstatus_t avar
10653 ;
10654 return 0;
10655 }
10656 _ACEOF
10657 rm -f conftest.$ac_objext
10658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10659 (eval $ac_compile) 2>conftest.er1
10660 ac_status=$?
10661 grep -v '^ *+' conftest.er1 >conftest.err
10662 rm -f conftest.er1
10663 cat conftest.err >&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); } &&
10666 { ac_try='test -z "$ac_c_werror_flag"
10667 || test ! -s conftest.err'
10668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10669 (eval $ac_try) 2>&5
10670 ac_status=$?
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }; } &&
10673 { ac_try='test -s conftest.$ac_objext'
10674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675 (eval $ac_try) 2>&5
10676 ac_status=$?
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; }; then
10679 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
10680 else
10681 echo "$as_me: failed program was:" >&5
10682 sed 's/^/| /' conftest.$ac_ext >&5
10683
10684 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
10685
10686 fi
10687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10688 fi
10689
10690 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
10691
10692 cat >>confdefs.h <<\_ACEOF
10693 #define HAVE_WIN32_PSTATUS_T 1
10694 _ACEOF
10695
10696 fi
10697 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
10698 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
10699
10700 fi
10701 fi
10702
10703
10704 if test -n "$TRAD_HEADER"; then
10705
10706 cat >>confdefs.h <<_ACEOF
10707 #define TRAD_HEADER $TRAD_HEADER
10708 _ACEOF
10709
10710 fi
10711
10712 # Horrible hacks to build DLLs on Windows.
10713 WIN32LDFLAGS=
10714 WIN32LIBADD=
10715 case "${host}" in
10716 *-*-cygwin*)
10717 if test "$enable_shared" = "yes"; then
10718 WIN32LDFLAGS="-no-undefined"
10719 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
10720 fi
10721 ;;
10722 *-*-linux*)
10723 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
10724 # libiberty.a.
10725 case "${host}" in
10726 mips*-*-linux*)
10727 # Linux/MIPS uses PIC by default.
10728 if test "$enable_shared" = "yes"; then
10729 WIN32LIBADD="-L../libiberty -liberty"
10730 fi
10731 ;;
10732 *)
10733 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
10734 if test -n "$x"; then
10735 WIN32LIBADD="-L../libiberty/pic -liberty"
10736 fi
10737 ;;
10738 esac
10739 ;;
10740 esac
10741
10742
10743
10744 # target stuff:
10745
10746 # Canonicalize the secondary target names.
10747 if test -n "$enable_targets" ; then
10748 for targ in `echo $enable_targets | sed 's/,/ /g'`
10749 do
10750 result=`$ac_config_sub $targ 2>/dev/null`
10751 if test -n "$result" ; then
10752 canon_targets="$canon_targets $result"
10753 else
10754 # Allow targets that config.sub doesn't recognize, like "all".
10755 canon_targets="$canon_targets $targ"
10756 fi
10757 done
10758 fi
10759
10760 all_targets=false
10761 defvec=
10762 selvecs=
10763 assocvecs=
10764 selarchs=
10765 TDEFINES=
10766 for targ in $target $canon_targets
10767 do
10768 if test "x$targ" = "xall"; then
10769 all_targets=true
10770 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
10771 else
10772 . $srcdir/config.bfd
10773 if test "x$targ" = "x$target"; then
10774 defvec=$targ_defvec
10775 fi
10776 selvecs="$selvecs $targ_defvec $targ_selvecs"
10777 selarchs="$selarchs $targ_archs"
10778 TDEFINES="$TDEFINES $targ_cflags"
10779 fi
10780 done
10781
10782
10783 # This processing still needs to be done if we're to decide properly whether
10784 # 64-bit support needs to be compiled in. Currently, it will be included if
10785 # the default or any other explicitly requested target requires it; it
10786 # will not be included on a 32-bit host if no 64-bit target is requested, and
10787 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
10788 # used.
10789
10790 # uniq the default and selected vectors in all the configured targets.
10791 f=""
10792 for i in $selvecs ; do
10793 case " $f " in
10794 *" $i "*) ;;
10795 *) f="$f $i" ;;
10796 esac
10797 done
10798 selvecs="$f"
10799
10800
10801 # uniq the associated vectors in all the configured targets.
10802 f=""
10803 for i in $assocvecs ; do
10804 case " $f " in
10805 *" $i "*) ;;
10806 *) f="$f $i" ;;
10807 esac
10808 done
10809 assocvecs="$f"
10810
10811
10812 # uniq the architectures in all the configured targets.
10813 f=""
10814 for i in $selarchs ; do
10815 case " $f " in
10816 *" $i "*) ;;
10817 *) f="$f $i" ;;
10818 esac
10819 done
10820 selarchs="$f"
10821
10822 # Target backend .o files.
10823 tb=
10824
10825 elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
10826
10827 for vec in $selvecs
10828 do
10829 target_size=32
10830 case "$vec" in
10831 # This list is alphabetized to make it easy to compare
10832 # with the two vector lists in targets.c. For the same reason,
10833 # use one entry per line, even though this leads to long lines.
10834 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
10835 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
10836 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
10837 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
10838 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
10839 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
10840 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
10841 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
10842 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
10843 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
10844 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
10845 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
10846 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
10847 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
10848 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
10849 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
10850 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
10851 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
10852 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
10853 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
10854 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
10855 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
10856 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
10857 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
10858 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
10859 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
10860 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
10861 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
10862 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
10863 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
10864 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
10865 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
10866 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10867 bfd_elf32_bigarm_symbian_vec)
10868 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10869 bfd_elf32_bigarm_vxworks_vec)
10870 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10871 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10872 bfd_elf32_bigmips_vxworks_vec)
10873 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10874 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
10875 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
10876 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
10877 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
10878 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
10879 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
10880 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
10881 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
10882 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
10883 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
10884 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
10885 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
10886 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
10887 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
10888 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
10889 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
10890 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
10891 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
10892 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
10893 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
10894 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
10895 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
10896 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
10897 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
10898 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
10899 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
10900 bfd_elf32_littlearm_symbian_vec)
10901 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10902 bfd_elf32_littlearm_vxworks_vec)
10903 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10904 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10905 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10906 bfd_elf32_littlemips_vxworks_vec)
10907 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10908 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
10909 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10910 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10911 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10912 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10913 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
10914 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
10915 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
10916 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
10917 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
10918 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
10919 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
10920 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
10921 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
10922 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
10923 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
10924 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
10925 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10926 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10927 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10928 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10929 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
10930 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
10931 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
10932 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
10933 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
10934 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
10935 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
10936 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
10937 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
10938 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
10939 # FIXME: We include cofflink.lo not because it's needed for
10940 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
10941 # which needs it but does not list it. Should be fixed in right place.
10942 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10943 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10944 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10945 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10946 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
10947 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
10948 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10949 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10950 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10951 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10952 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10953 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10954 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10955 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10956 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10957 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
10958 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
10959 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
10960 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10961 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10962 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
10963 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
10964 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
10965 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
10966 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
10967 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
10968 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
10969 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
10970 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
10971 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
10972 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10973 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
10974 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
10975 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
10976 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
10977 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
10978 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
10979 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10980 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
10981 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
10982 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
10983 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
10984 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10985 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10986 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10987 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10988 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10989 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10990 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
10991 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
10992 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10993 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10994 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
10995 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
10996 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
10997 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
10998 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
10999 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
11000 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
11001 cris_aout_vec) tb="$tb aout-cris.lo" ;;
11002 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
11003 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11004 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11005 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11006 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
11007 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
11008 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
11009 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
11010 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
11011 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
11012 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
11013 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
11014 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
11015 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
11016 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
11017 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
11018 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
11019 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
11020 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
11021 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
11022 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
11023 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
11024 i386msdos_vec) tb="$tb i386msdos.lo" ;;
11025 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
11026 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
11027 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
11028 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
11029 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
11030 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
11031 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
11032 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11033 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11034 ieee_vec) tb="$tb ieee.lo" ;;
11035 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
11036 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
11037 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
11038 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
11039 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
11040 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
11041 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
11042 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
11043 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
11044 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
11045 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
11046 mach_o_be_vec) tb="$tb mach-o.lo" ;;
11047 mach_o_le_vec) tb="$tb mach-o.lo" ;;
11048 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
11049 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11050 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11051 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11052 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11053 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
11054 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
11055 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
11056 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
11057 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
11058 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
11059 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
11060 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
11061 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
11062 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
11063 pef_vec) tb="$tb pef.lo" ;;
11064 pef_xlib_vec) tb="$tb pef.lo" ;;
11065 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
11066 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
11067 ppcboot_vec) tb="$tb ppcboot.lo" ;;
11068 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
11069 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
11070 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
11071 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11072 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11073 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11074 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11075 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11076 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11077 som_vec) tb="$tb som.lo" ;;
11078 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
11079 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
11080 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
11081 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
11082 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
11083 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
11084 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
11085 sym_vec) tb="$tb xsym.lo" ;;
11086 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
11087 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
11088 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
11089 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
11090 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
11091 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
11092 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
11093 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
11094 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
11095 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
11096 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
11097 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
11098 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
11099 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
11100 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
11101 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
11102 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
11103 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
11104 versados_vec) tb="$tb versados.lo" ;;
11105 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
11106 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
11107 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
11108 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
11109 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
11110 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
11111
11112 # These appear out of order in targets.c
11113 srec_vec) tb="$tb srec.lo" ;;
11114 symbolsrec_vec) tb="$tb srec.lo" ;;
11115 tekhex_vec) tb="$tb tekhex.lo" ;;
11116 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
11117 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
11118
11119 "") ;;
11120 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
11121 echo "$as_me: error: *** unknown target vector $vec" >&2;}
11122 { (exit 1); exit 1; }; } ;;
11123 esac
11124
11125 if test ${target_size} = 64; then
11126 target64=true
11127 fi
11128 if test x"${vec}" = x"${defvec}"; then
11129 bfd_default_target_size=${target_size}
11130 fi
11131 done
11132
11133 # Target architecture .o files.
11134 # A couple of CPUs use shorter file names to avoid problems on DOS
11135 # filesystems.
11136 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
11137
11138 # Weed out duplicate .o files.
11139 f=""
11140 for i in $tb ; do
11141 case " $f " in
11142 *" $i "*) ;;
11143 *) f="$f $i" ;;
11144 esac
11145 done
11146 tb="$f"
11147
11148 f=""
11149 for i in $ta ; do
11150 case " $f " in
11151 *" $i "*) ;;
11152 *) f="$f $i" ;;
11153 esac
11154 done
11155 ta="$f"
11156
11157 bfd_backends="$tb"
11158 bfd_machines="$ta"
11159
11160 if test x${all_targets} = xtrue ; then
11161 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
11162 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
11163 selvecs=
11164 havevecs=
11165 selarchs=
11166 test -n "$assocvecs" &&
11167 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11168 else # all_targets is true
11169 # Only set these if they will be nonempty, for the clever echo.
11170 havevecs=
11171 assocvecs=
11172 test -n "$selvecs" &&
11173 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
11174 test -n "$selvecs" &&
11175 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11176 test -n "$selarchs" &&
11177 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11178 fi # all_targets is true
11179
11180 case ${host64}-${target64}-${want64} in
11181 *true*)
11182 wordsize=64
11183 bfd64_libs='$(BFD64_LIBS)'
11184 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
11185 if test $BFD_HOST_64_BIT_DEFINED = 0; then
11186 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
11187 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
11188 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
11189 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
11190 fi
11191 if test -n "$GCC" ; then
11192 bad_64bit_gcc=no;
11193 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
11194 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
11195 # Add more tests for gcc versions with non-working 64-bit support here.
11196 cat >conftest.$ac_ext <<_ACEOF
11197 /* confdefs.h. */
11198 _ACEOF
11199 cat confdefs.h >>conftest.$ac_ext
11200 cat >>conftest.$ac_ext <<_ACEOF
11201 /* end confdefs.h. */
11202 :__GNUC__:__GNUC_MINOR__:__i386__:
11203 _ACEOF
11204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11205 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
11206 bad_64bit_gcc=yes;
11207 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
11208 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
11209 else
11210 echo "$as_me:$LINENO: result: no" >&5
11211 echo "${ECHO_T}no" >&6
11212 fi
11213 rm -f conftest*
11214
11215 if test $bad_64bit_gcc = yes ; then
11216 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
11217 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
11218 { (exit 1); exit 1; }; }
11219 fi
11220 fi
11221 ;;
11222 false-false-false)
11223 wordsize=32
11224 all_backends='$(BFD32_BACKENDS)'
11225 ;;
11226 esac
11227
11228
11229
11230
11231
11232
11233
11234
11235 # Determine the host dependant file_ptr a.k.a. off_t type. In order
11236 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
11237 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
11238 # Hopefully a reasonable assumption since fseeko et.al. should be
11239 # upward compatible.
11240
11241
11242
11243
11244
11245 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
11246 do
11247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11248 echo "$as_me:$LINENO: checking for $ac_func" >&5
11249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11250 if eval "test \"\${$as_ac_var+set}\" = set"; then
11251 echo $ECHO_N "(cached) $ECHO_C" >&6
11252 else
11253 cat >conftest.$ac_ext <<_ACEOF
11254 /* confdefs.h. */
11255 _ACEOF
11256 cat confdefs.h >>conftest.$ac_ext
11257 cat >>conftest.$ac_ext <<_ACEOF
11258 /* end confdefs.h. */
11259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11261 #define $ac_func innocuous_$ac_func
11262
11263 /* System header to define __stub macros and hopefully few prototypes,
11264 which can conflict with char $ac_func (); below.
11265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11266 <limits.h> exists even on freestanding compilers. */
11267
11268 #ifdef __STDC__
11269 # include <limits.h>
11270 #else
11271 # include <assert.h>
11272 #endif
11273
11274 #undef $ac_func
11275
11276 /* Override any gcc2 internal prototype to avoid an error. */
11277 #ifdef __cplusplus
11278 extern "C"
11279 {
11280 #endif
11281 /* We use char because int might match the return type of a gcc2
11282 builtin and then its argument prototype would still apply. */
11283 char $ac_func ();
11284 /* The GNU C library defines this for functions which it implements
11285 to always fail with ENOSYS. Some functions are actually named
11286 something starting with __ and the normal name is an alias. */
11287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11288 choke me
11289 #else
11290 char (*f) () = $ac_func;
11291 #endif
11292 #ifdef __cplusplus
11293 }
11294 #endif
11295
11296 int
11297 main ()
11298 {
11299 return f != $ac_func;
11300 ;
11301 return 0;
11302 }
11303 _ACEOF
11304 rm -f conftest.$ac_objext conftest$ac_exeext
11305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11306 (eval $ac_link) 2>conftest.er1
11307 ac_status=$?
11308 grep -v '^ *+' conftest.er1 >conftest.err
11309 rm -f conftest.er1
11310 cat conftest.err >&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } &&
11313 { ac_try='test -z "$ac_c_werror_flag"
11314 || test ! -s conftest.err'
11315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11316 (eval $ac_try) 2>&5
11317 ac_status=$?
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); }; } &&
11320 { ac_try='test -s conftest$ac_exeext'
11321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11322 (eval $ac_try) 2>&5
11323 ac_status=$?
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); }; }; then
11326 eval "$as_ac_var=yes"
11327 else
11328 echo "$as_me: failed program was:" >&5
11329 sed 's/^/| /' conftest.$ac_ext >&5
11330
11331 eval "$as_ac_var=no"
11332 fi
11333 rm -f conftest.err conftest.$ac_objext \
11334 conftest$ac_exeext conftest.$ac_ext
11335 fi
11336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11338 if test `eval echo '${'$as_ac_var'}'` = yes; then
11339 cat >>confdefs.h <<_ACEOF
11340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11341 _ACEOF
11342
11343 fi
11344 done
11345
11346 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
11347 echo "$as_me:$LINENO: checking for off_t" >&5
11348 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11349 if test "${ac_cv_type_off_t+set}" = set; then
11350 echo $ECHO_N "(cached) $ECHO_C" >&6
11351 else
11352 cat >conftest.$ac_ext <<_ACEOF
11353 /* confdefs.h. */
11354 _ACEOF
11355 cat confdefs.h >>conftest.$ac_ext
11356 cat >>conftest.$ac_ext <<_ACEOF
11357 /* end confdefs.h. */
11358 $ac_includes_default
11359 int
11360 main ()
11361 {
11362 if ((off_t *) 0)
11363 return 0;
11364 if (sizeof (off_t))
11365 return 0;
11366 ;
11367 return 0;
11368 }
11369 _ACEOF
11370 rm -f conftest.$ac_objext
11371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11372 (eval $ac_compile) 2>conftest.er1
11373 ac_status=$?
11374 grep -v '^ *+' conftest.er1 >conftest.err
11375 rm -f conftest.er1
11376 cat conftest.err >&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); } &&
11379 { ac_try='test -z "$ac_c_werror_flag"
11380 || test ! -s conftest.err'
11381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11382 (eval $ac_try) 2>&5
11383 ac_status=$?
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; } &&
11386 { ac_try='test -s conftest.$ac_objext'
11387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11388 (eval $ac_try) 2>&5
11389 ac_status=$?
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); }; }; then
11392 ac_cv_type_off_t=yes
11393 else
11394 echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.$ac_ext >&5
11396
11397 ac_cv_type_off_t=no
11398 fi
11399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11400 fi
11401 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11402 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11403
11404 echo "$as_me:$LINENO: checking size of off_t" >&5
11405 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
11406 if test "${ac_cv_sizeof_off_t+set}" = set; then
11407 echo $ECHO_N "(cached) $ECHO_C" >&6
11408 else
11409 if test "$ac_cv_type_off_t" = yes; then
11410 # The cast to unsigned long works around a bug in the HP C Compiler
11411 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11412 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11413 # This bug is HP SR number 8606223364.
11414 if test "$cross_compiling" = yes; then
11415 # Depending upon the size, compute the lo and hi bounds.
11416 cat >conftest.$ac_ext <<_ACEOF
11417 /* confdefs.h. */
11418 _ACEOF
11419 cat confdefs.h >>conftest.$ac_ext
11420 cat >>conftest.$ac_ext <<_ACEOF
11421 /* end confdefs.h. */
11422 $ac_includes_default
11423 int
11424 main ()
11425 {
11426 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
11427 test_array [0] = 0
11428
11429 ;
11430 return 0;
11431 }
11432 _ACEOF
11433 rm -f conftest.$ac_objext
11434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11435 (eval $ac_compile) 2>conftest.er1
11436 ac_status=$?
11437 grep -v '^ *+' conftest.er1 >conftest.err
11438 rm -f conftest.er1
11439 cat conftest.err >&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); } &&
11442 { ac_try='test -z "$ac_c_werror_flag"
11443 || test ! -s conftest.err'
11444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11445 (eval $ac_try) 2>&5
11446 ac_status=$?
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); }; } &&
11449 { ac_try='test -s conftest.$ac_objext'
11450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11451 (eval $ac_try) 2>&5
11452 ac_status=$?
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); }; }; then
11455 ac_lo=0 ac_mid=0
11456 while :; do
11457 cat >conftest.$ac_ext <<_ACEOF
11458 /* confdefs.h. */
11459 _ACEOF
11460 cat confdefs.h >>conftest.$ac_ext
11461 cat >>conftest.$ac_ext <<_ACEOF
11462 /* end confdefs.h. */
11463 $ac_includes_default
11464 int
11465 main ()
11466 {
11467 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
11468 test_array [0] = 0
11469
11470 ;
11471 return 0;
11472 }
11473 _ACEOF
11474 rm -f conftest.$ac_objext
11475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11476 (eval $ac_compile) 2>conftest.er1
11477 ac_status=$?
11478 grep -v '^ *+' conftest.er1 >conftest.err
11479 rm -f conftest.er1
11480 cat conftest.err >&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); } &&
11483 { ac_try='test -z "$ac_c_werror_flag"
11484 || test ! -s conftest.err'
11485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11486 (eval $ac_try) 2>&5
11487 ac_status=$?
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); }; } &&
11490 { ac_try='test -s conftest.$ac_objext'
11491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11492 (eval $ac_try) 2>&5
11493 ac_status=$?
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); }; }; then
11496 ac_hi=$ac_mid; break
11497 else
11498 echo "$as_me: failed program was:" >&5
11499 sed 's/^/| /' conftest.$ac_ext >&5
11500
11501 ac_lo=`expr $ac_mid + 1`
11502 if test $ac_lo -le $ac_mid; then
11503 ac_lo= ac_hi=
11504 break
11505 fi
11506 ac_mid=`expr 2 '*' $ac_mid + 1`
11507 fi
11508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11509 done
11510 else
11511 echo "$as_me: failed program was:" >&5
11512 sed 's/^/| /' conftest.$ac_ext >&5
11513
11514 cat >conftest.$ac_ext <<_ACEOF
11515 /* confdefs.h. */
11516 _ACEOF
11517 cat confdefs.h >>conftest.$ac_ext
11518 cat >>conftest.$ac_ext <<_ACEOF
11519 /* end confdefs.h. */
11520 $ac_includes_default
11521 int
11522 main ()
11523 {
11524 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
11525 test_array [0] = 0
11526
11527 ;
11528 return 0;
11529 }
11530 _ACEOF
11531 rm -f conftest.$ac_objext
11532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11533 (eval $ac_compile) 2>conftest.er1
11534 ac_status=$?
11535 grep -v '^ *+' conftest.er1 >conftest.err
11536 rm -f conftest.er1
11537 cat conftest.err >&5
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); } &&
11540 { ac_try='test -z "$ac_c_werror_flag"
11541 || test ! -s conftest.err'
11542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11544 ac_status=$?
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; } &&
11547 { ac_try='test -s conftest.$ac_objext'
11548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549 (eval $ac_try) 2>&5
11550 ac_status=$?
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); }; }; then
11553 ac_hi=-1 ac_mid=-1
11554 while :; do
11555 cat >conftest.$ac_ext <<_ACEOF
11556 /* confdefs.h. */
11557 _ACEOF
11558 cat confdefs.h >>conftest.$ac_ext
11559 cat >>conftest.$ac_ext <<_ACEOF
11560 /* end confdefs.h. */
11561 $ac_includes_default
11562 int
11563 main ()
11564 {
11565 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
11566 test_array [0] = 0
11567
11568 ;
11569 return 0;
11570 }
11571 _ACEOF
11572 rm -f conftest.$ac_objext
11573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11574 (eval $ac_compile) 2>conftest.er1
11575 ac_status=$?
11576 grep -v '^ *+' conftest.er1 >conftest.err
11577 rm -f conftest.er1
11578 cat conftest.err >&5
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); } &&
11581 { ac_try='test -z "$ac_c_werror_flag"
11582 || test ! -s conftest.err'
11583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11584 (eval $ac_try) 2>&5
11585 ac_status=$?
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); }; } &&
11588 { ac_try='test -s conftest.$ac_objext'
11589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11590 (eval $ac_try) 2>&5
11591 ac_status=$?
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); }; }; then
11594 ac_lo=$ac_mid; break
11595 else
11596 echo "$as_me: failed program was:" >&5
11597 sed 's/^/| /' conftest.$ac_ext >&5
11598
11599 ac_hi=`expr '(' $ac_mid ')' - 1`
11600 if test $ac_mid -le $ac_hi; then
11601 ac_lo= ac_hi=
11602 break
11603 fi
11604 ac_mid=`expr 2 '*' $ac_mid`
11605 fi
11606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11607 done
11608 else
11609 echo "$as_me: failed program was:" >&5
11610 sed 's/^/| /' conftest.$ac_ext >&5
11611
11612 ac_lo= ac_hi=
11613 fi
11614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11615 fi
11616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11617 # Binary search between lo and hi bounds.
11618 while test "x$ac_lo" != "x$ac_hi"; do
11619 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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 $ac_includes_default
11627 int
11628 main ()
11629 {
11630 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
11631 test_array [0] = 0
11632
11633 ;
11634 return 0;
11635 }
11636 _ACEOF
11637 rm -f conftest.$ac_objext
11638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11639 (eval $ac_compile) 2>conftest.er1
11640 ac_status=$?
11641 grep -v '^ *+' conftest.er1 >conftest.err
11642 rm -f conftest.er1
11643 cat conftest.err >&5
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); } &&
11646 { ac_try='test -z "$ac_c_werror_flag"
11647 || test ! -s conftest.err'
11648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11649 (eval $ac_try) 2>&5
11650 ac_status=$?
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); }; } &&
11653 { ac_try='test -s conftest.$ac_objext'
11654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655 (eval $ac_try) 2>&5
11656 ac_status=$?
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); }; }; then
11659 ac_hi=$ac_mid
11660 else
11661 echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.$ac_ext >&5
11663
11664 ac_lo=`expr '(' $ac_mid ')' + 1`
11665 fi
11666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11667 done
11668 case $ac_lo in
11669 ?*) ac_cv_sizeof_off_t=$ac_lo;;
11670 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
11671 See \`config.log' for more details." >&5
11672 echo "$as_me: error: cannot compute sizeof (off_t), 77
11673 See \`config.log' for more details." >&2;}
11674 { (exit 1); exit 1; }; } ;;
11675 esac
11676 else
11677 if test "$cross_compiling" = yes; then
11678 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11679 See \`config.log' for more details." >&5
11680 echo "$as_me: error: cannot run test program while cross compiling
11681 See \`config.log' for more details." >&2;}
11682 { (exit 1); exit 1; }; }
11683 else
11684 cat >conftest.$ac_ext <<_ACEOF
11685 /* confdefs.h. */
11686 _ACEOF
11687 cat confdefs.h >>conftest.$ac_ext
11688 cat >>conftest.$ac_ext <<_ACEOF
11689 /* end confdefs.h. */
11690 $ac_includes_default
11691 long longval () { return (long) (sizeof (off_t)); }
11692 unsigned long ulongval () { return (long) (sizeof (off_t)); }
11693 #include <stdio.h>
11694 #include <stdlib.h>
11695 int
11696 main ()
11697 {
11698
11699 FILE *f = fopen ("conftest.val", "w");
11700 if (! f)
11701 exit (1);
11702 if (((long) (sizeof (off_t))) < 0)
11703 {
11704 long i = longval ();
11705 if (i != ((long) (sizeof (off_t))))
11706 exit (1);
11707 fprintf (f, "%ld\n", i);
11708 }
11709 else
11710 {
11711 unsigned long i = ulongval ();
11712 if (i != ((long) (sizeof (off_t))))
11713 exit (1);
11714 fprintf (f, "%lu\n", i);
11715 }
11716 exit (ferror (f) || fclose (f) != 0);
11717
11718 ;
11719 return 0;
11720 }
11721 _ACEOF
11722 rm -f conftest$ac_exeext
11723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11724 (eval $ac_link) 2>&5
11725 ac_status=$?
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11729 (eval $ac_try) 2>&5
11730 ac_status=$?
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); }; }; then
11733 ac_cv_sizeof_off_t=`cat conftest.val`
11734 else
11735 echo "$as_me: program exited with status $ac_status" >&5
11736 echo "$as_me: failed program was:" >&5
11737 sed 's/^/| /' conftest.$ac_ext >&5
11738
11739 ( exit $ac_status )
11740 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
11741 See \`config.log' for more details." >&5
11742 echo "$as_me: error: cannot compute sizeof (off_t), 77
11743 See \`config.log' for more details." >&2;}
11744 { (exit 1); exit 1; }; }
11745 fi
11746 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11747 fi
11748 fi
11749 rm -f conftest.val
11750 else
11751 ac_cv_sizeof_off_t=0
11752 fi
11753 fi
11754 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
11755 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
11756 cat >>confdefs.h <<_ACEOF
11757 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
11758 _ACEOF
11759
11760
11761 fi
11762 echo "$as_me:$LINENO: checking file_ptr type" >&5
11763 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
11764 bfd_file_ptr="long"
11765 bfd_ufile_ptr="unsigned long"
11766 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
11767 -o x"${ac_cv_sizeof_off_t}" = x8; then
11768 bfd_file_ptr=BFD_HOST_64_BIT
11769 bfd_ufile_ptr=BFD_HOST_U_64_BIT
11770 fi
11771 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
11772 echo "${ECHO_T}$bfd_file_ptr" >&6
11773
11774
11775
11776
11777 tdefaults=""
11778 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
11779 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
11780 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
11781 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
11782 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
11783
11784
11785
11786
11787 for ac_header in stdlib.h unistd.h
11788 do
11789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11791 echo "$as_me:$LINENO: checking for $ac_header" >&5
11792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11795 fi
11796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11798 else
11799 # Is the header compilable?
11800 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11802 cat >conftest.$ac_ext <<_ACEOF
11803 /* confdefs.h. */
11804 _ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h. */
11808 $ac_includes_default
11809 #include <$ac_header>
11810 _ACEOF
11811 rm -f conftest.$ac_objext
11812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11813 (eval $ac_compile) 2>conftest.er1
11814 ac_status=$?
11815 grep -v '^ *+' conftest.er1 >conftest.err
11816 rm -f conftest.er1
11817 cat conftest.err >&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); } &&
11820 { ac_try='test -z "$ac_c_werror_flag"
11821 || test ! -s conftest.err'
11822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11823 (eval $ac_try) 2>&5
11824 ac_status=$?
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; } &&
11827 { ac_try='test -s conftest.$ac_objext'
11828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11829 (eval $ac_try) 2>&5
11830 ac_status=$?
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; }; then
11833 ac_header_compiler=yes
11834 else
11835 echo "$as_me: failed program was:" >&5
11836 sed 's/^/| /' conftest.$ac_ext >&5
11837
11838 ac_header_compiler=no
11839 fi
11840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11841 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11842 echo "${ECHO_T}$ac_header_compiler" >&6
11843
11844 # Is the header present?
11845 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11847 cat >conftest.$ac_ext <<_ACEOF
11848 /* confdefs.h. */
11849 _ACEOF
11850 cat confdefs.h >>conftest.$ac_ext
11851 cat >>conftest.$ac_ext <<_ACEOF
11852 /* end confdefs.h. */
11853 #include <$ac_header>
11854 _ACEOF
11855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11857 ac_status=$?
11858 grep -v '^ *+' conftest.er1 >conftest.err
11859 rm -f conftest.er1
11860 cat conftest.err >&5
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); } >/dev/null; then
11863 if test -s conftest.err; then
11864 ac_cpp_err=$ac_c_preproc_warn_flag
11865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11866 else
11867 ac_cpp_err=
11868 fi
11869 else
11870 ac_cpp_err=yes
11871 fi
11872 if test -z "$ac_cpp_err"; then
11873 ac_header_preproc=yes
11874 else
11875 echo "$as_me: failed program was:" >&5
11876 sed 's/^/| /' conftest.$ac_ext >&5
11877
11878 ac_header_preproc=no
11879 fi
11880 rm -f conftest.err conftest.$ac_ext
11881 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11882 echo "${ECHO_T}$ac_header_preproc" >&6
11883
11884 # So? What about this header?
11885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11886 yes:no: )
11887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11891 ac_header_preproc=yes
11892 ;;
11893 no:yes:* )
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11897 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11899 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11901 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11905 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11906 (
11907 cat <<\_ASBOX
11908 ## ------------------------------------------ ##
11909 ## Report this to the AC_PACKAGE_NAME lists. ##
11910 ## ------------------------------------------ ##
11911 _ASBOX
11912 ) |
11913 sed "s/^/$as_me: WARNING: /" >&2
11914 ;;
11915 esac
11916 echo "$as_me:$LINENO: checking for $ac_header" >&5
11917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11920 else
11921 eval "$as_ac_Header=\$ac_header_preproc"
11922 fi
11923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11925
11926 fi
11927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11928 cat >>confdefs.h <<_ACEOF
11929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11930 _ACEOF
11931
11932 fi
11933
11934 done
11935
11936
11937 for ac_func in getpagesize
11938 do
11939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11940 echo "$as_me:$LINENO: checking for $ac_func" >&5
11941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11942 if eval "test \"\${$as_ac_var+set}\" = set"; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11944 else
11945 cat >conftest.$ac_ext <<_ACEOF
11946 /* confdefs.h. */
11947 _ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h. */
11951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11953 #define $ac_func innocuous_$ac_func
11954
11955 /* System header to define __stub macros and hopefully few prototypes,
11956 which can conflict with char $ac_func (); below.
11957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11958 <limits.h> exists even on freestanding compilers. */
11959
11960 #ifdef __STDC__
11961 # include <limits.h>
11962 #else
11963 # include <assert.h>
11964 #endif
11965
11966 #undef $ac_func
11967
11968 /* Override any gcc2 internal prototype to avoid an error. */
11969 #ifdef __cplusplus
11970 extern "C"
11971 {
11972 #endif
11973 /* We use char because int might match the return type of a gcc2
11974 builtin and then its argument prototype would still apply. */
11975 char $ac_func ();
11976 /* The GNU C library defines this for functions which it implements
11977 to always fail with ENOSYS. Some functions are actually named
11978 something starting with __ and the normal name is an alias. */
11979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11980 choke me
11981 #else
11982 char (*f) () = $ac_func;
11983 #endif
11984 #ifdef __cplusplus
11985 }
11986 #endif
11987
11988 int
11989 main ()
11990 {
11991 return f != $ac_func;
11992 ;
11993 return 0;
11994 }
11995 _ACEOF
11996 rm -f conftest.$ac_objext conftest$ac_exeext
11997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11998 (eval $ac_link) 2>conftest.er1
11999 ac_status=$?
12000 grep -v '^ *+' conftest.er1 >conftest.err
12001 rm -f conftest.er1
12002 cat conftest.err >&5
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } &&
12005 { ac_try='test -z "$ac_c_werror_flag"
12006 || test ! -s conftest.err'
12007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12008 (eval $ac_try) 2>&5
12009 ac_status=$?
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); }; } &&
12012 { ac_try='test -s conftest$ac_exeext'
12013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014 (eval $ac_try) 2>&5
12015 ac_status=$?
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); }; }; then
12018 eval "$as_ac_var=yes"
12019 else
12020 echo "$as_me: failed program was:" >&5
12021 sed 's/^/| /' conftest.$ac_ext >&5
12022
12023 eval "$as_ac_var=no"
12024 fi
12025 rm -f conftest.err conftest.$ac_objext \
12026 conftest$ac_exeext conftest.$ac_ext
12027 fi
12028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12030 if test `eval echo '${'$as_ac_var'}'` = yes; then
12031 cat >>confdefs.h <<_ACEOF
12032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12033 _ACEOF
12034
12035 fi
12036 done
12037
12038 echo "$as_me:$LINENO: checking for working mmap" >&5
12039 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12040 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12041 echo $ECHO_N "(cached) $ECHO_C" >&6
12042 else
12043 if test "$cross_compiling" = yes; then
12044 ac_cv_func_mmap_fixed_mapped=no
12045 else
12046 cat >conftest.$ac_ext <<_ACEOF
12047 /* confdefs.h. */
12048 _ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h. */
12052 $ac_includes_default
12053 /* malloc might have been renamed as rpl_malloc. */
12054 #undef malloc
12055
12056 /* Thanks to Mike Haertel and Jim Avera for this test.
12057 Here is a matrix of mmap possibilities:
12058 mmap private not fixed
12059 mmap private fixed at somewhere currently unmapped
12060 mmap private fixed at somewhere already mapped
12061 mmap shared not fixed
12062 mmap shared fixed at somewhere currently unmapped
12063 mmap shared fixed at somewhere already mapped
12064 For private mappings, we should verify that changes cannot be read()
12065 back from the file, nor mmap's back from the file at a different
12066 address. (There have been systems where private was not correctly
12067 implemented like the infamous i386 svr4.0, and systems where the
12068 VM page cache was not coherent with the file system buffer cache
12069 like early versions of FreeBSD and possibly contemporary NetBSD.)
12070 For shared mappings, we should conversely verify that changes get
12071 propagated back to all the places they're supposed to be.
12072
12073 Grep wants private fixed already mapped.
12074 The main things grep needs to know about mmap are:
12075 * does it exist and is it safe to write into the mmap'd area
12076 * how to use it (BSD variants) */
12077
12078 #include <fcntl.h>
12079 #include <sys/mman.h>
12080
12081 #if !STDC_HEADERS && !HAVE_STDLIB_H
12082 char *malloc ();
12083 #endif
12084
12085 /* This mess was copied from the GNU getpagesize.h. */
12086 #if !HAVE_GETPAGESIZE
12087 /* Assume that all systems that can run configure have sys/param.h. */
12088 # if !HAVE_SYS_PARAM_H
12089 # define HAVE_SYS_PARAM_H 1
12090 # endif
12091
12092 # ifdef _SC_PAGESIZE
12093 # define getpagesize() sysconf(_SC_PAGESIZE)
12094 # else /* no _SC_PAGESIZE */
12095 # if HAVE_SYS_PARAM_H
12096 # include <sys/param.h>
12097 # ifdef EXEC_PAGESIZE
12098 # define getpagesize() EXEC_PAGESIZE
12099 # else /* no EXEC_PAGESIZE */
12100 # ifdef NBPG
12101 # define getpagesize() NBPG * CLSIZE
12102 # ifndef CLSIZE
12103 # define CLSIZE 1
12104 # endif /* no CLSIZE */
12105 # else /* no NBPG */
12106 # ifdef NBPC
12107 # define getpagesize() NBPC
12108 # else /* no NBPC */
12109 # ifdef PAGESIZE
12110 # define getpagesize() PAGESIZE
12111 # endif /* PAGESIZE */
12112 # endif /* no NBPC */
12113 # endif /* no NBPG */
12114 # endif /* no EXEC_PAGESIZE */
12115 # else /* no HAVE_SYS_PARAM_H */
12116 # define getpagesize() 8192 /* punt totally */
12117 # endif /* no HAVE_SYS_PARAM_H */
12118 # endif /* no _SC_PAGESIZE */
12119
12120 #endif /* no HAVE_GETPAGESIZE */
12121
12122 int
12123 main ()
12124 {
12125 char *data, *data2, *data3;
12126 int i, pagesize;
12127 int fd;
12128
12129 pagesize = getpagesize ();
12130
12131 /* First, make a file with some known garbage in it. */
12132 data = (char *) malloc (pagesize);
12133 if (!data)
12134 exit (1);
12135 for (i = 0; i < pagesize; ++i)
12136 *(data + i) = rand ();
12137 umask (0);
12138 fd = creat ("conftest.mmap", 0600);
12139 if (fd < 0)
12140 exit (1);
12141 if (write (fd, data, pagesize) != pagesize)
12142 exit (1);
12143 close (fd);
12144
12145 /* Next, try to mmap the file at a fixed address which already has
12146 something else allocated at it. If we can, also make sure that
12147 we see the same garbage. */
12148 fd = open ("conftest.mmap", O_RDWR);
12149 if (fd < 0)
12150 exit (1);
12151 data2 = (char *) malloc (2 * pagesize);
12152 if (!data2)
12153 exit (1);
12154 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12155 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12156 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12157 exit (1);
12158 for (i = 0; i < pagesize; ++i)
12159 if (*(data + i) != *(data2 + i))
12160 exit (1);
12161
12162 /* Finally, make sure that changes to the mapped area do not
12163 percolate back to the file as seen by read(). (This is a bug on
12164 some variants of i386 svr4.0.) */
12165 for (i = 0; i < pagesize; ++i)
12166 *(data2 + i) = *(data2 + i) + 1;
12167 data3 = (char *) malloc (pagesize);
12168 if (!data3)
12169 exit (1);
12170 if (read (fd, data3, pagesize) != pagesize)
12171 exit (1);
12172 for (i = 0; i < pagesize; ++i)
12173 if (*(data + i) != *(data3 + i))
12174 exit (1);
12175 close (fd);
12176 exit (0);
12177 }
12178 _ACEOF
12179 rm -f conftest$ac_exeext
12180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12181 (eval $ac_link) 2>&5
12182 ac_status=$?
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12186 (eval $ac_try) 2>&5
12187 ac_status=$?
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); }; }; then
12190 ac_cv_func_mmap_fixed_mapped=yes
12191 else
12192 echo "$as_me: program exited with status $ac_status" >&5
12193 echo "$as_me: failed program was:" >&5
12194 sed 's/^/| /' conftest.$ac_ext >&5
12195
12196 ( exit $ac_status )
12197 ac_cv_func_mmap_fixed_mapped=no
12198 fi
12199 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12200 fi
12201 fi
12202 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12203 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12204 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12205
12206 cat >>confdefs.h <<\_ACEOF
12207 #define HAVE_MMAP 1
12208 _ACEOF
12209
12210 fi
12211 rm -f conftest.mmap
12212
12213
12214
12215 for ac_func in madvise mprotect
12216 do
12217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12218 echo "$as_me:$LINENO: checking for $ac_func" >&5
12219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12220 if eval "test \"\${$as_ac_var+set}\" = set"; then
12221 echo $ECHO_N "(cached) $ECHO_C" >&6
12222 else
12223 cat >conftest.$ac_ext <<_ACEOF
12224 /* confdefs.h. */
12225 _ACEOF
12226 cat confdefs.h >>conftest.$ac_ext
12227 cat >>conftest.$ac_ext <<_ACEOF
12228 /* end confdefs.h. */
12229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12231 #define $ac_func innocuous_$ac_func
12232
12233 /* System header to define __stub macros and hopefully few prototypes,
12234 which can conflict with char $ac_func (); below.
12235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12236 <limits.h> exists even on freestanding compilers. */
12237
12238 #ifdef __STDC__
12239 # include <limits.h>
12240 #else
12241 # include <assert.h>
12242 #endif
12243
12244 #undef $ac_func
12245
12246 /* Override any gcc2 internal prototype to avoid an error. */
12247 #ifdef __cplusplus
12248 extern "C"
12249 {
12250 #endif
12251 /* We use char because int might match the return type of a gcc2
12252 builtin and then its argument prototype would still apply. */
12253 char $ac_func ();
12254 /* The GNU C library defines this for functions which it implements
12255 to always fail with ENOSYS. Some functions are actually named
12256 something starting with __ and the normal name is an alias. */
12257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12258 choke me
12259 #else
12260 char (*f) () = $ac_func;
12261 #endif
12262 #ifdef __cplusplus
12263 }
12264 #endif
12265
12266 int
12267 main ()
12268 {
12269 return f != $ac_func;
12270 ;
12271 return 0;
12272 }
12273 _ACEOF
12274 rm -f conftest.$ac_objext conftest$ac_exeext
12275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12276 (eval $ac_link) 2>conftest.er1
12277 ac_status=$?
12278 grep -v '^ *+' conftest.er1 >conftest.err
12279 rm -f conftest.er1
12280 cat conftest.err >&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); } &&
12283 { ac_try='test -z "$ac_c_werror_flag"
12284 || test ! -s conftest.err'
12285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286 (eval $ac_try) 2>&5
12287 ac_status=$?
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; } &&
12290 { ac_try='test -s conftest$ac_exeext'
12291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292 (eval $ac_try) 2>&5
12293 ac_status=$?
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; }; then
12296 eval "$as_ac_var=yes"
12297 else
12298 echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12300
12301 eval "$as_ac_var=no"
12302 fi
12303 rm -f conftest.err conftest.$ac_objext \
12304 conftest$ac_exeext conftest.$ac_ext
12305 fi
12306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12307 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12308 if test `eval echo '${'$as_ac_var'}'` = yes; then
12309 cat >>confdefs.h <<_ACEOF
12310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12311 _ACEOF
12312
12313 fi
12314 done
12315
12316 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
12317 true+yes )
12318 cat >>confdefs.h <<\_ACEOF
12319 #define USE_MMAP 1
12320 _ACEOF
12321 ;;
12322 esac
12323
12324 rm -f doc/config.status
12325 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
12326
12327
12328 ac_config_commands="$ac_config_commands default"
12329
12330
12331
12332
12333
12334
12335 cat >confcache <<\_ACEOF
12336 # This file is a shell script that caches the results of configure
12337 # tests run on this system so they can be shared between configure
12338 # scripts and configure runs, see configure's option --config-cache.
12339 # It is not useful on other systems. If it contains results you don't
12340 # want to keep, you may remove or edit it.
12341 #
12342 # config.status only pays attention to the cache file if you give it
12343 # the --recheck option to rerun configure.
12344 #
12345 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12346 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12347 # following values.
12348
12349 _ACEOF
12350
12351 # The following way of writing the cache mishandles newlines in values,
12352 # but we know of no workaround that is simple, portable, and efficient.
12353 # So, don't put newlines in cache variables' values.
12354 # Ultrix sh set writes to stderr and can't be redirected directly,
12355 # and sets the high bit in the cache file unless we assign to the vars.
12356 {
12357 (set) 2>&1 |
12358 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12359 *ac_space=\ *)
12360 # `set' does not quote correctly, so add quotes (double-quote
12361 # substitution turns \\\\ into \\, and sed turns \\ into \).
12362 sed -n \
12363 "s/'/'\\\\''/g;
12364 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12365 ;;
12366 *)
12367 # `set' quotes correctly as required by POSIX, so do not add quotes.
12368 sed -n \
12369 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12370 ;;
12371 esac;
12372 } |
12373 sed '
12374 t clear
12375 : clear
12376 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12377 t end
12378 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12379 : end' >>confcache
12380 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12381 if test -w $cache_file; then
12382 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12383 cat confcache >$cache_file
12384 else
12385 echo "not updating unwritable cache $cache_file"
12386 fi
12387 fi
12388 rm -f confcache
12389
12390 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12391 # Let make expand exec_prefix.
12392 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12393
12394 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12395 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12396 # trailing colons and then remove the whole line if VPATH becomes empty
12397 # (actually we leave an empty line to preserve line numbers).
12398 if test "x$srcdir" = x.; then
12399 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12400 s/:*\$(srcdir):*/:/;
12401 s/:*\${srcdir}:*/:/;
12402 s/:*@srcdir@:*/:/;
12403 s/^\([^=]*=[ ]*\):*/\1/;
12404 s/:*$//;
12405 s/^[^=]*=[ ]*$//;
12406 }'
12407 fi
12408
12409 DEFS=-DHAVE_CONFIG_H
12410
12411 ac_libobjs=
12412 ac_ltlibobjs=
12413 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12414 # 1. Remove the extension, and $U if already installed.
12415 ac_i=`echo "$ac_i" |
12416 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12417 # 2. Add them.
12418 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12419 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12420 done
12421 LIBOBJS=$ac_libobjs
12422
12423 LTLIBOBJS=$ac_ltlibobjs
12424
12425
12426 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12427 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12428 Usually this means the macro was only invoked conditionally." >&5
12429 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12430 Usually this means the macro was only invoked conditionally." >&2;}
12431 { (exit 1); exit 1; }; }
12432 fi
12433 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12434 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12435 Usually this means the macro was only invoked conditionally." >&5
12436 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12437 Usually this means the macro was only invoked conditionally." >&2;}
12438 { (exit 1); exit 1; }; }
12439 fi
12440 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12441 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12442 Usually this means the macro was only invoked conditionally." >&5
12443 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12444 Usually this means the macro was only invoked conditionally." >&2;}
12445 { (exit 1); exit 1; }; }
12446 fi
12447 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
12448 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
12449 Usually this means the macro was only invoked conditionally." >&5
12450 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
12451 Usually this means the macro was only invoked conditionally." >&2;}
12452 { (exit 1); exit 1; }; }
12453 fi
12454 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
12455 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
12456 Usually this means the macro was only invoked conditionally." >&5
12457 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
12458 Usually this means the macro was only invoked conditionally." >&2;}
12459 { (exit 1); exit 1; }; }
12460 fi
12461
12462 : ${CONFIG_STATUS=./config.status}
12463 ac_clean_files_save=$ac_clean_files
12464 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12465 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12466 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12467 cat >$CONFIG_STATUS <<_ACEOF
12468 #! $SHELL
12469 # Generated by $as_me.
12470 # Run this file to recreate the current configuration.
12471 # Compiler output produced by configure, useful for debugging
12472 # configure, is in config.log if it exists.
12473
12474 debug=false
12475 ac_cs_recheck=false
12476 ac_cs_silent=false
12477 SHELL=\${CONFIG_SHELL-$SHELL}
12478 _ACEOF
12479
12480 cat >>$CONFIG_STATUS <<\_ACEOF
12481 ## --------------------- ##
12482 ## M4sh Initialization. ##
12483 ## --------------------- ##
12484
12485 # Be Bourne compatible
12486 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12487 emulate sh
12488 NULLCMD=:
12489 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12490 # is contrary to our usage. Disable this feature.
12491 alias -g '${1+"$@"}'='"$@"'
12492 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12493 set -o posix
12494 fi
12495 DUALCASE=1; export DUALCASE # for MKS sh
12496
12497 # Support unset when possible.
12498 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12499 as_unset=unset
12500 else
12501 as_unset=false
12502 fi
12503
12504
12505 # Work around bugs in pre-3.0 UWIN ksh.
12506 $as_unset ENV MAIL MAILPATH
12507 PS1='$ '
12508 PS2='> '
12509 PS4='+ '
12510
12511 # NLS nuisances.
12512 for as_var in \
12513 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12514 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12515 LC_TELEPHONE LC_TIME
12516 do
12517 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12518 eval $as_var=C; export $as_var
12519 else
12520 $as_unset $as_var
12521 fi
12522 done
12523
12524 # Required to use basename.
12525 if expr a : '\(a\)' >/dev/null 2>&1; then
12526 as_expr=expr
12527 else
12528 as_expr=false
12529 fi
12530
12531 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12532 as_basename=basename
12533 else
12534 as_basename=false
12535 fi
12536
12537
12538 # Name of the executable.
12539 as_me=`$as_basename "$0" ||
12540 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12541 X"$0" : 'X\(//\)$' \| \
12542 X"$0" : 'X\(/\)$' \| \
12543 . : '\(.\)' 2>/dev/null ||
12544 echo X/"$0" |
12545 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12546 /^X\/\(\/\/\)$/{ s//\1/; q; }
12547 /^X\/\(\/\).*/{ s//\1/; q; }
12548 s/.*/./; q'`
12549
12550
12551 # PATH needs CR, and LINENO needs CR and PATH.
12552 # Avoid depending upon Character Ranges.
12553 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12554 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12555 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12556 as_cr_digits='0123456789'
12557 as_cr_alnum=$as_cr_Letters$as_cr_digits
12558
12559 # The user is always right.
12560 if test "${PATH_SEPARATOR+set}" != set; then
12561 echo "#! /bin/sh" >conf$$.sh
12562 echo "exit 0" >>conf$$.sh
12563 chmod +x conf$$.sh
12564 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12565 PATH_SEPARATOR=';'
12566 else
12567 PATH_SEPARATOR=:
12568 fi
12569 rm -f conf$$.sh
12570 fi
12571
12572
12573 as_lineno_1=$LINENO
12574 as_lineno_2=$LINENO
12575 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12576 test "x$as_lineno_1" != "x$as_lineno_2" &&
12577 test "x$as_lineno_3" = "x$as_lineno_2" || {
12578 # Find who we are. Look in the path if we contain no path at all
12579 # relative or not.
12580 case $0 in
12581 *[\\/]* ) as_myself=$0 ;;
12582 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12583 for as_dir in $PATH
12584 do
12585 IFS=$as_save_IFS
12586 test -z "$as_dir" && as_dir=.
12587 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12588 done
12589
12590 ;;
12591 esac
12592 # We did not find ourselves, most probably we were run as `sh COMMAND'
12593 # in which case we are not to be found in the path.
12594 if test "x$as_myself" = x; then
12595 as_myself=$0
12596 fi
12597 if test ! -f "$as_myself"; then
12598 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12599 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12600 { (exit 1); exit 1; }; }
12601 fi
12602 case $CONFIG_SHELL in
12603 '')
12604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12605 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12606 do
12607 IFS=$as_save_IFS
12608 test -z "$as_dir" && as_dir=.
12609 for as_base in sh bash ksh sh5; do
12610 case $as_dir in
12611 /*)
12612 if ("$as_dir/$as_base" -c '
12613 as_lineno_1=$LINENO
12614 as_lineno_2=$LINENO
12615 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12616 test "x$as_lineno_1" != "x$as_lineno_2" &&
12617 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12618 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12619 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12620 CONFIG_SHELL=$as_dir/$as_base
12621 export CONFIG_SHELL
12622 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12623 fi;;
12624 esac
12625 done
12626 done
12627 ;;
12628 esac
12629
12630 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12631 # uniformly replaced by the line number. The first 'sed' inserts a
12632 # line-number line before each line; the second 'sed' does the real
12633 # work. The second script uses 'N' to pair each line-number line
12634 # with the numbered line, and appends trailing '-' during
12635 # substitution so that $LINENO is not a special case at line end.
12636 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12637 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12638 sed '=' <$as_myself |
12639 sed '
12640 N
12641 s,$,-,
12642 : loop
12643 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12644 t loop
12645 s,-$,,
12646 s,^['$as_cr_digits']*\n,,
12647 ' >$as_me.lineno &&
12648 chmod +x $as_me.lineno ||
12649 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12650 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12651 { (exit 1); exit 1; }; }
12652
12653 # Don't try to exec as it changes $[0], causing all sort of problems
12654 # (the dirname of $[0] is not the place where we might find the
12655 # original and so on. Autoconf is especially sensible to this).
12656 . ./$as_me.lineno
12657 # Exit status is that of the last command.
12658 exit
12659 }
12660
12661
12662 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12663 *c*,-n*) ECHO_N= ECHO_C='
12664 ' ECHO_T=' ' ;;
12665 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12666 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12667 esac
12668
12669 if expr a : '\(a\)' >/dev/null 2>&1; then
12670 as_expr=expr
12671 else
12672 as_expr=false
12673 fi
12674
12675 rm -f conf$$ conf$$.exe conf$$.file
12676 echo >conf$$.file
12677 if ln -s conf$$.file conf$$ 2>/dev/null; then
12678 # We could just check for DJGPP; but this test a) works b) is more generic
12679 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12680 if test -f conf$$.exe; then
12681 # Don't use ln at all; we don't have any links
12682 as_ln_s='cp -p'
12683 else
12684 as_ln_s='ln -s'
12685 fi
12686 elif ln conf$$.file conf$$ 2>/dev/null; then
12687 as_ln_s=ln
12688 else
12689 as_ln_s='cp -p'
12690 fi
12691 rm -f conf$$ conf$$.exe conf$$.file
12692
12693 if mkdir -p . 2>/dev/null; then
12694 as_mkdir_p=:
12695 else
12696 test -d ./-p && rmdir ./-p
12697 as_mkdir_p=false
12698 fi
12699
12700 as_executable_p="test -f"
12701
12702 # Sed expression to map a string onto a valid CPP name.
12703 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12704
12705 # Sed expression to map a string onto a valid variable name.
12706 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12707
12708
12709 # IFS
12710 # We need space, tab and new line, in precisely that order.
12711 as_nl='
12712 '
12713 IFS=" $as_nl"
12714
12715 # CDPATH.
12716 $as_unset CDPATH
12717
12718 exec 6>&1
12719
12720 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12721 # report actual input values of CONFIG_FILES etc. instead of their
12722 # values after options handling. Logging --version etc. is OK.
12723 exec 5>>config.log
12724 {
12725 echo
12726 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12727 ## Running $as_me. ##
12728 _ASBOX
12729 } >&5
12730 cat >&5 <<_CSEOF
12731
12732 This file was extended by $as_me, which was
12733 generated by GNU Autoconf 2.59. Invocation command line was
12734
12735 CONFIG_FILES = $CONFIG_FILES
12736 CONFIG_HEADERS = $CONFIG_HEADERS
12737 CONFIG_LINKS = $CONFIG_LINKS
12738 CONFIG_COMMANDS = $CONFIG_COMMANDS
12739 $ $0 $@
12740
12741 _CSEOF
12742 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12743 echo >&5
12744 _ACEOF
12745
12746 # Files that config.status was made for.
12747 if test -n "$ac_config_files"; then
12748 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12749 fi
12750
12751 if test -n "$ac_config_headers"; then
12752 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12753 fi
12754
12755 if test -n "$ac_config_links"; then
12756 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12757 fi
12758
12759 if test -n "$ac_config_commands"; then
12760 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12761 fi
12762
12763 cat >>$CONFIG_STATUS <<\_ACEOF
12764
12765 ac_cs_usage="\
12766 \`$as_me' instantiates files from templates according to the
12767 current configuration.
12768
12769 Usage: $0 [OPTIONS] [FILE]...
12770
12771 -h, --help print this help, then exit
12772 -V, --version print version number, then exit
12773 -q, --quiet do not print progress messages
12774 -d, --debug don't remove temporary files
12775 --recheck update $as_me by reconfiguring in the same conditions
12776 --file=FILE[:TEMPLATE]
12777 instantiate the configuration file FILE
12778 --header=FILE[:TEMPLATE]
12779 instantiate the configuration header FILE
12780
12781 Configuration files:
12782 $config_files
12783
12784 Configuration headers:
12785 $config_headers
12786
12787 Configuration commands:
12788 $config_commands
12789
12790 Report bugs to <bug-autoconf@gnu.org>."
12791 _ACEOF
12792
12793 cat >>$CONFIG_STATUS <<_ACEOF
12794 ac_cs_version="\\
12795 config.status
12796 configured by $0, generated by GNU Autoconf 2.59,
12797 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12798
12799 Copyright (C) 2003 Free Software Foundation, Inc.
12800 This config.status script is free software; the Free Software Foundation
12801 gives unlimited permission to copy, distribute and modify it."
12802 srcdir=$srcdir
12803 INSTALL="$INSTALL"
12804 _ACEOF
12805
12806 cat >>$CONFIG_STATUS <<\_ACEOF
12807 # If no file are specified by the user, then we need to provide default
12808 # value. By we need to know if files were specified by the user.
12809 ac_need_defaults=:
12810 while test $# != 0
12811 do
12812 case $1 in
12813 --*=*)
12814 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12815 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12816 ac_shift=:
12817 ;;
12818 -*)
12819 ac_option=$1
12820 ac_optarg=$2
12821 ac_shift=shift
12822 ;;
12823 *) # This is not an option, so the user has probably given explicit
12824 # arguments.
12825 ac_option=$1
12826 ac_need_defaults=false;;
12827 esac
12828
12829 case $ac_option in
12830 # Handling of the options.
12831 _ACEOF
12832 cat >>$CONFIG_STATUS <<\_ACEOF
12833 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12834 ac_cs_recheck=: ;;
12835 --version | --vers* | -V )
12836 echo "$ac_cs_version"; exit 0 ;;
12837 --he | --h)
12838 # Conflict between --help and --header
12839 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12840 Try \`$0 --help' for more information." >&5
12841 echo "$as_me: error: ambiguous option: $1
12842 Try \`$0 --help' for more information." >&2;}
12843 { (exit 1); exit 1; }; };;
12844 --help | --hel | -h )
12845 echo "$ac_cs_usage"; exit 0 ;;
12846 --debug | --d* | -d )
12847 debug=: ;;
12848 --file | --fil | --fi | --f )
12849 $ac_shift
12850 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12851 ac_need_defaults=false;;
12852 --header | --heade | --head | --hea )
12853 $ac_shift
12854 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12855 ac_need_defaults=false;;
12856 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12857 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12858 ac_cs_silent=: ;;
12859
12860 # This is an error.
12861 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12862 Try \`$0 --help' for more information." >&5
12863 echo "$as_me: error: unrecognized option: $1
12864 Try \`$0 --help' for more information." >&2;}
12865 { (exit 1); exit 1; }; } ;;
12866
12867 *) ac_config_targets="$ac_config_targets $1" ;;
12868
12869 esac
12870 shift
12871 done
12872
12873 ac_configure_extra_args=
12874
12875 if $ac_cs_silent; then
12876 exec 6>/dev/null
12877 ac_configure_extra_args="$ac_configure_extra_args --silent"
12878 fi
12879
12880 _ACEOF
12881 cat >>$CONFIG_STATUS <<_ACEOF
12882 if \$ac_cs_recheck; then
12883 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12884 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12885 fi
12886
12887 _ACEOF
12888
12889 cat >>$CONFIG_STATUS <<_ACEOF
12890 #
12891 # INIT-COMMANDS section.
12892 #
12893
12894 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12895 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12896 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12897 # from automake.
12898 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12899 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12900 LINGUAS="${LINGUAS-%UNSET%}"
12901
12902
12903
12904 _ACEOF
12905
12906
12907
12908 cat >>$CONFIG_STATUS <<\_ACEOF
12909 for ac_config_target in $ac_config_targets
12910 do
12911 case "$ac_config_target" in
12912 # Handling of arguments.
12913 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12914 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12915 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
12916 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
12917 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12918 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12919 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12920 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12921 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12922 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12923 { (exit 1); exit 1; }; };;
12924 esac
12925 done
12926
12927 # If the user did not use the arguments to specify the items to instantiate,
12928 # then the envvar interface is used. Set only those that are not.
12929 # We use the long form for the default assignment because of an extremely
12930 # bizarre bug on SunOS 4.1.3.
12931 if $ac_need_defaults; then
12932 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12933 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12934 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12935 fi
12936
12937 # Have a temporary directory for convenience. Make it in the build tree
12938 # simply because there is no reason to put it here, and in addition,
12939 # creating and moving files from /tmp can sometimes cause problems.
12940 # Create a temporary directory, and hook for its removal unless debugging.
12941 $debug ||
12942 {
12943 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12944 trap '{ (exit 1); exit 1; }' 1 2 13 15
12945 }
12946
12947 # Create a (secure) tmp directory for tmp files.
12948
12949 {
12950 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12951 test -n "$tmp" && test -d "$tmp"
12952 } ||
12953 {
12954 tmp=./confstat$$-$RANDOM
12955 (umask 077 && mkdir $tmp)
12956 } ||
12957 {
12958 echo "$me: cannot create a temporary directory in ." >&2
12959 { (exit 1); exit 1; }
12960 }
12961
12962 _ACEOF
12963
12964 cat >>$CONFIG_STATUS <<_ACEOF
12965
12966 #
12967 # CONFIG_FILES section.
12968 #
12969
12970 # No need to generate the scripts if there are no CONFIG_FILES.
12971 # This happens for instance when ./config.status config.h
12972 if test -n "\$CONFIG_FILES"; then
12973 # Protect against being on the right side of a sed subst in config.status.
12974 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12975 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12976 s,@SHELL@,$SHELL,;t t
12977 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12978 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12979 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12980 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12981 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12982 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12983 s,@exec_prefix@,$exec_prefix,;t t
12984 s,@prefix@,$prefix,;t t
12985 s,@program_transform_name@,$program_transform_name,;t t
12986 s,@bindir@,$bindir,;t t
12987 s,@sbindir@,$sbindir,;t t
12988 s,@libexecdir@,$libexecdir,;t t
12989 s,@datadir@,$datadir,;t t
12990 s,@sysconfdir@,$sysconfdir,;t t
12991 s,@sharedstatedir@,$sharedstatedir,;t t
12992 s,@localstatedir@,$localstatedir,;t t
12993 s,@libdir@,$libdir,;t t
12994 s,@includedir@,$includedir,;t t
12995 s,@oldincludedir@,$oldincludedir,;t t
12996 s,@infodir@,$infodir,;t t
12997 s,@mandir@,$mandir,;t t
12998 s,@build_alias@,$build_alias,;t t
12999 s,@host_alias@,$host_alias,;t t
13000 s,@target_alias@,$target_alias,;t t
13001 s,@DEFS@,$DEFS,;t t
13002 s,@ECHO_C@,$ECHO_C,;t t
13003 s,@ECHO_N@,$ECHO_N,;t t
13004 s,@ECHO_T@,$ECHO_T,;t t
13005 s,@LIBS@,$LIBS,;t t
13006 s,@build@,$build,;t t
13007 s,@build_cpu@,$build_cpu,;t t
13008 s,@build_vendor@,$build_vendor,;t t
13009 s,@build_os@,$build_os,;t t
13010 s,@host@,$host,;t t
13011 s,@host_cpu@,$host_cpu,;t t
13012 s,@host_vendor@,$host_vendor,;t t
13013 s,@host_os@,$host_os,;t t
13014 s,@target@,$target,;t t
13015 s,@target_cpu@,$target_cpu,;t t
13016 s,@target_vendor@,$target_vendor,;t t
13017 s,@target_os@,$target_os,;t t
13018 s,@CC@,$CC,;t t
13019 s,@CFLAGS@,$CFLAGS,;t t
13020 s,@LDFLAGS@,$LDFLAGS,;t t
13021 s,@CPPFLAGS@,$CPPFLAGS,;t t
13022 s,@ac_ct_CC@,$ac_ct_CC,;t t
13023 s,@EXEEXT@,$EXEEXT,;t t
13024 s,@OBJEXT@,$OBJEXT,;t t
13025 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13026 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13027 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13028 s,@CYGPATH_W@,$CYGPATH_W,;t t
13029 s,@PACKAGE@,$PACKAGE,;t t
13030 s,@VERSION@,$VERSION,;t t
13031 s,@ACLOCAL@,$ACLOCAL,;t t
13032 s,@AUTOCONF@,$AUTOCONF,;t t
13033 s,@AUTOMAKE@,$AUTOMAKE,;t t
13034 s,@AUTOHEADER@,$AUTOHEADER,;t t
13035 s,@MAKEINFO@,$MAKEINFO,;t t
13036 s,@install_sh@,$install_sh,;t t
13037 s,@STRIP@,$STRIP,;t t
13038 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13039 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13040 s,@mkdir_p@,$mkdir_p,;t t
13041 s,@AWK@,$AWK,;t t
13042 s,@SET_MAKE@,$SET_MAKE,;t t
13043 s,@am__leading_dot@,$am__leading_dot,;t t
13044 s,@AMTAR@,$AMTAR,;t t
13045 s,@am__tar@,$am__tar,;t t
13046 s,@am__untar@,$am__untar,;t t
13047 s,@DEPDIR@,$DEPDIR,;t t
13048 s,@am__include@,$am__include,;t t
13049 s,@am__quote@,$am__quote,;t t
13050 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13051 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13052 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13053 s,@CCDEPMODE@,$CCDEPMODE,;t t
13054 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13055 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13056 s,@AR@,$AR,;t t
13057 s,@ac_ct_AR@,$ac_ct_AR,;t t
13058 s,@RANLIB@,$RANLIB,;t t
13059 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13060 s,@LN_S@,$LN_S,;t t
13061 s,@LIBTOOL@,$LIBTOOL,;t t
13062 s,@PKGVERSION@,$PKGVERSION,;t t
13063 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
13064 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
13065 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
13066 s,@NO_WERROR@,$NO_WERROR,;t t
13067 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13068 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13069 s,@MAINT@,$MAINT,;t t
13070 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
13071 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
13072 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
13073 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
13074 s,@host_noncanonical@,$host_noncanonical,;t t
13075 s,@target_noncanonical@,$target_noncanonical,;t t
13076 s,@bfdlibdir@,$bfdlibdir,;t t
13077 s,@bfdincludedir@,$bfdincludedir,;t t
13078 s,@USE_NLS@,$USE_NLS,;t t
13079 s,@LIBINTL@,$LIBINTL,;t t
13080 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13081 s,@INCINTL@,$INCINTL,;t t
13082 s,@XGETTEXT@,$XGETTEXT,;t t
13083 s,@GMSGFMT@,$GMSGFMT,;t t
13084 s,@POSUB@,$POSUB,;t t
13085 s,@CATALOGS@,$CATALOGS,;t t
13086 s,@DATADIRNAME@,$DATADIRNAME,;t t
13087 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
13088 s,@GENCAT@,$GENCAT,;t t
13089 s,@CATOBJEXT@,$CATOBJEXT,;t t
13090 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13091 s,@MSGFMT@,$MSGFMT,;t t
13092 s,@MSGMERGE@,$MSGMERGE,;t t
13093 s,@HDEFINES@,$HDEFINES,;t t
13094 s,@CPP@,$CPP,;t t
13095 s,@EGREP@,$EGREP,;t t
13096 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
13097 s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
13098 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
13099 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
13100 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
13101 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13102 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
13103 s,@COREFILE@,$COREFILE,;t t
13104 s,@COREFLAG@,$COREFLAG,;t t
13105 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
13106 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
13107 s,@TDEFINES@,$TDEFINES,;t t
13108 s,@wordsize@,$wordsize,;t t
13109 s,@bfd64_libs@,$bfd64_libs,;t t
13110 s,@all_backends@,$all_backends,;t t
13111 s,@bfd_backends@,$bfd_backends,;t t
13112 s,@bfd_machines@,$bfd_machines,;t t
13113 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
13114 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
13115 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
13116 s,@tdefaults@,$tdefaults,;t t
13117 s,@datarootdir@,$datarootdir,;t t
13118 s,@docdir@,$docdir,;t t
13119 s,@htmldir@,$htmldir,;t t
13120 s,@LIBOBJS@,$LIBOBJS,;t t
13121 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13122 CEOF
13123
13124 _ACEOF
13125
13126 cat >>$CONFIG_STATUS <<\_ACEOF
13127 # Split the substitutions into bite-sized pieces for seds with
13128 # small command number limits, like on Digital OSF/1 and HP-UX.
13129 ac_max_sed_lines=48
13130 ac_sed_frag=1 # Number of current file.
13131 ac_beg=1 # First line for current file.
13132 ac_end=$ac_max_sed_lines # Line after last line for current file.
13133 ac_more_lines=:
13134 ac_sed_cmds=
13135 while $ac_more_lines; do
13136 if test $ac_beg -gt 1; then
13137 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13138 else
13139 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13140 fi
13141 if test ! -s $tmp/subs.frag; then
13142 ac_more_lines=false
13143 else
13144 # The purpose of the label and of the branching condition is to
13145 # speed up the sed processing (if there are no `@' at all, there
13146 # is no need to browse any of the substitutions).
13147 # These are the two extra sed commands mentioned above.
13148 (echo ':t
13149 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13150 if test -z "$ac_sed_cmds"; then
13151 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13152 else
13153 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13154 fi
13155 ac_sed_frag=`expr $ac_sed_frag + 1`
13156 ac_beg=$ac_end
13157 ac_end=`expr $ac_end + $ac_max_sed_lines`
13158 fi
13159 done
13160 if test -z "$ac_sed_cmds"; then
13161 ac_sed_cmds=cat
13162 fi
13163 fi # test -n "$CONFIG_FILES"
13164
13165 _ACEOF
13166 cat >>$CONFIG_STATUS <<\_ACEOF
13167 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13168 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13169 case $ac_file in
13170 - | *:- | *:-:* ) # input from stdin
13171 cat >$tmp/stdin
13172 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13173 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13174 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13175 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13176 * ) ac_file_in=$ac_file.in ;;
13177 esac
13178
13179 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13180 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13181 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13182 X"$ac_file" : 'X\(//\)[^/]' \| \
13183 X"$ac_file" : 'X\(//\)$' \| \
13184 X"$ac_file" : 'X\(/\)' \| \
13185 . : '\(.\)' 2>/dev/null ||
13186 echo X"$ac_file" |
13187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13188 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13189 /^X\(\/\/\)$/{ s//\1/; q; }
13190 /^X\(\/\).*/{ s//\1/; q; }
13191 s/.*/./; q'`
13192 { if $as_mkdir_p; then
13193 mkdir -p "$ac_dir"
13194 else
13195 as_dir="$ac_dir"
13196 as_dirs=
13197 while test ! -d "$as_dir"; do
13198 as_dirs="$as_dir $as_dirs"
13199 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13200 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13201 X"$as_dir" : 'X\(//\)[^/]' \| \
13202 X"$as_dir" : 'X\(//\)$' \| \
13203 X"$as_dir" : 'X\(/\)' \| \
13204 . : '\(.\)' 2>/dev/null ||
13205 echo X"$as_dir" |
13206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13207 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13208 /^X\(\/\/\)$/{ s//\1/; q; }
13209 /^X\(\/\).*/{ s//\1/; q; }
13210 s/.*/./; q'`
13211 done
13212 test ! -n "$as_dirs" || mkdir $as_dirs
13213 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13214 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13215 { (exit 1); exit 1; }; }; }
13216
13217 ac_builddir=.
13218
13219 if test "$ac_dir" != .; then
13220 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13221 # A "../" for each directory in $ac_dir_suffix.
13222 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13223 else
13224 ac_dir_suffix= ac_top_builddir=
13225 fi
13226
13227 case $srcdir in
13228 .) # No --srcdir option. We are building in place.
13229 ac_srcdir=.
13230 if test -z "$ac_top_builddir"; then
13231 ac_top_srcdir=.
13232 else
13233 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13234 fi ;;
13235 [\\/]* | ?:[\\/]* ) # Absolute path.
13236 ac_srcdir=$srcdir$ac_dir_suffix;
13237 ac_top_srcdir=$srcdir ;;
13238 *) # Relative path.
13239 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13240 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13241 esac
13242
13243 # Do not use `cd foo && pwd` to compute absolute paths, because
13244 # the directories may not exist.
13245 case `pwd` in
13246 .) ac_abs_builddir="$ac_dir";;
13247 *)
13248 case "$ac_dir" in
13249 .) ac_abs_builddir=`pwd`;;
13250 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13251 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13252 esac;;
13253 esac
13254 case $ac_abs_builddir in
13255 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13256 *)
13257 case ${ac_top_builddir}. in
13258 .) ac_abs_top_builddir=$ac_abs_builddir;;
13259 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13260 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13261 esac;;
13262 esac
13263 case $ac_abs_builddir in
13264 .) ac_abs_srcdir=$ac_srcdir;;
13265 *)
13266 case $ac_srcdir in
13267 .) ac_abs_srcdir=$ac_abs_builddir;;
13268 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13269 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13270 esac;;
13271 esac
13272 case $ac_abs_builddir in
13273 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13274 *)
13275 case $ac_top_srcdir in
13276 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13277 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13278 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13279 esac;;
13280 esac
13281
13282
13283 case $INSTALL in
13284 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13285 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13286 esac
13287
13288 if test x"$ac_file" != x-; then
13289 { echo "$as_me:$LINENO: creating $ac_file" >&5
13290 echo "$as_me: creating $ac_file" >&6;}
13291 rm -f "$ac_file"
13292 fi
13293 # Let's still pretend it is `configure' which instantiates (i.e., don't
13294 # use $as_me), people would be surprised to read:
13295 # /* config.h. Generated by config.status. */
13296 if test x"$ac_file" = x-; then
13297 configure_input=
13298 else
13299 configure_input="$ac_file. "
13300 fi
13301 configure_input=$configure_input"Generated from `echo $ac_file_in |
13302 sed 's,.*/,,'` by configure."
13303
13304 # First look for the input files in the build tree, otherwise in the
13305 # src tree.
13306 ac_file_inputs=`IFS=:
13307 for f in $ac_file_in; do
13308 case $f in
13309 -) echo $tmp/stdin ;;
13310 [\\/$]*)
13311 # Absolute (can't be DOS-style, as IFS=:)
13312 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13313 echo "$as_me: error: cannot find input file: $f" >&2;}
13314 { (exit 1); exit 1; }; }
13315 echo "$f";;
13316 *) # Relative
13317 if test -f "$f"; then
13318 # Build tree
13319 echo "$f"
13320 elif test -f "$srcdir/$f"; then
13321 # Source tree
13322 echo "$srcdir/$f"
13323 else
13324 # /dev/null tree
13325 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13326 echo "$as_me: error: cannot find input file: $f" >&2;}
13327 { (exit 1); exit 1; }; }
13328 fi;;
13329 esac
13330 done` || { (exit 1); exit 1; }
13331 _ACEOF
13332 cat >>$CONFIG_STATUS <<_ACEOF
13333 sed "$ac_vpsub
13334 $extrasub
13335 _ACEOF
13336 cat >>$CONFIG_STATUS <<\_ACEOF
13337 :t
13338 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13339 s,@configure_input@,$configure_input,;t t
13340 s,@srcdir@,$ac_srcdir,;t t
13341 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13342 s,@top_srcdir@,$ac_top_srcdir,;t t
13343 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13344 s,@builddir@,$ac_builddir,;t t
13345 s,@abs_builddir@,$ac_abs_builddir,;t t
13346 s,@top_builddir@,$ac_top_builddir,;t t
13347 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13348 s,@INSTALL@,$ac_INSTALL,;t t
13349 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13350 rm -f $tmp/stdin
13351 if test x"$ac_file" != x-; then
13352 mv $tmp/out $ac_file
13353 else
13354 cat $tmp/out
13355 rm -f $tmp/out
13356 fi
13357
13358 done
13359 _ACEOF
13360 cat >>$CONFIG_STATUS <<\_ACEOF
13361
13362 #
13363 # CONFIG_HEADER section.
13364 #
13365
13366 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13367 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13368 #
13369 # ac_d sets the value in "#define NAME VALUE" lines.
13370 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13371 ac_dB='[ ].*$,\1#\2'
13372 ac_dC=' '
13373 ac_dD=',;t'
13374 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13375 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13376 ac_uB='$,\1#\2define\3'
13377 ac_uC=' '
13378 ac_uD=',;t'
13379
13380 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13381 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13382 case $ac_file in
13383 - | *:- | *:-:* ) # input from stdin
13384 cat >$tmp/stdin
13385 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13386 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13387 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13388 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13389 * ) ac_file_in=$ac_file.in ;;
13390 esac
13391
13392 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13393 echo "$as_me: creating $ac_file" >&6;}
13394
13395 # First look for the input files in the build tree, otherwise in the
13396 # src tree.
13397 ac_file_inputs=`IFS=:
13398 for f in $ac_file_in; do
13399 case $f in
13400 -) echo $tmp/stdin ;;
13401 [\\/$]*)
13402 # Absolute (can't be DOS-style, as IFS=:)
13403 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13404 echo "$as_me: error: cannot find input file: $f" >&2;}
13405 { (exit 1); exit 1; }; }
13406 # Do quote $f, to prevent DOS paths from being IFS'd.
13407 echo "$f";;
13408 *) # Relative
13409 if test -f "$f"; then
13410 # Build tree
13411 echo "$f"
13412 elif test -f "$srcdir/$f"; then
13413 # Source tree
13414 echo "$srcdir/$f"
13415 else
13416 # /dev/null tree
13417 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13418 echo "$as_me: error: cannot find input file: $f" >&2;}
13419 { (exit 1); exit 1; }; }
13420 fi;;
13421 esac
13422 done` || { (exit 1); exit 1; }
13423 # Remove the trailing spaces.
13424 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13425
13426 _ACEOF
13427
13428 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13429 # `conftest.undefs', that substitutes the proper values into
13430 # config.h.in to produce config.h. The first handles `#define'
13431 # templates, and the second `#undef' templates.
13432 # And first: Protect against being on the right side of a sed subst in
13433 # config.status. Protect against being in an unquoted here document
13434 # in config.status.
13435 rm -f conftest.defines conftest.undefs
13436 # Using a here document instead of a string reduces the quoting nightmare.
13437 # Putting comments in sed scripts is not portable.
13438 #
13439 # `end' is used to avoid that the second main sed command (meant for
13440 # 0-ary CPP macros) applies to n-ary macro definitions.
13441 # See the Autoconf documentation for `clear'.
13442 cat >confdef2sed.sed <<\_ACEOF
13443 s/[\\&,]/\\&/g
13444 s,[\\$`],\\&,g
13445 t clear
13446 : clear
13447 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13448 t end
13449 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13450 : end
13451 _ACEOF
13452 # If some macros were called several times there might be several times
13453 # the same #defines, which is useless. Nevertheless, we may not want to
13454 # sort them, since we want the *last* AC-DEFINE to be honored.
13455 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13456 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13457 rm -f confdef2sed.sed
13458
13459 # This sed command replaces #undef with comments. This is necessary, for
13460 # example, in the case of _POSIX_SOURCE, which is predefined and required
13461 # on some systems where configure will not decide to define it.
13462 cat >>conftest.undefs <<\_ACEOF
13463 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13464 _ACEOF
13465
13466 # Break up conftest.defines because some shells have a limit on the size
13467 # of here documents, and old seds have small limits too (100 cmds).
13468 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13469 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13470 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13471 echo ' :' >>$CONFIG_STATUS
13472 rm -f conftest.tail
13473 while grep . conftest.defines >/dev/null
13474 do
13475 # Write a limited-size here document to $tmp/defines.sed.
13476 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13477 # Speed up: don't consider the non `#define' lines.
13478 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13479 # Work around the forget-to-reset-the-flag bug.
13480 echo 't clr' >>$CONFIG_STATUS
13481 echo ': clr' >>$CONFIG_STATUS
13482 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13483 echo 'CEOF
13484 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13485 rm -f $tmp/in
13486 mv $tmp/out $tmp/in
13487 ' >>$CONFIG_STATUS
13488 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13489 rm -f conftest.defines
13490 mv conftest.tail conftest.defines
13491 done
13492 rm -f conftest.defines
13493 echo ' fi # grep' >>$CONFIG_STATUS
13494 echo >>$CONFIG_STATUS
13495
13496 # Break up conftest.undefs because some shells have a limit on the size
13497 # of here documents, and old seds have small limits too (100 cmds).
13498 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13499 rm -f conftest.tail
13500 while grep . conftest.undefs >/dev/null
13501 do
13502 # Write a limited-size here document to $tmp/undefs.sed.
13503 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13504 # Speed up: don't consider the non `#undef'
13505 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13506 # Work around the forget-to-reset-the-flag bug.
13507 echo 't clr' >>$CONFIG_STATUS
13508 echo ': clr' >>$CONFIG_STATUS
13509 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13510 echo 'CEOF
13511 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13512 rm -f $tmp/in
13513 mv $tmp/out $tmp/in
13514 ' >>$CONFIG_STATUS
13515 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13516 rm -f conftest.undefs
13517 mv conftest.tail conftest.undefs
13518 done
13519 rm -f conftest.undefs
13520
13521 cat >>$CONFIG_STATUS <<\_ACEOF
13522 # Let's still pretend it is `configure' which instantiates (i.e., don't
13523 # use $as_me), people would be surprised to read:
13524 # /* config.h. Generated by config.status. */
13525 if test x"$ac_file" = x-; then
13526 echo "/* Generated by configure. */" >$tmp/config.h
13527 else
13528 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13529 fi
13530 cat $tmp/in >>$tmp/config.h
13531 rm -f $tmp/in
13532 if test x"$ac_file" != x-; then
13533 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13534 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13535 echo "$as_me: $ac_file is unchanged" >&6;}
13536 else
13537 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13538 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13539 X"$ac_file" : 'X\(//\)[^/]' \| \
13540 X"$ac_file" : 'X\(//\)$' \| \
13541 X"$ac_file" : 'X\(/\)' \| \
13542 . : '\(.\)' 2>/dev/null ||
13543 echo X"$ac_file" |
13544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13545 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13546 /^X\(\/\/\)$/{ s//\1/; q; }
13547 /^X\(\/\).*/{ s//\1/; q; }
13548 s/.*/./; q'`
13549 { if $as_mkdir_p; then
13550 mkdir -p "$ac_dir"
13551 else
13552 as_dir="$ac_dir"
13553 as_dirs=
13554 while test ! -d "$as_dir"; do
13555 as_dirs="$as_dir $as_dirs"
13556 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13557 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13558 X"$as_dir" : 'X\(//\)[^/]' \| \
13559 X"$as_dir" : 'X\(//\)$' \| \
13560 X"$as_dir" : 'X\(/\)' \| \
13561 . : '\(.\)' 2>/dev/null ||
13562 echo X"$as_dir" |
13563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13564 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13565 /^X\(\/\/\)$/{ s//\1/; q; }
13566 /^X\(\/\).*/{ s//\1/; q; }
13567 s/.*/./; q'`
13568 done
13569 test ! -n "$as_dirs" || mkdir $as_dirs
13570 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13571 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13572 { (exit 1); exit 1; }; }; }
13573
13574 rm -f $ac_file
13575 mv $tmp/config.h $ac_file
13576 fi
13577 else
13578 cat $tmp/config.h
13579 rm -f $tmp/config.h
13580 fi
13581 # Compute $ac_file's index in $config_headers.
13582 _am_stamp_count=1
13583 for _am_header in $config_headers :; do
13584 case $_am_header in
13585 $ac_file | $ac_file:* )
13586 break ;;
13587 * )
13588 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13589 esac
13590 done
13591 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13592 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13593 X$ac_file : 'X\(//\)[^/]' \| \
13594 X$ac_file : 'X\(//\)$' \| \
13595 X$ac_file : 'X\(/\)' \| \
13596 . : '\(.\)' 2>/dev/null ||
13597 echo X$ac_file |
13598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13599 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13600 /^X\(\/\/\)$/{ s//\1/; q; }
13601 /^X\(\/\).*/{ s//\1/; q; }
13602 s/.*/./; q'`/stamp-h$_am_stamp_count
13603 done
13604 _ACEOF
13605 cat >>$CONFIG_STATUS <<\_ACEOF
13606
13607 #
13608 # CONFIG_COMMANDS section.
13609 #
13610 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13611 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13612 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13613 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13614 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13615 X"$ac_dest" : 'X\(//\)[^/]' \| \
13616 X"$ac_dest" : 'X\(//\)$' \| \
13617 X"$ac_dest" : 'X\(/\)' \| \
13618 . : '\(.\)' 2>/dev/null ||
13619 echo X"$ac_dest" |
13620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13621 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13622 /^X\(\/\/\)$/{ s//\1/; q; }
13623 /^X\(\/\).*/{ s//\1/; q; }
13624 s/.*/./; q'`
13625 { if $as_mkdir_p; then
13626 mkdir -p "$ac_dir"
13627 else
13628 as_dir="$ac_dir"
13629 as_dirs=
13630 while test ! -d "$as_dir"; do
13631 as_dirs="$as_dir $as_dirs"
13632 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13633 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13634 X"$as_dir" : 'X\(//\)[^/]' \| \
13635 X"$as_dir" : 'X\(//\)$' \| \
13636 X"$as_dir" : 'X\(/\)' \| \
13637 . : '\(.\)' 2>/dev/null ||
13638 echo X"$as_dir" |
13639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13640 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13641 /^X\(\/\/\)$/{ s//\1/; q; }
13642 /^X\(\/\).*/{ s//\1/; q; }
13643 s/.*/./; q'`
13644 done
13645 test ! -n "$as_dirs" || mkdir $as_dirs
13646 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13647 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13648 { (exit 1); exit 1; }; }; }
13649
13650 ac_builddir=.
13651
13652 if test "$ac_dir" != .; then
13653 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13654 # A "../" for each directory in $ac_dir_suffix.
13655 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13656 else
13657 ac_dir_suffix= ac_top_builddir=
13658 fi
13659
13660 case $srcdir in
13661 .) # No --srcdir option. We are building in place.
13662 ac_srcdir=.
13663 if test -z "$ac_top_builddir"; then
13664 ac_top_srcdir=.
13665 else
13666 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13667 fi ;;
13668 [\\/]* | ?:[\\/]* ) # Absolute path.
13669 ac_srcdir=$srcdir$ac_dir_suffix;
13670 ac_top_srcdir=$srcdir ;;
13671 *) # Relative path.
13672 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13673 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13674 esac
13675
13676 # Do not use `cd foo && pwd` to compute absolute paths, because
13677 # the directories may not exist.
13678 case `pwd` in
13679 .) ac_abs_builddir="$ac_dir";;
13680 *)
13681 case "$ac_dir" in
13682 .) ac_abs_builddir=`pwd`;;
13683 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13684 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13685 esac;;
13686 esac
13687 case $ac_abs_builddir in
13688 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13689 *)
13690 case ${ac_top_builddir}. in
13691 .) ac_abs_top_builddir=$ac_abs_builddir;;
13692 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13693 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13694 esac;;
13695 esac
13696 case $ac_abs_builddir in
13697 .) ac_abs_srcdir=$ac_srcdir;;
13698 *)
13699 case $ac_srcdir in
13700 .) ac_abs_srcdir=$ac_abs_builddir;;
13701 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13702 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13703 esac;;
13704 esac
13705 case $ac_abs_builddir in
13706 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13707 *)
13708 case $ac_top_srcdir in
13709 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13710 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13711 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13712 esac;;
13713 esac
13714
13715
13716 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13717 echo "$as_me: executing $ac_dest commands" >&6;}
13718 case $ac_dest in
13719 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13720 # Strip MF so we end up with the name of the file.
13721 mf=`echo "$mf" | sed -e 's/:.*$//'`
13722 # Check whether this is an Automake generated Makefile or not.
13723 # We used to match only the files named `Makefile.in', but
13724 # some people rename them; so instead we look at the file content.
13725 # Grep'ing the first line is not enough: some people post-process
13726 # each Makefile.in and add a new line on top of each file to say so.
13727 # So let's grep whole file.
13728 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13729 dirpart=`(dirname "$mf") 2>/dev/null ||
13730 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13731 X"$mf" : 'X\(//\)[^/]' \| \
13732 X"$mf" : 'X\(//\)$' \| \
13733 X"$mf" : 'X\(/\)' \| \
13734 . : '\(.\)' 2>/dev/null ||
13735 echo X"$mf" |
13736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13737 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13738 /^X\(\/\/\)$/{ s//\1/; q; }
13739 /^X\(\/\).*/{ s//\1/; q; }
13740 s/.*/./; q'`
13741 else
13742 continue
13743 fi
13744 # Extract the definition of DEPDIR, am__include, and am__quote
13745 # from the Makefile without running `make'.
13746 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13747 test -z "$DEPDIR" && continue
13748 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13749 test -z "am__include" && continue
13750 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13751 # When using ansi2knr, U may be empty or an underscore; expand it
13752 U=`sed -n 's/^U = //p' < "$mf"`
13753 # Find all dependency output files, they are included files with
13754 # $(DEPDIR) in their names. We invoke sed twice because it is the
13755 # simplest approach to changing $(DEPDIR) to its actual value in the
13756 # expansion.
13757 for file in `sed -n "
13758 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13759 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13760 # Make sure the directory exists.
13761 test -f "$dirpart/$file" && continue
13762 fdir=`(dirname "$file") 2>/dev/null ||
13763 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13764 X"$file" : 'X\(//\)[^/]' \| \
13765 X"$file" : 'X\(//\)$' \| \
13766 X"$file" : 'X\(/\)' \| \
13767 . : '\(.\)' 2>/dev/null ||
13768 echo X"$file" |
13769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13770 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13771 /^X\(\/\/\)$/{ s//\1/; q; }
13772 /^X\(\/\).*/{ s//\1/; q; }
13773 s/.*/./; q'`
13774 { if $as_mkdir_p; then
13775 mkdir -p $dirpart/$fdir
13776 else
13777 as_dir=$dirpart/$fdir
13778 as_dirs=
13779 while test ! -d "$as_dir"; do
13780 as_dirs="$as_dir $as_dirs"
13781 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13782 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13783 X"$as_dir" : 'X\(//\)[^/]' \| \
13784 X"$as_dir" : 'X\(//\)$' \| \
13785 X"$as_dir" : 'X\(/\)' \| \
13786 . : '\(.\)' 2>/dev/null ||
13787 echo X"$as_dir" |
13788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13789 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13790 /^X\(\/\/\)$/{ s//\1/; q; }
13791 /^X\(\/\).*/{ s//\1/; q; }
13792 s/.*/./; q'`
13793 done
13794 test ! -n "$as_dirs" || mkdir $as_dirs
13795 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13796 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13797 { (exit 1); exit 1; }; }; }
13798
13799 # echo "creating $dirpart/$file"
13800 echo '# dummy' > "$dirpart/$file"
13801 done
13802 done
13803 ;;
13804 default-1 )
13805 for ac_file in $CONFIG_FILES; do
13806 # Support "outfile[:infile[:infile...]]"
13807 case "$ac_file" in
13808 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13809 esac
13810 # PO directories have a Makefile.in generated from Makefile.in.in.
13811 case "$ac_file" in */Makefile.in)
13812 # Adjust a relative srcdir.
13813 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13814 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13815 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13816 # In autoconf-2.13 it is called $ac_given_srcdir.
13817 # In autoconf-2.50 it is called $srcdir.
13818 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13819 case "$ac_given_srcdir" in
13820 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13821 /*) top_srcdir="$ac_given_srcdir" ;;
13822 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13823 esac
13824 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13825 rm -f "$ac_dir/POTFILES"
13826 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13827 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13828 POMAKEFILEDEPS="POTFILES.in"
13829 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13830 # on $ac_dir but don't depend on user-specified configuration
13831 # parameters.
13832 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13833 # The LINGUAS file contains the set of available languages.
13834 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13835 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13836 fi
13837 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13838 # Hide the ALL_LINGUAS assigment from automake.
13839 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13840 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13841 else
13842 # The set of available languages was given in configure.in.
13843 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13844 fi
13845 case "$ac_given_srcdir" in
13846 .) srcdirpre= ;;
13847 *) srcdirpre='$(srcdir)/' ;;
13848 esac
13849 POFILES=
13850 GMOFILES=
13851 UPDATEPOFILES=
13852 DUMMYPOFILES=
13853 for lang in $ALL_LINGUAS; do
13854 POFILES="$POFILES $srcdirpre$lang.po"
13855 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13856 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13857 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13858 done
13859 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13860 # environment variable.
13861 INST_LINGUAS=
13862 if test -n "$ALL_LINGUAS"; then
13863 for presentlang in $ALL_LINGUAS; do
13864 useit=no
13865 if test "%UNSET%" != "$LINGUAS"; then
13866 desiredlanguages="$LINGUAS"
13867 else
13868 desiredlanguages="$ALL_LINGUAS"
13869 fi
13870 for desiredlang in $desiredlanguages; do
13871 # Use the presentlang catalog if desiredlang is
13872 # a. equal to presentlang, or
13873 # b. a variant of presentlang (because in this case,
13874 # presentlang can be used as a fallback for messages
13875 # which are not translated in the desiredlang catalog).
13876 case "$desiredlang" in
13877 "$presentlang"*) useit=yes;;
13878 esac
13879 done
13880 if test $useit = yes; then
13881 INST_LINGUAS="$INST_LINGUAS $presentlang"
13882 fi
13883 done
13884 fi
13885 CATALOGS=
13886 if test -n "$INST_LINGUAS"; then
13887 for lang in $INST_LINGUAS; do
13888 CATALOGS="$CATALOGS $lang.gmo"
13889 done
13890 fi
13891 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13892 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
13893 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13894 if test -f "$f"; then
13895 case "$f" in
13896 *.orig | *.bak | *~) ;;
13897 *) cat "$f" >> "$ac_dir/Makefile" ;;
13898 esac
13899 fi
13900 done
13901 fi
13902 ;;
13903 esac
13904 done ;;
13905 default )
13906 case "$srcdir" in
13907 .) srcdirpre= ;;
13908 *) srcdirpre='$(srcdir)/' ;;
13909 esac
13910 POFILES=
13911 GMOFILES=
13912 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
13913 if test $lang != dummy; then
13914 POFILES="$POFILES $srcdirpre$lang.po"
13915 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13916 fi
13917 done
13918 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
13919 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
13920 -e "s,@POFILES@,$POFILES," \
13921 -e "s,@GMOFILES@,$GMOFILES," \
13922 po/Makefile.in > po/Makefile ;;
13923 esac
13924 done
13925 _ACEOF
13926
13927 cat >>$CONFIG_STATUS <<\_ACEOF
13928
13929 { (exit 0); exit 0; }
13930 _ACEOF
13931 chmod +x $CONFIG_STATUS
13932 ac_clean_files=$ac_clean_files_save
13933
13934
13935 # configure is writing to config.log, and then calls config.status.
13936 # config.status does its own redirection, appending to config.log.
13937 # Unfortunately, on DOS this fails, as config.log is still kept open
13938 # by configure, so config.status won't be able to write to it; its
13939 # output is simply discarded. So we exec the FD to /dev/null,
13940 # effectively closing config.log, so it can be properly (re)opened and
13941 # appended to by config.status. When coming back to configure, we
13942 # need to make the FD available again.
13943 if test "$no_create" != yes; then
13944 ac_cs_success=:
13945 ac_config_status_args=
13946 test "$silent" = yes &&
13947 ac_config_status_args="$ac_config_status_args --quiet"
13948 exec 5>/dev/null
13949 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13950 exec 5>>config.log
13951 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13952 # would make configure fail if this is the last instruction.
13953 $ac_cs_success || { (exit 1); exit 1; }
13954 fi
13955
13956