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