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