]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/common/configure
* common.m4: Add test for libz and zlib.h.
[thirdparty/binutils-gdb.git] / sim / common / 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="Makefile.in"
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='sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT CPP EGREP MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI CPP_FOR_TARGET TARGET_SUBDIR LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
831
832 cat <<\_ACEOF
833
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843 _ACEOF
844 fi
845
846 if test -n "$ac_init_help"; then
847
848 cat <<\_ACEOF
849
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --enable-maintainer-mode Enable developer functionality.
854 --enable-sim-bswap Use Host specific BSWAP instruction.
855 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
856 --enable-sim-debug=opts Enable debugging flags
857 --enable-sim-stdio Specify whether to use stdio for console input/output.
858 --enable-sim-trace=opts Enable tracing flags
859 --enable-sim-profile=opts Enable profiling flags
860
861 Optional Packages:
862 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
863 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
864 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
865 --with-bugurl=URL Direct users to URL to report a bug
866
867 Some influential environment variables:
868 CC C compiler command
869 CFLAGS C compiler flags
870 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
871 nonstandard directory <lib dir>
872 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
873 headers in a nonstandard directory <include dir>
874 CPP C preprocessor
875
876 Use these variables to override the choices made by `configure' or to help
877 it to find libraries and programs with nonstandard names/locations.
878
879 _ACEOF
880 fi
881
882 if test "$ac_init_help" = "recursive"; then
883 # If there are subdirs, report their specific --help.
884 ac_popdir=`pwd`
885 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
886 test -d $ac_dir || continue
887 ac_builddir=.
888
889 if test "$ac_dir" != .; then
890 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
891 # A "../" for each directory in $ac_dir_suffix.
892 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
893 else
894 ac_dir_suffix= ac_top_builddir=
895 fi
896
897 case $srcdir in
898 .) # No --srcdir option. We are building in place.
899 ac_srcdir=.
900 if test -z "$ac_top_builddir"; then
901 ac_top_srcdir=.
902 else
903 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
904 fi ;;
905 [\\/]* | ?:[\\/]* ) # Absolute path.
906 ac_srcdir=$srcdir$ac_dir_suffix;
907 ac_top_srcdir=$srcdir ;;
908 *) # Relative path.
909 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
910 ac_top_srcdir=$ac_top_builddir$srcdir ;;
911 esac
912
913 # Do not use `cd foo && pwd` to compute absolute paths, because
914 # the directories may not exist.
915 case `pwd` in
916 .) ac_abs_builddir="$ac_dir";;
917 *)
918 case "$ac_dir" in
919 .) ac_abs_builddir=`pwd`;;
920 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
921 *) ac_abs_builddir=`pwd`/"$ac_dir";;
922 esac;;
923 esac
924 case $ac_abs_builddir in
925 .) ac_abs_top_builddir=${ac_top_builddir}.;;
926 *)
927 case ${ac_top_builddir}. in
928 .) ac_abs_top_builddir=$ac_abs_builddir;;
929 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
930 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
931 esac;;
932 esac
933 case $ac_abs_builddir in
934 .) ac_abs_srcdir=$ac_srcdir;;
935 *)
936 case $ac_srcdir in
937 .) ac_abs_srcdir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
939 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
940 esac;;
941 esac
942 case $ac_abs_builddir in
943 .) ac_abs_top_srcdir=$ac_top_srcdir;;
944 *)
945 case $ac_top_srcdir in
946 .) ac_abs_top_srcdir=$ac_abs_builddir;;
947 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
948 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
949 esac;;
950 esac
951
952 cd $ac_dir
953 # Check for guested configure; otherwise get Cygnus style configure.
954 if test -f $ac_srcdir/configure.gnu; then
955 echo
956 $SHELL $ac_srcdir/configure.gnu --help=recursive
957 elif test -f $ac_srcdir/configure; then
958 echo
959 $SHELL $ac_srcdir/configure --help=recursive
960 elif test -f $ac_srcdir/configure.ac ||
961 test -f $ac_srcdir/configure.in; then
962 echo
963 $ac_configure --help
964 else
965 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
966 fi
967 cd $ac_popdir
968 done
969 fi
970
971 test -n "$ac_init_help" && exit 0
972 if $ac_init_version; then
973 cat <<\_ACEOF
974
975 Copyright (C) 2003 Free Software Foundation, Inc.
976 This configure script is free software; the Free Software Foundation
977 gives unlimited permission to copy, distribute and modify it.
978 _ACEOF
979 exit 0
980 fi
981 exec 5>config.log
982 cat >&5 <<_ACEOF
983 This file contains any messages produced by compilers while
984 running configure, to aid debugging if configure makes a mistake.
985
986 It was created by $as_me, which was
987 generated by GNU Autoconf 2.59. Invocation command line was
988
989 $ $0 $@
990
991 _ACEOF
992 {
993 cat <<_ASUNAME
994 ## --------- ##
995 ## Platform. ##
996 ## --------- ##
997
998 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
999 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1000 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1001 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1002 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1003
1004 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1005 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1006
1007 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1008 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1009 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1010 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1011 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1012 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1013 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1014
1015 _ASUNAME
1016
1017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1018 for as_dir in $PATH
1019 do
1020 IFS=$as_save_IFS
1021 test -z "$as_dir" && as_dir=.
1022 echo "PATH: $as_dir"
1023 done
1024
1025 } >&5
1026
1027 cat >&5 <<_ACEOF
1028
1029
1030 ## ----------- ##
1031 ## Core tests. ##
1032 ## ----------- ##
1033
1034 _ACEOF
1035
1036
1037 # Keep a trace of the command line.
1038 # Strip out --no-create and --no-recursion so they do not pile up.
1039 # Strip out --silent because we don't want to record it for future runs.
1040 # Also quote any args containing shell meta-characters.
1041 # Make two passes to allow for proper duplicate-argument suppression.
1042 ac_configure_args=
1043 ac_configure_args0=
1044 ac_configure_args1=
1045 ac_sep=
1046 ac_must_keep_next=false
1047 for ac_pass in 1 2
1048 do
1049 for ac_arg
1050 do
1051 case $ac_arg in
1052 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054 | -silent | --silent | --silen | --sile | --sil)
1055 continue ;;
1056 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1057 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1058 esac
1059 case $ac_pass in
1060 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1061 2)
1062 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1063 if test $ac_must_keep_next = true; then
1064 ac_must_keep_next=false # Got value, back to normal.
1065 else
1066 case $ac_arg in
1067 *=* | --config-cache | -C | -disable-* | --disable-* \
1068 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1069 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1070 | -with-* | --with-* | -without-* | --without-* | --x)
1071 case "$ac_configure_args0 " in
1072 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1073 esac
1074 ;;
1075 -* ) ac_must_keep_next=true ;;
1076 esac
1077 fi
1078 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1079 # Get rid of the leading space.
1080 ac_sep=" "
1081 ;;
1082 esac
1083 done
1084 done
1085 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1086 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1087
1088 # When interrupted or exit'd, cleanup temporary files, and complete
1089 # config.log. We remove comments because anyway the quotes in there
1090 # would cause problems or look ugly.
1091 # WARNING: Be sure not to use single quotes in there, as some shells,
1092 # such as our DU 5.0 friend, will then `close' the trap.
1093 trap 'exit_status=$?
1094 # Save into config.log some information that might help in debugging.
1095 {
1096 echo
1097
1098 cat <<\_ASBOX
1099 ## ---------------- ##
1100 ## Cache variables. ##
1101 ## ---------------- ##
1102 _ASBOX
1103 echo
1104 # The following way of writing the cache mishandles newlines in values,
1105 {
1106 (set) 2>&1 |
1107 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1108 *ac_space=\ *)
1109 sed -n \
1110 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1112 ;;
1113 *)
1114 sed -n \
1115 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1116 ;;
1117 esac;
1118 }
1119 echo
1120
1121 cat <<\_ASBOX
1122 ## ----------------- ##
1123 ## Output variables. ##
1124 ## ----------------- ##
1125 _ASBOX
1126 echo
1127 for ac_var in $ac_subst_vars
1128 do
1129 eval ac_val=$`echo $ac_var`
1130 echo "$ac_var='"'"'$ac_val'"'"'"
1131 done | sort
1132 echo
1133
1134 if test -n "$ac_subst_files"; then
1135 cat <<\_ASBOX
1136 ## ------------- ##
1137 ## Output files. ##
1138 ## ------------- ##
1139 _ASBOX
1140 echo
1141 for ac_var in $ac_subst_files
1142 do
1143 eval ac_val=$`echo $ac_var`
1144 echo "$ac_var='"'"'$ac_val'"'"'"
1145 done | sort
1146 echo
1147 fi
1148
1149 if test -s confdefs.h; then
1150 cat <<\_ASBOX
1151 ## ----------- ##
1152 ## confdefs.h. ##
1153 ## ----------- ##
1154 _ASBOX
1155 echo
1156 sed "/^$/d" confdefs.h | sort
1157 echo
1158 fi
1159 test "$ac_signal" != 0 &&
1160 echo "$as_me: caught signal $ac_signal"
1161 echo "$as_me: exit $exit_status"
1162 } >&5
1163 rm -f core *.core &&
1164 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1165 exit $exit_status
1166 ' 0
1167 for ac_signal in 1 2 13 15; do
1168 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1169 done
1170 ac_signal=0
1171
1172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1173 rm -rf conftest* confdefs.h
1174 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1175 echo >confdefs.h
1176
1177 # Predefined preprocessor variables.
1178
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_NAME "$PACKAGE_NAME"
1181 _ACEOF
1182
1183
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1186 _ACEOF
1187
1188
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1191 _ACEOF
1192
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_STRING "$PACKAGE_STRING"
1196 _ACEOF
1197
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1201 _ACEOF
1202
1203
1204 # Let the site file select an alternate cache file if it wants to.
1205 # Prefer explicitly selected file to automatically selected ones.
1206 if test -z "$CONFIG_SITE"; then
1207 if test "x$prefix" != xNONE; then
1208 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1209 else
1210 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1211 fi
1212 fi
1213 for ac_site_file in $CONFIG_SITE; do
1214 if test -r "$ac_site_file"; then
1215 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1216 echo "$as_me: loading site script $ac_site_file" >&6;}
1217 sed 's/^/| /' "$ac_site_file" >&5
1218 . "$ac_site_file"
1219 fi
1220 done
1221
1222 if test -r "$cache_file"; then
1223 # Some versions of bash will fail to source /dev/null (special
1224 # files actually), so we avoid doing that.
1225 if test -f "$cache_file"; then
1226 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1227 echo "$as_me: loading cache $cache_file" >&6;}
1228 case $cache_file in
1229 [\\/]* | ?:[\\/]* ) . $cache_file;;
1230 *) . ./$cache_file;;
1231 esac
1232 fi
1233 else
1234 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1235 echo "$as_me: creating cache $cache_file" >&6;}
1236 >$cache_file
1237 fi
1238
1239 # Check that the precious variables saved in the cache have kept the same
1240 # value.
1241 ac_cache_corrupted=false
1242 for ac_var in `(set) 2>&1 |
1243 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1244 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1245 eval ac_new_set=\$ac_env_${ac_var}_set
1246 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1247 eval ac_new_val="\$ac_env_${ac_var}_value"
1248 case $ac_old_set,$ac_new_set in
1249 set,)
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1253 ,set)
1254 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1255 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1256 ac_cache_corrupted=: ;;
1257 ,);;
1258 *)
1259 if test "x$ac_old_val" != "x$ac_new_val"; then
1260 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1261 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1262 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1263 echo "$as_me: former value: $ac_old_val" >&2;}
1264 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1265 echo "$as_me: current value: $ac_new_val" >&2;}
1266 ac_cache_corrupted=:
1267 fi;;
1268 esac
1269 # Pass precious variables to config.status.
1270 if test "$ac_new_set" = set; then
1271 case $ac_new_val in
1272 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1274 *) ac_arg=$ac_var=$ac_new_val ;;
1275 esac
1276 case " $ac_configure_args " in
1277 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1278 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1279 esac
1280 fi
1281 done
1282 if $ac_cache_corrupted; then
1283 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1284 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1285 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1286 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1287 { (exit 1); exit 1; }; }
1288 fi
1289
1290 ac_ext=c
1291 ac_cpp='$CPP $CPPFLAGS'
1292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314 ac_config_headers="$ac_config_headers cconfig.h:config.in"
1315
1316
1317 # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
1318 # it by inlining the macro's contents.
1319 # This file contains common code used by all simulators.
1320 #
1321 # common.m4 invokes AC macros used by all simulators and by the common
1322 # directory. It is intended to be included before any target specific
1323 # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1324 # the Makefile. It is intended to be invoked last.
1325 #
1326 # The simulator's configure.in should look like:
1327 #
1328 # dnl Process this file with autoconf to produce a configure script.
1329 # AC_PREREQ(2.5)dnl
1330 # AC_INIT(Makefile.in)
1331 # AC_CONFIG_HEADER(config.h:config.in)
1332 #
1333 # sinclude(../common/aclocal.m4)
1334 # sinclude(../common/common.m4)
1335 #
1336 # ... target specific stuff ...
1337
1338 ac_aux_dir=
1339 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1340 if test -f $ac_dir/install-sh; then
1341 ac_aux_dir=$ac_dir
1342 ac_install_sh="$ac_aux_dir/install-sh -c"
1343 break
1344 elif test -f $ac_dir/install.sh; then
1345 ac_aux_dir=$ac_dir
1346 ac_install_sh="$ac_aux_dir/install.sh -c"
1347 break
1348 elif test -f $ac_dir/shtool; then
1349 ac_aux_dir=$ac_dir
1350 ac_install_sh="$ac_aux_dir/shtool install -c"
1351 break
1352 fi
1353 done
1354 if test -z "$ac_aux_dir"; then
1355 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1356 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1357 { (exit 1); exit 1; }; }
1358 fi
1359 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1360 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1361 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1362
1363 # Make sure we can run config.sub.
1364 $ac_config_sub sun4 >/dev/null 2>&1 ||
1365 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1366 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1367 { (exit 1); exit 1; }; }
1368
1369 echo "$as_me:$LINENO: checking build system type" >&5
1370 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1371 if test "${ac_cv_build+set}" = set; then
1372 echo $ECHO_N "(cached) $ECHO_C" >&6
1373 else
1374 ac_cv_build_alias=$build_alias
1375 test -z "$ac_cv_build_alias" &&
1376 ac_cv_build_alias=`$ac_config_guess`
1377 test -z "$ac_cv_build_alias" &&
1378 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1379 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1380 { (exit 1); exit 1; }; }
1381 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1382 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1383 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1384 { (exit 1); exit 1; }; }
1385
1386 fi
1387 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1388 echo "${ECHO_T}$ac_cv_build" >&6
1389 build=$ac_cv_build
1390 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1391 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1392 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1393
1394
1395 echo "$as_me:$LINENO: checking host system type" >&5
1396 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1397 if test "${ac_cv_host+set}" = set; then
1398 echo $ECHO_N "(cached) $ECHO_C" >&6
1399 else
1400 ac_cv_host_alias=$host_alias
1401 test -z "$ac_cv_host_alias" &&
1402 ac_cv_host_alias=$ac_cv_build_alias
1403 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1404 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1405 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1406 { (exit 1); exit 1; }; }
1407
1408 fi
1409 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1410 echo "${ECHO_T}$ac_cv_host" >&6
1411 host=$ac_cv_host
1412 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1413 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1414 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1415
1416
1417 echo "$as_me:$LINENO: checking target system type" >&5
1418 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1419 if test "${ac_cv_target+set}" = set; then
1420 echo $ECHO_N "(cached) $ECHO_C" >&6
1421 else
1422 ac_cv_target_alias=$target_alias
1423 test "x$ac_cv_target_alias" = "x" &&
1424 ac_cv_target_alias=$ac_cv_host_alias
1425 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1426 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1427 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1428 { (exit 1); exit 1; }; }
1429
1430 fi
1431 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1432 echo "${ECHO_T}$ac_cv_target" >&6
1433 target=$ac_cv_target
1434 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1435 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1436 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1437
1438
1439 # The aliases save the names the user supplied, while $host etc.
1440 # will get canonicalized.
1441 test -n "$target_alias" &&
1442 test "$program_prefix$program_suffix$program_transform_name" = \
1443 NONENONEs,x,x, &&
1444 program_prefix=${target_alias}-
1445 test "$program_prefix" != NONE &&
1446 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1447 # Use a double $ so make ignores it.
1448 test "$program_suffix" != NONE &&
1449 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1450 # Double any \ or $. echo might interpret backslashes.
1451 # By default was `s,x,x', remove it if useless.
1452 cat <<\_ACEOF >conftest.sed
1453 s/[\\$]/&&/g;s/;s,x,x,$//
1454 _ACEOF
1455 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1456 rm conftest.sed
1457
1458 ac_ext=c
1459 ac_cpp='$CPP $CPPFLAGS'
1460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1463 if test -n "$ac_tool_prefix"; then
1464 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1465 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1466 echo "$as_me:$LINENO: checking for $ac_word" >&5
1467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1468 if test "${ac_cv_prog_CC+set}" = set; then
1469 echo $ECHO_N "(cached) $ECHO_C" >&6
1470 else
1471 if test -n "$CC"; then
1472 ac_cv_prog_CC="$CC" # Let the user override the test.
1473 else
1474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475 for as_dir in $PATH
1476 do
1477 IFS=$as_save_IFS
1478 test -z "$as_dir" && as_dir=.
1479 for ac_exec_ext in '' $ac_executable_extensions; do
1480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1481 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1483 break 2
1484 fi
1485 done
1486 done
1487
1488 fi
1489 fi
1490 CC=$ac_cv_prog_CC
1491 if test -n "$CC"; then
1492 echo "$as_me:$LINENO: result: $CC" >&5
1493 echo "${ECHO_T}$CC" >&6
1494 else
1495 echo "$as_me:$LINENO: result: no" >&5
1496 echo "${ECHO_T}no" >&6
1497 fi
1498
1499 fi
1500 if test -z "$ac_cv_prog_CC"; then
1501 ac_ct_CC=$CC
1502 # Extract the first word of "gcc", so it can be a program name with args.
1503 set dummy gcc; ac_word=$2
1504 echo "$as_me:$LINENO: checking for $ac_word" >&5
1505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1506 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1507 echo $ECHO_N "(cached) $ECHO_C" >&6
1508 else
1509 if test -n "$ac_ct_CC"; then
1510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1511 else
1512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1513 for as_dir in $PATH
1514 do
1515 IFS=$as_save_IFS
1516 test -z "$as_dir" && as_dir=.
1517 for ac_exec_ext in '' $ac_executable_extensions; do
1518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1519 ac_cv_prog_ac_ct_CC="gcc"
1520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1521 break 2
1522 fi
1523 done
1524 done
1525
1526 fi
1527 fi
1528 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1529 if test -n "$ac_ct_CC"; then
1530 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1531 echo "${ECHO_T}$ac_ct_CC" >&6
1532 else
1533 echo "$as_me:$LINENO: result: no" >&5
1534 echo "${ECHO_T}no" >&6
1535 fi
1536
1537 CC=$ac_ct_CC
1538 else
1539 CC="$ac_cv_prog_CC"
1540 fi
1541
1542 if test -z "$CC"; then
1543 if test -n "$ac_tool_prefix"; then
1544 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1545 set dummy ${ac_tool_prefix}cc; ac_word=$2
1546 echo "$as_me:$LINENO: checking for $ac_word" >&5
1547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548 if test "${ac_cv_prog_CC+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1550 else
1551 if test -n "$CC"; then
1552 ac_cv_prog_CC="$CC" # Let the user override the test.
1553 else
1554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1555 for as_dir in $PATH
1556 do
1557 IFS=$as_save_IFS
1558 test -z "$as_dir" && as_dir=.
1559 for ac_exec_ext in '' $ac_executable_extensions; do
1560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561 ac_cv_prog_CC="${ac_tool_prefix}cc"
1562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1563 break 2
1564 fi
1565 done
1566 done
1567
1568 fi
1569 fi
1570 CC=$ac_cv_prog_CC
1571 if test -n "$CC"; then
1572 echo "$as_me:$LINENO: result: $CC" >&5
1573 echo "${ECHO_T}$CC" >&6
1574 else
1575 echo "$as_me:$LINENO: result: no" >&5
1576 echo "${ECHO_T}no" >&6
1577 fi
1578
1579 fi
1580 if test -z "$ac_cv_prog_CC"; then
1581 ac_ct_CC=$CC
1582 # Extract the first word of "cc", so it can be a program name with args.
1583 set dummy cc; ac_word=$2
1584 echo "$as_me:$LINENO: checking for $ac_word" >&5
1585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1588 else
1589 if test -n "$ac_ct_CC"; then
1590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1591 else
1592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593 for as_dir in $PATH
1594 do
1595 IFS=$as_save_IFS
1596 test -z "$as_dir" && as_dir=.
1597 for ac_exec_ext in '' $ac_executable_extensions; do
1598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599 ac_cv_prog_ac_ct_CC="cc"
1600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1601 break 2
1602 fi
1603 done
1604 done
1605
1606 fi
1607 fi
1608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1609 if test -n "$ac_ct_CC"; then
1610 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1611 echo "${ECHO_T}$ac_ct_CC" >&6
1612 else
1613 echo "$as_me:$LINENO: result: no" >&5
1614 echo "${ECHO_T}no" >&6
1615 fi
1616
1617 CC=$ac_ct_CC
1618 else
1619 CC="$ac_cv_prog_CC"
1620 fi
1621
1622 fi
1623 if test -z "$CC"; then
1624 # Extract the first word of "cc", so it can be a program name with args.
1625 set dummy cc; ac_word=$2
1626 echo "$as_me:$LINENO: checking for $ac_word" >&5
1627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1628 if test "${ac_cv_prog_CC+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 else
1631 if test -n "$CC"; then
1632 ac_cv_prog_CC="$CC" # Let the user override the test.
1633 else
1634 ac_prog_rejected=no
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636 for as_dir in $PATH
1637 do
1638 IFS=$as_save_IFS
1639 test -z "$as_dir" && as_dir=.
1640 for ac_exec_ext in '' $ac_executable_extensions; do
1641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1643 ac_prog_rejected=yes
1644 continue
1645 fi
1646 ac_cv_prog_CC="cc"
1647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648 break 2
1649 fi
1650 done
1651 done
1652
1653 if test $ac_prog_rejected = yes; then
1654 # We found a bogon in the path, so make sure we never use it.
1655 set dummy $ac_cv_prog_CC
1656 shift
1657 if test $# != 0; then
1658 # We chose a different compiler from the bogus one.
1659 # However, it has the same basename, so the bogon will be chosen
1660 # first if we set CC to just the basename; use the full file name.
1661 shift
1662 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1663 fi
1664 fi
1665 fi
1666 fi
1667 CC=$ac_cv_prog_CC
1668 if test -n "$CC"; then
1669 echo "$as_me:$LINENO: result: $CC" >&5
1670 echo "${ECHO_T}$CC" >&6
1671 else
1672 echo "$as_me:$LINENO: result: no" >&5
1673 echo "${ECHO_T}no" >&6
1674 fi
1675
1676 fi
1677 if test -z "$CC"; then
1678 if test -n "$ac_tool_prefix"; then
1679 for ac_prog in cl
1680 do
1681 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1682 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1683 echo "$as_me:$LINENO: checking for $ac_word" >&5
1684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1685 if test "${ac_cv_prog_CC+set}" = set; then
1686 echo $ECHO_N "(cached) $ECHO_C" >&6
1687 else
1688 if test -n "$CC"; then
1689 ac_cv_prog_CC="$CC" # Let the user override the test.
1690 else
1691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692 for as_dir in $PATH
1693 do
1694 IFS=$as_save_IFS
1695 test -z "$as_dir" && as_dir=.
1696 for ac_exec_ext in '' $ac_executable_extensions; do
1697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1698 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700 break 2
1701 fi
1702 done
1703 done
1704
1705 fi
1706 fi
1707 CC=$ac_cv_prog_CC
1708 if test -n "$CC"; then
1709 echo "$as_me:$LINENO: result: $CC" >&5
1710 echo "${ECHO_T}$CC" >&6
1711 else
1712 echo "$as_me:$LINENO: result: no" >&5
1713 echo "${ECHO_T}no" >&6
1714 fi
1715
1716 test -n "$CC" && break
1717 done
1718 fi
1719 if test -z "$CC"; then
1720 ac_ct_CC=$CC
1721 for ac_prog in cl
1722 do
1723 # Extract the first word of "$ac_prog", so it can be a program name with args.
1724 set dummy $ac_prog; ac_word=$2
1725 echo "$as_me:$LINENO: checking for $ac_word" >&5
1726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1727 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1729 else
1730 if test -n "$ac_ct_CC"; then
1731 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1732 else
1733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734 for as_dir in $PATH
1735 do
1736 IFS=$as_save_IFS
1737 test -z "$as_dir" && as_dir=.
1738 for ac_exec_ext in '' $ac_executable_extensions; do
1739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1740 ac_cv_prog_ac_ct_CC="$ac_prog"
1741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742 break 2
1743 fi
1744 done
1745 done
1746
1747 fi
1748 fi
1749 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1750 if test -n "$ac_ct_CC"; then
1751 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1752 echo "${ECHO_T}$ac_ct_CC" >&6
1753 else
1754 echo "$as_me:$LINENO: result: no" >&5
1755 echo "${ECHO_T}no" >&6
1756 fi
1757
1758 test -n "$ac_ct_CC" && break
1759 done
1760
1761 CC=$ac_ct_CC
1762 fi
1763
1764 fi
1765
1766
1767 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1768 See \`config.log' for more details." >&5
1769 echo "$as_me: error: no acceptable C compiler found in \$PATH
1770 See \`config.log' for more details." >&2;}
1771 { (exit 1); exit 1; }; }
1772
1773 # Provide some information about the compiler.
1774 echo "$as_me:$LINENO:" \
1775 "checking for C compiler version" >&5
1776 ac_compiler=`set X $ac_compile; echo $2`
1777 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1778 (eval $ac_compiler --version </dev/null >&5) 2>&5
1779 ac_status=$?
1780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1781 (exit $ac_status); }
1782 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1783 (eval $ac_compiler -v </dev/null >&5) 2>&5
1784 ac_status=$?
1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786 (exit $ac_status); }
1787 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1788 (eval $ac_compiler -V </dev/null >&5) 2>&5
1789 ac_status=$?
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }
1792
1793 cat >conftest.$ac_ext <<_ACEOF
1794 /* confdefs.h. */
1795 _ACEOF
1796 cat confdefs.h >>conftest.$ac_ext
1797 cat >>conftest.$ac_ext <<_ACEOF
1798 /* end confdefs.h. */
1799
1800 int
1801 main ()
1802 {
1803
1804 ;
1805 return 0;
1806 }
1807 _ACEOF
1808 ac_clean_files_save=$ac_clean_files
1809 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1810 # Try to create an executable without -o first, disregard a.out.
1811 # It will help us diagnose broken compilers, and finding out an intuition
1812 # of exeext.
1813 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1814 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1815 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1816 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1817 (eval $ac_link_default) 2>&5
1818 ac_status=$?
1819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820 (exit $ac_status); }; then
1821 # Find the output, starting from the most likely. This scheme is
1822 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1823 # resort.
1824
1825 # Be careful to initialize this variable, since it used to be cached.
1826 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1827 ac_cv_exeext=
1828 # b.out is created by i960 compilers.
1829 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1830 do
1831 test -f "$ac_file" || continue
1832 case $ac_file in
1833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1834 ;;
1835 conftest.$ac_ext )
1836 # This is the source file.
1837 ;;
1838 [ab].out )
1839 # We found the default executable, but exeext='' is most
1840 # certainly right.
1841 break;;
1842 *.* )
1843 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1844 # FIXME: I believe we export ac_cv_exeext for Libtool,
1845 # but it would be cool to find out if it's true. Does anybody
1846 # maintain Libtool? --akim.
1847 export ac_cv_exeext
1848 break;;
1849 * )
1850 break;;
1851 esac
1852 done
1853 else
1854 echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1856
1857 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1858 See \`config.log' for more details." >&5
1859 echo "$as_me: error: C compiler cannot create executables
1860 See \`config.log' for more details." >&2;}
1861 { (exit 77); exit 77; }; }
1862 fi
1863
1864 ac_exeext=$ac_cv_exeext
1865 echo "$as_me:$LINENO: result: $ac_file" >&5
1866 echo "${ECHO_T}$ac_file" >&6
1867
1868 # Check the compiler produces executables we can run. If not, either
1869 # the compiler is broken, or we cross compile.
1870 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1871 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1872 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1873 # If not cross compiling, check that we can run a simple program.
1874 if test "$cross_compiling" != yes; then
1875 if { ac_try='./$ac_file'
1876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1877 (eval $ac_try) 2>&5
1878 ac_status=$?
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; }; then
1881 cross_compiling=no
1882 else
1883 if test "$cross_compiling" = maybe; then
1884 cross_compiling=yes
1885 else
1886 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1887 If you meant to cross compile, use \`--host'.
1888 See \`config.log' for more details." >&5
1889 echo "$as_me: error: cannot run C compiled programs.
1890 If you meant to cross compile, use \`--host'.
1891 See \`config.log' for more details." >&2;}
1892 { (exit 1); exit 1; }; }
1893 fi
1894 fi
1895 fi
1896 echo "$as_me:$LINENO: result: yes" >&5
1897 echo "${ECHO_T}yes" >&6
1898
1899 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1900 ac_clean_files=$ac_clean_files_save
1901 # Check the compiler produces executables we can run. If not, either
1902 # the compiler is broken, or we cross compile.
1903 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1904 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1905 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1906 echo "${ECHO_T}$cross_compiling" >&6
1907
1908 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1909 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1911 (eval $ac_link) 2>&5
1912 ac_status=$?
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); }; then
1915 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1916 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1917 # work properly (i.e., refer to `conftest.exe'), while it won't with
1918 # `rm'.
1919 for ac_file in conftest.exe conftest conftest.*; do
1920 test -f "$ac_file" || continue
1921 case $ac_file in
1922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1923 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1924 export ac_cv_exeext
1925 break;;
1926 * ) break;;
1927 esac
1928 done
1929 else
1930 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1931 See \`config.log' for more details." >&5
1932 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1933 See \`config.log' for more details." >&2;}
1934 { (exit 1); exit 1; }; }
1935 fi
1936
1937 rm -f conftest$ac_cv_exeext
1938 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1939 echo "${ECHO_T}$ac_cv_exeext" >&6
1940
1941 rm -f conftest.$ac_ext
1942 EXEEXT=$ac_cv_exeext
1943 ac_exeext=$EXEEXT
1944 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1945 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1946 if test "${ac_cv_objext+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 else
1949 cat >conftest.$ac_ext <<_ACEOF
1950 /* confdefs.h. */
1951 _ACEOF
1952 cat confdefs.h >>conftest.$ac_ext
1953 cat >>conftest.$ac_ext <<_ACEOF
1954 /* end confdefs.h. */
1955
1956 int
1957 main ()
1958 {
1959
1960 ;
1961 return 0;
1962 }
1963 _ACEOF
1964 rm -f conftest.o conftest.obj
1965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1966 (eval $ac_compile) 2>&5
1967 ac_status=$?
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }; then
1970 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1971 case $ac_file in
1972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1973 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1974 break;;
1975 esac
1976 done
1977 else
1978 echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1980
1981 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1982 See \`config.log' for more details." >&5
1983 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1984 See \`config.log' for more details." >&2;}
1985 { (exit 1); exit 1; }; }
1986 fi
1987
1988 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1989 fi
1990 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1991 echo "${ECHO_T}$ac_cv_objext" >&6
1992 OBJEXT=$ac_cv_objext
1993 ac_objext=$OBJEXT
1994 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1995 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1996 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 else
1999 cat >conftest.$ac_ext <<_ACEOF
2000 /* confdefs.h. */
2001 _ACEOF
2002 cat confdefs.h >>conftest.$ac_ext
2003 cat >>conftest.$ac_ext <<_ACEOF
2004 /* end confdefs.h. */
2005
2006 int
2007 main ()
2008 {
2009 #ifndef __GNUC__
2010 choke me
2011 #endif
2012
2013 ;
2014 return 0;
2015 }
2016 _ACEOF
2017 rm -f conftest.$ac_objext
2018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2019 (eval $ac_compile) 2>conftest.er1
2020 ac_status=$?
2021 grep -v '^ *+' conftest.er1 >conftest.err
2022 rm -f conftest.er1
2023 cat conftest.err >&5
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); } &&
2026 { ac_try='test -z "$ac_c_werror_flag"
2027 || test ! -s conftest.err'
2028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2029 (eval $ac_try) 2>&5
2030 ac_status=$?
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }; } &&
2033 { ac_try='test -s conftest.$ac_objext'
2034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2035 (eval $ac_try) 2>&5
2036 ac_status=$?
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }; }; then
2039 ac_compiler_gnu=yes
2040 else
2041 echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2043
2044 ac_compiler_gnu=no
2045 fi
2046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2047 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2048
2049 fi
2050 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2051 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2052 GCC=`test $ac_compiler_gnu = yes && echo yes`
2053 ac_test_CFLAGS=${CFLAGS+set}
2054 ac_save_CFLAGS=$CFLAGS
2055 CFLAGS="-g"
2056 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2057 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2058 if test "${ac_cv_prog_cc_g+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2060 else
2061 cat >conftest.$ac_ext <<_ACEOF
2062 /* confdefs.h. */
2063 _ACEOF
2064 cat confdefs.h >>conftest.$ac_ext
2065 cat >>conftest.$ac_ext <<_ACEOF
2066 /* end confdefs.h. */
2067
2068 int
2069 main ()
2070 {
2071
2072 ;
2073 return 0;
2074 }
2075 _ACEOF
2076 rm -f conftest.$ac_objext
2077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2078 (eval $ac_compile) 2>conftest.er1
2079 ac_status=$?
2080 grep -v '^ *+' conftest.er1 >conftest.err
2081 rm -f conftest.er1
2082 cat conftest.err >&5
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); } &&
2085 { ac_try='test -z "$ac_c_werror_flag"
2086 || test ! -s conftest.err'
2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088 (eval $ac_try) 2>&5
2089 ac_status=$?
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; } &&
2092 { ac_try='test -s conftest.$ac_objext'
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094 (eval $ac_try) 2>&5
2095 ac_status=$?
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; }; then
2098 ac_cv_prog_cc_g=yes
2099 else
2100 echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.$ac_ext >&5
2102
2103 ac_cv_prog_cc_g=no
2104 fi
2105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2106 fi
2107 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2108 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2109 if test "$ac_test_CFLAGS" = set; then
2110 CFLAGS=$ac_save_CFLAGS
2111 elif test $ac_cv_prog_cc_g = yes; then
2112 if test "$GCC" = yes; then
2113 CFLAGS="-g -O2"
2114 else
2115 CFLAGS="-g"
2116 fi
2117 else
2118 if test "$GCC" = yes; then
2119 CFLAGS="-O2"
2120 else
2121 CFLAGS=
2122 fi
2123 fi
2124 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2125 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2126 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2128 else
2129 ac_cv_prog_cc_stdc=no
2130 ac_save_CC=$CC
2131 cat >conftest.$ac_ext <<_ACEOF
2132 /* confdefs.h. */
2133 _ACEOF
2134 cat confdefs.h >>conftest.$ac_ext
2135 cat >>conftest.$ac_ext <<_ACEOF
2136 /* end confdefs.h. */
2137 #include <stdarg.h>
2138 #include <stdio.h>
2139 #include <sys/types.h>
2140 #include <sys/stat.h>
2141 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2142 struct buf { int x; };
2143 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2144 static char *e (p, i)
2145 char **p;
2146 int i;
2147 {
2148 return p[i];
2149 }
2150 static char *f (char * (*g) (char **, int), char **p, ...)
2151 {
2152 char *s;
2153 va_list v;
2154 va_start (v,p);
2155 s = g (p, va_arg (v,int));
2156 va_end (v);
2157 return s;
2158 }
2159
2160 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2161 function prototypes and stuff, but not '\xHH' hex character constants.
2162 These don't provoke an error unfortunately, instead are silently treated
2163 as 'x'. The following induces an error, until -std1 is added to get
2164 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2165 array size at least. It's necessary to write '\x00'==0 to get something
2166 that's true only with -std1. */
2167 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2168
2169 int test (int i, double x);
2170 struct s1 {int (*f) (int a);};
2171 struct s2 {int (*f) (double a);};
2172 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2173 int argc;
2174 char **argv;
2175 int
2176 main ()
2177 {
2178 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2179 ;
2180 return 0;
2181 }
2182 _ACEOF
2183 # Don't try gcc -ansi; that turns off useful extensions and
2184 # breaks some systems' header files.
2185 # AIX -qlanglvl=ansi
2186 # Ultrix and OSF/1 -std1
2187 # HP-UX 10.20 and later -Ae
2188 # HP-UX older versions -Aa -D_HPUX_SOURCE
2189 # SVR4 -Xc -D__EXTENSIONS__
2190 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2191 do
2192 CC="$ac_save_CC $ac_arg"
2193 rm -f conftest.$ac_objext
2194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>conftest.er1
2196 ac_status=$?
2197 grep -v '^ *+' conftest.er1 >conftest.err
2198 rm -f conftest.er1
2199 cat conftest.err >&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); } &&
2202 { ac_try='test -z "$ac_c_werror_flag"
2203 || test ! -s conftest.err'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205 (eval $ac_try) 2>&5
2206 ac_status=$?
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; } &&
2209 { ac_try='test -s conftest.$ac_objext'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211 (eval $ac_try) 2>&5
2212 ac_status=$?
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; }; then
2215 ac_cv_prog_cc_stdc=$ac_arg
2216 break
2217 else
2218 echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.$ac_ext >&5
2220
2221 fi
2222 rm -f conftest.err conftest.$ac_objext
2223 done
2224 rm -f conftest.$ac_ext conftest.$ac_objext
2225 CC=$ac_save_CC
2226
2227 fi
2228
2229 case "x$ac_cv_prog_cc_stdc" in
2230 x|xno)
2231 echo "$as_me:$LINENO: result: none needed" >&5
2232 echo "${ECHO_T}none needed" >&6 ;;
2233 *)
2234 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2235 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2236 CC="$CC $ac_cv_prog_cc_stdc" ;;
2237 esac
2238
2239 # Some people use a C++ compiler to compile C. Since we use `exit',
2240 # in C++ we need to declare it. In case someone uses the same compiler
2241 # for both compiling C and C++ we need to have the C++ compiler decide
2242 # the declaration of exit, since it's the most demanding environment.
2243 cat >conftest.$ac_ext <<_ACEOF
2244 #ifndef __cplusplus
2245 choke me
2246 #endif
2247 _ACEOF
2248 rm -f conftest.$ac_objext
2249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250 (eval $ac_compile) 2>conftest.er1
2251 ac_status=$?
2252 grep -v '^ *+' conftest.er1 >conftest.err
2253 rm -f conftest.er1
2254 cat conftest.err >&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); } &&
2257 { ac_try='test -z "$ac_c_werror_flag"
2258 || test ! -s conftest.err'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 (eval $ac_try) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; } &&
2264 { ac_try='test -s conftest.$ac_objext'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266 (eval $ac_try) 2>&5
2267 ac_status=$?
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; }; then
2270 for ac_declaration in \
2271 '' \
2272 'extern "C" void std::exit (int) throw (); using std::exit;' \
2273 'extern "C" void std::exit (int); using std::exit;' \
2274 'extern "C" void exit (int) throw ();' \
2275 'extern "C" void exit (int);' \
2276 'void exit (int);'
2277 do
2278 cat >conftest.$ac_ext <<_ACEOF
2279 /* confdefs.h. */
2280 _ACEOF
2281 cat confdefs.h >>conftest.$ac_ext
2282 cat >>conftest.$ac_ext <<_ACEOF
2283 /* end confdefs.h. */
2284 $ac_declaration
2285 #include <stdlib.h>
2286 int
2287 main ()
2288 {
2289 exit (42);
2290 ;
2291 return 0;
2292 }
2293 _ACEOF
2294 rm -f conftest.$ac_objext
2295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296 (eval $ac_compile) 2>conftest.er1
2297 ac_status=$?
2298 grep -v '^ *+' conftest.er1 >conftest.err
2299 rm -f conftest.er1
2300 cat conftest.err >&5
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); } &&
2303 { ac_try='test -z "$ac_c_werror_flag"
2304 || test ! -s conftest.err'
2305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306 (eval $ac_try) 2>&5
2307 ac_status=$?
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; } &&
2310 { ac_try='test -s conftest.$ac_objext'
2311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312 (eval $ac_try) 2>&5
2313 ac_status=$?
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }; }; then
2316 :
2317 else
2318 echo "$as_me: failed program was:" >&5
2319 sed 's/^/| /' conftest.$ac_ext >&5
2320
2321 continue
2322 fi
2323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2324 cat >conftest.$ac_ext <<_ACEOF
2325 /* confdefs.h. */
2326 _ACEOF
2327 cat confdefs.h >>conftest.$ac_ext
2328 cat >>conftest.$ac_ext <<_ACEOF
2329 /* end confdefs.h. */
2330 $ac_declaration
2331 int
2332 main ()
2333 {
2334 exit (42);
2335 ;
2336 return 0;
2337 }
2338 _ACEOF
2339 rm -f conftest.$ac_objext
2340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2341 (eval $ac_compile) 2>conftest.er1
2342 ac_status=$?
2343 grep -v '^ *+' conftest.er1 >conftest.err
2344 rm -f conftest.er1
2345 cat conftest.err >&5
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); } &&
2348 { ac_try='test -z "$ac_c_werror_flag"
2349 || test ! -s conftest.err'
2350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351 (eval $ac_try) 2>&5
2352 ac_status=$?
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }; } &&
2355 { ac_try='test -s conftest.$ac_objext'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357 (eval $ac_try) 2>&5
2358 ac_status=$?
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; }; then
2361 break
2362 else
2363 echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.$ac_ext >&5
2365
2366 fi
2367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2368 done
2369 rm -f conftest*
2370 if test -n "$ac_declaration"; then
2371 echo '#ifdef __cplusplus' >>confdefs.h
2372 echo $ac_declaration >>confdefs.h
2373 echo '#endif' >>confdefs.h
2374 fi
2375
2376 else
2377 echo "$as_me: failed program was:" >&5
2378 sed 's/^/| /' conftest.$ac_ext >&5
2379
2380 fi
2381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2382 ac_ext=c
2383 ac_cpp='$CPP $CPPFLAGS'
2384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387
2388 # Find a good install program. We prefer a C program (faster),
2389 # so one script is as good as another. But avoid the broken or
2390 # incompatible versions:
2391 # SysV /etc/install, /usr/sbin/install
2392 # SunOS /usr/etc/install
2393 # IRIX /sbin/install
2394 # AIX /bin/install
2395 # AmigaOS /C/install, which installs bootblocks on floppy discs
2396 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2397 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2398 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2399 # OS/2's system install, which has a completely different semantic
2400 # ./install, which can be erroneously created by make from ./install.sh.
2401 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2402 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2403 if test -z "$INSTALL"; then
2404 if test "${ac_cv_path_install+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 for as_dir in $PATH
2409 do
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
2412 # Account for people who put trailing slashes in PATH elements.
2413 case $as_dir/ in
2414 ./ | .// | /cC/* | \
2415 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2416 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2417 /usr/ucb/* ) ;;
2418 *)
2419 # OSF1 and SCO ODT 3.0 have their own names for install.
2420 # Don't use installbsd from OSF since it installs stuff as root
2421 # by default.
2422 for ac_prog in ginstall scoinst install; do
2423 for ac_exec_ext in '' $ac_executable_extensions; do
2424 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2425 if test $ac_prog = install &&
2426 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2427 # AIX install. It has an incompatible calling convention.
2428 :
2429 elif test $ac_prog = install &&
2430 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2431 # program-specific install script used by HP pwplus--don't use.
2432 :
2433 else
2434 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2435 break 3
2436 fi
2437 fi
2438 done
2439 done
2440 ;;
2441 esac
2442 done
2443
2444
2445 fi
2446 if test "${ac_cv_path_install+set}" = set; then
2447 INSTALL=$ac_cv_path_install
2448 else
2449 # As a last resort, use the slow shell script. We don't cache a
2450 # path for INSTALL within a source directory, because that will
2451 # break other packages using the cache if that directory is
2452 # removed, or if the path is relative.
2453 INSTALL=$ac_install_sh
2454 fi
2455 fi
2456 echo "$as_me:$LINENO: result: $INSTALL" >&5
2457 echo "${ECHO_T}$INSTALL" >&6
2458
2459 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2460 # It thinks the first close brace ends the variable substitution.
2461 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2462
2463 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2464
2465 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2466
2467
2468 # Put a plausible default for CC_FOR_BUILD in Makefile.
2469 if test "x$cross_compiling" = "xno"; then
2470 CC_FOR_BUILD='$(CC)'
2471 else
2472 CC_FOR_BUILD=gcc
2473 fi
2474
2475
2476
2477
2478 AR=${AR-ar}
2479
2480 if test -n "$ac_tool_prefix"; then
2481 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2482 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2483 echo "$as_me:$LINENO: checking for $ac_word" >&5
2484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2485 if test "${ac_cv_prog_RANLIB+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 else
2488 if test -n "$RANLIB"; then
2489 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2490 else
2491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 for as_dir in $PATH
2493 do
2494 IFS=$as_save_IFS
2495 test -z "$as_dir" && as_dir=.
2496 for ac_exec_ext in '' $ac_executable_extensions; do
2497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2498 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2500 break 2
2501 fi
2502 done
2503 done
2504
2505 fi
2506 fi
2507 RANLIB=$ac_cv_prog_RANLIB
2508 if test -n "$RANLIB"; then
2509 echo "$as_me:$LINENO: result: $RANLIB" >&5
2510 echo "${ECHO_T}$RANLIB" >&6
2511 else
2512 echo "$as_me:$LINENO: result: no" >&5
2513 echo "${ECHO_T}no" >&6
2514 fi
2515
2516 fi
2517 if test -z "$ac_cv_prog_RANLIB"; then
2518 ac_ct_RANLIB=$RANLIB
2519 # Extract the first word of "ranlib", so it can be a program name with args.
2520 set dummy ranlib; ac_word=$2
2521 echo "$as_me:$LINENO: checking for $ac_word" >&5
2522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2523 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2525 else
2526 if test -n "$ac_ct_RANLIB"; then
2527 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2528 else
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 for as_dir in $PATH
2531 do
2532 IFS=$as_save_IFS
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2536 ac_cv_prog_ac_ct_RANLIB="ranlib"
2537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 break 2
2539 fi
2540 done
2541 done
2542
2543 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2544 fi
2545 fi
2546 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2547 if test -n "$ac_ct_RANLIB"; then
2548 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2549 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2550 else
2551 echo "$as_me:$LINENO: result: no" >&5
2552 echo "${ECHO_T}no" >&6
2553 fi
2554
2555 RANLIB=$ac_ct_RANLIB
2556 else
2557 RANLIB="$ac_cv_prog_RANLIB"
2558 fi
2559
2560
2561 ALL_LINGUAS=
2562 # If we haven't got the data from the intl directory,
2563 # assume NLS is disabled.
2564 USE_NLS=no
2565 LIBINTL=
2566 LIBINTL_DEP=
2567 INCINTL=
2568 XGETTEXT=
2569 GMSGFMT=
2570 POSUB=
2571
2572 if test -f ../../intl/config.intl; then
2573 . ../../intl/config.intl
2574 fi
2575 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2576 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2577 if test x"$USE_NLS" != xyes; then
2578 echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6
2580 else
2581 echo "$as_me:$LINENO: result: yes" >&5
2582 echo "${ECHO_T}yes" >&6
2583
2584 cat >>confdefs.h <<\_ACEOF
2585 #define ENABLE_NLS 1
2586 _ACEOF
2587
2588
2589 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2590 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2591 # Look for .po and .gmo files in the source directory.
2592 CATALOGS=
2593 XLINGUAS=
2594 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2595 # If there aren't any .gmo files the shell will give us the
2596 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2597 # weeded out.
2598 case "$cat" in *\**)
2599 continue;;
2600 esac
2601 # The quadruple backslash is collapsed to a double backslash
2602 # by the backticks, then collapsed again by the double quotes,
2603 # leaving us with one backslash in the sed expression (right
2604 # before the dot that mustn't act as a wildcard).
2605 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2606 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2607 # The user is allowed to set LINGUAS to a list of languages to
2608 # install catalogs for. If it's empty that means "all of them."
2609 if test "x$LINGUAS" = x; then
2610 CATALOGS="$CATALOGS $cat"
2611 XLINGUAS="$XLINGUAS $lang"
2612 else
2613 case "$LINGUAS" in *$lang*)
2614 CATALOGS="$CATALOGS $cat"
2615 XLINGUAS="$XLINGUAS $lang"
2616 ;;
2617 esac
2618 fi
2619 done
2620 LINGUAS="$XLINGUAS"
2621 echo "$as_me:$LINENO: result: $LINGUAS" >&5
2622 echo "${ECHO_T}$LINGUAS" >&6
2623
2624
2625 DATADIRNAME=share
2626
2627 INSTOBJEXT=.mo
2628
2629 GENCAT=gencat
2630
2631 CATOBJEXT=.gmo
2632
2633 fi
2634
2635 # Check for common headers.
2636 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2637 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2638
2639 ac_ext=c
2640 ac_cpp='$CPP $CPPFLAGS'
2641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2644 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2645 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2646 # On Suns, sometimes $CPP names a directory.
2647 if test -n "$CPP" && test -d "$CPP"; then
2648 CPP=
2649 fi
2650 if test -z "$CPP"; then
2651 if test "${ac_cv_prog_CPP+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2653 else
2654 # Double quotes because CPP needs to be expanded
2655 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2656 do
2657 ac_preproc_ok=false
2658 for ac_c_preproc_warn_flag in '' yes
2659 do
2660 # Use a header file that comes with gcc, so configuring glibc
2661 # with a fresh cross-compiler works.
2662 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2663 # <limits.h> exists even on freestanding compilers.
2664 # On the NeXT, cc -E runs the code through the compiler's parser,
2665 # not just through cpp. "Syntax error" is here to catch this case.
2666 cat >conftest.$ac_ext <<_ACEOF
2667 /* confdefs.h. */
2668 _ACEOF
2669 cat confdefs.h >>conftest.$ac_ext
2670 cat >>conftest.$ac_ext <<_ACEOF
2671 /* end confdefs.h. */
2672 #ifdef __STDC__
2673 # include <limits.h>
2674 #else
2675 # include <assert.h>
2676 #endif
2677 Syntax error
2678 _ACEOF
2679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2681 ac_status=$?
2682 grep -v '^ *+' conftest.er1 >conftest.err
2683 rm -f conftest.er1
2684 cat conftest.err >&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); } >/dev/null; then
2687 if test -s conftest.err; then
2688 ac_cpp_err=$ac_c_preproc_warn_flag
2689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2690 else
2691 ac_cpp_err=
2692 fi
2693 else
2694 ac_cpp_err=yes
2695 fi
2696 if test -z "$ac_cpp_err"; then
2697 :
2698 else
2699 echo "$as_me: failed program was:" >&5
2700 sed 's/^/| /' conftest.$ac_ext >&5
2701
2702 # Broken: fails on valid input.
2703 continue
2704 fi
2705 rm -f conftest.err conftest.$ac_ext
2706
2707 # OK, works on sane cases. Now check whether non-existent headers
2708 # can be detected and how.
2709 cat >conftest.$ac_ext <<_ACEOF
2710 /* confdefs.h. */
2711 _ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h. */
2715 #include <ac_nonexistent.h>
2716 _ACEOF
2717 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2718 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2719 ac_status=$?
2720 grep -v '^ *+' conftest.er1 >conftest.err
2721 rm -f conftest.er1
2722 cat conftest.err >&5
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); } >/dev/null; then
2725 if test -s conftest.err; then
2726 ac_cpp_err=$ac_c_preproc_warn_flag
2727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2728 else
2729 ac_cpp_err=
2730 fi
2731 else
2732 ac_cpp_err=yes
2733 fi
2734 if test -z "$ac_cpp_err"; then
2735 # Broken: success on invalid input.
2736 continue
2737 else
2738 echo "$as_me: failed program was:" >&5
2739 sed 's/^/| /' conftest.$ac_ext >&5
2740
2741 # Passes both tests.
2742 ac_preproc_ok=:
2743 break
2744 fi
2745 rm -f conftest.err conftest.$ac_ext
2746
2747 done
2748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2749 rm -f conftest.err conftest.$ac_ext
2750 if $ac_preproc_ok; then
2751 break
2752 fi
2753
2754 done
2755 ac_cv_prog_CPP=$CPP
2756
2757 fi
2758 CPP=$ac_cv_prog_CPP
2759 else
2760 ac_cv_prog_CPP=$CPP
2761 fi
2762 echo "$as_me:$LINENO: result: $CPP" >&5
2763 echo "${ECHO_T}$CPP" >&6
2764 ac_preproc_ok=false
2765 for ac_c_preproc_warn_flag in '' yes
2766 do
2767 # Use a header file that comes with gcc, so configuring glibc
2768 # with a fresh cross-compiler works.
2769 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2770 # <limits.h> exists even on freestanding compilers.
2771 # On the NeXT, cc -E runs the code through the compiler's parser,
2772 # not just through cpp. "Syntax error" is here to catch this case.
2773 cat >conftest.$ac_ext <<_ACEOF
2774 /* confdefs.h. */
2775 _ACEOF
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h. */
2779 #ifdef __STDC__
2780 # include <limits.h>
2781 #else
2782 # include <assert.h>
2783 #endif
2784 Syntax error
2785 _ACEOF
2786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2788 ac_status=$?
2789 grep -v '^ *+' conftest.er1 >conftest.err
2790 rm -f conftest.er1
2791 cat conftest.err >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); } >/dev/null; then
2794 if test -s conftest.err; then
2795 ac_cpp_err=$ac_c_preproc_warn_flag
2796 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2797 else
2798 ac_cpp_err=
2799 fi
2800 else
2801 ac_cpp_err=yes
2802 fi
2803 if test -z "$ac_cpp_err"; then
2804 :
2805 else
2806 echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2808
2809 # Broken: fails on valid input.
2810 continue
2811 fi
2812 rm -f conftest.err conftest.$ac_ext
2813
2814 # OK, works on sane cases. Now check whether non-existent headers
2815 # can be detected and how.
2816 cat >conftest.$ac_ext <<_ACEOF
2817 /* confdefs.h. */
2818 _ACEOF
2819 cat confdefs.h >>conftest.$ac_ext
2820 cat >>conftest.$ac_ext <<_ACEOF
2821 /* end confdefs.h. */
2822 #include <ac_nonexistent.h>
2823 _ACEOF
2824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2826 ac_status=$?
2827 grep -v '^ *+' conftest.er1 >conftest.err
2828 rm -f conftest.er1
2829 cat conftest.err >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); } >/dev/null; then
2832 if test -s conftest.err; then
2833 ac_cpp_err=$ac_c_preproc_warn_flag
2834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2835 else
2836 ac_cpp_err=
2837 fi
2838 else
2839 ac_cpp_err=yes
2840 fi
2841 if test -z "$ac_cpp_err"; then
2842 # Broken: success on invalid input.
2843 continue
2844 else
2845 echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2847
2848 # Passes both tests.
2849 ac_preproc_ok=:
2850 break
2851 fi
2852 rm -f conftest.err conftest.$ac_ext
2853
2854 done
2855 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2856 rm -f conftest.err conftest.$ac_ext
2857 if $ac_preproc_ok; then
2858 :
2859 else
2860 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2861 See \`config.log' for more details." >&5
2862 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2863 See \`config.log' for more details." >&2;}
2864 { (exit 1); exit 1; }; }
2865 fi
2866
2867 ac_ext=c
2868 ac_cpp='$CPP $CPPFLAGS'
2869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2872
2873
2874 echo "$as_me:$LINENO: checking for egrep" >&5
2875 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2876 if test "${ac_cv_prog_egrep+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 else
2879 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2880 then ac_cv_prog_egrep='grep -E'
2881 else ac_cv_prog_egrep='egrep'
2882 fi
2883 fi
2884 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2885 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2886 EGREP=$ac_cv_prog_egrep
2887
2888
2889 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2890 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2891 if test "${ac_cv_header_stdc+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2893 else
2894 cat >conftest.$ac_ext <<_ACEOF
2895 /* confdefs.h. */
2896 _ACEOF
2897 cat confdefs.h >>conftest.$ac_ext
2898 cat >>conftest.$ac_ext <<_ACEOF
2899 /* end confdefs.h. */
2900 #include <stdlib.h>
2901 #include <stdarg.h>
2902 #include <string.h>
2903 #include <float.h>
2904
2905 int
2906 main ()
2907 {
2908
2909 ;
2910 return 0;
2911 }
2912 _ACEOF
2913 rm -f conftest.$ac_objext
2914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2915 (eval $ac_compile) 2>conftest.er1
2916 ac_status=$?
2917 grep -v '^ *+' conftest.er1 >conftest.err
2918 rm -f conftest.er1
2919 cat conftest.err >&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); } &&
2922 { ac_try='test -z "$ac_c_werror_flag"
2923 || test ! -s conftest.err'
2924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2925 (eval $ac_try) 2>&5
2926 ac_status=$?
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }; } &&
2929 { ac_try='test -s conftest.$ac_objext'
2930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2931 (eval $ac_try) 2>&5
2932 ac_status=$?
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }; }; then
2935 ac_cv_header_stdc=yes
2936 else
2937 echo "$as_me: failed program was:" >&5
2938 sed 's/^/| /' conftest.$ac_ext >&5
2939
2940 ac_cv_header_stdc=no
2941 fi
2942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2943
2944 if test $ac_cv_header_stdc = yes; then
2945 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2946 cat >conftest.$ac_ext <<_ACEOF
2947 /* confdefs.h. */
2948 _ACEOF
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h. */
2952 #include <string.h>
2953
2954 _ACEOF
2955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2956 $EGREP "memchr" >/dev/null 2>&1; then
2957 :
2958 else
2959 ac_cv_header_stdc=no
2960 fi
2961 rm -f conftest*
2962
2963 fi
2964
2965 if test $ac_cv_header_stdc = yes; then
2966 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2967 cat >conftest.$ac_ext <<_ACEOF
2968 /* confdefs.h. */
2969 _ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h. */
2973 #include <stdlib.h>
2974
2975 _ACEOF
2976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2977 $EGREP "free" >/dev/null 2>&1; then
2978 :
2979 else
2980 ac_cv_header_stdc=no
2981 fi
2982 rm -f conftest*
2983
2984 fi
2985
2986 if test $ac_cv_header_stdc = yes; then
2987 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2988 if test "$cross_compiling" = yes; then
2989 :
2990 else
2991 cat >conftest.$ac_ext <<_ACEOF
2992 /* confdefs.h. */
2993 _ACEOF
2994 cat confdefs.h >>conftest.$ac_ext
2995 cat >>conftest.$ac_ext <<_ACEOF
2996 /* end confdefs.h. */
2997 #include <ctype.h>
2998 #if ((' ' & 0x0FF) == 0x020)
2999 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3000 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3001 #else
3002 # define ISLOWER(c) \
3003 (('a' <= (c) && (c) <= 'i') \
3004 || ('j' <= (c) && (c) <= 'r') \
3005 || ('s' <= (c) && (c) <= 'z'))
3006 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3007 #endif
3008
3009 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3010 int
3011 main ()
3012 {
3013 int i;
3014 for (i = 0; i < 256; i++)
3015 if (XOR (islower (i), ISLOWER (i))
3016 || toupper (i) != TOUPPER (i))
3017 exit(2);
3018 exit (0);
3019 }
3020 _ACEOF
3021 rm -f conftest$ac_exeext
3022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3023 (eval $ac_link) 2>&5
3024 ac_status=$?
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028 (eval $ac_try) 2>&5
3029 ac_status=$?
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }; }; then
3032 :
3033 else
3034 echo "$as_me: program exited with status $ac_status" >&5
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3037
3038 ( exit $ac_status )
3039 ac_cv_header_stdc=no
3040 fi
3041 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3042 fi
3043 fi
3044 fi
3045 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3046 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3047 if test $ac_cv_header_stdc = yes; then
3048
3049 cat >>confdefs.h <<\_ACEOF
3050 #define STDC_HEADERS 1
3051 _ACEOF
3052
3053 fi
3054
3055 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3066 inttypes.h stdint.h unistd.h
3067 do
3068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3069 echo "$as_me:$LINENO: checking for $ac_header" >&5
3070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3073 else
3074 cat >conftest.$ac_ext <<_ACEOF
3075 /* confdefs.h. */
3076 _ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h. */
3080 $ac_includes_default
3081
3082 #include <$ac_header>
3083 _ACEOF
3084 rm -f conftest.$ac_objext
3085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3086 (eval $ac_compile) 2>conftest.er1
3087 ac_status=$?
3088 grep -v '^ *+' conftest.er1 >conftest.err
3089 rm -f conftest.er1
3090 cat conftest.err >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } &&
3093 { ac_try='test -z "$ac_c_werror_flag"
3094 || test ! -s conftest.err'
3095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3096 (eval $ac_try) 2>&5
3097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; } &&
3100 { ac_try='test -s conftest.$ac_objext'
3101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102 (eval $ac_try) 2>&5
3103 ac_status=$?
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; }; then
3106 eval "$as_ac_Header=yes"
3107 else
3108 echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3110
3111 eval "$as_ac_Header=no"
3112 fi
3113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3114 fi
3115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3118 cat >>confdefs.h <<_ACEOF
3119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3120 _ACEOF
3121
3122 fi
3123
3124 done
3125
3126
3127
3128
3129
3130
3131
3132 for ac_header in stdlib.h string.h strings.h unistd.h time.h
3133 do
3134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3136 echo "$as_me:$LINENO: checking for $ac_header" >&5
3137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3139 echo $ECHO_N "(cached) $ECHO_C" >&6
3140 fi
3141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3143 else
3144 # Is the header compilable?
3145 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3146 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3147 cat >conftest.$ac_ext <<_ACEOF
3148 /* confdefs.h. */
3149 _ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h. */
3153 $ac_includes_default
3154 #include <$ac_header>
3155 _ACEOF
3156 rm -f conftest.$ac_objext
3157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3158 (eval $ac_compile) 2>conftest.er1
3159 ac_status=$?
3160 grep -v '^ *+' conftest.er1 >conftest.err
3161 rm -f conftest.er1
3162 cat conftest.err >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); } &&
3165 { ac_try='test -z "$ac_c_werror_flag"
3166 || test ! -s conftest.err'
3167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3168 (eval $ac_try) 2>&5
3169 ac_status=$?
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; } &&
3172 { ac_try='test -s conftest.$ac_objext'
3173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3174 (eval $ac_try) 2>&5
3175 ac_status=$?
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; }; then
3178 ac_header_compiler=yes
3179 else
3180 echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3182
3183 ac_header_compiler=no
3184 fi
3185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3186 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3187 echo "${ECHO_T}$ac_header_compiler" >&6
3188
3189 # Is the header present?
3190 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3192 cat >conftest.$ac_ext <<_ACEOF
3193 /* confdefs.h. */
3194 _ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h. */
3198 #include <$ac_header>
3199 _ACEOF
3200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3202 ac_status=$?
3203 grep -v '^ *+' conftest.er1 >conftest.err
3204 rm -f conftest.er1
3205 cat conftest.err >&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); } >/dev/null; then
3208 if test -s conftest.err; then
3209 ac_cpp_err=$ac_c_preproc_warn_flag
3210 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3211 else
3212 ac_cpp_err=
3213 fi
3214 else
3215 ac_cpp_err=yes
3216 fi
3217 if test -z "$ac_cpp_err"; then
3218 ac_header_preproc=yes
3219 else
3220 echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3222
3223 ac_header_preproc=no
3224 fi
3225 rm -f conftest.err conftest.$ac_ext
3226 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3227 echo "${ECHO_T}$ac_header_preproc" >&6
3228
3229 # So? What about this header?
3230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3231 yes:no: )
3232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3235 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3236 ac_header_preproc=yes
3237 ;;
3238 no:yes:* )
3239 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3240 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3241 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3242 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3243 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3244 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3245 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3246 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3248 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3249 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3250 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3251 (
3252 cat <<\_ASBOX
3253 ## ------------------------------------------ ##
3254 ## Report this to the AC_PACKAGE_NAME lists. ##
3255 ## ------------------------------------------ ##
3256 _ASBOX
3257 ) |
3258 sed "s/^/$as_me: WARNING: /" >&2
3259 ;;
3260 esac
3261 echo "$as_me:$LINENO: checking for $ac_header" >&5
3262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3265 else
3266 eval "$as_ac_Header=\$ac_header_preproc"
3267 fi
3268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3270
3271 fi
3272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3273 cat >>confdefs.h <<_ACEOF
3274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3275 _ACEOF
3276
3277 fi
3278
3279 done
3280
3281
3282
3283 for ac_header in sys/time.h sys/resource.h
3284 do
3285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3287 echo "$as_me:$LINENO: checking for $ac_header" >&5
3288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 fi
3292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3294 else
3295 # Is the header compilable?
3296 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3297 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3298 cat >conftest.$ac_ext <<_ACEOF
3299 /* confdefs.h. */
3300 _ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3304 $ac_includes_default
3305 #include <$ac_header>
3306 _ACEOF
3307 rm -f conftest.$ac_objext
3308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3309 (eval $ac_compile) 2>conftest.er1
3310 ac_status=$?
3311 grep -v '^ *+' conftest.er1 >conftest.err
3312 rm -f conftest.er1
3313 cat conftest.err >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } &&
3316 { ac_try='test -z "$ac_c_werror_flag"
3317 || test ! -s conftest.err'
3318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3319 (eval $ac_try) 2>&5
3320 ac_status=$?
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; } &&
3323 { ac_try='test -s conftest.$ac_objext'
3324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325 (eval $ac_try) 2>&5
3326 ac_status=$?
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; }; then
3329 ac_header_compiler=yes
3330 else
3331 echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3333
3334 ac_header_compiler=no
3335 fi
3336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3337 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3338 echo "${ECHO_T}$ac_header_compiler" >&6
3339
3340 # Is the header present?
3341 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3343 cat >conftest.$ac_ext <<_ACEOF
3344 /* confdefs.h. */
3345 _ACEOF
3346 cat confdefs.h >>conftest.$ac_ext
3347 cat >>conftest.$ac_ext <<_ACEOF
3348 /* end confdefs.h. */
3349 #include <$ac_header>
3350 _ACEOF
3351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3353 ac_status=$?
3354 grep -v '^ *+' conftest.er1 >conftest.err
3355 rm -f conftest.er1
3356 cat conftest.err >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } >/dev/null; then
3359 if test -s conftest.err; then
3360 ac_cpp_err=$ac_c_preproc_warn_flag
3361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3362 else
3363 ac_cpp_err=
3364 fi
3365 else
3366 ac_cpp_err=yes
3367 fi
3368 if test -z "$ac_cpp_err"; then
3369 ac_header_preproc=yes
3370 else
3371 echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3373
3374 ac_header_preproc=no
3375 fi
3376 rm -f conftest.err conftest.$ac_ext
3377 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3378 echo "${ECHO_T}$ac_header_preproc" >&6
3379
3380 # So? What about this header?
3381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3382 yes:no: )
3383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3387 ac_header_preproc=yes
3388 ;;
3389 no:yes:* )
3390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3397 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3402 (
3403 cat <<\_ASBOX
3404 ## ------------------------------------------ ##
3405 ## Report this to the AC_PACKAGE_NAME lists. ##
3406 ## ------------------------------------------ ##
3407 _ASBOX
3408 ) |
3409 sed "s/^/$as_me: WARNING: /" >&2
3410 ;;
3411 esac
3412 echo "$as_me:$LINENO: checking for $ac_header" >&5
3413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 else
3417 eval "$as_ac_Header=\$ac_header_preproc"
3418 fi
3419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3421
3422 fi
3423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3424 cat >>confdefs.h <<_ACEOF
3425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3426 _ACEOF
3427
3428 fi
3429
3430 done
3431
3432
3433
3434 for ac_header in fcntl.h fpu_control.h
3435 do
3436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3438 echo "$as_me:$LINENO: checking for $ac_header" >&5
3439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 fi
3443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3445 else
3446 # Is the header compilable?
3447 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3449 cat >conftest.$ac_ext <<_ACEOF
3450 /* confdefs.h. */
3451 _ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3455 $ac_includes_default
3456 #include <$ac_header>
3457 _ACEOF
3458 rm -f conftest.$ac_objext
3459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3460 (eval $ac_compile) 2>conftest.er1
3461 ac_status=$?
3462 grep -v '^ *+' conftest.er1 >conftest.err
3463 rm -f conftest.er1
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } &&
3467 { ac_try='test -z "$ac_c_werror_flag"
3468 || test ! -s conftest.err'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 (eval $ac_try) 2>&5
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; } &&
3474 { ac_try='test -s conftest.$ac_objext'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476 (eval $ac_try) 2>&5
3477 ac_status=$?
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; }; then
3480 ac_header_compiler=yes
3481 else
3482 echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3484
3485 ac_header_compiler=no
3486 fi
3487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3488 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3489 echo "${ECHO_T}$ac_header_compiler" >&6
3490
3491 # Is the header present?
3492 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3494 cat >conftest.$ac_ext <<_ACEOF
3495 /* confdefs.h. */
3496 _ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h. */
3500 #include <$ac_header>
3501 _ACEOF
3502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3504 ac_status=$?
3505 grep -v '^ *+' conftest.er1 >conftest.err
3506 rm -f conftest.er1
3507 cat conftest.err >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } >/dev/null; then
3510 if test -s conftest.err; then
3511 ac_cpp_err=$ac_c_preproc_warn_flag
3512 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3513 else
3514 ac_cpp_err=
3515 fi
3516 else
3517 ac_cpp_err=yes
3518 fi
3519 if test -z "$ac_cpp_err"; then
3520 ac_header_preproc=yes
3521 else
3522 echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3524
3525 ac_header_preproc=no
3526 fi
3527 rm -f conftest.err conftest.$ac_ext
3528 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3529 echo "${ECHO_T}$ac_header_preproc" >&6
3530
3531 # So? What about this header?
3532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3533 yes:no: )
3534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3537 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3538 ac_header_preproc=yes
3539 ;;
3540 no:yes:* )
3541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3544 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3545 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3546 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3547 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3548 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3551 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3552 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3553 (
3554 cat <<\_ASBOX
3555 ## ------------------------------------------ ##
3556 ## Report this to the AC_PACKAGE_NAME lists. ##
3557 ## ------------------------------------------ ##
3558 _ASBOX
3559 ) |
3560 sed "s/^/$as_me: WARNING: /" >&2
3561 ;;
3562 esac
3563 echo "$as_me:$LINENO: checking for $ac_header" >&5
3564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 else
3568 eval "$as_ac_Header=\$ac_header_preproc"
3569 fi
3570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3572
3573 fi
3574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3575 cat >>confdefs.h <<_ACEOF
3576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3577 _ACEOF
3578
3579 fi
3580
3581 done
3582
3583
3584
3585
3586 for ac_header in dlfcn.h errno.h sys/stat.h
3587 do
3588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3590 echo "$as_me:$LINENO: checking for $ac_header" >&5
3591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3594 fi
3595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3597 else
3598 # Is the header compilable?
3599 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3600 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3601 cat >conftest.$ac_ext <<_ACEOF
3602 /* confdefs.h. */
3603 _ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h. */
3607 $ac_includes_default
3608 #include <$ac_header>
3609 _ACEOF
3610 rm -f conftest.$ac_objext
3611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3612 (eval $ac_compile) 2>conftest.er1
3613 ac_status=$?
3614 grep -v '^ *+' conftest.er1 >conftest.err
3615 rm -f conftest.er1
3616 cat conftest.err >&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } &&
3619 { ac_try='test -z "$ac_c_werror_flag"
3620 || test ! -s conftest.err'
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 (eval $ac_try) 2>&5
3623 ac_status=$?
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; } &&
3626 { ac_try='test -s conftest.$ac_objext'
3627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628 (eval $ac_try) 2>&5
3629 ac_status=$?
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }; }; then
3632 ac_header_compiler=yes
3633 else
3634 echo "$as_me: failed program was:" >&5
3635 sed 's/^/| /' conftest.$ac_ext >&5
3636
3637 ac_header_compiler=no
3638 fi
3639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3640 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3641 echo "${ECHO_T}$ac_header_compiler" >&6
3642
3643 # Is the header present?
3644 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3646 cat >conftest.$ac_ext <<_ACEOF
3647 /* confdefs.h. */
3648 _ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h. */
3652 #include <$ac_header>
3653 _ACEOF
3654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3656 ac_status=$?
3657 grep -v '^ *+' conftest.er1 >conftest.err
3658 rm -f conftest.er1
3659 cat conftest.err >&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); } >/dev/null; then
3662 if test -s conftest.err; then
3663 ac_cpp_err=$ac_c_preproc_warn_flag
3664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3665 else
3666 ac_cpp_err=
3667 fi
3668 else
3669 ac_cpp_err=yes
3670 fi
3671 if test -z "$ac_cpp_err"; then
3672 ac_header_preproc=yes
3673 else
3674 echo "$as_me: failed program was:" >&5
3675 sed 's/^/| /' conftest.$ac_ext >&5
3676
3677 ac_header_preproc=no
3678 fi
3679 rm -f conftest.err conftest.$ac_ext
3680 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3681 echo "${ECHO_T}$ac_header_preproc" >&6
3682
3683 # So? What about this header?
3684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3685 yes:no: )
3686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3690 ac_header_preproc=yes
3691 ;;
3692 no:yes:* )
3693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3700 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3705 (
3706 cat <<\_ASBOX
3707 ## ------------------------------------------ ##
3708 ## Report this to the AC_PACKAGE_NAME lists. ##
3709 ## ------------------------------------------ ##
3710 _ASBOX
3711 ) |
3712 sed "s/^/$as_me: WARNING: /" >&2
3713 ;;
3714 esac
3715 echo "$as_me:$LINENO: checking for $ac_header" >&5
3716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 else
3720 eval "$as_ac_Header=\$ac_header_preproc"
3721 fi
3722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3724
3725 fi
3726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3727 cat >>confdefs.h <<_ACEOF
3728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3729 _ACEOF
3730
3731 fi
3732
3733 done
3734
3735
3736
3737
3738
3739 for ac_func in getrusage time sigaction __setfpucw
3740 do
3741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3742 echo "$as_me:$LINENO: checking for $ac_func" >&5
3743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3744 if eval "test \"\${$as_ac_var+set}\" = set"; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3746 else
3747 cat >conftest.$ac_ext <<_ACEOF
3748 /* confdefs.h. */
3749 _ACEOF
3750 cat confdefs.h >>conftest.$ac_ext
3751 cat >>conftest.$ac_ext <<_ACEOF
3752 /* end confdefs.h. */
3753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3755 #define $ac_func innocuous_$ac_func
3756
3757 /* System header to define __stub macros and hopefully few prototypes,
3758 which can conflict with char $ac_func (); below.
3759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3760 <limits.h> exists even on freestanding compilers. */
3761
3762 #ifdef __STDC__
3763 # include <limits.h>
3764 #else
3765 # include <assert.h>
3766 #endif
3767
3768 #undef $ac_func
3769
3770 /* Override any gcc2 internal prototype to avoid an error. */
3771 #ifdef __cplusplus
3772 extern "C"
3773 {
3774 #endif
3775 /* We use char because int might match the return type of a gcc2
3776 builtin and then its argument prototype would still apply. */
3777 char $ac_func ();
3778 /* The GNU C library defines this for functions which it implements
3779 to always fail with ENOSYS. Some functions are actually named
3780 something starting with __ and the normal name is an alias. */
3781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3782 choke me
3783 #else
3784 char (*f) () = $ac_func;
3785 #endif
3786 #ifdef __cplusplus
3787 }
3788 #endif
3789
3790 int
3791 main ()
3792 {
3793 return f != $ac_func;
3794 ;
3795 return 0;
3796 }
3797 _ACEOF
3798 rm -f conftest.$ac_objext conftest$ac_exeext
3799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3800 (eval $ac_link) 2>conftest.er1
3801 ac_status=$?
3802 grep -v '^ *+' conftest.er1 >conftest.err
3803 rm -f conftest.er1
3804 cat conftest.err >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); } &&
3807 { ac_try='test -z "$ac_c_werror_flag"
3808 || test ! -s conftest.err'
3809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810 (eval $ac_try) 2>&5
3811 ac_status=$?
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; } &&
3814 { ac_try='test -s conftest$ac_exeext'
3815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816 (eval $ac_try) 2>&5
3817 ac_status=$?
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); }; }; then
3820 eval "$as_ac_var=yes"
3821 else
3822 echo "$as_me: failed program was:" >&5
3823 sed 's/^/| /' conftest.$ac_ext >&5
3824
3825 eval "$as_ac_var=no"
3826 fi
3827 rm -f conftest.err conftest.$ac_objext \
3828 conftest$ac_exeext conftest.$ac_ext
3829 fi
3830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3832 if test `eval echo '${'$as_ac_var'}'` = yes; then
3833 cat >>confdefs.h <<_ACEOF
3834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3835 _ACEOF
3836
3837 fi
3838 done
3839
3840
3841 # Check for socket libraries
3842
3843 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
3844 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
3845 if test "${ac_cv_lib_socket_bind+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848 ac_check_lib_save_LIBS=$LIBS
3849 LIBS="-lsocket $LIBS"
3850 cat >conftest.$ac_ext <<_ACEOF
3851 /* confdefs.h. */
3852 _ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3856
3857 /* Override any gcc2 internal prototype to avoid an error. */
3858 #ifdef __cplusplus
3859 extern "C"
3860 #endif
3861 /* We use char because int might match the return type of a gcc2
3862 builtin and then its argument prototype would still apply. */
3863 char bind ();
3864 int
3865 main ()
3866 {
3867 bind ();
3868 ;
3869 return 0;
3870 }
3871 _ACEOF
3872 rm -f conftest.$ac_objext conftest$ac_exeext
3873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3874 (eval $ac_link) 2>conftest.er1
3875 ac_status=$?
3876 grep -v '^ *+' conftest.er1 >conftest.err
3877 rm -f conftest.er1
3878 cat conftest.err >&5
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); } &&
3881 { ac_try='test -z "$ac_c_werror_flag"
3882 || test ! -s conftest.err'
3883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3884 (eval $ac_try) 2>&5
3885 ac_status=$?
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); }; } &&
3888 { ac_try='test -s conftest$ac_exeext'
3889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890 (eval $ac_try) 2>&5
3891 ac_status=$?
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); }; }; then
3894 ac_cv_lib_socket_bind=yes
3895 else
3896 echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3898
3899 ac_cv_lib_socket_bind=no
3900 fi
3901 rm -f conftest.err conftest.$ac_objext \
3902 conftest$ac_exeext conftest.$ac_ext
3903 LIBS=$ac_check_lib_save_LIBS
3904 fi
3905 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
3906 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
3907 if test $ac_cv_lib_socket_bind = yes; then
3908 cat >>confdefs.h <<_ACEOF
3909 #define HAVE_LIBSOCKET 1
3910 _ACEOF
3911
3912 LIBS="-lsocket $LIBS"
3913
3914 fi
3915
3916
3917 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3918 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3919 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3921 else
3922 ac_check_lib_save_LIBS=$LIBS
3923 LIBS="-lnsl $LIBS"
3924 cat >conftest.$ac_ext <<_ACEOF
3925 /* confdefs.h. */
3926 _ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h. */
3930
3931 /* Override any gcc2 internal prototype to avoid an error. */
3932 #ifdef __cplusplus
3933 extern "C"
3934 #endif
3935 /* We use char because int might match the return type of a gcc2
3936 builtin and then its argument prototype would still apply. */
3937 char gethostbyname ();
3938 int
3939 main ()
3940 {
3941 gethostbyname ();
3942 ;
3943 return 0;
3944 }
3945 _ACEOF
3946 rm -f conftest.$ac_objext conftest$ac_exeext
3947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3948 (eval $ac_link) 2>conftest.er1
3949 ac_status=$?
3950 grep -v '^ *+' conftest.er1 >conftest.err
3951 rm -f conftest.er1
3952 cat conftest.err >&5
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); } &&
3955 { ac_try='test -z "$ac_c_werror_flag"
3956 || test ! -s conftest.err'
3957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958 (eval $ac_try) 2>&5
3959 ac_status=$?
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }; } &&
3962 { ac_try='test -s conftest$ac_exeext'
3963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964 (eval $ac_try) 2>&5
3965 ac_status=$?
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); }; }; then
3968 ac_cv_lib_nsl_gethostbyname=yes
3969 else
3970 echo "$as_me: failed program was:" >&5
3971 sed 's/^/| /' conftest.$ac_ext >&5
3972
3973 ac_cv_lib_nsl_gethostbyname=no
3974 fi
3975 rm -f conftest.err conftest.$ac_objext \
3976 conftest$ac_exeext conftest.$ac_ext
3977 LIBS=$ac_check_lib_save_LIBS
3978 fi
3979 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3980 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3981 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3982 cat >>confdefs.h <<_ACEOF
3983 #define HAVE_LIBNSL 1
3984 _ACEOF
3985
3986 LIBS="-lnsl $LIBS"
3987
3988 fi
3989
3990
3991 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
3992 # using the same condition.
3993 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
3994 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
3995 if test "${ac_cv_search_zlibVersion+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 else
3998 ac_func_search_save_LIBS=$LIBS
3999 ac_cv_search_zlibVersion=no
4000 cat >conftest.$ac_ext <<_ACEOF
4001 /* confdefs.h. */
4002 _ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4006
4007 /* Override any gcc2 internal prototype to avoid an error. */
4008 #ifdef __cplusplus
4009 extern "C"
4010 #endif
4011 /* We use char because int might match the return type of a gcc2
4012 builtin and then its argument prototype would still apply. */
4013 char zlibVersion ();
4014 int
4015 main ()
4016 {
4017 zlibVersion ();
4018 ;
4019 return 0;
4020 }
4021 _ACEOF
4022 rm -f conftest.$ac_objext conftest$ac_exeext
4023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4024 (eval $ac_link) 2>conftest.er1
4025 ac_status=$?
4026 grep -v '^ *+' conftest.er1 >conftest.err
4027 rm -f conftest.er1
4028 cat conftest.err >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } &&
4031 { ac_try='test -z "$ac_c_werror_flag"
4032 || test ! -s conftest.err'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034 (eval $ac_try) 2>&5
4035 ac_status=$?
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; } &&
4038 { ac_try='test -s conftest$ac_exeext'
4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040 (eval $ac_try) 2>&5
4041 ac_status=$?
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; }; then
4044 ac_cv_search_zlibVersion="none required"
4045 else
4046 echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4048
4049 fi
4050 rm -f conftest.err conftest.$ac_objext \
4051 conftest$ac_exeext conftest.$ac_ext
4052 if test "$ac_cv_search_zlibVersion" = no; then
4053 for ac_lib in z; do
4054 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4055 cat >conftest.$ac_ext <<_ACEOF
4056 /* confdefs.h. */
4057 _ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4061
4062 /* Override any gcc2 internal prototype to avoid an error. */
4063 #ifdef __cplusplus
4064 extern "C"
4065 #endif
4066 /* We use char because int might match the return type of a gcc2
4067 builtin and then its argument prototype would still apply. */
4068 char zlibVersion ();
4069 int
4070 main ()
4071 {
4072 zlibVersion ();
4073 ;
4074 return 0;
4075 }
4076 _ACEOF
4077 rm -f conftest.$ac_objext conftest$ac_exeext
4078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4079 (eval $ac_link) 2>conftest.er1
4080 ac_status=$?
4081 grep -v '^ *+' conftest.er1 >conftest.err
4082 rm -f conftest.er1
4083 cat conftest.err >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } &&
4086 { ac_try='test -z "$ac_c_werror_flag"
4087 || test ! -s conftest.err'
4088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089 (eval $ac_try) 2>&5
4090 ac_status=$?
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; } &&
4093 { ac_try='test -s conftest$ac_exeext'
4094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4095 (eval $ac_try) 2>&5
4096 ac_status=$?
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; }; then
4099 ac_cv_search_zlibVersion="-l$ac_lib"
4100 break
4101 else
4102 echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4104
4105 fi
4106 rm -f conftest.err conftest.$ac_objext \
4107 conftest$ac_exeext conftest.$ac_ext
4108 done
4109 fi
4110 LIBS=$ac_func_search_save_LIBS
4111 fi
4112 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
4113 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
4114 if test "$ac_cv_search_zlibVersion" != no; then
4115 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
4116
4117 for ac_header in zlib.h
4118 do
4119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4121 echo "$as_me:$LINENO: checking for $ac_header" >&5
4122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 fi
4126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4128 else
4129 # Is the header compilable?
4130 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4132 cat >conftest.$ac_ext <<_ACEOF
4133 /* confdefs.h. */
4134 _ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4138 $ac_includes_default
4139 #include <$ac_header>
4140 _ACEOF
4141 rm -f conftest.$ac_objext
4142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4143 (eval $ac_compile) 2>conftest.er1
4144 ac_status=$?
4145 grep -v '^ *+' conftest.er1 >conftest.err
4146 rm -f conftest.er1
4147 cat conftest.err >&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } &&
4150 { ac_try='test -z "$ac_c_werror_flag"
4151 || test ! -s conftest.err'
4152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4153 (eval $ac_try) 2>&5
4154 ac_status=$?
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); }; } &&
4157 { ac_try='test -s conftest.$ac_objext'
4158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159 (eval $ac_try) 2>&5
4160 ac_status=$?
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; }; then
4163 ac_header_compiler=yes
4164 else
4165 echo "$as_me: failed program was:" >&5
4166 sed 's/^/| /' conftest.$ac_ext >&5
4167
4168 ac_header_compiler=no
4169 fi
4170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4171 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4172 echo "${ECHO_T}$ac_header_compiler" >&6
4173
4174 # Is the header present?
4175 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4177 cat >conftest.$ac_ext <<_ACEOF
4178 /* confdefs.h. */
4179 _ACEOF
4180 cat confdefs.h >>conftest.$ac_ext
4181 cat >>conftest.$ac_ext <<_ACEOF
4182 /* end confdefs.h. */
4183 #include <$ac_header>
4184 _ACEOF
4185 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4186 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4187 ac_status=$?
4188 grep -v '^ *+' conftest.er1 >conftest.err
4189 rm -f conftest.er1
4190 cat conftest.err >&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); } >/dev/null; then
4193 if test -s conftest.err; then
4194 ac_cpp_err=$ac_c_preproc_warn_flag
4195 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4196 else
4197 ac_cpp_err=
4198 fi
4199 else
4200 ac_cpp_err=yes
4201 fi
4202 if test -z "$ac_cpp_err"; then
4203 ac_header_preproc=yes
4204 else
4205 echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4207
4208 ac_header_preproc=no
4209 fi
4210 rm -f conftest.err conftest.$ac_ext
4211 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4212 echo "${ECHO_T}$ac_header_preproc" >&6
4213
4214 # So? What about this header?
4215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4216 yes:no: )
4217 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4220 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4221 ac_header_preproc=yes
4222 ;;
4223 no:yes:* )
4224 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4225 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4226 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4227 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4228 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4229 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4230 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4231 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4233 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4234 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4235 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4236 (
4237 cat <<\_ASBOX
4238 ## ------------------------------------------ ##
4239 ## Report this to the AC_PACKAGE_NAME lists. ##
4240 ## ------------------------------------------ ##
4241 _ASBOX
4242 ) |
4243 sed "s/^/$as_me: WARNING: /" >&2
4244 ;;
4245 esac
4246 echo "$as_me:$LINENO: checking for $ac_header" >&5
4247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 else
4251 eval "$as_ac_Header=\$ac_header_preproc"
4252 fi
4253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4255
4256 fi
4257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4258 cat >>confdefs.h <<_ACEOF
4259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4260 _ACEOF
4261
4262 fi
4263
4264 done
4265
4266 fi
4267
4268
4269 . ${srcdir}/../../bfd/configure.host
4270
4271
4272
4273 USE_MAINTAINER_MODE=no
4274 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4275 if test "${enable_maintainer_mode+set}" = set; then
4276 enableval="$enable_maintainer_mode"
4277 case "${enableval}" in
4278 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
4279 no) MAINT="#" ;;
4280 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
4281 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
4282 { (exit 1); exit 1; }; }; MAINT="#" ;;
4283 esac
4284 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
4285 echo "Setting maintainer mode" 6>&1
4286 fi
4287 else
4288 MAINT="#"
4289 fi;
4290
4291
4292 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
4293 if test "${enable_sim_bswap+set}" = set; then
4294 enableval="$enable_sim_bswap"
4295 case "${enableval}" in
4296 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
4297 no) sim_bswap="-DWITH_BSWAP=0";;
4298 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
4299 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
4300 { (exit 1); exit 1; }; }; sim_bswap="";;
4301 esac
4302 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
4303 echo "Setting bswap flags = $sim_bswap" 6>&1
4304 fi
4305 else
4306 sim_bswap=""
4307 fi;
4308
4309
4310 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
4311 if test "${enable_sim_cflags+set}" = set; then
4312 enableval="$enable_sim_cflags"
4313 case "${enableval}" in
4314 yes) sim_cflags="-O2 -fomit-frame-pointer";;
4315 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
4316 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
4317 { (exit 1); exit 1; }; }; sim_cflags="";;
4318 no) sim_cflags="";;
4319 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4320 esac
4321 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
4322 echo "Setting sim cflags = $sim_cflags" 6>&1
4323 fi
4324 else
4325 sim_cflags=""
4326 fi;
4327
4328
4329 # Check whether --enable-sim-debug or --disable-sim-debug was given.
4330 if test "${enable_sim_debug+set}" = set; then
4331 enableval="$enable_sim_debug"
4332 case "${enableval}" in
4333 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
4334 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
4335 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
4336 esac
4337 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
4338 echo "Setting sim debug = $sim_debug" 6>&1
4339 fi
4340 else
4341 sim_debug=""
4342 fi;
4343
4344
4345 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
4346 if test "${enable_sim_stdio+set}" = set; then
4347 enableval="$enable_sim_stdio"
4348 case "${enableval}" in
4349 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
4350 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
4351 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
4352 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
4353 { (exit 1); exit 1; }; }; sim_stdio="";;
4354 esac
4355 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
4356 echo "Setting stdio flags = $sim_stdio" 6>&1
4357 fi
4358 else
4359 sim_stdio=""
4360 fi;
4361
4362
4363 # Check whether --enable-sim-trace or --disable-sim-trace was given.
4364 if test "${enable_sim_trace+set}" = set; then
4365 enableval="$enable_sim_trace"
4366 case "${enableval}" in
4367 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
4368 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
4369 [-0-9]*)
4370 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4371 [a-z]*)
4372 sim_trace=""
4373 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4374 if test x"$sim_trace" = x; then
4375 sim_trace="-DWITH_TRACE='(TRACE_$x"
4376 else
4377 sim_trace="${sim_trace}|TRACE_$x"
4378 fi
4379 done
4380 sim_trace="$sim_trace)'" ;;
4381 esac
4382 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
4383 echo "Setting sim trace = $sim_trace" 6>&1
4384 fi
4385 else
4386 sim_trace=""
4387 fi;
4388
4389
4390 # Check whether --enable-sim-profile or --disable-sim-profile was given.
4391 if test "${enable_sim_profile+set}" = set; then
4392 enableval="$enable_sim_profile"
4393 case "${enableval}" in
4394 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
4395 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
4396 [-0-9]*)
4397 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4398 [a-z]*)
4399 sim_profile=""
4400 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4401 if test x"$sim_profile" = x; then
4402 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
4403 else
4404 sim_profile="${sim_profile}|PROFILE_$x"
4405 fi
4406 done
4407 sim_profile="$sim_profile)'" ;;
4408 esac
4409 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
4410 echo "Setting sim profile = $sim_profile" 6>&1
4411 fi
4412 else
4413 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
4414 fi;
4415
4416
4417
4418 # Check whether --with-pkgversion or --without-pkgversion was given.
4419 if test "${with_pkgversion+set}" = set; then
4420 withval="$with_pkgversion"
4421 case "$withval" in
4422 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
4423 echo "$as_me: error: package version not specified" >&2;}
4424 { (exit 1); exit 1; }; } ;;
4425 no) PKGVERSION= ;;
4426 *) PKGVERSION="($withval) " ;;
4427 esac
4428 else
4429 PKGVERSION="(GDB) "
4430
4431 fi;
4432
4433
4434
4435
4436 # Check whether --with-bugurl or --without-bugurl was given.
4437 if test "${with_bugurl+set}" = set; then
4438 withval="$with_bugurl"
4439 case "$withval" in
4440 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
4441 echo "$as_me: error: bug URL not specified" >&2;}
4442 { (exit 1); exit 1; }; } ;;
4443 no) BUGURL=
4444 ;;
4445 *) BUGURL="$withval"
4446 ;;
4447 esac
4448 else
4449 BUGURL="http://www.gnu.org/software/gdb/bugs/"
4450
4451 fi;
4452 case ${BUGURL} in
4453 "")
4454 REPORT_BUGS_TO=
4455 REPORT_BUGS_TEXI=
4456 ;;
4457 *)
4458 REPORT_BUGS_TO="<$BUGURL>"
4459 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4460 ;;
4461 esac;
4462
4463
4464
4465
4466 cat >>confdefs.h <<_ACEOF
4467 #define PKGVERSION "$PKGVERSION"
4468 _ACEOF
4469
4470
4471 cat >>confdefs.h <<_ACEOF
4472 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4473 _ACEOF
4474
4475
4476 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4477 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4478 if test "${ac_cv_type_signal+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481 cat >conftest.$ac_ext <<_ACEOF
4482 /* confdefs.h. */
4483 _ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h. */
4487 #include <sys/types.h>
4488 #include <signal.h>
4489 #ifdef signal
4490 # undef signal
4491 #endif
4492 #ifdef __cplusplus
4493 extern "C" void (*signal (int, void (*)(int)))(int);
4494 #else
4495 void (*signal ()) ();
4496 #endif
4497
4498 int
4499 main ()
4500 {
4501 int i;
4502 ;
4503 return 0;
4504 }
4505 _ACEOF
4506 rm -f conftest.$ac_objext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4508 (eval $ac_compile) 2>conftest.er1
4509 ac_status=$?
4510 grep -v '^ *+' conftest.er1 >conftest.err
4511 rm -f conftest.er1
4512 cat conftest.err >&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } &&
4515 { ac_try='test -z "$ac_c_werror_flag"
4516 || test ! -s conftest.err'
4517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518 (eval $ac_try) 2>&5
4519 ac_status=$?
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; } &&
4522 { ac_try='test -s conftest.$ac_objext'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524 (eval $ac_try) 2>&5
4525 ac_status=$?
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; }; then
4528 ac_cv_type_signal=void
4529 else
4530 echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4532
4533 ac_cv_type_signal=int
4534 fi
4535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536 fi
4537 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4538 echo "${ECHO_T}$ac_cv_type_signal" >&6
4539
4540 cat >>confdefs.h <<_ACEOF
4541 #define RETSIGTYPE $ac_cv_type_signal
4542 _ACEOF
4543
4544
4545
4546
4547
4548 sim_link_files=
4549 sim_link_links=
4550
4551 sim_link_links=tconfig.h
4552 if test -f ${srcdir}/tconfig.in
4553 then
4554 sim_link_files=tconfig.in
4555 else
4556 sim_link_files=../common/tconfig.in
4557 fi
4558
4559 # targ-vals.def points to the libc macro description file.
4560 case "${target}" in
4561 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
4562 esac
4563 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
4564 sim_link_links="${sim_link_links} targ-vals.def"
4565
4566
4567 # Put a useful copy of CPP_FOR_TARGET in Makefile.
4568 # This is only used to build the target values header files. These files are
4569 # shipped with distributions so CPP_FOR_TARGET only needs to work in
4570 # developer's trees. This value is borrowed from ../../Makefile.in.
4571 CPP_FOR_TARGET="\` \
4572 if test -f \$\${rootme}/../../gcc/Makefile ; then \
4573 if test -f \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/Makefile ; then \
4574 echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/ -idirafter \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/targ-include -idirafter \$(srcroot)/newlib/libc/include -nostdinc; \
4575 else \
4576 echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/; \
4577 fi; \
4578 else \
4579 if test '\$(host_canonical)' = '\$(target_canonical)' ; then \
4580 echo \$(CC); \
4581 else \
4582 t='\$(program_transform_name)'; echo gcc | sed -e 's/x/x/' \$\$t; \
4583 fi; \
4584 fi\` -E"
4585
4586
4587 # Set TARGET_SUBDIR, needed by CPP_FOR_TARGET.
4588 if test x"${host}" = x"${target}" ; then
4589 TARGET_SUBDIR="."
4590 else
4591 TARGET_SUBDIR=${target_alias}
4592 fi
4593
4594
4595 # These aren't all needed yet, but will be eventually.
4596
4597
4598
4599
4600
4601
4602
4603 for ac_header in stdlib.h string.h strings.h time.h sys/times.h sys/stat.h sys/mman.h
4604 do
4605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4607 echo "$as_me:$LINENO: checking for $ac_header" >&5
4608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 fi
4612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4614 else
4615 # Is the header compilable?
4616 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4618 cat >conftest.$ac_ext <<_ACEOF
4619 /* confdefs.h. */
4620 _ACEOF
4621 cat confdefs.h >>conftest.$ac_ext
4622 cat >>conftest.$ac_ext <<_ACEOF
4623 /* end confdefs.h. */
4624 $ac_includes_default
4625 #include <$ac_header>
4626 _ACEOF
4627 rm -f conftest.$ac_objext
4628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4629 (eval $ac_compile) 2>conftest.er1
4630 ac_status=$?
4631 grep -v '^ *+' conftest.er1 >conftest.err
4632 rm -f conftest.er1
4633 cat conftest.err >&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); } &&
4636 { ac_try='test -z "$ac_c_werror_flag"
4637 || test ! -s conftest.err'
4638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639 (eval $ac_try) 2>&5
4640 ac_status=$?
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; } &&
4643 { ac_try='test -s conftest.$ac_objext'
4644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645 (eval $ac_try) 2>&5
4646 ac_status=$?
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; }; then
4649 ac_header_compiler=yes
4650 else
4651 echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.$ac_ext >&5
4653
4654 ac_header_compiler=no
4655 fi
4656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4657 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4658 echo "${ECHO_T}$ac_header_compiler" >&6
4659
4660 # Is the header present?
4661 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4663 cat >conftest.$ac_ext <<_ACEOF
4664 /* confdefs.h. */
4665 _ACEOF
4666 cat confdefs.h >>conftest.$ac_ext
4667 cat >>conftest.$ac_ext <<_ACEOF
4668 /* end confdefs.h. */
4669 #include <$ac_header>
4670 _ACEOF
4671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4673 ac_status=$?
4674 grep -v '^ *+' conftest.er1 >conftest.err
4675 rm -f conftest.er1
4676 cat conftest.err >&5
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); } >/dev/null; then
4679 if test -s conftest.err; then
4680 ac_cpp_err=$ac_c_preproc_warn_flag
4681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4682 else
4683 ac_cpp_err=
4684 fi
4685 else
4686 ac_cpp_err=yes
4687 fi
4688 if test -z "$ac_cpp_err"; then
4689 ac_header_preproc=yes
4690 else
4691 echo "$as_me: failed program was:" >&5
4692 sed 's/^/| /' conftest.$ac_ext >&5
4693
4694 ac_header_preproc=no
4695 fi
4696 rm -f conftest.err conftest.$ac_ext
4697 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4698 echo "${ECHO_T}$ac_header_preproc" >&6
4699
4700 # So? What about this header?
4701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4702 yes:no: )
4703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4707 ac_header_preproc=yes
4708 ;;
4709 no:yes:* )
4710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4713 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4717 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4722 (
4723 cat <<\_ASBOX
4724 ## ------------------------------------------ ##
4725 ## Report this to the AC_PACKAGE_NAME lists. ##
4726 ## ------------------------------------------ ##
4727 _ASBOX
4728 ) |
4729 sed "s/^/$as_me: WARNING: /" >&2
4730 ;;
4731 esac
4732 echo "$as_me:$LINENO: checking for $ac_header" >&5
4733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4736 else
4737 eval "$as_ac_Header=\$ac_header_preproc"
4738 fi
4739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4741
4742 fi
4743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4744 cat >>confdefs.h <<_ACEOF
4745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4746 _ACEOF
4747
4748 fi
4749
4750 done
4751
4752
4753
4754
4755
4756
4757 for ac_func in mmap munmap lstat truncate ftruncate
4758 do
4759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4760 echo "$as_me:$LINENO: checking for $ac_func" >&5
4761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4762 if eval "test \"\${$as_ac_var+set}\" = set"; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 else
4765 cat >conftest.$ac_ext <<_ACEOF
4766 /* confdefs.h. */
4767 _ACEOF
4768 cat confdefs.h >>conftest.$ac_ext
4769 cat >>conftest.$ac_ext <<_ACEOF
4770 /* end confdefs.h. */
4771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4773 #define $ac_func innocuous_$ac_func
4774
4775 /* System header to define __stub macros and hopefully few prototypes,
4776 which can conflict with char $ac_func (); below.
4777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4778 <limits.h> exists even on freestanding compilers. */
4779
4780 #ifdef __STDC__
4781 # include <limits.h>
4782 #else
4783 # include <assert.h>
4784 #endif
4785
4786 #undef $ac_func
4787
4788 /* Override any gcc2 internal prototype to avoid an error. */
4789 #ifdef __cplusplus
4790 extern "C"
4791 {
4792 #endif
4793 /* We use char because int might match the return type of a gcc2
4794 builtin and then its argument prototype would still apply. */
4795 char $ac_func ();
4796 /* The GNU C library defines this for functions which it implements
4797 to always fail with ENOSYS. Some functions are actually named
4798 something starting with __ and the normal name is an alias. */
4799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4800 choke me
4801 #else
4802 char (*f) () = $ac_func;
4803 #endif
4804 #ifdef __cplusplus
4805 }
4806 #endif
4807
4808 int
4809 main ()
4810 {
4811 return f != $ac_func;
4812 ;
4813 return 0;
4814 }
4815 _ACEOF
4816 rm -f conftest.$ac_objext conftest$ac_exeext
4817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4818 (eval $ac_link) 2>conftest.er1
4819 ac_status=$?
4820 grep -v '^ *+' conftest.er1 >conftest.err
4821 rm -f conftest.er1
4822 cat conftest.err >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } &&
4825 { ac_try='test -z "$ac_c_werror_flag"
4826 || test ! -s conftest.err'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 (eval $ac_try) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; } &&
4832 { ac_try='test -s conftest$ac_exeext'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 (eval $ac_try) 2>&5
4835 ac_status=$?
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; }; then
4838 eval "$as_ac_var=yes"
4839 else
4840 echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4842
4843 eval "$as_ac_var=no"
4844 fi
4845 rm -f conftest.err conftest.$ac_objext \
4846 conftest$ac_exeext conftest.$ac_ext
4847 fi
4848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4849 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4850 if test `eval echo '${'$as_ac_var'}'` = yes; then
4851 cat >>confdefs.h <<_ACEOF
4852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4853 _ACEOF
4854
4855 fi
4856 done
4857
4858 echo "$as_me:$LINENO: checking for struct stat.st_dev" >&5
4859 echo $ECHO_N "checking for struct stat.st_dev... $ECHO_C" >&6
4860 if test "${ac_struct_stat_st_dev+set}" = set; then
4861 echo $ECHO_N "(cached) $ECHO_C" >&6
4862 else
4863 ac_struct_stat_st_dev=no;
4864 cat >conftest.$ac_ext <<_ACEOF
4865 /* confdefs.h. */
4866 _ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4870 #ifdef HAVE_SYS_TYPES_H
4871 #include <sys/types.h>
4872 #endif
4873 #ifdef HAVE_SYS_STAT_H
4874 #include <sys/stat.h>
4875 #endif
4876 int
4877 main ()
4878 {
4879
4880 static struct stat ac_aggr;
4881 if (ac_aggr.st_dev)
4882 return 0;
4883 ;
4884 return 0;
4885 }
4886 _ACEOF
4887 rm -f conftest.$ac_objext
4888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4889 (eval $ac_compile) 2>conftest.er1
4890 ac_status=$?
4891 grep -v '^ *+' conftest.er1 >conftest.err
4892 rm -f conftest.er1
4893 cat conftest.err >&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } &&
4896 { ac_try='test -z "$ac_c_werror_flag"
4897 || test ! -s conftest.err'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 (eval $ac_try) 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; } &&
4903 { ac_try='test -s conftest.$ac_objext'
4904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905 (eval $ac_try) 2>&5
4906 ac_status=$?
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }; }; then
4909 ac_struct_stat_st_dev=yes;
4910 else
4911 echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4913
4914 cat >conftest.$ac_ext <<_ACEOF
4915 /* confdefs.h. */
4916 _ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h. */
4920 #ifdef HAVE_SYS_TYPES_H
4921 #include <sys/types.h>
4922 #endif
4923 #ifdef HAVE_SYS_STAT_H
4924 #include <sys/stat.h>
4925 #endif
4926 int
4927 main ()
4928 {
4929
4930 static struct stat ac_aggr;
4931 if (sizeof ac_aggr.st_dev)
4932 return 0;
4933 ;
4934 return 0;
4935 }
4936 _ACEOF
4937 rm -f conftest.$ac_objext
4938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4939 (eval $ac_compile) 2>conftest.er1
4940 ac_status=$?
4941 grep -v '^ *+' conftest.er1 >conftest.err
4942 rm -f conftest.er1
4943 cat conftest.err >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } &&
4946 { ac_try='test -z "$ac_c_werror_flag"
4947 || test ! -s conftest.err'
4948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4949 (eval $ac_try) 2>&5
4950 ac_status=$?
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); }; } &&
4953 { ac_try='test -s conftest.$ac_objext'
4954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955 (eval $ac_try) 2>&5
4956 ac_status=$?
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); }; }; then
4959 ac_struct_stat_st_dev=yes;
4960 else
4961 echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4963
4964 ac_struct_stat_st_dev=no;
4965 fi
4966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4967 fi
4968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4969 if test $ac_struct_stat_st_dev = yes; then :;
4970 cat >>confdefs.h <<_ACEOF
4971 #define HAVE_STRUCT_STAT_ST_DEV 1
4972 _ACEOF
4973
4974 else :;
4975 fi
4976 fi
4977 echo "$as_me:$LINENO: result: $ac_struct_stat_st_dev" >&5
4978 echo "${ECHO_T}$ac_struct_stat_st_dev" >&6
4979
4980 echo "$as_me:$LINENO: checking for struct stat.st_ino" >&5
4981 echo $ECHO_N "checking for struct stat.st_ino... $ECHO_C" >&6
4982 if test "${ac_struct_stat_st_ino+set}" = set; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4984 else
4985 ac_struct_stat_st_ino=no;
4986 cat >conftest.$ac_ext <<_ACEOF
4987 /* confdefs.h. */
4988 _ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h. */
4992 #ifdef HAVE_SYS_TYPES_H
4993 #include <sys/types.h>
4994 #endif
4995 #ifdef HAVE_SYS_STAT_H
4996 #include <sys/stat.h>
4997 #endif
4998 int
4999 main ()
5000 {
5001
5002 static struct stat ac_aggr;
5003 if (ac_aggr.st_ino)
5004 return 0;
5005 ;
5006 return 0;
5007 }
5008 _ACEOF
5009 rm -f conftest.$ac_objext
5010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5011 (eval $ac_compile) 2>conftest.er1
5012 ac_status=$?
5013 grep -v '^ *+' conftest.er1 >conftest.err
5014 rm -f conftest.er1
5015 cat conftest.err >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } &&
5018 { ac_try='test -z "$ac_c_werror_flag"
5019 || test ! -s conftest.err'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 (eval $ac_try) 2>&5
5022 ac_status=$?
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; } &&
5025 { ac_try='test -s conftest.$ac_objext'
5026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027 (eval $ac_try) 2>&5
5028 ac_status=$?
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); }; }; then
5031 ac_struct_stat_st_ino=yes;
5032 else
5033 echo "$as_me: failed program was:" >&5
5034 sed 's/^/| /' conftest.$ac_ext >&5
5035
5036 cat >conftest.$ac_ext <<_ACEOF
5037 /* confdefs.h. */
5038 _ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5042 #ifdef HAVE_SYS_TYPES_H
5043 #include <sys/types.h>
5044 #endif
5045 #ifdef HAVE_SYS_STAT_H
5046 #include <sys/stat.h>
5047 #endif
5048 int
5049 main ()
5050 {
5051
5052 static struct stat ac_aggr;
5053 if (sizeof ac_aggr.st_ino)
5054 return 0;
5055 ;
5056 return 0;
5057 }
5058 _ACEOF
5059 rm -f conftest.$ac_objext
5060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5061 (eval $ac_compile) 2>conftest.er1
5062 ac_status=$?
5063 grep -v '^ *+' conftest.er1 >conftest.err
5064 rm -f conftest.er1
5065 cat conftest.err >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } &&
5068 { ac_try='test -z "$ac_c_werror_flag"
5069 || test ! -s conftest.err'
5070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 (eval $ac_try) 2>&5
5072 ac_status=$?
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); }; } &&
5075 { ac_try='test -s conftest.$ac_objext'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 (eval $ac_try) 2>&5
5078 ac_status=$?
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; }; then
5081 ac_struct_stat_st_ino=yes;
5082 else
5083 echo "$as_me: failed program was:" >&5
5084 sed 's/^/| /' conftest.$ac_ext >&5
5085
5086 ac_struct_stat_st_ino=no;
5087 fi
5088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5089 fi
5090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5091 if test $ac_struct_stat_st_ino = yes; then :;
5092 cat >>confdefs.h <<_ACEOF
5093 #define HAVE_STRUCT_STAT_ST_INO 1
5094 _ACEOF
5095
5096 else :;
5097 fi
5098 fi
5099 echo "$as_me:$LINENO: result: $ac_struct_stat_st_ino" >&5
5100 echo "${ECHO_T}$ac_struct_stat_st_ino" >&6
5101
5102 echo "$as_me:$LINENO: checking for struct stat.st_mode" >&5
5103 echo $ECHO_N "checking for struct stat.st_mode... $ECHO_C" >&6
5104 if test "${ac_struct_stat_st_mode+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5106 else
5107 ac_struct_stat_st_mode=no;
5108 cat >conftest.$ac_ext <<_ACEOF
5109 /* confdefs.h. */
5110 _ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h. */
5114 #ifdef HAVE_SYS_TYPES_H
5115 #include <sys/types.h>
5116 #endif
5117 #ifdef HAVE_SYS_STAT_H
5118 #include <sys/stat.h>
5119 #endif
5120 int
5121 main ()
5122 {
5123
5124 static struct stat ac_aggr;
5125 if (ac_aggr.st_mode)
5126 return 0;
5127 ;
5128 return 0;
5129 }
5130 _ACEOF
5131 rm -f conftest.$ac_objext
5132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5133 (eval $ac_compile) 2>conftest.er1
5134 ac_status=$?
5135 grep -v '^ *+' conftest.er1 >conftest.err
5136 rm -f conftest.er1
5137 cat conftest.err >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } &&
5140 { ac_try='test -z "$ac_c_werror_flag"
5141 || test ! -s conftest.err'
5142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5143 (eval $ac_try) 2>&5
5144 ac_status=$?
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); }; } &&
5147 { ac_try='test -s conftest.$ac_objext'
5148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5149 (eval $ac_try) 2>&5
5150 ac_status=$?
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); }; }; then
5153 ac_struct_stat_st_mode=yes;
5154 else
5155 echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5157
5158 cat >conftest.$ac_ext <<_ACEOF
5159 /* confdefs.h. */
5160 _ACEOF
5161 cat confdefs.h >>conftest.$ac_ext
5162 cat >>conftest.$ac_ext <<_ACEOF
5163 /* end confdefs.h. */
5164 #ifdef HAVE_SYS_TYPES_H
5165 #include <sys/types.h>
5166 #endif
5167 #ifdef HAVE_SYS_STAT_H
5168 #include <sys/stat.h>
5169 #endif
5170 int
5171 main ()
5172 {
5173
5174 static struct stat ac_aggr;
5175 if (sizeof ac_aggr.st_mode)
5176 return 0;
5177 ;
5178 return 0;
5179 }
5180 _ACEOF
5181 rm -f conftest.$ac_objext
5182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5183 (eval $ac_compile) 2>conftest.er1
5184 ac_status=$?
5185 grep -v '^ *+' conftest.er1 >conftest.err
5186 rm -f conftest.er1
5187 cat conftest.err >&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); } &&
5190 { ac_try='test -z "$ac_c_werror_flag"
5191 || test ! -s conftest.err'
5192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193 (eval $ac_try) 2>&5
5194 ac_status=$?
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); }; } &&
5197 { ac_try='test -s conftest.$ac_objext'
5198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199 (eval $ac_try) 2>&5
5200 ac_status=$?
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); }; }; then
5203 ac_struct_stat_st_mode=yes;
5204 else
5205 echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.$ac_ext >&5
5207
5208 ac_struct_stat_st_mode=no;
5209 fi
5210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5211 fi
5212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5213 if test $ac_struct_stat_st_mode = yes; then :;
5214 cat >>confdefs.h <<_ACEOF
5215 #define HAVE_STRUCT_STAT_ST_MODE 1
5216 _ACEOF
5217
5218 else :;
5219 fi
5220 fi
5221 echo "$as_me:$LINENO: result: $ac_struct_stat_st_mode" >&5
5222 echo "${ECHO_T}$ac_struct_stat_st_mode" >&6
5223
5224 echo "$as_me:$LINENO: checking for struct stat.st_nlink" >&5
5225 echo $ECHO_N "checking for struct stat.st_nlink... $ECHO_C" >&6
5226 if test "${ac_struct_stat_st_nlink+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229 ac_struct_stat_st_nlink=no;
5230 cat >conftest.$ac_ext <<_ACEOF
5231 /* confdefs.h. */
5232 _ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h. */
5236 #ifdef HAVE_SYS_TYPES_H
5237 #include <sys/types.h>
5238 #endif
5239 #ifdef HAVE_SYS_STAT_H
5240 #include <sys/stat.h>
5241 #endif
5242 int
5243 main ()
5244 {
5245
5246 static struct stat ac_aggr;
5247 if (ac_aggr.st_nlink)
5248 return 0;
5249 ;
5250 return 0;
5251 }
5252 _ACEOF
5253 rm -f conftest.$ac_objext
5254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5255 (eval $ac_compile) 2>conftest.er1
5256 ac_status=$?
5257 grep -v '^ *+' conftest.er1 >conftest.err
5258 rm -f conftest.er1
5259 cat conftest.err >&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } &&
5262 { ac_try='test -z "$ac_c_werror_flag"
5263 || test ! -s conftest.err'
5264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5265 (eval $ac_try) 2>&5
5266 ac_status=$?
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); }; } &&
5269 { ac_try='test -s conftest.$ac_objext'
5270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271 (eval $ac_try) 2>&5
5272 ac_status=$?
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }; }; then
5275 ac_struct_stat_st_nlink=yes;
5276 else
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5279
5280 cat >conftest.$ac_ext <<_ACEOF
5281 /* confdefs.h. */
5282 _ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5286 #ifdef HAVE_SYS_TYPES_H
5287 #include <sys/types.h>
5288 #endif
5289 #ifdef HAVE_SYS_STAT_H
5290 #include <sys/stat.h>
5291 #endif
5292 int
5293 main ()
5294 {
5295
5296 static struct stat ac_aggr;
5297 if (sizeof ac_aggr.st_nlink)
5298 return 0;
5299 ;
5300 return 0;
5301 }
5302 _ACEOF
5303 rm -f conftest.$ac_objext
5304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5305 (eval $ac_compile) 2>conftest.er1
5306 ac_status=$?
5307 grep -v '^ *+' conftest.er1 >conftest.err
5308 rm -f conftest.er1
5309 cat conftest.err >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } &&
5312 { ac_try='test -z "$ac_c_werror_flag"
5313 || test ! -s conftest.err'
5314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315 (eval $ac_try) 2>&5
5316 ac_status=$?
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; } &&
5319 { ac_try='test -s conftest.$ac_objext'
5320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321 (eval $ac_try) 2>&5
5322 ac_status=$?
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); }; }; then
5325 ac_struct_stat_st_nlink=yes;
5326 else
5327 echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5329
5330 ac_struct_stat_st_nlink=no;
5331 fi
5332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5333 fi
5334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5335 if test $ac_struct_stat_st_nlink = yes; then :;
5336 cat >>confdefs.h <<_ACEOF
5337 #define HAVE_STRUCT_STAT_ST_NLINK 1
5338 _ACEOF
5339
5340 else :;
5341 fi
5342 fi
5343 echo "$as_me:$LINENO: result: $ac_struct_stat_st_nlink" >&5
5344 echo "${ECHO_T}$ac_struct_stat_st_nlink" >&6
5345
5346 echo "$as_me:$LINENO: checking for struct stat.st_uid" >&5
5347 echo $ECHO_N "checking for struct stat.st_uid... $ECHO_C" >&6
5348 if test "${ac_struct_stat_st_uid+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5350 else
5351 ac_struct_stat_st_uid=no;
5352 cat >conftest.$ac_ext <<_ACEOF
5353 /* confdefs.h. */
5354 _ACEOF
5355 cat confdefs.h >>conftest.$ac_ext
5356 cat >>conftest.$ac_ext <<_ACEOF
5357 /* end confdefs.h. */
5358 #ifdef HAVE_SYS_TYPES_H
5359 #include <sys/types.h>
5360 #endif
5361 #ifdef HAVE_SYS_STAT_H
5362 #include <sys/stat.h>
5363 #endif
5364 int
5365 main ()
5366 {
5367
5368 static struct stat ac_aggr;
5369 if (ac_aggr.st_uid)
5370 return 0;
5371 ;
5372 return 0;
5373 }
5374 _ACEOF
5375 rm -f conftest.$ac_objext
5376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5377 (eval $ac_compile) 2>conftest.er1
5378 ac_status=$?
5379 grep -v '^ *+' conftest.er1 >conftest.err
5380 rm -f conftest.er1
5381 cat conftest.err >&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } &&
5384 { ac_try='test -z "$ac_c_werror_flag"
5385 || test ! -s conftest.err'
5386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387 (eval $ac_try) 2>&5
5388 ac_status=$?
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }; } &&
5391 { ac_try='test -s conftest.$ac_objext'
5392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393 (eval $ac_try) 2>&5
5394 ac_status=$?
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }; }; then
5397 ac_struct_stat_st_uid=yes;
5398 else
5399 echo "$as_me: failed program was:" >&5
5400 sed 's/^/| /' conftest.$ac_ext >&5
5401
5402 cat >conftest.$ac_ext <<_ACEOF
5403 /* confdefs.h. */
5404 _ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h. */
5408 #ifdef HAVE_SYS_TYPES_H
5409 #include <sys/types.h>
5410 #endif
5411 #ifdef HAVE_SYS_STAT_H
5412 #include <sys/stat.h>
5413 #endif
5414 int
5415 main ()
5416 {
5417
5418 static struct stat ac_aggr;
5419 if (sizeof ac_aggr.st_uid)
5420 return 0;
5421 ;
5422 return 0;
5423 }
5424 _ACEOF
5425 rm -f conftest.$ac_objext
5426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5427 (eval $ac_compile) 2>conftest.er1
5428 ac_status=$?
5429 grep -v '^ *+' conftest.er1 >conftest.err
5430 rm -f conftest.er1
5431 cat conftest.err >&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); } &&
5434 { ac_try='test -z "$ac_c_werror_flag"
5435 || test ! -s conftest.err'
5436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437 (eval $ac_try) 2>&5
5438 ac_status=$?
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }; } &&
5441 { ac_try='test -s conftest.$ac_objext'
5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443 (eval $ac_try) 2>&5
5444 ac_status=$?
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; }; then
5447 ac_struct_stat_st_uid=yes;
5448 else
5449 echo "$as_me: failed program was:" >&5
5450 sed 's/^/| /' conftest.$ac_ext >&5
5451
5452 ac_struct_stat_st_uid=no;
5453 fi
5454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5455 fi
5456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5457 if test $ac_struct_stat_st_uid = yes; then :;
5458 cat >>confdefs.h <<_ACEOF
5459 #define HAVE_STRUCT_STAT_ST_UID 1
5460 _ACEOF
5461
5462 else :;
5463 fi
5464 fi
5465 echo "$as_me:$LINENO: result: $ac_struct_stat_st_uid" >&5
5466 echo "${ECHO_T}$ac_struct_stat_st_uid" >&6
5467
5468 echo "$as_me:$LINENO: checking for struct stat.st_gid" >&5
5469 echo $ECHO_N "checking for struct stat.st_gid... $ECHO_C" >&6
5470 if test "${ac_struct_stat_st_gid+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 else
5473 ac_struct_stat_st_gid=no;
5474 cat >conftest.$ac_ext <<_ACEOF
5475 /* confdefs.h. */
5476 _ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h. */
5480 #ifdef HAVE_SYS_TYPES_H
5481 #include <sys/types.h>
5482 #endif
5483 #ifdef HAVE_SYS_STAT_H
5484 #include <sys/stat.h>
5485 #endif
5486 int
5487 main ()
5488 {
5489
5490 static struct stat ac_aggr;
5491 if (ac_aggr.st_gid)
5492 return 0;
5493 ;
5494 return 0;
5495 }
5496 _ACEOF
5497 rm -f conftest.$ac_objext
5498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5499 (eval $ac_compile) 2>conftest.er1
5500 ac_status=$?
5501 grep -v '^ *+' conftest.er1 >conftest.err
5502 rm -f conftest.er1
5503 cat conftest.err >&5
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); } &&
5506 { ac_try='test -z "$ac_c_werror_flag"
5507 || test ! -s conftest.err'
5508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5509 (eval $ac_try) 2>&5
5510 ac_status=$?
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); }; } &&
5513 { ac_try='test -s conftest.$ac_objext'
5514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515 (eval $ac_try) 2>&5
5516 ac_status=$?
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); }; }; then
5519 ac_struct_stat_st_gid=yes;
5520 else
5521 echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5523
5524 cat >conftest.$ac_ext <<_ACEOF
5525 /* confdefs.h. */
5526 _ACEOF
5527 cat confdefs.h >>conftest.$ac_ext
5528 cat >>conftest.$ac_ext <<_ACEOF
5529 /* end confdefs.h. */
5530 #ifdef HAVE_SYS_TYPES_H
5531 #include <sys/types.h>
5532 #endif
5533 #ifdef HAVE_SYS_STAT_H
5534 #include <sys/stat.h>
5535 #endif
5536 int
5537 main ()
5538 {
5539
5540 static struct stat ac_aggr;
5541 if (sizeof ac_aggr.st_gid)
5542 return 0;
5543 ;
5544 return 0;
5545 }
5546 _ACEOF
5547 rm -f conftest.$ac_objext
5548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5549 (eval $ac_compile) 2>conftest.er1
5550 ac_status=$?
5551 grep -v '^ *+' conftest.er1 >conftest.err
5552 rm -f conftest.er1
5553 cat conftest.err >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } &&
5556 { ac_try='test -z "$ac_c_werror_flag"
5557 || test ! -s conftest.err'
5558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5559 (eval $ac_try) 2>&5
5560 ac_status=$?
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); }; } &&
5563 { ac_try='test -s conftest.$ac_objext'
5564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5565 (eval $ac_try) 2>&5
5566 ac_status=$?
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); }; }; then
5569 ac_struct_stat_st_gid=yes;
5570 else
5571 echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5573
5574 ac_struct_stat_st_gid=no;
5575 fi
5576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5577 fi
5578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5579 if test $ac_struct_stat_st_gid = yes; then :;
5580 cat >>confdefs.h <<_ACEOF
5581 #define HAVE_STRUCT_STAT_ST_GID 1
5582 _ACEOF
5583
5584 else :;
5585 fi
5586 fi
5587 echo "$as_me:$LINENO: result: $ac_struct_stat_st_gid" >&5
5588 echo "${ECHO_T}$ac_struct_stat_st_gid" >&6
5589
5590 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5591 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
5592 if test "${ac_struct_stat_st_rdev+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5594 else
5595 ac_struct_stat_st_rdev=no;
5596 cat >conftest.$ac_ext <<_ACEOF
5597 /* confdefs.h. */
5598 _ACEOF
5599 cat confdefs.h >>conftest.$ac_ext
5600 cat >>conftest.$ac_ext <<_ACEOF
5601 /* end confdefs.h. */
5602 #ifdef HAVE_SYS_TYPES_H
5603 #include <sys/types.h>
5604 #endif
5605 #ifdef HAVE_SYS_STAT_H
5606 #include <sys/stat.h>
5607 #endif
5608 int
5609 main ()
5610 {
5611
5612 static struct stat ac_aggr;
5613 if (ac_aggr.st_rdev)
5614 return 0;
5615 ;
5616 return 0;
5617 }
5618 _ACEOF
5619 rm -f conftest.$ac_objext
5620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5621 (eval $ac_compile) 2>conftest.er1
5622 ac_status=$?
5623 grep -v '^ *+' conftest.er1 >conftest.err
5624 rm -f conftest.er1
5625 cat conftest.err >&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } &&
5628 { ac_try='test -z "$ac_c_werror_flag"
5629 || test ! -s conftest.err'
5630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631 (eval $ac_try) 2>&5
5632 ac_status=$?
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; } &&
5635 { ac_try='test -s conftest.$ac_objext'
5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 (eval $ac_try) 2>&5
5638 ac_status=$?
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; }; then
5641 ac_struct_stat_st_rdev=yes;
5642 else
5643 echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.$ac_ext >&5
5645
5646 cat >conftest.$ac_ext <<_ACEOF
5647 /* confdefs.h. */
5648 _ACEOF
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h. */
5652 #ifdef HAVE_SYS_TYPES_H
5653 #include <sys/types.h>
5654 #endif
5655 #ifdef HAVE_SYS_STAT_H
5656 #include <sys/stat.h>
5657 #endif
5658 int
5659 main ()
5660 {
5661
5662 static struct stat ac_aggr;
5663 if (sizeof ac_aggr.st_rdev)
5664 return 0;
5665 ;
5666 return 0;
5667 }
5668 _ACEOF
5669 rm -f conftest.$ac_objext
5670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5671 (eval $ac_compile) 2>conftest.er1
5672 ac_status=$?
5673 grep -v '^ *+' conftest.er1 >conftest.err
5674 rm -f conftest.er1
5675 cat conftest.err >&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } &&
5678 { ac_try='test -z "$ac_c_werror_flag"
5679 || test ! -s conftest.err'
5680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681 (eval $ac_try) 2>&5
5682 ac_status=$?
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; } &&
5685 { ac_try='test -s conftest.$ac_objext'
5686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687 (eval $ac_try) 2>&5
5688 ac_status=$?
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }; }; then
5691 ac_struct_stat_st_rdev=yes;
5692 else
5693 echo "$as_me: failed program was:" >&5
5694 sed 's/^/| /' conftest.$ac_ext >&5
5695
5696 ac_struct_stat_st_rdev=no;
5697 fi
5698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5699 fi
5700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5701 if test $ac_struct_stat_st_rdev = yes; then :;
5702 cat >>confdefs.h <<_ACEOF
5703 #define HAVE_STRUCT_STAT_ST_RDEV 1
5704 _ACEOF
5705
5706 else :;
5707 fi
5708 fi
5709 echo "$as_me:$LINENO: result: $ac_struct_stat_st_rdev" >&5
5710 echo "${ECHO_T}$ac_struct_stat_st_rdev" >&6
5711
5712 echo "$as_me:$LINENO: checking for struct stat.st_size" >&5
5713 echo $ECHO_N "checking for struct stat.st_size... $ECHO_C" >&6
5714 if test "${ac_struct_stat_st_size+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5716 else
5717 ac_struct_stat_st_size=no;
5718 cat >conftest.$ac_ext <<_ACEOF
5719 /* confdefs.h. */
5720 _ACEOF
5721 cat confdefs.h >>conftest.$ac_ext
5722 cat >>conftest.$ac_ext <<_ACEOF
5723 /* end confdefs.h. */
5724 #ifdef HAVE_SYS_TYPES_H
5725 #include <sys/types.h>
5726 #endif
5727 #ifdef HAVE_SYS_STAT_H
5728 #include <sys/stat.h>
5729 #endif
5730 int
5731 main ()
5732 {
5733
5734 static struct stat ac_aggr;
5735 if (ac_aggr.st_size)
5736 return 0;
5737 ;
5738 return 0;
5739 }
5740 _ACEOF
5741 rm -f conftest.$ac_objext
5742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5743 (eval $ac_compile) 2>conftest.er1
5744 ac_status=$?
5745 grep -v '^ *+' conftest.er1 >conftest.err
5746 rm -f conftest.er1
5747 cat conftest.err >&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } &&
5750 { ac_try='test -z "$ac_c_werror_flag"
5751 || test ! -s conftest.err'
5752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5753 (eval $ac_try) 2>&5
5754 ac_status=$?
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; } &&
5757 { ac_try='test -s conftest.$ac_objext'
5758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5759 (eval $ac_try) 2>&5
5760 ac_status=$?
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); }; }; then
5763 ac_struct_stat_st_size=yes;
5764 else
5765 echo "$as_me: failed program was:" >&5
5766 sed 's/^/| /' conftest.$ac_ext >&5
5767
5768 cat >conftest.$ac_ext <<_ACEOF
5769 /* confdefs.h. */
5770 _ACEOF
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* end confdefs.h. */
5774 #ifdef HAVE_SYS_TYPES_H
5775 #include <sys/types.h>
5776 #endif
5777 #ifdef HAVE_SYS_STAT_H
5778 #include <sys/stat.h>
5779 #endif
5780 int
5781 main ()
5782 {
5783
5784 static struct stat ac_aggr;
5785 if (sizeof ac_aggr.st_size)
5786 return 0;
5787 ;
5788 return 0;
5789 }
5790 _ACEOF
5791 rm -f conftest.$ac_objext
5792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5793 (eval $ac_compile) 2>conftest.er1
5794 ac_status=$?
5795 grep -v '^ *+' conftest.er1 >conftest.err
5796 rm -f conftest.er1
5797 cat conftest.err >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } &&
5800 { ac_try='test -z "$ac_c_werror_flag"
5801 || test ! -s conftest.err'
5802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5803 (eval $ac_try) 2>&5
5804 ac_status=$?
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); }; } &&
5807 { ac_try='test -s conftest.$ac_objext'
5808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809 (eval $ac_try) 2>&5
5810 ac_status=$?
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; }; then
5813 ac_struct_stat_st_size=yes;
5814 else
5815 echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5817
5818 ac_struct_stat_st_size=no;
5819 fi
5820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5821 fi
5822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5823 if test $ac_struct_stat_st_size = yes; then :;
5824 cat >>confdefs.h <<_ACEOF
5825 #define HAVE_STRUCT_STAT_ST_SIZE 1
5826 _ACEOF
5827
5828 else :;
5829 fi
5830 fi
5831 echo "$as_me:$LINENO: result: $ac_struct_stat_st_size" >&5
5832 echo "${ECHO_T}$ac_struct_stat_st_size" >&6
5833
5834 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
5835 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
5836 if test "${ac_struct_stat_st_blksize+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5838 else
5839 ac_struct_stat_st_blksize=no;
5840 cat >conftest.$ac_ext <<_ACEOF
5841 /* confdefs.h. */
5842 _ACEOF
5843 cat confdefs.h >>conftest.$ac_ext
5844 cat >>conftest.$ac_ext <<_ACEOF
5845 /* end confdefs.h. */
5846 #ifdef HAVE_SYS_TYPES_H
5847 #include <sys/types.h>
5848 #endif
5849 #ifdef HAVE_SYS_STAT_H
5850 #include <sys/stat.h>
5851 #endif
5852 int
5853 main ()
5854 {
5855
5856 static struct stat ac_aggr;
5857 if (ac_aggr.st_blksize)
5858 return 0;
5859 ;
5860 return 0;
5861 }
5862 _ACEOF
5863 rm -f conftest.$ac_objext
5864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5865 (eval $ac_compile) 2>conftest.er1
5866 ac_status=$?
5867 grep -v '^ *+' conftest.er1 >conftest.err
5868 rm -f conftest.er1
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } &&
5872 { ac_try='test -z "$ac_c_werror_flag"
5873 || test ! -s conftest.err'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875 (eval $ac_try) 2>&5
5876 ac_status=$?
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; } &&
5879 { ac_try='test -s conftest.$ac_objext'
5880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881 (eval $ac_try) 2>&5
5882 ac_status=$?
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; }; then
5885 ac_struct_stat_st_blksize=yes;
5886 else
5887 echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5889
5890 cat >conftest.$ac_ext <<_ACEOF
5891 /* confdefs.h. */
5892 _ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5896 #ifdef HAVE_SYS_TYPES_H
5897 #include <sys/types.h>
5898 #endif
5899 #ifdef HAVE_SYS_STAT_H
5900 #include <sys/stat.h>
5901 #endif
5902 int
5903 main ()
5904 {
5905
5906 static struct stat ac_aggr;
5907 if (sizeof ac_aggr.st_blksize)
5908 return 0;
5909 ;
5910 return 0;
5911 }
5912 _ACEOF
5913 rm -f conftest.$ac_objext
5914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5915 (eval $ac_compile) 2>conftest.er1
5916 ac_status=$?
5917 grep -v '^ *+' conftest.er1 >conftest.err
5918 rm -f conftest.er1
5919 cat conftest.err >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } &&
5922 { ac_try='test -z "$ac_c_werror_flag"
5923 || test ! -s conftest.err'
5924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925 (eval $ac_try) 2>&5
5926 ac_status=$?
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; } &&
5929 { ac_try='test -s conftest.$ac_objext'
5930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931 (eval $ac_try) 2>&5
5932 ac_status=$?
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; }; then
5935 ac_struct_stat_st_blksize=yes;
5936 else
5937 echo "$as_me: failed program was:" >&5
5938 sed 's/^/| /' conftest.$ac_ext >&5
5939
5940 ac_struct_stat_st_blksize=no;
5941 fi
5942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5943 fi
5944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5945 if test $ac_struct_stat_st_blksize = yes; then :;
5946 cat >>confdefs.h <<_ACEOF
5947 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
5948 _ACEOF
5949
5950 else :;
5951 fi
5952 fi
5953 echo "$as_me:$LINENO: result: $ac_struct_stat_st_blksize" >&5
5954 echo "${ECHO_T}$ac_struct_stat_st_blksize" >&6
5955
5956 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
5957 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
5958 if test "${ac_struct_stat_st_blocks+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 else
5961 ac_struct_stat_st_blocks=no;
5962 cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h. */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 #ifdef HAVE_SYS_TYPES_H
5969 #include <sys/types.h>
5970 #endif
5971 #ifdef HAVE_SYS_STAT_H
5972 #include <sys/stat.h>
5973 #endif
5974 int
5975 main ()
5976 {
5977
5978 static struct stat ac_aggr;
5979 if (ac_aggr.st_blocks)
5980 return 0;
5981 ;
5982 return 0;
5983 }
5984 _ACEOF
5985 rm -f conftest.$ac_objext
5986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5987 (eval $ac_compile) 2>conftest.er1
5988 ac_status=$?
5989 grep -v '^ *+' conftest.er1 >conftest.err
5990 rm -f conftest.er1
5991 cat conftest.err >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } &&
5994 { ac_try='test -z "$ac_c_werror_flag"
5995 || test ! -s conftest.err'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 (eval $ac_try) 2>&5
5998 ac_status=$?
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; } &&
6001 { ac_try='test -s conftest.$ac_objext'
6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 (eval $ac_try) 2>&5
6004 ac_status=$?
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; }; then
6007 ac_struct_stat_st_blocks=yes;
6008 else
6009 echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6011
6012 cat >conftest.$ac_ext <<_ACEOF
6013 /* confdefs.h. */
6014 _ACEOF
6015 cat confdefs.h >>conftest.$ac_ext
6016 cat >>conftest.$ac_ext <<_ACEOF
6017 /* end confdefs.h. */
6018 #ifdef HAVE_SYS_TYPES_H
6019 #include <sys/types.h>
6020 #endif
6021 #ifdef HAVE_SYS_STAT_H
6022 #include <sys/stat.h>
6023 #endif
6024 int
6025 main ()
6026 {
6027
6028 static struct stat ac_aggr;
6029 if (sizeof ac_aggr.st_blocks)
6030 return 0;
6031 ;
6032 return 0;
6033 }
6034 _ACEOF
6035 rm -f conftest.$ac_objext
6036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6037 (eval $ac_compile) 2>conftest.er1
6038 ac_status=$?
6039 grep -v '^ *+' conftest.er1 >conftest.err
6040 rm -f conftest.er1
6041 cat conftest.err >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } &&
6044 { ac_try='test -z "$ac_c_werror_flag"
6045 || test ! -s conftest.err'
6046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047 (eval $ac_try) 2>&5
6048 ac_status=$?
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); }; } &&
6051 { ac_try='test -s conftest.$ac_objext'
6052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053 (eval $ac_try) 2>&5
6054 ac_status=$?
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }; }; then
6057 ac_struct_stat_st_blocks=yes;
6058 else
6059 echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6061
6062 ac_struct_stat_st_blocks=no;
6063 fi
6064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6065 fi
6066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6067 if test $ac_struct_stat_st_blocks = yes; then :;
6068 cat >>confdefs.h <<_ACEOF
6069 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6070 _ACEOF
6071
6072 else :;
6073 fi
6074 fi
6075 echo "$as_me:$LINENO: result: $ac_struct_stat_st_blocks" >&5
6076 echo "${ECHO_T}$ac_struct_stat_st_blocks" >&6
6077
6078 echo "$as_me:$LINENO: checking for struct stat.st_atime" >&5
6079 echo $ECHO_N "checking for struct stat.st_atime... $ECHO_C" >&6
6080 if test "${ac_struct_stat_st_atime+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 else
6083 ac_struct_stat_st_atime=no;
6084 cat >conftest.$ac_ext <<_ACEOF
6085 /* confdefs.h. */
6086 _ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h. */
6090 #ifdef HAVE_SYS_TYPES_H
6091 #include <sys/types.h>
6092 #endif
6093 #ifdef HAVE_SYS_STAT_H
6094 #include <sys/stat.h>
6095 #endif
6096 int
6097 main ()
6098 {
6099
6100 static struct stat ac_aggr;
6101 if (ac_aggr.st_atime)
6102 return 0;
6103 ;
6104 return 0;
6105 }
6106 _ACEOF
6107 rm -f conftest.$ac_objext
6108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6109 (eval $ac_compile) 2>conftest.er1
6110 ac_status=$?
6111 grep -v '^ *+' conftest.er1 >conftest.err
6112 rm -f conftest.er1
6113 cat conftest.err >&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); } &&
6116 { ac_try='test -z "$ac_c_werror_flag"
6117 || test ! -s conftest.err'
6118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119 (eval $ac_try) 2>&5
6120 ac_status=$?
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; } &&
6123 { ac_try='test -s conftest.$ac_objext'
6124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125 (eval $ac_try) 2>&5
6126 ac_status=$?
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; }; then
6129 ac_struct_stat_st_atime=yes;
6130 else
6131 echo "$as_me: failed program was:" >&5
6132 sed 's/^/| /' conftest.$ac_ext >&5
6133
6134 cat >conftest.$ac_ext <<_ACEOF
6135 /* confdefs.h. */
6136 _ACEOF
6137 cat confdefs.h >>conftest.$ac_ext
6138 cat >>conftest.$ac_ext <<_ACEOF
6139 /* end confdefs.h. */
6140 #ifdef HAVE_SYS_TYPES_H
6141 #include <sys/types.h>
6142 #endif
6143 #ifdef HAVE_SYS_STAT_H
6144 #include <sys/stat.h>
6145 #endif
6146 int
6147 main ()
6148 {
6149
6150 static struct stat ac_aggr;
6151 if (sizeof ac_aggr.st_atime)
6152 return 0;
6153 ;
6154 return 0;
6155 }
6156 _ACEOF
6157 rm -f conftest.$ac_objext
6158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6159 (eval $ac_compile) 2>conftest.er1
6160 ac_status=$?
6161 grep -v '^ *+' conftest.er1 >conftest.err
6162 rm -f conftest.er1
6163 cat conftest.err >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } &&
6166 { ac_try='test -z "$ac_c_werror_flag"
6167 || test ! -s conftest.err'
6168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169 (eval $ac_try) 2>&5
6170 ac_status=$?
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; } &&
6173 { ac_try='test -s conftest.$ac_objext'
6174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6175 (eval $ac_try) 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; }; then
6179 ac_struct_stat_st_atime=yes;
6180 else
6181 echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6183
6184 ac_struct_stat_st_atime=no;
6185 fi
6186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6187 fi
6188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6189 if test $ac_struct_stat_st_atime = yes; then :;
6190 cat >>confdefs.h <<_ACEOF
6191 #define HAVE_STRUCT_STAT_ST_ATIME 1
6192 _ACEOF
6193
6194 else :;
6195 fi
6196 fi
6197 echo "$as_me:$LINENO: result: $ac_struct_stat_st_atime" >&5
6198 echo "${ECHO_T}$ac_struct_stat_st_atime" >&6
6199
6200 echo "$as_me:$LINENO: checking for struct stat.st_mtime" >&5
6201 echo $ECHO_N "checking for struct stat.st_mtime... $ECHO_C" >&6
6202 if test "${ac_struct_stat_st_mtime+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 else
6205 ac_struct_stat_st_mtime=no;
6206 cat >conftest.$ac_ext <<_ACEOF
6207 /* confdefs.h. */
6208 _ACEOF
6209 cat confdefs.h >>conftest.$ac_ext
6210 cat >>conftest.$ac_ext <<_ACEOF
6211 /* end confdefs.h. */
6212 #ifdef HAVE_SYS_TYPES_H
6213 #include <sys/types.h>
6214 #endif
6215 #ifdef HAVE_SYS_STAT_H
6216 #include <sys/stat.h>
6217 #endif
6218 int
6219 main ()
6220 {
6221
6222 static struct stat ac_aggr;
6223 if (ac_aggr.st_mtime)
6224 return 0;
6225 ;
6226 return 0;
6227 }
6228 _ACEOF
6229 rm -f conftest.$ac_objext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231 (eval $ac_compile) 2>conftest.er1
6232 ac_status=$?
6233 grep -v '^ *+' conftest.er1 >conftest.err
6234 rm -f conftest.er1
6235 cat conftest.err >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } &&
6238 { ac_try='test -z "$ac_c_werror_flag"
6239 || test ! -s conftest.err'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241 (eval $ac_try) 2>&5
6242 ac_status=$?
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
6245 { ac_try='test -s conftest.$ac_objext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 (eval $ac_try) 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6251 ac_struct_stat_st_mtime=yes;
6252 else
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6255
6256 cat >conftest.$ac_ext <<_ACEOF
6257 /* confdefs.h. */
6258 _ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6262 #ifdef HAVE_SYS_TYPES_H
6263 #include <sys/types.h>
6264 #endif
6265 #ifdef HAVE_SYS_STAT_H
6266 #include <sys/stat.h>
6267 #endif
6268 int
6269 main ()
6270 {
6271
6272 static struct stat ac_aggr;
6273 if (sizeof ac_aggr.st_mtime)
6274 return 0;
6275 ;
6276 return 0;
6277 }
6278 _ACEOF
6279 rm -f conftest.$ac_objext
6280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6281 (eval $ac_compile) 2>conftest.er1
6282 ac_status=$?
6283 grep -v '^ *+' conftest.er1 >conftest.err
6284 rm -f conftest.er1
6285 cat conftest.err >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } &&
6288 { ac_try='test -z "$ac_c_werror_flag"
6289 || test ! -s conftest.err'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 (eval $ac_try) 2>&5
6292 ac_status=$?
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; } &&
6295 { ac_try='test -s conftest.$ac_objext'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 (eval $ac_try) 2>&5
6298 ac_status=$?
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; }; then
6301 ac_struct_stat_st_mtime=yes;
6302 else
6303 echo "$as_me: failed program was:" >&5
6304 sed 's/^/| /' conftest.$ac_ext >&5
6305
6306 ac_struct_stat_st_mtime=no;
6307 fi
6308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6309 fi
6310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6311 if test $ac_struct_stat_st_mtime = yes; then :;
6312 cat >>confdefs.h <<_ACEOF
6313 #define HAVE_STRUCT_STAT_ST_MTIME 1
6314 _ACEOF
6315
6316 else :;
6317 fi
6318 fi
6319 echo "$as_me:$LINENO: result: $ac_struct_stat_st_mtime" >&5
6320 echo "${ECHO_T}$ac_struct_stat_st_mtime" >&6
6321
6322 echo "$as_me:$LINENO: checking for struct stat.st_ctime" >&5
6323 echo $ECHO_N "checking for struct stat.st_ctime... $ECHO_C" >&6
6324 if test "${ac_struct_stat_st_ctime+set}" = set; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 else
6327 ac_struct_stat_st_ctime=no;
6328 cat >conftest.$ac_ext <<_ACEOF
6329 /* confdefs.h. */
6330 _ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6334 #ifdef HAVE_SYS_TYPES_H
6335 #include <sys/types.h>
6336 #endif
6337 #ifdef HAVE_SYS_STAT_H
6338 #include <sys/stat.h>
6339 #endif
6340 int
6341 main ()
6342 {
6343
6344 static struct stat ac_aggr;
6345 if (ac_aggr.st_ctime)
6346 return 0;
6347 ;
6348 return 0;
6349 }
6350 _ACEOF
6351 rm -f conftest.$ac_objext
6352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6353 (eval $ac_compile) 2>conftest.er1
6354 ac_status=$?
6355 grep -v '^ *+' conftest.er1 >conftest.err
6356 rm -f conftest.er1
6357 cat conftest.err >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } &&
6360 { ac_try='test -z "$ac_c_werror_flag"
6361 || test ! -s conftest.err'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 (eval $ac_try) 2>&5
6364 ac_status=$?
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; } &&
6367 { ac_try='test -s conftest.$ac_objext'
6368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369 (eval $ac_try) 2>&5
6370 ac_status=$?
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; }; then
6373 ac_struct_stat_st_ctime=yes;
6374 else
6375 echo "$as_me: failed program was:" >&5
6376 sed 's/^/| /' conftest.$ac_ext >&5
6377
6378 cat >conftest.$ac_ext <<_ACEOF
6379 /* confdefs.h. */
6380 _ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h. */
6384 #ifdef HAVE_SYS_TYPES_H
6385 #include <sys/types.h>
6386 #endif
6387 #ifdef HAVE_SYS_STAT_H
6388 #include <sys/stat.h>
6389 #endif
6390 int
6391 main ()
6392 {
6393
6394 static struct stat ac_aggr;
6395 if (sizeof ac_aggr.st_ctime)
6396 return 0;
6397 ;
6398 return 0;
6399 }
6400 _ACEOF
6401 rm -f conftest.$ac_objext
6402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6403 (eval $ac_compile) 2>conftest.er1
6404 ac_status=$?
6405 grep -v '^ *+' conftest.er1 >conftest.err
6406 rm -f conftest.er1
6407 cat conftest.err >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } &&
6410 { ac_try='test -z "$ac_c_werror_flag"
6411 || test ! -s conftest.err'
6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413 (eval $ac_try) 2>&5
6414 ac_status=$?
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; } &&
6417 { ac_try='test -s conftest.$ac_objext'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419 (eval $ac_try) 2>&5
6420 ac_status=$?
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; }; then
6423 ac_struct_stat_st_ctime=yes;
6424 else
6425 echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.$ac_ext >&5
6427
6428 ac_struct_stat_st_ctime=no;
6429 fi
6430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6431 fi
6432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6433 if test $ac_struct_stat_st_ctime = yes; then :;
6434 cat >>confdefs.h <<_ACEOF
6435 #define HAVE_STRUCT_STAT_ST_CTIME 1
6436 _ACEOF
6437
6438 else :;
6439 fi
6440 fi
6441 echo "$as_me:$LINENO: result: $ac_struct_stat_st_ctime" >&5
6442 echo "${ECHO_T}$ac_struct_stat_st_ctime" >&6
6443
6444 ac_config_files="$ac_config_files Makefile"
6445 ac_config_commands="$ac_config_commands default"
6446 cat >confcache <<\_ACEOF
6447 # This file is a shell script that caches the results of configure
6448 # tests run on this system so they can be shared between configure
6449 # scripts and configure runs, see configure's option --config-cache.
6450 # It is not useful on other systems. If it contains results you don't
6451 # want to keep, you may remove or edit it.
6452 #
6453 # config.status only pays attention to the cache file if you give it
6454 # the --recheck option to rerun configure.
6455 #
6456 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6457 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6458 # following values.
6459
6460 _ACEOF
6461
6462 # The following way of writing the cache mishandles newlines in values,
6463 # but we know of no workaround that is simple, portable, and efficient.
6464 # So, don't put newlines in cache variables' values.
6465 # Ultrix sh set writes to stderr and can't be redirected directly,
6466 # and sets the high bit in the cache file unless we assign to the vars.
6467 {
6468 (set) 2>&1 |
6469 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6470 *ac_space=\ *)
6471 # `set' does not quote correctly, so add quotes (double-quote
6472 # substitution turns \\\\ into \\, and sed turns \\ into \).
6473 sed -n \
6474 "s/'/'\\\\''/g;
6475 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6476 ;;
6477 *)
6478 # `set' quotes correctly as required by POSIX, so do not add quotes.
6479 sed -n \
6480 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6481 ;;
6482 esac;
6483 } |
6484 sed '
6485 t clear
6486 : clear
6487 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6488 t end
6489 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6490 : end' >>confcache
6491 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6492 if test -w $cache_file; then
6493 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6494 cat confcache >$cache_file
6495 else
6496 echo "not updating unwritable cache $cache_file"
6497 fi
6498 fi
6499 rm -f confcache
6500
6501 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6502 # Let make expand exec_prefix.
6503 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6504
6505 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6506 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6507 # trailing colons and then remove the whole line if VPATH becomes empty
6508 # (actually we leave an empty line to preserve line numbers).
6509 if test "x$srcdir" = x.; then
6510 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6511 s/:*\$(srcdir):*/:/;
6512 s/:*\${srcdir}:*/:/;
6513 s/:*@srcdir@:*/:/;
6514 s/^\([^=]*=[ ]*\):*/\1/;
6515 s/:*$//;
6516 s/^[^=]*=[ ]*$//;
6517 }'
6518 fi
6519
6520 DEFS=-DHAVE_CONFIG_H
6521
6522 ac_libobjs=
6523 ac_ltlibobjs=
6524 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6525 # 1. Remove the extension, and $U if already installed.
6526 ac_i=`echo "$ac_i" |
6527 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6528 # 2. Add them.
6529 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6530 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6531 done
6532 LIBOBJS=$ac_libobjs
6533
6534 LTLIBOBJS=$ac_ltlibobjs
6535
6536
6537
6538 : ${CONFIG_STATUS=./config.status}
6539 ac_clean_files_save=$ac_clean_files
6540 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6541 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6542 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6543 cat >$CONFIG_STATUS <<_ACEOF
6544 #! $SHELL
6545 # Generated by $as_me.
6546 # Run this file to recreate the current configuration.
6547 # Compiler output produced by configure, useful for debugging
6548 # configure, is in config.log if it exists.
6549
6550 debug=false
6551 ac_cs_recheck=false
6552 ac_cs_silent=false
6553 SHELL=\${CONFIG_SHELL-$SHELL}
6554 _ACEOF
6555
6556 cat >>$CONFIG_STATUS <<\_ACEOF
6557 ## --------------------- ##
6558 ## M4sh Initialization. ##
6559 ## --------------------- ##
6560
6561 # Be Bourne compatible
6562 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6563 emulate sh
6564 NULLCMD=:
6565 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6566 # is contrary to our usage. Disable this feature.
6567 alias -g '${1+"$@"}'='"$@"'
6568 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6569 set -o posix
6570 fi
6571 DUALCASE=1; export DUALCASE # for MKS sh
6572
6573 # Support unset when possible.
6574 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6575 as_unset=unset
6576 else
6577 as_unset=false
6578 fi
6579
6580
6581 # Work around bugs in pre-3.0 UWIN ksh.
6582 $as_unset ENV MAIL MAILPATH
6583 PS1='$ '
6584 PS2='> '
6585 PS4='+ '
6586
6587 # NLS nuisances.
6588 for as_var in \
6589 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6590 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6591 LC_TELEPHONE LC_TIME
6592 do
6593 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6594 eval $as_var=C; export $as_var
6595 else
6596 $as_unset $as_var
6597 fi
6598 done
6599
6600 # Required to use basename.
6601 if expr a : '\(a\)' >/dev/null 2>&1; then
6602 as_expr=expr
6603 else
6604 as_expr=false
6605 fi
6606
6607 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6608 as_basename=basename
6609 else
6610 as_basename=false
6611 fi
6612
6613
6614 # Name of the executable.
6615 as_me=`$as_basename "$0" ||
6616 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6617 X"$0" : 'X\(//\)$' \| \
6618 X"$0" : 'X\(/\)$' \| \
6619 . : '\(.\)' 2>/dev/null ||
6620 echo X/"$0" |
6621 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6622 /^X\/\(\/\/\)$/{ s//\1/; q; }
6623 /^X\/\(\/\).*/{ s//\1/; q; }
6624 s/.*/./; q'`
6625
6626
6627 # PATH needs CR, and LINENO needs CR and PATH.
6628 # Avoid depending upon Character Ranges.
6629 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6630 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6631 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6632 as_cr_digits='0123456789'
6633 as_cr_alnum=$as_cr_Letters$as_cr_digits
6634
6635 # The user is always right.
6636 if test "${PATH_SEPARATOR+set}" != set; then
6637 echo "#! /bin/sh" >conf$$.sh
6638 echo "exit 0" >>conf$$.sh
6639 chmod +x conf$$.sh
6640 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6641 PATH_SEPARATOR=';'
6642 else
6643 PATH_SEPARATOR=:
6644 fi
6645 rm -f conf$$.sh
6646 fi
6647
6648
6649 as_lineno_1=$LINENO
6650 as_lineno_2=$LINENO
6651 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6652 test "x$as_lineno_1" != "x$as_lineno_2" &&
6653 test "x$as_lineno_3" = "x$as_lineno_2" || {
6654 # Find who we are. Look in the path if we contain no path at all
6655 # relative or not.
6656 case $0 in
6657 *[\\/]* ) as_myself=$0 ;;
6658 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659 for as_dir in $PATH
6660 do
6661 IFS=$as_save_IFS
6662 test -z "$as_dir" && as_dir=.
6663 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6664 done
6665
6666 ;;
6667 esac
6668 # We did not find ourselves, most probably we were run as `sh COMMAND'
6669 # in which case we are not to be found in the path.
6670 if test "x$as_myself" = x; then
6671 as_myself=$0
6672 fi
6673 if test ! -f "$as_myself"; then
6674 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6675 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6676 { (exit 1); exit 1; }; }
6677 fi
6678 case $CONFIG_SHELL in
6679 '')
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6682 do
6683 IFS=$as_save_IFS
6684 test -z "$as_dir" && as_dir=.
6685 for as_base in sh bash ksh sh5; do
6686 case $as_dir in
6687 /*)
6688 if ("$as_dir/$as_base" -c '
6689 as_lineno_1=$LINENO
6690 as_lineno_2=$LINENO
6691 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6692 test "x$as_lineno_1" != "x$as_lineno_2" &&
6693 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6694 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6695 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6696 CONFIG_SHELL=$as_dir/$as_base
6697 export CONFIG_SHELL
6698 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6699 fi;;
6700 esac
6701 done
6702 done
6703 ;;
6704 esac
6705
6706 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6707 # uniformly replaced by the line number. The first 'sed' inserts a
6708 # line-number line before each line; the second 'sed' does the real
6709 # work. The second script uses 'N' to pair each line-number line
6710 # with the numbered line, and appends trailing '-' during
6711 # substitution so that $LINENO is not a special case at line end.
6712 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6713 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6714 sed '=' <$as_myself |
6715 sed '
6716 N
6717 s,$,-,
6718 : loop
6719 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6720 t loop
6721 s,-$,,
6722 s,^['$as_cr_digits']*\n,,
6723 ' >$as_me.lineno &&
6724 chmod +x $as_me.lineno ||
6725 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6726 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6727 { (exit 1); exit 1; }; }
6728
6729 # Don't try to exec as it changes $[0], causing all sort of problems
6730 # (the dirname of $[0] is not the place where we might find the
6731 # original and so on. Autoconf is especially sensible to this).
6732 . ./$as_me.lineno
6733 # Exit status is that of the last command.
6734 exit
6735 }
6736
6737
6738 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6739 *c*,-n*) ECHO_N= ECHO_C='
6740 ' ECHO_T=' ' ;;
6741 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6742 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6743 esac
6744
6745 if expr a : '\(a\)' >/dev/null 2>&1; then
6746 as_expr=expr
6747 else
6748 as_expr=false
6749 fi
6750
6751 rm -f conf$$ conf$$.exe conf$$.file
6752 echo >conf$$.file
6753 if ln -s conf$$.file conf$$ 2>/dev/null; then
6754 # We could just check for DJGPP; but this test a) works b) is more generic
6755 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6756 if test -f conf$$.exe; then
6757 # Don't use ln at all; we don't have any links
6758 as_ln_s='cp -p'
6759 else
6760 as_ln_s='ln -s'
6761 fi
6762 elif ln conf$$.file conf$$ 2>/dev/null; then
6763 as_ln_s=ln
6764 else
6765 as_ln_s='cp -p'
6766 fi
6767 rm -f conf$$ conf$$.exe conf$$.file
6768
6769 if mkdir -p . 2>/dev/null; then
6770 as_mkdir_p=:
6771 else
6772 test -d ./-p && rmdir ./-p
6773 as_mkdir_p=false
6774 fi
6775
6776 as_executable_p="test -f"
6777
6778 # Sed expression to map a string onto a valid CPP name.
6779 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6780
6781 # Sed expression to map a string onto a valid variable name.
6782 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6783
6784
6785 # IFS
6786 # We need space, tab and new line, in precisely that order.
6787 as_nl='
6788 '
6789 IFS=" $as_nl"
6790
6791 # CDPATH.
6792 $as_unset CDPATH
6793
6794 exec 6>&1
6795
6796 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6797 # report actual input values of CONFIG_FILES etc. instead of their
6798 # values after options handling. Logging --version etc. is OK.
6799 exec 5>>config.log
6800 {
6801 echo
6802 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6803 ## Running $as_me. ##
6804 _ASBOX
6805 } >&5
6806 cat >&5 <<_CSEOF
6807
6808 This file was extended by $as_me, which was
6809 generated by GNU Autoconf 2.59. Invocation command line was
6810
6811 CONFIG_FILES = $CONFIG_FILES
6812 CONFIG_HEADERS = $CONFIG_HEADERS
6813 CONFIG_LINKS = $CONFIG_LINKS
6814 CONFIG_COMMANDS = $CONFIG_COMMANDS
6815 $ $0 $@
6816
6817 _CSEOF
6818 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6819 echo >&5
6820 _ACEOF
6821
6822 # Files that config.status was made for.
6823 if test -n "$ac_config_files"; then
6824 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6825 fi
6826
6827 if test -n "$ac_config_headers"; then
6828 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6829 fi
6830
6831 if test -n "$ac_config_links"; then
6832 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6833 fi
6834
6835 if test -n "$ac_config_commands"; then
6836 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6837 fi
6838
6839 cat >>$CONFIG_STATUS <<\_ACEOF
6840
6841 ac_cs_usage="\
6842 \`$as_me' instantiates files from templates according to the
6843 current configuration.
6844
6845 Usage: $0 [OPTIONS] [FILE]...
6846
6847 -h, --help print this help, then exit
6848 -V, --version print version number, then exit
6849 -q, --quiet do not print progress messages
6850 -d, --debug don't remove temporary files
6851 --recheck update $as_me by reconfiguring in the same conditions
6852 --file=FILE[:TEMPLATE]
6853 instantiate the configuration file FILE
6854 --header=FILE[:TEMPLATE]
6855 instantiate the configuration header FILE
6856
6857 Configuration files:
6858 $config_files
6859
6860 Configuration headers:
6861 $config_headers
6862
6863 Configuration commands:
6864 $config_commands
6865
6866 Report bugs to <bug-autoconf@gnu.org>."
6867 _ACEOF
6868
6869 cat >>$CONFIG_STATUS <<_ACEOF
6870 ac_cs_version="\\
6871 config.status
6872 configured by $0, generated by GNU Autoconf 2.59,
6873 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6874
6875 Copyright (C) 2003 Free Software Foundation, Inc.
6876 This config.status script is free software; the Free Software Foundation
6877 gives unlimited permission to copy, distribute and modify it."
6878 srcdir=$srcdir
6879 INSTALL="$INSTALL"
6880 _ACEOF
6881
6882 cat >>$CONFIG_STATUS <<\_ACEOF
6883 # If no file are specified by the user, then we need to provide default
6884 # value. By we need to know if files were specified by the user.
6885 ac_need_defaults=:
6886 while test $# != 0
6887 do
6888 case $1 in
6889 --*=*)
6890 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6891 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6892 ac_shift=:
6893 ;;
6894 -*)
6895 ac_option=$1
6896 ac_optarg=$2
6897 ac_shift=shift
6898 ;;
6899 *) # This is not an option, so the user has probably given explicit
6900 # arguments.
6901 ac_option=$1
6902 ac_need_defaults=false;;
6903 esac
6904
6905 case $ac_option in
6906 # Handling of the options.
6907 _ACEOF
6908 cat >>$CONFIG_STATUS <<\_ACEOF
6909 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6910 ac_cs_recheck=: ;;
6911 --version | --vers* | -V )
6912 echo "$ac_cs_version"; exit 0 ;;
6913 --he | --h)
6914 # Conflict between --help and --header
6915 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6916 Try \`$0 --help' for more information." >&5
6917 echo "$as_me: error: ambiguous option: $1
6918 Try \`$0 --help' for more information." >&2;}
6919 { (exit 1); exit 1; }; };;
6920 --help | --hel | -h )
6921 echo "$ac_cs_usage"; exit 0 ;;
6922 --debug | --d* | -d )
6923 debug=: ;;
6924 --file | --fil | --fi | --f )
6925 $ac_shift
6926 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6927 ac_need_defaults=false;;
6928 --header | --heade | --head | --hea )
6929 $ac_shift
6930 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6931 ac_need_defaults=false;;
6932 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6933 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6934 ac_cs_silent=: ;;
6935
6936 # This is an error.
6937 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6938 Try \`$0 --help' for more information." >&5
6939 echo "$as_me: error: unrecognized option: $1
6940 Try \`$0 --help' for more information." >&2;}
6941 { (exit 1); exit 1; }; } ;;
6942
6943 *) ac_config_targets="$ac_config_targets $1" ;;
6944
6945 esac
6946 shift
6947 done
6948
6949 ac_configure_extra_args=
6950
6951 if $ac_cs_silent; then
6952 exec 6>/dev/null
6953 ac_configure_extra_args="$ac_configure_extra_args --silent"
6954 fi
6955
6956 _ACEOF
6957 cat >>$CONFIG_STATUS <<_ACEOF
6958 if \$ac_cs_recheck; then
6959 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6960 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6961 fi
6962
6963 _ACEOF
6964
6965
6966
6967
6968
6969 cat >>$CONFIG_STATUS <<\_ACEOF
6970 for ac_config_target in $ac_config_targets
6971 do
6972 case "$ac_config_target" in
6973 # Handling of arguments.
6974 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6975 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6976 "cconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS cconfig.h:config.in" ;;
6977 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6978 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6979 { (exit 1); exit 1; }; };;
6980 esac
6981 done
6982
6983 # If the user did not use the arguments to specify the items to instantiate,
6984 # then the envvar interface is used. Set only those that are not.
6985 # We use the long form for the default assignment because of an extremely
6986 # bizarre bug on SunOS 4.1.3.
6987 if $ac_need_defaults; then
6988 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6989 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6990 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6991 fi
6992
6993 # Have a temporary directory for convenience. Make it in the build tree
6994 # simply because there is no reason to put it here, and in addition,
6995 # creating and moving files from /tmp can sometimes cause problems.
6996 # Create a temporary directory, and hook for its removal unless debugging.
6997 $debug ||
6998 {
6999 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7000 trap '{ (exit 1); exit 1; }' 1 2 13 15
7001 }
7002
7003 # Create a (secure) tmp directory for tmp files.
7004
7005 {
7006 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7007 test -n "$tmp" && test -d "$tmp"
7008 } ||
7009 {
7010 tmp=./confstat$$-$RANDOM
7011 (umask 077 && mkdir $tmp)
7012 } ||
7013 {
7014 echo "$me: cannot create a temporary directory in ." >&2
7015 { (exit 1); exit 1; }
7016 }
7017
7018 _ACEOF
7019
7020 cat >>$CONFIG_STATUS <<_ACEOF
7021
7022 #
7023 # CONFIG_FILES section.
7024 #
7025
7026 # No need to generate the scripts if there are no CONFIG_FILES.
7027 # This happens for instance when ./config.status config.h
7028 if test -n "\$CONFIG_FILES"; then
7029 # Protect against being on the right side of a sed subst in config.status.
7030 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7031 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7032 s,@sim_environment@,$sim_environment,;t t
7033 s,@sim_alignment@,$sim_alignment,;t t
7034 s,@sim_assert@,$sim_assert,;t t
7035 s,@sim_bitsize@,$sim_bitsize,;t t
7036 s,@sim_endian@,$sim_endian,;t t
7037 s,@sim_hostendian@,$sim_hostendian,;t t
7038 s,@sim_float@,$sim_float,;t t
7039 s,@sim_scache@,$sim_scache,;t t
7040 s,@sim_default_model@,$sim_default_model,;t t
7041 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
7042 s,@sim_hw_objs@,$sim_hw_objs,;t t
7043 s,@sim_hw@,$sim_hw,;t t
7044 s,@sim_inline@,$sim_inline,;t t
7045 s,@sim_packages@,$sim_packages,;t t
7046 s,@sim_regparm@,$sim_regparm,;t t
7047 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
7048 s,@sim_smp@,$sim_smp,;t t
7049 s,@sim_stdcall@,$sim_stdcall,;t t
7050 s,@sim_xor_endian@,$sim_xor_endian,;t t
7051 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
7052 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
7053 s,@SHELL@,$SHELL,;t t
7054 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7055 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7056 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7057 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7058 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7059 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7060 s,@exec_prefix@,$exec_prefix,;t t
7061 s,@prefix@,$prefix,;t t
7062 s,@program_transform_name@,$program_transform_name,;t t
7063 s,@bindir@,$bindir,;t t
7064 s,@sbindir@,$sbindir,;t t
7065 s,@libexecdir@,$libexecdir,;t t
7066 s,@datadir@,$datadir,;t t
7067 s,@sysconfdir@,$sysconfdir,;t t
7068 s,@sharedstatedir@,$sharedstatedir,;t t
7069 s,@localstatedir@,$localstatedir,;t t
7070 s,@libdir@,$libdir,;t t
7071 s,@includedir@,$includedir,;t t
7072 s,@oldincludedir@,$oldincludedir,;t t
7073 s,@infodir@,$infodir,;t t
7074 s,@mandir@,$mandir,;t t
7075 s,@build_alias@,$build_alias,;t t
7076 s,@host_alias@,$host_alias,;t t
7077 s,@target_alias@,$target_alias,;t t
7078 s,@DEFS@,$DEFS,;t t
7079 s,@ECHO_C@,$ECHO_C,;t t
7080 s,@ECHO_N@,$ECHO_N,;t t
7081 s,@ECHO_T@,$ECHO_T,;t t
7082 s,@LIBS@,$LIBS,;t t
7083 s,@build@,$build,;t t
7084 s,@build_cpu@,$build_cpu,;t t
7085 s,@build_vendor@,$build_vendor,;t t
7086 s,@build_os@,$build_os,;t t
7087 s,@host@,$host,;t t
7088 s,@host_cpu@,$host_cpu,;t t
7089 s,@host_vendor@,$host_vendor,;t t
7090 s,@host_os@,$host_os,;t t
7091 s,@target@,$target,;t t
7092 s,@target_cpu@,$target_cpu,;t t
7093 s,@target_vendor@,$target_vendor,;t t
7094 s,@target_os@,$target_os,;t t
7095 s,@CC@,$CC,;t t
7096 s,@CFLAGS@,$CFLAGS,;t t
7097 s,@LDFLAGS@,$LDFLAGS,;t t
7098 s,@CPPFLAGS@,$CPPFLAGS,;t t
7099 s,@ac_ct_CC@,$ac_ct_CC,;t t
7100 s,@EXEEXT@,$EXEEXT,;t t
7101 s,@OBJEXT@,$OBJEXT,;t t
7102 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7103 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7104 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7105 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
7106 s,@HDEFINES@,$HDEFINES,;t t
7107 s,@AR@,$AR,;t t
7108 s,@RANLIB@,$RANLIB,;t t
7109 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7110 s,@USE_NLS@,$USE_NLS,;t t
7111 s,@LIBINTL@,$LIBINTL,;t t
7112 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
7113 s,@INCINTL@,$INCINTL,;t t
7114 s,@XGETTEXT@,$XGETTEXT,;t t
7115 s,@GMSGFMT@,$GMSGFMT,;t t
7116 s,@POSUB@,$POSUB,;t t
7117 s,@CATALOGS@,$CATALOGS,;t t
7118 s,@DATADIRNAME@,$DATADIRNAME,;t t
7119 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
7120 s,@GENCAT@,$GENCAT,;t t
7121 s,@CATOBJEXT@,$CATOBJEXT,;t t
7122 s,@CPP@,$CPP,;t t
7123 s,@EGREP@,$EGREP,;t t
7124 s,@MAINT@,$MAINT,;t t
7125 s,@sim_bswap@,$sim_bswap,;t t
7126 s,@sim_cflags@,$sim_cflags,;t t
7127 s,@sim_debug@,$sim_debug,;t t
7128 s,@sim_stdio@,$sim_stdio,;t t
7129 s,@sim_trace@,$sim_trace,;t t
7130 s,@sim_profile@,$sim_profile,;t t
7131 s,@PKGVERSION@,$PKGVERSION,;t t
7132 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
7133 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
7134 s,@CPP_FOR_TARGET@,$CPP_FOR_TARGET,;t t
7135 s,@TARGET_SUBDIR@,$TARGET_SUBDIR,;t t
7136 s,@LIBOBJS@,$LIBOBJS,;t t
7137 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7138 CEOF
7139
7140 _ACEOF
7141
7142 cat >>$CONFIG_STATUS <<\_ACEOF
7143 # Split the substitutions into bite-sized pieces for seds with
7144 # small command number limits, like on Digital OSF/1 and HP-UX.
7145 ac_max_sed_lines=48
7146 ac_sed_frag=1 # Number of current file.
7147 ac_beg=1 # First line for current file.
7148 ac_end=$ac_max_sed_lines # Line after last line for current file.
7149 ac_more_lines=:
7150 ac_sed_cmds=
7151 while $ac_more_lines; do
7152 if test $ac_beg -gt 1; then
7153 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7154 else
7155 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7156 fi
7157 if test ! -s $tmp/subs.frag; then
7158 ac_more_lines=false
7159 else
7160 # The purpose of the label and of the branching condition is to
7161 # speed up the sed processing (if there are no `@' at all, there
7162 # is no need to browse any of the substitutions).
7163 # These are the two extra sed commands mentioned above.
7164 (echo ':t
7165 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7166 if test -z "$ac_sed_cmds"; then
7167 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7168 else
7169 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7170 fi
7171 ac_sed_frag=`expr $ac_sed_frag + 1`
7172 ac_beg=$ac_end
7173 ac_end=`expr $ac_end + $ac_max_sed_lines`
7174 fi
7175 done
7176 if test -z "$ac_sed_cmds"; then
7177 ac_sed_cmds=cat
7178 fi
7179 fi # test -n "$CONFIG_FILES"
7180
7181 _ACEOF
7182 cat >>$CONFIG_STATUS <<\_ACEOF
7183 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7184 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7185 case $ac_file in
7186 - | *:- | *:-:* ) # input from stdin
7187 cat >$tmp/stdin
7188 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7189 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7190 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7191 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7192 * ) ac_file_in=$ac_file.in ;;
7193 esac
7194
7195 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7196 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7197 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7198 X"$ac_file" : 'X\(//\)[^/]' \| \
7199 X"$ac_file" : 'X\(//\)$' \| \
7200 X"$ac_file" : 'X\(/\)' \| \
7201 . : '\(.\)' 2>/dev/null ||
7202 echo X"$ac_file" |
7203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7204 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7205 /^X\(\/\/\)$/{ s//\1/; q; }
7206 /^X\(\/\).*/{ s//\1/; q; }
7207 s/.*/./; q'`
7208 { if $as_mkdir_p; then
7209 mkdir -p "$ac_dir"
7210 else
7211 as_dir="$ac_dir"
7212 as_dirs=
7213 while test ! -d "$as_dir"; do
7214 as_dirs="$as_dir $as_dirs"
7215 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7216 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7217 X"$as_dir" : 'X\(//\)[^/]' \| \
7218 X"$as_dir" : 'X\(//\)$' \| \
7219 X"$as_dir" : 'X\(/\)' \| \
7220 . : '\(.\)' 2>/dev/null ||
7221 echo X"$as_dir" |
7222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7223 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7224 /^X\(\/\/\)$/{ s//\1/; q; }
7225 /^X\(\/\).*/{ s//\1/; q; }
7226 s/.*/./; q'`
7227 done
7228 test ! -n "$as_dirs" || mkdir $as_dirs
7229 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7230 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7231 { (exit 1); exit 1; }; }; }
7232
7233 ac_builddir=.
7234
7235 if test "$ac_dir" != .; then
7236 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7237 # A "../" for each directory in $ac_dir_suffix.
7238 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7239 else
7240 ac_dir_suffix= ac_top_builddir=
7241 fi
7242
7243 case $srcdir in
7244 .) # No --srcdir option. We are building in place.
7245 ac_srcdir=.
7246 if test -z "$ac_top_builddir"; then
7247 ac_top_srcdir=.
7248 else
7249 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7250 fi ;;
7251 [\\/]* | ?:[\\/]* ) # Absolute path.
7252 ac_srcdir=$srcdir$ac_dir_suffix;
7253 ac_top_srcdir=$srcdir ;;
7254 *) # Relative path.
7255 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7256 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7257 esac
7258
7259 # Do not use `cd foo && pwd` to compute absolute paths, because
7260 # the directories may not exist.
7261 case `pwd` in
7262 .) ac_abs_builddir="$ac_dir";;
7263 *)
7264 case "$ac_dir" in
7265 .) ac_abs_builddir=`pwd`;;
7266 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7267 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7268 esac;;
7269 esac
7270 case $ac_abs_builddir in
7271 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7272 *)
7273 case ${ac_top_builddir}. in
7274 .) ac_abs_top_builddir=$ac_abs_builddir;;
7275 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7276 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7277 esac;;
7278 esac
7279 case $ac_abs_builddir in
7280 .) ac_abs_srcdir=$ac_srcdir;;
7281 *)
7282 case $ac_srcdir in
7283 .) ac_abs_srcdir=$ac_abs_builddir;;
7284 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7285 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7286 esac;;
7287 esac
7288 case $ac_abs_builddir in
7289 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7290 *)
7291 case $ac_top_srcdir in
7292 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7293 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7294 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7295 esac;;
7296 esac
7297
7298
7299 case $INSTALL in
7300 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7301 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7302 esac
7303
7304 if test x"$ac_file" != x-; then
7305 { echo "$as_me:$LINENO: creating $ac_file" >&5
7306 echo "$as_me: creating $ac_file" >&6;}
7307 rm -f "$ac_file"
7308 fi
7309 # Let's still pretend it is `configure' which instantiates (i.e., don't
7310 # use $as_me), people would be surprised to read:
7311 # /* config.h. Generated by config.status. */
7312 if test x"$ac_file" = x-; then
7313 configure_input=
7314 else
7315 configure_input="$ac_file. "
7316 fi
7317 configure_input=$configure_input"Generated from `echo $ac_file_in |
7318 sed 's,.*/,,'` by configure."
7319
7320 # First look for the input files in the build tree, otherwise in the
7321 # src tree.
7322 ac_file_inputs=`IFS=:
7323 for f in $ac_file_in; do
7324 case $f in
7325 -) echo $tmp/stdin ;;
7326 [\\/$]*)
7327 # Absolute (can't be DOS-style, as IFS=:)
7328 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7329 echo "$as_me: error: cannot find input file: $f" >&2;}
7330 { (exit 1); exit 1; }; }
7331 echo "$f";;
7332 *) # Relative
7333 if test -f "$f"; then
7334 # Build tree
7335 echo "$f"
7336 elif test -f "$srcdir/$f"; then
7337 # Source tree
7338 echo "$srcdir/$f"
7339 else
7340 # /dev/null tree
7341 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7342 echo "$as_me: error: cannot find input file: $f" >&2;}
7343 { (exit 1); exit 1; }; }
7344 fi;;
7345 esac
7346 done` || { (exit 1); exit 1; }
7347 _ACEOF
7348 cat >>$CONFIG_STATUS <<_ACEOF
7349 sed "$ac_vpsub
7350 $extrasub
7351 _ACEOF
7352 cat >>$CONFIG_STATUS <<\_ACEOF
7353 :t
7354 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7355 s,@configure_input@,$configure_input,;t t
7356 s,@srcdir@,$ac_srcdir,;t t
7357 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7358 s,@top_srcdir@,$ac_top_srcdir,;t t
7359 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7360 s,@builddir@,$ac_builddir,;t t
7361 s,@abs_builddir@,$ac_abs_builddir,;t t
7362 s,@top_builddir@,$ac_top_builddir,;t t
7363 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7364 s,@INSTALL@,$ac_INSTALL,;t t
7365 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7366 rm -f $tmp/stdin
7367 if test x"$ac_file" != x-; then
7368 mv $tmp/out $ac_file
7369 else
7370 cat $tmp/out
7371 rm -f $tmp/out
7372 fi
7373
7374 done
7375 _ACEOF
7376 cat >>$CONFIG_STATUS <<\_ACEOF
7377
7378 #
7379 # CONFIG_HEADER section.
7380 #
7381
7382 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7383 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7384 #
7385 # ac_d sets the value in "#define NAME VALUE" lines.
7386 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7387 ac_dB='[ ].*$,\1#\2'
7388 ac_dC=' '
7389 ac_dD=',;t'
7390 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7391 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7392 ac_uB='$,\1#\2define\3'
7393 ac_uC=' '
7394 ac_uD=',;t'
7395
7396 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7397 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7398 case $ac_file in
7399 - | *:- | *:-:* ) # input from stdin
7400 cat >$tmp/stdin
7401 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7402 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7403 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7404 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7405 * ) ac_file_in=$ac_file.in ;;
7406 esac
7407
7408 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7409 echo "$as_me: creating $ac_file" >&6;}
7410
7411 # First look for the input files in the build tree, otherwise in the
7412 # src tree.
7413 ac_file_inputs=`IFS=:
7414 for f in $ac_file_in; do
7415 case $f in
7416 -) echo $tmp/stdin ;;
7417 [\\/$]*)
7418 # Absolute (can't be DOS-style, as IFS=:)
7419 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7420 echo "$as_me: error: cannot find input file: $f" >&2;}
7421 { (exit 1); exit 1; }; }
7422 # Do quote $f, to prevent DOS paths from being IFS'd.
7423 echo "$f";;
7424 *) # Relative
7425 if test -f "$f"; then
7426 # Build tree
7427 echo "$f"
7428 elif test -f "$srcdir/$f"; then
7429 # Source tree
7430 echo "$srcdir/$f"
7431 else
7432 # /dev/null tree
7433 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7434 echo "$as_me: error: cannot find input file: $f" >&2;}
7435 { (exit 1); exit 1; }; }
7436 fi;;
7437 esac
7438 done` || { (exit 1); exit 1; }
7439 # Remove the trailing spaces.
7440 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7441
7442 _ACEOF
7443
7444 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7445 # `conftest.undefs', that substitutes the proper values into
7446 # config.h.in to produce config.h. The first handles `#define'
7447 # templates, and the second `#undef' templates.
7448 # And first: Protect against being on the right side of a sed subst in
7449 # config.status. Protect against being in an unquoted here document
7450 # in config.status.
7451 rm -f conftest.defines conftest.undefs
7452 # Using a here document instead of a string reduces the quoting nightmare.
7453 # Putting comments in sed scripts is not portable.
7454 #
7455 # `end' is used to avoid that the second main sed command (meant for
7456 # 0-ary CPP macros) applies to n-ary macro definitions.
7457 # See the Autoconf documentation for `clear'.
7458 cat >confdef2sed.sed <<\_ACEOF
7459 s/[\\&,]/\\&/g
7460 s,[\\$`],\\&,g
7461 t clear
7462 : clear
7463 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7464 t end
7465 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7466 : end
7467 _ACEOF
7468 # If some macros were called several times there might be several times
7469 # the same #defines, which is useless. Nevertheless, we may not want to
7470 # sort them, since we want the *last* AC-DEFINE to be honored.
7471 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7472 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7473 rm -f confdef2sed.sed
7474
7475 # This sed command replaces #undef with comments. This is necessary, for
7476 # example, in the case of _POSIX_SOURCE, which is predefined and required
7477 # on some systems where configure will not decide to define it.
7478 cat >>conftest.undefs <<\_ACEOF
7479 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7480 _ACEOF
7481
7482 # Break up conftest.defines because some shells have a limit on the size
7483 # of here documents, and old seds have small limits too (100 cmds).
7484 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7485 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7486 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7487 echo ' :' >>$CONFIG_STATUS
7488 rm -f conftest.tail
7489 while grep . conftest.defines >/dev/null
7490 do
7491 # Write a limited-size here document to $tmp/defines.sed.
7492 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7493 # Speed up: don't consider the non `#define' lines.
7494 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7495 # Work around the forget-to-reset-the-flag bug.
7496 echo 't clr' >>$CONFIG_STATUS
7497 echo ': clr' >>$CONFIG_STATUS
7498 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7499 echo 'CEOF
7500 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7501 rm -f $tmp/in
7502 mv $tmp/out $tmp/in
7503 ' >>$CONFIG_STATUS
7504 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7505 rm -f conftest.defines
7506 mv conftest.tail conftest.defines
7507 done
7508 rm -f conftest.defines
7509 echo ' fi # grep' >>$CONFIG_STATUS
7510 echo >>$CONFIG_STATUS
7511
7512 # Break up conftest.undefs because some shells have a limit on the size
7513 # of here documents, and old seds have small limits too (100 cmds).
7514 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7515 rm -f conftest.tail
7516 while grep . conftest.undefs >/dev/null
7517 do
7518 # Write a limited-size here document to $tmp/undefs.sed.
7519 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7520 # Speed up: don't consider the non `#undef'
7521 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7522 # Work around the forget-to-reset-the-flag bug.
7523 echo 't clr' >>$CONFIG_STATUS
7524 echo ': clr' >>$CONFIG_STATUS
7525 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7526 echo 'CEOF
7527 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7528 rm -f $tmp/in
7529 mv $tmp/out $tmp/in
7530 ' >>$CONFIG_STATUS
7531 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7532 rm -f conftest.undefs
7533 mv conftest.tail conftest.undefs
7534 done
7535 rm -f conftest.undefs
7536
7537 cat >>$CONFIG_STATUS <<\_ACEOF
7538 # Let's still pretend it is `configure' which instantiates (i.e., don't
7539 # use $as_me), people would be surprised to read:
7540 # /* config.h. Generated by config.status. */
7541 if test x"$ac_file" = x-; then
7542 echo "/* Generated by configure. */" >$tmp/config.h
7543 else
7544 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7545 fi
7546 cat $tmp/in >>$tmp/config.h
7547 rm -f $tmp/in
7548 if test x"$ac_file" != x-; then
7549 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7550 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7551 echo "$as_me: $ac_file is unchanged" >&6;}
7552 else
7553 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7554 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7555 X"$ac_file" : 'X\(//\)[^/]' \| \
7556 X"$ac_file" : 'X\(//\)$' \| \
7557 X"$ac_file" : 'X\(/\)' \| \
7558 . : '\(.\)' 2>/dev/null ||
7559 echo X"$ac_file" |
7560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7561 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7562 /^X\(\/\/\)$/{ s//\1/; q; }
7563 /^X\(\/\).*/{ s//\1/; q; }
7564 s/.*/./; q'`
7565 { if $as_mkdir_p; then
7566 mkdir -p "$ac_dir"
7567 else
7568 as_dir="$ac_dir"
7569 as_dirs=
7570 while test ! -d "$as_dir"; do
7571 as_dirs="$as_dir $as_dirs"
7572 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7573 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7574 X"$as_dir" : 'X\(//\)[^/]' \| \
7575 X"$as_dir" : 'X\(//\)$' \| \
7576 X"$as_dir" : 'X\(/\)' \| \
7577 . : '\(.\)' 2>/dev/null ||
7578 echo X"$as_dir" |
7579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7580 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7581 /^X\(\/\/\)$/{ s//\1/; q; }
7582 /^X\(\/\).*/{ s//\1/; q; }
7583 s/.*/./; q'`
7584 done
7585 test ! -n "$as_dirs" || mkdir $as_dirs
7586 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7587 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7588 { (exit 1); exit 1; }; }; }
7589
7590 rm -f $ac_file
7591 mv $tmp/config.h $ac_file
7592 fi
7593 else
7594 cat $tmp/config.h
7595 rm -f $tmp/config.h
7596 fi
7597 done
7598 _ACEOF
7599 cat >>$CONFIG_STATUS <<\_ACEOF
7600
7601 #
7602 # CONFIG_COMMANDS section.
7603 #
7604 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7605 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7606 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7607 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7608 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7609 X"$ac_dest" : 'X\(//\)[^/]' \| \
7610 X"$ac_dest" : 'X\(//\)$' \| \
7611 X"$ac_dest" : 'X\(/\)' \| \
7612 . : '\(.\)' 2>/dev/null ||
7613 echo X"$ac_dest" |
7614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7615 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7616 /^X\(\/\/\)$/{ s//\1/; q; }
7617 /^X\(\/\).*/{ s//\1/; q; }
7618 s/.*/./; q'`
7619 { if $as_mkdir_p; then
7620 mkdir -p "$ac_dir"
7621 else
7622 as_dir="$ac_dir"
7623 as_dirs=
7624 while test ! -d "$as_dir"; do
7625 as_dirs="$as_dir $as_dirs"
7626 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7627 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7628 X"$as_dir" : 'X\(//\)[^/]' \| \
7629 X"$as_dir" : 'X\(//\)$' \| \
7630 X"$as_dir" : 'X\(/\)' \| \
7631 . : '\(.\)' 2>/dev/null ||
7632 echo X"$as_dir" |
7633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7634 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7635 /^X\(\/\/\)$/{ s//\1/; q; }
7636 /^X\(\/\).*/{ s//\1/; q; }
7637 s/.*/./; q'`
7638 done
7639 test ! -n "$as_dirs" || mkdir $as_dirs
7640 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7641 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7642 { (exit 1); exit 1; }; }; }
7643
7644 ac_builddir=.
7645
7646 if test "$ac_dir" != .; then
7647 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7648 # A "../" for each directory in $ac_dir_suffix.
7649 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7650 else
7651 ac_dir_suffix= ac_top_builddir=
7652 fi
7653
7654 case $srcdir in
7655 .) # No --srcdir option. We are building in place.
7656 ac_srcdir=.
7657 if test -z "$ac_top_builddir"; then
7658 ac_top_srcdir=.
7659 else
7660 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7661 fi ;;
7662 [\\/]* | ?:[\\/]* ) # Absolute path.
7663 ac_srcdir=$srcdir$ac_dir_suffix;
7664 ac_top_srcdir=$srcdir ;;
7665 *) # Relative path.
7666 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7667 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7668 esac
7669
7670 # Do not use `cd foo && pwd` to compute absolute paths, because
7671 # the directories may not exist.
7672 case `pwd` in
7673 .) ac_abs_builddir="$ac_dir";;
7674 *)
7675 case "$ac_dir" in
7676 .) ac_abs_builddir=`pwd`;;
7677 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7678 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7679 esac;;
7680 esac
7681 case $ac_abs_builddir in
7682 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7683 *)
7684 case ${ac_top_builddir}. in
7685 .) ac_abs_top_builddir=$ac_abs_builddir;;
7686 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7687 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7688 esac;;
7689 esac
7690 case $ac_abs_builddir in
7691 .) ac_abs_srcdir=$ac_srcdir;;
7692 *)
7693 case $ac_srcdir in
7694 .) ac_abs_srcdir=$ac_abs_builddir;;
7695 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7696 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7697 esac;;
7698 esac
7699 case $ac_abs_builddir in
7700 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7701 *)
7702 case $ac_top_srcdir in
7703 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7704 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7705 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7706 esac;;
7707 esac
7708
7709
7710 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7711 echo "$as_me: executing $ac_dest commands" >&6;}
7712 case $ac_dest in
7713 default ) case x$CONFIG_HEADERS in xcconfig.h:config.in) echo > stamp-h ;; esac ;;
7714 esac
7715 done
7716 _ACEOF
7717
7718 cat >>$CONFIG_STATUS <<\_ACEOF
7719
7720 { (exit 0); exit 0; }
7721 _ACEOF
7722 chmod +x $CONFIG_STATUS
7723 ac_clean_files=$ac_clean_files_save
7724
7725
7726 # configure is writing to config.log, and then calls config.status.
7727 # config.status does its own redirection, appending to config.log.
7728 # Unfortunately, on DOS this fails, as config.log is still kept open
7729 # by configure, so config.status won't be able to write to it; its
7730 # output is simply discarded. So we exec the FD to /dev/null,
7731 # effectively closing config.log, so it can be properly (re)opened and
7732 # appended to by config.status. When coming back to configure, we
7733 # need to make the FD available again.
7734 if test "$no_create" != yes; then
7735 ac_cs_success=:
7736 ac_config_status_args=
7737 test "$silent" = yes &&
7738 ac_config_status_args="$ac_config_status_args --quiet"
7739 exec 5>/dev/null
7740 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7741 exec 5>>config.log
7742 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7743 # would make configure fail if this is the last instruction.
7744 $ac_cs_success || { (exit 1); exit 1; }
7745 fi
7746