* linux-nat.c (linux_nat_thread_alive): Handle targets that
[deliverable/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 SET_MAKE CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile 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 --disable-nls do not use Native Language Support
854 --enable-maintainer-mode Enable developer functionality.
855 --enable-sim-bswap Use Host specific BSWAP instruction.
856 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
857 --enable-sim-debug=opts Enable debugging flags
858 --enable-sim-stdio Specify whether to use stdio for console input/output.
859 --enable-sim-trace=opts Enable tracing flags
860 --enable-sim-profile=opts Enable profiling flags
861
862 Optional Packages:
863 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
864 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
865 --with-included-gettext use the GNU gettext library included here
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" || test ! -s conftest.err'
2027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2028 (eval $ac_try) 2>&5
2029 ac_status=$?
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); }; } &&
2032 { ac_try='test -s conftest.$ac_objext'
2033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2034 (eval $ac_try) 2>&5
2035 ac_status=$?
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }; }; then
2038 ac_compiler_gnu=yes
2039 else
2040 echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2042
2043 ac_compiler_gnu=no
2044 fi
2045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2046 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2047
2048 fi
2049 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2050 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2051 GCC=`test $ac_compiler_gnu = yes && echo yes`
2052 ac_test_CFLAGS=${CFLAGS+set}
2053 ac_save_CFLAGS=$CFLAGS
2054 CFLAGS="-g"
2055 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2056 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2057 if test "${ac_cv_prog_cc_g+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 else
2060 cat >conftest.$ac_ext <<_ACEOF
2061 /* confdefs.h. */
2062 _ACEOF
2063 cat confdefs.h >>conftest.$ac_ext
2064 cat >>conftest.$ac_ext <<_ACEOF
2065 /* end confdefs.h. */
2066
2067 int
2068 main ()
2069 {
2070
2071 ;
2072 return 0;
2073 }
2074 _ACEOF
2075 rm -f conftest.$ac_objext
2076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2077 (eval $ac_compile) 2>conftest.er1
2078 ac_status=$?
2079 grep -v '^ *+' conftest.er1 >conftest.err
2080 rm -f conftest.er1
2081 cat conftest.err >&5
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); } &&
2084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2086 (eval $ac_try) 2>&5
2087 ac_status=$?
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; } &&
2090 { ac_try='test -s conftest.$ac_objext'
2091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092 (eval $ac_try) 2>&5
2093 ac_status=$?
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }; }; then
2096 ac_cv_prog_cc_g=yes
2097 else
2098 echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.$ac_ext >&5
2100
2101 ac_cv_prog_cc_g=no
2102 fi
2103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2104 fi
2105 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2106 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2107 if test "$ac_test_CFLAGS" = set; then
2108 CFLAGS=$ac_save_CFLAGS
2109 elif test $ac_cv_prog_cc_g = yes; then
2110 if test "$GCC" = yes; then
2111 CFLAGS="-g -O2"
2112 else
2113 CFLAGS="-g"
2114 fi
2115 else
2116 if test "$GCC" = yes; then
2117 CFLAGS="-O2"
2118 else
2119 CFLAGS=
2120 fi
2121 fi
2122 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2123 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2124 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2126 else
2127 ac_cv_prog_cc_stdc=no
2128 ac_save_CC=$CC
2129 cat >conftest.$ac_ext <<_ACEOF
2130 /* confdefs.h. */
2131 _ACEOF
2132 cat confdefs.h >>conftest.$ac_ext
2133 cat >>conftest.$ac_ext <<_ACEOF
2134 /* end confdefs.h. */
2135 #include <stdarg.h>
2136 #include <stdio.h>
2137 #include <sys/types.h>
2138 #include <sys/stat.h>
2139 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2140 struct buf { int x; };
2141 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2142 static char *e (p, i)
2143 char **p;
2144 int i;
2145 {
2146 return p[i];
2147 }
2148 static char *f (char * (*g) (char **, int), char **p, ...)
2149 {
2150 char *s;
2151 va_list v;
2152 va_start (v,p);
2153 s = g (p, va_arg (v,int));
2154 va_end (v);
2155 return s;
2156 }
2157
2158 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2159 function prototypes and stuff, but not '\xHH' hex character constants.
2160 These don't provoke an error unfortunately, instead are silently treated
2161 as 'x'. The following induces an error, until -std1 is added to get
2162 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2163 array size at least. It's necessary to write '\x00'==0 to get something
2164 that's true only with -std1. */
2165 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2166
2167 int test (int i, double x);
2168 struct s1 {int (*f) (int a);};
2169 struct s2 {int (*f) (double a);};
2170 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2171 int argc;
2172 char **argv;
2173 int
2174 main ()
2175 {
2176 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2177 ;
2178 return 0;
2179 }
2180 _ACEOF
2181 # Don't try gcc -ansi; that turns off useful extensions and
2182 # breaks some systems' header files.
2183 # AIX -qlanglvl=ansi
2184 # Ultrix and OSF/1 -std1
2185 # HP-UX 10.20 and later -Ae
2186 # HP-UX older versions -Aa -D_HPUX_SOURCE
2187 # SVR4 -Xc -D__EXTENSIONS__
2188 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2189 do
2190 CC="$ac_save_CC $ac_arg"
2191 rm -f conftest.$ac_objext
2192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2193 (eval $ac_compile) 2>conftest.er1
2194 ac_status=$?
2195 grep -v '^ *+' conftest.er1 >conftest.err
2196 rm -f conftest.er1
2197 cat conftest.err >&5
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); } &&
2200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 (eval $ac_try) 2>&5
2203 ac_status=$?
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }; } &&
2206 { ac_try='test -s conftest.$ac_objext'
2207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208 (eval $ac_try) 2>&5
2209 ac_status=$?
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; }; then
2212 ac_cv_prog_cc_stdc=$ac_arg
2213 break
2214 else
2215 echo "$as_me: failed program was:" >&5
2216 sed 's/^/| /' conftest.$ac_ext >&5
2217
2218 fi
2219 rm -f conftest.err conftest.$ac_objext
2220 done
2221 rm -f conftest.$ac_ext conftest.$ac_objext
2222 CC=$ac_save_CC
2223
2224 fi
2225
2226 case "x$ac_cv_prog_cc_stdc" in
2227 x|xno)
2228 echo "$as_me:$LINENO: result: none needed" >&5
2229 echo "${ECHO_T}none needed" >&6 ;;
2230 *)
2231 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2232 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2233 CC="$CC $ac_cv_prog_cc_stdc" ;;
2234 esac
2235
2236 # Some people use a C++ compiler to compile C. Since we use `exit',
2237 # in C++ we need to declare it. In case someone uses the same compiler
2238 # for both compiling C and C++ we need to have the C++ compiler decide
2239 # the declaration of exit, since it's the most demanding environment.
2240 cat >conftest.$ac_ext <<_ACEOF
2241 #ifndef __cplusplus
2242 choke me
2243 #endif
2244 _ACEOF
2245 rm -f conftest.$ac_objext
2246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2247 (eval $ac_compile) 2>conftest.er1
2248 ac_status=$?
2249 grep -v '^ *+' conftest.er1 >conftest.err
2250 rm -f conftest.er1
2251 cat conftest.err >&5
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); } &&
2254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2256 (eval $ac_try) 2>&5
2257 ac_status=$?
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; } &&
2260 { ac_try='test -s conftest.$ac_objext'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 (eval $ac_try) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; }; then
2266 for ac_declaration in \
2267 '' \
2268 'extern "C" void std::exit (int) throw (); using std::exit;' \
2269 'extern "C" void std::exit (int); using std::exit;' \
2270 'extern "C" void exit (int) throw ();' \
2271 'extern "C" void exit (int);' \
2272 'void exit (int);'
2273 do
2274 cat >conftest.$ac_ext <<_ACEOF
2275 /* confdefs.h. */
2276 _ACEOF
2277 cat confdefs.h >>conftest.$ac_ext
2278 cat >>conftest.$ac_ext <<_ACEOF
2279 /* end confdefs.h. */
2280 $ac_declaration
2281 #include <stdlib.h>
2282 int
2283 main ()
2284 {
2285 exit (42);
2286 ;
2287 return 0;
2288 }
2289 _ACEOF
2290 rm -f conftest.$ac_objext
2291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2292 (eval $ac_compile) 2>conftest.er1
2293 ac_status=$?
2294 grep -v '^ *+' conftest.er1 >conftest.err
2295 rm -f conftest.er1
2296 cat conftest.err >&5
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); } &&
2299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301 (eval $ac_try) 2>&5
2302 ac_status=$?
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; } &&
2305 { ac_try='test -s conftest.$ac_objext'
2306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307 (eval $ac_try) 2>&5
2308 ac_status=$?
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); }; }; then
2311 :
2312 else
2313 echo "$as_me: failed program was:" >&5
2314 sed 's/^/| /' conftest.$ac_ext >&5
2315
2316 continue
2317 fi
2318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2319 cat >conftest.$ac_ext <<_ACEOF
2320 /* confdefs.h. */
2321 _ACEOF
2322 cat confdefs.h >>conftest.$ac_ext
2323 cat >>conftest.$ac_ext <<_ACEOF
2324 /* end confdefs.h. */
2325 $ac_declaration
2326 int
2327 main ()
2328 {
2329 exit (42);
2330 ;
2331 return 0;
2332 }
2333 _ACEOF
2334 rm -f conftest.$ac_objext
2335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2336 (eval $ac_compile) 2>conftest.er1
2337 ac_status=$?
2338 grep -v '^ *+' conftest.er1 >conftest.err
2339 rm -f conftest.er1
2340 cat conftest.err >&5
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); } &&
2343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345 (eval $ac_try) 2>&5
2346 ac_status=$?
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }; } &&
2349 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2355 break
2356 else
2357 echo "$as_me: failed program was:" >&5
2358 sed 's/^/| /' conftest.$ac_ext >&5
2359
2360 fi
2361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2362 done
2363 rm -f conftest*
2364 if test -n "$ac_declaration"; then
2365 echo '#ifdef __cplusplus' >>confdefs.h
2366 echo $ac_declaration >>confdefs.h
2367 echo '#endif' >>confdefs.h
2368 fi
2369
2370 else
2371 echo "$as_me: failed program was:" >&5
2372 sed 's/^/| /' conftest.$ac_ext >&5
2373
2374 fi
2375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2376 ac_ext=c
2377 ac_cpp='$CPP $CPPFLAGS'
2378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2381
2382 # Find a good install program. We prefer a C program (faster),
2383 # so one script is as good as another. But avoid the broken or
2384 # incompatible versions:
2385 # SysV /etc/install, /usr/sbin/install
2386 # SunOS /usr/etc/install
2387 # IRIX /sbin/install
2388 # AIX /bin/install
2389 # AmigaOS /C/install, which installs bootblocks on floppy discs
2390 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2391 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2392 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2393 # OS/2's system install, which has a completely different semantic
2394 # ./install, which can be erroneously created by make from ./install.sh.
2395 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2396 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2397 if test -z "$INSTALL"; then
2398 if test "${ac_cv_path_install+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 else
2401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402 for as_dir in $PATH
2403 do
2404 IFS=$as_save_IFS
2405 test -z "$as_dir" && as_dir=.
2406 # Account for people who put trailing slashes in PATH elements.
2407 case $as_dir/ in
2408 ./ | .// | /cC/* | \
2409 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2410 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2411 /usr/ucb/* ) ;;
2412 *)
2413 # OSF1 and SCO ODT 3.0 have their own names for install.
2414 # Don't use installbsd from OSF since it installs stuff as root
2415 # by default.
2416 for ac_prog in ginstall scoinst install; do
2417 for ac_exec_ext in '' $ac_executable_extensions; do
2418 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2419 if test $ac_prog = install &&
2420 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2421 # AIX install. It has an incompatible calling convention.
2422 :
2423 elif test $ac_prog = install &&
2424 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2425 # program-specific install script used by HP pwplus--don't use.
2426 :
2427 else
2428 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2429 break 3
2430 fi
2431 fi
2432 done
2433 done
2434 ;;
2435 esac
2436 done
2437
2438
2439 fi
2440 if test "${ac_cv_path_install+set}" = set; then
2441 INSTALL=$ac_cv_path_install
2442 else
2443 # As a last resort, use the slow shell script. We don't cache a
2444 # path for INSTALL within a source directory, because that will
2445 # break other packages using the cache if that directory is
2446 # removed, or if the path is relative.
2447 INSTALL=$ac_install_sh
2448 fi
2449 fi
2450 echo "$as_me:$LINENO: result: $INSTALL" >&5
2451 echo "${ECHO_T}$INSTALL" >&6
2452
2453 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2454 # It thinks the first close brace ends the variable substitution.
2455 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2456
2457 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2458
2459 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2460
2461
2462 # Put a plausible default for CC_FOR_BUILD in Makefile.
2463 if test "x$cross_compiling" = "xno"; then
2464 CC_FOR_BUILD='$(CC)'
2465 else
2466 CC_FOR_BUILD=gcc
2467 fi
2468
2469
2470
2471
2472 AR=${AR-ar}
2473
2474 if test -n "$ac_tool_prefix"; then
2475 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2476 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2477 echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2479 if test "${ac_cv_prog_RANLIB+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482 if test -n "$RANLIB"; then
2483 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2484 else
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2487 do
2488 IFS=$as_save_IFS
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2492 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494 break 2
2495 fi
2496 done
2497 done
2498
2499 fi
2500 fi
2501 RANLIB=$ac_cv_prog_RANLIB
2502 if test -n "$RANLIB"; then
2503 echo "$as_me:$LINENO: result: $RANLIB" >&5
2504 echo "${ECHO_T}$RANLIB" >&6
2505 else
2506 echo "$as_me:$LINENO: result: no" >&5
2507 echo "${ECHO_T}no" >&6
2508 fi
2509
2510 fi
2511 if test -z "$ac_cv_prog_RANLIB"; then
2512 ac_ct_RANLIB=$RANLIB
2513 # Extract the first word of "ranlib", so it can be a program name with args.
2514 set dummy ranlib; ac_word=$2
2515 echo "$as_me:$LINENO: checking for $ac_word" >&5
2516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2517 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2519 else
2520 if test -n "$ac_ct_RANLIB"; then
2521 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2522 else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH
2525 do
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2530 ac_cv_prog_ac_ct_RANLIB="ranlib"
2531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 break 2
2533 fi
2534 done
2535 done
2536
2537 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2538 fi
2539 fi
2540 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2541 if test -n "$ac_ct_RANLIB"; then
2542 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2543 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2544 else
2545 echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6
2547 fi
2548
2549 RANLIB=$ac_ct_RANLIB
2550 else
2551 RANLIB="$ac_cv_prog_RANLIB"
2552 fi
2553
2554
2555 ALL_LINGUAS=
2556 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2557 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2558 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2559 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2561 else
2562 cat >conftest.make <<\_ACEOF
2563 all:
2564 @echo 'ac_maketemp="$(MAKE)"'
2565 _ACEOF
2566 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2567 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2568 if test -n "$ac_maketemp"; then
2569 eval ac_cv_prog_make_${ac_make}_set=yes
2570 else
2571 eval ac_cv_prog_make_${ac_make}_set=no
2572 fi
2573 rm -f conftest.make
2574 fi
2575 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2576 echo "$as_me:$LINENO: result: yes" >&5
2577 echo "${ECHO_T}yes" >&6
2578 SET_MAKE=
2579 else
2580 echo "$as_me:$LINENO: result: no" >&5
2581 echo "${ECHO_T}no" >&6
2582 SET_MAKE="MAKE=${MAKE-make}"
2583 fi
2584
2585
2586 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2587 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2588 if test "${ac_cv_search_strerror+set}" = set; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
2590 else
2591 ac_func_search_save_LIBS=$LIBS
2592 ac_cv_search_strerror=no
2593 cat >conftest.$ac_ext <<_ACEOF
2594 /* confdefs.h. */
2595 _ACEOF
2596 cat confdefs.h >>conftest.$ac_ext
2597 cat >>conftest.$ac_ext <<_ACEOF
2598 /* end confdefs.h. */
2599
2600 /* Override any gcc2 internal prototype to avoid an error. */
2601 #ifdef __cplusplus
2602 extern "C"
2603 #endif
2604 /* We use char because int might match the return type of a gcc2
2605 builtin and then its argument prototype would still apply. */
2606 char strerror ();
2607 int
2608 main ()
2609 {
2610 strerror ();
2611 ;
2612 return 0;
2613 }
2614 _ACEOF
2615 rm -f conftest.$ac_objext conftest$ac_exeext
2616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2617 (eval $ac_link) 2>conftest.er1
2618 ac_status=$?
2619 grep -v '^ *+' conftest.er1 >conftest.err
2620 rm -f conftest.er1
2621 cat conftest.err >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); } &&
2624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 (eval $ac_try) 2>&5
2627 ac_status=$?
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; } &&
2630 { ac_try='test -s conftest$ac_exeext'
2631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632 (eval $ac_try) 2>&5
2633 ac_status=$?
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }; }; then
2636 ac_cv_search_strerror="none required"
2637 else
2638 echo "$as_me: failed program was:" >&5
2639 sed 's/^/| /' conftest.$ac_ext >&5
2640
2641 fi
2642 rm -f conftest.err conftest.$ac_objext \
2643 conftest$ac_exeext conftest.$ac_ext
2644 if test "$ac_cv_search_strerror" = no; then
2645 for ac_lib in cposix; do
2646 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2647 cat >conftest.$ac_ext <<_ACEOF
2648 /* confdefs.h. */
2649 _ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h. */
2653
2654 /* Override any gcc2 internal prototype to avoid an error. */
2655 #ifdef __cplusplus
2656 extern "C"
2657 #endif
2658 /* We use char because int might match the return type of a gcc2
2659 builtin and then its argument prototype would still apply. */
2660 char strerror ();
2661 int
2662 main ()
2663 {
2664 strerror ();
2665 ;
2666 return 0;
2667 }
2668 _ACEOF
2669 rm -f conftest.$ac_objext conftest$ac_exeext
2670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2671 (eval $ac_link) 2>conftest.er1
2672 ac_status=$?
2673 grep -v '^ *+' conftest.er1 >conftest.err
2674 rm -f conftest.er1
2675 cat conftest.err >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); } &&
2678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 (eval $ac_try) 2>&5
2681 ac_status=$?
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; } &&
2684 { ac_try='test -s conftest$ac_exeext'
2685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 (eval $ac_try) 2>&5
2687 ac_status=$?
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }; }; then
2690 ac_cv_search_strerror="-l$ac_lib"
2691 break
2692 else
2693 echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.$ac_ext >&5
2695
2696 fi
2697 rm -f conftest.err conftest.$ac_objext \
2698 conftest$ac_exeext conftest.$ac_ext
2699 done
2700 fi
2701 LIBS=$ac_func_search_save_LIBS
2702 fi
2703 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2704 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2705 if test "$ac_cv_search_strerror" != no; then
2706 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2707
2708 fi
2709
2710 ac_ext=c
2711 ac_cpp='$CPP $CPPFLAGS'
2712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2715 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2716 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2717 # On Suns, sometimes $CPP names a directory.
2718 if test -n "$CPP" && test -d "$CPP"; then
2719 CPP=
2720 fi
2721 if test -z "$CPP"; then
2722 if test "${ac_cv_prog_CPP+set}" = set; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2724 else
2725 # Double quotes because CPP needs to be expanded
2726 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2727 do
2728 ac_preproc_ok=false
2729 for ac_c_preproc_warn_flag in '' yes
2730 do
2731 # Use a header file that comes with gcc, so configuring glibc
2732 # with a fresh cross-compiler works.
2733 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2734 # <limits.h> exists even on freestanding compilers.
2735 # On the NeXT, cc -E runs the code through the compiler's parser,
2736 # not just through cpp. "Syntax error" is here to catch this case.
2737 cat >conftest.$ac_ext <<_ACEOF
2738 /* confdefs.h. */
2739 _ACEOF
2740 cat confdefs.h >>conftest.$ac_ext
2741 cat >>conftest.$ac_ext <<_ACEOF
2742 /* end confdefs.h. */
2743 #ifdef __STDC__
2744 # include <limits.h>
2745 #else
2746 # include <assert.h>
2747 #endif
2748 Syntax error
2749 _ACEOF
2750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2752 ac_status=$?
2753 grep -v '^ *+' conftest.er1 >conftest.err
2754 rm -f conftest.er1
2755 cat conftest.err >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); } >/dev/null; then
2758 if test -s conftest.err; then
2759 ac_cpp_err=$ac_c_preproc_warn_flag
2760 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2761 else
2762 ac_cpp_err=
2763 fi
2764 else
2765 ac_cpp_err=yes
2766 fi
2767 if test -z "$ac_cpp_err"; then
2768 :
2769 else
2770 echo "$as_me: failed program was:" >&5
2771 sed 's/^/| /' conftest.$ac_ext >&5
2772
2773 # Broken: fails on valid input.
2774 continue
2775 fi
2776 rm -f conftest.err conftest.$ac_ext
2777
2778 # OK, works on sane cases. Now check whether non-existent headers
2779 # can be detected and how.
2780 cat >conftest.$ac_ext <<_ACEOF
2781 /* confdefs.h. */
2782 _ACEOF
2783 cat confdefs.h >>conftest.$ac_ext
2784 cat >>conftest.$ac_ext <<_ACEOF
2785 /* end confdefs.h. */
2786 #include <ac_nonexistent.h>
2787 _ACEOF
2788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2790 ac_status=$?
2791 grep -v '^ *+' conftest.er1 >conftest.err
2792 rm -f conftest.er1
2793 cat conftest.err >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } >/dev/null; then
2796 if test -s conftest.err; then
2797 ac_cpp_err=$ac_c_preproc_warn_flag
2798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2799 else
2800 ac_cpp_err=
2801 fi
2802 else
2803 ac_cpp_err=yes
2804 fi
2805 if test -z "$ac_cpp_err"; then
2806 # Broken: success on invalid input.
2807 continue
2808 else
2809 echo "$as_me: failed program was:" >&5
2810 sed 's/^/| /' conftest.$ac_ext >&5
2811
2812 # Passes both tests.
2813 ac_preproc_ok=:
2814 break
2815 fi
2816 rm -f conftest.err conftest.$ac_ext
2817
2818 done
2819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2820 rm -f conftest.err conftest.$ac_ext
2821 if $ac_preproc_ok; then
2822 break
2823 fi
2824
2825 done
2826 ac_cv_prog_CPP=$CPP
2827
2828 fi
2829 CPP=$ac_cv_prog_CPP
2830 else
2831 ac_cv_prog_CPP=$CPP
2832 fi
2833 echo "$as_me:$LINENO: result: $CPP" >&5
2834 echo "${ECHO_T}$CPP" >&6
2835 ac_preproc_ok=false
2836 for ac_c_preproc_warn_flag in '' yes
2837 do
2838 # Use a header file that comes with gcc, so configuring glibc
2839 # with a fresh cross-compiler works.
2840 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2841 # <limits.h> exists even on freestanding compilers.
2842 # On the NeXT, cc -E runs the code through the compiler's parser,
2843 # not just through cpp. "Syntax error" is here to catch this case.
2844 cat >conftest.$ac_ext <<_ACEOF
2845 /* confdefs.h. */
2846 _ACEOF
2847 cat confdefs.h >>conftest.$ac_ext
2848 cat >>conftest.$ac_ext <<_ACEOF
2849 /* end confdefs.h. */
2850 #ifdef __STDC__
2851 # include <limits.h>
2852 #else
2853 # include <assert.h>
2854 #endif
2855 Syntax error
2856 _ACEOF
2857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2859 ac_status=$?
2860 grep -v '^ *+' conftest.er1 >conftest.err
2861 rm -f conftest.er1
2862 cat conftest.err >&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); } >/dev/null; then
2865 if test -s conftest.err; then
2866 ac_cpp_err=$ac_c_preproc_warn_flag
2867 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2868 else
2869 ac_cpp_err=
2870 fi
2871 else
2872 ac_cpp_err=yes
2873 fi
2874 if test -z "$ac_cpp_err"; then
2875 :
2876 else
2877 echo "$as_me: failed program was:" >&5
2878 sed 's/^/| /' conftest.$ac_ext >&5
2879
2880 # Broken: fails on valid input.
2881 continue
2882 fi
2883 rm -f conftest.err conftest.$ac_ext
2884
2885 # OK, works on sane cases. Now check whether non-existent headers
2886 # can be detected and how.
2887 cat >conftest.$ac_ext <<_ACEOF
2888 /* confdefs.h. */
2889 _ACEOF
2890 cat confdefs.h >>conftest.$ac_ext
2891 cat >>conftest.$ac_ext <<_ACEOF
2892 /* end confdefs.h. */
2893 #include <ac_nonexistent.h>
2894 _ACEOF
2895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2897 ac_status=$?
2898 grep -v '^ *+' conftest.er1 >conftest.err
2899 rm -f conftest.er1
2900 cat conftest.err >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } >/dev/null; then
2903 if test -s conftest.err; then
2904 ac_cpp_err=$ac_c_preproc_warn_flag
2905 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2906 else
2907 ac_cpp_err=
2908 fi
2909 else
2910 ac_cpp_err=yes
2911 fi
2912 if test -z "$ac_cpp_err"; then
2913 # Broken: success on invalid input.
2914 continue
2915 else
2916 echo "$as_me: failed program was:" >&5
2917 sed 's/^/| /' conftest.$ac_ext >&5
2918
2919 # Passes both tests.
2920 ac_preproc_ok=:
2921 break
2922 fi
2923 rm -f conftest.err conftest.$ac_ext
2924
2925 done
2926 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2927 rm -f conftest.err conftest.$ac_ext
2928 if $ac_preproc_ok; then
2929 :
2930 else
2931 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2932 See \`config.log' for more details." >&5
2933 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2934 See \`config.log' for more details." >&2;}
2935 { (exit 1); exit 1; }; }
2936 fi
2937
2938 ac_ext=c
2939 ac_cpp='$CPP $CPPFLAGS'
2940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2943
2944
2945 echo "$as_me:$LINENO: checking for egrep" >&5
2946 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2947 if test "${ac_cv_prog_egrep+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
2949 else
2950 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2951 then ac_cv_prog_egrep='grep -E'
2952 else ac_cv_prog_egrep='egrep'
2953 fi
2954 fi
2955 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2956 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2957 EGREP=$ac_cv_prog_egrep
2958
2959
2960 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2961 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2962 if test "${ac_cv_header_stdc+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2964 else
2965 cat >conftest.$ac_ext <<_ACEOF
2966 /* confdefs.h. */
2967 _ACEOF
2968 cat confdefs.h >>conftest.$ac_ext
2969 cat >>conftest.$ac_ext <<_ACEOF
2970 /* end confdefs.h. */
2971 #include <stdlib.h>
2972 #include <stdarg.h>
2973 #include <string.h>
2974 #include <float.h>
2975
2976 int
2977 main ()
2978 {
2979
2980 ;
2981 return 0;
2982 }
2983 _ACEOF
2984 rm -f conftest.$ac_objext
2985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2986 (eval $ac_compile) 2>conftest.er1
2987 ac_status=$?
2988 grep -v '^ *+' conftest.er1 >conftest.err
2989 rm -f conftest.er1
2990 cat conftest.err >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } &&
2993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995 (eval $ac_try) 2>&5
2996 ac_status=$?
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; } &&
2999 { ac_try='test -s conftest.$ac_objext'
3000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001 (eval $ac_try) 2>&5
3002 ac_status=$?
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }; }; then
3005 ac_cv_header_stdc=yes
3006 else
3007 echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3009
3010 ac_cv_header_stdc=no
3011 fi
3012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3013
3014 if test $ac_cv_header_stdc = yes; then
3015 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3016 cat >conftest.$ac_ext <<_ACEOF
3017 /* confdefs.h. */
3018 _ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h. */
3022 #include <string.h>
3023
3024 _ACEOF
3025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3026 $EGREP "memchr" >/dev/null 2>&1; then
3027 :
3028 else
3029 ac_cv_header_stdc=no
3030 fi
3031 rm -f conftest*
3032
3033 fi
3034
3035 if test $ac_cv_header_stdc = yes; then
3036 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3037 cat >conftest.$ac_ext <<_ACEOF
3038 /* confdefs.h. */
3039 _ACEOF
3040 cat confdefs.h >>conftest.$ac_ext
3041 cat >>conftest.$ac_ext <<_ACEOF
3042 /* end confdefs.h. */
3043 #include <stdlib.h>
3044
3045 _ACEOF
3046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3047 $EGREP "free" >/dev/null 2>&1; then
3048 :
3049 else
3050 ac_cv_header_stdc=no
3051 fi
3052 rm -f conftest*
3053
3054 fi
3055
3056 if test $ac_cv_header_stdc = yes; then
3057 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3058 if test "$cross_compiling" = yes; then
3059 :
3060 else
3061 cat >conftest.$ac_ext <<_ACEOF
3062 /* confdefs.h. */
3063 _ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3067 #include <ctype.h>
3068 #if ((' ' & 0x0FF) == 0x020)
3069 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3070 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3071 #else
3072 # define ISLOWER(c) \
3073 (('a' <= (c) && (c) <= 'i') \
3074 || ('j' <= (c) && (c) <= 'r') \
3075 || ('s' <= (c) && (c) <= 'z'))
3076 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3077 #endif
3078
3079 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3080 int
3081 main ()
3082 {
3083 int i;
3084 for (i = 0; i < 256; i++)
3085 if (XOR (islower (i), ISLOWER (i))
3086 || toupper (i) != TOUPPER (i))
3087 exit(2);
3088 exit (0);
3089 }
3090 _ACEOF
3091 rm -f conftest$ac_exeext
3092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3093 (eval $ac_link) 2>&5
3094 ac_status=$?
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3098 (eval $ac_try) 2>&5
3099 ac_status=$?
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; }; then
3102 :
3103 else
3104 echo "$as_me: program exited with status $ac_status" >&5
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3107
3108 ( exit $ac_status )
3109 ac_cv_header_stdc=no
3110 fi
3111 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3112 fi
3113 fi
3114 fi
3115 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3116 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3117 if test $ac_cv_header_stdc = yes; then
3118
3119 cat >>confdefs.h <<\_ACEOF
3120 #define STDC_HEADERS 1
3121 _ACEOF
3122
3123 fi
3124
3125 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3126 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3127 if test "${ac_cv_c_const+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 else
3130 cat >conftest.$ac_ext <<_ACEOF
3131 /* confdefs.h. */
3132 _ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3136
3137 int
3138 main ()
3139 {
3140 /* FIXME: Include the comments suggested by Paul. */
3141 #ifndef __cplusplus
3142 /* Ultrix mips cc rejects this. */
3143 typedef int charset[2];
3144 const charset x;
3145 /* SunOS 4.1.1 cc rejects this. */
3146 char const *const *ccp;
3147 char **p;
3148 /* NEC SVR4.0.2 mips cc rejects this. */
3149 struct point {int x, y;};
3150 static struct point const zero = {0,0};
3151 /* AIX XL C 1.02.0.0 rejects this.
3152 It does not let you subtract one const X* pointer from another in
3153 an arm of an if-expression whose if-part is not a constant
3154 expression */
3155 const char *g = "string";
3156 ccp = &g + (g ? g-g : 0);
3157 /* HPUX 7.0 cc rejects these. */
3158 ++ccp;
3159 p = (char**) ccp;
3160 ccp = (char const *const *) p;
3161 { /* SCO 3.2v4 cc rejects this. */
3162 char *t;
3163 char const *s = 0 ? (char *) 0 : (char const *) 0;
3164
3165 *t++ = 0;
3166 }
3167 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3168 int x[] = {25, 17};
3169 const int *foo = &x[0];
3170 ++foo;
3171 }
3172 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3173 typedef const int *iptr;
3174 iptr p = 0;
3175 ++p;
3176 }
3177 { /* AIX XL C 1.02.0.0 rejects this saying
3178 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3179 struct s { int j; const int *ap[3]; };
3180 struct s *b; b->j = 5;
3181 }
3182 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3183 const int foo = 10;
3184 }
3185 #endif
3186
3187 ;
3188 return 0;
3189 }
3190 _ACEOF
3191 rm -f conftest.$ac_objext
3192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3193 (eval $ac_compile) 2>conftest.er1
3194 ac_status=$?
3195 grep -v '^ *+' conftest.er1 >conftest.err
3196 rm -f conftest.er1
3197 cat conftest.err >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } &&
3200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3202 (eval $ac_try) 2>&5
3203 ac_status=$?
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; } &&
3206 { ac_try='test -s conftest.$ac_objext'
3207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3208 (eval $ac_try) 2>&5
3209 ac_status=$?
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }; }; then
3212 ac_cv_c_const=yes
3213 else
3214 echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3216
3217 ac_cv_c_const=no
3218 fi
3219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3220 fi
3221 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3222 echo "${ECHO_T}$ac_cv_c_const" >&6
3223 if test $ac_cv_c_const = no; then
3224
3225 cat >>confdefs.h <<\_ACEOF
3226 #define const
3227 _ACEOF
3228
3229 fi
3230
3231 echo "$as_me:$LINENO: checking for inline" >&5
3232 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3233 if test "${ac_cv_c_inline+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 else
3236 ac_cv_c_inline=no
3237 for ac_kw in inline __inline__ __inline; do
3238 cat >conftest.$ac_ext <<_ACEOF
3239 /* confdefs.h. */
3240 _ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h. */
3244 #ifndef __cplusplus
3245 typedef int foo_t;
3246 static $ac_kw foo_t static_foo () {return 0; }
3247 $ac_kw foo_t foo () {return 0; }
3248 #endif
3249
3250 _ACEOF
3251 rm -f conftest.$ac_objext
3252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3253 (eval $ac_compile) 2>conftest.er1
3254 ac_status=$?
3255 grep -v '^ *+' conftest.er1 >conftest.err
3256 rm -f conftest.er1
3257 cat conftest.err >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); } &&
3260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3262 (eval $ac_try) 2>&5
3263 ac_status=$?
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }; } &&
3266 { ac_try='test -s conftest.$ac_objext'
3267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268 (eval $ac_try) 2>&5
3269 ac_status=$?
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }; }; then
3272 ac_cv_c_inline=$ac_kw; break
3273 else
3274 echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3276
3277 fi
3278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3279 done
3280
3281 fi
3282 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3283 echo "${ECHO_T}$ac_cv_c_inline" >&6
3284
3285
3286 case $ac_cv_c_inline in
3287 inline | yes) ;;
3288 *)
3289 case $ac_cv_c_inline in
3290 no) ac_val=;;
3291 *) ac_val=$ac_cv_c_inline;;
3292 esac
3293 cat >>confdefs.h <<_ACEOF
3294 #ifndef __cplusplus
3295 #define inline $ac_val
3296 #endif
3297 _ACEOF
3298 ;;
3299 esac
3300
3301 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3312 inttypes.h stdint.h unistd.h
3313 do
3314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3315 echo "$as_me:$LINENO: checking for $ac_header" >&5
3316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
3320 cat >conftest.$ac_ext <<_ACEOF
3321 /* confdefs.h. */
3322 _ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h. */
3326 $ac_includes_default
3327
3328 #include <$ac_header>
3329 _ACEOF
3330 rm -f conftest.$ac_objext
3331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3332 (eval $ac_compile) 2>conftest.er1
3333 ac_status=$?
3334 grep -v '^ *+' conftest.er1 >conftest.err
3335 rm -f conftest.er1
3336 cat conftest.err >&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); } &&
3339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3341 (eval $ac_try) 2>&5
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; } &&
3345 { ac_try='test -s conftest.$ac_objext'
3346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3347 (eval $ac_try) 2>&5
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; }; then
3351 eval "$as_ac_Header=yes"
3352 else
3353 echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3355
3356 eval "$as_ac_Header=no"
3357 fi
3358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3359 fi
3360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3363 cat >>confdefs.h <<_ACEOF
3364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3365 _ACEOF
3366
3367 fi
3368
3369 done
3370
3371
3372 echo "$as_me:$LINENO: checking for off_t" >&5
3373 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3374 if test "${ac_cv_type_off_t+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else
3377 cat >conftest.$ac_ext <<_ACEOF
3378 /* confdefs.h. */
3379 _ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h. */
3383 $ac_includes_default
3384 int
3385 main ()
3386 {
3387 if ((off_t *) 0)
3388 return 0;
3389 if (sizeof (off_t))
3390 return 0;
3391 ;
3392 return 0;
3393 }
3394 _ACEOF
3395 rm -f conftest.$ac_objext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397 (eval $ac_compile) 2>conftest.er1
3398 ac_status=$?
3399 grep -v '^ *+' conftest.er1 >conftest.err
3400 rm -f conftest.er1
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } &&
3404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3406 (eval $ac_try) 2>&5
3407 ac_status=$?
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; } &&
3410 { ac_try='test -s conftest.$ac_objext'
3411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3412 (eval $ac_try) 2>&5
3413 ac_status=$?
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); }; }; then
3416 ac_cv_type_off_t=yes
3417 else
3418 echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3420
3421 ac_cv_type_off_t=no
3422 fi
3423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3424 fi
3425 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3426 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3427 if test $ac_cv_type_off_t = yes; then
3428 :
3429 else
3430
3431 cat >>confdefs.h <<_ACEOF
3432 #define off_t long
3433 _ACEOF
3434
3435 fi
3436
3437 echo "$as_me:$LINENO: checking for size_t" >&5
3438 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3439 if test "${ac_cv_type_size_t+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 else
3442 cat >conftest.$ac_ext <<_ACEOF
3443 /* confdefs.h. */
3444 _ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h. */
3448 $ac_includes_default
3449 int
3450 main ()
3451 {
3452 if ((size_t *) 0)
3453 return 0;
3454 if (sizeof (size_t))
3455 return 0;
3456 ;
3457 return 0;
3458 }
3459 _ACEOF
3460 rm -f conftest.$ac_objext
3461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3462 (eval $ac_compile) 2>conftest.er1
3463 ac_status=$?
3464 grep -v '^ *+' conftest.er1 >conftest.err
3465 rm -f conftest.er1
3466 cat conftest.err >&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } &&
3469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471 (eval $ac_try) 2>&5
3472 ac_status=$?
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }; } &&
3475 { ac_try='test -s conftest.$ac_objext'
3476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3477 (eval $ac_try) 2>&5
3478 ac_status=$?
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; }; then
3481 ac_cv_type_size_t=yes
3482 else
3483 echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3485
3486 ac_cv_type_size_t=no
3487 fi
3488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3489 fi
3490 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3491 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3492 if test $ac_cv_type_size_t = yes; then
3493 :
3494 else
3495
3496 cat >>confdefs.h <<_ACEOF
3497 #define size_t unsigned
3498 _ACEOF
3499
3500 fi
3501
3502 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3503 # for constant arguments. Useless!
3504 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3505 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3506 if test "${ac_cv_working_alloca_h+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3508 else
3509 cat >conftest.$ac_ext <<_ACEOF
3510 /* confdefs.h. */
3511 _ACEOF
3512 cat confdefs.h >>conftest.$ac_ext
3513 cat >>conftest.$ac_ext <<_ACEOF
3514 /* end confdefs.h. */
3515 #include <alloca.h>
3516 int
3517 main ()
3518 {
3519 char *p = (char *) alloca (2 * sizeof (int));
3520 ;
3521 return 0;
3522 }
3523 _ACEOF
3524 rm -f conftest.$ac_objext conftest$ac_exeext
3525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3526 (eval $ac_link) 2>conftest.er1
3527 ac_status=$?
3528 grep -v '^ *+' conftest.er1 >conftest.err
3529 rm -f conftest.er1
3530 cat conftest.err >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } &&
3533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 (eval $ac_try) 2>&5
3536 ac_status=$?
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; } &&
3539 { ac_try='test -s conftest$ac_exeext'
3540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541 (eval $ac_try) 2>&5
3542 ac_status=$?
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; }; then
3545 ac_cv_working_alloca_h=yes
3546 else
3547 echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3549
3550 ac_cv_working_alloca_h=no
3551 fi
3552 rm -f conftest.err conftest.$ac_objext \
3553 conftest$ac_exeext conftest.$ac_ext
3554 fi
3555 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3556 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3557 if test $ac_cv_working_alloca_h = yes; then
3558
3559 cat >>confdefs.h <<\_ACEOF
3560 #define HAVE_ALLOCA_H 1
3561 _ACEOF
3562
3563 fi
3564
3565 echo "$as_me:$LINENO: checking for alloca" >&5
3566 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3567 if test "${ac_cv_func_alloca_works+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3569 else
3570 cat >conftest.$ac_ext <<_ACEOF
3571 /* confdefs.h. */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3576 #ifdef __GNUC__
3577 # define alloca __builtin_alloca
3578 #else
3579 # ifdef _MSC_VER
3580 # include <malloc.h>
3581 # define alloca _alloca
3582 # else
3583 # if HAVE_ALLOCA_H
3584 # include <alloca.h>
3585 # else
3586 # ifdef _AIX
3587 #pragma alloca
3588 # else
3589 # ifndef alloca /* predefined by HP cc +Olibcalls */
3590 char *alloca ();
3591 # endif
3592 # endif
3593 # endif
3594 # endif
3595 #endif
3596
3597 int
3598 main ()
3599 {
3600 char *p = (char *) alloca (1);
3601 ;
3602 return 0;
3603 }
3604 _ACEOF
3605 rm -f conftest.$ac_objext conftest$ac_exeext
3606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3607 (eval $ac_link) 2>conftest.er1
3608 ac_status=$?
3609 grep -v '^ *+' conftest.er1 >conftest.err
3610 rm -f conftest.er1
3611 cat conftest.err >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); } &&
3614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 (eval $ac_try) 2>&5
3617 ac_status=$?
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; } &&
3620 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
3626 ac_cv_func_alloca_works=yes
3627 else
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3630
3631 ac_cv_func_alloca_works=no
3632 fi
3633 rm -f conftest.err conftest.$ac_objext \
3634 conftest$ac_exeext conftest.$ac_ext
3635 fi
3636 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3637 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3638
3639 if test $ac_cv_func_alloca_works = yes; then
3640
3641 cat >>confdefs.h <<\_ACEOF
3642 #define HAVE_ALLOCA 1
3643 _ACEOF
3644
3645 else
3646 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3647 # that cause trouble. Some versions do not even contain alloca or
3648 # contain a buggy version. If you still want to use their alloca,
3649 # use ar to extract alloca.o from them instead of compiling alloca.c.
3650
3651 ALLOCA=alloca.$ac_objext
3652
3653 cat >>confdefs.h <<\_ACEOF
3654 #define C_ALLOCA 1
3655 _ACEOF
3656
3657
3658 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3659 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3660 if test "${ac_cv_os_cray+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663 cat >conftest.$ac_ext <<_ACEOF
3664 /* confdefs.h. */
3665 _ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h. */
3669 #if defined(CRAY) && ! defined(CRAY2)
3670 webecray
3671 #else
3672 wenotbecray
3673 #endif
3674
3675 _ACEOF
3676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3677 $EGREP "webecray" >/dev/null 2>&1; then
3678 ac_cv_os_cray=yes
3679 else
3680 ac_cv_os_cray=no
3681 fi
3682 rm -f conftest*
3683
3684 fi
3685 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3686 echo "${ECHO_T}$ac_cv_os_cray" >&6
3687 if test $ac_cv_os_cray = yes; then
3688 for ac_func in _getb67 GETB67 getb67; do
3689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3690 echo "$as_me:$LINENO: checking for $ac_func" >&5
3691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3692 if eval "test \"\${$as_ac_var+set}\" = set"; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 else
3695 cat >conftest.$ac_ext <<_ACEOF
3696 /* confdefs.h. */
3697 _ACEOF
3698 cat confdefs.h >>conftest.$ac_ext
3699 cat >>conftest.$ac_ext <<_ACEOF
3700 /* end confdefs.h. */
3701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3703 #define $ac_func innocuous_$ac_func
3704
3705 /* System header to define __stub macros and hopefully few prototypes,
3706 which can conflict with char $ac_func (); below.
3707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3708 <limits.h> exists even on freestanding compilers. */
3709
3710 #ifdef __STDC__
3711 # include <limits.h>
3712 #else
3713 # include <assert.h>
3714 #endif
3715
3716 #undef $ac_func
3717
3718 /* Override any gcc2 internal prototype to avoid an error. */
3719 #ifdef __cplusplus
3720 extern "C"
3721 {
3722 #endif
3723 /* We use char because int might match the return type of a gcc2
3724 builtin and then its argument prototype would still apply. */
3725 char $ac_func ();
3726 /* The GNU C library defines this for functions which it implements
3727 to always fail with ENOSYS. Some functions are actually named
3728 something starting with __ and the normal name is an alias. */
3729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3730 choke me
3731 #else
3732 char (*f) () = $ac_func;
3733 #endif
3734 #ifdef __cplusplus
3735 }
3736 #endif
3737
3738 int
3739 main ()
3740 {
3741 return f != $ac_func;
3742 ;
3743 return 0;
3744 }
3745 _ACEOF
3746 rm -f conftest.$ac_objext conftest$ac_exeext
3747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3748 (eval $ac_link) 2>conftest.er1
3749 ac_status=$?
3750 grep -v '^ *+' conftest.er1 >conftest.err
3751 rm -f conftest.er1
3752 cat conftest.err >&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); } &&
3755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757 (eval $ac_try) 2>&5
3758 ac_status=$?
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); }; } &&
3761 { ac_try='test -s conftest$ac_exeext'
3762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763 (eval $ac_try) 2>&5
3764 ac_status=$?
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }; }; then
3767 eval "$as_ac_var=yes"
3768 else
3769 echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.$ac_ext >&5
3771
3772 eval "$as_ac_var=no"
3773 fi
3774 rm -f conftest.err conftest.$ac_objext \
3775 conftest$ac_exeext conftest.$ac_ext
3776 fi
3777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3778 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3779 if test `eval echo '${'$as_ac_var'}'` = yes; then
3780
3781 cat >>confdefs.h <<_ACEOF
3782 #define CRAY_STACKSEG_END $ac_func
3783 _ACEOF
3784
3785 break
3786 fi
3787
3788 done
3789 fi
3790
3791 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3792 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3793 if test "${ac_cv_c_stack_direction+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 else
3796 if test "$cross_compiling" = yes; then
3797 ac_cv_c_stack_direction=0
3798 else
3799 cat >conftest.$ac_ext <<_ACEOF
3800 /* confdefs.h. */
3801 _ACEOF
3802 cat confdefs.h >>conftest.$ac_ext
3803 cat >>conftest.$ac_ext <<_ACEOF
3804 /* end confdefs.h. */
3805 int
3806 find_stack_direction ()
3807 {
3808 static char *addr = 0;
3809 auto char dummy;
3810 if (addr == 0)
3811 {
3812 addr = &dummy;
3813 return find_stack_direction ();
3814 }
3815 else
3816 return (&dummy > addr) ? 1 : -1;
3817 }
3818
3819 int
3820 main ()
3821 {
3822 exit (find_stack_direction () < 0);
3823 }
3824 _ACEOF
3825 rm -f conftest$ac_exeext
3826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3827 (eval $ac_link) 2>&5
3828 ac_status=$?
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832 (eval $ac_try) 2>&5
3833 ac_status=$?
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; }; then
3836 ac_cv_c_stack_direction=1
3837 else
3838 echo "$as_me: program exited with status $ac_status" >&5
3839 echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.$ac_ext >&5
3841
3842 ( exit $ac_status )
3843 ac_cv_c_stack_direction=-1
3844 fi
3845 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3846 fi
3847 fi
3848 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3849 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3850
3851 cat >>confdefs.h <<_ACEOF
3852 #define STACK_DIRECTION $ac_cv_c_stack_direction
3853 _ACEOF
3854
3855
3856 fi
3857
3858
3859
3860 for ac_header in stdlib.h unistd.h
3861 do
3862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3864 echo "$as_me:$LINENO: checking for $ac_header" >&5
3865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 fi
3869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3870 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3871 else
3872 # Is the header compilable?
3873 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3874 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3875 cat >conftest.$ac_ext <<_ACEOF
3876 /* confdefs.h. */
3877 _ACEOF
3878 cat confdefs.h >>conftest.$ac_ext
3879 cat >>conftest.$ac_ext <<_ACEOF
3880 /* end confdefs.h. */
3881 $ac_includes_default
3882 #include <$ac_header>
3883 _ACEOF
3884 rm -f conftest.$ac_objext
3885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3886 (eval $ac_compile) 2>conftest.er1
3887 ac_status=$?
3888 grep -v '^ *+' conftest.er1 >conftest.err
3889 rm -f conftest.er1
3890 cat conftest.err >&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); } &&
3893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3895 (eval $ac_try) 2>&5
3896 ac_status=$?
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }; } &&
3899 { ac_try='test -s conftest.$ac_objext'
3900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3901 (eval $ac_try) 2>&5
3902 ac_status=$?
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); }; }; then
3905 ac_header_compiler=yes
3906 else
3907 echo "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.$ac_ext >&5
3909
3910 ac_header_compiler=no
3911 fi
3912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3913 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3914 echo "${ECHO_T}$ac_header_compiler" >&6
3915
3916 # Is the header present?
3917 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3918 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3919 cat >conftest.$ac_ext <<_ACEOF
3920 /* confdefs.h. */
3921 _ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3925 #include <$ac_header>
3926 _ACEOF
3927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3929 ac_status=$?
3930 grep -v '^ *+' conftest.er1 >conftest.err
3931 rm -f conftest.er1
3932 cat conftest.err >&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); } >/dev/null; then
3935 if test -s conftest.err; then
3936 ac_cpp_err=$ac_c_preproc_warn_flag
3937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3938 else
3939 ac_cpp_err=
3940 fi
3941 else
3942 ac_cpp_err=yes
3943 fi
3944 if test -z "$ac_cpp_err"; then
3945 ac_header_preproc=yes
3946 else
3947 echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3949
3950 ac_header_preproc=no
3951 fi
3952 rm -f conftest.err conftest.$ac_ext
3953 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3954 echo "${ECHO_T}$ac_header_preproc" >&6
3955
3956 # So? What about this header?
3957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3958 yes:no: )
3959 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3960 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3962 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3963 ac_header_preproc=yes
3964 ;;
3965 no:yes:* )
3966 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3967 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3968 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3969 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3970 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3971 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3972 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3973 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3975 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3976 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3977 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3978 (
3979 cat <<\_ASBOX
3980 ## ------------------------------------------ ##
3981 ## Report this to the AC_PACKAGE_NAME lists. ##
3982 ## ------------------------------------------ ##
3983 _ASBOX
3984 ) |
3985 sed "s/^/$as_me: WARNING: /" >&2
3986 ;;
3987 esac
3988 echo "$as_me:$LINENO: checking for $ac_header" >&5
3989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 else
3993 eval "$as_ac_Header=\$ac_header_preproc"
3994 fi
3995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3997
3998 fi
3999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4000 cat >>confdefs.h <<_ACEOF
4001 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4002 _ACEOF
4003
4004 fi
4005
4006 done
4007
4008
4009 for ac_func in getpagesize
4010 do
4011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4012 echo "$as_me:$LINENO: checking for $ac_func" >&5
4013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4014 if eval "test \"\${$as_ac_var+set}\" = set"; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 else
4017 cat >conftest.$ac_ext <<_ACEOF
4018 /* confdefs.h. */
4019 _ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h. */
4023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4025 #define $ac_func innocuous_$ac_func
4026
4027 /* System header to define __stub macros and hopefully few prototypes,
4028 which can conflict with char $ac_func (); below.
4029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4030 <limits.h> exists even on freestanding compilers. */
4031
4032 #ifdef __STDC__
4033 # include <limits.h>
4034 #else
4035 # include <assert.h>
4036 #endif
4037
4038 #undef $ac_func
4039
4040 /* Override any gcc2 internal prototype to avoid an error. */
4041 #ifdef __cplusplus
4042 extern "C"
4043 {
4044 #endif
4045 /* We use char because int might match the return type of a gcc2
4046 builtin and then its argument prototype would still apply. */
4047 char $ac_func ();
4048 /* The GNU C library defines this for functions which it implements
4049 to always fail with ENOSYS. Some functions are actually named
4050 something starting with __ and the normal name is an alias. */
4051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4052 choke me
4053 #else
4054 char (*f) () = $ac_func;
4055 #endif
4056 #ifdef __cplusplus
4057 }
4058 #endif
4059
4060 int
4061 main ()
4062 {
4063 return f != $ac_func;
4064 ;
4065 return 0;
4066 }
4067 _ACEOF
4068 rm -f conftest.$ac_objext conftest$ac_exeext
4069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4070 (eval $ac_link) 2>conftest.er1
4071 ac_status=$?
4072 grep -v '^ *+' conftest.er1 >conftest.err
4073 rm -f conftest.er1
4074 cat conftest.err >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } &&
4077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 (eval $ac_try) 2>&5
4080 ac_status=$?
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; } &&
4083 { ac_try='test -s conftest$ac_exeext'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 (eval $ac_try) 2>&5
4086 ac_status=$?
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; }; then
4089 eval "$as_ac_var=yes"
4090 else
4091 echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4093
4094 eval "$as_ac_var=no"
4095 fi
4096 rm -f conftest.err conftest.$ac_objext \
4097 conftest$ac_exeext conftest.$ac_ext
4098 fi
4099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4100 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4101 if test `eval echo '${'$as_ac_var'}'` = yes; then
4102 cat >>confdefs.h <<_ACEOF
4103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4104 _ACEOF
4105
4106 fi
4107 done
4108
4109 echo "$as_me:$LINENO: checking for working mmap" >&5
4110 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4111 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114 if test "$cross_compiling" = yes; then
4115 ac_cv_func_mmap_fixed_mapped=no
4116 else
4117 cat >conftest.$ac_ext <<_ACEOF
4118 /* confdefs.h. */
4119 _ACEOF
4120 cat confdefs.h >>conftest.$ac_ext
4121 cat >>conftest.$ac_ext <<_ACEOF
4122 /* end confdefs.h. */
4123 $ac_includes_default
4124 /* malloc might have been renamed as rpl_malloc. */
4125 #undef malloc
4126
4127 /* Thanks to Mike Haertel and Jim Avera for this test.
4128 Here is a matrix of mmap possibilities:
4129 mmap private not fixed
4130 mmap private fixed at somewhere currently unmapped
4131 mmap private fixed at somewhere already mapped
4132 mmap shared not fixed
4133 mmap shared fixed at somewhere currently unmapped
4134 mmap shared fixed at somewhere already mapped
4135 For private mappings, we should verify that changes cannot be read()
4136 back from the file, nor mmap's back from the file at a different
4137 address. (There have been systems where private was not correctly
4138 implemented like the infamous i386 svr4.0, and systems where the
4139 VM page cache was not coherent with the file system buffer cache
4140 like early versions of FreeBSD and possibly contemporary NetBSD.)
4141 For shared mappings, we should conversely verify that changes get
4142 propagated back to all the places they're supposed to be.
4143
4144 Grep wants private fixed already mapped.
4145 The main things grep needs to know about mmap are:
4146 * does it exist and is it safe to write into the mmap'd area
4147 * how to use it (BSD variants) */
4148
4149 #include <fcntl.h>
4150 #include <sys/mman.h>
4151
4152 #if !STDC_HEADERS && !HAVE_STDLIB_H
4153 char *malloc ();
4154 #endif
4155
4156 /* This mess was copied from the GNU getpagesize.h. */
4157 #if !HAVE_GETPAGESIZE
4158 /* Assume that all systems that can run configure have sys/param.h. */
4159 # if !HAVE_SYS_PARAM_H
4160 # define HAVE_SYS_PARAM_H 1
4161 # endif
4162
4163 # ifdef _SC_PAGESIZE
4164 # define getpagesize() sysconf(_SC_PAGESIZE)
4165 # else /* no _SC_PAGESIZE */
4166 # if HAVE_SYS_PARAM_H
4167 # include <sys/param.h>
4168 # ifdef EXEC_PAGESIZE
4169 # define getpagesize() EXEC_PAGESIZE
4170 # else /* no EXEC_PAGESIZE */
4171 # ifdef NBPG
4172 # define getpagesize() NBPG * CLSIZE
4173 # ifndef CLSIZE
4174 # define CLSIZE 1
4175 # endif /* no CLSIZE */
4176 # else /* no NBPG */
4177 # ifdef NBPC
4178 # define getpagesize() NBPC
4179 # else /* no NBPC */
4180 # ifdef PAGESIZE
4181 # define getpagesize() PAGESIZE
4182 # endif /* PAGESIZE */
4183 # endif /* no NBPC */
4184 # endif /* no NBPG */
4185 # endif /* no EXEC_PAGESIZE */
4186 # else /* no HAVE_SYS_PARAM_H */
4187 # define getpagesize() 8192 /* punt totally */
4188 # endif /* no HAVE_SYS_PARAM_H */
4189 # endif /* no _SC_PAGESIZE */
4190
4191 #endif /* no HAVE_GETPAGESIZE */
4192
4193 int
4194 main ()
4195 {
4196 char *data, *data2, *data3;
4197 int i, pagesize;
4198 int fd;
4199
4200 pagesize = getpagesize ();
4201
4202 /* First, make a file with some known garbage in it. */
4203 data = (char *) malloc (pagesize);
4204 if (!data)
4205 exit (1);
4206 for (i = 0; i < pagesize; ++i)
4207 *(data + i) = rand ();
4208 umask (0);
4209 fd = creat ("conftest.mmap", 0600);
4210 if (fd < 0)
4211 exit (1);
4212 if (write (fd, data, pagesize) != pagesize)
4213 exit (1);
4214 close (fd);
4215
4216 /* Next, try to mmap the file at a fixed address which already has
4217 something else allocated at it. If we can, also make sure that
4218 we see the same garbage. */
4219 fd = open ("conftest.mmap", O_RDWR);
4220 if (fd < 0)
4221 exit (1);
4222 data2 = (char *) malloc (2 * pagesize);
4223 if (!data2)
4224 exit (1);
4225 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4226 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4227 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4228 exit (1);
4229 for (i = 0; i < pagesize; ++i)
4230 if (*(data + i) != *(data2 + i))
4231 exit (1);
4232
4233 /* Finally, make sure that changes to the mapped area do not
4234 percolate back to the file as seen by read(). (This is a bug on
4235 some variants of i386 svr4.0.) */
4236 for (i = 0; i < pagesize; ++i)
4237 *(data2 + i) = *(data2 + i) + 1;
4238 data3 = (char *) malloc (pagesize);
4239 if (!data3)
4240 exit (1);
4241 if (read (fd, data3, pagesize) != pagesize)
4242 exit (1);
4243 for (i = 0; i < pagesize; ++i)
4244 if (*(data + i) != *(data3 + i))
4245 exit (1);
4246 close (fd);
4247 exit (0);
4248 }
4249 _ACEOF
4250 rm -f conftest$ac_exeext
4251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4252 (eval $ac_link) 2>&5
4253 ac_status=$?
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257 (eval $ac_try) 2>&5
4258 ac_status=$?
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; }; then
4261 ac_cv_func_mmap_fixed_mapped=yes
4262 else
4263 echo "$as_me: program exited with status $ac_status" >&5
4264 echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.$ac_ext >&5
4266
4267 ( exit $ac_status )
4268 ac_cv_func_mmap_fixed_mapped=no
4269 fi
4270 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4271 fi
4272 fi
4273 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4274 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4275 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4276
4277 cat >>confdefs.h <<\_ACEOF
4278 #define HAVE_MMAP 1
4279 _ACEOF
4280
4281 fi
4282 rm -f conftest.mmap
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4295 unistd.h values.h sys/param.h
4296 do
4297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4299 echo "$as_me:$LINENO: checking for $ac_header" >&5
4300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4302 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 fi
4304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4306 else
4307 # Is the header compilable?
4308 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4310 cat >conftest.$ac_ext <<_ACEOF
4311 /* confdefs.h. */
4312 _ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h. */
4316 $ac_includes_default
4317 #include <$ac_header>
4318 _ACEOF
4319 rm -f conftest.$ac_objext
4320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4321 (eval $ac_compile) 2>conftest.er1
4322 ac_status=$?
4323 grep -v '^ *+' conftest.er1 >conftest.err
4324 rm -f conftest.er1
4325 cat conftest.err >&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); } &&
4328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4330 (eval $ac_try) 2>&5
4331 ac_status=$?
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; } &&
4334 { ac_try='test -s conftest.$ac_objext'
4335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336 (eval $ac_try) 2>&5
4337 ac_status=$?
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; }; then
4340 ac_header_compiler=yes
4341 else
4342 echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4344
4345 ac_header_compiler=no
4346 fi
4347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4348 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4349 echo "${ECHO_T}$ac_header_compiler" >&6
4350
4351 # Is the header present?
4352 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4354 cat >conftest.$ac_ext <<_ACEOF
4355 /* confdefs.h. */
4356 _ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h. */
4360 #include <$ac_header>
4361 _ACEOF
4362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4364 ac_status=$?
4365 grep -v '^ *+' conftest.er1 >conftest.err
4366 rm -f conftest.er1
4367 cat conftest.err >&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); } >/dev/null; then
4370 if test -s conftest.err; then
4371 ac_cpp_err=$ac_c_preproc_warn_flag
4372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4373 else
4374 ac_cpp_err=
4375 fi
4376 else
4377 ac_cpp_err=yes
4378 fi
4379 if test -z "$ac_cpp_err"; then
4380 ac_header_preproc=yes
4381 else
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4384
4385 ac_header_preproc=no
4386 fi
4387 rm -f conftest.err conftest.$ac_ext
4388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4389 echo "${ECHO_T}$ac_header_preproc" >&6
4390
4391 # So? What about this header?
4392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4393 yes:no: )
4394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4398 ac_header_preproc=yes
4399 ;;
4400 no:yes:* )
4401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4408 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4413 (
4414 cat <<\_ASBOX
4415 ## ------------------------------------------ ##
4416 ## Report this to the AC_PACKAGE_NAME lists. ##
4417 ## ------------------------------------------ ##
4418 _ASBOX
4419 ) |
4420 sed "s/^/$as_me: WARNING: /" >&2
4421 ;;
4422 esac
4423 echo "$as_me:$LINENO: checking for $ac_header" >&5
4424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 else
4428 eval "$as_ac_Header=\$ac_header_preproc"
4429 fi
4430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4432
4433 fi
4434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4435 cat >>confdefs.h <<_ACEOF
4436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4437 _ACEOF
4438
4439 fi
4440
4441 done
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4454 __argz_count __argz_stringify __argz_next
4455 do
4456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4457 echo "$as_me:$LINENO: checking for $ac_func" >&5
4458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4459 if eval "test \"\${$as_ac_var+set}\" = set"; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 else
4462 cat >conftest.$ac_ext <<_ACEOF
4463 /* confdefs.h. */
4464 _ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h. */
4468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4470 #define $ac_func innocuous_$ac_func
4471
4472 /* System header to define __stub macros and hopefully few prototypes,
4473 which can conflict with char $ac_func (); below.
4474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4475 <limits.h> exists even on freestanding compilers. */
4476
4477 #ifdef __STDC__
4478 # include <limits.h>
4479 #else
4480 # include <assert.h>
4481 #endif
4482
4483 #undef $ac_func
4484
4485 /* Override any gcc2 internal prototype to avoid an error. */
4486 #ifdef __cplusplus
4487 extern "C"
4488 {
4489 #endif
4490 /* We use char because int might match the return type of a gcc2
4491 builtin and then its argument prototype would still apply. */
4492 char $ac_func ();
4493 /* The GNU C library defines this for functions which it implements
4494 to always fail with ENOSYS. Some functions are actually named
4495 something starting with __ and the normal name is an alias. */
4496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4497 choke me
4498 #else
4499 char (*f) () = $ac_func;
4500 #endif
4501 #ifdef __cplusplus
4502 }
4503 #endif
4504
4505 int
4506 main ()
4507 {
4508 return f != $ac_func;
4509 ;
4510 return 0;
4511 }
4512 _ACEOF
4513 rm -f conftest.$ac_objext conftest$ac_exeext
4514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4515 (eval $ac_link) 2>conftest.er1
4516 ac_status=$?
4517 grep -v '^ *+' conftest.er1 >conftest.err
4518 rm -f conftest.er1
4519 cat conftest.err >&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); } &&
4522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4528 { ac_try='test -s conftest$ac_exeext'
4529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530 (eval $ac_try) 2>&5
4531 ac_status=$?
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; }; then
4534 eval "$as_ac_var=yes"
4535 else
4536 echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4538
4539 eval "$as_ac_var=no"
4540 fi
4541 rm -f conftest.err conftest.$ac_objext \
4542 conftest$ac_exeext conftest.$ac_ext
4543 fi
4544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4545 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4546 if test `eval echo '${'$as_ac_var'}'` = yes; then
4547 cat >>confdefs.h <<_ACEOF
4548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4549 _ACEOF
4550
4551 fi
4552 done
4553
4554
4555 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4556
4557 for ac_func in stpcpy
4558 do
4559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4560 echo "$as_me:$LINENO: checking for $ac_func" >&5
4561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4562 if eval "test \"\${$as_ac_var+set}\" = set"; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565 cat >conftest.$ac_ext <<_ACEOF
4566 /* confdefs.h. */
4567 _ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4573 #define $ac_func innocuous_$ac_func
4574
4575 /* System header to define __stub macros and hopefully few prototypes,
4576 which can conflict with char $ac_func (); below.
4577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4578 <limits.h> exists even on freestanding compilers. */
4579
4580 #ifdef __STDC__
4581 # include <limits.h>
4582 #else
4583 # include <assert.h>
4584 #endif
4585
4586 #undef $ac_func
4587
4588 /* Override any gcc2 internal prototype to avoid an error. */
4589 #ifdef __cplusplus
4590 extern "C"
4591 {
4592 #endif
4593 /* We use char because int might match the return type of a gcc2
4594 builtin and then its argument prototype would still apply. */
4595 char $ac_func ();
4596 /* The GNU C library defines this for functions which it implements
4597 to always fail with ENOSYS. Some functions are actually named
4598 something starting with __ and the normal name is an alias. */
4599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4600 choke me
4601 #else
4602 char (*f) () = $ac_func;
4603 #endif
4604 #ifdef __cplusplus
4605 }
4606 #endif
4607
4608 int
4609 main ()
4610 {
4611 return f != $ac_func;
4612 ;
4613 return 0;
4614 }
4615 _ACEOF
4616 rm -f conftest.$ac_objext conftest$ac_exeext
4617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4618 (eval $ac_link) 2>conftest.er1
4619 ac_status=$?
4620 grep -v '^ *+' conftest.er1 >conftest.err
4621 rm -f conftest.er1
4622 cat conftest.err >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
4625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 (eval $ac_try) 2>&5
4628 ac_status=$?
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; } &&
4631 { ac_try='test -s conftest$ac_exeext'
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633 (eval $ac_try) 2>&5
4634 ac_status=$?
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; }; then
4637 eval "$as_ac_var=yes"
4638 else
4639 echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4641
4642 eval "$as_ac_var=no"
4643 fi
4644 rm -f conftest.err conftest.$ac_objext \
4645 conftest$ac_exeext conftest.$ac_ext
4646 fi
4647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4649 if test `eval echo '${'$as_ac_var'}'` = yes; then
4650 cat >>confdefs.h <<_ACEOF
4651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4652 _ACEOF
4653
4654 fi
4655 done
4656
4657 fi
4658 if test "${ac_cv_func_stpcpy}" = "yes"; then
4659
4660 cat >>confdefs.h <<\_ACEOF
4661 #define HAVE_STPCPY 1
4662 _ACEOF
4663
4664 fi
4665
4666 if test $ac_cv_header_locale_h = yes; then
4667 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4668 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4669 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4670 echo $ECHO_N "(cached) $ECHO_C" >&6
4671 else
4672 cat >conftest.$ac_ext <<_ACEOF
4673 /* confdefs.h. */
4674 _ACEOF
4675 cat confdefs.h >>conftest.$ac_ext
4676 cat >>conftest.$ac_ext <<_ACEOF
4677 /* end confdefs.h. */
4678 #include <locale.h>
4679 int
4680 main ()
4681 {
4682 return LC_MESSAGES
4683 ;
4684 return 0;
4685 }
4686 _ACEOF
4687 rm -f conftest.$ac_objext conftest$ac_exeext
4688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4689 (eval $ac_link) 2>conftest.er1
4690 ac_status=$?
4691 grep -v '^ *+' conftest.er1 >conftest.err
4692 rm -f conftest.er1
4693 cat conftest.err >&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); } &&
4696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698 (eval $ac_try) 2>&5
4699 ac_status=$?
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; } &&
4702 { ac_try='test -s conftest$ac_exeext'
4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704 (eval $ac_try) 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; }; then
4708 am_cv_val_LC_MESSAGES=yes
4709 else
4710 echo "$as_me: failed program was:" >&5
4711 sed 's/^/| /' conftest.$ac_ext >&5
4712
4713 am_cv_val_LC_MESSAGES=no
4714 fi
4715 rm -f conftest.err conftest.$ac_objext \
4716 conftest$ac_exeext conftest.$ac_ext
4717 fi
4718 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4719 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4720 if test $am_cv_val_LC_MESSAGES = yes; then
4721
4722 cat >>confdefs.h <<\_ACEOF
4723 #define HAVE_LC_MESSAGES 1
4724 _ACEOF
4725
4726 fi
4727 fi
4728 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4729 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4730 # Check whether --enable-nls or --disable-nls was given.
4731 if test "${enable_nls+set}" = set; then
4732 enableval="$enable_nls"
4733 USE_NLS=$enableval
4734 else
4735 USE_NLS=yes
4736 fi;
4737 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4738 echo "${ECHO_T}$USE_NLS" >&6
4739
4740
4741 USE_INCLUDED_LIBINTL=no
4742
4743 if test "$USE_NLS" = "yes"; then
4744 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4745 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4746
4747 # Check whether --with-included-gettext or --without-included-gettext was given.
4748 if test "${with_included_gettext+set}" = set; then
4749 withval="$with_included_gettext"
4750 nls_cv_force_use_gnu_gettext=$withval
4751 else
4752 nls_cv_force_use_gnu_gettext=no
4753 fi;
4754 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4755 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4756
4757 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4758 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4759 nls_cv_header_intl=
4760 nls_cv_header_libgt=
4761 CATOBJEXT=
4762
4763 if test "${ac_cv_header_libintl_h+set}" = set; then
4764 echo "$as_me:$LINENO: checking for libintl.h" >&5
4765 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4766 if test "${ac_cv_header_libintl_h+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 fi
4769 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4770 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4771 else
4772 # Is the header compilable?
4773 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4774 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4775 cat >conftest.$ac_ext <<_ACEOF
4776 /* confdefs.h. */
4777 _ACEOF
4778 cat confdefs.h >>conftest.$ac_ext
4779 cat >>conftest.$ac_ext <<_ACEOF
4780 /* end confdefs.h. */
4781 $ac_includes_default
4782 #include <libintl.h>
4783 _ACEOF
4784 rm -f conftest.$ac_objext
4785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4786 (eval $ac_compile) 2>conftest.er1
4787 ac_status=$?
4788 grep -v '^ *+' conftest.er1 >conftest.err
4789 rm -f conftest.er1
4790 cat conftest.err >&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } &&
4793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 (eval $ac_try) 2>&5
4796 ac_status=$?
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); }; } &&
4799 { ac_try='test -s conftest.$ac_objext'
4800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801 (eval $ac_try) 2>&5
4802 ac_status=$?
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); }; }; then
4805 ac_header_compiler=yes
4806 else
4807 echo "$as_me: failed program was:" >&5
4808 sed 's/^/| /' conftest.$ac_ext >&5
4809
4810 ac_header_compiler=no
4811 fi
4812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4813 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4814 echo "${ECHO_T}$ac_header_compiler" >&6
4815
4816 # Is the header present?
4817 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4818 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4819 cat >conftest.$ac_ext <<_ACEOF
4820 /* confdefs.h. */
4821 _ACEOF
4822 cat confdefs.h >>conftest.$ac_ext
4823 cat >>conftest.$ac_ext <<_ACEOF
4824 /* end confdefs.h. */
4825 #include <libintl.h>
4826 _ACEOF
4827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4829 ac_status=$?
4830 grep -v '^ *+' conftest.er1 >conftest.err
4831 rm -f conftest.er1
4832 cat conftest.err >&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); } >/dev/null; then
4835 if test -s conftest.err; then
4836 ac_cpp_err=$ac_c_preproc_warn_flag
4837 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4838 else
4839 ac_cpp_err=
4840 fi
4841 else
4842 ac_cpp_err=yes
4843 fi
4844 if test -z "$ac_cpp_err"; then
4845 ac_header_preproc=yes
4846 else
4847 echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4849
4850 ac_header_preproc=no
4851 fi
4852 rm -f conftest.err conftest.$ac_ext
4853 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4854 echo "${ECHO_T}$ac_header_preproc" >&6
4855
4856 # So? What about this header?
4857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4858 yes:no: )
4859 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4860 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4861 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4862 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4863 ac_header_preproc=yes
4864 ;;
4865 no:yes:* )
4866 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4867 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4868 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4869 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4870 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4871 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4872 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4873 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4874 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4875 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4876 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4877 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4878 (
4879 cat <<\_ASBOX
4880 ## ------------------------------------------ ##
4881 ## Report this to the AC_PACKAGE_NAME lists. ##
4882 ## ------------------------------------------ ##
4883 _ASBOX
4884 ) |
4885 sed "s/^/$as_me: WARNING: /" >&2
4886 ;;
4887 esac
4888 echo "$as_me:$LINENO: checking for libintl.h" >&5
4889 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4890 if test "${ac_cv_header_libintl_h+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4892 else
4893 ac_cv_header_libintl_h=$ac_header_preproc
4894 fi
4895 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4896 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4897
4898 fi
4899 if test $ac_cv_header_libintl_h = yes; then
4900 echo "$as_me:$LINENO: checking for gettext in libc" >&5
4901 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
4902 if test "${gt_cv_func_gettext_libc+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4904 else
4905 cat >conftest.$ac_ext <<_ACEOF
4906 /* confdefs.h. */
4907 _ACEOF
4908 cat confdefs.h >>conftest.$ac_ext
4909 cat >>conftest.$ac_ext <<_ACEOF
4910 /* end confdefs.h. */
4911 #include <libintl.h>
4912 int
4913 main ()
4914 {
4915 return (int) gettext ("")
4916 ;
4917 return 0;
4918 }
4919 _ACEOF
4920 rm -f conftest.$ac_objext conftest$ac_exeext
4921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4922 (eval $ac_link) 2>conftest.er1
4923 ac_status=$?
4924 grep -v '^ *+' conftest.er1 >conftest.err
4925 rm -f conftest.er1
4926 cat conftest.err >&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); } &&
4929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931 (eval $ac_try) 2>&5
4932 ac_status=$?
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); }; } &&
4935 { ac_try='test -s conftest$ac_exeext'
4936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4937 (eval $ac_try) 2>&5
4938 ac_status=$?
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); }; }; then
4941 gt_cv_func_gettext_libc=yes
4942 else
4943 echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4945
4946 gt_cv_func_gettext_libc=no
4947 fi
4948 rm -f conftest.err conftest.$ac_objext \
4949 conftest$ac_exeext conftest.$ac_ext
4950 fi
4951 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
4952 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
4953
4954 if test "$gt_cv_func_gettext_libc" != "yes"; then
4955 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
4956 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
4957 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
4958 echo $ECHO_N "(cached) $ECHO_C" >&6
4959 else
4960 ac_check_lib_save_LIBS=$LIBS
4961 LIBS="-lintl $LIBS"
4962 cat >conftest.$ac_ext <<_ACEOF
4963 /* confdefs.h. */
4964 _ACEOF
4965 cat confdefs.h >>conftest.$ac_ext
4966 cat >>conftest.$ac_ext <<_ACEOF
4967 /* end confdefs.h. */
4968
4969 /* Override any gcc2 internal prototype to avoid an error. */
4970 #ifdef __cplusplus
4971 extern "C"
4972 #endif
4973 /* We use char because int might match the return type of a gcc2
4974 builtin and then its argument prototype would still apply. */
4975 char bindtextdomain ();
4976 int
4977 main ()
4978 {
4979 bindtextdomain ();
4980 ;
4981 return 0;
4982 }
4983 _ACEOF
4984 rm -f conftest.$ac_objext conftest$ac_exeext
4985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4986 (eval $ac_link) 2>conftest.er1
4987 ac_status=$?
4988 grep -v '^ *+' conftest.er1 >conftest.err
4989 rm -f conftest.er1
4990 cat conftest.err >&5
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); } &&
4993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995 (eval $ac_try) 2>&5
4996 ac_status=$?
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; } &&
4999 { ac_try='test -s conftest$ac_exeext'
5000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 (eval $ac_try) 2>&5
5002 ac_status=$?
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }; }; then
5005 ac_cv_lib_intl_bindtextdomain=yes
5006 else
5007 echo "$as_me: failed program was:" >&5
5008 sed 's/^/| /' conftest.$ac_ext >&5
5009
5010 ac_cv_lib_intl_bindtextdomain=no
5011 fi
5012 rm -f conftest.err conftest.$ac_objext \
5013 conftest$ac_exeext conftest.$ac_ext
5014 LIBS=$ac_check_lib_save_LIBS
5015 fi
5016 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5017 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5018 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5019 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5020 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5021 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024 cat >conftest.$ac_ext <<_ACEOF
5025 /* confdefs.h. */
5026 _ACEOF
5027 cat confdefs.h >>conftest.$ac_ext
5028 cat >>conftest.$ac_ext <<_ACEOF
5029 /* end confdefs.h. */
5030
5031 int
5032 main ()
5033 {
5034 return (int) gettext ("")
5035 ;
5036 return 0;
5037 }
5038 _ACEOF
5039 rm -f conftest.$ac_objext conftest$ac_exeext
5040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5041 (eval $ac_link) 2>conftest.er1
5042 ac_status=$?
5043 grep -v '^ *+' conftest.er1 >conftest.err
5044 rm -f conftest.er1
5045 cat conftest.err >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } &&
5048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050 (eval $ac_try) 2>&5
5051 ac_status=$?
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; } &&
5054 { ac_try='test -s conftest$ac_exeext'
5055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056 (eval $ac_try) 2>&5
5057 ac_status=$?
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); }; }; then
5060 gt_cv_func_gettext_libintl=yes
5061 else
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5064
5065 gt_cv_func_gettext_libintl=no
5066 fi
5067 rm -f conftest.err conftest.$ac_objext \
5068 conftest$ac_exeext conftest.$ac_ext
5069 fi
5070 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5071 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5072 fi
5073
5074 fi
5075
5076 if test "$gt_cv_func_gettext_libc" = "yes" \
5077 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5078
5079 cat >>confdefs.h <<\_ACEOF
5080 #define HAVE_GETTEXT 1
5081 _ACEOF
5082
5083 # Extract the first word of "msgfmt", so it can be a program name with args.
5084 set dummy msgfmt; ac_word=$2
5085 echo "$as_me:$LINENO: checking for $ac_word" >&5
5086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5087 if test "${ac_cv_path_MSGFMT+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 else
5090 case "$MSGFMT" in
5091 /*)
5092 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5093 ;;
5094 *)
5095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5096 for ac_dir in $PATH; do
5097 test -z "$ac_dir" && ac_dir=.
5098 if test -f $ac_dir/$ac_word; then
5099 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5100 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5101 break
5102 fi
5103 fi
5104 done
5105 IFS="$ac_save_ifs"
5106 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5107 ;;
5108 esac
5109 fi
5110 MSGFMT="$ac_cv_path_MSGFMT"
5111 if test -n "$MSGFMT"; then
5112 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5113 echo "${ECHO_T}$MSGFMT" >&6
5114 else
5115 echo "$as_me:$LINENO: result: no" >&5
5116 echo "${ECHO_T}no" >&6
5117 fi
5118 if test "$MSGFMT" != "no"; then
5119
5120 for ac_func in dcgettext
5121 do
5122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5123 echo "$as_me:$LINENO: checking for $ac_func" >&5
5124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5125 if eval "test \"\${$as_ac_var+set}\" = set"; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5127 else
5128 cat >conftest.$ac_ext <<_ACEOF
5129 /* confdefs.h. */
5130 _ACEOF
5131 cat confdefs.h >>conftest.$ac_ext
5132 cat >>conftest.$ac_ext <<_ACEOF
5133 /* end confdefs.h. */
5134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5136 #define $ac_func innocuous_$ac_func
5137
5138 /* System header to define __stub macros and hopefully few prototypes,
5139 which can conflict with char $ac_func (); below.
5140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5141 <limits.h> exists even on freestanding compilers. */
5142
5143 #ifdef __STDC__
5144 # include <limits.h>
5145 #else
5146 # include <assert.h>
5147 #endif
5148
5149 #undef $ac_func
5150
5151 /* Override any gcc2 internal prototype to avoid an error. */
5152 #ifdef __cplusplus
5153 extern "C"
5154 {
5155 #endif
5156 /* We use char because int might match the return type of a gcc2
5157 builtin and then its argument prototype would still apply. */
5158 char $ac_func ();
5159 /* The GNU C library defines this for functions which it implements
5160 to always fail with ENOSYS. Some functions are actually named
5161 something starting with __ and the normal name is an alias. */
5162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5163 choke me
5164 #else
5165 char (*f) () = $ac_func;
5166 #endif
5167 #ifdef __cplusplus
5168 }
5169 #endif
5170
5171 int
5172 main ()
5173 {
5174 return f != $ac_func;
5175 ;
5176 return 0;
5177 }
5178 _ACEOF
5179 rm -f conftest.$ac_objext conftest$ac_exeext
5180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5181 (eval $ac_link) 2>conftest.er1
5182 ac_status=$?
5183 grep -v '^ *+' conftest.er1 >conftest.err
5184 rm -f conftest.er1
5185 cat conftest.err >&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } &&
5188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5190 (eval $ac_try) 2>&5
5191 ac_status=$?
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); }; } &&
5194 { ac_try='test -s conftest$ac_exeext'
5195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196 (eval $ac_try) 2>&5
5197 ac_status=$?
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; }; then
5200 eval "$as_ac_var=yes"
5201 else
5202 echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.$ac_ext >&5
5204
5205 eval "$as_ac_var=no"
5206 fi
5207 rm -f conftest.err conftest.$ac_objext \
5208 conftest$ac_exeext conftest.$ac_ext
5209 fi
5210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5212 if test `eval echo '${'$as_ac_var'}'` = yes; then
5213 cat >>confdefs.h <<_ACEOF
5214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5215 _ACEOF
5216
5217 fi
5218 done
5219
5220 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5221 set dummy gmsgfmt; ac_word=$2
5222 echo "$as_me:$LINENO: checking for $ac_word" >&5
5223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5224 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227 case $GMSGFMT in
5228 [\\/]* | ?:[\\/]*)
5229 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5230 ;;
5231 *)
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH
5234 do
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5239 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 break 2
5242 fi
5243 done
5244 done
5245
5246 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5247 ;;
5248 esac
5249 fi
5250 GMSGFMT=$ac_cv_path_GMSGFMT
5251
5252 if test -n "$GMSGFMT"; then
5253 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5254 echo "${ECHO_T}$GMSGFMT" >&6
5255 else
5256 echo "$as_me:$LINENO: result: no" >&5
5257 echo "${ECHO_T}no" >&6
5258 fi
5259
5260 # Extract the first word of "xgettext", so it can be a program name with args.
5261 set dummy xgettext; ac_word=$2
5262 echo "$as_me:$LINENO: checking for $ac_word" >&5
5263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5264 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5266 else
5267 case "$XGETTEXT" in
5268 /*)
5269 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5270 ;;
5271 *)
5272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5273 for ac_dir in $PATH; do
5274 test -z "$ac_dir" && ac_dir=.
5275 if test -f $ac_dir/$ac_word; then
5276 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5277 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5278 break
5279 fi
5280 fi
5281 done
5282 IFS="$ac_save_ifs"
5283 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5284 ;;
5285 esac
5286 fi
5287 XGETTEXT="$ac_cv_path_XGETTEXT"
5288 if test -n "$XGETTEXT"; then
5289 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5290 echo "${ECHO_T}$XGETTEXT" >&6
5291 else
5292 echo "$as_me:$LINENO: result: no" >&5
5293 echo "${ECHO_T}no" >&6
5294 fi
5295
5296 cat >conftest.$ac_ext <<_ACEOF
5297 /* confdefs.h. */
5298 _ACEOF
5299 cat confdefs.h >>conftest.$ac_ext
5300 cat >>conftest.$ac_ext <<_ACEOF
5301 /* end confdefs.h. */
5302
5303 int
5304 main ()
5305 {
5306 extern int _nl_msg_cat_cntr;
5307 return _nl_msg_cat_cntr
5308 ;
5309 return 0;
5310 }
5311 _ACEOF
5312 rm -f conftest.$ac_objext conftest$ac_exeext
5313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5314 (eval $ac_link) 2>conftest.er1
5315 ac_status=$?
5316 grep -v '^ *+' conftest.er1 >conftest.err
5317 rm -f conftest.er1
5318 cat conftest.err >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); } &&
5321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5323 (eval $ac_try) 2>&5
5324 ac_status=$?
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); }; } &&
5327 { ac_try='test -s conftest$ac_exeext'
5328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329 (eval $ac_try) 2>&5
5330 ac_status=$?
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }; }; then
5333 CATOBJEXT=.gmo
5334 DATADIRNAME=share
5335 else
5336 echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5338
5339 CATOBJEXT=.mo
5340 DATADIRNAME=lib
5341 fi
5342 rm -f conftest.err conftest.$ac_objext \
5343 conftest$ac_exeext conftest.$ac_ext
5344 INSTOBJEXT=.mo
5345 fi
5346 fi
5347
5348 fi
5349
5350
5351
5352
5353 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
5354 # Neither gettext nor catgets in included in the C library.
5355 # Fall back on GNU gettext library (assuming it is present).
5356 nls_cv_use_gnu_gettext=yes
5357 fi
5358 fi
5359
5360 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5361 INTLOBJS="\$(GETTOBJS)"
5362 # Extract the first word of "msgfmt", so it can be a program name with args.
5363 set dummy msgfmt; ac_word=$2
5364 echo "$as_me:$LINENO: checking for $ac_word" >&5
5365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5366 if test "${ac_cv_path_MSGFMT+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369 case "$MSGFMT" in
5370 /*)
5371 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5372 ;;
5373 *)
5374 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5375 for ac_dir in $PATH; do
5376 test -z "$ac_dir" && ac_dir=.
5377 if test -f $ac_dir/$ac_word; then
5378 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5379 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5380 break
5381 fi
5382 fi
5383 done
5384 IFS="$ac_save_ifs"
5385 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5386 ;;
5387 esac
5388 fi
5389 MSGFMT="$ac_cv_path_MSGFMT"
5390 if test -n "$MSGFMT"; then
5391 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5392 echo "${ECHO_T}$MSGFMT" >&6
5393 else
5394 echo "$as_me:$LINENO: result: no" >&5
5395 echo "${ECHO_T}no" >&6
5396 fi
5397
5398 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5399 set dummy gmsgfmt; ac_word=$2
5400 echo "$as_me:$LINENO: checking for $ac_word" >&5
5401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5402 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5404 else
5405 case $GMSGFMT in
5406 [\\/]* | ?:[\\/]*)
5407 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5408 ;;
5409 *)
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 for as_dir in $PATH
5412 do
5413 IFS=$as_save_IFS
5414 test -z "$as_dir" && as_dir=.
5415 for ac_exec_ext in '' $ac_executable_extensions; do
5416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5417 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 break 2
5420 fi
5421 done
5422 done
5423
5424 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5425 ;;
5426 esac
5427 fi
5428 GMSGFMT=$ac_cv_path_GMSGFMT
5429
5430 if test -n "$GMSGFMT"; then
5431 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5432 echo "${ECHO_T}$GMSGFMT" >&6
5433 else
5434 echo "$as_me:$LINENO: result: no" >&5
5435 echo "${ECHO_T}no" >&6
5436 fi
5437
5438 # Extract the first word of "xgettext", so it can be a program name with args.
5439 set dummy xgettext; ac_word=$2
5440 echo "$as_me:$LINENO: checking for $ac_word" >&5
5441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5442 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5444 else
5445 case "$XGETTEXT" in
5446 /*)
5447 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5448 ;;
5449 *)
5450 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5451 for ac_dir in $PATH; do
5452 test -z "$ac_dir" && ac_dir=.
5453 if test -f $ac_dir/$ac_word; then
5454 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5455 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5456 break
5457 fi
5458 fi
5459 done
5460 IFS="$ac_save_ifs"
5461 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5462 ;;
5463 esac
5464 fi
5465 XGETTEXT="$ac_cv_path_XGETTEXT"
5466 if test -n "$XGETTEXT"; then
5467 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5468 echo "${ECHO_T}$XGETTEXT" >&6
5469 else
5470 echo "$as_me:$LINENO: result: no" >&5
5471 echo "${ECHO_T}no" >&6
5472 fi
5473
5474
5475 USE_INCLUDED_LIBINTL=yes
5476 CATOBJEXT=.gmo
5477 INSTOBJEXT=.mo
5478 DATADIRNAME=share
5479 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5480 INTLLIBS=$INTLDEPS
5481 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5482 nls_cv_header_intl=libintl.h
5483 nls_cv_header_libgt=libgettext.h
5484 fi
5485
5486 if test "$XGETTEXT" != ":"; then
5487 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5488 : ;
5489 else
5490 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5491 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5492 XGETTEXT=":"
5493 fi
5494 fi
5495
5496 # We need to process the po/ directory.
5497 POSUB=po
5498 else
5499 DATADIRNAME=share
5500 nls_cv_header_intl=libintl.h
5501 nls_cv_header_libgt=libgettext.h
5502 fi
5503
5504 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5505 # because some of the sources are only built for this goal.
5506 if test "$PACKAGE" = gettext; then
5507 USE_NLS=yes
5508 USE_INCLUDED_LIBINTL=yes
5509 fi
5510
5511 for lang in $ALL_LINGUAS; do
5512 GMOFILES="$GMOFILES $lang.gmo"
5513 POFILES="$POFILES $lang.po"
5514 done
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527 if test "x$CATOBJEXT" != "x"; then
5528
5529 cat >>confdefs.h <<\_ACEOF
5530 #define ENABLE_NLS 1
5531 _ACEOF
5532
5533 fi
5534
5535
5536 if test "x$CATOBJEXT" != "x"; then
5537 if test "x$ALL_LINGUAS" = "x"; then
5538 LINGUAS=
5539 else
5540 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5541 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5542 NEW_LINGUAS=
5543 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5544 case "$ALL_LINGUAS" in
5545 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5546 esac
5547 done
5548 LINGUAS=$NEW_LINGUAS
5549 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5550 echo "${ECHO_T}$LINGUAS" >&6
5551 fi
5552
5553 if test -n "$LINGUAS"; then
5554 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5555 fi
5556 fi
5557
5558 if test $ac_cv_header_locale_h = yes; then
5559 INCLUDE_LOCALE_H="#include <locale.h>"
5560 else
5561 INCLUDE_LOCALE_H="\
5562 /* The system does not provide the header <locale.h>. Take care yourself. */"
5563 fi
5564
5565
5566 if test -f $srcdir/po2tbl.sed.in; then
5567 if test "$CATOBJEXT" = ".cat"; then
5568 if test "${ac_cv_header_linux_version_h+set}" = set; then
5569 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5570 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5571 if test "${ac_cv_header_linux_version_h+set}" = set; then
5572 echo $ECHO_N "(cached) $ECHO_C" >&6
5573 fi
5574 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5575 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5576 else
5577 # Is the header compilable?
5578 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5579 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5580 cat >conftest.$ac_ext <<_ACEOF
5581 /* confdefs.h. */
5582 _ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h. */
5586 $ac_includes_default
5587 #include <linux/version.h>
5588 _ACEOF
5589 rm -f conftest.$ac_objext
5590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5591 (eval $ac_compile) 2>conftest.er1
5592 ac_status=$?
5593 grep -v '^ *+' conftest.er1 >conftest.err
5594 rm -f conftest.er1
5595 cat conftest.err >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } &&
5598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600 (eval $ac_try) 2>&5
5601 ac_status=$?
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; } &&
5604 { ac_try='test -s conftest.$ac_objext'
5605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606 (eval $ac_try) 2>&5
5607 ac_status=$?
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }; }; then
5610 ac_header_compiler=yes
5611 else
5612 echo "$as_me: failed program was:" >&5
5613 sed 's/^/| /' conftest.$ac_ext >&5
5614
5615 ac_header_compiler=no
5616 fi
5617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5618 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5619 echo "${ECHO_T}$ac_header_compiler" >&6
5620
5621 # Is the header present?
5622 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5623 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5624 cat >conftest.$ac_ext <<_ACEOF
5625 /* confdefs.h. */
5626 _ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5630 #include <linux/version.h>
5631 _ACEOF
5632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5634 ac_status=$?
5635 grep -v '^ *+' conftest.er1 >conftest.err
5636 rm -f conftest.er1
5637 cat conftest.err >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } >/dev/null; then
5640 if test -s conftest.err; then
5641 ac_cpp_err=$ac_c_preproc_warn_flag
5642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5643 else
5644 ac_cpp_err=
5645 fi
5646 else
5647 ac_cpp_err=yes
5648 fi
5649 if test -z "$ac_cpp_err"; then
5650 ac_header_preproc=yes
5651 else
5652 echo "$as_me: failed program was:" >&5
5653 sed 's/^/| /' conftest.$ac_ext >&5
5654
5655 ac_header_preproc=no
5656 fi
5657 rm -f conftest.err conftest.$ac_ext
5658 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5659 echo "${ECHO_T}$ac_header_preproc" >&6
5660
5661 # So? What about this header?
5662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5663 yes:no: )
5664 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5665 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5666 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5667 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5668 ac_header_preproc=yes
5669 ;;
5670 no:yes:* )
5671 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5672 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5673 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5674 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5675 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5676 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5677 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5678 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5679 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5680 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5681 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5682 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5683 (
5684 cat <<\_ASBOX
5685 ## ------------------------------------------ ##
5686 ## Report this to the AC_PACKAGE_NAME lists. ##
5687 ## ------------------------------------------ ##
5688 _ASBOX
5689 ) |
5690 sed "s/^/$as_me: WARNING: /" >&2
5691 ;;
5692 esac
5693 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5694 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5695 if test "${ac_cv_header_linux_version_h+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5697 else
5698 ac_cv_header_linux_version_h=$ac_header_preproc
5699 fi
5700 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5701 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5702
5703 fi
5704 if test $ac_cv_header_linux_version_h = yes; then
5705 msgformat=linux
5706 else
5707 msgformat=xopen
5708 fi
5709
5710
5711
5712 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5713 fi
5714 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5715 $srcdir/po2tbl.sed.in > po2tbl.sed
5716 fi
5717
5718 if test "$PACKAGE" = "gettext"; then
5719 GT_NO="#NO#"
5720 GT_YES=
5721 else
5722 GT_NO=
5723 GT_YES="#YES#"
5724 fi
5725
5726
5727
5728 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5729
5730
5731 l=
5732
5733
5734 if test -f $srcdir/po/POTFILES.in; then
5735 test -d po || mkdir po
5736 if test "x$srcdir" != "x."; then
5737 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5738 posrcprefix="$srcdir/"
5739 else
5740 posrcprefix="../$srcdir/"
5741 fi
5742 else
5743 posrcprefix="../"
5744 fi
5745 rm -f po/POTFILES
5746 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5747 < $srcdir/po/POTFILES.in > po/POTFILES
5748 fi
5749
5750
5751 # Check for common headers.
5752 # FIXME: Seems to me this can cause problems for i386-windows hosts.
5753 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
5754
5755
5756
5757
5758
5759 for ac_header in stdlib.h string.h strings.h unistd.h time.h
5760 do
5761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5763 echo "$as_me:$LINENO: checking for $ac_header" >&5
5764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 fi
5768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5770 else
5771 # Is the header compilable?
5772 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5773 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5774 cat >conftest.$ac_ext <<_ACEOF
5775 /* confdefs.h. */
5776 _ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5780 $ac_includes_default
5781 #include <$ac_header>
5782 _ACEOF
5783 rm -f conftest.$ac_objext
5784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5785 (eval $ac_compile) 2>conftest.er1
5786 ac_status=$?
5787 grep -v '^ *+' conftest.er1 >conftest.err
5788 rm -f conftest.er1
5789 cat conftest.err >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } &&
5792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 (eval $ac_try) 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; } &&
5798 { ac_try='test -s conftest.$ac_objext'
5799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 (eval $ac_try) 2>&5
5801 ac_status=$?
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); }; }; then
5804 ac_header_compiler=yes
5805 else
5806 echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5808
5809 ac_header_compiler=no
5810 fi
5811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5813 echo "${ECHO_T}$ac_header_compiler" >&6
5814
5815 # Is the header present?
5816 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5818 cat >conftest.$ac_ext <<_ACEOF
5819 /* confdefs.h. */
5820 _ACEOF
5821 cat confdefs.h >>conftest.$ac_ext
5822 cat >>conftest.$ac_ext <<_ACEOF
5823 /* end confdefs.h. */
5824 #include <$ac_header>
5825 _ACEOF
5826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5828 ac_status=$?
5829 grep -v '^ *+' conftest.er1 >conftest.err
5830 rm -f conftest.er1
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } >/dev/null; then
5834 if test -s conftest.err; then
5835 ac_cpp_err=$ac_c_preproc_warn_flag
5836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5837 else
5838 ac_cpp_err=
5839 fi
5840 else
5841 ac_cpp_err=yes
5842 fi
5843 if test -z "$ac_cpp_err"; then
5844 ac_header_preproc=yes
5845 else
5846 echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.$ac_ext >&5
5848
5849 ac_header_preproc=no
5850 fi
5851 rm -f conftest.err conftest.$ac_ext
5852 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5853 echo "${ECHO_T}$ac_header_preproc" >&6
5854
5855 # So? What about this header?
5856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5857 yes:no: )
5858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5862 ac_header_preproc=yes
5863 ;;
5864 no:yes:* )
5865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5868 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5872 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5877 (
5878 cat <<\_ASBOX
5879 ## ------------------------------------------ ##
5880 ## Report this to the AC_PACKAGE_NAME lists. ##
5881 ## ------------------------------------------ ##
5882 _ASBOX
5883 ) |
5884 sed "s/^/$as_me: WARNING: /" >&2
5885 ;;
5886 esac
5887 echo "$as_me:$LINENO: checking for $ac_header" >&5
5888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892 eval "$as_ac_Header=\$ac_header_preproc"
5893 fi
5894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5896
5897 fi
5898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5899 cat >>confdefs.h <<_ACEOF
5900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5901 _ACEOF
5902
5903 fi
5904
5905 done
5906
5907
5908
5909 for ac_header in sys/time.h sys/resource.h
5910 do
5911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5913 echo "$as_me:$LINENO: checking for $ac_header" >&5
5914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 fi
5918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5920 else
5921 # Is the header compilable?
5922 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5923 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5924 cat >conftest.$ac_ext <<_ACEOF
5925 /* confdefs.h. */
5926 _ACEOF
5927 cat confdefs.h >>conftest.$ac_ext
5928 cat >>conftest.$ac_ext <<_ACEOF
5929 /* end confdefs.h. */
5930 $ac_includes_default
5931 #include <$ac_header>
5932 _ACEOF
5933 rm -f conftest.$ac_objext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5935 (eval $ac_compile) 2>conftest.er1
5936 ac_status=$?
5937 grep -v '^ *+' conftest.er1 >conftest.err
5938 rm -f conftest.er1
5939 cat conftest.err >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } &&
5942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944 (eval $ac_try) 2>&5
5945 ac_status=$?
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; } &&
5948 { ac_try='test -s conftest.$ac_objext'
5949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950 (eval $ac_try) 2>&5
5951 ac_status=$?
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); }; }; then
5954 ac_header_compiler=yes
5955 else
5956 echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5958
5959 ac_header_compiler=no
5960 fi
5961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5962 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5963 echo "${ECHO_T}$ac_header_compiler" >&6
5964
5965 # Is the header present?
5966 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5968 cat >conftest.$ac_ext <<_ACEOF
5969 /* confdefs.h. */
5970 _ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h. */
5974 #include <$ac_header>
5975 _ACEOF
5976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5978 ac_status=$?
5979 grep -v '^ *+' conftest.er1 >conftest.err
5980 rm -f conftest.er1
5981 cat conftest.err >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } >/dev/null; then
5984 if test -s conftest.err; then
5985 ac_cpp_err=$ac_c_preproc_warn_flag
5986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5987 else
5988 ac_cpp_err=
5989 fi
5990 else
5991 ac_cpp_err=yes
5992 fi
5993 if test -z "$ac_cpp_err"; then
5994 ac_header_preproc=yes
5995 else
5996 echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
5998
5999 ac_header_preproc=no
6000 fi
6001 rm -f conftest.err conftest.$ac_ext
6002 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6003 echo "${ECHO_T}$ac_header_preproc" >&6
6004
6005 # So? What about this header?
6006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6007 yes:no: )
6008 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6011 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6012 ac_header_preproc=yes
6013 ;;
6014 no:yes:* )
6015 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6016 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6017 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6018 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6019 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6020 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6021 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6022 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6024 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6025 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6026 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6027 (
6028 cat <<\_ASBOX
6029 ## ------------------------------------------ ##
6030 ## Report this to the AC_PACKAGE_NAME lists. ##
6031 ## ------------------------------------------ ##
6032 _ASBOX
6033 ) |
6034 sed "s/^/$as_me: WARNING: /" >&2
6035 ;;
6036 esac
6037 echo "$as_me:$LINENO: checking for $ac_header" >&5
6038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6041 else
6042 eval "$as_ac_Header=\$ac_header_preproc"
6043 fi
6044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6046
6047 fi
6048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6049 cat >>confdefs.h <<_ACEOF
6050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6051 _ACEOF
6052
6053 fi
6054
6055 done
6056
6057
6058
6059 for ac_header in fcntl.h fpu_control.h
6060 do
6061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6063 echo "$as_me:$LINENO: checking for $ac_header" >&5
6064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6067 fi
6068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6070 else
6071 # Is the header compilable?
6072 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6074 cat >conftest.$ac_ext <<_ACEOF
6075 /* confdefs.h. */
6076 _ACEOF
6077 cat confdefs.h >>conftest.$ac_ext
6078 cat >>conftest.$ac_ext <<_ACEOF
6079 /* end confdefs.h. */
6080 $ac_includes_default
6081 #include <$ac_header>
6082 _ACEOF
6083 rm -f conftest.$ac_objext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6085 (eval $ac_compile) 2>conftest.er1
6086 ac_status=$?
6087 grep -v '^ *+' conftest.er1 >conftest.err
6088 rm -f conftest.er1
6089 cat conftest.err >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } &&
6092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 (eval $ac_try) 2>&5
6095 ac_status=$?
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; } &&
6098 { ac_try='test -s conftest.$ac_objext'
6099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100 (eval $ac_try) 2>&5
6101 ac_status=$?
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); }; }; then
6104 ac_header_compiler=yes
6105 else
6106 echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.$ac_ext >&5
6108
6109 ac_header_compiler=no
6110 fi
6111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6112 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6113 echo "${ECHO_T}$ac_header_compiler" >&6
6114
6115 # Is the header present?
6116 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6118 cat >conftest.$ac_ext <<_ACEOF
6119 /* confdefs.h. */
6120 _ACEOF
6121 cat confdefs.h >>conftest.$ac_ext
6122 cat >>conftest.$ac_ext <<_ACEOF
6123 /* end confdefs.h. */
6124 #include <$ac_header>
6125 _ACEOF
6126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6128 ac_status=$?
6129 grep -v '^ *+' conftest.er1 >conftest.err
6130 rm -f conftest.er1
6131 cat conftest.err >&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } >/dev/null; then
6134 if test -s conftest.err; then
6135 ac_cpp_err=$ac_c_preproc_warn_flag
6136 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6137 else
6138 ac_cpp_err=
6139 fi
6140 else
6141 ac_cpp_err=yes
6142 fi
6143 if test -z "$ac_cpp_err"; then
6144 ac_header_preproc=yes
6145 else
6146 echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.$ac_ext >&5
6148
6149 ac_header_preproc=no
6150 fi
6151 rm -f conftest.err conftest.$ac_ext
6152 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6153 echo "${ECHO_T}$ac_header_preproc" >&6
6154
6155 # So? What about this header?
6156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6157 yes:no: )
6158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6159 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6161 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6162 ac_header_preproc=yes
6163 ;;
6164 no:yes:* )
6165 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6166 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6167 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6168 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6169 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6170 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6171 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6172 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6175 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6176 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6177 (
6178 cat <<\_ASBOX
6179 ## ------------------------------------------ ##
6180 ## Report this to the AC_PACKAGE_NAME lists. ##
6181 ## ------------------------------------------ ##
6182 _ASBOX
6183 ) |
6184 sed "s/^/$as_me: WARNING: /" >&2
6185 ;;
6186 esac
6187 echo "$as_me:$LINENO: checking for $ac_header" >&5
6188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
6191 else
6192 eval "$as_ac_Header=\$ac_header_preproc"
6193 fi
6194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6196
6197 fi
6198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6199 cat >>confdefs.h <<_ACEOF
6200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6201 _ACEOF
6202
6203 fi
6204
6205 done
6206
6207
6208
6209
6210 for ac_header in dlfcn.h errno.h sys/stat.h
6211 do
6212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6214 echo "$as_me:$LINENO: checking for $ac_header" >&5
6215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 fi
6219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6221 else
6222 # Is the header compilable?
6223 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6225 cat >conftest.$ac_ext <<_ACEOF
6226 /* confdefs.h. */
6227 _ACEOF
6228 cat confdefs.h >>conftest.$ac_ext
6229 cat >>conftest.$ac_ext <<_ACEOF
6230 /* end confdefs.h. */
6231 $ac_includes_default
6232 #include <$ac_header>
6233 _ACEOF
6234 rm -f conftest.$ac_objext
6235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6236 (eval $ac_compile) 2>conftest.er1
6237 ac_status=$?
6238 grep -v '^ *+' conftest.er1 >conftest.err
6239 rm -f conftest.er1
6240 cat conftest.err >&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } &&
6243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6245 (eval $ac_try) 2>&5
6246 ac_status=$?
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); }; } &&
6249 { ac_try='test -s conftest.$ac_objext'
6250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251 (eval $ac_try) 2>&5
6252 ac_status=$?
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }; }; then
6255 ac_header_compiler=yes
6256 else
6257 echo "$as_me: failed program was:" >&5
6258 sed 's/^/| /' conftest.$ac_ext >&5
6259
6260 ac_header_compiler=no
6261 fi
6262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6263 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6264 echo "${ECHO_T}$ac_header_compiler" >&6
6265
6266 # Is the header present?
6267 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6268 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6269 cat >conftest.$ac_ext <<_ACEOF
6270 /* confdefs.h. */
6271 _ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6275 #include <$ac_header>
6276 _ACEOF
6277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6279 ac_status=$?
6280 grep -v '^ *+' conftest.er1 >conftest.err
6281 rm -f conftest.er1
6282 cat conftest.err >&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } >/dev/null; then
6285 if test -s conftest.err; then
6286 ac_cpp_err=$ac_c_preproc_warn_flag
6287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6288 else
6289 ac_cpp_err=
6290 fi
6291 else
6292 ac_cpp_err=yes
6293 fi
6294 if test -z "$ac_cpp_err"; then
6295 ac_header_preproc=yes
6296 else
6297 echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6299
6300 ac_header_preproc=no
6301 fi
6302 rm -f conftest.err conftest.$ac_ext
6303 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6304 echo "${ECHO_T}$ac_header_preproc" >&6
6305
6306 # So? What about this header?
6307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6308 yes:no: )
6309 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6313 ac_header_preproc=yes
6314 ;;
6315 no:yes:* )
6316 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6318 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6319 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6320 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6322 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6323 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6326 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6328 (
6329 cat <<\_ASBOX
6330 ## ------------------------------------------ ##
6331 ## Report this to the AC_PACKAGE_NAME lists. ##
6332 ## ------------------------------------------ ##
6333 _ASBOX
6334 ) |
6335 sed "s/^/$as_me: WARNING: /" >&2
6336 ;;
6337 esac
6338 echo "$as_me:$LINENO: checking for $ac_header" >&5
6339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6342 else
6343 eval "$as_ac_Header=\$ac_header_preproc"
6344 fi
6345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6347
6348 fi
6349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6350 cat >>confdefs.h <<_ACEOF
6351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6352 _ACEOF
6353
6354 fi
6355
6356 done
6357
6358
6359
6360
6361
6362 for ac_func in getrusage time sigaction __setfpucw
6363 do
6364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6365 echo "$as_me:$LINENO: checking for $ac_func" >&5
6366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6367 if eval "test \"\${$as_ac_var+set}\" = set"; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 else
6370 cat >conftest.$ac_ext <<_ACEOF
6371 /* confdefs.h. */
6372 _ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6378 #define $ac_func innocuous_$ac_func
6379
6380 /* System header to define __stub macros and hopefully few prototypes,
6381 which can conflict with char $ac_func (); below.
6382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6383 <limits.h> exists even on freestanding compilers. */
6384
6385 #ifdef __STDC__
6386 # include <limits.h>
6387 #else
6388 # include <assert.h>
6389 #endif
6390
6391 #undef $ac_func
6392
6393 /* Override any gcc2 internal prototype to avoid an error. */
6394 #ifdef __cplusplus
6395 extern "C"
6396 {
6397 #endif
6398 /* We use char because int might match the return type of a gcc2
6399 builtin and then its argument prototype would still apply. */
6400 char $ac_func ();
6401 /* The GNU C library defines this for functions which it implements
6402 to always fail with ENOSYS. Some functions are actually named
6403 something starting with __ and the normal name is an alias. */
6404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6405 choke me
6406 #else
6407 char (*f) () = $ac_func;
6408 #endif
6409 #ifdef __cplusplus
6410 }
6411 #endif
6412
6413 int
6414 main ()
6415 {
6416 return f != $ac_func;
6417 ;
6418 return 0;
6419 }
6420 _ACEOF
6421 rm -f conftest.$ac_objext conftest$ac_exeext
6422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6423 (eval $ac_link) 2>conftest.er1
6424 ac_status=$?
6425 grep -v '^ *+' conftest.er1 >conftest.err
6426 rm -f conftest.er1
6427 cat conftest.err >&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } &&
6430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432 (eval $ac_try) 2>&5
6433 ac_status=$?
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); }; } &&
6436 { ac_try='test -s conftest$ac_exeext'
6437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438 (eval $ac_try) 2>&5
6439 ac_status=$?
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); }; }; then
6442 eval "$as_ac_var=yes"
6443 else
6444 echo "$as_me: failed program was:" >&5
6445 sed 's/^/| /' conftest.$ac_ext >&5
6446
6447 eval "$as_ac_var=no"
6448 fi
6449 rm -f conftest.err conftest.$ac_objext \
6450 conftest$ac_exeext conftest.$ac_ext
6451 fi
6452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6453 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6454 if test `eval echo '${'$as_ac_var'}'` = yes; then
6455 cat >>confdefs.h <<_ACEOF
6456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6457 _ACEOF
6458
6459 fi
6460 done
6461
6462
6463 # Check for socket libraries
6464
6465 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
6466 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
6467 if test "${ac_cv_lib_socket_bind+set}" = set; then
6468 echo $ECHO_N "(cached) $ECHO_C" >&6
6469 else
6470 ac_check_lib_save_LIBS=$LIBS
6471 LIBS="-lsocket $LIBS"
6472 cat >conftest.$ac_ext <<_ACEOF
6473 /* confdefs.h. */
6474 _ACEOF
6475 cat confdefs.h >>conftest.$ac_ext
6476 cat >>conftest.$ac_ext <<_ACEOF
6477 /* end confdefs.h. */
6478
6479 /* Override any gcc2 internal prototype to avoid an error. */
6480 #ifdef __cplusplus
6481 extern "C"
6482 #endif
6483 /* We use char because int might match the return type of a gcc2
6484 builtin and then its argument prototype would still apply. */
6485 char bind ();
6486 int
6487 main ()
6488 {
6489 bind ();
6490 ;
6491 return 0;
6492 }
6493 _ACEOF
6494 rm -f conftest.$ac_objext conftest$ac_exeext
6495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6496 (eval $ac_link) 2>conftest.er1
6497 ac_status=$?
6498 grep -v '^ *+' conftest.er1 >conftest.err
6499 rm -f conftest.er1
6500 cat conftest.err >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } &&
6503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505 (eval $ac_try) 2>&5
6506 ac_status=$?
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; } &&
6509 { ac_try='test -s conftest$ac_exeext'
6510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511 (eval $ac_try) 2>&5
6512 ac_status=$?
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }; }; then
6515 ac_cv_lib_socket_bind=yes
6516 else
6517 echo "$as_me: failed program was:" >&5
6518 sed 's/^/| /' conftest.$ac_ext >&5
6519
6520 ac_cv_lib_socket_bind=no
6521 fi
6522 rm -f conftest.err conftest.$ac_objext \
6523 conftest$ac_exeext conftest.$ac_ext
6524 LIBS=$ac_check_lib_save_LIBS
6525 fi
6526 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
6527 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
6528 if test $ac_cv_lib_socket_bind = yes; then
6529 cat >>confdefs.h <<_ACEOF
6530 #define HAVE_LIBSOCKET 1
6531 _ACEOF
6532
6533 LIBS="-lsocket $LIBS"
6534
6535 fi
6536
6537
6538 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6539 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6540 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6542 else
6543 ac_check_lib_save_LIBS=$LIBS
6544 LIBS="-lnsl $LIBS"
6545 cat >conftest.$ac_ext <<_ACEOF
6546 /* confdefs.h. */
6547 _ACEOF
6548 cat confdefs.h >>conftest.$ac_ext
6549 cat >>conftest.$ac_ext <<_ACEOF
6550 /* end confdefs.h. */
6551
6552 /* Override any gcc2 internal prototype to avoid an error. */
6553 #ifdef __cplusplus
6554 extern "C"
6555 #endif
6556 /* We use char because int might match the return type of a gcc2
6557 builtin and then its argument prototype would still apply. */
6558 char gethostbyname ();
6559 int
6560 main ()
6561 {
6562 gethostbyname ();
6563 ;
6564 return 0;
6565 }
6566 _ACEOF
6567 rm -f conftest.$ac_objext conftest$ac_exeext
6568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6569 (eval $ac_link) 2>conftest.er1
6570 ac_status=$?
6571 grep -v '^ *+' conftest.er1 >conftest.err
6572 rm -f conftest.er1
6573 cat conftest.err >&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); } &&
6576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578 (eval $ac_try) 2>&5
6579 ac_status=$?
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); }; } &&
6582 { ac_try='test -s conftest$ac_exeext'
6583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 (eval $ac_try) 2>&5
6585 ac_status=$?
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; }; then
6588 ac_cv_lib_nsl_gethostbyname=yes
6589 else
6590 echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6592
6593 ac_cv_lib_nsl_gethostbyname=no
6594 fi
6595 rm -f conftest.err conftest.$ac_objext \
6596 conftest$ac_exeext conftest.$ac_ext
6597 LIBS=$ac_check_lib_save_LIBS
6598 fi
6599 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6600 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6601 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6602 cat >>confdefs.h <<_ACEOF
6603 #define HAVE_LIBNSL 1
6604 _ACEOF
6605
6606 LIBS="-lnsl $LIBS"
6607
6608 fi
6609
6610
6611 . ${srcdir}/../../bfd/configure.host
6612
6613
6614
6615 USE_MAINTAINER_MODE=no
6616 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6617 if test "${enable_maintainer_mode+set}" = set; then
6618 enableval="$enable_maintainer_mode"
6619 case "${enableval}" in
6620 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
6621 no) MAINT="#" ;;
6622 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
6623 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
6624 { (exit 1); exit 1; }; }; MAINT="#" ;;
6625 esac
6626 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
6627 echo "Setting maintainer mode" 6>&1
6628 fi
6629 else
6630 MAINT="#"
6631 fi;
6632
6633
6634 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
6635 if test "${enable_sim_bswap+set}" = set; then
6636 enableval="$enable_sim_bswap"
6637 case "${enableval}" in
6638 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
6639 no) sim_bswap="-DWITH_BSWAP=0";;
6640 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
6641 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
6642 { (exit 1); exit 1; }; }; sim_bswap="";;
6643 esac
6644 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
6645 echo "Setting bswap flags = $sim_bswap" 6>&1
6646 fi
6647 else
6648 sim_bswap=""
6649 fi;
6650
6651
6652 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
6653 if test "${enable_sim_cflags+set}" = set; then
6654 enableval="$enable_sim_cflags"
6655 case "${enableval}" in
6656 yes) sim_cflags="-O2 -fomit-frame-pointer";;
6657 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
6658 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
6659 { (exit 1); exit 1; }; }; sim_cflags="";;
6660 no) sim_cflags="";;
6661 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6662 esac
6663 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
6664 echo "Setting sim cflags = $sim_cflags" 6>&1
6665 fi
6666 else
6667 sim_cflags=""
6668 fi;
6669
6670
6671 # Check whether --enable-sim-debug or --disable-sim-debug was given.
6672 if test "${enable_sim_debug+set}" = set; then
6673 enableval="$enable_sim_debug"
6674 case "${enableval}" in
6675 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
6676 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
6677 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
6678 esac
6679 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
6680 echo "Setting sim debug = $sim_debug" 6>&1
6681 fi
6682 else
6683 sim_debug=""
6684 fi;
6685
6686
6687 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6688 if test "${enable_sim_stdio+set}" = set; then
6689 enableval="$enable_sim_stdio"
6690 case "${enableval}" in
6691 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
6692 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
6693 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6694 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6695 { (exit 1); exit 1; }; }; sim_stdio="";;
6696 esac
6697 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
6698 echo "Setting stdio flags = $sim_stdio" 6>&1
6699 fi
6700 else
6701 sim_stdio=""
6702 fi;
6703
6704
6705 # Check whether --enable-sim-trace or --disable-sim-trace was given.
6706 if test "${enable_sim_trace+set}" = set; then
6707 enableval="$enable_sim_trace"
6708 case "${enableval}" in
6709 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
6710 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
6711 [-0-9]*)
6712 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
6713 [a-z]*)
6714 sim_trace=""
6715 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6716 if test x"$sim_trace" = x; then
6717 sim_trace="-DWITH_TRACE='(TRACE_$x"
6718 else
6719 sim_trace="${sim_trace}|TRACE_$x"
6720 fi
6721 done
6722 sim_trace="$sim_trace)'" ;;
6723 esac
6724 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
6725 echo "Setting sim trace = $sim_trace" 6>&1
6726 fi
6727 else
6728 sim_trace=""
6729 fi;
6730
6731
6732 # Check whether --enable-sim-profile or --disable-sim-profile was given.
6733 if test "${enable_sim_profile+set}" = set; then
6734 enableval="$enable_sim_profile"
6735 case "${enableval}" in
6736 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
6737 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
6738 [-0-9]*)
6739 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
6740 [a-z]*)
6741 sim_profile=""
6742 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6743 if test x"$sim_profile" = x; then
6744 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
6745 else
6746 sim_profile="${sim_profile}|PROFILE_$x"
6747 fi
6748 done
6749 sim_profile="$sim_profile)'" ;;
6750 esac
6751 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
6752 echo "Setting sim profile = $sim_profile" 6>&1
6753 fi
6754 else
6755 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
6756 fi;
6757
6758
6759 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6760 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6761 if test "${ac_cv_type_signal+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 else
6764 cat >conftest.$ac_ext <<_ACEOF
6765 /* confdefs.h. */
6766 _ACEOF
6767 cat confdefs.h >>conftest.$ac_ext
6768 cat >>conftest.$ac_ext <<_ACEOF
6769 /* end confdefs.h. */
6770 #include <sys/types.h>
6771 #include <signal.h>
6772 #ifdef signal
6773 # undef signal
6774 #endif
6775 #ifdef __cplusplus
6776 extern "C" void (*signal (int, void (*)(int)))(int);
6777 #else
6778 void (*signal ()) ();
6779 #endif
6780
6781 int
6782 main ()
6783 {
6784 int i;
6785 ;
6786 return 0;
6787 }
6788 _ACEOF
6789 rm -f conftest.$ac_objext
6790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6791 (eval $ac_compile) 2>conftest.er1
6792 ac_status=$?
6793 grep -v '^ *+' conftest.er1 >conftest.err
6794 rm -f conftest.er1
6795 cat conftest.err >&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); } &&
6798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800 (eval $ac_try) 2>&5
6801 ac_status=$?
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); }; } &&
6804 { ac_try='test -s conftest.$ac_objext'
6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806 (eval $ac_try) 2>&5
6807 ac_status=$?
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; }; then
6810 ac_cv_type_signal=void
6811 else
6812 echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.$ac_ext >&5
6814
6815 ac_cv_type_signal=int
6816 fi
6817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6818 fi
6819 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6820 echo "${ECHO_T}$ac_cv_type_signal" >&6
6821
6822 cat >>confdefs.h <<_ACEOF
6823 #define RETSIGTYPE $ac_cv_type_signal
6824 _ACEOF
6825
6826
6827
6828
6829
6830 sim_link_files=
6831 sim_link_links=
6832
6833 sim_link_links=tconfig.h
6834 if test -f ${srcdir}/tconfig.in
6835 then
6836 sim_link_files=tconfig.in
6837 else
6838 sim_link_files=../common/tconfig.in
6839 fi
6840
6841 # targ-vals.def points to the libc macro description file.
6842 case "${target}" in
6843 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
6844 esac
6845 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
6846 sim_link_links="${sim_link_links} targ-vals.def"
6847
6848
6849 # Put a useful copy of CPP_FOR_TARGET in Makefile.
6850 # This is only used to build the target values header files. These files are
6851 # shipped with distributions so CPP_FOR_TARGET only needs to work in
6852 # developer's trees. This value is borrowed from ../../Makefile.in.
6853 CPP_FOR_TARGET="\` \
6854 if test -f \$\${rootme}/../../gcc/Makefile ; then \
6855 if test -f \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/Makefile ; then \
6856 echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/ -idirafter \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/targ-include -idirafter \$(srcroot)/newlib/libc/include -nostdinc; \
6857 else \
6858 echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/; \
6859 fi; \
6860 else \
6861 if test '\$(host_canonical)' = '\$(target_canonical)' ; then \
6862 echo \$(CC); \
6863 else \
6864 t='\$(program_transform_name)'; echo gcc | sed -e 's/x/x/' \$\$t; \
6865 fi; \
6866 fi\` -E"
6867
6868
6869 # Set TARGET_SUBDIR, needed by CPP_FOR_TARGET.
6870 if test x"${host}" = x"${target}" ; then
6871 TARGET_SUBDIR="."
6872 else
6873 TARGET_SUBDIR=${target_alias}
6874 fi
6875
6876
6877 # These aren't all needed yet, but will be eventually.
6878
6879
6880
6881
6882
6883
6884
6885 for ac_header in stdlib.h string.h strings.h time.h sys/times.h sys/stat.h sys/mman.h
6886 do
6887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6889 echo "$as_me:$LINENO: checking for $ac_header" >&5
6890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
6893 fi
6894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6896 else
6897 # Is the header compilable?
6898 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6900 cat >conftest.$ac_ext <<_ACEOF
6901 /* confdefs.h. */
6902 _ACEOF
6903 cat confdefs.h >>conftest.$ac_ext
6904 cat >>conftest.$ac_ext <<_ACEOF
6905 /* end confdefs.h. */
6906 $ac_includes_default
6907 #include <$ac_header>
6908 _ACEOF
6909 rm -f conftest.$ac_objext
6910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6911 (eval $ac_compile) 2>conftest.er1
6912 ac_status=$?
6913 grep -v '^ *+' conftest.er1 >conftest.err
6914 rm -f conftest.er1
6915 cat conftest.err >&5
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); } &&
6918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920 (eval $ac_try) 2>&5
6921 ac_status=$?
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); }; } &&
6924 { ac_try='test -s conftest.$ac_objext'
6925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6926 (eval $ac_try) 2>&5
6927 ac_status=$?
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); }; }; then
6930 ac_header_compiler=yes
6931 else
6932 echo "$as_me: failed program was:" >&5
6933 sed 's/^/| /' conftest.$ac_ext >&5
6934
6935 ac_header_compiler=no
6936 fi
6937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6939 echo "${ECHO_T}$ac_header_compiler" >&6
6940
6941 # Is the header present?
6942 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6944 cat >conftest.$ac_ext <<_ACEOF
6945 /* confdefs.h. */
6946 _ACEOF
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h. */
6950 #include <$ac_header>
6951 _ACEOF
6952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6954 ac_status=$?
6955 grep -v '^ *+' conftest.er1 >conftest.err
6956 rm -f conftest.er1
6957 cat conftest.err >&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); } >/dev/null; then
6960 if test -s conftest.err; then
6961 ac_cpp_err=$ac_c_preproc_warn_flag
6962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6963 else
6964 ac_cpp_err=
6965 fi
6966 else
6967 ac_cpp_err=yes
6968 fi
6969 if test -z "$ac_cpp_err"; then
6970 ac_header_preproc=yes
6971 else
6972 echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.$ac_ext >&5
6974
6975 ac_header_preproc=no
6976 fi
6977 rm -f conftest.err conftest.$ac_ext
6978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6979 echo "${ECHO_T}$ac_header_preproc" >&6
6980
6981 # So? What about this header?
6982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6983 yes:no: )
6984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6988 ac_header_preproc=yes
6989 ;;
6990 no:yes:* )
6991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6994 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6995 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6997 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6998 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7001 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7003 (
7004 cat <<\_ASBOX
7005 ## ------------------------------------------ ##
7006 ## Report this to the AC_PACKAGE_NAME lists. ##
7007 ## ------------------------------------------ ##
7008 _ASBOX
7009 ) |
7010 sed "s/^/$as_me: WARNING: /" >&2
7011 ;;
7012 esac
7013 echo "$as_me:$LINENO: checking for $ac_header" >&5
7014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7017 else
7018 eval "$as_ac_Header=\$ac_header_preproc"
7019 fi
7020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7022
7023 fi
7024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7025 cat >>confdefs.h <<_ACEOF
7026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7027 _ACEOF
7028
7029 fi
7030
7031 done
7032
7033
7034
7035
7036
7037
7038 for ac_func in mmap munmap lstat truncate ftruncate
7039 do
7040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7041 echo "$as_me:$LINENO: checking for $ac_func" >&5
7042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7043 if eval "test \"\${$as_ac_var+set}\" = set"; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7045 else
7046 cat >conftest.$ac_ext <<_ACEOF
7047 /* confdefs.h. */
7048 _ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h. */
7052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7054 #define $ac_func innocuous_$ac_func
7055
7056 /* System header to define __stub macros and hopefully few prototypes,
7057 which can conflict with char $ac_func (); below.
7058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7059 <limits.h> exists even on freestanding compilers. */
7060
7061 #ifdef __STDC__
7062 # include <limits.h>
7063 #else
7064 # include <assert.h>
7065 #endif
7066
7067 #undef $ac_func
7068
7069 /* Override any gcc2 internal prototype to avoid an error. */
7070 #ifdef __cplusplus
7071 extern "C"
7072 {
7073 #endif
7074 /* We use char because int might match the return type of a gcc2
7075 builtin and then its argument prototype would still apply. */
7076 char $ac_func ();
7077 /* The GNU C library defines this for functions which it implements
7078 to always fail with ENOSYS. Some functions are actually named
7079 something starting with __ and the normal name is an alias. */
7080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7081 choke me
7082 #else
7083 char (*f) () = $ac_func;
7084 #endif
7085 #ifdef __cplusplus
7086 }
7087 #endif
7088
7089 int
7090 main ()
7091 {
7092 return f != $ac_func;
7093 ;
7094 return 0;
7095 }
7096 _ACEOF
7097 rm -f conftest.$ac_objext conftest$ac_exeext
7098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7099 (eval $ac_link) 2>conftest.er1
7100 ac_status=$?
7101 grep -v '^ *+' conftest.er1 >conftest.err
7102 rm -f conftest.er1
7103 cat conftest.err >&5
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); } &&
7106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108 (eval $ac_try) 2>&5
7109 ac_status=$?
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); }; } &&
7112 { ac_try='test -s conftest$ac_exeext'
7113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7114 (eval $ac_try) 2>&5
7115 ac_status=$?
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); }; }; then
7118 eval "$as_ac_var=yes"
7119 else
7120 echo "$as_me: failed program was:" >&5
7121 sed 's/^/| /' conftest.$ac_ext >&5
7122
7123 eval "$as_ac_var=no"
7124 fi
7125 rm -f conftest.err conftest.$ac_objext \
7126 conftest$ac_exeext conftest.$ac_ext
7127 fi
7128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7129 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7130 if test `eval echo '${'$as_ac_var'}'` = yes; then
7131 cat >>confdefs.h <<_ACEOF
7132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7133 _ACEOF
7134
7135 fi
7136 done
7137
7138 echo "$as_me:$LINENO: checking for struct stat.st_dev" >&5
7139 echo $ECHO_N "checking for struct stat.st_dev... $ECHO_C" >&6
7140 if test "${ac_struct_stat_st_dev+set}" = set; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7142 else
7143 ac_struct_stat_st_dev=no;
7144 cat >conftest.$ac_ext <<_ACEOF
7145 /* confdefs.h. */
7146 _ACEOF
7147 cat confdefs.h >>conftest.$ac_ext
7148 cat >>conftest.$ac_ext <<_ACEOF
7149 /* end confdefs.h. */
7150 #ifdef HAVE_SYS_TYPES_H
7151 #include <sys/types.h>
7152 #endif
7153 #ifdef HAVE_SYS_STAT_H
7154 #include <sys/stat.h>
7155 #endif
7156 int
7157 main ()
7158 {
7159
7160 static struct stat ac_aggr;
7161 if (ac_aggr.st_dev)
7162 return 0;
7163 ;
7164 return 0;
7165 }
7166 _ACEOF
7167 rm -f conftest.$ac_objext
7168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7169 (eval $ac_compile) 2>conftest.er1
7170 ac_status=$?
7171 grep -v '^ *+' conftest.er1 >conftest.err
7172 rm -f conftest.er1
7173 cat conftest.err >&5
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); } &&
7176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7178 (eval $ac_try) 2>&5
7179 ac_status=$?
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); }; } &&
7182 { ac_try='test -s conftest.$ac_objext'
7183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184 (eval $ac_try) 2>&5
7185 ac_status=$?
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); }; }; then
7188 ac_struct_stat_st_dev=yes;
7189 else
7190 echo "$as_me: failed program was:" >&5
7191 sed 's/^/| /' conftest.$ac_ext >&5
7192
7193 cat >conftest.$ac_ext <<_ACEOF
7194 /* confdefs.h. */
7195 _ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7199 #ifdef HAVE_SYS_TYPES_H
7200 #include <sys/types.h>
7201 #endif
7202 #ifdef HAVE_SYS_STAT_H
7203 #include <sys/stat.h>
7204 #endif
7205 int
7206 main ()
7207 {
7208
7209 static struct stat ac_aggr;
7210 if (sizeof ac_aggr.st_dev)
7211 return 0;
7212 ;
7213 return 0;
7214 }
7215 _ACEOF
7216 rm -f conftest.$ac_objext
7217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7218 (eval $ac_compile) 2>conftest.er1
7219 ac_status=$?
7220 grep -v '^ *+' conftest.er1 >conftest.err
7221 rm -f conftest.er1
7222 cat conftest.err >&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } &&
7225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227 (eval $ac_try) 2>&5
7228 ac_status=$?
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); }; } &&
7231 { ac_try='test -s conftest.$ac_objext'
7232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233 (eval $ac_try) 2>&5
7234 ac_status=$?
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); }; }; then
7237 ac_struct_stat_st_dev=yes;
7238 else
7239 echo "$as_me: failed program was:" >&5
7240 sed 's/^/| /' conftest.$ac_ext >&5
7241
7242 ac_struct_stat_st_dev=no;
7243 fi
7244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7245 fi
7246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7247 if test $ac_struct_stat_st_dev = yes; then :;
7248 cat >>confdefs.h <<_ACEOF
7249 #define HAVE_STRUCT_STAT_ST_DEV 1
7250 _ACEOF
7251
7252 else :;
7253 fi
7254 fi
7255 echo "$as_me:$LINENO: result: $ac_struct_stat_st_dev" >&5
7256 echo "${ECHO_T}$ac_struct_stat_st_dev" >&6
7257
7258 echo "$as_me:$LINENO: checking for struct stat.st_ino" >&5
7259 echo $ECHO_N "checking for struct stat.st_ino... $ECHO_C" >&6
7260 if test "${ac_struct_stat_st_ino+set}" = set; then
7261 echo $ECHO_N "(cached) $ECHO_C" >&6
7262 else
7263 ac_struct_stat_st_ino=no;
7264 cat >conftest.$ac_ext <<_ACEOF
7265 /* confdefs.h. */
7266 _ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7270 #ifdef HAVE_SYS_TYPES_H
7271 #include <sys/types.h>
7272 #endif
7273 #ifdef HAVE_SYS_STAT_H
7274 #include <sys/stat.h>
7275 #endif
7276 int
7277 main ()
7278 {
7279
7280 static struct stat ac_aggr;
7281 if (ac_aggr.st_ino)
7282 return 0;
7283 ;
7284 return 0;
7285 }
7286 _ACEOF
7287 rm -f conftest.$ac_objext
7288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7289 (eval $ac_compile) 2>conftest.er1
7290 ac_status=$?
7291 grep -v '^ *+' conftest.er1 >conftest.err
7292 rm -f conftest.er1
7293 cat conftest.err >&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); } &&
7296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298 (eval $ac_try) 2>&5
7299 ac_status=$?
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; } &&
7302 { ac_try='test -s conftest.$ac_objext'
7303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304 (eval $ac_try) 2>&5
7305 ac_status=$?
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; }; then
7308 ac_struct_stat_st_ino=yes;
7309 else
7310 echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.$ac_ext >&5
7312
7313 cat >conftest.$ac_ext <<_ACEOF
7314 /* confdefs.h. */
7315 _ACEOF
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h. */
7319 #ifdef HAVE_SYS_TYPES_H
7320 #include <sys/types.h>
7321 #endif
7322 #ifdef HAVE_SYS_STAT_H
7323 #include <sys/stat.h>
7324 #endif
7325 int
7326 main ()
7327 {
7328
7329 static struct stat ac_aggr;
7330 if (sizeof ac_aggr.st_ino)
7331 return 0;
7332 ;
7333 return 0;
7334 }
7335 _ACEOF
7336 rm -f conftest.$ac_objext
7337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7338 (eval $ac_compile) 2>conftest.er1
7339 ac_status=$?
7340 grep -v '^ *+' conftest.er1 >conftest.err
7341 rm -f conftest.er1
7342 cat conftest.err >&5
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); } &&
7345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347 (eval $ac_try) 2>&5
7348 ac_status=$?
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); }; } &&
7351 { ac_try='test -s conftest.$ac_objext'
7352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353 (eval $ac_try) 2>&5
7354 ac_status=$?
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); }; }; then
7357 ac_struct_stat_st_ino=yes;
7358 else
7359 echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7361
7362 ac_struct_stat_st_ino=no;
7363 fi
7364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7365 fi
7366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7367 if test $ac_struct_stat_st_ino = yes; then :;
7368 cat >>confdefs.h <<_ACEOF
7369 #define HAVE_STRUCT_STAT_ST_INO 1
7370 _ACEOF
7371
7372 else :;
7373 fi
7374 fi
7375 echo "$as_me:$LINENO: result: $ac_struct_stat_st_ino" >&5
7376 echo "${ECHO_T}$ac_struct_stat_st_ino" >&6
7377
7378 echo "$as_me:$LINENO: checking for struct stat.st_mode" >&5
7379 echo $ECHO_N "checking for struct stat.st_mode... $ECHO_C" >&6
7380 if test "${ac_struct_stat_st_mode+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7382 else
7383 ac_struct_stat_st_mode=no;
7384 cat >conftest.$ac_ext <<_ACEOF
7385 /* confdefs.h. */
7386 _ACEOF
7387 cat confdefs.h >>conftest.$ac_ext
7388 cat >>conftest.$ac_ext <<_ACEOF
7389 /* end confdefs.h. */
7390 #ifdef HAVE_SYS_TYPES_H
7391 #include <sys/types.h>
7392 #endif
7393 #ifdef HAVE_SYS_STAT_H
7394 #include <sys/stat.h>
7395 #endif
7396 int
7397 main ()
7398 {
7399
7400 static struct stat ac_aggr;
7401 if (ac_aggr.st_mode)
7402 return 0;
7403 ;
7404 return 0;
7405 }
7406 _ACEOF
7407 rm -f conftest.$ac_objext
7408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7409 (eval $ac_compile) 2>conftest.er1
7410 ac_status=$?
7411 grep -v '^ *+' conftest.er1 >conftest.err
7412 rm -f conftest.er1
7413 cat conftest.err >&5
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); } &&
7416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418 (eval $ac_try) 2>&5
7419 ac_status=$?
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); }; } &&
7422 { ac_try='test -s conftest.$ac_objext'
7423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7424 (eval $ac_try) 2>&5
7425 ac_status=$?
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); }; }; then
7428 ac_struct_stat_st_mode=yes;
7429 else
7430 echo "$as_me: failed program was:" >&5
7431 sed 's/^/| /' conftest.$ac_ext >&5
7432
7433 cat >conftest.$ac_ext <<_ACEOF
7434 /* confdefs.h. */
7435 _ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h. */
7439 #ifdef HAVE_SYS_TYPES_H
7440 #include <sys/types.h>
7441 #endif
7442 #ifdef HAVE_SYS_STAT_H
7443 #include <sys/stat.h>
7444 #endif
7445 int
7446 main ()
7447 {
7448
7449 static struct stat ac_aggr;
7450 if (sizeof ac_aggr.st_mode)
7451 return 0;
7452 ;
7453 return 0;
7454 }
7455 _ACEOF
7456 rm -f conftest.$ac_objext
7457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7458 (eval $ac_compile) 2>conftest.er1
7459 ac_status=$?
7460 grep -v '^ *+' conftest.er1 >conftest.err
7461 rm -f conftest.er1
7462 cat conftest.err >&5
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); } &&
7465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7467 (eval $ac_try) 2>&5
7468 ac_status=$?
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); }; } &&
7471 { ac_try='test -s conftest.$ac_objext'
7472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7473 (eval $ac_try) 2>&5
7474 ac_status=$?
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); }; }; then
7477 ac_struct_stat_st_mode=yes;
7478 else
7479 echo "$as_me: failed program was:" >&5
7480 sed 's/^/| /' conftest.$ac_ext >&5
7481
7482 ac_struct_stat_st_mode=no;
7483 fi
7484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7485 fi
7486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7487 if test $ac_struct_stat_st_mode = yes; then :;
7488 cat >>confdefs.h <<_ACEOF
7489 #define HAVE_STRUCT_STAT_ST_MODE 1
7490 _ACEOF
7491
7492 else :;
7493 fi
7494 fi
7495 echo "$as_me:$LINENO: result: $ac_struct_stat_st_mode" >&5
7496 echo "${ECHO_T}$ac_struct_stat_st_mode" >&6
7497
7498 echo "$as_me:$LINENO: checking for struct stat.st_nlink" >&5
7499 echo $ECHO_N "checking for struct stat.st_nlink... $ECHO_C" >&6
7500 if test "${ac_struct_stat_st_nlink+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 else
7503 ac_struct_stat_st_nlink=no;
7504 cat >conftest.$ac_ext <<_ACEOF
7505 /* confdefs.h. */
7506 _ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7510 #ifdef HAVE_SYS_TYPES_H
7511 #include <sys/types.h>
7512 #endif
7513 #ifdef HAVE_SYS_STAT_H
7514 #include <sys/stat.h>
7515 #endif
7516 int
7517 main ()
7518 {
7519
7520 static struct stat ac_aggr;
7521 if (ac_aggr.st_nlink)
7522 return 0;
7523 ;
7524 return 0;
7525 }
7526 _ACEOF
7527 rm -f conftest.$ac_objext
7528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7529 (eval $ac_compile) 2>conftest.er1
7530 ac_status=$?
7531 grep -v '^ *+' conftest.er1 >conftest.err
7532 rm -f conftest.er1
7533 cat conftest.err >&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); } &&
7536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7538 (eval $ac_try) 2>&5
7539 ac_status=$?
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); }; } &&
7542 { ac_try='test -s conftest.$ac_objext'
7543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544 (eval $ac_try) 2>&5
7545 ac_status=$?
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); }; }; then
7548 ac_struct_stat_st_nlink=yes;
7549 else
7550 echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.$ac_ext >&5
7552
7553 cat >conftest.$ac_ext <<_ACEOF
7554 /* confdefs.h. */
7555 _ACEOF
7556 cat confdefs.h >>conftest.$ac_ext
7557 cat >>conftest.$ac_ext <<_ACEOF
7558 /* end confdefs.h. */
7559 #ifdef HAVE_SYS_TYPES_H
7560 #include <sys/types.h>
7561 #endif
7562 #ifdef HAVE_SYS_STAT_H
7563 #include <sys/stat.h>
7564 #endif
7565 int
7566 main ()
7567 {
7568
7569 static struct stat ac_aggr;
7570 if (sizeof ac_aggr.st_nlink)
7571 return 0;
7572 ;
7573 return 0;
7574 }
7575 _ACEOF
7576 rm -f conftest.$ac_objext
7577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7578 (eval $ac_compile) 2>conftest.er1
7579 ac_status=$?
7580 grep -v '^ *+' conftest.er1 >conftest.err
7581 rm -f conftest.er1
7582 cat conftest.err >&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); } &&
7585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7587 (eval $ac_try) 2>&5
7588 ac_status=$?
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); }; } &&
7591 { ac_try='test -s conftest.$ac_objext'
7592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7593 (eval $ac_try) 2>&5
7594 ac_status=$?
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); }; }; then
7597 ac_struct_stat_st_nlink=yes;
7598 else
7599 echo "$as_me: failed program was:" >&5
7600 sed 's/^/| /' conftest.$ac_ext >&5
7601
7602 ac_struct_stat_st_nlink=no;
7603 fi
7604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7605 fi
7606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7607 if test $ac_struct_stat_st_nlink = yes; then :;
7608 cat >>confdefs.h <<_ACEOF
7609 #define HAVE_STRUCT_STAT_ST_NLINK 1
7610 _ACEOF
7611
7612 else :;
7613 fi
7614 fi
7615 echo "$as_me:$LINENO: result: $ac_struct_stat_st_nlink" >&5
7616 echo "${ECHO_T}$ac_struct_stat_st_nlink" >&6
7617
7618 echo "$as_me:$LINENO: checking for struct stat.st_uid" >&5
7619 echo $ECHO_N "checking for struct stat.st_uid... $ECHO_C" >&6
7620 if test "${ac_struct_stat_st_uid+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7622 else
7623 ac_struct_stat_st_uid=no;
7624 cat >conftest.$ac_ext <<_ACEOF
7625 /* confdefs.h. */
7626 _ACEOF
7627 cat confdefs.h >>conftest.$ac_ext
7628 cat >>conftest.$ac_ext <<_ACEOF
7629 /* end confdefs.h. */
7630 #ifdef HAVE_SYS_TYPES_H
7631 #include <sys/types.h>
7632 #endif
7633 #ifdef HAVE_SYS_STAT_H
7634 #include <sys/stat.h>
7635 #endif
7636 int
7637 main ()
7638 {
7639
7640 static struct stat ac_aggr;
7641 if (ac_aggr.st_uid)
7642 return 0;
7643 ;
7644 return 0;
7645 }
7646 _ACEOF
7647 rm -f conftest.$ac_objext
7648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7649 (eval $ac_compile) 2>conftest.er1
7650 ac_status=$?
7651 grep -v '^ *+' conftest.er1 >conftest.err
7652 rm -f conftest.er1
7653 cat conftest.err >&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } &&
7656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658 (eval $ac_try) 2>&5
7659 ac_status=$?
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); }; } &&
7662 { ac_try='test -s conftest.$ac_objext'
7663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664 (eval $ac_try) 2>&5
7665 ac_status=$?
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; }; then
7668 ac_struct_stat_st_uid=yes;
7669 else
7670 echo "$as_me: failed program was:" >&5
7671 sed 's/^/| /' conftest.$ac_ext >&5
7672
7673 cat >conftest.$ac_ext <<_ACEOF
7674 /* confdefs.h. */
7675 _ACEOF
7676 cat confdefs.h >>conftest.$ac_ext
7677 cat >>conftest.$ac_ext <<_ACEOF
7678 /* end confdefs.h. */
7679 #ifdef HAVE_SYS_TYPES_H
7680 #include <sys/types.h>
7681 #endif
7682 #ifdef HAVE_SYS_STAT_H
7683 #include <sys/stat.h>
7684 #endif
7685 int
7686 main ()
7687 {
7688
7689 static struct stat ac_aggr;
7690 if (sizeof ac_aggr.st_uid)
7691 return 0;
7692 ;
7693 return 0;
7694 }
7695 _ACEOF
7696 rm -f conftest.$ac_objext
7697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7698 (eval $ac_compile) 2>conftest.er1
7699 ac_status=$?
7700 grep -v '^ *+' conftest.er1 >conftest.err
7701 rm -f conftest.er1
7702 cat conftest.err >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); } &&
7705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707 (eval $ac_try) 2>&5
7708 ac_status=$?
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); }; } &&
7711 { ac_try='test -s conftest.$ac_objext'
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713 (eval $ac_try) 2>&5
7714 ac_status=$?
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); }; }; then
7717 ac_struct_stat_st_uid=yes;
7718 else
7719 echo "$as_me: failed program was:" >&5
7720 sed 's/^/| /' conftest.$ac_ext >&5
7721
7722 ac_struct_stat_st_uid=no;
7723 fi
7724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7725 fi
7726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7727 if test $ac_struct_stat_st_uid = yes; then :;
7728 cat >>confdefs.h <<_ACEOF
7729 #define HAVE_STRUCT_STAT_ST_UID 1
7730 _ACEOF
7731
7732 else :;
7733 fi
7734 fi
7735 echo "$as_me:$LINENO: result: $ac_struct_stat_st_uid" >&5
7736 echo "${ECHO_T}$ac_struct_stat_st_uid" >&6
7737
7738 echo "$as_me:$LINENO: checking for struct stat.st_gid" >&5
7739 echo $ECHO_N "checking for struct stat.st_gid... $ECHO_C" >&6
7740 if test "${ac_struct_stat_st_gid+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7742 else
7743 ac_struct_stat_st_gid=no;
7744 cat >conftest.$ac_ext <<_ACEOF
7745 /* confdefs.h. */
7746 _ACEOF
7747 cat confdefs.h >>conftest.$ac_ext
7748 cat >>conftest.$ac_ext <<_ACEOF
7749 /* end confdefs.h. */
7750 #ifdef HAVE_SYS_TYPES_H
7751 #include <sys/types.h>
7752 #endif
7753 #ifdef HAVE_SYS_STAT_H
7754 #include <sys/stat.h>
7755 #endif
7756 int
7757 main ()
7758 {
7759
7760 static struct stat ac_aggr;
7761 if (ac_aggr.st_gid)
7762 return 0;
7763 ;
7764 return 0;
7765 }
7766 _ACEOF
7767 rm -f conftest.$ac_objext
7768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7769 (eval $ac_compile) 2>conftest.er1
7770 ac_status=$?
7771 grep -v '^ *+' conftest.er1 >conftest.err
7772 rm -f conftest.er1
7773 cat conftest.err >&5
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); } &&
7776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778 (eval $ac_try) 2>&5
7779 ac_status=$?
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }; } &&
7782 { ac_try='test -s conftest.$ac_objext'
7783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784 (eval $ac_try) 2>&5
7785 ac_status=$?
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); }; }; then
7788 ac_struct_stat_st_gid=yes;
7789 else
7790 echo "$as_me: failed program was:" >&5
7791 sed 's/^/| /' conftest.$ac_ext >&5
7792
7793 cat >conftest.$ac_ext <<_ACEOF
7794 /* confdefs.h. */
7795 _ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h. */
7799 #ifdef HAVE_SYS_TYPES_H
7800 #include <sys/types.h>
7801 #endif
7802 #ifdef HAVE_SYS_STAT_H
7803 #include <sys/stat.h>
7804 #endif
7805 int
7806 main ()
7807 {
7808
7809 static struct stat ac_aggr;
7810 if (sizeof ac_aggr.st_gid)
7811 return 0;
7812 ;
7813 return 0;
7814 }
7815 _ACEOF
7816 rm -f conftest.$ac_objext
7817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7818 (eval $ac_compile) 2>conftest.er1
7819 ac_status=$?
7820 grep -v '^ *+' conftest.er1 >conftest.err
7821 rm -f conftest.er1
7822 cat conftest.err >&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); } &&
7825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7827 (eval $ac_try) 2>&5
7828 ac_status=$?
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); }; } &&
7831 { ac_try='test -s conftest.$ac_objext'
7832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7833 (eval $ac_try) 2>&5
7834 ac_status=$?
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); }; }; then
7837 ac_struct_stat_st_gid=yes;
7838 else
7839 echo "$as_me: failed program was:" >&5
7840 sed 's/^/| /' conftest.$ac_ext >&5
7841
7842 ac_struct_stat_st_gid=no;
7843 fi
7844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7845 fi
7846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7847 if test $ac_struct_stat_st_gid = yes; then :;
7848 cat >>confdefs.h <<_ACEOF
7849 #define HAVE_STRUCT_STAT_ST_GID 1
7850 _ACEOF
7851
7852 else :;
7853 fi
7854 fi
7855 echo "$as_me:$LINENO: result: $ac_struct_stat_st_gid" >&5
7856 echo "${ECHO_T}$ac_struct_stat_st_gid" >&6
7857
7858 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
7859 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
7860 if test "${ac_struct_stat_st_rdev+set}" = set; then
7861 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 else
7863 ac_struct_stat_st_rdev=no;
7864 cat >conftest.$ac_ext <<_ACEOF
7865 /* confdefs.h. */
7866 _ACEOF
7867 cat confdefs.h >>conftest.$ac_ext
7868 cat >>conftest.$ac_ext <<_ACEOF
7869 /* end confdefs.h. */
7870 #ifdef HAVE_SYS_TYPES_H
7871 #include <sys/types.h>
7872 #endif
7873 #ifdef HAVE_SYS_STAT_H
7874 #include <sys/stat.h>
7875 #endif
7876 int
7877 main ()
7878 {
7879
7880 static struct stat ac_aggr;
7881 if (ac_aggr.st_rdev)
7882 return 0;
7883 ;
7884 return 0;
7885 }
7886 _ACEOF
7887 rm -f conftest.$ac_objext
7888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7889 (eval $ac_compile) 2>conftest.er1
7890 ac_status=$?
7891 grep -v '^ *+' conftest.er1 >conftest.err
7892 rm -f conftest.er1
7893 cat conftest.err >&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); } &&
7896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898 (eval $ac_try) 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; } &&
7902 { ac_try='test -s conftest.$ac_objext'
7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904 (eval $ac_try) 2>&5
7905 ac_status=$?
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; }; then
7908 ac_struct_stat_st_rdev=yes;
7909 else
7910 echo "$as_me: failed program was:" >&5
7911 sed 's/^/| /' conftest.$ac_ext >&5
7912
7913 cat >conftest.$ac_ext <<_ACEOF
7914 /* confdefs.h. */
7915 _ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7919 #ifdef HAVE_SYS_TYPES_H
7920 #include <sys/types.h>
7921 #endif
7922 #ifdef HAVE_SYS_STAT_H
7923 #include <sys/stat.h>
7924 #endif
7925 int
7926 main ()
7927 {
7928
7929 static struct stat ac_aggr;
7930 if (sizeof ac_aggr.st_rdev)
7931 return 0;
7932 ;
7933 return 0;
7934 }
7935 _ACEOF
7936 rm -f conftest.$ac_objext
7937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7938 (eval $ac_compile) 2>conftest.er1
7939 ac_status=$?
7940 grep -v '^ *+' conftest.er1 >conftest.err
7941 rm -f conftest.er1
7942 cat conftest.err >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } &&
7945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947 (eval $ac_try) 2>&5
7948 ac_status=$?
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); }; } &&
7951 { ac_try='test -s conftest.$ac_objext'
7952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7953 (eval $ac_try) 2>&5
7954 ac_status=$?
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; }; then
7957 ac_struct_stat_st_rdev=yes;
7958 else
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7961
7962 ac_struct_stat_st_rdev=no;
7963 fi
7964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7965 fi
7966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7967 if test $ac_struct_stat_st_rdev = yes; then :;
7968 cat >>confdefs.h <<_ACEOF
7969 #define HAVE_STRUCT_STAT_ST_RDEV 1
7970 _ACEOF
7971
7972 else :;
7973 fi
7974 fi
7975 echo "$as_me:$LINENO: result: $ac_struct_stat_st_rdev" >&5
7976 echo "${ECHO_T}$ac_struct_stat_st_rdev" >&6
7977
7978 echo "$as_me:$LINENO: checking for struct stat.st_size" >&5
7979 echo $ECHO_N "checking for struct stat.st_size... $ECHO_C" >&6
7980 if test "${ac_struct_stat_st_size+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7982 else
7983 ac_struct_stat_st_size=no;
7984 cat >conftest.$ac_ext <<_ACEOF
7985 /* confdefs.h. */
7986 _ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h. */
7990 #ifdef HAVE_SYS_TYPES_H
7991 #include <sys/types.h>
7992 #endif
7993 #ifdef HAVE_SYS_STAT_H
7994 #include <sys/stat.h>
7995 #endif
7996 int
7997 main ()
7998 {
7999
8000 static struct stat ac_aggr;
8001 if (ac_aggr.st_size)
8002 return 0;
8003 ;
8004 return 0;
8005 }
8006 _ACEOF
8007 rm -f conftest.$ac_objext
8008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8009 (eval $ac_compile) 2>conftest.er1
8010 ac_status=$?
8011 grep -v '^ *+' conftest.er1 >conftest.err
8012 rm -f conftest.er1
8013 cat conftest.err >&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } &&
8016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018 (eval $ac_try) 2>&5
8019 ac_status=$?
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); }; } &&
8022 { ac_try='test -s conftest.$ac_objext'
8023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024 (eval $ac_try) 2>&5
8025 ac_status=$?
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); }; }; then
8028 ac_struct_stat_st_size=yes;
8029 else
8030 echo "$as_me: failed program was:" >&5
8031 sed 's/^/| /' conftest.$ac_ext >&5
8032
8033 cat >conftest.$ac_ext <<_ACEOF
8034 /* confdefs.h. */
8035 _ACEOF
8036 cat confdefs.h >>conftest.$ac_ext
8037 cat >>conftest.$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8039 #ifdef HAVE_SYS_TYPES_H
8040 #include <sys/types.h>
8041 #endif
8042 #ifdef HAVE_SYS_STAT_H
8043 #include <sys/stat.h>
8044 #endif
8045 int
8046 main ()
8047 {
8048
8049 static struct stat ac_aggr;
8050 if (sizeof ac_aggr.st_size)
8051 return 0;
8052 ;
8053 return 0;
8054 }
8055 _ACEOF
8056 rm -f conftest.$ac_objext
8057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8058 (eval $ac_compile) 2>conftest.er1
8059 ac_status=$?
8060 grep -v '^ *+' conftest.er1 >conftest.err
8061 rm -f conftest.er1
8062 cat conftest.err >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); } &&
8065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8067 (eval $ac_try) 2>&5
8068 ac_status=$?
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); }; } &&
8071 { ac_try='test -s conftest.$ac_objext'
8072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073 (eval $ac_try) 2>&5
8074 ac_status=$?
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); }; }; then
8077 ac_struct_stat_st_size=yes;
8078 else
8079 echo "$as_me: failed program was:" >&5
8080 sed 's/^/| /' conftest.$ac_ext >&5
8081
8082 ac_struct_stat_st_size=no;
8083 fi
8084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8085 fi
8086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8087 if test $ac_struct_stat_st_size = yes; then :;
8088 cat >>confdefs.h <<_ACEOF
8089 #define HAVE_STRUCT_STAT_ST_SIZE 1
8090 _ACEOF
8091
8092 else :;
8093 fi
8094 fi
8095 echo "$as_me:$LINENO: result: $ac_struct_stat_st_size" >&5
8096 echo "${ECHO_T}$ac_struct_stat_st_size" >&6
8097
8098 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
8099 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
8100 if test "${ac_struct_stat_st_blksize+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8102 else
8103 ac_struct_stat_st_blksize=no;
8104 cat >conftest.$ac_ext <<_ACEOF
8105 /* confdefs.h. */
8106 _ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h. */
8110 #ifdef HAVE_SYS_TYPES_H
8111 #include <sys/types.h>
8112 #endif
8113 #ifdef HAVE_SYS_STAT_H
8114 #include <sys/stat.h>
8115 #endif
8116 int
8117 main ()
8118 {
8119
8120 static struct stat ac_aggr;
8121 if (ac_aggr.st_blksize)
8122 return 0;
8123 ;
8124 return 0;
8125 }
8126 _ACEOF
8127 rm -f conftest.$ac_objext
8128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8129 (eval $ac_compile) 2>conftest.er1
8130 ac_status=$?
8131 grep -v '^ *+' conftest.er1 >conftest.err
8132 rm -f conftest.er1
8133 cat conftest.err >&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); } &&
8136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8138 (eval $ac_try) 2>&5
8139 ac_status=$?
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); }; } &&
8142 { ac_try='test -s conftest.$ac_objext'
8143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144 (eval $ac_try) 2>&5
8145 ac_status=$?
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); }; }; then
8148 ac_struct_stat_st_blksize=yes;
8149 else
8150 echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8152
8153 cat >conftest.$ac_ext <<_ACEOF
8154 /* confdefs.h. */
8155 _ACEOF
8156 cat confdefs.h >>conftest.$ac_ext
8157 cat >>conftest.$ac_ext <<_ACEOF
8158 /* end confdefs.h. */
8159 #ifdef HAVE_SYS_TYPES_H
8160 #include <sys/types.h>
8161 #endif
8162 #ifdef HAVE_SYS_STAT_H
8163 #include <sys/stat.h>
8164 #endif
8165 int
8166 main ()
8167 {
8168
8169 static struct stat ac_aggr;
8170 if (sizeof ac_aggr.st_blksize)
8171 return 0;
8172 ;
8173 return 0;
8174 }
8175 _ACEOF
8176 rm -f conftest.$ac_objext
8177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8178 (eval $ac_compile) 2>conftest.er1
8179 ac_status=$?
8180 grep -v '^ *+' conftest.er1 >conftest.err
8181 rm -f conftest.er1
8182 cat conftest.err >&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); } &&
8185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187 (eval $ac_try) 2>&5
8188 ac_status=$?
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); }; } &&
8191 { ac_try='test -s conftest.$ac_objext'
8192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193 (eval $ac_try) 2>&5
8194 ac_status=$?
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; }; then
8197 ac_struct_stat_st_blksize=yes;
8198 else
8199 echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8201
8202 ac_struct_stat_st_blksize=no;
8203 fi
8204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8205 fi
8206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8207 if test $ac_struct_stat_st_blksize = yes; then :;
8208 cat >>confdefs.h <<_ACEOF
8209 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8210 _ACEOF
8211
8212 else :;
8213 fi
8214 fi
8215 echo "$as_me:$LINENO: result: $ac_struct_stat_st_blksize" >&5
8216 echo "${ECHO_T}$ac_struct_stat_st_blksize" >&6
8217
8218 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
8219 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
8220 if test "${ac_struct_stat_st_blocks+set}" = set; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8222 else
8223 ac_struct_stat_st_blocks=no;
8224 cat >conftest.$ac_ext <<_ACEOF
8225 /* confdefs.h. */
8226 _ACEOF
8227 cat confdefs.h >>conftest.$ac_ext
8228 cat >>conftest.$ac_ext <<_ACEOF
8229 /* end confdefs.h. */
8230 #ifdef HAVE_SYS_TYPES_H
8231 #include <sys/types.h>
8232 #endif
8233 #ifdef HAVE_SYS_STAT_H
8234 #include <sys/stat.h>
8235 #endif
8236 int
8237 main ()
8238 {
8239
8240 static struct stat ac_aggr;
8241 if (ac_aggr.st_blocks)
8242 return 0;
8243 ;
8244 return 0;
8245 }
8246 _ACEOF
8247 rm -f conftest.$ac_objext
8248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8249 (eval $ac_compile) 2>conftest.er1
8250 ac_status=$?
8251 grep -v '^ *+' conftest.er1 >conftest.err
8252 rm -f conftest.er1
8253 cat conftest.err >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } &&
8256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258 (eval $ac_try) 2>&5
8259 ac_status=$?
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); }; } &&
8262 { ac_try='test -s conftest.$ac_objext'
8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264 (eval $ac_try) 2>&5
8265 ac_status=$?
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; }; then
8268 ac_struct_stat_st_blocks=yes;
8269 else
8270 echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8272
8273 cat >conftest.$ac_ext <<_ACEOF
8274 /* confdefs.h. */
8275 _ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h. */
8279 #ifdef HAVE_SYS_TYPES_H
8280 #include <sys/types.h>
8281 #endif
8282 #ifdef HAVE_SYS_STAT_H
8283 #include <sys/stat.h>
8284 #endif
8285 int
8286 main ()
8287 {
8288
8289 static struct stat ac_aggr;
8290 if (sizeof ac_aggr.st_blocks)
8291 return 0;
8292 ;
8293 return 0;
8294 }
8295 _ACEOF
8296 rm -f conftest.$ac_objext
8297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8298 (eval $ac_compile) 2>conftest.er1
8299 ac_status=$?
8300 grep -v '^ *+' conftest.er1 >conftest.err
8301 rm -f conftest.er1
8302 cat conftest.err >&5
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); } &&
8305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8307 (eval $ac_try) 2>&5
8308 ac_status=$?
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); }; } &&
8311 { ac_try='test -s conftest.$ac_objext'
8312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313 (eval $ac_try) 2>&5
8314 ac_status=$?
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); }; }; then
8317 ac_struct_stat_st_blocks=yes;
8318 else
8319 echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8321
8322 ac_struct_stat_st_blocks=no;
8323 fi
8324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8325 fi
8326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8327 if test $ac_struct_stat_st_blocks = yes; then :;
8328 cat >>confdefs.h <<_ACEOF
8329 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8330 _ACEOF
8331
8332 else :;
8333 fi
8334 fi
8335 echo "$as_me:$LINENO: result: $ac_struct_stat_st_blocks" >&5
8336 echo "${ECHO_T}$ac_struct_stat_st_blocks" >&6
8337
8338 echo "$as_me:$LINENO: checking for struct stat.st_atime" >&5
8339 echo $ECHO_N "checking for struct stat.st_atime... $ECHO_C" >&6
8340 if test "${ac_struct_stat_st_atime+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 else
8343 ac_struct_stat_st_atime=no;
8344 cat >conftest.$ac_ext <<_ACEOF
8345 /* confdefs.h. */
8346 _ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h. */
8350 #ifdef HAVE_SYS_TYPES_H
8351 #include <sys/types.h>
8352 #endif
8353 #ifdef HAVE_SYS_STAT_H
8354 #include <sys/stat.h>
8355 #endif
8356 int
8357 main ()
8358 {
8359
8360 static struct stat ac_aggr;
8361 if (ac_aggr.st_atime)
8362 return 0;
8363 ;
8364 return 0;
8365 }
8366 _ACEOF
8367 rm -f conftest.$ac_objext
8368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8369 (eval $ac_compile) 2>conftest.er1
8370 ac_status=$?
8371 grep -v '^ *+' conftest.er1 >conftest.err
8372 rm -f conftest.er1
8373 cat conftest.err >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } &&
8376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 (eval $ac_try) 2>&5
8379 ac_status=$?
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; } &&
8382 { ac_try='test -s conftest.$ac_objext'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384 (eval $ac_try) 2>&5
8385 ac_status=$?
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; }; then
8388 ac_struct_stat_st_atime=yes;
8389 else
8390 echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8392
8393 cat >conftest.$ac_ext <<_ACEOF
8394 /* confdefs.h. */
8395 _ACEOF
8396 cat confdefs.h >>conftest.$ac_ext
8397 cat >>conftest.$ac_ext <<_ACEOF
8398 /* end confdefs.h. */
8399 #ifdef HAVE_SYS_TYPES_H
8400 #include <sys/types.h>
8401 #endif
8402 #ifdef HAVE_SYS_STAT_H
8403 #include <sys/stat.h>
8404 #endif
8405 int
8406 main ()
8407 {
8408
8409 static struct stat ac_aggr;
8410 if (sizeof ac_aggr.st_atime)
8411 return 0;
8412 ;
8413 return 0;
8414 }
8415 _ACEOF
8416 rm -f conftest.$ac_objext
8417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8418 (eval $ac_compile) 2>conftest.er1
8419 ac_status=$?
8420 grep -v '^ *+' conftest.er1 >conftest.err
8421 rm -f conftest.er1
8422 cat conftest.err >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); } &&
8425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8427 (eval $ac_try) 2>&5
8428 ac_status=$?
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); }; } &&
8431 { ac_try='test -s conftest.$ac_objext'
8432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433 (eval $ac_try) 2>&5
8434 ac_status=$?
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); }; }; then
8437 ac_struct_stat_st_atime=yes;
8438 else
8439 echo "$as_me: failed program was:" >&5
8440 sed 's/^/| /' conftest.$ac_ext >&5
8441
8442 ac_struct_stat_st_atime=no;
8443 fi
8444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8445 fi
8446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8447 if test $ac_struct_stat_st_atime = yes; then :;
8448 cat >>confdefs.h <<_ACEOF
8449 #define HAVE_STRUCT_STAT_ST_ATIME 1
8450 _ACEOF
8451
8452 else :;
8453 fi
8454 fi
8455 echo "$as_me:$LINENO: result: $ac_struct_stat_st_atime" >&5
8456 echo "${ECHO_T}$ac_struct_stat_st_atime" >&6
8457
8458 echo "$as_me:$LINENO: checking for struct stat.st_mtime" >&5
8459 echo $ECHO_N "checking for struct stat.st_mtime... $ECHO_C" >&6
8460 if test "${ac_struct_stat_st_mtime+set}" = set; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
8462 else
8463 ac_struct_stat_st_mtime=no;
8464 cat >conftest.$ac_ext <<_ACEOF
8465 /* confdefs.h. */
8466 _ACEOF
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h. */
8470 #ifdef HAVE_SYS_TYPES_H
8471 #include <sys/types.h>
8472 #endif
8473 #ifdef HAVE_SYS_STAT_H
8474 #include <sys/stat.h>
8475 #endif
8476 int
8477 main ()
8478 {
8479
8480 static struct stat ac_aggr;
8481 if (ac_aggr.st_mtime)
8482 return 0;
8483 ;
8484 return 0;
8485 }
8486 _ACEOF
8487 rm -f conftest.$ac_objext
8488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8489 (eval $ac_compile) 2>conftest.er1
8490 ac_status=$?
8491 grep -v '^ *+' conftest.er1 >conftest.err
8492 rm -f conftest.er1
8493 cat conftest.err >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } &&
8496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 (eval $ac_try) 2>&5
8499 ac_status=$?
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; } &&
8502 { ac_try='test -s conftest.$ac_objext'
8503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 (eval $ac_try) 2>&5
8505 ac_status=$?
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); }; }; then
8508 ac_struct_stat_st_mtime=yes;
8509 else
8510 echo "$as_me: failed program was:" >&5
8511 sed 's/^/| /' conftest.$ac_ext >&5
8512
8513 cat >conftest.$ac_ext <<_ACEOF
8514 /* confdefs.h. */
8515 _ACEOF
8516 cat confdefs.h >>conftest.$ac_ext
8517 cat >>conftest.$ac_ext <<_ACEOF
8518 /* end confdefs.h. */
8519 #ifdef HAVE_SYS_TYPES_H
8520 #include <sys/types.h>
8521 #endif
8522 #ifdef HAVE_SYS_STAT_H
8523 #include <sys/stat.h>
8524 #endif
8525 int
8526 main ()
8527 {
8528
8529 static struct stat ac_aggr;
8530 if (sizeof ac_aggr.st_mtime)
8531 return 0;
8532 ;
8533 return 0;
8534 }
8535 _ACEOF
8536 rm -f conftest.$ac_objext
8537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8538 (eval $ac_compile) 2>conftest.er1
8539 ac_status=$?
8540 grep -v '^ *+' conftest.er1 >conftest.err
8541 rm -f conftest.er1
8542 cat conftest.err >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); } &&
8545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 (eval $ac_try) 2>&5
8548 ac_status=$?
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; } &&
8551 { ac_try='test -s conftest.$ac_objext'
8552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 (eval $ac_try) 2>&5
8554 ac_status=$?
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); }; }; then
8557 ac_struct_stat_st_mtime=yes;
8558 else
8559 echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8561
8562 ac_struct_stat_st_mtime=no;
8563 fi
8564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8565 fi
8566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8567 if test $ac_struct_stat_st_mtime = yes; then :;
8568 cat >>confdefs.h <<_ACEOF
8569 #define HAVE_STRUCT_STAT_ST_MTIME 1
8570 _ACEOF
8571
8572 else :;
8573 fi
8574 fi
8575 echo "$as_me:$LINENO: result: $ac_struct_stat_st_mtime" >&5
8576 echo "${ECHO_T}$ac_struct_stat_st_mtime" >&6
8577
8578 echo "$as_me:$LINENO: checking for struct stat.st_ctime" >&5
8579 echo $ECHO_N "checking for struct stat.st_ctime... $ECHO_C" >&6
8580 if test "${ac_struct_stat_st_ctime+set}" = set; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8582 else
8583 ac_struct_stat_st_ctime=no;
8584 cat >conftest.$ac_ext <<_ACEOF
8585 /* confdefs.h. */
8586 _ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h. */
8590 #ifdef HAVE_SYS_TYPES_H
8591 #include <sys/types.h>
8592 #endif
8593 #ifdef HAVE_SYS_STAT_H
8594 #include <sys/stat.h>
8595 #endif
8596 int
8597 main ()
8598 {
8599
8600 static struct stat ac_aggr;
8601 if (ac_aggr.st_ctime)
8602 return 0;
8603 ;
8604 return 0;
8605 }
8606 _ACEOF
8607 rm -f conftest.$ac_objext
8608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8609 (eval $ac_compile) 2>conftest.er1
8610 ac_status=$?
8611 grep -v '^ *+' conftest.er1 >conftest.err
8612 rm -f conftest.er1
8613 cat conftest.err >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); } &&
8616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618 (eval $ac_try) 2>&5
8619 ac_status=$?
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; } &&
8622 { ac_try='test -s conftest.$ac_objext'
8623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624 (eval $ac_try) 2>&5
8625 ac_status=$?
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; }; then
8628 ac_struct_stat_st_ctime=yes;
8629 else
8630 echo "$as_me: failed program was:" >&5
8631 sed 's/^/| /' conftest.$ac_ext >&5
8632
8633 cat >conftest.$ac_ext <<_ACEOF
8634 /* confdefs.h. */
8635 _ACEOF
8636 cat confdefs.h >>conftest.$ac_ext
8637 cat >>conftest.$ac_ext <<_ACEOF
8638 /* end confdefs.h. */
8639 #ifdef HAVE_SYS_TYPES_H
8640 #include <sys/types.h>
8641 #endif
8642 #ifdef HAVE_SYS_STAT_H
8643 #include <sys/stat.h>
8644 #endif
8645 int
8646 main ()
8647 {
8648
8649 static struct stat ac_aggr;
8650 if (sizeof ac_aggr.st_ctime)
8651 return 0;
8652 ;
8653 return 0;
8654 }
8655 _ACEOF
8656 rm -f conftest.$ac_objext
8657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8658 (eval $ac_compile) 2>conftest.er1
8659 ac_status=$?
8660 grep -v '^ *+' conftest.er1 >conftest.err
8661 rm -f conftest.er1
8662 cat conftest.err >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } &&
8665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667 (eval $ac_try) 2>&5
8668 ac_status=$?
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); }; } &&
8671 { ac_try='test -s conftest.$ac_objext'
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673 (eval $ac_try) 2>&5
8674 ac_status=$?
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; }; then
8677 ac_struct_stat_st_ctime=yes;
8678 else
8679 echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8681
8682 ac_struct_stat_st_ctime=no;
8683 fi
8684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8685 fi
8686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8687 if test $ac_struct_stat_st_ctime = yes; then :;
8688 cat >>confdefs.h <<_ACEOF
8689 #define HAVE_STRUCT_STAT_ST_CTIME 1
8690 _ACEOF
8691
8692 else :;
8693 fi
8694 fi
8695 echo "$as_me:$LINENO: result: $ac_struct_stat_st_ctime" >&5
8696 echo "${ECHO_T}$ac_struct_stat_st_ctime" >&6
8697
8698 ac_config_files="$ac_config_files Makefile"
8699 ac_config_commands="$ac_config_commands default"
8700 cat >confcache <<\_ACEOF
8701 # This file is a shell script that caches the results of configure
8702 # tests run on this system so they can be shared between configure
8703 # scripts and configure runs, see configure's option --config-cache.
8704 # It is not useful on other systems. If it contains results you don't
8705 # want to keep, you may remove or edit it.
8706 #
8707 # config.status only pays attention to the cache file if you give it
8708 # the --recheck option to rerun configure.
8709 #
8710 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8711 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8712 # following values.
8713
8714 _ACEOF
8715
8716 # The following way of writing the cache mishandles newlines in values,
8717 # but we know of no workaround that is simple, portable, and efficient.
8718 # So, don't put newlines in cache variables' values.
8719 # Ultrix sh set writes to stderr and can't be redirected directly,
8720 # and sets the high bit in the cache file unless we assign to the vars.
8721 {
8722 (set) 2>&1 |
8723 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8724 *ac_space=\ *)
8725 # `set' does not quote correctly, so add quotes (double-quote
8726 # substitution turns \\\\ into \\, and sed turns \\ into \).
8727 sed -n \
8728 "s/'/'\\\\''/g;
8729 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8730 ;;
8731 *)
8732 # `set' quotes correctly as required by POSIX, so do not add quotes.
8733 sed -n \
8734 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8735 ;;
8736 esac;
8737 } |
8738 sed '
8739 t clear
8740 : clear
8741 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8742 t end
8743 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8744 : end' >>confcache
8745 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8746 if test -w $cache_file; then
8747 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8748 cat confcache >$cache_file
8749 else
8750 echo "not updating unwritable cache $cache_file"
8751 fi
8752 fi
8753 rm -f confcache
8754
8755 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8756 # Let make expand exec_prefix.
8757 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8758
8759 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8760 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8761 # trailing colons and then remove the whole line if VPATH becomes empty
8762 # (actually we leave an empty line to preserve line numbers).
8763 if test "x$srcdir" = x.; then
8764 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8765 s/:*\$(srcdir):*/:/;
8766 s/:*\${srcdir}:*/:/;
8767 s/:*@srcdir@:*/:/;
8768 s/^\([^=]*=[ ]*\):*/\1/;
8769 s/:*$//;
8770 s/^[^=]*=[ ]*$//;
8771 }'
8772 fi
8773
8774 DEFS=-DHAVE_CONFIG_H
8775
8776 ac_libobjs=
8777 ac_ltlibobjs=
8778 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8779 # 1. Remove the extension, and $U if already installed.
8780 ac_i=`echo "$ac_i" |
8781 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8782 # 2. Add them.
8783 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8784 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8785 done
8786 LIBOBJS=$ac_libobjs
8787
8788 LTLIBOBJS=$ac_ltlibobjs
8789
8790
8791
8792 : ${CONFIG_STATUS=./config.status}
8793 ac_clean_files_save=$ac_clean_files
8794 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8795 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8796 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8797 cat >$CONFIG_STATUS <<_ACEOF
8798 #! $SHELL
8799 # Generated by $as_me.
8800 # Run this file to recreate the current configuration.
8801 # Compiler output produced by configure, useful for debugging
8802 # configure, is in config.log if it exists.
8803
8804 debug=false
8805 ac_cs_recheck=false
8806 ac_cs_silent=false
8807 SHELL=\${CONFIG_SHELL-$SHELL}
8808 _ACEOF
8809
8810 cat >>$CONFIG_STATUS <<\_ACEOF
8811 ## --------------------- ##
8812 ## M4sh Initialization. ##
8813 ## --------------------- ##
8814
8815 # Be Bourne compatible
8816 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8817 emulate sh
8818 NULLCMD=:
8819 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8820 # is contrary to our usage. Disable this feature.
8821 alias -g '${1+"$@"}'='"$@"'
8822 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8823 set -o posix
8824 fi
8825 DUALCASE=1; export DUALCASE # for MKS sh
8826
8827 # Support unset when possible.
8828 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8829 as_unset=unset
8830 else
8831 as_unset=false
8832 fi
8833
8834
8835 # Work around bugs in pre-3.0 UWIN ksh.
8836 $as_unset ENV MAIL MAILPATH
8837 PS1='$ '
8838 PS2='> '
8839 PS4='+ '
8840
8841 # NLS nuisances.
8842 for as_var in \
8843 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8844 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8845 LC_TELEPHONE LC_TIME
8846 do
8847 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8848 eval $as_var=C; export $as_var
8849 else
8850 $as_unset $as_var
8851 fi
8852 done
8853
8854 # Required to use basename.
8855 if expr a : '\(a\)' >/dev/null 2>&1; then
8856 as_expr=expr
8857 else
8858 as_expr=false
8859 fi
8860
8861 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8862 as_basename=basename
8863 else
8864 as_basename=false
8865 fi
8866
8867
8868 # Name of the executable.
8869 as_me=`$as_basename "$0" ||
8870 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8871 X"$0" : 'X\(//\)$' \| \
8872 X"$0" : 'X\(/\)$' \| \
8873 . : '\(.\)' 2>/dev/null ||
8874 echo X/"$0" |
8875 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8876 /^X\/\(\/\/\)$/{ s//\1/; q; }
8877 /^X\/\(\/\).*/{ s//\1/; q; }
8878 s/.*/./; q'`
8879
8880
8881 # PATH needs CR, and LINENO needs CR and PATH.
8882 # Avoid depending upon Character Ranges.
8883 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8884 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8885 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8886 as_cr_digits='0123456789'
8887 as_cr_alnum=$as_cr_Letters$as_cr_digits
8888
8889 # The user is always right.
8890 if test "${PATH_SEPARATOR+set}" != set; then
8891 echo "#! /bin/sh" >conf$$.sh
8892 echo "exit 0" >>conf$$.sh
8893 chmod +x conf$$.sh
8894 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8895 PATH_SEPARATOR=';'
8896 else
8897 PATH_SEPARATOR=:
8898 fi
8899 rm -f conf$$.sh
8900 fi
8901
8902
8903 as_lineno_1=$LINENO
8904 as_lineno_2=$LINENO
8905 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8906 test "x$as_lineno_1" != "x$as_lineno_2" &&
8907 test "x$as_lineno_3" = "x$as_lineno_2" || {
8908 # Find who we are. Look in the path if we contain no path at all
8909 # relative or not.
8910 case $0 in
8911 *[\\/]* ) as_myself=$0 ;;
8912 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8913 for as_dir in $PATH
8914 do
8915 IFS=$as_save_IFS
8916 test -z "$as_dir" && as_dir=.
8917 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8918 done
8919
8920 ;;
8921 esac
8922 # We did not find ourselves, most probably we were run as `sh COMMAND'
8923 # in which case we are not to be found in the path.
8924 if test "x$as_myself" = x; then
8925 as_myself=$0
8926 fi
8927 if test ! -f "$as_myself"; then
8928 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8929 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8930 { (exit 1); exit 1; }; }
8931 fi
8932 case $CONFIG_SHELL in
8933 '')
8934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8935 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8936 do
8937 IFS=$as_save_IFS
8938 test -z "$as_dir" && as_dir=.
8939 for as_base in sh bash ksh sh5; do
8940 case $as_dir in
8941 /*)
8942 if ("$as_dir/$as_base" -c '
8943 as_lineno_1=$LINENO
8944 as_lineno_2=$LINENO
8945 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8946 test "x$as_lineno_1" != "x$as_lineno_2" &&
8947 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8948 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8949 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8950 CONFIG_SHELL=$as_dir/$as_base
8951 export CONFIG_SHELL
8952 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8953 fi;;
8954 esac
8955 done
8956 done
8957 ;;
8958 esac
8959
8960 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8961 # uniformly replaced by the line number. The first 'sed' inserts a
8962 # line-number line before each line; the second 'sed' does the real
8963 # work. The second script uses 'N' to pair each line-number line
8964 # with the numbered line, and appends trailing '-' during
8965 # substitution so that $LINENO is not a special case at line end.
8966 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8967 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8968 sed '=' <$as_myself |
8969 sed '
8970 N
8971 s,$,-,
8972 : loop
8973 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8974 t loop
8975 s,-$,,
8976 s,^['$as_cr_digits']*\n,,
8977 ' >$as_me.lineno &&
8978 chmod +x $as_me.lineno ||
8979 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8980 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8981 { (exit 1); exit 1; }; }
8982
8983 # Don't try to exec as it changes $[0], causing all sort of problems
8984 # (the dirname of $[0] is not the place where we might find the
8985 # original and so on. Autoconf is especially sensible to this).
8986 . ./$as_me.lineno
8987 # Exit status is that of the last command.
8988 exit
8989 }
8990
8991
8992 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8993 *c*,-n*) ECHO_N= ECHO_C='
8994 ' ECHO_T=' ' ;;
8995 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8996 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8997 esac
8998
8999 if expr a : '\(a\)' >/dev/null 2>&1; then
9000 as_expr=expr
9001 else
9002 as_expr=false
9003 fi
9004
9005 rm -f conf$$ conf$$.exe conf$$.file
9006 echo >conf$$.file
9007 if ln -s conf$$.file conf$$ 2>/dev/null; then
9008 # We could just check for DJGPP; but this test a) works b) is more generic
9009 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9010 if test -f conf$$.exe; then
9011 # Don't use ln at all; we don't have any links
9012 as_ln_s='cp -p'
9013 else
9014 as_ln_s='ln -s'
9015 fi
9016 elif ln conf$$.file conf$$ 2>/dev/null; then
9017 as_ln_s=ln
9018 else
9019 as_ln_s='cp -p'
9020 fi
9021 rm -f conf$$ conf$$.exe conf$$.file
9022
9023 if mkdir -p . 2>/dev/null; then
9024 as_mkdir_p=:
9025 else
9026 test -d ./-p && rmdir ./-p
9027 as_mkdir_p=false
9028 fi
9029
9030 as_executable_p="test -f"
9031
9032 # Sed expression to map a string onto a valid CPP name.
9033 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9034
9035 # Sed expression to map a string onto a valid variable name.
9036 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9037
9038
9039 # IFS
9040 # We need space, tab and new line, in precisely that order.
9041 as_nl='
9042 '
9043 IFS=" $as_nl"
9044
9045 # CDPATH.
9046 $as_unset CDPATH
9047
9048 exec 6>&1
9049
9050 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9051 # report actual input values of CONFIG_FILES etc. instead of their
9052 # values after options handling. Logging --version etc. is OK.
9053 exec 5>>config.log
9054 {
9055 echo
9056 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9057 ## Running $as_me. ##
9058 _ASBOX
9059 } >&5
9060 cat >&5 <<_CSEOF
9061
9062 This file was extended by $as_me, which was
9063 generated by GNU Autoconf 2.59. Invocation command line was
9064
9065 CONFIG_FILES = $CONFIG_FILES
9066 CONFIG_HEADERS = $CONFIG_HEADERS
9067 CONFIG_LINKS = $CONFIG_LINKS
9068 CONFIG_COMMANDS = $CONFIG_COMMANDS
9069 $ $0 $@
9070
9071 _CSEOF
9072 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9073 echo >&5
9074 _ACEOF
9075
9076 # Files that config.status was made for.
9077 if test -n "$ac_config_files"; then
9078 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9079 fi
9080
9081 if test -n "$ac_config_headers"; then
9082 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9083 fi
9084
9085 if test -n "$ac_config_links"; then
9086 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9087 fi
9088
9089 if test -n "$ac_config_commands"; then
9090 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9091 fi
9092
9093 cat >>$CONFIG_STATUS <<\_ACEOF
9094
9095 ac_cs_usage="\
9096 \`$as_me' instantiates files from templates according to the
9097 current configuration.
9098
9099 Usage: $0 [OPTIONS] [FILE]...
9100
9101 -h, --help print this help, then exit
9102 -V, --version print version number, then exit
9103 -q, --quiet do not print progress messages
9104 -d, --debug don't remove temporary files
9105 --recheck update $as_me by reconfiguring in the same conditions
9106 --file=FILE[:TEMPLATE]
9107 instantiate the configuration file FILE
9108 --header=FILE[:TEMPLATE]
9109 instantiate the configuration header FILE
9110
9111 Configuration files:
9112 $config_files
9113
9114 Configuration headers:
9115 $config_headers
9116
9117 Configuration commands:
9118 $config_commands
9119
9120 Report bugs to <bug-autoconf@gnu.org>."
9121 _ACEOF
9122
9123 cat >>$CONFIG_STATUS <<_ACEOF
9124 ac_cs_version="\\
9125 config.status
9126 configured by $0, generated by GNU Autoconf 2.59,
9127 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9128
9129 Copyright (C) 2003 Free Software Foundation, Inc.
9130 This config.status script is free software; the Free Software Foundation
9131 gives unlimited permission to copy, distribute and modify it."
9132 srcdir=$srcdir
9133 INSTALL="$INSTALL"
9134 _ACEOF
9135
9136 cat >>$CONFIG_STATUS <<\_ACEOF
9137 # If no file are specified by the user, then we need to provide default
9138 # value. By we need to know if files were specified by the user.
9139 ac_need_defaults=:
9140 while test $# != 0
9141 do
9142 case $1 in
9143 --*=*)
9144 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9145 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9146 ac_shift=:
9147 ;;
9148 -*)
9149 ac_option=$1
9150 ac_optarg=$2
9151 ac_shift=shift
9152 ;;
9153 *) # This is not an option, so the user has probably given explicit
9154 # arguments.
9155 ac_option=$1
9156 ac_need_defaults=false;;
9157 esac
9158
9159 case $ac_option in
9160 # Handling of the options.
9161 _ACEOF
9162 cat >>$CONFIG_STATUS <<\_ACEOF
9163 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9164 ac_cs_recheck=: ;;
9165 --version | --vers* | -V )
9166 echo "$ac_cs_version"; exit 0 ;;
9167 --he | --h)
9168 # Conflict between --help and --header
9169 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9170 Try \`$0 --help' for more information." >&5
9171 echo "$as_me: error: ambiguous option: $1
9172 Try \`$0 --help' for more information." >&2;}
9173 { (exit 1); exit 1; }; };;
9174 --help | --hel | -h )
9175 echo "$ac_cs_usage"; exit 0 ;;
9176 --debug | --d* | -d )
9177 debug=: ;;
9178 --file | --fil | --fi | --f )
9179 $ac_shift
9180 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9181 ac_need_defaults=false;;
9182 --header | --heade | --head | --hea )
9183 $ac_shift
9184 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9185 ac_need_defaults=false;;
9186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9187 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9188 ac_cs_silent=: ;;
9189
9190 # This is an error.
9191 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9192 Try \`$0 --help' for more information." >&5
9193 echo "$as_me: error: unrecognized option: $1
9194 Try \`$0 --help' for more information." >&2;}
9195 { (exit 1); exit 1; }; } ;;
9196
9197 *) ac_config_targets="$ac_config_targets $1" ;;
9198
9199 esac
9200 shift
9201 done
9202
9203 ac_configure_extra_args=
9204
9205 if $ac_cs_silent; then
9206 exec 6>/dev/null
9207 ac_configure_extra_args="$ac_configure_extra_args --silent"
9208 fi
9209
9210 _ACEOF
9211 cat >>$CONFIG_STATUS <<_ACEOF
9212 if \$ac_cs_recheck; then
9213 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9214 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9215 fi
9216
9217 _ACEOF
9218
9219
9220
9221
9222
9223 cat >>$CONFIG_STATUS <<\_ACEOF
9224 for ac_config_target in $ac_config_targets
9225 do
9226 case "$ac_config_target" in
9227 # Handling of arguments.
9228 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9229 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9230 "cconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS cconfig.h:config.in" ;;
9231 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9232 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9233 { (exit 1); exit 1; }; };;
9234 esac
9235 done
9236
9237 # If the user did not use the arguments to specify the items to instantiate,
9238 # then the envvar interface is used. Set only those that are not.
9239 # We use the long form for the default assignment because of an extremely
9240 # bizarre bug on SunOS 4.1.3.
9241 if $ac_need_defaults; then
9242 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9243 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9244 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9245 fi
9246
9247 # Have a temporary directory for convenience. Make it in the build tree
9248 # simply because there is no reason to put it here, and in addition,
9249 # creating and moving files from /tmp can sometimes cause problems.
9250 # Create a temporary directory, and hook for its removal unless debugging.
9251 $debug ||
9252 {
9253 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9254 trap '{ (exit 1); exit 1; }' 1 2 13 15
9255 }
9256
9257 # Create a (secure) tmp directory for tmp files.
9258
9259 {
9260 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9261 test -n "$tmp" && test -d "$tmp"
9262 } ||
9263 {
9264 tmp=./confstat$$-$RANDOM
9265 (umask 077 && mkdir $tmp)
9266 } ||
9267 {
9268 echo "$me: cannot create a temporary directory in ." >&2
9269 { (exit 1); exit 1; }
9270 }
9271
9272 _ACEOF
9273
9274 cat >>$CONFIG_STATUS <<_ACEOF
9275
9276 #
9277 # CONFIG_FILES section.
9278 #
9279
9280 # No need to generate the scripts if there are no CONFIG_FILES.
9281 # This happens for instance when ./config.status config.h
9282 if test -n "\$CONFIG_FILES"; then
9283 # Protect against being on the right side of a sed subst in config.status.
9284 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9285 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9286 s,@sim_environment@,$sim_environment,;t t
9287 s,@sim_alignment@,$sim_alignment,;t t
9288 s,@sim_assert@,$sim_assert,;t t
9289 s,@sim_bitsize@,$sim_bitsize,;t t
9290 s,@sim_endian@,$sim_endian,;t t
9291 s,@sim_hostendian@,$sim_hostendian,;t t
9292 s,@sim_float@,$sim_float,;t t
9293 s,@sim_scache@,$sim_scache,;t t
9294 s,@sim_default_model@,$sim_default_model,;t t
9295 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
9296 s,@sim_hw_objs@,$sim_hw_objs,;t t
9297 s,@sim_hw@,$sim_hw,;t t
9298 s,@sim_inline@,$sim_inline,;t t
9299 s,@sim_packages@,$sim_packages,;t t
9300 s,@sim_regparm@,$sim_regparm,;t t
9301 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
9302 s,@sim_smp@,$sim_smp,;t t
9303 s,@sim_stdcall@,$sim_stdcall,;t t
9304 s,@sim_xor_endian@,$sim_xor_endian,;t t
9305 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9306 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
9307 s,@SHELL@,$SHELL,;t t
9308 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9309 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9310 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9311 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9312 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9313 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9314 s,@exec_prefix@,$exec_prefix,;t t
9315 s,@prefix@,$prefix,;t t
9316 s,@program_transform_name@,$program_transform_name,;t t
9317 s,@bindir@,$bindir,;t t
9318 s,@sbindir@,$sbindir,;t t
9319 s,@libexecdir@,$libexecdir,;t t
9320 s,@datadir@,$datadir,;t t
9321 s,@sysconfdir@,$sysconfdir,;t t
9322 s,@sharedstatedir@,$sharedstatedir,;t t
9323 s,@localstatedir@,$localstatedir,;t t
9324 s,@libdir@,$libdir,;t t
9325 s,@includedir@,$includedir,;t t
9326 s,@oldincludedir@,$oldincludedir,;t t
9327 s,@infodir@,$infodir,;t t
9328 s,@mandir@,$mandir,;t t
9329 s,@build_alias@,$build_alias,;t t
9330 s,@host_alias@,$host_alias,;t t
9331 s,@target_alias@,$target_alias,;t t
9332 s,@DEFS@,$DEFS,;t t
9333 s,@ECHO_C@,$ECHO_C,;t t
9334 s,@ECHO_N@,$ECHO_N,;t t
9335 s,@ECHO_T@,$ECHO_T,;t t
9336 s,@LIBS@,$LIBS,;t t
9337 s,@build@,$build,;t t
9338 s,@build_cpu@,$build_cpu,;t t
9339 s,@build_vendor@,$build_vendor,;t t
9340 s,@build_os@,$build_os,;t t
9341 s,@host@,$host,;t t
9342 s,@host_cpu@,$host_cpu,;t t
9343 s,@host_vendor@,$host_vendor,;t t
9344 s,@host_os@,$host_os,;t t
9345 s,@target@,$target,;t t
9346 s,@target_cpu@,$target_cpu,;t t
9347 s,@target_vendor@,$target_vendor,;t t
9348 s,@target_os@,$target_os,;t t
9349 s,@CC@,$CC,;t t
9350 s,@CFLAGS@,$CFLAGS,;t t
9351 s,@LDFLAGS@,$LDFLAGS,;t t
9352 s,@CPPFLAGS@,$CPPFLAGS,;t t
9353 s,@ac_ct_CC@,$ac_ct_CC,;t t
9354 s,@EXEEXT@,$EXEEXT,;t t
9355 s,@OBJEXT@,$OBJEXT,;t t
9356 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9357 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9358 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9359 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
9360 s,@HDEFINES@,$HDEFINES,;t t
9361 s,@AR@,$AR,;t t
9362 s,@RANLIB@,$RANLIB,;t t
9363 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9364 s,@SET_MAKE@,$SET_MAKE,;t t
9365 s,@CPP@,$CPP,;t t
9366 s,@EGREP@,$EGREP,;t t
9367 s,@ALLOCA@,$ALLOCA,;t t
9368 s,@USE_NLS@,$USE_NLS,;t t
9369 s,@MSGFMT@,$MSGFMT,;t t
9370 s,@GMSGFMT@,$GMSGFMT,;t t
9371 s,@XGETTEXT@,$XGETTEXT,;t t
9372 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9373 s,@CATALOGS@,$CATALOGS,;t t
9374 s,@CATOBJEXT@,$CATOBJEXT,;t t
9375 s,@DATADIRNAME@,$DATADIRNAME,;t t
9376 s,@GMOFILES@,$GMOFILES,;t t
9377 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9378 s,@INTLDEPS@,$INTLDEPS,;t t
9379 s,@INTLLIBS@,$INTLLIBS,;t t
9380 s,@INTLOBJS@,$INTLOBJS,;t t
9381 s,@POFILES@,$POFILES,;t t
9382 s,@POSUB@,$POSUB,;t t
9383 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
9384 s,@GT_NO@,$GT_NO,;t t
9385 s,@GT_YES@,$GT_YES,;t t
9386 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9387 s,@l@,$l,;t t
9388 s,@MAINT@,$MAINT,;t t
9389 s,@sim_bswap@,$sim_bswap,;t t
9390 s,@sim_cflags@,$sim_cflags,;t t
9391 s,@sim_debug@,$sim_debug,;t t
9392 s,@sim_stdio@,$sim_stdio,;t t
9393 s,@sim_trace@,$sim_trace,;t t
9394 s,@sim_profile@,$sim_profile,;t t
9395 s,@CPP_FOR_TARGET@,$CPP_FOR_TARGET,;t t
9396 s,@TARGET_SUBDIR@,$TARGET_SUBDIR,;t t
9397 s,@LIBOBJS@,$LIBOBJS,;t t
9398 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9399 CEOF
9400
9401 _ACEOF
9402
9403 cat >>$CONFIG_STATUS <<\_ACEOF
9404 # Split the substitutions into bite-sized pieces for seds with
9405 # small command number limits, like on Digital OSF/1 and HP-UX.
9406 ac_max_sed_lines=48
9407 ac_sed_frag=1 # Number of current file.
9408 ac_beg=1 # First line for current file.
9409 ac_end=$ac_max_sed_lines # Line after last line for current file.
9410 ac_more_lines=:
9411 ac_sed_cmds=
9412 while $ac_more_lines; do
9413 if test $ac_beg -gt 1; then
9414 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9415 else
9416 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9417 fi
9418 if test ! -s $tmp/subs.frag; then
9419 ac_more_lines=false
9420 else
9421 # The purpose of the label and of the branching condition is to
9422 # speed up the sed processing (if there are no `@' at all, there
9423 # is no need to browse any of the substitutions).
9424 # These are the two extra sed commands mentioned above.
9425 (echo ':t
9426 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9427 if test -z "$ac_sed_cmds"; then
9428 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9429 else
9430 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9431 fi
9432 ac_sed_frag=`expr $ac_sed_frag + 1`
9433 ac_beg=$ac_end
9434 ac_end=`expr $ac_end + $ac_max_sed_lines`
9435 fi
9436 done
9437 if test -z "$ac_sed_cmds"; then
9438 ac_sed_cmds=cat
9439 fi
9440 fi # test -n "$CONFIG_FILES"
9441
9442 _ACEOF
9443 cat >>$CONFIG_STATUS <<\_ACEOF
9444 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9445 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9446 case $ac_file in
9447 - | *:- | *:-:* ) # input from stdin
9448 cat >$tmp/stdin
9449 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9450 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9451 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9452 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9453 * ) ac_file_in=$ac_file.in ;;
9454 esac
9455
9456 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9457 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9458 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9459 X"$ac_file" : 'X\(//\)[^/]' \| \
9460 X"$ac_file" : 'X\(//\)$' \| \
9461 X"$ac_file" : 'X\(/\)' \| \
9462 . : '\(.\)' 2>/dev/null ||
9463 echo X"$ac_file" |
9464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9465 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9466 /^X\(\/\/\)$/{ s//\1/; q; }
9467 /^X\(\/\).*/{ s//\1/; q; }
9468 s/.*/./; q'`
9469 { if $as_mkdir_p; then
9470 mkdir -p "$ac_dir"
9471 else
9472 as_dir="$ac_dir"
9473 as_dirs=
9474 while test ! -d "$as_dir"; do
9475 as_dirs="$as_dir $as_dirs"
9476 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9477 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9478 X"$as_dir" : 'X\(//\)[^/]' \| \
9479 X"$as_dir" : 'X\(//\)$' \| \
9480 X"$as_dir" : 'X\(/\)' \| \
9481 . : '\(.\)' 2>/dev/null ||
9482 echo X"$as_dir" |
9483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9484 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9485 /^X\(\/\/\)$/{ s//\1/; q; }
9486 /^X\(\/\).*/{ s//\1/; q; }
9487 s/.*/./; q'`
9488 done
9489 test ! -n "$as_dirs" || mkdir $as_dirs
9490 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9491 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9492 { (exit 1); exit 1; }; }; }
9493
9494 ac_builddir=.
9495
9496 if test "$ac_dir" != .; then
9497 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9498 # A "../" for each directory in $ac_dir_suffix.
9499 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9500 else
9501 ac_dir_suffix= ac_top_builddir=
9502 fi
9503
9504 case $srcdir in
9505 .) # No --srcdir option. We are building in place.
9506 ac_srcdir=.
9507 if test -z "$ac_top_builddir"; then
9508 ac_top_srcdir=.
9509 else
9510 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9511 fi ;;
9512 [\\/]* | ?:[\\/]* ) # Absolute path.
9513 ac_srcdir=$srcdir$ac_dir_suffix;
9514 ac_top_srcdir=$srcdir ;;
9515 *) # Relative path.
9516 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9517 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9518 esac
9519
9520 # Do not use `cd foo && pwd` to compute absolute paths, because
9521 # the directories may not exist.
9522 case `pwd` in
9523 .) ac_abs_builddir="$ac_dir";;
9524 *)
9525 case "$ac_dir" in
9526 .) ac_abs_builddir=`pwd`;;
9527 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9528 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9529 esac;;
9530 esac
9531 case $ac_abs_builddir in
9532 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9533 *)
9534 case ${ac_top_builddir}. in
9535 .) ac_abs_top_builddir=$ac_abs_builddir;;
9536 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9537 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9538 esac;;
9539 esac
9540 case $ac_abs_builddir in
9541 .) ac_abs_srcdir=$ac_srcdir;;
9542 *)
9543 case $ac_srcdir in
9544 .) ac_abs_srcdir=$ac_abs_builddir;;
9545 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9546 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9547 esac;;
9548 esac
9549 case $ac_abs_builddir in
9550 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9551 *)
9552 case $ac_top_srcdir in
9553 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9554 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9555 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9556 esac;;
9557 esac
9558
9559
9560 case $INSTALL in
9561 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9562 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9563 esac
9564
9565 # Let's still pretend it is `configure' which instantiates (i.e., don't
9566 # use $as_me), people would be surprised to read:
9567 # /* config.h. Generated by config.status. */
9568 if test x"$ac_file" = x-; then
9569 configure_input=
9570 else
9571 configure_input="$ac_file. "
9572 fi
9573 configure_input=$configure_input"Generated from `echo $ac_file_in |
9574 sed 's,.*/,,'` by configure."
9575
9576 # First look for the input files in the build tree, otherwise in the
9577 # src tree.
9578 ac_file_inputs=`IFS=:
9579 for f in $ac_file_in; do
9580 case $f in
9581 -) echo $tmp/stdin ;;
9582 [\\/$]*)
9583 # Absolute (can't be DOS-style, as IFS=:)
9584 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9585 echo "$as_me: error: cannot find input file: $f" >&2;}
9586 { (exit 1); exit 1; }; }
9587 echo "$f";;
9588 *) # Relative
9589 if test -f "$f"; then
9590 # Build tree
9591 echo "$f"
9592 elif test -f "$srcdir/$f"; then
9593 # Source tree
9594 echo "$srcdir/$f"
9595 else
9596 # /dev/null tree
9597 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9598 echo "$as_me: error: cannot find input file: $f" >&2;}
9599 { (exit 1); exit 1; }; }
9600 fi;;
9601 esac
9602 done` || { (exit 1); exit 1; }
9603
9604 if test x"$ac_file" != x-; then
9605 { echo "$as_me:$LINENO: creating $ac_file" >&5
9606 echo "$as_me: creating $ac_file" >&6;}
9607 rm -f "$ac_file"
9608 fi
9609 _ACEOF
9610 cat >>$CONFIG_STATUS <<_ACEOF
9611 sed "$ac_vpsub
9612 $extrasub
9613 _ACEOF
9614 cat >>$CONFIG_STATUS <<\_ACEOF
9615 :t
9616 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9617 s,@configure_input@,$configure_input,;t t
9618 s,@srcdir@,$ac_srcdir,;t t
9619 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9620 s,@top_srcdir@,$ac_top_srcdir,;t t
9621 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9622 s,@builddir@,$ac_builddir,;t t
9623 s,@abs_builddir@,$ac_abs_builddir,;t t
9624 s,@top_builddir@,$ac_top_builddir,;t t
9625 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9626 s,@INSTALL@,$ac_INSTALL,;t t
9627 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9628 rm -f $tmp/stdin
9629 if test x"$ac_file" != x-; then
9630 mv $tmp/out $ac_file
9631 else
9632 cat $tmp/out
9633 rm -f $tmp/out
9634 fi
9635
9636 done
9637 _ACEOF
9638 cat >>$CONFIG_STATUS <<\_ACEOF
9639
9640 #
9641 # CONFIG_HEADER section.
9642 #
9643
9644 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9645 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9646 #
9647 # ac_d sets the value in "#define NAME VALUE" lines.
9648 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9649 ac_dB='[ ].*$,\1#\2'
9650 ac_dC=' '
9651 ac_dD=',;t'
9652 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9653 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9654 ac_uB='$,\1#\2define\3'
9655 ac_uC=' '
9656 ac_uD=',;t'
9657
9658 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9659 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9660 case $ac_file in
9661 - | *:- | *:-:* ) # input from stdin
9662 cat >$tmp/stdin
9663 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9664 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9665 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9666 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9667 * ) ac_file_in=$ac_file.in ;;
9668 esac
9669
9670 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9671 echo "$as_me: creating $ac_file" >&6;}
9672
9673 # First look for the input files in the build tree, otherwise in the
9674 # src tree.
9675 ac_file_inputs=`IFS=:
9676 for f in $ac_file_in; do
9677 case $f in
9678 -) echo $tmp/stdin ;;
9679 [\\/$]*)
9680 # Absolute (can't be DOS-style, as IFS=:)
9681 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9682 echo "$as_me: error: cannot find input file: $f" >&2;}
9683 { (exit 1); exit 1; }; }
9684 # Do quote $f, to prevent DOS paths from being IFS'd.
9685 echo "$f";;
9686 *) # Relative
9687 if test -f "$f"; then
9688 # Build tree
9689 echo "$f"
9690 elif test -f "$srcdir/$f"; then
9691 # Source tree
9692 echo "$srcdir/$f"
9693 else
9694 # /dev/null tree
9695 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9696 echo "$as_me: error: cannot find input file: $f" >&2;}
9697 { (exit 1); exit 1; }; }
9698 fi;;
9699 esac
9700 done` || { (exit 1); exit 1; }
9701 # Remove the trailing spaces.
9702 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9703
9704 _ACEOF
9705
9706 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9707 # `conftest.undefs', that substitutes the proper values into
9708 # config.h.in to produce config.h. The first handles `#define'
9709 # templates, and the second `#undef' templates.
9710 # And first: Protect against being on the right side of a sed subst in
9711 # config.status. Protect against being in an unquoted here document
9712 # in config.status.
9713 rm -f conftest.defines conftest.undefs
9714 # Using a here document instead of a string reduces the quoting nightmare.
9715 # Putting comments in sed scripts is not portable.
9716 #
9717 # `end' is used to avoid that the second main sed command (meant for
9718 # 0-ary CPP macros) applies to n-ary macro definitions.
9719 # See the Autoconf documentation for `clear'.
9720 cat >confdef2sed.sed <<\_ACEOF
9721 s/[\\&,]/\\&/g
9722 s,[\\$`],\\&,g
9723 t clear
9724 : clear
9725 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9726 t end
9727 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9728 : end
9729 _ACEOF
9730 # If some macros were called several times there might be several times
9731 # the same #defines, which is useless. Nevertheless, we may not want to
9732 # sort them, since we want the *last* AC-DEFINE to be honored.
9733 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9734 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9735 rm -f confdef2sed.sed
9736
9737 # This sed command replaces #undef with comments. This is necessary, for
9738 # example, in the case of _POSIX_SOURCE, which is predefined and required
9739 # on some systems where configure will not decide to define it.
9740 cat >>conftest.undefs <<\_ACEOF
9741 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9742 _ACEOF
9743
9744 # Break up conftest.defines because some shells have a limit on the size
9745 # of here documents, and old seds have small limits too (100 cmds).
9746 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9747 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9748 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9749 echo ' :' >>$CONFIG_STATUS
9750 rm -f conftest.tail
9751 while grep . conftest.defines >/dev/null
9752 do
9753 # Write a limited-size here document to $tmp/defines.sed.
9754 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9755 # Speed up: don't consider the non `#define' lines.
9756 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9757 # Work around the forget-to-reset-the-flag bug.
9758 echo 't clr' >>$CONFIG_STATUS
9759 echo ': clr' >>$CONFIG_STATUS
9760 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9761 echo 'CEOF
9762 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9763 rm -f $tmp/in
9764 mv $tmp/out $tmp/in
9765 ' >>$CONFIG_STATUS
9766 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9767 rm -f conftest.defines
9768 mv conftest.tail conftest.defines
9769 done
9770 rm -f conftest.defines
9771 echo ' fi # grep' >>$CONFIG_STATUS
9772 echo >>$CONFIG_STATUS
9773
9774 # Break up conftest.undefs because some shells have a limit on the size
9775 # of here documents, and old seds have small limits too (100 cmds).
9776 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9777 rm -f conftest.tail
9778 while grep . conftest.undefs >/dev/null
9779 do
9780 # Write a limited-size here document to $tmp/undefs.sed.
9781 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9782 # Speed up: don't consider the non `#undef'
9783 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9784 # Work around the forget-to-reset-the-flag bug.
9785 echo 't clr' >>$CONFIG_STATUS
9786 echo ': clr' >>$CONFIG_STATUS
9787 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9788 echo 'CEOF
9789 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9790 rm -f $tmp/in
9791 mv $tmp/out $tmp/in
9792 ' >>$CONFIG_STATUS
9793 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9794 rm -f conftest.undefs
9795 mv conftest.tail conftest.undefs
9796 done
9797 rm -f conftest.undefs
9798
9799 cat >>$CONFIG_STATUS <<\_ACEOF
9800 # Let's still pretend it is `configure' which instantiates (i.e., don't
9801 # use $as_me), people would be surprised to read:
9802 # /* config.h. Generated by config.status. */
9803 if test x"$ac_file" = x-; then
9804 echo "/* Generated by configure. */" >$tmp/config.h
9805 else
9806 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9807 fi
9808 cat $tmp/in >>$tmp/config.h
9809 rm -f $tmp/in
9810 if test x"$ac_file" != x-; then
9811 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9812 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9813 echo "$as_me: $ac_file is unchanged" >&6;}
9814 else
9815 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9816 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9817 X"$ac_file" : 'X\(//\)[^/]' \| \
9818 X"$ac_file" : 'X\(//\)$' \| \
9819 X"$ac_file" : 'X\(/\)' \| \
9820 . : '\(.\)' 2>/dev/null ||
9821 echo X"$ac_file" |
9822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9823 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9824 /^X\(\/\/\)$/{ s//\1/; q; }
9825 /^X\(\/\).*/{ s//\1/; q; }
9826 s/.*/./; q'`
9827 { if $as_mkdir_p; then
9828 mkdir -p "$ac_dir"
9829 else
9830 as_dir="$ac_dir"
9831 as_dirs=
9832 while test ! -d "$as_dir"; do
9833 as_dirs="$as_dir $as_dirs"
9834 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9835 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9836 X"$as_dir" : 'X\(//\)[^/]' \| \
9837 X"$as_dir" : 'X\(//\)$' \| \
9838 X"$as_dir" : 'X\(/\)' \| \
9839 . : '\(.\)' 2>/dev/null ||
9840 echo X"$as_dir" |
9841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9842 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9843 /^X\(\/\/\)$/{ s//\1/; q; }
9844 /^X\(\/\).*/{ s//\1/; q; }
9845 s/.*/./; q'`
9846 done
9847 test ! -n "$as_dirs" || mkdir $as_dirs
9848 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9849 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9850 { (exit 1); exit 1; }; }; }
9851
9852 rm -f $ac_file
9853 mv $tmp/config.h $ac_file
9854 fi
9855 else
9856 cat $tmp/config.h
9857 rm -f $tmp/config.h
9858 fi
9859 done
9860 _ACEOF
9861 cat >>$CONFIG_STATUS <<\_ACEOF
9862
9863 #
9864 # CONFIG_COMMANDS section.
9865 #
9866 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9867 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9868 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9869 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9870 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9871 X"$ac_dest" : 'X\(//\)[^/]' \| \
9872 X"$ac_dest" : 'X\(//\)$' \| \
9873 X"$ac_dest" : 'X\(/\)' \| \
9874 . : '\(.\)' 2>/dev/null ||
9875 echo X"$ac_dest" |
9876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9878 /^X\(\/\/\)$/{ s//\1/; q; }
9879 /^X\(\/\).*/{ s//\1/; q; }
9880 s/.*/./; q'`
9881 { if $as_mkdir_p; then
9882 mkdir -p "$ac_dir"
9883 else
9884 as_dir="$ac_dir"
9885 as_dirs=
9886 while test ! -d "$as_dir"; do
9887 as_dirs="$as_dir $as_dirs"
9888 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9889 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9890 X"$as_dir" : 'X\(//\)[^/]' \| \
9891 X"$as_dir" : 'X\(//\)$' \| \
9892 X"$as_dir" : 'X\(/\)' \| \
9893 . : '\(.\)' 2>/dev/null ||
9894 echo X"$as_dir" |
9895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9896 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9897 /^X\(\/\/\)$/{ s//\1/; q; }
9898 /^X\(\/\).*/{ s//\1/; q; }
9899 s/.*/./; q'`
9900 done
9901 test ! -n "$as_dirs" || mkdir $as_dirs
9902 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9903 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9904 { (exit 1); exit 1; }; }; }
9905
9906 ac_builddir=.
9907
9908 if test "$ac_dir" != .; then
9909 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9910 # A "../" for each directory in $ac_dir_suffix.
9911 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9912 else
9913 ac_dir_suffix= ac_top_builddir=
9914 fi
9915
9916 case $srcdir in
9917 .) # No --srcdir option. We are building in place.
9918 ac_srcdir=.
9919 if test -z "$ac_top_builddir"; then
9920 ac_top_srcdir=.
9921 else
9922 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9923 fi ;;
9924 [\\/]* | ?:[\\/]* ) # Absolute path.
9925 ac_srcdir=$srcdir$ac_dir_suffix;
9926 ac_top_srcdir=$srcdir ;;
9927 *) # Relative path.
9928 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9929 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9930 esac
9931
9932 # Do not use `cd foo && pwd` to compute absolute paths, because
9933 # the directories may not exist.
9934 case `pwd` in
9935 .) ac_abs_builddir="$ac_dir";;
9936 *)
9937 case "$ac_dir" in
9938 .) ac_abs_builddir=`pwd`;;
9939 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9940 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9941 esac;;
9942 esac
9943 case $ac_abs_builddir in
9944 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9945 *)
9946 case ${ac_top_builddir}. in
9947 .) ac_abs_top_builddir=$ac_abs_builddir;;
9948 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9949 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9950 esac;;
9951 esac
9952 case $ac_abs_builddir in
9953 .) ac_abs_srcdir=$ac_srcdir;;
9954 *)
9955 case $ac_srcdir in
9956 .) ac_abs_srcdir=$ac_abs_builddir;;
9957 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9958 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9959 esac;;
9960 esac
9961 case $ac_abs_builddir in
9962 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9963 *)
9964 case $ac_top_srcdir in
9965 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9966 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9967 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9968 esac;;
9969 esac
9970
9971
9972 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9973 echo "$as_me: executing $ac_dest commands" >&6;}
9974 case $ac_dest in
9975 default ) case x$CONFIG_HEADERS in xcconfig.h:config.in) echo > stamp-h ;; esac ;;
9976 esac
9977 done
9978 _ACEOF
9979
9980 cat >>$CONFIG_STATUS <<\_ACEOF
9981
9982 { (exit 0); exit 0; }
9983 _ACEOF
9984 chmod +x $CONFIG_STATUS
9985 ac_clean_files=$ac_clean_files_save
9986
9987
9988 # configure is writing to config.log, and then calls config.status.
9989 # config.status does its own redirection, appending to config.log.
9990 # Unfortunately, on DOS this fails, as config.log is still kept open
9991 # by configure, so config.status won't be able to write to it; its
9992 # output is simply discarded. So we exec the FD to /dev/null,
9993 # effectively closing config.log, so it can be properly (re)opened and
9994 # appended to by config.status. When coming back to configure, we
9995 # need to make the FD available again.
9996 if test "$no_create" != yes; then
9997 ac_cs_success=:
9998 ac_config_status_args=
9999 test "$silent" = yes &&
10000 ac_config_status_args="$ac_config_status_args --quiet"
10001 exec 5>/dev/null
10002 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10003 exec 5>>config.log
10004 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10005 # would make configure fail if this is the last instruction.
10006 $ac_cs_success || { (exit 1); exit 1; }
10007 fi
10008
This page took 0.276732 seconds and 4 git commands to generate.