]> git.ipfire.org Git - thirdparty/gcc.git/blob - libiberty/configure
config.table: Delete file.
[thirdparty/gcc.git] / libiberty / 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="xmalloc.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 libiberty_topdir MAINT NOTMAINT MAKEINFO BUILD_INFO PERL HAVE_PERL build build_cpu build_vendor build_os host host_cpu host_vendor host_os AR ac_ct_AR RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP ac_libiberty_warn_cflags NO_MINUS_C_MINUS_O OUTPUT_OPTION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP LIBOBJS CHECK target_header_dir pexecute INSTALL_DEST LTLIBOBJS'
313 ac_subst_files='host_makefile_frag'
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 System types:
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837 _ACEOF
838 fi
839
840 if test -n "$ac_init_help"; then
841
842 cat <<\_ACEOF
843
844 Optional Features:
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --enable-maintainer-mode
848 enable make rules and dependencies not useful
849 (and sometimes confusing) to the casual installer
850 --enable-install-libiberty Install headers for end users
851
852 Optional Packages:
853 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
854 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
855 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
856 --with-build-subdir=SUBDIR Configuring in a subdirectory for build
857 --with-cross-host=HOST Configuring with a cross compiler
858 --with-newlib Configuring with newlib
859
860 Some influential environment variables:
861 CC C compiler command
862 CFLAGS C compiler flags
863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
864 nonstandard directory <lib dir>
865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
866 headers in a nonstandard directory <include dir>
867 CPP C preprocessor
868
869 Use these variables to override the choices made by `configure' or to help
870 it to find libraries and programs with nonstandard names/locations.
871
872 _ACEOF
873 fi
874
875 if test "$ac_init_help" = "recursive"; then
876 # If there are subdirs, report their specific --help.
877 ac_popdir=`pwd`
878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879 test -d $ac_dir || continue
880 ac_builddir=.
881
882 if test "$ac_dir" != .; then
883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884 # A "../" for each directory in $ac_dir_suffix.
885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
886 else
887 ac_dir_suffix= ac_top_builddir=
888 fi
889
890 case $srcdir in
891 .) # No --srcdir option. We are building in place.
892 ac_srcdir=.
893 if test -z "$ac_top_builddir"; then
894 ac_top_srcdir=.
895 else
896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
897 fi ;;
898 [\\/]* | ?:[\\/]* ) # Absolute path.
899 ac_srcdir=$srcdir$ac_dir_suffix;
900 ac_top_srcdir=$srcdir ;;
901 *) # Relative path.
902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
904 esac
905
906 # Do not use `cd foo && pwd` to compute absolute paths, because
907 # the directories may not exist.
908 case `pwd` in
909 .) ac_abs_builddir="$ac_dir";;
910 *)
911 case "$ac_dir" in
912 .) ac_abs_builddir=`pwd`;;
913 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
914 *) ac_abs_builddir=`pwd`/"$ac_dir";;
915 esac;;
916 esac
917 case $ac_abs_builddir in
918 .) ac_abs_top_builddir=${ac_top_builddir}.;;
919 *)
920 case ${ac_top_builddir}. in
921 .) ac_abs_top_builddir=$ac_abs_builddir;;
922 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
923 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
924 esac;;
925 esac
926 case $ac_abs_builddir in
927 .) ac_abs_srcdir=$ac_srcdir;;
928 *)
929 case $ac_srcdir in
930 .) ac_abs_srcdir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
932 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
933 esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_top_srcdir=$ac_top_srcdir;;
937 *)
938 case $ac_top_srcdir in
939 .) ac_abs_top_srcdir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
941 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
942 esac;;
943 esac
944
945 cd $ac_dir
946 # Check for guested configure; otherwise get Cygnus style configure.
947 if test -f $ac_srcdir/configure.gnu; then
948 echo
949 $SHELL $ac_srcdir/configure.gnu --help=recursive
950 elif test -f $ac_srcdir/configure; then
951 echo
952 $SHELL $ac_srcdir/configure --help=recursive
953 elif test -f $ac_srcdir/configure.ac ||
954 test -f $ac_srcdir/configure.in; then
955 echo
956 $ac_configure --help
957 else
958 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
959 fi
960 cd $ac_popdir
961 done
962 fi
963
964 test -n "$ac_init_help" && exit 0
965 if $ac_init_version; then
966 cat <<\_ACEOF
967
968 Copyright (C) 2003 Free Software Foundation, Inc.
969 This configure script is free software; the Free Software Foundation
970 gives unlimited permission to copy, distribute and modify it.
971 _ACEOF
972 exit 0
973 fi
974 exec 5>config.log
975 cat >&5 <<_ACEOF
976 This file contains any messages produced by compilers while
977 running configure, to aid debugging if configure makes a mistake.
978
979 It was created by $as_me, which was
980 generated by GNU Autoconf 2.59. Invocation command line was
981
982 $ $0 $@
983
984 _ACEOF
985 {
986 cat <<_ASUNAME
987 ## --------- ##
988 ## Platform. ##
989 ## --------- ##
990
991 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
992 uname -m = `(uname -m) 2>/dev/null || echo unknown`
993 uname -r = `(uname -r) 2>/dev/null || echo unknown`
994 uname -s = `(uname -s) 2>/dev/null || echo unknown`
995 uname -v = `(uname -v) 2>/dev/null || echo unknown`
996
997 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
998 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
999
1000 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1001 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1002 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1003 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1004 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1005 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1006 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1007
1008 _ASUNAME
1009
1010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1011 for as_dir in $PATH
1012 do
1013 IFS=$as_save_IFS
1014 test -z "$as_dir" && as_dir=.
1015 echo "PATH: $as_dir"
1016 done
1017
1018 } >&5
1019
1020 cat >&5 <<_ACEOF
1021
1022
1023 ## ----------- ##
1024 ## Core tests. ##
1025 ## ----------- ##
1026
1027 _ACEOF
1028
1029
1030 # Keep a trace of the command line.
1031 # Strip out --no-create and --no-recursion so they do not pile up.
1032 # Strip out --silent because we don't want to record it for future runs.
1033 # Also quote any args containing shell meta-characters.
1034 # Make two passes to allow for proper duplicate-argument suppression.
1035 ac_configure_args=
1036 ac_configure_args0=
1037 ac_configure_args1=
1038 ac_sep=
1039 ac_must_keep_next=false
1040 for ac_pass in 1 2
1041 do
1042 for ac_arg
1043 do
1044 case $ac_arg in
1045 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1048 continue ;;
1049 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1050 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1051 esac
1052 case $ac_pass in
1053 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1054 2)
1055 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1056 if test $ac_must_keep_next = true; then
1057 ac_must_keep_next=false # Got value, back to normal.
1058 else
1059 case $ac_arg in
1060 *=* | --config-cache | -C | -disable-* | --disable-* \
1061 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1062 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1063 | -with-* | --with-* | -without-* | --without-* | --x)
1064 case "$ac_configure_args0 " in
1065 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1066 esac
1067 ;;
1068 -* ) ac_must_keep_next=true ;;
1069 esac
1070 fi
1071 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1072 # Get rid of the leading space.
1073 ac_sep=" "
1074 ;;
1075 esac
1076 done
1077 done
1078 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1079 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1080
1081 # When interrupted or exit'd, cleanup temporary files, and complete
1082 # config.log. We remove comments because anyway the quotes in there
1083 # would cause problems or look ugly.
1084 # WARNING: Be sure not to use single quotes in there, as some shells,
1085 # such as our DU 5.0 friend, will then `close' the trap.
1086 trap 'exit_status=$?
1087 # Save into config.log some information that might help in debugging.
1088 {
1089 echo
1090
1091 cat <<\_ASBOX
1092 ## ---------------- ##
1093 ## Cache variables. ##
1094 ## ---------------- ##
1095 _ASBOX
1096 echo
1097 # The following way of writing the cache mishandles newlines in values,
1098 {
1099 (set) 2>&1 |
1100 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1101 *ac_space=\ *)
1102 sed -n \
1103 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1104 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1105 ;;
1106 *)
1107 sed -n \
1108 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1109 ;;
1110 esac;
1111 }
1112 echo
1113
1114 cat <<\_ASBOX
1115 ## ----------------- ##
1116 ## Output variables. ##
1117 ## ----------------- ##
1118 _ASBOX
1119 echo
1120 for ac_var in $ac_subst_vars
1121 do
1122 eval ac_val=$`echo $ac_var`
1123 echo "$ac_var='"'"'$ac_val'"'"'"
1124 done | sort
1125 echo
1126
1127 if test -n "$ac_subst_files"; then
1128 cat <<\_ASBOX
1129 ## ------------- ##
1130 ## Output files. ##
1131 ## ------------- ##
1132 _ASBOX
1133 echo
1134 for ac_var in $ac_subst_files
1135 do
1136 eval ac_val=$`echo $ac_var`
1137 echo "$ac_var='"'"'$ac_val'"'"'"
1138 done | sort
1139 echo
1140 fi
1141
1142 if test -s confdefs.h; then
1143 cat <<\_ASBOX
1144 ## ----------- ##
1145 ## confdefs.h. ##
1146 ## ----------- ##
1147 _ASBOX
1148 echo
1149 sed "/^$/d" confdefs.h | sort
1150 echo
1151 fi
1152 test "$ac_signal" != 0 &&
1153 echo "$as_me: caught signal $ac_signal"
1154 echo "$as_me: exit $exit_status"
1155 } >&5
1156 rm -f core *.core &&
1157 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1158 exit $exit_status
1159 ' 0
1160 for ac_signal in 1 2 13 15; do
1161 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1162 done
1163 ac_signal=0
1164
1165 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1166 rm -rf conftest* confdefs.h
1167 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1168 echo >confdefs.h
1169
1170 # Predefined preprocessor variables.
1171
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_NAME "$PACKAGE_NAME"
1174 _ACEOF
1175
1176
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1179 _ACEOF
1180
1181
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1184 _ACEOF
1185
1186
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_STRING "$PACKAGE_STRING"
1189 _ACEOF
1190
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1194 _ACEOF
1195
1196
1197 # Let the site file select an alternate cache file if it wants to.
1198 # Prefer explicitly selected file to automatically selected ones.
1199 if test -z "$CONFIG_SITE"; then
1200 if test "x$prefix" != xNONE; then
1201 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1202 else
1203 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1204 fi
1205 fi
1206 for ac_site_file in $CONFIG_SITE; do
1207 if test -r "$ac_site_file"; then
1208 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1209 echo "$as_me: loading site script $ac_site_file" >&6;}
1210 sed 's/^/| /' "$ac_site_file" >&5
1211 . "$ac_site_file"
1212 fi
1213 done
1214
1215 if test -r "$cache_file"; then
1216 # Some versions of bash will fail to source /dev/null (special
1217 # files actually), so we avoid doing that.
1218 if test -f "$cache_file"; then
1219 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1220 echo "$as_me: loading cache $cache_file" >&6;}
1221 case $cache_file in
1222 [\\/]* | ?:[\\/]* ) . $cache_file;;
1223 *) . ./$cache_file;;
1224 esac
1225 fi
1226 else
1227 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1228 echo "$as_me: creating cache $cache_file" >&6;}
1229 >$cache_file
1230 fi
1231
1232 # Check that the precious variables saved in the cache have kept the same
1233 # value.
1234 ac_cache_corrupted=false
1235 for ac_var in `(set) 2>&1 |
1236 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1237 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1238 eval ac_new_set=\$ac_env_${ac_var}_set
1239 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1240 eval ac_new_val="\$ac_env_${ac_var}_value"
1241 case $ac_old_set,$ac_new_set in
1242 set,)
1243 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1244 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1245 ac_cache_corrupted=: ;;
1246 ,set)
1247 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1248 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1249 ac_cache_corrupted=: ;;
1250 ,);;
1251 *)
1252 if test "x$ac_old_val" != "x$ac_new_val"; then
1253 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1254 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1255 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1256 echo "$as_me: former value: $ac_old_val" >&2;}
1257 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1258 echo "$as_me: current value: $ac_new_val" >&2;}
1259 ac_cache_corrupted=:
1260 fi;;
1261 esac
1262 # Pass precious variables to config.status.
1263 if test "$ac_new_set" = set; then
1264 case $ac_new_val in
1265 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1267 *) ac_arg=$ac_var=$ac_new_val ;;
1268 esac
1269 case " $ac_configure_args " in
1270 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1271 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1272 esac
1273 fi
1274 done
1275 if $ac_cache_corrupted; then
1276 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1277 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1278 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1279 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1280 { (exit 1); exit 1; }; }
1281 fi
1282
1283 ac_ext=c
1284 ac_cpp='$CPP $CPPFLAGS'
1285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309 # This works around the fact that libtool configuration may change LD
1310 # for this particular configuration, but some shells, instead of
1311 # keeping the changes in LD private, export them just because LD is
1312 # exported. We don't use libtool yet, but some day we might, so...
1313 ORIGINAL_LD_FOR_MULTILIBS=$LD
1314
1315
1316 # Check whether --with-target-subdir or --without-target-subdir was given.
1317 if test "${with_target_subdir+set}" = set; then
1318 withval="$with_target_subdir"
1319
1320 fi;
1321
1322 # Check whether --with-build-subdir or --without-build-subdir was given.
1323 if test "${with_build_subdir+set}" = set; then
1324 withval="$with_build_subdir"
1325
1326 fi;
1327
1328 # Check whether --with-cross-host or --without-cross-host was given.
1329 if test "${with_cross_host+set}" = set; then
1330 withval="$with_cross_host"
1331
1332 fi;
1333
1334 # Check whether --with-newlib or --without-newlib was given.
1335 if test "${with_newlib+set}" = set; then
1336 withval="$with_newlib"
1337
1338 fi;
1339
1340 if test "${srcdir}" = "."; then
1341 if test -n "${with_build_subdir}"; then
1342 libiberty_topdir="${srcdir}/../.."
1343 with_target_subdir=
1344 elif test -z "${with_target_subdir}"; then
1345 libiberty_topdir="${srcdir}/.."
1346 else
1347 if test "${with_target_subdir}" != "."; then
1348 libiberty_topdir="${srcdir}/${with_multisrctop}../.."
1349 else
1350 libiberty_topdir="${srcdir}/${with_multisrctop}.."
1351 fi
1352 fi
1353 else
1354 libiberty_topdir="${srcdir}/.."
1355 fi
1356
1357 ac_aux_dir=
1358 for ac_dir in $libiberty_topdir $srcdir/$libiberty_topdir; do
1359 if test -f $ac_dir/install-sh; then
1360 ac_aux_dir=$ac_dir
1361 ac_install_sh="$ac_aux_dir/install-sh -c"
1362 break
1363 elif test -f $ac_dir/install.sh; then
1364 ac_aux_dir=$ac_dir
1365 ac_install_sh="$ac_aux_dir/install.sh -c"
1366 break
1367 elif test -f $ac_dir/shtool; then
1368 ac_aux_dir=$ac_dir
1369 ac_install_sh="$ac_aux_dir/shtool install -c"
1370 break
1371 fi
1372 done
1373 if test -z "$ac_aux_dir"; then
1374 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&5
1375 echo "$as_me: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&2;}
1376 { (exit 1); exit 1; }; }
1377 fi
1378 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1379 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1380 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1381
1382
1383
1384 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1385 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1386 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1387 if test "${enable_maintainer_mode+set}" = set; then
1388 enableval="$enable_maintainer_mode"
1389 maintainer_mode=$enableval
1390 else
1391 maintainer_mode=no
1392 fi;
1393
1394 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
1395 echo "${ECHO_T}$maintainer_mode" >&6
1396
1397 if test "$maintainer_mode" = "yes"; then
1398 MAINT=''
1399 NOTMAINT='#'
1400 else
1401 MAINT='#'
1402 NOTMAINT=''
1403 fi
1404
1405 # Do we have a single-tree copy of texinfo? Even if we do, we can't
1406 # rely on it - libiberty is built before texinfo.
1407 # Extract the first word of "makeinfo", so it can be a program name with args.
1408 set dummy makeinfo; ac_word=$2
1409 echo "$as_me:$LINENO: checking for $ac_word" >&5
1410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1411 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
1412 echo $ECHO_N "(cached) $ECHO_C" >&6
1413 else
1414 if test -n "$MAKEINFO"; then
1415 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1416 else
1417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1418 for as_dir in $PATH
1419 do
1420 IFS=$as_save_IFS
1421 test -z "$as_dir" && as_dir=.
1422 for ac_exec_ext in '' $ac_executable_extensions; do
1423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1424 ac_cv_prog_MAKEINFO="makeinfo"
1425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1426 break 2
1427 fi
1428 done
1429 done
1430
1431 fi
1432 fi
1433 MAKEINFO=$ac_cv_prog_MAKEINFO
1434 if test -n "$MAKEINFO"; then
1435 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
1436 echo "${ECHO_T}$MAKEINFO" >&6
1437 else
1438 echo "$as_me:$LINENO: result: no" >&5
1439 echo "${ECHO_T}no" >&6
1440 fi
1441
1442 if test "x$MAKEINFO" = "x"; then
1443 MAKEINFO="@echo makeinfo missing; true"
1444 BUILD_INFO=
1445 else
1446 BUILD_INFO=info
1447 case "$MAKEINFO" in
1448 */missing\ makeinfo*)
1449 BUILD_INFO=
1450 { echo "$as_me:$LINENO: WARNING:
1451 *** Makeinfo is missing. Info documentation will not be built." >&5
1452 echo "$as_me: WARNING:
1453 *** Makeinfo is missing. Info documentation will not be built." >&2;}
1454 ;;
1455 *)
1456 case x"`$MAKEINFO --version | grep 'GNU texinfo'`" in
1457 x*\ [1-3].* )
1458 MAKEINFO="@echo $MAKEINFO is too old, 4.0 or newer required; true"
1459 BUILD_INFO=
1460 { echo "$as_me:$LINENO: WARNING:
1461 *** Makeinfo is too old. Info documentation will not be built." >&5
1462 echo "$as_me: WARNING:
1463 *** Makeinfo is too old. Info documentation will not be built." >&2;}
1464 ;;
1465 esac
1466 ;;
1467 esac
1468 fi
1469
1470
1471
1472 # Extract the first word of "perl", so it can be a program name with args.
1473 set dummy perl; ac_word=$2
1474 echo "$as_me:$LINENO: checking for $ac_word" >&5
1475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1476 if test "${ac_cv_prog_PERL+set}" = set; then
1477 echo $ECHO_N "(cached) $ECHO_C" >&6
1478 else
1479 if test -n "$PERL"; then
1480 ac_cv_prog_PERL="$PERL" # Let the user override the test.
1481 else
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483 for as_dir in $PATH
1484 do
1485 IFS=$as_save_IFS
1486 test -z "$as_dir" && as_dir=.
1487 for ac_exec_ext in '' $ac_executable_extensions; do
1488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489 ac_cv_prog_PERL="perl"
1490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1491 break 2
1492 fi
1493 done
1494 done
1495
1496 fi
1497 fi
1498 PERL=$ac_cv_prog_PERL
1499 if test -n "$PERL"; then
1500 echo "$as_me:$LINENO: result: $PERL" >&5
1501 echo "${ECHO_T}$PERL" >&6
1502 else
1503 echo "$as_me:$LINENO: result: no" >&5
1504 echo "${ECHO_T}no" >&6
1505 fi
1506
1507 if test x"$PERL" = x""; then
1508 HAVE_PERL='#'
1509 else
1510 HAVE_PERL=''
1511 fi
1512
1513
1514 # Make sure we can run config.sub.
1515 $ac_config_sub sun4 >/dev/null 2>&1 ||
1516 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1517 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1518 { (exit 1); exit 1; }; }
1519
1520 echo "$as_me:$LINENO: checking build system type" >&5
1521 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1522 if test "${ac_cv_build+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 else
1525 ac_cv_build_alias=$build_alias
1526 test -z "$ac_cv_build_alias" &&
1527 ac_cv_build_alias=`$ac_config_guess`
1528 test -z "$ac_cv_build_alias" &&
1529 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1530 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1531 { (exit 1); exit 1; }; }
1532 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1533 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1534 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1535 { (exit 1); exit 1; }; }
1536
1537 fi
1538 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1539 echo "${ECHO_T}$ac_cv_build" >&6
1540 build=$ac_cv_build
1541 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1542 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1543 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1544
1545
1546 echo "$as_me:$LINENO: checking host system type" >&5
1547 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1548 if test "${ac_cv_host+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1550 else
1551 ac_cv_host_alias=$host_alias
1552 test -z "$ac_cv_host_alias" &&
1553 ac_cv_host_alias=$ac_cv_build_alias
1554 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1555 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1556 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1557 { (exit 1); exit 1; }; }
1558
1559 fi
1560 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1561 echo "${ECHO_T}$ac_cv_host" >&6
1562 host=$ac_cv_host
1563 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1564 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1565 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1566
1567
1568
1569
1570 if test -n "$ac_tool_prefix"; then
1571 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1572 set dummy ${ac_tool_prefix}ar; ac_word=$2
1573 echo "$as_me:$LINENO: checking for $ac_word" >&5
1574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1575 if test "${ac_cv_prog_AR+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1577 else
1578 if test -n "$AR"; then
1579 ac_cv_prog_AR="$AR" # Let the user override the test.
1580 else
1581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582 for as_dir in $PATH
1583 do
1584 IFS=$as_save_IFS
1585 test -z "$as_dir" && as_dir=.
1586 for ac_exec_ext in '' $ac_executable_extensions; do
1587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1588 ac_cv_prog_AR="${ac_tool_prefix}ar"
1589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1590 break 2
1591 fi
1592 done
1593 done
1594
1595 fi
1596 fi
1597 AR=$ac_cv_prog_AR
1598 if test -n "$AR"; then
1599 echo "$as_me:$LINENO: result: $AR" >&5
1600 echo "${ECHO_T}$AR" >&6
1601 else
1602 echo "$as_me:$LINENO: result: no" >&5
1603 echo "${ECHO_T}no" >&6
1604 fi
1605
1606 fi
1607 if test -z "$ac_cv_prog_AR"; then
1608 ac_ct_AR=$AR
1609 # Extract the first word of "ar", so it can be a program name with args.
1610 set dummy ar; ac_word=$2
1611 echo "$as_me:$LINENO: checking for $ac_word" >&5
1612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1615 else
1616 if test -n "$ac_ct_AR"; then
1617 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
1618 else
1619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 for as_dir in $PATH
1621 do
1622 IFS=$as_save_IFS
1623 test -z "$as_dir" && as_dir=.
1624 for ac_exec_ext in '' $ac_executable_extensions; do
1625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626 ac_cv_prog_ac_ct_AR="ar"
1627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1628 break 2
1629 fi
1630 done
1631 done
1632
1633 fi
1634 fi
1635 ac_ct_AR=$ac_cv_prog_ac_ct_AR
1636 if test -n "$ac_ct_AR"; then
1637 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
1638 echo "${ECHO_T}$ac_ct_AR" >&6
1639 else
1640 echo "$as_me:$LINENO: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1642 fi
1643
1644 AR=$ac_ct_AR
1645 else
1646 AR="$ac_cv_prog_AR"
1647 fi
1648
1649 if test -n "$ac_tool_prefix"; then
1650 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1651 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1652 echo "$as_me:$LINENO: checking for $ac_word" >&5
1653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1654 if test "${ac_cv_prog_RANLIB+set}" = set; then
1655 echo $ECHO_N "(cached) $ECHO_C" >&6
1656 else
1657 if test -n "$RANLIB"; then
1658 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1659 else
1660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661 for as_dir in $PATH
1662 do
1663 IFS=$as_save_IFS
1664 test -z "$as_dir" && as_dir=.
1665 for ac_exec_ext in '' $ac_executable_extensions; do
1666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1667 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1669 break 2
1670 fi
1671 done
1672 done
1673
1674 fi
1675 fi
1676 RANLIB=$ac_cv_prog_RANLIB
1677 if test -n "$RANLIB"; then
1678 echo "$as_me:$LINENO: result: $RANLIB" >&5
1679 echo "${ECHO_T}$RANLIB" >&6
1680 else
1681 echo "$as_me:$LINENO: result: no" >&5
1682 echo "${ECHO_T}no" >&6
1683 fi
1684
1685 fi
1686 if test -z "$ac_cv_prog_RANLIB"; then
1687 ac_ct_RANLIB=$RANLIB
1688 # Extract the first word of "ranlib", so it can be a program name with args.
1689 set dummy ranlib; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1694 else
1695 if test -n "$ac_ct_RANLIB"; then
1696 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1697 else
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 for as_dir in $PATH
1700 do
1701 IFS=$as_save_IFS
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 ac_cv_prog_ac_ct_RANLIB="ranlib"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707 break 2
1708 fi
1709 done
1710 done
1711
1712 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1713 fi
1714 fi
1715 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1716 if test -n "$ac_ct_RANLIB"; then
1717 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1718 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1719 else
1720 echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1722 fi
1723
1724 RANLIB=$ac_ct_RANLIB
1725 else
1726 RANLIB="$ac_cv_prog_RANLIB"
1727 fi
1728
1729
1730
1731 ac_ext=c
1732 ac_cpp='$CPP $CPPFLAGS'
1733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1736 if test -n "$ac_tool_prefix"; then
1737 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1738 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1739 echo "$as_me:$LINENO: checking for $ac_word" >&5
1740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1741 if test "${ac_cv_prog_CC+set}" = set; then
1742 echo $ECHO_N "(cached) $ECHO_C" >&6
1743 else
1744 if test -n "$CC"; then
1745 ac_cv_prog_CC="$CC" # Let the user override the test.
1746 else
1747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748 for as_dir in $PATH
1749 do
1750 IFS=$as_save_IFS
1751 test -z "$as_dir" && as_dir=.
1752 for ac_exec_ext in '' $ac_executable_extensions; do
1753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756 break 2
1757 fi
1758 done
1759 done
1760
1761 fi
1762 fi
1763 CC=$ac_cv_prog_CC
1764 if test -n "$CC"; then
1765 echo "$as_me:$LINENO: result: $CC" >&5
1766 echo "${ECHO_T}$CC" >&6
1767 else
1768 echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1770 fi
1771
1772 fi
1773 if test -z "$ac_cv_prog_CC"; then
1774 ac_ct_CC=$CC
1775 # Extract the first word of "gcc", so it can be a program name with args.
1776 set dummy gcc; ac_word=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1781 else
1782 if test -n "$ac_ct_CC"; then
1783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1784 else
1785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786 for as_dir in $PATH
1787 do
1788 IFS=$as_save_IFS
1789 test -z "$as_dir" && as_dir=.
1790 for ac_exec_ext in '' $ac_executable_extensions; do
1791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792 ac_cv_prog_ac_ct_CC="gcc"
1793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1794 break 2
1795 fi
1796 done
1797 done
1798
1799 fi
1800 fi
1801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1802 if test -n "$ac_ct_CC"; then
1803 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1804 echo "${ECHO_T}$ac_ct_CC" >&6
1805 else
1806 echo "$as_me:$LINENO: result: no" >&5
1807 echo "${ECHO_T}no" >&6
1808 fi
1809
1810 CC=$ac_ct_CC
1811 else
1812 CC="$ac_cv_prog_CC"
1813 fi
1814
1815 if test -z "$CC"; then
1816 if test -n "$ac_tool_prefix"; then
1817 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1818 set dummy ${ac_tool_prefix}cc; ac_word=$2
1819 echo "$as_me:$LINENO: checking for $ac_word" >&5
1820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821 if test "${ac_cv_prog_CC+set}" = set; then
1822 echo $ECHO_N "(cached) $ECHO_C" >&6
1823 else
1824 if test -n "$CC"; then
1825 ac_cv_prog_CC="$CC" # Let the user override the test.
1826 else
1827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828 for as_dir in $PATH
1829 do
1830 IFS=$as_save_IFS
1831 test -z "$as_dir" && as_dir=.
1832 for ac_exec_ext in '' $ac_executable_extensions; do
1833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1834 ac_cv_prog_CC="${ac_tool_prefix}cc"
1835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1836 break 2
1837 fi
1838 done
1839 done
1840
1841 fi
1842 fi
1843 CC=$ac_cv_prog_CC
1844 if test -n "$CC"; then
1845 echo "$as_me:$LINENO: result: $CC" >&5
1846 echo "${ECHO_T}$CC" >&6
1847 else
1848 echo "$as_me:$LINENO: result: no" >&5
1849 echo "${ECHO_T}no" >&6
1850 fi
1851
1852 fi
1853 if test -z "$ac_cv_prog_CC"; then
1854 ac_ct_CC=$CC
1855 # Extract the first word of "cc", so it can be a program name with args.
1856 set dummy cc; ac_word=$2
1857 echo "$as_me:$LINENO: checking for $ac_word" >&5
1858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1861 else
1862 if test -n "$ac_ct_CC"; then
1863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1864 else
1865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866 for as_dir in $PATH
1867 do
1868 IFS=$as_save_IFS
1869 test -z "$as_dir" && as_dir=.
1870 for ac_exec_ext in '' $ac_executable_extensions; do
1871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872 ac_cv_prog_ac_ct_CC="cc"
1873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1874 break 2
1875 fi
1876 done
1877 done
1878
1879 fi
1880 fi
1881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1882 if test -n "$ac_ct_CC"; then
1883 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1884 echo "${ECHO_T}$ac_ct_CC" >&6
1885 else
1886 echo "$as_me:$LINENO: result: no" >&5
1887 echo "${ECHO_T}no" >&6
1888 fi
1889
1890 CC=$ac_ct_CC
1891 else
1892 CC="$ac_cv_prog_CC"
1893 fi
1894
1895 fi
1896 if test -z "$CC"; then
1897 # Extract the first word of "cc", so it can be a program name with args.
1898 set dummy cc; ac_word=$2
1899 echo "$as_me:$LINENO: checking for $ac_word" >&5
1900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901 if test "${ac_cv_prog_CC+set}" = set; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1903 else
1904 if test -n "$CC"; then
1905 ac_cv_prog_CC="$CC" # Let the user override the test.
1906 else
1907 ac_prog_rejected=no
1908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909 for as_dir in $PATH
1910 do
1911 IFS=$as_save_IFS
1912 test -z "$as_dir" && as_dir=.
1913 for ac_exec_ext in '' $ac_executable_extensions; do
1914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1916 ac_prog_rejected=yes
1917 continue
1918 fi
1919 ac_cv_prog_CC="cc"
1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 break 2
1922 fi
1923 done
1924 done
1925
1926 if test $ac_prog_rejected = yes; then
1927 # We found a bogon in the path, so make sure we never use it.
1928 set dummy $ac_cv_prog_CC
1929 shift
1930 if test $# != 0; then
1931 # We chose a different compiler from the bogus one.
1932 # However, it has the same basename, so the bogon will be chosen
1933 # first if we set CC to just the basename; use the full file name.
1934 shift
1935 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1936 fi
1937 fi
1938 fi
1939 fi
1940 CC=$ac_cv_prog_CC
1941 if test -n "$CC"; then
1942 echo "$as_me:$LINENO: result: $CC" >&5
1943 echo "${ECHO_T}$CC" >&6
1944 else
1945 echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1947 fi
1948
1949 fi
1950 if test -z "$CC"; then
1951 if test -n "$ac_tool_prefix"; then
1952 for ac_prog in cl
1953 do
1954 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1955 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_CC+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961 if test -n "$CC"; then
1962 ac_cv_prog_CC="$CC" # Let the user override the test.
1963 else
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1966 do
1967 IFS=$as_save_IFS
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973 break 2
1974 fi
1975 done
1976 done
1977
1978 fi
1979 fi
1980 CC=$ac_cv_prog_CC
1981 if test -n "$CC"; then
1982 echo "$as_me:$LINENO: result: $CC" >&5
1983 echo "${ECHO_T}$CC" >&6
1984 else
1985 echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1987 fi
1988
1989 test -n "$CC" && break
1990 done
1991 fi
1992 if test -z "$CC"; then
1993 ac_ct_CC=$CC
1994 for ac_prog in cl
1995 do
1996 # Extract the first word of "$ac_prog", so it can be a program name with args.
1997 set dummy $ac_prog; ac_word=$2
1998 echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2002 else
2003 if test -n "$ac_ct_CC"; then
2004 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2005 else
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 for as_dir in $PATH
2008 do
2009 IFS=$as_save_IFS
2010 test -z "$as_dir" && as_dir=.
2011 for ac_exec_ext in '' $ac_executable_extensions; do
2012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2013 ac_cv_prog_ac_ct_CC="$ac_prog"
2014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015 break 2
2016 fi
2017 done
2018 done
2019
2020 fi
2021 fi
2022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2023 if test -n "$ac_ct_CC"; then
2024 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2025 echo "${ECHO_T}$ac_ct_CC" >&6
2026 else
2027 echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6
2029 fi
2030
2031 test -n "$ac_ct_CC" && break
2032 done
2033
2034 CC=$ac_ct_CC
2035 fi
2036
2037 fi
2038
2039
2040 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2041 See \`config.log' for more details." >&5
2042 echo "$as_me: error: no acceptable C compiler found in \$PATH
2043 See \`config.log' for more details." >&2;}
2044 { (exit 1); exit 1; }; }
2045
2046 # Provide some information about the compiler.
2047 echo "$as_me:$LINENO:" \
2048 "checking for C compiler version" >&5
2049 ac_compiler=`set X $ac_compile; echo $2`
2050 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2051 (eval $ac_compiler --version </dev/null >&5) 2>&5
2052 ac_status=$?
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); }
2055 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2056 (eval $ac_compiler -v </dev/null >&5) 2>&5
2057 ac_status=$?
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); }
2060 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2061 (eval $ac_compiler -V </dev/null >&5) 2>&5
2062 ac_status=$?
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }
2065
2066 cat >conftest.$ac_ext <<_ACEOF
2067 /* confdefs.h. */
2068 _ACEOF
2069 cat confdefs.h >>conftest.$ac_ext
2070 cat >>conftest.$ac_ext <<_ACEOF
2071 /* end confdefs.h. */
2072
2073 int
2074 main ()
2075 {
2076
2077 ;
2078 return 0;
2079 }
2080 _ACEOF
2081 # FIXME: Cleanup?
2082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2083 (eval $ac_link) 2>&5
2084 ac_status=$?
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }; then
2087 gcc_no_link=no
2088 else
2089 gcc_no_link=yes
2090 fi
2091
2092 if test x$gcc_no_link = xyes; then
2093 # Setting cross_compile will disable run tests; it will
2094 # also disable AC_CHECK_FILE but that's generally
2095 # correct if we can't link.
2096 cross_compiling=yes
2097 EXEEXT=
2098 else
2099 cat >conftest.$ac_ext <<_ACEOF
2100 /* confdefs.h. */
2101 _ACEOF
2102 cat confdefs.h >>conftest.$ac_ext
2103 cat >>conftest.$ac_ext <<_ACEOF
2104 /* end confdefs.h. */
2105
2106 int
2107 main ()
2108 {
2109
2110 ;
2111 return 0;
2112 }
2113 _ACEOF
2114 ac_clean_files_save=$ac_clean_files
2115 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2116 # Try to create an executable without -o first, disregard a.out.
2117 # It will help us diagnose broken compilers, and finding out an intuition
2118 # of exeext.
2119 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2120 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2121 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2122 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2123 (eval $ac_link_default) 2>&5
2124 ac_status=$?
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }; then
2127 # Find the output, starting from the most likely. This scheme is
2128 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2129 # resort.
2130
2131 # Be careful to initialize this variable, since it used to be cached.
2132 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2133 ac_cv_exeext=
2134 # b.out is created by i960 compilers.
2135 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2136 do
2137 test -f "$ac_file" || continue
2138 case $ac_file in
2139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2140 ;;
2141 conftest.$ac_ext )
2142 # This is the source file.
2143 ;;
2144 [ab].out )
2145 # We found the default executable, but exeext='' is most
2146 # certainly right.
2147 break;;
2148 *.* )
2149 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2150 # FIXME: I believe we export ac_cv_exeext for Libtool,
2151 # but it would be cool to find out if it's true. Does anybody
2152 # maintain Libtool? --akim.
2153 export ac_cv_exeext
2154 break;;
2155 * )
2156 break;;
2157 esac
2158 done
2159 else
2160 echo "$as_me: failed program was:" >&5
2161 sed 's/^/| /' conftest.$ac_ext >&5
2162
2163 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2164 See \`config.log' for more details." >&5
2165 echo "$as_me: error: C compiler cannot create executables
2166 See \`config.log' for more details." >&2;}
2167 { (exit 77); exit 77; }; }
2168 fi
2169
2170 ac_exeext=$ac_cv_exeext
2171 echo "$as_me:$LINENO: result: $ac_file" >&5
2172 echo "${ECHO_T}$ac_file" >&6
2173
2174 # Check the compiler produces executables we can run. If not, either
2175 # the compiler is broken, or we cross compile.
2176 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2177 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2178 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2179 # If not cross compiling, check that we can run a simple program.
2180 if test "$cross_compiling" != yes; then
2181 if { ac_try='./$ac_file'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 (eval $ac_try) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; }; then
2187 cross_compiling=no
2188 else
2189 if test "$cross_compiling" = maybe; then
2190 cross_compiling=yes
2191 else
2192 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2193 If you meant to cross compile, use \`--host'.
2194 See \`config.log' for more details." >&5
2195 echo "$as_me: error: cannot run C compiled programs.
2196 If you meant to cross compile, use \`--host'.
2197 See \`config.log' for more details." >&2;}
2198 { (exit 1); exit 1; }; }
2199 fi
2200 fi
2201 fi
2202 echo "$as_me:$LINENO: result: yes" >&5
2203 echo "${ECHO_T}yes" >&6
2204
2205 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2206 ac_clean_files=$ac_clean_files_save
2207 # Check the compiler produces executables we can run. If not, either
2208 # the compiler is broken, or we cross compile.
2209 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2210 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2211 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2212 echo "${ECHO_T}$cross_compiling" >&6
2213
2214 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2215 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2217 (eval $ac_link) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; then
2221 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2222 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2223 # work properly (i.e., refer to `conftest.exe'), while it won't with
2224 # `rm'.
2225 for ac_file in conftest.exe conftest conftest.*; do
2226 test -f "$ac_file" || continue
2227 case $ac_file in
2228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2229 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2230 export ac_cv_exeext
2231 break;;
2232 * ) break;;
2233 esac
2234 done
2235 else
2236 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2237 See \`config.log' for more details." >&5
2238 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2239 See \`config.log' for more details." >&2;}
2240 { (exit 1); exit 1; }; }
2241 fi
2242
2243 rm -f conftest$ac_cv_exeext
2244 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2245 echo "${ECHO_T}$ac_cv_exeext" >&6
2246
2247 rm -f conftest.$ac_ext
2248 EXEEXT=$ac_cv_exeext
2249 ac_exeext=$EXEEXT
2250 fi
2251 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2252 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2253 if test "${ac_cv_objext+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2255 else
2256 cat >conftest.$ac_ext <<_ACEOF
2257 /* confdefs.h. */
2258 _ACEOF
2259 cat confdefs.h >>conftest.$ac_ext
2260 cat >>conftest.$ac_ext <<_ACEOF
2261 /* end confdefs.h. */
2262
2263 int
2264 main ()
2265 {
2266
2267 ;
2268 return 0;
2269 }
2270 _ACEOF
2271 rm -f conftest.o conftest.obj
2272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2273 (eval $ac_compile) 2>&5
2274 ac_status=$?
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; then
2277 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2278 case $ac_file in
2279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2280 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2281 break;;
2282 esac
2283 done
2284 else
2285 echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2287
2288 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2289 See \`config.log' for more details." >&5
2290 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2291 See \`config.log' for more details." >&2;}
2292 { (exit 1); exit 1; }; }
2293 fi
2294
2295 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2296 fi
2297 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2298 echo "${ECHO_T}$ac_cv_objext" >&6
2299 OBJEXT=$ac_cv_objext
2300 ac_objext=$OBJEXT
2301 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2302 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2303 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2304 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 else
2306 cat >conftest.$ac_ext <<_ACEOF
2307 /* confdefs.h. */
2308 _ACEOF
2309 cat confdefs.h >>conftest.$ac_ext
2310 cat >>conftest.$ac_ext <<_ACEOF
2311 /* end confdefs.h. */
2312
2313 int
2314 main ()
2315 {
2316 #ifndef __GNUC__
2317 choke me
2318 #endif
2319
2320 ;
2321 return 0;
2322 }
2323 _ACEOF
2324 rm -f conftest.$ac_objext
2325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2326 (eval $ac_compile) 2>conftest.er1
2327 ac_status=$?
2328 grep -v '^ *+' conftest.er1 >conftest.err
2329 rm -f conftest.er1
2330 cat conftest.err >&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); } &&
2333 { ac_try='test -z "$ac_c_werror_flag"
2334 || test ! -s conftest.err'
2335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336 (eval $ac_try) 2>&5
2337 ac_status=$?
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; } &&
2340 { ac_try='test -s conftest.$ac_objext'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 (eval $ac_try) 2>&5
2343 ac_status=$?
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; }; then
2346 ac_compiler_gnu=yes
2347 else
2348 echo "$as_me: failed program was:" >&5
2349 sed 's/^/| /' conftest.$ac_ext >&5
2350
2351 ac_compiler_gnu=no
2352 fi
2353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2354 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2355
2356 fi
2357 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2358 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2359 GCC=`test $ac_compiler_gnu = yes && echo yes`
2360 ac_test_CFLAGS=${CFLAGS+set}
2361 ac_save_CFLAGS=$CFLAGS
2362 CFLAGS="-g"
2363 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2364 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2365 if test "${ac_cv_prog_cc_g+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 else
2368 cat >conftest.$ac_ext <<_ACEOF
2369 /* confdefs.h. */
2370 _ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h. */
2374
2375 int
2376 main ()
2377 {
2378
2379 ;
2380 return 0;
2381 }
2382 _ACEOF
2383 rm -f conftest.$ac_objext
2384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2385 (eval $ac_compile) 2>conftest.er1
2386 ac_status=$?
2387 grep -v '^ *+' conftest.er1 >conftest.err
2388 rm -f conftest.er1
2389 cat conftest.err >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } &&
2392 { ac_try='test -z "$ac_c_werror_flag"
2393 || test ! -s conftest.err'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 (eval $ac_try) 2>&5
2396 ac_status=$?
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; } &&
2399 { ac_try='test -s conftest.$ac_objext'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 (eval $ac_try) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
2405 ac_cv_prog_cc_g=yes
2406 else
2407 echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2409
2410 ac_cv_prog_cc_g=no
2411 fi
2412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2413 fi
2414 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2415 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2416 if test "$ac_test_CFLAGS" = set; then
2417 CFLAGS=$ac_save_CFLAGS
2418 elif test $ac_cv_prog_cc_g = yes; then
2419 if test "$GCC" = yes; then
2420 CFLAGS="-g -O2"
2421 else
2422 CFLAGS="-g"
2423 fi
2424 else
2425 if test "$GCC" = yes; then
2426 CFLAGS="-O2"
2427 else
2428 CFLAGS=
2429 fi
2430 fi
2431 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2432 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2433 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2435 else
2436 ac_cv_prog_cc_stdc=no
2437 ac_save_CC=$CC
2438 cat >conftest.$ac_ext <<_ACEOF
2439 /* confdefs.h. */
2440 _ACEOF
2441 cat confdefs.h >>conftest.$ac_ext
2442 cat >>conftest.$ac_ext <<_ACEOF
2443 /* end confdefs.h. */
2444 #include <stdarg.h>
2445 #include <stdio.h>
2446 #include <sys/types.h>
2447 #include <sys/stat.h>
2448 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2449 struct buf { int x; };
2450 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2451 static char *e (p, i)
2452 char **p;
2453 int i;
2454 {
2455 return p[i];
2456 }
2457 static char *f (char * (*g) (char **, int), char **p, ...)
2458 {
2459 char *s;
2460 va_list v;
2461 va_start (v,p);
2462 s = g (p, va_arg (v,int));
2463 va_end (v);
2464 return s;
2465 }
2466
2467 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2468 function prototypes and stuff, but not '\xHH' hex character constants.
2469 These don't provoke an error unfortunately, instead are silently treated
2470 as 'x'. The following induces an error, until -std1 is added to get
2471 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2472 array size at least. It's necessary to write '\x00'==0 to get something
2473 that's true only with -std1. */
2474 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2475
2476 int test (int i, double x);
2477 struct s1 {int (*f) (int a);};
2478 struct s2 {int (*f) (double a);};
2479 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2480 int argc;
2481 char **argv;
2482 int
2483 main ()
2484 {
2485 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2486 ;
2487 return 0;
2488 }
2489 _ACEOF
2490 # Don't try gcc -ansi; that turns off useful extensions and
2491 # breaks some systems' header files.
2492 # AIX -qlanglvl=ansi
2493 # Ultrix and OSF/1 -std1
2494 # HP-UX 10.20 and later -Ae
2495 # HP-UX older versions -Aa -D_HPUX_SOURCE
2496 # SVR4 -Xc -D__EXTENSIONS__
2497 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2498 do
2499 CC="$ac_save_CC $ac_arg"
2500 rm -f conftest.$ac_objext
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>conftest.er1
2503 ac_status=$?
2504 grep -v '^ *+' conftest.er1 >conftest.err
2505 rm -f conftest.er1
2506 cat conftest.err >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } &&
2509 { ac_try='test -z "$ac_c_werror_flag"
2510 || test ! -s conftest.err'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 (eval $ac_try) 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 (eval $ac_try) 2>&5
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; }; then
2522 ac_cv_prog_cc_stdc=$ac_arg
2523 break
2524 else
2525 echo "$as_me: failed program was:" >&5
2526 sed 's/^/| /' conftest.$ac_ext >&5
2527
2528 fi
2529 rm -f conftest.err conftest.$ac_objext
2530 done
2531 rm -f conftest.$ac_ext conftest.$ac_objext
2532 CC=$ac_save_CC
2533
2534 fi
2535
2536 case "x$ac_cv_prog_cc_stdc" in
2537 x|xno)
2538 echo "$as_me:$LINENO: result: none needed" >&5
2539 echo "${ECHO_T}none needed" >&6 ;;
2540 *)
2541 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2542 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2543 CC="$CC $ac_cv_prog_cc_stdc" ;;
2544 esac
2545
2546 # Some people use a C++ compiler to compile C. Since we use `exit',
2547 # in C++ we need to declare it. In case someone uses the same compiler
2548 # for both compiling C and C++ we need to have the C++ compiler decide
2549 # the declaration of exit, since it's the most demanding environment.
2550 cat >conftest.$ac_ext <<_ACEOF
2551 #ifndef __cplusplus
2552 choke me
2553 #endif
2554 _ACEOF
2555 rm -f conftest.$ac_objext
2556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2557 (eval $ac_compile) 2>conftest.er1
2558 ac_status=$?
2559 grep -v '^ *+' conftest.er1 >conftest.err
2560 rm -f conftest.er1
2561 cat conftest.err >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); } &&
2564 { ac_try='test -z "$ac_c_werror_flag"
2565 || test ! -s conftest.err'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 (eval $ac_try) 2>&5
2568 ac_status=$?
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; } &&
2571 { ac_try='test -s conftest.$ac_objext'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 (eval $ac_try) 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; }; then
2577 for ac_declaration in \
2578 '' \
2579 'extern "C" void std::exit (int) throw (); using std::exit;' \
2580 'extern "C" void std::exit (int); using std::exit;' \
2581 'extern "C" void exit (int) throw ();' \
2582 'extern "C" void exit (int);' \
2583 'void exit (int);'
2584 do
2585 cat >conftest.$ac_ext <<_ACEOF
2586 /* confdefs.h. */
2587 _ACEOF
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h. */
2591 $ac_declaration
2592 #include <stdlib.h>
2593 int
2594 main ()
2595 {
2596 exit (42);
2597 ;
2598 return 0;
2599 }
2600 _ACEOF
2601 rm -f conftest.$ac_objext
2602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603 (eval $ac_compile) 2>conftest.er1
2604 ac_status=$?
2605 grep -v '^ *+' conftest.er1 >conftest.err
2606 rm -f conftest.er1
2607 cat conftest.err >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } &&
2610 { ac_try='test -z "$ac_c_werror_flag"
2611 || test ! -s conftest.err'
2612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 (eval $ac_try) 2>&5
2614 ac_status=$?
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; } &&
2617 { ac_try='test -s conftest.$ac_objext'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 (eval $ac_try) 2>&5
2620 ac_status=$?
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; }; then
2623 :
2624 else
2625 echo "$as_me: failed program was:" >&5
2626 sed 's/^/| /' conftest.$ac_ext >&5
2627
2628 continue
2629 fi
2630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2631 cat >conftest.$ac_ext <<_ACEOF
2632 /* confdefs.h. */
2633 _ACEOF
2634 cat confdefs.h >>conftest.$ac_ext
2635 cat >>conftest.$ac_ext <<_ACEOF
2636 /* end confdefs.h. */
2637 $ac_declaration
2638 int
2639 main ()
2640 {
2641 exit (42);
2642 ;
2643 return 0;
2644 }
2645 _ACEOF
2646 rm -f conftest.$ac_objext
2647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648 (eval $ac_compile) 2>conftest.er1
2649 ac_status=$?
2650 grep -v '^ *+' conftest.er1 >conftest.err
2651 rm -f conftest.er1
2652 cat conftest.err >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } &&
2655 { ac_try='test -z "$ac_c_werror_flag"
2656 || test ! -s conftest.err'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 (eval $ac_try) 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; } &&
2662 { ac_try='test -s conftest.$ac_objext'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 (eval $ac_try) 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; }; then
2668 break
2669 else
2670 echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2672
2673 fi
2674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2675 done
2676 rm -f conftest*
2677 if test -n "$ac_declaration"; then
2678 echo '#ifdef __cplusplus' >>confdefs.h
2679 echo $ac_declaration >>confdefs.h
2680 echo '#endif' >>confdefs.h
2681 fi
2682
2683 else
2684 echo "$as_me: failed program was:" >&5
2685 sed 's/^/| /' conftest.$ac_ext >&5
2686
2687 fi
2688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2689 ac_ext=c
2690 ac_cpp='$CPP $CPPFLAGS'
2691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2694
2695 ac_ext=c
2696 ac_cpp='$CPP $CPPFLAGS'
2697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2700 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2701 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2702 # On Suns, sometimes $CPP names a directory.
2703 if test -n "$CPP" && test -d "$CPP"; then
2704 CPP=
2705 fi
2706 if test -z "$CPP"; then
2707 if test "${ac_cv_prog_CPP+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2709 else
2710 # Double quotes because CPP needs to be expanded
2711 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2712 do
2713 ac_preproc_ok=false
2714 for ac_c_preproc_warn_flag in '' yes
2715 do
2716 # Use a header file that comes with gcc, so configuring glibc
2717 # with a fresh cross-compiler works.
2718 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2719 # <limits.h> exists even on freestanding compilers.
2720 # On the NeXT, cc -E runs the code through the compiler's parser,
2721 # not just through cpp. "Syntax error" is here to catch this case.
2722 cat >conftest.$ac_ext <<_ACEOF
2723 /* confdefs.h. */
2724 _ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2728 #ifdef __STDC__
2729 # include <limits.h>
2730 #else
2731 # include <assert.h>
2732 #endif
2733 Syntax error
2734 _ACEOF
2735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2737 ac_status=$?
2738 grep -v '^ *+' conftest.er1 >conftest.err
2739 rm -f conftest.er1
2740 cat conftest.err >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); } >/dev/null; then
2743 if test -s conftest.err; then
2744 ac_cpp_err=$ac_c_preproc_warn_flag
2745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2746 else
2747 ac_cpp_err=
2748 fi
2749 else
2750 ac_cpp_err=yes
2751 fi
2752 if test -z "$ac_cpp_err"; then
2753 :
2754 else
2755 echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2757
2758 # Broken: fails on valid input.
2759 continue
2760 fi
2761 rm -f conftest.err conftest.$ac_ext
2762
2763 # OK, works on sane cases. Now check whether non-existent headers
2764 # can be detected and how.
2765 cat >conftest.$ac_ext <<_ACEOF
2766 /* confdefs.h. */
2767 _ACEOF
2768 cat confdefs.h >>conftest.$ac_ext
2769 cat >>conftest.$ac_ext <<_ACEOF
2770 /* end confdefs.h. */
2771 #include <ac_nonexistent.h>
2772 _ACEOF
2773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2775 ac_status=$?
2776 grep -v '^ *+' conftest.er1 >conftest.err
2777 rm -f conftest.er1
2778 cat conftest.err >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); } >/dev/null; then
2781 if test -s conftest.err; then
2782 ac_cpp_err=$ac_c_preproc_warn_flag
2783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2784 else
2785 ac_cpp_err=
2786 fi
2787 else
2788 ac_cpp_err=yes
2789 fi
2790 if test -z "$ac_cpp_err"; then
2791 # Broken: success on invalid input.
2792 continue
2793 else
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2796
2797 # Passes both tests.
2798 ac_preproc_ok=:
2799 break
2800 fi
2801 rm -f conftest.err conftest.$ac_ext
2802
2803 done
2804 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2805 rm -f conftest.err conftest.$ac_ext
2806 if $ac_preproc_ok; then
2807 break
2808 fi
2809
2810 done
2811 ac_cv_prog_CPP=$CPP
2812
2813 fi
2814 CPP=$ac_cv_prog_CPP
2815 else
2816 ac_cv_prog_CPP=$CPP
2817 fi
2818 echo "$as_me:$LINENO: result: $CPP" >&5
2819 echo "${ECHO_T}$CPP" >&6
2820 ac_preproc_ok=false
2821 for ac_c_preproc_warn_flag in '' yes
2822 do
2823 # Use a header file that comes with gcc, so configuring glibc
2824 # with a fresh cross-compiler works.
2825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2826 # <limits.h> exists even on freestanding compilers.
2827 # On the NeXT, cc -E runs the code through the compiler's parser,
2828 # not just through cpp. "Syntax error" is here to catch this case.
2829 cat >conftest.$ac_ext <<_ACEOF
2830 /* confdefs.h. */
2831 _ACEOF
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h. */
2835 #ifdef __STDC__
2836 # include <limits.h>
2837 #else
2838 # include <assert.h>
2839 #endif
2840 Syntax error
2841 _ACEOF
2842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2844 ac_status=$?
2845 grep -v '^ *+' conftest.er1 >conftest.err
2846 rm -f conftest.er1
2847 cat conftest.err >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } >/dev/null; then
2850 if test -s conftest.err; then
2851 ac_cpp_err=$ac_c_preproc_warn_flag
2852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2853 else
2854 ac_cpp_err=
2855 fi
2856 else
2857 ac_cpp_err=yes
2858 fi
2859 if test -z "$ac_cpp_err"; then
2860 :
2861 else
2862 echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2864
2865 # Broken: fails on valid input.
2866 continue
2867 fi
2868 rm -f conftest.err conftest.$ac_ext
2869
2870 # OK, works on sane cases. Now check whether non-existent headers
2871 # can be detected and how.
2872 cat >conftest.$ac_ext <<_ACEOF
2873 /* confdefs.h. */
2874 _ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2878 #include <ac_nonexistent.h>
2879 _ACEOF
2880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2882 ac_status=$?
2883 grep -v '^ *+' conftest.er1 >conftest.err
2884 rm -f conftest.er1
2885 cat conftest.err >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } >/dev/null; then
2888 if test -s conftest.err; then
2889 ac_cpp_err=$ac_c_preproc_warn_flag
2890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2891 else
2892 ac_cpp_err=
2893 fi
2894 else
2895 ac_cpp_err=yes
2896 fi
2897 if test -z "$ac_cpp_err"; then
2898 # Broken: success on invalid input.
2899 continue
2900 else
2901 echo "$as_me: failed program was:" >&5
2902 sed 's/^/| /' conftest.$ac_ext >&5
2903
2904 # Passes both tests.
2905 ac_preproc_ok=:
2906 break
2907 fi
2908 rm -f conftest.err conftest.$ac_ext
2909
2910 done
2911 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2912 rm -f conftest.err conftest.$ac_ext
2913 if $ac_preproc_ok; then
2914 :
2915 else
2916 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2917 See \`config.log' for more details." >&5
2918 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2919 See \`config.log' for more details." >&2;}
2920 { (exit 1); exit 1; }; }
2921 fi
2922
2923 ac_ext=c
2924 ac_cpp='$CPP $CPPFLAGS'
2925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928
2929
2930 ac_c_preproc_warn_flag=yes
2931
2932 if test x$GCC = xyes; then
2933 ac_libiberty_warn_cflags='-W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes'
2934 fi
2935
2936
2937 if test "x$CC" != xcc; then
2938 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2939 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2940 else
2941 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2942 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2943 fi
2944 set dummy $CC; ac_cc=`echo $2 |
2945 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2946 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 else
2949 cat >conftest.$ac_ext <<_ACEOF
2950 /* confdefs.h. */
2951 _ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h. */
2955
2956 int
2957 main ()
2958 {
2959
2960 ;
2961 return 0;
2962 }
2963 _ACEOF
2964 # Make sure it works both with $CC and with simple cc.
2965 # We do the test twice because some compilers refuse to overwrite an
2966 # existing .o file with -o, though they will create one.
2967 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2968 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969 (eval $ac_try) 2>&5
2970 ac_status=$?
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); } &&
2973 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974 (eval $ac_try) 2>&5
2975 ac_status=$?
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); };
2978 then
2979 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2980 if test "x$CC" != xcc; then
2981 # Test first that cc exists at all.
2982 if { ac_try='cc -c conftest.$ac_ext >&5'
2983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984 (eval $ac_try) 2>&5
2985 ac_status=$?
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; }; then
2988 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2989 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2990 (eval $ac_try) 2>&5
2991 ac_status=$?
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); } &&
2994 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995 (eval $ac_try) 2>&5
2996 ac_status=$?
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); };
2999 then
3000 # cc works too.
3001 :
3002 else
3003 # cc exists but doesn't like -o.
3004 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3005 fi
3006 fi
3007 fi
3008 else
3009 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3010 fi
3011 rm -f conftest*
3012
3013 fi
3014 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3015 echo "$as_me:$LINENO: result: yes" >&5
3016 echo "${ECHO_T}yes" >&6
3017 else
3018 echo "$as_me:$LINENO: result: no" >&5
3019 echo "${ECHO_T}no" >&6
3020
3021 cat >>confdefs.h <<\_ACEOF
3022 #define NO_MINUS_C_MINUS_O 1
3023 _ACEOF
3024
3025 fi
3026
3027 # autoconf is lame and doesn't give us any substitution variable for this.
3028 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3029 NO_MINUS_C_MINUS_O=yes
3030 else
3031 OUTPUT_OPTION='-o $@'
3032 fi
3033
3034
3035
3036
3037 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3038 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3039 if test "${ac_cv_c_const+set}" = set; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
3041 else
3042 cat >conftest.$ac_ext <<_ACEOF
3043 /* confdefs.h. */
3044 _ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3048
3049 int
3050 main ()
3051 {
3052 /* FIXME: Include the comments suggested by Paul. */
3053 #ifndef __cplusplus
3054 /* Ultrix mips cc rejects this. */
3055 typedef int charset[2];
3056 const charset x;
3057 /* SunOS 4.1.1 cc rejects this. */
3058 char const *const *ccp;
3059 char **p;
3060 /* NEC SVR4.0.2 mips cc rejects this. */
3061 struct point {int x, y;};
3062 static struct point const zero = {0,0};
3063 /* AIX XL C 1.02.0.0 rejects this.
3064 It does not let you subtract one const X* pointer from another in
3065 an arm of an if-expression whose if-part is not a constant
3066 expression */
3067 const char *g = "string";
3068 ccp = &g + (g ? g-g : 0);
3069 /* HPUX 7.0 cc rejects these. */
3070 ++ccp;
3071 p = (char**) ccp;
3072 ccp = (char const *const *) p;
3073 { /* SCO 3.2v4 cc rejects this. */
3074 char *t;
3075 char const *s = 0 ? (char *) 0 : (char const *) 0;
3076
3077 *t++ = 0;
3078 }
3079 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3080 int x[] = {25, 17};
3081 const int *foo = &x[0];
3082 ++foo;
3083 }
3084 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3085 typedef const int *iptr;
3086 iptr p = 0;
3087 ++p;
3088 }
3089 { /* AIX XL C 1.02.0.0 rejects this saying
3090 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3091 struct s { int j; const int *ap[3]; };
3092 struct s *b; b->j = 5;
3093 }
3094 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3095 const int foo = 10;
3096 }
3097 #endif
3098
3099 ;
3100 return 0;
3101 }
3102 _ACEOF
3103 rm -f conftest.$ac_objext
3104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3105 (eval $ac_compile) 2>conftest.er1
3106 ac_status=$?
3107 grep -v '^ *+' conftest.er1 >conftest.err
3108 rm -f conftest.er1
3109 cat conftest.err >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); } &&
3112 { ac_try='test -z "$ac_c_werror_flag"
3113 || test ! -s conftest.err'
3114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115 (eval $ac_try) 2>&5
3116 ac_status=$?
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; } &&
3119 { ac_try='test -s conftest.$ac_objext'
3120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121 (eval $ac_try) 2>&5
3122 ac_status=$?
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; }; then
3125 ac_cv_c_const=yes
3126 else
3127 echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3129
3130 ac_cv_c_const=no
3131 fi
3132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3133 fi
3134 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3135 echo "${ECHO_T}$ac_cv_c_const" >&6
3136 if test $ac_cv_c_const = no; then
3137
3138 cat >>confdefs.h <<\_ACEOF
3139 #define const
3140 _ACEOF
3141
3142 fi
3143
3144 echo "$as_me:$LINENO: checking for inline" >&5
3145 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3146 if test "${ac_cv_c_inline+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3148 else
3149 ac_cv_c_inline=no
3150 for ac_kw in inline __inline__ __inline; do
3151 cat >conftest.$ac_ext <<_ACEOF
3152 /* confdefs.h. */
3153 _ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h. */
3157 #ifndef __cplusplus
3158 typedef int foo_t;
3159 static $ac_kw foo_t static_foo () {return 0; }
3160 $ac_kw foo_t foo () {return 0; }
3161 #endif
3162
3163 _ACEOF
3164 rm -f conftest.$ac_objext
3165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3166 (eval $ac_compile) 2>conftest.er1
3167 ac_status=$?
3168 grep -v '^ *+' conftest.er1 >conftest.err
3169 rm -f conftest.er1
3170 cat conftest.err >&5
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); } &&
3173 { ac_try='test -z "$ac_c_werror_flag"
3174 || test ! -s conftest.err'
3175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176 (eval $ac_try) 2>&5
3177 ac_status=$?
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; } &&
3180 { ac_try='test -s conftest.$ac_objext'
3181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182 (eval $ac_try) 2>&5
3183 ac_status=$?
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; }; then
3186 ac_cv_c_inline=$ac_kw; break
3187 else
3188 echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3190
3191 fi
3192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3193 done
3194
3195 fi
3196 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3197 echo "${ECHO_T}$ac_cv_c_inline" >&6
3198
3199
3200 case $ac_cv_c_inline in
3201 inline | yes) ;;
3202 *)
3203 case $ac_cv_c_inline in
3204 no) ac_val=;;
3205 *) ac_val=$ac_cv_c_inline;;
3206 esac
3207 cat >>confdefs.h <<_ACEOF
3208 #ifndef __cplusplus
3209 #define inline $ac_val
3210 #endif
3211 _ACEOF
3212 ;;
3213 esac
3214
3215 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3216 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3217 if test "${ac_cv_c_bigendian+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220 # See if sys/param.h defines the BYTE_ORDER macro.
3221 cat >conftest.$ac_ext <<_ACEOF
3222 /* confdefs.h. */
3223 _ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3227 #include <sys/types.h>
3228 #include <sys/param.h>
3229
3230 int
3231 main ()
3232 {
3233 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3234 bogus endian macros
3235 #endif
3236
3237 ;
3238 return 0;
3239 }
3240 _ACEOF
3241 rm -f conftest.$ac_objext
3242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3243 (eval $ac_compile) 2>conftest.er1
3244 ac_status=$?
3245 grep -v '^ *+' conftest.er1 >conftest.err
3246 rm -f conftest.er1
3247 cat conftest.err >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } &&
3250 { ac_try='test -z "$ac_c_werror_flag"
3251 || test ! -s conftest.err'
3252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253 (eval $ac_try) 2>&5
3254 ac_status=$?
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }; } &&
3257 { ac_try='test -s conftest.$ac_objext'
3258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259 (eval $ac_try) 2>&5
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; }; then
3263 # It does; now see whether it defined to BIG_ENDIAN or not.
3264 cat >conftest.$ac_ext <<_ACEOF
3265 /* confdefs.h. */
3266 _ACEOF
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h. */
3270 #include <sys/types.h>
3271 #include <sys/param.h>
3272
3273 int
3274 main ()
3275 {
3276 #if BYTE_ORDER != BIG_ENDIAN
3277 not big endian
3278 #endif
3279
3280 ;
3281 return 0;
3282 }
3283 _ACEOF
3284 rm -f conftest.$ac_objext
3285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3286 (eval $ac_compile) 2>conftest.er1
3287 ac_status=$?
3288 grep -v '^ *+' conftest.er1 >conftest.err
3289 rm -f conftest.er1
3290 cat conftest.err >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); } &&
3293 { ac_try='test -z "$ac_c_werror_flag"
3294 || test ! -s conftest.err'
3295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296 (eval $ac_try) 2>&5
3297 ac_status=$?
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); }; } &&
3300 { ac_try='test -s conftest.$ac_objext'
3301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302 (eval $ac_try) 2>&5
3303 ac_status=$?
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); }; }; then
3306 ac_cv_c_bigendian=yes
3307 else
3308 echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3310
3311 ac_cv_c_bigendian=no
3312 fi
3313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3314 else
3315 echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3317
3318 # It does not; compile a test program.
3319 if test "$cross_compiling" = yes; then
3320 # try to guess the endianness by grepping values into an object file
3321 ac_cv_c_bigendian=unknown
3322 cat >conftest.$ac_ext <<_ACEOF
3323 /* confdefs.h. */
3324 _ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h. */
3328 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3329 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3330 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3331 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3332 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3333 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3334 int
3335 main ()
3336 {
3337 _ascii (); _ebcdic ();
3338 ;
3339 return 0;
3340 }
3341 _ACEOF
3342 rm -f conftest.$ac_objext
3343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3344 (eval $ac_compile) 2>conftest.er1
3345 ac_status=$?
3346 grep -v '^ *+' conftest.er1 >conftest.err
3347 rm -f conftest.er1
3348 cat conftest.err >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } &&
3351 { ac_try='test -z "$ac_c_werror_flag"
3352 || test ! -s conftest.err'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 (eval $ac_try) 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; } &&
3358 { ac_try='test -s conftest.$ac_objext'
3359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360 (eval $ac_try) 2>&5
3361 ac_status=$?
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; }; then
3364 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3365 ac_cv_c_bigendian=yes
3366 fi
3367 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3368 if test "$ac_cv_c_bigendian" = unknown; then
3369 ac_cv_c_bigendian=no
3370 else
3371 # finding both strings is unlikely to happen, but who knows?
3372 ac_cv_c_bigendian=unknown
3373 fi
3374 fi
3375 else
3376 echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3378
3379 fi
3380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3381 else
3382 cat >conftest.$ac_ext <<_ACEOF
3383 /* confdefs.h. */
3384 _ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3388 int
3389 main ()
3390 {
3391 /* Are we little or big endian? From Harbison&Steele. */
3392 union
3393 {
3394 long l;
3395 char c[sizeof (long)];
3396 } u;
3397 u.l = 1;
3398 exit (u.c[sizeof (long) - 1] == 1);
3399 }
3400 _ACEOF
3401 rm -f conftest$ac_exeext
3402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3403 (eval $ac_link) 2>&5
3404 ac_status=$?
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3408 (eval $ac_try) 2>&5
3409 ac_status=$?
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); }; }; then
3412 ac_cv_c_bigendian=no
3413 else
3414 echo "$as_me: program exited with status $ac_status" >&5
3415 echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3417
3418 ( exit $ac_status )
3419 ac_cv_c_bigendian=yes
3420 fi
3421 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3422 fi
3423 fi
3424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3425 fi
3426 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3427 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3428 case $ac_cv_c_bigendian in
3429 yes)
3430
3431 cat >>confdefs.h <<\_ACEOF
3432 #define WORDS_BIGENDIAN 1
3433 _ACEOF
3434 ;;
3435 no)
3436 ;;
3437 *)
3438 { { echo "$as_me:$LINENO: error: unknown endianness
3439 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3440 echo "$as_me: error: unknown endianness
3441 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3442 { (exit 1); exit 1; }; } ;;
3443 esac
3444
3445
3446
3447
3448 ac_config_headers="$ac_config_headers config.h:config.in"
3449
3450
3451
3452 # Find a good install program. We prefer a C program (faster),
3453 # so one script is as good as another. But avoid the broken or
3454 # incompatible versions:
3455 # SysV /etc/install, /usr/sbin/install
3456 # SunOS /usr/etc/install
3457 # IRIX /sbin/install
3458 # AIX /bin/install
3459 # AmigaOS /C/install, which installs bootblocks on floppy discs
3460 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3461 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3462 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3463 # OS/2's system install, which has a completely different semantic
3464 # ./install, which can be erroneously created by make from ./install.sh.
3465 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3466 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3467 if test -z "$INSTALL"; then
3468 if test "${ac_cv_path_install+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH
3473 do
3474 IFS=$as_save_IFS
3475 test -z "$as_dir" && as_dir=.
3476 # Account for people who put trailing slashes in PATH elements.
3477 case $as_dir/ in
3478 ./ | .// | /cC/* | \
3479 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3480 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3481 /usr/ucb/* ) ;;
3482 *)
3483 # OSF1 and SCO ODT 3.0 have their own names for install.
3484 # Don't use installbsd from OSF since it installs stuff as root
3485 # by default.
3486 for ac_prog in ginstall scoinst install; do
3487 for ac_exec_ext in '' $ac_executable_extensions; do
3488 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3489 if test $ac_prog = install &&
3490 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3491 # AIX install. It has an incompatible calling convention.
3492 :
3493 elif test $ac_prog = install &&
3494 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3495 # program-specific install script used by HP pwplus--don't use.
3496 :
3497 else
3498 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3499 break 3
3500 fi
3501 fi
3502 done
3503 done
3504 ;;
3505 esac
3506 done
3507
3508
3509 fi
3510 if test "${ac_cv_path_install+set}" = set; then
3511 INSTALL=$ac_cv_path_install
3512 else
3513 # As a last resort, use the slow shell script. We don't cache a
3514 # path for INSTALL within a source directory, because that will
3515 # break other packages using the cache if that directory is
3516 # removed, or if the path is relative.
3517 INSTALL=$ac_install_sh
3518 fi
3519 fi
3520 echo "$as_me:$LINENO: result: $INSTALL" >&5
3521 echo "${ECHO_T}$INSTALL" >&6
3522
3523 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3524 # It thinks the first close brace ends the variable substitution.
3525 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3526
3527 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3528
3529 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3530
3531
3532 # Don't build the shared library for build.
3533 if [ -n "${with_build_subdir}" ]; then
3534 enable_shared=no
3535 fi
3536
3537 frag=
3538 case "${host}" in
3539 rs6000-ibm-aix3.1 | rs6000-ibm-aix)
3540 frag=mh-aix ;;
3541 *-*-cxux7*) frag=mh-cxux7 ;;
3542 *-*-freebsd2.1.*) frag=mh-fbsd21 ;;
3543 *-*-freebsd2.2.[012]) frag=mh-fbsd21 ;;
3544 i370-*-opened*) frag=mh-openedition ;;
3545 i[34567]86-*-windows*) frag=mh-windows ;;
3546 esac
3547
3548 if [ -n "${frag}" ]; then
3549 frags=${libiberty_topdir}/libiberty/config/$frag
3550 else
3551 frags=
3552 fi
3553
3554 # If they didn't specify --enable-shared, don't generate shared libs.
3555 case "${enable_shared}" in
3556 yes) shared=yes ;;
3557 no) shared=no ;;
3558 "") shared=no ;;
3559 *) shared=yes ;;
3560 esac
3561 if [ "${shared}" = "yes" ]; then
3562 frag=
3563 case "${host}" in
3564 *-*-cygwin*) ;;
3565 alpha*-*-linux*) frag=mh-elfalphapic ;;
3566 arm*-*-*) frag=mh-armpic ;;
3567 hppa*-*-*) frag=mh-papic ;;
3568 i[34567]86-*-* | x86_64-*-*)
3569 frag=mh-x86pic ;;
3570 powerpc*-*-aix*) ;;
3571 powerpc*-*-*) frag=mh-ppcpic ;;
3572 sparc*-*-*) frag=mh-sparcpic ;;
3573 s390*-*-*) frag=mh-s390pic ;;
3574 *) frag=mh-${host_cpu}pic ;;
3575 esac
3576 if [ -n "${frag}" ]; then
3577 frags="${frags} ${libiberty_topdir}/config/${frag}"
3578 fi
3579 fi
3580
3581 echo "# Warning: this fragment is automatically generated" > temp-frag
3582
3583 for frag in ${frags}; do
3584 if [ -f ${frag} ]; then
3585 echo "Appending ${frag} to xhost-mkfrag"
3586 echo "# Following fragment copied from ${frag}" >> temp-frag
3587 cat ${frag} >> temp-frag
3588 fi
3589 done
3590
3591 # record if we want to build shared libs.
3592 if [ "${shared}" = "yes" ]; then
3593 echo enable_shared = yes >> temp-frag
3594 else
3595 echo enable_shared = no >> temp-frag
3596 fi
3597
3598 frag=xhost-mkfrag
3599 ${CONFIG_SHELL-/bin/sh} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag
3600
3601 host_makefile_frag=${frag}
3602
3603
3604 # It's OK to check for header files. Although the compiler may not be
3605 # able to link anything, it had better be able to at least compile
3606 # something.
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632 for ac_header in sys/file.h sys/param.h limits.h stdlib.h malloc.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h stdint.h stdio_ext.h
3633 do
3634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3635 echo "$as_me:$LINENO: checking for $ac_header" >&5
3636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 else
3640 cat >conftest.$ac_ext <<_ACEOF
3641 /* confdefs.h. */
3642 _ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3646 #include <$ac_header>
3647 _ACEOF
3648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3650 ac_status=$?
3651 grep -v '^ *+' conftest.er1 >conftest.err
3652 rm -f conftest.er1
3653 cat conftest.err >&5
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); } >/dev/null; then
3656 if test -s conftest.err; then
3657 ac_cpp_err=$ac_c_preproc_warn_flag
3658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3659 else
3660 ac_cpp_err=
3661 fi
3662 else
3663 ac_cpp_err=yes
3664 fi
3665 if test -z "$ac_cpp_err"; then
3666 eval "$as_ac_Header=yes"
3667 else
3668 echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3670
3671 eval "$as_ac_Header=no"
3672 fi
3673 rm -f conftest.err conftest.$ac_ext
3674 fi
3675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3678 cat >>confdefs.h <<_ACEOF
3679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3680 _ACEOF
3681
3682 fi
3683 done
3684
3685 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3686 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3687 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 else
3690 cat >conftest.$ac_ext <<_ACEOF
3691 /* confdefs.h. */
3692 _ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h. */
3696 #include <sys/types.h>
3697 #include <sys/wait.h>
3698 #ifndef WEXITSTATUS
3699 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3700 #endif
3701 #ifndef WIFEXITED
3702 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3703 #endif
3704
3705 int
3706 main ()
3707 {
3708 int s;
3709 wait (&s);
3710 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3711 ;
3712 return 0;
3713 }
3714 _ACEOF
3715 rm -f conftest.$ac_objext
3716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3717 (eval $ac_compile) 2>conftest.er1
3718 ac_status=$?
3719 grep -v '^ *+' conftest.er1 >conftest.err
3720 rm -f conftest.er1
3721 cat conftest.err >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } &&
3724 { ac_try='test -z "$ac_c_werror_flag"
3725 || test ! -s conftest.err'
3726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727 (eval $ac_try) 2>&5
3728 ac_status=$?
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; } &&
3731 { ac_try='test -s conftest.$ac_objext'
3732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733 (eval $ac_try) 2>&5
3734 ac_status=$?
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); }; }; then
3737 ac_cv_header_sys_wait_h=yes
3738 else
3739 echo "$as_me: failed program was:" >&5
3740 sed 's/^/| /' conftest.$ac_ext >&5
3741
3742 ac_cv_header_sys_wait_h=no
3743 fi
3744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3745 fi
3746 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3747 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3748 if test $ac_cv_header_sys_wait_h = yes; then
3749
3750 cat >>confdefs.h <<\_ACEOF
3751 #define HAVE_SYS_WAIT_H 1
3752 _ACEOF
3753
3754 fi
3755
3756 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3757 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3758 if test "${ac_cv_header_time+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761 cat >conftest.$ac_ext <<_ACEOF
3762 /* confdefs.h. */
3763 _ACEOF
3764 cat confdefs.h >>conftest.$ac_ext
3765 cat >>conftest.$ac_ext <<_ACEOF
3766 /* end confdefs.h. */
3767 #include <sys/types.h>
3768 #include <sys/time.h>
3769 #include <time.h>
3770
3771 int
3772 main ()
3773 {
3774 if ((struct tm *) 0)
3775 return 0;
3776 ;
3777 return 0;
3778 }
3779 _ACEOF
3780 rm -f conftest.$ac_objext
3781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3782 (eval $ac_compile) 2>conftest.er1
3783 ac_status=$?
3784 grep -v '^ *+' conftest.er1 >conftest.err
3785 rm -f conftest.er1
3786 cat conftest.err >&5
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); } &&
3789 { ac_try='test -z "$ac_c_werror_flag"
3790 || test ! -s conftest.err'
3791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792 (eval $ac_try) 2>&5
3793 ac_status=$?
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); }; } &&
3796 { ac_try='test -s conftest.$ac_objext'
3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 (eval $ac_try) 2>&5
3799 ac_status=$?
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; }; then
3802 ac_cv_header_time=yes
3803 else
3804 echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3806
3807 ac_cv_header_time=no
3808 fi
3809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3810 fi
3811 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3812 echo "${ECHO_T}$ac_cv_header_time" >&6
3813 if test $ac_cv_header_time = yes; then
3814
3815 cat >>confdefs.h <<\_ACEOF
3816 #define TIME_WITH_SYS_TIME 1
3817 _ACEOF
3818
3819 fi
3820
3821
3822 echo "$as_me:$LINENO: checking whether errno must be declared" >&5
3823 echo $ECHO_N "checking whether errno must be declared... $ECHO_C" >&6
3824 if test "${libiberty_cv_declare_errno+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3826 else
3827 cat >conftest.$ac_ext <<_ACEOF
3828 /* confdefs.h. */
3829 _ACEOF
3830 cat confdefs.h >>conftest.$ac_ext
3831 cat >>conftest.$ac_ext <<_ACEOF
3832 /* end confdefs.h. */
3833 #include <errno.h>
3834 int
3835 main ()
3836 {
3837 int x = errno;
3838 ;
3839 return 0;
3840 }
3841 _ACEOF
3842 rm -f conftest.$ac_objext
3843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3844 (eval $ac_compile) 2>conftest.er1
3845 ac_status=$?
3846 grep -v '^ *+' conftest.er1 >conftest.err
3847 rm -f conftest.er1
3848 cat conftest.err >&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); } &&
3851 { ac_try='test -z "$ac_c_werror_flag"
3852 || test ! -s conftest.err'
3853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3854 (eval $ac_try) 2>&5
3855 ac_status=$?
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); }; } &&
3858 { ac_try='test -s conftest.$ac_objext'
3859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860 (eval $ac_try) 2>&5
3861 ac_status=$?
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); }; }; then
3864 libiberty_cv_declare_errno=no
3865 else
3866 echo "$as_me: failed program was:" >&5
3867 sed 's/^/| /' conftest.$ac_ext >&5
3868
3869 libiberty_cv_declare_errno=yes
3870 fi
3871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3872 fi
3873 echo "$as_me:$LINENO: result: $libiberty_cv_declare_errno" >&5
3874 echo "${ECHO_T}$libiberty_cv_declare_errno" >&6
3875 if test $libiberty_cv_declare_errno = yes
3876 then
3877 cat >>confdefs.h <<\_ACEOF
3878 #define NEED_DECLARATION_ERRNO 1
3879 _ACEOF
3880
3881 fi
3882
3883
3884 # Determine the size of an int for struct fibnode.
3885 echo "$as_me:$LINENO: checking for egrep" >&5
3886 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3887 if test "${ac_cv_prog_egrep+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3891 then ac_cv_prog_egrep='grep -E'
3892 else ac_cv_prog_egrep='egrep'
3893 fi
3894 fi
3895 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3896 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3897 EGREP=$ac_cv_prog_egrep
3898
3899
3900 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3901 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3902 if test "${ac_cv_header_stdc+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 else
3905 cat >conftest.$ac_ext <<_ACEOF
3906 /* confdefs.h. */
3907 _ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3911 #include <stdlib.h>
3912 #include <stdarg.h>
3913 #include <string.h>
3914 #include <float.h>
3915
3916 int
3917 main ()
3918 {
3919
3920 ;
3921 return 0;
3922 }
3923 _ACEOF
3924 rm -f conftest.$ac_objext
3925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3926 (eval $ac_compile) 2>conftest.er1
3927 ac_status=$?
3928 grep -v '^ *+' conftest.er1 >conftest.err
3929 rm -f conftest.er1
3930 cat conftest.err >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } &&
3933 { ac_try='test -z "$ac_c_werror_flag"
3934 || test ! -s conftest.err'
3935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936 (eval $ac_try) 2>&5
3937 ac_status=$?
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); }; } &&
3940 { ac_try='test -s conftest.$ac_objext'
3941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942 (eval $ac_try) 2>&5
3943 ac_status=$?
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); }; }; then
3946 ac_cv_header_stdc=yes
3947 else
3948 echo "$as_me: failed program was:" >&5
3949 sed 's/^/| /' conftest.$ac_ext >&5
3950
3951 ac_cv_header_stdc=no
3952 fi
3953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3954
3955 if test $ac_cv_header_stdc = yes; then
3956 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3957 cat >conftest.$ac_ext <<_ACEOF
3958 /* confdefs.h. */
3959 _ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3963 #include <string.h>
3964
3965 _ACEOF
3966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3967 $EGREP "memchr" >/dev/null 2>&1; then
3968 :
3969 else
3970 ac_cv_header_stdc=no
3971 fi
3972 rm -f conftest*
3973
3974 fi
3975
3976 if test $ac_cv_header_stdc = yes; then
3977 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3978 cat >conftest.$ac_ext <<_ACEOF
3979 /* confdefs.h. */
3980 _ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3984 #include <stdlib.h>
3985
3986 _ACEOF
3987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3988 $EGREP "free" >/dev/null 2>&1; then
3989 :
3990 else
3991 ac_cv_header_stdc=no
3992 fi
3993 rm -f conftest*
3994
3995 fi
3996
3997 if test $ac_cv_header_stdc = yes; then
3998 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3999 if test "$cross_compiling" = yes; then
4000 :
4001 else
4002 cat >conftest.$ac_ext <<_ACEOF
4003 /* confdefs.h. */
4004 _ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h. */
4008 #include <ctype.h>
4009 #if ((' ' & 0x0FF) == 0x020)
4010 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4011 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4012 #else
4013 # define ISLOWER(c) \
4014 (('a' <= (c) && (c) <= 'i') \
4015 || ('j' <= (c) && (c) <= 'r') \
4016 || ('s' <= (c) && (c) <= 'z'))
4017 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4018 #endif
4019
4020 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4021 int
4022 main ()
4023 {
4024 int i;
4025 for (i = 0; i < 256; i++)
4026 if (XOR (islower (i), ISLOWER (i))
4027 || toupper (i) != TOUPPER (i))
4028 exit(2);
4029 exit (0);
4030 }
4031 _ACEOF
4032 rm -f conftest$ac_exeext
4033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4034 (eval $ac_link) 2>&5
4035 ac_status=$?
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 (eval $ac_try) 2>&5
4040 ac_status=$?
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; }; then
4043 :
4044 else
4045 echo "$as_me: program exited with status $ac_status" >&5
4046 echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4048
4049 ( exit $ac_status )
4050 ac_cv_header_stdc=no
4051 fi
4052 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4053 fi
4054 fi
4055 fi
4056 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4057 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4058 if test $ac_cv_header_stdc = yes; then
4059
4060 cat >>confdefs.h <<\_ACEOF
4061 #define STDC_HEADERS 1
4062 _ACEOF
4063
4064 fi
4065
4066 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4077 inttypes.h stdint.h unistd.h
4078 do
4079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4080 echo "$as_me:$LINENO: checking for $ac_header" >&5
4081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4084 else
4085 cat >conftest.$ac_ext <<_ACEOF
4086 /* confdefs.h. */
4087 _ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h. */
4091 #include <$ac_header>
4092 _ACEOF
4093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4095 ac_status=$?
4096 grep -v '^ *+' conftest.er1 >conftest.err
4097 rm -f conftest.er1
4098 cat conftest.err >&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); } >/dev/null; then
4101 if test -s conftest.err; then
4102 ac_cpp_err=$ac_c_preproc_warn_flag
4103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4104 else
4105 ac_cpp_err=
4106 fi
4107 else
4108 ac_cpp_err=yes
4109 fi
4110 if test -z "$ac_cpp_err"; then
4111 eval "$as_ac_Header=yes"
4112 else
4113 echo "$as_me: failed program was:" >&5
4114 sed 's/^/| /' conftest.$ac_ext >&5
4115
4116 eval "$as_ac_Header=no"
4117 fi
4118 rm -f conftest.err conftest.$ac_ext
4119 fi
4120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4123 cat >>confdefs.h <<_ACEOF
4124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4125 _ACEOF
4126
4127 fi
4128 done
4129
4130
4131 echo "$as_me:$LINENO: checking for int" >&5
4132 echo $ECHO_N "checking for int... $ECHO_C" >&6
4133 if test "${ac_cv_type_int+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 else
4136 cat >conftest.$ac_ext <<_ACEOF
4137 /* confdefs.h. */
4138 _ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4142 $ac_includes_default
4143 int
4144 main ()
4145 {
4146 if ((int *) 0)
4147 return 0;
4148 if (sizeof (int))
4149 return 0;
4150 ;
4151 return 0;
4152 }
4153 _ACEOF
4154 rm -f conftest.$ac_objext
4155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4156 (eval $ac_compile) 2>conftest.er1
4157 ac_status=$?
4158 grep -v '^ *+' conftest.er1 >conftest.err
4159 rm -f conftest.er1
4160 cat conftest.err >&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } &&
4163 { ac_try='test -z "$ac_c_werror_flag"
4164 || test ! -s conftest.err'
4165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166 (eval $ac_try) 2>&5
4167 ac_status=$?
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; } &&
4170 { ac_try='test -s conftest.$ac_objext'
4171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172 (eval $ac_try) 2>&5
4173 ac_status=$?
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; }; then
4176 ac_cv_type_int=yes
4177 else
4178 echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.$ac_ext >&5
4180
4181 ac_cv_type_int=no
4182 fi
4183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4184 fi
4185 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4186 echo "${ECHO_T}$ac_cv_type_int" >&6
4187
4188 echo "$as_me:$LINENO: checking size of int" >&5
4189 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4190 if test "${ac_cv_sizeof_int+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 else
4193 if test "$ac_cv_type_int" = yes; then
4194 # The cast to unsigned long works around a bug in the HP C Compiler
4195 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4196 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4197 # This bug is HP SR number 8606223364.
4198 if test "$cross_compiling" = yes; then
4199 # Depending upon the size, compute the lo and hi bounds.
4200 cat >conftest.$ac_ext <<_ACEOF
4201 /* confdefs.h. */
4202 _ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4206 $ac_includes_default
4207 int
4208 main ()
4209 {
4210 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4211 test_array [0] = 0
4212
4213 ;
4214 return 0;
4215 }
4216 _ACEOF
4217 rm -f conftest.$ac_objext
4218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4219 (eval $ac_compile) 2>conftest.er1
4220 ac_status=$?
4221 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -f conftest.er1
4223 cat conftest.err >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } &&
4226 { ac_try='test -z "$ac_c_werror_flag"
4227 || test ! -s conftest.err'
4228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 (eval $ac_try) 2>&5
4230 ac_status=$?
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; } &&
4233 { ac_try='test -s conftest.$ac_objext'
4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235 (eval $ac_try) 2>&5
4236 ac_status=$?
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; }; then
4239 ac_lo=0 ac_mid=0
4240 while :; do
4241 cat >conftest.$ac_ext <<_ACEOF
4242 /* confdefs.h. */
4243 _ACEOF
4244 cat confdefs.h >>conftest.$ac_ext
4245 cat >>conftest.$ac_ext <<_ACEOF
4246 /* end confdefs.h. */
4247 $ac_includes_default
4248 int
4249 main ()
4250 {
4251 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4252 test_array [0] = 0
4253
4254 ;
4255 return 0;
4256 }
4257 _ACEOF
4258 rm -f conftest.$ac_objext
4259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4260 (eval $ac_compile) 2>conftest.er1
4261 ac_status=$?
4262 grep -v '^ *+' conftest.er1 >conftest.err
4263 rm -f conftest.er1
4264 cat conftest.err >&5
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); } &&
4267 { ac_try='test -z "$ac_c_werror_flag"
4268 || test ! -s conftest.err'
4269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270 (eval $ac_try) 2>&5
4271 ac_status=$?
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; } &&
4274 { ac_try='test -s conftest.$ac_objext'
4275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276 (eval $ac_try) 2>&5
4277 ac_status=$?
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; }; then
4280 ac_hi=$ac_mid; break
4281 else
4282 echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4284
4285 ac_lo=`expr $ac_mid + 1`
4286 if test $ac_lo -le $ac_mid; then
4287 ac_lo= ac_hi=
4288 break
4289 fi
4290 ac_mid=`expr 2 '*' $ac_mid + 1`
4291 fi
4292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4293 done
4294 else
4295 echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4297
4298 cat >conftest.$ac_ext <<_ACEOF
4299 /* confdefs.h. */
4300 _ACEOF
4301 cat confdefs.h >>conftest.$ac_ext
4302 cat >>conftest.$ac_ext <<_ACEOF
4303 /* end confdefs.h. */
4304 $ac_includes_default
4305 int
4306 main ()
4307 {
4308 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4309 test_array [0] = 0
4310
4311 ;
4312 return 0;
4313 }
4314 _ACEOF
4315 rm -f conftest.$ac_objext
4316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4317 (eval $ac_compile) 2>conftest.er1
4318 ac_status=$?
4319 grep -v '^ *+' conftest.er1 >conftest.err
4320 rm -f conftest.er1
4321 cat conftest.err >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); } &&
4324 { ac_try='test -z "$ac_c_werror_flag"
4325 || test ! -s conftest.err'
4326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4327 (eval $ac_try) 2>&5
4328 ac_status=$?
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); }; } &&
4331 { ac_try='test -s conftest.$ac_objext'
4332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333 (eval $ac_try) 2>&5
4334 ac_status=$?
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; }; then
4337 ac_hi=-1 ac_mid=-1
4338 while :; do
4339 cat >conftest.$ac_ext <<_ACEOF
4340 /* confdefs.h. */
4341 _ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h. */
4345 $ac_includes_default
4346 int
4347 main ()
4348 {
4349 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4350 test_array [0] = 0
4351
4352 ;
4353 return 0;
4354 }
4355 _ACEOF
4356 rm -f conftest.$ac_objext
4357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4358 (eval $ac_compile) 2>conftest.er1
4359 ac_status=$?
4360 grep -v '^ *+' conftest.er1 >conftest.err
4361 rm -f conftest.er1
4362 cat conftest.err >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } &&
4365 { ac_try='test -z "$ac_c_werror_flag"
4366 || test ! -s conftest.err'
4367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368 (eval $ac_try) 2>&5
4369 ac_status=$?
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }; } &&
4372 { ac_try='test -s conftest.$ac_objext'
4373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374 (eval $ac_try) 2>&5
4375 ac_status=$?
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; }; then
4378 ac_lo=$ac_mid; break
4379 else
4380 echo "$as_me: failed program was:" >&5
4381 sed 's/^/| /' conftest.$ac_ext >&5
4382
4383 ac_hi=`expr '(' $ac_mid ')' - 1`
4384 if test $ac_mid -le $ac_hi; then
4385 ac_lo= ac_hi=
4386 break
4387 fi
4388 ac_mid=`expr 2 '*' $ac_mid`
4389 fi
4390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4391 done
4392 else
4393 echo "$as_me: failed program was:" >&5
4394 sed 's/^/| /' conftest.$ac_ext >&5
4395
4396 ac_lo= ac_hi=
4397 fi
4398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4399 fi
4400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4401 # Binary search between lo and hi bounds.
4402 while test "x$ac_lo" != "x$ac_hi"; do
4403 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4404 cat >conftest.$ac_ext <<_ACEOF
4405 /* confdefs.h. */
4406 _ACEOF
4407 cat confdefs.h >>conftest.$ac_ext
4408 cat >>conftest.$ac_ext <<_ACEOF
4409 /* end confdefs.h. */
4410 $ac_includes_default
4411 int
4412 main ()
4413 {
4414 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4415 test_array [0] = 0
4416
4417 ;
4418 return 0;
4419 }
4420 _ACEOF
4421 rm -f conftest.$ac_objext
4422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4423 (eval $ac_compile) 2>conftest.er1
4424 ac_status=$?
4425 grep -v '^ *+' conftest.er1 >conftest.err
4426 rm -f conftest.er1
4427 cat conftest.err >&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } &&
4430 { ac_try='test -z "$ac_c_werror_flag"
4431 || test ! -s conftest.err'
4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433 (eval $ac_try) 2>&5
4434 ac_status=$?
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; } &&
4437 { ac_try='test -s conftest.$ac_objext'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 (eval $ac_try) 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; }; then
4443 ac_hi=$ac_mid
4444 else
4445 echo "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.$ac_ext >&5
4447
4448 ac_lo=`expr '(' $ac_mid ')' + 1`
4449 fi
4450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4451 done
4452 case $ac_lo in
4453 ?*) ac_cv_sizeof_int=$ac_lo;;
4454 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4455 See \`config.log' for more details." >&5
4456 echo "$as_me: error: cannot compute sizeof (int), 77
4457 See \`config.log' for more details." >&2;}
4458 { (exit 1); exit 1; }; } ;;
4459 esac
4460 else
4461 if test "$cross_compiling" = yes; then
4462 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4463 See \`config.log' for more details." >&5
4464 echo "$as_me: error: cannot run test program while cross compiling
4465 See \`config.log' for more details." >&2;}
4466 { (exit 1); exit 1; }; }
4467 else
4468 cat >conftest.$ac_ext <<_ACEOF
4469 /* confdefs.h. */
4470 _ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4474 $ac_includes_default
4475 long longval () { return (long) (sizeof (int)); }
4476 unsigned long ulongval () { return (long) (sizeof (int)); }
4477 #include <stdio.h>
4478 #include <stdlib.h>
4479 int
4480 main ()
4481 {
4482
4483 FILE *f = fopen ("conftest.val", "w");
4484 if (! f)
4485 exit (1);
4486 if (((long) (sizeof (int))) < 0)
4487 {
4488 long i = longval ();
4489 if (i != ((long) (sizeof (int))))
4490 exit (1);
4491 fprintf (f, "%ld\n", i);
4492 }
4493 else
4494 {
4495 unsigned long i = ulongval ();
4496 if (i != ((long) (sizeof (int))))
4497 exit (1);
4498 fprintf (f, "%lu\n", i);
4499 }
4500 exit (ferror (f) || fclose (f) != 0);
4501
4502 ;
4503 return 0;
4504 }
4505 _ACEOF
4506 rm -f conftest$ac_exeext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4508 (eval $ac_link) 2>&5
4509 ac_status=$?
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513 (eval $ac_try) 2>&5
4514 ac_status=$?
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; }; then
4517 ac_cv_sizeof_int=`cat conftest.val`
4518 else
4519 echo "$as_me: program exited with status $ac_status" >&5
4520 echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4522
4523 ( exit $ac_status )
4524 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4525 See \`config.log' for more details." >&5
4526 echo "$as_me: error: cannot compute sizeof (int), 77
4527 See \`config.log' for more details." >&2;}
4528 { (exit 1); exit 1; }; }
4529 fi
4530 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4531 fi
4532 fi
4533 rm -f conftest.val
4534 else
4535 ac_cv_sizeof_int=0
4536 fi
4537 fi
4538 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4539 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4540 cat >>confdefs.h <<_ACEOF
4541 #define SIZEOF_INT $ac_cv_sizeof_int
4542 _ACEOF
4543
4544
4545
4546 echo "$as_me:$LINENO: checking for uintptr_t" >&5
4547 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4548 if test "${ac_cv_type_uintptr_t+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 else
4551 cat >conftest.$ac_ext <<_ACEOF
4552 /* confdefs.h. */
4553 _ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h. */
4557 $ac_includes_default
4558 int
4559 main ()
4560 {
4561 if ((uintptr_t *) 0)
4562 return 0;
4563 if (sizeof (uintptr_t))
4564 return 0;
4565 ;
4566 return 0;
4567 }
4568 _ACEOF
4569 rm -f conftest.$ac_objext
4570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4571 (eval $ac_compile) 2>conftest.er1
4572 ac_status=$?
4573 grep -v '^ *+' conftest.er1 >conftest.err
4574 rm -f conftest.er1
4575 cat conftest.err >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } &&
4578 { ac_try='test -z "$ac_c_werror_flag"
4579 || test ! -s conftest.err'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581 (eval $ac_try) 2>&5
4582 ac_status=$?
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; } &&
4585 { ac_try='test -s conftest.$ac_objext'
4586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4587 (eval $ac_try) 2>&5
4588 ac_status=$?
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); }; }; then
4591 ac_cv_type_uintptr_t=yes
4592 else
4593 echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4595
4596 ac_cv_type_uintptr_t=no
4597 fi
4598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4599 fi
4600 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
4601 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4602 if test $ac_cv_type_uintptr_t = yes; then
4603 :
4604 else
4605
4606 cat >>confdefs.h <<_ACEOF
4607 #define uintptr_t unsigned long
4608 _ACEOF
4609
4610 fi
4611
4612
4613 # Look for a 64-bit type.
4614 echo "$as_me:$LINENO: checking for a 64-bit type" >&5
4615 echo $ECHO_N "checking for a 64-bit type... $ECHO_C" >&6
4616 if test "${liberty_cv_uint64+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4618 else
4619 cat >conftest.$ac_ext <<_ACEOF
4620 /* confdefs.h. */
4621 _ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4625 #ifdef HAVE_STDINT_H
4626 #include <stdint.h>
4627 #endif
4628 int
4629 main ()
4630 {
4631 extern uint64_t foo;
4632 ;
4633 return 0;
4634 }
4635 _ACEOF
4636 rm -f conftest.$ac_objext
4637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4638 (eval $ac_compile) 2>conftest.er1
4639 ac_status=$?
4640 grep -v '^ *+' conftest.er1 >conftest.err
4641 rm -f conftest.er1
4642 cat conftest.err >&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } &&
4645 { ac_try='test -z "$ac_c_werror_flag"
4646 || test ! -s conftest.err'
4647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4648 (eval $ac_try) 2>&5
4649 ac_status=$?
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); }; } &&
4652 { ac_try='test -s conftest.$ac_objext'
4653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654 (eval $ac_try) 2>&5
4655 ac_status=$?
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }; }; then
4658 liberty_cv_uint64=uint64_t
4659 else
4660 echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.$ac_ext >&5
4662
4663 cat >conftest.$ac_ext <<_ACEOF
4664 /* confdefs.h. */
4665 _ACEOF
4666 cat confdefs.h >>conftest.$ac_ext
4667 cat >>conftest.$ac_ext <<_ACEOF
4668 /* end confdefs.h. */
4669 #ifdef HAVE_LIMITS_H
4670 #include <limits.h>
4671 #endif
4672 #ifndef CHAR_BIT
4673 #define CHAR_BIT 8
4674 #endif
4675 int
4676 main ()
4677 {
4678 extern char foo[sizeof(long) * CHAR_BIT >= 64 ? 1 : -1];
4679 ;
4680 return 0;
4681 }
4682 _ACEOF
4683 rm -f conftest.$ac_objext
4684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4685 (eval $ac_compile) 2>conftest.er1
4686 ac_status=$?
4687 grep -v '^ *+' conftest.er1 >conftest.err
4688 rm -f conftest.er1
4689 cat conftest.err >&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } &&
4692 { ac_try='test -z "$ac_c_werror_flag"
4693 || test ! -s conftest.err'
4694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695 (eval $ac_try) 2>&5
4696 ac_status=$?
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; } &&
4699 { ac_try='test -s conftest.$ac_objext'
4700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701 (eval $ac_try) 2>&5
4702 ac_status=$?
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); }; }; then
4705 liberty_cv_uint64="unsigned long"
4706 else
4707 echo "$as_me: failed program was:" >&5
4708 sed 's/^/| /' conftest.$ac_ext >&5
4709
4710 cat >conftest.$ac_ext <<_ACEOF
4711 /* confdefs.h. */
4712 _ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h. */
4716 #ifdef HAVE_LIMITS_H
4717 #include <limits.h>
4718 #endif
4719 #ifndef CHAR_BIT
4720 #define CHAR_BIT 8
4721 #endif
4722 int
4723 main ()
4724 {
4725 extern char foo[sizeof(long long) * CHAR_BIT >= 64 ? 1 : -1];
4726 ;
4727 return 0;
4728 }
4729 _ACEOF
4730 rm -f conftest.$ac_objext
4731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4732 (eval $ac_compile) 2>conftest.er1
4733 ac_status=$?
4734 grep -v '^ *+' conftest.er1 >conftest.err
4735 rm -f conftest.er1
4736 cat conftest.err >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } &&
4739 { ac_try='test -z "$ac_c_werror_flag"
4740 || test ! -s conftest.err'
4741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4742 (eval $ac_try) 2>&5
4743 ac_status=$?
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); }; } &&
4746 { ac_try='test -s conftest.$ac_objext'
4747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748 (eval $ac_try) 2>&5
4749 ac_status=$?
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; }; then
4752 liberty_cv_uint64="unsigned long long"
4753 else
4754 echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4756
4757 liberty_cv_uint64=none
4758 fi
4759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4760 fi
4761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4762 fi
4763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4764 fi
4765
4766 echo "$as_me:$LINENO: result: $liberty_cv_uint64" >&5
4767 echo "${ECHO_T}$liberty_cv_uint64" >&6
4768 if test "$liberty_cv_uint64" != none; then
4769
4770 cat >>confdefs.h <<_ACEOF
4771 #define UNSIGNED_64BIT_TYPE $liberty_cv_uint64
4772 _ACEOF
4773
4774 fi
4775
4776 # Given the above check, we always have uintptr_t or a fallback
4777 # definition. So define HAVE_UINTPTR_T in case any imported code
4778 # relies on it.
4779
4780 cat >>confdefs.h <<\_ACEOF
4781 #define HAVE_UINTPTR_T 1
4782 _ACEOF
4783
4784
4785 echo "$as_me:$LINENO: checking for pid_t" >&5
4786 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4787 if test "${ac_cv_type_pid_t+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 else
4790 cat >conftest.$ac_ext <<_ACEOF
4791 /* confdefs.h. */
4792 _ACEOF
4793 cat confdefs.h >>conftest.$ac_ext
4794 cat >>conftest.$ac_ext <<_ACEOF
4795 /* end confdefs.h. */
4796 $ac_includes_default
4797 int
4798 main ()
4799 {
4800 if ((pid_t *) 0)
4801 return 0;
4802 if (sizeof (pid_t))
4803 return 0;
4804 ;
4805 return 0;
4806 }
4807 _ACEOF
4808 rm -f conftest.$ac_objext
4809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4810 (eval $ac_compile) 2>conftest.er1
4811 ac_status=$?
4812 grep -v '^ *+' conftest.er1 >conftest.err
4813 rm -f conftest.er1
4814 cat conftest.err >&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } &&
4817 { ac_try='test -z "$ac_c_werror_flag"
4818 || test ! -s conftest.err'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 (eval $ac_try) 2>&5
4821 ac_status=$?
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; } &&
4824 { ac_try='test -s conftest.$ac_objext'
4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 (eval $ac_try) 2>&5
4827 ac_status=$?
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; }; then
4830 ac_cv_type_pid_t=yes
4831 else
4832 echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4834
4835 ac_cv_type_pid_t=no
4836 fi
4837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4838 fi
4839 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4840 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4841 if test $ac_cv_type_pid_t = yes; then
4842 :
4843 else
4844
4845 cat >>confdefs.h <<_ACEOF
4846 #define pid_t int
4847 _ACEOF
4848
4849 fi
4850
4851
4852 # This is the list of functions which libiberty will provide if they
4853 # are not available on the host.
4854
4855 funcs="asprintf"
4856 funcs="$funcs atexit"
4857 funcs="$funcs basename"
4858 funcs="$funcs bcmp"
4859 funcs="$funcs bcopy"
4860 funcs="$funcs bsearch"
4861 funcs="$funcs bzero"
4862 funcs="$funcs calloc"
4863 funcs="$funcs clock"
4864 funcs="$funcs ffs"
4865 funcs="$funcs getcwd"
4866 funcs="$funcs getpagesize"
4867 funcs="$funcs gettimeofday"
4868 funcs="$funcs index"
4869 funcs="$funcs insque"
4870 funcs="$funcs memchr"
4871 funcs="$funcs memcmp"
4872 funcs="$funcs memcpy"
4873 funcs="$funcs memmove"
4874 funcs="$funcs mempcpy"
4875 funcs="$funcs memset"
4876 funcs="$funcs mkstemps"
4877 funcs="$funcs putenv"
4878 funcs="$funcs random"
4879 funcs="$funcs rename"
4880 funcs="$funcs rindex"
4881 funcs="$funcs setenv"
4882 funcs="$funcs snprintf"
4883 funcs="$funcs sigsetmask"
4884 funcs="$funcs stpcpy"
4885 funcs="$funcs stpncpy"
4886 funcs="$funcs strcasecmp"
4887 funcs="$funcs strchr"
4888 funcs="$funcs strdup"
4889 funcs="$funcs strncasecmp"
4890 funcs="$funcs strndup"
4891 funcs="$funcs strrchr"
4892 funcs="$funcs strstr"
4893 funcs="$funcs strtod"
4894 funcs="$funcs strtol"
4895 funcs="$funcs strtoul"
4896 funcs="$funcs strverscmp"
4897 funcs="$funcs tmpnam"
4898 funcs="$funcs vasprintf"
4899 funcs="$funcs vfprintf"
4900 funcs="$funcs vprintf"
4901 funcs="$funcs vsnprintf"
4902 funcs="$funcs vsprintf"
4903 funcs="$funcs waitpid"
4904
4905 # Also in the old function.def file: alloca, vfork, getopt.
4906
4907 vars="sys_errlist sys_nerr sys_siglist"
4908
4909 checkfuncs="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday"
4910 checkfuncs="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp"
4911 checkfuncs="$checkfuncs getsysinfo table sysctl wait3 wait4 __fsetlocking"
4912
4913 # These are neither executed nor required, but they help keep
4914 # autoheader happy without adding a bunch of text to acconfig.h.
4915 if test "x" = "y"; then
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985 for ac_func in asprintf atexit basename bcmp bcopy bsearch bzero calloc clock \
4986 getcwd getpagesize gettimeofday index insque mkstemps memchr memcmp memcpy \
4987 memmove mempcpy memset putenv random rename rindex sigsetmask \
4988 strcasecmp setenv stpcpy stpncpy strchr strdup strncasecmp strndup strrchr strstr \
4989 strtod strtol strtoul strverscmp tmpnam vasprintf vfprintf vprintf \
4990 vsprintf waitpid getrusage on_exit psignal strerror strsignal \
4991 sysconf times sbrk gettimeofday ffs snprintf vsnprintf \
4992 pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl wait3 wait4 \
4993 realpath canonicalize_file_name __fsetlocking
4994 do
4995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4996 echo "$as_me:$LINENO: checking for $ac_func" >&5
4997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4998 if eval "test \"\${$as_ac_var+set}\" = set"; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5000 else
5001 if test x$gcc_no_link = xyes; then
5002 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5003 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5004 { (exit 1); exit 1; }; }
5005 fi
5006 cat >conftest.$ac_ext <<_ACEOF
5007 /* confdefs.h. */
5008 _ACEOF
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h. */
5012 /* System header to define __stub macros and hopefully few prototypes,
5013 which can conflict with char $ac_func (); below.
5014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5015 <limits.h> exists even on freestanding compilers. Under hpux,
5016 including <limits.h> includes <sys/time.h> and causes problems
5017 checking for functions defined therein. */
5018 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5019 # include <limits.h>
5020 #else
5021 # include <assert.h>
5022 #endif
5023 /* Override any gcc2 internal prototype to avoid an error. */
5024 #ifdef __cplusplus
5025 extern "C"
5026 {
5027 #endif
5028 /* We use char because int might match the return type of a gcc2
5029 builtin and then its argument prototype would still apply. */
5030 char $ac_func ();
5031 /* The GNU C library defines this for functions which it implements
5032 to always fail with ENOSYS. Some functions are actually named
5033 something starting with __ and the normal name is an alias. */
5034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5035 choke me
5036 #else
5037 char (*f) () = $ac_func;
5038 #endif
5039 #ifdef __cplusplus
5040 }
5041 #endif
5042
5043 int
5044 main ()
5045 {
5046 return f != $ac_func;
5047 ;
5048 return 0;
5049 }
5050 _ACEOF
5051 rm -f conftest.$ac_objext conftest$ac_exeext
5052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5053 (eval $ac_link) 2>conftest.er1
5054 ac_status=$?
5055 grep -v '^ *+' conftest.er1 >conftest.err
5056 rm -f conftest.er1
5057 cat conftest.err >&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } &&
5060 { ac_try='test -z "$ac_c_werror_flag"
5061 || test ! -s conftest.err'
5062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063 (eval $ac_try) 2>&5
5064 ac_status=$?
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); }; } &&
5067 { ac_try='test -s conftest$ac_exeext'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069 (eval $ac_try) 2>&5
5070 ac_status=$?
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; }; then
5073 eval "$as_ac_var=yes"
5074 else
5075 echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5077
5078 eval "$as_ac_var=no"
5079 fi
5080 rm -f conftest.err conftest.$ac_objext \
5081 conftest$ac_exeext conftest.$ac_ext
5082 fi
5083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5085 if test `eval echo '${'$as_ac_var'}'` = yes; then
5086 cat >>confdefs.h <<_ACEOF
5087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5088 _ACEOF
5089
5090 fi
5091 done
5092
5093 echo "$as_me:$LINENO: checking whether basename is declared" >&5
5094 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
5095 if test "${ac_cv_have_decl_basename+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 else
5098 cat >conftest.$ac_ext <<_ACEOF
5099 /* confdefs.h. */
5100 _ACEOF
5101 cat confdefs.h >>conftest.$ac_ext
5102 cat >>conftest.$ac_ext <<_ACEOF
5103 /* end confdefs.h. */
5104 $ac_includes_default
5105 int
5106 main ()
5107 {
5108 #ifndef basename
5109 char *p = (char *) basename;
5110 #endif
5111
5112 ;
5113 return 0;
5114 }
5115 _ACEOF
5116 rm -f conftest.$ac_objext
5117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5118 (eval $ac_compile) 2>conftest.er1
5119 ac_status=$?
5120 grep -v '^ *+' conftest.er1 >conftest.err
5121 rm -f conftest.er1
5122 cat conftest.err >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); } &&
5125 { ac_try='test -z "$ac_c_werror_flag"
5126 || test ! -s conftest.err'
5127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128 (eval $ac_try) 2>&5
5129 ac_status=$?
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }; } &&
5132 { ac_try='test -s conftest.$ac_objext'
5133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5134 (eval $ac_try) 2>&5
5135 ac_status=$?
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); }; }; then
5138 ac_cv_have_decl_basename=yes
5139 else
5140 echo "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.$ac_ext >&5
5142
5143 ac_cv_have_decl_basename=no
5144 fi
5145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5146 fi
5147 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
5148 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
5149 if test $ac_cv_have_decl_basename = yes; then
5150
5151 cat >>confdefs.h <<_ACEOF
5152 #define HAVE_DECL_BASENAME 1
5153 _ACEOF
5154
5155
5156 else
5157 cat >>confdefs.h <<_ACEOF
5158 #define HAVE_DECL_BASENAME 0
5159 _ACEOF
5160
5161
5162 fi
5163 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
5164 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
5165 if test "${ac_cv_have_decl_ffs+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 else
5168 cat >conftest.$ac_ext <<_ACEOF
5169 /* confdefs.h. */
5170 _ACEOF
5171 cat confdefs.h >>conftest.$ac_ext
5172 cat >>conftest.$ac_ext <<_ACEOF
5173 /* end confdefs.h. */
5174 $ac_includes_default
5175 int
5176 main ()
5177 {
5178 #ifndef ffs
5179 char *p = (char *) ffs;
5180 #endif
5181
5182 ;
5183 return 0;
5184 }
5185 _ACEOF
5186 rm -f conftest.$ac_objext
5187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5188 (eval $ac_compile) 2>conftest.er1
5189 ac_status=$?
5190 grep -v '^ *+' conftest.er1 >conftest.err
5191 rm -f conftest.er1
5192 cat conftest.err >&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } &&
5195 { ac_try='test -z "$ac_c_werror_flag"
5196 || test ! -s conftest.err'
5197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198 (eval $ac_try) 2>&5
5199 ac_status=$?
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); }; } &&
5202 { ac_try='test -s conftest.$ac_objext'
5203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5204 (eval $ac_try) 2>&5
5205 ac_status=$?
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; }; then
5208 ac_cv_have_decl_ffs=yes
5209 else
5210 echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5212
5213 ac_cv_have_decl_ffs=no
5214 fi
5215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5216 fi
5217 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
5218 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
5219 if test $ac_cv_have_decl_ffs = yes; then
5220
5221 cat >>confdefs.h <<_ACEOF
5222 #define HAVE_DECL_FFS 1
5223 _ACEOF
5224
5225
5226 else
5227 cat >>confdefs.h <<_ACEOF
5228 #define HAVE_DECL_FFS 0
5229 _ACEOF
5230
5231
5232 fi
5233 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
5234 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
5235 if test "${ac_cv_have_decl_asprintf+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 else
5238 cat >conftest.$ac_ext <<_ACEOF
5239 /* confdefs.h. */
5240 _ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5244 $ac_includes_default
5245 int
5246 main ()
5247 {
5248 #ifndef asprintf
5249 char *p = (char *) asprintf;
5250 #endif
5251
5252 ;
5253 return 0;
5254 }
5255 _ACEOF
5256 rm -f conftest.$ac_objext
5257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5258 (eval $ac_compile) 2>conftest.er1
5259 ac_status=$?
5260 grep -v '^ *+' conftest.er1 >conftest.err
5261 rm -f conftest.er1
5262 cat conftest.err >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); } &&
5265 { ac_try='test -z "$ac_c_werror_flag"
5266 || test ! -s conftest.err'
5267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268 (eval $ac_try) 2>&5
5269 ac_status=$?
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }; } &&
5272 { ac_try='test -s conftest.$ac_objext'
5273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274 (eval $ac_try) 2>&5
5275 ac_status=$?
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); }; }; then
5278 ac_cv_have_decl_asprintf=yes
5279 else
5280 echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.$ac_ext >&5
5282
5283 ac_cv_have_decl_asprintf=no
5284 fi
5285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5286 fi
5287 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
5288 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
5289 if test $ac_cv_have_decl_asprintf = yes; then
5290
5291 cat >>confdefs.h <<_ACEOF
5292 #define HAVE_DECL_ASPRINTF 1
5293 _ACEOF
5294
5295
5296 else
5297 cat >>confdefs.h <<_ACEOF
5298 #define HAVE_DECL_ASPRINTF 0
5299 _ACEOF
5300
5301
5302 fi
5303 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
5304 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
5305 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 else
5308 cat >conftest.$ac_ext <<_ACEOF
5309 /* confdefs.h. */
5310 _ACEOF
5311 cat confdefs.h >>conftest.$ac_ext
5312 cat >>conftest.$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5314 $ac_includes_default
5315 int
5316 main ()
5317 {
5318 #ifndef vasprintf
5319 char *p = (char *) vasprintf;
5320 #endif
5321
5322 ;
5323 return 0;
5324 }
5325 _ACEOF
5326 rm -f conftest.$ac_objext
5327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5328 (eval $ac_compile) 2>conftest.er1
5329 ac_status=$?
5330 grep -v '^ *+' conftest.er1 >conftest.err
5331 rm -f conftest.er1
5332 cat conftest.err >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } &&
5335 { ac_try='test -z "$ac_c_werror_flag"
5336 || test ! -s conftest.err'
5337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338 (eval $ac_try) 2>&5
5339 ac_status=$?
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); }; } &&
5342 { ac_try='test -s conftest.$ac_objext'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344 (eval $ac_try) 2>&5
5345 ac_status=$?
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; }; then
5348 ac_cv_have_decl_vasprintf=yes
5349 else
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5352
5353 ac_cv_have_decl_vasprintf=no
5354 fi
5355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5356 fi
5357 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
5358 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
5359 if test $ac_cv_have_decl_vasprintf = yes; then
5360
5361 cat >>confdefs.h <<_ACEOF
5362 #define HAVE_DECL_VASPRINTF 1
5363 _ACEOF
5364
5365
5366 else
5367 cat >>confdefs.h <<_ACEOF
5368 #define HAVE_DECL_VASPRINTF 0
5369 _ACEOF
5370
5371
5372 fi
5373 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
5374 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
5375 if test "${ac_cv_have_decl_snprintf+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 else
5378 cat >conftest.$ac_ext <<_ACEOF
5379 /* confdefs.h. */
5380 _ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5384 $ac_includes_default
5385 int
5386 main ()
5387 {
5388 #ifndef snprintf
5389 char *p = (char *) snprintf;
5390 #endif
5391
5392 ;
5393 return 0;
5394 }
5395 _ACEOF
5396 rm -f conftest.$ac_objext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5398 (eval $ac_compile) 2>conftest.er1
5399 ac_status=$?
5400 grep -v '^ *+' conftest.er1 >conftest.err
5401 rm -f conftest.er1
5402 cat conftest.err >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } &&
5405 { ac_try='test -z "$ac_c_werror_flag"
5406 || test ! -s conftest.err'
5407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408 (eval $ac_try) 2>&5
5409 ac_status=$?
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; } &&
5412 { ac_try='test -s conftest.$ac_objext'
5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414 (eval $ac_try) 2>&5
5415 ac_status=$?
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; }; then
5418 ac_cv_have_decl_snprintf=yes
5419 else
5420 echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5422
5423 ac_cv_have_decl_snprintf=no
5424 fi
5425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5426 fi
5427 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
5428 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
5429 if test $ac_cv_have_decl_snprintf = yes; then
5430
5431 cat >>confdefs.h <<_ACEOF
5432 #define HAVE_DECL_SNPRINTF 1
5433 _ACEOF
5434
5435
5436 else
5437 cat >>confdefs.h <<_ACEOF
5438 #define HAVE_DECL_SNPRINTF 0
5439 _ACEOF
5440
5441
5442 fi
5443 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
5444 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
5445 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
5446 echo $ECHO_N "(cached) $ECHO_C" >&6
5447 else
5448 cat >conftest.$ac_ext <<_ACEOF
5449 /* confdefs.h. */
5450 _ACEOF
5451 cat confdefs.h >>conftest.$ac_ext
5452 cat >>conftest.$ac_ext <<_ACEOF
5453 /* end confdefs.h. */
5454 $ac_includes_default
5455 int
5456 main ()
5457 {
5458 #ifndef vsnprintf
5459 char *p = (char *) vsnprintf;
5460 #endif
5461
5462 ;
5463 return 0;
5464 }
5465 _ACEOF
5466 rm -f conftest.$ac_objext
5467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5468 (eval $ac_compile) 2>conftest.er1
5469 ac_status=$?
5470 grep -v '^ *+' conftest.er1 >conftest.err
5471 rm -f conftest.er1
5472 cat conftest.err >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } &&
5475 { ac_try='test -z "$ac_c_werror_flag"
5476 || test ! -s conftest.err'
5477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5478 (eval $ac_try) 2>&5
5479 ac_status=$?
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); }; } &&
5482 { ac_try='test -s conftest.$ac_objext'
5483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484 (eval $ac_try) 2>&5
5485 ac_status=$?
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); }; }; then
5488 ac_cv_have_decl_vsnprintf=yes
5489 else
5490 echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5492
5493 ac_cv_have_decl_vsnprintf=no
5494 fi
5495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5496 fi
5497 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
5498 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
5499 if test $ac_cv_have_decl_vsnprintf = yes; then
5500
5501 cat >>confdefs.h <<_ACEOF
5502 #define HAVE_DECL_VSNPRINTF 1
5503 _ACEOF
5504
5505
5506 else
5507 cat >>confdefs.h <<_ACEOF
5508 #define HAVE_DECL_VSNPRINTF 0
5509 _ACEOF
5510
5511
5512 fi
5513
5514
5515
5516 cat >>confdefs.h <<\_ACEOF
5517 #define HAVE_SYS_ERRLIST 1
5518 _ACEOF
5519
5520
5521 cat >>confdefs.h <<\_ACEOF
5522 #define HAVE_SYS_NERR 1
5523 _ACEOF
5524
5525
5526 cat >>confdefs.h <<\_ACEOF
5527 #define HAVE_SYS_SIGLIST 1
5528 _ACEOF
5529
5530 fi
5531
5532 # For each of these functions, if the host does not provide the
5533 # function we want to put FN.o in LIBOBJS, and if the host does
5534 # provide the function, we want to define HAVE_FN in config.h.
5535
5536 setobjs=
5537 CHECK=
5538 target_header_dir=
5539 if test -n "${with_target_subdir}"; then
5540
5541 # We are being configured as a target library. AC_REPLACE_FUNCS
5542 # may not work correctly, because the compiler may not be able to
5543 # link executables. Note that we may still be being configured
5544 # native.
5545
5546 # If we are being configured for newlib, we know which functions
5547 # newlib provide and which ones we will be expected to provide.
5548
5549 if test "x${with_newlib}" = "xyes"; then
5550 case $LIBOBJS in
5551 "asprintf.$ac_objext" | \
5552 *" asprintf.$ac_objext" | \
5553 "asprintf.$ac_objext "* | \
5554 *" asprintf.$ac_objext "* ) ;;
5555 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;;
5556 esac
5557
5558 case $LIBOBJS in
5559 "basename.$ac_objext" | \
5560 *" basename.$ac_objext" | \
5561 "basename.$ac_objext "* | \
5562 *" basename.$ac_objext "* ) ;;
5563 *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;;
5564 esac
5565
5566 case $LIBOBJS in
5567 "insque.$ac_objext" | \
5568 *" insque.$ac_objext" | \
5569 "insque.$ac_objext "* | \
5570 *" insque.$ac_objext "* ) ;;
5571 *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;;
5572 esac
5573
5574 case $LIBOBJS in
5575 "random.$ac_objext" | \
5576 *" random.$ac_objext" | \
5577 "random.$ac_objext "* | \
5578 *" random.$ac_objext "* ) ;;
5579 *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
5580 esac
5581
5582 case $LIBOBJS in
5583 "strdup.$ac_objext" | \
5584 *" strdup.$ac_objext" | \
5585 "strdup.$ac_objext "* | \
5586 *" strdup.$ac_objext "* ) ;;
5587 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;;
5588 esac
5589
5590 case $LIBOBJS in
5591 "vasprintf.$ac_objext" | \
5592 *" vasprintf.$ac_objext" | \
5593 "vasprintf.$ac_objext "* | \
5594 *" vasprintf.$ac_objext "* ) ;;
5595 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;;
5596 esac
5597
5598
5599 for f in $funcs; do
5600 case "$f" in
5601 asprintf | basename | insque | random | strdup | vasprintf)
5602 ;;
5603 *)
5604 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5605 cat >>confdefs.h <<_ACEOF
5606 #define $n 1
5607 _ACEOF
5608
5609 ;;
5610 esac
5611 done
5612
5613 # newlib doesnt provide any of the variables in $vars, so we
5614 # dont have to check them here.
5615
5616 # Of the functions in $checkfuncs, newlib only has strerror.
5617 cat >>confdefs.h <<\_ACEOF
5618 #define HAVE_STRERROR 1
5619 _ACEOF
5620
5621
5622 setobjs=yes
5623
5624 fi
5625
5626 # We may wish to install the target headers somewhere.
5627 # Check whether --enable-install-libiberty or --disable-install-libiberty was given.
5628 if test "${enable_install_libiberty+set}" = set; then
5629 enableval="$enable_install_libiberty"
5630 enable_install_libiberty=$enableval
5631 else
5632 enable_install_libiberty=no
5633 fi;
5634 # Option parsed, now set things appropriately.
5635 case x"$enable_install_libiberty" in
5636 xyes|x)
5637 target_header_dir=libiberty
5638 ;;
5639 xno)
5640 target_header_dir=
5641 ;;
5642 *)
5643 # This could be sanity-checked in various ways...
5644 target_header_dir="${enable_install_libiberty}"
5645 ;;
5646 esac
5647
5648
5649 else
5650
5651 # Not a target library, so we set things up to run the test suite.
5652 CHECK=really-check
5653
5654 fi
5655
5656
5657
5658
5659 case "${host}" in
5660 *-*-cygwin* | *-*-mingw*)
5661 cat >>confdefs.h <<\_ACEOF
5662 #define HAVE_SYS_ERRLIST 1
5663 _ACEOF
5664
5665 cat >>confdefs.h <<\_ACEOF
5666 #define HAVE_SYS_NERR 1
5667 _ACEOF
5668
5669 ;;
5670 esac
5671
5672 if test -z "${setobjs}"; then
5673 case "${host}" in
5674
5675 *-*-vxworks*)
5676 # Handle VxWorks configuration specially, since on VxWorks the
5677 # libraries are actually on the target board, not in the file
5678 # system.
5679 case $LIBOBJS in
5680 "basename.$ac_objext" | \
5681 *" basename.$ac_objext" | \
5682 "basename.$ac_objext "* | \
5683 *" basename.$ac_objext "* ) ;;
5684 *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;;
5685 esac
5686
5687 case $LIBOBJS in
5688 "getpagesize.$ac_objext" | \
5689 *" getpagesize.$ac_objext" | \
5690 "getpagesize.$ac_objext "* | \
5691 *" getpagesize.$ac_objext "* ) ;;
5692 *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext" ;;
5693 esac
5694
5695 case $LIBOBJS in
5696 "insque.$ac_objext" | \
5697 *" insque.$ac_objext" | \
5698 "insque.$ac_objext "* | \
5699 *" insque.$ac_objext "* ) ;;
5700 *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;;
5701 esac
5702
5703 case $LIBOBJS in
5704 "random.$ac_objext" | \
5705 *" random.$ac_objext" | \
5706 "random.$ac_objext "* | \
5707 *" random.$ac_objext "* ) ;;
5708 *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
5709 esac
5710
5711 case $LIBOBJS in
5712 "strcasecmp.$ac_objext" | \
5713 *" strcasecmp.$ac_objext" | \
5714 "strcasecmp.$ac_objext "* | \
5715 *" strcasecmp.$ac_objext "* ) ;;
5716 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" ;;
5717 esac
5718
5719 case $LIBOBJS in
5720 "strncasecmp.$ac_objext" | \
5721 *" strncasecmp.$ac_objext" | \
5722 "strncasecmp.$ac_objext "* | \
5723 *" strncasecmp.$ac_objext "* ) ;;
5724 *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" ;;
5725 esac
5726
5727 case $LIBOBJS in
5728 "strdup.$ac_objext" | \
5729 *" strdup.$ac_objext" | \
5730 "strdup.$ac_objext "* | \
5731 *" strdup.$ac_objext "* ) ;;
5732 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;;
5733 esac
5734
5735 case $LIBOBJS in
5736 "vfork.$ac_objext" | \
5737 *" vfork.$ac_objext" | \
5738 "vfork.$ac_objext "* | \
5739 *" vfork.$ac_objext "* ) ;;
5740 *) LIBOBJS="$LIBOBJS vfork.$ac_objext" ;;
5741 esac
5742
5743 case $LIBOBJS in
5744 "waitpid.$ac_objext" | \
5745 *" waitpid.$ac_objext" | \
5746 "waitpid.$ac_objext "* | \
5747 *" waitpid.$ac_objext "* ) ;;
5748 *) LIBOBJS="$LIBOBJS waitpid.$ac_objext" ;;
5749 esac
5750
5751 case $LIBOBJS in
5752 "vasprintf.$ac_objext" | \
5753 *" vasprintf.$ac_objext" | \
5754 "vasprintf.$ac_objext "* | \
5755 *" vasprintf.$ac_objext "* ) ;;
5756 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;;
5757 esac
5758
5759 for f in $funcs; do
5760 case "$f" in
5761 basename | getpagesize | insque | random | strcasecmp)
5762 ;;
5763 strncasecmp | strdup | vfork | waitpid | vasprintf)
5764 ;;
5765 *)
5766 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5767 cat >>confdefs.h <<_ACEOF
5768 #define $n 1
5769 _ACEOF
5770
5771 ;;
5772 esac
5773 done
5774
5775 # VxWorks doesn't provide any of the variables in $vars, so we
5776 # don't have to check them here.
5777
5778 # Of the functions in $checkfuncs, VxWorks only has strerror.
5779 cat >>confdefs.h <<\_ACEOF
5780 #define HAVE_STRERROR 1
5781 _ACEOF
5782
5783
5784 setobjs=yes
5785 ;;
5786
5787 esac
5788 fi
5789
5790 if test -z "${setobjs}"; then
5791
5792 case "${host}" in
5793
5794 *-*-cygwin*)
5795 # The Cygwin library actually uses a couple of files from
5796 # libiberty when it is built. If we are building a native
5797 # Cygwin, and we run the tests, we will appear to have these
5798 # files. However, when we go on to build winsup, we will wind up
5799 # with a library which does not have the files, since they should
5800 # have come from libiberty.
5801
5802 # We handle this by removing the functions the winsup library
5803 # provides from our shell variables, so that they appear to be
5804 # missing.
5805
5806 # DJ - only if we're *building* cygwin, not just building *with* cygwin
5807
5808 if test -n "${with_target_subdir}"
5809 then
5810 funcs="`echo $funcs | sed -e 's/random//'`"
5811 case $LIBOBJS in
5812 "random.$ac_objext" | \
5813 *" random.$ac_objext" | \
5814 "random.$ac_objext "* | \
5815 *" random.$ac_objext "* ) ;;
5816 *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
5817 esac
5818
5819 vars="`echo $vars | sed -e 's/sys_siglist//'`"
5820 checkfuncs="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`"
5821 fi
5822 ;;
5823
5824 *-*-mingw32*)
5825 # Under mingw32, sys_nerr and sys_errlist exist, but they are
5826 # macros, so the test below won't find them.
5827 libiberty_cv_var_sys_nerr=yes
5828 libiberty_cv_var_sys_errlist=yes
5829 ;;
5830
5831 *-*-msdosdjgpp*)
5832 # vfork and fork are stubs.
5833 ac_cv_func_vfork_works=no
5834 ;;
5835
5836 *-*-uwin*)
5837 # Under some versions of uwin, vfork is notoriously buggy and the test
5838 # can hang configure; on other versions, vfork exists just as a stub.
5839 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
5840 ac_cv_func_vfork_works=no
5841 # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are
5842 # macros (actually, these are imported from a DLL, but the end effect
5843 # is the same), so the test below won't find them.
5844 libiberty_cv_var_sys_nerr=yes
5845 libiberty_cv_var_sys_errlist=yes
5846 ;;
5847
5848 *-*-*vms*)
5849 # Under VMS, vfork works very different than on Unix. The standard test
5850 # won't work, and it isn't easily adaptable. It makes more sense to
5851 # just force it.
5852 ac_cv_func_vfork_works=yes
5853 ;;
5854
5855 esac
5856
5857 # We haven't set the list of objects yet. Use the standard autoconf
5858 # tests. This will only work if the compiler works.
5859 echo "$as_me:$LINENO: checking for library containing strerror" >&5
5860 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
5861 if test "${ac_cv_search_strerror+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
5863 else
5864 ac_func_search_save_LIBS=$LIBS
5865 ac_cv_search_strerror=no
5866 if test x$gcc_no_link = xyes; then
5867 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5868 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5869 { (exit 1); exit 1; }; }
5870 fi
5871 cat >conftest.$ac_ext <<_ACEOF
5872 /* confdefs.h. */
5873 _ACEOF
5874 cat confdefs.h >>conftest.$ac_ext
5875 cat >>conftest.$ac_ext <<_ACEOF
5876 /* end confdefs.h. */
5877
5878 /* Override any gcc2 internal prototype to avoid an error. */
5879 #ifdef __cplusplus
5880 extern "C"
5881 #endif
5882 /* We use char because int might match the return type of a gcc2
5883 builtin and then its argument prototype would still apply. */
5884 char strerror ();
5885 int
5886 main ()
5887 {
5888 strerror ();
5889 ;
5890 return 0;
5891 }
5892 _ACEOF
5893 rm -f conftest.$ac_objext conftest$ac_exeext
5894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5895 (eval $ac_link) 2>conftest.er1
5896 ac_status=$?
5897 grep -v '^ *+' conftest.er1 >conftest.err
5898 rm -f conftest.er1
5899 cat conftest.err >&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); } &&
5902 { ac_try='test -z "$ac_c_werror_flag"
5903 || test ! -s conftest.err'
5904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5905 (eval $ac_try) 2>&5
5906 ac_status=$?
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); }; } &&
5909 { ac_try='test -s conftest$ac_exeext'
5910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5911 (eval $ac_try) 2>&5
5912 ac_status=$?
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); }; }; then
5915 ac_cv_search_strerror="none required"
5916 else
5917 echo "$as_me: failed program was:" >&5
5918 sed 's/^/| /' conftest.$ac_ext >&5
5919
5920 fi
5921 rm -f conftest.err conftest.$ac_objext \
5922 conftest$ac_exeext conftest.$ac_ext
5923 if test "$ac_cv_search_strerror" = no; then
5924 for ac_lib in cposix; do
5925 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5926 if test x$gcc_no_link = xyes; then
5927 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5928 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5929 { (exit 1); exit 1; }; }
5930 fi
5931 cat >conftest.$ac_ext <<_ACEOF
5932 /* confdefs.h. */
5933 _ACEOF
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h. */
5937
5938 /* Override any gcc2 internal prototype to avoid an error. */
5939 #ifdef __cplusplus
5940 extern "C"
5941 #endif
5942 /* We use char because int might match the return type of a gcc2
5943 builtin and then its argument prototype would still apply. */
5944 char strerror ();
5945 int
5946 main ()
5947 {
5948 strerror ();
5949 ;
5950 return 0;
5951 }
5952 _ACEOF
5953 rm -f conftest.$ac_objext conftest$ac_exeext
5954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5955 (eval $ac_link) 2>conftest.er1
5956 ac_status=$?
5957 grep -v '^ *+' conftest.er1 >conftest.err
5958 rm -f conftest.er1
5959 cat conftest.err >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } &&
5962 { ac_try='test -z "$ac_c_werror_flag"
5963 || test ! -s conftest.err'
5964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965 (eval $ac_try) 2>&5
5966 ac_status=$?
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; } &&
5969 { ac_try='test -s conftest$ac_exeext'
5970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5971 (eval $ac_try) 2>&5
5972 ac_status=$?
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); }; }; then
5975 ac_cv_search_strerror="-l$ac_lib"
5976 break
5977 else
5978 echo "$as_me: failed program was:" >&5
5979 sed 's/^/| /' conftest.$ac_ext >&5
5980
5981 fi
5982 rm -f conftest.err conftest.$ac_objext \
5983 conftest$ac_exeext conftest.$ac_ext
5984 done
5985 fi
5986 LIBS=$ac_func_search_save_LIBS
5987 fi
5988 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5989 echo "${ECHO_T}$ac_cv_search_strerror" >&6
5990 if test "$ac_cv_search_strerror" != no; then
5991 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5992
5993 fi
5994
5995
5996 for ac_func in $funcs
5997 do
5998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5999 echo "$as_me:$LINENO: checking for $ac_func" >&5
6000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6001 if eval "test \"\${$as_ac_var+set}\" = set"; then
6002 echo $ECHO_N "(cached) $ECHO_C" >&6
6003 else
6004 if test x$gcc_no_link = xyes; then
6005 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6006 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6007 { (exit 1); exit 1; }; }
6008 fi
6009 cat >conftest.$ac_ext <<_ACEOF
6010 /* confdefs.h. */
6011 _ACEOF
6012 cat confdefs.h >>conftest.$ac_ext
6013 cat >>conftest.$ac_ext <<_ACEOF
6014 /* end confdefs.h. */
6015 /* System header to define __stub macros and hopefully few prototypes,
6016 which can conflict with char $ac_func (); below.
6017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6018 <limits.h> exists even on freestanding compilers. Under hpux,
6019 including <limits.h> includes <sys/time.h> and causes problems
6020 checking for functions defined therein. */
6021 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6022 # include <limits.h>
6023 #else
6024 # include <assert.h>
6025 #endif
6026 /* Override any gcc2 internal prototype to avoid an error. */
6027 #ifdef __cplusplus
6028 extern "C"
6029 {
6030 #endif
6031 /* We use char because int might match the return type of a gcc2
6032 builtin and then its argument prototype would still apply. */
6033 char $ac_func ();
6034 /* The GNU C library defines this for functions which it implements
6035 to always fail with ENOSYS. Some functions are actually named
6036 something starting with __ and the normal name is an alias. */
6037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6038 choke me
6039 #else
6040 char (*f) () = $ac_func;
6041 #endif
6042 #ifdef __cplusplus
6043 }
6044 #endif
6045
6046 int
6047 main ()
6048 {
6049 return f != $ac_func;
6050 ;
6051 return 0;
6052 }
6053 _ACEOF
6054 rm -f conftest.$ac_objext conftest$ac_exeext
6055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6056 (eval $ac_link) 2>conftest.er1
6057 ac_status=$?
6058 grep -v '^ *+' conftest.er1 >conftest.err
6059 rm -f conftest.er1
6060 cat conftest.err >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); } &&
6063 { ac_try='test -z "$ac_c_werror_flag"
6064 || test ! -s conftest.err'
6065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066 (eval $ac_try) 2>&5
6067 ac_status=$?
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); }; } &&
6070 { ac_try='test -s conftest$ac_exeext'
6071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072 (eval $ac_try) 2>&5
6073 ac_status=$?
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); }; }; then
6076 eval "$as_ac_var=yes"
6077 else
6078 echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.$ac_ext >&5
6080
6081 eval "$as_ac_var=no"
6082 fi
6083 rm -f conftest.err conftest.$ac_objext \
6084 conftest$ac_exeext conftest.$ac_ext
6085 fi
6086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6087 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6088 if test `eval echo '${'$as_ac_var'}'` = yes; then
6089 cat >>confdefs.h <<_ACEOF
6090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6091 _ACEOF
6092
6093 else
6094 case $LIBOBJS in
6095 "$ac_func.$ac_objext" | \
6096 *" $ac_func.$ac_objext" | \
6097 "$ac_func.$ac_objext "* | \
6098 *" $ac_func.$ac_objext "* ) ;;
6099 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6100 esac
6101
6102 fi
6103 done
6104
6105
6106 echo "$as_me:$LINENO: checking whether alloca needs Cray hooks" >&5
6107 echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" >&6
6108 if test "${ac_cv_os_cray+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111 cat >conftest.$ac_ext <<_ACEOF
6112 /* confdefs.h. */
6113 _ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h. */
6117 #if defined(CRAY) && ! defined(CRAY2)
6118 webecray
6119 #else
6120 wenotbecray
6121 #endif
6122
6123 _ACEOF
6124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6125 $EGREP "webecray" >/dev/null 2>&1; then
6126 ac_cv_os_cray=yes
6127 else
6128 ac_cv_os_cray=no
6129 fi
6130 rm -f conftest*
6131
6132 fi
6133 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6134 echo "${ECHO_T}$ac_cv_os_cray" >&6
6135 if test $ac_cv_os_cray = yes; then
6136 for ac_func in _getb67 GETB67 getb67; do
6137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6138 echo "$as_me:$LINENO: checking for $ac_func" >&5
6139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6140 if eval "test \"\${$as_ac_var+set}\" = set"; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143 if test x$gcc_no_link = xyes; then
6144 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6145 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6146 { (exit 1); exit 1; }; }
6147 fi
6148 cat >conftest.$ac_ext <<_ACEOF
6149 /* confdefs.h. */
6150 _ACEOF
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h. */
6154 /* System header to define __stub macros and hopefully few prototypes,
6155 which can conflict with char $ac_func (); below.
6156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6157 <limits.h> exists even on freestanding compilers. Under hpux,
6158 including <limits.h> includes <sys/time.h> and causes problems
6159 checking for functions defined therein. */
6160 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6161 # include <limits.h>
6162 #else
6163 # include <assert.h>
6164 #endif
6165 /* Override any gcc2 internal prototype to avoid an error. */
6166 #ifdef __cplusplus
6167 extern "C"
6168 {
6169 #endif
6170 /* We use char because int might match the return type of a gcc2
6171 builtin and then its argument prototype would still apply. */
6172 char $ac_func ();
6173 /* The GNU C library defines this for functions which it implements
6174 to always fail with ENOSYS. Some functions are actually named
6175 something starting with __ and the normal name is an alias. */
6176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6177 choke me
6178 #else
6179 char (*f) () = $ac_func;
6180 #endif
6181 #ifdef __cplusplus
6182 }
6183 #endif
6184
6185 int
6186 main ()
6187 {
6188 return f != $ac_func;
6189 ;
6190 return 0;
6191 }
6192 _ACEOF
6193 rm -f conftest.$ac_objext conftest$ac_exeext
6194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6195 (eval $ac_link) 2>conftest.er1
6196 ac_status=$?
6197 grep -v '^ *+' conftest.er1 >conftest.err
6198 rm -f conftest.er1
6199 cat conftest.err >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } &&
6202 { ac_try='test -z "$ac_c_werror_flag"
6203 || test ! -s conftest.err'
6204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205 (eval $ac_try) 2>&5
6206 ac_status=$?
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); }; } &&
6209 { ac_try='test -s conftest$ac_exeext'
6210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6211 (eval $ac_try) 2>&5
6212 ac_status=$?
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); }; }; then
6215 eval "$as_ac_var=yes"
6216 else
6217 echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.$ac_ext >&5
6219
6220 eval "$as_ac_var=no"
6221 fi
6222 rm -f conftest.err conftest.$ac_objext \
6223 conftest$ac_exeext conftest.$ac_ext
6224 fi
6225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6226 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6227 if test `eval echo '${'$as_ac_var'}'` = yes; then
6228
6229 cat >>confdefs.h <<_ACEOF
6230 #define CRAY_STACKSEG_END $ac_func
6231 _ACEOF
6232 break
6233 fi
6234
6235 done
6236 fi
6237
6238 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6239 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6240 if test "${ac_cv_c_stack_direction+set}" = set; then
6241 echo $ECHO_N "(cached) $ECHO_C" >&6
6242 else
6243 if test "$cross_compiling" = yes; then
6244 ac_cv_c_stack_direction=0
6245 else
6246 cat >conftest.$ac_ext <<_ACEOF
6247 /* confdefs.h. */
6248 _ACEOF
6249 cat confdefs.h >>conftest.$ac_ext
6250 cat >>conftest.$ac_ext <<_ACEOF
6251 /* end confdefs.h. */
6252 find_stack_direction ()
6253 {
6254 static char *addr = 0;
6255 auto char dummy;
6256 if (addr == 0)
6257 {
6258 addr = &dummy;
6259 return find_stack_direction ();
6260 }
6261 else
6262 return (&dummy > addr) ? 1 : -1;
6263 }
6264 main ()
6265 {
6266 exit (find_stack_direction() < 0);
6267 }
6268 _ACEOF
6269 rm -f conftest$ac_exeext
6270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6271 (eval $ac_link) 2>&5
6272 ac_status=$?
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276 (eval $ac_try) 2>&5
6277 ac_status=$?
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; }; then
6280 ac_cv_c_stack_direction=1
6281 else
6282 echo "$as_me: program exited with status $ac_status" >&5
6283 echo "$as_me: failed program was:" >&5
6284 sed 's/^/| /' conftest.$ac_ext >&5
6285
6286 ( exit $ac_status )
6287 ac_cv_c_stack_direction=-1
6288 fi
6289 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6290 fi
6291 fi
6292 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6293 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6294
6295 cat >>confdefs.h <<_ACEOF
6296 #define STACK_DIRECTION $ac_cv_c_stack_direction
6297 _ACEOF
6298
6299
6300
6301
6302 for ac_header in unistd.h vfork.h
6303 do
6304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6305 echo "$as_me:$LINENO: checking for $ac_header" >&5
6306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
6309 else
6310 cat >conftest.$ac_ext <<_ACEOF
6311 /* confdefs.h. */
6312 _ACEOF
6313 cat confdefs.h >>conftest.$ac_ext
6314 cat >>conftest.$ac_ext <<_ACEOF
6315 /* end confdefs.h. */
6316 #include <$ac_header>
6317 _ACEOF
6318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6320 ac_status=$?
6321 grep -v '^ *+' conftest.er1 >conftest.err
6322 rm -f conftest.er1
6323 cat conftest.err >&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } >/dev/null; then
6326 if test -s conftest.err; then
6327 ac_cpp_err=$ac_c_preproc_warn_flag
6328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6329 else
6330 ac_cpp_err=
6331 fi
6332 else
6333 ac_cpp_err=yes
6334 fi
6335 if test -z "$ac_cpp_err"; then
6336 eval "$as_ac_Header=yes"
6337 else
6338 echo "$as_me: failed program was:" >&5
6339 sed 's/^/| /' conftest.$ac_ext >&5
6340
6341 eval "$as_ac_Header=no"
6342 fi
6343 rm -f conftest.err conftest.$ac_ext
6344 fi
6345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6348 cat >>confdefs.h <<_ACEOF
6349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6350 _ACEOF
6351
6352 fi
6353 done
6354
6355
6356
6357 for ac_func in fork vfork
6358 do
6359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6360 echo "$as_me:$LINENO: checking for $ac_func" >&5
6361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6362 if eval "test \"\${$as_ac_var+set}\" = set"; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6364 else
6365 if test x$gcc_no_link = xyes; then
6366 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6367 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6368 { (exit 1); exit 1; }; }
6369 fi
6370 cat >conftest.$ac_ext <<_ACEOF
6371 /* confdefs.h. */
6372 _ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6376 /* System header to define __stub macros and hopefully few prototypes,
6377 which can conflict with char $ac_func (); below.
6378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6379 <limits.h> exists even on freestanding compilers. Under hpux,
6380 including <limits.h> includes <sys/time.h> and causes problems
6381 checking for functions defined therein. */
6382 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6383 # include <limits.h>
6384 #else
6385 # include <assert.h>
6386 #endif
6387 /* Override any gcc2 internal prototype to avoid an error. */
6388 #ifdef __cplusplus
6389 extern "C"
6390 {
6391 #endif
6392 /* We use char because int might match the return type of a gcc2
6393 builtin and then its argument prototype would still apply. */
6394 char $ac_func ();
6395 /* The GNU C library defines this for functions which it implements
6396 to always fail with ENOSYS. Some functions are actually named
6397 something starting with __ and the normal name is an alias. */
6398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6399 choke me
6400 #else
6401 char (*f) () = $ac_func;
6402 #endif
6403 #ifdef __cplusplus
6404 }
6405 #endif
6406
6407 int
6408 main ()
6409 {
6410 return f != $ac_func;
6411 ;
6412 return 0;
6413 }
6414 _ACEOF
6415 rm -f conftest.$ac_objext conftest$ac_exeext
6416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6417 (eval $ac_link) 2>conftest.er1
6418 ac_status=$?
6419 grep -v '^ *+' conftest.er1 >conftest.err
6420 rm -f conftest.er1
6421 cat conftest.err >&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); } &&
6424 { ac_try='test -z "$ac_c_werror_flag"
6425 || test ! -s conftest.err'
6426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427 (eval $ac_try) 2>&5
6428 ac_status=$?
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; } &&
6431 { ac_try='test -s conftest$ac_exeext'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433 (eval $ac_try) 2>&5
6434 ac_status=$?
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; }; then
6437 eval "$as_ac_var=yes"
6438 else
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6441
6442 eval "$as_ac_var=no"
6443 fi
6444 rm -f conftest.err conftest.$ac_objext \
6445 conftest$ac_exeext conftest.$ac_ext
6446 fi
6447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6449 if test `eval echo '${'$as_ac_var'}'` = yes; then
6450 cat >>confdefs.h <<_ACEOF
6451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6452 _ACEOF
6453
6454 fi
6455 done
6456
6457 if test "x$ac_cv_func_fork" = xyes; then
6458 echo "$as_me:$LINENO: checking for working fork" >&5
6459 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
6460 if test "${ac_cv_func_fork_works+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 else
6463 if test "$cross_compiling" = yes; then
6464 ac_cv_func_fork_works=cross
6465 else
6466 cat >conftest.$ac_ext <<_ACEOF
6467 /* By Ruediger Kuhlmann. */
6468 #include <sys/types.h>
6469 #if HAVE_UNISTD_H
6470 # include <unistd.h>
6471 #endif
6472 /* Some systems only have a dummy stub for fork() */
6473 int main ()
6474 {
6475 if (fork() < 0)
6476 exit (1);
6477 exit (0);
6478 }
6479 _ACEOF
6480 rm -f conftest$ac_exeext
6481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6482 (eval $ac_link) 2>&5
6483 ac_status=$?
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6487 (eval $ac_try) 2>&5
6488 ac_status=$?
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); }; }; then
6491 ac_cv_func_fork_works=yes
6492 else
6493 echo "$as_me: program exited with status $ac_status" >&5
6494 echo "$as_me: failed program was:" >&5
6495 sed 's/^/| /' conftest.$ac_ext >&5
6496
6497 ( exit $ac_status )
6498 ac_cv_func_fork_works=no
6499 fi
6500 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6501 fi
6502 fi
6503 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6504 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
6505
6506 else
6507 ac_cv_func_fork_works=$ac_cv_func_fork
6508 fi
6509 if test "x$ac_cv_func_fork_works" = xcross; then
6510 case $host in
6511 *-*-amigaos* | *-*-msdosdjgpp*)
6512 # Override, as these systems have only a dummy fork() stub
6513 ac_cv_func_fork_works=no
6514 ;;
6515 *)
6516 ac_cv_func_fork_works=yes
6517 ;;
6518 esac
6519 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6520 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6521 fi
6522 ac_cv_func_vfork_works=$ac_cv_func_vfork
6523 if test "x$ac_cv_func_vfork" = xyes; then
6524 echo "$as_me:$LINENO: checking for working vfork" >&5
6525 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
6526 if test "${ac_cv_func_vfork_works+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6528 else
6529 if test "$cross_compiling" = yes; then
6530 ac_cv_func_vfork_works=cross
6531 else
6532 cat >conftest.$ac_ext <<_ACEOF
6533 /* confdefs.h. */
6534 _ACEOF
6535 cat confdefs.h >>conftest.$ac_ext
6536 cat >>conftest.$ac_ext <<_ACEOF
6537 /* end confdefs.h. */
6538 /* Thanks to Paul Eggert for this test. */
6539 #include <stdio.h>
6540 #include <stdlib.h>
6541 #include <sys/types.h>
6542 #include <sys/stat.h>
6543 #include <sys/wait.h>
6544 #if HAVE_UNISTD_H
6545 # include <unistd.h>
6546 #endif
6547 #if HAVE_VFORK_H
6548 # include <vfork.h>
6549 #endif
6550 /* On some sparc systems, changes by the child to local and incoming
6551 argument registers are propagated back to the parent. The compiler
6552 is told about this with #include <vfork.h>, but some compilers
6553 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6554 static variable whose address is put into a register that is
6555 clobbered by the vfork. */
6556 static void
6557 #ifdef __cplusplus
6558 sparc_address_test (int arg)
6559 # else
6560 sparc_address_test (arg) int arg;
6561 #endif
6562 {
6563 static pid_t child;
6564 if (!child) {
6565 child = vfork ();
6566 if (child < 0) {
6567 perror ("vfork");
6568 _exit(2);
6569 }
6570 if (!child) {
6571 arg = getpid();
6572 write(-1, "", 0);
6573 _exit (arg);
6574 }
6575 }
6576 }
6577
6578 int
6579 main ()
6580 {
6581 pid_t parent = getpid ();
6582 pid_t child;
6583
6584 sparc_address_test (0);
6585
6586 child = vfork ();
6587
6588 if (child == 0) {
6589 /* Here is another test for sparc vfork register problems. This
6590 test uses lots of local variables, at least as many local
6591 variables as main has allocated so far including compiler
6592 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6593 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6594 reuse the register of parent for one of the local variables,
6595 since it will think that parent can't possibly be used any more
6596 in this routine. Assigning to the local variable will thus
6597 munge parent in the parent process. */
6598 pid_t
6599 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6600 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6601 /* Convince the compiler that p..p7 are live; otherwise, it might
6602 use the same hardware register for all 8 local variables. */
6603 if (p != p1 || p != p2 || p != p3 || p != p4
6604 || p != p5 || p != p6 || p != p7)
6605 _exit(1);
6606
6607 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6608 from child file descriptors. If the child closes a descriptor
6609 before it execs or exits, this munges the parent's descriptor
6610 as well. Test for this by closing stdout in the child. */
6611 _exit(close(fileno(stdout)) != 0);
6612 } else {
6613 int status;
6614 struct stat st;
6615
6616 while (wait(&status) != child)
6617 ;
6618 exit(
6619 /* Was there some problem with vforking? */
6620 child < 0
6621
6622 /* Did the child fail? (This shouldn't happen.) */
6623 || status
6624
6625 /* Did the vfork/compiler bug occur? */
6626 || parent != getpid()
6627
6628 /* Did the file descriptor bug occur? */
6629 || fstat(fileno(stdout), &st) != 0
6630 );
6631 }
6632 }
6633 _ACEOF
6634 rm -f conftest$ac_exeext
6635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6636 (eval $ac_link) 2>&5
6637 ac_status=$?
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); } && { ac_try='./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 ac_cv_func_vfork_works=yes
6646 else
6647 echo "$as_me: program exited with status $ac_status" >&5
6648 echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.$ac_ext >&5
6650
6651 ( exit $ac_status )
6652 ac_cv_func_vfork_works=no
6653 fi
6654 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6655 fi
6656 fi
6657 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
6658 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
6659
6660 fi;
6661 if test "x$ac_cv_func_fork_works" = xcross; then
6662 ac_cv_func_vfork_works=$ac_cv_func_vfork
6663 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6664 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6665 fi
6666
6667 if test "x$ac_cv_func_vfork_works" = xyes; then
6668
6669 cat >>confdefs.h <<\_ACEOF
6670 #define HAVE_WORKING_VFORK 1
6671 _ACEOF
6672
6673 else
6674
6675 cat >>confdefs.h <<\_ACEOF
6676 #define vfork fork
6677 _ACEOF
6678
6679 fi
6680 if test "x$ac_cv_func_fork_works" = xyes; then
6681
6682 cat >>confdefs.h <<\_ACEOF
6683 #define HAVE_WORKING_FORK 1
6684 _ACEOF
6685
6686 fi
6687
6688 if test $ac_cv_func_vfork_works = no; then
6689 case $LIBOBJS in
6690 "vfork.$ac_objext" | \
6691 *" vfork.$ac_objext" | \
6692 "vfork.$ac_objext "* | \
6693 *" vfork.$ac_objext "* ) ;;
6694 *) LIBOBJS="$LIBOBJS vfork.$ac_objext" ;;
6695 esac
6696
6697 fi
6698 # We only need _doprnt if we might use it to implement v*printf.
6699 if test $ac_cv_func_vprintf != yes \
6700 || test $ac_cv_func_vfprintf != yes \
6701 || test $ac_cv_func_vsprintf != yes; then
6702
6703 for ac_func in _doprnt
6704 do
6705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6706 echo "$as_me:$LINENO: checking for $ac_func" >&5
6707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6708 if eval "test \"\${$as_ac_var+set}\" = set"; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6710 else
6711 if test x$gcc_no_link = xyes; then
6712 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6713 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6714 { (exit 1); exit 1; }; }
6715 fi
6716 cat >conftest.$ac_ext <<_ACEOF
6717 /* confdefs.h. */
6718 _ACEOF
6719 cat confdefs.h >>conftest.$ac_ext
6720 cat >>conftest.$ac_ext <<_ACEOF
6721 /* end confdefs.h. */
6722 /* System header to define __stub macros and hopefully few prototypes,
6723 which can conflict with char $ac_func (); below.
6724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6725 <limits.h> exists even on freestanding compilers. Under hpux,
6726 including <limits.h> includes <sys/time.h> and causes problems
6727 checking for functions defined therein. */
6728 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6729 # include <limits.h>
6730 #else
6731 # include <assert.h>
6732 #endif
6733 /* Override any gcc2 internal prototype to avoid an error. */
6734 #ifdef __cplusplus
6735 extern "C"
6736 {
6737 #endif
6738 /* We use char because int might match the return type of a gcc2
6739 builtin and then its argument prototype would still apply. */
6740 char $ac_func ();
6741 /* The GNU C library defines this for functions which it implements
6742 to always fail with ENOSYS. Some functions are actually named
6743 something starting with __ and the normal name is an alias. */
6744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6745 choke me
6746 #else
6747 char (*f) () = $ac_func;
6748 #endif
6749 #ifdef __cplusplus
6750 }
6751 #endif
6752
6753 int
6754 main ()
6755 {
6756 return f != $ac_func;
6757 ;
6758 return 0;
6759 }
6760 _ACEOF
6761 rm -f conftest.$ac_objext conftest$ac_exeext
6762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6763 (eval $ac_link) 2>conftest.er1
6764 ac_status=$?
6765 grep -v '^ *+' conftest.er1 >conftest.err
6766 rm -f conftest.er1
6767 cat conftest.err >&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); } &&
6770 { ac_try='test -z "$ac_c_werror_flag"
6771 || test ! -s conftest.err'
6772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6773 (eval $ac_try) 2>&5
6774 ac_status=$?
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); }; } &&
6777 { ac_try='test -s conftest$ac_exeext'
6778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779 (eval $ac_try) 2>&5
6780 ac_status=$?
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); }; }; then
6783 eval "$as_ac_var=yes"
6784 else
6785 echo "$as_me: failed program was:" >&5
6786 sed 's/^/| /' conftest.$ac_ext >&5
6787
6788 eval "$as_ac_var=no"
6789 fi
6790 rm -f conftest.err conftest.$ac_objext \
6791 conftest$ac_exeext conftest.$ac_ext
6792 fi
6793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6794 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6795 if test `eval echo '${'$as_ac_var'}'` = yes; then
6796 cat >>confdefs.h <<_ACEOF
6797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6798 _ACEOF
6799
6800 else
6801 case $LIBOBJS in
6802 "$ac_func.$ac_objext" | \
6803 *" $ac_func.$ac_objext" | \
6804 "$ac_func.$ac_objext "* | \
6805 *" $ac_func.$ac_objext "* ) ;;
6806 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6807 esac
6808
6809 fi
6810 done
6811
6812
6813 else
6814
6815 for ac_func in _doprnt
6816 do
6817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6818 echo "$as_me:$LINENO: checking for $ac_func" >&5
6819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6820 if eval "test \"\${$as_ac_var+set}\" = set"; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823 if test x$gcc_no_link = xyes; then
6824 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6825 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6826 { (exit 1); exit 1; }; }
6827 fi
6828 cat >conftest.$ac_ext <<_ACEOF
6829 /* confdefs.h. */
6830 _ACEOF
6831 cat confdefs.h >>conftest.$ac_ext
6832 cat >>conftest.$ac_ext <<_ACEOF
6833 /* end confdefs.h. */
6834 /* System header to define __stub macros and hopefully few prototypes,
6835 which can conflict with char $ac_func (); below.
6836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6837 <limits.h> exists even on freestanding compilers. Under hpux,
6838 including <limits.h> includes <sys/time.h> and causes problems
6839 checking for functions defined therein. */
6840 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6841 # include <limits.h>
6842 #else
6843 # include <assert.h>
6844 #endif
6845 /* Override any gcc2 internal prototype to avoid an error. */
6846 #ifdef __cplusplus
6847 extern "C"
6848 {
6849 #endif
6850 /* We use char because int might match the return type of a gcc2
6851 builtin and then its argument prototype would still apply. */
6852 char $ac_func ();
6853 /* The GNU C library defines this for functions which it implements
6854 to always fail with ENOSYS. Some functions are actually named
6855 something starting with __ and the normal name is an alias. */
6856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6857 choke me
6858 #else
6859 char (*f) () = $ac_func;
6860 #endif
6861 #ifdef __cplusplus
6862 }
6863 #endif
6864
6865 int
6866 main ()
6867 {
6868 return f != $ac_func;
6869 ;
6870 return 0;
6871 }
6872 _ACEOF
6873 rm -f conftest.$ac_objext conftest$ac_exeext
6874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6875 (eval $ac_link) 2>conftest.er1
6876 ac_status=$?
6877 grep -v '^ *+' conftest.er1 >conftest.err
6878 rm -f conftest.er1
6879 cat conftest.err >&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); } &&
6882 { ac_try='test -z "$ac_c_werror_flag"
6883 || test ! -s conftest.err'
6884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885 (eval $ac_try) 2>&5
6886 ac_status=$?
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); }; } &&
6889 { ac_try='test -s conftest$ac_exeext'
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891 (eval $ac_try) 2>&5
6892 ac_status=$?
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; }; then
6895 eval "$as_ac_var=yes"
6896 else
6897 echo "$as_me: failed program was:" >&5
6898 sed 's/^/| /' conftest.$ac_ext >&5
6899
6900 eval "$as_ac_var=no"
6901 fi
6902 rm -f conftest.err conftest.$ac_objext \
6903 conftest$ac_exeext conftest.$ac_ext
6904 fi
6905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6906 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6907 if test `eval echo '${'$as_ac_var'}'` = yes; then
6908 cat >>confdefs.h <<_ACEOF
6909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6910 _ACEOF
6911
6912 fi
6913 done
6914
6915 fi
6916
6917 for v in $vars; do
6918 echo "$as_me:$LINENO: checking for $v" >&5
6919 echo $ECHO_N "checking for $v... $ECHO_C" >&6
6920 if eval "test \"\${libiberty_cv_var_$v+set}\" = set"; then
6921 echo $ECHO_N "(cached) $ECHO_C" >&6
6922 else
6923 if test x$gcc_no_link = xyes; then
6924 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6925 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6926 { (exit 1); exit 1; }; }
6927 fi
6928 cat >conftest.$ac_ext <<_ACEOF
6929 /* confdefs.h. */
6930 _ACEOF
6931 cat confdefs.h >>conftest.$ac_ext
6932 cat >>conftest.$ac_ext <<_ACEOF
6933 /* end confdefs.h. */
6934 int *p;
6935 int
6936 main ()
6937 {
6938 extern int $v []; p = $v;
6939 ;
6940 return 0;
6941 }
6942 _ACEOF
6943 rm -f conftest.$ac_objext conftest$ac_exeext
6944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6945 (eval $ac_link) 2>conftest.er1
6946 ac_status=$?
6947 grep -v '^ *+' conftest.er1 >conftest.err
6948 rm -f conftest.er1
6949 cat conftest.err >&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); } &&
6952 { ac_try='test -z "$ac_c_werror_flag"
6953 || test ! -s conftest.err'
6954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955 (eval $ac_try) 2>&5
6956 ac_status=$?
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); }; } &&
6959 { ac_try='test -s conftest$ac_exeext'
6960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961 (eval $ac_try) 2>&5
6962 ac_status=$?
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); }; }; then
6965 eval "libiberty_cv_var_$v=yes"
6966 else
6967 echo "$as_me: failed program was:" >&5
6968 sed 's/^/| /' conftest.$ac_ext >&5
6969
6970 eval "libiberty_cv_var_$v=no"
6971 fi
6972 rm -f conftest.err conftest.$ac_objext \
6973 conftest$ac_exeext conftest.$ac_ext
6974 fi
6975
6976 if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
6977 echo "$as_me:$LINENO: result: yes" >&5
6978 echo "${ECHO_T}yes" >&6
6979 n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6980 cat >>confdefs.h <<_ACEOF
6981 #define $n 1
6982 _ACEOF
6983
6984 else
6985 echo "$as_me:$LINENO: result: no" >&5
6986 echo "${ECHO_T}no" >&6
6987 fi
6988 done
6989
6990 # special check for _system_configuration because AIX <4.3.2 do not
6991 # contain the `physmem' member.
6992 echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
6993 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
6994 cat >conftest.$ac_ext <<_ACEOF
6995 /* confdefs.h. */
6996 _ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h. */
7000 #include <sys/systemcfg.h>
7001 int
7002 main ()
7003 {
7004 double x = _system_configuration.physmem;
7005 ;
7006 return 0;
7007 }
7008 _ACEOF
7009 rm -f conftest.$ac_objext
7010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7011 (eval $ac_compile) 2>conftest.er1
7012 ac_status=$?
7013 grep -v '^ *+' conftest.er1 >conftest.err
7014 rm -f conftest.er1
7015 cat conftest.err >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } &&
7018 { ac_try='test -z "$ac_c_werror_flag"
7019 || test ! -s conftest.err'
7020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021 (eval $ac_try) 2>&5
7022 ac_status=$?
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); }; } &&
7025 { ac_try='test -s conftest.$ac_objext'
7026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7027 (eval $ac_try) 2>&5
7028 ac_status=$?
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); }; }; then
7031 echo "$as_me:$LINENO: result: yes" >&5
7032 echo "${ECHO_T}yes" >&6
7033
7034 cat >>confdefs.h <<\_ACEOF
7035 #define HAVE__SYSTEM_CONFIGURATION 1
7036 _ACEOF
7037
7038 else
7039 echo "$as_me: failed program was:" >&5
7040 sed 's/^/| /' conftest.$ac_ext >&5
7041
7042 echo "$as_me:$LINENO: result: no" >&5
7043 echo "${ECHO_T}no" >&6
7044 fi
7045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7046
7047
7048 for ac_func in $checkfuncs
7049 do
7050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7051 echo "$as_me:$LINENO: checking for $ac_func" >&5
7052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7053 if eval "test \"\${$as_ac_var+set}\" = set"; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 else
7056 if test x$gcc_no_link = xyes; then
7057 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7058 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7059 { (exit 1); exit 1; }; }
7060 fi
7061 cat >conftest.$ac_ext <<_ACEOF
7062 /* confdefs.h. */
7063 _ACEOF
7064 cat confdefs.h >>conftest.$ac_ext
7065 cat >>conftest.$ac_ext <<_ACEOF
7066 /* end confdefs.h. */
7067 /* System header to define __stub macros and hopefully few prototypes,
7068 which can conflict with char $ac_func (); below.
7069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7070 <limits.h> exists even on freestanding compilers. Under hpux,
7071 including <limits.h> includes <sys/time.h> and causes problems
7072 checking for functions defined therein. */
7073 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7074 # include <limits.h>
7075 #else
7076 # include <assert.h>
7077 #endif
7078 /* Override any gcc2 internal prototype to avoid an error. */
7079 #ifdef __cplusplus
7080 extern "C"
7081 {
7082 #endif
7083 /* We use char because int might match the return type of a gcc2
7084 builtin and then its argument prototype would still apply. */
7085 char $ac_func ();
7086 /* The GNU C library defines this for functions which it implements
7087 to always fail with ENOSYS. Some functions are actually named
7088 something starting with __ and the normal name is an alias. */
7089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7090 choke me
7091 #else
7092 char (*f) () = $ac_func;
7093 #endif
7094 #ifdef __cplusplus
7095 }
7096 #endif
7097
7098 int
7099 main ()
7100 {
7101 return f != $ac_func;
7102 ;
7103 return 0;
7104 }
7105 _ACEOF
7106 rm -f conftest.$ac_objext conftest$ac_exeext
7107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7108 (eval $ac_link) 2>conftest.er1
7109 ac_status=$?
7110 grep -v '^ *+' conftest.er1 >conftest.err
7111 rm -f conftest.er1
7112 cat conftest.err >&5
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } &&
7115 { ac_try='test -z "$ac_c_werror_flag"
7116 || test ! -s conftest.err'
7117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7118 (eval $ac_try) 2>&5
7119 ac_status=$?
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); }; } &&
7122 { ac_try='test -s conftest$ac_exeext'
7123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124 (eval $ac_try) 2>&5
7125 ac_status=$?
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); }; }; then
7128 eval "$as_ac_var=yes"
7129 else
7130 echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7132
7133 eval "$as_ac_var=no"
7134 fi
7135 rm -f conftest.err conftest.$ac_objext \
7136 conftest$ac_exeext conftest.$ac_ext
7137 fi
7138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7140 if test `eval echo '${'$as_ac_var'}'` = yes; then
7141 cat >>confdefs.h <<_ACEOF
7142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7143 _ACEOF
7144
7145 fi
7146 done
7147
7148 echo "$as_me:$LINENO: checking whether basename is declared" >&5
7149 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
7150 if test "${ac_cv_have_decl_basename+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 else
7153 cat >conftest.$ac_ext <<_ACEOF
7154 /* confdefs.h. */
7155 _ACEOF
7156 cat confdefs.h >>conftest.$ac_ext
7157 cat >>conftest.$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7159 $ac_includes_default
7160 int
7161 main ()
7162 {
7163 #ifndef basename
7164 char *p = (char *) basename;
7165 #endif
7166
7167 ;
7168 return 0;
7169 }
7170 _ACEOF
7171 rm -f conftest.$ac_objext
7172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7173 (eval $ac_compile) 2>conftest.er1
7174 ac_status=$?
7175 grep -v '^ *+' conftest.er1 >conftest.err
7176 rm -f conftest.er1
7177 cat conftest.err >&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } &&
7180 { ac_try='test -z "$ac_c_werror_flag"
7181 || test ! -s conftest.err'
7182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183 (eval $ac_try) 2>&5
7184 ac_status=$?
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); }; } &&
7187 { ac_try='test -s conftest.$ac_objext'
7188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189 (eval $ac_try) 2>&5
7190 ac_status=$?
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }; }; then
7193 ac_cv_have_decl_basename=yes
7194 else
7195 echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.$ac_ext >&5
7197
7198 ac_cv_have_decl_basename=no
7199 fi
7200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7201 fi
7202 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
7203 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
7204 if test $ac_cv_have_decl_basename = yes; then
7205
7206 cat >>confdefs.h <<_ACEOF
7207 #define HAVE_DECL_BASENAME 1
7208 _ACEOF
7209
7210
7211 else
7212 cat >>confdefs.h <<_ACEOF
7213 #define HAVE_DECL_BASENAME 0
7214 _ACEOF
7215
7216
7217 fi
7218 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
7219 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
7220 if test "${ac_cv_have_decl_ffs+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 else
7223 cat >conftest.$ac_ext <<_ACEOF
7224 /* confdefs.h. */
7225 _ACEOF
7226 cat confdefs.h >>conftest.$ac_ext
7227 cat >>conftest.$ac_ext <<_ACEOF
7228 /* end confdefs.h. */
7229 $ac_includes_default
7230 int
7231 main ()
7232 {
7233 #ifndef ffs
7234 char *p = (char *) ffs;
7235 #endif
7236
7237 ;
7238 return 0;
7239 }
7240 _ACEOF
7241 rm -f conftest.$ac_objext
7242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7243 (eval $ac_compile) 2>conftest.er1
7244 ac_status=$?
7245 grep -v '^ *+' conftest.er1 >conftest.err
7246 rm -f conftest.er1
7247 cat conftest.err >&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); } &&
7250 { ac_try='test -z "$ac_c_werror_flag"
7251 || test ! -s conftest.err'
7252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253 (eval $ac_try) 2>&5
7254 ac_status=$?
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); }; } &&
7257 { ac_try='test -s conftest.$ac_objext'
7258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7259 (eval $ac_try) 2>&5
7260 ac_status=$?
7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); }; }; then
7263 ac_cv_have_decl_ffs=yes
7264 else
7265 echo "$as_me: failed program was:" >&5
7266 sed 's/^/| /' conftest.$ac_ext >&5
7267
7268 ac_cv_have_decl_ffs=no
7269 fi
7270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7271 fi
7272 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
7273 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
7274 if test $ac_cv_have_decl_ffs = yes; then
7275
7276 cat >>confdefs.h <<_ACEOF
7277 #define HAVE_DECL_FFS 1
7278 _ACEOF
7279
7280
7281 else
7282 cat >>confdefs.h <<_ACEOF
7283 #define HAVE_DECL_FFS 0
7284 _ACEOF
7285
7286
7287 fi
7288 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
7289 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
7290 if test "${ac_cv_have_decl_asprintf+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7292 else
7293 cat >conftest.$ac_ext <<_ACEOF
7294 /* confdefs.h. */
7295 _ACEOF
7296 cat confdefs.h >>conftest.$ac_ext
7297 cat >>conftest.$ac_ext <<_ACEOF
7298 /* end confdefs.h. */
7299 $ac_includes_default
7300 int
7301 main ()
7302 {
7303 #ifndef asprintf
7304 char *p = (char *) asprintf;
7305 #endif
7306
7307 ;
7308 return 0;
7309 }
7310 _ACEOF
7311 rm -f conftest.$ac_objext
7312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7313 (eval $ac_compile) 2>conftest.er1
7314 ac_status=$?
7315 grep -v '^ *+' conftest.er1 >conftest.err
7316 rm -f conftest.er1
7317 cat conftest.err >&5
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); } &&
7320 { ac_try='test -z "$ac_c_werror_flag"
7321 || test ! -s conftest.err'
7322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7323 (eval $ac_try) 2>&5
7324 ac_status=$?
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); }; } &&
7327 { ac_try='test -s conftest.$ac_objext'
7328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7329 (eval $ac_try) 2>&5
7330 ac_status=$?
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); }; }; then
7333 ac_cv_have_decl_asprintf=yes
7334 else
7335 echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7337
7338 ac_cv_have_decl_asprintf=no
7339 fi
7340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7341 fi
7342 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
7343 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
7344 if test $ac_cv_have_decl_asprintf = yes; then
7345
7346 cat >>confdefs.h <<_ACEOF
7347 #define HAVE_DECL_ASPRINTF 1
7348 _ACEOF
7349
7350
7351 else
7352 cat >>confdefs.h <<_ACEOF
7353 #define HAVE_DECL_ASPRINTF 0
7354 _ACEOF
7355
7356
7357 fi
7358 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
7359 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
7360 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7362 else
7363 cat >conftest.$ac_ext <<_ACEOF
7364 /* confdefs.h. */
7365 _ACEOF
7366 cat confdefs.h >>conftest.$ac_ext
7367 cat >>conftest.$ac_ext <<_ACEOF
7368 /* end confdefs.h. */
7369 $ac_includes_default
7370 int
7371 main ()
7372 {
7373 #ifndef vasprintf
7374 char *p = (char *) vasprintf;
7375 #endif
7376
7377 ;
7378 return 0;
7379 }
7380 _ACEOF
7381 rm -f conftest.$ac_objext
7382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7383 (eval $ac_compile) 2>conftest.er1
7384 ac_status=$?
7385 grep -v '^ *+' conftest.er1 >conftest.err
7386 rm -f conftest.er1
7387 cat conftest.err >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } &&
7390 { ac_try='test -z "$ac_c_werror_flag"
7391 || test ! -s conftest.err'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393 (eval $ac_try) 2>&5
7394 ac_status=$?
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; } &&
7397 { ac_try='test -s conftest.$ac_objext'
7398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399 (eval $ac_try) 2>&5
7400 ac_status=$?
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); }; }; then
7403 ac_cv_have_decl_vasprintf=yes
7404 else
7405 echo "$as_me: failed program was:" >&5
7406 sed 's/^/| /' conftest.$ac_ext >&5
7407
7408 ac_cv_have_decl_vasprintf=no
7409 fi
7410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7411 fi
7412 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
7413 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
7414 if test $ac_cv_have_decl_vasprintf = yes; then
7415
7416 cat >>confdefs.h <<_ACEOF
7417 #define HAVE_DECL_VASPRINTF 1
7418 _ACEOF
7419
7420
7421 else
7422 cat >>confdefs.h <<_ACEOF
7423 #define HAVE_DECL_VASPRINTF 0
7424 _ACEOF
7425
7426
7427 fi
7428 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
7429 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
7430 if test "${ac_cv_have_decl_snprintf+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 else
7433 cat >conftest.$ac_ext <<_ACEOF
7434 /* confdefs.h. */
7435 _ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h. */
7439 $ac_includes_default
7440 int
7441 main ()
7442 {
7443 #ifndef snprintf
7444 char *p = (char *) snprintf;
7445 #endif
7446
7447 ;
7448 return 0;
7449 }
7450 _ACEOF
7451 rm -f conftest.$ac_objext
7452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7453 (eval $ac_compile) 2>conftest.er1
7454 ac_status=$?
7455 grep -v '^ *+' conftest.er1 >conftest.err
7456 rm -f conftest.er1
7457 cat conftest.err >&5
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); } &&
7460 { ac_try='test -z "$ac_c_werror_flag"
7461 || test ! -s conftest.err'
7462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7463 (eval $ac_try) 2>&5
7464 ac_status=$?
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); }; } &&
7467 { ac_try='test -s conftest.$ac_objext'
7468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7469 (eval $ac_try) 2>&5
7470 ac_status=$?
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); }; }; then
7473 ac_cv_have_decl_snprintf=yes
7474 else
7475 echo "$as_me: failed program was:" >&5
7476 sed 's/^/| /' conftest.$ac_ext >&5
7477
7478 ac_cv_have_decl_snprintf=no
7479 fi
7480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7481 fi
7482 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
7483 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
7484 if test $ac_cv_have_decl_snprintf = yes; then
7485
7486 cat >>confdefs.h <<_ACEOF
7487 #define HAVE_DECL_SNPRINTF 1
7488 _ACEOF
7489
7490
7491 else
7492 cat >>confdefs.h <<_ACEOF
7493 #define HAVE_DECL_SNPRINTF 0
7494 _ACEOF
7495
7496
7497 fi
7498 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
7499 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
7500 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 else
7503 cat >conftest.$ac_ext <<_ACEOF
7504 /* confdefs.h. */
7505 _ACEOF
7506 cat confdefs.h >>conftest.$ac_ext
7507 cat >>conftest.$ac_ext <<_ACEOF
7508 /* end confdefs.h. */
7509 $ac_includes_default
7510 int
7511 main ()
7512 {
7513 #ifndef vsnprintf
7514 char *p = (char *) vsnprintf;
7515 #endif
7516
7517 ;
7518 return 0;
7519 }
7520 _ACEOF
7521 rm -f conftest.$ac_objext
7522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7523 (eval $ac_compile) 2>conftest.er1
7524 ac_status=$?
7525 grep -v '^ *+' conftest.er1 >conftest.err
7526 rm -f conftest.er1
7527 cat conftest.err >&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); } &&
7530 { ac_try='test -z "$ac_c_werror_flag"
7531 || test ! -s conftest.err'
7532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533 (eval $ac_try) 2>&5
7534 ac_status=$?
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); }; } &&
7537 { ac_try='test -s conftest.$ac_objext'
7538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539 (eval $ac_try) 2>&5
7540 ac_status=$?
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; }; then
7543 ac_cv_have_decl_vsnprintf=yes
7544 else
7545 echo "$as_me: failed program was:" >&5
7546 sed 's/^/| /' conftest.$ac_ext >&5
7547
7548 ac_cv_have_decl_vsnprintf=no
7549 fi
7550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7551 fi
7552 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
7553 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
7554 if test $ac_cv_have_decl_vsnprintf = yes; then
7555
7556 cat >>confdefs.h <<_ACEOF
7557 #define HAVE_DECL_VSNPRINTF 1
7558 _ACEOF
7559
7560
7561 else
7562 cat >>confdefs.h <<_ACEOF
7563 #define HAVE_DECL_VSNPRINTF 0
7564 _ACEOF
7565
7566
7567 fi
7568
7569
7570 echo "$as_me:$LINENO: checking whether calloc is declared" >&5
7571 echo $ECHO_N "checking whether calloc is declared... $ECHO_C" >&6
7572 if test "${ac_cv_have_decl_calloc+set}" = set; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
7574 else
7575 cat >conftest.$ac_ext <<_ACEOF
7576 /* confdefs.h. */
7577 _ACEOF
7578 cat confdefs.h >>conftest.$ac_ext
7579 cat >>conftest.$ac_ext <<_ACEOF
7580 /* end confdefs.h. */
7581 $ac_includes_default
7582 int
7583 main ()
7584 {
7585 #ifndef calloc
7586 char *p = (char *) calloc;
7587 #endif
7588
7589 ;
7590 return 0;
7591 }
7592 _ACEOF
7593 rm -f conftest.$ac_objext
7594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7595 (eval $ac_compile) 2>conftest.er1
7596 ac_status=$?
7597 grep -v '^ *+' conftest.er1 >conftest.err
7598 rm -f conftest.er1
7599 cat conftest.err >&5
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); } &&
7602 { ac_try='test -z "$ac_c_werror_flag"
7603 || test ! -s conftest.err'
7604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605 (eval $ac_try) 2>&5
7606 ac_status=$?
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); }; } &&
7609 { ac_try='test -s conftest.$ac_objext'
7610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7611 (eval $ac_try) 2>&5
7612 ac_status=$?
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); }; }; then
7615 ac_cv_have_decl_calloc=yes
7616 else
7617 echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.$ac_ext >&5
7619
7620 ac_cv_have_decl_calloc=no
7621 fi
7622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7623 fi
7624 echo "$as_me:$LINENO: result: $ac_cv_have_decl_calloc" >&5
7625 echo "${ECHO_T}$ac_cv_have_decl_calloc" >&6
7626 if test $ac_cv_have_decl_calloc = yes; then
7627
7628 cat >>confdefs.h <<_ACEOF
7629 #define HAVE_DECL_CALLOC 1
7630 _ACEOF
7631
7632
7633 else
7634 cat >>confdefs.h <<_ACEOF
7635 #define HAVE_DECL_CALLOC 0
7636 _ACEOF
7637
7638
7639 fi
7640 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
7641 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
7642 if test "${ac_cv_have_decl_getenv+set}" = set; then
7643 echo $ECHO_N "(cached) $ECHO_C" >&6
7644 else
7645 cat >conftest.$ac_ext <<_ACEOF
7646 /* confdefs.h. */
7647 _ACEOF
7648 cat confdefs.h >>conftest.$ac_ext
7649 cat >>conftest.$ac_ext <<_ACEOF
7650 /* end confdefs.h. */
7651 $ac_includes_default
7652 int
7653 main ()
7654 {
7655 #ifndef getenv
7656 char *p = (char *) getenv;
7657 #endif
7658
7659 ;
7660 return 0;
7661 }
7662 _ACEOF
7663 rm -f conftest.$ac_objext
7664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7665 (eval $ac_compile) 2>conftest.er1
7666 ac_status=$?
7667 grep -v '^ *+' conftest.er1 >conftest.err
7668 rm -f conftest.er1
7669 cat conftest.err >&5
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); } &&
7672 { ac_try='test -z "$ac_c_werror_flag"
7673 || test ! -s conftest.err'
7674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7675 (eval $ac_try) 2>&5
7676 ac_status=$?
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); }; } &&
7679 { ac_try='test -s conftest.$ac_objext'
7680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7681 (eval $ac_try) 2>&5
7682 ac_status=$?
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); }; }; then
7685 ac_cv_have_decl_getenv=yes
7686 else
7687 echo "$as_me: failed program was:" >&5
7688 sed 's/^/| /' conftest.$ac_ext >&5
7689
7690 ac_cv_have_decl_getenv=no
7691 fi
7692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7693 fi
7694 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
7695 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
7696 if test $ac_cv_have_decl_getenv = yes; then
7697
7698 cat >>confdefs.h <<_ACEOF
7699 #define HAVE_DECL_GETENV 1
7700 _ACEOF
7701
7702
7703 else
7704 cat >>confdefs.h <<_ACEOF
7705 #define HAVE_DECL_GETENV 0
7706 _ACEOF
7707
7708
7709 fi
7710 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
7711 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
7712 if test "${ac_cv_have_decl_malloc+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 else
7715 cat >conftest.$ac_ext <<_ACEOF
7716 /* confdefs.h. */
7717 _ACEOF
7718 cat confdefs.h >>conftest.$ac_ext
7719 cat >>conftest.$ac_ext <<_ACEOF
7720 /* end confdefs.h. */
7721 $ac_includes_default
7722 int
7723 main ()
7724 {
7725 #ifndef malloc
7726 char *p = (char *) malloc;
7727 #endif
7728
7729 ;
7730 return 0;
7731 }
7732 _ACEOF
7733 rm -f conftest.$ac_objext
7734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7735 (eval $ac_compile) 2>conftest.er1
7736 ac_status=$?
7737 grep -v '^ *+' conftest.er1 >conftest.err
7738 rm -f conftest.er1
7739 cat conftest.err >&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); } &&
7742 { ac_try='test -z "$ac_c_werror_flag"
7743 || test ! -s conftest.err'
7744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7745 (eval $ac_try) 2>&5
7746 ac_status=$?
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); }; } &&
7749 { ac_try='test -s conftest.$ac_objext'
7750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7751 (eval $ac_try) 2>&5
7752 ac_status=$?
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); }; }; then
7755 ac_cv_have_decl_malloc=yes
7756 else
7757 echo "$as_me: failed program was:" >&5
7758 sed 's/^/| /' conftest.$ac_ext >&5
7759
7760 ac_cv_have_decl_malloc=no
7761 fi
7762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7763 fi
7764 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
7765 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
7766 if test $ac_cv_have_decl_malloc = yes; then
7767
7768 cat >>confdefs.h <<_ACEOF
7769 #define HAVE_DECL_MALLOC 1
7770 _ACEOF
7771
7772
7773 else
7774 cat >>confdefs.h <<_ACEOF
7775 #define HAVE_DECL_MALLOC 0
7776 _ACEOF
7777
7778
7779 fi
7780 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
7781 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
7782 if test "${ac_cv_have_decl_realloc+set}" = set; then
7783 echo $ECHO_N "(cached) $ECHO_C" >&6
7784 else
7785 cat >conftest.$ac_ext <<_ACEOF
7786 /* confdefs.h. */
7787 _ACEOF
7788 cat confdefs.h >>conftest.$ac_ext
7789 cat >>conftest.$ac_ext <<_ACEOF
7790 /* end confdefs.h. */
7791 $ac_includes_default
7792 int
7793 main ()
7794 {
7795 #ifndef realloc
7796 char *p = (char *) realloc;
7797 #endif
7798
7799 ;
7800 return 0;
7801 }
7802 _ACEOF
7803 rm -f conftest.$ac_objext
7804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7805 (eval $ac_compile) 2>conftest.er1
7806 ac_status=$?
7807 grep -v '^ *+' conftest.er1 >conftest.err
7808 rm -f conftest.er1
7809 cat conftest.err >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } &&
7812 { ac_try='test -z "$ac_c_werror_flag"
7813 || test ! -s conftest.err'
7814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815 (eval $ac_try) 2>&5
7816 ac_status=$?
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); }; } &&
7819 { ac_try='test -s conftest.$ac_objext'
7820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821 (eval $ac_try) 2>&5
7822 ac_status=$?
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); }; }; then
7825 ac_cv_have_decl_realloc=yes
7826 else
7827 echo "$as_me: failed program was:" >&5
7828 sed 's/^/| /' conftest.$ac_ext >&5
7829
7830 ac_cv_have_decl_realloc=no
7831 fi
7832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7833 fi
7834 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
7835 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
7836 if test $ac_cv_have_decl_realloc = yes; then
7837
7838 cat >>confdefs.h <<_ACEOF
7839 #define HAVE_DECL_REALLOC 1
7840 _ACEOF
7841
7842
7843 else
7844 cat >>confdefs.h <<_ACEOF
7845 #define HAVE_DECL_REALLOC 0
7846 _ACEOF
7847
7848
7849 fi
7850 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
7851 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
7852 if test "${ac_cv_have_decl_sbrk+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7854 else
7855 cat >conftest.$ac_ext <<_ACEOF
7856 /* confdefs.h. */
7857 _ACEOF
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h. */
7861 $ac_includes_default
7862 int
7863 main ()
7864 {
7865 #ifndef sbrk
7866 char *p = (char *) sbrk;
7867 #endif
7868
7869 ;
7870 return 0;
7871 }
7872 _ACEOF
7873 rm -f conftest.$ac_objext
7874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7875 (eval $ac_compile) 2>conftest.er1
7876 ac_status=$?
7877 grep -v '^ *+' conftest.er1 >conftest.err
7878 rm -f conftest.er1
7879 cat conftest.err >&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } &&
7882 { ac_try='test -z "$ac_c_werror_flag"
7883 || test ! -s conftest.err'
7884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885 (eval $ac_try) 2>&5
7886 ac_status=$?
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; } &&
7889 { ac_try='test -s conftest.$ac_objext'
7890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891 (eval $ac_try) 2>&5
7892 ac_status=$?
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; }; then
7895 ac_cv_have_decl_sbrk=yes
7896 else
7897 echo "$as_me: failed program was:" >&5
7898 sed 's/^/| /' conftest.$ac_ext >&5
7899
7900 ac_cv_have_decl_sbrk=no
7901 fi
7902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7903 fi
7904 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
7905 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
7906 if test $ac_cv_have_decl_sbrk = yes; then
7907
7908 cat >>confdefs.h <<_ACEOF
7909 #define HAVE_DECL_SBRK 1
7910 _ACEOF
7911
7912
7913 else
7914 cat >>confdefs.h <<_ACEOF
7915 #define HAVE_DECL_SBRK 0
7916 _ACEOF
7917
7918
7919 fi
7920
7921
7922 echo "$as_me:$LINENO: checking whether strverscmp is declared" >&5
7923 echo $ECHO_N "checking whether strverscmp is declared... $ECHO_C" >&6
7924 if test "${ac_cv_have_decl_strverscmp+set}" = set; then
7925 echo $ECHO_N "(cached) $ECHO_C" >&6
7926 else
7927 cat >conftest.$ac_ext <<_ACEOF
7928 /* confdefs.h. */
7929 _ACEOF
7930 cat confdefs.h >>conftest.$ac_ext
7931 cat >>conftest.$ac_ext <<_ACEOF
7932 /* end confdefs.h. */
7933 $ac_includes_default
7934 int
7935 main ()
7936 {
7937 #ifndef strverscmp
7938 char *p = (char *) strverscmp;
7939 #endif
7940
7941 ;
7942 return 0;
7943 }
7944 _ACEOF
7945 rm -f conftest.$ac_objext
7946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7947 (eval $ac_compile) 2>conftest.er1
7948 ac_status=$?
7949 grep -v '^ *+' conftest.er1 >conftest.err
7950 rm -f conftest.er1
7951 cat conftest.err >&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); } &&
7954 { ac_try='test -z "$ac_c_werror_flag"
7955 || test ! -s conftest.err'
7956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957 (eval $ac_try) 2>&5
7958 ac_status=$?
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); }; } &&
7961 { ac_try='test -s conftest.$ac_objext'
7962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7963 (eval $ac_try) 2>&5
7964 ac_status=$?
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; }; then
7967 ac_cv_have_decl_strverscmp=yes
7968 else
7969 echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.$ac_ext >&5
7971
7972 ac_cv_have_decl_strverscmp=no
7973 fi
7974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7975 fi
7976 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strverscmp" >&5
7977 echo "${ECHO_T}$ac_cv_have_decl_strverscmp" >&6
7978 if test $ac_cv_have_decl_strverscmp = yes; then
7979
7980 cat >>confdefs.h <<_ACEOF
7981 #define HAVE_DECL_STRVERSCMP 1
7982 _ACEOF
7983
7984
7985 else
7986 cat >>confdefs.h <<_ACEOF
7987 #define HAVE_DECL_STRVERSCMP 0
7988 _ACEOF
7989
7990
7991 fi
7992
7993
7994 echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5
7995 echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6
7996 if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then
7997 echo $ECHO_N "(cached) $ECHO_C" >&6
7998 else
7999 cat >conftest.$ac_ext <<_ACEOF
8000 /* confdefs.h. */
8001 _ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h. */
8005
8006 #include "confdefs.h"
8007 #include <stdio.h>
8008 #ifdef HAVE_STRING_H
8009 #include <string.h>
8010 #else
8011 #ifdef HAVE_STRINGS_H
8012 #include <strings.h>
8013 #endif
8014 #endif
8015 #ifdef HAVE_STDLIB_H
8016 #include <stdlib.h>
8017 #endif
8018 #ifdef HAVE_UNISTD_H
8019 #include <unistd.h>
8020 #endif
8021 int
8022 main ()
8023 {
8024 char *(*pfn) = (char *(*)) canonicalize_file_name
8025 ;
8026 return 0;
8027 }
8028 _ACEOF
8029 rm -f conftest.$ac_objext
8030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8031 (eval $ac_compile) 2>conftest.er1
8032 ac_status=$?
8033 grep -v '^ *+' conftest.er1 >conftest.err
8034 rm -f conftest.er1
8035 cat conftest.err >&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); } &&
8038 { ac_try='test -z "$ac_c_werror_flag"
8039 || test ! -s conftest.err'
8040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8041 (eval $ac_try) 2>&5
8042 ac_status=$?
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); }; } &&
8045 { ac_try='test -s conftest.$ac_objext'
8046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047 (eval $ac_try) 2>&5
8048 ac_status=$?
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); }; }; then
8051 libiberty_cv_decl_needed_canonicalize_file_name=no
8052 else
8053 echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.$ac_ext >&5
8055
8056 libiberty_cv_decl_needed_canonicalize_file_name=yes
8057 fi
8058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8059 fi
8060
8061 echo "$as_me:$LINENO: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
8062 echo "${ECHO_T}$libiberty_cv_decl_needed_canonicalize_file_name" >&6
8063 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
8064
8065 cat >>confdefs.h <<\_ACEOF
8066 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
8067 _ACEOF
8068
8069 fi
8070
8071 fi
8072
8073 # Figure out which version of pexecute to use.
8074 case "${host}" in
8075 *-*-mingw* | *-*-winnt*) pexecute=./pex-win32.o ;;
8076 *-*-msdosdjgpp*) pexecute=./pex-djgpp.o ;;
8077 *-*-msdos*) pexecute=./pex-msdos.o ;;
8078 *) pexecute=./pex-unix.o ;;
8079 esac
8080
8081
8082 if test x$gcc_no_link = xyes; then
8083 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
8084 ac_cv_func_mmap_fixed_mapped=no
8085 fi
8086 fi
8087 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
8088
8089
8090 for ac_header in stdlib.h unistd.h
8091 do
8092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8093 echo "$as_me:$LINENO: checking for $ac_header" >&5
8094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8096 echo $ECHO_N "(cached) $ECHO_C" >&6
8097 else
8098 cat >conftest.$ac_ext <<_ACEOF
8099 /* confdefs.h. */
8100 _ACEOF
8101 cat confdefs.h >>conftest.$ac_ext
8102 cat >>conftest.$ac_ext <<_ACEOF
8103 /* end confdefs.h. */
8104 #include <$ac_header>
8105 _ACEOF
8106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8108 ac_status=$?
8109 grep -v '^ *+' conftest.er1 >conftest.err
8110 rm -f conftest.er1
8111 cat conftest.err >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } >/dev/null; then
8114 if test -s conftest.err; then
8115 ac_cpp_err=$ac_c_preproc_warn_flag
8116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8117 else
8118 ac_cpp_err=
8119 fi
8120 else
8121 ac_cpp_err=yes
8122 fi
8123 if test -z "$ac_cpp_err"; then
8124 eval "$as_ac_Header=yes"
8125 else
8126 echo "$as_me: failed program was:" >&5
8127 sed 's/^/| /' conftest.$ac_ext >&5
8128
8129 eval "$as_ac_Header=no"
8130 fi
8131 rm -f conftest.err conftest.$ac_ext
8132 fi
8133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8136 cat >>confdefs.h <<_ACEOF
8137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8138 _ACEOF
8139
8140 fi
8141 done
8142
8143
8144 for ac_func in getpagesize
8145 do
8146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8147 echo "$as_me:$LINENO: checking for $ac_func" >&5
8148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8149 if eval "test \"\${$as_ac_var+set}\" = set"; then
8150 echo $ECHO_N "(cached) $ECHO_C" >&6
8151 else
8152 if test x$gcc_no_link = xyes; then
8153 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8154 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8155 { (exit 1); exit 1; }; }
8156 fi
8157 cat >conftest.$ac_ext <<_ACEOF
8158 /* confdefs.h. */
8159 _ACEOF
8160 cat confdefs.h >>conftest.$ac_ext
8161 cat >>conftest.$ac_ext <<_ACEOF
8162 /* end confdefs.h. */
8163 /* System header to define __stub macros and hopefully few prototypes,
8164 which can conflict with char $ac_func (); below.
8165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8166 <limits.h> exists even on freestanding compilers. Under hpux,
8167 including <limits.h> includes <sys/time.h> and causes problems
8168 checking for functions defined therein. */
8169 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
8170 # include <limits.h>
8171 #else
8172 # include <assert.h>
8173 #endif
8174 /* Override any gcc2 internal prototype to avoid an error. */
8175 #ifdef __cplusplus
8176 extern "C"
8177 {
8178 #endif
8179 /* We use char because int might match the return type of a gcc2
8180 builtin and then its argument prototype would still apply. */
8181 char $ac_func ();
8182 /* The GNU C library defines this for functions which it implements
8183 to always fail with ENOSYS. Some functions are actually named
8184 something starting with __ and the normal name is an alias. */
8185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8186 choke me
8187 #else
8188 char (*f) () = $ac_func;
8189 #endif
8190 #ifdef __cplusplus
8191 }
8192 #endif
8193
8194 int
8195 main ()
8196 {
8197 return f != $ac_func;
8198 ;
8199 return 0;
8200 }
8201 _ACEOF
8202 rm -f conftest.$ac_objext conftest$ac_exeext
8203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8204 (eval $ac_link) 2>conftest.er1
8205 ac_status=$?
8206 grep -v '^ *+' conftest.er1 >conftest.err
8207 rm -f conftest.er1
8208 cat conftest.err >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } &&
8211 { ac_try='test -z "$ac_c_werror_flag"
8212 || test ! -s conftest.err'
8213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8214 (eval $ac_try) 2>&5
8215 ac_status=$?
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); }; } &&
8218 { ac_try='test -s conftest$ac_exeext'
8219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8220 (eval $ac_try) 2>&5
8221 ac_status=$?
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; }; then
8224 eval "$as_ac_var=yes"
8225 else
8226 echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.$ac_ext >&5
8228
8229 eval "$as_ac_var=no"
8230 fi
8231 rm -f conftest.err conftest.$ac_objext \
8232 conftest$ac_exeext conftest.$ac_ext
8233 fi
8234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8235 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8236 if test `eval echo '${'$as_ac_var'}'` = yes; then
8237 cat >>confdefs.h <<_ACEOF
8238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8239 _ACEOF
8240
8241 fi
8242 done
8243
8244 echo "$as_me:$LINENO: checking for working mmap" >&5
8245 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8246 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8247 echo $ECHO_N "(cached) $ECHO_C" >&6
8248 else
8249 if test "$cross_compiling" = yes; then
8250 ac_cv_func_mmap_fixed_mapped=no
8251 else
8252 cat >conftest.$ac_ext <<_ACEOF
8253 /* confdefs.h. */
8254 _ACEOF
8255 cat confdefs.h >>conftest.$ac_ext
8256 cat >>conftest.$ac_ext <<_ACEOF
8257 /* end confdefs.h. */
8258 $ac_includes_default
8259 /* malloc might have been renamed as rpl_malloc. */
8260 #undef malloc
8261
8262 /* Thanks to Mike Haertel and Jim Avera for this test.
8263 Here is a matrix of mmap possibilities:
8264 mmap private not fixed
8265 mmap private fixed at somewhere currently unmapped
8266 mmap private fixed at somewhere already mapped
8267 mmap shared not fixed
8268 mmap shared fixed at somewhere currently unmapped
8269 mmap shared fixed at somewhere already mapped
8270 For private mappings, we should verify that changes cannot be read()
8271 back from the file, nor mmap's back from the file at a different
8272 address. (There have been systems where private was not correctly
8273 implemented like the infamous i386 svr4.0, and systems where the
8274 VM page cache was not coherent with the file system buffer cache
8275 like early versions of FreeBSD and possibly contemporary NetBSD.)
8276 For shared mappings, we should conversely verify that changes get
8277 propagated back to all the places they're supposed to be.
8278
8279 Grep wants private fixed already mapped.
8280 The main things grep needs to know about mmap are:
8281 * does it exist and is it safe to write into the mmap'd area
8282 * how to use it (BSD variants) */
8283
8284 #include <fcntl.h>
8285 #include <sys/mman.h>
8286
8287 #if !STDC_HEADERS && !HAVE_STDLIB_H
8288 char *malloc ();
8289 #endif
8290
8291 /* This mess was copied from the GNU getpagesize.h. */
8292 #if !HAVE_GETPAGESIZE
8293 /* Assume that all systems that can run configure have sys/param.h. */
8294 # if !HAVE_SYS_PARAM_H
8295 # define HAVE_SYS_PARAM_H 1
8296 # endif
8297
8298 # ifdef _SC_PAGESIZE
8299 # define getpagesize() sysconf(_SC_PAGESIZE)
8300 # else /* no _SC_PAGESIZE */
8301 # if HAVE_SYS_PARAM_H
8302 # include <sys/param.h>
8303 # ifdef EXEC_PAGESIZE
8304 # define getpagesize() EXEC_PAGESIZE
8305 # else /* no EXEC_PAGESIZE */
8306 # ifdef NBPG
8307 # define getpagesize() NBPG * CLSIZE
8308 # ifndef CLSIZE
8309 # define CLSIZE 1
8310 # endif /* no CLSIZE */
8311 # else /* no NBPG */
8312 # ifdef NBPC
8313 # define getpagesize() NBPC
8314 # else /* no NBPC */
8315 # ifdef PAGESIZE
8316 # define getpagesize() PAGESIZE
8317 # endif /* PAGESIZE */
8318 # endif /* no NBPC */
8319 # endif /* no NBPG */
8320 # endif /* no EXEC_PAGESIZE */
8321 # else /* no HAVE_SYS_PARAM_H */
8322 # define getpagesize() 8192 /* punt totally */
8323 # endif /* no HAVE_SYS_PARAM_H */
8324 # endif /* no _SC_PAGESIZE */
8325
8326 #endif /* no HAVE_GETPAGESIZE */
8327
8328 int
8329 main ()
8330 {
8331 char *data, *data2, *data3;
8332 int i, pagesize;
8333 int fd;
8334
8335 pagesize = getpagesize ();
8336
8337 /* First, make a file with some known garbage in it. */
8338 data = (char *) malloc (pagesize);
8339 if (!data)
8340 exit (1);
8341 for (i = 0; i < pagesize; ++i)
8342 *(data + i) = rand ();
8343 umask (0);
8344 fd = creat ("conftest.mmap", 0600);
8345 if (fd < 0)
8346 exit (1);
8347 if (write (fd, data, pagesize) != pagesize)
8348 exit (1);
8349 close (fd);
8350
8351 /* Next, try to mmap the file at a fixed address which already has
8352 something else allocated at it. If we can, also make sure that
8353 we see the same garbage. */
8354 fd = open ("conftest.mmap", O_RDWR);
8355 if (fd < 0)
8356 exit (1);
8357 data2 = (char *) malloc (2 * pagesize);
8358 if (!data2)
8359 exit (1);
8360 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8361 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8362 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8363 exit (1);
8364 for (i = 0; i < pagesize; ++i)
8365 if (*(data + i) != *(data2 + i))
8366 exit (1);
8367
8368 /* Finally, make sure that changes to the mapped area do not
8369 percolate back to the file as seen by read(). (This is a bug on
8370 some variants of i386 svr4.0.) */
8371 for (i = 0; i < pagesize; ++i)
8372 *(data2 + i) = *(data2 + i) + 1;
8373 data3 = (char *) malloc (pagesize);
8374 if (!data3)
8375 exit (1);
8376 if (read (fd, data3, pagesize) != pagesize)
8377 exit (1);
8378 for (i = 0; i < pagesize; ++i)
8379 if (*(data + i) != *(data3 + i))
8380 exit (1);
8381 close (fd);
8382 exit (0);
8383 }
8384 _ACEOF
8385 rm -f conftest$ac_exeext
8386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8387 (eval $ac_link) 2>&5
8388 ac_status=$?
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8392 (eval $ac_try) 2>&5
8393 ac_status=$?
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); }; }; then
8396 ac_cv_func_mmap_fixed_mapped=yes
8397 else
8398 echo "$as_me: program exited with status $ac_status" >&5
8399 echo "$as_me: failed program was:" >&5
8400 sed 's/^/| /' conftest.$ac_ext >&5
8401
8402 ( exit $ac_status )
8403 ac_cv_func_mmap_fixed_mapped=no
8404 fi
8405 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8406 fi
8407 fi
8408 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8409 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8410 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8411
8412 cat >>confdefs.h <<\_ACEOF
8413 #define HAVE_MMAP 1
8414 _ACEOF
8415
8416 fi
8417 rm -f conftest.mmap
8418
8419 fi
8420
8421 echo "$as_me:$LINENO: checking for working strncmp" >&5
8422 echo $ECHO_N "checking for working strncmp... $ECHO_C" >&6
8423 if test "${ac_cv_func_strncmp_works+set}" = set; then
8424 echo $ECHO_N "(cached) $ECHO_C" >&6
8425 else
8426 if test "$cross_compiling" = yes; then
8427 ac_cv_func_strncmp_works=no
8428 else
8429 cat >conftest.$ac_ext <<_ACEOF
8430 /* confdefs.h. */
8431 _ACEOF
8432 cat confdefs.h >>conftest.$ac_ext
8433 cat >>conftest.$ac_ext <<_ACEOF
8434 /* end confdefs.h. */
8435
8436 /* Test by Jim Wilson and Kaveh Ghazi.
8437 Check whether strncmp reads past the end of its string parameters. */
8438 #include <sys/types.h>
8439
8440 #ifdef HAVE_FCNTL_H
8441 #include <fcntl.h>
8442 #endif
8443
8444 #ifdef HAVE_SYS_MMAN_H
8445 #include <sys/mman.h>
8446 #endif
8447
8448 #ifndef MAP_ANON
8449 #ifdef MAP_ANONYMOUS
8450 #define MAP_ANON MAP_ANONYMOUS
8451 #else
8452 #define MAP_ANON MAP_FILE
8453 #endif
8454 #endif
8455
8456 #ifndef MAP_FILE
8457 #define MAP_FILE 0
8458 #endif
8459 #ifndef O_RDONLY
8460 #define O_RDONLY 0
8461 #endif
8462
8463 #define MAP_LEN 0x10000
8464
8465 main ()
8466 {
8467 #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
8468 char *p;
8469 int dev_zero;
8470
8471 dev_zero = open ("/dev/zero", O_RDONLY);
8472 if (dev_zero < 0)
8473 exit (1);
8474
8475 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
8476 MAP_ANON|MAP_PRIVATE, dev_zero, 0);
8477 if (p == (char *)-1)
8478 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
8479 MAP_ANON|MAP_PRIVATE, -1, 0);
8480 if (p == (char *)-1)
8481 exit (2);
8482 else
8483 {
8484 char *string = "__si_type_info";
8485 char *q = (char *) p + MAP_LEN - strlen (string) - 2;
8486 char *r = (char *) p + 0xe;
8487
8488 strcpy (q, string);
8489 strcpy (r, string);
8490 strncmp (r, q, 14);
8491 }
8492 #endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
8493 exit (0);
8494 }
8495
8496 _ACEOF
8497 rm -f conftest$ac_exeext
8498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8499 (eval $ac_link) 2>&5
8500 ac_status=$?
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 (eval $ac_try) 2>&5
8505 ac_status=$?
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); }; }; then
8508 ac_cv_func_strncmp_works=yes
8509 else
8510 echo "$as_me: program exited with status $ac_status" >&5
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8513
8514 ( exit $ac_status )
8515 ac_cv_func_strncmp_works=no
8516 fi
8517 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8518 fi
8519 rm -f core core.* *.core
8520 fi
8521 echo "$as_me:$LINENO: result: $ac_cv_func_strncmp_works" >&5
8522 echo "${ECHO_T}$ac_cv_func_strncmp_works" >&6
8523 if test $ac_cv_func_strncmp_works = no ; then
8524 case $LIBOBJS in
8525 "strncmp.$ac_objext" | \
8526 *" strncmp.$ac_objext" | \
8527 "strncmp.$ac_objext "* | \
8528 *" strncmp.$ac_objext "* ) ;;
8529 *) LIBOBJS="$LIBOBJS strncmp.$ac_objext" ;;
8530 esac
8531
8532 fi
8533
8534
8535 # Install a library built with a cross compiler in $(tooldir) rather
8536 # than $(libdir).
8537 if test -z "${with_cross_host}"; then
8538 INSTALL_DEST=libdir
8539 else
8540 INSTALL_DEST=tooldir
8541 fi
8542
8543
8544
8545 L=""
8546 for l in x $LIBOBJS; do
8547 case $l in
8548 x) ;;
8549 *) L="$L ./$l" ;;
8550 esac
8551 done
8552 LIBOBJS="$L"
8553
8554 # We need multilib support, but only if configuring for the target.
8555 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
8556
8557 ac_config_commands="$ac_config_commands default"
8558
8559 cat >confcache <<\_ACEOF
8560 # This file is a shell script that caches the results of configure
8561 # tests run on this system so they can be shared between configure
8562 # scripts and configure runs, see configure's option --config-cache.
8563 # It is not useful on other systems. If it contains results you don't
8564 # want to keep, you may remove or edit it.
8565 #
8566 # config.status only pays attention to the cache file if you give it
8567 # the --recheck option to rerun configure.
8568 #
8569 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8570 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8571 # following values.
8572
8573 _ACEOF
8574
8575 # The following way of writing the cache mishandles newlines in values,
8576 # but we know of no workaround that is simple, portable, and efficient.
8577 # So, don't put newlines in cache variables' values.
8578 # Ultrix sh set writes to stderr and can't be redirected directly,
8579 # and sets the high bit in the cache file unless we assign to the vars.
8580 {
8581 (set) 2>&1 |
8582 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8583 *ac_space=\ *)
8584 # `set' does not quote correctly, so add quotes (double-quote
8585 # substitution turns \\\\ into \\, and sed turns \\ into \).
8586 sed -n \
8587 "s/'/'\\\\''/g;
8588 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8589 ;;
8590 *)
8591 # `set' quotes correctly as required by POSIX, so do not add quotes.
8592 sed -n \
8593 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8594 ;;
8595 esac;
8596 } |
8597 sed '
8598 t clear
8599 : clear
8600 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8601 t end
8602 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8603 : end' >>confcache
8604 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8605 if test -w $cache_file; then
8606 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8607 cat confcache >$cache_file
8608 else
8609 echo "not updating unwritable cache $cache_file"
8610 fi
8611 fi
8612 rm -f confcache
8613
8614 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8615 # Let make expand exec_prefix.
8616 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8617
8618 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8619 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8620 # trailing colons and then remove the whole line if VPATH becomes empty
8621 # (actually we leave an empty line to preserve line numbers).
8622 if test "x$srcdir" = x.; then
8623 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8624 s/:*\$(srcdir):*/:/;
8625 s/:*\${srcdir}:*/:/;
8626 s/:*@srcdir@:*/:/;
8627 s/^\([^=]*=[ ]*\):*/\1/;
8628 s/:*$//;
8629 s/^[^=]*=[ ]*$//;
8630 }'
8631 fi
8632
8633 DEFS=-DHAVE_CONFIG_H
8634
8635 ac_libobjs=
8636 ac_ltlibobjs=
8637 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8638 # 1. Remove the extension, and $U if already installed.
8639 ac_i=`echo "$ac_i" |
8640 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8641 # 2. Add them.
8642 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8643 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8644 done
8645 LIBOBJS=$ac_libobjs
8646
8647 LTLIBOBJS=$ac_ltlibobjs
8648
8649
8650
8651 : ${CONFIG_STATUS=./config.status}
8652 ac_clean_files_save=$ac_clean_files
8653 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8654 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8655 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8656 cat >$CONFIG_STATUS <<_ACEOF
8657 #! $SHELL
8658 # Generated by $as_me.
8659 # Run this file to recreate the current configuration.
8660 # Compiler output produced by configure, useful for debugging
8661 # configure, is in config.log if it exists.
8662
8663 debug=false
8664 ac_cs_recheck=false
8665 ac_cs_silent=false
8666 SHELL=\${CONFIG_SHELL-$SHELL}
8667 _ACEOF
8668
8669 cat >>$CONFIG_STATUS <<\_ACEOF
8670 ## --------------------- ##
8671 ## M4sh Initialization. ##
8672 ## --------------------- ##
8673
8674 # Be Bourne compatible
8675 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8676 emulate sh
8677 NULLCMD=:
8678 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8679 # is contrary to our usage. Disable this feature.
8680 alias -g '${1+"$@"}'='"$@"'
8681 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8682 set -o posix
8683 fi
8684 DUALCASE=1; export DUALCASE # for MKS sh
8685
8686 # Support unset when possible.
8687 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8688 as_unset=unset
8689 else
8690 as_unset=false
8691 fi
8692
8693
8694 # Work around bugs in pre-3.0 UWIN ksh.
8695 $as_unset ENV MAIL MAILPATH
8696 PS1='$ '
8697 PS2='> '
8698 PS4='+ '
8699
8700 # NLS nuisances.
8701 for as_var in \
8702 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8703 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8704 LC_TELEPHONE LC_TIME
8705 do
8706 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8707 eval $as_var=C; export $as_var
8708 else
8709 $as_unset $as_var
8710 fi
8711 done
8712
8713 # Required to use basename.
8714 if expr a : '\(a\)' >/dev/null 2>&1; then
8715 as_expr=expr
8716 else
8717 as_expr=false
8718 fi
8719
8720 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8721 as_basename=basename
8722 else
8723 as_basename=false
8724 fi
8725
8726
8727 # Name of the executable.
8728 as_me=`$as_basename "$0" ||
8729 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8730 X"$0" : 'X\(//\)$' \| \
8731 X"$0" : 'X\(/\)$' \| \
8732 . : '\(.\)' 2>/dev/null ||
8733 echo X/"$0" |
8734 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8735 /^X\/\(\/\/\)$/{ s//\1/; q; }
8736 /^X\/\(\/\).*/{ s//\1/; q; }
8737 s/.*/./; q'`
8738
8739
8740 # PATH needs CR, and LINENO needs CR and PATH.
8741 # Avoid depending upon Character Ranges.
8742 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8743 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8744 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8745 as_cr_digits='0123456789'
8746 as_cr_alnum=$as_cr_Letters$as_cr_digits
8747
8748 # The user is always right.
8749 if test "${PATH_SEPARATOR+set}" != set; then
8750 echo "#! /bin/sh" >conf$$.sh
8751 echo "exit 0" >>conf$$.sh
8752 chmod +x conf$$.sh
8753 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8754 PATH_SEPARATOR=';'
8755 else
8756 PATH_SEPARATOR=:
8757 fi
8758 rm -f conf$$.sh
8759 fi
8760
8761
8762 as_lineno_1=$LINENO
8763 as_lineno_2=$LINENO
8764 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8765 test "x$as_lineno_1" != "x$as_lineno_2" &&
8766 test "x$as_lineno_3" = "x$as_lineno_2" || {
8767 # Find who we are. Look in the path if we contain no path at all
8768 # relative or not.
8769 case $0 in
8770 *[\\/]* ) as_myself=$0 ;;
8771 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8772 for as_dir in $PATH
8773 do
8774 IFS=$as_save_IFS
8775 test -z "$as_dir" && as_dir=.
8776 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8777 done
8778
8779 ;;
8780 esac
8781 # We did not find ourselves, most probably we were run as `sh COMMAND'
8782 # in which case we are not to be found in the path.
8783 if test "x$as_myself" = x; then
8784 as_myself=$0
8785 fi
8786 if test ! -f "$as_myself"; then
8787 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8788 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8789 { (exit 1); exit 1; }; }
8790 fi
8791 case $CONFIG_SHELL in
8792 '')
8793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8794 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8795 do
8796 IFS=$as_save_IFS
8797 test -z "$as_dir" && as_dir=.
8798 for as_base in sh bash ksh sh5; do
8799 case $as_dir in
8800 /*)
8801 if ("$as_dir/$as_base" -c '
8802 as_lineno_1=$LINENO
8803 as_lineno_2=$LINENO
8804 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8805 test "x$as_lineno_1" != "x$as_lineno_2" &&
8806 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8807 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8808 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8809 CONFIG_SHELL=$as_dir/$as_base
8810 export CONFIG_SHELL
8811 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8812 fi;;
8813 esac
8814 done
8815 done
8816 ;;
8817 esac
8818
8819 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8820 # uniformly replaced by the line number. The first 'sed' inserts a
8821 # line-number line before each line; the second 'sed' does the real
8822 # work. The second script uses 'N' to pair each line-number line
8823 # with the numbered line, and appends trailing '-' during
8824 # substitution so that $LINENO is not a special case at line end.
8825 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8826 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8827 sed '=' <$as_myself |
8828 sed '
8829 N
8830 s,$,-,
8831 : loop
8832 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8833 t loop
8834 s,-$,,
8835 s,^['$as_cr_digits']*\n,,
8836 ' >$as_me.lineno &&
8837 chmod +x $as_me.lineno ||
8838 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8839 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8840 { (exit 1); exit 1; }; }
8841
8842 # Don't try to exec as it changes $[0], causing all sort of problems
8843 # (the dirname of $[0] is not the place where we might find the
8844 # original and so on. Autoconf is especially sensible to this).
8845 . ./$as_me.lineno
8846 # Exit status is that of the last command.
8847 exit
8848 }
8849
8850
8851 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8852 *c*,-n*) ECHO_N= ECHO_C='
8853 ' ECHO_T=' ' ;;
8854 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8855 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8856 esac
8857
8858 if expr a : '\(a\)' >/dev/null 2>&1; then
8859 as_expr=expr
8860 else
8861 as_expr=false
8862 fi
8863
8864 rm -f conf$$ conf$$.exe conf$$.file
8865 echo >conf$$.file
8866 if ln -s conf$$.file conf$$ 2>/dev/null; then
8867 # We could just check for DJGPP; but this test a) works b) is more generic
8868 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8869 if test -f conf$$.exe; then
8870 # Don't use ln at all; we don't have any links
8871 as_ln_s='cp -p'
8872 else
8873 as_ln_s='ln -s'
8874 fi
8875 elif ln conf$$.file conf$$ 2>/dev/null; then
8876 as_ln_s=ln
8877 else
8878 as_ln_s='cp -p'
8879 fi
8880 rm -f conf$$ conf$$.exe conf$$.file
8881
8882 if mkdir -p . 2>/dev/null; then
8883 as_mkdir_p=:
8884 else
8885 test -d ./-p && rmdir ./-p
8886 as_mkdir_p=false
8887 fi
8888
8889 as_executable_p="test -f"
8890
8891 # Sed expression to map a string onto a valid CPP name.
8892 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8893
8894 # Sed expression to map a string onto a valid variable name.
8895 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8896
8897
8898 # IFS
8899 # We need space, tab and new line, in precisely that order.
8900 as_nl='
8901 '
8902 IFS=" $as_nl"
8903
8904 # CDPATH.
8905 $as_unset CDPATH
8906
8907 exec 6>&1
8908
8909 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8910 # report actual input values of CONFIG_FILES etc. instead of their
8911 # values after options handling. Logging --version etc. is OK.
8912 exec 5>>config.log
8913 {
8914 echo
8915 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8916 ## Running $as_me. ##
8917 _ASBOX
8918 } >&5
8919 cat >&5 <<_CSEOF
8920
8921 This file was extended by $as_me, which was
8922 generated by GNU Autoconf 2.59. Invocation command line was
8923
8924 CONFIG_FILES = $CONFIG_FILES
8925 CONFIG_HEADERS = $CONFIG_HEADERS
8926 CONFIG_LINKS = $CONFIG_LINKS
8927 CONFIG_COMMANDS = $CONFIG_COMMANDS
8928 $ $0 $@
8929
8930 _CSEOF
8931 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8932 echo >&5
8933 _ACEOF
8934
8935 # Files that config.status was made for.
8936 if test -n "$ac_config_files"; then
8937 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8938 fi
8939
8940 if test -n "$ac_config_headers"; then
8941 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8942 fi
8943
8944 if test -n "$ac_config_links"; then
8945 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8946 fi
8947
8948 if test -n "$ac_config_commands"; then
8949 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8950 fi
8951
8952 cat >>$CONFIG_STATUS <<\_ACEOF
8953
8954 ac_cs_usage="\
8955 \`$as_me' instantiates files from templates according to the
8956 current configuration.
8957
8958 Usage: $0 [OPTIONS] [FILE]...
8959
8960 -h, --help print this help, then exit
8961 -V, --version print version number, then exit
8962 -q, --quiet do not print progress messages
8963 -d, --debug don't remove temporary files
8964 --recheck update $as_me by reconfiguring in the same conditions
8965 --file=FILE[:TEMPLATE]
8966 instantiate the configuration file FILE
8967 --header=FILE[:TEMPLATE]
8968 instantiate the configuration header FILE
8969
8970 Configuration files:
8971 $config_files
8972
8973 Configuration headers:
8974 $config_headers
8975
8976 Configuration commands:
8977 $config_commands
8978
8979 Report bugs to <bug-autoconf@gnu.org>."
8980 _ACEOF
8981
8982 cat >>$CONFIG_STATUS <<_ACEOF
8983 ac_cs_version="\\
8984 config.status
8985 configured by $0, generated by GNU Autoconf 2.59,
8986 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8987
8988 Copyright (C) 2003 Free Software Foundation, Inc.
8989 This config.status script is free software; the Free Software Foundation
8990 gives unlimited permission to copy, distribute and modify it."
8991 srcdir=$srcdir
8992 INSTALL="$INSTALL"
8993 _ACEOF
8994
8995 cat >>$CONFIG_STATUS <<\_ACEOF
8996 # If no file are specified by the user, then we need to provide default
8997 # value. By we need to know if files were specified by the user.
8998 ac_need_defaults=:
8999 while test $# != 0
9000 do
9001 case $1 in
9002 --*=*)
9003 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9004 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9005 ac_shift=:
9006 ;;
9007 -*)
9008 ac_option=$1
9009 ac_optarg=$2
9010 ac_shift=shift
9011 ;;
9012 *) # This is not an option, so the user has probably given explicit
9013 # arguments.
9014 ac_option=$1
9015 ac_need_defaults=false;;
9016 esac
9017
9018 case $ac_option in
9019 # Handling of the options.
9020 _ACEOF
9021 cat >>$CONFIG_STATUS <<\_ACEOF
9022 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9023 ac_cs_recheck=: ;;
9024 --version | --vers* | -V )
9025 echo "$ac_cs_version"; exit 0 ;;
9026 --he | --h)
9027 # Conflict between --help and --header
9028 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9029 Try \`$0 --help' for more information." >&5
9030 echo "$as_me: error: ambiguous option: $1
9031 Try \`$0 --help' for more information." >&2;}
9032 { (exit 1); exit 1; }; };;
9033 --help | --hel | -h )
9034 echo "$ac_cs_usage"; exit 0 ;;
9035 --debug | --d* | -d )
9036 debug=: ;;
9037 --file | --fil | --fi | --f )
9038 $ac_shift
9039 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9040 ac_need_defaults=false;;
9041 --header | --heade | --head | --hea )
9042 $ac_shift
9043 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9044 ac_need_defaults=false;;
9045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9046 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9047 ac_cs_silent=: ;;
9048
9049 # This is an error.
9050 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9051 Try \`$0 --help' for more information." >&5
9052 echo "$as_me: error: unrecognized option: $1
9053 Try \`$0 --help' for more information." >&2;}
9054 { (exit 1); exit 1; }; } ;;
9055
9056 *) ac_config_targets="$ac_config_targets $1" ;;
9057
9058 esac
9059 shift
9060 done
9061
9062 ac_configure_extra_args=
9063
9064 if $ac_cs_silent; then
9065 exec 6>/dev/null
9066 ac_configure_extra_args="$ac_configure_extra_args --silent"
9067 fi
9068
9069 _ACEOF
9070 cat >>$CONFIG_STATUS <<_ACEOF
9071 if \$ac_cs_recheck; then
9072 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9073 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9074 fi
9075
9076 _ACEOF
9077
9078 cat >>$CONFIG_STATUS <<_ACEOF
9079 #
9080 # INIT-COMMANDS section.
9081 #
9082
9083 srcdir=${srcdir}
9084 host=${host}
9085 target=${target}
9086 with_target_subdir=${with_target_subdir}
9087 with_multisubdir=${with_multisubdir}
9088 ac_configure_args="--enable-multilib ${ac_configure_args}"
9089 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
9090 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
9091 libiberty_topdir=${libiberty_topdir}
9092
9093
9094 _ACEOF
9095
9096
9097
9098 cat >>$CONFIG_STATUS <<\_ACEOF
9099 for ac_config_target in $ac_config_targets
9100 do
9101 case "$ac_config_target" in
9102 # Handling of arguments.
9103 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9104 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
9105 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9106 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9107 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9108 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9109 { (exit 1); exit 1; }; };;
9110 esac
9111 done
9112
9113 # If the user did not use the arguments to specify the items to instantiate,
9114 # then the envvar interface is used. Set only those that are not.
9115 # We use the long form for the default assignment because of an extremely
9116 # bizarre bug on SunOS 4.1.3.
9117 if $ac_need_defaults; then
9118 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9119 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9120 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9121 fi
9122
9123 # Have a temporary directory for convenience. Make it in the build tree
9124 # simply because there is no reason to put it here, and in addition,
9125 # creating and moving files from /tmp can sometimes cause problems.
9126 # Create a temporary directory, and hook for its removal unless debugging.
9127 $debug ||
9128 {
9129 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9130 trap '{ (exit 1); exit 1; }' 1 2 13 15
9131 }
9132
9133 # Create a (secure) tmp directory for tmp files.
9134
9135 {
9136 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9137 test -n "$tmp" && test -d "$tmp"
9138 } ||
9139 {
9140 tmp=./confstat$$-$RANDOM
9141 (umask 077 && mkdir $tmp)
9142 } ||
9143 {
9144 echo "$me: cannot create a temporary directory in ." >&2
9145 { (exit 1); exit 1; }
9146 }
9147
9148 _ACEOF
9149
9150 cat >>$CONFIG_STATUS <<_ACEOF
9151
9152 #
9153 # CONFIG_FILES section.
9154 #
9155
9156 # No need to generate the scripts if there are no CONFIG_FILES.
9157 # This happens for instance when ./config.status config.h
9158 if test -n "\$CONFIG_FILES"; then
9159 # Protect against being on the right side of a sed subst in config.status.
9160 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9161 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9162 s,@SHELL@,$SHELL,;t t
9163 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9164 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9165 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9166 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9167 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9168 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9169 s,@exec_prefix@,$exec_prefix,;t t
9170 s,@prefix@,$prefix,;t t
9171 s,@program_transform_name@,$program_transform_name,;t t
9172 s,@bindir@,$bindir,;t t
9173 s,@sbindir@,$sbindir,;t t
9174 s,@libexecdir@,$libexecdir,;t t
9175 s,@datadir@,$datadir,;t t
9176 s,@sysconfdir@,$sysconfdir,;t t
9177 s,@sharedstatedir@,$sharedstatedir,;t t
9178 s,@localstatedir@,$localstatedir,;t t
9179 s,@libdir@,$libdir,;t t
9180 s,@includedir@,$includedir,;t t
9181 s,@oldincludedir@,$oldincludedir,;t t
9182 s,@infodir@,$infodir,;t t
9183 s,@mandir@,$mandir,;t t
9184 s,@build_alias@,$build_alias,;t t
9185 s,@host_alias@,$host_alias,;t t
9186 s,@target_alias@,$target_alias,;t t
9187 s,@DEFS@,$DEFS,;t t
9188 s,@ECHO_C@,$ECHO_C,;t t
9189 s,@ECHO_N@,$ECHO_N,;t t
9190 s,@ECHO_T@,$ECHO_T,;t t
9191 s,@LIBS@,$LIBS,;t t
9192 s,@libiberty_topdir@,$libiberty_topdir,;t t
9193 s,@MAINT@,$MAINT,;t t
9194 s,@NOTMAINT@,$NOTMAINT,;t t
9195 s,@MAKEINFO@,$MAKEINFO,;t t
9196 s,@BUILD_INFO@,$BUILD_INFO,;t t
9197 s,@PERL@,$PERL,;t t
9198 s,@HAVE_PERL@,$HAVE_PERL,;t t
9199 s,@build@,$build,;t t
9200 s,@build_cpu@,$build_cpu,;t t
9201 s,@build_vendor@,$build_vendor,;t t
9202 s,@build_os@,$build_os,;t t
9203 s,@host@,$host,;t t
9204 s,@host_cpu@,$host_cpu,;t t
9205 s,@host_vendor@,$host_vendor,;t t
9206 s,@host_os@,$host_os,;t t
9207 s,@AR@,$AR,;t t
9208 s,@ac_ct_AR@,$ac_ct_AR,;t t
9209 s,@RANLIB@,$RANLIB,;t t
9210 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9211 s,@CC@,$CC,;t t
9212 s,@CFLAGS@,$CFLAGS,;t t
9213 s,@LDFLAGS@,$LDFLAGS,;t t
9214 s,@CPPFLAGS@,$CPPFLAGS,;t t
9215 s,@ac_ct_CC@,$ac_ct_CC,;t t
9216 s,@EXEEXT@,$EXEEXT,;t t
9217 s,@OBJEXT@,$OBJEXT,;t t
9218 s,@CPP@,$CPP,;t t
9219 s,@ac_libiberty_warn_cflags@,$ac_libiberty_warn_cflags,;t t
9220 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
9221 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
9222 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9223 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9224 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9225 s,@EGREP@,$EGREP,;t t
9226 s,@LIBOBJS@,$LIBOBJS,;t t
9227 s,@CHECK@,$CHECK,;t t
9228 s,@target_header_dir@,$target_header_dir,;t t
9229 s,@pexecute@,$pexecute,;t t
9230 s,@INSTALL_DEST@,$INSTALL_DEST,;t t
9231 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9232 /@host_makefile_frag@/r $host_makefile_frag
9233 s,@host_makefile_frag@,,;t t
9234 CEOF
9235
9236 _ACEOF
9237
9238 cat >>$CONFIG_STATUS <<\_ACEOF
9239 # Split the substitutions into bite-sized pieces for seds with
9240 # small command number limits, like on Digital OSF/1 and HP-UX.
9241 ac_max_sed_lines=48
9242 ac_sed_frag=1 # Number of current file.
9243 ac_beg=1 # First line for current file.
9244 ac_end=$ac_max_sed_lines # Line after last line for current file.
9245 ac_more_lines=:
9246 ac_sed_cmds=
9247 while $ac_more_lines; do
9248 if test $ac_beg -gt 1; then
9249 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9250 else
9251 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9252 fi
9253 if test ! -s $tmp/subs.frag; then
9254 ac_more_lines=false
9255 else
9256 # The purpose of the label and of the branching condition is to
9257 # speed up the sed processing (if there are no `@' at all, there
9258 # is no need to browse any of the substitutions).
9259 # These are the two extra sed commands mentioned above.
9260 (echo ':t
9261 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9262 if test -z "$ac_sed_cmds"; then
9263 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9264 else
9265 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9266 fi
9267 ac_sed_frag=`expr $ac_sed_frag + 1`
9268 ac_beg=$ac_end
9269 ac_end=`expr $ac_end + $ac_max_sed_lines`
9270 fi
9271 done
9272 if test -z "$ac_sed_cmds"; then
9273 ac_sed_cmds=cat
9274 fi
9275 fi # test -n "$CONFIG_FILES"
9276
9277 _ACEOF
9278 cat >>$CONFIG_STATUS <<\_ACEOF
9279 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9280 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9281 case $ac_file in
9282 - | *:- | *:-:* ) # input from stdin
9283 cat >$tmp/stdin
9284 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9285 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9286 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9287 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9288 * ) ac_file_in=$ac_file.in ;;
9289 esac
9290
9291 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9292 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9293 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9294 X"$ac_file" : 'X\(//\)[^/]' \| \
9295 X"$ac_file" : 'X\(//\)$' \| \
9296 X"$ac_file" : 'X\(/\)' \| \
9297 . : '\(.\)' 2>/dev/null ||
9298 echo X"$ac_file" |
9299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9300 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9301 /^X\(\/\/\)$/{ s//\1/; q; }
9302 /^X\(\/\).*/{ s//\1/; q; }
9303 s/.*/./; q'`
9304 { if $as_mkdir_p; then
9305 mkdir -p "$ac_dir"
9306 else
9307 as_dir="$ac_dir"
9308 as_dirs=
9309 while test ! -d "$as_dir"; do
9310 as_dirs="$as_dir $as_dirs"
9311 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9312 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9313 X"$as_dir" : 'X\(//\)[^/]' \| \
9314 X"$as_dir" : 'X\(//\)$' \| \
9315 X"$as_dir" : 'X\(/\)' \| \
9316 . : '\(.\)' 2>/dev/null ||
9317 echo X"$as_dir" |
9318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9319 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9320 /^X\(\/\/\)$/{ s//\1/; q; }
9321 /^X\(\/\).*/{ s//\1/; q; }
9322 s/.*/./; q'`
9323 done
9324 test ! -n "$as_dirs" || mkdir $as_dirs
9325 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9326 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9327 { (exit 1); exit 1; }; }; }
9328
9329 ac_builddir=.
9330
9331 if test "$ac_dir" != .; then
9332 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9333 # A "../" for each directory in $ac_dir_suffix.
9334 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9335 else
9336 ac_dir_suffix= ac_top_builddir=
9337 fi
9338
9339 case $srcdir in
9340 .) # No --srcdir option. We are building in place.
9341 ac_srcdir=.
9342 if test -z "$ac_top_builddir"; then
9343 ac_top_srcdir=.
9344 else
9345 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9346 fi ;;
9347 [\\/]* | ?:[\\/]* ) # Absolute path.
9348 ac_srcdir=$srcdir$ac_dir_suffix;
9349 ac_top_srcdir=$srcdir ;;
9350 *) # Relative path.
9351 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9352 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9353 esac
9354
9355 # Do not use `cd foo && pwd` to compute absolute paths, because
9356 # the directories may not exist.
9357 case `pwd` in
9358 .) ac_abs_builddir="$ac_dir";;
9359 *)
9360 case "$ac_dir" in
9361 .) ac_abs_builddir=`pwd`;;
9362 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9363 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9364 esac;;
9365 esac
9366 case $ac_abs_builddir in
9367 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9368 *)
9369 case ${ac_top_builddir}. in
9370 .) ac_abs_top_builddir=$ac_abs_builddir;;
9371 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9372 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9373 esac;;
9374 esac
9375 case $ac_abs_builddir in
9376 .) ac_abs_srcdir=$ac_srcdir;;
9377 *)
9378 case $ac_srcdir in
9379 .) ac_abs_srcdir=$ac_abs_builddir;;
9380 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9381 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9382 esac;;
9383 esac
9384 case $ac_abs_builddir in
9385 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9386 *)
9387 case $ac_top_srcdir in
9388 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9389 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9390 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9391 esac;;
9392 esac
9393
9394
9395 case $INSTALL in
9396 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9397 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9398 esac
9399
9400 if test x"$ac_file" != x-; then
9401 { echo "$as_me:$LINENO: creating $ac_file" >&5
9402 echo "$as_me: creating $ac_file" >&6;}
9403 rm -f "$ac_file"
9404 fi
9405 # Let's still pretend it is `configure' which instantiates (i.e., don't
9406 # use $as_me), people would be surprised to read:
9407 # /* config.h. Generated by config.status. */
9408 if test x"$ac_file" = x-; then
9409 configure_input=
9410 else
9411 configure_input="$ac_file. "
9412 fi
9413 configure_input=$configure_input"Generated from `echo $ac_file_in |
9414 sed 's,.*/,,'` by configure."
9415
9416 # First look for the input files in the build tree, otherwise in the
9417 # src tree.
9418 ac_file_inputs=`IFS=:
9419 for f in $ac_file_in; do
9420 case $f in
9421 -) echo $tmp/stdin ;;
9422 [\\/$]*)
9423 # Absolute (can't be DOS-style, as IFS=:)
9424 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9425 echo "$as_me: error: cannot find input file: $f" >&2;}
9426 { (exit 1); exit 1; }; }
9427 echo "$f";;
9428 *) # Relative
9429 if test -f "$f"; then
9430 # Build tree
9431 echo "$f"
9432 elif test -f "$srcdir/$f"; then
9433 # Source tree
9434 echo "$srcdir/$f"
9435 else
9436 # /dev/null tree
9437 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9438 echo "$as_me: error: cannot find input file: $f" >&2;}
9439 { (exit 1); exit 1; }; }
9440 fi;;
9441 esac
9442 done` || { (exit 1); exit 1; }
9443 _ACEOF
9444 cat >>$CONFIG_STATUS <<_ACEOF
9445 sed "$ac_vpsub
9446 $extrasub
9447 _ACEOF
9448 cat >>$CONFIG_STATUS <<\_ACEOF
9449 :t
9450 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9451 s,@configure_input@,$configure_input,;t t
9452 s,@srcdir@,$ac_srcdir,;t t
9453 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9454 s,@top_srcdir@,$ac_top_srcdir,;t t
9455 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9456 s,@builddir@,$ac_builddir,;t t
9457 s,@abs_builddir@,$ac_abs_builddir,;t t
9458 s,@top_builddir@,$ac_top_builddir,;t t
9459 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9460 s,@INSTALL@,$ac_INSTALL,;t t
9461 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9462 rm -f $tmp/stdin
9463 if test x"$ac_file" != x-; then
9464 mv $tmp/out $ac_file
9465 else
9466 cat $tmp/out
9467 rm -f $tmp/out
9468 fi
9469
9470 done
9471 _ACEOF
9472 cat >>$CONFIG_STATUS <<\_ACEOF
9473
9474 #
9475 # CONFIG_HEADER section.
9476 #
9477
9478 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9479 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9480 #
9481 # ac_d sets the value in "#define NAME VALUE" lines.
9482 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9483 ac_dB='[ ].*$,\1#\2'
9484 ac_dC=' '
9485 ac_dD=',;t'
9486 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9487 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9488 ac_uB='$,\1#\2define\3'
9489 ac_uC=' '
9490 ac_uD=',;t'
9491
9492 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9493 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9494 case $ac_file in
9495 - | *:- | *:-:* ) # input from stdin
9496 cat >$tmp/stdin
9497 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9498 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9499 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9500 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9501 * ) ac_file_in=$ac_file.in ;;
9502 esac
9503
9504 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9505 echo "$as_me: creating $ac_file" >&6;}
9506
9507 # First look for the input files in the build tree, otherwise in the
9508 # src tree.
9509 ac_file_inputs=`IFS=:
9510 for f in $ac_file_in; do
9511 case $f in
9512 -) echo $tmp/stdin ;;
9513 [\\/$]*)
9514 # Absolute (can't be DOS-style, as IFS=:)
9515 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9516 echo "$as_me: error: cannot find input file: $f" >&2;}
9517 { (exit 1); exit 1; }; }
9518 # Do quote $f, to prevent DOS paths from being IFS'd.
9519 echo "$f";;
9520 *) # Relative
9521 if test -f "$f"; then
9522 # Build tree
9523 echo "$f"
9524 elif test -f "$srcdir/$f"; then
9525 # Source tree
9526 echo "$srcdir/$f"
9527 else
9528 # /dev/null tree
9529 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9530 echo "$as_me: error: cannot find input file: $f" >&2;}
9531 { (exit 1); exit 1; }; }
9532 fi;;
9533 esac
9534 done` || { (exit 1); exit 1; }
9535 # Remove the trailing spaces.
9536 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9537
9538 _ACEOF
9539
9540 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9541 # `conftest.undefs', that substitutes the proper values into
9542 # config.h.in to produce config.h. The first handles `#define'
9543 # templates, and the second `#undef' templates.
9544 # And first: Protect against being on the right side of a sed subst in
9545 # config.status. Protect against being in an unquoted here document
9546 # in config.status.
9547 rm -f conftest.defines conftest.undefs
9548 # Using a here document instead of a string reduces the quoting nightmare.
9549 # Putting comments in sed scripts is not portable.
9550 #
9551 # `end' is used to avoid that the second main sed command (meant for
9552 # 0-ary CPP macros) applies to n-ary macro definitions.
9553 # See the Autoconf documentation for `clear'.
9554 cat >confdef2sed.sed <<\_ACEOF
9555 s/[\\&,]/\\&/g
9556 s,[\\$`],\\&,g
9557 t clear
9558 : clear
9559 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9560 t end
9561 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9562 : end
9563 _ACEOF
9564 # If some macros were called several times there might be several times
9565 # the same #defines, which is useless. Nevertheless, we may not want to
9566 # sort them, since we want the *last* AC-DEFINE to be honored.
9567 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9568 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9569 rm -f confdef2sed.sed
9570
9571 # This sed command replaces #undef with comments. This is necessary, for
9572 # example, in the case of _POSIX_SOURCE, which is predefined and required
9573 # on some systems where configure will not decide to define it.
9574 cat >>conftest.undefs <<\_ACEOF
9575 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9576 _ACEOF
9577
9578 # Break up conftest.defines because some shells have a limit on the size
9579 # of here documents, and old seds have small limits too (100 cmds).
9580 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9581 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9582 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9583 echo ' :' >>$CONFIG_STATUS
9584 rm -f conftest.tail
9585 while grep . conftest.defines >/dev/null
9586 do
9587 # Write a limited-size here document to $tmp/defines.sed.
9588 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9589 # Speed up: don't consider the non `#define' lines.
9590 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9591 # Work around the forget-to-reset-the-flag bug.
9592 echo 't clr' >>$CONFIG_STATUS
9593 echo ': clr' >>$CONFIG_STATUS
9594 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9595 echo 'CEOF
9596 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9597 rm -f $tmp/in
9598 mv $tmp/out $tmp/in
9599 ' >>$CONFIG_STATUS
9600 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9601 rm -f conftest.defines
9602 mv conftest.tail conftest.defines
9603 done
9604 rm -f conftest.defines
9605 echo ' fi # grep' >>$CONFIG_STATUS
9606 echo >>$CONFIG_STATUS
9607
9608 # Break up conftest.undefs because some shells have a limit on the size
9609 # of here documents, and old seds have small limits too (100 cmds).
9610 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9611 rm -f conftest.tail
9612 while grep . conftest.undefs >/dev/null
9613 do
9614 # Write a limited-size here document to $tmp/undefs.sed.
9615 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9616 # Speed up: don't consider the non `#undef'
9617 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9618 # Work around the forget-to-reset-the-flag bug.
9619 echo 't clr' >>$CONFIG_STATUS
9620 echo ': clr' >>$CONFIG_STATUS
9621 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9622 echo 'CEOF
9623 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9624 rm -f $tmp/in
9625 mv $tmp/out $tmp/in
9626 ' >>$CONFIG_STATUS
9627 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9628 rm -f conftest.undefs
9629 mv conftest.tail conftest.undefs
9630 done
9631 rm -f conftest.undefs
9632
9633 cat >>$CONFIG_STATUS <<\_ACEOF
9634 # Let's still pretend it is `configure' which instantiates (i.e., don't
9635 # use $as_me), people would be surprised to read:
9636 # /* config.h. Generated by config.status. */
9637 if test x"$ac_file" = x-; then
9638 echo "/* Generated by configure. */" >$tmp/config.h
9639 else
9640 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9641 fi
9642 cat $tmp/in >>$tmp/config.h
9643 rm -f $tmp/in
9644 if test x"$ac_file" != x-; then
9645 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9646 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9647 echo "$as_me: $ac_file is unchanged" >&6;}
9648 else
9649 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9650 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9651 X"$ac_file" : 'X\(//\)[^/]' \| \
9652 X"$ac_file" : 'X\(//\)$' \| \
9653 X"$ac_file" : 'X\(/\)' \| \
9654 . : '\(.\)' 2>/dev/null ||
9655 echo X"$ac_file" |
9656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9657 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9658 /^X\(\/\/\)$/{ s//\1/; q; }
9659 /^X\(\/\).*/{ s//\1/; q; }
9660 s/.*/./; q'`
9661 { if $as_mkdir_p; then
9662 mkdir -p "$ac_dir"
9663 else
9664 as_dir="$ac_dir"
9665 as_dirs=
9666 while test ! -d "$as_dir"; do
9667 as_dirs="$as_dir $as_dirs"
9668 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9669 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9670 X"$as_dir" : 'X\(//\)[^/]' \| \
9671 X"$as_dir" : 'X\(//\)$' \| \
9672 X"$as_dir" : 'X\(/\)' \| \
9673 . : '\(.\)' 2>/dev/null ||
9674 echo X"$as_dir" |
9675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9676 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9677 /^X\(\/\/\)$/{ s//\1/; q; }
9678 /^X\(\/\).*/{ s//\1/; q; }
9679 s/.*/./; q'`
9680 done
9681 test ! -n "$as_dirs" || mkdir $as_dirs
9682 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9683 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9684 { (exit 1); exit 1; }; }; }
9685
9686 rm -f $ac_file
9687 mv $tmp/config.h $ac_file
9688 fi
9689 else
9690 cat $tmp/config.h
9691 rm -f $tmp/config.h
9692 fi
9693 done
9694 _ACEOF
9695 cat >>$CONFIG_STATUS <<\_ACEOF
9696
9697 #
9698 # CONFIG_COMMANDS section.
9699 #
9700 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9701 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9702 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9703 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9704 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9705 X"$ac_dest" : 'X\(//\)[^/]' \| \
9706 X"$ac_dest" : 'X\(//\)$' \| \
9707 X"$ac_dest" : 'X\(/\)' \| \
9708 . : '\(.\)' 2>/dev/null ||
9709 echo X"$ac_dest" |
9710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9711 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9712 /^X\(\/\/\)$/{ s//\1/; q; }
9713 /^X\(\/\).*/{ s//\1/; q; }
9714 s/.*/./; q'`
9715 { if $as_mkdir_p; then
9716 mkdir -p "$ac_dir"
9717 else
9718 as_dir="$ac_dir"
9719 as_dirs=
9720 while test ! -d "$as_dir"; do
9721 as_dirs="$as_dir $as_dirs"
9722 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9723 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9724 X"$as_dir" : 'X\(//\)[^/]' \| \
9725 X"$as_dir" : 'X\(//\)$' \| \
9726 X"$as_dir" : 'X\(/\)' \| \
9727 . : '\(.\)' 2>/dev/null ||
9728 echo X"$as_dir" |
9729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9730 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9731 /^X\(\/\/\)$/{ s//\1/; q; }
9732 /^X\(\/\).*/{ s//\1/; q; }
9733 s/.*/./; q'`
9734 done
9735 test ! -n "$as_dirs" || mkdir $as_dirs
9736 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9737 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9738 { (exit 1); exit 1; }; }; }
9739
9740 ac_builddir=.
9741
9742 if test "$ac_dir" != .; then
9743 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9744 # A "../" for each directory in $ac_dir_suffix.
9745 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9746 else
9747 ac_dir_suffix= ac_top_builddir=
9748 fi
9749
9750 case $srcdir in
9751 .) # No --srcdir option. We are building in place.
9752 ac_srcdir=.
9753 if test -z "$ac_top_builddir"; then
9754 ac_top_srcdir=.
9755 else
9756 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9757 fi ;;
9758 [\\/]* | ?:[\\/]* ) # Absolute path.
9759 ac_srcdir=$srcdir$ac_dir_suffix;
9760 ac_top_srcdir=$srcdir ;;
9761 *) # Relative path.
9762 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9763 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9764 esac
9765
9766 # Do not use `cd foo && pwd` to compute absolute paths, because
9767 # the directories may not exist.
9768 case `pwd` in
9769 .) ac_abs_builddir="$ac_dir";;
9770 *)
9771 case "$ac_dir" in
9772 .) ac_abs_builddir=`pwd`;;
9773 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9774 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9775 esac;;
9776 esac
9777 case $ac_abs_builddir in
9778 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9779 *)
9780 case ${ac_top_builddir}. in
9781 .) ac_abs_top_builddir=$ac_abs_builddir;;
9782 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9783 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9784 esac;;
9785 esac
9786 case $ac_abs_builddir in
9787 .) ac_abs_srcdir=$ac_srcdir;;
9788 *)
9789 case $ac_srcdir in
9790 .) ac_abs_srcdir=$ac_abs_builddir;;
9791 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9792 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9793 esac;;
9794 esac
9795 case $ac_abs_builddir in
9796 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9797 *)
9798 case $ac_top_srcdir in
9799 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9800 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9801 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9802 esac;;
9803 esac
9804
9805
9806 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9807 echo "$as_me: executing $ac_dest commands" >&6;}
9808 case $ac_dest in
9809 default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
9810 if test -n "$CONFIG_FILES"; then
9811 if test -n "${with_target_subdir}"; then
9812 # FIXME: We shouldn't need to set ac_file
9813 ac_file=Makefile
9814 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
9815 . ${libiberty_topdir}/config-ml.in
9816 fi
9817 fi ;;
9818 esac
9819 done
9820 _ACEOF
9821
9822 cat >>$CONFIG_STATUS <<\_ACEOF
9823
9824 { (exit 0); exit 0; }
9825 _ACEOF
9826 chmod +x $CONFIG_STATUS
9827 ac_clean_files=$ac_clean_files_save
9828
9829
9830 # configure is writing to config.log, and then calls config.status.
9831 # config.status does its own redirection, appending to config.log.
9832 # Unfortunately, on DOS this fails, as config.log is still kept open
9833 # by configure, so config.status won't be able to write to it; its
9834 # output is simply discarded. So we exec the FD to /dev/null,
9835 # effectively closing config.log, so it can be properly (re)opened and
9836 # appended to by config.status. When coming back to configure, we
9837 # need to make the FD available again.
9838 if test "$no_create" != yes; then
9839 ac_cs_success=:
9840 ac_config_status_args=
9841 test "$silent" = yes &&
9842 ac_config_status_args="$ac_config_status_args --quiet"
9843 exec 5>/dev/null
9844 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9845 exec 5>>config.log
9846 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9847 # would make configure fail if this is the last instruction.
9848 $ac_cs_success || { (exit 1); exit 1; }
9849 fi
9850