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