]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - bfd/configure
Rename ms1 to mt, part 1
[thirdparty/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 WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
831
832 cat <<\_ACEOF
833
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843 _ACEOF
844 fi
845
846 if test -n "$ac_init_help"; then
847
848 cat <<\_ACEOF
849
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --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-included-gettext use the GNU gettext library included here
877
878 Some influential environment variables:
879 CC C compiler command
880 CFLAGS C compiler flags
881 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
882 nonstandard directory <lib dir>
883 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
884 headers in a nonstandard directory <include dir>
885 CPP C preprocessor
886
887 Use these variables to override the choices made by `configure' or to help
888 it to find libraries and programs with nonstandard names/locations.
889
890 _ACEOF
891 fi
892
893 if test "$ac_init_help" = "recursive"; then
894 # If there are subdirs, report their specific --help.
895 ac_popdir=`pwd`
896 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897 test -d $ac_dir || continue
898 ac_builddir=.
899
900 if test "$ac_dir" != .; then
901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902 # A "../" for each directory in $ac_dir_suffix.
903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904 else
905 ac_dir_suffix= ac_top_builddir=
906 fi
907
908 case $srcdir in
909 .) # No --srcdir option. We are building in place.
910 ac_srcdir=.
911 if test -z "$ac_top_builddir"; then
912 ac_top_srcdir=.
913 else
914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915 fi ;;
916 [\\/]* | ?:[\\/]* ) # Absolute path.
917 ac_srcdir=$srcdir$ac_dir_suffix;
918 ac_top_srcdir=$srcdir ;;
919 *) # Relative path.
920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
922 esac
923
924 # Do not use `cd foo && pwd` to compute absolute paths, because
925 # the directories may not exist.
926 case `pwd` in
927 .) ac_abs_builddir="$ac_dir";;
928 *)
929 case "$ac_dir" in
930 .) ac_abs_builddir=`pwd`;;
931 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
932 *) ac_abs_builddir=`pwd`/"$ac_dir";;
933 esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_top_builddir=${ac_top_builddir}.;;
937 *)
938 case ${ac_top_builddir}. in
939 .) ac_abs_top_builddir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
941 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
942 esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_srcdir=$ac_srcdir;;
946 *)
947 case $ac_srcdir in
948 .) ac_abs_srcdir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
950 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
951 esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_top_srcdir=$ac_top_srcdir;;
955 *)
956 case $ac_top_srcdir in
957 .) ac_abs_top_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
959 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
960 esac;;
961 esac
962
963 cd $ac_dir
964 # Check for guested configure; otherwise get Cygnus style configure.
965 if test -f $ac_srcdir/configure.gnu; then
966 echo
967 $SHELL $ac_srcdir/configure.gnu --help=recursive
968 elif test -f $ac_srcdir/configure; then
969 echo
970 $SHELL $ac_srcdir/configure --help=recursive
971 elif test -f $ac_srcdir/configure.ac ||
972 test -f $ac_srcdir/configure.in; then
973 echo
974 $ac_configure --help
975 else
976 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
977 fi
978 cd $ac_popdir
979 done
980 fi
981
982 test -n "$ac_init_help" && exit 0
983 if $ac_init_version; then
984 cat <<\_ACEOF
985
986 Copyright (C) 2003 Free Software Foundation, Inc.
987 This configure script is free software; the Free Software Foundation
988 gives unlimited permission to copy, distribute and modify it.
989 _ACEOF
990 exit 0
991 fi
992 exec 5>config.log
993 cat >&5 <<_ACEOF
994 This file contains any messages produced by compilers while
995 running configure, to aid debugging if configure makes a mistake.
996
997 It was created by $as_me, which was
998 generated by GNU Autoconf 2.59. Invocation command line was
999
1000 $ $0 $@
1001
1002 _ACEOF
1003 {
1004 cat <<_ASUNAME
1005 ## --------- ##
1006 ## Platform. ##
1007 ## --------- ##
1008
1009 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1010 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1011 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1012 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1013 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1014
1015 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1016 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1017
1018 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1019 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1020 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1021 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1022 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1023 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1024 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1025
1026 _ASUNAME
1027
1028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1029 for as_dir in $PATH
1030 do
1031 IFS=$as_save_IFS
1032 test -z "$as_dir" && as_dir=.
1033 echo "PATH: $as_dir"
1034 done
1035
1036 } >&5
1037
1038 cat >&5 <<_ACEOF
1039
1040
1041 ## ----------- ##
1042 ## Core tests. ##
1043 ## ----------- ##
1044
1045 _ACEOF
1046
1047
1048 # Keep a trace of the command line.
1049 # Strip out --no-create and --no-recursion so they do not pile up.
1050 # Strip out --silent because we don't want to record it for future runs.
1051 # Also quote any args containing shell meta-characters.
1052 # Make two passes to allow for proper duplicate-argument suppression.
1053 ac_configure_args=
1054 ac_configure_args0=
1055 ac_configure_args1=
1056 ac_sep=
1057 ac_must_keep_next=false
1058 for ac_pass in 1 2
1059 do
1060 for ac_arg
1061 do
1062 case $ac_arg in
1063 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 continue ;;
1067 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1068 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1069 esac
1070 case $ac_pass in
1071 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1072 2)
1073 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1074 if test $ac_must_keep_next = true; then
1075 ac_must_keep_next=false # Got value, back to normal.
1076 else
1077 case $ac_arg in
1078 *=* | --config-cache | -C | -disable-* | --disable-* \
1079 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1080 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1081 | -with-* | --with-* | -without-* | --without-* | --x)
1082 case "$ac_configure_args0 " in
1083 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1084 esac
1085 ;;
1086 -* ) ac_must_keep_next=true ;;
1087 esac
1088 fi
1089 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1090 # Get rid of the leading space.
1091 ac_sep=" "
1092 ;;
1093 esac
1094 done
1095 done
1096 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1097 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1098
1099 # When interrupted or exit'd, cleanup temporary files, and complete
1100 # config.log. We remove comments because anyway the quotes in there
1101 # would cause problems or look ugly.
1102 # WARNING: Be sure not to use single quotes in there, as some shells,
1103 # such as our DU 5.0 friend, will then `close' the trap.
1104 trap 'exit_status=$?
1105 # Save into config.log some information that might help in debugging.
1106 {
1107 echo
1108
1109 cat <<\_ASBOX
1110 ## ---------------- ##
1111 ## Cache variables. ##
1112 ## ---------------- ##
1113 _ASBOX
1114 echo
1115 # The following way of writing the cache mishandles newlines in values,
1116 {
1117 (set) 2>&1 |
1118 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1119 *ac_space=\ *)
1120 sed -n \
1121 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1123 ;;
1124 *)
1125 sed -n \
1126 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1127 ;;
1128 esac;
1129 }
1130 echo
1131
1132 cat <<\_ASBOX
1133 ## ----------------- ##
1134 ## Output variables. ##
1135 ## ----------------- ##
1136 _ASBOX
1137 echo
1138 for ac_var in $ac_subst_vars
1139 do
1140 eval ac_val=$`echo $ac_var`
1141 echo "$ac_var='"'"'$ac_val'"'"'"
1142 done | sort
1143 echo
1144
1145 if test -n "$ac_subst_files"; then
1146 cat <<\_ASBOX
1147 ## ------------- ##
1148 ## Output files. ##
1149 ## ------------- ##
1150 _ASBOX
1151 echo
1152 for ac_var in $ac_subst_files
1153 do
1154 eval ac_val=$`echo $ac_var`
1155 echo "$ac_var='"'"'$ac_val'"'"'"
1156 done | sort
1157 echo
1158 fi
1159
1160 if test -s confdefs.h; then
1161 cat <<\_ASBOX
1162 ## ----------- ##
1163 ## confdefs.h. ##
1164 ## ----------- ##
1165 _ASBOX
1166 echo
1167 sed "/^$/d" confdefs.h | sort
1168 echo
1169 fi
1170 test "$ac_signal" != 0 &&
1171 echo "$as_me: caught signal $ac_signal"
1172 echo "$as_me: exit $exit_status"
1173 } >&5
1174 rm -f core *.core &&
1175 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1176 exit $exit_status
1177 ' 0
1178 for ac_signal in 1 2 13 15; do
1179 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1180 done
1181 ac_signal=0
1182
1183 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1184 rm -rf conftest* confdefs.h
1185 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1186 echo >confdefs.h
1187
1188 # Predefined preprocessor variables.
1189
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_NAME "$PACKAGE_NAME"
1192 _ACEOF
1193
1194
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1197 _ACEOF
1198
1199
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1202 _ACEOF
1203
1204
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_STRING "$PACKAGE_STRING"
1207 _ACEOF
1208
1209
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1212 _ACEOF
1213
1214
1215 # Let the site file select an alternate cache file if it wants to.
1216 # Prefer explicitly selected file to automatically selected ones.
1217 if test -z "$CONFIG_SITE"; then
1218 if test "x$prefix" != xNONE; then
1219 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1220 else
1221 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1222 fi
1223 fi
1224 for ac_site_file in $CONFIG_SITE; do
1225 if test -r "$ac_site_file"; then
1226 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1227 echo "$as_me: loading site script $ac_site_file" >&6;}
1228 sed 's/^/| /' "$ac_site_file" >&5
1229 . "$ac_site_file"
1230 fi
1231 done
1232
1233 if test -r "$cache_file"; then
1234 # Some versions of bash will fail to source /dev/null (special
1235 # files actually), so we avoid doing that.
1236 if test -f "$cache_file"; then
1237 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1238 echo "$as_me: loading cache $cache_file" >&6;}
1239 case $cache_file in
1240 [\\/]* | ?:[\\/]* ) . $cache_file;;
1241 *) . ./$cache_file;;
1242 esac
1243 fi
1244 else
1245 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1246 echo "$as_me: creating cache $cache_file" >&6;}
1247 >$cache_file
1248 fi
1249
1250 # Check that the precious variables saved in the cache have kept the same
1251 # value.
1252 ac_cache_corrupted=false
1253 for ac_var in `(set) 2>&1 |
1254 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1255 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1256 eval ac_new_set=\$ac_env_${ac_var}_set
1257 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1258 eval ac_new_val="\$ac_env_${ac_var}_value"
1259 case $ac_old_set,$ac_new_set in
1260 set,)
1261 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1262 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1264 ,set)
1265 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1267 ac_cache_corrupted=: ;;
1268 ,);;
1269 *)
1270 if test "x$ac_old_val" != "x$ac_new_val"; then
1271 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1272 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1273 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1274 echo "$as_me: former value: $ac_old_val" >&2;}
1275 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1276 echo "$as_me: current value: $ac_new_val" >&2;}
1277 ac_cache_corrupted=:
1278 fi;;
1279 esac
1280 # Pass precious variables to config.status.
1281 if test "$ac_new_set" = set; then
1282 case $ac_new_val in
1283 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1284 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1285 *) ac_arg=$ac_var=$ac_new_val ;;
1286 esac
1287 case " $ac_configure_args " in
1288 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1289 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1290 esac
1291 fi
1292 done
1293 if $ac_cache_corrupted; then
1294 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1295 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1296 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1297 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1298 { (exit 1); exit 1; }; }
1299 fi
1300
1301 ac_ext=c
1302 ac_cpp='$CPP $CPPFLAGS'
1303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327 ac_aux_dir=
1328 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1329 if test -f $ac_dir/install-sh; then
1330 ac_aux_dir=$ac_dir
1331 ac_install_sh="$ac_aux_dir/install-sh -c"
1332 break
1333 elif test -f $ac_dir/install.sh; then
1334 ac_aux_dir=$ac_dir
1335 ac_install_sh="$ac_aux_dir/install.sh -c"
1336 break
1337 elif test -f $ac_dir/shtool; then
1338 ac_aux_dir=$ac_dir
1339 ac_install_sh="$ac_aux_dir/shtool install -c"
1340 break
1341 fi
1342 done
1343 if test -z "$ac_aux_dir"; then
1344 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1345 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1346 { (exit 1); exit 1; }; }
1347 fi
1348 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1349 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1350 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1351
1352 # Make sure we can run config.sub.
1353 $ac_config_sub sun4 >/dev/null 2>&1 ||
1354 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1355 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1356 { (exit 1); exit 1; }; }
1357
1358 echo "$as_me:$LINENO: checking build system type" >&5
1359 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1360 if test "${ac_cv_build+set}" = set; then
1361 echo $ECHO_N "(cached) $ECHO_C" >&6
1362 else
1363 ac_cv_build_alias=$build_alias
1364 test -z "$ac_cv_build_alias" &&
1365 ac_cv_build_alias=`$ac_config_guess`
1366 test -z "$ac_cv_build_alias" &&
1367 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1368 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1369 { (exit 1); exit 1; }; }
1370 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1371 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1372 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1373 { (exit 1); exit 1; }; }
1374
1375 fi
1376 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1377 echo "${ECHO_T}$ac_cv_build" >&6
1378 build=$ac_cv_build
1379 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1380 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1381 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1382
1383
1384 echo "$as_me:$LINENO: checking host system type" >&5
1385 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1386 if test "${ac_cv_host+set}" = set; then
1387 echo $ECHO_N "(cached) $ECHO_C" >&6
1388 else
1389 ac_cv_host_alias=$host_alias
1390 test -z "$ac_cv_host_alias" &&
1391 ac_cv_host_alias=$ac_cv_build_alias
1392 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1393 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1394 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1395 { (exit 1); exit 1; }; }
1396
1397 fi
1398 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1399 echo "${ECHO_T}$ac_cv_host" >&6
1400 host=$ac_cv_host
1401 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1402 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1403 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1404
1405
1406 echo "$as_me:$LINENO: checking target system type" >&5
1407 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1408 if test "${ac_cv_target+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1410 else
1411 ac_cv_target_alias=$target_alias
1412 test "x$ac_cv_target_alias" = "x" &&
1413 ac_cv_target_alias=$ac_cv_host_alias
1414 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1415 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1416 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1417 { (exit 1); exit 1; }; }
1418
1419 fi
1420 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1421 echo "${ECHO_T}$ac_cv_target" >&6
1422 target=$ac_cv_target
1423 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1426
1427
1428 # The aliases save the names the user supplied, while $host etc.
1429 # will get canonicalized.
1430 test -n "$target_alias" &&
1431 test "$program_prefix$program_suffix$program_transform_name" = \
1432 NONENONEs,x,x, &&
1433 program_prefix=${target_alias}-
1434 ac_ext=c
1435 ac_cpp='$CPP $CPPFLAGS'
1436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1439 if test -n "$ac_tool_prefix"; then
1440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1441 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1442 echo "$as_me:$LINENO: checking for $ac_word" >&5
1443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1444 if test "${ac_cv_prog_CC+set}" = set; then
1445 echo $ECHO_N "(cached) $ECHO_C" >&6
1446 else
1447 if test -n "$CC"; then
1448 ac_cv_prog_CC="$CC" # Let the user override the test.
1449 else
1450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451 for as_dir in $PATH
1452 do
1453 IFS=$as_save_IFS
1454 test -z "$as_dir" && as_dir=.
1455 for ac_exec_ext in '' $ac_executable_extensions; do
1456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1457 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1459 break 2
1460 fi
1461 done
1462 done
1463
1464 fi
1465 fi
1466 CC=$ac_cv_prog_CC
1467 if test -n "$CC"; then
1468 echo "$as_me:$LINENO: result: $CC" >&5
1469 echo "${ECHO_T}$CC" >&6
1470 else
1471 echo "$as_me:$LINENO: result: no" >&5
1472 echo "${ECHO_T}no" >&6
1473 fi
1474
1475 fi
1476 if test -z "$ac_cv_prog_CC"; then
1477 ac_ct_CC=$CC
1478 # Extract the first word of "gcc", so it can be a program name with args.
1479 set dummy gcc; ac_word=$2
1480 echo "$as_me:$LINENO: checking for $ac_word" >&5
1481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1484 else
1485 if test -n "$ac_ct_CC"; then
1486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1487 else
1488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489 for as_dir in $PATH
1490 do
1491 IFS=$as_save_IFS
1492 test -z "$as_dir" && as_dir=.
1493 for ac_exec_ext in '' $ac_executable_extensions; do
1494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495 ac_cv_prog_ac_ct_CC="gcc"
1496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497 break 2
1498 fi
1499 done
1500 done
1501
1502 fi
1503 fi
1504 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1505 if test -n "$ac_ct_CC"; then
1506 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1507 echo "${ECHO_T}$ac_ct_CC" >&6
1508 else
1509 echo "$as_me:$LINENO: result: no" >&5
1510 echo "${ECHO_T}no" >&6
1511 fi
1512
1513 CC=$ac_ct_CC
1514 else
1515 CC="$ac_cv_prog_CC"
1516 fi
1517
1518 if test -z "$CC"; then
1519 if test -n "$ac_tool_prefix"; then
1520 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1521 set dummy ${ac_tool_prefix}cc; ac_word=$2
1522 echo "$as_me:$LINENO: checking for $ac_word" >&5
1523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1524 if test "${ac_cv_prog_CC+set}" = set; then
1525 echo $ECHO_N "(cached) $ECHO_C" >&6
1526 else
1527 if test -n "$CC"; then
1528 ac_cv_prog_CC="$CC" # Let the user override the test.
1529 else
1530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531 for as_dir in $PATH
1532 do
1533 IFS=$as_save_IFS
1534 test -z "$as_dir" && as_dir=.
1535 for ac_exec_ext in '' $ac_executable_extensions; do
1536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1537 ac_cv_prog_CC="${ac_tool_prefix}cc"
1538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1539 break 2
1540 fi
1541 done
1542 done
1543
1544 fi
1545 fi
1546 CC=$ac_cv_prog_CC
1547 if test -n "$CC"; then
1548 echo "$as_me:$LINENO: result: $CC" >&5
1549 echo "${ECHO_T}$CC" >&6
1550 else
1551 echo "$as_me:$LINENO: result: no" >&5
1552 echo "${ECHO_T}no" >&6
1553 fi
1554
1555 fi
1556 if test -z "$ac_cv_prog_CC"; then
1557 ac_ct_CC=$CC
1558 # Extract the first word of "cc", so it can be a program name with args.
1559 set dummy cc; ac_word=$2
1560 echo "$as_me:$LINENO: checking for $ac_word" >&5
1561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 else
1565 if test -n "$ac_ct_CC"; then
1566 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1567 else
1568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569 for as_dir in $PATH
1570 do
1571 IFS=$as_save_IFS
1572 test -z "$as_dir" && as_dir=.
1573 for ac_exec_ext in '' $ac_executable_extensions; do
1574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575 ac_cv_prog_ac_ct_CC="cc"
1576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1577 break 2
1578 fi
1579 done
1580 done
1581
1582 fi
1583 fi
1584 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1585 if test -n "$ac_ct_CC"; then
1586 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1587 echo "${ECHO_T}$ac_ct_CC" >&6
1588 else
1589 echo "$as_me:$LINENO: result: no" >&5
1590 echo "${ECHO_T}no" >&6
1591 fi
1592
1593 CC=$ac_ct_CC
1594 else
1595 CC="$ac_cv_prog_CC"
1596 fi
1597
1598 fi
1599 if test -z "$CC"; then
1600 # Extract the first word of "cc", so it can be a program name with args.
1601 set dummy cc; ac_word=$2
1602 echo "$as_me:$LINENO: checking for $ac_word" >&5
1603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1604 if test "${ac_cv_prog_CC+set}" = set; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
1606 else
1607 if test -n "$CC"; then
1608 ac_cv_prog_CC="$CC" # Let the user override the test.
1609 else
1610 ac_prog_rejected=no
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 for as_dir in $PATH
1613 do
1614 IFS=$as_save_IFS
1615 test -z "$as_dir" && as_dir=.
1616 for ac_exec_ext in '' $ac_executable_extensions; do
1617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1619 ac_prog_rejected=yes
1620 continue
1621 fi
1622 ac_cv_prog_CC="cc"
1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624 break 2
1625 fi
1626 done
1627 done
1628
1629 if test $ac_prog_rejected = yes; then
1630 # We found a bogon in the path, so make sure we never use it.
1631 set dummy $ac_cv_prog_CC
1632 shift
1633 if test $# != 0; then
1634 # We chose a different compiler from the bogus one.
1635 # However, it has the same basename, so the bogon will be chosen
1636 # first if we set CC to just the basename; use the full file name.
1637 shift
1638 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1639 fi
1640 fi
1641 fi
1642 fi
1643 CC=$ac_cv_prog_CC
1644 if test -n "$CC"; then
1645 echo "$as_me:$LINENO: result: $CC" >&5
1646 echo "${ECHO_T}$CC" >&6
1647 else
1648 echo "$as_me:$LINENO: result: no" >&5
1649 echo "${ECHO_T}no" >&6
1650 fi
1651
1652 fi
1653 if test -z "$CC"; then
1654 if test -n "$ac_tool_prefix"; then
1655 for ac_prog in cl
1656 do
1657 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1658 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1659 echo "$as_me:$LINENO: checking for $ac_word" >&5
1660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661 if test "${ac_cv_prog_CC+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 else
1664 if test -n "$CC"; then
1665 ac_cv_prog_CC="$CC" # Let the user override the test.
1666 else
1667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668 for as_dir in $PATH
1669 do
1670 IFS=$as_save_IFS
1671 test -z "$as_dir" && as_dir=.
1672 for ac_exec_ext in '' $ac_executable_extensions; do
1673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1674 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1676 break 2
1677 fi
1678 done
1679 done
1680
1681 fi
1682 fi
1683 CC=$ac_cv_prog_CC
1684 if test -n "$CC"; then
1685 echo "$as_me:$LINENO: result: $CC" >&5
1686 echo "${ECHO_T}$CC" >&6
1687 else
1688 echo "$as_me:$LINENO: result: no" >&5
1689 echo "${ECHO_T}no" >&6
1690 fi
1691
1692 test -n "$CC" && break
1693 done
1694 fi
1695 if test -z "$CC"; then
1696 ac_ct_CC=$CC
1697 for ac_prog in cl
1698 do
1699 # Extract the first word of "$ac_prog", so it can be a program name with args.
1700 set dummy $ac_prog; ac_word=$2
1701 echo "$as_me:$LINENO: checking for $ac_word" >&5
1702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1705 else
1706 if test -n "$ac_ct_CC"; then
1707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1708 else
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 for as_dir in $PATH
1711 do
1712 IFS=$as_save_IFS
1713 test -z "$as_dir" && as_dir=.
1714 for ac_exec_ext in '' $ac_executable_extensions; do
1715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716 ac_cv_prog_ac_ct_CC="$ac_prog"
1717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718 break 2
1719 fi
1720 done
1721 done
1722
1723 fi
1724 fi
1725 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1726 if test -n "$ac_ct_CC"; then
1727 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1728 echo "${ECHO_T}$ac_ct_CC" >&6
1729 else
1730 echo "$as_me:$LINENO: result: no" >&5
1731 echo "${ECHO_T}no" >&6
1732 fi
1733
1734 test -n "$ac_ct_CC" && break
1735 done
1736
1737 CC=$ac_ct_CC
1738 fi
1739
1740 fi
1741
1742
1743 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1744 See \`config.log' for more details." >&5
1745 echo "$as_me: error: no acceptable C compiler found in \$PATH
1746 See \`config.log' for more details." >&2;}
1747 { (exit 1); exit 1; }; }
1748
1749 # Provide some information about the compiler.
1750 echo "$as_me:$LINENO:" \
1751 "checking for C compiler version" >&5
1752 ac_compiler=`set X $ac_compile; echo $2`
1753 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1754 (eval $ac_compiler --version </dev/null >&5) 2>&5
1755 ac_status=$?
1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757 (exit $ac_status); }
1758 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1759 (eval $ac_compiler -v </dev/null >&5) 2>&5
1760 ac_status=$?
1761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762 (exit $ac_status); }
1763 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1764 (eval $ac_compiler -V </dev/null >&5) 2>&5
1765 ac_status=$?
1766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1767 (exit $ac_status); }
1768
1769 cat >conftest.$ac_ext <<_ACEOF
1770 /* confdefs.h. */
1771 _ACEOF
1772 cat confdefs.h >>conftest.$ac_ext
1773 cat >>conftest.$ac_ext <<_ACEOF
1774 /* end confdefs.h. */
1775
1776 int
1777 main ()
1778 {
1779
1780 ;
1781 return 0;
1782 }
1783 _ACEOF
1784 ac_clean_files_save=$ac_clean_files
1785 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1786 # Try to create an executable without -o first, disregard a.out.
1787 # It will help us diagnose broken compilers, and finding out an intuition
1788 # of exeext.
1789 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1790 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1791 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1792 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1793 (eval $ac_link_default) 2>&5
1794 ac_status=$?
1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796 (exit $ac_status); }; then
1797 # Find the output, starting from the most likely. This scheme is
1798 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1799 # resort.
1800
1801 # Be careful to initialize this variable, since it used to be cached.
1802 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1803 ac_cv_exeext=
1804 # b.out is created by i960 compilers.
1805 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1806 do
1807 test -f "$ac_file" || continue
1808 case $ac_file in
1809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1810 ;;
1811 conftest.$ac_ext )
1812 # This is the source file.
1813 ;;
1814 [ab].out )
1815 # We found the default executable, but exeext='' is most
1816 # certainly right.
1817 break;;
1818 *.* )
1819 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1820 # FIXME: I believe we export ac_cv_exeext for Libtool,
1821 # but it would be cool to find out if it's true. Does anybody
1822 # maintain Libtool? --akim.
1823 export ac_cv_exeext
1824 break;;
1825 * )
1826 break;;
1827 esac
1828 done
1829 else
1830 echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1832
1833 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1834 See \`config.log' for more details." >&5
1835 echo "$as_me: error: C compiler cannot create executables
1836 See \`config.log' for more details." >&2;}
1837 { (exit 77); exit 77; }; }
1838 fi
1839
1840 ac_exeext=$ac_cv_exeext
1841 echo "$as_me:$LINENO: result: $ac_file" >&5
1842 echo "${ECHO_T}$ac_file" >&6
1843
1844 # Check the compiler produces executables we can run. If not, either
1845 # the compiler is broken, or we cross compile.
1846 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1847 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1848 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1849 # If not cross compiling, check that we can run a simple program.
1850 if test "$cross_compiling" != yes; then
1851 if { ac_try='./$ac_file'
1852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1853 (eval $ac_try) 2>&5
1854 ac_status=$?
1855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856 (exit $ac_status); }; }; then
1857 cross_compiling=no
1858 else
1859 if test "$cross_compiling" = maybe; then
1860 cross_compiling=yes
1861 else
1862 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1863 If you meant to cross compile, use \`--host'.
1864 See \`config.log' for more details." >&5
1865 echo "$as_me: error: cannot run C compiled programs.
1866 If you meant to cross compile, use \`--host'.
1867 See \`config.log' for more details." >&2;}
1868 { (exit 1); exit 1; }; }
1869 fi
1870 fi
1871 fi
1872 echo "$as_me:$LINENO: result: yes" >&5
1873 echo "${ECHO_T}yes" >&6
1874
1875 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1876 ac_clean_files=$ac_clean_files_save
1877 # Check the compiler produces executables we can run. If not, either
1878 # the compiler is broken, or we cross compile.
1879 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1880 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1881 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1882 echo "${ECHO_T}$cross_compiling" >&6
1883
1884 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1885 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1887 (eval $ac_link) 2>&5
1888 ac_status=$?
1889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1890 (exit $ac_status); }; then
1891 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1892 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1893 # work properly (i.e., refer to `conftest.exe'), while it won't with
1894 # `rm'.
1895 for ac_file in conftest.exe conftest conftest.*; do
1896 test -f "$ac_file" || continue
1897 case $ac_file in
1898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1899 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1900 export ac_cv_exeext
1901 break;;
1902 * ) break;;
1903 esac
1904 done
1905 else
1906 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1907 See \`config.log' for more details." >&5
1908 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1909 See \`config.log' for more details." >&2;}
1910 { (exit 1); exit 1; }; }
1911 fi
1912
1913 rm -f conftest$ac_cv_exeext
1914 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1915 echo "${ECHO_T}$ac_cv_exeext" >&6
1916
1917 rm -f conftest.$ac_ext
1918 EXEEXT=$ac_cv_exeext
1919 ac_exeext=$EXEEXT
1920 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1921 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1922 if test "${ac_cv_objext+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1924 else
1925 cat >conftest.$ac_ext <<_ACEOF
1926 /* confdefs.h. */
1927 _ACEOF
1928 cat confdefs.h >>conftest.$ac_ext
1929 cat >>conftest.$ac_ext <<_ACEOF
1930 /* end confdefs.h. */
1931
1932 int
1933 main ()
1934 {
1935
1936 ;
1937 return 0;
1938 }
1939 _ACEOF
1940 rm -f conftest.o conftest.obj
1941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1942 (eval $ac_compile) 2>&5
1943 ac_status=$?
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }; then
1946 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1947 case $ac_file in
1948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1949 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1950 break;;
1951 esac
1952 done
1953 else
1954 echo "$as_me: failed program was:" >&5
1955 sed 's/^/| /' conftest.$ac_ext >&5
1956
1957 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1958 See \`config.log' for more details." >&5
1959 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1960 See \`config.log' for more details." >&2;}
1961 { (exit 1); exit 1; }; }
1962 fi
1963
1964 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1965 fi
1966 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1967 echo "${ECHO_T}$ac_cv_objext" >&6
1968 OBJEXT=$ac_cv_objext
1969 ac_objext=$OBJEXT
1970 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1971 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1972 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975 cat >conftest.$ac_ext <<_ACEOF
1976 /* confdefs.h. */
1977 _ACEOF
1978 cat confdefs.h >>conftest.$ac_ext
1979 cat >>conftest.$ac_ext <<_ACEOF
1980 /* end confdefs.h. */
1981
1982 int
1983 main ()
1984 {
1985 #ifndef __GNUC__
1986 choke me
1987 #endif
1988
1989 ;
1990 return 0;
1991 }
1992 _ACEOF
1993 rm -f conftest.$ac_objext
1994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1995 (eval $ac_compile) 2>conftest.er1
1996 ac_status=$?
1997 grep -v '^ *+' conftest.er1 >conftest.err
1998 rm -f conftest.er1
1999 cat conftest.err >&5
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); } &&
2002 { ac_try='test -z "$ac_c_werror_flag"
2003 || test ! -s conftest.err'
2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005 (eval $ac_try) 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; } &&
2009 { ac_try='test -s conftest.$ac_objext'
2010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2011 (eval $ac_try) 2>&5
2012 ac_status=$?
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); }; }; then
2015 ac_compiler_gnu=yes
2016 else
2017 echo "$as_me: failed program was:" >&5
2018 sed 's/^/| /' conftest.$ac_ext >&5
2019
2020 ac_compiler_gnu=no
2021 fi
2022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2023 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2024
2025 fi
2026 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2027 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2028 GCC=`test $ac_compiler_gnu = yes && echo yes`
2029 ac_test_CFLAGS=${CFLAGS+set}
2030 ac_save_CFLAGS=$CFLAGS
2031 CFLAGS="-g"
2032 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2033 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2034 if test "${ac_cv_prog_cc_g+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2036 else
2037 cat >conftest.$ac_ext <<_ACEOF
2038 /* confdefs.h. */
2039 _ACEOF
2040 cat confdefs.h >>conftest.$ac_ext
2041 cat >>conftest.$ac_ext <<_ACEOF
2042 /* end confdefs.h. */
2043
2044 int
2045 main ()
2046 {
2047
2048 ;
2049 return 0;
2050 }
2051 _ACEOF
2052 rm -f conftest.$ac_objext
2053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2054 (eval $ac_compile) 2>conftest.er1
2055 ac_status=$?
2056 grep -v '^ *+' conftest.er1 >conftest.err
2057 rm -f conftest.er1
2058 cat conftest.err >&5
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); } &&
2061 { ac_try='test -z "$ac_c_werror_flag"
2062 || test ! -s conftest.err'
2063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2064 (eval $ac_try) 2>&5
2065 ac_status=$?
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }; } &&
2068 { ac_try='test -s conftest.$ac_objext'
2069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2070 (eval $ac_try) 2>&5
2071 ac_status=$?
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); }; }; then
2074 ac_cv_prog_cc_g=yes
2075 else
2076 echo "$as_me: failed program was:" >&5
2077 sed 's/^/| /' conftest.$ac_ext >&5
2078
2079 ac_cv_prog_cc_g=no
2080 fi
2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2082 fi
2083 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2084 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2085 if test "$ac_test_CFLAGS" = set; then
2086 CFLAGS=$ac_save_CFLAGS
2087 elif test $ac_cv_prog_cc_g = yes; then
2088 if test "$GCC" = yes; then
2089 CFLAGS="-g -O2"
2090 else
2091 CFLAGS="-g"
2092 fi
2093 else
2094 if test "$GCC" = yes; then
2095 CFLAGS="-O2"
2096 else
2097 CFLAGS=
2098 fi
2099 fi
2100 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2101 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2102 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 else
2105 ac_cv_prog_cc_stdc=no
2106 ac_save_CC=$CC
2107 cat >conftest.$ac_ext <<_ACEOF
2108 /* confdefs.h. */
2109 _ACEOF
2110 cat confdefs.h >>conftest.$ac_ext
2111 cat >>conftest.$ac_ext <<_ACEOF
2112 /* end confdefs.h. */
2113 #include <stdarg.h>
2114 #include <stdio.h>
2115 #include <sys/types.h>
2116 #include <sys/stat.h>
2117 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2118 struct buf { int x; };
2119 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2120 static char *e (p, i)
2121 char **p;
2122 int i;
2123 {
2124 return p[i];
2125 }
2126 static char *f (char * (*g) (char **, int), char **p, ...)
2127 {
2128 char *s;
2129 va_list v;
2130 va_start (v,p);
2131 s = g (p, va_arg (v,int));
2132 va_end (v);
2133 return s;
2134 }
2135
2136 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2137 function prototypes and stuff, but not '\xHH' hex character constants.
2138 These don't provoke an error unfortunately, instead are silently treated
2139 as 'x'. The following induces an error, until -std1 is added to get
2140 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2141 array size at least. It's necessary to write '\x00'==0 to get something
2142 that's true only with -std1. */
2143 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2144
2145 int test (int i, double x);
2146 struct s1 {int (*f) (int a);};
2147 struct s2 {int (*f) (double a);};
2148 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2149 int argc;
2150 char **argv;
2151 int
2152 main ()
2153 {
2154 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2155 ;
2156 return 0;
2157 }
2158 _ACEOF
2159 # Don't try gcc -ansi; that turns off useful extensions and
2160 # breaks some systems' header files.
2161 # AIX -qlanglvl=ansi
2162 # Ultrix and OSF/1 -std1
2163 # HP-UX 10.20 and later -Ae
2164 # HP-UX older versions -Aa -D_HPUX_SOURCE
2165 # SVR4 -Xc -D__EXTENSIONS__
2166 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2167 do
2168 CC="$ac_save_CC $ac_arg"
2169 rm -f conftest.$ac_objext
2170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>conftest.er1
2172 ac_status=$?
2173 grep -v '^ *+' conftest.er1 >conftest.err
2174 rm -f conftest.er1
2175 cat conftest.err >&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); } &&
2178 { ac_try='test -z "$ac_c_werror_flag"
2179 || test ! -s conftest.err'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 (eval $ac_try) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; } &&
2185 { ac_try='test -s conftest.$ac_objext'
2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187 (eval $ac_try) 2>&5
2188 ac_status=$?
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; }; then
2191 ac_cv_prog_cc_stdc=$ac_arg
2192 break
2193 else
2194 echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2196
2197 fi
2198 rm -f conftest.err conftest.$ac_objext
2199 done
2200 rm -f conftest.$ac_ext conftest.$ac_objext
2201 CC=$ac_save_CC
2202
2203 fi
2204
2205 case "x$ac_cv_prog_cc_stdc" in
2206 x|xno)
2207 echo "$as_me:$LINENO: result: none needed" >&5
2208 echo "${ECHO_T}none needed" >&6 ;;
2209 *)
2210 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2211 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2212 CC="$CC $ac_cv_prog_cc_stdc" ;;
2213 esac
2214
2215 # Some people use a C++ compiler to compile C. Since we use `exit',
2216 # in C++ we need to declare it. In case someone uses the same compiler
2217 # for both compiling C and C++ we need to have the C++ compiler decide
2218 # the declaration of exit, since it's the most demanding environment.
2219 cat >conftest.$ac_ext <<_ACEOF
2220 #ifndef __cplusplus
2221 choke me
2222 #endif
2223 _ACEOF
2224 rm -f conftest.$ac_objext
2225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2226 (eval $ac_compile) 2>conftest.er1
2227 ac_status=$?
2228 grep -v '^ *+' conftest.er1 >conftest.err
2229 rm -f conftest.er1
2230 cat conftest.err >&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); } &&
2233 { ac_try='test -z "$ac_c_werror_flag"
2234 || test ! -s conftest.err'
2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 (eval $ac_try) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; } &&
2240 { ac_try='test -s conftest.$ac_objext'
2241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 (eval $ac_try) 2>&5
2243 ac_status=$?
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; }; then
2246 for ac_declaration in \
2247 '' \
2248 'extern "C" void std::exit (int) throw (); using std::exit;' \
2249 'extern "C" void std::exit (int); using std::exit;' \
2250 'extern "C" void exit (int) throw ();' \
2251 'extern "C" void exit (int);' \
2252 'void exit (int);'
2253 do
2254 cat >conftest.$ac_ext <<_ACEOF
2255 /* confdefs.h. */
2256 _ACEOF
2257 cat confdefs.h >>conftest.$ac_ext
2258 cat >>conftest.$ac_ext <<_ACEOF
2259 /* end confdefs.h. */
2260 $ac_declaration
2261 #include <stdlib.h>
2262 int
2263 main ()
2264 {
2265 exit (42);
2266 ;
2267 return 0;
2268 }
2269 _ACEOF
2270 rm -f conftest.$ac_objext
2271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2272 (eval $ac_compile) 2>conftest.er1
2273 ac_status=$?
2274 grep -v '^ *+' conftest.er1 >conftest.err
2275 rm -f conftest.er1
2276 cat conftest.err >&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); } &&
2279 { ac_try='test -z "$ac_c_werror_flag"
2280 || test ! -s conftest.err'
2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 (eval $ac_try) 2>&5
2283 ac_status=$?
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; } &&
2286 { ac_try='test -s conftest.$ac_objext'
2287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288 (eval $ac_try) 2>&5
2289 ac_status=$?
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); }; }; then
2292 :
2293 else
2294 echo "$as_me: failed program was:" >&5
2295 sed 's/^/| /' conftest.$ac_ext >&5
2296
2297 continue
2298 fi
2299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2300 cat >conftest.$ac_ext <<_ACEOF
2301 /* confdefs.h. */
2302 _ACEOF
2303 cat confdefs.h >>conftest.$ac_ext
2304 cat >>conftest.$ac_ext <<_ACEOF
2305 /* end confdefs.h. */
2306 $ac_declaration
2307 int
2308 main ()
2309 {
2310 exit (42);
2311 ;
2312 return 0;
2313 }
2314 _ACEOF
2315 rm -f conftest.$ac_objext
2316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317 (eval $ac_compile) 2>conftest.er1
2318 ac_status=$?
2319 grep -v '^ *+' conftest.er1 >conftest.err
2320 rm -f conftest.er1
2321 cat conftest.err >&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); } &&
2324 { ac_try='test -z "$ac_c_werror_flag"
2325 || test ! -s conftest.err'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 (eval $ac_try) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; } &&
2331 { ac_try='test -s conftest.$ac_objext'
2332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333 (eval $ac_try) 2>&5
2334 ac_status=$?
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; }; then
2337 break
2338 else
2339 echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2341
2342 fi
2343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2344 done
2345 rm -f conftest*
2346 if test -n "$ac_declaration"; then
2347 echo '#ifdef __cplusplus' >>confdefs.h
2348 echo $ac_declaration >>confdefs.h
2349 echo '#endif' >>confdefs.h
2350 fi
2351
2352 else
2353 echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.$ac_ext >&5
2355
2356 fi
2357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2358 ac_ext=c
2359 ac_cpp='$CPP $CPPFLAGS'
2360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2363
2364
2365 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2366 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2367 if test "${ac_cv_search_strerror+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370 ac_func_search_save_LIBS=$LIBS
2371 ac_cv_search_strerror=no
2372 cat >conftest.$ac_ext <<_ACEOF
2373 /* confdefs.h. */
2374 _ACEOF
2375 cat confdefs.h >>conftest.$ac_ext
2376 cat >>conftest.$ac_ext <<_ACEOF
2377 /* end confdefs.h. */
2378
2379 /* Override any gcc2 internal prototype to avoid an error. */
2380 #ifdef __cplusplus
2381 extern "C"
2382 #endif
2383 /* We use char because int might match the return type of a gcc2
2384 builtin and then its argument prototype would still apply. */
2385 char strerror ();
2386 int
2387 main ()
2388 {
2389 strerror ();
2390 ;
2391 return 0;
2392 }
2393 _ACEOF
2394 rm -f conftest.$ac_objext conftest$ac_exeext
2395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2396 (eval $ac_link) 2>conftest.er1
2397 ac_status=$?
2398 grep -v '^ *+' conftest.er1 >conftest.err
2399 rm -f conftest.er1
2400 cat conftest.err >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } &&
2403 { ac_try='test -z "$ac_c_werror_flag"
2404 || test ! -s conftest.err'
2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 (eval $ac_try) 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; } &&
2410 { ac_try='test -s conftest$ac_exeext'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 (eval $ac_try) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
2416 ac_cv_search_strerror="none required"
2417 else
2418 echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2420
2421 fi
2422 rm -f conftest.err conftest.$ac_objext \
2423 conftest$ac_exeext conftest.$ac_ext
2424 if test "$ac_cv_search_strerror" = no; then
2425 for ac_lib in cposix; do
2426 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2427 cat >conftest.$ac_ext <<_ACEOF
2428 /* confdefs.h. */
2429 _ACEOF
2430 cat confdefs.h >>conftest.$ac_ext
2431 cat >>conftest.$ac_ext <<_ACEOF
2432 /* end confdefs.h. */
2433
2434 /* Override any gcc2 internal prototype to avoid an error. */
2435 #ifdef __cplusplus
2436 extern "C"
2437 #endif
2438 /* We use char because int might match the return type of a gcc2
2439 builtin and then its argument prototype would still apply. */
2440 char strerror ();
2441 int
2442 main ()
2443 {
2444 strerror ();
2445 ;
2446 return 0;
2447 }
2448 _ACEOF
2449 rm -f conftest.$ac_objext conftest$ac_exeext
2450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2451 (eval $ac_link) 2>conftest.er1
2452 ac_status=$?
2453 grep -v '^ *+' conftest.er1 >conftest.err
2454 rm -f conftest.er1
2455 cat conftest.err >&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); } &&
2458 { ac_try='test -z "$ac_c_werror_flag"
2459 || test ! -s conftest.err'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 (eval $ac_try) 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; } &&
2465 { ac_try='test -s conftest$ac_exeext'
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467 (eval $ac_try) 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; }; then
2471 ac_cv_search_strerror="-l$ac_lib"
2472 break
2473 else
2474 echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.$ac_ext >&5
2476
2477 fi
2478 rm -f conftest.err conftest.$ac_objext \
2479 conftest$ac_exeext conftest.$ac_ext
2480 done
2481 fi
2482 LIBS=$ac_func_search_save_LIBS
2483 fi
2484 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2485 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2486 if test "$ac_cv_search_strerror" != no; then
2487 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2488
2489 fi
2490
2491
2492 am__api_version="1.9"
2493 # Find a good install program. We prefer a C program (faster),
2494 # so one script is as good as another. But avoid the broken or
2495 # incompatible versions:
2496 # SysV /etc/install, /usr/sbin/install
2497 # SunOS /usr/etc/install
2498 # IRIX /sbin/install
2499 # AIX /bin/install
2500 # AmigaOS /C/install, which installs bootblocks on floppy discs
2501 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2502 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2503 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2504 # OS/2's system install, which has a completely different semantic
2505 # ./install, which can be erroneously created by make from ./install.sh.
2506 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2507 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2508 if test -z "$INSTALL"; then
2509 if test "${ac_cv_path_install+set}" = set; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
2511 else
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 for as_dir in $PATH
2514 do
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 # Account for people who put trailing slashes in PATH elements.
2518 case $as_dir/ in
2519 ./ | .// | /cC/* | \
2520 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2521 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2522 /usr/ucb/* ) ;;
2523 *)
2524 # OSF1 and SCO ODT 3.0 have their own names for install.
2525 # Don't use installbsd from OSF since it installs stuff as root
2526 # by default.
2527 for ac_prog in ginstall scoinst install; do
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2530 if test $ac_prog = install &&
2531 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2532 # AIX install. It has an incompatible calling convention.
2533 :
2534 elif test $ac_prog = install &&
2535 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2536 # program-specific install script used by HP pwplus--don't use.
2537 :
2538 else
2539 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2540 break 3
2541 fi
2542 fi
2543 done
2544 done
2545 ;;
2546 esac
2547 done
2548
2549
2550 fi
2551 if test "${ac_cv_path_install+set}" = set; then
2552 INSTALL=$ac_cv_path_install
2553 else
2554 # As a last resort, use the slow shell script. We don't cache a
2555 # path for INSTALL within a source directory, because that will
2556 # break other packages using the cache if that directory is
2557 # removed, or if the path is relative.
2558 INSTALL=$ac_install_sh
2559 fi
2560 fi
2561 echo "$as_me:$LINENO: result: $INSTALL" >&5
2562 echo "${ECHO_T}$INSTALL" >&6
2563
2564 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2565 # It thinks the first close brace ends the variable substitution.
2566 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2567
2568 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2569
2570 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2571
2572 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2573 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2574 # Just in case
2575 sleep 1
2576 echo timestamp > conftest.file
2577 # Do `set' in a subshell so we don't clobber the current shell's
2578 # arguments. Must try -L first in case configure is actually a
2579 # symlink; some systems play weird games with the mod time of symlinks
2580 # (eg FreeBSD returns the mod time of the symlink's containing
2581 # directory).
2582 if (
2583 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2584 if test "$*" = "X"; then
2585 # -L didn't work.
2586 set X `ls -t $srcdir/configure conftest.file`
2587 fi
2588 rm -f conftest.file
2589 if test "$*" != "X $srcdir/configure conftest.file" \
2590 && test "$*" != "X conftest.file $srcdir/configure"; then
2591
2592 # If neither matched, then we have a broken ls. This can happen
2593 # if, for instance, CONFIG_SHELL is bash and it inherits a
2594 # broken ls alias from the environment. This has actually
2595 # happened. Such a system could not be considered "sane".
2596 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2597 alias in your environment" >&5
2598 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2599 alias in your environment" >&2;}
2600 { (exit 1); exit 1; }; }
2601 fi
2602
2603 test "$2" = conftest.file
2604 )
2605 then
2606 # Ok.
2607 :
2608 else
2609 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2610 Check your system clock" >&5
2611 echo "$as_me: error: newly created file is older than distributed files!
2612 Check your system clock" >&2;}
2613 { (exit 1); exit 1; }; }
2614 fi
2615 echo "$as_me:$LINENO: result: yes" >&5
2616 echo "${ECHO_T}yes" >&6
2617 test "$program_prefix" != NONE &&
2618 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2619 # Use a double $ so make ignores it.
2620 test "$program_suffix" != NONE &&
2621 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2622 # Double any \ or $. echo might interpret backslashes.
2623 # By default was `s,x,x', remove it if useless.
2624 cat <<\_ACEOF >conftest.sed
2625 s/[\\$]/&&/g;s/;s,x,x,$//
2626 _ACEOF
2627 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2628 rm conftest.sed
2629
2630 # expand $ac_aux_dir to an absolute path
2631 am_aux_dir=`cd $ac_aux_dir && pwd`
2632
2633 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2634 # Use eval to expand $SHELL
2635 if eval "$MISSING --run true"; then
2636 am_missing_run="$MISSING --run "
2637 else
2638 am_missing_run=
2639 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2640 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2641 fi
2642
2643 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2644 # We used to keeping the `.' as first argument, in order to
2645 # allow $(mkdir_p) to be used without argument. As in
2646 # $(mkdir_p) $(somedir)
2647 # where $(somedir) is conditionally defined. However this is wrong
2648 # for two reasons:
2649 # 1. if the package is installed by a user who cannot write `.'
2650 # make install will fail,
2651 # 2. the above comment should most certainly read
2652 # $(mkdir_p) $(DESTDIR)$(somedir)
2653 # so it does not work when $(somedir) is undefined and
2654 # $(DESTDIR) is not.
2655 # To support the latter case, we have to write
2656 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2657 # so the `.' trick is pointless.
2658 mkdir_p='mkdir -p --'
2659 else
2660 # On NextStep and OpenStep, the `mkdir' command does not
2661 # recognize any option. It will interpret all options as
2662 # directories to create, and then abort because `.' already
2663 # exists.
2664 for d in ./-p ./--version;
2665 do
2666 test -d $d && rmdir $d
2667 done
2668 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2669 if test -f "$ac_aux_dir/mkinstalldirs"; then
2670 mkdir_p='$(mkinstalldirs)'
2671 else
2672 mkdir_p='$(install_sh) -d'
2673 fi
2674 fi
2675
2676 for ac_prog in gawk mawk nawk awk
2677 do
2678 # Extract the first word of "$ac_prog", so it can be a program name with args.
2679 set dummy $ac_prog; ac_word=$2
2680 echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2682 if test "${ac_cv_prog_AWK+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685 if test -n "$AWK"; then
2686 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2690 do
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2695 ac_cv_prog_AWK="$ac_prog"
2696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2698 fi
2699 done
2700 done
2701
2702 fi
2703 fi
2704 AWK=$ac_cv_prog_AWK
2705 if test -n "$AWK"; then
2706 echo "$as_me:$LINENO: result: $AWK" >&5
2707 echo "${ECHO_T}$AWK" >&6
2708 else
2709 echo "$as_me:$LINENO: result: no" >&5
2710 echo "${ECHO_T}no" >&6
2711 fi
2712
2713 test -n "$AWK" && break
2714 done
2715
2716 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2717 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2718 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2719 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2721 else
2722 cat >conftest.make <<\_ACEOF
2723 all:
2724 @echo 'ac_maketemp="$(MAKE)"'
2725 _ACEOF
2726 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2727 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2728 if test -n "$ac_maketemp"; then
2729 eval ac_cv_prog_make_${ac_make}_set=yes
2730 else
2731 eval ac_cv_prog_make_${ac_make}_set=no
2732 fi
2733 rm -f conftest.make
2734 fi
2735 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2736 echo "$as_me:$LINENO: result: yes" >&5
2737 echo "${ECHO_T}yes" >&6
2738 SET_MAKE=
2739 else
2740 echo "$as_me:$LINENO: result: no" >&5
2741 echo "${ECHO_T}no" >&6
2742 SET_MAKE="MAKE=${MAKE-make}"
2743 fi
2744
2745 rm -rf .tst 2>/dev/null
2746 mkdir .tst 2>/dev/null
2747 if test -d .tst; then
2748 am__leading_dot=.
2749 else
2750 am__leading_dot=_
2751 fi
2752 rmdir .tst 2>/dev/null
2753
2754 DEPDIR="${am__leading_dot}deps"
2755
2756 ac_config_commands="$ac_config_commands depfiles"
2757
2758
2759 am_make=${MAKE-make}
2760 cat > confinc << 'END'
2761 am__doit:
2762 @echo done
2763 .PHONY: am__doit
2764 END
2765 # If we don't find an include directive, just comment out the code.
2766 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2767 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2768 am__include="#"
2769 am__quote=
2770 _am_result=none
2771 # First try GNU make style include.
2772 echo "include confinc" > confmf
2773 # We grep out `Entering directory' and `Leaving directory'
2774 # messages which can occur if `w' ends up in MAKEFLAGS.
2775 # In particular we don't look at `^make:' because GNU make might
2776 # be invoked under some other name (usually "gmake"), in which
2777 # case it prints its new name instead of `make'.
2778 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2779 am__include=include
2780 am__quote=
2781 _am_result=GNU
2782 fi
2783 # Now try BSD make style include.
2784 if test "$am__include" = "#"; then
2785 echo '.include "confinc"' > confmf
2786 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2787 am__include=.include
2788 am__quote="\""
2789 _am_result=BSD
2790 fi
2791 fi
2792
2793
2794 echo "$as_me:$LINENO: result: $_am_result" >&5
2795 echo "${ECHO_T}$_am_result" >&6
2796 rm -f confinc confmf
2797
2798 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2799 if test "${enable_dependency_tracking+set}" = set; then
2800 enableval="$enable_dependency_tracking"
2801
2802 fi;
2803 if test "x$enable_dependency_tracking" != xno; then
2804 am_depcomp="$ac_aux_dir/depcomp"
2805 AMDEPBACKSLASH='\'
2806 fi
2807
2808
2809 if test "x$enable_dependency_tracking" != xno; then
2810 AMDEP_TRUE=
2811 AMDEP_FALSE='#'
2812 else
2813 AMDEP_TRUE='#'
2814 AMDEP_FALSE=
2815 fi
2816
2817
2818
2819 # test to see if srcdir already configured
2820 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2821 test -f $srcdir/config.status; then
2822 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2823 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2824 { (exit 1); exit 1; }; }
2825 fi
2826
2827 # test whether we have cygpath
2828 if test -z "$CYGPATH_W"; then
2829 if (cygpath --version) >/dev/null 2>/dev/null; then
2830 CYGPATH_W='cygpath -w'
2831 else
2832 CYGPATH_W=echo
2833 fi
2834 fi
2835
2836
2837 # Define the identity of the package.
2838 PACKAGE=bfd
2839 VERSION=2.16.91
2840
2841
2842 cat >>confdefs.h <<_ACEOF
2843 #define PACKAGE "$PACKAGE"
2844 _ACEOF
2845
2846
2847 cat >>confdefs.h <<_ACEOF
2848 #define VERSION "$VERSION"
2849 _ACEOF
2850
2851 # Some tools Automake needs.
2852
2853 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2854
2855
2856 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2857
2858
2859 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2860
2861
2862 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2863
2864
2865 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2866
2867 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2868
2869 # Installed binaries are usually stripped using `strip' when the user
2870 # run `make install-strip'. However `strip' might not be the right
2871 # tool to use in cross-compilation environments, therefore Automake
2872 # will honor the `STRIP' environment variable to overrule this program.
2873 if test "$cross_compiling" != no; then
2874 if test -n "$ac_tool_prefix"; then
2875 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2876 set dummy ${ac_tool_prefix}strip; ac_word=$2
2877 echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2879 if test "${ac_cv_prog_STRIP+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2881 else
2882 if test -n "$STRIP"; then
2883 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2895 fi
2896 done
2897 done
2898
2899 fi
2900 fi
2901 STRIP=$ac_cv_prog_STRIP
2902 if test -n "$STRIP"; then
2903 echo "$as_me:$LINENO: result: $STRIP" >&5
2904 echo "${ECHO_T}$STRIP" >&6
2905 else
2906 echo "$as_me:$LINENO: result: no" >&5
2907 echo "${ECHO_T}no" >&6
2908 fi
2909
2910 fi
2911 if test -z "$ac_cv_prog_STRIP"; then
2912 ac_ct_STRIP=$STRIP
2913 # Extract the first word of "strip", so it can be a program name with args.
2914 set dummy strip; ac_word=$2
2915 echo "$as_me:$LINENO: checking for $ac_word" >&5
2916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2917 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 else
2920 if test -n "$ac_ct_STRIP"; then
2921 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2922 else
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 for as_dir in $PATH
2925 do
2926 IFS=$as_save_IFS
2927 test -z "$as_dir" && as_dir=.
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2930 ac_cv_prog_ac_ct_STRIP="strip"
2931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 break 2
2933 fi
2934 done
2935 done
2936
2937 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2938 fi
2939 fi
2940 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2941 if test -n "$ac_ct_STRIP"; then
2942 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2943 echo "${ECHO_T}$ac_ct_STRIP" >&6
2944 else
2945 echo "$as_me:$LINENO: result: no" >&5
2946 echo "${ECHO_T}no" >&6
2947 fi
2948
2949 STRIP=$ac_ct_STRIP
2950 else
2951 STRIP="$ac_cv_prog_STRIP"
2952 fi
2953
2954 fi
2955 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2956
2957 # We need awk for the "check" target. The system "awk" is bad on
2958 # some platforms.
2959 # Always define AMTAR for backward compatibility.
2960
2961 AMTAR=${AMTAR-"${am_missing_run}tar"}
2962
2963 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2964
2965
2966
2967
2968 depcc="$CC" am_compiler_list=
2969
2970 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2971 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2972 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2974 else
2975 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2976 # We make a subdir and do the tests there. Otherwise we can end up
2977 # making bogus files that we don't know about and never remove. For
2978 # instance it was reported that on HP-UX the gcc test will end up
2979 # making a dummy file named `D' -- because `-MD' means `put the output
2980 # in D'.
2981 mkdir conftest.dir
2982 # Copy depcomp to subdir because otherwise we won't find it if we're
2983 # using a relative directory.
2984 cp "$am_depcomp" conftest.dir
2985 cd conftest.dir
2986 # We will build objects and dependencies in a subdirectory because
2987 # it helps to detect inapplicable dependency modes. For instance
2988 # both Tru64's cc and ICC support -MD to output dependencies as a
2989 # side effect of compilation, but ICC will put the dependencies in
2990 # the current directory while Tru64 will put them in the object
2991 # directory.
2992 mkdir sub
2993
2994 am_cv_CC_dependencies_compiler_type=none
2995 if test "$am_compiler_list" = ""; then
2996 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2997 fi
2998 for depmode in $am_compiler_list; do
2999 # Setup a source with many dependencies, because some compilers
3000 # like to wrap large dependency lists on column 80 (with \), and
3001 # we should not choose a depcomp mode which is confused by this.
3002 #
3003 # We need to recreate these files for each test, as the compiler may
3004 # overwrite some of them when testing with obscure command lines.
3005 # This happens at least with the AIX C compiler.
3006 : > sub/conftest.c
3007 for i in 1 2 3 4 5 6; do
3008 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3009 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3010 # Solaris 8's {/usr,}/bin/sh.
3011 touch sub/conftst$i.h
3012 done
3013 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3014
3015 case $depmode in
3016 nosideeffect)
3017 # after this tag, mechanisms are not by side-effect, so they'll
3018 # only be used when explicitly requested
3019 if test "x$enable_dependency_tracking" = xyes; then
3020 continue
3021 else
3022 break
3023 fi
3024 ;;
3025 none) break ;;
3026 esac
3027 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3028 # mode. It turns out that the SunPro C++ compiler does not properly
3029 # handle `-M -o', and we need to detect this.
3030 if depmode=$depmode \
3031 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3032 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3033 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3034 >/dev/null 2>conftest.err &&
3035 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3036 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3037 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3038 # icc doesn't choke on unknown options, it will just issue warnings
3039 # or remarks (even with -Werror). So we grep stderr for any message
3040 # that says an option was ignored or not supported.
3041 # When given -MP, icc 7.0 and 7.1 complain thusly:
3042 # icc: Command line warning: ignoring option '-M'; no argument required
3043 # The diagnosis changed in icc 8.0:
3044 # icc: Command line remark: option '-MP' not supported
3045 if (grep 'ignoring option' conftest.err ||
3046 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3047 am_cv_CC_dependencies_compiler_type=$depmode
3048 break
3049 fi
3050 fi
3051 done
3052
3053 cd ..
3054 rm -rf conftest.dir
3055 else
3056 am_cv_CC_dependencies_compiler_type=none
3057 fi
3058
3059 fi
3060 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3061 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3062 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3063
3064
3065
3066 if
3067 test "x$enable_dependency_tracking" != xno \
3068 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3069 am__fastdepCC_TRUE=
3070 am__fastdepCC_FALSE='#'
3071 else
3072 am__fastdepCC_TRUE='#'
3073 am__fastdepCC_FALSE=
3074 fi
3075
3076
3077
3078
3079 if test -n "$ac_tool_prefix"; then
3080 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3081 set dummy ${ac_tool_prefix}ar; ac_word=$2
3082 echo "$as_me:$LINENO: checking for $ac_word" >&5
3083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3084 if test "${ac_cv_prog_AR+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3086 else
3087 if test -n "$AR"; then
3088 ac_cv_prog_AR="$AR" # Let the user override the test.
3089 else
3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 for as_dir in $PATH
3092 do
3093 IFS=$as_save_IFS
3094 test -z "$as_dir" && as_dir=.
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097 ac_cv_prog_AR="${ac_tool_prefix}ar"
3098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 break 2
3100 fi
3101 done
3102 done
3103
3104 fi
3105 fi
3106 AR=$ac_cv_prog_AR
3107 if test -n "$AR"; then
3108 echo "$as_me:$LINENO: result: $AR" >&5
3109 echo "${ECHO_T}$AR" >&6
3110 else
3111 echo "$as_me:$LINENO: result: no" >&5
3112 echo "${ECHO_T}no" >&6
3113 fi
3114
3115 fi
3116 if test -z "$ac_cv_prog_AR"; then
3117 ac_ct_AR=$AR
3118 # Extract the first word of "ar", so it can be a program name with args.
3119 set dummy ar; ac_word=$2
3120 echo "$as_me:$LINENO: checking for $ac_word" >&5
3121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3122 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 else
3125 if test -n "$ac_ct_AR"; then
3126 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3127 else
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 for as_dir in $PATH
3130 do
3131 IFS=$as_save_IFS
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135 ac_cv_prog_ac_ct_AR="ar"
3136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 break 2
3138 fi
3139 done
3140 done
3141
3142 fi
3143 fi
3144 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3145 if test -n "$ac_ct_AR"; then
3146 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3147 echo "${ECHO_T}$ac_ct_AR" >&6
3148 else
3149 echo "$as_me:$LINENO: result: no" >&5
3150 echo "${ECHO_T}no" >&6
3151 fi
3152
3153 AR=$ac_ct_AR
3154 else
3155 AR="$ac_cv_prog_AR"
3156 fi
3157
3158 if test -n "$ac_tool_prefix"; then
3159 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3160 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3161 echo "$as_me:$LINENO: checking for $ac_word" >&5
3162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3163 if test "${ac_cv_prog_RANLIB+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 else
3166 if test -n "$RANLIB"; then
3167 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3168 else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3171 do
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 break 2
3179 fi
3180 done
3181 done
3182
3183 fi
3184 fi
3185 RANLIB=$ac_cv_prog_RANLIB
3186 if test -n "$RANLIB"; then
3187 echo "$as_me:$LINENO: result: $RANLIB" >&5
3188 echo "${ECHO_T}$RANLIB" >&6
3189 else
3190 echo "$as_me:$LINENO: result: no" >&5
3191 echo "${ECHO_T}no" >&6
3192 fi
3193
3194 fi
3195 if test -z "$ac_cv_prog_RANLIB"; then
3196 ac_ct_RANLIB=$RANLIB
3197 # Extract the first word of "ranlib", so it can be a program name with args.
3198 set dummy ranlib; ac_word=$2
3199 echo "$as_me:$LINENO: checking for $ac_word" >&5
3200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3201 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 else
3204 if test -n "$ac_ct_RANLIB"; then
3205 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3206 else
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 for as_dir in $PATH
3209 do
3210 IFS=$as_save_IFS
3211 test -z "$as_dir" && as_dir=.
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3214 ac_cv_prog_ac_ct_RANLIB="ranlib"
3215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 break 2
3217 fi
3218 done
3219 done
3220
3221 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3222 fi
3223 fi
3224 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3225 if test -n "$ac_ct_RANLIB"; then
3226 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3227 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3228 else
3229 echo "$as_me:$LINENO: result: no" >&5
3230 echo "${ECHO_T}no" >&6
3231 fi
3232
3233 RANLIB=$ac_ct_RANLIB
3234 else
3235 RANLIB="$ac_cv_prog_RANLIB"
3236 fi
3237
3238
3239 # Check whether --enable-shared or --disable-shared was given.
3240 if test "${enable_shared+set}" = set; then
3241 enableval="$enable_shared"
3242 p=${PACKAGE-default}
3243 case $enableval in
3244 yes) enable_shared=yes ;;
3245 no) enable_shared=no ;;
3246 *)
3247 enable_shared=no
3248 # Look at the argument we got. We use all the common list separators.
3249 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3250 for pkg in $enableval; do
3251 if test "X$pkg" = "X$p"; then
3252 enable_shared=yes
3253 fi
3254 done
3255 IFS="$ac_save_ifs"
3256 ;;
3257 esac
3258 else
3259 enable_shared=no
3260 fi;
3261
3262 # Check whether --enable-static or --disable-static was given.
3263 if test "${enable_static+set}" = set; then
3264 enableval="$enable_static"
3265 p=${PACKAGE-default}
3266 case $enableval in
3267 yes) enable_static=yes ;;
3268 no) enable_static=no ;;
3269 *)
3270 enable_static=no
3271 # Look at the argument we got. We use all the common list separators.
3272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3273 for pkg in $enableval; do
3274 if test "X$pkg" = "X$p"; then
3275 enable_static=yes
3276 fi
3277 done
3278 IFS="$ac_save_ifs"
3279 ;;
3280 esac
3281 else
3282 enable_static=yes
3283 fi;
3284 # Check whether --enable-fast-install or --disable-fast-install was given.
3285 if test "${enable_fast_install+set}" = set; then
3286 enableval="$enable_fast_install"
3287 p=${PACKAGE-default}
3288 case $enableval in
3289 yes) enable_fast_install=yes ;;
3290 no) enable_fast_install=no ;;
3291 *)
3292 enable_fast_install=no
3293 # Look at the argument we got. We use all the common list separators.
3294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3295 for pkg in $enableval; do
3296 if test "X$pkg" = "X$p"; then
3297 enable_fast_install=yes
3298 fi
3299 done
3300 IFS="$ac_save_ifs"
3301 ;;
3302 esac
3303 else
3304 enable_fast_install=yes
3305 fi;
3306
3307 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3308 if test "${with_gnu_ld+set}" = set; then
3309 withval="$with_gnu_ld"
3310 test "$withval" = no || with_gnu_ld=yes
3311 else
3312 with_gnu_ld=no
3313 fi;
3314 ac_prog=ld
3315 if test "$GCC" = yes; then
3316 # Check if gcc -print-prog-name=ld gives a path.
3317 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3318 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3319 case $host in
3320 *-*-mingw*)
3321 # gcc leaves a trailing carriage return which upsets mingw
3322 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3323 *)
3324 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3325 esac
3326 case $ac_prog in
3327 # Accept absolute paths.
3328 [\\/]* | [A-Za-z]:[\\/]*)
3329 re_direlt='/[^/][^/]*/\.\./'
3330 # Canonicalize the path of ld
3331 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3332 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3333 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3334 done
3335 test -z "$LD" && LD="$ac_prog"
3336 ;;
3337 "")
3338 # If it fails, then pretend we aren't using GCC.
3339 ac_prog=ld
3340 ;;
3341 *)
3342 # If it is relative, then search for the first ld in PATH.
3343 with_gnu_ld=unknown
3344 ;;
3345 esac
3346 elif test "$with_gnu_ld" = yes; then
3347 echo "$as_me:$LINENO: checking for GNU ld" >&5
3348 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3349 else
3350 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3351 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3352 fi
3353 if test "${lt_cv_path_LD+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 else
3356 if test -z "$LD"; then
3357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3358 for ac_dir in $PATH; do
3359 test -z "$ac_dir" && ac_dir=.
3360 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3361 lt_cv_path_LD="$ac_dir/$ac_prog"
3362 # Check to see if the program is GNU ld. I'd rather use --version,
3363 # but apparently some GNU ld's only accept -v.
3364 # Break only if it was the GNU/non-GNU ld that we prefer.
3365 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3366 test "$with_gnu_ld" != no && break
3367 else
3368 test "$with_gnu_ld" != yes && break
3369 fi
3370 fi
3371 done
3372 IFS="$ac_save_ifs"
3373 else
3374 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3375 fi
3376 fi
3377
3378 LD="$lt_cv_path_LD"
3379 if test -n "$LD"; then
3380 echo "$as_me:$LINENO: result: $LD" >&5
3381 echo "${ECHO_T}$LD" >&6
3382 else
3383 echo "$as_me:$LINENO: result: no" >&5
3384 echo "${ECHO_T}no" >&6
3385 fi
3386 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3387 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3388 { (exit 1); exit 1; }; }
3389 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3390 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3391 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 else
3394 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3395 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3396 lt_cv_prog_gnu_ld=yes
3397 else
3398 lt_cv_prog_gnu_ld=no
3399 fi
3400 fi
3401 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3402 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3403 with_gnu_ld=$lt_cv_prog_gnu_ld
3404
3405
3406 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3407 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3408 if test "${lt_cv_ld_reload_flag+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411 lt_cv_ld_reload_flag='-r'
3412 fi
3413 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3414 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3415 reload_flag=$lt_cv_ld_reload_flag
3416 test -n "$reload_flag" && reload_flag=" $reload_flag"
3417
3418 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3419 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3420 if test "${lt_cv_path_NM+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423 if test -n "$NM"; then
3424 # Let the user override the test.
3425 lt_cv_path_NM="$NM"
3426 else
3427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3428 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3429 test -z "$ac_dir" && ac_dir=.
3430 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3431 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3432 # Check to see if the nm accepts a BSD-compat flag.
3433 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3434 # nm: unknown option "B" ignored
3435 # Tru64's nm complains that /dev/null is an invalid object file
3436 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3437 lt_cv_path_NM="$tmp_nm -B"
3438 break
3439 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3440 lt_cv_path_NM="$tmp_nm -p"
3441 break
3442 else
3443 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3444 continue # so that we can try to find one that supports BSD flags
3445 fi
3446 fi
3447 done
3448 IFS="$ac_save_ifs"
3449 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3450 fi
3451 fi
3452
3453 NM="$lt_cv_path_NM"
3454 echo "$as_me:$LINENO: result: $NM" >&5
3455 echo "${ECHO_T}$NM" >&6
3456
3457 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3458 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3459 LN_S=$as_ln_s
3460 if test "$LN_S" = "ln -s"; then
3461 echo "$as_me:$LINENO: result: yes" >&5
3462 echo "${ECHO_T}yes" >&6
3463 else
3464 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3465 echo "${ECHO_T}no, using $LN_S" >&6
3466 fi
3467
3468 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3469 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3470 if test "${lt_cv_deplibs_check_method+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 else
3473 lt_cv_file_magic_cmd='$MAGIC_CMD'
3474 lt_cv_file_magic_test_file=
3475 lt_cv_deplibs_check_method='unknown'
3476 # Need to set the preceding variable on all platforms that support
3477 # interlibrary dependencies.
3478 # 'none' -- dependencies not supported.
3479 # `unknown' -- same as none, but documents that we really don't know.
3480 # 'pass_all' -- all dependencies passed with no checks.
3481 # 'test_compile' -- check by making test program.
3482 # 'file_magic [regex]' -- check by looking for files in library path
3483 # which responds to the $file_magic_cmd with a given egrep regex.
3484 # If you have `file' or equivalent on your system and you're not sure
3485 # whether `pass_all' will *always* work, you probably want this one.
3486
3487 case $host_os in
3488 aix*)
3489 lt_cv_deplibs_check_method=pass_all
3490 ;;
3491
3492 beos*)
3493 lt_cv_deplibs_check_method=pass_all
3494 ;;
3495
3496 bsdi4*)
3497 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3498 lt_cv_file_magic_cmd='/usr/bin/file -L'
3499 lt_cv_file_magic_test_file=/shlib/libc.so
3500 ;;
3501
3502 cygwin* | mingw* |pw32*)
3503 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3504 lt_cv_file_magic_cmd='$OBJDUMP -f'
3505 ;;
3506
3507 darwin* | rhapsody*)
3508 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3509 lt_cv_file_magic_cmd='/usr/bin/file -L'
3510 case "$host_os" in
3511 rhapsody* | darwin1.012)
3512 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3513 ;;
3514 *) # Darwin 1.3 on
3515 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3516 ;;
3517 esac
3518 ;;
3519
3520 freebsd* | kfreebsd*-gnu)
3521 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3522 case $host_cpu in
3523 i*86 )
3524 # Not sure whether the presence of OpenBSD here was a mistake.
3525 # Let's accept both of them until this is cleared up.
3526 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3527 lt_cv_file_magic_cmd=/usr/bin/file
3528 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3529 ;;
3530 esac
3531 else
3532 lt_cv_deplibs_check_method=pass_all
3533 fi
3534 ;;
3535
3536 gnu*)
3537 lt_cv_deplibs_check_method=pass_all
3538 ;;
3539
3540 hpux10.20*|hpux11*)
3541 case $host_cpu in
3542 hppa*)
3543 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3544 lt_cv_file_magic_cmd=/usr/bin/file
3545 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3546 ;;
3547 ia64*)
3548 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3549 lt_cv_file_magic_cmd=/usr/bin/file
3550 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3551 ;;
3552 esac
3553 ;;
3554
3555 irix5* | irix6*)
3556 case $host_os in
3557 irix5*)
3558 # this will be overridden with pass_all, but let us keep it just in case
3559 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3560 ;;
3561 *)
3562 case $LD in
3563 *-32|*"-32 ") libmagic=32-bit;;
3564 *-n32|*"-n32 ") libmagic=N32;;
3565 *-64|*"-64 ") libmagic=64-bit;;
3566 *) libmagic=never-match;;
3567 esac
3568 # this will be overridden with pass_all, but let us keep it just in case
3569 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3570 ;;
3571 esac
3572 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3573 lt_cv_deplibs_check_method=pass_all
3574 ;;
3575
3576 # This must be Linux ELF.
3577 linux-gnu*)
3578 case $host_cpu in
3579 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3580 lt_cv_deplibs_check_method=pass_all ;;
3581 *)
3582 # glibc up to 2.1.1 does not perform some relocations on ARM
3583 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3584 esac
3585 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3586 ;;
3587
3588 netbsd* | knetbsd*-gnu)
3589 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3590 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3591 else
3592 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3593 fi
3594 ;;
3595
3596 newsos6)
3597 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3598 lt_cv_file_magic_cmd=/usr/bin/file
3599 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3600 ;;
3601
3602 osf3* | osf4* | osf5*)
3603 # this will be overridden with pass_all, but let us keep it just in case
3604 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3605 lt_cv_file_magic_test_file=/shlib/libc.so
3606 lt_cv_deplibs_check_method=pass_all
3607 ;;
3608
3609 sco3.2v5*)
3610 lt_cv_deplibs_check_method=pass_all
3611 ;;
3612
3613 solaris*)
3614 lt_cv_deplibs_check_method=pass_all
3615 lt_cv_file_magic_test_file=/lib/libc.so
3616 ;;
3617
3618 sysv5uw[78]* | sysv4*uw2*)
3619 lt_cv_deplibs_check_method=pass_all
3620 ;;
3621
3622 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3623 case $host_vendor in
3624 ncr)
3625 lt_cv_deplibs_check_method=pass_all
3626 ;;
3627 motorola)
3628 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]'
3629 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3630 ;;
3631 esac
3632 ;;
3633 esac
3634
3635 fi
3636 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3637 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3638 file_magic_cmd=$lt_cv_file_magic_cmd
3639 deplibs_check_method=$lt_cv_deplibs_check_method
3640
3641
3642
3643
3644 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3645
3646 # Only perform the check for file, if the check method requires it
3647 case $deplibs_check_method in
3648 file_magic*)
3649 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3650 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3651 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3652 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655 case $MAGIC_CMD in
3656 /*)
3657 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3658 ;;
3659 ?:/*)
3660 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3661 ;;
3662 *)
3663 ac_save_MAGIC_CMD="$MAGIC_CMD"
3664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3665 ac_dummy="/usr/bin:$PATH"
3666 for ac_dir in $ac_dummy; do
3667 test -z "$ac_dir" && ac_dir=.
3668 if test -f $ac_dir/${ac_tool_prefix}file; then
3669 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3670 if test -n "$file_magic_test_file"; then
3671 case $deplibs_check_method in
3672 "file_magic "*)
3673 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3674 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3675 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3676 egrep "$file_magic_regex" > /dev/null; then
3677 :
3678 else
3679 cat <<EOF 1>&2
3680
3681 *** Warning: the command libtool uses to detect shared libraries,
3682 *** $file_magic_cmd, produces output that libtool cannot recognize.
3683 *** The result is that libtool may fail to recognize shared libraries
3684 *** as such. This will affect the creation of libtool libraries that
3685 *** depend on shared libraries, but programs linked with such libtool
3686 *** libraries will work regardless of this problem. Nevertheless, you
3687 *** may want to report the problem to your system manager and/or to
3688 *** bug-libtool@gnu.org
3689
3690 EOF
3691 fi ;;
3692 esac
3693 fi
3694 break
3695 fi
3696 done
3697 IFS="$ac_save_ifs"
3698 MAGIC_CMD="$ac_save_MAGIC_CMD"
3699 ;;
3700 esac
3701 fi
3702
3703 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3704 if test -n "$MAGIC_CMD"; then
3705 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3706 echo "${ECHO_T}$MAGIC_CMD" >&6
3707 else
3708 echo "$as_me:$LINENO: result: no" >&5
3709 echo "${ECHO_T}no" >&6
3710 fi
3711
3712 if test -z "$lt_cv_path_MAGIC_CMD"; then
3713 if test -n "$ac_tool_prefix"; then
3714 echo "$as_me:$LINENO: checking for file" >&5
3715 echo $ECHO_N "checking for file... $ECHO_C" >&6
3716 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3718 else
3719 case $MAGIC_CMD in
3720 /*)
3721 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3722 ;;
3723 ?:/*)
3724 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3725 ;;
3726 *)
3727 ac_save_MAGIC_CMD="$MAGIC_CMD"
3728 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3729 ac_dummy="/usr/bin:$PATH"
3730 for ac_dir in $ac_dummy; do
3731 test -z "$ac_dir" && ac_dir=.
3732 if test -f $ac_dir/file; then
3733 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3734 if test -n "$file_magic_test_file"; then
3735 case $deplibs_check_method in
3736 "file_magic "*)
3737 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3738 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3739 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3740 egrep "$file_magic_regex" > /dev/null; then
3741 :
3742 else
3743 cat <<EOF 1>&2
3744
3745 *** Warning: the command libtool uses to detect shared libraries,
3746 *** $file_magic_cmd, produces output that libtool cannot recognize.
3747 *** The result is that libtool may fail to recognize shared libraries
3748 *** as such. This will affect the creation of libtool libraries that
3749 *** depend on shared libraries, but programs linked with such libtool
3750 *** libraries will work regardless of this problem. Nevertheless, you
3751 *** may want to report the problem to your system manager and/or to
3752 *** bug-libtool@gnu.org
3753
3754 EOF
3755 fi ;;
3756 esac
3757 fi
3758 break
3759 fi
3760 done
3761 IFS="$ac_save_ifs"
3762 MAGIC_CMD="$ac_save_MAGIC_CMD"
3763 ;;
3764 esac
3765 fi
3766
3767 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3768 if test -n "$MAGIC_CMD"; then
3769 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3770 echo "${ECHO_T}$MAGIC_CMD" >&6
3771 else
3772 echo "$as_me:$LINENO: result: no" >&5
3773 echo "${ECHO_T}no" >&6
3774 fi
3775
3776 else
3777 MAGIC_CMD=:
3778 fi
3779 fi
3780
3781 fi
3782 ;;
3783 esac
3784
3785 if test -n "$ac_tool_prefix"; then
3786 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3787 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3788 echo "$as_me:$LINENO: checking for $ac_word" >&5
3789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3790 if test "${ac_cv_prog_RANLIB+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 else
3793 if test -n "$RANLIB"; then
3794 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3795 else
3796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797 for as_dir in $PATH
3798 do
3799 IFS=$as_save_IFS
3800 test -z "$as_dir" && as_dir=.
3801 for ac_exec_ext in '' $ac_executable_extensions; do
3802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3803 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3805 break 2
3806 fi
3807 done
3808 done
3809
3810 fi
3811 fi
3812 RANLIB=$ac_cv_prog_RANLIB
3813 if test -n "$RANLIB"; then
3814 echo "$as_me:$LINENO: result: $RANLIB" >&5
3815 echo "${ECHO_T}$RANLIB" >&6
3816 else
3817 echo "$as_me:$LINENO: result: no" >&5
3818 echo "${ECHO_T}no" >&6
3819 fi
3820
3821 fi
3822 if test -z "$ac_cv_prog_RANLIB"; then
3823 ac_ct_RANLIB=$RANLIB
3824 # Extract the first word of "ranlib", so it can be a program name with args.
3825 set dummy ranlib; ac_word=$2
3826 echo "$as_me:$LINENO: checking for $ac_word" >&5
3827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3828 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831 if test -n "$ac_ct_RANLIB"; then
3832 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3833 else
3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 for as_dir in $PATH
3836 do
3837 IFS=$as_save_IFS
3838 test -z "$as_dir" && as_dir=.
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3841 ac_cv_prog_ac_ct_RANLIB="ranlib"
3842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3843 break 2
3844 fi
3845 done
3846 done
3847
3848 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3849 fi
3850 fi
3851 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3852 if test -n "$ac_ct_RANLIB"; then
3853 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3854 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3855 else
3856 echo "$as_me:$LINENO: result: no" >&5
3857 echo "${ECHO_T}no" >&6
3858 fi
3859
3860 RANLIB=$ac_ct_RANLIB
3861 else
3862 RANLIB="$ac_cv_prog_RANLIB"
3863 fi
3864
3865 if test -n "$ac_tool_prefix"; then
3866 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3867 set dummy ${ac_tool_prefix}strip; ac_word=$2
3868 echo "$as_me:$LINENO: checking for $ac_word" >&5
3869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3870 if test "${ac_cv_prog_STRIP+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 else
3873 if test -n "$STRIP"; then
3874 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3875 else
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 for as_dir in $PATH
3878 do
3879 IFS=$as_save_IFS
3880 test -z "$as_dir" && as_dir=.
3881 for ac_exec_ext in '' $ac_executable_extensions; do
3882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3883 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3885 break 2
3886 fi
3887 done
3888 done
3889
3890 fi
3891 fi
3892 STRIP=$ac_cv_prog_STRIP
3893 if test -n "$STRIP"; then
3894 echo "$as_me:$LINENO: result: $STRIP" >&5
3895 echo "${ECHO_T}$STRIP" >&6
3896 else
3897 echo "$as_me:$LINENO: result: no" >&5
3898 echo "${ECHO_T}no" >&6
3899 fi
3900
3901 fi
3902 if test -z "$ac_cv_prog_STRIP"; then
3903 ac_ct_STRIP=$STRIP
3904 # Extract the first word of "strip", so it can be a program name with args.
3905 set dummy strip; ac_word=$2
3906 echo "$as_me:$LINENO: checking for $ac_word" >&5
3907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3908 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 else
3911 if test -n "$ac_ct_STRIP"; then
3912 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3913 else
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH
3916 do
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3921 ac_cv_prog_ac_ct_STRIP="strip"
3922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3923 break 2
3924 fi
3925 done
3926 done
3927
3928 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3929 fi
3930 fi
3931 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3932 if test -n "$ac_ct_STRIP"; then
3933 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3934 echo "${ECHO_T}$ac_ct_STRIP" >&6
3935 else
3936 echo "$as_me:$LINENO: result: no" >&5
3937 echo "${ECHO_T}no" >&6
3938 fi
3939
3940 STRIP=$ac_ct_STRIP
3941 else
3942 STRIP="$ac_cv_prog_STRIP"
3943 fi
3944
3945
3946 # Check for any special flags to pass to ltconfig.
3947 libtool_flags="--cache-file=$cache_file"
3948 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3949 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3950 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3951 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3952 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3953
3954
3955 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3956 if test "${enable_libtool_lock+set}" = set; then
3957 enableval="$enable_libtool_lock"
3958
3959 fi;
3960 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3961 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3962
3963
3964 # Check whether --with-pic or --without-pic was given.
3965 if test "${with_pic+set}" = set; then
3966 withval="$with_pic"
3967 pic_mode="$withval"
3968 else
3969 pic_mode=default
3970 fi;
3971 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3972 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3973
3974 # Some flags need to be propagated to the compiler or linker for good
3975 # libtool support.
3976 case $host in
3977 *-*-irix6*)
3978 # Find out which ABI we are using.
3979 echo '#line 3979 "configure"' > conftest.$ac_ext
3980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3981 (eval $ac_compile) 2>&5
3982 ac_status=$?
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }; then
3985 if test "$lt_cv_prog_gnu_ld" = yes; then
3986 case `/usr/bin/file conftest.$ac_objext` in
3987 *32-bit*)
3988 LD="${LD-ld} -melf32bsmip"
3989 ;;
3990 *N32*)
3991 LD="${LD-ld} -melf32bmipn32"
3992 ;;
3993 *64-bit*)
3994 LD="${LD-ld} -melf64bmip"
3995 ;;
3996 esac
3997 else
3998 case `/usr/bin/file conftest.$ac_objext` in
3999 *32-bit*)
4000 LD="${LD-ld} -32"
4001 ;;
4002 *N32*)
4003 LD="${LD-ld} -n32"
4004 ;;
4005 *64-bit*)
4006 LD="${LD-ld} -64"
4007 ;;
4008 esac
4009 fi
4010 fi
4011 rm -rf conftest*
4012 ;;
4013
4014 ia64-*-hpux*)
4015 # Find out which ABI we are using.
4016 echo 'int i;' > conftest.$ac_ext
4017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4018 (eval $ac_compile) 2>&5
4019 ac_status=$?
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; then
4022 case "`/usr/bin/file conftest.o`" in
4023 *ELF-32*)
4024 HPUX_IA64_MODE="32"
4025 ;;
4026 *ELF-64*)
4027 HPUX_IA64_MODE="64"
4028 ;;
4029 esac
4030 fi
4031 rm -rf conftest*
4032 ;;
4033
4034 *-*-sco3.2v5*)
4035 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4036 SAVE_CFLAGS="$CFLAGS"
4037 CFLAGS="$CFLAGS -belf"
4038 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4039 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4040 if test "${lt_cv_cc_needs_belf+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 else
4043
4044
4045 ac_ext=c
4046 ac_cpp='$CPP $CPPFLAGS'
4047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4050
4051 cat >conftest.$ac_ext <<_ACEOF
4052 /* confdefs.h. */
4053 _ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h. */
4057
4058 int
4059 main ()
4060 {
4061
4062 ;
4063 return 0;
4064 }
4065 _ACEOF
4066 rm -f conftest.$ac_objext conftest$ac_exeext
4067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4068 (eval $ac_link) 2>conftest.er1
4069 ac_status=$?
4070 grep -v '^ *+' conftest.er1 >conftest.err
4071 rm -f conftest.er1
4072 cat conftest.err >&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); } &&
4075 { ac_try='test -z "$ac_c_werror_flag"
4076 || test ! -s conftest.err'
4077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 (eval $ac_try) 2>&5
4079 ac_status=$?
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; } &&
4082 { ac_try='test -s conftest$ac_exeext'
4083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084 (eval $ac_try) 2>&5
4085 ac_status=$?
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; }; then
4088 lt_cv_cc_needs_belf=yes
4089 else
4090 echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4092
4093 lt_cv_cc_needs_belf=no
4094 fi
4095 rm -f conftest.err conftest.$ac_objext \
4096 conftest$ac_exeext conftest.$ac_ext
4097 ac_ext=c
4098 ac_cpp='$CPP $CPPFLAGS'
4099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4102
4103 fi
4104 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4105 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4106 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4107 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4108 CFLAGS="$SAVE_CFLAGS"
4109 fi
4110 ;;
4111
4112
4113 esac
4114
4115
4116 # Save cache, so that ltconfig can load it
4117 cat >confcache <<\_ACEOF
4118 # This file is a shell script that caches the results of configure
4119 # tests run on this system so they can be shared between configure
4120 # scripts and configure runs, see configure's option --config-cache.
4121 # It is not useful on other systems. If it contains results you don't
4122 # want to keep, you may remove or edit it.
4123 #
4124 # config.status only pays attention to the cache file if you give it
4125 # the --recheck option to rerun configure.
4126 #
4127 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4128 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4129 # following values.
4130
4131 _ACEOF
4132
4133 # The following way of writing the cache mishandles newlines in values,
4134 # but we know of no workaround that is simple, portable, and efficient.
4135 # So, don't put newlines in cache variables' values.
4136 # Ultrix sh set writes to stderr and can't be redirected directly,
4137 # and sets the high bit in the cache file unless we assign to the vars.
4138 {
4139 (set) 2>&1 |
4140 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4141 *ac_space=\ *)
4142 # `set' does not quote correctly, so add quotes (double-quote
4143 # substitution turns \\\\ into \\, and sed turns \\ into \).
4144 sed -n \
4145 "s/'/'\\\\''/g;
4146 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4147 ;;
4148 *)
4149 # `set' quotes correctly as required by POSIX, so do not add quotes.
4150 sed -n \
4151 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4152 ;;
4153 esac;
4154 } |
4155 sed '
4156 t clear
4157 : clear
4158 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4159 t end
4160 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4161 : end' >>confcache
4162 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4163 if test -w $cache_file; then
4164 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4165 cat confcache >$cache_file
4166 else
4167 echo "not updating unwritable cache $cache_file"
4168 fi
4169 fi
4170 rm -f confcache
4171
4172 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4173 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4174 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4175 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4176 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4177 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4178 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4179 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4180 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4181 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4182 echo "$as_me: error: libtool configure failed" >&2;}
4183 { (exit 1); exit 1; }; }
4184
4185 # Reload cache, that may have been modified by ltconfig
4186 if test -r "$cache_file"; then
4187 # Some versions of bash will fail to source /dev/null (special
4188 # files actually), so we avoid doing that.
4189 if test -f "$cache_file"; then
4190 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4191 echo "$as_me: loading cache $cache_file" >&6;}
4192 case $cache_file in
4193 [\\/]* | ?:[\\/]* ) . $cache_file;;
4194 *) . ./$cache_file;;
4195 esac
4196 fi
4197 else
4198 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4199 echo "$as_me: creating cache $cache_file" >&6;}
4200 >$cache_file
4201 fi
4202
4203
4204 # This can be used to rebuild libtool when needed
4205 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4206
4207 # Always use our own libtool.
4208 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4209
4210 # Redirect the config.log output again, so that the ltconfig log is not
4211 # clobbered by the next message.
4212 exec 5>>./config.log
4213
4214
4215
4216
4217
4218
4219
4220 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4221 if test "${enable_64_bit_bfd+set}" = set; then
4222 enableval="$enable_64_bit_bfd"
4223 case "${enableval}" in
4224 yes) want64=true ;;
4225 no) want64=false ;;
4226 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4227 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4228 { (exit 1); exit 1; }; } ;;
4229 esac
4230 else
4231 want64=false
4232 fi; # Check whether --enable-targets or --disable-targets was given.
4233 if test "${enable_targets+set}" = set; then
4234 enableval="$enable_targets"
4235 case "${enableval}" in
4236 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4237 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4238 { (exit 1); exit 1; }; }
4239 ;;
4240 no) enable_targets= ;;
4241 *) enable_targets=$enableval ;;
4242 esac
4243 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4244 if test "${enable_commonbfdlib+set}" = set; then
4245 enableval="$enable_commonbfdlib"
4246 case "${enableval}" in
4247 yes) commonbfdlib=true ;;
4248 no) commonbfdlib=false ;;
4249 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4250 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4251 { (exit 1); exit 1; }; } ;;
4252 esac
4253 fi;
4254 # Check whether --with-mmap or --without-mmap was given.
4255 if test "${with_mmap+set}" = set; then
4256 withval="$with_mmap"
4257 case "${withval}" in
4258 yes) want_mmap=true ;;
4259 no) want_mmap=false ;;
4260 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4261 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4262 { (exit 1); exit 1; }; } ;;
4263 esac
4264 else
4265 want_mmap=false
4266 fi;
4267 # Check whether --enable-secureplt or --disable-secureplt was given.
4268 if test "${enable_secureplt+set}" = set; then
4269 enableval="$enable_secureplt"
4270 case "${enableval}" in
4271 yes) use_secureplt=true ;;
4272 no) use_secureplt=false ;;
4273 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
4274 echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
4275 { (exit 1); exit 1; }; } ;;
4276 esac
4277 else
4278 use_secureplt=false
4279 fi; if test $use_secureplt = true; then
4280
4281 cat >>confdefs.h <<\_ACEOF
4282 #define USE_SECUREPLT 1
4283 _ACEOF
4284
4285 fi
4286
4287
4288 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4289
4290 # Check whether --enable-werror or --disable-werror was given.
4291 if test "${enable_werror+set}" = set; then
4292 enableval="$enable_werror"
4293 case "${enableval}" in
4294 yes | y) ERROR_ON_WARNING="yes" ;;
4295 no | n) ERROR_ON_WARNING="no" ;;
4296 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4297 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4298 { (exit 1); exit 1; }; } ;;
4299 esac
4300 fi;
4301
4302 # Enable -Werror by default when using gcc
4303 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4304 ERROR_ON_WARNING=yes
4305 fi
4306
4307 NO_WERROR=
4308 if test "${ERROR_ON_WARNING}" = yes ; then
4309 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4310 NO_WERROR="-Wno-error"
4311 fi
4312
4313 if test "${GCC}" = yes ; then
4314 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4315 fi
4316
4317 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4318 if test "${enable_build_warnings+set}" = set; then
4319 enableval="$enable_build_warnings"
4320 case "${enableval}" in
4321 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4322 no) if test "${GCC}" = yes ; then
4323 WARN_CFLAGS="-w"
4324 fi;;
4325 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4326 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4327 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4328 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4329 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4330 esac
4331 fi;
4332
4333 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4334 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4335 fi
4336
4337
4338
4339
4340
4341 ac_config_headers="$ac_config_headers config.h:config.in"
4342
4343
4344 if test -z "$target" ; then
4345 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4346 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4347 { (exit 1); exit 1; }; }
4348 fi
4349
4350 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4351 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4352 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4353 if test "${enable_maintainer_mode+set}" = set; then
4354 enableval="$enable_maintainer_mode"
4355 USE_MAINTAINER_MODE=$enableval
4356 else
4357 USE_MAINTAINER_MODE=no
4358 fi;
4359 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4360 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4361
4362
4363 if test $USE_MAINTAINER_MODE = yes; then
4364 MAINTAINER_MODE_TRUE=
4365 MAINTAINER_MODE_FALSE='#'
4366 else
4367 MAINTAINER_MODE_TRUE='#'
4368 MAINTAINER_MODE_FALSE=
4369 fi
4370
4371 MAINT=$MAINTAINER_MODE_TRUE
4372
4373
4374 case ${build_alias} in
4375 "") build_noncanonical=${build} ;;
4376 *) build_noncanonical=${build_alias} ;;
4377 esac
4378
4379 case ${host_alias} in
4380 "") host_noncanonical=${build_noncanonical} ;;
4381 *) host_noncanonical=${host_alias} ;;
4382 esac
4383
4384 case ${target_alias} in
4385 "") target_noncanonical=${host_noncanonical} ;;
4386 *) target_noncanonical=${target_alias} ;;
4387 esac
4388
4389 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4390 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
4391 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4392 if test "${enable_install_libbfd+set}" = set; then
4393 enableval="$enable_install_libbfd"
4394 install_libbfd_p=$enableval
4395 else
4396 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
4397 install_libbfd_p=yes
4398 else
4399 install_libbfd_p=no
4400 fi
4401 fi;
4402 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4403 echo "${ECHO_T}$install_libbfd_p" >&6
4404
4405
4406 if test $install_libbfd_p = yes; then
4407 INSTALL_LIBBFD_TRUE=
4408 INSTALL_LIBBFD_FALSE='#'
4409 else
4410 INSTALL_LIBBFD_TRUE='#'
4411 INSTALL_LIBBFD_FALSE=
4412 fi
4413
4414 # Need _noncanonical variables for this.
4415
4416
4417
4418
4419 # libbfd.a is a host library containing target dependent code
4420 bfdlibdir='$(libdir)'
4421 bfdincludedir='$(includedir)'
4422 if test "${host}" != "${target}"; then
4423 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4424 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
4425 fi
4426
4427
4428
4429
4430
4431
4432 host64=false
4433 target64=false
4434 bfd_default_target_size=32
4435
4436 # host stuff:
4437
4438 ac_ext=c
4439 ac_cpp='$CPP $CPPFLAGS'
4440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4443 if test -n "$ac_tool_prefix"; then
4444 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4445 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4446 echo "$as_me:$LINENO: checking for $ac_word" >&5
4447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4448 if test "${ac_cv_prog_CC+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4450 else
4451 if test -n "$CC"; then
4452 ac_cv_prog_CC="$CC" # Let the user override the test.
4453 else
4454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455 for as_dir in $PATH
4456 do
4457 IFS=$as_save_IFS
4458 test -z "$as_dir" && as_dir=.
4459 for ac_exec_ext in '' $ac_executable_extensions; do
4460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4461 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4463 break 2
4464 fi
4465 done
4466 done
4467
4468 fi
4469 fi
4470 CC=$ac_cv_prog_CC
4471 if test -n "$CC"; then
4472 echo "$as_me:$LINENO: result: $CC" >&5
4473 echo "${ECHO_T}$CC" >&6
4474 else
4475 echo "$as_me:$LINENO: result: no" >&5
4476 echo "${ECHO_T}no" >&6
4477 fi
4478
4479 fi
4480 if test -z "$ac_cv_prog_CC"; then
4481 ac_ct_CC=$CC
4482 # Extract the first word of "gcc", so it can be a program name with args.
4483 set dummy gcc; ac_word=$2
4484 echo "$as_me:$LINENO: checking for $ac_word" >&5
4485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4486 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4488 else
4489 if test -n "$ac_ct_CC"; then
4490 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4491 else
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 for as_dir in $PATH
4494 do
4495 IFS=$as_save_IFS
4496 test -z "$as_dir" && as_dir=.
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4499 ac_cv_prog_ac_ct_CC="gcc"
4500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4501 break 2
4502 fi
4503 done
4504 done
4505
4506 fi
4507 fi
4508 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4509 if test -n "$ac_ct_CC"; then
4510 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4511 echo "${ECHO_T}$ac_ct_CC" >&6
4512 else
4513 echo "$as_me:$LINENO: result: no" >&5
4514 echo "${ECHO_T}no" >&6
4515 fi
4516
4517 CC=$ac_ct_CC
4518 else
4519 CC="$ac_cv_prog_CC"
4520 fi
4521
4522 if test -z "$CC"; then
4523 if test -n "$ac_tool_prefix"; then
4524 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4525 set dummy ${ac_tool_prefix}cc; ac_word=$2
4526 echo "$as_me:$LINENO: checking for $ac_word" >&5
4527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4528 if test "${ac_cv_prog_CC+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531 if test -n "$CC"; then
4532 ac_cv_prog_CC="$CC" # Let the user override the test.
4533 else
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 for as_dir in $PATH
4536 do
4537 IFS=$as_save_IFS
4538 test -z "$as_dir" && as_dir=.
4539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4541 ac_cv_prog_CC="${ac_tool_prefix}cc"
4542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4543 break 2
4544 fi
4545 done
4546 done
4547
4548 fi
4549 fi
4550 CC=$ac_cv_prog_CC
4551 if test -n "$CC"; then
4552 echo "$as_me:$LINENO: result: $CC" >&5
4553 echo "${ECHO_T}$CC" >&6
4554 else
4555 echo "$as_me:$LINENO: result: no" >&5
4556 echo "${ECHO_T}no" >&6
4557 fi
4558
4559 fi
4560 if test -z "$ac_cv_prog_CC"; then
4561 ac_ct_CC=$CC
4562 # Extract the first word of "cc", so it can be a program name with args.
4563 set dummy cc; ac_word=$2
4564 echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 else
4569 if test -n "$ac_ct_CC"; then
4570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4571 else
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4574 do
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4579 ac_cv_prog_ac_ct_CC="cc"
4580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 break 2
4582 fi
4583 done
4584 done
4585
4586 fi
4587 fi
4588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4589 if test -n "$ac_ct_CC"; then
4590 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4591 echo "${ECHO_T}$ac_ct_CC" >&6
4592 else
4593 echo "$as_me:$LINENO: result: no" >&5
4594 echo "${ECHO_T}no" >&6
4595 fi
4596
4597 CC=$ac_ct_CC
4598 else
4599 CC="$ac_cv_prog_CC"
4600 fi
4601
4602 fi
4603 if test -z "$CC"; then
4604 # Extract the first word of "cc", so it can be a program name with args.
4605 set dummy cc; ac_word=$2
4606 echo "$as_me:$LINENO: checking for $ac_word" >&5
4607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4608 if test "${ac_cv_prog_CC+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 else
4611 if test -n "$CC"; then
4612 ac_cv_prog_CC="$CC" # Let the user override the test.
4613 else
4614 ac_prog_rejected=no
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 for as_dir in $PATH
4617 do
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4622 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4623 ac_prog_rejected=yes
4624 continue
4625 fi
4626 ac_cv_prog_CC="cc"
4627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4628 break 2
4629 fi
4630 done
4631 done
4632
4633 if test $ac_prog_rejected = yes; then
4634 # We found a bogon in the path, so make sure we never use it.
4635 set dummy $ac_cv_prog_CC
4636 shift
4637 if test $# != 0; then
4638 # We chose a different compiler from the bogus one.
4639 # However, it has the same basename, so the bogon will be chosen
4640 # first if we set CC to just the basename; use the full file name.
4641 shift
4642 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4643 fi
4644 fi
4645 fi
4646 fi
4647 CC=$ac_cv_prog_CC
4648 if test -n "$CC"; then
4649 echo "$as_me:$LINENO: result: $CC" >&5
4650 echo "${ECHO_T}$CC" >&6
4651 else
4652 echo "$as_me:$LINENO: result: no" >&5
4653 echo "${ECHO_T}no" >&6
4654 fi
4655
4656 fi
4657 if test -z "$CC"; then
4658 if test -n "$ac_tool_prefix"; then
4659 for ac_prog in cl
4660 do
4661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4663 echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4665 if test "${ac_cv_prog_CC+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 else
4668 if test -n "$CC"; then
4669 ac_cv_prog_CC="$CC" # Let the user override the test.
4670 else
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4673 do
4674 IFS=$as_save_IFS
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4678 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 break 2
4681 fi
4682 done
4683 done
4684
4685 fi
4686 fi
4687 CC=$ac_cv_prog_CC
4688 if test -n "$CC"; then
4689 echo "$as_me:$LINENO: result: $CC" >&5
4690 echo "${ECHO_T}$CC" >&6
4691 else
4692 echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6
4694 fi
4695
4696 test -n "$CC" && break
4697 done
4698 fi
4699 if test -z "$CC"; then
4700 ac_ct_CC=$CC
4701 for ac_prog in cl
4702 do
4703 # Extract the first word of "$ac_prog", so it can be a program name with args.
4704 set dummy $ac_prog; ac_word=$2
4705 echo "$as_me:$LINENO: checking for $ac_word" >&5
4706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4707 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4709 else
4710 if test -n "$ac_ct_CC"; then
4711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4712 else
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 for as_dir in $PATH
4715 do
4716 IFS=$as_save_IFS
4717 test -z "$as_dir" && as_dir=.
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4720 ac_cv_prog_ac_ct_CC="$ac_prog"
4721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 break 2
4723 fi
4724 done
4725 done
4726
4727 fi
4728 fi
4729 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4730 if test -n "$ac_ct_CC"; then
4731 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4732 echo "${ECHO_T}$ac_ct_CC" >&6
4733 else
4734 echo "$as_me:$LINENO: result: no" >&5
4735 echo "${ECHO_T}no" >&6
4736 fi
4737
4738 test -n "$ac_ct_CC" && break
4739 done
4740
4741 CC=$ac_ct_CC
4742 fi
4743
4744 fi
4745
4746
4747 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4748 See \`config.log' for more details." >&5
4749 echo "$as_me: error: no acceptable C compiler found in \$PATH
4750 See \`config.log' for more details." >&2;}
4751 { (exit 1); exit 1; }; }
4752
4753 # Provide some information about the compiler.
4754 echo "$as_me:$LINENO:" \
4755 "checking for C compiler version" >&5
4756 ac_compiler=`set X $ac_compile; echo $2`
4757 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4758 (eval $ac_compiler --version </dev/null >&5) 2>&5
4759 ac_status=$?
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }
4762 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4763 (eval $ac_compiler -v </dev/null >&5) 2>&5
4764 ac_status=$?
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); }
4767 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4768 (eval $ac_compiler -V </dev/null >&5) 2>&5
4769 ac_status=$?
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }
4772
4773 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4774 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4775 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4776 echo $ECHO_N "(cached) $ECHO_C" >&6
4777 else
4778 cat >conftest.$ac_ext <<_ACEOF
4779 /* confdefs.h. */
4780 _ACEOF
4781 cat confdefs.h >>conftest.$ac_ext
4782 cat >>conftest.$ac_ext <<_ACEOF
4783 /* end confdefs.h. */
4784
4785 int
4786 main ()
4787 {
4788 #ifndef __GNUC__
4789 choke me
4790 #endif
4791
4792 ;
4793 return 0;
4794 }
4795 _ACEOF
4796 rm -f conftest.$ac_objext
4797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4798 (eval $ac_compile) 2>conftest.er1
4799 ac_status=$?
4800 grep -v '^ *+' conftest.er1 >conftest.err
4801 rm -f conftest.er1
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } &&
4805 { ac_try='test -z "$ac_c_werror_flag"
4806 || test ! -s conftest.err'
4807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 (eval $ac_try) 2>&5
4809 ac_status=$?
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; } &&
4812 { ac_try='test -s conftest.$ac_objext'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 (eval $ac_try) 2>&5
4815 ac_status=$?
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; }; then
4818 ac_compiler_gnu=yes
4819 else
4820 echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.$ac_ext >&5
4822
4823 ac_compiler_gnu=no
4824 fi
4825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4826 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4827
4828 fi
4829 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4830 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4831 GCC=`test $ac_compiler_gnu = yes && echo yes`
4832 ac_test_CFLAGS=${CFLAGS+set}
4833 ac_save_CFLAGS=$CFLAGS
4834 CFLAGS="-g"
4835 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4836 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4837 if test "${ac_cv_prog_cc_g+set}" = set; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 else
4840 cat >conftest.$ac_ext <<_ACEOF
4841 /* confdefs.h. */
4842 _ACEOF
4843 cat confdefs.h >>conftest.$ac_ext
4844 cat >>conftest.$ac_ext <<_ACEOF
4845 /* end confdefs.h. */
4846
4847 int
4848 main ()
4849 {
4850
4851 ;
4852 return 0;
4853 }
4854 _ACEOF
4855 rm -f conftest.$ac_objext
4856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4857 (eval $ac_compile) 2>conftest.er1
4858 ac_status=$?
4859 grep -v '^ *+' conftest.er1 >conftest.err
4860 rm -f conftest.er1
4861 cat conftest.err >&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } &&
4864 { ac_try='test -z "$ac_c_werror_flag"
4865 || test ! -s conftest.err'
4866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 (eval $ac_try) 2>&5
4868 ac_status=$?
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; } &&
4871 { ac_try='test -s conftest.$ac_objext'
4872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 (eval $ac_try) 2>&5
4874 ac_status=$?
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; }; then
4877 ac_cv_prog_cc_g=yes
4878 else
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4881
4882 ac_cv_prog_cc_g=no
4883 fi
4884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4885 fi
4886 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4887 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4888 if test "$ac_test_CFLAGS" = set; then
4889 CFLAGS=$ac_save_CFLAGS
4890 elif test $ac_cv_prog_cc_g = yes; then
4891 if test "$GCC" = yes; then
4892 CFLAGS="-g -O2"
4893 else
4894 CFLAGS="-g"
4895 fi
4896 else
4897 if test "$GCC" = yes; then
4898 CFLAGS="-O2"
4899 else
4900 CFLAGS=
4901 fi
4902 fi
4903 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4904 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4905 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908 ac_cv_prog_cc_stdc=no
4909 ac_save_CC=$CC
4910 cat >conftest.$ac_ext <<_ACEOF
4911 /* confdefs.h. */
4912 _ACEOF
4913 cat confdefs.h >>conftest.$ac_ext
4914 cat >>conftest.$ac_ext <<_ACEOF
4915 /* end confdefs.h. */
4916 #include <stdarg.h>
4917 #include <stdio.h>
4918 #include <sys/types.h>
4919 #include <sys/stat.h>
4920 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4921 struct buf { int x; };
4922 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4923 static char *e (p, i)
4924 char **p;
4925 int i;
4926 {
4927 return p[i];
4928 }
4929 static char *f (char * (*g) (char **, int), char **p, ...)
4930 {
4931 char *s;
4932 va_list v;
4933 va_start (v,p);
4934 s = g (p, va_arg (v,int));
4935 va_end (v);
4936 return s;
4937 }
4938
4939 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4940 function prototypes and stuff, but not '\xHH' hex character constants.
4941 These don't provoke an error unfortunately, instead are silently treated
4942 as 'x'. The following induces an error, until -std1 is added to get
4943 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4944 array size at least. It's necessary to write '\x00'==0 to get something
4945 that's true only with -std1. */
4946 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4947
4948 int test (int i, double x);
4949 struct s1 {int (*f) (int a);};
4950 struct s2 {int (*f) (double a);};
4951 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4952 int argc;
4953 char **argv;
4954 int
4955 main ()
4956 {
4957 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4958 ;
4959 return 0;
4960 }
4961 _ACEOF
4962 # Don't try gcc -ansi; that turns off useful extensions and
4963 # breaks some systems' header files.
4964 # AIX -qlanglvl=ansi
4965 # Ultrix and OSF/1 -std1
4966 # HP-UX 10.20 and later -Ae
4967 # HP-UX older versions -Aa -D_HPUX_SOURCE
4968 # SVR4 -Xc -D__EXTENSIONS__
4969 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4970 do
4971 CC="$ac_save_CC $ac_arg"
4972 rm -f conftest.$ac_objext
4973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4974 (eval $ac_compile) 2>conftest.er1
4975 ac_status=$?
4976 grep -v '^ *+' conftest.er1 >conftest.err
4977 rm -f conftest.er1
4978 cat conftest.err >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); } &&
4981 { ac_try='test -z "$ac_c_werror_flag"
4982 || test ! -s conftest.err'
4983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 (eval $ac_try) 2>&5
4985 ac_status=$?
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; } &&
4988 { ac_try='test -s conftest.$ac_objext'
4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 (eval $ac_try) 2>&5
4991 ac_status=$?
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; }; then
4994 ac_cv_prog_cc_stdc=$ac_arg
4995 break
4996 else
4997 echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
4999
5000 fi
5001 rm -f conftest.err conftest.$ac_objext
5002 done
5003 rm -f conftest.$ac_ext conftest.$ac_objext
5004 CC=$ac_save_CC
5005
5006 fi
5007
5008 case "x$ac_cv_prog_cc_stdc" in
5009 x|xno)
5010 echo "$as_me:$LINENO: result: none needed" >&5
5011 echo "${ECHO_T}none needed" >&6 ;;
5012 *)
5013 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5014 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5015 CC="$CC $ac_cv_prog_cc_stdc" ;;
5016 esac
5017
5018 # Some people use a C++ compiler to compile C. Since we use `exit',
5019 # in C++ we need to declare it. In case someone uses the same compiler
5020 # for both compiling C and C++ we need to have the C++ compiler decide
5021 # the declaration of exit, since it's the most demanding environment.
5022 cat >conftest.$ac_ext <<_ACEOF
5023 #ifndef __cplusplus
5024 choke me
5025 #endif
5026 _ACEOF
5027 rm -f conftest.$ac_objext
5028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5029 (eval $ac_compile) 2>conftest.er1
5030 ac_status=$?
5031 grep -v '^ *+' conftest.er1 >conftest.err
5032 rm -f conftest.er1
5033 cat conftest.err >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
5036 { ac_try='test -z "$ac_c_werror_flag"
5037 || test ! -s conftest.err'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 (eval $ac_try) 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; } &&
5043 { ac_try='test -s conftest.$ac_objext'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 (eval $ac_try) 2>&5
5046 ac_status=$?
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5049 for ac_declaration in \
5050 '' \
5051 'extern "C" void std::exit (int) throw (); using std::exit;' \
5052 'extern "C" void std::exit (int); using std::exit;' \
5053 'extern "C" void exit (int) throw ();' \
5054 'extern "C" void exit (int);' \
5055 'void exit (int);'
5056 do
5057 cat >conftest.$ac_ext <<_ACEOF
5058 /* confdefs.h. */
5059 _ACEOF
5060 cat confdefs.h >>conftest.$ac_ext
5061 cat >>conftest.$ac_ext <<_ACEOF
5062 /* end confdefs.h. */
5063 $ac_declaration
5064 #include <stdlib.h>
5065 int
5066 main ()
5067 {
5068 exit (42);
5069 ;
5070 return 0;
5071 }
5072 _ACEOF
5073 rm -f conftest.$ac_objext
5074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5075 (eval $ac_compile) 2>conftest.er1
5076 ac_status=$?
5077 grep -v '^ *+' conftest.er1 >conftest.err
5078 rm -f conftest.er1
5079 cat conftest.err >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } &&
5082 { ac_try='test -z "$ac_c_werror_flag"
5083 || test ! -s conftest.err'
5084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085 (eval $ac_try) 2>&5
5086 ac_status=$?
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); }; } &&
5089 { ac_try='test -s conftest.$ac_objext'
5090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091 (eval $ac_try) 2>&5
5092 ac_status=$?
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); }; }; then
5095 :
5096 else
5097 echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5099
5100 continue
5101 fi
5102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5103 cat >conftest.$ac_ext <<_ACEOF
5104 /* confdefs.h. */
5105 _ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h. */
5109 $ac_declaration
5110 int
5111 main ()
5112 {
5113 exit (42);
5114 ;
5115 return 0;
5116 }
5117 _ACEOF
5118 rm -f conftest.$ac_objext
5119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5120 (eval $ac_compile) 2>conftest.er1
5121 ac_status=$?
5122 grep -v '^ *+' conftest.er1 >conftest.err
5123 rm -f conftest.er1
5124 cat conftest.err >&5
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); } &&
5127 { ac_try='test -z "$ac_c_werror_flag"
5128 || test ! -s conftest.err'
5129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5130 (eval $ac_try) 2>&5
5131 ac_status=$?
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); }; } &&
5134 { ac_try='test -s conftest.$ac_objext'
5135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5136 (eval $ac_try) 2>&5
5137 ac_status=$?
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); }; }; then
5140 break
5141 else
5142 echo "$as_me: failed program was:" >&5
5143 sed 's/^/| /' conftest.$ac_ext >&5
5144
5145 fi
5146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5147 done
5148 rm -f conftest*
5149 if test -n "$ac_declaration"; then
5150 echo '#ifdef __cplusplus' >>confdefs.h
5151 echo $ac_declaration >>confdefs.h
5152 echo '#endif' >>confdefs.h
5153 fi
5154
5155 else
5156 echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5158
5159 fi
5160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5161 ac_ext=c
5162 ac_cpp='$CPP $CPPFLAGS'
5163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5166
5167
5168 cat >>confdefs.h <<\_ACEOF
5169 #define _GNU_SOURCE 1
5170 _ACEOF
5171
5172
5173
5174 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi"
5175 if test -n "$ac_tool_prefix"; then
5176 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5177 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5178 echo "$as_me:$LINENO: checking for $ac_word" >&5
5179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5180 if test "${ac_cv_prog_RANLIB+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5182 else
5183 if test -n "$RANLIB"; then
5184 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5185 else
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH
5188 do
5189 IFS=$as_save_IFS
5190 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5193 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 break 2
5196 fi
5197 done
5198 done
5199
5200 fi
5201 fi
5202 RANLIB=$ac_cv_prog_RANLIB
5203 if test -n "$RANLIB"; then
5204 echo "$as_me:$LINENO: result: $RANLIB" >&5
5205 echo "${ECHO_T}$RANLIB" >&6
5206 else
5207 echo "$as_me:$LINENO: result: no" >&5
5208 echo "${ECHO_T}no" >&6
5209 fi
5210
5211 fi
5212 if test -z "$ac_cv_prog_RANLIB"; then
5213 ac_ct_RANLIB=$RANLIB
5214 # Extract the first word of "ranlib", so it can be a program name with args.
5215 set dummy ranlib; ac_word=$2
5216 echo "$as_me:$LINENO: checking for $ac_word" >&5
5217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5218 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 else
5221 if test -n "$ac_ct_RANLIB"; then
5222 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5223 else
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH
5226 do
5227 IFS=$as_save_IFS
5228 test -z "$as_dir" && as_dir=.
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5231 ac_cv_prog_ac_ct_RANLIB="ranlib"
5232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5233 break 2
5234 fi
5235 done
5236 done
5237
5238 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5239 fi
5240 fi
5241 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5242 if test -n "$ac_ct_RANLIB"; then
5243 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5244 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5245 else
5246 echo "$as_me:$LINENO: result: no" >&5
5247 echo "${ECHO_T}no" >&6
5248 fi
5249
5250 RANLIB=$ac_ct_RANLIB
5251 else
5252 RANLIB="$ac_cv_prog_RANLIB"
5253 fi
5254
5255 ac_ext=c
5256 ac_cpp='$CPP $CPPFLAGS'
5257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5260 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5261 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5262 # On Suns, sometimes $CPP names a directory.
5263 if test -n "$CPP" && test -d "$CPP"; then
5264 CPP=
5265 fi
5266 if test -z "$CPP"; then
5267 if test "${ac_cv_prog_CPP+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5269 else
5270 # Double quotes because CPP needs to be expanded
5271 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5272 do
5273 ac_preproc_ok=false
5274 for ac_c_preproc_warn_flag in '' yes
5275 do
5276 # Use a header file that comes with gcc, so configuring glibc
5277 # with a fresh cross-compiler works.
5278 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5279 # <limits.h> exists even on freestanding compilers.
5280 # On the NeXT, cc -E runs the code through the compiler's parser,
5281 # not just through cpp. "Syntax error" is here to catch this case.
5282 cat >conftest.$ac_ext <<_ACEOF
5283 /* confdefs.h. */
5284 _ACEOF
5285 cat confdefs.h >>conftest.$ac_ext
5286 cat >>conftest.$ac_ext <<_ACEOF
5287 /* end confdefs.h. */
5288 #ifdef __STDC__
5289 # include <limits.h>
5290 #else
5291 # include <assert.h>
5292 #endif
5293 Syntax error
5294 _ACEOF
5295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5297 ac_status=$?
5298 grep -v '^ *+' conftest.er1 >conftest.err
5299 rm -f conftest.er1
5300 cat conftest.err >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); } >/dev/null; then
5303 if test -s conftest.err; then
5304 ac_cpp_err=$ac_c_preproc_warn_flag
5305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5306 else
5307 ac_cpp_err=
5308 fi
5309 else
5310 ac_cpp_err=yes
5311 fi
5312 if test -z "$ac_cpp_err"; then
5313 :
5314 else
5315 echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5317
5318 # Broken: fails on valid input.
5319 continue
5320 fi
5321 rm -f conftest.err conftest.$ac_ext
5322
5323 # OK, works on sane cases. Now check whether non-existent headers
5324 # can be detected and how.
5325 cat >conftest.$ac_ext <<_ACEOF
5326 /* confdefs.h. */
5327 _ACEOF
5328 cat confdefs.h >>conftest.$ac_ext
5329 cat >>conftest.$ac_ext <<_ACEOF
5330 /* end confdefs.h. */
5331 #include <ac_nonexistent.h>
5332 _ACEOF
5333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5335 ac_status=$?
5336 grep -v '^ *+' conftest.er1 >conftest.err
5337 rm -f conftest.er1
5338 cat conftest.err >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } >/dev/null; then
5341 if test -s conftest.err; then
5342 ac_cpp_err=$ac_c_preproc_warn_flag
5343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5344 else
5345 ac_cpp_err=
5346 fi
5347 else
5348 ac_cpp_err=yes
5349 fi
5350 if test -z "$ac_cpp_err"; then
5351 # Broken: success on invalid input.
5352 continue
5353 else
5354 echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5356
5357 # Passes both tests.
5358 ac_preproc_ok=:
5359 break
5360 fi
5361 rm -f conftest.err conftest.$ac_ext
5362
5363 done
5364 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5365 rm -f conftest.err conftest.$ac_ext
5366 if $ac_preproc_ok; then
5367 break
5368 fi
5369
5370 done
5371 ac_cv_prog_CPP=$CPP
5372
5373 fi
5374 CPP=$ac_cv_prog_CPP
5375 else
5376 ac_cv_prog_CPP=$CPP
5377 fi
5378 echo "$as_me:$LINENO: result: $CPP" >&5
5379 echo "${ECHO_T}$CPP" >&6
5380 ac_preproc_ok=false
5381 for ac_c_preproc_warn_flag in '' yes
5382 do
5383 # Use a header file that comes with gcc, so configuring glibc
5384 # with a fresh cross-compiler works.
5385 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5386 # <limits.h> exists even on freestanding compilers.
5387 # On the NeXT, cc -E runs the code through the compiler's parser,
5388 # not just through cpp. "Syntax error" is here to catch this case.
5389 cat >conftest.$ac_ext <<_ACEOF
5390 /* confdefs.h. */
5391 _ACEOF
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h. */
5395 #ifdef __STDC__
5396 # include <limits.h>
5397 #else
5398 # include <assert.h>
5399 #endif
5400 Syntax error
5401 _ACEOF
5402 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5403 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5404 ac_status=$?
5405 grep -v '^ *+' conftest.er1 >conftest.err
5406 rm -f conftest.er1
5407 cat conftest.err >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); } >/dev/null; then
5410 if test -s conftest.err; then
5411 ac_cpp_err=$ac_c_preproc_warn_flag
5412 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5413 else
5414 ac_cpp_err=
5415 fi
5416 else
5417 ac_cpp_err=yes
5418 fi
5419 if test -z "$ac_cpp_err"; then
5420 :
5421 else
5422 echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5424
5425 # Broken: fails on valid input.
5426 continue
5427 fi
5428 rm -f conftest.err conftest.$ac_ext
5429
5430 # OK, works on sane cases. Now check whether non-existent headers
5431 # can be detected and how.
5432 cat >conftest.$ac_ext <<_ACEOF
5433 /* confdefs.h. */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 #include <ac_nonexistent.h>
5439 _ACEOF
5440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5442 ac_status=$?
5443 grep -v '^ *+' conftest.er1 >conftest.err
5444 rm -f conftest.er1
5445 cat conftest.err >&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } >/dev/null; then
5448 if test -s conftest.err; then
5449 ac_cpp_err=$ac_c_preproc_warn_flag
5450 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5451 else
5452 ac_cpp_err=
5453 fi
5454 else
5455 ac_cpp_err=yes
5456 fi
5457 if test -z "$ac_cpp_err"; then
5458 # Broken: success on invalid input.
5459 continue
5460 else
5461 echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5463
5464 # Passes both tests.
5465 ac_preproc_ok=:
5466 break
5467 fi
5468 rm -f conftest.err conftest.$ac_ext
5469
5470 done
5471 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5472 rm -f conftest.err conftest.$ac_ext
5473 if $ac_preproc_ok; then
5474 :
5475 else
5476 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5477 See \`config.log' for more details." >&5
5478 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5479 See \`config.log' for more details." >&2;}
5480 { (exit 1); exit 1; }; }
5481 fi
5482
5483 ac_ext=c
5484 ac_cpp='$CPP $CPPFLAGS'
5485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5488
5489
5490 echo "$as_me:$LINENO: checking for egrep" >&5
5491 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5492 if test "${ac_cv_prog_egrep+set}" = set; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5494 else
5495 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5496 then ac_cv_prog_egrep='grep -E'
5497 else ac_cv_prog_egrep='egrep'
5498 fi
5499 fi
5500 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5501 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5502 EGREP=$ac_cv_prog_egrep
5503
5504
5505 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5506 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5507 if test "${ac_cv_header_stdc+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 else
5510 cat >conftest.$ac_ext <<_ACEOF
5511 /* confdefs.h. */
5512 _ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5516 #include <stdlib.h>
5517 #include <stdarg.h>
5518 #include <string.h>
5519 #include <float.h>
5520
5521 int
5522 main ()
5523 {
5524
5525 ;
5526 return 0;
5527 }
5528 _ACEOF
5529 rm -f conftest.$ac_objext
5530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5531 (eval $ac_compile) 2>conftest.er1
5532 ac_status=$?
5533 grep -v '^ *+' conftest.er1 >conftest.err
5534 rm -f conftest.er1
5535 cat conftest.err >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); } &&
5538 { ac_try='test -z "$ac_c_werror_flag"
5539 || test ! -s conftest.err'
5540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 (eval $ac_try) 2>&5
5542 ac_status=$?
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; } &&
5545 { ac_try='test -s conftest.$ac_objext'
5546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547 (eval $ac_try) 2>&5
5548 ac_status=$?
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }; }; then
5551 ac_cv_header_stdc=yes
5552 else
5553 echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.$ac_ext >&5
5555
5556 ac_cv_header_stdc=no
5557 fi
5558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5559
5560 if test $ac_cv_header_stdc = yes; then
5561 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5562 cat >conftest.$ac_ext <<_ACEOF
5563 /* confdefs.h. */
5564 _ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h. */
5568 #include <string.h>
5569
5570 _ACEOF
5571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5572 $EGREP "memchr" >/dev/null 2>&1; then
5573 :
5574 else
5575 ac_cv_header_stdc=no
5576 fi
5577 rm -f conftest*
5578
5579 fi
5580
5581 if test $ac_cv_header_stdc = yes; then
5582 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5583 cat >conftest.$ac_ext <<_ACEOF
5584 /* confdefs.h. */
5585 _ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h. */
5589 #include <stdlib.h>
5590
5591 _ACEOF
5592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5593 $EGREP "free" >/dev/null 2>&1; then
5594 :
5595 else
5596 ac_cv_header_stdc=no
5597 fi
5598 rm -f conftest*
5599
5600 fi
5601
5602 if test $ac_cv_header_stdc = yes; then
5603 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5604 if test "$cross_compiling" = yes; then
5605 :
5606 else
5607 cat >conftest.$ac_ext <<_ACEOF
5608 /* confdefs.h. */
5609 _ACEOF
5610 cat confdefs.h >>conftest.$ac_ext
5611 cat >>conftest.$ac_ext <<_ACEOF
5612 /* end confdefs.h. */
5613 #include <ctype.h>
5614 #if ((' ' & 0x0FF) == 0x020)
5615 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5616 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5617 #else
5618 # define ISLOWER(c) \
5619 (('a' <= (c) && (c) <= 'i') \
5620 || ('j' <= (c) && (c) <= 'r') \
5621 || ('s' <= (c) && (c) <= 'z'))
5622 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5623 #endif
5624
5625 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5626 int
5627 main ()
5628 {
5629 int i;
5630 for (i = 0; i < 256; i++)
5631 if (XOR (islower (i), ISLOWER (i))
5632 || toupper (i) != TOUPPER (i))
5633 exit(2);
5634 exit (0);
5635 }
5636 _ACEOF
5637 rm -f conftest$ac_exeext
5638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5639 (eval $ac_link) 2>&5
5640 ac_status=$?
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644 (eval $ac_try) 2>&5
5645 ac_status=$?
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); }; }; then
5648 :
5649 else
5650 echo "$as_me: program exited with status $ac_status" >&5
5651 echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5653
5654 ( exit $ac_status )
5655 ac_cv_header_stdc=no
5656 fi
5657 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5658 fi
5659 fi
5660 fi
5661 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5662 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5663 if test $ac_cv_header_stdc = yes; then
5664
5665 cat >>confdefs.h <<\_ACEOF
5666 #define STDC_HEADERS 1
5667 _ACEOF
5668
5669 fi
5670
5671 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5672 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5673 if test "${ac_cv_c_const+set}" = set; then
5674 echo $ECHO_N "(cached) $ECHO_C" >&6
5675 else
5676 cat >conftest.$ac_ext <<_ACEOF
5677 /* confdefs.h. */
5678 _ACEOF
5679 cat confdefs.h >>conftest.$ac_ext
5680 cat >>conftest.$ac_ext <<_ACEOF
5681 /* end confdefs.h. */
5682
5683 int
5684 main ()
5685 {
5686 /* FIXME: Include the comments suggested by Paul. */
5687 #ifndef __cplusplus
5688 /* Ultrix mips cc rejects this. */
5689 typedef int charset[2];
5690 const charset x;
5691 /* SunOS 4.1.1 cc rejects this. */
5692 char const *const *ccp;
5693 char **p;
5694 /* NEC SVR4.0.2 mips cc rejects this. */
5695 struct point {int x, y;};
5696 static struct point const zero = {0,0};
5697 /* AIX XL C 1.02.0.0 rejects this.
5698 It does not let you subtract one const X* pointer from another in
5699 an arm of an if-expression whose if-part is not a constant
5700 expression */
5701 const char *g = "string";
5702 ccp = &g + (g ? g-g : 0);
5703 /* HPUX 7.0 cc rejects these. */
5704 ++ccp;
5705 p = (char**) ccp;
5706 ccp = (char const *const *) p;
5707 { /* SCO 3.2v4 cc rejects this. */
5708 char *t;
5709 char const *s = 0 ? (char *) 0 : (char const *) 0;
5710
5711 *t++ = 0;
5712 }
5713 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5714 int x[] = {25, 17};
5715 const int *foo = &x[0];
5716 ++foo;
5717 }
5718 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5719 typedef const int *iptr;
5720 iptr p = 0;
5721 ++p;
5722 }
5723 { /* AIX XL C 1.02.0.0 rejects this saying
5724 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5725 struct s { int j; const int *ap[3]; };
5726 struct s *b; b->j = 5;
5727 }
5728 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5729 const int foo = 10;
5730 }
5731 #endif
5732
5733 ;
5734 return 0;
5735 }
5736 _ACEOF
5737 rm -f conftest.$ac_objext
5738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5739 (eval $ac_compile) 2>conftest.er1
5740 ac_status=$?
5741 grep -v '^ *+' conftest.er1 >conftest.err
5742 rm -f conftest.er1
5743 cat conftest.err >&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); } &&
5746 { ac_try='test -z "$ac_c_werror_flag"
5747 || test ! -s conftest.err'
5748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749 (eval $ac_try) 2>&5
5750 ac_status=$?
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; } &&
5753 { ac_try='test -s conftest.$ac_objext'
5754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755 (eval $ac_try) 2>&5
5756 ac_status=$?
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; }; then
5759 ac_cv_c_const=yes
5760 else
5761 echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5763
5764 ac_cv_c_const=no
5765 fi
5766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5767 fi
5768 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5769 echo "${ECHO_T}$ac_cv_c_const" >&6
5770 if test $ac_cv_c_const = no; then
5771
5772 cat >>confdefs.h <<\_ACEOF
5773 #define const
5774 _ACEOF
5775
5776 fi
5777
5778 echo "$as_me:$LINENO: checking for inline" >&5
5779 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5780 if test "${ac_cv_c_inline+set}" = set; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 else
5783 ac_cv_c_inline=no
5784 for ac_kw in inline __inline__ __inline; do
5785 cat >conftest.$ac_ext <<_ACEOF
5786 /* confdefs.h. */
5787 _ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5791 #ifndef __cplusplus
5792 typedef int foo_t;
5793 static $ac_kw foo_t static_foo () {return 0; }
5794 $ac_kw foo_t foo () {return 0; }
5795 #endif
5796
5797 _ACEOF
5798 rm -f conftest.$ac_objext
5799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5800 (eval $ac_compile) 2>conftest.er1
5801 ac_status=$?
5802 grep -v '^ *+' conftest.er1 >conftest.err
5803 rm -f conftest.er1
5804 cat conftest.err >&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); } &&
5807 { ac_try='test -z "$ac_c_werror_flag"
5808 || test ! -s conftest.err'
5809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810 (eval $ac_try) 2>&5
5811 ac_status=$?
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }; } &&
5814 { ac_try='test -s conftest.$ac_objext'
5815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816 (eval $ac_try) 2>&5
5817 ac_status=$?
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); }; }; then
5820 ac_cv_c_inline=$ac_kw; break
5821 else
5822 echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.$ac_ext >&5
5824
5825 fi
5826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5827 done
5828
5829 fi
5830 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5831 echo "${ECHO_T}$ac_cv_c_inline" >&6
5832
5833
5834 case $ac_cv_c_inline in
5835 inline | yes) ;;
5836 *)
5837 case $ac_cv_c_inline in
5838 no) ac_val=;;
5839 *) ac_val=$ac_cv_c_inline;;
5840 esac
5841 cat >>confdefs.h <<_ACEOF
5842 #ifndef __cplusplus
5843 #define inline $ac_val
5844 #endif
5845 _ACEOF
5846 ;;
5847 esac
5848
5849 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5860 inttypes.h stdint.h unistd.h
5861 do
5862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5863 echo "$as_me:$LINENO: checking for $ac_header" >&5
5864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5867 else
5868 cat >conftest.$ac_ext <<_ACEOF
5869 /* confdefs.h. */
5870 _ACEOF
5871 cat confdefs.h >>conftest.$ac_ext
5872 cat >>conftest.$ac_ext <<_ACEOF
5873 /* end confdefs.h. */
5874 $ac_includes_default
5875
5876 #include <$ac_header>
5877 _ACEOF
5878 rm -f conftest.$ac_objext
5879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5880 (eval $ac_compile) 2>conftest.er1
5881 ac_status=$?
5882 grep -v '^ *+' conftest.er1 >conftest.err
5883 rm -f conftest.er1
5884 cat conftest.err >&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); } &&
5887 { ac_try='test -z "$ac_c_werror_flag"
5888 || test ! -s conftest.err'
5889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5890 (eval $ac_try) 2>&5
5891 ac_status=$?
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; } &&
5894 { ac_try='test -s conftest.$ac_objext'
5895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5896 (eval $ac_try) 2>&5
5897 ac_status=$?
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }; }; then
5900 eval "$as_ac_Header=yes"
5901 else
5902 echo "$as_me: failed program was:" >&5
5903 sed 's/^/| /' conftest.$ac_ext >&5
5904
5905 eval "$as_ac_Header=no"
5906 fi
5907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5908 fi
5909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5912 cat >>confdefs.h <<_ACEOF
5913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5914 _ACEOF
5915
5916 fi
5917
5918 done
5919
5920
5921 echo "$as_me:$LINENO: checking for off_t" >&5
5922 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5923 if test "${ac_cv_type_off_t+set}" = set; then
5924 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 else
5926 cat >conftest.$ac_ext <<_ACEOF
5927 /* confdefs.h. */
5928 _ACEOF
5929 cat confdefs.h >>conftest.$ac_ext
5930 cat >>conftest.$ac_ext <<_ACEOF
5931 /* end confdefs.h. */
5932 $ac_includes_default
5933 int
5934 main ()
5935 {
5936 if ((off_t *) 0)
5937 return 0;
5938 if (sizeof (off_t))
5939 return 0;
5940 ;
5941 return 0;
5942 }
5943 _ACEOF
5944 rm -f conftest.$ac_objext
5945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5946 (eval $ac_compile) 2>conftest.er1
5947 ac_status=$?
5948 grep -v '^ *+' conftest.er1 >conftest.err
5949 rm -f conftest.er1
5950 cat conftest.err >&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } &&
5953 { ac_try='test -z "$ac_c_werror_flag"
5954 || test ! -s conftest.err'
5955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956 (eval $ac_try) 2>&5
5957 ac_status=$?
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); }; } &&
5960 { ac_try='test -s conftest.$ac_objext'
5961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5962 (eval $ac_try) 2>&5
5963 ac_status=$?
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; }; then
5966 ac_cv_type_off_t=yes
5967 else
5968 echo "$as_me: failed program was:" >&5
5969 sed 's/^/| /' conftest.$ac_ext >&5
5970
5971 ac_cv_type_off_t=no
5972 fi
5973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5974 fi
5975 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5976 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5977 if test $ac_cv_type_off_t = yes; then
5978 :
5979 else
5980
5981 cat >>confdefs.h <<_ACEOF
5982 #define off_t long
5983 _ACEOF
5984
5985 fi
5986
5987 echo "$as_me:$LINENO: checking for size_t" >&5
5988 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5989 if test "${ac_cv_type_size_t+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 else
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 $ac_includes_default
5999 int
6000 main ()
6001 {
6002 if ((size_t *) 0)
6003 return 0;
6004 if (sizeof (size_t))
6005 return 0;
6006 ;
6007 return 0;
6008 }
6009 _ACEOF
6010 rm -f conftest.$ac_objext
6011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6012 (eval $ac_compile) 2>conftest.er1
6013 ac_status=$?
6014 grep -v '^ *+' conftest.er1 >conftest.err
6015 rm -f conftest.er1
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } &&
6019 { ac_try='test -z "$ac_c_werror_flag"
6020 || test ! -s conftest.err'
6021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022 (eval $ac_try) 2>&5
6023 ac_status=$?
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); }; } &&
6026 { ac_try='test -s conftest.$ac_objext'
6027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6028 (eval $ac_try) 2>&5
6029 ac_status=$?
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; }; then
6032 ac_cv_type_size_t=yes
6033 else
6034 echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6036
6037 ac_cv_type_size_t=no
6038 fi
6039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6040 fi
6041 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6042 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6043 if test $ac_cv_type_size_t = yes; then
6044 :
6045 else
6046
6047 cat >>confdefs.h <<_ACEOF
6048 #define size_t unsigned
6049 _ACEOF
6050
6051 fi
6052
6053 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6054 # for constant arguments. Useless!
6055 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6056 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6057 if test "${ac_cv_working_alloca_h+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 else
6060 cat >conftest.$ac_ext <<_ACEOF
6061 /* confdefs.h. */
6062 _ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h. */
6066 #include <alloca.h>
6067 int
6068 main ()
6069 {
6070 char *p = (char *) alloca (2 * sizeof (int));
6071 ;
6072 return 0;
6073 }
6074 _ACEOF
6075 rm -f conftest.$ac_objext conftest$ac_exeext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6077 (eval $ac_link) 2>conftest.er1
6078 ac_status=$?
6079 grep -v '^ *+' conftest.er1 >conftest.err
6080 rm -f conftest.er1
6081 cat conftest.err >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } &&
6084 { ac_try='test -z "$ac_c_werror_flag"
6085 || test ! -s conftest.err'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087 (eval $ac_try) 2>&5
6088 ac_status=$?
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; } &&
6091 { ac_try='test -s conftest$ac_exeext'
6092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093 (eval $ac_try) 2>&5
6094 ac_status=$?
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; }; then
6097 ac_cv_working_alloca_h=yes
6098 else
6099 echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6101
6102 ac_cv_working_alloca_h=no
6103 fi
6104 rm -f conftest.err conftest.$ac_objext \
6105 conftest$ac_exeext conftest.$ac_ext
6106 fi
6107 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6108 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6109 if test $ac_cv_working_alloca_h = yes; then
6110
6111 cat >>confdefs.h <<\_ACEOF
6112 #define HAVE_ALLOCA_H 1
6113 _ACEOF
6114
6115 fi
6116
6117 echo "$as_me:$LINENO: checking for alloca" >&5
6118 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6119 if test "${ac_cv_func_alloca_works+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 else
6122 cat >conftest.$ac_ext <<_ACEOF
6123 /* confdefs.h. */
6124 _ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6128 #ifdef __GNUC__
6129 # define alloca __builtin_alloca
6130 #else
6131 # ifdef _MSC_VER
6132 # include <malloc.h>
6133 # define alloca _alloca
6134 # else
6135 # if HAVE_ALLOCA_H
6136 # include <alloca.h>
6137 # else
6138 # ifdef _AIX
6139 #pragma alloca
6140 # else
6141 # ifndef alloca /* predefined by HP cc +Olibcalls */
6142 char *alloca ();
6143 # endif
6144 # endif
6145 # endif
6146 # endif
6147 #endif
6148
6149 int
6150 main ()
6151 {
6152 char *p = (char *) alloca (1);
6153 ;
6154 return 0;
6155 }
6156 _ACEOF
6157 rm -f conftest.$ac_objext conftest$ac_exeext
6158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6159 (eval $ac_link) 2>conftest.er1
6160 ac_status=$?
6161 grep -v '^ *+' conftest.er1 >conftest.err
6162 rm -f conftest.er1
6163 cat conftest.err >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } &&
6166 { ac_try='test -z "$ac_c_werror_flag"
6167 || test ! -s conftest.err'
6168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169 (eval $ac_try) 2>&5
6170 ac_status=$?
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; } &&
6173 { ac_try='test -s conftest$ac_exeext'
6174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6175 (eval $ac_try) 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; }; then
6179 ac_cv_func_alloca_works=yes
6180 else
6181 echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6183
6184 ac_cv_func_alloca_works=no
6185 fi
6186 rm -f conftest.err conftest.$ac_objext \
6187 conftest$ac_exeext conftest.$ac_ext
6188 fi
6189 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6190 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6191
6192 if test $ac_cv_func_alloca_works = yes; then
6193
6194 cat >>confdefs.h <<\_ACEOF
6195 #define HAVE_ALLOCA 1
6196 _ACEOF
6197
6198 else
6199 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6200 # that cause trouble. Some versions do not even contain alloca or
6201 # contain a buggy version. If you still want to use their alloca,
6202 # use ar to extract alloca.o from them instead of compiling alloca.c.
6203
6204 ALLOCA=alloca.$ac_objext
6205
6206 cat >>confdefs.h <<\_ACEOF
6207 #define C_ALLOCA 1
6208 _ACEOF
6209
6210
6211 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6212 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6213 if test "${ac_cv_os_cray+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6215 else
6216 cat >conftest.$ac_ext <<_ACEOF
6217 /* confdefs.h. */
6218 _ACEOF
6219 cat confdefs.h >>conftest.$ac_ext
6220 cat >>conftest.$ac_ext <<_ACEOF
6221 /* end confdefs.h. */
6222 #if defined(CRAY) && ! defined(CRAY2)
6223 webecray
6224 #else
6225 wenotbecray
6226 #endif
6227
6228 _ACEOF
6229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6230 $EGREP "webecray" >/dev/null 2>&1; then
6231 ac_cv_os_cray=yes
6232 else
6233 ac_cv_os_cray=no
6234 fi
6235 rm -f conftest*
6236
6237 fi
6238 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6239 echo "${ECHO_T}$ac_cv_os_cray" >&6
6240 if test $ac_cv_os_cray = yes; then
6241 for ac_func in _getb67 GETB67 getb67; do
6242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6243 echo "$as_me:$LINENO: checking for $ac_func" >&5
6244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6245 if eval "test \"\${$as_ac_var+set}\" = set"; then
6246 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 else
6248 cat >conftest.$ac_ext <<_ACEOF
6249 /* confdefs.h. */
6250 _ACEOF
6251 cat confdefs.h >>conftest.$ac_ext
6252 cat >>conftest.$ac_ext <<_ACEOF
6253 /* end confdefs.h. */
6254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6256 #define $ac_func innocuous_$ac_func
6257
6258 /* System header to define __stub macros and hopefully few prototypes,
6259 which can conflict with char $ac_func (); below.
6260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6261 <limits.h> exists even on freestanding compilers. */
6262
6263 #ifdef __STDC__
6264 # include <limits.h>
6265 #else
6266 # include <assert.h>
6267 #endif
6268
6269 #undef $ac_func
6270
6271 /* Override any gcc2 internal prototype to avoid an error. */
6272 #ifdef __cplusplus
6273 extern "C"
6274 {
6275 #endif
6276 /* We use char because int might match the return type of a gcc2
6277 builtin and then its argument prototype would still apply. */
6278 char $ac_func ();
6279 /* The GNU C library defines this for functions which it implements
6280 to always fail with ENOSYS. Some functions are actually named
6281 something starting with __ and the normal name is an alias. */
6282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6283 choke me
6284 #else
6285 char (*f) () = $ac_func;
6286 #endif
6287 #ifdef __cplusplus
6288 }
6289 #endif
6290
6291 int
6292 main ()
6293 {
6294 return f != $ac_func;
6295 ;
6296 return 0;
6297 }
6298 _ACEOF
6299 rm -f conftest.$ac_objext conftest$ac_exeext
6300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6301 (eval $ac_link) 2>conftest.er1
6302 ac_status=$?
6303 grep -v '^ *+' conftest.er1 >conftest.err
6304 rm -f conftest.er1
6305 cat conftest.err >&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); } &&
6308 { ac_try='test -z "$ac_c_werror_flag"
6309 || test ! -s conftest.err'
6310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311 (eval $ac_try) 2>&5
6312 ac_status=$?
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; } &&
6315 { ac_try='test -s conftest$ac_exeext'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317 (eval $ac_try) 2>&5
6318 ac_status=$?
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; }; then
6321 eval "$as_ac_var=yes"
6322 else
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6325
6326 eval "$as_ac_var=no"
6327 fi
6328 rm -f conftest.err conftest.$ac_objext \
6329 conftest$ac_exeext conftest.$ac_ext
6330 fi
6331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6332 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6333 if test `eval echo '${'$as_ac_var'}'` = yes; then
6334
6335 cat >>confdefs.h <<_ACEOF
6336 #define CRAY_STACKSEG_END $ac_func
6337 _ACEOF
6338
6339 break
6340 fi
6341
6342 done
6343 fi
6344
6345 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6346 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6347 if test "${ac_cv_c_stack_direction+set}" = set; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6349 else
6350 if test "$cross_compiling" = yes; then
6351 ac_cv_c_stack_direction=0
6352 else
6353 cat >conftest.$ac_ext <<_ACEOF
6354 /* confdefs.h. */
6355 _ACEOF
6356 cat confdefs.h >>conftest.$ac_ext
6357 cat >>conftest.$ac_ext <<_ACEOF
6358 /* end confdefs.h. */
6359 int
6360 find_stack_direction ()
6361 {
6362 static char *addr = 0;
6363 auto char dummy;
6364 if (addr == 0)
6365 {
6366 addr = &dummy;
6367 return find_stack_direction ();
6368 }
6369 else
6370 return (&dummy > addr) ? 1 : -1;
6371 }
6372
6373 int
6374 main ()
6375 {
6376 exit (find_stack_direction () < 0);
6377 }
6378 _ACEOF
6379 rm -f conftest$ac_exeext
6380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6381 (eval $ac_link) 2>&5
6382 ac_status=$?
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386 (eval $ac_try) 2>&5
6387 ac_status=$?
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); }; }; then
6390 ac_cv_c_stack_direction=1
6391 else
6392 echo "$as_me: program exited with status $ac_status" >&5
6393 echo "$as_me: failed program was:" >&5
6394 sed 's/^/| /' conftest.$ac_ext >&5
6395
6396 ( exit $ac_status )
6397 ac_cv_c_stack_direction=-1
6398 fi
6399 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6400 fi
6401 fi
6402 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6403 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6404
6405 cat >>confdefs.h <<_ACEOF
6406 #define STACK_DIRECTION $ac_cv_c_stack_direction
6407 _ACEOF
6408
6409
6410 fi
6411
6412
6413
6414 for ac_header in stdlib.h unistd.h
6415 do
6416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6418 echo "$as_me:$LINENO: checking for $ac_header" >&5
6419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6422 fi
6423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6425 else
6426 # Is the header compilable?
6427 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6429 cat >conftest.$ac_ext <<_ACEOF
6430 /* confdefs.h. */
6431 _ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h. */
6435 $ac_includes_default
6436 #include <$ac_header>
6437 _ACEOF
6438 rm -f conftest.$ac_objext
6439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6440 (eval $ac_compile) 2>conftest.er1
6441 ac_status=$?
6442 grep -v '^ *+' conftest.er1 >conftest.err
6443 rm -f conftest.er1
6444 cat conftest.err >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } &&
6447 { ac_try='test -z "$ac_c_werror_flag"
6448 || test ! -s conftest.err'
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); }; } &&
6454 { ac_try='test -s conftest.$ac_objext'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456 (eval $ac_try) 2>&5
6457 ac_status=$?
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; }; then
6460 ac_header_compiler=yes
6461 else
6462 echo "$as_me: failed program was:" >&5
6463 sed 's/^/| /' conftest.$ac_ext >&5
6464
6465 ac_header_compiler=no
6466 fi
6467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6469 echo "${ECHO_T}$ac_header_compiler" >&6
6470
6471 # Is the header present?
6472 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6473 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6474 cat >conftest.$ac_ext <<_ACEOF
6475 /* confdefs.h. */
6476 _ACEOF
6477 cat confdefs.h >>conftest.$ac_ext
6478 cat >>conftest.$ac_ext <<_ACEOF
6479 /* end confdefs.h. */
6480 #include <$ac_header>
6481 _ACEOF
6482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6484 ac_status=$?
6485 grep -v '^ *+' conftest.er1 >conftest.err
6486 rm -f conftest.er1
6487 cat conftest.err >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } >/dev/null; then
6490 if test -s conftest.err; then
6491 ac_cpp_err=$ac_c_preproc_warn_flag
6492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6493 else
6494 ac_cpp_err=
6495 fi
6496 else
6497 ac_cpp_err=yes
6498 fi
6499 if test -z "$ac_cpp_err"; then
6500 ac_header_preproc=yes
6501 else
6502 echo "$as_me: failed program was:" >&5
6503 sed 's/^/| /' conftest.$ac_ext >&5
6504
6505 ac_header_preproc=no
6506 fi
6507 rm -f conftest.err conftest.$ac_ext
6508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6509 echo "${ECHO_T}$ac_header_preproc" >&6
6510
6511 # So? What about this header?
6512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6513 yes:no: )
6514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6518 ac_header_preproc=yes
6519 ;;
6520 no:yes:* )
6521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6524 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6528 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6533 (
6534 cat <<\_ASBOX
6535 ## ------------------------------------------ ##
6536 ## Report this to the AC_PACKAGE_NAME lists. ##
6537 ## ------------------------------------------ ##
6538 _ASBOX
6539 ) |
6540 sed "s/^/$as_me: WARNING: /" >&2
6541 ;;
6542 esac
6543 echo "$as_me:$LINENO: checking for $ac_header" >&5
6544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6546 echo $ECHO_N "(cached) $ECHO_C" >&6
6547 else
6548 eval "$as_ac_Header=\$ac_header_preproc"
6549 fi
6550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6552
6553 fi
6554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6555 cat >>confdefs.h <<_ACEOF
6556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6557 _ACEOF
6558
6559 fi
6560
6561 done
6562
6563
6564 for ac_func in getpagesize
6565 do
6566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6567 echo "$as_me:$LINENO: checking for $ac_func" >&5
6568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6569 if eval "test \"\${$as_ac_var+set}\" = set"; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 else
6572 cat >conftest.$ac_ext <<_ACEOF
6573 /* confdefs.h. */
6574 _ACEOF
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h. */
6578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6580 #define $ac_func innocuous_$ac_func
6581
6582 /* System header to define __stub macros and hopefully few prototypes,
6583 which can conflict with char $ac_func (); below.
6584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6585 <limits.h> exists even on freestanding compilers. */
6586
6587 #ifdef __STDC__
6588 # include <limits.h>
6589 #else
6590 # include <assert.h>
6591 #endif
6592
6593 #undef $ac_func
6594
6595 /* Override any gcc2 internal prototype to avoid an error. */
6596 #ifdef __cplusplus
6597 extern "C"
6598 {
6599 #endif
6600 /* We use char because int might match the return type of a gcc2
6601 builtin and then its argument prototype would still apply. */
6602 char $ac_func ();
6603 /* The GNU C library defines this for functions which it implements
6604 to always fail with ENOSYS. Some functions are actually named
6605 something starting with __ and the normal name is an alias. */
6606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6607 choke me
6608 #else
6609 char (*f) () = $ac_func;
6610 #endif
6611 #ifdef __cplusplus
6612 }
6613 #endif
6614
6615 int
6616 main ()
6617 {
6618 return f != $ac_func;
6619 ;
6620 return 0;
6621 }
6622 _ACEOF
6623 rm -f conftest.$ac_objext conftest$ac_exeext
6624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6625 (eval $ac_link) 2>conftest.er1
6626 ac_status=$?
6627 grep -v '^ *+' conftest.er1 >conftest.err
6628 rm -f conftest.er1
6629 cat conftest.err >&5
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); } &&
6632 { ac_try='test -z "$ac_c_werror_flag"
6633 || test ! -s conftest.err'
6634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6635 (eval $ac_try) 2>&5
6636 ac_status=$?
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); }; } &&
6639 { ac_try='test -s conftest$ac_exeext'
6640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6641 (eval $ac_try) 2>&5
6642 ac_status=$?
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); }; }; then
6645 eval "$as_ac_var=yes"
6646 else
6647 echo "$as_me: failed program was:" >&5
6648 sed 's/^/| /' conftest.$ac_ext >&5
6649
6650 eval "$as_ac_var=no"
6651 fi
6652 rm -f conftest.err conftest.$ac_objext \
6653 conftest$ac_exeext conftest.$ac_ext
6654 fi
6655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6656 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6657 if test `eval echo '${'$as_ac_var'}'` = yes; then
6658 cat >>confdefs.h <<_ACEOF
6659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6660 _ACEOF
6661
6662 fi
6663 done
6664
6665 echo "$as_me:$LINENO: checking for working mmap" >&5
6666 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6667 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6669 else
6670 if test "$cross_compiling" = yes; then
6671 ac_cv_func_mmap_fixed_mapped=no
6672 else
6673 cat >conftest.$ac_ext <<_ACEOF
6674 /* confdefs.h. */
6675 _ACEOF
6676 cat confdefs.h >>conftest.$ac_ext
6677 cat >>conftest.$ac_ext <<_ACEOF
6678 /* end confdefs.h. */
6679 $ac_includes_default
6680 /* malloc might have been renamed as rpl_malloc. */
6681 #undef malloc
6682
6683 /* Thanks to Mike Haertel and Jim Avera for this test.
6684 Here is a matrix of mmap possibilities:
6685 mmap private not fixed
6686 mmap private fixed at somewhere currently unmapped
6687 mmap private fixed at somewhere already mapped
6688 mmap shared not fixed
6689 mmap shared fixed at somewhere currently unmapped
6690 mmap shared fixed at somewhere already mapped
6691 For private mappings, we should verify that changes cannot be read()
6692 back from the file, nor mmap's back from the file at a different
6693 address. (There have been systems where private was not correctly
6694 implemented like the infamous i386 svr4.0, and systems where the
6695 VM page cache was not coherent with the file system buffer cache
6696 like early versions of FreeBSD and possibly contemporary NetBSD.)
6697 For shared mappings, we should conversely verify that changes get
6698 propagated back to all the places they're supposed to be.
6699
6700 Grep wants private fixed already mapped.
6701 The main things grep needs to know about mmap are:
6702 * does it exist and is it safe to write into the mmap'd area
6703 * how to use it (BSD variants) */
6704
6705 #include <fcntl.h>
6706 #include <sys/mman.h>
6707
6708 #if !STDC_HEADERS && !HAVE_STDLIB_H
6709 char *malloc ();
6710 #endif
6711
6712 /* This mess was copied from the GNU getpagesize.h. */
6713 #if !HAVE_GETPAGESIZE
6714 /* Assume that all systems that can run configure have sys/param.h. */
6715 # if !HAVE_SYS_PARAM_H
6716 # define HAVE_SYS_PARAM_H 1
6717 # endif
6718
6719 # ifdef _SC_PAGESIZE
6720 # define getpagesize() sysconf(_SC_PAGESIZE)
6721 # else /* no _SC_PAGESIZE */
6722 # if HAVE_SYS_PARAM_H
6723 # include <sys/param.h>
6724 # ifdef EXEC_PAGESIZE
6725 # define getpagesize() EXEC_PAGESIZE
6726 # else /* no EXEC_PAGESIZE */
6727 # ifdef NBPG
6728 # define getpagesize() NBPG * CLSIZE
6729 # ifndef CLSIZE
6730 # define CLSIZE 1
6731 # endif /* no CLSIZE */
6732 # else /* no NBPG */
6733 # ifdef NBPC
6734 # define getpagesize() NBPC
6735 # else /* no NBPC */
6736 # ifdef PAGESIZE
6737 # define getpagesize() PAGESIZE
6738 # endif /* PAGESIZE */
6739 # endif /* no NBPC */
6740 # endif /* no NBPG */
6741 # endif /* no EXEC_PAGESIZE */
6742 # else /* no HAVE_SYS_PARAM_H */
6743 # define getpagesize() 8192 /* punt totally */
6744 # endif /* no HAVE_SYS_PARAM_H */
6745 # endif /* no _SC_PAGESIZE */
6746
6747 #endif /* no HAVE_GETPAGESIZE */
6748
6749 int
6750 main ()
6751 {
6752 char *data, *data2, *data3;
6753 int i, pagesize;
6754 int fd;
6755
6756 pagesize = getpagesize ();
6757
6758 /* First, make a file with some known garbage in it. */
6759 data = (char *) malloc (pagesize);
6760 if (!data)
6761 exit (1);
6762 for (i = 0; i < pagesize; ++i)
6763 *(data + i) = rand ();
6764 umask (0);
6765 fd = creat ("conftest.mmap", 0600);
6766 if (fd < 0)
6767 exit (1);
6768 if (write (fd, data, pagesize) != pagesize)
6769 exit (1);
6770 close (fd);
6771
6772 /* Next, try to mmap the file at a fixed address which already has
6773 something else allocated at it. If we can, also make sure that
6774 we see the same garbage. */
6775 fd = open ("conftest.mmap", O_RDWR);
6776 if (fd < 0)
6777 exit (1);
6778 data2 = (char *) malloc (2 * pagesize);
6779 if (!data2)
6780 exit (1);
6781 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6782 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6783 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6784 exit (1);
6785 for (i = 0; i < pagesize; ++i)
6786 if (*(data + i) != *(data2 + i))
6787 exit (1);
6788
6789 /* Finally, make sure that changes to the mapped area do not
6790 percolate back to the file as seen by read(). (This is a bug on
6791 some variants of i386 svr4.0.) */
6792 for (i = 0; i < pagesize; ++i)
6793 *(data2 + i) = *(data2 + i) + 1;
6794 data3 = (char *) malloc (pagesize);
6795 if (!data3)
6796 exit (1);
6797 if (read (fd, data3, pagesize) != pagesize)
6798 exit (1);
6799 for (i = 0; i < pagesize; ++i)
6800 if (*(data + i) != *(data3 + i))
6801 exit (1);
6802 close (fd);
6803 exit (0);
6804 }
6805 _ACEOF
6806 rm -f conftest$ac_exeext
6807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6808 (eval $ac_link) 2>&5
6809 ac_status=$?
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813 (eval $ac_try) 2>&5
6814 ac_status=$?
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); }; }; then
6817 ac_cv_func_mmap_fixed_mapped=yes
6818 else
6819 echo "$as_me: program exited with status $ac_status" >&5
6820 echo "$as_me: failed program was:" >&5
6821 sed 's/^/| /' conftest.$ac_ext >&5
6822
6823 ( exit $ac_status )
6824 ac_cv_func_mmap_fixed_mapped=no
6825 fi
6826 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6827 fi
6828 fi
6829 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6830 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6831 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6832
6833 cat >>confdefs.h <<\_ACEOF
6834 #define HAVE_MMAP 1
6835 _ACEOF
6836
6837 fi
6838 rm -f conftest.mmap
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6851 unistd.h values.h sys/param.h
6852 do
6853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6855 echo "$as_me:$LINENO: checking for $ac_header" >&5
6856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 fi
6860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6862 else
6863 # Is the header compilable?
6864 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6866 cat >conftest.$ac_ext <<_ACEOF
6867 /* confdefs.h. */
6868 _ACEOF
6869 cat confdefs.h >>conftest.$ac_ext
6870 cat >>conftest.$ac_ext <<_ACEOF
6871 /* end confdefs.h. */
6872 $ac_includes_default
6873 #include <$ac_header>
6874 _ACEOF
6875 rm -f conftest.$ac_objext
6876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6877 (eval $ac_compile) 2>conftest.er1
6878 ac_status=$?
6879 grep -v '^ *+' conftest.er1 >conftest.err
6880 rm -f conftest.er1
6881 cat conftest.err >&5
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); } &&
6884 { ac_try='test -z "$ac_c_werror_flag"
6885 || test ! -s conftest.err'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887 (eval $ac_try) 2>&5
6888 ac_status=$?
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; } &&
6891 { ac_try='test -s conftest.$ac_objext'
6892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893 (eval $ac_try) 2>&5
6894 ac_status=$?
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }; }; then
6897 ac_header_compiler=yes
6898 else
6899 echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6901
6902 ac_header_compiler=no
6903 fi
6904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6906 echo "${ECHO_T}$ac_header_compiler" >&6
6907
6908 # Is the header present?
6909 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6911 cat >conftest.$ac_ext <<_ACEOF
6912 /* confdefs.h. */
6913 _ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6917 #include <$ac_header>
6918 _ACEOF
6919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6921 ac_status=$?
6922 grep -v '^ *+' conftest.er1 >conftest.err
6923 rm -f conftest.er1
6924 cat conftest.err >&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); } >/dev/null; then
6927 if test -s conftest.err; then
6928 ac_cpp_err=$ac_c_preproc_warn_flag
6929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6930 else
6931 ac_cpp_err=
6932 fi
6933 else
6934 ac_cpp_err=yes
6935 fi
6936 if test -z "$ac_cpp_err"; then
6937 ac_header_preproc=yes
6938 else
6939 echo "$as_me: failed program was:" >&5
6940 sed 's/^/| /' conftest.$ac_ext >&5
6941
6942 ac_header_preproc=no
6943 fi
6944 rm -f conftest.err conftest.$ac_ext
6945 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6946 echo "${ECHO_T}$ac_header_preproc" >&6
6947
6948 # So? What about this header?
6949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6950 yes:no: )
6951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6955 ac_header_preproc=yes
6956 ;;
6957 no:yes:* )
6958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6965 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6970 (
6971 cat <<\_ASBOX
6972 ## ------------------------------------------ ##
6973 ## Report this to the AC_PACKAGE_NAME lists. ##
6974 ## ------------------------------------------ ##
6975 _ASBOX
6976 ) |
6977 sed "s/^/$as_me: WARNING: /" >&2
6978 ;;
6979 esac
6980 echo "$as_me:$LINENO: checking for $ac_header" >&5
6981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985 eval "$as_ac_Header=\$ac_header_preproc"
6986 fi
6987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6989
6990 fi
6991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6992 cat >>confdefs.h <<_ACEOF
6993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6994 _ACEOF
6995
6996 fi
6997
6998 done
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7011 __argz_count __argz_stringify __argz_next
7012 do
7013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7014 echo "$as_me:$LINENO: checking for $ac_func" >&5
7015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7016 if eval "test \"\${$as_ac_var+set}\" = set"; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7018 else
7019 cat >conftest.$ac_ext <<_ACEOF
7020 /* confdefs.h. */
7021 _ACEOF
7022 cat confdefs.h >>conftest.$ac_ext
7023 cat >>conftest.$ac_ext <<_ACEOF
7024 /* end confdefs.h. */
7025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7027 #define $ac_func innocuous_$ac_func
7028
7029 /* System header to define __stub macros and hopefully few prototypes,
7030 which can conflict with char $ac_func (); below.
7031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7032 <limits.h> exists even on freestanding compilers. */
7033
7034 #ifdef __STDC__
7035 # include <limits.h>
7036 #else
7037 # include <assert.h>
7038 #endif
7039
7040 #undef $ac_func
7041
7042 /* Override any gcc2 internal prototype to avoid an error. */
7043 #ifdef __cplusplus
7044 extern "C"
7045 {
7046 #endif
7047 /* We use char because int might match the return type of a gcc2
7048 builtin and then its argument prototype would still apply. */
7049 char $ac_func ();
7050 /* The GNU C library defines this for functions which it implements
7051 to always fail with ENOSYS. Some functions are actually named
7052 something starting with __ and the normal name is an alias. */
7053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7054 choke me
7055 #else
7056 char (*f) () = $ac_func;
7057 #endif
7058 #ifdef __cplusplus
7059 }
7060 #endif
7061
7062 int
7063 main ()
7064 {
7065 return f != $ac_func;
7066 ;
7067 return 0;
7068 }
7069 _ACEOF
7070 rm -f conftest.$ac_objext conftest$ac_exeext
7071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7072 (eval $ac_link) 2>conftest.er1
7073 ac_status=$?
7074 grep -v '^ *+' conftest.er1 >conftest.err
7075 rm -f conftest.er1
7076 cat conftest.err >&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); } &&
7079 { ac_try='test -z "$ac_c_werror_flag"
7080 || test ! -s conftest.err'
7081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082 (eval $ac_try) 2>&5
7083 ac_status=$?
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); }; } &&
7086 { ac_try='test -s conftest$ac_exeext'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088 (eval $ac_try) 2>&5
7089 ac_status=$?
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; }; then
7092 eval "$as_ac_var=yes"
7093 else
7094 echo "$as_me: failed program was:" >&5
7095 sed 's/^/| /' conftest.$ac_ext >&5
7096
7097 eval "$as_ac_var=no"
7098 fi
7099 rm -f conftest.err conftest.$ac_objext \
7100 conftest$ac_exeext conftest.$ac_ext
7101 fi
7102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7103 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7104 if test `eval echo '${'$as_ac_var'}'` = yes; then
7105 cat >>confdefs.h <<_ACEOF
7106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7107 _ACEOF
7108
7109 fi
7110 done
7111
7112
7113 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7114
7115 for ac_func in stpcpy
7116 do
7117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7118 echo "$as_me:$LINENO: checking for $ac_func" >&5
7119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7120 if eval "test \"\${$as_ac_var+set}\" = set"; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 else
7123 cat >conftest.$ac_ext <<_ACEOF
7124 /* confdefs.h. */
7125 _ACEOF
7126 cat confdefs.h >>conftest.$ac_ext
7127 cat >>conftest.$ac_ext <<_ACEOF
7128 /* end confdefs.h. */
7129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7131 #define $ac_func innocuous_$ac_func
7132
7133 /* System header to define __stub macros and hopefully few prototypes,
7134 which can conflict with char $ac_func (); below.
7135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7136 <limits.h> exists even on freestanding compilers. */
7137
7138 #ifdef __STDC__
7139 # include <limits.h>
7140 #else
7141 # include <assert.h>
7142 #endif
7143
7144 #undef $ac_func
7145
7146 /* Override any gcc2 internal prototype to avoid an error. */
7147 #ifdef __cplusplus
7148 extern "C"
7149 {
7150 #endif
7151 /* We use char because int might match the return type of a gcc2
7152 builtin and then its argument prototype would still apply. */
7153 char $ac_func ();
7154 /* The GNU C library defines this for functions which it implements
7155 to always fail with ENOSYS. Some functions are actually named
7156 something starting with __ and the normal name is an alias. */
7157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7158 choke me
7159 #else
7160 char (*f) () = $ac_func;
7161 #endif
7162 #ifdef __cplusplus
7163 }
7164 #endif
7165
7166 int
7167 main ()
7168 {
7169 return f != $ac_func;
7170 ;
7171 return 0;
7172 }
7173 _ACEOF
7174 rm -f conftest.$ac_objext conftest$ac_exeext
7175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7176 (eval $ac_link) 2>conftest.er1
7177 ac_status=$?
7178 grep -v '^ *+' conftest.er1 >conftest.err
7179 rm -f conftest.er1
7180 cat conftest.err >&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); } &&
7183 { ac_try='test -z "$ac_c_werror_flag"
7184 || test ! -s conftest.err'
7185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186 (eval $ac_try) 2>&5
7187 ac_status=$?
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); }; } &&
7190 { ac_try='test -s conftest$ac_exeext'
7191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192 (eval $ac_try) 2>&5
7193 ac_status=$?
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); }; }; then
7196 eval "$as_ac_var=yes"
7197 else
7198 echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7200
7201 eval "$as_ac_var=no"
7202 fi
7203 rm -f conftest.err conftest.$ac_objext \
7204 conftest$ac_exeext conftest.$ac_ext
7205 fi
7206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7208 if test `eval echo '${'$as_ac_var'}'` = yes; then
7209 cat >>confdefs.h <<_ACEOF
7210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7211 _ACEOF
7212
7213 fi
7214 done
7215
7216 fi
7217 if test "${ac_cv_func_stpcpy}" = "yes"; then
7218
7219 cat >>confdefs.h <<\_ACEOF
7220 #define HAVE_STPCPY 1
7221 _ACEOF
7222
7223 fi
7224
7225 if test $ac_cv_header_locale_h = yes; then
7226 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7227 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7228 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7230 else
7231 cat >conftest.$ac_ext <<_ACEOF
7232 /* confdefs.h. */
7233 _ACEOF
7234 cat confdefs.h >>conftest.$ac_ext
7235 cat >>conftest.$ac_ext <<_ACEOF
7236 /* end confdefs.h. */
7237 #include <locale.h>
7238 int
7239 main ()
7240 {
7241 return LC_MESSAGES
7242 ;
7243 return 0;
7244 }
7245 _ACEOF
7246 rm -f conftest.$ac_objext conftest$ac_exeext
7247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7248 (eval $ac_link) 2>conftest.er1
7249 ac_status=$?
7250 grep -v '^ *+' conftest.er1 >conftest.err
7251 rm -f conftest.er1
7252 cat conftest.err >&5
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); } &&
7255 { ac_try='test -z "$ac_c_werror_flag"
7256 || test ! -s conftest.err'
7257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7258 (eval $ac_try) 2>&5
7259 ac_status=$?
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); }; } &&
7262 { ac_try='test -s conftest$ac_exeext'
7263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264 (eval $ac_try) 2>&5
7265 ac_status=$?
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); }; }; then
7268 am_cv_val_LC_MESSAGES=yes
7269 else
7270 echo "$as_me: failed program was:" >&5
7271 sed 's/^/| /' conftest.$ac_ext >&5
7272
7273 am_cv_val_LC_MESSAGES=no
7274 fi
7275 rm -f conftest.err conftest.$ac_objext \
7276 conftest$ac_exeext conftest.$ac_ext
7277 fi
7278 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7279 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7280 if test $am_cv_val_LC_MESSAGES = yes; then
7281
7282 cat >>confdefs.h <<\_ACEOF
7283 #define HAVE_LC_MESSAGES 1
7284 _ACEOF
7285
7286 fi
7287 fi
7288 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7289 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7290 # Check whether --enable-nls or --disable-nls was given.
7291 if test "${enable_nls+set}" = set; then
7292 enableval="$enable_nls"
7293 USE_NLS=$enableval
7294 else
7295 USE_NLS=yes
7296 fi;
7297 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7298 echo "${ECHO_T}$USE_NLS" >&6
7299
7300
7301 USE_INCLUDED_LIBINTL=no
7302
7303 if test "$USE_NLS" = "yes"; then
7304 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7305 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7306
7307 # Check whether --with-included-gettext or --without-included-gettext was given.
7308 if test "${with_included_gettext+set}" = set; then
7309 withval="$with_included_gettext"
7310 nls_cv_force_use_gnu_gettext=$withval
7311 else
7312 nls_cv_force_use_gnu_gettext=no
7313 fi;
7314 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7315 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7316
7317 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7318 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7319 nls_cv_header_intl=
7320 nls_cv_header_libgt=
7321 CATOBJEXT=
7322
7323 if test "${ac_cv_header_libintl_h+set}" = set; then
7324 echo "$as_me:$LINENO: checking for libintl.h" >&5
7325 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7326 if test "${ac_cv_header_libintl_h+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7328 fi
7329 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7330 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7331 else
7332 # Is the header compilable?
7333 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7334 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7335 cat >conftest.$ac_ext <<_ACEOF
7336 /* confdefs.h. */
7337 _ACEOF
7338 cat confdefs.h >>conftest.$ac_ext
7339 cat >>conftest.$ac_ext <<_ACEOF
7340 /* end confdefs.h. */
7341 $ac_includes_default
7342 #include <libintl.h>
7343 _ACEOF
7344 rm -f conftest.$ac_objext
7345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7346 (eval $ac_compile) 2>conftest.er1
7347 ac_status=$?
7348 grep -v '^ *+' conftest.er1 >conftest.err
7349 rm -f conftest.er1
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } &&
7353 { ac_try='test -z "$ac_c_werror_flag"
7354 || test ! -s conftest.err'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356 (eval $ac_try) 2>&5
7357 ac_status=$?
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; } &&
7360 { ac_try='test -s conftest.$ac_objext'
7361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7362 (eval $ac_try) 2>&5
7363 ac_status=$?
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); }; }; then
7366 ac_header_compiler=yes
7367 else
7368 echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7370
7371 ac_header_compiler=no
7372 fi
7373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7374 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7375 echo "${ECHO_T}$ac_header_compiler" >&6
7376
7377 # Is the header present?
7378 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7379 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7380 cat >conftest.$ac_ext <<_ACEOF
7381 /* confdefs.h. */
7382 _ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7386 #include <libintl.h>
7387 _ACEOF
7388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7390 ac_status=$?
7391 grep -v '^ *+' conftest.er1 >conftest.err
7392 rm -f conftest.er1
7393 cat conftest.err >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); } >/dev/null; then
7396 if test -s conftest.err; then
7397 ac_cpp_err=$ac_c_preproc_warn_flag
7398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7399 else
7400 ac_cpp_err=
7401 fi
7402 else
7403 ac_cpp_err=yes
7404 fi
7405 if test -z "$ac_cpp_err"; then
7406 ac_header_preproc=yes
7407 else
7408 echo "$as_me: failed program was:" >&5
7409 sed 's/^/| /' conftest.$ac_ext >&5
7410
7411 ac_header_preproc=no
7412 fi
7413 rm -f conftest.err conftest.$ac_ext
7414 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7415 echo "${ECHO_T}$ac_header_preproc" >&6
7416
7417 # So? What about this header?
7418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7419 yes:no: )
7420 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7421 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7422 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7423 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7424 ac_header_preproc=yes
7425 ;;
7426 no:yes:* )
7427 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7428 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7429 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7430 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7431 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7432 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7433 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7434 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7435 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7436 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7437 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7438 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7439 (
7440 cat <<\_ASBOX
7441 ## ------------------------------------------ ##
7442 ## Report this to the AC_PACKAGE_NAME lists. ##
7443 ## ------------------------------------------ ##
7444 _ASBOX
7445 ) |
7446 sed "s/^/$as_me: WARNING: /" >&2
7447 ;;
7448 esac
7449 echo "$as_me:$LINENO: checking for libintl.h" >&5
7450 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7451 if test "${ac_cv_header_libintl_h+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 else
7454 ac_cv_header_libintl_h=$ac_header_preproc
7455 fi
7456 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7457 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7458
7459 fi
7460 if test $ac_cv_header_libintl_h = yes; then
7461 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7462 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7463 if test "${gt_cv_func_gettext_libc+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7465 else
7466 cat >conftest.$ac_ext <<_ACEOF
7467 /* confdefs.h. */
7468 _ACEOF
7469 cat confdefs.h >>conftest.$ac_ext
7470 cat >>conftest.$ac_ext <<_ACEOF
7471 /* end confdefs.h. */
7472 #include <libintl.h>
7473 int
7474 main ()
7475 {
7476 return (int) gettext ("")
7477 ;
7478 return 0;
7479 }
7480 _ACEOF
7481 rm -f conftest.$ac_objext conftest$ac_exeext
7482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7483 (eval $ac_link) 2>conftest.er1
7484 ac_status=$?
7485 grep -v '^ *+' conftest.er1 >conftest.err
7486 rm -f conftest.er1
7487 cat conftest.err >&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); } &&
7490 { ac_try='test -z "$ac_c_werror_flag"
7491 || test ! -s conftest.err'
7492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7493 (eval $ac_try) 2>&5
7494 ac_status=$?
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); }; } &&
7497 { ac_try='test -s conftest$ac_exeext'
7498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7499 (eval $ac_try) 2>&5
7500 ac_status=$?
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); }; }; then
7503 gt_cv_func_gettext_libc=yes
7504 else
7505 echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.$ac_ext >&5
7507
7508 gt_cv_func_gettext_libc=no
7509 fi
7510 rm -f conftest.err conftest.$ac_objext \
7511 conftest$ac_exeext conftest.$ac_ext
7512 fi
7513 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7514 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7515
7516 if test "$gt_cv_func_gettext_libc" != "yes"; then
7517 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7518 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7519 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 else
7522 ac_check_lib_save_LIBS=$LIBS
7523 LIBS="-lintl $LIBS"
7524 cat >conftest.$ac_ext <<_ACEOF
7525 /* confdefs.h. */
7526 _ACEOF
7527 cat confdefs.h >>conftest.$ac_ext
7528 cat >>conftest.$ac_ext <<_ACEOF
7529 /* end confdefs.h. */
7530
7531 /* Override any gcc2 internal prototype to avoid an error. */
7532 #ifdef __cplusplus
7533 extern "C"
7534 #endif
7535 /* We use char because int might match the return type of a gcc2
7536 builtin and then its argument prototype would still apply. */
7537 char bindtextdomain ();
7538 int
7539 main ()
7540 {
7541 bindtextdomain ();
7542 ;
7543 return 0;
7544 }
7545 _ACEOF
7546 rm -f conftest.$ac_objext conftest$ac_exeext
7547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7548 (eval $ac_link) 2>conftest.er1
7549 ac_status=$?
7550 grep -v '^ *+' conftest.er1 >conftest.err
7551 rm -f conftest.er1
7552 cat conftest.err >&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } &&
7555 { ac_try='test -z "$ac_c_werror_flag"
7556 || test ! -s conftest.err'
7557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558 (eval $ac_try) 2>&5
7559 ac_status=$?
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); }; } &&
7562 { ac_try='test -s conftest$ac_exeext'
7563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7564 (eval $ac_try) 2>&5
7565 ac_status=$?
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); }; }; then
7568 ac_cv_lib_intl_bindtextdomain=yes
7569 else
7570 echo "$as_me: failed program was:" >&5
7571 sed 's/^/| /' conftest.$ac_ext >&5
7572
7573 ac_cv_lib_intl_bindtextdomain=no
7574 fi
7575 rm -f conftest.err conftest.$ac_objext \
7576 conftest$ac_exeext conftest.$ac_ext
7577 LIBS=$ac_check_lib_save_LIBS
7578 fi
7579 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7580 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7581 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7582 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7583 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7584 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 else
7587 cat >conftest.$ac_ext <<_ACEOF
7588 /* confdefs.h. */
7589 _ACEOF
7590 cat confdefs.h >>conftest.$ac_ext
7591 cat >>conftest.$ac_ext <<_ACEOF
7592 /* end confdefs.h. */
7593
7594 int
7595 main ()
7596 {
7597 return (int) gettext ("")
7598 ;
7599 return 0;
7600 }
7601 _ACEOF
7602 rm -f conftest.$ac_objext conftest$ac_exeext
7603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7604 (eval $ac_link) 2>conftest.er1
7605 ac_status=$?
7606 grep -v '^ *+' conftest.er1 >conftest.err
7607 rm -f conftest.er1
7608 cat conftest.err >&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); } &&
7611 { ac_try='test -z "$ac_c_werror_flag"
7612 || test ! -s conftest.err'
7613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614 (eval $ac_try) 2>&5
7615 ac_status=$?
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); }; } &&
7618 { ac_try='test -s conftest$ac_exeext'
7619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620 (eval $ac_try) 2>&5
7621 ac_status=$?
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); }; }; then
7624 gt_cv_func_gettext_libintl=yes
7625 else
7626 echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7628
7629 gt_cv_func_gettext_libintl=no
7630 fi
7631 rm -f conftest.err conftest.$ac_objext \
7632 conftest$ac_exeext conftest.$ac_ext
7633 fi
7634 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7635 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7636 fi
7637
7638 fi
7639
7640 if test "$gt_cv_func_gettext_libc" = "yes" \
7641 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7642
7643 cat >>confdefs.h <<\_ACEOF
7644 #define HAVE_GETTEXT 1
7645 _ACEOF
7646
7647 # Extract the first word of "msgfmt", so it can be a program name with args.
7648 set dummy msgfmt; ac_word=$2
7649 echo "$as_me:$LINENO: checking for $ac_word" >&5
7650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7651 if test "${ac_cv_path_MSGFMT+set}" = set; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7653 else
7654 case "$MSGFMT" in
7655 /*)
7656 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7657 ;;
7658 *)
7659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7660 for ac_dir in $PATH; do
7661 test -z "$ac_dir" && ac_dir=.
7662 if test -f $ac_dir/$ac_word; then
7663 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7664 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7665 break
7666 fi
7667 fi
7668 done
7669 IFS="$ac_save_ifs"
7670 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7671 ;;
7672 esac
7673 fi
7674 MSGFMT="$ac_cv_path_MSGFMT"
7675 if test -n "$MSGFMT"; then
7676 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7677 echo "${ECHO_T}$MSGFMT" >&6
7678 else
7679 echo "$as_me:$LINENO: result: no" >&5
7680 echo "${ECHO_T}no" >&6
7681 fi
7682 if test "$MSGFMT" != "no"; then
7683
7684 for ac_func in dcgettext
7685 do
7686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7687 echo "$as_me:$LINENO: checking for $ac_func" >&5
7688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7689 if eval "test \"\${$as_ac_var+set}\" = set"; then
7690 echo $ECHO_N "(cached) $ECHO_C" >&6
7691 else
7692 cat >conftest.$ac_ext <<_ACEOF
7693 /* confdefs.h. */
7694 _ACEOF
7695 cat confdefs.h >>conftest.$ac_ext
7696 cat >>conftest.$ac_ext <<_ACEOF
7697 /* end confdefs.h. */
7698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7700 #define $ac_func innocuous_$ac_func
7701
7702 /* System header to define __stub macros and hopefully few prototypes,
7703 which can conflict with char $ac_func (); below.
7704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7705 <limits.h> exists even on freestanding compilers. */
7706
7707 #ifdef __STDC__
7708 # include <limits.h>
7709 #else
7710 # include <assert.h>
7711 #endif
7712
7713 #undef $ac_func
7714
7715 /* Override any gcc2 internal prototype to avoid an error. */
7716 #ifdef __cplusplus
7717 extern "C"
7718 {
7719 #endif
7720 /* We use char because int might match the return type of a gcc2
7721 builtin and then its argument prototype would still apply. */
7722 char $ac_func ();
7723 /* The GNU C library defines this for functions which it implements
7724 to always fail with ENOSYS. Some functions are actually named
7725 something starting with __ and the normal name is an alias. */
7726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7727 choke me
7728 #else
7729 char (*f) () = $ac_func;
7730 #endif
7731 #ifdef __cplusplus
7732 }
7733 #endif
7734
7735 int
7736 main ()
7737 {
7738 return f != $ac_func;
7739 ;
7740 return 0;
7741 }
7742 _ACEOF
7743 rm -f conftest.$ac_objext conftest$ac_exeext
7744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7745 (eval $ac_link) 2>conftest.er1
7746 ac_status=$?
7747 grep -v '^ *+' conftest.er1 >conftest.err
7748 rm -f conftest.er1
7749 cat conftest.err >&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); } &&
7752 { ac_try='test -z "$ac_c_werror_flag"
7753 || test ! -s conftest.err'
7754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7755 (eval $ac_try) 2>&5
7756 ac_status=$?
7757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 (exit $ac_status); }; } &&
7759 { ac_try='test -s conftest$ac_exeext'
7760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7761 (eval $ac_try) 2>&5
7762 ac_status=$?
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); }; }; then
7765 eval "$as_ac_var=yes"
7766 else
7767 echo "$as_me: failed program was:" >&5
7768 sed 's/^/| /' conftest.$ac_ext >&5
7769
7770 eval "$as_ac_var=no"
7771 fi
7772 rm -f conftest.err conftest.$ac_objext \
7773 conftest$ac_exeext conftest.$ac_ext
7774 fi
7775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7777 if test `eval echo '${'$as_ac_var'}'` = yes; then
7778 cat >>confdefs.h <<_ACEOF
7779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7780 _ACEOF
7781
7782 fi
7783 done
7784
7785 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7786 set dummy gmsgfmt; ac_word=$2
7787 echo "$as_me:$LINENO: checking for $ac_word" >&5
7788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7789 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7791 else
7792 case $GMSGFMT in
7793 [\\/]* | ?:[\\/]*)
7794 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7795 ;;
7796 *)
7797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798 for as_dir in $PATH
7799 do
7800 IFS=$as_save_IFS
7801 test -z "$as_dir" && as_dir=.
7802 for ac_exec_ext in '' $ac_executable_extensions; do
7803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7804 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7806 break 2
7807 fi
7808 done
7809 done
7810
7811 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7812 ;;
7813 esac
7814 fi
7815 GMSGFMT=$ac_cv_path_GMSGFMT
7816
7817 if test -n "$GMSGFMT"; then
7818 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7819 echo "${ECHO_T}$GMSGFMT" >&6
7820 else
7821 echo "$as_me:$LINENO: result: no" >&5
7822 echo "${ECHO_T}no" >&6
7823 fi
7824
7825 # Extract the first word of "xgettext", so it can be a program name with args.
7826 set dummy xgettext; ac_word=$2
7827 echo "$as_me:$LINENO: checking for $ac_word" >&5
7828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7829 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832 case "$XGETTEXT" in
7833 /*)
7834 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7835 ;;
7836 *)
7837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7838 for ac_dir in $PATH; do
7839 test -z "$ac_dir" && ac_dir=.
7840 if test -f $ac_dir/$ac_word; then
7841 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7842 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7843 break
7844 fi
7845 fi
7846 done
7847 IFS="$ac_save_ifs"
7848 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7849 ;;
7850 esac
7851 fi
7852 XGETTEXT="$ac_cv_path_XGETTEXT"
7853 if test -n "$XGETTEXT"; then
7854 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7855 echo "${ECHO_T}$XGETTEXT" >&6
7856 else
7857 echo "$as_me:$LINENO: result: no" >&5
7858 echo "${ECHO_T}no" >&6
7859 fi
7860
7861 cat >conftest.$ac_ext <<_ACEOF
7862 /* confdefs.h. */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7867
7868 int
7869 main ()
7870 {
7871 extern int _nl_msg_cat_cntr;
7872 return _nl_msg_cat_cntr
7873 ;
7874 return 0;
7875 }
7876 _ACEOF
7877 rm -f conftest.$ac_objext conftest$ac_exeext
7878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7879 (eval $ac_link) 2>conftest.er1
7880 ac_status=$?
7881 grep -v '^ *+' conftest.er1 >conftest.err
7882 rm -f conftest.er1
7883 cat conftest.err >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } &&
7886 { ac_try='test -z "$ac_c_werror_flag"
7887 || test ! -s conftest.err'
7888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889 (eval $ac_try) 2>&5
7890 ac_status=$?
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; } &&
7893 { ac_try='test -s conftest$ac_exeext'
7894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895 (eval $ac_try) 2>&5
7896 ac_status=$?
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); }; }; then
7899 CATOBJEXT=.gmo
7900 DATADIRNAME=share
7901 else
7902 echo "$as_me: failed program was:" >&5
7903 sed 's/^/| /' conftest.$ac_ext >&5
7904
7905 CATOBJEXT=.mo
7906 DATADIRNAME=lib
7907 fi
7908 rm -f conftest.err conftest.$ac_objext \
7909 conftest$ac_exeext conftest.$ac_ext
7910 INSTOBJEXT=.mo
7911 fi
7912 fi
7913
7914 fi
7915
7916
7917
7918
7919 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
7920 # Neither gettext nor catgets in included in the C library.
7921 # Fall back on GNU gettext library (assuming it is present).
7922 nls_cv_use_gnu_gettext=yes
7923 fi
7924 fi
7925
7926 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7927 INTLOBJS="\$(GETTOBJS)"
7928 # Extract the first word of "msgfmt", so it can be a program name with args.
7929 set dummy msgfmt; ac_word=$2
7930 echo "$as_me:$LINENO: checking for $ac_word" >&5
7931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7932 if test "${ac_cv_path_MSGFMT+set}" = set; then
7933 echo $ECHO_N "(cached) $ECHO_C" >&6
7934 else
7935 case "$MSGFMT" in
7936 /*)
7937 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7938 ;;
7939 *)
7940 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7941 for ac_dir in $PATH; do
7942 test -z "$ac_dir" && ac_dir=.
7943 if test -f $ac_dir/$ac_word; then
7944 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7945 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7946 break
7947 fi
7948 fi
7949 done
7950 IFS="$ac_save_ifs"
7951 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7952 ;;
7953 esac
7954 fi
7955 MSGFMT="$ac_cv_path_MSGFMT"
7956 if test -n "$MSGFMT"; then
7957 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7958 echo "${ECHO_T}$MSGFMT" >&6
7959 else
7960 echo "$as_me:$LINENO: result: no" >&5
7961 echo "${ECHO_T}no" >&6
7962 fi
7963
7964 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7965 set dummy gmsgfmt; ac_word=$2
7966 echo "$as_me:$LINENO: checking for $ac_word" >&5
7967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7968 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7969 echo $ECHO_N "(cached) $ECHO_C" >&6
7970 else
7971 case $GMSGFMT in
7972 [\\/]* | ?:[\\/]*)
7973 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7974 ;;
7975 *)
7976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977 for as_dir in $PATH
7978 do
7979 IFS=$as_save_IFS
7980 test -z "$as_dir" && as_dir=.
7981 for ac_exec_ext in '' $ac_executable_extensions; do
7982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7983 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7985 break 2
7986 fi
7987 done
7988 done
7989
7990 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7991 ;;
7992 esac
7993 fi
7994 GMSGFMT=$ac_cv_path_GMSGFMT
7995
7996 if test -n "$GMSGFMT"; then
7997 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7998 echo "${ECHO_T}$GMSGFMT" >&6
7999 else
8000 echo "$as_me:$LINENO: result: no" >&5
8001 echo "${ECHO_T}no" >&6
8002 fi
8003
8004 # Extract the first word of "xgettext", so it can be a program name with args.
8005 set dummy xgettext; ac_word=$2
8006 echo "$as_me:$LINENO: checking for $ac_word" >&5
8007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8008 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8010 else
8011 case "$XGETTEXT" in
8012 /*)
8013 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8014 ;;
8015 *)
8016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8017 for ac_dir in $PATH; do
8018 test -z "$ac_dir" && ac_dir=.
8019 if test -f $ac_dir/$ac_word; then
8020 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8021 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8022 break
8023 fi
8024 fi
8025 done
8026 IFS="$ac_save_ifs"
8027 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8028 ;;
8029 esac
8030 fi
8031 XGETTEXT="$ac_cv_path_XGETTEXT"
8032 if test -n "$XGETTEXT"; then
8033 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8034 echo "${ECHO_T}$XGETTEXT" >&6
8035 else
8036 echo "$as_me:$LINENO: result: no" >&5
8037 echo "${ECHO_T}no" >&6
8038 fi
8039
8040
8041 USE_INCLUDED_LIBINTL=yes
8042 CATOBJEXT=.gmo
8043 INSTOBJEXT=.mo
8044 DATADIRNAME=share
8045 INTLDEPS='$(top_builddir)/../intl/libintl.a'
8046 INTLLIBS=$INTLDEPS
8047 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8048 nls_cv_header_intl=libintl.h
8049 nls_cv_header_libgt=libgettext.h
8050 fi
8051
8052 if test "$XGETTEXT" != ":"; then
8053 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8054 : ;
8055 else
8056 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8057 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
8058 XGETTEXT=":"
8059 fi
8060 fi
8061
8062 # We need to process the po/ directory.
8063 POSUB=po
8064 else
8065 DATADIRNAME=share
8066 nls_cv_header_intl=libintl.h
8067 nls_cv_header_libgt=libgettext.h
8068 fi
8069
8070 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8071 # because some of the sources are only built for this goal.
8072 if test "$PACKAGE" = gettext; then
8073 USE_NLS=yes
8074 USE_INCLUDED_LIBINTL=yes
8075 fi
8076
8077 for lang in $ALL_LINGUAS; do
8078 GMOFILES="$GMOFILES $lang.gmo"
8079 POFILES="$POFILES $lang.po"
8080 done
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093 if test "x$CATOBJEXT" != "x"; then
8094
8095 cat >>confdefs.h <<\_ACEOF
8096 #define ENABLE_NLS 1
8097 _ACEOF
8098
8099 fi
8100
8101
8102 if test "x$CATOBJEXT" != "x"; then
8103 if test "x$ALL_LINGUAS" = "x"; then
8104 LINGUAS=
8105 else
8106 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8107 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8108 NEW_LINGUAS=
8109 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8110 case "$ALL_LINGUAS" in
8111 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8112 esac
8113 done
8114 LINGUAS=$NEW_LINGUAS
8115 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8116 echo "${ECHO_T}$LINGUAS" >&6
8117 fi
8118
8119 if test -n "$LINGUAS"; then
8120 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8121 fi
8122 fi
8123
8124 if test $ac_cv_header_locale_h = yes; then
8125 INCLUDE_LOCALE_H="#include <locale.h>"
8126 else
8127 INCLUDE_LOCALE_H="\
8128 /* The system does not provide the header <locale.h>. Take care yourself. */"
8129 fi
8130
8131
8132 if test -f $srcdir/po2tbl.sed.in; then
8133 if test "$CATOBJEXT" = ".cat"; then
8134 if test "${ac_cv_header_linux_version_h+set}" = set; then
8135 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8136 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8137 if test "${ac_cv_header_linux_version_h+set}" = set; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
8139 fi
8140 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8141 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8142 else
8143 # Is the header compilable?
8144 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8145 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8146 cat >conftest.$ac_ext <<_ACEOF
8147 /* confdefs.h. */
8148 _ACEOF
8149 cat confdefs.h >>conftest.$ac_ext
8150 cat >>conftest.$ac_ext <<_ACEOF
8151 /* end confdefs.h. */
8152 $ac_includes_default
8153 #include <linux/version.h>
8154 _ACEOF
8155 rm -f conftest.$ac_objext
8156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8157 (eval $ac_compile) 2>conftest.er1
8158 ac_status=$?
8159 grep -v '^ *+' conftest.er1 >conftest.err
8160 rm -f conftest.er1
8161 cat conftest.err >&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } &&
8164 { ac_try='test -z "$ac_c_werror_flag"
8165 || test ! -s conftest.err'
8166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8167 (eval $ac_try) 2>&5
8168 ac_status=$?
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); }; } &&
8171 { ac_try='test -s conftest.$ac_objext'
8172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8173 (eval $ac_try) 2>&5
8174 ac_status=$?
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); }; }; then
8177 ac_header_compiler=yes
8178 else
8179 echo "$as_me: failed program was:" >&5
8180 sed 's/^/| /' conftest.$ac_ext >&5
8181
8182 ac_header_compiler=no
8183 fi
8184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8185 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8186 echo "${ECHO_T}$ac_header_compiler" >&6
8187
8188 # Is the header present?
8189 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8190 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8191 cat >conftest.$ac_ext <<_ACEOF
8192 /* confdefs.h. */
8193 _ACEOF
8194 cat confdefs.h >>conftest.$ac_ext
8195 cat >>conftest.$ac_ext <<_ACEOF
8196 /* end confdefs.h. */
8197 #include <linux/version.h>
8198 _ACEOF
8199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8201 ac_status=$?
8202 grep -v '^ *+' conftest.er1 >conftest.err
8203 rm -f conftest.er1
8204 cat conftest.err >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } >/dev/null; then
8207 if test -s conftest.err; then
8208 ac_cpp_err=$ac_c_preproc_warn_flag
8209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8210 else
8211 ac_cpp_err=
8212 fi
8213 else
8214 ac_cpp_err=yes
8215 fi
8216 if test -z "$ac_cpp_err"; then
8217 ac_header_preproc=yes
8218 else
8219 echo "$as_me: failed program was:" >&5
8220 sed 's/^/| /' conftest.$ac_ext >&5
8221
8222 ac_header_preproc=no
8223 fi
8224 rm -f conftest.err conftest.$ac_ext
8225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8226 echo "${ECHO_T}$ac_header_preproc" >&6
8227
8228 # So? What about this header?
8229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8230 yes:no: )
8231 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8232 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8233 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8234 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8235 ac_header_preproc=yes
8236 ;;
8237 no:yes:* )
8238 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8239 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8240 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8241 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8242 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8243 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8244 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8245 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8246 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8247 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8248 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8249 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8250 (
8251 cat <<\_ASBOX
8252 ## ------------------------------------------ ##
8253 ## Report this to the AC_PACKAGE_NAME lists. ##
8254 ## ------------------------------------------ ##
8255 _ASBOX
8256 ) |
8257 sed "s/^/$as_me: WARNING: /" >&2
8258 ;;
8259 esac
8260 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8261 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8262 if test "${ac_cv_header_linux_version_h+set}" = set; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
8264 else
8265 ac_cv_header_linux_version_h=$ac_header_preproc
8266 fi
8267 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8268 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8269
8270 fi
8271 if test $ac_cv_header_linux_version_h = yes; then
8272 msgformat=linux
8273 else
8274 msgformat=xopen
8275 fi
8276
8277
8278
8279 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8280 fi
8281 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8282 $srcdir/po2tbl.sed.in > po2tbl.sed
8283 fi
8284
8285 if test "$PACKAGE" = "gettext"; then
8286 GT_NO="#NO#"
8287 GT_YES=
8288 else
8289 GT_NO=
8290 GT_YES="#YES#"
8291 fi
8292
8293
8294
8295 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8296
8297
8298 l=
8299
8300
8301 if test -f $srcdir/po/POTFILES.in; then
8302 test -d po || mkdir po
8303 if test "x$srcdir" != "x."; then
8304 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8305 posrcprefix="$srcdir/"
8306 else
8307 posrcprefix="../$srcdir/"
8308 fi
8309 else
8310 posrcprefix="../"
8311 fi
8312 rm -f po/POTFILES
8313 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8314 < $srcdir/po/POTFILES.in > po/POTFILES
8315 fi
8316
8317
8318 # Permit host specific settings.
8319 . ${srcdir}/configure.host
8320
8321
8322 # Find a good install program. We prefer a C program (faster),
8323 # so one script is as good as another. But avoid the broken or
8324 # incompatible versions:
8325 # SysV /etc/install, /usr/sbin/install
8326 # SunOS /usr/etc/install
8327 # IRIX /sbin/install
8328 # AIX /bin/install
8329 # AmigaOS /C/install, which installs bootblocks on floppy discs
8330 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8331 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8332 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8333 # OS/2's system install, which has a completely different semantic
8334 # ./install, which can be erroneously created by make from ./install.sh.
8335 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8336 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8337 if test -z "$INSTALL"; then
8338 if test "${ac_cv_path_install+set}" = set; then
8339 echo $ECHO_N "(cached) $ECHO_C" >&6
8340 else
8341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342 for as_dir in $PATH
8343 do
8344 IFS=$as_save_IFS
8345 test -z "$as_dir" && as_dir=.
8346 # Account for people who put trailing slashes in PATH elements.
8347 case $as_dir/ in
8348 ./ | .// | /cC/* | \
8349 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8350 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8351 /usr/ucb/* ) ;;
8352 *)
8353 # OSF1 and SCO ODT 3.0 have their own names for install.
8354 # Don't use installbsd from OSF since it installs stuff as root
8355 # by default.
8356 for ac_prog in ginstall scoinst install; do
8357 for ac_exec_ext in '' $ac_executable_extensions; do
8358 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8359 if test $ac_prog = install &&
8360 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8361 # AIX install. It has an incompatible calling convention.
8362 :
8363 elif test $ac_prog = install &&
8364 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8365 # program-specific install script used by HP pwplus--don't use.
8366 :
8367 else
8368 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8369 break 3
8370 fi
8371 fi
8372 done
8373 done
8374 ;;
8375 esac
8376 done
8377
8378
8379 fi
8380 if test "${ac_cv_path_install+set}" = set; then
8381 INSTALL=$ac_cv_path_install
8382 else
8383 # As a last resort, use the slow shell script. We don't cache a
8384 # path for INSTALL within a source directory, because that will
8385 # break other packages using the cache if that directory is
8386 # removed, or if the path is relative.
8387 INSTALL=$ac_install_sh
8388 fi
8389 fi
8390 echo "$as_me:$LINENO: result: $INSTALL" >&5
8391 echo "${ECHO_T}$INSTALL" >&6
8392
8393 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8394 # It thinks the first close brace ends the variable substitution.
8395 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8396
8397 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8398
8399 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8400
8401
8402 BFD_HOST_64BIT_LONG=0
8403 BFD_HOST_LONG_LONG=0
8404 BFD_HOST_64_BIT_DEFINED=0
8405 BFD_HOST_64_BIT=
8406 BFD_HOST_U_64_BIT=
8407
8408 echo "$as_me:$LINENO: checking for long long" >&5
8409 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8410 if test "${bfd_cv_has_long_long+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 else
8413 cat >conftest.$ac_ext <<_ACEOF
8414 /* confdefs.h. */
8415 _ACEOF
8416 cat confdefs.h >>conftest.$ac_ext
8417 cat >>conftest.$ac_ext <<_ACEOF
8418 /* end confdefs.h. */
8419
8420 int
8421 main ()
8422 {
8423 unsigned long long ll = 18446744073709551615ULL;
8424 ;
8425 return 0;
8426 }
8427 _ACEOF
8428 rm -f conftest.$ac_objext
8429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8430 (eval $ac_compile) 2>conftest.er1
8431 ac_status=$?
8432 grep -v '^ *+' conftest.er1 >conftest.err
8433 rm -f conftest.er1
8434 cat conftest.err >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } &&
8437 { ac_try='test -z "$ac_c_werror_flag"
8438 || test ! -s conftest.err'
8439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440 (eval $ac_try) 2>&5
8441 ac_status=$?
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); }; } &&
8444 { ac_try='test -s conftest.$ac_objext'
8445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8446 (eval $ac_try) 2>&5
8447 ac_status=$?
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); }; }; then
8450 bfd_cv_has_long_long=yes
8451 else
8452 echo "$as_me: failed program was:" >&5
8453 sed 's/^/| /' conftest.$ac_ext >&5
8454
8455 bfd_cv_has_long_long=no
8456 fi
8457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8458 fi
8459
8460 echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
8461 echo "${ECHO_T}$bfd_cv_has_long_long" >&6
8462 if test $bfd_cv_has_long_long = yes; then
8463 BFD_HOST_LONG_LONG=1
8464 echo "$as_me:$LINENO: checking for long long" >&5
8465 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8466 if test "${ac_cv_type_long_long+set}" = set; then
8467 echo $ECHO_N "(cached) $ECHO_C" >&6
8468 else
8469 cat >conftest.$ac_ext <<_ACEOF
8470 /* confdefs.h. */
8471 _ACEOF
8472 cat confdefs.h >>conftest.$ac_ext
8473 cat >>conftest.$ac_ext <<_ACEOF
8474 /* end confdefs.h. */
8475 $ac_includes_default
8476 int
8477 main ()
8478 {
8479 if ((long long *) 0)
8480 return 0;
8481 if (sizeof (long long))
8482 return 0;
8483 ;
8484 return 0;
8485 }
8486 _ACEOF
8487 rm -f conftest.$ac_objext
8488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8489 (eval $ac_compile) 2>conftest.er1
8490 ac_status=$?
8491 grep -v '^ *+' conftest.er1 >conftest.err
8492 rm -f conftest.er1
8493 cat conftest.err >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } &&
8496 { ac_try='test -z "$ac_c_werror_flag"
8497 || test ! -s conftest.err'
8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499 (eval $ac_try) 2>&5
8500 ac_status=$?
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; } &&
8503 { ac_try='test -s conftest.$ac_objext'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505 (eval $ac_try) 2>&5
8506 ac_status=$?
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 ac_cv_type_long_long=yes
8510 else
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8513
8514 ac_cv_type_long_long=no
8515 fi
8516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8517 fi
8518 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8519 echo "${ECHO_T}$ac_cv_type_long_long" >&6
8520
8521 echo "$as_me:$LINENO: checking size of long long" >&5
8522 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8523 if test "${ac_cv_sizeof_long_long+set}" = set; then
8524 echo $ECHO_N "(cached) $ECHO_C" >&6
8525 else
8526 if test "$ac_cv_type_long_long" = yes; then
8527 # The cast to unsigned long works around a bug in the HP C Compiler
8528 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8529 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8530 # This bug is HP SR number 8606223364.
8531 if test "$cross_compiling" = yes; then
8532 # Depending upon the size, compute the lo and hi bounds.
8533 cat >conftest.$ac_ext <<_ACEOF
8534 /* confdefs.h. */
8535 _ACEOF
8536 cat confdefs.h >>conftest.$ac_ext
8537 cat >>conftest.$ac_ext <<_ACEOF
8538 /* end confdefs.h. */
8539 $ac_includes_default
8540 int
8541 main ()
8542 {
8543 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
8544 test_array [0] = 0
8545
8546 ;
8547 return 0;
8548 }
8549 _ACEOF
8550 rm -f conftest.$ac_objext
8551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8552 (eval $ac_compile) 2>conftest.er1
8553 ac_status=$?
8554 grep -v '^ *+' conftest.er1 >conftest.err
8555 rm -f conftest.er1
8556 cat conftest.err >&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } &&
8559 { ac_try='test -z "$ac_c_werror_flag"
8560 || test ! -s conftest.err'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 (eval $ac_try) 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; } &&
8566 { ac_try='test -s conftest.$ac_objext'
8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568 (eval $ac_try) 2>&5
8569 ac_status=$?
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; }; then
8572 ac_lo=0 ac_mid=0
8573 while :; do
8574 cat >conftest.$ac_ext <<_ACEOF
8575 /* confdefs.h. */
8576 _ACEOF
8577 cat confdefs.h >>conftest.$ac_ext
8578 cat >>conftest.$ac_ext <<_ACEOF
8579 /* end confdefs.h. */
8580 $ac_includes_default
8581 int
8582 main ()
8583 {
8584 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8585 test_array [0] = 0
8586
8587 ;
8588 return 0;
8589 }
8590 _ACEOF
8591 rm -f conftest.$ac_objext
8592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8593 (eval $ac_compile) 2>conftest.er1
8594 ac_status=$?
8595 grep -v '^ *+' conftest.er1 >conftest.err
8596 rm -f conftest.er1
8597 cat conftest.err >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } &&
8600 { ac_try='test -z "$ac_c_werror_flag"
8601 || test ! -s conftest.err'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603 (eval $ac_try) 2>&5
8604 ac_status=$?
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; } &&
8607 { ac_try='test -s conftest.$ac_objext'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 (eval $ac_try) 2>&5
8610 ac_status=$?
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; }; then
8613 ac_hi=$ac_mid; break
8614 else
8615 echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8617
8618 ac_lo=`expr $ac_mid + 1`
8619 if test $ac_lo -le $ac_mid; then
8620 ac_lo= ac_hi=
8621 break
8622 fi
8623 ac_mid=`expr 2 '*' $ac_mid + 1`
8624 fi
8625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8626 done
8627 else
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8630
8631 cat >conftest.$ac_ext <<_ACEOF
8632 /* confdefs.h. */
8633 _ACEOF
8634 cat confdefs.h >>conftest.$ac_ext
8635 cat >>conftest.$ac_ext <<_ACEOF
8636 /* end confdefs.h. */
8637 $ac_includes_default
8638 int
8639 main ()
8640 {
8641 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
8642 test_array [0] = 0
8643
8644 ;
8645 return 0;
8646 }
8647 _ACEOF
8648 rm -f conftest.$ac_objext
8649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8650 (eval $ac_compile) 2>conftest.er1
8651 ac_status=$?
8652 grep -v '^ *+' conftest.er1 >conftest.err
8653 rm -f conftest.er1
8654 cat conftest.err >&5
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); } &&
8657 { ac_try='test -z "$ac_c_werror_flag"
8658 || test ! -s conftest.err'
8659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660 (eval $ac_try) 2>&5
8661 ac_status=$?
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); }; } &&
8664 { ac_try='test -s conftest.$ac_objext'
8665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666 (eval $ac_try) 2>&5
8667 ac_status=$?
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); }; }; then
8670 ac_hi=-1 ac_mid=-1
8671 while :; do
8672 cat >conftest.$ac_ext <<_ACEOF
8673 /* confdefs.h. */
8674 _ACEOF
8675 cat confdefs.h >>conftest.$ac_ext
8676 cat >>conftest.$ac_ext <<_ACEOF
8677 /* end confdefs.h. */
8678 $ac_includes_default
8679 int
8680 main ()
8681 {
8682 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
8683 test_array [0] = 0
8684
8685 ;
8686 return 0;
8687 }
8688 _ACEOF
8689 rm -f conftest.$ac_objext
8690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8691 (eval $ac_compile) 2>conftest.er1
8692 ac_status=$?
8693 grep -v '^ *+' conftest.er1 >conftest.err
8694 rm -f conftest.er1
8695 cat conftest.err >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } &&
8698 { ac_try='test -z "$ac_c_werror_flag"
8699 || test ! -s conftest.err'
8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701 (eval $ac_try) 2>&5
8702 ac_status=$?
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; } &&
8705 { ac_try='test -s conftest.$ac_objext'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707 (eval $ac_try) 2>&5
8708 ac_status=$?
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; }; then
8711 ac_lo=$ac_mid; break
8712 else
8713 echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8715
8716 ac_hi=`expr '(' $ac_mid ')' - 1`
8717 if test $ac_mid -le $ac_hi; then
8718 ac_lo= ac_hi=
8719 break
8720 fi
8721 ac_mid=`expr 2 '*' $ac_mid`
8722 fi
8723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8724 done
8725 else
8726 echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.$ac_ext >&5
8728
8729 ac_lo= ac_hi=
8730 fi
8731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8732 fi
8733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8734 # Binary search between lo and hi bounds.
8735 while test "x$ac_lo" != "x$ac_hi"; do
8736 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8737 cat >conftest.$ac_ext <<_ACEOF
8738 /* confdefs.h. */
8739 _ACEOF
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h. */
8743 $ac_includes_default
8744 int
8745 main ()
8746 {
8747 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8748 test_array [0] = 0
8749
8750 ;
8751 return 0;
8752 }
8753 _ACEOF
8754 rm -f conftest.$ac_objext
8755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8756 (eval $ac_compile) 2>conftest.er1
8757 ac_status=$?
8758 grep -v '^ *+' conftest.er1 >conftest.err
8759 rm -f conftest.er1
8760 cat conftest.err >&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } &&
8763 { ac_try='test -z "$ac_c_werror_flag"
8764 || test ! -s conftest.err'
8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 (eval $ac_try) 2>&5
8767 ac_status=$?
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; } &&
8770 { ac_try='test -s conftest.$ac_objext'
8771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772 (eval $ac_try) 2>&5
8773 ac_status=$?
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); }; }; then
8776 ac_hi=$ac_mid
8777 else
8778 echo "$as_me: failed program was:" >&5
8779 sed 's/^/| /' conftest.$ac_ext >&5
8780
8781 ac_lo=`expr '(' $ac_mid ')' + 1`
8782 fi
8783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8784 done
8785 case $ac_lo in
8786 ?*) ac_cv_sizeof_long_long=$ac_lo;;
8787 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8788 See \`config.log' for more details." >&5
8789 echo "$as_me: error: cannot compute sizeof (long long), 77
8790 See \`config.log' for more details." >&2;}
8791 { (exit 1); exit 1; }; } ;;
8792 esac
8793 else
8794 if test "$cross_compiling" = yes; then
8795 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8796 See \`config.log' for more details." >&5
8797 echo "$as_me: error: cannot run test program while cross compiling
8798 See \`config.log' for more details." >&2;}
8799 { (exit 1); exit 1; }; }
8800 else
8801 cat >conftest.$ac_ext <<_ACEOF
8802 /* confdefs.h. */
8803 _ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8807 $ac_includes_default
8808 long longval () { return (long) (sizeof (long long)); }
8809 unsigned long ulongval () { return (long) (sizeof (long long)); }
8810 #include <stdio.h>
8811 #include <stdlib.h>
8812 int
8813 main ()
8814 {
8815
8816 FILE *f = fopen ("conftest.val", "w");
8817 if (! f)
8818 exit (1);
8819 if (((long) (sizeof (long long))) < 0)
8820 {
8821 long i = longval ();
8822 if (i != ((long) (sizeof (long long))))
8823 exit (1);
8824 fprintf (f, "%ld\n", i);
8825 }
8826 else
8827 {
8828 unsigned long i = ulongval ();
8829 if (i != ((long) (sizeof (long long))))
8830 exit (1);
8831 fprintf (f, "%lu\n", i);
8832 }
8833 exit (ferror (f) || fclose (f) != 0);
8834
8835 ;
8836 return 0;
8837 }
8838 _ACEOF
8839 rm -f conftest$ac_exeext
8840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8841 (eval $ac_link) 2>&5
8842 ac_status=$?
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8846 (eval $ac_try) 2>&5
8847 ac_status=$?
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); }; }; then
8850 ac_cv_sizeof_long_long=`cat conftest.val`
8851 else
8852 echo "$as_me: program exited with status $ac_status" >&5
8853 echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8855
8856 ( exit $ac_status )
8857 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8858 See \`config.log' for more details." >&5
8859 echo "$as_me: error: cannot compute sizeof (long long), 77
8860 See \`config.log' for more details." >&2;}
8861 { (exit 1); exit 1; }; }
8862 fi
8863 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8864 fi
8865 fi
8866 rm -f conftest.val
8867 else
8868 ac_cv_sizeof_long_long=0
8869 fi
8870 fi
8871 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8872 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8873 cat >>confdefs.h <<_ACEOF
8874 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8875 _ACEOF
8876
8877
8878 fi
8879
8880 echo "$as_me:$LINENO: checking for long" >&5
8881 echo $ECHO_N "checking for long... $ECHO_C" >&6
8882 if test "${ac_cv_type_long+set}" = set; then
8883 echo $ECHO_N "(cached) $ECHO_C" >&6
8884 else
8885 cat >conftest.$ac_ext <<_ACEOF
8886 /* confdefs.h. */
8887 _ACEOF
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h. */
8891 $ac_includes_default
8892 int
8893 main ()
8894 {
8895 if ((long *) 0)
8896 return 0;
8897 if (sizeof (long))
8898 return 0;
8899 ;
8900 return 0;
8901 }
8902 _ACEOF
8903 rm -f conftest.$ac_objext
8904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8905 (eval $ac_compile) 2>conftest.er1
8906 ac_status=$?
8907 grep -v '^ *+' conftest.er1 >conftest.err
8908 rm -f conftest.er1
8909 cat conftest.err >&5
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); } &&
8912 { ac_try='test -z "$ac_c_werror_flag"
8913 || test ! -s conftest.err'
8914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8915 (eval $ac_try) 2>&5
8916 ac_status=$?
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }; } &&
8919 { ac_try='test -s conftest.$ac_objext'
8920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921 (eval $ac_try) 2>&5
8922 ac_status=$?
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); }; }; then
8925 ac_cv_type_long=yes
8926 else
8927 echo "$as_me: failed program was:" >&5
8928 sed 's/^/| /' conftest.$ac_ext >&5
8929
8930 ac_cv_type_long=no
8931 fi
8932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8933 fi
8934 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
8935 echo "${ECHO_T}$ac_cv_type_long" >&6
8936
8937 echo "$as_me:$LINENO: checking size of long" >&5
8938 echo $ECHO_N "checking size of long... $ECHO_C" >&6
8939 if test "${ac_cv_sizeof_long+set}" = set; then
8940 echo $ECHO_N "(cached) $ECHO_C" >&6
8941 else
8942 if test "$ac_cv_type_long" = yes; then
8943 # The cast to unsigned long works around a bug in the HP C Compiler
8944 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8945 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8946 # This bug is HP SR number 8606223364.
8947 if test "$cross_compiling" = yes; then
8948 # Depending upon the size, compute the lo and hi bounds.
8949 cat >conftest.$ac_ext <<_ACEOF
8950 /* confdefs.h. */
8951 _ACEOF
8952 cat confdefs.h >>conftest.$ac_ext
8953 cat >>conftest.$ac_ext <<_ACEOF
8954 /* end confdefs.h. */
8955 $ac_includes_default
8956 int
8957 main ()
8958 {
8959 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
8960 test_array [0] = 0
8961
8962 ;
8963 return 0;
8964 }
8965 _ACEOF
8966 rm -f conftest.$ac_objext
8967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8968 (eval $ac_compile) 2>conftest.er1
8969 ac_status=$?
8970 grep -v '^ *+' conftest.er1 >conftest.err
8971 rm -f conftest.er1
8972 cat conftest.err >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); } &&
8975 { ac_try='test -z "$ac_c_werror_flag"
8976 || test ! -s conftest.err'
8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978 (eval $ac_try) 2>&5
8979 ac_status=$?
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; } &&
8982 { ac_try='test -s conftest.$ac_objext'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984 (eval $ac_try) 2>&5
8985 ac_status=$?
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; }; then
8988 ac_lo=0 ac_mid=0
8989 while :; do
8990 cat >conftest.$ac_ext <<_ACEOF
8991 /* confdefs.h. */
8992 _ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h. */
8996 $ac_includes_default
8997 int
8998 main ()
8999 {
9000 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9001 test_array [0] = 0
9002
9003 ;
9004 return 0;
9005 }
9006 _ACEOF
9007 rm -f conftest.$ac_objext
9008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9009 (eval $ac_compile) 2>conftest.er1
9010 ac_status=$?
9011 grep -v '^ *+' conftest.er1 >conftest.err
9012 rm -f conftest.er1
9013 cat conftest.err >&5
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); } &&
9016 { ac_try='test -z "$ac_c_werror_flag"
9017 || test ! -s conftest.err'
9018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9019 (eval $ac_try) 2>&5
9020 ac_status=$?
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); }; } &&
9023 { ac_try='test -s conftest.$ac_objext'
9024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9025 (eval $ac_try) 2>&5
9026 ac_status=$?
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); }; }; then
9029 ac_hi=$ac_mid; break
9030 else
9031 echo "$as_me: failed program was:" >&5
9032 sed 's/^/| /' conftest.$ac_ext >&5
9033
9034 ac_lo=`expr $ac_mid + 1`
9035 if test $ac_lo -le $ac_mid; then
9036 ac_lo= ac_hi=
9037 break
9038 fi
9039 ac_mid=`expr 2 '*' $ac_mid + 1`
9040 fi
9041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9042 done
9043 else
9044 echo "$as_me: failed program was:" >&5
9045 sed 's/^/| /' conftest.$ac_ext >&5
9046
9047 cat >conftest.$ac_ext <<_ACEOF
9048 /* confdefs.h. */
9049 _ACEOF
9050 cat confdefs.h >>conftest.$ac_ext
9051 cat >>conftest.$ac_ext <<_ACEOF
9052 /* end confdefs.h. */
9053 $ac_includes_default
9054 int
9055 main ()
9056 {
9057 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
9058 test_array [0] = 0
9059
9060 ;
9061 return 0;
9062 }
9063 _ACEOF
9064 rm -f conftest.$ac_objext
9065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9066 (eval $ac_compile) 2>conftest.er1
9067 ac_status=$?
9068 grep -v '^ *+' conftest.er1 >conftest.err
9069 rm -f conftest.er1
9070 cat conftest.err >&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); } &&
9073 { ac_try='test -z "$ac_c_werror_flag"
9074 || test ! -s conftest.err'
9075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076 (eval $ac_try) 2>&5
9077 ac_status=$?
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); }; } &&
9080 { ac_try='test -s conftest.$ac_objext'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 (eval $ac_try) 2>&5
9083 ac_status=$?
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; }; then
9086 ac_hi=-1 ac_mid=-1
9087 while :; do
9088 cat >conftest.$ac_ext <<_ACEOF
9089 /* confdefs.h. */
9090 _ACEOF
9091 cat confdefs.h >>conftest.$ac_ext
9092 cat >>conftest.$ac_ext <<_ACEOF
9093 /* end confdefs.h. */
9094 $ac_includes_default
9095 int
9096 main ()
9097 {
9098 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
9099 test_array [0] = 0
9100
9101 ;
9102 return 0;
9103 }
9104 _ACEOF
9105 rm -f conftest.$ac_objext
9106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9107 (eval $ac_compile) 2>conftest.er1
9108 ac_status=$?
9109 grep -v '^ *+' conftest.er1 >conftest.err
9110 rm -f conftest.er1
9111 cat conftest.err >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); } &&
9114 { ac_try='test -z "$ac_c_werror_flag"
9115 || test ! -s conftest.err'
9116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117 (eval $ac_try) 2>&5
9118 ac_status=$?
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); }; } &&
9121 { ac_try='test -s conftest.$ac_objext'
9122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123 (eval $ac_try) 2>&5
9124 ac_status=$?
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; }; then
9127 ac_lo=$ac_mid; break
9128 else
9129 echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9131
9132 ac_hi=`expr '(' $ac_mid ')' - 1`
9133 if test $ac_mid -le $ac_hi; then
9134 ac_lo= ac_hi=
9135 break
9136 fi
9137 ac_mid=`expr 2 '*' $ac_mid`
9138 fi
9139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9140 done
9141 else
9142 echo "$as_me: failed program was:" >&5
9143 sed 's/^/| /' conftest.$ac_ext >&5
9144
9145 ac_lo= ac_hi=
9146 fi
9147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9148 fi
9149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9150 # Binary search between lo and hi bounds.
9151 while test "x$ac_lo" != "x$ac_hi"; do
9152 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9153 cat >conftest.$ac_ext <<_ACEOF
9154 /* confdefs.h. */
9155 _ACEOF
9156 cat confdefs.h >>conftest.$ac_ext
9157 cat >>conftest.$ac_ext <<_ACEOF
9158 /* end confdefs.h. */
9159 $ac_includes_default
9160 int
9161 main ()
9162 {
9163 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9164 test_array [0] = 0
9165
9166 ;
9167 return 0;
9168 }
9169 _ACEOF
9170 rm -f conftest.$ac_objext
9171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9172 (eval $ac_compile) 2>conftest.er1
9173 ac_status=$?
9174 grep -v '^ *+' conftest.er1 >conftest.err
9175 rm -f conftest.er1
9176 cat conftest.err >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } &&
9179 { ac_try='test -z "$ac_c_werror_flag"
9180 || test ! -s conftest.err'
9181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182 (eval $ac_try) 2>&5
9183 ac_status=$?
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); }; } &&
9186 { ac_try='test -s conftest.$ac_objext'
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188 (eval $ac_try) 2>&5
9189 ac_status=$?
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; }; then
9192 ac_hi=$ac_mid
9193 else
9194 echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.$ac_ext >&5
9196
9197 ac_lo=`expr '(' $ac_mid ')' + 1`
9198 fi
9199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9200 done
9201 case $ac_lo in
9202 ?*) ac_cv_sizeof_long=$ac_lo;;
9203 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9204 See \`config.log' for more details." >&5
9205 echo "$as_me: error: cannot compute sizeof (long), 77
9206 See \`config.log' for more details." >&2;}
9207 { (exit 1); exit 1; }; } ;;
9208 esac
9209 else
9210 if test "$cross_compiling" = yes; then
9211 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9212 See \`config.log' for more details." >&5
9213 echo "$as_me: error: cannot run test program while cross compiling
9214 See \`config.log' for more details." >&2;}
9215 { (exit 1); exit 1; }; }
9216 else
9217 cat >conftest.$ac_ext <<_ACEOF
9218 /* confdefs.h. */
9219 _ACEOF
9220 cat confdefs.h >>conftest.$ac_ext
9221 cat >>conftest.$ac_ext <<_ACEOF
9222 /* end confdefs.h. */
9223 $ac_includes_default
9224 long longval () { return (long) (sizeof (long)); }
9225 unsigned long ulongval () { return (long) (sizeof (long)); }
9226 #include <stdio.h>
9227 #include <stdlib.h>
9228 int
9229 main ()
9230 {
9231
9232 FILE *f = fopen ("conftest.val", "w");
9233 if (! f)
9234 exit (1);
9235 if (((long) (sizeof (long))) < 0)
9236 {
9237 long i = longval ();
9238 if (i != ((long) (sizeof (long))))
9239 exit (1);
9240 fprintf (f, "%ld\n", i);
9241 }
9242 else
9243 {
9244 unsigned long i = ulongval ();
9245 if (i != ((long) (sizeof (long))))
9246 exit (1);
9247 fprintf (f, "%lu\n", i);
9248 }
9249 exit (ferror (f) || fclose (f) != 0);
9250
9251 ;
9252 return 0;
9253 }
9254 _ACEOF
9255 rm -f conftest$ac_exeext
9256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9257 (eval $ac_link) 2>&5
9258 ac_status=$?
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262 (eval $ac_try) 2>&5
9263 ac_status=$?
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; }; then
9266 ac_cv_sizeof_long=`cat conftest.val`
9267 else
9268 echo "$as_me: program exited with status $ac_status" >&5
9269 echo "$as_me: failed program was:" >&5
9270 sed 's/^/| /' conftest.$ac_ext >&5
9271
9272 ( exit $ac_status )
9273 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9274 See \`config.log' for more details." >&5
9275 echo "$as_me: error: cannot compute sizeof (long), 77
9276 See \`config.log' for more details." >&2;}
9277 { (exit 1); exit 1; }; }
9278 fi
9279 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9280 fi
9281 fi
9282 rm -f conftest.val
9283 else
9284 ac_cv_sizeof_long=0
9285 fi
9286 fi
9287 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9288 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
9289 cat >>confdefs.h <<_ACEOF
9290 #define SIZEOF_LONG $ac_cv_sizeof_long
9291 _ACEOF
9292
9293
9294 if test "x${ac_cv_sizeof_long}" = "x8"; then
9295 host64=true
9296 BFD_HOST_64BIT_LONG=1
9297 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
9298 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
9299 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
9300 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
9301 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
9302 fi
9303
9304 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
9305 BFD_HOST_64_BIT_DEFINED=1
9306 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
9307 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
9308 fi
9309
9310
9311
9312
9313
9314
9315
9316 # Put a plausible default for CC_FOR_BUILD in Makefile.
9317 if test -z "$CC_FOR_BUILD"; then
9318 if test "x$cross_compiling" = "xno"; then
9319 CC_FOR_BUILD='$(CC)'
9320 else
9321 CC_FOR_BUILD=gcc
9322 fi
9323 fi
9324
9325 # Also set EXEEXT_FOR_BUILD.
9326 if test "x$cross_compiling" = "xno"; then
9327 EXEEXT_FOR_BUILD='$(EXEEXT)'
9328 else
9329 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
9330 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
9331 if test "${bfd_cv_build_exeext+set}" = set; then
9332 echo $ECHO_N "(cached) $ECHO_C" >&6
9333 else
9334 rm -f conftest*
9335 echo 'int main () { return 0; }' > conftest.c
9336 bfd_cv_build_exeext=
9337 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
9338 for file in conftest.*; do
9339 case $file in
9340 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
9341 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
9342 esac
9343 done
9344 rm -f conftest*
9345 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
9346 fi
9347 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
9348 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
9349 EXEEXT_FOR_BUILD=""
9350 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
9351 fi
9352
9353
9354
9355
9356
9357
9358
9359
9360 for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
9361 do
9362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9364 echo "$as_me:$LINENO: checking for $ac_header" >&5
9365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
9368 fi
9369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9371 else
9372 # Is the header compilable?
9373 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9375 cat >conftest.$ac_ext <<_ACEOF
9376 /* confdefs.h. */
9377 _ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9381 $ac_includes_default
9382 #include <$ac_header>
9383 _ACEOF
9384 rm -f conftest.$ac_objext
9385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9386 (eval $ac_compile) 2>conftest.er1
9387 ac_status=$?
9388 grep -v '^ *+' conftest.er1 >conftest.err
9389 rm -f conftest.er1
9390 cat conftest.err >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } &&
9393 { ac_try='test -z "$ac_c_werror_flag"
9394 || test ! -s conftest.err'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 (eval $ac_try) 2>&5
9397 ac_status=$?
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; } &&
9400 { ac_try='test -s conftest.$ac_objext'
9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9402 (eval $ac_try) 2>&5
9403 ac_status=$?
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; }; then
9406 ac_header_compiler=yes
9407 else
9408 echo "$as_me: failed program was:" >&5
9409 sed 's/^/| /' conftest.$ac_ext >&5
9410
9411 ac_header_compiler=no
9412 fi
9413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9414 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9415 echo "${ECHO_T}$ac_header_compiler" >&6
9416
9417 # Is the header present?
9418 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9420 cat >conftest.$ac_ext <<_ACEOF
9421 /* confdefs.h. */
9422 _ACEOF
9423 cat confdefs.h >>conftest.$ac_ext
9424 cat >>conftest.$ac_ext <<_ACEOF
9425 /* end confdefs.h. */
9426 #include <$ac_header>
9427 _ACEOF
9428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9430 ac_status=$?
9431 grep -v '^ *+' conftest.er1 >conftest.err
9432 rm -f conftest.er1
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } >/dev/null; then
9436 if test -s conftest.err; then
9437 ac_cpp_err=$ac_c_preproc_warn_flag
9438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9439 else
9440 ac_cpp_err=
9441 fi
9442 else
9443 ac_cpp_err=yes
9444 fi
9445 if test -z "$ac_cpp_err"; then
9446 ac_header_preproc=yes
9447 else
9448 echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9450
9451 ac_header_preproc=no
9452 fi
9453 rm -f conftest.err conftest.$ac_ext
9454 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9455 echo "${ECHO_T}$ac_header_preproc" >&6
9456
9457 # So? What about this header?
9458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9459 yes:no: )
9460 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9461 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9463 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9464 ac_header_preproc=yes
9465 ;;
9466 no:yes:* )
9467 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9468 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9469 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9470 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9471 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9472 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9473 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9474 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9477 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9478 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9479 (
9480 cat <<\_ASBOX
9481 ## ------------------------------------------ ##
9482 ## Report this to the AC_PACKAGE_NAME lists. ##
9483 ## ------------------------------------------ ##
9484 _ASBOX
9485 ) |
9486 sed "s/^/$as_me: WARNING: /" >&2
9487 ;;
9488 esac
9489 echo "$as_me:$LINENO: checking for $ac_header" >&5
9490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9493 else
9494 eval "$as_ac_Header=\$ac_header_preproc"
9495 fi
9496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9498
9499 fi
9500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9501 cat >>confdefs.h <<_ACEOF
9502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9503 _ACEOF
9504
9505 fi
9506
9507 done
9508
9509
9510
9511
9512 for ac_header in fcntl.h sys/file.h sys/time.h
9513 do
9514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9516 echo "$as_me:$LINENO: checking for $ac_header" >&5
9517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9520 fi
9521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9523 else
9524 # Is the header compilable?
9525 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9527 cat >conftest.$ac_ext <<_ACEOF
9528 /* confdefs.h. */
9529 _ACEOF
9530 cat confdefs.h >>conftest.$ac_ext
9531 cat >>conftest.$ac_ext <<_ACEOF
9532 /* end confdefs.h. */
9533 $ac_includes_default
9534 #include <$ac_header>
9535 _ACEOF
9536 rm -f conftest.$ac_objext
9537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9538 (eval $ac_compile) 2>conftest.er1
9539 ac_status=$?
9540 grep -v '^ *+' conftest.er1 >conftest.err
9541 rm -f conftest.er1
9542 cat conftest.err >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); } &&
9545 { ac_try='test -z "$ac_c_werror_flag"
9546 || test ! -s conftest.err'
9547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9548 (eval $ac_try) 2>&5
9549 ac_status=$?
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; } &&
9552 { ac_try='test -s conftest.$ac_objext'
9553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554 (eval $ac_try) 2>&5
9555 ac_status=$?
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; }; then
9558 ac_header_compiler=yes
9559 else
9560 echo "$as_me: failed program was:" >&5
9561 sed 's/^/| /' conftest.$ac_ext >&5
9562
9563 ac_header_compiler=no
9564 fi
9565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9566 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9567 echo "${ECHO_T}$ac_header_compiler" >&6
9568
9569 # Is the header present?
9570 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9571 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9572 cat >conftest.$ac_ext <<_ACEOF
9573 /* confdefs.h. */
9574 _ACEOF
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9578 #include <$ac_header>
9579 _ACEOF
9580 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9582 ac_status=$?
9583 grep -v '^ *+' conftest.er1 >conftest.err
9584 rm -f conftest.er1
9585 cat conftest.err >&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); } >/dev/null; then
9588 if test -s conftest.err; then
9589 ac_cpp_err=$ac_c_preproc_warn_flag
9590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9591 else
9592 ac_cpp_err=
9593 fi
9594 else
9595 ac_cpp_err=yes
9596 fi
9597 if test -z "$ac_cpp_err"; then
9598 ac_header_preproc=yes
9599 else
9600 echo "$as_me: failed program was:" >&5
9601 sed 's/^/| /' conftest.$ac_ext >&5
9602
9603 ac_header_preproc=no
9604 fi
9605 rm -f conftest.err conftest.$ac_ext
9606 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9607 echo "${ECHO_T}$ac_header_preproc" >&6
9608
9609 # So? What about this header?
9610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9611 yes:no: )
9612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9615 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9616 ac_header_preproc=yes
9617 ;;
9618 no:yes:* )
9619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9622 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9623 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9624 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9625 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9626 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9629 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9630 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9631 (
9632 cat <<\_ASBOX
9633 ## ------------------------------------------ ##
9634 ## Report this to the AC_PACKAGE_NAME lists. ##
9635 ## ------------------------------------------ ##
9636 _ASBOX
9637 ) |
9638 sed "s/^/$as_me: WARNING: /" >&2
9639 ;;
9640 esac
9641 echo "$as_me:$LINENO: checking for $ac_header" >&5
9642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9644 echo $ECHO_N "(cached) $ECHO_C" >&6
9645 else
9646 eval "$as_ac_Header=\$ac_header_preproc"
9647 fi
9648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9650
9651 fi
9652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9653 cat >>confdefs.h <<_ACEOF
9654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9655 _ACEOF
9656
9657 fi
9658
9659 done
9660
9661 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9662 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9663 if test "${ac_cv_header_time+set}" = set; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
9665 else
9666 cat >conftest.$ac_ext <<_ACEOF
9667 /* confdefs.h. */
9668 _ACEOF
9669 cat confdefs.h >>conftest.$ac_ext
9670 cat >>conftest.$ac_ext <<_ACEOF
9671 /* end confdefs.h. */
9672 #include <sys/types.h>
9673 #include <sys/time.h>
9674 #include <time.h>
9675
9676 int
9677 main ()
9678 {
9679 if ((struct tm *) 0)
9680 return 0;
9681 ;
9682 return 0;
9683 }
9684 _ACEOF
9685 rm -f conftest.$ac_objext
9686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9687 (eval $ac_compile) 2>conftest.er1
9688 ac_status=$?
9689 grep -v '^ *+' conftest.er1 >conftest.err
9690 rm -f conftest.er1
9691 cat conftest.err >&5
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); } &&
9694 { ac_try='test -z "$ac_c_werror_flag"
9695 || test ! -s conftest.err'
9696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697 (eval $ac_try) 2>&5
9698 ac_status=$?
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); }; } &&
9701 { ac_try='test -s conftest.$ac_objext'
9702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9703 (eval $ac_try) 2>&5
9704 ac_status=$?
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); }; }; then
9707 ac_cv_header_time=yes
9708 else
9709 echo "$as_me: failed program was:" >&5
9710 sed 's/^/| /' conftest.$ac_ext >&5
9711
9712 ac_cv_header_time=no
9713 fi
9714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9715 fi
9716 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9717 echo "${ECHO_T}$ac_cv_header_time" >&6
9718 if test $ac_cv_header_time = yes; then
9719
9720 cat >>confdefs.h <<\_ACEOF
9721 #define TIME_WITH_SYS_TIME 1
9722 _ACEOF
9723
9724 fi
9725
9726
9727
9728
9729
9730
9731 ac_header_dirent=no
9732 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9733 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9734 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9735 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9737 echo $ECHO_N "(cached) $ECHO_C" >&6
9738 else
9739 cat >conftest.$ac_ext <<_ACEOF
9740 /* confdefs.h. */
9741 _ACEOF
9742 cat confdefs.h >>conftest.$ac_ext
9743 cat >>conftest.$ac_ext <<_ACEOF
9744 /* end confdefs.h. */
9745 #include <sys/types.h>
9746 #include <$ac_hdr>
9747
9748 int
9749 main ()
9750 {
9751 if ((DIR *) 0)
9752 return 0;
9753 ;
9754 return 0;
9755 }
9756 _ACEOF
9757 rm -f conftest.$ac_objext
9758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9759 (eval $ac_compile) 2>conftest.er1
9760 ac_status=$?
9761 grep -v '^ *+' conftest.er1 >conftest.err
9762 rm -f conftest.er1
9763 cat conftest.err >&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); } &&
9766 { ac_try='test -z "$ac_c_werror_flag"
9767 || test ! -s conftest.err'
9768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9769 (eval $ac_try) 2>&5
9770 ac_status=$?
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); }; } &&
9773 { ac_try='test -s conftest.$ac_objext'
9774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9775 (eval $ac_try) 2>&5
9776 ac_status=$?
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); }; }; then
9779 eval "$as_ac_Header=yes"
9780 else
9781 echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.$ac_ext >&5
9783
9784 eval "$as_ac_Header=no"
9785 fi
9786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9787 fi
9788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9791 cat >>confdefs.h <<_ACEOF
9792 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9793 _ACEOF
9794
9795 ac_header_dirent=$ac_hdr; break
9796 fi
9797
9798 done
9799 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9800 if test $ac_header_dirent = dirent.h; then
9801 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9802 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9803 if test "${ac_cv_search_opendir+set}" = set; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
9805 else
9806 ac_func_search_save_LIBS=$LIBS
9807 ac_cv_search_opendir=no
9808 cat >conftest.$ac_ext <<_ACEOF
9809 /* confdefs.h. */
9810 _ACEOF
9811 cat confdefs.h >>conftest.$ac_ext
9812 cat >>conftest.$ac_ext <<_ACEOF
9813 /* end confdefs.h. */
9814
9815 /* Override any gcc2 internal prototype to avoid an error. */
9816 #ifdef __cplusplus
9817 extern "C"
9818 #endif
9819 /* We use char because int might match the return type of a gcc2
9820 builtin and then its argument prototype would still apply. */
9821 char opendir ();
9822 int
9823 main ()
9824 {
9825 opendir ();
9826 ;
9827 return 0;
9828 }
9829 _ACEOF
9830 rm -f conftest.$ac_objext conftest$ac_exeext
9831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9832 (eval $ac_link) 2>conftest.er1
9833 ac_status=$?
9834 grep -v '^ *+' conftest.er1 >conftest.err
9835 rm -f conftest.er1
9836 cat conftest.err >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } &&
9839 { ac_try='test -z "$ac_c_werror_flag"
9840 || test ! -s conftest.err'
9841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9842 (eval $ac_try) 2>&5
9843 ac_status=$?
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; } &&
9846 { ac_try='test -s conftest$ac_exeext'
9847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848 (eval $ac_try) 2>&5
9849 ac_status=$?
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; }; then
9852 ac_cv_search_opendir="none required"
9853 else
9854 echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9856
9857 fi
9858 rm -f conftest.err conftest.$ac_objext \
9859 conftest$ac_exeext conftest.$ac_ext
9860 if test "$ac_cv_search_opendir" = no; then
9861 for ac_lib in dir; do
9862 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9863 cat >conftest.$ac_ext <<_ACEOF
9864 /* confdefs.h. */
9865 _ACEOF
9866 cat confdefs.h >>conftest.$ac_ext
9867 cat >>conftest.$ac_ext <<_ACEOF
9868 /* end confdefs.h. */
9869
9870 /* Override any gcc2 internal prototype to avoid an error. */
9871 #ifdef __cplusplus
9872 extern "C"
9873 #endif
9874 /* We use char because int might match the return type of a gcc2
9875 builtin and then its argument prototype would still apply. */
9876 char opendir ();
9877 int
9878 main ()
9879 {
9880 opendir ();
9881 ;
9882 return 0;
9883 }
9884 _ACEOF
9885 rm -f conftest.$ac_objext conftest$ac_exeext
9886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9887 (eval $ac_link) 2>conftest.er1
9888 ac_status=$?
9889 grep -v '^ *+' conftest.er1 >conftest.err
9890 rm -f conftest.er1
9891 cat conftest.err >&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); } &&
9894 { ac_try='test -z "$ac_c_werror_flag"
9895 || test ! -s conftest.err'
9896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9897 (eval $ac_try) 2>&5
9898 ac_status=$?
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); }; } &&
9901 { ac_try='test -s conftest$ac_exeext'
9902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9903 (eval $ac_try) 2>&5
9904 ac_status=$?
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; }; then
9907 ac_cv_search_opendir="-l$ac_lib"
9908 break
9909 else
9910 echo "$as_me: failed program was:" >&5
9911 sed 's/^/| /' conftest.$ac_ext >&5
9912
9913 fi
9914 rm -f conftest.err conftest.$ac_objext \
9915 conftest$ac_exeext conftest.$ac_ext
9916 done
9917 fi
9918 LIBS=$ac_func_search_save_LIBS
9919 fi
9920 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9921 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9922 if test "$ac_cv_search_opendir" != no; then
9923 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9924
9925 fi
9926
9927 else
9928 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9929 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9930 if test "${ac_cv_search_opendir+set}" = set; then
9931 echo $ECHO_N "(cached) $ECHO_C" >&6
9932 else
9933 ac_func_search_save_LIBS=$LIBS
9934 ac_cv_search_opendir=no
9935 cat >conftest.$ac_ext <<_ACEOF
9936 /* confdefs.h. */
9937 _ACEOF
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h. */
9941
9942 /* Override any gcc2 internal prototype to avoid an error. */
9943 #ifdef __cplusplus
9944 extern "C"
9945 #endif
9946 /* We use char because int might match the return type of a gcc2
9947 builtin and then its argument prototype would still apply. */
9948 char opendir ();
9949 int
9950 main ()
9951 {
9952 opendir ();
9953 ;
9954 return 0;
9955 }
9956 _ACEOF
9957 rm -f conftest.$ac_objext conftest$ac_exeext
9958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9959 (eval $ac_link) 2>conftest.er1
9960 ac_status=$?
9961 grep -v '^ *+' conftest.er1 >conftest.err
9962 rm -f conftest.er1
9963 cat conftest.err >&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } &&
9966 { ac_try='test -z "$ac_c_werror_flag"
9967 || test ! -s conftest.err'
9968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969 (eval $ac_try) 2>&5
9970 ac_status=$?
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; } &&
9973 { ac_try='test -s conftest$ac_exeext'
9974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975 (eval $ac_try) 2>&5
9976 ac_status=$?
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; }; then
9979 ac_cv_search_opendir="none required"
9980 else
9981 echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.$ac_ext >&5
9983
9984 fi
9985 rm -f conftest.err conftest.$ac_objext \
9986 conftest$ac_exeext conftest.$ac_ext
9987 if test "$ac_cv_search_opendir" = no; then
9988 for ac_lib in x; do
9989 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
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 /* Override any gcc2 internal prototype to avoid an error. */
9998 #ifdef __cplusplus
9999 extern "C"
10000 #endif
10001 /* We use char because int might match the return type of a gcc2
10002 builtin and then its argument prototype would still apply. */
10003 char opendir ();
10004 int
10005 main ()
10006 {
10007 opendir ();
10008 ;
10009 return 0;
10010 }
10011 _ACEOF
10012 rm -f conftest.$ac_objext conftest$ac_exeext
10013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10014 (eval $ac_link) 2>conftest.er1
10015 ac_status=$?
10016 grep -v '^ *+' conftest.er1 >conftest.err
10017 rm -f conftest.er1
10018 cat conftest.err >&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); } &&
10021 { ac_try='test -z "$ac_c_werror_flag"
10022 || test ! -s conftest.err'
10023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024 (eval $ac_try) 2>&5
10025 ac_status=$?
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; } &&
10028 { ac_try='test -s conftest$ac_exeext'
10029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030 (eval $ac_try) 2>&5
10031 ac_status=$?
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; }; then
10034 ac_cv_search_opendir="-l$ac_lib"
10035 break
10036 else
10037 echo "$as_me: failed program was:" >&5
10038 sed 's/^/| /' conftest.$ac_ext >&5
10039
10040 fi
10041 rm -f conftest.err conftest.$ac_objext \
10042 conftest$ac_exeext conftest.$ac_ext
10043 done
10044 fi
10045 LIBS=$ac_func_search_save_LIBS
10046 fi
10047 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10048 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10049 if test "$ac_cv_search_opendir" != no; then
10050 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10051
10052 fi
10053
10054 fi
10055
10056 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
10057 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
10058 if test "${gcc_cv_header_string+set}" = set; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10060 else
10061 cat >conftest.$ac_ext <<_ACEOF
10062 /* confdefs.h. */
10063 _ACEOF
10064 cat confdefs.h >>conftest.$ac_ext
10065 cat >>conftest.$ac_ext <<_ACEOF
10066 /* end confdefs.h. */
10067 #include <string.h>
10068 #include <strings.h>
10069 int
10070 main ()
10071 {
10072
10073 ;
10074 return 0;
10075 }
10076 _ACEOF
10077 rm -f conftest.$ac_objext
10078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10079 (eval $ac_compile) 2>conftest.er1
10080 ac_status=$?
10081 grep -v '^ *+' conftest.er1 >conftest.err
10082 rm -f conftest.er1
10083 cat conftest.err >&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); } &&
10086 { ac_try='test -z "$ac_c_werror_flag"
10087 || test ! -s conftest.err'
10088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089 (eval $ac_try) 2>&5
10090 ac_status=$?
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); }; } &&
10093 { ac_try='test -s conftest.$ac_objext'
10094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095 (eval $ac_try) 2>&5
10096 ac_status=$?
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); }; }; then
10099 gcc_cv_header_string=yes
10100 else
10101 echo "$as_me: failed program was:" >&5
10102 sed 's/^/| /' conftest.$ac_ext >&5
10103
10104 gcc_cv_header_string=no
10105 fi
10106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10107 fi
10108 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
10109 echo "${ECHO_T}$gcc_cv_header_string" >&6
10110 if test $gcc_cv_header_string = yes; then
10111
10112 cat >>confdefs.h <<\_ACEOF
10113 #define STRING_WITH_STRINGS 1
10114 _ACEOF
10115
10116 fi
10117
10118
10119
10120
10121
10122
10123
10124
10125 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
10126 do
10127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10128 echo "$as_me:$LINENO: checking for $ac_func" >&5
10129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10130 if eval "test \"\${$as_ac_var+set}\" = set"; then
10131 echo $ECHO_N "(cached) $ECHO_C" >&6
10132 else
10133 cat >conftest.$ac_ext <<_ACEOF
10134 /* confdefs.h. */
10135 _ACEOF
10136 cat confdefs.h >>conftest.$ac_ext
10137 cat >>conftest.$ac_ext <<_ACEOF
10138 /* end confdefs.h. */
10139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10141 #define $ac_func innocuous_$ac_func
10142
10143 /* System header to define __stub macros and hopefully few prototypes,
10144 which can conflict with char $ac_func (); below.
10145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10146 <limits.h> exists even on freestanding compilers. */
10147
10148 #ifdef __STDC__
10149 # include <limits.h>
10150 #else
10151 # include <assert.h>
10152 #endif
10153
10154 #undef $ac_func
10155
10156 /* Override any gcc2 internal prototype to avoid an error. */
10157 #ifdef __cplusplus
10158 extern "C"
10159 {
10160 #endif
10161 /* We use char because int might match the return type of a gcc2
10162 builtin and then its argument prototype would still apply. */
10163 char $ac_func ();
10164 /* The GNU C library defines this for functions which it implements
10165 to always fail with ENOSYS. Some functions are actually named
10166 something starting with __ and the normal name is an alias. */
10167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10168 choke me
10169 #else
10170 char (*f) () = $ac_func;
10171 #endif
10172 #ifdef __cplusplus
10173 }
10174 #endif
10175
10176 int
10177 main ()
10178 {
10179 return f != $ac_func;
10180 ;
10181 return 0;
10182 }
10183 _ACEOF
10184 rm -f conftest.$ac_objext conftest$ac_exeext
10185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10186 (eval $ac_link) 2>conftest.er1
10187 ac_status=$?
10188 grep -v '^ *+' conftest.er1 >conftest.err
10189 rm -f conftest.er1
10190 cat conftest.err >&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); } &&
10193 { ac_try='test -z "$ac_c_werror_flag"
10194 || test ! -s conftest.err'
10195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196 (eval $ac_try) 2>&5
10197 ac_status=$?
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); }; } &&
10200 { ac_try='test -s conftest$ac_exeext'
10201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202 (eval $ac_try) 2>&5
10203 ac_status=$?
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; }; then
10206 eval "$as_ac_var=yes"
10207 else
10208 echo "$as_me: failed program was:" >&5
10209 sed 's/^/| /' conftest.$ac_ext >&5
10210
10211 eval "$as_ac_var=no"
10212 fi
10213 rm -f conftest.err conftest.$ac_objext \
10214 conftest$ac_exeext conftest.$ac_ext
10215 fi
10216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10217 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10218 if test `eval echo '${'$as_ac_var'}'` = yes; then
10219 cat >>confdefs.h <<_ACEOF
10220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10221 _ACEOF
10222
10223 fi
10224 done
10225
10226
10227 for ac_func in strtoull
10228 do
10229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10230 echo "$as_me:$LINENO: checking for $ac_func" >&5
10231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10232 if eval "test \"\${$as_ac_var+set}\" = set"; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10234 else
10235 cat >conftest.$ac_ext <<_ACEOF
10236 /* confdefs.h. */
10237 _ACEOF
10238 cat confdefs.h >>conftest.$ac_ext
10239 cat >>conftest.$ac_ext <<_ACEOF
10240 /* end confdefs.h. */
10241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10243 #define $ac_func innocuous_$ac_func
10244
10245 /* System header to define __stub macros and hopefully few prototypes,
10246 which can conflict with char $ac_func (); below.
10247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10248 <limits.h> exists even on freestanding compilers. */
10249
10250 #ifdef __STDC__
10251 # include <limits.h>
10252 #else
10253 # include <assert.h>
10254 #endif
10255
10256 #undef $ac_func
10257
10258 /* Override any gcc2 internal prototype to avoid an error. */
10259 #ifdef __cplusplus
10260 extern "C"
10261 {
10262 #endif
10263 /* We use char because int might match the return type of a gcc2
10264 builtin and then its argument prototype would still apply. */
10265 char $ac_func ();
10266 /* The GNU C library defines this for functions which it implements
10267 to always fail with ENOSYS. Some functions are actually named
10268 something starting with __ and the normal name is an alias. */
10269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10270 choke me
10271 #else
10272 char (*f) () = $ac_func;
10273 #endif
10274 #ifdef __cplusplus
10275 }
10276 #endif
10277
10278 int
10279 main ()
10280 {
10281 return f != $ac_func;
10282 ;
10283 return 0;
10284 }
10285 _ACEOF
10286 rm -f conftest.$ac_objext conftest$ac_exeext
10287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10288 (eval $ac_link) 2>conftest.er1
10289 ac_status=$?
10290 grep -v '^ *+' conftest.er1 >conftest.err
10291 rm -f conftest.er1
10292 cat conftest.err >&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); } &&
10295 { ac_try='test -z "$ac_c_werror_flag"
10296 || test ! -s conftest.err'
10297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298 (eval $ac_try) 2>&5
10299 ac_status=$?
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); }; } &&
10302 { ac_try='test -s conftest$ac_exeext'
10303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304 (eval $ac_try) 2>&5
10305 ac_status=$?
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; }; then
10308 eval "$as_ac_var=yes"
10309 else
10310 echo "$as_me: failed program was:" >&5
10311 sed 's/^/| /' conftest.$ac_ext >&5
10312
10313 eval "$as_ac_var=no"
10314 fi
10315 rm -f conftest.err conftest.$ac_objext \
10316 conftest$ac_exeext conftest.$ac_ext
10317 fi
10318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10319 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10320 if test `eval echo '${'$as_ac_var'}'` = yes; then
10321 cat >>confdefs.h <<_ACEOF
10322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10323 _ACEOF
10324
10325 fi
10326 done
10327
10328
10329 echo "$as_me:$LINENO: checking whether basename is declared" >&5
10330 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
10331 if test "${ac_cv_have_decl_basename+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10333 else
10334 cat >conftest.$ac_ext <<_ACEOF
10335 /* confdefs.h. */
10336 _ACEOF
10337 cat confdefs.h >>conftest.$ac_ext
10338 cat >>conftest.$ac_ext <<_ACEOF
10339 /* end confdefs.h. */
10340 $ac_includes_default
10341 int
10342 main ()
10343 {
10344 #ifndef basename
10345 char *p = (char *) basename;
10346 #endif
10347
10348 ;
10349 return 0;
10350 }
10351 _ACEOF
10352 rm -f conftest.$ac_objext
10353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10354 (eval $ac_compile) 2>conftest.er1
10355 ac_status=$?
10356 grep -v '^ *+' conftest.er1 >conftest.err
10357 rm -f conftest.er1
10358 cat conftest.err >&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } &&
10361 { ac_try='test -z "$ac_c_werror_flag"
10362 || test ! -s conftest.err'
10363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364 (eval $ac_try) 2>&5
10365 ac_status=$?
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); }; } &&
10368 { ac_try='test -s conftest.$ac_objext'
10369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10370 (eval $ac_try) 2>&5
10371 ac_status=$?
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; }; then
10374 ac_cv_have_decl_basename=yes
10375 else
10376 echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10378
10379 ac_cv_have_decl_basename=no
10380 fi
10381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10382 fi
10383 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
10384 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
10385 if test $ac_cv_have_decl_basename = yes; then
10386
10387 cat >>confdefs.h <<_ACEOF
10388 #define HAVE_DECL_BASENAME 1
10389 _ACEOF
10390
10391
10392 else
10393 cat >>confdefs.h <<_ACEOF
10394 #define HAVE_DECL_BASENAME 0
10395 _ACEOF
10396
10397
10398 fi
10399
10400
10401 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
10402 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
10403 if test "${ac_cv_have_decl_ftello+set}" = set; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10405 else
10406 cat >conftest.$ac_ext <<_ACEOF
10407 /* confdefs.h. */
10408 _ACEOF
10409 cat confdefs.h >>conftest.$ac_ext
10410 cat >>conftest.$ac_ext <<_ACEOF
10411 /* end confdefs.h. */
10412 $ac_includes_default
10413 int
10414 main ()
10415 {
10416 #ifndef ftello
10417 char *p = (char *) ftello;
10418 #endif
10419
10420 ;
10421 return 0;
10422 }
10423 _ACEOF
10424 rm -f conftest.$ac_objext
10425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10426 (eval $ac_compile) 2>conftest.er1
10427 ac_status=$?
10428 grep -v '^ *+' conftest.er1 >conftest.err
10429 rm -f conftest.er1
10430 cat conftest.err >&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } &&
10433 { ac_try='test -z "$ac_c_werror_flag"
10434 || test ! -s conftest.err'
10435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10436 (eval $ac_try) 2>&5
10437 ac_status=$?
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); }; } &&
10440 { ac_try='test -s conftest.$ac_objext'
10441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10442 (eval $ac_try) 2>&5
10443 ac_status=$?
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); }; }; then
10446 ac_cv_have_decl_ftello=yes
10447 else
10448 echo "$as_me: failed program was:" >&5
10449 sed 's/^/| /' conftest.$ac_ext >&5
10450
10451 ac_cv_have_decl_ftello=no
10452 fi
10453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10454 fi
10455 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
10456 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
10457 if test $ac_cv_have_decl_ftello = yes; then
10458
10459 cat >>confdefs.h <<_ACEOF
10460 #define HAVE_DECL_FTELLO 1
10461 _ACEOF
10462
10463
10464 else
10465 cat >>confdefs.h <<_ACEOF
10466 #define HAVE_DECL_FTELLO 0
10467 _ACEOF
10468
10469
10470 fi
10471
10472
10473 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
10474 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
10475 if test "${ac_cv_have_decl_ftello64+set}" = set; then
10476 echo $ECHO_N "(cached) $ECHO_C" >&6
10477 else
10478 cat >conftest.$ac_ext <<_ACEOF
10479 /* confdefs.h. */
10480 _ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h. */
10484 $ac_includes_default
10485 int
10486 main ()
10487 {
10488 #ifndef ftello64
10489 char *p = (char *) ftello64;
10490 #endif
10491
10492 ;
10493 return 0;
10494 }
10495 _ACEOF
10496 rm -f conftest.$ac_objext
10497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10498 (eval $ac_compile) 2>conftest.er1
10499 ac_status=$?
10500 grep -v '^ *+' conftest.er1 >conftest.err
10501 rm -f conftest.er1
10502 cat conftest.err >&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); } &&
10505 { ac_try='test -z "$ac_c_werror_flag"
10506 || test ! -s conftest.err'
10507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508 (eval $ac_try) 2>&5
10509 ac_status=$?
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; } &&
10512 { ac_try='test -s conftest.$ac_objext'
10513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10514 (eval $ac_try) 2>&5
10515 ac_status=$?
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); }; }; then
10518 ac_cv_have_decl_ftello64=yes
10519 else
10520 echo "$as_me: failed program was:" >&5
10521 sed 's/^/| /' conftest.$ac_ext >&5
10522
10523 ac_cv_have_decl_ftello64=no
10524 fi
10525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10526 fi
10527 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
10528 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
10529 if test $ac_cv_have_decl_ftello64 = yes; then
10530
10531 cat >>confdefs.h <<_ACEOF
10532 #define HAVE_DECL_FTELLO64 1
10533 _ACEOF
10534
10535
10536 else
10537 cat >>confdefs.h <<_ACEOF
10538 #define HAVE_DECL_FTELLO64 0
10539 _ACEOF
10540
10541
10542 fi
10543
10544
10545 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
10546 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
10547 if test "${ac_cv_have_decl_fseeko+set}" = set; then
10548 echo $ECHO_N "(cached) $ECHO_C" >&6
10549 else
10550 cat >conftest.$ac_ext <<_ACEOF
10551 /* confdefs.h. */
10552 _ACEOF
10553 cat confdefs.h >>conftest.$ac_ext
10554 cat >>conftest.$ac_ext <<_ACEOF
10555 /* end confdefs.h. */
10556 $ac_includes_default
10557 int
10558 main ()
10559 {
10560 #ifndef fseeko
10561 char *p = (char *) fseeko;
10562 #endif
10563
10564 ;
10565 return 0;
10566 }
10567 _ACEOF
10568 rm -f conftest.$ac_objext
10569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10570 (eval $ac_compile) 2>conftest.er1
10571 ac_status=$?
10572 grep -v '^ *+' conftest.er1 >conftest.err
10573 rm -f conftest.er1
10574 cat conftest.err >&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); } &&
10577 { ac_try='test -z "$ac_c_werror_flag"
10578 || test ! -s conftest.err'
10579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580 (eval $ac_try) 2>&5
10581 ac_status=$?
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); }; } &&
10584 { ac_try='test -s conftest.$ac_objext'
10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10587 ac_status=$?
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }; then
10590 ac_cv_have_decl_fseeko=yes
10591 else
10592 echo "$as_me: failed program was:" >&5
10593 sed 's/^/| /' conftest.$ac_ext >&5
10594
10595 ac_cv_have_decl_fseeko=no
10596 fi
10597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10598 fi
10599 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
10600 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
10601 if test $ac_cv_have_decl_fseeko = yes; then
10602
10603 cat >>confdefs.h <<_ACEOF
10604 #define HAVE_DECL_FSEEKO 1
10605 _ACEOF
10606
10607
10608 else
10609 cat >>confdefs.h <<_ACEOF
10610 #define HAVE_DECL_FSEEKO 0
10611 _ACEOF
10612
10613
10614 fi
10615
10616
10617 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
10618 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
10619 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
10620 echo $ECHO_N "(cached) $ECHO_C" >&6
10621 else
10622 cat >conftest.$ac_ext <<_ACEOF
10623 /* confdefs.h. */
10624 _ACEOF
10625 cat confdefs.h >>conftest.$ac_ext
10626 cat >>conftest.$ac_ext <<_ACEOF
10627 /* end confdefs.h. */
10628 $ac_includes_default
10629 int
10630 main ()
10631 {
10632 #ifndef fseeko64
10633 char *p = (char *) fseeko64;
10634 #endif
10635
10636 ;
10637 return 0;
10638 }
10639 _ACEOF
10640 rm -f conftest.$ac_objext
10641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10642 (eval $ac_compile) 2>conftest.er1
10643 ac_status=$?
10644 grep -v '^ *+' conftest.er1 >conftest.err
10645 rm -f conftest.er1
10646 cat conftest.err >&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); } &&
10649 { ac_try='test -z "$ac_c_werror_flag"
10650 || test ! -s conftest.err'
10651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652 (eval $ac_try) 2>&5
10653 ac_status=$?
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); }; } &&
10656 { ac_try='test -s conftest.$ac_objext'
10657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658 (eval $ac_try) 2>&5
10659 ac_status=$?
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; }; then
10662 ac_cv_have_decl_fseeko64=yes
10663 else
10664 echo "$as_me: failed program was:" >&5
10665 sed 's/^/| /' conftest.$ac_ext >&5
10666
10667 ac_cv_have_decl_fseeko64=no
10668 fi
10669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10670 fi
10671 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
10672 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
10673 if test $ac_cv_have_decl_fseeko64 = yes; then
10674
10675 cat >>confdefs.h <<_ACEOF
10676 #define HAVE_DECL_FSEEKO64 1
10677 _ACEOF
10678
10679
10680 else
10681 cat >>confdefs.h <<_ACEOF
10682 #define HAVE_DECL_FSEEKO64 0
10683 _ACEOF
10684
10685
10686 fi
10687
10688
10689
10690
10691 case "${host}" in
10692 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
10693
10694 cat >>confdefs.h <<\_ACEOF
10695 #define USE_BINARY_FOPEN 1
10696 _ACEOF
10697 ;;
10698 esac
10699
10700 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
10701 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
10702 if test "${ac_cv_have_decl_ffs+set}" = set; then
10703 echo $ECHO_N "(cached) $ECHO_C" >&6
10704 else
10705 cat >conftest.$ac_ext <<_ACEOF
10706 /* confdefs.h. */
10707 _ACEOF
10708 cat confdefs.h >>conftest.$ac_ext
10709 cat >>conftest.$ac_ext <<_ACEOF
10710 /* end confdefs.h. */
10711 $ac_includes_default
10712 int
10713 main ()
10714 {
10715 #ifndef ffs
10716 char *p = (char *) ffs;
10717 #endif
10718
10719 ;
10720 return 0;
10721 }
10722 _ACEOF
10723 rm -f conftest.$ac_objext
10724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10725 (eval $ac_compile) 2>conftest.er1
10726 ac_status=$?
10727 grep -v '^ *+' conftest.er1 >conftest.err
10728 rm -f conftest.er1
10729 cat conftest.err >&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); } &&
10732 { ac_try='test -z "$ac_c_werror_flag"
10733 || test ! -s conftest.err'
10734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10735 (eval $ac_try) 2>&5
10736 ac_status=$?
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); }; } &&
10739 { ac_try='test -s conftest.$ac_objext'
10740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10741 (eval $ac_try) 2>&5
10742 ac_status=$?
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); }; }; then
10745 ac_cv_have_decl_ffs=yes
10746 else
10747 echo "$as_me: failed program was:" >&5
10748 sed 's/^/| /' conftest.$ac_ext >&5
10749
10750 ac_cv_have_decl_ffs=no
10751 fi
10752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10753 fi
10754 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
10755 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
10756 if test $ac_cv_have_decl_ffs = yes; then
10757
10758 cat >>confdefs.h <<_ACEOF
10759 #define HAVE_DECL_FFS 1
10760 _ACEOF
10761
10762
10763 else
10764 cat >>confdefs.h <<_ACEOF
10765 #define HAVE_DECL_FFS 0
10766 _ACEOF
10767
10768
10769 fi
10770
10771
10772 echo "$as_me:$LINENO: checking whether free is declared" >&5
10773 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
10774 if test "${ac_cv_have_decl_free+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10776 else
10777 cat >conftest.$ac_ext <<_ACEOF
10778 /* confdefs.h. */
10779 _ACEOF
10780 cat confdefs.h >>conftest.$ac_ext
10781 cat >>conftest.$ac_ext <<_ACEOF
10782 /* end confdefs.h. */
10783 $ac_includes_default
10784 int
10785 main ()
10786 {
10787 #ifndef free
10788 char *p = (char *) free;
10789 #endif
10790
10791 ;
10792 return 0;
10793 }
10794 _ACEOF
10795 rm -f conftest.$ac_objext
10796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10797 (eval $ac_compile) 2>conftest.er1
10798 ac_status=$?
10799 grep -v '^ *+' conftest.er1 >conftest.err
10800 rm -f conftest.er1
10801 cat conftest.err >&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } &&
10804 { ac_try='test -z "$ac_c_werror_flag"
10805 || test ! -s conftest.err'
10806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10807 (eval $ac_try) 2>&5
10808 ac_status=$?
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }; } &&
10811 { ac_try='test -s conftest.$ac_objext'
10812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813 (eval $ac_try) 2>&5
10814 ac_status=$?
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; }; then
10817 ac_cv_have_decl_free=yes
10818 else
10819 echo "$as_me: failed program was:" >&5
10820 sed 's/^/| /' conftest.$ac_ext >&5
10821
10822 ac_cv_have_decl_free=no
10823 fi
10824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10825 fi
10826 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
10827 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
10828 if test $ac_cv_have_decl_free = yes; then
10829
10830 cat >>confdefs.h <<_ACEOF
10831 #define HAVE_DECL_FREE 1
10832 _ACEOF
10833
10834
10835 else
10836 cat >>confdefs.h <<_ACEOF
10837 #define HAVE_DECL_FREE 0
10838 _ACEOF
10839
10840
10841 fi
10842
10843
10844 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10845 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
10846 if test "${ac_cv_have_decl_getenv+set}" = set; then
10847 echo $ECHO_N "(cached) $ECHO_C" >&6
10848 else
10849 cat >conftest.$ac_ext <<_ACEOF
10850 /* confdefs.h. */
10851 _ACEOF
10852 cat confdefs.h >>conftest.$ac_ext
10853 cat >>conftest.$ac_ext <<_ACEOF
10854 /* end confdefs.h. */
10855 $ac_includes_default
10856 int
10857 main ()
10858 {
10859 #ifndef getenv
10860 char *p = (char *) getenv;
10861 #endif
10862
10863 ;
10864 return 0;
10865 }
10866 _ACEOF
10867 rm -f conftest.$ac_objext
10868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10869 (eval $ac_compile) 2>conftest.er1
10870 ac_status=$?
10871 grep -v '^ *+' conftest.er1 >conftest.err
10872 rm -f conftest.er1
10873 cat conftest.err >&5
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); } &&
10876 { ac_try='test -z "$ac_c_werror_flag"
10877 || test ! -s conftest.err'
10878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10879 (eval $ac_try) 2>&5
10880 ac_status=$?
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); }; } &&
10883 { ac_try='test -s conftest.$ac_objext'
10884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885 (eval $ac_try) 2>&5
10886 ac_status=$?
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; }; then
10889 ac_cv_have_decl_getenv=yes
10890 else
10891 echo "$as_me: failed program was:" >&5
10892 sed 's/^/| /' conftest.$ac_ext >&5
10893
10894 ac_cv_have_decl_getenv=no
10895 fi
10896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10897 fi
10898 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
10899 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
10900 if test $ac_cv_have_decl_getenv = yes; then
10901
10902 cat >>confdefs.h <<_ACEOF
10903 #define HAVE_DECL_GETENV 1
10904 _ACEOF
10905
10906
10907 else
10908 cat >>confdefs.h <<_ACEOF
10909 #define HAVE_DECL_GETENV 0
10910 _ACEOF
10911
10912
10913 fi
10914
10915
10916 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
10917 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
10918 if test "${ac_cv_have_decl_malloc+set}" = set; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10920 else
10921 cat >conftest.$ac_ext <<_ACEOF
10922 /* confdefs.h. */
10923 _ACEOF
10924 cat confdefs.h >>conftest.$ac_ext
10925 cat >>conftest.$ac_ext <<_ACEOF
10926 /* end confdefs.h. */
10927 $ac_includes_default
10928 int
10929 main ()
10930 {
10931 #ifndef malloc
10932 char *p = (char *) malloc;
10933 #endif
10934
10935 ;
10936 return 0;
10937 }
10938 _ACEOF
10939 rm -f conftest.$ac_objext
10940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10941 (eval $ac_compile) 2>conftest.er1
10942 ac_status=$?
10943 grep -v '^ *+' conftest.er1 >conftest.err
10944 rm -f conftest.er1
10945 cat conftest.err >&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); } &&
10948 { ac_try='test -z "$ac_c_werror_flag"
10949 || test ! -s conftest.err'
10950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10951 (eval $ac_try) 2>&5
10952 ac_status=$?
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); }; } &&
10955 { ac_try='test -s conftest.$ac_objext'
10956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10957 (eval $ac_try) 2>&5
10958 ac_status=$?
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); }; }; then
10961 ac_cv_have_decl_malloc=yes
10962 else
10963 echo "$as_me: failed program was:" >&5
10964 sed 's/^/| /' conftest.$ac_ext >&5
10965
10966 ac_cv_have_decl_malloc=no
10967 fi
10968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10969 fi
10970 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
10971 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
10972 if test $ac_cv_have_decl_malloc = yes; then
10973
10974 cat >>confdefs.h <<_ACEOF
10975 #define HAVE_DECL_MALLOC 1
10976 _ACEOF
10977
10978
10979 else
10980 cat >>confdefs.h <<_ACEOF
10981 #define HAVE_DECL_MALLOC 0
10982 _ACEOF
10983
10984
10985 fi
10986
10987
10988 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
10989 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
10990 if test "${ac_cv_have_decl_realloc+set}" = set; then
10991 echo $ECHO_N "(cached) $ECHO_C" >&6
10992 else
10993 cat >conftest.$ac_ext <<_ACEOF
10994 /* confdefs.h. */
10995 _ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h. */
10999 $ac_includes_default
11000 int
11001 main ()
11002 {
11003 #ifndef realloc
11004 char *p = (char *) realloc;
11005 #endif
11006
11007 ;
11008 return 0;
11009 }
11010 _ACEOF
11011 rm -f conftest.$ac_objext
11012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11013 (eval $ac_compile) 2>conftest.er1
11014 ac_status=$?
11015 grep -v '^ *+' conftest.er1 >conftest.err
11016 rm -f conftest.er1
11017 cat conftest.err >&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); } &&
11020 { ac_try='test -z "$ac_c_werror_flag"
11021 || test ! -s conftest.err'
11022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023 (eval $ac_try) 2>&5
11024 ac_status=$?
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; } &&
11027 { ac_try='test -s conftest.$ac_objext'
11028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029 (eval $ac_try) 2>&5
11030 ac_status=$?
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
11033 ac_cv_have_decl_realloc=yes
11034 else
11035 echo "$as_me: failed program was:" >&5
11036 sed 's/^/| /' conftest.$ac_ext >&5
11037
11038 ac_cv_have_decl_realloc=no
11039 fi
11040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11041 fi
11042 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
11043 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
11044 if test $ac_cv_have_decl_realloc = yes; then
11045
11046 cat >>confdefs.h <<_ACEOF
11047 #define HAVE_DECL_REALLOC 1
11048 _ACEOF
11049
11050
11051 else
11052 cat >>confdefs.h <<_ACEOF
11053 #define HAVE_DECL_REALLOC 0
11054 _ACEOF
11055
11056
11057 fi
11058
11059
11060 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
11061 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
11062 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
11063 echo $ECHO_N "(cached) $ECHO_C" >&6
11064 else
11065 cat >conftest.$ac_ext <<_ACEOF
11066 /* confdefs.h. */
11067 _ACEOF
11068 cat confdefs.h >>conftest.$ac_ext
11069 cat >>conftest.$ac_ext <<_ACEOF
11070 /* end confdefs.h. */
11071 $ac_includes_default
11072 int
11073 main ()
11074 {
11075 #ifndef stpcpy
11076 char *p = (char *) stpcpy;
11077 #endif
11078
11079 ;
11080 return 0;
11081 }
11082 _ACEOF
11083 rm -f conftest.$ac_objext
11084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11085 (eval $ac_compile) 2>conftest.er1
11086 ac_status=$?
11087 grep -v '^ *+' conftest.er1 >conftest.err
11088 rm -f conftest.er1
11089 cat conftest.err >&5
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); } &&
11092 { ac_try='test -z "$ac_c_werror_flag"
11093 || test ! -s conftest.err'
11094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11095 (eval $ac_try) 2>&5
11096 ac_status=$?
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); }; } &&
11099 { ac_try='test -s conftest.$ac_objext'
11100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11101 (eval $ac_try) 2>&5
11102 ac_status=$?
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); }; }; then
11105 ac_cv_have_decl_stpcpy=yes
11106 else
11107 echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11109
11110 ac_cv_have_decl_stpcpy=no
11111 fi
11112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11113 fi
11114 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
11115 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
11116 if test $ac_cv_have_decl_stpcpy = yes; then
11117
11118 cat >>confdefs.h <<_ACEOF
11119 #define HAVE_DECL_STPCPY 1
11120 _ACEOF
11121
11122
11123 else
11124 cat >>confdefs.h <<_ACEOF
11125 #define HAVE_DECL_STPCPY 0
11126 _ACEOF
11127
11128
11129 fi
11130
11131
11132 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
11133 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
11134 if test "${ac_cv_have_decl_strstr+set}" = set; then
11135 echo $ECHO_N "(cached) $ECHO_C" >&6
11136 else
11137 cat >conftest.$ac_ext <<_ACEOF
11138 /* confdefs.h. */
11139 _ACEOF
11140 cat confdefs.h >>conftest.$ac_ext
11141 cat >>conftest.$ac_ext <<_ACEOF
11142 /* end confdefs.h. */
11143 $ac_includes_default
11144 int
11145 main ()
11146 {
11147 #ifndef strstr
11148 char *p = (char *) strstr;
11149 #endif
11150
11151 ;
11152 return 0;
11153 }
11154 _ACEOF
11155 rm -f conftest.$ac_objext
11156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11157 (eval $ac_compile) 2>conftest.er1
11158 ac_status=$?
11159 grep -v '^ *+' conftest.er1 >conftest.err
11160 rm -f conftest.er1
11161 cat conftest.err >&5
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); } &&
11164 { ac_try='test -z "$ac_c_werror_flag"
11165 || test ! -s conftest.err'
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11168 ac_status=$?
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; } &&
11171 { ac_try='test -s conftest.$ac_objext'
11172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11173 (eval $ac_try) 2>&5
11174 ac_status=$?
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); }; }; then
11177 ac_cv_have_decl_strstr=yes
11178 else
11179 echo "$as_me: failed program was:" >&5
11180 sed 's/^/| /' conftest.$ac_ext >&5
11181
11182 ac_cv_have_decl_strstr=no
11183 fi
11184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11185 fi
11186 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
11187 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
11188 if test $ac_cv_have_decl_strstr = yes; then
11189
11190 cat >>confdefs.h <<_ACEOF
11191 #define HAVE_DECL_STRSTR 1
11192 _ACEOF
11193
11194
11195 else
11196 cat >>confdefs.h <<_ACEOF
11197 #define HAVE_DECL_STRSTR 0
11198 _ACEOF
11199
11200
11201 fi
11202
11203
11204 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11205 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11206 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11208 else
11209 cat >conftest.$ac_ext <<_ACEOF
11210 /* confdefs.h. */
11211 _ACEOF
11212 cat confdefs.h >>conftest.$ac_ext
11213 cat >>conftest.$ac_ext <<_ACEOF
11214 /* end confdefs.h. */
11215 $ac_includes_default
11216 int
11217 main ()
11218 {
11219 #ifndef snprintf
11220 char *p = (char *) snprintf;
11221 #endif
11222
11223 ;
11224 return 0;
11225 }
11226 _ACEOF
11227 rm -f conftest.$ac_objext
11228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11229 (eval $ac_compile) 2>conftest.er1
11230 ac_status=$?
11231 grep -v '^ *+' conftest.er1 >conftest.err
11232 rm -f conftest.er1
11233 cat conftest.err >&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } &&
11236 { ac_try='test -z "$ac_c_werror_flag"
11237 || test ! -s conftest.err'
11238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11240 ac_status=$?
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; } &&
11243 { ac_try='test -s conftest.$ac_objext'
11244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245 (eval $ac_try) 2>&5
11246 ac_status=$?
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); }; }; then
11249 ac_cv_have_decl_snprintf=yes
11250 else
11251 echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.$ac_ext >&5
11253
11254 ac_cv_have_decl_snprintf=no
11255 fi
11256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11257 fi
11258 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11259 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11260 if test $ac_cv_have_decl_snprintf = yes; then
11261
11262 cat >>confdefs.h <<_ACEOF
11263 #define HAVE_DECL_SNPRINTF 1
11264 _ACEOF
11265
11266
11267 else
11268 cat >>confdefs.h <<_ACEOF
11269 #define HAVE_DECL_SNPRINTF 0
11270 _ACEOF
11271
11272
11273 fi
11274
11275
11276 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11277 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11278 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11279 echo $ECHO_N "(cached) $ECHO_C" >&6
11280 else
11281 cat >conftest.$ac_ext <<_ACEOF
11282 /* confdefs.h. */
11283 _ACEOF
11284 cat confdefs.h >>conftest.$ac_ext
11285 cat >>conftest.$ac_ext <<_ACEOF
11286 /* end confdefs.h. */
11287 $ac_includes_default
11288 int
11289 main ()
11290 {
11291 #ifndef vsnprintf
11292 char *p = (char *) vsnprintf;
11293 #endif
11294
11295 ;
11296 return 0;
11297 }
11298 _ACEOF
11299 rm -f conftest.$ac_objext
11300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11301 (eval $ac_compile) 2>conftest.er1
11302 ac_status=$?
11303 grep -v '^ *+' conftest.er1 >conftest.err
11304 rm -f conftest.er1
11305 cat conftest.err >&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); } &&
11308 { ac_try='test -z "$ac_c_werror_flag"
11309 || test ! -s conftest.err'
11310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11311 (eval $ac_try) 2>&5
11312 ac_status=$?
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; } &&
11315 { ac_try='test -s conftest.$ac_objext'
11316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11317 (eval $ac_try) 2>&5
11318 ac_status=$?
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); }; }; then
11321 ac_cv_have_decl_vsnprintf=yes
11322 else
11323 echo "$as_me: failed program was:" >&5
11324 sed 's/^/| /' conftest.$ac_ext >&5
11325
11326 ac_cv_have_decl_vsnprintf=no
11327 fi
11328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11329 fi
11330 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11331 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11332 if test $ac_cv_have_decl_vsnprintf = yes; then
11333
11334 cat >>confdefs.h <<_ACEOF
11335 #define HAVE_DECL_VSNPRINTF 1
11336 _ACEOF
11337
11338
11339 else
11340 cat >>confdefs.h <<_ACEOF
11341 #define HAVE_DECL_VSNPRINTF 0
11342 _ACEOF
11343
11344
11345 fi
11346
11347
11348
11349 # If we are configured native, pick a core file support file.
11350 COREFILE=
11351 COREFLAG=
11352 TRAD_HEADER=
11353 if test "${target}" = "${host}"; then
11354 case "${host}" in
11355 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
11356 COREFILE=''
11357 ;;
11358 alpha*-*-linux-*)
11359 COREFILE=trad-core.lo
11360 TRAD_HEADER='"hosts/alphalinux.h"'
11361 ;;
11362 alpha*-*-netbsd* | alpha*-*-openbsd*)
11363 COREFILE=netbsd-core.lo
11364 ;;
11365 alpha*-*-*) COREFILE=osf-core.lo ;;
11366 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
11367 COREFILE='' ;;
11368 arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
11369 arm-*-riscix) COREFILE=trad-core.lo ;;
11370 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
11371 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
11372 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
11373 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
11374 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
11375 hppa*-*-netbsd* | hppa*-*-openbsd*)
11376 COREFILE=netbsd-core.lo
11377 ;;
11378
11379 i370-*-*)
11380 COREFILE=trad-core.lo
11381 TRAD_HEADER='"hosts/i370linux.h"'
11382 ;;
11383
11384 i[3-7]86-sequent-bsd*)
11385 COREFILE=trad-core.lo
11386 TRAD_HEADER='"hosts/symmetry.h"'
11387 ;;
11388 i[3-7]86-sequent-sysv4*) ;;
11389 i[3-7]86-sequent-sysv*)
11390 COREFILE=trad-core.lo
11391 TRAD_HEADER='"hosts/symmetry.h"'
11392 ;;
11393 i[3-7]86-*-bsdi)
11394 COREFILE=
11395 ;;
11396 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*)
11397 COREFILE=trad-core.lo
11398 TRAD_HEADER='"hosts/i386bsd.h"'
11399 ;;
11400 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
11401 COREFILE=''
11402 TRAD_HEADER='"hosts/i386bsd.h"'
11403 ;;
11404 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
11405 COREFILE=netbsd-core.lo
11406 ;;
11407 i[3-7]86-esix-sysv3*)
11408 COREFILE=trad-core.lo
11409 TRAD_HEADER='"hosts/esix.h"'
11410 ;;
11411 i[3-7]86-*-sco3.2v5*)
11412 COREFILE=sco5-core.lo
11413 ;;
11414 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
11415 COREFILE=trad-core.lo
11416 TRAD_HEADER='"hosts/i386sco.h"'
11417 ;;
11418 i[3-7]86-*-mach3*)
11419 COREFILE=trad-core.lo
11420 TRAD_HEADER='"hosts/i386mach3.h"'
11421 ;;
11422 i[3-7]86-*-linux-*)
11423 COREFILE=trad-core.lo
11424 TRAD_HEADER='"hosts/i386linux.h"'
11425 ;;
11426 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
11427 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
11428 i860-*-mach3* | i860-*-osf1*)
11429 COREFILE=trad-core.lo
11430 TRAD_HEADER='"hosts/i860mach3.h"'
11431 ;;
11432 mips-*-netbsd* | mips*-*-openbsd*)
11433 COREFILE=netbsd-core.lo
11434 ;;
11435 mips-dec-*)
11436 COREFILE=trad-core.lo
11437 TRAD_HEADER='"hosts/decstation.h"'
11438 ;;
11439 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
11440 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
11441 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
11442 mips-*-sysv4*) ;;
11443 mips-*-sysv* | mips-*-riscos*)
11444 COREFILE=trad-core.lo
11445 TRAD_HEADER='"hosts/riscos.h"'
11446 ;;
11447 mips-sony-bsd*)
11448 COREFILE=trad-core.lo
11449 TRAD_HEADER='"hosts/news-mips.h"'
11450 ;;
11451 m68*-bull*-sysv*)
11452 COREFILE=trad-core.lo
11453 TRAD_HEADER='"hosts/dpx2.h"'
11454 ;;
11455 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
11456 m68*-hp-bsd*)
11457 COREFILE=trad-core.lo
11458 TRAD_HEADER='"hosts/hp300bsd.h"'
11459 ;;
11460 m68*-*-linux-*)
11461 COREFILE=trad-core.lo
11462 TRAD_HEADER='"hosts/m68klinux.h"'
11463 ;;
11464 m68*-motorola-sysv*)
11465 COREFILE=trad-core.lo
11466 TRAD_HEADER='"hosts/delta68.h"'
11467 ;;
11468 m68*-sony-*)
11469 COREFILE=trad-core.lo
11470 TRAD_HEADER='"hosts/news.h"'
11471 ;;
11472 m68*-*-netbsd* | m68*-*-openbsd*)
11473 COREFILE=netbsd-core.lo
11474 ;;
11475 m68*-apple-aux*)
11476 COREFILE=trad-core.lo
11477 TRAD_HEADER='"hosts/m68kaux.h"'
11478 ;;
11479 m88*-*-sysv4*)
11480 ;;
11481 m88*-motorola-sysv*)
11482 COREFILE=ptrace-core.lo
11483 ;;
11484 m88*-*-mach3*)
11485 COREFILE=trad-core.lo
11486 TRAD_HEADER='"hosts/m88kmach3.h"'
11487 ;;
11488 m88*-*-openbsd*)
11489 COREFILE=netbsd-core.lo
11490 ;;
11491 ns32k-pc532-mach)
11492 COREFILE=trad-core.lo
11493 TRAD_HEADER='"hosts/pc532mach.h"'
11494 ;;
11495 ns32k-*-netbsd* | ns32k-*-openbsd*)
11496 COREFILE=netbsd-core.lo
11497 ;;
11498 rs6000-*-lynx*)
11499 COREFILE=lynx-core.lo
11500 ;;
11501 rs6000-*-aix5.* | powerpc-*-aix5.*)
11502 COREFILE=rs6000-core.lo
11503 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
11504 ;;
11505 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
11506 COREFILE=rs6000-core.lo
11507 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
11508 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
11509 # have c_impl as a member of struct core_dumpx
11510 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
11511 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
11512 cat >conftest.$ac_ext <<_ACEOF
11513 /* confdefs.h. */
11514 _ACEOF
11515 cat confdefs.h >>conftest.$ac_ext
11516 cat >>conftest.$ac_ext <<_ACEOF
11517 /* end confdefs.h. */
11518 #include <core.h>
11519 int
11520 main ()
11521 {
11522 struct core_dumpx c; c.c_impl = 0;
11523 ;
11524 return 0;
11525 }
11526 _ACEOF
11527 rm -f conftest.$ac_objext
11528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11529 (eval $ac_compile) 2>conftest.er1
11530 ac_status=$?
11531 grep -v '^ *+' conftest.er1 >conftest.err
11532 rm -f conftest.er1
11533 cat conftest.err >&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); } &&
11536 { ac_try='test -z "$ac_c_werror_flag"
11537 || test ! -s conftest.err'
11538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11539 (eval $ac_try) 2>&5
11540 ac_status=$?
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); }; } &&
11543 { ac_try='test -s conftest.$ac_objext'
11544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545 (eval $ac_try) 2>&5
11546 ac_status=$?
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; }; then
11549
11550 cat >>confdefs.h <<\_ACEOF
11551 #define HAVE_ST_C_IMPL 1
11552 _ACEOF
11553
11554 echo "$as_me:$LINENO: result: yes" >&5
11555 echo "${ECHO_T}yes" >&6
11556 else
11557 echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11559
11560 echo "$as_me:$LINENO: result: no" >&5
11561 echo "${ECHO_T}no" >&6
11562 fi
11563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11564 ;;
11565 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
11566 rs6000-*-*) COREFILE=rs6000-core.lo ;;
11567 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
11568 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
11569 powerpc-*-beos*) ;;
11570 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
11571 COREFILE='' ;;
11572 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
11573 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
11574 s390*-*-*) COREFILE=trad-core.lo ;;
11575 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
11576 sparc-*-netbsd* | sparc*-*-openbsd*)
11577 COREFILE=netbsd-core.lo
11578 ;;
11579 tahoe-*-*)
11580 COREFILE=trad-core.lo
11581 TRAD_HEADER='"hosts/tahoe.h"'
11582 ;;
11583 vax-*-netbsd* | vax-*-openbsd*)
11584 COREFILE=netbsd-core.lo
11585 ;;
11586 vax-*-ultrix2*)
11587 COREFILE=trad-core.lo
11588 TRAD_HEADER='"hosts/vaxult2.h"'
11589 ;;
11590 vax-*-ultrix*)
11591 COREFILE=trad-core.lo
11592 TRAD_HEADER='"hosts/vaxult2.h"'
11593 ;;
11594 vax-*-linux-*)
11595 COREFILE=trad-core.lo
11596 TRAD_HEADER='"hosts/vaxlinux.h"'
11597 ;;
11598 vax-*-*)
11599 COREFILE=trad-core.lo
11600 TRAD_HEADER='"hosts/vaxbsd.h"'
11601 ;;
11602 x86_64-*-netbsd* | x86_64-*-openbsd*)
11603 COREFILE=netbsd-core.lo
11604 ;;
11605 esac
11606
11607 case "$COREFILE" in
11608 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
11609 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
11610 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
11611 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
11612 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
11613 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
11614 osf-core.lo) COREFLAG=-DOSF_CORE ;;
11615 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
11616 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
11617 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
11618 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
11619 esac
11620
11621 # ELF corefile support has several flavors, but all of
11622 # them use something called <sys/procfs.h>
11623
11624 for ac_header in sys/procfs.h
11625 do
11626 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11628 echo "$as_me:$LINENO: checking for $ac_header" >&5
11629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11632 fi
11633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11635 else
11636 # Is the header compilable?
11637 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11638 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11639 cat >conftest.$ac_ext <<_ACEOF
11640 /* confdefs.h. */
11641 _ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h. */
11645 $ac_includes_default
11646 #include <$ac_header>
11647 _ACEOF
11648 rm -f conftest.$ac_objext
11649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11650 (eval $ac_compile) 2>conftest.er1
11651 ac_status=$?
11652 grep -v '^ *+' conftest.er1 >conftest.err
11653 rm -f conftest.er1
11654 cat conftest.err >&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } &&
11657 { ac_try='test -z "$ac_c_werror_flag"
11658 || test ! -s conftest.err'
11659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660 (eval $ac_try) 2>&5
11661 ac_status=$?
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); }; } &&
11664 { ac_try='test -s conftest.$ac_objext'
11665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11666 (eval $ac_try) 2>&5
11667 ac_status=$?
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); }; }; then
11670 ac_header_compiler=yes
11671 else
11672 echo "$as_me: failed program was:" >&5
11673 sed 's/^/| /' conftest.$ac_ext >&5
11674
11675 ac_header_compiler=no
11676 fi
11677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11678 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11679 echo "${ECHO_T}$ac_header_compiler" >&6
11680
11681 # Is the header present?
11682 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 #include <$ac_header>
11691 _ACEOF
11692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11694 ac_status=$?
11695 grep -v '^ *+' conftest.er1 >conftest.err
11696 rm -f conftest.er1
11697 cat conftest.err >&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } >/dev/null; then
11700 if test -s conftest.err; then
11701 ac_cpp_err=$ac_c_preproc_warn_flag
11702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11703 else
11704 ac_cpp_err=
11705 fi
11706 else
11707 ac_cpp_err=yes
11708 fi
11709 if test -z "$ac_cpp_err"; then
11710 ac_header_preproc=yes
11711 else
11712 echo "$as_me: failed program was:" >&5
11713 sed 's/^/| /' conftest.$ac_ext >&5
11714
11715 ac_header_preproc=no
11716 fi
11717 rm -f conftest.err conftest.$ac_ext
11718 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11719 echo "${ECHO_T}$ac_header_preproc" >&6
11720
11721 # So? What about this header?
11722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11723 yes:no: )
11724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11727 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11728 ac_header_preproc=yes
11729 ;;
11730 no:yes:* )
11731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11734 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11735 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11736 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11737 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11738 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11741 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11742 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11743 (
11744 cat <<\_ASBOX
11745 ## ------------------------------------------ ##
11746 ## Report this to the AC_PACKAGE_NAME lists. ##
11747 ## ------------------------------------------ ##
11748 _ASBOX
11749 ) |
11750 sed "s/^/$as_me: WARNING: /" >&2
11751 ;;
11752 esac
11753 echo "$as_me:$LINENO: checking for $ac_header" >&5
11754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11756 echo $ECHO_N "(cached) $ECHO_C" >&6
11757 else
11758 eval "$as_ac_Header=\$ac_header_preproc"
11759 fi
11760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11762
11763 fi
11764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11765 cat >>confdefs.h <<_ACEOF
11766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11767 _ACEOF
11768
11769 fi
11770
11771 done
11772
11773 if test "$ac_cv_header_sys_procfs_h" = yes; then
11774 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
11775 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
11776 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
11777 echo $ECHO_N "(cached) $ECHO_C" >&6
11778 else
11779 cat >conftest.$ac_ext <<_ACEOF
11780 /* confdefs.h. */
11781 _ACEOF
11782 cat confdefs.h >>conftest.$ac_ext
11783 cat >>conftest.$ac_ext <<_ACEOF
11784 /* end confdefs.h. */
11785
11786 #define _SYSCALL32
11787 #include <sys/procfs.h>
11788 int
11789 main ()
11790 {
11791 prstatus_t avar
11792 ;
11793 return 0;
11794 }
11795 _ACEOF
11796 rm -f conftest.$ac_objext
11797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11798 (eval $ac_compile) 2>conftest.er1
11799 ac_status=$?
11800 grep -v '^ *+' conftest.er1 >conftest.err
11801 rm -f conftest.er1
11802 cat conftest.err >&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } &&
11805 { ac_try='test -z "$ac_c_werror_flag"
11806 || test ! -s conftest.err'
11807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11808 (eval $ac_try) 2>&5
11809 ac_status=$?
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); }; } &&
11812 { ac_try='test -s conftest.$ac_objext'
11813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814 (eval $ac_try) 2>&5
11815 ac_status=$?
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; }; then
11818 bfd_cv_have_sys_procfs_type_prstatus_t=yes
11819 else
11820 echo "$as_me: failed program was:" >&5
11821 sed 's/^/| /' conftest.$ac_ext >&5
11822
11823 bfd_cv_have_sys_procfs_type_prstatus_t=no
11824
11825 fi
11826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11827 fi
11828
11829 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
11830
11831 cat >>confdefs.h <<\_ACEOF
11832 #define HAVE_PRSTATUS_T 1
11833 _ACEOF
11834
11835 fi
11836 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
11837 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
11838
11839 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
11840 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
11841 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
11842 echo $ECHO_N "(cached) $ECHO_C" >&6
11843 else
11844 cat >conftest.$ac_ext <<_ACEOF
11845 /* confdefs.h. */
11846 _ACEOF
11847 cat confdefs.h >>conftest.$ac_ext
11848 cat >>conftest.$ac_ext <<_ACEOF
11849 /* end confdefs.h. */
11850
11851 #define _SYSCALL32
11852 #include <sys/procfs.h>
11853 int
11854 main ()
11855 {
11856 prstatus32_t avar
11857 ;
11858 return 0;
11859 }
11860 _ACEOF
11861 rm -f conftest.$ac_objext
11862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11863 (eval $ac_compile) 2>conftest.er1
11864 ac_status=$?
11865 grep -v '^ *+' conftest.er1 >conftest.err
11866 rm -f conftest.er1
11867 cat conftest.err >&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); } &&
11870 { ac_try='test -z "$ac_c_werror_flag"
11871 || test ! -s conftest.err'
11872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11873 (eval $ac_try) 2>&5
11874 ac_status=$?
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); }; } &&
11877 { ac_try='test -s conftest.$ac_objext'
11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879 (eval $ac_try) 2>&5
11880 ac_status=$?
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; }; then
11883 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
11884 else
11885 echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.$ac_ext >&5
11887
11888 bfd_cv_have_sys_procfs_type_prstatus32_t=no
11889
11890 fi
11891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11892 fi
11893
11894 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
11895
11896 cat >>confdefs.h <<\_ACEOF
11897 #define HAVE_PRSTATUS32_T 1
11898 _ACEOF
11899
11900 fi
11901 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
11902 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
11903
11904 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
11905 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
11906 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11908 else
11909 cat >conftest.$ac_ext <<_ACEOF
11910 /* confdefs.h. */
11911 _ACEOF
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h. */
11915
11916 #define _SYSCALL32
11917 #include <sys/procfs.h>
11918 int
11919 main ()
11920 {
11921 prstatus_t avar; void* aref = (void*) &avar.pr_who
11922 ;
11923 return 0;
11924 }
11925 _ACEOF
11926 rm -f conftest.$ac_objext
11927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11928 (eval $ac_compile) 2>conftest.er1
11929 ac_status=$?
11930 grep -v '^ *+' conftest.er1 >conftest.err
11931 rm -f conftest.er1
11932 cat conftest.err >&5
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); } &&
11935 { ac_try='test -z "$ac_c_werror_flag"
11936 || test ! -s conftest.err'
11937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938 (eval $ac_try) 2>&5
11939 ac_status=$?
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; } &&
11942 { ac_try='test -s conftest.$ac_objext'
11943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944 (eval $ac_try) 2>&5
11945 ac_status=$?
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; }; then
11948 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
11949 else
11950 echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11952
11953 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
11954
11955 fi
11956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11957 fi
11958
11959 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
11960
11961 cat >>confdefs.h <<\_ACEOF
11962 #define HAVE_PRSTATUS_T_PR_WHO 1
11963 _ACEOF
11964
11965 fi
11966 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
11967 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
11968
11969 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
11970 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
11971 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
11972 echo $ECHO_N "(cached) $ECHO_C" >&6
11973 else
11974 cat >conftest.$ac_ext <<_ACEOF
11975 /* confdefs.h. */
11976 _ACEOF
11977 cat confdefs.h >>conftest.$ac_ext
11978 cat >>conftest.$ac_ext <<_ACEOF
11979 /* end confdefs.h. */
11980
11981 #define _SYSCALL32
11982 #include <sys/procfs.h>
11983 int
11984 main ()
11985 {
11986 prstatus32_t avar; void* aref = (void*) &avar.pr_who
11987 ;
11988 return 0;
11989 }
11990 _ACEOF
11991 rm -f conftest.$ac_objext
11992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11993 (eval $ac_compile) 2>conftest.er1
11994 ac_status=$?
11995 grep -v '^ *+' conftest.er1 >conftest.err
11996 rm -f conftest.er1
11997 cat conftest.err >&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); } &&
12000 { ac_try='test -z "$ac_c_werror_flag"
12001 || test ! -s conftest.err'
12002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12003 (eval $ac_try) 2>&5
12004 ac_status=$?
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); }; } &&
12007 { ac_try='test -s conftest.$ac_objext'
12008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12009 (eval $ac_try) 2>&5
12010 ac_status=$?
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); }; }; then
12013 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
12014 else
12015 echo "$as_me: failed program was:" >&5
12016 sed 's/^/| /' conftest.$ac_ext >&5
12017
12018 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
12019
12020 fi
12021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12022 fi
12023
12024 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
12025
12026 cat >>confdefs.h <<\_ACEOF
12027 #define HAVE_PRSTATUS32_T_PR_WHO 1
12028 _ACEOF
12029
12030 fi
12031 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
12032 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
12033
12034 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
12035 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
12036 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
12037 echo $ECHO_N "(cached) $ECHO_C" >&6
12038 else
12039 cat >conftest.$ac_ext <<_ACEOF
12040 /* confdefs.h. */
12041 _ACEOF
12042 cat confdefs.h >>conftest.$ac_ext
12043 cat >>conftest.$ac_ext <<_ACEOF
12044 /* end confdefs.h. */
12045
12046 #define _SYSCALL32
12047 #include <sys/procfs.h>
12048 int
12049 main ()
12050 {
12051 pstatus_t avar
12052 ;
12053 return 0;
12054 }
12055 _ACEOF
12056 rm -f conftest.$ac_objext
12057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12058 (eval $ac_compile) 2>conftest.er1
12059 ac_status=$?
12060 grep -v '^ *+' conftest.er1 >conftest.err
12061 rm -f conftest.er1
12062 cat conftest.err >&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } &&
12065 { ac_try='test -z "$ac_c_werror_flag"
12066 || test ! -s conftest.err'
12067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068 (eval $ac_try) 2>&5
12069 ac_status=$?
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; } &&
12072 { ac_try='test -s conftest.$ac_objext'
12073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12074 (eval $ac_try) 2>&5
12075 ac_status=$?
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); }; }; then
12078 bfd_cv_have_sys_procfs_type_pstatus_t=yes
12079 else
12080 echo "$as_me: failed program was:" >&5
12081 sed 's/^/| /' conftest.$ac_ext >&5
12082
12083 bfd_cv_have_sys_procfs_type_pstatus_t=no
12084
12085 fi
12086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12087 fi
12088
12089 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
12090
12091 cat >>confdefs.h <<\_ACEOF
12092 #define HAVE_PSTATUS_T 1
12093 _ACEOF
12094
12095 fi
12096 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
12097 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
12098
12099 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
12100 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
12101 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
12102 echo $ECHO_N "(cached) $ECHO_C" >&6
12103 else
12104 cat >conftest.$ac_ext <<_ACEOF
12105 /* confdefs.h. */
12106 _ACEOF
12107 cat confdefs.h >>conftest.$ac_ext
12108 cat >>conftest.$ac_ext <<_ACEOF
12109 /* end confdefs.h. */
12110
12111 #define _SYSCALL32
12112 #include <sys/procfs.h>
12113 int
12114 main ()
12115 {
12116 pxstatus_t avar
12117 ;
12118 return 0;
12119 }
12120 _ACEOF
12121 rm -f conftest.$ac_objext
12122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12123 (eval $ac_compile) 2>conftest.er1
12124 ac_status=$?
12125 grep -v '^ *+' conftest.er1 >conftest.err
12126 rm -f conftest.er1
12127 cat conftest.err >&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); } &&
12130 { ac_try='test -z "$ac_c_werror_flag"
12131 || test ! -s conftest.err'
12132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133 (eval $ac_try) 2>&5
12134 ac_status=$?
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; } &&
12137 { ac_try='test -s conftest.$ac_objext'
12138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12139 (eval $ac_try) 2>&5
12140 ac_status=$?
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); }; }; then
12143 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
12144 else
12145 echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.$ac_ext >&5
12147
12148 bfd_cv_have_sys_procfs_type_pxstatus_t=no
12149
12150 fi
12151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12152 fi
12153
12154 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
12155
12156 cat >>confdefs.h <<\_ACEOF
12157 #define HAVE_PXSTATUS_T 1
12158 _ACEOF
12159
12160 fi
12161 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
12162 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
12163
12164 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
12165 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
12166 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12168 else
12169 cat >conftest.$ac_ext <<_ACEOF
12170 /* confdefs.h. */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12175
12176 #define _SYSCALL32
12177 #include <sys/procfs.h>
12178 int
12179 main ()
12180 {
12181 pstatus32_t avar
12182 ;
12183 return 0;
12184 }
12185 _ACEOF
12186 rm -f conftest.$ac_objext
12187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12188 (eval $ac_compile) 2>conftest.er1
12189 ac_status=$?
12190 grep -v '^ *+' conftest.er1 >conftest.err
12191 rm -f conftest.er1
12192 cat conftest.err >&5
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); } &&
12195 { ac_try='test -z "$ac_c_werror_flag"
12196 || test ! -s conftest.err'
12197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198 (eval $ac_try) 2>&5
12199 ac_status=$?
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; } &&
12202 { ac_try='test -s conftest.$ac_objext'
12203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12204 (eval $ac_try) 2>&5
12205 ac_status=$?
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); }; }; then
12208 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
12209 else
12210 echo "$as_me: failed program was:" >&5
12211 sed 's/^/| /' conftest.$ac_ext >&5
12212
12213 bfd_cv_have_sys_procfs_type_pstatus32_t=no
12214
12215 fi
12216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12217 fi
12218
12219 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
12220
12221 cat >>confdefs.h <<\_ACEOF
12222 #define HAVE_PSTATUS32_T 1
12223 _ACEOF
12224
12225 fi
12226 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
12227 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
12228
12229 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
12230 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
12231 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
12232 echo $ECHO_N "(cached) $ECHO_C" >&6
12233 else
12234 cat >conftest.$ac_ext <<_ACEOF
12235 /* confdefs.h. */
12236 _ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h. */
12240
12241 #define _SYSCALL32
12242 #include <sys/procfs.h>
12243 int
12244 main ()
12245 {
12246 prpsinfo_t avar
12247 ;
12248 return 0;
12249 }
12250 _ACEOF
12251 rm -f conftest.$ac_objext
12252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12253 (eval $ac_compile) 2>conftest.er1
12254 ac_status=$?
12255 grep -v '^ *+' conftest.er1 >conftest.err
12256 rm -f conftest.er1
12257 cat conftest.err >&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); } &&
12260 { ac_try='test -z "$ac_c_werror_flag"
12261 || test ! -s conftest.err'
12262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12263 (eval $ac_try) 2>&5
12264 ac_status=$?
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; } &&
12267 { ac_try='test -s conftest.$ac_objext'
12268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269 (eval $ac_try) 2>&5
12270 ac_status=$?
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; }; then
12273 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
12274 else
12275 echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.$ac_ext >&5
12277
12278 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
12279
12280 fi
12281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12282 fi
12283
12284 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
12285
12286 cat >>confdefs.h <<\_ACEOF
12287 #define HAVE_PRPSINFO_T 1
12288 _ACEOF
12289
12290 fi
12291 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
12292 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
12293
12294 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
12295 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
12296 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
12297 echo $ECHO_N "(cached) $ECHO_C" >&6
12298 else
12299 cat >conftest.$ac_ext <<_ACEOF
12300 /* confdefs.h. */
12301 _ACEOF
12302 cat confdefs.h >>conftest.$ac_ext
12303 cat >>conftest.$ac_ext <<_ACEOF
12304 /* end confdefs.h. */
12305
12306 #define _SYSCALL32
12307 #include <sys/procfs.h>
12308 int
12309 main ()
12310 {
12311 prpsinfo32_t avar
12312 ;
12313 return 0;
12314 }
12315 _ACEOF
12316 rm -f conftest.$ac_objext
12317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12318 (eval $ac_compile) 2>conftest.er1
12319 ac_status=$?
12320 grep -v '^ *+' conftest.er1 >conftest.err
12321 rm -f conftest.er1
12322 cat conftest.err >&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); } &&
12325 { ac_try='test -z "$ac_c_werror_flag"
12326 || test ! -s conftest.err'
12327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12328 (eval $ac_try) 2>&5
12329 ac_status=$?
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); }; } &&
12332 { ac_try='test -s conftest.$ac_objext'
12333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12334 (eval $ac_try) 2>&5
12335 ac_status=$?
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); }; }; then
12338 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
12339 else
12340 echo "$as_me: failed program was:" >&5
12341 sed 's/^/| /' conftest.$ac_ext >&5
12342
12343 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
12344
12345 fi
12346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12347 fi
12348
12349 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
12350
12351 cat >>confdefs.h <<\_ACEOF
12352 #define HAVE_PRPSINFO32_T 1
12353 _ACEOF
12354
12355 fi
12356 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
12357 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
12358
12359 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
12360 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
12361 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
12362 echo $ECHO_N "(cached) $ECHO_C" >&6
12363 else
12364 cat >conftest.$ac_ext <<_ACEOF
12365 /* confdefs.h. */
12366 _ACEOF
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h. */
12370
12371 #define _SYSCALL32
12372 #include <sys/procfs.h>
12373 int
12374 main ()
12375 {
12376 psinfo_t avar
12377 ;
12378 return 0;
12379 }
12380 _ACEOF
12381 rm -f conftest.$ac_objext
12382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12383 (eval $ac_compile) 2>conftest.er1
12384 ac_status=$?
12385 grep -v '^ *+' conftest.er1 >conftest.err
12386 rm -f conftest.er1
12387 cat conftest.err >&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); } &&
12390 { ac_try='test -z "$ac_c_werror_flag"
12391 || test ! -s conftest.err'
12392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393 (eval $ac_try) 2>&5
12394 ac_status=$?
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; } &&
12397 { ac_try='test -s conftest.$ac_objext'
12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12400 ac_status=$?
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; }; then
12403 bfd_cv_have_sys_procfs_type_psinfo_t=yes
12404 else
12405 echo "$as_me: failed program was:" >&5
12406 sed 's/^/| /' conftest.$ac_ext >&5
12407
12408 bfd_cv_have_sys_procfs_type_psinfo_t=no
12409
12410 fi
12411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12412 fi
12413
12414 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
12415
12416 cat >>confdefs.h <<\_ACEOF
12417 #define HAVE_PSINFO_T 1
12418 _ACEOF
12419
12420 fi
12421 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
12422 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
12423
12424 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
12425 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
12426 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
12427 echo $ECHO_N "(cached) $ECHO_C" >&6
12428 else
12429 cat >conftest.$ac_ext <<_ACEOF
12430 /* confdefs.h. */
12431 _ACEOF
12432 cat confdefs.h >>conftest.$ac_ext
12433 cat >>conftest.$ac_ext <<_ACEOF
12434 /* end confdefs.h. */
12435
12436 #define _SYSCALL32
12437 #include <sys/procfs.h>
12438 int
12439 main ()
12440 {
12441 psinfo32_t avar
12442 ;
12443 return 0;
12444 }
12445 _ACEOF
12446 rm -f conftest.$ac_objext
12447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12448 (eval $ac_compile) 2>conftest.er1
12449 ac_status=$?
12450 grep -v '^ *+' conftest.er1 >conftest.err
12451 rm -f conftest.er1
12452 cat conftest.err >&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); } &&
12455 { ac_try='test -z "$ac_c_werror_flag"
12456 || test ! -s conftest.err'
12457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12458 (eval $ac_try) 2>&5
12459 ac_status=$?
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); }; } &&
12462 { ac_try='test -s conftest.$ac_objext'
12463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12464 (eval $ac_try) 2>&5
12465 ac_status=$?
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; }; then
12468 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
12469 else
12470 echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12472
12473 bfd_cv_have_sys_procfs_type_psinfo32_t=no
12474
12475 fi
12476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12477 fi
12478
12479 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
12480
12481 cat >>confdefs.h <<\_ACEOF
12482 #define HAVE_PSINFO32_T 1
12483 _ACEOF
12484
12485 fi
12486 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
12487 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
12488
12489 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
12490 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
12491 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12493 else
12494 cat >conftest.$ac_ext <<_ACEOF
12495 /* confdefs.h. */
12496 _ACEOF
12497 cat confdefs.h >>conftest.$ac_ext
12498 cat >>conftest.$ac_ext <<_ACEOF
12499 /* end confdefs.h. */
12500
12501 #define _SYSCALL32
12502 #include <sys/procfs.h>
12503 int
12504 main ()
12505 {
12506 lwpstatus_t avar
12507 ;
12508 return 0;
12509 }
12510 _ACEOF
12511 rm -f conftest.$ac_objext
12512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12513 (eval $ac_compile) 2>conftest.er1
12514 ac_status=$?
12515 grep -v '^ *+' conftest.er1 >conftest.err
12516 rm -f conftest.er1
12517 cat conftest.err >&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } &&
12520 { ac_try='test -z "$ac_c_werror_flag"
12521 || test ! -s conftest.err'
12522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523 (eval $ac_try) 2>&5
12524 ac_status=$?
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); }; } &&
12527 { ac_try='test -s conftest.$ac_objext'
12528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12529 (eval $ac_try) 2>&5
12530 ac_status=$?
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); }; }; then
12533 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
12534 else
12535 echo "$as_me: failed program was:" >&5
12536 sed 's/^/| /' conftest.$ac_ext >&5
12537
12538 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
12539
12540 fi
12541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12542 fi
12543
12544 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
12545
12546 cat >>confdefs.h <<\_ACEOF
12547 #define HAVE_LWPSTATUS_T 1
12548 _ACEOF
12549
12550 fi
12551 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
12552 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
12553
12554 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
12555 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
12556 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12558 else
12559 cat >conftest.$ac_ext <<_ACEOF
12560 /* confdefs.h. */
12561 _ACEOF
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h. */
12565
12566 #define _SYSCALL32
12567 #include <sys/procfs.h>
12568 int
12569 main ()
12570 {
12571 lwpxstatus_t avar
12572 ;
12573 return 0;
12574 }
12575 _ACEOF
12576 rm -f conftest.$ac_objext
12577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12578 (eval $ac_compile) 2>conftest.er1
12579 ac_status=$?
12580 grep -v '^ *+' conftest.er1 >conftest.err
12581 rm -f conftest.er1
12582 cat conftest.err >&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); } &&
12585 { ac_try='test -z "$ac_c_werror_flag"
12586 || test ! -s conftest.err'
12587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12588 (eval $ac_try) 2>&5
12589 ac_status=$?
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); }; } &&
12592 { ac_try='test -s conftest.$ac_objext'
12593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12594 (eval $ac_try) 2>&5
12595 ac_status=$?
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); }; }; then
12598 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
12599 else
12600 echo "$as_me: failed program was:" >&5
12601 sed 's/^/| /' conftest.$ac_ext >&5
12602
12603 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
12604
12605 fi
12606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12607 fi
12608
12609 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
12610
12611 cat >>confdefs.h <<\_ACEOF
12612 #define HAVE_LWPXSTATUS_T 1
12613 _ACEOF
12614
12615 fi
12616 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
12617 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
12618
12619 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
12620 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
12621 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
12622 echo $ECHO_N "(cached) $ECHO_C" >&6
12623 else
12624 cat >conftest.$ac_ext <<_ACEOF
12625 /* confdefs.h. */
12626 _ACEOF
12627 cat confdefs.h >>conftest.$ac_ext
12628 cat >>conftest.$ac_ext <<_ACEOF
12629 /* end confdefs.h. */
12630
12631 #define _SYSCALL32
12632 #include <sys/procfs.h>
12633 int
12634 main ()
12635 {
12636 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
12637 ;
12638 return 0;
12639 }
12640 _ACEOF
12641 rm -f conftest.$ac_objext
12642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12643 (eval $ac_compile) 2>conftest.er1
12644 ac_status=$?
12645 grep -v '^ *+' conftest.er1 >conftest.err
12646 rm -f conftest.er1
12647 cat conftest.err >&5
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); } &&
12650 { ac_try='test -z "$ac_c_werror_flag"
12651 || test ! -s conftest.err'
12652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12653 (eval $ac_try) 2>&5
12654 ac_status=$?
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); }; } &&
12657 { ac_try='test -s conftest.$ac_objext'
12658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12659 (eval $ac_try) 2>&5
12660 ac_status=$?
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); }; }; then
12663 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
12664 else
12665 echo "$as_me: failed program was:" >&5
12666 sed 's/^/| /' conftest.$ac_ext >&5
12667
12668 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
12669
12670 fi
12671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12672 fi
12673
12674 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
12675
12676 cat >>confdefs.h <<\_ACEOF
12677 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
12678 _ACEOF
12679
12680 fi
12681 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
12682 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
12683
12684 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
12685 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
12686 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
12687 echo $ECHO_N "(cached) $ECHO_C" >&6
12688 else
12689 cat >conftest.$ac_ext <<_ACEOF
12690 /* confdefs.h. */
12691 _ACEOF
12692 cat confdefs.h >>conftest.$ac_ext
12693 cat >>conftest.$ac_ext <<_ACEOF
12694 /* end confdefs.h. */
12695
12696 #define _SYSCALL32
12697 #include <sys/procfs.h>
12698 int
12699 main ()
12700 {
12701 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
12702 ;
12703 return 0;
12704 }
12705 _ACEOF
12706 rm -f conftest.$ac_objext
12707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12708 (eval $ac_compile) 2>conftest.er1
12709 ac_status=$?
12710 grep -v '^ *+' conftest.er1 >conftest.err
12711 rm -f conftest.er1
12712 cat conftest.err >&5
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); } &&
12715 { ac_try='test -z "$ac_c_werror_flag"
12716 || test ! -s conftest.err'
12717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12718 (eval $ac_try) 2>&5
12719 ac_status=$?
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); }; } &&
12722 { ac_try='test -s conftest.$ac_objext'
12723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724 (eval $ac_try) 2>&5
12725 ac_status=$?
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; }; then
12728 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
12729 else
12730 echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12732
12733 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
12734
12735 fi
12736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12737 fi
12738
12739 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
12740
12741 cat >>confdefs.h <<\_ACEOF
12742 #define HAVE_LWPSTATUS_T_PR_REG 1
12743 _ACEOF
12744
12745 fi
12746 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
12747 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
12748
12749 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
12750 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
12751 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
12752 echo $ECHO_N "(cached) $ECHO_C" >&6
12753 else
12754 cat >conftest.$ac_ext <<_ACEOF
12755 /* confdefs.h. */
12756 _ACEOF
12757 cat confdefs.h >>conftest.$ac_ext
12758 cat >>conftest.$ac_ext <<_ACEOF
12759 /* end confdefs.h. */
12760
12761 #define _SYSCALL32
12762 #include <sys/procfs.h>
12763 int
12764 main ()
12765 {
12766 win32_pstatus_t avar
12767 ;
12768 return 0;
12769 }
12770 _ACEOF
12771 rm -f conftest.$ac_objext
12772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12773 (eval $ac_compile) 2>conftest.er1
12774 ac_status=$?
12775 grep -v '^ *+' conftest.er1 >conftest.err
12776 rm -f conftest.er1
12777 cat conftest.err >&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } &&
12780 { ac_try='test -z "$ac_c_werror_flag"
12781 || test ! -s conftest.err'
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12784 ac_status=$?
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; } &&
12787 { ac_try='test -s conftest.$ac_objext'
12788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12789 (eval $ac_try) 2>&5
12790 ac_status=$?
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); }; }; then
12793 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
12794 else
12795 echo "$as_me: failed program was:" >&5
12796 sed 's/^/| /' conftest.$ac_ext >&5
12797
12798 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
12799
12800 fi
12801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12802 fi
12803
12804 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
12805
12806 cat >>confdefs.h <<\_ACEOF
12807 #define HAVE_WIN32_PSTATUS_T 1
12808 _ACEOF
12809
12810 fi
12811 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
12812 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
12813
12814 fi
12815 fi
12816
12817
12818 if test -n "$TRAD_HEADER"; then
12819
12820 cat >>confdefs.h <<_ACEOF
12821 #define TRAD_HEADER $TRAD_HEADER
12822 _ACEOF
12823
12824 fi
12825
12826 # Horrible hacks to build DLLs on Windows.
12827 WIN32LDFLAGS=
12828 WIN32LIBADD=
12829 case "${host}" in
12830 *-*-cygwin*)
12831 if test "$enable_shared" = "yes"; then
12832 WIN32LDFLAGS="-no-undefined"
12833 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
12834 fi
12835 ;;
12836 *-*-linux*)
12837 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
12838 # libiberty.a.
12839 case "${host}" in
12840 mips*-*-linux*)
12841 # Linux/MIPS uses PIC by default.
12842 if test "$enable_shared" = "yes"; then
12843 WIN32LIBADD="-L../libiberty -liberty"
12844 fi
12845 ;;
12846 *)
12847 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
12848 if test -n "$x"; then
12849 WIN32LIBADD="-L../libiberty/pic -liberty"
12850 fi
12851 ;;
12852 esac
12853 ;;
12854 esac
12855
12856
12857
12858 # target stuff:
12859
12860 # Canonicalize the secondary target names.
12861 if test -n "$enable_targets" ; then
12862 for targ in `echo $enable_targets | sed 's/,/ /g'`
12863 do
12864 result=`$ac_config_sub $targ 2>/dev/null`
12865 if test -n "$result" ; then
12866 canon_targets="$canon_targets $result"
12867 else
12868 # Allow targets that config.sub doesn't recognize, like "all".
12869 canon_targets="$canon_targets $targ"
12870 fi
12871 done
12872 fi
12873
12874 all_targets=false
12875 defvec=
12876 selvecs=
12877 assocvecs=
12878 selarchs=
12879 TDEFINES=
12880 for targ in $target $canon_targets
12881 do
12882 if test "x$targ" = "xall"; then
12883 all_targets=true
12884 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
12885 else
12886 . $srcdir/config.bfd
12887 if test "x$targ" = "x$target"; then
12888 defvec=$targ_defvec
12889 fi
12890 selvecs="$selvecs $targ_defvec $targ_selvecs"
12891 selarchs="$selarchs $targ_archs"
12892 TDEFINES="$TDEFINES $targ_cflags"
12893 fi
12894 done
12895
12896
12897 # This processing still needs to be done if we're to decide properly whether
12898 # 64-bit support needs to be compiled in. Currently, it will be included if
12899 # the default or any other explicitly requested target requires it; it
12900 # will not be included on a 32-bit host if no 64-bit target is requested, and
12901 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
12902 # used.
12903
12904 # uniq the default and selected vectors in all the configured targets.
12905 f=""
12906 for i in $selvecs ; do
12907 case " $f " in
12908 *" $i "*) ;;
12909 *) f="$f $i" ;;
12910 esac
12911 done
12912 selvecs="$f"
12913
12914
12915 # uniq the associated vectors in all the configured targets.
12916 f=""
12917 for i in $assocvecs ; do
12918 case " $f " in
12919 *" $i "*) ;;
12920 *) f="$f $i" ;;
12921 esac
12922 done
12923 assocvecs="$f"
12924
12925
12926 # uniq the architectures in all the configured targets.
12927 f=""
12928 for i in $selarchs ; do
12929 case " $f " in
12930 *" $i "*) ;;
12931 *) f="$f $i" ;;
12932 esac
12933 done
12934 selarchs="$f"
12935
12936 # Target backend .o files.
12937 tb=
12938
12939 elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
12940
12941 for vec in $selvecs
12942 do
12943 target_size=32
12944 case "$vec" in
12945 # This list is alphabetized to make it easy to compare
12946 # with the two vector lists in targets.c. For the same reason,
12947 # use one entry per line, even though this leads to long lines.
12948 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
12949 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
12950 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
12951 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
12952 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
12953 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
12954 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
12955 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
12956 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
12957 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
12958 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
12959 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
12960 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
12961 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
12962 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
12963 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
12964 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
12965 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
12966 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
12967 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
12968 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
12969 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
12970 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
12971 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
12972 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
12973 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
12974 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;;
12975 bfd_elf32_bigarm_symbian_vec)
12976 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
12977 bfd_elf32_bigarm_vxworks_vec)
12978 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
12979 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
12980 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
12981 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
12982 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
12983 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
12984 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
12985 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
12986 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
12987 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
12988 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
12989 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
12990 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
12991 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
12992 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
12993 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
12994 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
12995 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
12996 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
12997 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
12998 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
12999 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
13000 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
13001 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
13002 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
13003 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
13004 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
13005 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
13006 bfd_elf32_littlearm_symbian_vec)
13007 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
13008 bfd_elf32_littlearm_vxworks_vec)
13009 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
13010 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;;
13011 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
13012 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
13013 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13014 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13015 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13016 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13017 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
13018 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
13019 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
13020 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
13021 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
13022 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
13023 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
13024 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
13025 bfd_elf32_ms1_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
13026 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
13027 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13028 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13029 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13030 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13031 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
13032 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
13033 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
13034 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
13035 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13036 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13037 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13038 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
13039 # FIXME: We include cofflink.lo not because it's needed for
13040 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
13041 # which needs it but does not list it. Should be fixed in right place.
13042 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13043 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13044 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13045 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13046 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
13047 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
13048 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
13049 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13050 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
13051 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
13052 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13053 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13054 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13055 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf32.lo $elf" ;;
13056 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
13057 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
13058 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
13059 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
13060 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
13061 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
13062 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
13063 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
13064 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
13065 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
13066 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13067 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13068 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
13069 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
13070 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
13071 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
13072 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
13073 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13074 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13075 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
13076 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13077 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
13078 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
13079 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13080 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13081 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13082 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13083 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13084 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13085 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf64.lo $elf"; target_size=64 ;;
13086 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13087 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13088 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
13089 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
13090 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
13091 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
13092 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
13093 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
13094 cris_aout_vec) tb="$tb aout-cris.lo" ;;
13095 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
13096 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
13097 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
13098 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
13099 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
13100 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
13101 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
13102 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
13103 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
13104 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
13105 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
13106 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
13107 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
13108 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
13109 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
13110 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
13111 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
13112 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
13113 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
13114 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
13115 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
13116 i386msdos_vec) tb="$tb i386msdos.lo" ;;
13117 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
13118 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
13119 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
13120 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
13121 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
13122 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
13123 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
13124 ieee_vec) tb="$tb ieee.lo" ;;
13125 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
13126 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
13127 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
13128 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
13129 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
13130 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
13131 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
13132 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
13133 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
13134 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
13135 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
13136 mach_o_be_vec) tb="$tb mach-o.lo" ;;
13137 mach_o_le_vec) tb="$tb mach-o.lo" ;;
13138 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
13139 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
13140 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
13141 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
13142 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
13143 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
13144 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
13145 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
13146 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
13147 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
13148 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
13149 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
13150 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
13151 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
13152 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
13153 pef_vec) tb="$tb pef.lo" ;;
13154 pef_xlib_vec) tb="$tb pef.lo" ;;
13155 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
13156 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
13157 ppcboot_vec) tb="$tb ppcboot.lo" ;;
13158 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
13159 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
13160 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
13161 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13162 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13163 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13164 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13165 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
13166 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
13167 som_vec) tb="$tb som.lo" ;;
13168 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
13169 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
13170 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
13171 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
13172 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
13173 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
13174 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
13175 sym_vec) tb="$tb xsym.lo" ;;
13176 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
13177 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
13178 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
13179 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
13180 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
13181 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
13182 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
13183 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
13184 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
13185 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
13186 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
13187 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
13188 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
13189 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
13190 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
13191 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
13192 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
13193 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
13194 versados_vec) tb="$tb versados.lo" ;;
13195 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
13196 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
13197 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
13198 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
13199 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
13200 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
13201
13202 # These appear out of order in targets.c
13203 srec_vec) tb="$tb srec.lo" ;;
13204 symbolsrec_vec) tb="$tb srec.lo" ;;
13205 tekhex_vec) tb="$tb tekhex.lo" ;;
13206 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
13207 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
13208
13209 "") ;;
13210 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
13211 echo "$as_me: error: *** unknown target vector $vec" >&2;}
13212 { (exit 1); exit 1; }; } ;;
13213 esac
13214
13215 if test ${target_size} = 64; then
13216 target64=true
13217 fi
13218 if test x"${vec}" = x"${defvec}"; then
13219 bfd_default_target_size=${target_size}
13220 fi
13221 done
13222
13223 # Target architecture .o files.
13224 # A couple of CPUs use shorter file names to avoid problems on DOS
13225 # filesystems.
13226 ta=`echo $selarchs | sed -e s/_ms1_/_mt_/ -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
13227
13228 # Weed out duplicate .o files.
13229 f=""
13230 for i in $tb ; do
13231 case " $f " in
13232 *" $i "*) ;;
13233 *) f="$f $i" ;;
13234 esac
13235 done
13236 tb="$f"
13237
13238 f=""
13239 for i in $ta ; do
13240 case " $f " in
13241 *" $i "*) ;;
13242 *) f="$f $i" ;;
13243 esac
13244 done
13245 ta="$f"
13246
13247 bfd_backends="$tb"
13248 bfd_machines="$ta"
13249
13250 if test x${all_targets} = xtrue ; then
13251 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
13252 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
13253 selvecs=
13254 havevecs=
13255 selarchs=
13256 test -n "$assocvecs" &&
13257 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13258 else # all_targets is true
13259 # Only set these if they will be nonempty, for the clever echo.
13260 havevecs=
13261 assocvecs=
13262 test -n "$selvecs" &&
13263 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
13264 test -n "$selvecs" &&
13265 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13266 test -n "$selarchs" &&
13267 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13268 fi # all_targets is true
13269
13270 case ${host64}-${target64}-${want64} in
13271 *true*)
13272 wordsize=64
13273 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
13274 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
13275 if test $BFD_HOST_64_BIT_DEFINED = 0; then
13276 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
13277 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
13278 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
13279 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
13280 fi
13281 if test -n "$GCC" ; then
13282 bad_64bit_gcc=no;
13283 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
13284 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
13285 # Add more tests for gcc versions with non-working 64-bit support here.
13286 cat >conftest.$ac_ext <<_ACEOF
13287 /* confdefs.h. */
13288 _ACEOF
13289 cat confdefs.h >>conftest.$ac_ext
13290 cat >>conftest.$ac_ext <<_ACEOF
13291 /* end confdefs.h. */
13292 :__GNUC__:__GNUC_MINOR__:__i386__:
13293 _ACEOF
13294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13295 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
13296 bad_64bit_gcc=yes;
13297 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
13298 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
13299 else
13300 echo "$as_me:$LINENO: result: no" >&5
13301 echo "${ECHO_T}no" >&6
13302 fi
13303 rm -f conftest*
13304
13305 if test $bad_64bit_gcc = yes ; then
13306 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
13307 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
13308 { (exit 1); exit 1; }; }
13309 fi
13310 fi
13311 ;;
13312 false-false-false)
13313 wordsize=32
13314 bfd_libs='$(BFD32_LIBS)'
13315 all_backends='$(BFD32_BACKENDS)'
13316 ;;
13317 esac
13318
13319
13320
13321
13322
13323
13324
13325
13326 # Determine the host dependant file_ptr a.k.a. off_t type. In order
13327 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
13328 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
13329 # Hopefully a reasonable assumption since fseeko et.al. should be
13330 # upward compatible.
13331
13332
13333
13334
13335
13336 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
13337 do
13338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13339 echo "$as_me:$LINENO: checking for $ac_func" >&5
13340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13341 if eval "test \"\${$as_ac_var+set}\" = set"; then
13342 echo $ECHO_N "(cached) $ECHO_C" >&6
13343 else
13344 cat >conftest.$ac_ext <<_ACEOF
13345 /* confdefs.h. */
13346 _ACEOF
13347 cat confdefs.h >>conftest.$ac_ext
13348 cat >>conftest.$ac_ext <<_ACEOF
13349 /* end confdefs.h. */
13350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13352 #define $ac_func innocuous_$ac_func
13353
13354 /* System header to define __stub macros and hopefully few prototypes,
13355 which can conflict with char $ac_func (); below.
13356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13357 <limits.h> exists even on freestanding compilers. */
13358
13359 #ifdef __STDC__
13360 # include <limits.h>
13361 #else
13362 # include <assert.h>
13363 #endif
13364
13365 #undef $ac_func
13366
13367 /* Override any gcc2 internal prototype to avoid an error. */
13368 #ifdef __cplusplus
13369 extern "C"
13370 {
13371 #endif
13372 /* We use char because int might match the return type of a gcc2
13373 builtin and then its argument prototype would still apply. */
13374 char $ac_func ();
13375 /* The GNU C library defines this for functions which it implements
13376 to always fail with ENOSYS. Some functions are actually named
13377 something starting with __ and the normal name is an alias. */
13378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13379 choke me
13380 #else
13381 char (*f) () = $ac_func;
13382 #endif
13383 #ifdef __cplusplus
13384 }
13385 #endif
13386
13387 int
13388 main ()
13389 {
13390 return f != $ac_func;
13391 ;
13392 return 0;
13393 }
13394 _ACEOF
13395 rm -f conftest.$ac_objext conftest$ac_exeext
13396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13397 (eval $ac_link) 2>conftest.er1
13398 ac_status=$?
13399 grep -v '^ *+' conftest.er1 >conftest.err
13400 rm -f conftest.er1
13401 cat conftest.err >&5
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); } &&
13404 { ac_try='test -z "$ac_c_werror_flag"
13405 || test ! -s conftest.err'
13406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13407 (eval $ac_try) 2>&5
13408 ac_status=$?
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); }; } &&
13411 { ac_try='test -s conftest$ac_exeext'
13412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13413 (eval $ac_try) 2>&5
13414 ac_status=$?
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); }; }; then
13417 eval "$as_ac_var=yes"
13418 else
13419 echo "$as_me: failed program was:" >&5
13420 sed 's/^/| /' conftest.$ac_ext >&5
13421
13422 eval "$as_ac_var=no"
13423 fi
13424 rm -f conftest.err conftest.$ac_objext \
13425 conftest$ac_exeext conftest.$ac_ext
13426 fi
13427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13429 if test `eval echo '${'$as_ac_var'}'` = yes; then
13430 cat >>confdefs.h <<_ACEOF
13431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13432 _ACEOF
13433
13434 fi
13435 done
13436
13437 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
13438 echo "$as_me:$LINENO: checking for off_t" >&5
13439 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13440 if test "${ac_cv_type_off_t+set}" = set; then
13441 echo $ECHO_N "(cached) $ECHO_C" >&6
13442 else
13443 cat >conftest.$ac_ext <<_ACEOF
13444 /* confdefs.h. */
13445 _ACEOF
13446 cat confdefs.h >>conftest.$ac_ext
13447 cat >>conftest.$ac_ext <<_ACEOF
13448 /* end confdefs.h. */
13449 $ac_includes_default
13450 int
13451 main ()
13452 {
13453 if ((off_t *) 0)
13454 return 0;
13455 if (sizeof (off_t))
13456 return 0;
13457 ;
13458 return 0;
13459 }
13460 _ACEOF
13461 rm -f conftest.$ac_objext
13462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13463 (eval $ac_compile) 2>conftest.er1
13464 ac_status=$?
13465 grep -v '^ *+' conftest.er1 >conftest.err
13466 rm -f conftest.er1
13467 cat conftest.err >&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } &&
13470 { ac_try='test -z "$ac_c_werror_flag"
13471 || test ! -s conftest.err'
13472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473 (eval $ac_try) 2>&5
13474 ac_status=$?
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); }; } &&
13477 { ac_try='test -s conftest.$ac_objext'
13478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13479 (eval $ac_try) 2>&5
13480 ac_status=$?
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); }; }; then
13483 ac_cv_type_off_t=yes
13484 else
13485 echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.$ac_ext >&5
13487
13488 ac_cv_type_off_t=no
13489 fi
13490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13491 fi
13492 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13493 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13494
13495 echo "$as_me:$LINENO: checking size of off_t" >&5
13496 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
13497 if test "${ac_cv_sizeof_off_t+set}" = set; then
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
13499 else
13500 if test "$ac_cv_type_off_t" = yes; then
13501 # The cast to unsigned long works around a bug in the HP C Compiler
13502 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13503 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13504 # This bug is HP SR number 8606223364.
13505 if test "$cross_compiling" = yes; then
13506 # Depending upon the size, compute the lo and hi bounds.
13507 cat >conftest.$ac_ext <<_ACEOF
13508 /* confdefs.h. */
13509 _ACEOF
13510 cat confdefs.h >>conftest.$ac_ext
13511 cat >>conftest.$ac_ext <<_ACEOF
13512 /* end confdefs.h. */
13513 $ac_includes_default
13514 int
13515 main ()
13516 {
13517 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
13518 test_array [0] = 0
13519
13520 ;
13521 return 0;
13522 }
13523 _ACEOF
13524 rm -f conftest.$ac_objext
13525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13526 (eval $ac_compile) 2>conftest.er1
13527 ac_status=$?
13528 grep -v '^ *+' conftest.er1 >conftest.err
13529 rm -f conftest.er1
13530 cat conftest.err >&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); } &&
13533 { ac_try='test -z "$ac_c_werror_flag"
13534 || test ! -s conftest.err'
13535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13536 (eval $ac_try) 2>&5
13537 ac_status=$?
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); }; } &&
13540 { ac_try='test -s conftest.$ac_objext'
13541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542 (eval $ac_try) 2>&5
13543 ac_status=$?
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; }; then
13546 ac_lo=0 ac_mid=0
13547 while :; do
13548 cat >conftest.$ac_ext <<_ACEOF
13549 /* confdefs.h. */
13550 _ACEOF
13551 cat confdefs.h >>conftest.$ac_ext
13552 cat >>conftest.$ac_ext <<_ACEOF
13553 /* end confdefs.h. */
13554 $ac_includes_default
13555 int
13556 main ()
13557 {
13558 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
13559 test_array [0] = 0
13560
13561 ;
13562 return 0;
13563 }
13564 _ACEOF
13565 rm -f conftest.$ac_objext
13566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13567 (eval $ac_compile) 2>conftest.er1
13568 ac_status=$?
13569 grep -v '^ *+' conftest.er1 >conftest.err
13570 rm -f conftest.er1
13571 cat conftest.err >&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); } &&
13574 { ac_try='test -z "$ac_c_werror_flag"
13575 || test ! -s conftest.err'
13576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577 (eval $ac_try) 2>&5
13578 ac_status=$?
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); }; } &&
13581 { ac_try='test -s conftest.$ac_objext'
13582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583 (eval $ac_try) 2>&5
13584 ac_status=$?
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; }; then
13587 ac_hi=$ac_mid; break
13588 else
13589 echo "$as_me: failed program was:" >&5
13590 sed 's/^/| /' conftest.$ac_ext >&5
13591
13592 ac_lo=`expr $ac_mid + 1`
13593 if test $ac_lo -le $ac_mid; then
13594 ac_lo= ac_hi=
13595 break
13596 fi
13597 ac_mid=`expr 2 '*' $ac_mid + 1`
13598 fi
13599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13600 done
13601 else
13602 echo "$as_me: failed program was:" >&5
13603 sed 's/^/| /' conftest.$ac_ext >&5
13604
13605 cat >conftest.$ac_ext <<_ACEOF
13606 /* confdefs.h. */
13607 _ACEOF
13608 cat confdefs.h >>conftest.$ac_ext
13609 cat >>conftest.$ac_ext <<_ACEOF
13610 /* end confdefs.h. */
13611 $ac_includes_default
13612 int
13613 main ()
13614 {
13615 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
13616 test_array [0] = 0
13617
13618 ;
13619 return 0;
13620 }
13621 _ACEOF
13622 rm -f conftest.$ac_objext
13623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13624 (eval $ac_compile) 2>conftest.er1
13625 ac_status=$?
13626 grep -v '^ *+' conftest.er1 >conftest.err
13627 rm -f conftest.er1
13628 cat conftest.err >&5
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); } &&
13631 { ac_try='test -z "$ac_c_werror_flag"
13632 || test ! -s conftest.err'
13633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634 (eval $ac_try) 2>&5
13635 ac_status=$?
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }; } &&
13638 { ac_try='test -s conftest.$ac_objext'
13639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13640 (eval $ac_try) 2>&5
13641 ac_status=$?
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; }; then
13644 ac_hi=-1 ac_mid=-1
13645 while :; do
13646 cat >conftest.$ac_ext <<_ACEOF
13647 /* confdefs.h. */
13648 _ACEOF
13649 cat confdefs.h >>conftest.$ac_ext
13650 cat >>conftest.$ac_ext <<_ACEOF
13651 /* end confdefs.h. */
13652 $ac_includes_default
13653 int
13654 main ()
13655 {
13656 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
13657 test_array [0] = 0
13658
13659 ;
13660 return 0;
13661 }
13662 _ACEOF
13663 rm -f conftest.$ac_objext
13664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13665 (eval $ac_compile) 2>conftest.er1
13666 ac_status=$?
13667 grep -v '^ *+' conftest.er1 >conftest.err
13668 rm -f conftest.er1
13669 cat conftest.err >&5
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); } &&
13672 { ac_try='test -z "$ac_c_werror_flag"
13673 || test ! -s conftest.err'
13674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675 (eval $ac_try) 2>&5
13676 ac_status=$?
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); }; } &&
13679 { ac_try='test -s conftest.$ac_objext'
13680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13681 (eval $ac_try) 2>&5
13682 ac_status=$?
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); }; }; then
13685 ac_lo=$ac_mid; break
13686 else
13687 echo "$as_me: failed program was:" >&5
13688 sed 's/^/| /' conftest.$ac_ext >&5
13689
13690 ac_hi=`expr '(' $ac_mid ')' - 1`
13691 if test $ac_mid -le $ac_hi; then
13692 ac_lo= ac_hi=
13693 break
13694 fi
13695 ac_mid=`expr 2 '*' $ac_mid`
13696 fi
13697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13698 done
13699 else
13700 echo "$as_me: failed program was:" >&5
13701 sed 's/^/| /' conftest.$ac_ext >&5
13702
13703 ac_lo= ac_hi=
13704 fi
13705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13706 fi
13707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13708 # Binary search between lo and hi bounds.
13709 while test "x$ac_lo" != "x$ac_hi"; do
13710 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13711 cat >conftest.$ac_ext <<_ACEOF
13712 /* confdefs.h. */
13713 _ACEOF
13714 cat confdefs.h >>conftest.$ac_ext
13715 cat >>conftest.$ac_ext <<_ACEOF
13716 /* end confdefs.h. */
13717 $ac_includes_default
13718 int
13719 main ()
13720 {
13721 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
13722 test_array [0] = 0
13723
13724 ;
13725 return 0;
13726 }
13727 _ACEOF
13728 rm -f conftest.$ac_objext
13729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13730 (eval $ac_compile) 2>conftest.er1
13731 ac_status=$?
13732 grep -v '^ *+' conftest.er1 >conftest.err
13733 rm -f conftest.er1
13734 cat conftest.err >&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } &&
13737 { ac_try='test -z "$ac_c_werror_flag"
13738 || test ! -s conftest.err'
13739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740 (eval $ac_try) 2>&5
13741 ac_status=$?
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; } &&
13744 { ac_try='test -s conftest.$ac_objext'
13745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746 (eval $ac_try) 2>&5
13747 ac_status=$?
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }; }; then
13750 ac_hi=$ac_mid
13751 else
13752 echo "$as_me: failed program was:" >&5
13753 sed 's/^/| /' conftest.$ac_ext >&5
13754
13755 ac_lo=`expr '(' $ac_mid ')' + 1`
13756 fi
13757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13758 done
13759 case $ac_lo in
13760 ?*) ac_cv_sizeof_off_t=$ac_lo;;
13761 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13762 See \`config.log' for more details." >&5
13763 echo "$as_me: error: cannot compute sizeof (off_t), 77
13764 See \`config.log' for more details." >&2;}
13765 { (exit 1); exit 1; }; } ;;
13766 esac
13767 else
13768 if test "$cross_compiling" = yes; then
13769 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13770 See \`config.log' for more details." >&5
13771 echo "$as_me: error: cannot run test program while cross compiling
13772 See \`config.log' for more details." >&2;}
13773 { (exit 1); exit 1; }; }
13774 else
13775 cat >conftest.$ac_ext <<_ACEOF
13776 /* confdefs.h. */
13777 _ACEOF
13778 cat confdefs.h >>conftest.$ac_ext
13779 cat >>conftest.$ac_ext <<_ACEOF
13780 /* end confdefs.h. */
13781 $ac_includes_default
13782 long longval () { return (long) (sizeof (off_t)); }
13783 unsigned long ulongval () { return (long) (sizeof (off_t)); }
13784 #include <stdio.h>
13785 #include <stdlib.h>
13786 int
13787 main ()
13788 {
13789
13790 FILE *f = fopen ("conftest.val", "w");
13791 if (! f)
13792 exit (1);
13793 if (((long) (sizeof (off_t))) < 0)
13794 {
13795 long i = longval ();
13796 if (i != ((long) (sizeof (off_t))))
13797 exit (1);
13798 fprintf (f, "%ld\n", i);
13799 }
13800 else
13801 {
13802 unsigned long i = ulongval ();
13803 if (i != ((long) (sizeof (off_t))))
13804 exit (1);
13805 fprintf (f, "%lu\n", i);
13806 }
13807 exit (ferror (f) || fclose (f) != 0);
13808
13809 ;
13810 return 0;
13811 }
13812 _ACEOF
13813 rm -f conftest$ac_exeext
13814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13815 (eval $ac_link) 2>&5
13816 ac_status=$?
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13820 (eval $ac_try) 2>&5
13821 ac_status=$?
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); }; }; then
13824 ac_cv_sizeof_off_t=`cat conftest.val`
13825 else
13826 echo "$as_me: program exited with status $ac_status" >&5
13827 echo "$as_me: failed program was:" >&5
13828 sed 's/^/| /' conftest.$ac_ext >&5
13829
13830 ( exit $ac_status )
13831 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13832 See \`config.log' for more details." >&5
13833 echo "$as_me: error: cannot compute sizeof (off_t), 77
13834 See \`config.log' for more details." >&2;}
13835 { (exit 1); exit 1; }; }
13836 fi
13837 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13838 fi
13839 fi
13840 rm -f conftest.val
13841 else
13842 ac_cv_sizeof_off_t=0
13843 fi
13844 fi
13845 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13846 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
13847 cat >>confdefs.h <<_ACEOF
13848 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13849 _ACEOF
13850
13851
13852 fi
13853 echo "$as_me:$LINENO: checking file_ptr type" >&5
13854 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
13855 bfd_file_ptr="long"
13856 bfd_ufile_ptr="unsigned long"
13857 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
13858 -o x"${ac_cv_sizeof_off_t}" = x8; then
13859 bfd_file_ptr=BFD_HOST_64_BIT
13860 bfd_ufile_ptr=BFD_HOST_U_64_BIT
13861 fi
13862 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
13863 echo "${ECHO_T}$bfd_file_ptr" >&6
13864
13865
13866
13867
13868 tdefaults=""
13869 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
13870 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
13871 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
13872 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
13873 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
13874
13875
13876
13877
13878 for ac_header in stdlib.h unistd.h
13879 do
13880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13882 echo "$as_me:$LINENO: checking for $ac_header" >&5
13883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13885 echo $ECHO_N "(cached) $ECHO_C" >&6
13886 fi
13887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13889 else
13890 # Is the header compilable?
13891 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13892 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13893 cat >conftest.$ac_ext <<_ACEOF
13894 /* confdefs.h. */
13895 _ACEOF
13896 cat confdefs.h >>conftest.$ac_ext
13897 cat >>conftest.$ac_ext <<_ACEOF
13898 /* end confdefs.h. */
13899 $ac_includes_default
13900 #include <$ac_header>
13901 _ACEOF
13902 rm -f conftest.$ac_objext
13903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13904 (eval $ac_compile) 2>conftest.er1
13905 ac_status=$?
13906 grep -v '^ *+' conftest.er1 >conftest.err
13907 rm -f conftest.er1
13908 cat conftest.err >&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); } &&
13911 { ac_try='test -z "$ac_c_werror_flag"
13912 || test ! -s conftest.err'
13913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13914 (eval $ac_try) 2>&5
13915 ac_status=$?
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }; } &&
13918 { ac_try='test -s conftest.$ac_objext'
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13921 ac_status=$?
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; }; then
13924 ac_header_compiler=yes
13925 else
13926 echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.$ac_ext >&5
13928
13929 ac_header_compiler=no
13930 fi
13931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13932 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13933 echo "${ECHO_T}$ac_header_compiler" >&6
13934
13935 # Is the header present?
13936 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13938 cat >conftest.$ac_ext <<_ACEOF
13939 /* confdefs.h. */
13940 _ACEOF
13941 cat confdefs.h >>conftest.$ac_ext
13942 cat >>conftest.$ac_ext <<_ACEOF
13943 /* end confdefs.h. */
13944 #include <$ac_header>
13945 _ACEOF
13946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13948 ac_status=$?
13949 grep -v '^ *+' conftest.er1 >conftest.err
13950 rm -f conftest.er1
13951 cat conftest.err >&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); } >/dev/null; then
13954 if test -s conftest.err; then
13955 ac_cpp_err=$ac_c_preproc_warn_flag
13956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13957 else
13958 ac_cpp_err=
13959 fi
13960 else
13961 ac_cpp_err=yes
13962 fi
13963 if test -z "$ac_cpp_err"; then
13964 ac_header_preproc=yes
13965 else
13966 echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.$ac_ext >&5
13968
13969 ac_header_preproc=no
13970 fi
13971 rm -f conftest.err conftest.$ac_ext
13972 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13973 echo "${ECHO_T}$ac_header_preproc" >&6
13974
13975 # So? What about this header?
13976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13977 yes:no: )
13978 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13979 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13981 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13982 ac_header_preproc=yes
13983 ;;
13984 no:yes:* )
13985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13988 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13989 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13990 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13991 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13992 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13995 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13996 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13997 (
13998 cat <<\_ASBOX
13999 ## ------------------------------------------ ##
14000 ## Report this to the AC_PACKAGE_NAME lists. ##
14001 ## ------------------------------------------ ##
14002 _ASBOX
14003 ) |
14004 sed "s/^/$as_me: WARNING: /" >&2
14005 ;;
14006 esac
14007 echo "$as_me:$LINENO: checking for $ac_header" >&5
14008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14010 echo $ECHO_N "(cached) $ECHO_C" >&6
14011 else
14012 eval "$as_ac_Header=\$ac_header_preproc"
14013 fi
14014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14016
14017 fi
14018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14019 cat >>confdefs.h <<_ACEOF
14020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14021 _ACEOF
14022
14023 fi
14024
14025 done
14026
14027
14028 for ac_func in getpagesize
14029 do
14030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14031 echo "$as_me:$LINENO: checking for $ac_func" >&5
14032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14033 if eval "test \"\${$as_ac_var+set}\" = set"; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14035 else
14036 cat >conftest.$ac_ext <<_ACEOF
14037 /* confdefs.h. */
14038 _ACEOF
14039 cat confdefs.h >>conftest.$ac_ext
14040 cat >>conftest.$ac_ext <<_ACEOF
14041 /* end confdefs.h. */
14042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14044 #define $ac_func innocuous_$ac_func
14045
14046 /* System header to define __stub macros and hopefully few prototypes,
14047 which can conflict with char $ac_func (); below.
14048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14049 <limits.h> exists even on freestanding compilers. */
14050
14051 #ifdef __STDC__
14052 # include <limits.h>
14053 #else
14054 # include <assert.h>
14055 #endif
14056
14057 #undef $ac_func
14058
14059 /* Override any gcc2 internal prototype to avoid an error. */
14060 #ifdef __cplusplus
14061 extern "C"
14062 {
14063 #endif
14064 /* We use char because int might match the return type of a gcc2
14065 builtin and then its argument prototype would still apply. */
14066 char $ac_func ();
14067 /* The GNU C library defines this for functions which it implements
14068 to always fail with ENOSYS. Some functions are actually named
14069 something starting with __ and the normal name is an alias. */
14070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14071 choke me
14072 #else
14073 char (*f) () = $ac_func;
14074 #endif
14075 #ifdef __cplusplus
14076 }
14077 #endif
14078
14079 int
14080 main ()
14081 {
14082 return f != $ac_func;
14083 ;
14084 return 0;
14085 }
14086 _ACEOF
14087 rm -f conftest.$ac_objext conftest$ac_exeext
14088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14089 (eval $ac_link) 2>conftest.er1
14090 ac_status=$?
14091 grep -v '^ *+' conftest.er1 >conftest.err
14092 rm -f conftest.er1
14093 cat conftest.err >&5
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); } &&
14096 { ac_try='test -z "$ac_c_werror_flag"
14097 || test ! -s conftest.err'
14098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099 (eval $ac_try) 2>&5
14100 ac_status=$?
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; } &&
14103 { ac_try='test -s conftest$ac_exeext'
14104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105 (eval $ac_try) 2>&5
14106 ac_status=$?
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); }; }; then
14109 eval "$as_ac_var=yes"
14110 else
14111 echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.$ac_ext >&5
14113
14114 eval "$as_ac_var=no"
14115 fi
14116 rm -f conftest.err conftest.$ac_objext \
14117 conftest$ac_exeext conftest.$ac_ext
14118 fi
14119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14120 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14121 if test `eval echo '${'$as_ac_var'}'` = yes; then
14122 cat >>confdefs.h <<_ACEOF
14123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14124 _ACEOF
14125
14126 fi
14127 done
14128
14129 echo "$as_me:$LINENO: checking for working mmap" >&5
14130 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14131 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14132 echo $ECHO_N "(cached) $ECHO_C" >&6
14133 else
14134 if test "$cross_compiling" = yes; then
14135 ac_cv_func_mmap_fixed_mapped=no
14136 else
14137 cat >conftest.$ac_ext <<_ACEOF
14138 /* confdefs.h. */
14139 _ACEOF
14140 cat confdefs.h >>conftest.$ac_ext
14141 cat >>conftest.$ac_ext <<_ACEOF
14142 /* end confdefs.h. */
14143 $ac_includes_default
14144 /* malloc might have been renamed as rpl_malloc. */
14145 #undef malloc
14146
14147 /* Thanks to Mike Haertel and Jim Avera for this test.
14148 Here is a matrix of mmap possibilities:
14149 mmap private not fixed
14150 mmap private fixed at somewhere currently unmapped
14151 mmap private fixed at somewhere already mapped
14152 mmap shared not fixed
14153 mmap shared fixed at somewhere currently unmapped
14154 mmap shared fixed at somewhere already mapped
14155 For private mappings, we should verify that changes cannot be read()
14156 back from the file, nor mmap's back from the file at a different
14157 address. (There have been systems where private was not correctly
14158 implemented like the infamous i386 svr4.0, and systems where the
14159 VM page cache was not coherent with the file system buffer cache
14160 like early versions of FreeBSD and possibly contemporary NetBSD.)
14161 For shared mappings, we should conversely verify that changes get
14162 propagated back to all the places they're supposed to be.
14163
14164 Grep wants private fixed already mapped.
14165 The main things grep needs to know about mmap are:
14166 * does it exist and is it safe to write into the mmap'd area
14167 * how to use it (BSD variants) */
14168
14169 #include <fcntl.h>
14170 #include <sys/mman.h>
14171
14172 #if !STDC_HEADERS && !HAVE_STDLIB_H
14173 char *malloc ();
14174 #endif
14175
14176 /* This mess was copied from the GNU getpagesize.h. */
14177 #if !HAVE_GETPAGESIZE
14178 /* Assume that all systems that can run configure have sys/param.h. */
14179 # if !HAVE_SYS_PARAM_H
14180 # define HAVE_SYS_PARAM_H 1
14181 # endif
14182
14183 # ifdef _SC_PAGESIZE
14184 # define getpagesize() sysconf(_SC_PAGESIZE)
14185 # else /* no _SC_PAGESIZE */
14186 # if HAVE_SYS_PARAM_H
14187 # include <sys/param.h>
14188 # ifdef EXEC_PAGESIZE
14189 # define getpagesize() EXEC_PAGESIZE
14190 # else /* no EXEC_PAGESIZE */
14191 # ifdef NBPG
14192 # define getpagesize() NBPG * CLSIZE
14193 # ifndef CLSIZE
14194 # define CLSIZE 1
14195 # endif /* no CLSIZE */
14196 # else /* no NBPG */
14197 # ifdef NBPC
14198 # define getpagesize() NBPC
14199 # else /* no NBPC */
14200 # ifdef PAGESIZE
14201 # define getpagesize() PAGESIZE
14202 # endif /* PAGESIZE */
14203 # endif /* no NBPC */
14204 # endif /* no NBPG */
14205 # endif /* no EXEC_PAGESIZE */
14206 # else /* no HAVE_SYS_PARAM_H */
14207 # define getpagesize() 8192 /* punt totally */
14208 # endif /* no HAVE_SYS_PARAM_H */
14209 # endif /* no _SC_PAGESIZE */
14210
14211 #endif /* no HAVE_GETPAGESIZE */
14212
14213 int
14214 main ()
14215 {
14216 char *data, *data2, *data3;
14217 int i, pagesize;
14218 int fd;
14219
14220 pagesize = getpagesize ();
14221
14222 /* First, make a file with some known garbage in it. */
14223 data = (char *) malloc (pagesize);
14224 if (!data)
14225 exit (1);
14226 for (i = 0; i < pagesize; ++i)
14227 *(data + i) = rand ();
14228 umask (0);
14229 fd = creat ("conftest.mmap", 0600);
14230 if (fd < 0)
14231 exit (1);
14232 if (write (fd, data, pagesize) != pagesize)
14233 exit (1);
14234 close (fd);
14235
14236 /* Next, try to mmap the file at a fixed address which already has
14237 something else allocated at it. If we can, also make sure that
14238 we see the same garbage. */
14239 fd = open ("conftest.mmap", O_RDWR);
14240 if (fd < 0)
14241 exit (1);
14242 data2 = (char *) malloc (2 * pagesize);
14243 if (!data2)
14244 exit (1);
14245 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14246 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14247 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14248 exit (1);
14249 for (i = 0; i < pagesize; ++i)
14250 if (*(data + i) != *(data2 + i))
14251 exit (1);
14252
14253 /* Finally, make sure that changes to the mapped area do not
14254 percolate back to the file as seen by read(). (This is a bug on
14255 some variants of i386 svr4.0.) */
14256 for (i = 0; i < pagesize; ++i)
14257 *(data2 + i) = *(data2 + i) + 1;
14258 data3 = (char *) malloc (pagesize);
14259 if (!data3)
14260 exit (1);
14261 if (read (fd, data3, pagesize) != pagesize)
14262 exit (1);
14263 for (i = 0; i < pagesize; ++i)
14264 if (*(data + i) != *(data3 + i))
14265 exit (1);
14266 close (fd);
14267 exit (0);
14268 }
14269 _ACEOF
14270 rm -f conftest$ac_exeext
14271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14272 (eval $ac_link) 2>&5
14273 ac_status=$?
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277 (eval $ac_try) 2>&5
14278 ac_status=$?
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; }; then
14281 ac_cv_func_mmap_fixed_mapped=yes
14282 else
14283 echo "$as_me: program exited with status $ac_status" >&5
14284 echo "$as_me: failed program was:" >&5
14285 sed 's/^/| /' conftest.$ac_ext >&5
14286
14287 ( exit $ac_status )
14288 ac_cv_func_mmap_fixed_mapped=no
14289 fi
14290 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14291 fi
14292 fi
14293 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14294 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14295 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14296
14297 cat >>confdefs.h <<\_ACEOF
14298 #define HAVE_MMAP 1
14299 _ACEOF
14300
14301 fi
14302 rm -f conftest.mmap
14303
14304
14305
14306 for ac_func in madvise mprotect
14307 do
14308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14309 echo "$as_me:$LINENO: checking for $ac_func" >&5
14310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14311 if eval "test \"\${$as_ac_var+set}\" = set"; then
14312 echo $ECHO_N "(cached) $ECHO_C" >&6
14313 else
14314 cat >conftest.$ac_ext <<_ACEOF
14315 /* confdefs.h. */
14316 _ACEOF
14317 cat confdefs.h >>conftest.$ac_ext
14318 cat >>conftest.$ac_ext <<_ACEOF
14319 /* end confdefs.h. */
14320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14322 #define $ac_func innocuous_$ac_func
14323
14324 /* System header to define __stub macros and hopefully few prototypes,
14325 which can conflict with char $ac_func (); below.
14326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14327 <limits.h> exists even on freestanding compilers. */
14328
14329 #ifdef __STDC__
14330 # include <limits.h>
14331 #else
14332 # include <assert.h>
14333 #endif
14334
14335 #undef $ac_func
14336
14337 /* Override any gcc2 internal prototype to avoid an error. */
14338 #ifdef __cplusplus
14339 extern "C"
14340 {
14341 #endif
14342 /* We use char because int might match the return type of a gcc2
14343 builtin and then its argument prototype would still apply. */
14344 char $ac_func ();
14345 /* The GNU C library defines this for functions which it implements
14346 to always fail with ENOSYS. Some functions are actually named
14347 something starting with __ and the normal name is an alias. */
14348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14349 choke me
14350 #else
14351 char (*f) () = $ac_func;
14352 #endif
14353 #ifdef __cplusplus
14354 }
14355 #endif
14356
14357 int
14358 main ()
14359 {
14360 return f != $ac_func;
14361 ;
14362 return 0;
14363 }
14364 _ACEOF
14365 rm -f conftest.$ac_objext conftest$ac_exeext
14366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14367 (eval $ac_link) 2>conftest.er1
14368 ac_status=$?
14369 grep -v '^ *+' conftest.er1 >conftest.err
14370 rm -f conftest.er1
14371 cat conftest.err >&5
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); } &&
14374 { ac_try='test -z "$ac_c_werror_flag"
14375 || test ! -s conftest.err'
14376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14377 (eval $ac_try) 2>&5
14378 ac_status=$?
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); }; } &&
14381 { ac_try='test -s conftest$ac_exeext'
14382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383 (eval $ac_try) 2>&5
14384 ac_status=$?
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); }; }; then
14387 eval "$as_ac_var=yes"
14388 else
14389 echo "$as_me: failed program was:" >&5
14390 sed 's/^/| /' conftest.$ac_ext >&5
14391
14392 eval "$as_ac_var=no"
14393 fi
14394 rm -f conftest.err conftest.$ac_objext \
14395 conftest$ac_exeext conftest.$ac_ext
14396 fi
14397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14398 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14399 if test `eval echo '${'$as_ac_var'}'` = yes; then
14400 cat >>confdefs.h <<_ACEOF
14401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14402 _ACEOF
14403
14404 fi
14405 done
14406
14407 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
14408 true+yes )
14409 cat >>confdefs.h <<\_ACEOF
14410 #define USE_MMAP 1
14411 _ACEOF
14412 ;;
14413 esac
14414
14415 rm -f doc/config.status
14416 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
14417
14418 ac_config_commands="$ac_config_commands default"
14419
14420 cat >confcache <<\_ACEOF
14421 # This file is a shell script that caches the results of configure
14422 # tests run on this system so they can be shared between configure
14423 # scripts and configure runs, see configure's option --config-cache.
14424 # It is not useful on other systems. If it contains results you don't
14425 # want to keep, you may remove or edit it.
14426 #
14427 # config.status only pays attention to the cache file if you give it
14428 # the --recheck option to rerun configure.
14429 #
14430 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14431 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14432 # following values.
14433
14434 _ACEOF
14435
14436 # The following way of writing the cache mishandles newlines in values,
14437 # but we know of no workaround that is simple, portable, and efficient.
14438 # So, don't put newlines in cache variables' values.
14439 # Ultrix sh set writes to stderr and can't be redirected directly,
14440 # and sets the high bit in the cache file unless we assign to the vars.
14441 {
14442 (set) 2>&1 |
14443 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14444 *ac_space=\ *)
14445 # `set' does not quote correctly, so add quotes (double-quote
14446 # substitution turns \\\\ into \\, and sed turns \\ into \).
14447 sed -n \
14448 "s/'/'\\\\''/g;
14449 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14450 ;;
14451 *)
14452 # `set' quotes correctly as required by POSIX, so do not add quotes.
14453 sed -n \
14454 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14455 ;;
14456 esac;
14457 } |
14458 sed '
14459 t clear
14460 : clear
14461 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14462 t end
14463 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14464 : end' >>confcache
14465 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14466 if test -w $cache_file; then
14467 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14468 cat confcache >$cache_file
14469 else
14470 echo "not updating unwritable cache $cache_file"
14471 fi
14472 fi
14473 rm -f confcache
14474
14475 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14476 # Let make expand exec_prefix.
14477 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14478
14479 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14480 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14481 # trailing colons and then remove the whole line if VPATH becomes empty
14482 # (actually we leave an empty line to preserve line numbers).
14483 if test "x$srcdir" = x.; then
14484 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14485 s/:*\$(srcdir):*/:/;
14486 s/:*\${srcdir}:*/:/;
14487 s/:*@srcdir@:*/:/;
14488 s/^\([^=]*=[ ]*\):*/\1/;
14489 s/:*$//;
14490 s/^[^=]*=[ ]*$//;
14491 }'
14492 fi
14493
14494 DEFS=-DHAVE_CONFIG_H
14495
14496 ac_libobjs=
14497 ac_ltlibobjs=
14498 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14499 # 1. Remove the extension, and $U if already installed.
14500 ac_i=`echo "$ac_i" |
14501 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14502 # 2. Add them.
14503 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14504 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14505 done
14506 LIBOBJS=$ac_libobjs
14507
14508 LTLIBOBJS=$ac_ltlibobjs
14509
14510
14511 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14512 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14513 Usually this means the macro was only invoked conditionally." >&5
14514 echo "$as_me: error: conditional \"AMDEP\" was never defined.
14515 Usually this means the macro was only invoked conditionally." >&2;}
14516 { (exit 1); exit 1; }; }
14517 fi
14518 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14519 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14520 Usually this means the macro was only invoked conditionally." >&5
14521 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14522 Usually this means the macro was only invoked conditionally." >&2;}
14523 { (exit 1); exit 1; }; }
14524 fi
14525 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14526 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14527 Usually this means the macro was only invoked conditionally." >&5
14528 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14529 Usually this means the macro was only invoked conditionally." >&2;}
14530 { (exit 1); exit 1; }; }
14531 fi
14532 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
14533 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
14534 Usually this means the macro was only invoked conditionally." >&5
14535 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
14536 Usually this means the macro was only invoked conditionally." >&2;}
14537 { (exit 1); exit 1; }; }
14538 fi
14539
14540 : ${CONFIG_STATUS=./config.status}
14541 ac_clean_files_save=$ac_clean_files
14542 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14543 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14544 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14545 cat >$CONFIG_STATUS <<_ACEOF
14546 #! $SHELL
14547 # Generated by $as_me.
14548 # Run this file to recreate the current configuration.
14549 # Compiler output produced by configure, useful for debugging
14550 # configure, is in config.log if it exists.
14551
14552 debug=false
14553 ac_cs_recheck=false
14554 ac_cs_silent=false
14555 SHELL=\${CONFIG_SHELL-$SHELL}
14556 _ACEOF
14557
14558 cat >>$CONFIG_STATUS <<\_ACEOF
14559 ## --------------------- ##
14560 ## M4sh Initialization. ##
14561 ## --------------------- ##
14562
14563 # Be Bourne compatible
14564 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14565 emulate sh
14566 NULLCMD=:
14567 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14568 # is contrary to our usage. Disable this feature.
14569 alias -g '${1+"$@"}'='"$@"'
14570 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14571 set -o posix
14572 fi
14573 DUALCASE=1; export DUALCASE # for MKS sh
14574
14575 # Support unset when possible.
14576 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14577 as_unset=unset
14578 else
14579 as_unset=false
14580 fi
14581
14582
14583 # Work around bugs in pre-3.0 UWIN ksh.
14584 $as_unset ENV MAIL MAILPATH
14585 PS1='$ '
14586 PS2='> '
14587 PS4='+ '
14588
14589 # NLS nuisances.
14590 for as_var in \
14591 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14592 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14593 LC_TELEPHONE LC_TIME
14594 do
14595 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14596 eval $as_var=C; export $as_var
14597 else
14598 $as_unset $as_var
14599 fi
14600 done
14601
14602 # Required to use basename.
14603 if expr a : '\(a\)' >/dev/null 2>&1; then
14604 as_expr=expr
14605 else
14606 as_expr=false
14607 fi
14608
14609 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14610 as_basename=basename
14611 else
14612 as_basename=false
14613 fi
14614
14615
14616 # Name of the executable.
14617 as_me=`$as_basename "$0" ||
14618 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14619 X"$0" : 'X\(//\)$' \| \
14620 X"$0" : 'X\(/\)$' \| \
14621 . : '\(.\)' 2>/dev/null ||
14622 echo X/"$0" |
14623 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14624 /^X\/\(\/\/\)$/{ s//\1/; q; }
14625 /^X\/\(\/\).*/{ s//\1/; q; }
14626 s/.*/./; q'`
14627
14628
14629 # PATH needs CR, and LINENO needs CR and PATH.
14630 # Avoid depending upon Character Ranges.
14631 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14632 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14633 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14634 as_cr_digits='0123456789'
14635 as_cr_alnum=$as_cr_Letters$as_cr_digits
14636
14637 # The user is always right.
14638 if test "${PATH_SEPARATOR+set}" != set; then
14639 echo "#! /bin/sh" >conf$$.sh
14640 echo "exit 0" >>conf$$.sh
14641 chmod +x conf$$.sh
14642 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14643 PATH_SEPARATOR=';'
14644 else
14645 PATH_SEPARATOR=:
14646 fi
14647 rm -f conf$$.sh
14648 fi
14649
14650
14651 as_lineno_1=$LINENO
14652 as_lineno_2=$LINENO
14653 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14654 test "x$as_lineno_1" != "x$as_lineno_2" &&
14655 test "x$as_lineno_3" = "x$as_lineno_2" || {
14656 # Find who we are. Look in the path if we contain no path at all
14657 # relative or not.
14658 case $0 in
14659 *[\\/]* ) as_myself=$0 ;;
14660 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14661 for as_dir in $PATH
14662 do
14663 IFS=$as_save_IFS
14664 test -z "$as_dir" && as_dir=.
14665 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14666 done
14667
14668 ;;
14669 esac
14670 # We did not find ourselves, most probably we were run as `sh COMMAND'
14671 # in which case we are not to be found in the path.
14672 if test "x$as_myself" = x; then
14673 as_myself=$0
14674 fi
14675 if test ! -f "$as_myself"; then
14676 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14677 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14678 { (exit 1); exit 1; }; }
14679 fi
14680 case $CONFIG_SHELL in
14681 '')
14682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14683 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14684 do
14685 IFS=$as_save_IFS
14686 test -z "$as_dir" && as_dir=.
14687 for as_base in sh bash ksh sh5; do
14688 case $as_dir in
14689 /*)
14690 if ("$as_dir/$as_base" -c '
14691 as_lineno_1=$LINENO
14692 as_lineno_2=$LINENO
14693 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14694 test "x$as_lineno_1" != "x$as_lineno_2" &&
14695 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14696 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14697 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14698 CONFIG_SHELL=$as_dir/$as_base
14699 export CONFIG_SHELL
14700 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14701 fi;;
14702 esac
14703 done
14704 done
14705 ;;
14706 esac
14707
14708 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14709 # uniformly replaced by the line number. The first 'sed' inserts a
14710 # line-number line before each line; the second 'sed' does the real
14711 # work. The second script uses 'N' to pair each line-number line
14712 # with the numbered line, and appends trailing '-' during
14713 # substitution so that $LINENO is not a special case at line end.
14714 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14715 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14716 sed '=' <$as_myself |
14717 sed '
14718 N
14719 s,$,-,
14720 : loop
14721 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14722 t loop
14723 s,-$,,
14724 s,^['$as_cr_digits']*\n,,
14725 ' >$as_me.lineno &&
14726 chmod +x $as_me.lineno ||
14727 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14728 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14729 { (exit 1); exit 1; }; }
14730
14731 # Don't try to exec as it changes $[0], causing all sort of problems
14732 # (the dirname of $[0] is not the place where we might find the
14733 # original and so on. Autoconf is especially sensible to this).
14734 . ./$as_me.lineno
14735 # Exit status is that of the last command.
14736 exit
14737 }
14738
14739
14740 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14741 *c*,-n*) ECHO_N= ECHO_C='
14742 ' ECHO_T=' ' ;;
14743 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14744 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14745 esac
14746
14747 if expr a : '\(a\)' >/dev/null 2>&1; then
14748 as_expr=expr
14749 else
14750 as_expr=false
14751 fi
14752
14753 rm -f conf$$ conf$$.exe conf$$.file
14754 echo >conf$$.file
14755 if ln -s conf$$.file conf$$ 2>/dev/null; then
14756 # We could just check for DJGPP; but this test a) works b) is more generic
14757 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14758 if test -f conf$$.exe; then
14759 # Don't use ln at all; we don't have any links
14760 as_ln_s='cp -p'
14761 else
14762 as_ln_s='ln -s'
14763 fi
14764 elif ln conf$$.file conf$$ 2>/dev/null; then
14765 as_ln_s=ln
14766 else
14767 as_ln_s='cp -p'
14768 fi
14769 rm -f conf$$ conf$$.exe conf$$.file
14770
14771 if mkdir -p . 2>/dev/null; then
14772 as_mkdir_p=:
14773 else
14774 test -d ./-p && rmdir ./-p
14775 as_mkdir_p=false
14776 fi
14777
14778 as_executable_p="test -f"
14779
14780 # Sed expression to map a string onto a valid CPP name.
14781 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14782
14783 # Sed expression to map a string onto a valid variable name.
14784 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14785
14786
14787 # IFS
14788 # We need space, tab and new line, in precisely that order.
14789 as_nl='
14790 '
14791 IFS=" $as_nl"
14792
14793 # CDPATH.
14794 $as_unset CDPATH
14795
14796 exec 6>&1
14797
14798 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14799 # report actual input values of CONFIG_FILES etc. instead of their
14800 # values after options handling. Logging --version etc. is OK.
14801 exec 5>>config.log
14802 {
14803 echo
14804 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14805 ## Running $as_me. ##
14806 _ASBOX
14807 } >&5
14808 cat >&5 <<_CSEOF
14809
14810 This file was extended by $as_me, which was
14811 generated by GNU Autoconf 2.59. Invocation command line was
14812
14813 CONFIG_FILES = $CONFIG_FILES
14814 CONFIG_HEADERS = $CONFIG_HEADERS
14815 CONFIG_LINKS = $CONFIG_LINKS
14816 CONFIG_COMMANDS = $CONFIG_COMMANDS
14817 $ $0 $@
14818
14819 _CSEOF
14820 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14821 echo >&5
14822 _ACEOF
14823
14824 # Files that config.status was made for.
14825 if test -n "$ac_config_files"; then
14826 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14827 fi
14828
14829 if test -n "$ac_config_headers"; then
14830 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14831 fi
14832
14833 if test -n "$ac_config_links"; then
14834 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14835 fi
14836
14837 if test -n "$ac_config_commands"; then
14838 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14839 fi
14840
14841 cat >>$CONFIG_STATUS <<\_ACEOF
14842
14843 ac_cs_usage="\
14844 \`$as_me' instantiates files from templates according to the
14845 current configuration.
14846
14847 Usage: $0 [OPTIONS] [FILE]...
14848
14849 -h, --help print this help, then exit
14850 -V, --version print version number, then exit
14851 -q, --quiet do not print progress messages
14852 -d, --debug don't remove temporary files
14853 --recheck update $as_me by reconfiguring in the same conditions
14854 --file=FILE[:TEMPLATE]
14855 instantiate the configuration file FILE
14856 --header=FILE[:TEMPLATE]
14857 instantiate the configuration header FILE
14858
14859 Configuration files:
14860 $config_files
14861
14862 Configuration headers:
14863 $config_headers
14864
14865 Configuration commands:
14866 $config_commands
14867
14868 Report bugs to <bug-autoconf@gnu.org>."
14869 _ACEOF
14870
14871 cat >>$CONFIG_STATUS <<_ACEOF
14872 ac_cs_version="\\
14873 config.status
14874 configured by $0, generated by GNU Autoconf 2.59,
14875 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14876
14877 Copyright (C) 2003 Free Software Foundation, Inc.
14878 This config.status script is free software; the Free Software Foundation
14879 gives unlimited permission to copy, distribute and modify it."
14880 srcdir=$srcdir
14881 INSTALL="$INSTALL"
14882 _ACEOF
14883
14884 cat >>$CONFIG_STATUS <<\_ACEOF
14885 # If no file are specified by the user, then we need to provide default
14886 # value. By we need to know if files were specified by the user.
14887 ac_need_defaults=:
14888 while test $# != 0
14889 do
14890 case $1 in
14891 --*=*)
14892 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14893 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14894 ac_shift=:
14895 ;;
14896 -*)
14897 ac_option=$1
14898 ac_optarg=$2
14899 ac_shift=shift
14900 ;;
14901 *) # This is not an option, so the user has probably given explicit
14902 # arguments.
14903 ac_option=$1
14904 ac_need_defaults=false;;
14905 esac
14906
14907 case $ac_option in
14908 # Handling of the options.
14909 _ACEOF
14910 cat >>$CONFIG_STATUS <<\_ACEOF
14911 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14912 ac_cs_recheck=: ;;
14913 --version | --vers* | -V )
14914 echo "$ac_cs_version"; exit 0 ;;
14915 --he | --h)
14916 # Conflict between --help and --header
14917 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14918 Try \`$0 --help' for more information." >&5
14919 echo "$as_me: error: ambiguous option: $1
14920 Try \`$0 --help' for more information." >&2;}
14921 { (exit 1); exit 1; }; };;
14922 --help | --hel | -h )
14923 echo "$ac_cs_usage"; exit 0 ;;
14924 --debug | --d* | -d )
14925 debug=: ;;
14926 --file | --fil | --fi | --f )
14927 $ac_shift
14928 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14929 ac_need_defaults=false;;
14930 --header | --heade | --head | --hea )
14931 $ac_shift
14932 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14933 ac_need_defaults=false;;
14934 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14935 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14936 ac_cs_silent=: ;;
14937
14938 # This is an error.
14939 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14940 Try \`$0 --help' for more information." >&5
14941 echo "$as_me: error: unrecognized option: $1
14942 Try \`$0 --help' for more information." >&2;}
14943 { (exit 1); exit 1; }; } ;;
14944
14945 *) ac_config_targets="$ac_config_targets $1" ;;
14946
14947 esac
14948 shift
14949 done
14950
14951 ac_configure_extra_args=
14952
14953 if $ac_cs_silent; then
14954 exec 6>/dev/null
14955 ac_configure_extra_args="$ac_configure_extra_args --silent"
14956 fi
14957
14958 _ACEOF
14959 cat >>$CONFIG_STATUS <<_ACEOF
14960 if \$ac_cs_recheck; then
14961 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14962 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14963 fi
14964
14965 _ACEOF
14966
14967 cat >>$CONFIG_STATUS <<_ACEOF
14968 #
14969 # INIT-COMMANDS section.
14970 #
14971
14972 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14973
14974
14975 _ACEOF
14976
14977
14978
14979 cat >>$CONFIG_STATUS <<\_ACEOF
14980 for ac_config_target in $ac_config_targets
14981 do
14982 case "$ac_config_target" in
14983 # Handling of arguments.
14984 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14985 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14986 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
14987 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14988 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14989 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14990 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14991 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14992 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14993 { (exit 1); exit 1; }; };;
14994 esac
14995 done
14996
14997 # If the user did not use the arguments to specify the items to instantiate,
14998 # then the envvar interface is used. Set only those that are not.
14999 # We use the long form for the default assignment because of an extremely
15000 # bizarre bug on SunOS 4.1.3.
15001 if $ac_need_defaults; then
15002 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15003 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15004 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15005 fi
15006
15007 # Have a temporary directory for convenience. Make it in the build tree
15008 # simply because there is no reason to put it here, and in addition,
15009 # creating and moving files from /tmp can sometimes cause problems.
15010 # Create a temporary directory, and hook for its removal unless debugging.
15011 $debug ||
15012 {
15013 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15014 trap '{ (exit 1); exit 1; }' 1 2 13 15
15015 }
15016
15017 # Create a (secure) tmp directory for tmp files.
15018
15019 {
15020 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15021 test -n "$tmp" && test -d "$tmp"
15022 } ||
15023 {
15024 tmp=./confstat$$-$RANDOM
15025 (umask 077 && mkdir $tmp)
15026 } ||
15027 {
15028 echo "$me: cannot create a temporary directory in ." >&2
15029 { (exit 1); exit 1; }
15030 }
15031
15032 _ACEOF
15033
15034 cat >>$CONFIG_STATUS <<_ACEOF
15035
15036 #
15037 # CONFIG_FILES section.
15038 #
15039
15040 # No need to generate the scripts if there are no CONFIG_FILES.
15041 # This happens for instance when ./config.status config.h
15042 if test -n "\$CONFIG_FILES"; then
15043 # Protect against being on the right side of a sed subst in config.status.
15044 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15045 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15046 s,@SHELL@,$SHELL,;t t
15047 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15048 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15049 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15050 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15051 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15052 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15053 s,@exec_prefix@,$exec_prefix,;t t
15054 s,@prefix@,$prefix,;t t
15055 s,@program_transform_name@,$program_transform_name,;t t
15056 s,@bindir@,$bindir,;t t
15057 s,@sbindir@,$sbindir,;t t
15058 s,@libexecdir@,$libexecdir,;t t
15059 s,@datadir@,$datadir,;t t
15060 s,@sysconfdir@,$sysconfdir,;t t
15061 s,@sharedstatedir@,$sharedstatedir,;t t
15062 s,@localstatedir@,$localstatedir,;t t
15063 s,@libdir@,$libdir,;t t
15064 s,@includedir@,$includedir,;t t
15065 s,@oldincludedir@,$oldincludedir,;t t
15066 s,@infodir@,$infodir,;t t
15067 s,@mandir@,$mandir,;t t
15068 s,@build_alias@,$build_alias,;t t
15069 s,@host_alias@,$host_alias,;t t
15070 s,@target_alias@,$target_alias,;t t
15071 s,@DEFS@,$DEFS,;t t
15072 s,@ECHO_C@,$ECHO_C,;t t
15073 s,@ECHO_N@,$ECHO_N,;t t
15074 s,@ECHO_T@,$ECHO_T,;t t
15075 s,@LIBS@,$LIBS,;t t
15076 s,@build@,$build,;t t
15077 s,@build_cpu@,$build_cpu,;t t
15078 s,@build_vendor@,$build_vendor,;t t
15079 s,@build_os@,$build_os,;t t
15080 s,@host@,$host,;t t
15081 s,@host_cpu@,$host_cpu,;t t
15082 s,@host_vendor@,$host_vendor,;t t
15083 s,@host_os@,$host_os,;t t
15084 s,@target@,$target,;t t
15085 s,@target_cpu@,$target_cpu,;t t
15086 s,@target_vendor@,$target_vendor,;t t
15087 s,@target_os@,$target_os,;t t
15088 s,@CC@,$CC,;t t
15089 s,@CFLAGS@,$CFLAGS,;t t
15090 s,@LDFLAGS@,$LDFLAGS,;t t
15091 s,@CPPFLAGS@,$CPPFLAGS,;t t
15092 s,@ac_ct_CC@,$ac_ct_CC,;t t
15093 s,@EXEEXT@,$EXEEXT,;t t
15094 s,@OBJEXT@,$OBJEXT,;t t
15095 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15096 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15097 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15098 s,@CYGPATH_W@,$CYGPATH_W,;t t
15099 s,@PACKAGE@,$PACKAGE,;t t
15100 s,@VERSION@,$VERSION,;t t
15101 s,@ACLOCAL@,$ACLOCAL,;t t
15102 s,@AUTOCONF@,$AUTOCONF,;t t
15103 s,@AUTOMAKE@,$AUTOMAKE,;t t
15104 s,@AUTOHEADER@,$AUTOHEADER,;t t
15105 s,@MAKEINFO@,$MAKEINFO,;t t
15106 s,@install_sh@,$install_sh,;t t
15107 s,@STRIP@,$STRIP,;t t
15108 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15109 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15110 s,@mkdir_p@,$mkdir_p,;t t
15111 s,@AWK@,$AWK,;t t
15112 s,@SET_MAKE@,$SET_MAKE,;t t
15113 s,@am__leading_dot@,$am__leading_dot,;t t
15114 s,@AMTAR@,$AMTAR,;t t
15115 s,@am__tar@,$am__tar,;t t
15116 s,@am__untar@,$am__untar,;t t
15117 s,@DEPDIR@,$DEPDIR,;t t
15118 s,@am__include@,$am__include,;t t
15119 s,@am__quote@,$am__quote,;t t
15120 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15121 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15122 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15123 s,@CCDEPMODE@,$CCDEPMODE,;t t
15124 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15125 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
15126 s,@AR@,$AR,;t t
15127 s,@ac_ct_AR@,$ac_ct_AR,;t t
15128 s,@RANLIB@,$RANLIB,;t t
15129 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15130 s,@LN_S@,$LN_S,;t t
15131 s,@LIBTOOL@,$LIBTOOL,;t t
15132 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
15133 s,@NO_WERROR@,$NO_WERROR,;t t
15134 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15135 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15136 s,@MAINT@,$MAINT,;t t
15137 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
15138 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
15139 s,@host_noncanonical@,$host_noncanonical,;t t
15140 s,@target_noncanonical@,$target_noncanonical,;t t
15141 s,@bfdlibdir@,$bfdlibdir,;t t
15142 s,@bfdincludedir@,$bfdincludedir,;t t
15143 s,@CPP@,$CPP,;t t
15144 s,@EGREP@,$EGREP,;t t
15145 s,@ALLOCA@,$ALLOCA,;t t
15146 s,@USE_NLS@,$USE_NLS,;t t
15147 s,@MSGFMT@,$MSGFMT,;t t
15148 s,@GMSGFMT@,$GMSGFMT,;t t
15149 s,@XGETTEXT@,$XGETTEXT,;t t
15150 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
15151 s,@CATALOGS@,$CATALOGS,;t t
15152 s,@CATOBJEXT@,$CATOBJEXT,;t t
15153 s,@DATADIRNAME@,$DATADIRNAME,;t t
15154 s,@GMOFILES@,$GMOFILES,;t t
15155 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15156 s,@INTLDEPS@,$INTLDEPS,;t t
15157 s,@INTLLIBS@,$INTLLIBS,;t t
15158 s,@INTLOBJS@,$INTLOBJS,;t t
15159 s,@POFILES@,$POFILES,;t t
15160 s,@POSUB@,$POSUB,;t t
15161 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
15162 s,@GT_NO@,$GT_NO,;t t
15163 s,@GT_YES@,$GT_YES,;t t
15164 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15165 s,@l@,$l,;t t
15166 s,@HDEFINES@,$HDEFINES,;t t
15167 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
15168 s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
15169 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
15170 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
15171 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
15172 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15173 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
15174 s,@COREFILE@,$COREFILE,;t t
15175 s,@COREFLAG@,$COREFLAG,;t t
15176 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
15177 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
15178 s,@TDEFINES@,$TDEFINES,;t t
15179 s,@wordsize@,$wordsize,;t t
15180 s,@bfd_libs@,$bfd_libs,;t t
15181 s,@all_backends@,$all_backends,;t t
15182 s,@bfd_backends@,$bfd_backends,;t t
15183 s,@bfd_machines@,$bfd_machines,;t t
15184 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
15185 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
15186 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
15187 s,@tdefaults@,$tdefaults,;t t
15188 s,@LIBOBJS@,$LIBOBJS,;t t
15189 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15190 CEOF
15191
15192 _ACEOF
15193
15194 cat >>$CONFIG_STATUS <<\_ACEOF
15195 # Split the substitutions into bite-sized pieces for seds with
15196 # small command number limits, like on Digital OSF/1 and HP-UX.
15197 ac_max_sed_lines=48
15198 ac_sed_frag=1 # Number of current file.
15199 ac_beg=1 # First line for current file.
15200 ac_end=$ac_max_sed_lines # Line after last line for current file.
15201 ac_more_lines=:
15202 ac_sed_cmds=
15203 while $ac_more_lines; do
15204 if test $ac_beg -gt 1; then
15205 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15206 else
15207 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15208 fi
15209 if test ! -s $tmp/subs.frag; then
15210 ac_more_lines=false
15211 else
15212 # The purpose of the label and of the branching condition is to
15213 # speed up the sed processing (if there are no `@' at all, there
15214 # is no need to browse any of the substitutions).
15215 # These are the two extra sed commands mentioned above.
15216 (echo ':t
15217 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15218 if test -z "$ac_sed_cmds"; then
15219 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15220 else
15221 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15222 fi
15223 ac_sed_frag=`expr $ac_sed_frag + 1`
15224 ac_beg=$ac_end
15225 ac_end=`expr $ac_end + $ac_max_sed_lines`
15226 fi
15227 done
15228 if test -z "$ac_sed_cmds"; then
15229 ac_sed_cmds=cat
15230 fi
15231 fi # test -n "$CONFIG_FILES"
15232
15233 _ACEOF
15234 cat >>$CONFIG_STATUS <<\_ACEOF
15235 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15236 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15237 case $ac_file in
15238 - | *:- | *:-:* ) # input from stdin
15239 cat >$tmp/stdin
15240 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15241 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15242 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15243 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15244 * ) ac_file_in=$ac_file.in ;;
15245 esac
15246
15247 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15248 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15249 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15250 X"$ac_file" : 'X\(//\)[^/]' \| \
15251 X"$ac_file" : 'X\(//\)$' \| \
15252 X"$ac_file" : 'X\(/\)' \| \
15253 . : '\(.\)' 2>/dev/null ||
15254 echo X"$ac_file" |
15255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15256 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15257 /^X\(\/\/\)$/{ s//\1/; q; }
15258 /^X\(\/\).*/{ s//\1/; q; }
15259 s/.*/./; q'`
15260 { if $as_mkdir_p; then
15261 mkdir -p "$ac_dir"
15262 else
15263 as_dir="$ac_dir"
15264 as_dirs=
15265 while test ! -d "$as_dir"; do
15266 as_dirs="$as_dir $as_dirs"
15267 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15268 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15269 X"$as_dir" : 'X\(//\)[^/]' \| \
15270 X"$as_dir" : 'X\(//\)$' \| \
15271 X"$as_dir" : 'X\(/\)' \| \
15272 . : '\(.\)' 2>/dev/null ||
15273 echo X"$as_dir" |
15274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15275 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15276 /^X\(\/\/\)$/{ s//\1/; q; }
15277 /^X\(\/\).*/{ s//\1/; q; }
15278 s/.*/./; q'`
15279 done
15280 test ! -n "$as_dirs" || mkdir $as_dirs
15281 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15282 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15283 { (exit 1); exit 1; }; }; }
15284
15285 ac_builddir=.
15286
15287 if test "$ac_dir" != .; then
15288 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15289 # A "../" for each directory in $ac_dir_suffix.
15290 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15291 else
15292 ac_dir_suffix= ac_top_builddir=
15293 fi
15294
15295 case $srcdir in
15296 .) # No --srcdir option. We are building in place.
15297 ac_srcdir=.
15298 if test -z "$ac_top_builddir"; then
15299 ac_top_srcdir=.
15300 else
15301 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15302 fi ;;
15303 [\\/]* | ?:[\\/]* ) # Absolute path.
15304 ac_srcdir=$srcdir$ac_dir_suffix;
15305 ac_top_srcdir=$srcdir ;;
15306 *) # Relative path.
15307 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15308 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15309 esac
15310
15311 # Do not use `cd foo && pwd` to compute absolute paths, because
15312 # the directories may not exist.
15313 case `pwd` in
15314 .) ac_abs_builddir="$ac_dir";;
15315 *)
15316 case "$ac_dir" in
15317 .) ac_abs_builddir=`pwd`;;
15318 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15319 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15320 esac;;
15321 esac
15322 case $ac_abs_builddir in
15323 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15324 *)
15325 case ${ac_top_builddir}. in
15326 .) ac_abs_top_builddir=$ac_abs_builddir;;
15327 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15328 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15329 esac;;
15330 esac
15331 case $ac_abs_builddir in
15332 .) ac_abs_srcdir=$ac_srcdir;;
15333 *)
15334 case $ac_srcdir in
15335 .) ac_abs_srcdir=$ac_abs_builddir;;
15336 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15337 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15338 esac;;
15339 esac
15340 case $ac_abs_builddir in
15341 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15342 *)
15343 case $ac_top_srcdir in
15344 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15345 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15346 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15347 esac;;
15348 esac
15349
15350
15351 case $INSTALL in
15352 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15353 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15354 esac
15355
15356 if test x"$ac_file" != x-; then
15357 { echo "$as_me:$LINENO: creating $ac_file" >&5
15358 echo "$as_me: creating $ac_file" >&6;}
15359 rm -f "$ac_file"
15360 fi
15361 # Let's still pretend it is `configure' which instantiates (i.e., don't
15362 # use $as_me), people would be surprised to read:
15363 # /* config.h. Generated by config.status. */
15364 if test x"$ac_file" = x-; then
15365 configure_input=
15366 else
15367 configure_input="$ac_file. "
15368 fi
15369 configure_input=$configure_input"Generated from `echo $ac_file_in |
15370 sed 's,.*/,,'` by configure."
15371
15372 # First look for the input files in the build tree, otherwise in the
15373 # src tree.
15374 ac_file_inputs=`IFS=:
15375 for f in $ac_file_in; do
15376 case $f in
15377 -) echo $tmp/stdin ;;
15378 [\\/$]*)
15379 # Absolute (can't be DOS-style, as IFS=:)
15380 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15381 echo "$as_me: error: cannot find input file: $f" >&2;}
15382 { (exit 1); exit 1; }; }
15383 echo "$f";;
15384 *) # Relative
15385 if test -f "$f"; then
15386 # Build tree
15387 echo "$f"
15388 elif test -f "$srcdir/$f"; then
15389 # Source tree
15390 echo "$srcdir/$f"
15391 else
15392 # /dev/null tree
15393 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15394 echo "$as_me: error: cannot find input file: $f" >&2;}
15395 { (exit 1); exit 1; }; }
15396 fi;;
15397 esac
15398 done` || { (exit 1); exit 1; }
15399 _ACEOF
15400 cat >>$CONFIG_STATUS <<_ACEOF
15401 sed "$ac_vpsub
15402 $extrasub
15403 _ACEOF
15404 cat >>$CONFIG_STATUS <<\_ACEOF
15405 :t
15406 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15407 s,@configure_input@,$configure_input,;t t
15408 s,@srcdir@,$ac_srcdir,;t t
15409 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15410 s,@top_srcdir@,$ac_top_srcdir,;t t
15411 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15412 s,@builddir@,$ac_builddir,;t t
15413 s,@abs_builddir@,$ac_abs_builddir,;t t
15414 s,@top_builddir@,$ac_top_builddir,;t t
15415 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15416 s,@INSTALL@,$ac_INSTALL,;t t
15417 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15418 rm -f $tmp/stdin
15419 if test x"$ac_file" != x-; then
15420 mv $tmp/out $ac_file
15421 else
15422 cat $tmp/out
15423 rm -f $tmp/out
15424 fi
15425
15426 done
15427 _ACEOF
15428 cat >>$CONFIG_STATUS <<\_ACEOF
15429
15430 #
15431 # CONFIG_HEADER section.
15432 #
15433
15434 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15435 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15436 #
15437 # ac_d sets the value in "#define NAME VALUE" lines.
15438 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15439 ac_dB='[ ].*$,\1#\2'
15440 ac_dC=' '
15441 ac_dD=',;t'
15442 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15443 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15444 ac_uB='$,\1#\2define\3'
15445 ac_uC=' '
15446 ac_uD=',;t'
15447
15448 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15449 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15450 case $ac_file in
15451 - | *:- | *:-:* ) # input from stdin
15452 cat >$tmp/stdin
15453 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15454 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15455 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15456 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15457 * ) ac_file_in=$ac_file.in ;;
15458 esac
15459
15460 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15461 echo "$as_me: creating $ac_file" >&6;}
15462
15463 # First look for the input files in the build tree, otherwise in the
15464 # src tree.
15465 ac_file_inputs=`IFS=:
15466 for f in $ac_file_in; do
15467 case $f in
15468 -) echo $tmp/stdin ;;
15469 [\\/$]*)
15470 # Absolute (can't be DOS-style, as IFS=:)
15471 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15472 echo "$as_me: error: cannot find input file: $f" >&2;}
15473 { (exit 1); exit 1; }; }
15474 # Do quote $f, to prevent DOS paths from being IFS'd.
15475 echo "$f";;
15476 *) # Relative
15477 if test -f "$f"; then
15478 # Build tree
15479 echo "$f"
15480 elif test -f "$srcdir/$f"; then
15481 # Source tree
15482 echo "$srcdir/$f"
15483 else
15484 # /dev/null tree
15485 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15486 echo "$as_me: error: cannot find input file: $f" >&2;}
15487 { (exit 1); exit 1; }; }
15488 fi;;
15489 esac
15490 done` || { (exit 1); exit 1; }
15491 # Remove the trailing spaces.
15492 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15493
15494 _ACEOF
15495
15496 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15497 # `conftest.undefs', that substitutes the proper values into
15498 # config.h.in to produce config.h. The first handles `#define'
15499 # templates, and the second `#undef' templates.
15500 # And first: Protect against being on the right side of a sed subst in
15501 # config.status. Protect against being in an unquoted here document
15502 # in config.status.
15503 rm -f conftest.defines conftest.undefs
15504 # Using a here document instead of a string reduces the quoting nightmare.
15505 # Putting comments in sed scripts is not portable.
15506 #
15507 # `end' is used to avoid that the second main sed command (meant for
15508 # 0-ary CPP macros) applies to n-ary macro definitions.
15509 # See the Autoconf documentation for `clear'.
15510 cat >confdef2sed.sed <<\_ACEOF
15511 s/[\\&,]/\\&/g
15512 s,[\\$`],\\&,g
15513 t clear
15514 : clear
15515 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15516 t end
15517 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15518 : end
15519 _ACEOF
15520 # If some macros were called several times there might be several times
15521 # the same #defines, which is useless. Nevertheless, we may not want to
15522 # sort them, since we want the *last* AC-DEFINE to be honored.
15523 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15524 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15525 rm -f confdef2sed.sed
15526
15527 # This sed command replaces #undef with comments. This is necessary, for
15528 # example, in the case of _POSIX_SOURCE, which is predefined and required
15529 # on some systems where configure will not decide to define it.
15530 cat >>conftest.undefs <<\_ACEOF
15531 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15532 _ACEOF
15533
15534 # Break up conftest.defines because some shells have a limit on the size
15535 # of here documents, and old seds have small limits too (100 cmds).
15536 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15537 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15538 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15539 echo ' :' >>$CONFIG_STATUS
15540 rm -f conftest.tail
15541 while grep . conftest.defines >/dev/null
15542 do
15543 # Write a limited-size here document to $tmp/defines.sed.
15544 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15545 # Speed up: don't consider the non `#define' lines.
15546 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15547 # Work around the forget-to-reset-the-flag bug.
15548 echo 't clr' >>$CONFIG_STATUS
15549 echo ': clr' >>$CONFIG_STATUS
15550 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15551 echo 'CEOF
15552 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15553 rm -f $tmp/in
15554 mv $tmp/out $tmp/in
15555 ' >>$CONFIG_STATUS
15556 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15557 rm -f conftest.defines
15558 mv conftest.tail conftest.defines
15559 done
15560 rm -f conftest.defines
15561 echo ' fi # grep' >>$CONFIG_STATUS
15562 echo >>$CONFIG_STATUS
15563
15564 # Break up conftest.undefs because some shells have a limit on the size
15565 # of here documents, and old seds have small limits too (100 cmds).
15566 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15567 rm -f conftest.tail
15568 while grep . conftest.undefs >/dev/null
15569 do
15570 # Write a limited-size here document to $tmp/undefs.sed.
15571 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15572 # Speed up: don't consider the non `#undef'
15573 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15574 # Work around the forget-to-reset-the-flag bug.
15575 echo 't clr' >>$CONFIG_STATUS
15576 echo ': clr' >>$CONFIG_STATUS
15577 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15578 echo 'CEOF
15579 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15580 rm -f $tmp/in
15581 mv $tmp/out $tmp/in
15582 ' >>$CONFIG_STATUS
15583 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15584 rm -f conftest.undefs
15585 mv conftest.tail conftest.undefs
15586 done
15587 rm -f conftest.undefs
15588
15589 cat >>$CONFIG_STATUS <<\_ACEOF
15590 # Let's still pretend it is `configure' which instantiates (i.e., don't
15591 # use $as_me), people would be surprised to read:
15592 # /* config.h. Generated by config.status. */
15593 if test x"$ac_file" = x-; then
15594 echo "/* Generated by configure. */" >$tmp/config.h
15595 else
15596 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15597 fi
15598 cat $tmp/in >>$tmp/config.h
15599 rm -f $tmp/in
15600 if test x"$ac_file" != x-; then
15601 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15602 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15603 echo "$as_me: $ac_file is unchanged" >&6;}
15604 else
15605 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15606 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15607 X"$ac_file" : 'X\(//\)[^/]' \| \
15608 X"$ac_file" : 'X\(//\)$' \| \
15609 X"$ac_file" : 'X\(/\)' \| \
15610 . : '\(.\)' 2>/dev/null ||
15611 echo X"$ac_file" |
15612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15613 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15614 /^X\(\/\/\)$/{ s//\1/; q; }
15615 /^X\(\/\).*/{ s//\1/; q; }
15616 s/.*/./; q'`
15617 { if $as_mkdir_p; then
15618 mkdir -p "$ac_dir"
15619 else
15620 as_dir="$ac_dir"
15621 as_dirs=
15622 while test ! -d "$as_dir"; do
15623 as_dirs="$as_dir $as_dirs"
15624 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15625 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15626 X"$as_dir" : 'X\(//\)[^/]' \| \
15627 X"$as_dir" : 'X\(//\)$' \| \
15628 X"$as_dir" : 'X\(/\)' \| \
15629 . : '\(.\)' 2>/dev/null ||
15630 echo X"$as_dir" |
15631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15632 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15633 /^X\(\/\/\)$/{ s//\1/; q; }
15634 /^X\(\/\).*/{ s//\1/; q; }
15635 s/.*/./; q'`
15636 done
15637 test ! -n "$as_dirs" || mkdir $as_dirs
15638 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15639 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15640 { (exit 1); exit 1; }; }; }
15641
15642 rm -f $ac_file
15643 mv $tmp/config.h $ac_file
15644 fi
15645 else
15646 cat $tmp/config.h
15647 rm -f $tmp/config.h
15648 fi
15649 # Compute $ac_file's index in $config_headers.
15650 _am_stamp_count=1
15651 for _am_header in $config_headers :; do
15652 case $_am_header in
15653 $ac_file | $ac_file:* )
15654 break ;;
15655 * )
15656 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15657 esac
15658 done
15659 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15660 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15661 X$ac_file : 'X\(//\)[^/]' \| \
15662 X$ac_file : 'X\(//\)$' \| \
15663 X$ac_file : 'X\(/\)' \| \
15664 . : '\(.\)' 2>/dev/null ||
15665 echo X$ac_file |
15666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15667 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15668 /^X\(\/\/\)$/{ s//\1/; q; }
15669 /^X\(\/\).*/{ s//\1/; q; }
15670 s/.*/./; q'`/stamp-h$_am_stamp_count
15671 done
15672 _ACEOF
15673 cat >>$CONFIG_STATUS <<\_ACEOF
15674
15675 #
15676 # CONFIG_COMMANDS section.
15677 #
15678 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15679 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15680 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15681 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15682 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15683 X"$ac_dest" : 'X\(//\)[^/]' \| \
15684 X"$ac_dest" : 'X\(//\)$' \| \
15685 X"$ac_dest" : 'X\(/\)' \| \
15686 . : '\(.\)' 2>/dev/null ||
15687 echo X"$ac_dest" |
15688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15689 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15690 /^X\(\/\/\)$/{ s//\1/; q; }
15691 /^X\(\/\).*/{ s//\1/; q; }
15692 s/.*/./; q'`
15693 { if $as_mkdir_p; then
15694 mkdir -p "$ac_dir"
15695 else
15696 as_dir="$ac_dir"
15697 as_dirs=
15698 while test ! -d "$as_dir"; do
15699 as_dirs="$as_dir $as_dirs"
15700 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15701 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15702 X"$as_dir" : 'X\(//\)[^/]' \| \
15703 X"$as_dir" : 'X\(//\)$' \| \
15704 X"$as_dir" : 'X\(/\)' \| \
15705 . : '\(.\)' 2>/dev/null ||
15706 echo X"$as_dir" |
15707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15708 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15709 /^X\(\/\/\)$/{ s//\1/; q; }
15710 /^X\(\/\).*/{ s//\1/; q; }
15711 s/.*/./; q'`
15712 done
15713 test ! -n "$as_dirs" || mkdir $as_dirs
15714 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15715 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15716 { (exit 1); exit 1; }; }; }
15717
15718 ac_builddir=.
15719
15720 if test "$ac_dir" != .; then
15721 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15722 # A "../" for each directory in $ac_dir_suffix.
15723 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15724 else
15725 ac_dir_suffix= ac_top_builddir=
15726 fi
15727
15728 case $srcdir in
15729 .) # No --srcdir option. We are building in place.
15730 ac_srcdir=.
15731 if test -z "$ac_top_builddir"; then
15732 ac_top_srcdir=.
15733 else
15734 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15735 fi ;;
15736 [\\/]* | ?:[\\/]* ) # Absolute path.
15737 ac_srcdir=$srcdir$ac_dir_suffix;
15738 ac_top_srcdir=$srcdir ;;
15739 *) # Relative path.
15740 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15741 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15742 esac
15743
15744 # Do not use `cd foo && pwd` to compute absolute paths, because
15745 # the directories may not exist.
15746 case `pwd` in
15747 .) ac_abs_builddir="$ac_dir";;
15748 *)
15749 case "$ac_dir" in
15750 .) ac_abs_builddir=`pwd`;;
15751 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15752 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15753 esac;;
15754 esac
15755 case $ac_abs_builddir in
15756 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15757 *)
15758 case ${ac_top_builddir}. in
15759 .) ac_abs_top_builddir=$ac_abs_builddir;;
15760 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15761 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15762 esac;;
15763 esac
15764 case $ac_abs_builddir in
15765 .) ac_abs_srcdir=$ac_srcdir;;
15766 *)
15767 case $ac_srcdir in
15768 .) ac_abs_srcdir=$ac_abs_builddir;;
15769 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15770 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15771 esac;;
15772 esac
15773 case $ac_abs_builddir in
15774 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15775 *)
15776 case $ac_top_srcdir in
15777 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15778 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15779 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15780 esac;;
15781 esac
15782
15783
15784 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15785 echo "$as_me: executing $ac_dest commands" >&6;}
15786 case $ac_dest in
15787 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15788 # Strip MF so we end up with the name of the file.
15789 mf=`echo "$mf" | sed -e 's/:.*$//'`
15790 # Check whether this is an Automake generated Makefile or not.
15791 # We used to match only the files named `Makefile.in', but
15792 # some people rename them; so instead we look at the file content.
15793 # Grep'ing the first line is not enough: some people post-process
15794 # each Makefile.in and add a new line on top of each file to say so.
15795 # So let's grep whole file.
15796 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15797 dirpart=`(dirname "$mf") 2>/dev/null ||
15798 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15799 X"$mf" : 'X\(//\)[^/]' \| \
15800 X"$mf" : 'X\(//\)$' \| \
15801 X"$mf" : 'X\(/\)' \| \
15802 . : '\(.\)' 2>/dev/null ||
15803 echo X"$mf" |
15804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15805 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15806 /^X\(\/\/\)$/{ s//\1/; q; }
15807 /^X\(\/\).*/{ s//\1/; q; }
15808 s/.*/./; q'`
15809 else
15810 continue
15811 fi
15812 # Extract the definition of DEPDIR, am__include, and am__quote
15813 # from the Makefile without running `make'.
15814 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15815 test -z "$DEPDIR" && continue
15816 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15817 test -z "am__include" && continue
15818 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15819 # When using ansi2knr, U may be empty or an underscore; expand it
15820 U=`sed -n 's/^U = //p' < "$mf"`
15821 # Find all dependency output files, they are included files with
15822 # $(DEPDIR) in their names. We invoke sed twice because it is the
15823 # simplest approach to changing $(DEPDIR) to its actual value in the
15824 # expansion.
15825 for file in `sed -n "
15826 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15827 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15828 # Make sure the directory exists.
15829 test -f "$dirpart/$file" && continue
15830 fdir=`(dirname "$file") 2>/dev/null ||
15831 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15832 X"$file" : 'X\(//\)[^/]' \| \
15833 X"$file" : 'X\(//\)$' \| \
15834 X"$file" : 'X\(/\)' \| \
15835 . : '\(.\)' 2>/dev/null ||
15836 echo X"$file" |
15837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15838 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15839 /^X\(\/\/\)$/{ s//\1/; q; }
15840 /^X\(\/\).*/{ s//\1/; q; }
15841 s/.*/./; q'`
15842 { if $as_mkdir_p; then
15843 mkdir -p $dirpart/$fdir
15844 else
15845 as_dir=$dirpart/$fdir
15846 as_dirs=
15847 while test ! -d "$as_dir"; do
15848 as_dirs="$as_dir $as_dirs"
15849 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15850 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15851 X"$as_dir" : 'X\(//\)[^/]' \| \
15852 X"$as_dir" : 'X\(//\)$' \| \
15853 X"$as_dir" : 'X\(/\)' \| \
15854 . : '\(.\)' 2>/dev/null ||
15855 echo X"$as_dir" |
15856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15857 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15858 /^X\(\/\/\)$/{ s//\1/; q; }
15859 /^X\(\/\).*/{ s//\1/; q; }
15860 s/.*/./; q'`
15861 done
15862 test ! -n "$as_dirs" || mkdir $as_dirs
15863 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15864 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15865 { (exit 1); exit 1; }; }; }
15866
15867 # echo "creating $dirpart/$file"
15868 echo '# dummy' > "$dirpart/$file"
15869 done
15870 done
15871 ;;
15872 default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
15873 esac
15874 done
15875 _ACEOF
15876
15877 cat >>$CONFIG_STATUS <<\_ACEOF
15878
15879 { (exit 0); exit 0; }
15880 _ACEOF
15881 chmod +x $CONFIG_STATUS
15882 ac_clean_files=$ac_clean_files_save
15883
15884
15885 # configure is writing to config.log, and then calls config.status.
15886 # config.status does its own redirection, appending to config.log.
15887 # Unfortunately, on DOS this fails, as config.log is still kept open
15888 # by configure, so config.status won't be able to write to it; its
15889 # output is simply discarded. So we exec the FD to /dev/null,
15890 # effectively closing config.log, so it can be properly (re)opened and
15891 # appended to by config.status. When coming back to configure, we
15892 # need to make the FD available again.
15893 if test "$no_create" != yes; then
15894 ac_cs_success=:
15895 ac_config_status_args=
15896 test "$silent" = yes &&
15897 ac_config_status_args="$ac_config_status_args --quiet"
15898 exec 5>/dev/null
15899 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15900 exec 5>>config.log
15901 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15902 # would make configure fail if this is the last instruction.
15903 $ac_cs_success || { (exit 1); exit 1; }
15904 fi
15905
15906