Whamcloud - gitweb
265174595dfe883b7c6ef5ffae7b7aa3c30858b8
[tools/e2fsprogs.git] / 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="version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS E2FSPROGS_YEAR E2FSPROGS_MONTH E2FSPROGS_DAY E2FSPROGS_VERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LD CPP EGREP LINUX_INCLUDE MAINTAINER_CMT HTREE_CMT ELF_CMT BSDLIB_CMT PROFILE_CMT CHECKER_CMT LIB_EXT STATIC_LIB_EXT PROFILED_LIB_EXT SWAPFS_CMT DEBUGFS_CMT IMAGER_CMT RESIZER_CMT E2FSCK_TYPE FSCK_PROG FSCK_MAN E2INITRD_PROG E2INITRD_MAN DEVMAPPER_REQ DEVMAPPER_PC_LIBS DEVMAPPER_LIBS STATIC_DEVMAPPER_LIBS GETTEXT_PACKAGE PACKAGE VERSION SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE RANLIB ac_ct_RANLIB ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB BINARY_TYPE LN LN_S MV CP RM CHMOD AWK SED PERL LDCONFIG AR ac_ct_AR STRIP ac_ct_STRIP BUILD_CC SIZEOF_SHORT SIZEOF_INT SIZEOF_LONG SIZEOF_LONG_LONG SOCKET_LIB DLOPEN_LIB LINUX_CMT CYGWIN_CMT UNIX_CMT root_prefix root_bindir root_sbindir root_libdir root_sysconfdir LDFLAG_STATIC SS_DIR ET_DIR DO_TEST_SUITE INTL_FLAGS BUILD_CFLAGS BUILD_LDFLAGS LIBOBJS LTLIBOBJS'
313 ac_subst_files='MCONFIG MAKEFILE_ELF MAKEFILE_BSDLIB MAKEFILE_PROFILE MAKEFILE_CHECKER MAKEFILE_LIBRARY'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778   # Omit some internal or obsolete options to make the list less imposing.
779   # This message is too long to be a string in the A/UX 3.1 sh.
780   cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791   -h, --help              display this help and exit
792       --help=short        display options specific to this package
793       --help=recursive    display the short help of all the included packages
794   -V, --version           display version information and exit
795   -q, --quiet, --silent   do not print \`checking...' messages
796       --cache-file=FILE   cache test results in FILE [disabled]
797   -C, --config-cache      alias for \`--cache-file=config.cache'
798   -n, --no-create         do not create output files
799       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803   cat <<_ACEOF
804 Installation directories:
805   --prefix=PREFIX         install architecture-independent files in PREFIX
806                           [$ac_default_prefix]
807   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                           [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818   --bindir=DIR           user executables [EPREFIX/bin]
819   --sbindir=DIR          system admin executables [EPREFIX/sbin]
820   --libexecdir=DIR       program executables [EPREFIX/libexec]
821   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825   --libdir=DIR           object code libraries [EPREFIX/lib]
826   --includedir=DIR       C header files [PREFIX/include]
827   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828   --infodir=DIR          info documentation [PREFIX/info]
829   --mandir=DIR           man documentation [PREFIX/man]
830 _ACEOF
831
832   cat <<\_ACEOF
833
834 System types:
835   --build=BUILD     configure for building on BUILD [guessed]
836   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
837 _ACEOF
838 fi
839
840 if test -n "$ac_init_help"; then
841
842   cat <<\_ACEOF
843
844 Optional Features:
845   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
846   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
847   --enable-maintainer-mode enable makefile rules useful for maintainers
848   --enable-compression    enable EXPERIMENTAL compression support
849   --enable-htree          enable EXPERIMENTAL htree directory support
850   --enable-elf-shlibs     select ELF shared libraries
851   --enable-bsd-shlibs     select BSD shared libraries
852   --enable-profile        build profiling libraries
853   --enable-checker        build checker libraries
854   --enable-jbd-debug      enable journal debugging
855   --enable-blkid-debug    enable blkid debugging
856   --enable-testio-debug   enable the use of the test I/O manager for debugging
857   --disable-swapfs        disable support of legacy byte-swapped filesystems
858   --disable-debugfs       disable support of debugfs program
859   --disable-imager        disable support of e2image program
860   --disable-resizer       disable support of e2resize program
861   --enable-dynamic-e2fsck build e2fsck dynamically
862   --enable-fsck           build fsck wrapper program
863   --enable-e2initrd-helper build e2initrd-helper program
864   --enable-blkid-devmapper  build with device-mapper support
865   --disable-nls           do not use Native Language Support
866   --disable-rpath         do not hardcode runtime library paths
867
868 Optional Packages:
869   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
870   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
871   --with-diet-libc      Use diet libc
872   --with-cc=COMPILER      select compiler to use
873   --with-linker=LINKER    select linker to use
874   --with-ccopts=CCOPTS    select compiler command line options
875   --with-ldopts=LDOPTS    select linker command line options
876   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
877   --with-gnu-ld           assume the C compiler uses GNU ld default=no
878   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
879   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
880   --with-included-gettext use the GNU gettext library included here
881   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
882   --without-libintl-prefix     don't search for libintl in includedir and libdir
883
884 Some influential environment variables:
885   CC          C compiler command
886   CFLAGS      C compiler flags
887   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
888               nonstandard directory <lib dir>
889   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
890               headers in a nonstandard directory <include dir>
891   CPP         C preprocessor
892
893 Use these variables to override the choices made by `configure' or to help
894 it to find libraries and programs with nonstandard names/locations.
895
896 _ACEOF
897 fi
898
899 if test "$ac_init_help" = "recursive"; then
900   # If there are subdirs, report their specific --help.
901   ac_popdir=`pwd`
902   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903     test -d $ac_dir || continue
904     ac_builddir=.
905
906 if test "$ac_dir" != .; then
907   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908   # A "../" for each directory in $ac_dir_suffix.
909   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910 else
911   ac_dir_suffix= ac_top_builddir=
912 fi
913
914 case $srcdir in
915   .)  # No --srcdir option.  We are building in place.
916     ac_srcdir=.
917     if test -z "$ac_top_builddir"; then
918        ac_top_srcdir=.
919     else
920        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921     fi ;;
922   [\\/]* | ?:[\\/]* )  # Absolute path.
923     ac_srcdir=$srcdir$ac_dir_suffix;
924     ac_top_srcdir=$srcdir ;;
925   *) # Relative path.
926     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927     ac_top_srcdir=$ac_top_builddir$srcdir ;;
928 esac
929
930 # Do not use `cd foo && pwd` to compute absolute paths, because
931 # the directories may not exist.
932 case `pwd` in
933 .) ac_abs_builddir="$ac_dir";;
934 *)
935   case "$ac_dir" in
936   .) ac_abs_builddir=`pwd`;;
937   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
938   *) ac_abs_builddir=`pwd`/"$ac_dir";;
939   esac;;
940 esac
941 case $ac_abs_builddir in
942 .) ac_abs_top_builddir=${ac_top_builddir}.;;
943 *)
944   case ${ac_top_builddir}. in
945   .) ac_abs_top_builddir=$ac_abs_builddir;;
946   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
947   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
948   esac;;
949 esac
950 case $ac_abs_builddir in
951 .) ac_abs_srcdir=$ac_srcdir;;
952 *)
953   case $ac_srcdir in
954   .) ac_abs_srcdir=$ac_abs_builddir;;
955   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
956   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
957   esac;;
958 esac
959 case $ac_abs_builddir in
960 .) ac_abs_top_srcdir=$ac_top_srcdir;;
961 *)
962   case $ac_top_srcdir in
963   .) ac_abs_top_srcdir=$ac_abs_builddir;;
964   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
965   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
966   esac;;
967 esac
968
969     cd $ac_dir
970     # Check for guested configure; otherwise get Cygnus style configure.
971     if test -f $ac_srcdir/configure.gnu; then
972       echo
973       $SHELL $ac_srcdir/configure.gnu  --help=recursive
974     elif test -f $ac_srcdir/configure; then
975       echo
976       $SHELL $ac_srcdir/configure  --help=recursive
977     elif test -f $ac_srcdir/configure.ac ||
978            test -f $ac_srcdir/configure.in; then
979       echo
980       $ac_configure --help
981     else
982       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
983     fi
984     cd "$ac_popdir"
985   done
986 fi
987
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
990   cat <<\_ACEOF
991
992 Copyright (C) 2003 Free Software Foundation, Inc.
993 This configure script is free software; the Free Software Foundation
994 gives unlimited permission to copy, distribute and modify it.
995 _ACEOF
996   exit 0
997 fi
998 exec 5>config.log
999 cat >&5 <<_ACEOF
1000 This file contains any messages produced by compilers while
1001 running configure, to aid debugging if configure makes a mistake.
1002
1003 It was created by $as_me, which was
1004 generated by GNU Autoconf 2.59.  Invocation command line was
1005
1006   $ $0 $@
1007
1008 _ACEOF
1009 {
1010 cat <<_ASUNAME
1011 ## --------- ##
1012 ## Platform. ##
1013 ## --------- ##
1014
1015 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1016 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1017 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1018 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1019 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1020
1021 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1022 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1023
1024 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1025 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1026 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1027 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1028 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1029 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1030 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1031
1032 _ASUNAME
1033
1034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1035 for as_dir in $PATH
1036 do
1037   IFS=$as_save_IFS
1038   test -z "$as_dir" && as_dir=.
1039   echo "PATH: $as_dir"
1040 done
1041
1042 } >&5
1043
1044 cat >&5 <<_ACEOF
1045
1046
1047 ## ----------- ##
1048 ## Core tests. ##
1049 ## ----------- ##
1050
1051 _ACEOF
1052
1053
1054 # Keep a trace of the command line.
1055 # Strip out --no-create and --no-recursion so they do not pile up.
1056 # Strip out --silent because we don't want to record it for future runs.
1057 # Also quote any args containing shell meta-characters.
1058 # Make two passes to allow for proper duplicate-argument suppression.
1059 ac_configure_args=
1060 ac_configure_args0=
1061 ac_configure_args1=
1062 ac_sep=
1063 ac_must_keep_next=false
1064 for ac_pass in 1 2
1065 do
1066   for ac_arg
1067   do
1068     case $ac_arg in
1069     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1070     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071     | -silent | --silent | --silen | --sile | --sil)
1072       continue ;;
1073     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1075     esac
1076     case $ac_pass in
1077     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1078     2)
1079       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1080       if test $ac_must_keep_next = true; then
1081         ac_must_keep_next=false # Got value, back to normal.
1082       else
1083         case $ac_arg in
1084           *=* | --config-cache | -C | -disable-* | --disable-* \
1085           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1086           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1087           | -with-* | --with-* | -without-* | --without-* | --x)
1088             case "$ac_configure_args0 " in
1089               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1090             esac
1091             ;;
1092           -* ) ac_must_keep_next=true ;;
1093         esac
1094       fi
1095       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096       # Get rid of the leading space.
1097       ac_sep=" "
1098       ;;
1099     esac
1100   done
1101 done
1102 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1103 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1104
1105 # When interrupted or exit'd, cleanup temporary files, and complete
1106 # config.log.  We remove comments because anyway the quotes in there
1107 # would cause problems or look ugly.
1108 # WARNING: Be sure not to use single quotes in there, as some shells,
1109 # such as our DU 5.0 friend, will then `close' the trap.
1110 trap 'exit_status=$?
1111   # Save into config.log some information that might help in debugging.
1112   {
1113     echo
1114
1115     cat <<\_ASBOX
1116 ## ---------------- ##
1117 ## Cache variables. ##
1118 ## ---------------- ##
1119 _ASBOX
1120     echo
1121     # The following way of writing the cache mishandles newlines in values,
1122 {
1123   (set) 2>&1 |
1124     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1125     *ac_space=\ *)
1126       sed -n \
1127         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1129       ;;
1130     *)
1131       sed -n \
1132         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1133       ;;
1134     esac;
1135 }
1136     echo
1137
1138     cat <<\_ASBOX
1139 ## ----------------- ##
1140 ## Output variables. ##
1141 ## ----------------- ##
1142 _ASBOX
1143     echo
1144     for ac_var in $ac_subst_vars
1145     do
1146       eval ac_val=$`echo $ac_var`
1147       echo "$ac_var='"'"'$ac_val'"'"'"
1148     done | sort
1149     echo
1150
1151     if test -n "$ac_subst_files"; then
1152       cat <<\_ASBOX
1153 ## ------------- ##
1154 ## Output files. ##
1155 ## ------------- ##
1156 _ASBOX
1157       echo
1158       for ac_var in $ac_subst_files
1159       do
1160         eval ac_val=$`echo $ac_var`
1161         echo "$ac_var='"'"'$ac_val'"'"'"
1162       done | sort
1163       echo
1164     fi
1165
1166     if test -s confdefs.h; then
1167       cat <<\_ASBOX
1168 ## ----------- ##
1169 ## confdefs.h. ##
1170 ## ----------- ##
1171 _ASBOX
1172       echo
1173       sed "/^$/d" confdefs.h | sort
1174       echo
1175     fi
1176     test "$ac_signal" != 0 &&
1177       echo "$as_me: caught signal $ac_signal"
1178     echo "$as_me: exit $exit_status"
1179   } >&5
1180   rm -f core *.core &&
1181   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1182     exit $exit_status
1183      ' 0
1184 for ac_signal in 1 2 13 15; do
1185   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1186 done
1187 ac_signal=0
1188
1189 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1190 rm -rf conftest* confdefs.h
1191 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1192 echo >confdefs.h
1193
1194 # Predefined preprocessor variables.
1195
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_NAME "$PACKAGE_NAME"
1198 _ACEOF
1199
1200
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1203 _ACEOF
1204
1205
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1208 _ACEOF
1209
1210
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_STRING "$PACKAGE_STRING"
1213 _ACEOF
1214
1215
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1218 _ACEOF
1219
1220
1221 # Let the site file select an alternate cache file if it wants to.
1222 # Prefer explicitly selected file to automatically selected ones.
1223 if test -z "$CONFIG_SITE"; then
1224   if test "x$prefix" != xNONE; then
1225     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1226   else
1227     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1228   fi
1229 fi
1230 for ac_site_file in $CONFIG_SITE; do
1231   if test -r "$ac_site_file"; then
1232     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1233 echo "$as_me: loading site script $ac_site_file" >&6;}
1234     sed 's/^/| /' "$ac_site_file" >&5
1235     . "$ac_site_file"
1236   fi
1237 done
1238
1239 if test -r "$cache_file"; then
1240   # Some versions of bash will fail to source /dev/null (special
1241   # files actually), so we avoid doing that.
1242   if test -f "$cache_file"; then
1243     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1244 echo "$as_me: loading cache $cache_file" >&6;}
1245     case $cache_file in
1246       [\\/]* | ?:[\\/]* ) . $cache_file;;
1247       *)                      . ./$cache_file;;
1248     esac
1249   fi
1250 else
1251   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252 echo "$as_me: creating cache $cache_file" >&6;}
1253   >$cache_file
1254 fi
1255
1256 # Check that the precious variables saved in the cache have kept the same
1257 # value.
1258 ac_cache_corrupted=false
1259 for ac_var in `(set) 2>&1 |
1260                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1261   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1262   eval ac_new_set=\$ac_env_${ac_var}_set
1263   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1264   eval ac_new_val="\$ac_env_${ac_var}_value"
1265   case $ac_old_set,$ac_new_set in
1266     set,)
1267       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1269       ac_cache_corrupted=: ;;
1270     ,set)
1271       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1273       ac_cache_corrupted=: ;;
1274     ,);;
1275     *)
1276       if test "x$ac_old_val" != "x$ac_new_val"; then
1277         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1278 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1279         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1280 echo "$as_me:   former value:  $ac_old_val" >&2;}
1281         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1282 echo "$as_me:   current value: $ac_new_val" >&2;}
1283         ac_cache_corrupted=:
1284       fi;;
1285   esac
1286   # Pass precious variables to config.status.
1287   if test "$ac_new_set" = set; then
1288     case $ac_new_val in
1289     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1291     *) ac_arg=$ac_var=$ac_new_val ;;
1292     esac
1293     case " $ac_configure_args " in
1294       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1295       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1296     esac
1297   fi
1298 done
1299 if $ac_cache_corrupted; then
1300   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1301 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1302   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1303 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1304    { (exit 1); exit 1; }; }
1305 fi
1306
1307 ac_ext=c
1308 ac_cpp='$CPP $CPPFLAGS'
1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332 ac_aux_dir=
1333 for ac_dir in config $srcdir/config; do
1334   if test -f $ac_dir/install-sh; then
1335     ac_aux_dir=$ac_dir
1336     ac_install_sh="$ac_aux_dir/install-sh -c"
1337     break
1338   elif test -f $ac_dir/install.sh; then
1339     ac_aux_dir=$ac_dir
1340     ac_install_sh="$ac_aux_dir/install.sh -c"
1341     break
1342   elif test -f $ac_dir/shtool; then
1343     ac_aux_dir=$ac_dir
1344     ac_install_sh="$ac_aux_dir/shtool install -c"
1345     break
1346   fi
1347 done
1348 if test -z "$ac_aux_dir"; then
1349   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1350 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1351    { (exit 1); exit 1; }; }
1352 fi
1353 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1354 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1355 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1356
1357 MCONFIG=./MCONFIG
1358
1359 BINARY_TYPE=bin
1360 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
1361         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1362 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1363         | tr \" " "`
1364 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1365 MONTH=`echo $DATE | awk -F- '{print $2}'`
1366 YEAR=`echo $DATE | awk -F- '{print $3}'`
1367
1368 if expr $YEAR ">" 1900 > /dev/null ; then
1369         E2FSPROGS_YEAR=$YEAR
1370 elif expr $YEAR ">" 90 >/dev/null ; then
1371         E2FSPROGS_YEAR=19$YEAR
1372 else
1373         E2FSPROGS_YEAR=20$YEAR
1374 fi
1375
1376 case $MONTH in
1377 Jan)    E2FSPROGS_MONTH="January" ;;
1378 Feb)    E2FSPROGS_MONTH="February" ;;
1379 Mar)    E2FSPROGS_MONTH="March" ;;
1380 Apr)    E2FSPROGS_MONTH="April" ;;
1381 May)    E2FSPROGS_MONTH="May" ;;
1382 Jun)    E2FSPROGS_MONTH="June" ;;
1383 Jul)    E2FSPROGS_MONTH="July" ;;
1384 Aug)    E2FSPROGS_MONTH="August" ;;
1385 Sep)    E2FSPROGS_MONTH="September" ;;
1386 Oct)    E2FSPROGS_MONTH="October" ;;
1387 Nov)    E2FSPROGS_MONTH="November" ;;
1388 Dec)    E2FSPROGS_MONTH="December" ;;
1389 *)      echo "Unknown month $MONTH??" ;;
1390 esac
1391
1392 unset DATE MONTH YEAR
1393 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1394 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1395
1396
1397
1398
1399 # Make sure we can run config.sub.
1400 $ac_config_sub sun4 >/dev/null 2>&1 ||
1401   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1402 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1403    { (exit 1); exit 1; }; }
1404
1405 echo "$as_me:$LINENO: checking build system type" >&5
1406 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1407 if test "${ac_cv_build+set}" = set; then
1408   echo $ECHO_N "(cached) $ECHO_C" >&6
1409 else
1410   ac_cv_build_alias=$build_alias
1411 test -z "$ac_cv_build_alias" &&
1412   ac_cv_build_alias=`$ac_config_guess`
1413 test -z "$ac_cv_build_alias" &&
1414   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1415 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1416    { (exit 1); exit 1; }; }
1417 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1418   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1419 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1420    { (exit 1); exit 1; }; }
1421
1422 fi
1423 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1424 echo "${ECHO_T}$ac_cv_build" >&6
1425 build=$ac_cv_build
1426 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1427 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1428 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1429
1430
1431 echo "$as_me:$LINENO: checking host system type" >&5
1432 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1433 if test "${ac_cv_host+set}" = set; then
1434   echo $ECHO_N "(cached) $ECHO_C" >&6
1435 else
1436   ac_cv_host_alias=$host_alias
1437 test -z "$ac_cv_host_alias" &&
1438   ac_cv_host_alias=$ac_cv_build_alias
1439 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1440   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1441 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1442    { (exit 1); exit 1; }; }
1443
1444 fi
1445 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1446 echo "${ECHO_T}$ac_cv_host" >&6
1447 host=$ac_cv_host
1448 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1449 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1450 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1451
1452
1453
1454 # Check whether --with-diet-libc or --without-diet-libc was given.
1455 if test "${with_diet_libc+set}" = set; then
1456   withval="$with_diet_libc"
1457   CC="diet cc -nostdinc"
1458 echo "$as_me:$LINENO: result: CC=$CC" >&5
1459 echo "${ECHO_T}CC=$CC" >&6
1460 fi;
1461 # Check whether --with-cc or --without-cc was given.
1462 if test "${with_cc+set}" = set; then
1463   withval="$with_cc"
1464   echo "$as_me:$LINENO: result: CC=$withval" >&5
1465 echo "${ECHO_T}CC=$withval" >&6
1466 CC=$withval
1467 else
1468   if test -z "$CC" ; then CC=cc; fi
1469 echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
1470 echo "${ECHO_T}CC defaults to $CC" >&6
1471 fi; export CC
1472
1473 ac_ext=c
1474 ac_cpp='$CPP $CPPFLAGS'
1475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1478 if test -n "$ac_tool_prefix"; then
1479   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1480 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1481 echo "$as_me:$LINENO: checking for $ac_word" >&5
1482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483 if test "${ac_cv_prog_CC+set}" = set; then
1484   echo $ECHO_N "(cached) $ECHO_C" >&6
1485 else
1486   if test -n "$CC"; then
1487   ac_cv_prog_CC="$CC" # Let the user override the test.
1488 else
1489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490 for as_dir in $PATH
1491 do
1492   IFS=$as_save_IFS
1493   test -z "$as_dir" && as_dir=.
1494   for ac_exec_ext in '' $ac_executable_extensions; do
1495   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498     break 2
1499   fi
1500 done
1501 done
1502
1503 fi
1504 fi
1505 CC=$ac_cv_prog_CC
1506 if test -n "$CC"; then
1507   echo "$as_me:$LINENO: result: $CC" >&5
1508 echo "${ECHO_T}$CC" >&6
1509 else
1510   echo "$as_me:$LINENO: result: no" >&5
1511 echo "${ECHO_T}no" >&6
1512 fi
1513
1514 fi
1515 if test -z "$ac_cv_prog_CC"; then
1516   ac_ct_CC=$CC
1517   # Extract the first word of "gcc", so it can be a program name with args.
1518 set dummy gcc; ac_word=$2
1519 echo "$as_me:$LINENO: checking for $ac_word" >&5
1520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1522   echo $ECHO_N "(cached) $ECHO_C" >&6
1523 else
1524   if test -n "$ac_ct_CC"; then
1525   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1526 else
1527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1528 for as_dir in $PATH
1529 do
1530   IFS=$as_save_IFS
1531   test -z "$as_dir" && as_dir=.
1532   for ac_exec_ext in '' $ac_executable_extensions; do
1533   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534     ac_cv_prog_ac_ct_CC="gcc"
1535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1536     break 2
1537   fi
1538 done
1539 done
1540
1541 fi
1542 fi
1543 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1544 if test -n "$ac_ct_CC"; then
1545   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1546 echo "${ECHO_T}$ac_ct_CC" >&6
1547 else
1548   echo "$as_me:$LINENO: result: no" >&5
1549 echo "${ECHO_T}no" >&6
1550 fi
1551
1552   CC=$ac_ct_CC
1553 else
1554   CC="$ac_cv_prog_CC"
1555 fi
1556
1557 if test -z "$CC"; then
1558   if test -n "$ac_tool_prefix"; then
1559   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1560 set dummy ${ac_tool_prefix}cc; ac_word=$2
1561 echo "$as_me:$LINENO: checking for $ac_word" >&5
1562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1563 if test "${ac_cv_prog_CC+set}" = set; then
1564   echo $ECHO_N "(cached) $ECHO_C" >&6
1565 else
1566   if test -n "$CC"; then
1567   ac_cv_prog_CC="$CC" # Let the user override the test.
1568 else
1569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570 for as_dir in $PATH
1571 do
1572   IFS=$as_save_IFS
1573   test -z "$as_dir" && as_dir=.
1574   for ac_exec_ext in '' $ac_executable_extensions; do
1575   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1576     ac_cv_prog_CC="${ac_tool_prefix}cc"
1577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1578     break 2
1579   fi
1580 done
1581 done
1582
1583 fi
1584 fi
1585 CC=$ac_cv_prog_CC
1586 if test -n "$CC"; then
1587   echo "$as_me:$LINENO: result: $CC" >&5
1588 echo "${ECHO_T}$CC" >&6
1589 else
1590   echo "$as_me:$LINENO: result: no" >&5
1591 echo "${ECHO_T}no" >&6
1592 fi
1593
1594 fi
1595 if test -z "$ac_cv_prog_CC"; then
1596   ac_ct_CC=$CC
1597   # Extract the first word of "cc", so it can be a program name with args.
1598 set dummy cc; ac_word=$2
1599 echo "$as_me:$LINENO: checking for $ac_word" >&5
1600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1601 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1602   echo $ECHO_N "(cached) $ECHO_C" >&6
1603 else
1604   if test -n "$ac_ct_CC"; then
1605   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1606 else
1607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608 for as_dir in $PATH
1609 do
1610   IFS=$as_save_IFS
1611   test -z "$as_dir" && as_dir=.
1612   for ac_exec_ext in '' $ac_executable_extensions; do
1613   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614     ac_cv_prog_ac_ct_CC="cc"
1615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1616     break 2
1617   fi
1618 done
1619 done
1620
1621 fi
1622 fi
1623 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1624 if test -n "$ac_ct_CC"; then
1625   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1626 echo "${ECHO_T}$ac_ct_CC" >&6
1627 else
1628   echo "$as_me:$LINENO: result: no" >&5
1629 echo "${ECHO_T}no" >&6
1630 fi
1631
1632   CC=$ac_ct_CC
1633 else
1634   CC="$ac_cv_prog_CC"
1635 fi
1636
1637 fi
1638 if test -z "$CC"; then
1639   # Extract the first word of "cc", so it can be a program name with args.
1640 set dummy cc; ac_word=$2
1641 echo "$as_me:$LINENO: checking for $ac_word" >&5
1642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1643 if test "${ac_cv_prog_CC+set}" = set; then
1644   echo $ECHO_N "(cached) $ECHO_C" >&6
1645 else
1646   if test -n "$CC"; then
1647   ac_cv_prog_CC="$CC" # Let the user override the test.
1648 else
1649   ac_prog_rejected=no
1650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1651 for as_dir in $PATH
1652 do
1653   IFS=$as_save_IFS
1654   test -z "$as_dir" && as_dir=.
1655   for ac_exec_ext in '' $ac_executable_extensions; do
1656   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1657     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1658        ac_prog_rejected=yes
1659        continue
1660      fi
1661     ac_cv_prog_CC="cc"
1662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663     break 2
1664   fi
1665 done
1666 done
1667
1668 if test $ac_prog_rejected = yes; then
1669   # We found a bogon in the path, so make sure we never use it.
1670   set dummy $ac_cv_prog_CC
1671   shift
1672   if test $# != 0; then
1673     # We chose a different compiler from the bogus one.
1674     # However, it has the same basename, so the bogon will be chosen
1675     # first if we set CC to just the basename; use the full file name.
1676     shift
1677     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1678   fi
1679 fi
1680 fi
1681 fi
1682 CC=$ac_cv_prog_CC
1683 if test -n "$CC"; then
1684   echo "$as_me:$LINENO: result: $CC" >&5
1685 echo "${ECHO_T}$CC" >&6
1686 else
1687   echo "$as_me:$LINENO: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1689 fi
1690
1691 fi
1692 if test -z "$CC"; then
1693   if test -n "$ac_tool_prefix"; then
1694   for ac_prog in cl
1695   do
1696     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1697 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1698 echo "$as_me:$LINENO: checking for $ac_word" >&5
1699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700 if test "${ac_cv_prog_CC+set}" = set; then
1701   echo $ECHO_N "(cached) $ECHO_C" >&6
1702 else
1703   if test -n "$CC"; then
1704   ac_cv_prog_CC="$CC" # Let the user override the test.
1705 else
1706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707 for as_dir in $PATH
1708 do
1709   IFS=$as_save_IFS
1710   test -z "$as_dir" && as_dir=.
1711   for ac_exec_ext in '' $ac_executable_extensions; do
1712   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1713     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715     break 2
1716   fi
1717 done
1718 done
1719
1720 fi
1721 fi
1722 CC=$ac_cv_prog_CC
1723 if test -n "$CC"; then
1724   echo "$as_me:$LINENO: result: $CC" >&5
1725 echo "${ECHO_T}$CC" >&6
1726 else
1727   echo "$as_me:$LINENO: result: no" >&5
1728 echo "${ECHO_T}no" >&6
1729 fi
1730
1731     test -n "$CC" && break
1732   done
1733 fi
1734 if test -z "$CC"; then
1735   ac_ct_CC=$CC
1736   for ac_prog in cl
1737 do
1738   # Extract the first word of "$ac_prog", so it can be a program name with args.
1739 set dummy $ac_prog; ac_word=$2
1740 echo "$as_me:$LINENO: checking for $ac_word" >&5
1741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1742 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1743   echo $ECHO_N "(cached) $ECHO_C" >&6
1744 else
1745   if test -n "$ac_ct_CC"; then
1746   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1747 else
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749 for as_dir in $PATH
1750 do
1751   IFS=$as_save_IFS
1752   test -z "$as_dir" && as_dir=.
1753   for ac_exec_ext in '' $ac_executable_extensions; do
1754   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1755     ac_cv_prog_ac_ct_CC="$ac_prog"
1756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1757     break 2
1758   fi
1759 done
1760 done
1761
1762 fi
1763 fi
1764 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1765 if test -n "$ac_ct_CC"; then
1766   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1767 echo "${ECHO_T}$ac_ct_CC" >&6
1768 else
1769   echo "$as_me:$LINENO: result: no" >&5
1770 echo "${ECHO_T}no" >&6
1771 fi
1772
1773   test -n "$ac_ct_CC" && break
1774 done
1775
1776   CC=$ac_ct_CC
1777 fi
1778
1779 fi
1780
1781
1782 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1783 See \`config.log' for more details." >&5
1784 echo "$as_me: error: no acceptable C compiler found in \$PATH
1785 See \`config.log' for more details." >&2;}
1786    { (exit 1); exit 1; }; }
1787
1788 # Provide some information about the compiler.
1789 echo "$as_me:$LINENO:" \
1790      "checking for C compiler version" >&5
1791 ac_compiler=`set X $ac_compile; echo $2`
1792 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1793   (eval $ac_compiler --version </dev/null >&5) 2>&5
1794   ac_status=$?
1795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796   (exit $ac_status); }
1797 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1798   (eval $ac_compiler -v </dev/null >&5) 2>&5
1799   ac_status=$?
1800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801   (exit $ac_status); }
1802 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1803   (eval $ac_compiler -V </dev/null >&5) 2>&5
1804   ac_status=$?
1805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1806   (exit $ac_status); }
1807
1808 cat >conftest.$ac_ext <<_ACEOF
1809 /* confdefs.h.  */
1810 _ACEOF
1811 cat confdefs.h >>conftest.$ac_ext
1812 cat >>conftest.$ac_ext <<_ACEOF
1813 /* end confdefs.h.  */
1814
1815 int
1816 main ()
1817 {
1818
1819   ;
1820   return 0;
1821 }
1822 _ACEOF
1823 ac_clean_files_save=$ac_clean_files
1824 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1825 # Try to create an executable without -o first, disregard a.out.
1826 # It will help us diagnose broken compilers, and finding out an intuition
1827 # of exeext.
1828 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1829 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1830 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1831 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1832   (eval $ac_link_default) 2>&5
1833   ac_status=$?
1834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835   (exit $ac_status); }; then
1836   # Find the output, starting from the most likely.  This scheme is
1837 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1838 # resort.
1839
1840 # Be careful to initialize this variable, since it used to be cached.
1841 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1842 ac_cv_exeext=
1843 # b.out is created by i960 compilers.
1844 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1845 do
1846   test -f "$ac_file" || continue
1847   case $ac_file in
1848     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1849         ;;
1850     conftest.$ac_ext )
1851         # This is the source file.
1852         ;;
1853     [ab].out )
1854         # We found the default executable, but exeext='' is most
1855         # certainly right.
1856         break;;
1857     *.* )
1858         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1859         # FIXME: I believe we export ac_cv_exeext for Libtool,
1860         # but it would be cool to find out if it's true.  Does anybody
1861         # maintain Libtool? --akim.
1862         export ac_cv_exeext
1863         break;;
1864     * )
1865         break;;
1866   esac
1867 done
1868 else
1869   echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1873 See \`config.log' for more details." >&5
1874 echo "$as_me: error: C compiler cannot create executables
1875 See \`config.log' for more details." >&2;}
1876    { (exit 77); exit 77; }; }
1877 fi
1878
1879 ac_exeext=$ac_cv_exeext
1880 echo "$as_me:$LINENO: result: $ac_file" >&5
1881 echo "${ECHO_T}$ac_file" >&6
1882
1883 # Check the compiler produces executables we can run.  If not, either
1884 # the compiler is broken, or we cross compile.
1885 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1886 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1887 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1888 # If not cross compiling, check that we can run a simple program.
1889 if test "$cross_compiling" != yes; then
1890   if { ac_try='./$ac_file'
1891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1892   (eval $ac_try) 2>&5
1893   ac_status=$?
1894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895   (exit $ac_status); }; }; then
1896     cross_compiling=no
1897   else
1898     if test "$cross_compiling" = maybe; then
1899         cross_compiling=yes
1900     else
1901         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1902 If you meant to cross compile, use \`--host'.
1903 See \`config.log' for more details." >&5
1904 echo "$as_me: error: cannot run C compiled programs.
1905 If you meant to cross compile, use \`--host'.
1906 See \`config.log' for more details." >&2;}
1907    { (exit 1); exit 1; }; }
1908     fi
1909   fi
1910 fi
1911 echo "$as_me:$LINENO: result: yes" >&5
1912 echo "${ECHO_T}yes" >&6
1913
1914 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1915 ac_clean_files=$ac_clean_files_save
1916 # Check the compiler produces executables we can run.  If not, either
1917 # the compiler is broken, or we cross compile.
1918 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1919 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1920 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1921 echo "${ECHO_T}$cross_compiling" >&6
1922
1923 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1924 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1926   (eval $ac_link) 2>&5
1927   ac_status=$?
1928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929   (exit $ac_status); }; then
1930   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1931 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1932 # work properly (i.e., refer to `conftest.exe'), while it won't with
1933 # `rm'.
1934 for ac_file in conftest.exe conftest conftest.*; do
1935   test -f "$ac_file" || continue
1936   case $ac_file in
1937     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1938     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1939           export ac_cv_exeext
1940           break;;
1941     * ) break;;
1942   esac
1943 done
1944 else
1945   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1946 See \`config.log' for more details." >&5
1947 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1948 See \`config.log' for more details." >&2;}
1949    { (exit 1); exit 1; }; }
1950 fi
1951
1952 rm -f conftest$ac_cv_exeext
1953 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1954 echo "${ECHO_T}$ac_cv_exeext" >&6
1955
1956 rm -f conftest.$ac_ext
1957 EXEEXT=$ac_cv_exeext
1958 ac_exeext=$EXEEXT
1959 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1960 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1961 if test "${ac_cv_objext+set}" = set; then
1962   echo $ECHO_N "(cached) $ECHO_C" >&6
1963 else
1964   cat >conftest.$ac_ext <<_ACEOF
1965 /* confdefs.h.  */
1966 _ACEOF
1967 cat confdefs.h >>conftest.$ac_ext
1968 cat >>conftest.$ac_ext <<_ACEOF
1969 /* end confdefs.h.  */
1970
1971 int
1972 main ()
1973 {
1974
1975   ;
1976   return 0;
1977 }
1978 _ACEOF
1979 rm -f conftest.o conftest.obj
1980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1981   (eval $ac_compile) 2>&5
1982   ac_status=$?
1983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984   (exit $ac_status); }; then
1985   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1986   case $ac_file in
1987     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1988     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1989        break;;
1990   esac
1991 done
1992 else
1993   echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1995
1996 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1997 See \`config.log' for more details." >&5
1998 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1999 See \`config.log' for more details." >&2;}
2000    { (exit 1); exit 1; }; }
2001 fi
2002
2003 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2004 fi
2005 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2006 echo "${ECHO_T}$ac_cv_objext" >&6
2007 OBJEXT=$ac_cv_objext
2008 ac_objext=$OBJEXT
2009 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2010 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2011 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2012   echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014   cat >conftest.$ac_ext <<_ACEOF
2015 /* confdefs.h.  */
2016 _ACEOF
2017 cat confdefs.h >>conftest.$ac_ext
2018 cat >>conftest.$ac_ext <<_ACEOF
2019 /* end confdefs.h.  */
2020
2021 int
2022 main ()
2023 {
2024 #ifndef __GNUC__
2025        choke me
2026 #endif
2027
2028   ;
2029   return 0;
2030 }
2031 _ACEOF
2032 rm -f conftest.$ac_objext
2033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2034   (eval $ac_compile) 2>conftest.er1
2035   ac_status=$?
2036   grep -v '^ *+' conftest.er1 >conftest.err
2037   rm -f conftest.er1
2038   cat conftest.err >&5
2039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040   (exit $ac_status); } &&
2041          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2043   (eval $ac_try) 2>&5
2044   ac_status=$?
2045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046   (exit $ac_status); }; } &&
2047          { ac_try='test -s conftest.$ac_objext'
2048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2049   (eval $ac_try) 2>&5
2050   ac_status=$?
2051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052   (exit $ac_status); }; }; then
2053   ac_compiler_gnu=yes
2054 else
2055   echo "$as_me: failed program was:" >&5
2056 sed 's/^/| /' conftest.$ac_ext >&5
2057
2058 ac_compiler_gnu=no
2059 fi
2060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2061 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2062
2063 fi
2064 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2065 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2066 GCC=`test $ac_compiler_gnu = yes && echo yes`
2067 ac_test_CFLAGS=${CFLAGS+set}
2068 ac_save_CFLAGS=$CFLAGS
2069 CFLAGS="-g"
2070 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2071 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2072 if test "${ac_cv_prog_cc_g+set}" = set; then
2073   echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075   cat >conftest.$ac_ext <<_ACEOF
2076 /* confdefs.h.  */
2077 _ACEOF
2078 cat confdefs.h >>conftest.$ac_ext
2079 cat >>conftest.$ac_ext <<_ACEOF
2080 /* end confdefs.h.  */
2081
2082 int
2083 main ()
2084 {
2085
2086   ;
2087   return 0;
2088 }
2089 _ACEOF
2090 rm -f conftest.$ac_objext
2091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2092   (eval $ac_compile) 2>conftest.er1
2093   ac_status=$?
2094   grep -v '^ *+' conftest.er1 >conftest.err
2095   rm -f conftest.er1
2096   cat conftest.err >&5
2097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098   (exit $ac_status); } &&
2099          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101   (eval $ac_try) 2>&5
2102   ac_status=$?
2103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104   (exit $ac_status); }; } &&
2105          { ac_try='test -s conftest.$ac_objext'
2106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107   (eval $ac_try) 2>&5
2108   ac_status=$?
2109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110   (exit $ac_status); }; }; then
2111   ac_cv_prog_cc_g=yes
2112 else
2113   echo "$as_me: failed program was:" >&5
2114 sed 's/^/| /' conftest.$ac_ext >&5
2115
2116 ac_cv_prog_cc_g=no
2117 fi
2118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2119 fi
2120 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2121 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2122 if test "$ac_test_CFLAGS" = set; then
2123   CFLAGS=$ac_save_CFLAGS
2124 elif test $ac_cv_prog_cc_g = yes; then
2125   if test "$GCC" = yes; then
2126     CFLAGS="-g -O2"
2127   else
2128     CFLAGS="-g"
2129   fi
2130 else
2131   if test "$GCC" = yes; then
2132     CFLAGS="-O2"
2133   else
2134     CFLAGS=
2135   fi
2136 fi
2137 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2138 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2139 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2140   echo $ECHO_N "(cached) $ECHO_C" >&6
2141 else
2142   ac_cv_prog_cc_stdc=no
2143 ac_save_CC=$CC
2144 cat >conftest.$ac_ext <<_ACEOF
2145 /* confdefs.h.  */
2146 _ACEOF
2147 cat confdefs.h >>conftest.$ac_ext
2148 cat >>conftest.$ac_ext <<_ACEOF
2149 /* end confdefs.h.  */
2150 #include <stdarg.h>
2151 #include <stdio.h>
2152 #include <sys/types.h>
2153 #include <sys/stat.h>
2154 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2155 struct buf { int x; };
2156 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2157 static char *e (p, i)
2158      char **p;
2159      int i;
2160 {
2161   return p[i];
2162 }
2163 static char *f (char * (*g) (char **, int), char **p, ...)
2164 {
2165   char *s;
2166   va_list v;
2167   va_start (v,p);
2168   s = g (p, va_arg (v,int));
2169   va_end (v);
2170   return s;
2171 }
2172
2173 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2174    function prototypes and stuff, but not '\xHH' hex character constants.
2175    These don't provoke an error unfortunately, instead are silently treated
2176    as 'x'.  The following induces an error, until -std1 is added to get
2177    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2178    array size at least.  It's necessary to write '\x00'==0 to get something
2179    that's true only with -std1.  */
2180 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2181
2182 int test (int i, double x);
2183 struct s1 {int (*f) (int a);};
2184 struct s2 {int (*f) (double a);};
2185 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2186 int argc;
2187 char **argv;
2188 int
2189 main ()
2190 {
2191 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2192   ;
2193   return 0;
2194 }
2195 _ACEOF
2196 # Don't try gcc -ansi; that turns off useful extensions and
2197 # breaks some systems' header files.
2198 # AIX                   -qlanglvl=ansi
2199 # Ultrix and OSF/1      -std1
2200 # HP-UX 10.20 and later -Ae
2201 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2202 # SVR4                  -Xc -D__EXTENSIONS__
2203 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2204 do
2205   CC="$ac_save_CC $ac_arg"
2206   rm -f conftest.$ac_objext
2207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2208   (eval $ac_compile) 2>conftest.er1
2209   ac_status=$?
2210   grep -v '^ *+' conftest.er1 >conftest.err
2211   rm -f conftest.er1
2212   cat conftest.err >&5
2213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214   (exit $ac_status); } &&
2215          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217   (eval $ac_try) 2>&5
2218   ac_status=$?
2219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220   (exit $ac_status); }; } &&
2221          { ac_try='test -s conftest.$ac_objext'
2222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223   (eval $ac_try) 2>&5
2224   ac_status=$?
2225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226   (exit $ac_status); }; }; then
2227   ac_cv_prog_cc_stdc=$ac_arg
2228 break
2229 else
2230   echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2232
2233 fi
2234 rm -f conftest.err conftest.$ac_objext
2235 done
2236 rm -f conftest.$ac_ext conftest.$ac_objext
2237 CC=$ac_save_CC
2238
2239 fi
2240
2241 case "x$ac_cv_prog_cc_stdc" in
2242   x|xno)
2243     echo "$as_me:$LINENO: result: none needed" >&5
2244 echo "${ECHO_T}none needed" >&6 ;;
2245   *)
2246     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2247 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2248     CC="$CC $ac_cv_prog_cc_stdc" ;;
2249 esac
2250
2251 # Some people use a C++ compiler to compile C.  Since we use `exit',
2252 # in C++ we need to declare it.  In case someone uses the same compiler
2253 # for both compiling C and C++ we need to have the C++ compiler decide
2254 # the declaration of exit, since it's the most demanding environment.
2255 cat >conftest.$ac_ext <<_ACEOF
2256 #ifndef __cplusplus
2257   choke me
2258 #endif
2259 _ACEOF
2260 rm -f conftest.$ac_objext
2261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2262   (eval $ac_compile) 2>conftest.er1
2263   ac_status=$?
2264   grep -v '^ *+' conftest.er1 >conftest.err
2265   rm -f conftest.er1
2266   cat conftest.err >&5
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); } &&
2269          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271   (eval $ac_try) 2>&5
2272   ac_status=$?
2273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274   (exit $ac_status); }; } &&
2275          { ac_try='test -s conftest.$ac_objext'
2276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277   (eval $ac_try) 2>&5
2278   ac_status=$?
2279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280   (exit $ac_status); }; }; then
2281   for ac_declaration in \
2282    '' \
2283    'extern "C" void std::exit (int) throw (); using std::exit;' \
2284    'extern "C" void std::exit (int); using std::exit;' \
2285    'extern "C" void exit (int) throw ();' \
2286    'extern "C" void exit (int);' \
2287    'void exit (int);'
2288 do
2289   cat >conftest.$ac_ext <<_ACEOF
2290 /* confdefs.h.  */
2291 _ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h.  */
2295 $ac_declaration
2296 #include <stdlib.h>
2297 int
2298 main ()
2299 {
2300 exit (42);
2301   ;
2302   return 0;
2303 }
2304 _ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307   (eval $ac_compile) 2>conftest.er1
2308   ac_status=$?
2309   grep -v '^ *+' conftest.er1 >conftest.err
2310   rm -f conftest.er1
2311   cat conftest.err >&5
2312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313   (exit $ac_status); } &&
2314          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316   (eval $ac_try) 2>&5
2317   ac_status=$?
2318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319   (exit $ac_status); }; } &&
2320          { ac_try='test -s conftest.$ac_objext'
2321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322   (eval $ac_try) 2>&5
2323   ac_status=$?
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); }; }; then
2326   :
2327 else
2328   echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2330
2331 continue
2332 fi
2333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2334   cat >conftest.$ac_ext <<_ACEOF
2335 /* confdefs.h.  */
2336 _ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h.  */
2340 $ac_declaration
2341 int
2342 main ()
2343 {
2344 exit (42);
2345   ;
2346   return 0;
2347 }
2348 _ACEOF
2349 rm -f conftest.$ac_objext
2350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2351   (eval $ac_compile) 2>conftest.er1
2352   ac_status=$?
2353   grep -v '^ *+' conftest.er1 >conftest.err
2354   rm -f conftest.er1
2355   cat conftest.err >&5
2356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357   (exit $ac_status); } &&
2358          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360   (eval $ac_try) 2>&5
2361   ac_status=$?
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); }; } &&
2364          { ac_try='test -s conftest.$ac_objext'
2365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366   (eval $ac_try) 2>&5
2367   ac_status=$?
2368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369   (exit $ac_status); }; }; then
2370   break
2371 else
2372   echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.$ac_ext >&5
2374
2375 fi
2376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2377 done
2378 rm -f conftest*
2379 if test -n "$ac_declaration"; then
2380   echo '#ifdef __cplusplus' >>confdefs.h
2381   echo $ac_declaration      >>confdefs.h
2382   echo '#endif'             >>confdefs.h
2383 fi
2384
2385 else
2386   echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2388
2389 fi
2390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2391 ac_ext=c
2392 ac_cpp='$CPP $CPPFLAGS'
2393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2396
2397
2398 # Check whether --with-linker or --without-linker was given.
2399 if test "${with_linker+set}" = set; then
2400   withval="$with_linker"
2401   echo "$as_me:$LINENO: result: LD=$withval" >&5
2402 echo "${ECHO_T}LD=$withval" >&6
2403 LD=$withval
2404 else
2405   if test -z "$LD" ; then LD=$CC; fi
2406 echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
2407 echo "${ECHO_T}LD defaults to $LD" >&6
2408 fi; export LD
2409
2410
2411 # Check whether --with-ccopts or --without-ccopts was given.
2412 if test "${with_ccopts+set}" = set; then
2413   withval="$with_ccopts"
2414   echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
2415 echo "${ECHO_T}CCOPTS is $withval" >&6
2416 CFLAGS=$withval
2417 fi;
2418 ac_ext=c
2419 ac_cpp='$CPP $CPPFLAGS'
2420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2423 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2424 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2425 # On Suns, sometimes $CPP names a directory.
2426 if test -n "$CPP" && test -d "$CPP"; then
2427   CPP=
2428 fi
2429 if test -z "$CPP"; then
2430   if test "${ac_cv_prog_CPP+set}" = set; then
2431   echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433       # Double quotes because CPP needs to be expanded
2434     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2435     do
2436       ac_preproc_ok=false
2437 for ac_c_preproc_warn_flag in '' yes
2438 do
2439   # Use a header file that comes with gcc, so configuring glibc
2440   # with a fresh cross-compiler works.
2441   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2442   # <limits.h> exists even on freestanding compilers.
2443   # On the NeXT, cc -E runs the code through the compiler's parser,
2444   # not just through cpp. "Syntax error" is here to catch this case.
2445   cat >conftest.$ac_ext <<_ACEOF
2446 /* confdefs.h.  */
2447 _ACEOF
2448 cat confdefs.h >>conftest.$ac_ext
2449 cat >>conftest.$ac_ext <<_ACEOF
2450 /* end confdefs.h.  */
2451 #ifdef __STDC__
2452 # include <limits.h>
2453 #else
2454 # include <assert.h>
2455 #endif
2456                      Syntax error
2457 _ACEOF
2458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2459   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2460   ac_status=$?
2461   grep -v '^ *+' conftest.er1 >conftest.err
2462   rm -f conftest.er1
2463   cat conftest.err >&5
2464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465   (exit $ac_status); } >/dev/null; then
2466   if test -s conftest.err; then
2467     ac_cpp_err=$ac_c_preproc_warn_flag
2468     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2469   else
2470     ac_cpp_err=
2471   fi
2472 else
2473   ac_cpp_err=yes
2474 fi
2475 if test -z "$ac_cpp_err"; then
2476   :
2477 else
2478   echo "$as_me: failed program was:" >&5
2479 sed 's/^/| /' conftest.$ac_ext >&5
2480
2481   # Broken: fails on valid input.
2482 continue
2483 fi
2484 rm -f conftest.err conftest.$ac_ext
2485
2486   # OK, works on sane cases.  Now check whether non-existent headers
2487   # can be detected and how.
2488   cat >conftest.$ac_ext <<_ACEOF
2489 /* confdefs.h.  */
2490 _ACEOF
2491 cat confdefs.h >>conftest.$ac_ext
2492 cat >>conftest.$ac_ext <<_ACEOF
2493 /* end confdefs.h.  */
2494 #include <ac_nonexistent.h>
2495 _ACEOF
2496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2497   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2498   ac_status=$?
2499   grep -v '^ *+' conftest.er1 >conftest.err
2500   rm -f conftest.er1
2501   cat conftest.err >&5
2502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503   (exit $ac_status); } >/dev/null; then
2504   if test -s conftest.err; then
2505     ac_cpp_err=$ac_c_preproc_warn_flag
2506     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2507   else
2508     ac_cpp_err=
2509   fi
2510 else
2511   ac_cpp_err=yes
2512 fi
2513 if test -z "$ac_cpp_err"; then
2514   # Broken: success on invalid input.
2515 continue
2516 else
2517   echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2519
2520   # Passes both tests.
2521 ac_preproc_ok=:
2522 break
2523 fi
2524 rm -f conftest.err conftest.$ac_ext
2525
2526 done
2527 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2528 rm -f conftest.err conftest.$ac_ext
2529 if $ac_preproc_ok; then
2530   break
2531 fi
2532
2533     done
2534     ac_cv_prog_CPP=$CPP
2535
2536 fi
2537   CPP=$ac_cv_prog_CPP
2538 else
2539   ac_cv_prog_CPP=$CPP
2540 fi
2541 echo "$as_me:$LINENO: result: $CPP" >&5
2542 echo "${ECHO_T}$CPP" >&6
2543 ac_preproc_ok=false
2544 for ac_c_preproc_warn_flag in '' yes
2545 do
2546   # Use a header file that comes with gcc, so configuring glibc
2547   # with a fresh cross-compiler works.
2548   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2549   # <limits.h> exists even on freestanding compilers.
2550   # On the NeXT, cc -E runs the code through the compiler's parser,
2551   # not just through cpp. "Syntax error" is here to catch this case.
2552   cat >conftest.$ac_ext <<_ACEOF
2553 /* confdefs.h.  */
2554 _ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h.  */
2558 #ifdef __STDC__
2559 # include <limits.h>
2560 #else
2561 # include <assert.h>
2562 #endif
2563                      Syntax error
2564 _ACEOF
2565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2566   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2567   ac_status=$?
2568   grep -v '^ *+' conftest.er1 >conftest.err
2569   rm -f conftest.er1
2570   cat conftest.err >&5
2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572   (exit $ac_status); } >/dev/null; then
2573   if test -s conftest.err; then
2574     ac_cpp_err=$ac_c_preproc_warn_flag
2575     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2576   else
2577     ac_cpp_err=
2578   fi
2579 else
2580   ac_cpp_err=yes
2581 fi
2582 if test -z "$ac_cpp_err"; then
2583   :
2584 else
2585   echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2587
2588   # Broken: fails on valid input.
2589 continue
2590 fi
2591 rm -f conftest.err conftest.$ac_ext
2592
2593   # OK, works on sane cases.  Now check whether non-existent headers
2594   # can be detected and how.
2595   cat >conftest.$ac_ext <<_ACEOF
2596 /* confdefs.h.  */
2597 _ACEOF
2598 cat confdefs.h >>conftest.$ac_ext
2599 cat >>conftest.$ac_ext <<_ACEOF
2600 /* end confdefs.h.  */
2601 #include <ac_nonexistent.h>
2602 _ACEOF
2603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2604   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2605   ac_status=$?
2606   grep -v '^ *+' conftest.er1 >conftest.err
2607   rm -f conftest.er1
2608   cat conftest.err >&5
2609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610   (exit $ac_status); } >/dev/null; then
2611   if test -s conftest.err; then
2612     ac_cpp_err=$ac_c_preproc_warn_flag
2613     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2614   else
2615     ac_cpp_err=
2616   fi
2617 else
2618   ac_cpp_err=yes
2619 fi
2620 if test -z "$ac_cpp_err"; then
2621   # Broken: success on invalid input.
2622 continue
2623 else
2624   echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2626
2627   # Passes both tests.
2628 ac_preproc_ok=:
2629 break
2630 fi
2631 rm -f conftest.err conftest.$ac_ext
2632
2633 done
2634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2635 rm -f conftest.err conftest.$ac_ext
2636 if $ac_preproc_ok; then
2637   :
2638 else
2639   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2640 See \`config.log' for more details." >&5
2641 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2642 See \`config.log' for more details." >&2;}
2643    { (exit 1); exit 1; }; }
2644 fi
2645
2646 ac_ext=c
2647 ac_cpp='$CPP $CPPFLAGS'
2648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2651
2652
2653 echo "$as_me:$LINENO: checking for egrep" >&5
2654 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2655 if test "${ac_cv_prog_egrep+set}" = set; then
2656   echo $ECHO_N "(cached) $ECHO_C" >&6
2657 else
2658   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2659     then ac_cv_prog_egrep='grep -E'
2660     else ac_cv_prog_egrep='egrep'
2661     fi
2662 fi
2663 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2664 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2665  EGREP=$ac_cv_prog_egrep
2666
2667
2668 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2669 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2670 if test "${ac_cv_header_stdc+set}" = set; then
2671   echo $ECHO_N "(cached) $ECHO_C" >&6
2672 else
2673   cat >conftest.$ac_ext <<_ACEOF
2674 /* confdefs.h.  */
2675 _ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h.  */
2679 #include <stdlib.h>
2680 #include <stdarg.h>
2681 #include <string.h>
2682 #include <float.h>
2683
2684 int
2685 main ()
2686 {
2687
2688   ;
2689   return 0;
2690 }
2691 _ACEOF
2692 rm -f conftest.$ac_objext
2693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694   (eval $ac_compile) 2>conftest.er1
2695   ac_status=$?
2696   grep -v '^ *+' conftest.er1 >conftest.err
2697   rm -f conftest.er1
2698   cat conftest.err >&5
2699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700   (exit $ac_status); } &&
2701          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703   (eval $ac_try) 2>&5
2704   ac_status=$?
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); }; } &&
2707          { ac_try='test -s conftest.$ac_objext'
2708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709   (eval $ac_try) 2>&5
2710   ac_status=$?
2711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712   (exit $ac_status); }; }; then
2713   ac_cv_header_stdc=yes
2714 else
2715   echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2717
2718 ac_cv_header_stdc=no
2719 fi
2720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2721
2722 if test $ac_cv_header_stdc = yes; then
2723   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2724   cat >conftest.$ac_ext <<_ACEOF
2725 /* confdefs.h.  */
2726 _ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h.  */
2730 #include <string.h>
2731
2732 _ACEOF
2733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2734   $EGREP "memchr" >/dev/null 2>&1; then
2735   :
2736 else
2737   ac_cv_header_stdc=no
2738 fi
2739 rm -f conftest*
2740
2741 fi
2742
2743 if test $ac_cv_header_stdc = yes; then
2744   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2745   cat >conftest.$ac_ext <<_ACEOF
2746 /* confdefs.h.  */
2747 _ACEOF
2748 cat confdefs.h >>conftest.$ac_ext
2749 cat >>conftest.$ac_ext <<_ACEOF
2750 /* end confdefs.h.  */
2751 #include <stdlib.h>
2752
2753 _ACEOF
2754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2755   $EGREP "free" >/dev/null 2>&1; then
2756   :
2757 else
2758   ac_cv_header_stdc=no
2759 fi
2760 rm -f conftest*
2761
2762 fi
2763
2764 if test $ac_cv_header_stdc = yes; then
2765   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2766   if test "$cross_compiling" = yes; then
2767   :
2768 else
2769   cat >conftest.$ac_ext <<_ACEOF
2770 /* confdefs.h.  */
2771 _ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h.  */
2775 #include <ctype.h>
2776 #if ((' ' & 0x0FF) == 0x020)
2777 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2778 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2779 #else
2780 # define ISLOWER(c) \
2781                    (('a' <= (c) && (c) <= 'i') \
2782                      || ('j' <= (c) && (c) <= 'r') \
2783                      || ('s' <= (c) && (c) <= 'z'))
2784 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2785 #endif
2786
2787 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2788 int
2789 main ()
2790 {
2791   int i;
2792   for (i = 0; i < 256; i++)
2793     if (XOR (islower (i), ISLOWER (i))
2794         || toupper (i) != TOUPPER (i))
2795       exit(2);
2796   exit (0);
2797 }
2798 _ACEOF
2799 rm -f conftest$ac_exeext
2800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2801   (eval $ac_link) 2>&5
2802   ac_status=$?
2803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806   (eval $ac_try) 2>&5
2807   ac_status=$?
2808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809   (exit $ac_status); }; }; then
2810   :
2811 else
2812   echo "$as_me: program exited with status $ac_status" >&5
2813 echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2815
2816 ( exit $ac_status )
2817 ac_cv_header_stdc=no
2818 fi
2819 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2820 fi
2821 fi
2822 fi
2823 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2824 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2825 if test $ac_cv_header_stdc = yes; then
2826
2827 cat >>confdefs.h <<\_ACEOF
2828 #define STDC_HEADERS 1
2829 _ACEOF
2830
2831 fi
2832
2833 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2844                   inttypes.h stdint.h unistd.h
2845 do
2846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2847 echo "$as_me:$LINENO: checking for $ac_header" >&5
2848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2850   echo $ECHO_N "(cached) $ECHO_C" >&6
2851 else
2852   cat >conftest.$ac_ext <<_ACEOF
2853 /* confdefs.h.  */
2854 _ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h.  */
2858 $ac_includes_default
2859
2860 #include <$ac_header>
2861 _ACEOF
2862 rm -f conftest.$ac_objext
2863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2864   (eval $ac_compile) 2>conftest.er1
2865   ac_status=$?
2866   grep -v '^ *+' conftest.er1 >conftest.err
2867   rm -f conftest.er1
2868   cat conftest.err >&5
2869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870   (exit $ac_status); } &&
2871          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873   (eval $ac_try) 2>&5
2874   ac_status=$?
2875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876   (exit $ac_status); }; } &&
2877          { ac_try='test -s conftest.$ac_objext'
2878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879   (eval $ac_try) 2>&5
2880   ac_status=$?
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); }; }; then
2883   eval "$as_ac_Header=yes"
2884 else
2885   echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2887
2888 eval "$as_ac_Header=no"
2889 fi
2890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2891 fi
2892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2895   cat >>confdefs.h <<_ACEOF
2896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2897 _ACEOF
2898
2899 fi
2900
2901 done
2902
2903
2904 if test "${ac_cv_header_linux_fs_h+set}" = set; then
2905   echo "$as_me:$LINENO: checking for linux/fs.h" >&5
2906 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6
2907 if test "${ac_cv_header_linux_fs_h+set}" = set; then
2908   echo $ECHO_N "(cached) $ECHO_C" >&6
2909 fi
2910 echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
2911 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6
2912 else
2913   # Is the header compilable?
2914 echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
2915 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6
2916 cat >conftest.$ac_ext <<_ACEOF
2917 /* confdefs.h.  */
2918 _ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h.  */
2922 $ac_includes_default
2923 #include <linux/fs.h>
2924 _ACEOF
2925 rm -f conftest.$ac_objext
2926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927   (eval $ac_compile) 2>conftest.er1
2928   ac_status=$?
2929   grep -v '^ *+' conftest.er1 >conftest.err
2930   rm -f conftest.er1
2931   cat conftest.err >&5
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); } &&
2934          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936   (eval $ac_try) 2>&5
2937   ac_status=$?
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); }; } &&
2940          { ac_try='test -s conftest.$ac_objext'
2941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942   (eval $ac_try) 2>&5
2943   ac_status=$?
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); }; }; then
2946   ac_header_compiler=yes
2947 else
2948   echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2950
2951 ac_header_compiler=no
2952 fi
2953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2954 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2955 echo "${ECHO_T}$ac_header_compiler" >&6
2956
2957 # Is the header present?
2958 echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
2959 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6
2960 cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h.  */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h.  */
2966 #include <linux/fs.h>
2967 _ACEOF
2968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2969   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2970   ac_status=$?
2971   grep -v '^ *+' conftest.er1 >conftest.err
2972   rm -f conftest.er1
2973   cat conftest.err >&5
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); } >/dev/null; then
2976   if test -s conftest.err; then
2977     ac_cpp_err=$ac_c_preproc_warn_flag
2978     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2979   else
2980     ac_cpp_err=
2981   fi
2982 else
2983   ac_cpp_err=yes
2984 fi
2985 if test -z "$ac_cpp_err"; then
2986   ac_header_preproc=yes
2987 else
2988   echo "$as_me: failed program was:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2990
2991   ac_header_preproc=no
2992 fi
2993 rm -f conftest.err conftest.$ac_ext
2994 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2995 echo "${ECHO_T}$ac_header_preproc" >&6
2996
2997 # So?  What about this header?
2998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2999   yes:no: )
3000     { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3001 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3002     { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3003 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3004     ac_header_preproc=yes
3005     ;;
3006   no:yes:* )
3007     { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3008 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3009     { echo "$as_me:$LINENO: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&5
3010 echo "$as_me: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&2;}
3011     { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3012 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3013     { echo "$as_me:$LINENO: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&5
3014 echo "$as_me: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3015     { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3016 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3017     { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3018 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3019     (
3020       cat <<\_ASBOX
3021 ## ------------------------------------------ ##
3022 ## Report this to the AC_PACKAGE_NAME lists.  ##
3023 ## ------------------------------------------ ##
3024 _ASBOX
3025     ) |
3026       sed "s/^/$as_me: WARNING:     /" >&2
3027     ;;
3028 esac
3029 echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3030 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6
3031 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3032   echo $ECHO_N "(cached) $ECHO_C" >&6
3033 else
3034   ac_cv_header_linux_fs_h=$ac_header_preproc
3035 fi
3036 echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3037 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6
3038
3039 fi
3040 if test $ac_cv_header_linux_fs_h = yes; then
3041   linux_headers=yes
3042 else
3043   linux_headers=no
3044 fi
3045
3046
3047 if test "$linux_headers" != yes; then
3048   LINUX_INCLUDE='-I$(top_builddir)/include'
3049 fi
3050
3051 echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3052 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6
3053 if test "$GCC" = yes
3054 then
3055     case "$host_cpu" in
3056         alpha)          addcflags="-mieee" ;;
3057     esac
3058 fi
3059 if test "x$addcflags" != x
3060 then
3061     echo "$as_me:$LINENO: result: $addcflags" >&5
3062 echo "${ECHO_T}$addcflags" >&6
3063     CFLAGS="$addcflags $CFLAGS"
3064 else
3065     echo "$as_me:$LINENO: result: (none)" >&5
3066 echo "${ECHO_T}(none)" >&6
3067 fi
3068 LIB_EXT=.a
3069 STATIC_LIB_EXT=.a
3070 PROFILE_LIB_EXT=.a
3071
3072 # Check whether --with-ldopts or --without-ldopts was given.
3073 if test "${with_ldopts+set}" = set; then
3074   withval="$with_ldopts"
3075   echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3076 echo "${ECHO_T}LDFLAGS is $withval" >&6
3077 LDFLAGS=$withval
3078 else
3079   LDFLAGS=
3080 fi;
3081
3082 # Check whether --with-root-prefix or --without-root-prefix was given.
3083 if test "${with_root_prefix+set}" = set; then
3084   withval="$with_root_prefix"
3085   root_prefix=$withval
3086 else
3087   root_prefix=NONE
3088 fi; # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3089 if test "${enable_maintainer_mode+set}" = set; then
3090   enableval="$enable_maintainer_mode"
3091   if test "$enableval" = "no"
3092 then
3093         MAINTAINER_CMT=#
3094         echo "Disabling maintainer mode"
3095 else
3096         MAINTAINER_CMT=
3097         echo "Enabling maintainer mode"
3098 fi
3099
3100 else
3101   MAINTAINER_CMT=#
3102 echo "Disabling maintainer mode by default"
3103
3104 fi;
3105
3106 # Check whether --enable-compression or --disable-compression was given.
3107 if test "${enable_compression+set}" = set; then
3108   enableval="$enable_compression"
3109   if test "$enableval" = "no"
3110 then
3111         echo "Disabling compression support"
3112 else
3113         cat >>confdefs.h <<\_ACEOF
3114 #define ENABLE_COMPRESSION 1
3115 _ACEOF
3116
3117         echo "Enabling compression support"
3118         echo "WARNING: Compression support is experimental"
3119 fi
3120
3121 else
3122   echo "Disabling compression support by default"
3123
3124 fi;
3125 # Check whether --enable-htree or --disable-htree was given.
3126 if test "${enable_htree+set}" = set; then
3127   enableval="$enable_htree"
3128   if test "$enableval" = "no"
3129 then
3130         HTREE_CMT=#
3131         echo "Disabling htree directory support"
3132 else
3133         HTREE_CMT=
3134         cat >>confdefs.h <<\_ACEOF
3135 #define ENABLE_HTREE 1
3136 _ACEOF
3137
3138         echo "Enabling htree directory support"
3139 fi
3140
3141 else
3142   HTREE_CMT=
3143 cat >>confdefs.h <<\_ACEOF
3144 #define ENABLE_HTREE 1
3145 _ACEOF
3146
3147 echo "Enabling htree directory support by default"
3148
3149 fi;
3150
3151 # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
3152 if test "${enable_elf_shlibs+set}" = set; then
3153   enableval="$enable_elf_shlibs"
3154   if test "$enableval" = "no"
3155 then
3156         ELF_CMT=#
3157         MAKEFILE_ELF=/dev/null
3158         echo "Disabling ELF shared libraries"
3159 else
3160         ELF_CMT=
3161         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3162         case "$host_os" in
3163         solaris2.*)
3164                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3165         ;;
3166         esac
3167         BINARY_TYPE=elfbin
3168         LIB_EXT=.so
3169         echo "Enabling ELF shared libraries"
3170 fi
3171
3172 else
3173   MAKEFILE_ELF=/dev/null
3174 ELF_CMT=#
3175 echo "Disabling ELF shared libraries by default"
3176
3177 fi;
3178
3179
3180 # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
3181 if test "${enable_bsd_shlibs+set}" = set; then
3182   enableval="$enable_bsd_shlibs"
3183   if test "$enableval" = "no"
3184 then
3185         BSDLIB_CMT=#
3186         MAKEFILE_BSDLIB=/dev/null
3187         echo "Disabling BSD shared libraries"
3188 else
3189         BSDLIB_CMT=
3190         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3191         LIB_EXT=.so
3192         case "$host_os" in
3193         darwin*)
3194                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3195                 LIB_EXT=.dylib
3196         ;;
3197         esac
3198         echo "Enabling BSD shared libraries"
3199 fi
3200
3201 else
3202   MAKEFILE_BSDLIB=/dev/null
3203 BSDLIB_CMT=#
3204 echo "Disabling BSD shared libraries by default"
3205
3206 fi;
3207
3208
3209 # Check whether --enable-profile or --disable-profile was given.
3210 if test "${enable_profile+set}" = set; then
3211   enableval="$enable_profile"
3212   if test "$enableval" = "no"
3213 then
3214         PROFILE_CMT=#
3215         MAKEFILE_PROFILE=/dev/null
3216         echo "Disabling profiling libraries"
3217 else
3218         PROFILE_CMT=
3219         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3220         PROFILED_LIB_EXT=_p.a
3221         echo "Building profiling libraries"
3222 fi
3223
3224 else
3225   PROFILE_CMT=#
3226 MAKEFILE_PROFILE=/dev/null
3227 echo "Disabling profiling libraries by default"
3228
3229 fi;
3230
3231
3232 # Check whether --enable-checker or --disable-checker was given.
3233 if test "${enable_checker+set}" = set; then
3234   enableval="$enable_checker"
3235   if test "$enableval" = "no"
3236 then
3237         CHECKER_CMT=#
3238         MAKEFILE_CHECKER=/dev/null
3239         echo "Disabling checker libraries"
3240 else
3241         CHECKER_CMT=
3242         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3243         echo "Building checker libraries"
3244 fi
3245
3246 else
3247   CHECKER_CMT=#
3248 MAKEFILE_CHECKER=/dev/null
3249 echo "Disabling checker libraries by default"
3250
3251 fi;
3252
3253
3254
3255
3256
3257 # Check whether --enable-jbd-debug or --disable-jbd-debug was given.
3258 if test "${enable_jbd_debug+set}" = set; then
3259   enableval="$enable_jbd_debug"
3260   if test "$enableval" = "no"
3261 then
3262         echo "Disabling journal debugging"
3263 else
3264         cat >>confdefs.h <<\_ACEOF
3265 #define CONFIG_JBD_DEBUG 1
3266 _ACEOF
3267
3268         echo "Enabling journal debugging"
3269 fi
3270
3271 else
3272   echo "Disabling journal debugging by default"
3273
3274 fi;
3275 # Check whether --enable-blkid-debug or --disable-blkid-debug was given.
3276 if test "${enable_blkid_debug+set}" = set; then
3277   enableval="$enable_blkid_debug"
3278   if test "$enableval" = "no"
3279 then
3280         echo "Disabling blkid debugging"
3281 else
3282         cat >>confdefs.h <<\_ACEOF
3283 #define CONFIG_BLKID_DEBUG 1
3284 _ACEOF
3285
3286         echo "Enabling blkid debugging"
3287 fi
3288
3289 else
3290   echo "Disabling blkid debugging by default"
3291
3292 fi;
3293 # Check whether --enable-testio-debug or --disable-testio-debug was given.
3294 if test "${enable_testio_debug+set}" = set; then
3295   enableval="$enable_testio_debug"
3296   if test "$enableval" = "no"
3297 then
3298         echo "Disabling testio debugging"
3299 else
3300         cat >>confdefs.h <<\_ACEOF
3301 #define CONFIG_TESTIO_DEBUG 1
3302 _ACEOF
3303
3304         echo "Enabling testio debugging"
3305 fi
3306
3307 else
3308   echo "Disabling testio debugging by default"
3309
3310 fi;
3311 # Check whether --enable-swapfs or --disable-swapfs was given.
3312 if test "${enable_swapfs+set}" = set; then
3313   enableval="$enable_swapfs"
3314   if test "$enableval" = "no"
3315 then
3316         SWAPFS_CMT=#
3317         echo "Disabling swapfs support"
3318 else
3319         SWAPFS_CMT=
3320         cat >>confdefs.h <<\_ACEOF
3321 #define ENABLE_SWAPFS 1
3322 _ACEOF
3323
3324         echo "Enabling swapfs support"
3325 fi
3326
3327 else
3328   SWAPFS_CMT=
3329 echo "Enabling swapfs support by default"
3330 cat >>confdefs.h <<\_ACEOF
3331 #define ENABLE_SWAPFS 1
3332 _ACEOF
3333
3334
3335 fi;
3336
3337 # Check whether --enable-debugfs or --disable-debugfs was given.
3338 if test "${enable_debugfs+set}" = set; then
3339   enableval="$enable_debugfs"
3340   if test "$enableval" = "no"
3341 then
3342         echo "Disabling debugfs support"
3343         DEBUGFS_CMT="#"
3344 else
3345         DEBUGFS_CMT=
3346         echo "Enabling debugfs support"
3347 fi
3348
3349 else
3350   echo "Enabling debugfs support by default"
3351 DEBUGFS_CMT=
3352
3353 fi;
3354
3355 # Check whether --enable-imager or --disable-imager was given.
3356 if test "${enable_imager+set}" = set; then
3357   enableval="$enable_imager"
3358   if test "$enableval" = "no"
3359 then
3360         echo "Disabling e2image support"
3361         IMAGER_CMT="#"
3362 else
3363         IMAGER_CMT=
3364         echo "Enabling e2image support"
3365 fi
3366
3367 else
3368   echo "Enabling e2image support by default"
3369 IMAGER_CMT=
3370
3371 fi;
3372
3373 # Check whether --enable-resizer or --disable-resizer was given.
3374 if test "${enable_resizer+set}" = set; then
3375   enableval="$enable_resizer"
3376   if test "$enableval" = "no"
3377 then
3378         echo "Disabling e2resize support"
3379         RESIZER_CMT="#"
3380 else
3381         RESIZER_CMT=
3382         echo "Enabling e2resize support"
3383 fi
3384
3385 else
3386   echo "Enabling e2resize support by default"
3387 RESIZER_CMT=
3388
3389 fi;
3390
3391 # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
3392 if test "${enable_dynamic_e2fsck+set}" = set; then
3393   enableval="$enable_dynamic_e2fsck"
3394   if test "$enableval" = "no"
3395 then
3396         E2FSCK_TYPE=static
3397         echo "Building e2fsck statically"
3398 else
3399         E2FSCK_TYPE=shared
3400         echo "Building e2fsck dynamically"
3401 fi
3402
3403 else
3404   E2FSCK_TYPE=static
3405 echo "Building e2fsck statically by default"
3406
3407 fi;
3408
3409 # Check whether --enable-fsck or --disable-fsck was given.
3410 if test "${enable_fsck+set}" = set; then
3411   enableval="$enable_fsck"
3412   if test "$enableval" = "no"
3413 then
3414         FSCK_PROG='' FSCK_MAN=''
3415         echo "Not building fsck wrapper"
3416 else
3417         FSCK_PROG=fsck FSCK_MAN=fsck.8
3418         echo "Building fsck wrapper"
3419 fi
3420
3421 else
3422   case "$host_os" in
3423   gnu*)
3424     FSCK_PROG='' FSCK_MAN=''
3425     echo "Not building fsck wrapper by default"
3426     ;;
3427   *)
3428     FSCK_PROG=fsck FSCK_MAN=fsck.8
3429     echo "Building fsck wrapper by default"
3430 esac
3431
3432 fi;
3433
3434
3435 # Check whether --enable-e2initrd-helper or --disable-e2initrd-helper was given.
3436 if test "${enable_e2initrd_helper+set}" = set; then
3437   enableval="$enable_e2initrd_helper"
3438   if test "$enableval" = "no"
3439 then
3440         E2INITRD_PROG='' E2INITRD_MAN=''
3441         echo "Not building e2initrd helper"
3442 else
3443         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
3444         echo "Building e2initrd helper"
3445 fi
3446
3447 else
3448   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
3449 echo "Building e2initrd helper by default"
3450
3451 fi;
3452
3453
3454 # Check whether --enable-blkid-devmapper or --disable-blkid-devmapper was given.
3455 if test "${enable_blkid_devmapper+set}" = set; then
3456   enableval="$enable_blkid_devmapper"
3457   if test "$enableval" = "no"
3458 then
3459         echo "Disabling device-mapper support"
3460         DEVMAPPER_REQ=''
3461         DEVMAPPER_LIBS=''
3462         STATIC_DEVMAPPER_LIBS=''
3463 else
3464         cat >>confdefs.h <<\_ACEOF
3465 #define HAVE_DEVMAPPER 1
3466 _ACEOF
3467
3468         echo "Enabling device-mapper support"
3469
3470         DEVMAPPER_REQ='libselinux libsepol'
3471         DEVMAPPER_PC_LIBS='-ldevmapper'
3472         DEVMAPPER_LIBS='-ldevmapper -lselinux -lsepol'
3473         STATIC_DEVMAPPER_LIBS='/usr/lib/libdevmapper.a /usr/lib/libselinux.a /usr/lib/libsepol.a'
3474
3475 fi
3476
3477 else
3478   echo "Disabling device-mapper support by default"
3479
3480 fi;
3481
3482
3483
3484
3485 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
3486
3487 GETTEXT_PACKAGE=e2fsprogs
3488 PACKAGE=e2fsprogs
3489 VERSION="$E2FSPROGS_VERSION"
3490 VERSION=0.14.1
3491 cat >>confdefs.h <<_ACEOF
3492 #define PACKAGE "$PACKAGE"
3493 _ACEOF
3494
3495 cat >>confdefs.h <<_ACEOF
3496 #define VERSION "$VERSION"
3497 _ACEOF
3498
3499
3500
3501
3502
3503 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3504 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3505 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3506 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3507   echo $ECHO_N "(cached) $ECHO_C" >&6
3508 else
3509   cat >conftest.make <<\_ACEOF
3510 all:
3511         @echo 'ac_maketemp="$(MAKE)"'
3512 _ACEOF
3513 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3514 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3515 if test -n "$ac_maketemp"; then
3516   eval ac_cv_prog_make_${ac_make}_set=yes
3517 else
3518   eval ac_cv_prog_make_${ac_make}_set=no
3519 fi
3520 rm -f conftest.make
3521 fi
3522 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3523   echo "$as_me:$LINENO: result: yes" >&5
3524 echo "${ECHO_T}yes" >&6
3525   SET_MAKE=
3526 else
3527   echo "$as_me:$LINENO: result: no" >&5
3528 echo "${ECHO_T}no" >&6
3529   SET_MAKE="MAKE=${MAKE-make}"
3530 fi
3531
3532 # Find a good install program.  We prefer a C program (faster),
3533 # so one script is as good as another.  But avoid the broken or
3534 # incompatible versions:
3535 # SysV /etc/install, /usr/sbin/install
3536 # SunOS /usr/etc/install
3537 # IRIX /sbin/install
3538 # AIX /bin/install
3539 # AmigaOS /C/install, which installs bootblocks on floppy discs
3540 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3541 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3542 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3543 # OS/2's system install, which has a completely different semantic
3544 # ./install, which can be erroneously created by make from ./install.sh.
3545 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3546 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3547 if test -z "$INSTALL"; then
3548 if test "${ac_cv_path_install+set}" = set; then
3549   echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 for as_dir in $PATH
3553 do
3554   IFS=$as_save_IFS
3555   test -z "$as_dir" && as_dir=.
3556   # Account for people who put trailing slashes in PATH elements.
3557 case $as_dir/ in
3558   ./ | .// | /cC/* | \
3559   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3560   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3561   /usr/ucb/* ) ;;
3562   *)
3563     # OSF1 and SCO ODT 3.0 have their own names for install.
3564     # Don't use installbsd from OSF since it installs stuff as root
3565     # by default.
3566     for ac_prog in ginstall scoinst install; do
3567       for ac_exec_ext in '' $ac_executable_extensions; do
3568         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3569           if test $ac_prog = install &&
3570             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3571             # AIX install.  It has an incompatible calling convention.
3572             :
3573           elif test $ac_prog = install &&
3574             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3575             # program-specific install script used by HP pwplus--don't use.
3576             :
3577           else
3578             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3579             break 3
3580           fi
3581         fi
3582       done
3583     done
3584     ;;
3585 esac
3586 done
3587
3588
3589 fi
3590   if test "${ac_cv_path_install+set}" = set; then
3591     INSTALL=$ac_cv_path_install
3592   else
3593     # As a last resort, use the slow shell script.  We don't cache a
3594     # path for INSTALL within a source directory, because that will
3595     # break other packages using the cache if that directory is
3596     # removed, or if the path is relative.
3597     INSTALL=$ac_install_sh
3598   fi
3599 fi
3600 echo "$as_me:$LINENO: result: $INSTALL" >&5
3601 echo "${ECHO_T}$INSTALL" >&6
3602
3603 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3604 # It thinks the first close brace ends the variable substitution.
3605 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3606
3607 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3608
3609 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3610
3611
3612         MKINSTALLDIRS=
3613   if test -n "$ac_aux_dir"; then
3614     case "$ac_aux_dir" in
3615       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
3616       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
3617     esac
3618   fi
3619   if test -z "$MKINSTALLDIRS"; then
3620     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3621   fi
3622
3623
3624
3625   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3626 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3627     # Check whether --enable-nls or --disable-nls was given.
3628 if test "${enable_nls+set}" = set; then
3629   enableval="$enable_nls"
3630   USE_NLS=$enableval
3631 else
3632   USE_NLS=yes
3633 fi;
3634   echo "$as_me:$LINENO: result: $USE_NLS" >&5
3635 echo "${ECHO_T}$USE_NLS" >&6
3636
3637
3638
3639
3640
3641
3642 # Prepare PATH_SEPARATOR.
3643 # The user is always right.
3644 if test "${PATH_SEPARATOR+set}" != set; then
3645   echo "#! /bin/sh" >conf$$.sh
3646   echo  "exit 0"   >>conf$$.sh
3647   chmod +x conf$$.sh
3648   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3649     PATH_SEPARATOR=';'
3650   else
3651     PATH_SEPARATOR=:
3652   fi
3653   rm -f conf$$.sh
3654 fi
3655
3656 # Find out how to test for executable files. Don't use a zero-byte file,
3657 # as systems may use methods other than mode bits to determine executability.
3658 cat >conf$$.file <<_ASEOF
3659 #! /bin/sh
3660 exit 0
3661 _ASEOF
3662 chmod +x conf$$.file
3663 if test -x conf$$.file >/dev/null 2>&1; then
3664   ac_executable_p="test -x"
3665 else
3666   ac_executable_p="test -f"
3667 fi
3668 rm -f conf$$.file
3669
3670 # Extract the first word of "msgfmt", so it can be a program name with args.
3671 set dummy msgfmt; ac_word=$2
3672 echo "$as_me:$LINENO: checking for $ac_word" >&5
3673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3674 if test "${ac_cv_path_MSGFMT+set}" = set; then
3675   echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677   case "$MSGFMT" in
3678   [\\/]* | ?:[\\/]*)
3679     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3680     ;;
3681   *)
3682     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3683     for ac_dir in $PATH; do
3684       IFS="$ac_save_IFS"
3685       test -z "$ac_dir" && ac_dir=.
3686       for ac_exec_ext in '' $ac_executable_extensions; do
3687         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3688           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3689      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3690             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3691             break 2
3692           fi
3693         fi
3694       done
3695     done
3696     IFS="$ac_save_IFS"
3697   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3698     ;;
3699 esac
3700 fi
3701 MSGFMT="$ac_cv_path_MSGFMT"
3702 if test "$MSGFMT" != ":"; then
3703   echo "$as_me:$LINENO: result: $MSGFMT" >&5
3704 echo "${ECHO_T}$MSGFMT" >&6
3705 else
3706   echo "$as_me:$LINENO: result: no" >&5
3707 echo "${ECHO_T}no" >&6
3708 fi
3709
3710   # Extract the first word of "gmsgfmt", so it can be a program name with args.
3711 set dummy gmsgfmt; ac_word=$2
3712 echo "$as_me:$LINENO: checking for $ac_word" >&5
3713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3714 if test "${ac_cv_path_GMSGFMT+set}" = set; then
3715   echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717   case $GMSGFMT in
3718   [\\/]* | ?:[\\/]*)
3719   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3720   ;;
3721   *)
3722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 for as_dir in $PATH
3724 do
3725   IFS=$as_save_IFS
3726   test -z "$as_dir" && as_dir=.
3727   for ac_exec_ext in '' $ac_executable_extensions; do
3728   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3729     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3731     break 2
3732   fi
3733 done
3734 done
3735
3736   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3737   ;;
3738 esac
3739 fi
3740 GMSGFMT=$ac_cv_path_GMSGFMT
3741
3742 if test -n "$GMSGFMT"; then
3743   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
3744 echo "${ECHO_T}$GMSGFMT" >&6
3745 else
3746   echo "$as_me:$LINENO: result: no" >&5
3747 echo "${ECHO_T}no" >&6
3748 fi
3749
3750
3751
3752 # Prepare PATH_SEPARATOR.
3753 # The user is always right.
3754 if test "${PATH_SEPARATOR+set}" != set; then
3755   echo "#! /bin/sh" >conf$$.sh
3756   echo  "exit 0"   >>conf$$.sh
3757   chmod +x conf$$.sh
3758   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3759     PATH_SEPARATOR=';'
3760   else
3761     PATH_SEPARATOR=:
3762   fi
3763   rm -f conf$$.sh
3764 fi
3765
3766 # Find out how to test for executable files. Don't use a zero-byte file,
3767 # as systems may use methods other than mode bits to determine executability.
3768 cat >conf$$.file <<_ASEOF
3769 #! /bin/sh
3770 exit 0
3771 _ASEOF
3772 chmod +x conf$$.file
3773 if test -x conf$$.file >/dev/null 2>&1; then
3774   ac_executable_p="test -x"
3775 else
3776   ac_executable_p="test -f"
3777 fi
3778 rm -f conf$$.file
3779
3780 # Extract the first word of "xgettext", so it can be a program name with args.
3781 set dummy xgettext; ac_word=$2
3782 echo "$as_me:$LINENO: checking for $ac_word" >&5
3783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3784 if test "${ac_cv_path_XGETTEXT+set}" = set; then
3785   echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787   case "$XGETTEXT" in
3788   [\\/]* | ?:[\\/]*)
3789     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3790     ;;
3791   *)
3792     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3793     for ac_dir in $PATH; do
3794       IFS="$ac_save_IFS"
3795       test -z "$ac_dir" && ac_dir=.
3796       for ac_exec_ext in '' $ac_executable_extensions; do
3797         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3798           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3799      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3800             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3801             break 2
3802           fi
3803         fi
3804       done
3805     done
3806     IFS="$ac_save_IFS"
3807   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3808     ;;
3809 esac
3810 fi
3811 XGETTEXT="$ac_cv_path_XGETTEXT"
3812 if test "$XGETTEXT" != ":"; then
3813   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
3814 echo "${ECHO_T}$XGETTEXT" >&6
3815 else
3816   echo "$as_me:$LINENO: result: no" >&5
3817 echo "${ECHO_T}no" >&6
3818 fi
3819
3820     rm -f messages.po
3821
3822
3823 # Prepare PATH_SEPARATOR.
3824 # The user is always right.
3825 if test "${PATH_SEPARATOR+set}" != set; then
3826   echo "#! /bin/sh" >conf$$.sh
3827   echo  "exit 0"   >>conf$$.sh
3828   chmod +x conf$$.sh
3829   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3830     PATH_SEPARATOR=';'
3831   else
3832     PATH_SEPARATOR=:
3833   fi
3834   rm -f conf$$.sh
3835 fi
3836
3837 # Find out how to test for executable files. Don't use a zero-byte file,
3838 # as systems may use methods other than mode bits to determine executability.
3839 cat >conf$$.file <<_ASEOF
3840 #! /bin/sh
3841 exit 0
3842 _ASEOF
3843 chmod +x conf$$.file
3844 if test -x conf$$.file >/dev/null 2>&1; then
3845   ac_executable_p="test -x"
3846 else
3847   ac_executable_p="test -f"
3848 fi
3849 rm -f conf$$.file
3850
3851 # Extract the first word of "msgmerge", so it can be a program name with args.
3852 set dummy msgmerge; ac_word=$2
3853 echo "$as_me:$LINENO: checking for $ac_word" >&5
3854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3855 if test "${ac_cv_path_MSGMERGE+set}" = set; then
3856   echo $ECHO_N "(cached) $ECHO_C" >&6
3857 else
3858   case "$MSGMERGE" in
3859   [\\/]* | ?:[\\/]*)
3860     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3861     ;;
3862   *)
3863     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3864     for ac_dir in $PATH; do
3865       IFS="$ac_save_IFS"
3866       test -z "$ac_dir" && ac_dir=.
3867       for ac_exec_ext in '' $ac_executable_extensions; do
3868         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3869           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3870             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3871             break 2
3872           fi
3873         fi
3874       done
3875     done
3876     IFS="$ac_save_IFS"
3877   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3878     ;;
3879 esac
3880 fi
3881 MSGMERGE="$ac_cv_path_MSGMERGE"
3882 if test "$MSGMERGE" != ":"; then
3883   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
3884 echo "${ECHO_T}$MSGMERGE" >&6
3885 else
3886   echo "$as_me:$LINENO: result: no" >&5
3887 echo "${ECHO_T}no" >&6
3888 fi
3889
3890
3891       if test "$GMSGFMT" != ":"; then
3892             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3893        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3894       : ;
3895     else
3896       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3897       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3898 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
3899       GMSGFMT=":"
3900     fi
3901   fi
3902
3903       if test "$XGETTEXT" != ":"; then
3904             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3905        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3906       : ;
3907     else
3908       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
3909 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
3910       XGETTEXT=":"
3911     fi
3912         rm -f messages.po
3913   fi
3914
3915             ac_config_commands="$ac_config_commands default-1"
3916
3917
3918 if test -n "$ac_tool_prefix"; then
3919   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3920 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3921 echo "$as_me:$LINENO: checking for $ac_word" >&5
3922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3923 if test "${ac_cv_prog_RANLIB+set}" = set; then
3924   echo $ECHO_N "(cached) $ECHO_C" >&6
3925 else
3926   if test -n "$RANLIB"; then
3927   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3928 else
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH
3931 do
3932   IFS=$as_save_IFS
3933   test -z "$as_dir" && as_dir=.
3934   for ac_exec_ext in '' $ac_executable_extensions; do
3935   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3938     break 2
3939   fi
3940 done
3941 done
3942
3943 fi
3944 fi
3945 RANLIB=$ac_cv_prog_RANLIB
3946 if test -n "$RANLIB"; then
3947   echo "$as_me:$LINENO: result: $RANLIB" >&5
3948 echo "${ECHO_T}$RANLIB" >&6
3949 else
3950   echo "$as_me:$LINENO: result: no" >&5
3951 echo "${ECHO_T}no" >&6
3952 fi
3953
3954 fi
3955 if test -z "$ac_cv_prog_RANLIB"; then
3956   ac_ct_RANLIB=$RANLIB
3957   # Extract the first word of "ranlib", so it can be a program name with args.
3958 set dummy ranlib; ac_word=$2
3959 echo "$as_me:$LINENO: checking for $ac_word" >&5
3960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3962   echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964   if test -n "$ac_ct_RANLIB"; then
3965   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3966 else
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH
3969 do
3970   IFS=$as_save_IFS
3971   test -z "$as_dir" && as_dir=.
3972   for ac_exec_ext in '' $ac_executable_extensions; do
3973   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974     ac_cv_prog_ac_ct_RANLIB="ranlib"
3975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976     break 2
3977   fi
3978 done
3979 done
3980
3981   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3982 fi
3983 fi
3984 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3985 if test -n "$ac_ct_RANLIB"; then
3986   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3987 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3988 else
3989   echo "$as_me:$LINENO: result: no" >&5
3990 echo "${ECHO_T}no" >&6
3991 fi
3992
3993   RANLIB=$ac_ct_RANLIB
3994 else
3995   RANLIB="$ac_cv_prog_RANLIB"
3996 fi
3997
3998
3999         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4000 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
4001 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4002   echo $ECHO_N "(cached) $ECHO_C" >&6
4003 else
4004   ac_check_lib_save_LIBS=$LIBS
4005 LIBS="-lcposix  $LIBS"
4006 cat >conftest.$ac_ext <<_ACEOF
4007 /* confdefs.h.  */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h.  */
4012
4013 /* Override any gcc2 internal prototype to avoid an error.  */
4014 #ifdef __cplusplus
4015 extern "C"
4016 #endif
4017 /* We use char because int might match the return type of a gcc2
4018    builtin and then its argument prototype would still apply.  */
4019 char strerror ();
4020 int
4021 main ()
4022 {
4023 strerror ();
4024   ;
4025   return 0;
4026 }
4027 _ACEOF
4028 rm -f conftest.$ac_objext conftest$ac_exeext
4029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4030   (eval $ac_link) 2>conftest.er1
4031   ac_status=$?
4032   grep -v '^ *+' conftest.er1 >conftest.err
4033   rm -f conftest.er1
4034   cat conftest.err >&5
4035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036   (exit $ac_status); } &&
4037          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039   (eval $ac_try) 2>&5
4040   ac_status=$?
4041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042   (exit $ac_status); }; } &&
4043          { ac_try='test -s conftest$ac_exeext'
4044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045   (eval $ac_try) 2>&5
4046   ac_status=$?
4047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048   (exit $ac_status); }; }; then
4049   ac_cv_lib_cposix_strerror=yes
4050 else
4051   echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4053
4054 ac_cv_lib_cposix_strerror=no
4055 fi
4056 rm -f conftest.err conftest.$ac_objext \
4057       conftest$ac_exeext conftest.$ac_ext
4058 LIBS=$ac_check_lib_save_LIBS
4059 fi
4060 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4061 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
4062 if test $ac_cv_lib_cposix_strerror = yes; then
4063   LIBS="$LIBS -lcposix"
4064 fi
4065
4066
4067
4068 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4069 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4070 if test "${ac_cv_c_const+set}" = set; then
4071   echo $ECHO_N "(cached) $ECHO_C" >&6
4072 else
4073   cat >conftest.$ac_ext <<_ACEOF
4074 /* confdefs.h.  */
4075 _ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h.  */
4079
4080 int
4081 main ()
4082 {
4083 /* FIXME: Include the comments suggested by Paul. */
4084 #ifndef __cplusplus
4085   /* Ultrix mips cc rejects this.  */
4086   typedef int charset[2];
4087   const charset x;
4088   /* SunOS 4.1.1 cc rejects this.  */
4089   char const *const *ccp;
4090   char **p;
4091   /* NEC SVR4.0.2 mips cc rejects this.  */
4092   struct point {int x, y;};
4093   static struct point const zero = {0,0};
4094   /* AIX XL C 1.02.0.0 rejects this.
4095      It does not let you subtract one const X* pointer from another in
4096      an arm of an if-expression whose if-part is not a constant
4097      expression */
4098   const char *g = "string";
4099   ccp = &g + (g ? g-g : 0);
4100   /* HPUX 7.0 cc rejects these. */
4101   ++ccp;
4102   p = (char**) ccp;
4103   ccp = (char const *const *) p;
4104   { /* SCO 3.2v4 cc rejects this.  */
4105     char *t;
4106     char const *s = 0 ? (char *) 0 : (char const *) 0;
4107
4108     *t++ = 0;
4109   }
4110   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4111     int x[] = {25, 17};
4112     const int *foo = &x[0];
4113     ++foo;
4114   }
4115   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4116     typedef const int *iptr;
4117     iptr p = 0;
4118     ++p;
4119   }
4120   { /* AIX XL C 1.02.0.0 rejects this saying
4121        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4122     struct s { int j; const int *ap[3]; };
4123     struct s *b; b->j = 5;
4124   }
4125   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4126     const int foo = 10;
4127   }
4128 #endif
4129
4130   ;
4131   return 0;
4132 }
4133 _ACEOF
4134 rm -f conftest.$ac_objext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136   (eval $ac_compile) 2>conftest.er1
4137   ac_status=$?
4138   grep -v '^ *+' conftest.er1 >conftest.err
4139   rm -f conftest.er1
4140   cat conftest.err >&5
4141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142   (exit $ac_status); } &&
4143          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145   (eval $ac_try) 2>&5
4146   ac_status=$?
4147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148   (exit $ac_status); }; } &&
4149          { ac_try='test -s conftest.$ac_objext'
4150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151   (eval $ac_try) 2>&5
4152   ac_status=$?
4153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154   (exit $ac_status); }; }; then
4155   ac_cv_c_const=yes
4156 else
4157   echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4159
4160 ac_cv_c_const=no
4161 fi
4162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4163 fi
4164 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4165 echo "${ECHO_T}$ac_cv_c_const" >&6
4166 if test $ac_cv_c_const = no; then
4167
4168 cat >>confdefs.h <<\_ACEOF
4169 #define const
4170 _ACEOF
4171
4172 fi
4173
4174
4175   echo "$as_me:$LINENO: checking for signed" >&5
4176 echo $ECHO_N "checking for signed... $ECHO_C" >&6
4177 if test "${bh_cv_c_signed+set}" = set; then
4178   echo $ECHO_N "(cached) $ECHO_C" >&6
4179 else
4180   cat >conftest.$ac_ext <<_ACEOF
4181 /* confdefs.h.  */
4182 _ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h.  */
4186
4187 int
4188 main ()
4189 {
4190 signed char x;
4191   ;
4192   return 0;
4193 }
4194 _ACEOF
4195 rm -f conftest.$ac_objext
4196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4197   (eval $ac_compile) 2>conftest.er1
4198   ac_status=$?
4199   grep -v '^ *+' conftest.er1 >conftest.err
4200   rm -f conftest.er1
4201   cat conftest.err >&5
4202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203   (exit $ac_status); } &&
4204          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206   (eval $ac_try) 2>&5
4207   ac_status=$?
4208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209   (exit $ac_status); }; } &&
4210          { ac_try='test -s conftest.$ac_objext'
4211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212   (eval $ac_try) 2>&5
4213   ac_status=$?
4214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215   (exit $ac_status); }; }; then
4216   bh_cv_c_signed=yes
4217 else
4218   echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.$ac_ext >&5
4220
4221 bh_cv_c_signed=no
4222 fi
4223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4224 fi
4225 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4226 echo "${ECHO_T}$bh_cv_c_signed" >&6
4227   if test $bh_cv_c_signed = no; then
4228
4229 cat >>confdefs.h <<\_ACEOF
4230 #define signed
4231 _ACEOF
4232
4233   fi
4234
4235 echo "$as_me:$LINENO: checking for inline" >&5
4236 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4237 if test "${ac_cv_c_inline+set}" = set; then
4238   echo $ECHO_N "(cached) $ECHO_C" >&6
4239 else
4240   ac_cv_c_inline=no
4241 for ac_kw in inline __inline__ __inline; do
4242   cat >conftest.$ac_ext <<_ACEOF
4243 /* confdefs.h.  */
4244 _ACEOF
4245 cat confdefs.h >>conftest.$ac_ext
4246 cat >>conftest.$ac_ext <<_ACEOF
4247 /* end confdefs.h.  */
4248 #ifndef __cplusplus
4249 typedef int foo_t;
4250 static $ac_kw foo_t static_foo () {return 0; }
4251 $ac_kw foo_t foo () {return 0; }
4252 #endif
4253
4254 _ACEOF
4255 rm -f conftest.$ac_objext
4256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4257   (eval $ac_compile) 2>conftest.er1
4258   ac_status=$?
4259   grep -v '^ *+' conftest.er1 >conftest.err
4260   rm -f conftest.er1
4261   cat conftest.err >&5
4262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263   (exit $ac_status); } &&
4264          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266   (eval $ac_try) 2>&5
4267   ac_status=$?
4268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269   (exit $ac_status); }; } &&
4270          { ac_try='test -s conftest.$ac_objext'
4271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272   (eval $ac_try) 2>&5
4273   ac_status=$?
4274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275   (exit $ac_status); }; }; then
4276   ac_cv_c_inline=$ac_kw; break
4277 else
4278   echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4280
4281 fi
4282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4283 done
4284
4285 fi
4286 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4287 echo "${ECHO_T}$ac_cv_c_inline" >&6
4288
4289
4290 case $ac_cv_c_inline in
4291   inline | yes) ;;
4292   *)
4293     case $ac_cv_c_inline in
4294       no) ac_val=;;
4295       *) ac_val=$ac_cv_c_inline;;
4296     esac
4297     cat >>confdefs.h <<_ACEOF
4298 #ifndef __cplusplus
4299 #define inline $ac_val
4300 #endif
4301 _ACEOF
4302     ;;
4303 esac
4304
4305 echo "$as_me:$LINENO: checking for off_t" >&5
4306 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4307 if test "${ac_cv_type_off_t+set}" = set; then
4308   echo $ECHO_N "(cached) $ECHO_C" >&6
4309 else
4310   cat >conftest.$ac_ext <<_ACEOF
4311 /* confdefs.h.  */
4312 _ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h.  */
4316 $ac_includes_default
4317 int
4318 main ()
4319 {
4320 if ((off_t *) 0)
4321   return 0;
4322 if (sizeof (off_t))
4323   return 0;
4324   ;
4325   return 0;
4326 }
4327 _ACEOF
4328 rm -f conftest.$ac_objext
4329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4330   (eval $ac_compile) 2>conftest.er1
4331   ac_status=$?
4332   grep -v '^ *+' conftest.er1 >conftest.err
4333   rm -f conftest.er1
4334   cat conftest.err >&5
4335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336   (exit $ac_status); } &&
4337          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339   (eval $ac_try) 2>&5
4340   ac_status=$?
4341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342   (exit $ac_status); }; } &&
4343          { ac_try='test -s conftest.$ac_objext'
4344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345   (eval $ac_try) 2>&5
4346   ac_status=$?
4347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348   (exit $ac_status); }; }; then
4349   ac_cv_type_off_t=yes
4350 else
4351   echo "$as_me: failed program was:" >&5
4352 sed 's/^/| /' conftest.$ac_ext >&5
4353
4354 ac_cv_type_off_t=no
4355 fi
4356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4357 fi
4358 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4359 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4360 if test $ac_cv_type_off_t = yes; then
4361   :
4362 else
4363
4364 cat >>confdefs.h <<_ACEOF
4365 #define off_t long
4366 _ACEOF
4367
4368 fi
4369
4370 echo "$as_me:$LINENO: checking for size_t" >&5
4371 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4372 if test "${ac_cv_type_size_t+set}" = set; then
4373   echo $ECHO_N "(cached) $ECHO_C" >&6
4374 else
4375   cat >conftest.$ac_ext <<_ACEOF
4376 /* confdefs.h.  */
4377 _ACEOF
4378 cat confdefs.h >>conftest.$ac_ext
4379 cat >>conftest.$ac_ext <<_ACEOF
4380 /* end confdefs.h.  */
4381 $ac_includes_default
4382 int
4383 main ()
4384 {
4385 if ((size_t *) 0)
4386   return 0;
4387 if (sizeof (size_t))
4388   return 0;
4389   ;
4390   return 0;
4391 }
4392 _ACEOF
4393 rm -f conftest.$ac_objext
4394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4395   (eval $ac_compile) 2>conftest.er1
4396   ac_status=$?
4397   grep -v '^ *+' conftest.er1 >conftest.err
4398   rm -f conftest.er1
4399   cat conftest.err >&5
4400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401   (exit $ac_status); } &&
4402          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404   (eval $ac_try) 2>&5
4405   ac_status=$?
4406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407   (exit $ac_status); }; } &&
4408          { ac_try='test -s conftest.$ac_objext'
4409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410   (eval $ac_try) 2>&5
4411   ac_status=$?
4412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413   (exit $ac_status); }; }; then
4414   ac_cv_type_size_t=yes
4415 else
4416   echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4418
4419 ac_cv_type_size_t=no
4420 fi
4421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4422 fi
4423 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4424 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4425 if test $ac_cv_type_size_t = yes; then
4426   :
4427 else
4428
4429 cat >>confdefs.h <<_ACEOF
4430 #define size_t unsigned
4431 _ACEOF
4432
4433 fi
4434
4435
4436   echo "$as_me:$LINENO: checking for long long" >&5
4437 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4438 if test "${ac_cv_type_long_long+set}" = set; then
4439   echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441   cat >conftest.$ac_ext <<_ACEOF
4442 /* confdefs.h.  */
4443 _ACEOF
4444 cat confdefs.h >>conftest.$ac_ext
4445 cat >>conftest.$ac_ext <<_ACEOF
4446 /* end confdefs.h.  */
4447 long long ll = 1LL; int i = 63;
4448 int
4449 main ()
4450 {
4451 long long llmax = (long long) -1;
4452      return ll << i | ll >> i | llmax / ll | llmax % ll;
4453   ;
4454   return 0;
4455 }
4456 _ACEOF
4457 rm -f conftest.$ac_objext conftest$ac_exeext
4458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4459   (eval $ac_link) 2>conftest.er1
4460   ac_status=$?
4461   grep -v '^ *+' conftest.er1 >conftest.err
4462   rm -f conftest.er1
4463   cat conftest.err >&5
4464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465   (exit $ac_status); } &&
4466          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468   (eval $ac_try) 2>&5
4469   ac_status=$?
4470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); }; } &&
4472          { ac_try='test -s conftest$ac_exeext'
4473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474   (eval $ac_try) 2>&5
4475   ac_status=$?
4476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477   (exit $ac_status); }; }; then
4478   ac_cv_type_long_long=yes
4479 else
4480   echo "$as_me: failed program was:" >&5
4481 sed 's/^/| /' conftest.$ac_ext >&5
4482
4483 ac_cv_type_long_long=no
4484 fi
4485 rm -f conftest.err conftest.$ac_objext \
4486       conftest$ac_exeext conftest.$ac_ext
4487 fi
4488 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4489 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4490   if test $ac_cv_type_long_long = yes; then
4491
4492 cat >>confdefs.h <<\_ACEOF
4493 #define HAVE_LONG_LONG 1
4494 _ACEOF
4495
4496   fi
4497
4498
4499   echo "$as_me:$LINENO: checking for long double" >&5
4500 echo $ECHO_N "checking for long double... $ECHO_C" >&6
4501 if test "${gt_cv_c_long_double+set}" = set; then
4502   echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504   if test "$GCC" = yes; then
4505        gt_cv_c_long_double=yes
4506      else
4507        cat >conftest.$ac_ext <<_ACEOF
4508 /* confdefs.h.  */
4509 _ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4512 /* end confdefs.h.  */
4513
4514          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
4515          long double foo = 0.0;
4516          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
4517          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
4518
4519 int
4520 main ()
4521 {
4522
4523   ;
4524   return 0;
4525 }
4526 _ACEOF
4527 rm -f conftest.$ac_objext
4528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4529   (eval $ac_compile) 2>conftest.er1
4530   ac_status=$?
4531   grep -v '^ *+' conftest.er1 >conftest.err
4532   rm -f conftest.er1
4533   cat conftest.err >&5
4534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535   (exit $ac_status); } &&
4536          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538   (eval $ac_try) 2>&5
4539   ac_status=$?
4540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541   (exit $ac_status); }; } &&
4542          { ac_try='test -s conftest.$ac_objext'
4543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544   (eval $ac_try) 2>&5
4545   ac_status=$?
4546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547   (exit $ac_status); }; }; then
4548   gt_cv_c_long_double=yes
4549 else
4550   echo "$as_me: failed program was:" >&5
4551 sed 's/^/| /' conftest.$ac_ext >&5
4552
4553 gt_cv_c_long_double=no
4554 fi
4555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4556      fi
4557 fi
4558 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
4559 echo "${ECHO_T}$gt_cv_c_long_double" >&6
4560   if test $gt_cv_c_long_double = yes; then
4561
4562 cat >>confdefs.h <<\_ACEOF
4563 #define HAVE_LONG_DOUBLE 1
4564 _ACEOF
4565
4566   fi
4567
4568
4569   echo "$as_me:$LINENO: checking for wchar_t" >&5
4570 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
4571 if test "${gt_cv_c_wchar_t+set}" = set; then
4572   echo $ECHO_N "(cached) $ECHO_C" >&6
4573 else
4574   cat >conftest.$ac_ext <<_ACEOF
4575 /* confdefs.h.  */
4576 _ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h.  */
4580 #include <stddef.h>
4581        wchar_t foo = (wchar_t)'\0';
4582 int
4583 main ()
4584 {
4585
4586   ;
4587   return 0;
4588 }
4589 _ACEOF
4590 rm -f conftest.$ac_objext
4591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4592   (eval $ac_compile) 2>conftest.er1
4593   ac_status=$?
4594   grep -v '^ *+' conftest.er1 >conftest.err
4595   rm -f conftest.er1
4596   cat conftest.err >&5
4597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598   (exit $ac_status); } &&
4599          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601   (eval $ac_try) 2>&5
4602   ac_status=$?
4603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604   (exit $ac_status); }; } &&
4605          { ac_try='test -s conftest.$ac_objext'
4606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607   (eval $ac_try) 2>&5
4608   ac_status=$?
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); }; }; then
4611   gt_cv_c_wchar_t=yes
4612 else
4613   echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.$ac_ext >&5
4615
4616 gt_cv_c_wchar_t=no
4617 fi
4618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4619 fi
4620 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
4621 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
4622   if test $gt_cv_c_wchar_t = yes; then
4623
4624 cat >>confdefs.h <<\_ACEOF
4625 #define HAVE_WCHAR_T 1
4626 _ACEOF
4627
4628   fi
4629
4630
4631   echo "$as_me:$LINENO: checking for wint_t" >&5
4632 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
4633 if test "${gt_cv_c_wint_t+set}" = set; then
4634   echo $ECHO_N "(cached) $ECHO_C" >&6
4635 else
4636   cat >conftest.$ac_ext <<_ACEOF
4637 /* confdefs.h.  */
4638 _ACEOF
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h.  */
4642 #include <wchar.h>
4643        wint_t foo = (wchar_t)'\0';
4644 int
4645 main ()
4646 {
4647
4648   ;
4649   return 0;
4650 }
4651 _ACEOF
4652 rm -f conftest.$ac_objext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654   (eval $ac_compile) 2>conftest.er1
4655   ac_status=$?
4656   grep -v '^ *+' conftest.er1 >conftest.err
4657   rm -f conftest.er1
4658   cat conftest.err >&5
4659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660   (exit $ac_status); } &&
4661          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663   (eval $ac_try) 2>&5
4664   ac_status=$?
4665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666   (exit $ac_status); }; } &&
4667          { ac_try='test -s conftest.$ac_objext'
4668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669   (eval $ac_try) 2>&5
4670   ac_status=$?
4671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672   (exit $ac_status); }; }; then
4673   gt_cv_c_wint_t=yes
4674 else
4675   echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4677
4678 gt_cv_c_wint_t=no
4679 fi
4680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4681 fi
4682 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
4683 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
4684   if test $gt_cv_c_wint_t = yes; then
4685
4686 cat >>confdefs.h <<\_ACEOF
4687 #define HAVE_WINT_T 1
4688 _ACEOF
4689
4690   fi
4691
4692
4693   echo "$as_me:$LINENO: checking for inttypes.h" >&5
4694 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4695 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
4696   echo $ECHO_N "(cached) $ECHO_C" >&6
4697 else
4698   cat >conftest.$ac_ext <<_ACEOF
4699 /* confdefs.h.  */
4700 _ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h.  */
4704 #include <sys/types.h>
4705 #include <inttypes.h>
4706 int
4707 main ()
4708 {
4709 uintmax_t i = (uintmax_t) -1;
4710   ;
4711   return 0;
4712 }
4713 _ACEOF
4714 rm -f conftest.$ac_objext
4715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4716   (eval $ac_compile) 2>conftest.er1
4717   ac_status=$?
4718   grep -v '^ *+' conftest.er1 >conftest.err
4719   rm -f conftest.er1
4720   cat conftest.err >&5
4721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722   (exit $ac_status); } &&
4723          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725   (eval $ac_try) 2>&5
4726   ac_status=$?
4727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728   (exit $ac_status); }; } &&
4729          { ac_try='test -s conftest.$ac_objext'
4730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731   (eval $ac_try) 2>&5
4732   ac_status=$?
4733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734   (exit $ac_status); }; }; then
4735   jm_ac_cv_header_inttypes_h=yes
4736 else
4737   echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4739
4740 jm_ac_cv_header_inttypes_h=no
4741 fi
4742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4743 fi
4744 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
4745 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
4746   if test $jm_ac_cv_header_inttypes_h = yes; then
4747
4748 cat >>confdefs.h <<_ACEOF
4749 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
4750 _ACEOF
4751
4752   fi
4753
4754
4755   echo "$as_me:$LINENO: checking for stdint.h" >&5
4756 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
4757 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
4758   echo $ECHO_N "(cached) $ECHO_C" >&6
4759 else
4760   cat >conftest.$ac_ext <<_ACEOF
4761 /* confdefs.h.  */
4762 _ACEOF
4763 cat confdefs.h >>conftest.$ac_ext
4764 cat >>conftest.$ac_ext <<_ACEOF
4765 /* end confdefs.h.  */
4766 #include <sys/types.h>
4767 #include <stdint.h>
4768 int
4769 main ()
4770 {
4771 uintmax_t i = (uintmax_t) -1;
4772   ;
4773   return 0;
4774 }
4775 _ACEOF
4776 rm -f conftest.$ac_objext
4777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4778   (eval $ac_compile) 2>conftest.er1
4779   ac_status=$?
4780   grep -v '^ *+' conftest.er1 >conftest.err
4781   rm -f conftest.er1
4782   cat conftest.err >&5
4783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784   (exit $ac_status); } &&
4785          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787   (eval $ac_try) 2>&5
4788   ac_status=$?
4789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790   (exit $ac_status); }; } &&
4791          { ac_try='test -s conftest.$ac_objext'
4792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793   (eval $ac_try) 2>&5
4794   ac_status=$?
4795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796   (exit $ac_status); }; }; then
4797   jm_ac_cv_header_stdint_h=yes
4798 else
4799   echo "$as_me: failed program was:" >&5
4800 sed 's/^/| /' conftest.$ac_ext >&5
4801
4802 jm_ac_cv_header_stdint_h=no
4803 fi
4804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4805 fi
4806 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
4807 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
4808   if test $jm_ac_cv_header_stdint_h = yes; then
4809
4810 cat >>confdefs.h <<_ACEOF
4811 #define HAVE_STDINT_H_WITH_UINTMAX 1
4812 _ACEOF
4813
4814   fi
4815
4816
4817
4818
4819   echo "$as_me:$LINENO: checking for intmax_t" >&5
4820 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
4821 if test "${gt_cv_c_intmax_t+set}" = set; then
4822   echo $ECHO_N "(cached) $ECHO_C" >&6
4823 else
4824   cat >conftest.$ac_ext <<_ACEOF
4825 /* confdefs.h.  */
4826 _ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h.  */
4830
4831 #include <stddef.h>
4832 #include <stdlib.h>
4833 #if HAVE_STDINT_H_WITH_UINTMAX
4834 #include <stdint.h>
4835 #endif
4836 #if HAVE_INTTYPES_H_WITH_UINTMAX
4837 #include <inttypes.h>
4838 #endif
4839
4840 int
4841 main ()
4842 {
4843 intmax_t x = -1;
4844   ;
4845   return 0;
4846 }
4847 _ACEOF
4848 rm -f conftest.$ac_objext
4849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4850   (eval $ac_compile) 2>conftest.er1
4851   ac_status=$?
4852   grep -v '^ *+' conftest.er1 >conftest.err
4853   rm -f conftest.er1
4854   cat conftest.err >&5
4855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856   (exit $ac_status); } &&
4857          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859   (eval $ac_try) 2>&5
4860   ac_status=$?
4861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862   (exit $ac_status); }; } &&
4863          { ac_try='test -s conftest.$ac_objext'
4864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865   (eval $ac_try) 2>&5
4866   ac_status=$?
4867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868   (exit $ac_status); }; }; then
4869   gt_cv_c_intmax_t=yes
4870 else
4871   echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4873
4874 gt_cv_c_intmax_t=no
4875 fi
4876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4877 fi
4878 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
4879 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
4880   if test $gt_cv_c_intmax_t = yes; then
4881
4882 cat >>confdefs.h <<\_ACEOF
4883 #define HAVE_INTMAX_T 1
4884 _ACEOF
4885
4886   fi
4887
4888
4889
4890   echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
4891 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
4892 if test "${gt_cv_func_printf_posix+set}" = set; then
4893   echo $ECHO_N "(cached) $ECHO_C" >&6
4894 else
4895
4896       if test "$cross_compiling" = yes; then
4897
4898         cat >conftest.$ac_ext <<_ACEOF
4899 /* confdefs.h.  */
4900 _ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h.  */
4904
4905 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
4906   notposix
4907 #endif
4908
4909 _ACEOF
4910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4911   $EGREP "notposix" >/dev/null 2>&1; then
4912   gt_cv_func_printf_posix="guessing no"
4913 else
4914   gt_cv_func_printf_posix="guessing yes"
4915 fi
4916 rm -f conftest*
4917
4918
4919 else
4920   cat >conftest.$ac_ext <<_ACEOF
4921 /* confdefs.h.  */
4922 _ACEOF
4923 cat confdefs.h >>conftest.$ac_ext
4924 cat >>conftest.$ac_ext <<_ACEOF
4925 /* end confdefs.h.  */
4926
4927 #include <stdio.h>
4928 #include <string.h>
4929 /* The string "%2$d %1$d", with dollar characters protected from the shell's
4930    dollar expansion (possibly an autoconf bug).  */
4931 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
4932 static char buf[100];
4933 int main ()
4934 {
4935   sprintf (buf, format, 33, 55);
4936   return (strcmp (buf, "55 33") != 0);
4937 }
4938 _ACEOF
4939 rm -f conftest$ac_exeext
4940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4941   (eval $ac_link) 2>&5
4942   ac_status=$?
4943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944   (exit $ac_status); } && { ac_try='./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_printf_posix=yes
4951 else
4952   echo "$as_me: program exited with status $ac_status" >&5
4953 echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4955
4956 ( exit $ac_status )
4957 gt_cv_func_printf_posix=no
4958 fi
4959 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4960 fi
4961
4962 fi
4963 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
4964 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
4965   case $gt_cv_func_printf_posix in
4966     *yes)
4967
4968 cat >>confdefs.h <<\_ACEOF
4969 #define HAVE_POSIX_PRINTF 1
4970 _ACEOF
4971
4972       ;;
4973   esac
4974
4975 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4976 # for constant arguments.  Useless!
4977 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4978 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4979 if test "${ac_cv_working_alloca_h+set}" = set; then
4980   echo $ECHO_N "(cached) $ECHO_C" >&6
4981 else
4982   cat >conftest.$ac_ext <<_ACEOF
4983 /* confdefs.h.  */
4984 _ACEOF
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h.  */
4988 #include <alloca.h>
4989 int
4990 main ()
4991 {
4992 char *p = (char *) alloca (2 * sizeof (int));
4993   ;
4994   return 0;
4995 }
4996 _ACEOF
4997 rm -f conftest.$ac_objext conftest$ac_exeext
4998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4999   (eval $ac_link) 2>conftest.er1
5000   ac_status=$?
5001   grep -v '^ *+' conftest.er1 >conftest.err
5002   rm -f conftest.er1
5003   cat conftest.err >&5
5004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005   (exit $ac_status); } &&
5006          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5008   (eval $ac_try) 2>&5
5009   ac_status=$?
5010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011   (exit $ac_status); }; } &&
5012          { ac_try='test -s conftest$ac_exeext'
5013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014   (eval $ac_try) 2>&5
5015   ac_status=$?
5016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017   (exit $ac_status); }; }; then
5018   ac_cv_working_alloca_h=yes
5019 else
5020   echo "$as_me: failed program was:" >&5
5021 sed 's/^/| /' conftest.$ac_ext >&5
5022
5023 ac_cv_working_alloca_h=no
5024 fi
5025 rm -f conftest.err conftest.$ac_objext \
5026       conftest$ac_exeext conftest.$ac_ext
5027 fi
5028 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5029 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5030 if test $ac_cv_working_alloca_h = yes; then
5031
5032 cat >>confdefs.h <<\_ACEOF
5033 #define HAVE_ALLOCA_H 1
5034 _ACEOF
5035
5036 fi
5037
5038 echo "$as_me:$LINENO: checking for alloca" >&5
5039 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5040 if test "${ac_cv_func_alloca_works+set}" = set; then
5041   echo $ECHO_N "(cached) $ECHO_C" >&6
5042 else
5043   cat >conftest.$ac_ext <<_ACEOF
5044 /* confdefs.h.  */
5045 _ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h.  */
5049 #ifdef __GNUC__
5050 # define alloca __builtin_alloca
5051 #else
5052 # ifdef _MSC_VER
5053 #  include <malloc.h>
5054 #  define alloca _alloca
5055 # else
5056 #  if HAVE_ALLOCA_H
5057 #   include <alloca.h>
5058 #  else
5059 #   ifdef _AIX
5060  #pragma alloca
5061 #   else
5062 #    ifndef alloca /* predefined by HP cc +Olibcalls */
5063 char *alloca ();
5064 #    endif
5065 #   endif
5066 #  endif
5067 # endif
5068 #endif
5069
5070 int
5071 main ()
5072 {
5073 char *p = (char *) alloca (1);
5074   ;
5075   return 0;
5076 }
5077 _ACEOF
5078 rm -f conftest.$ac_objext conftest$ac_exeext
5079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5080   (eval $ac_link) 2>conftest.er1
5081   ac_status=$?
5082   grep -v '^ *+' conftest.er1 >conftest.err
5083   rm -f conftest.er1
5084   cat conftest.err >&5
5085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086   (exit $ac_status); } &&
5087          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089   (eval $ac_try) 2>&5
5090   ac_status=$?
5091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092   (exit $ac_status); }; } &&
5093          { ac_try='test -s conftest$ac_exeext'
5094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095   (eval $ac_try) 2>&5
5096   ac_status=$?
5097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098   (exit $ac_status); }; }; then
5099   ac_cv_func_alloca_works=yes
5100 else
5101   echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5103
5104 ac_cv_func_alloca_works=no
5105 fi
5106 rm -f conftest.err conftest.$ac_objext \
5107       conftest$ac_exeext conftest.$ac_ext
5108 fi
5109 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5110 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5111
5112 if test $ac_cv_func_alloca_works = yes; then
5113
5114 cat >>confdefs.h <<\_ACEOF
5115 #define HAVE_ALLOCA 1
5116 _ACEOF
5117
5118 else
5119   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5120 # that cause trouble.  Some versions do not even contain alloca or
5121 # contain a buggy version.  If you still want to use their alloca,
5122 # use ar to extract alloca.o from them instead of compiling alloca.c.
5123
5124 ALLOCA=alloca.$ac_objext
5125
5126 cat >>confdefs.h <<\_ACEOF
5127 #define C_ALLOCA 1
5128 _ACEOF
5129
5130
5131 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5132 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5133 if test "${ac_cv_os_cray+set}" = set; then
5134   echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136   cat >conftest.$ac_ext <<_ACEOF
5137 /* confdefs.h.  */
5138 _ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h.  */
5142 #if defined(CRAY) && ! defined(CRAY2)
5143 webecray
5144 #else
5145 wenotbecray
5146 #endif
5147
5148 _ACEOF
5149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5150   $EGREP "webecray" >/dev/null 2>&1; then
5151   ac_cv_os_cray=yes
5152 else
5153   ac_cv_os_cray=no
5154 fi
5155 rm -f conftest*
5156
5157 fi
5158 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5159 echo "${ECHO_T}$ac_cv_os_cray" >&6
5160 if test $ac_cv_os_cray = yes; then
5161   for ac_func in _getb67 GETB67 getb67; do
5162     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5163 echo "$as_me:$LINENO: checking for $ac_func" >&5
5164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5165 if eval "test \"\${$as_ac_var+set}\" = set"; then
5166   echo $ECHO_N "(cached) $ECHO_C" >&6
5167 else
5168   cat >conftest.$ac_ext <<_ACEOF
5169 /* confdefs.h.  */
5170 _ACEOF
5171 cat confdefs.h >>conftest.$ac_ext
5172 cat >>conftest.$ac_ext <<_ACEOF
5173 /* end confdefs.h.  */
5174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5175    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5176 #define $ac_func innocuous_$ac_func
5177
5178 /* System header to define __stub macros and hopefully few prototypes,
5179     which can conflict with char $ac_func (); below.
5180     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5181     <limits.h> exists even on freestanding compilers.  */
5182
5183 #ifdef __STDC__
5184 # include <limits.h>
5185 #else
5186 # include <assert.h>
5187 #endif
5188
5189 #undef $ac_func
5190
5191 /* Override any gcc2 internal prototype to avoid an error.  */
5192 #ifdef __cplusplus
5193 extern "C"
5194 {
5195 #endif
5196 /* We use char because int might match the return type of a gcc2
5197    builtin and then its argument prototype would still apply.  */
5198 char $ac_func ();
5199 /* The GNU C library defines this for functions which it implements
5200     to always fail with ENOSYS.  Some functions are actually named
5201     something starting with __ and the normal name is an alias.  */
5202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5203 choke me
5204 #else
5205 char (*f) () = $ac_func;
5206 #endif
5207 #ifdef __cplusplus
5208 }
5209 #endif
5210
5211 int
5212 main ()
5213 {
5214 return f != $ac_func;
5215   ;
5216   return 0;
5217 }
5218 _ACEOF
5219 rm -f conftest.$ac_objext conftest$ac_exeext
5220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5221   (eval $ac_link) 2>conftest.er1
5222   ac_status=$?
5223   grep -v '^ *+' conftest.er1 >conftest.err
5224   rm -f conftest.er1
5225   cat conftest.err >&5
5226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227   (exit $ac_status); } &&
5228          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230   (eval $ac_try) 2>&5
5231   ac_status=$?
5232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233   (exit $ac_status); }; } &&
5234          { ac_try='test -s conftest$ac_exeext'
5235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236   (eval $ac_try) 2>&5
5237   ac_status=$?
5238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239   (exit $ac_status); }; }; then
5240   eval "$as_ac_var=yes"
5241 else
5242   echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.$ac_ext >&5
5244
5245 eval "$as_ac_var=no"
5246 fi
5247 rm -f conftest.err conftest.$ac_objext \
5248       conftest$ac_exeext conftest.$ac_ext
5249 fi
5250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5251 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5252 if test `eval echo '${'$as_ac_var'}'` = yes; then
5253
5254 cat >>confdefs.h <<_ACEOF
5255 #define CRAY_STACKSEG_END $ac_func
5256 _ACEOF
5257
5258     break
5259 fi
5260
5261   done
5262 fi
5263
5264 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5265 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5266 if test "${ac_cv_c_stack_direction+set}" = set; then
5267   echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269   if test "$cross_compiling" = yes; then
5270   ac_cv_c_stack_direction=0
5271 else
5272   cat >conftest.$ac_ext <<_ACEOF
5273 /* confdefs.h.  */
5274 _ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h.  */
5278 int
5279 find_stack_direction ()
5280 {
5281   static char *addr = 0;
5282   auto char dummy;
5283   if (addr == 0)
5284     {
5285       addr = &dummy;
5286       return find_stack_direction ();
5287     }
5288   else
5289     return (&dummy > addr) ? 1 : -1;
5290 }
5291
5292 int
5293 main ()
5294 {
5295   exit (find_stack_direction () < 0);
5296 }
5297 _ACEOF
5298 rm -f conftest$ac_exeext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5300   (eval $ac_link) 2>&5
5301   ac_status=$?
5302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305   (eval $ac_try) 2>&5
5306   ac_status=$?
5307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308   (exit $ac_status); }; }; then
5309   ac_cv_c_stack_direction=1
5310 else
5311   echo "$as_me: program exited with status $ac_status" >&5
5312 echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.$ac_ext >&5
5314
5315 ( exit $ac_status )
5316 ac_cv_c_stack_direction=-1
5317 fi
5318 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5319 fi
5320 fi
5321 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5322 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5323
5324 cat >>confdefs.h <<_ACEOF
5325 #define STACK_DIRECTION $ac_cv_c_stack_direction
5326 _ACEOF
5327
5328
5329 fi
5330
5331
5332
5333 for ac_header in stdlib.h unistd.h
5334 do
5335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5337   echo "$as_me:$LINENO: checking for $ac_header" >&5
5338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5340   echo $ECHO_N "(cached) $ECHO_C" >&6
5341 fi
5342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5344 else
5345   # Is the header compilable?
5346 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5348 cat >conftest.$ac_ext <<_ACEOF
5349 /* confdefs.h.  */
5350 _ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h.  */
5354 $ac_includes_default
5355 #include <$ac_header>
5356 _ACEOF
5357 rm -f conftest.$ac_objext
5358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5359   (eval $ac_compile) 2>conftest.er1
5360   ac_status=$?
5361   grep -v '^ *+' conftest.er1 >conftest.err
5362   rm -f conftest.er1
5363   cat conftest.err >&5
5364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365   (exit $ac_status); } &&
5366          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368   (eval $ac_try) 2>&5
5369   ac_status=$?
5370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371   (exit $ac_status); }; } &&
5372          { ac_try='test -s conftest.$ac_objext'
5373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374   (eval $ac_try) 2>&5
5375   ac_status=$?
5376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377   (exit $ac_status); }; }; then
5378   ac_header_compiler=yes
5379 else
5380   echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5382
5383 ac_header_compiler=no
5384 fi
5385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5387 echo "${ECHO_T}$ac_header_compiler" >&6
5388
5389 # Is the header present?
5390 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5392 cat >conftest.$ac_ext <<_ACEOF
5393 /* confdefs.h.  */
5394 _ACEOF
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h.  */
5398 #include <$ac_header>
5399 _ACEOF
5400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5401   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5402   ac_status=$?
5403   grep -v '^ *+' conftest.er1 >conftest.err
5404   rm -f conftest.er1
5405   cat conftest.err >&5
5406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407   (exit $ac_status); } >/dev/null; then
5408   if test -s conftest.err; then
5409     ac_cpp_err=$ac_c_preproc_warn_flag
5410     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5411   else
5412     ac_cpp_err=
5413   fi
5414 else
5415   ac_cpp_err=yes
5416 fi
5417 if test -z "$ac_cpp_err"; then
5418   ac_header_preproc=yes
5419 else
5420   echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5422
5423   ac_header_preproc=no
5424 fi
5425 rm -f conftest.err conftest.$ac_ext
5426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5427 echo "${ECHO_T}$ac_header_preproc" >&6
5428
5429 # So?  What about this header?
5430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5431   yes:no: )
5432     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5434     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5436     ac_header_preproc=yes
5437     ;;
5438   no:yes:* )
5439     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5441     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5442 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5443     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5445     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5446 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5447     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5449     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5451     (
5452       cat <<\_ASBOX
5453 ## ------------------------------------------ ##
5454 ## Report this to the AC_PACKAGE_NAME lists.  ##
5455 ## ------------------------------------------ ##
5456 _ASBOX
5457     ) |
5458       sed "s/^/$as_me: WARNING:     /" >&2
5459     ;;
5460 esac
5461 echo "$as_me:$LINENO: checking for $ac_header" >&5
5462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5464   echo $ECHO_N "(cached) $ECHO_C" >&6
5465 else
5466   eval "$as_ac_Header=\$ac_header_preproc"
5467 fi
5468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5470
5471 fi
5472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5473   cat >>confdefs.h <<_ACEOF
5474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5475 _ACEOF
5476
5477 fi
5478
5479 done
5480
5481
5482 for ac_func in getpagesize
5483 do
5484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5485 echo "$as_me:$LINENO: checking for $ac_func" >&5
5486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5487 if eval "test \"\${$as_ac_var+set}\" = set"; then
5488   echo $ECHO_N "(cached) $ECHO_C" >&6
5489 else
5490   cat >conftest.$ac_ext <<_ACEOF
5491 /* confdefs.h.  */
5492 _ACEOF
5493 cat confdefs.h >>conftest.$ac_ext
5494 cat >>conftest.$ac_ext <<_ACEOF
5495 /* end confdefs.h.  */
5496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5497    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5498 #define $ac_func innocuous_$ac_func
5499
5500 /* System header to define __stub macros and hopefully few prototypes,
5501     which can conflict with char $ac_func (); below.
5502     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5503     <limits.h> exists even on freestanding compilers.  */
5504
5505 #ifdef __STDC__
5506 # include <limits.h>
5507 #else
5508 # include <assert.h>
5509 #endif
5510
5511 #undef $ac_func
5512
5513 /* Override any gcc2 internal prototype to avoid an error.  */
5514 #ifdef __cplusplus
5515 extern "C"
5516 {
5517 #endif
5518 /* We use char because int might match the return type of a gcc2
5519    builtin and then its argument prototype would still apply.  */
5520 char $ac_func ();
5521 /* The GNU C library defines this for functions which it implements
5522     to always fail with ENOSYS.  Some functions are actually named
5523     something starting with __ and the normal name is an alias.  */
5524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5525 choke me
5526 #else
5527 char (*f) () = $ac_func;
5528 #endif
5529 #ifdef __cplusplus
5530 }
5531 #endif
5532
5533 int
5534 main ()
5535 {
5536 return f != $ac_func;
5537   ;
5538   return 0;
5539 }
5540 _ACEOF
5541 rm -f conftest.$ac_objext conftest$ac_exeext
5542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5543   (eval $ac_link) 2>conftest.er1
5544   ac_status=$?
5545   grep -v '^ *+' conftest.er1 >conftest.err
5546   rm -f conftest.er1
5547   cat conftest.err >&5
5548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549   (exit $ac_status); } &&
5550          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552   (eval $ac_try) 2>&5
5553   ac_status=$?
5554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555   (exit $ac_status); }; } &&
5556          { ac_try='test -s conftest$ac_exeext'
5557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5558   (eval $ac_try) 2>&5
5559   ac_status=$?
5560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561   (exit $ac_status); }; }; then
5562   eval "$as_ac_var=yes"
5563 else
5564   echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.$ac_ext >&5
5566
5567 eval "$as_ac_var=no"
5568 fi
5569 rm -f conftest.err conftest.$ac_objext \
5570       conftest$ac_exeext conftest.$ac_ext
5571 fi
5572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5574 if test `eval echo '${'$as_ac_var'}'` = yes; then
5575   cat >>confdefs.h <<_ACEOF
5576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5577 _ACEOF
5578
5579 fi
5580 done
5581
5582 echo "$as_me:$LINENO: checking for working mmap" >&5
5583 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5584 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5585   echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587   if test "$cross_compiling" = yes; then
5588   ac_cv_func_mmap_fixed_mapped=no
5589 else
5590   cat >conftest.$ac_ext <<_ACEOF
5591 /* confdefs.h.  */
5592 _ACEOF
5593 cat confdefs.h >>conftest.$ac_ext
5594 cat >>conftest.$ac_ext <<_ACEOF
5595 /* end confdefs.h.  */
5596 $ac_includes_default
5597 /* malloc might have been renamed as rpl_malloc. */
5598 #undef malloc
5599
5600 /* Thanks to Mike Haertel and Jim Avera for this test.
5601    Here is a matrix of mmap possibilities:
5602         mmap private not fixed
5603         mmap private fixed at somewhere currently unmapped
5604         mmap private fixed at somewhere already mapped
5605         mmap shared not fixed
5606         mmap shared fixed at somewhere currently unmapped
5607         mmap shared fixed at somewhere already mapped
5608    For private mappings, we should verify that changes cannot be read()
5609    back from the file, nor mmap's back from the file at a different
5610    address.  (There have been systems where private was not correctly
5611    implemented like the infamous i386 svr4.0, and systems where the
5612    VM page cache was not coherent with the file system buffer cache
5613    like early versions of FreeBSD and possibly contemporary NetBSD.)
5614    For shared mappings, we should conversely verify that changes get
5615    propagated back to all the places they're supposed to be.
5616
5617    Grep wants private fixed already mapped.
5618    The main things grep needs to know about mmap are:
5619    * does it exist and is it safe to write into the mmap'd area
5620    * how to use it (BSD variants)  */
5621
5622 #include <fcntl.h>
5623 #include <sys/mman.h>
5624
5625 #if !STDC_HEADERS && !HAVE_STDLIB_H
5626 char *malloc ();
5627 #endif
5628
5629 /* This mess was copied from the GNU getpagesize.h.  */
5630 #if !HAVE_GETPAGESIZE
5631 /* Assume that all systems that can run configure have sys/param.h.  */
5632 # if !HAVE_SYS_PARAM_H
5633 #  define HAVE_SYS_PARAM_H 1
5634 # endif
5635
5636 # ifdef _SC_PAGESIZE
5637 #  define getpagesize() sysconf(_SC_PAGESIZE)
5638 # else /* no _SC_PAGESIZE */
5639 #  if HAVE_SYS_PARAM_H
5640 #   include <sys/param.h>
5641 #   ifdef EXEC_PAGESIZE
5642 #    define getpagesize() EXEC_PAGESIZE
5643 #   else /* no EXEC_PAGESIZE */
5644 #    ifdef NBPG
5645 #     define getpagesize() NBPG * CLSIZE
5646 #     ifndef CLSIZE
5647 #      define CLSIZE 1
5648 #     endif /* no CLSIZE */
5649 #    else /* no NBPG */
5650 #     ifdef NBPC
5651 #      define getpagesize() NBPC
5652 #     else /* no NBPC */
5653 #      ifdef PAGESIZE
5654 #       define getpagesize() PAGESIZE
5655 #      endif /* PAGESIZE */
5656 #     endif /* no NBPC */
5657 #    endif /* no NBPG */
5658 #   endif /* no EXEC_PAGESIZE */
5659 #  else /* no HAVE_SYS_PARAM_H */
5660 #   define getpagesize() 8192   /* punt totally */
5661 #  endif /* no HAVE_SYS_PARAM_H */
5662 # endif /* no _SC_PAGESIZE */
5663
5664 #endif /* no HAVE_GETPAGESIZE */
5665
5666 int
5667 main ()
5668 {
5669   char *data, *data2, *data3;
5670   int i, pagesize;
5671   int fd;
5672
5673   pagesize = getpagesize ();
5674
5675   /* First, make a file with some known garbage in it. */
5676   data = (char *) malloc (pagesize);
5677   if (!data)
5678     exit (1);
5679   for (i = 0; i < pagesize; ++i)
5680     *(data + i) = rand ();
5681   umask (0);
5682   fd = creat ("conftest.mmap", 0600);
5683   if (fd < 0)
5684     exit (1);
5685   if (write (fd, data, pagesize) != pagesize)
5686     exit (1);
5687   close (fd);
5688
5689   /* Next, try to mmap the file at a fixed address which already has
5690      something else allocated at it.  If we can, also make sure that
5691      we see the same garbage.  */
5692   fd = open ("conftest.mmap", O_RDWR);
5693   if (fd < 0)
5694     exit (1);
5695   data2 = (char *) malloc (2 * pagesize);
5696   if (!data2)
5697     exit (1);
5698   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5699   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5700                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
5701     exit (1);
5702   for (i = 0; i < pagesize; ++i)
5703     if (*(data + i) != *(data2 + i))
5704       exit (1);
5705
5706   /* Finally, make sure that changes to the mapped area do not
5707      percolate back to the file as seen by read().  (This is a bug on
5708      some variants of i386 svr4.0.)  */
5709   for (i = 0; i < pagesize; ++i)
5710     *(data2 + i) = *(data2 + i) + 1;
5711   data3 = (char *) malloc (pagesize);
5712   if (!data3)
5713     exit (1);
5714   if (read (fd, data3, pagesize) != pagesize)
5715     exit (1);
5716   for (i = 0; i < pagesize; ++i)
5717     if (*(data + i) != *(data3 + i))
5718       exit (1);
5719   close (fd);
5720   exit (0);
5721 }
5722 _ACEOF
5723 rm -f conftest$ac_exeext
5724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5725   (eval $ac_link) 2>&5
5726   ac_status=$?
5727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730   (eval $ac_try) 2>&5
5731   ac_status=$?
5732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733   (exit $ac_status); }; }; then
5734   ac_cv_func_mmap_fixed_mapped=yes
5735 else
5736   echo "$as_me: program exited with status $ac_status" >&5
5737 echo "$as_me: failed program was:" >&5
5738 sed 's/^/| /' conftest.$ac_ext >&5
5739
5740 ( exit $ac_status )
5741 ac_cv_func_mmap_fixed_mapped=no
5742 fi
5743 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5744 fi
5745 fi
5746 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5747 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5748 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5749
5750 cat >>confdefs.h <<\_ACEOF
5751 #define HAVE_MMAP 1
5752 _ACEOF
5753
5754 fi
5755 rm -f conftest.mmap
5756
5757
5758     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
5759 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
5760 if test "${ac_cv_gnu_library_2_1+set}" = set; then
5761   echo $ECHO_N "(cached) $ECHO_C" >&6
5762 else
5763   cat >conftest.$ac_ext <<_ACEOF
5764 /* confdefs.h.  */
5765 _ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h.  */
5769
5770 #include <features.h>
5771 #ifdef __GNU_LIBRARY__
5772  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5773   Lucky GNU user
5774  #endif
5775 #endif
5776
5777 _ACEOF
5778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5779   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
5780   ac_cv_gnu_library_2_1=yes
5781 else
5782   ac_cv_gnu_library_2_1=no
5783 fi
5784 rm -f conftest*
5785
5786
5787
5788 fi
5789 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
5790 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
5791
5792     GLIBC21="$ac_cv_gnu_library_2_1"
5793
5794
5795
5796
5797   echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
5798 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
5799 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
5800   echo $ECHO_N "(cached) $ECHO_C" >&6
5801 else
5802
5803       if test "$cross_compiling" = yes; then
5804
5805           # Guess based on the CPU.
5806           case "$host_cpu" in
5807             alpha* | i3456786 | m68k | s390*)
5808               gt_cv_int_divbyzero_sigfpe="guessing yes";;
5809             *)
5810               gt_cv_int_divbyzero_sigfpe="guessing no";;
5811           esac
5812
5813 else
5814   cat >conftest.$ac_ext <<_ACEOF
5815 /* confdefs.h.  */
5816 _ACEOF
5817 cat confdefs.h >>conftest.$ac_ext
5818 cat >>conftest.$ac_ext <<_ACEOF
5819 /* end confdefs.h.  */
5820
5821 #include <stdlib.h>
5822 #include <signal.h>
5823
5824 static void
5825 #ifdef __cplusplus
5826 sigfpe_handler (int sig)
5827 #else
5828 sigfpe_handler (sig) int sig;
5829 #endif
5830 {
5831   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
5832   exit (sig != SIGFPE);
5833 }
5834
5835 int x = 1;
5836 int y = 0;
5837 int z;
5838 int nan;
5839
5840 int main ()
5841 {
5842   signal (SIGFPE, sigfpe_handler);
5843 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
5844 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5845   signal (SIGTRAP, sigfpe_handler);
5846 #endif
5847 /* Linux/SPARC yields signal SIGILL.  */
5848 #if defined (__sparc__) && defined (__linux__)
5849   signal (SIGILL, sigfpe_handler);
5850 #endif
5851
5852   z = x / y;
5853   nan = y / y;
5854   exit (1);
5855 }
5856
5857 _ACEOF
5858 rm -f conftest$ac_exeext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5860   (eval $ac_link) 2>&5
5861   ac_status=$?
5862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865   (eval $ac_try) 2>&5
5866   ac_status=$?
5867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868   (exit $ac_status); }; }; then
5869   gt_cv_int_divbyzero_sigfpe=yes
5870 else
5871   echo "$as_me: program exited with status $ac_status" >&5
5872 echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.$ac_ext >&5
5874
5875 ( exit $ac_status )
5876 gt_cv_int_divbyzero_sigfpe=no
5877 fi
5878 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5879 fi
5880
5881 fi
5882 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
5883 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
5884   case "$gt_cv_int_divbyzero_sigfpe" in
5885     *yes) value=1;;
5886     *) value=0;;
5887   esac
5888
5889 cat >>confdefs.h <<_ACEOF
5890 #define INTDIV0_RAISES_SIGFPE $value
5891 _ACEOF
5892
5893
5894
5895   echo "$as_me:$LINENO: checking for unsigned long long" >&5
5896 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
5897 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
5898   echo $ECHO_N "(cached) $ECHO_C" >&6
5899 else
5900   cat >conftest.$ac_ext <<_ACEOF
5901 /* confdefs.h.  */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h.  */
5906 unsigned long long ull = 1ULL; int i = 63;
5907 int
5908 main ()
5909 {
5910 unsigned long long ullmax = (unsigned long long) -1;
5911      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5912   ;
5913   return 0;
5914 }
5915 _ACEOF
5916 rm -f conftest.$ac_objext conftest$ac_exeext
5917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5918   (eval $ac_link) 2>conftest.er1
5919   ac_status=$?
5920   grep -v '^ *+' conftest.er1 >conftest.err
5921   rm -f conftest.er1
5922   cat conftest.err >&5
5923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924   (exit $ac_status); } &&
5925          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927   (eval $ac_try) 2>&5
5928   ac_status=$?
5929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930   (exit $ac_status); }; } &&
5931          { ac_try='test -s conftest$ac_exeext'
5932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933   (eval $ac_try) 2>&5
5934   ac_status=$?
5935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936   (exit $ac_status); }; }; then
5937   ac_cv_type_unsigned_long_long=yes
5938 else
5939   echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5941
5942 ac_cv_type_unsigned_long_long=no
5943 fi
5944 rm -f conftest.err conftest.$ac_objext \
5945       conftest$ac_exeext conftest.$ac_ext
5946 fi
5947 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
5948 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
5949   if test $ac_cv_type_unsigned_long_long = yes; then
5950
5951 cat >>confdefs.h <<\_ACEOF
5952 #define HAVE_UNSIGNED_LONG_LONG 1
5953 _ACEOF
5954
5955   fi
5956
5957
5958
5959
5960   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
5961
5962     test $ac_cv_type_unsigned_long_long = yes \
5963       && ac_type='unsigned long long' \
5964       || ac_type='unsigned long'
5965
5966 cat >>confdefs.h <<_ACEOF
5967 #define uintmax_t $ac_type
5968 _ACEOF
5969
5970   else
5971
5972 cat >>confdefs.h <<\_ACEOF
5973 #define HAVE_UINTMAX_T 1
5974 _ACEOF
5975
5976   fi
5977
5978
5979   echo "$as_me:$LINENO: checking for inttypes.h" >&5
5980 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5981 if test "${gt_cv_header_inttypes_h+set}" = set; then
5982   echo $ECHO_N "(cached) $ECHO_C" >&6
5983 else
5984
5985     cat >conftest.$ac_ext <<_ACEOF
5986 /* confdefs.h.  */
5987 _ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h.  */
5991 #include <sys/types.h>
5992 #include <inttypes.h>
5993 int
5994 main ()
5995 {
5996
5997   ;
5998   return 0;
5999 }
6000 _ACEOF
6001 rm -f conftest.$ac_objext
6002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6003   (eval $ac_compile) 2>conftest.er1
6004   ac_status=$?
6005   grep -v '^ *+' conftest.er1 >conftest.err
6006   rm -f conftest.er1
6007   cat conftest.err >&5
6008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009   (exit $ac_status); } &&
6010          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012   (eval $ac_try) 2>&5
6013   ac_status=$?
6014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015   (exit $ac_status); }; } &&
6016          { ac_try='test -s conftest.$ac_objext'
6017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018   (eval $ac_try) 2>&5
6019   ac_status=$?
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); }; }; then
6022   gt_cv_header_inttypes_h=yes
6023 else
6024   echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6026
6027 gt_cv_header_inttypes_h=no
6028 fi
6029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6030
6031 fi
6032 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6033 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
6034   if test $gt_cv_header_inttypes_h = yes; then
6035
6036 cat >>confdefs.h <<_ACEOF
6037 #define HAVE_INTTYPES_H 1
6038 _ACEOF
6039
6040   fi
6041
6042
6043
6044   if test $gt_cv_header_inttypes_h = yes; then
6045     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6046 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
6047 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6048   echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050
6051         cat >conftest.$ac_ext <<_ACEOF
6052 /* confdefs.h.  */
6053 _ACEOF
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h.  */
6057 #include <inttypes.h>
6058 #ifdef PRId32
6059 char *p = PRId32;
6060 #endif
6061
6062 int
6063 main ()
6064 {
6065
6066   ;
6067   return 0;
6068 }
6069 _ACEOF
6070 rm -f conftest.$ac_objext
6071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6072   (eval $ac_compile) 2>conftest.er1
6073   ac_status=$?
6074   grep -v '^ *+' conftest.er1 >conftest.err
6075   rm -f conftest.er1
6076   cat conftest.err >&5
6077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078   (exit $ac_status); } &&
6079          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081   (eval $ac_try) 2>&5
6082   ac_status=$?
6083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084   (exit $ac_status); }; } &&
6085          { ac_try='test -s conftest.$ac_objext'
6086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087   (eval $ac_try) 2>&5
6088   ac_status=$?
6089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090   (exit $ac_status); }; }; then
6091   gt_cv_inttypes_pri_broken=no
6092 else
6093   echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.$ac_ext >&5
6095
6096 gt_cv_inttypes_pri_broken=yes
6097 fi
6098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6099
6100 fi
6101 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6102 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
6103   fi
6104   if test "$gt_cv_inttypes_pri_broken" = yes; then
6105
6106 cat >>confdefs.h <<_ACEOF
6107 #define PRI_MACROS_BROKEN 1
6108 _ACEOF
6109
6110   fi
6111
6112
6113
6114 for ac_header in stdint.h
6115 do
6116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6118   echo "$as_me:$LINENO: checking for $ac_header" >&5
6119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6121   echo $ECHO_N "(cached) $ECHO_C" >&6
6122 fi
6123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6125 else
6126   # Is the header compilable?
6127 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6128 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6129 cat >conftest.$ac_ext <<_ACEOF
6130 /* confdefs.h.  */
6131 _ACEOF
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h.  */
6135 $ac_includes_default
6136 #include <$ac_header>
6137 _ACEOF
6138 rm -f conftest.$ac_objext
6139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6140   (eval $ac_compile) 2>conftest.er1
6141   ac_status=$?
6142   grep -v '^ *+' conftest.er1 >conftest.err
6143   rm -f conftest.er1
6144   cat conftest.err >&5
6145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146   (exit $ac_status); } &&
6147          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149   (eval $ac_try) 2>&5
6150   ac_status=$?
6151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152   (exit $ac_status); }; } &&
6153          { ac_try='test -s conftest.$ac_objext'
6154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155   (eval $ac_try) 2>&5
6156   ac_status=$?
6157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158   (exit $ac_status); }; }; then
6159   ac_header_compiler=yes
6160 else
6161   echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.$ac_ext >&5
6163
6164 ac_header_compiler=no
6165 fi
6166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6167 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6168 echo "${ECHO_T}$ac_header_compiler" >&6
6169
6170 # Is the header present?
6171 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6173 cat >conftest.$ac_ext <<_ACEOF
6174 /* confdefs.h.  */
6175 _ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h.  */
6179 #include <$ac_header>
6180 _ACEOF
6181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6182   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6183   ac_status=$?
6184   grep -v '^ *+' conftest.er1 >conftest.err
6185   rm -f conftest.er1
6186   cat conftest.err >&5
6187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188   (exit $ac_status); } >/dev/null; then
6189   if test -s conftest.err; then
6190     ac_cpp_err=$ac_c_preproc_warn_flag
6191     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6192   else
6193     ac_cpp_err=
6194   fi
6195 else
6196   ac_cpp_err=yes
6197 fi
6198 if test -z "$ac_cpp_err"; then
6199   ac_header_preproc=yes
6200 else
6201   echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6203
6204   ac_header_preproc=no
6205 fi
6206 rm -f conftest.err conftest.$ac_ext
6207 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6208 echo "${ECHO_T}$ac_header_preproc" >&6
6209
6210 # So?  What about this header?
6211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6212   yes:no: )
6213     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6215     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6217     ac_header_preproc=yes
6218     ;;
6219   no:yes:* )
6220     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6222     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6223 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6224     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6226     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6227 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6228     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6230     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6232     (
6233       cat <<\_ASBOX
6234 ## ------------------------------------------ ##
6235 ## Report this to the AC_PACKAGE_NAME lists.  ##
6236 ## ------------------------------------------ ##
6237 _ASBOX
6238     ) |
6239       sed "s/^/$as_me: WARNING:     /" >&2
6240     ;;
6241 esac
6242 echo "$as_me:$LINENO: checking for $ac_header" >&5
6243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6245   echo $ECHO_N "(cached) $ECHO_C" >&6
6246 else
6247   eval "$as_ac_Header=\$ac_header_preproc"
6248 fi
6249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6251
6252 fi
6253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6254   cat >>confdefs.h <<_ACEOF
6255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6256 _ACEOF
6257
6258 fi
6259
6260 done
6261
6262     echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6263 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
6264   result=
6265   cat >conftest.$ac_ext <<_ACEOF
6266 /* confdefs.h.  */
6267 _ACEOF
6268 cat confdefs.h >>conftest.$ac_ext
6269 cat >>conftest.$ac_ext <<_ACEOF
6270 /* end confdefs.h.  */
6271
6272 #include <limits.h>
6273 #if HAVE_STDINT_H
6274 #include <stdint.h>
6275 #endif
6276 #ifdef SIZE_MAX
6277 Found it
6278 #endif
6279
6280 _ACEOF
6281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6282   $EGREP "Found it" >/dev/null 2>&1; then
6283   result=yes
6284 fi
6285 rm -f conftest*
6286
6287   if test -z "$result"; then
6288                     if test "$cross_compiling" = yes; then
6289   # Depending upon the size, compute the lo and hi bounds.
6290 cat >conftest.$ac_ext <<_ACEOF
6291 /* confdefs.h.  */
6292 _ACEOF
6293 cat confdefs.h >>conftest.$ac_ext
6294 cat >>conftest.$ac_ext <<_ACEOF
6295 /* end confdefs.h.  */
6296 #include <stddef.h>
6297 int
6298 main ()
6299 {
6300 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6301 test_array [0] = 0
6302
6303   ;
6304   return 0;
6305 }
6306 _ACEOF
6307 rm -f conftest.$ac_objext
6308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6309   (eval $ac_compile) 2>conftest.er1
6310   ac_status=$?
6311   grep -v '^ *+' conftest.er1 >conftest.err
6312   rm -f conftest.er1
6313   cat conftest.err >&5
6314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315   (exit $ac_status); } &&
6316          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318   (eval $ac_try) 2>&5
6319   ac_status=$?
6320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321   (exit $ac_status); }; } &&
6322          { ac_try='test -s conftest.$ac_objext'
6323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324   (eval $ac_try) 2>&5
6325   ac_status=$?
6326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327   (exit $ac_status); }; }; then
6328   ac_lo=0 ac_mid=0
6329   while :; do
6330     cat >conftest.$ac_ext <<_ACEOF
6331 /* confdefs.h.  */
6332 _ACEOF
6333 cat confdefs.h >>conftest.$ac_ext
6334 cat >>conftest.$ac_ext <<_ACEOF
6335 /* end confdefs.h.  */
6336 #include <stddef.h>
6337 int
6338 main ()
6339 {
6340 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6341 test_array [0] = 0
6342
6343   ;
6344   return 0;
6345 }
6346 _ACEOF
6347 rm -f conftest.$ac_objext
6348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6349   (eval $ac_compile) 2>conftest.er1
6350   ac_status=$?
6351   grep -v '^ *+' conftest.er1 >conftest.err
6352   rm -f conftest.er1
6353   cat conftest.err >&5
6354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355   (exit $ac_status); } &&
6356          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358   (eval $ac_try) 2>&5
6359   ac_status=$?
6360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361   (exit $ac_status); }; } &&
6362          { ac_try='test -s conftest.$ac_objext'
6363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364   (eval $ac_try) 2>&5
6365   ac_status=$?
6366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367   (exit $ac_status); }; }; then
6368   ac_hi=$ac_mid; break
6369 else
6370   echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6372
6373 ac_lo=`expr $ac_mid + 1`
6374                     if test $ac_lo -le $ac_mid; then
6375                       ac_lo= ac_hi=
6376                       break
6377                     fi
6378                     ac_mid=`expr 2 '*' $ac_mid + 1`
6379 fi
6380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6381   done
6382 else
6383   echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6385
6386 cat >conftest.$ac_ext <<_ACEOF
6387 /* confdefs.h.  */
6388 _ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h.  */
6392 #include <stddef.h>
6393 int
6394 main ()
6395 {
6396 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
6397 test_array [0] = 0
6398
6399   ;
6400   return 0;
6401 }
6402 _ACEOF
6403 rm -f conftest.$ac_objext
6404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6405   (eval $ac_compile) 2>conftest.er1
6406   ac_status=$?
6407   grep -v '^ *+' conftest.er1 >conftest.err
6408   rm -f conftest.er1
6409   cat conftest.err >&5
6410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411   (exit $ac_status); } &&
6412          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414   (eval $ac_try) 2>&5
6415   ac_status=$?
6416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417   (exit $ac_status); }; } &&
6418          { ac_try='test -s conftest.$ac_objext'
6419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420   (eval $ac_try) 2>&5
6421   ac_status=$?
6422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423   (exit $ac_status); }; }; then
6424   ac_hi=-1 ac_mid=-1
6425   while :; do
6426     cat >conftest.$ac_ext <<_ACEOF
6427 /* confdefs.h.  */
6428 _ACEOF
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h.  */
6432 #include <stddef.h>
6433 int
6434 main ()
6435 {
6436 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
6437 test_array [0] = 0
6438
6439   ;
6440   return 0;
6441 }
6442 _ACEOF
6443 rm -f conftest.$ac_objext
6444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6445   (eval $ac_compile) 2>conftest.er1
6446   ac_status=$?
6447   grep -v '^ *+' conftest.er1 >conftest.err
6448   rm -f conftest.er1
6449   cat conftest.err >&5
6450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451   (exit $ac_status); } &&
6452          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454   (eval $ac_try) 2>&5
6455   ac_status=$?
6456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457   (exit $ac_status); }; } &&
6458          { ac_try='test -s conftest.$ac_objext'
6459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460   (eval $ac_try) 2>&5
6461   ac_status=$?
6462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463   (exit $ac_status); }; }; then
6464   ac_lo=$ac_mid; break
6465 else
6466   echo "$as_me: failed program was:" >&5
6467 sed 's/^/| /' conftest.$ac_ext >&5
6468
6469 ac_hi=`expr '(' $ac_mid ')' - 1`
6470                        if test $ac_mid -le $ac_hi; then
6471                          ac_lo= ac_hi=
6472                          break
6473                        fi
6474                        ac_mid=`expr 2 '*' $ac_mid`
6475 fi
6476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6477   done
6478 else
6479   echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6481
6482 ac_lo= ac_hi=
6483 fi
6484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6485 fi
6486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6487 # Binary search between lo and hi bounds.
6488 while test "x$ac_lo" != "x$ac_hi"; do
6489   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6490   cat >conftest.$ac_ext <<_ACEOF
6491 /* confdefs.h.  */
6492 _ACEOF
6493 cat confdefs.h >>conftest.$ac_ext
6494 cat >>conftest.$ac_ext <<_ACEOF
6495 /* end confdefs.h.  */
6496 #include <stddef.h>
6497 int
6498 main ()
6499 {
6500 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6501 test_array [0] = 0
6502
6503   ;
6504   return 0;
6505 }
6506 _ACEOF
6507 rm -f conftest.$ac_objext
6508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6509   (eval $ac_compile) 2>conftest.er1
6510   ac_status=$?
6511   grep -v '^ *+' conftest.er1 >conftest.err
6512   rm -f conftest.er1
6513   cat conftest.err >&5
6514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515   (exit $ac_status); } &&
6516          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518   (eval $ac_try) 2>&5
6519   ac_status=$?
6520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521   (exit $ac_status); }; } &&
6522          { ac_try='test -s conftest.$ac_objext'
6523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6524   (eval $ac_try) 2>&5
6525   ac_status=$?
6526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527   (exit $ac_status); }; }; then
6528   ac_hi=$ac_mid
6529 else
6530   echo "$as_me: failed program was:" >&5
6531 sed 's/^/| /' conftest.$ac_ext >&5
6532
6533 ac_lo=`expr '(' $ac_mid ')' + 1`
6534 fi
6535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6536 done
6537 case $ac_lo in
6538 ?*) res_hi=$ac_lo;;
6539 '') result=? ;;
6540 esac
6541 else
6542   if test "$cross_compiling" = yes; then
6543   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6544 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6545    { (exit 1); exit 1; }; }
6546 else
6547   cat >conftest.$ac_ext <<_ACEOF
6548 /* confdefs.h.  */
6549 _ACEOF
6550 cat confdefs.h >>conftest.$ac_ext
6551 cat >>conftest.$ac_ext <<_ACEOF
6552 /* end confdefs.h.  */
6553 #include <stddef.h>
6554 long longval () { return ~(size_t)0 / 10; }
6555 unsigned long ulongval () { return ~(size_t)0 / 10; }
6556 #include <stdio.h>
6557 #include <stdlib.h>
6558 int
6559 main ()
6560 {
6561
6562   FILE *f = fopen ("conftest.val", "w");
6563   if (! f)
6564     exit (1);
6565   if ((~(size_t)0 / 10) < 0)
6566     {
6567       long i = longval ();
6568       if (i != (~(size_t)0 / 10))
6569         exit (1);
6570       fprintf (f, "%ld\n", i);
6571     }
6572   else
6573     {
6574       unsigned long i = ulongval ();
6575       if (i != (~(size_t)0 / 10))
6576         exit (1);
6577       fprintf (f, "%lu\n", i);
6578     }
6579   exit (ferror (f) || fclose (f) != 0);
6580
6581   ;
6582   return 0;
6583 }
6584 _ACEOF
6585 rm -f conftest$ac_exeext
6586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6587   (eval $ac_link) 2>&5
6588   ac_status=$?
6589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592   (eval $ac_try) 2>&5
6593   ac_status=$?
6594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595   (exit $ac_status); }; }; then
6596   res_hi=`cat conftest.val`
6597 else
6598   echo "$as_me: program exited with status $ac_status" >&5
6599 echo "$as_me: failed program was:" >&5
6600 sed 's/^/| /' conftest.$ac_ext >&5
6601
6602 ( exit $ac_status )
6603 result=?
6604 fi
6605 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6606 fi
6607 fi
6608 rm -f conftest.val
6609     if test "$cross_compiling" = yes; then
6610   # Depending upon the size, compute the lo and hi bounds.
6611 cat >conftest.$ac_ext <<_ACEOF
6612 /* confdefs.h.  */
6613 _ACEOF
6614 cat confdefs.h >>conftest.$ac_ext
6615 cat >>conftest.$ac_ext <<_ACEOF
6616 /* end confdefs.h.  */
6617 #include <stddef.h>
6618 int
6619 main ()
6620 {
6621 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
6622 test_array [0] = 0
6623
6624   ;
6625   return 0;
6626 }
6627 _ACEOF
6628 rm -f conftest.$ac_objext
6629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6630   (eval $ac_compile) 2>conftest.er1
6631   ac_status=$?
6632   grep -v '^ *+' conftest.er1 >conftest.err
6633   rm -f conftest.er1
6634   cat conftest.err >&5
6635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636   (exit $ac_status); } &&
6637          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639   (eval $ac_try) 2>&5
6640   ac_status=$?
6641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642   (exit $ac_status); }; } &&
6643          { ac_try='test -s conftest.$ac_objext'
6644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645   (eval $ac_try) 2>&5
6646   ac_status=$?
6647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648   (exit $ac_status); }; }; then
6649   ac_lo=0 ac_mid=0
6650   while :; do
6651     cat >conftest.$ac_ext <<_ACEOF
6652 /* confdefs.h.  */
6653 _ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h.  */
6657 #include <stddef.h>
6658 int
6659 main ()
6660 {
6661 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6662 test_array [0] = 0
6663
6664   ;
6665   return 0;
6666 }
6667 _ACEOF
6668 rm -f conftest.$ac_objext
6669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6670   (eval $ac_compile) 2>conftest.er1
6671   ac_status=$?
6672   grep -v '^ *+' conftest.er1 >conftest.err
6673   rm -f conftest.er1
6674   cat conftest.err >&5
6675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676   (exit $ac_status); } &&
6677          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679   (eval $ac_try) 2>&5
6680   ac_status=$?
6681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682   (exit $ac_status); }; } &&
6683          { ac_try='test -s conftest.$ac_objext'
6684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685   (eval $ac_try) 2>&5
6686   ac_status=$?
6687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688   (exit $ac_status); }; }; then
6689   ac_hi=$ac_mid; break
6690 else
6691   echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.$ac_ext >&5
6693
6694 ac_lo=`expr $ac_mid + 1`
6695                     if test $ac_lo -le $ac_mid; then
6696                       ac_lo= ac_hi=
6697                       break
6698                     fi
6699                     ac_mid=`expr 2 '*' $ac_mid + 1`
6700 fi
6701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6702   done
6703 else
6704   echo "$as_me: failed program was:" >&5
6705 sed 's/^/| /' conftest.$ac_ext >&5
6706
6707 cat >conftest.$ac_ext <<_ACEOF
6708 /* confdefs.h.  */
6709 _ACEOF
6710 cat confdefs.h >>conftest.$ac_ext
6711 cat >>conftest.$ac_ext <<_ACEOF
6712 /* end confdefs.h.  */
6713 #include <stddef.h>
6714 int
6715 main ()
6716 {
6717 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
6718 test_array [0] = 0
6719
6720   ;
6721   return 0;
6722 }
6723 _ACEOF
6724 rm -f conftest.$ac_objext
6725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6726   (eval $ac_compile) 2>conftest.er1
6727   ac_status=$?
6728   grep -v '^ *+' conftest.er1 >conftest.err
6729   rm -f conftest.er1
6730   cat conftest.err >&5
6731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732   (exit $ac_status); } &&
6733          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735   (eval $ac_try) 2>&5
6736   ac_status=$?
6737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738   (exit $ac_status); }; } &&
6739          { ac_try='test -s conftest.$ac_objext'
6740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741   (eval $ac_try) 2>&5
6742   ac_status=$?
6743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744   (exit $ac_status); }; }; then
6745   ac_hi=-1 ac_mid=-1
6746   while :; do
6747     cat >conftest.$ac_ext <<_ACEOF
6748 /* confdefs.h.  */
6749 _ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h.  */
6753 #include <stddef.h>
6754 int
6755 main ()
6756 {
6757 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
6758 test_array [0] = 0
6759
6760   ;
6761   return 0;
6762 }
6763 _ACEOF
6764 rm -f conftest.$ac_objext
6765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6766   (eval $ac_compile) 2>conftest.er1
6767   ac_status=$?
6768   grep -v '^ *+' conftest.er1 >conftest.err
6769   rm -f conftest.er1
6770   cat conftest.err >&5
6771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772   (exit $ac_status); } &&
6773          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775   (eval $ac_try) 2>&5
6776   ac_status=$?
6777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778   (exit $ac_status); }; } &&
6779          { ac_try='test -s conftest.$ac_objext'
6780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781   (eval $ac_try) 2>&5
6782   ac_status=$?
6783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784   (exit $ac_status); }; }; then
6785   ac_lo=$ac_mid; break
6786 else
6787   echo "$as_me: failed program was:" >&5
6788 sed 's/^/| /' conftest.$ac_ext >&5
6789
6790 ac_hi=`expr '(' $ac_mid ')' - 1`
6791                        if test $ac_mid -le $ac_hi; then
6792                          ac_lo= ac_hi=
6793                          break
6794                        fi
6795                        ac_mid=`expr 2 '*' $ac_mid`
6796 fi
6797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6798   done
6799 else
6800   echo "$as_me: failed program was:" >&5
6801 sed 's/^/| /' conftest.$ac_ext >&5
6802
6803 ac_lo= ac_hi=
6804 fi
6805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6806 fi
6807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6808 # Binary search between lo and hi bounds.
6809 while test "x$ac_lo" != "x$ac_hi"; do
6810   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6811   cat >conftest.$ac_ext <<_ACEOF
6812 /* confdefs.h.  */
6813 _ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h.  */
6817 #include <stddef.h>
6818 int
6819 main ()
6820 {
6821 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6822 test_array [0] = 0
6823
6824   ;
6825   return 0;
6826 }
6827 _ACEOF
6828 rm -f conftest.$ac_objext
6829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6830   (eval $ac_compile) 2>conftest.er1
6831   ac_status=$?
6832   grep -v '^ *+' conftest.er1 >conftest.err
6833   rm -f conftest.er1
6834   cat conftest.err >&5
6835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836   (exit $ac_status); } &&
6837          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839   (eval $ac_try) 2>&5
6840   ac_status=$?
6841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842   (exit $ac_status); }; } &&
6843          { ac_try='test -s conftest.$ac_objext'
6844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845   (eval $ac_try) 2>&5
6846   ac_status=$?
6847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848   (exit $ac_status); }; }; then
6849   ac_hi=$ac_mid
6850 else
6851   echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.$ac_ext >&5
6853
6854 ac_lo=`expr '(' $ac_mid ')' + 1`
6855 fi
6856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6857 done
6858 case $ac_lo in
6859 ?*) res_lo=$ac_lo;;
6860 '') result=? ;;
6861 esac
6862 else
6863   if test "$cross_compiling" = yes; then
6864   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6865 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6866    { (exit 1); exit 1; }; }
6867 else
6868   cat >conftest.$ac_ext <<_ACEOF
6869 /* confdefs.h.  */
6870 _ACEOF
6871 cat confdefs.h >>conftest.$ac_ext
6872 cat >>conftest.$ac_ext <<_ACEOF
6873 /* end confdefs.h.  */
6874 #include <stddef.h>
6875 long longval () { return ~(size_t)0 % 10; }
6876 unsigned long ulongval () { return ~(size_t)0 % 10; }
6877 #include <stdio.h>
6878 #include <stdlib.h>
6879 int
6880 main ()
6881 {
6882
6883   FILE *f = fopen ("conftest.val", "w");
6884   if (! f)
6885     exit (1);
6886   if ((~(size_t)0 % 10) < 0)
6887     {
6888       long i = longval ();
6889       if (i != (~(size_t)0 % 10))
6890         exit (1);
6891       fprintf (f, "%ld\n", i);
6892     }
6893   else
6894     {
6895       unsigned long i = ulongval ();
6896       if (i != (~(size_t)0 % 10))
6897         exit (1);
6898       fprintf (f, "%lu\n", i);
6899     }
6900   exit (ferror (f) || fclose (f) != 0);
6901
6902   ;
6903   return 0;
6904 }
6905 _ACEOF
6906 rm -f conftest$ac_exeext
6907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6908   (eval $ac_link) 2>&5
6909   ac_status=$?
6910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913   (eval $ac_try) 2>&5
6914   ac_status=$?
6915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916   (exit $ac_status); }; }; then
6917   res_lo=`cat conftest.val`
6918 else
6919   echo "$as_me: program exited with status $ac_status" >&5
6920 echo "$as_me: failed program was:" >&5
6921 sed 's/^/| /' conftest.$ac_ext >&5
6922
6923 ( exit $ac_status )
6924 result=?
6925 fi
6926 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6927 fi
6928 fi
6929 rm -f conftest.val
6930     if test "$cross_compiling" = yes; then
6931   # Depending upon the size, compute the lo and hi bounds.
6932 cat >conftest.$ac_ext <<_ACEOF
6933 /* confdefs.h.  */
6934 _ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h.  */
6938 #include <stddef.h>
6939 int
6940 main ()
6941 {
6942 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
6943 test_array [0] = 0
6944
6945   ;
6946   return 0;
6947 }
6948 _ACEOF
6949 rm -f conftest.$ac_objext
6950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6951   (eval $ac_compile) 2>conftest.er1
6952   ac_status=$?
6953   grep -v '^ *+' conftest.er1 >conftest.err
6954   rm -f conftest.er1
6955   cat conftest.err >&5
6956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957   (exit $ac_status); } &&
6958          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6960   (eval $ac_try) 2>&5
6961   ac_status=$?
6962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963   (exit $ac_status); }; } &&
6964          { ac_try='test -s conftest.$ac_objext'
6965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6966   (eval $ac_try) 2>&5
6967   ac_status=$?
6968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969   (exit $ac_status); }; }; then
6970   ac_lo=0 ac_mid=0
6971   while :; do
6972     cat >conftest.$ac_ext <<_ACEOF
6973 /* confdefs.h.  */
6974 _ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h.  */
6978 #include <stddef.h>
6979 int
6980 main ()
6981 {
6982 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
6983 test_array [0] = 0
6984
6985   ;
6986   return 0;
6987 }
6988 _ACEOF
6989 rm -f conftest.$ac_objext
6990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6991   (eval $ac_compile) 2>conftest.er1
6992   ac_status=$?
6993   grep -v '^ *+' conftest.er1 >conftest.err
6994   rm -f conftest.er1
6995   cat conftest.err >&5
6996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997   (exit $ac_status); } &&
6998          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000   (eval $ac_try) 2>&5
7001   ac_status=$?
7002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003   (exit $ac_status); }; } &&
7004          { ac_try='test -s conftest.$ac_objext'
7005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006   (eval $ac_try) 2>&5
7007   ac_status=$?
7008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009   (exit $ac_status); }; }; then
7010   ac_hi=$ac_mid; break
7011 else
7012   echo "$as_me: failed program was:" >&5
7013 sed 's/^/| /' conftest.$ac_ext >&5
7014
7015 ac_lo=`expr $ac_mid + 1`
7016                     if test $ac_lo -le $ac_mid; then
7017                       ac_lo= ac_hi=
7018                       break
7019                     fi
7020                     ac_mid=`expr 2 '*' $ac_mid + 1`
7021 fi
7022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7023   done
7024 else
7025   echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7027
7028 cat >conftest.$ac_ext <<_ACEOF
7029 /* confdefs.h.  */
7030 _ACEOF
7031 cat confdefs.h >>conftest.$ac_ext
7032 cat >>conftest.$ac_ext <<_ACEOF
7033 /* end confdefs.h.  */
7034 #include <stddef.h>
7035 int
7036 main ()
7037 {
7038 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7039 test_array [0] = 0
7040
7041   ;
7042   return 0;
7043 }
7044 _ACEOF
7045 rm -f conftest.$ac_objext
7046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7047   (eval $ac_compile) 2>conftest.er1
7048   ac_status=$?
7049   grep -v '^ *+' conftest.er1 >conftest.err
7050   rm -f conftest.er1
7051   cat conftest.err >&5
7052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053   (exit $ac_status); } &&
7054          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056   (eval $ac_try) 2>&5
7057   ac_status=$?
7058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059   (exit $ac_status); }; } &&
7060          { ac_try='test -s conftest.$ac_objext'
7061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062   (eval $ac_try) 2>&5
7063   ac_status=$?
7064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065   (exit $ac_status); }; }; then
7066   ac_hi=-1 ac_mid=-1
7067   while :; do
7068     cat >conftest.$ac_ext <<_ACEOF
7069 /* confdefs.h.  */
7070 _ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h.  */
7074 #include <stddef.h>
7075 int
7076 main ()
7077 {
7078 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7079 test_array [0] = 0
7080
7081   ;
7082   return 0;
7083 }
7084 _ACEOF
7085 rm -f conftest.$ac_objext
7086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7087   (eval $ac_compile) 2>conftest.er1
7088   ac_status=$?
7089   grep -v '^ *+' conftest.er1 >conftest.err
7090   rm -f conftest.er1
7091   cat conftest.err >&5
7092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093   (exit $ac_status); } &&
7094          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096   (eval $ac_try) 2>&5
7097   ac_status=$?
7098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099   (exit $ac_status); }; } &&
7100          { ac_try='test -s conftest.$ac_objext'
7101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7102   (eval $ac_try) 2>&5
7103   ac_status=$?
7104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105   (exit $ac_status); }; }; then
7106   ac_lo=$ac_mid; break
7107 else
7108   echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.$ac_ext >&5
7110
7111 ac_hi=`expr '(' $ac_mid ')' - 1`
7112                        if test $ac_mid -le $ac_hi; then
7113                          ac_lo= ac_hi=
7114                          break
7115                        fi
7116                        ac_mid=`expr 2 '*' $ac_mid`
7117 fi
7118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7119   done
7120 else
7121   echo "$as_me: failed program was:" >&5
7122 sed 's/^/| /' conftest.$ac_ext >&5
7123
7124 ac_lo= ac_hi=
7125 fi
7126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7127 fi
7128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7129 # Binary search between lo and hi bounds.
7130 while test "x$ac_lo" != "x$ac_hi"; do
7131   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7132   cat >conftest.$ac_ext <<_ACEOF
7133 /* confdefs.h.  */
7134 _ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h.  */
7138 #include <stddef.h>
7139 int
7140 main ()
7141 {
7142 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7143 test_array [0] = 0
7144
7145   ;
7146   return 0;
7147 }
7148 _ACEOF
7149 rm -f conftest.$ac_objext
7150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7151   (eval $ac_compile) 2>conftest.er1
7152   ac_status=$?
7153   grep -v '^ *+' conftest.er1 >conftest.err
7154   rm -f conftest.er1
7155   cat conftest.err >&5
7156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157   (exit $ac_status); } &&
7158          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160   (eval $ac_try) 2>&5
7161   ac_status=$?
7162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163   (exit $ac_status); }; } &&
7164          { ac_try='test -s conftest.$ac_objext'
7165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166   (eval $ac_try) 2>&5
7167   ac_status=$?
7168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169   (exit $ac_status); }; }; then
7170   ac_hi=$ac_mid
7171 else
7172   echo "$as_me: failed program was:" >&5
7173 sed 's/^/| /' conftest.$ac_ext >&5
7174
7175 ac_lo=`expr '(' $ac_mid ')' + 1`
7176 fi
7177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7178 done
7179 case $ac_lo in
7180 ?*) fits_in_uint=$ac_lo;;
7181 '') result=? ;;
7182 esac
7183 else
7184   if test "$cross_compiling" = yes; then
7185   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7186 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7187    { (exit 1); exit 1; }; }
7188 else
7189   cat >conftest.$ac_ext <<_ACEOF
7190 /* confdefs.h.  */
7191 _ACEOF
7192 cat confdefs.h >>conftest.$ac_ext
7193 cat >>conftest.$ac_ext <<_ACEOF
7194 /* end confdefs.h.  */
7195 #include <stddef.h>
7196 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7197 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7198 #include <stdio.h>
7199 #include <stdlib.h>
7200 int
7201 main ()
7202 {
7203
7204   FILE *f = fopen ("conftest.val", "w");
7205   if (! f)
7206     exit (1);
7207   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7208     {
7209       long i = longval ();
7210       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7211         exit (1);
7212       fprintf (f, "%ld\n", i);
7213     }
7214   else
7215     {
7216       unsigned long i = ulongval ();
7217       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7218         exit (1);
7219       fprintf (f, "%lu\n", i);
7220     }
7221   exit (ferror (f) || fclose (f) != 0);
7222
7223   ;
7224   return 0;
7225 }
7226 _ACEOF
7227 rm -f conftest$ac_exeext
7228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7229   (eval $ac_link) 2>&5
7230   ac_status=$?
7231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7234   (eval $ac_try) 2>&5
7235   ac_status=$?
7236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237   (exit $ac_status); }; }; then
7238   fits_in_uint=`cat conftest.val`
7239 else
7240   echo "$as_me: program exited with status $ac_status" >&5
7241 echo "$as_me: failed program was:" >&5
7242 sed 's/^/| /' conftest.$ac_ext >&5
7243
7244 ( exit $ac_status )
7245 result=?
7246 fi
7247 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7248 fi
7249 fi
7250 rm -f conftest.val
7251     if test "$fits_in_uint" = 1; then
7252                   cat >conftest.$ac_ext <<_ACEOF
7253 /* confdefs.h.  */
7254 _ACEOF
7255 cat confdefs.h >>conftest.$ac_ext
7256 cat >>conftest.$ac_ext <<_ACEOF
7257 /* end confdefs.h.  */
7258 #include <stddef.h>
7259         extern size_t foo;
7260         extern unsigned long foo;
7261
7262 int
7263 main ()
7264 {
7265
7266   ;
7267   return 0;
7268 }
7269 _ACEOF
7270 rm -f conftest.$ac_objext
7271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7272   (eval $ac_compile) 2>conftest.er1
7273   ac_status=$?
7274   grep -v '^ *+' conftest.er1 >conftest.err
7275   rm -f conftest.er1
7276   cat conftest.err >&5
7277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278   (exit $ac_status); } &&
7279          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281   (eval $ac_try) 2>&5
7282   ac_status=$?
7283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284   (exit $ac_status); }; } &&
7285          { ac_try='test -s conftest.$ac_objext'
7286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287   (eval $ac_try) 2>&5
7288   ac_status=$?
7289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290   (exit $ac_status); }; }; then
7291   fits_in_uint=0
7292 else
7293   echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.$ac_ext >&5
7295
7296 fi
7297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7298     fi
7299     if test -z "$result"; then
7300       if test "$fits_in_uint" = 1; then
7301         result="$res_hi$res_lo"U
7302       else
7303         result="$res_hi$res_lo"UL
7304       fi
7305     else
7306             result='~(size_t)0'
7307     fi
7308   fi
7309   echo "$as_me:$LINENO: result: $result" >&5
7310 echo "${ECHO_T}$result" >&6
7311   if test "$result" != yes; then
7312
7313 cat >>confdefs.h <<_ACEOF
7314 #define SIZE_MAX $result
7315 _ACEOF
7316
7317   fi
7318
7319
7320
7321
7322 for ac_header in stdint.h
7323 do
7324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7326   echo "$as_me:$LINENO: checking for $ac_header" >&5
7327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7329   echo $ECHO_N "(cached) $ECHO_C" >&6
7330 fi
7331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7333 else
7334   # Is the header compilable?
7335 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7337 cat >conftest.$ac_ext <<_ACEOF
7338 /* confdefs.h.  */
7339 _ACEOF
7340 cat confdefs.h >>conftest.$ac_ext
7341 cat >>conftest.$ac_ext <<_ACEOF
7342 /* end confdefs.h.  */
7343 $ac_includes_default
7344 #include <$ac_header>
7345 _ACEOF
7346 rm -f conftest.$ac_objext
7347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7348   (eval $ac_compile) 2>conftest.er1
7349   ac_status=$?
7350   grep -v '^ *+' conftest.er1 >conftest.err
7351   rm -f conftest.er1
7352   cat conftest.err >&5
7353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354   (exit $ac_status); } &&
7355          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7357   (eval $ac_try) 2>&5
7358   ac_status=$?
7359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360   (exit $ac_status); }; } &&
7361          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7367   ac_header_compiler=yes
7368 else
7369   echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7371
7372 ac_header_compiler=no
7373 fi
7374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7375 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7376 echo "${ECHO_T}$ac_header_compiler" >&6
7377
7378 # Is the header present?
7379 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7381 cat >conftest.$ac_ext <<_ACEOF
7382 /* confdefs.h.  */
7383 _ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h.  */
7387 #include <$ac_header>
7388 _ACEOF
7389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7390   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7391   ac_status=$?
7392   grep -v '^ *+' conftest.er1 >conftest.err
7393   rm -f conftest.er1
7394   cat conftest.err >&5
7395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396   (exit $ac_status); } >/dev/null; then
7397   if test -s conftest.err; then
7398     ac_cpp_err=$ac_c_preproc_warn_flag
7399     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7400   else
7401     ac_cpp_err=
7402   fi
7403 else
7404   ac_cpp_err=yes
7405 fi
7406 if test -z "$ac_cpp_err"; then
7407   ac_header_preproc=yes
7408 else
7409   echo "$as_me: failed program was:" >&5
7410 sed 's/^/| /' conftest.$ac_ext >&5
7411
7412   ac_header_preproc=no
7413 fi
7414 rm -f conftest.err conftest.$ac_ext
7415 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7416 echo "${ECHO_T}$ac_header_preproc" >&6
7417
7418 # So?  What about this header?
7419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7420   yes:no: )
7421     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7423     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7425     ac_header_preproc=yes
7426     ;;
7427   no:yes:* )
7428     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7430     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7431 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7432     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7434     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7435 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7436     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7438     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7440     (
7441       cat <<\_ASBOX
7442 ## ------------------------------------------ ##
7443 ## Report this to the AC_PACKAGE_NAME lists.  ##
7444 ## ------------------------------------------ ##
7445 _ASBOX
7446     ) |
7447       sed "s/^/$as_me: WARNING:     /" >&2
7448     ;;
7449 esac
7450 echo "$as_me:$LINENO: checking for $ac_header" >&5
7451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7453   echo $ECHO_N "(cached) $ECHO_C" >&6
7454 else
7455   eval "$as_ac_Header=\$ac_header_preproc"
7456 fi
7457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7459
7460 fi
7461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7462   cat >>confdefs.h <<_ACEOF
7463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7464 _ACEOF
7465
7466 fi
7467
7468 done
7469
7470
7471
7472       if test "X$prefix" = "XNONE"; then
7473     acl_final_prefix="$ac_default_prefix"
7474   else
7475     acl_final_prefix="$prefix"
7476   fi
7477   if test "X$exec_prefix" = "XNONE"; then
7478     acl_final_exec_prefix='${prefix}'
7479   else
7480     acl_final_exec_prefix="$exec_prefix"
7481   fi
7482   acl_save_prefix="$prefix"
7483   prefix="$acl_final_prefix"
7484   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7485   prefix="$acl_save_prefix"
7486
7487
7488 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7489 if test "${with_gnu_ld+set}" = set; then
7490   withval="$with_gnu_ld"
7491   test "$withval" = no || with_gnu_ld=yes
7492 else
7493   with_gnu_ld=no
7494 fi;
7495 # Prepare PATH_SEPARATOR.
7496 # The user is always right.
7497 if test "${PATH_SEPARATOR+set}" != set; then
7498   echo "#! /bin/sh" >conf$$.sh
7499   echo  "exit 0"   >>conf$$.sh
7500   chmod +x conf$$.sh
7501   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7502     PATH_SEPARATOR=';'
7503   else
7504     PATH_SEPARATOR=:
7505   fi
7506   rm -f conf$$.sh
7507 fi
7508 ac_prog=ld
7509 if test "$GCC" = yes; then
7510   # Check if gcc -print-prog-name=ld gives a path.
7511   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7512 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7513   case $host in
7514   *-*-mingw*)
7515     # gcc leaves a trailing carriage return which upsets mingw
7516     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7517   *)
7518     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7519   esac
7520   case $ac_prog in
7521     # Accept absolute paths.
7522     [\\/]* | [A-Za-z]:[\\/]*)
7523       re_direlt='/[^/][^/]*/\.\./'
7524       # Canonicalize the path of ld
7525       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7526       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7527         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7528       done
7529       test -z "$LD" && LD="$ac_prog"
7530       ;;
7531   "")
7532     # If it fails, then pretend we aren't using GCC.
7533     ac_prog=ld
7534     ;;
7535   *)
7536     # If it is relative, then search for the first ld in PATH.
7537     with_gnu_ld=unknown
7538     ;;
7539   esac
7540 elif test "$with_gnu_ld" = yes; then
7541   echo "$as_me:$LINENO: checking for GNU ld" >&5
7542 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7543 else
7544   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7545 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7546 fi
7547 if test "${acl_cv_path_LD+set}" = set; then
7548   echo $ECHO_N "(cached) $ECHO_C" >&6
7549 else
7550   if test -z "$LD"; then
7551   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7552   for ac_dir in $PATH; do
7553     test -z "$ac_dir" && ac_dir=.
7554     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7555       acl_cv_path_LD="$ac_dir/$ac_prog"
7556       # Check to see if the program is GNU ld.  I'd rather use --version,
7557       # but apparently some GNU ld's only accept -v.
7558       # Break only if it was the GNU/non-GNU ld that we prefer.
7559       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7560       *GNU* | *'with BFD'*)
7561         test "$with_gnu_ld" != no && break ;;
7562       *)
7563         test "$with_gnu_ld" != yes && break ;;
7564       esac
7565     fi
7566   done
7567   IFS="$ac_save_ifs"
7568 else
7569   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7570 fi
7571 fi
7572
7573 LD="$acl_cv_path_LD"
7574 if test -n "$LD"; then
7575   echo "$as_me:$LINENO: result: $LD" >&5
7576 echo "${ECHO_T}$LD" >&6
7577 else
7578   echo "$as_me:$LINENO: result: no" >&5
7579 echo "${ECHO_T}no" >&6
7580 fi
7581 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7582 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7583    { (exit 1); exit 1; }; }
7584 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7585 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7586 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7587   echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7590 case `$LD -v 2>&1 </dev/null` in
7591 *GNU* | *'with BFD'*)
7592   acl_cv_prog_gnu_ld=yes ;;
7593 *)
7594   acl_cv_prog_gnu_ld=no ;;
7595 esac
7596 fi
7597 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7598 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7599 with_gnu_ld=$acl_cv_prog_gnu_ld
7600
7601
7602
7603                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7604 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7605 if test "${acl_cv_rpath+set}" = set; then
7606   echo $ECHO_N "(cached) $ECHO_C" >&6
7607 else
7608
7609     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7610     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7611     . ./conftest.sh
7612     rm -f ./conftest.sh
7613     acl_cv_rpath=done
7614
7615 fi
7616 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7617 echo "${ECHO_T}$acl_cv_rpath" >&6
7618   wl="$acl_cv_wl"
7619   libext="$acl_cv_libext"
7620   shlibext="$acl_cv_shlibext"
7621   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7622   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7623   hardcode_direct="$acl_cv_hardcode_direct"
7624   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7625     # Check whether --enable-rpath or --disable-rpath was given.
7626 if test "${enable_rpath+set}" = set; then
7627   enableval="$enable_rpath"
7628   :
7629 else
7630   enable_rpath=yes
7631 fi;
7632
7633
7634
7635
7636
7637
7638
7639     use_additional=yes
7640
7641   acl_save_prefix="$prefix"
7642   prefix="$acl_final_prefix"
7643   acl_save_exec_prefix="$exec_prefix"
7644   exec_prefix="$acl_final_exec_prefix"
7645
7646     eval additional_includedir=\"$includedir\"
7647     eval additional_libdir=\"$libdir\"
7648
7649   exec_prefix="$acl_save_exec_prefix"
7650   prefix="$acl_save_prefix"
7651
7652
7653 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7654 if test "${with_libiconv_prefix+set}" = set; then
7655   withval="$with_libiconv_prefix"
7656
7657     if test "X$withval" = "Xno"; then
7658       use_additional=no
7659     else
7660       if test "X$withval" = "X"; then
7661
7662   acl_save_prefix="$prefix"
7663   prefix="$acl_final_prefix"
7664   acl_save_exec_prefix="$exec_prefix"
7665   exec_prefix="$acl_final_exec_prefix"
7666
7667           eval additional_includedir=\"$includedir\"
7668           eval additional_libdir=\"$libdir\"
7669
7670   exec_prefix="$acl_save_exec_prefix"
7671   prefix="$acl_save_prefix"
7672
7673       else
7674         additional_includedir="$withval/include"
7675         additional_libdir="$withval/lib"
7676       fi
7677     fi
7678
7679 fi;
7680       LIBICONV=
7681   LTLIBICONV=
7682   INCICONV=
7683   rpathdirs=
7684   ltrpathdirs=
7685   names_already_handled=
7686   names_next_round='iconv '
7687   while test -n "$names_next_round"; do
7688     names_this_round="$names_next_round"
7689     names_next_round=
7690     for name in $names_this_round; do
7691       already_handled=
7692       for n in $names_already_handled; do
7693         if test "$n" = "$name"; then
7694           already_handled=yes
7695           break
7696         fi
7697       done
7698       if test -z "$already_handled"; then
7699         names_already_handled="$names_already_handled $name"
7700                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7701         eval value=\"\$HAVE_LIB$uppername\"
7702         if test -n "$value"; then
7703           if test "$value" = yes; then
7704             eval value=\"\$LIB$uppername\"
7705             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7706             eval value=\"\$LTLIB$uppername\"
7707             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7708           else
7709                                     :
7710           fi
7711         else
7712                               found_dir=
7713           found_la=
7714           found_so=
7715           found_a=
7716           if test $use_additional = yes; then
7717             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7718               found_dir="$additional_libdir"
7719               found_so="$additional_libdir/lib$name.$shlibext"
7720               if test -f "$additional_libdir/lib$name.la"; then
7721                 found_la="$additional_libdir/lib$name.la"
7722               fi
7723             else
7724               if test -f "$additional_libdir/lib$name.$libext"; then
7725                 found_dir="$additional_libdir"
7726                 found_a="$additional_libdir/lib$name.$libext"
7727                 if test -f "$additional_libdir/lib$name.la"; then
7728                   found_la="$additional_libdir/lib$name.la"
7729                 fi
7730               fi
7731             fi
7732           fi
7733           if test "X$found_dir" = "X"; then
7734             for x in $LDFLAGS $LTLIBICONV; do
7735
7736   acl_save_prefix="$prefix"
7737   prefix="$acl_final_prefix"
7738   acl_save_exec_prefix="$exec_prefix"
7739   exec_prefix="$acl_final_exec_prefix"
7740   eval x=\"$x\"
7741   exec_prefix="$acl_save_exec_prefix"
7742   prefix="$acl_save_prefix"
7743
7744               case "$x" in
7745                 -L*)
7746                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7747                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7748                     found_dir="$dir"
7749                     found_so="$dir/lib$name.$shlibext"
7750                     if test -f "$dir/lib$name.la"; then
7751                       found_la="$dir/lib$name.la"
7752                     fi
7753                   else
7754                     if test -f "$dir/lib$name.$libext"; then
7755                       found_dir="$dir"
7756                       found_a="$dir/lib$name.$libext"
7757                       if test -f "$dir/lib$name.la"; then
7758                         found_la="$dir/lib$name.la"
7759                       fi
7760                     fi
7761                   fi
7762                   ;;
7763               esac
7764               if test "X$found_dir" != "X"; then
7765                 break
7766               fi
7767             done
7768           fi
7769           if test "X$found_dir" != "X"; then
7770                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7771             if test "X$found_so" != "X"; then
7772                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7773                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7774               else
7775                                                                                 haveit=
7776                 for x in $ltrpathdirs; do
7777                   if test "X$x" = "X$found_dir"; then
7778                     haveit=yes
7779                     break
7780                   fi
7781                 done
7782                 if test -z "$haveit"; then
7783                   ltrpathdirs="$ltrpathdirs $found_dir"
7784                 fi
7785                                 if test "$hardcode_direct" = yes; then
7786                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7787                 else
7788                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7789                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7790                                                             haveit=
7791                     for x in $rpathdirs; do
7792                       if test "X$x" = "X$found_dir"; then
7793                         haveit=yes
7794                         break
7795                       fi
7796                     done
7797                     if test -z "$haveit"; then
7798                       rpathdirs="$rpathdirs $found_dir"
7799                     fi
7800                   else
7801                                                                                 haveit=
7802                     for x in $LDFLAGS $LIBICONV; do
7803
7804   acl_save_prefix="$prefix"
7805   prefix="$acl_final_prefix"
7806   acl_save_exec_prefix="$exec_prefix"
7807   exec_prefix="$acl_final_exec_prefix"
7808   eval x=\"$x\"
7809   exec_prefix="$acl_save_exec_prefix"
7810   prefix="$acl_save_prefix"
7811
7812                       if test "X$x" = "X-L$found_dir"; then
7813                         haveit=yes
7814                         break
7815                       fi
7816                     done
7817                     if test -z "$haveit"; then
7818                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7819                     fi
7820                     if test "$hardcode_minus_L" != no; then
7821                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7822                     else
7823                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7824                     fi
7825                   fi
7826                 fi
7827               fi
7828             else
7829               if test "X$found_a" != "X"; then
7830                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7831               else
7832                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7833               fi
7834             fi
7835                         additional_includedir=
7836             case "$found_dir" in
7837               */lib | */lib/)
7838                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7839                 additional_includedir="$basedir/include"
7840                 ;;
7841             esac
7842             if test "X$additional_includedir" != "X"; then
7843                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7844                 haveit=
7845                 if test "X$additional_includedir" = "X/usr/local/include"; then
7846                   if test -n "$GCC"; then
7847                     case $host_os in
7848                       linux*) haveit=yes;;
7849                     esac
7850                   fi
7851                 fi
7852                 if test -z "$haveit"; then
7853                   for x in $CPPFLAGS $INCICONV; do
7854
7855   acl_save_prefix="$prefix"
7856   prefix="$acl_final_prefix"
7857   acl_save_exec_prefix="$exec_prefix"
7858   exec_prefix="$acl_final_exec_prefix"
7859   eval x=\"$x\"
7860   exec_prefix="$acl_save_exec_prefix"
7861   prefix="$acl_save_prefix"
7862
7863                     if test "X$x" = "X-I$additional_includedir"; then
7864                       haveit=yes
7865                       break
7866                     fi
7867                   done
7868                   if test -z "$haveit"; then
7869                     if test -d "$additional_includedir"; then
7870                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7871                     fi
7872                   fi
7873                 fi
7874               fi
7875             fi
7876                         if test -n "$found_la"; then
7877                                                         save_libdir="$libdir"
7878               case "$found_la" in
7879                 */* | *\\*) . "$found_la" ;;
7880                 *) . "./$found_la" ;;
7881               esac
7882               libdir="$save_libdir"
7883                             for dep in $dependency_libs; do
7884                 case "$dep" in
7885                   -L*)
7886                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7887                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7888                       haveit=
7889                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7890                         if test -n "$GCC"; then
7891                           case $host_os in
7892                             linux*) haveit=yes;;
7893                           esac
7894                         fi
7895                       fi
7896                       if test -z "$haveit"; then
7897                         haveit=
7898                         for x in $LDFLAGS $LIBICONV; do
7899
7900   acl_save_prefix="$prefix"
7901   prefix="$acl_final_prefix"
7902   acl_save_exec_prefix="$exec_prefix"
7903   exec_prefix="$acl_final_exec_prefix"
7904   eval x=\"$x\"
7905   exec_prefix="$acl_save_exec_prefix"
7906   prefix="$acl_save_prefix"
7907
7908                           if test "X$x" = "X-L$additional_libdir"; then
7909                             haveit=yes
7910                             break
7911                           fi
7912                         done
7913                         if test -z "$haveit"; then
7914                           if test -d "$additional_libdir"; then
7915                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7916                           fi
7917                         fi
7918                         haveit=
7919                         for x in $LDFLAGS $LTLIBICONV; do
7920
7921   acl_save_prefix="$prefix"
7922   prefix="$acl_final_prefix"
7923   acl_save_exec_prefix="$exec_prefix"
7924   exec_prefix="$acl_final_exec_prefix"
7925   eval x=\"$x\"
7926   exec_prefix="$acl_save_exec_prefix"
7927   prefix="$acl_save_prefix"
7928
7929                           if test "X$x" = "X-L$additional_libdir"; then
7930                             haveit=yes
7931                             break
7932                           fi
7933                         done
7934                         if test -z "$haveit"; then
7935                           if test -d "$additional_libdir"; then
7936                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7937                           fi
7938                         fi
7939                       fi
7940                     fi
7941                     ;;
7942                   -R*)
7943                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7944                     if test "$enable_rpath" != no; then
7945                                                                   haveit=
7946                       for x in $rpathdirs; do
7947                         if test "X$x" = "X$dir"; then
7948                           haveit=yes
7949                           break
7950                         fi
7951                       done
7952                       if test -z "$haveit"; then
7953                         rpathdirs="$rpathdirs $dir"
7954                       fi
7955                                                                   haveit=
7956                       for x in $ltrpathdirs; do
7957                         if test "X$x" = "X$dir"; then
7958                           haveit=yes
7959                           break
7960                         fi
7961                       done
7962                       if test -z "$haveit"; then
7963                         ltrpathdirs="$ltrpathdirs $dir"
7964                       fi
7965                     fi
7966                     ;;
7967                   -l*)
7968                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7969                     ;;
7970                   *.la)
7971                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7972                     ;;
7973                   *)
7974                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7975                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7976                     ;;
7977                 esac
7978               done
7979             fi
7980           else
7981                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7982             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7983           fi
7984         fi
7985       fi
7986     done
7987   done
7988   if test "X$rpathdirs" != "X"; then
7989     if test -n "$hardcode_libdir_separator"; then
7990                         alldirs=
7991       for found_dir in $rpathdirs; do
7992         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7993       done
7994             acl_save_libdir="$libdir"
7995       libdir="$alldirs"
7996       eval flag=\"$hardcode_libdir_flag_spec\"
7997       libdir="$acl_save_libdir"
7998       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7999     else
8000             for found_dir in $rpathdirs; do
8001         acl_save_libdir="$libdir"
8002         libdir="$found_dir"
8003         eval flag=\"$hardcode_libdir_flag_spec\"
8004         libdir="$acl_save_libdir"
8005         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8006       done
8007     fi
8008   fi
8009   if test "X$ltrpathdirs" != "X"; then
8010             for found_dir in $ltrpathdirs; do
8011       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8012     done
8013   fi
8014
8015
8016
8017
8018
8019
8020
8021
8022   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8023 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
8024 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8025   echo $ECHO_N "(cached) $ECHO_C" >&6
8026 else
8027   cat >conftest.$ac_ext <<_ACEOF
8028 /* confdefs.h.  */
8029 _ACEOF
8030 cat confdefs.h >>conftest.$ac_ext
8031 cat >>conftest.$ac_ext <<_ACEOF
8032 /* end confdefs.h.  */
8033 $ac_includes_default
8034 int
8035 main ()
8036 {
8037 if ((ptrdiff_t *) 0)
8038   return 0;
8039 if (sizeof (ptrdiff_t))
8040   return 0;
8041   ;
8042   return 0;
8043 }
8044 _ACEOF
8045 rm -f conftest.$ac_objext
8046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8047   (eval $ac_compile) 2>conftest.er1
8048   ac_status=$?
8049   grep -v '^ *+' conftest.er1 >conftest.err
8050   rm -f conftest.er1
8051   cat conftest.err >&5
8052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053   (exit $ac_status); } &&
8054          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056   (eval $ac_try) 2>&5
8057   ac_status=$?
8058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059   (exit $ac_status); }; } &&
8060          { ac_try='test -s conftest.$ac_objext'
8061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062   (eval $ac_try) 2>&5
8063   ac_status=$?
8064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065   (exit $ac_status); }; }; then
8066   ac_cv_type_ptrdiff_t=yes
8067 else
8068   echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8070
8071 ac_cv_type_ptrdiff_t=no
8072 fi
8073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8074 fi
8075 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8076 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
8077 if test $ac_cv_type_ptrdiff_t = yes; then
8078   :
8079 else
8080
8081 cat >>confdefs.h <<\_ACEOF
8082 #define ptrdiff_t long
8083 _ACEOF
8084
8085
8086 fi
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8099 stdlib.h string.h unistd.h sys/param.h
8100 do
8101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8103   echo "$as_me:$LINENO: checking for $ac_header" >&5
8104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8106   echo $ECHO_N "(cached) $ECHO_C" >&6
8107 fi
8108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8110 else
8111   # Is the header compilable?
8112 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8114 cat >conftest.$ac_ext <<_ACEOF
8115 /* confdefs.h.  */
8116 _ACEOF
8117 cat confdefs.h >>conftest.$ac_ext
8118 cat >>conftest.$ac_ext <<_ACEOF
8119 /* end confdefs.h.  */
8120 $ac_includes_default
8121 #include <$ac_header>
8122 _ACEOF
8123 rm -f conftest.$ac_objext
8124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8125   (eval $ac_compile) 2>conftest.er1
8126   ac_status=$?
8127   grep -v '^ *+' conftest.er1 >conftest.err
8128   rm -f conftest.er1
8129   cat conftest.err >&5
8130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131   (exit $ac_status); } &&
8132          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134   (eval $ac_try) 2>&5
8135   ac_status=$?
8136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137   (exit $ac_status); }; } &&
8138          { ac_try='test -s conftest.$ac_objext'
8139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140   (eval $ac_try) 2>&5
8141   ac_status=$?
8142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143   (exit $ac_status); }; }; then
8144   ac_header_compiler=yes
8145 else
8146   echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8148
8149 ac_header_compiler=no
8150 fi
8151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8152 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8153 echo "${ECHO_T}$ac_header_compiler" >&6
8154
8155 # Is the header present?
8156 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8158 cat >conftest.$ac_ext <<_ACEOF
8159 /* confdefs.h.  */
8160 _ACEOF
8161 cat confdefs.h >>conftest.$ac_ext
8162 cat >>conftest.$ac_ext <<_ACEOF
8163 /* end confdefs.h.  */
8164 #include <$ac_header>
8165 _ACEOF
8166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8167   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8168   ac_status=$?
8169   grep -v '^ *+' conftest.er1 >conftest.err
8170   rm -f conftest.er1
8171   cat conftest.err >&5
8172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173   (exit $ac_status); } >/dev/null; then
8174   if test -s conftest.err; then
8175     ac_cpp_err=$ac_c_preproc_warn_flag
8176     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8177   else
8178     ac_cpp_err=
8179   fi
8180 else
8181   ac_cpp_err=yes
8182 fi
8183 if test -z "$ac_cpp_err"; then
8184   ac_header_preproc=yes
8185 else
8186   echo "$as_me: failed program was:" >&5
8187 sed 's/^/| /' conftest.$ac_ext >&5
8188
8189   ac_header_preproc=no
8190 fi
8191 rm -f conftest.err conftest.$ac_ext
8192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8193 echo "${ECHO_T}$ac_header_preproc" >&6
8194
8195 # So?  What about this header?
8196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8197   yes:no: )
8198     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8200     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8202     ac_header_preproc=yes
8203     ;;
8204   no:yes:* )
8205     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8207     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8208 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8209     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8211     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8212 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8213     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8215     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8217     (
8218       cat <<\_ASBOX
8219 ## ------------------------------------------ ##
8220 ## Report this to the AC_PACKAGE_NAME lists.  ##
8221 ## ------------------------------------------ ##
8222 _ASBOX
8223     ) |
8224       sed "s/^/$as_me: WARNING:     /" >&2
8225     ;;
8226 esac
8227 echo "$as_me:$LINENO: checking for $ac_header" >&5
8228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8230   echo $ECHO_N "(cached) $ECHO_C" >&6
8231 else
8232   eval "$as_ac_Header=\$ac_header_preproc"
8233 fi
8234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8236
8237 fi
8238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8239   cat >>confdefs.h <<_ACEOF
8240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8241 _ACEOF
8242
8243 fi
8244
8245 done
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8271 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8272 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8273 __fsetlocking
8274 do
8275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8276 echo "$as_me:$LINENO: checking for $ac_func" >&5
8277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8278 if eval "test \"\${$as_ac_var+set}\" = set"; then
8279   echo $ECHO_N "(cached) $ECHO_C" >&6
8280 else
8281   cat >conftest.$ac_ext <<_ACEOF
8282 /* confdefs.h.  */
8283 _ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h.  */
8287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8288    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8289 #define $ac_func innocuous_$ac_func
8290
8291 /* System header to define __stub macros and hopefully few prototypes,
8292     which can conflict with char $ac_func (); below.
8293     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8294     <limits.h> exists even on freestanding compilers.  */
8295
8296 #ifdef __STDC__
8297 # include <limits.h>
8298 #else
8299 # include <assert.h>
8300 #endif
8301
8302 #undef $ac_func
8303
8304 /* Override any gcc2 internal prototype to avoid an error.  */
8305 #ifdef __cplusplus
8306 extern "C"
8307 {
8308 #endif
8309 /* We use char because int might match the return type of a gcc2
8310    builtin and then its argument prototype would still apply.  */
8311 char $ac_func ();
8312 /* The GNU C library defines this for functions which it implements
8313     to always fail with ENOSYS.  Some functions are actually named
8314     something starting with __ and the normal name is an alias.  */
8315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8316 choke me
8317 #else
8318 char (*f) () = $ac_func;
8319 #endif
8320 #ifdef __cplusplus
8321 }
8322 #endif
8323
8324 int
8325 main ()
8326 {
8327 return f != $ac_func;
8328   ;
8329   return 0;
8330 }
8331 _ACEOF
8332 rm -f conftest.$ac_objext conftest$ac_exeext
8333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8334   (eval $ac_link) 2>conftest.er1
8335   ac_status=$?
8336   grep -v '^ *+' conftest.er1 >conftest.err
8337   rm -f conftest.er1
8338   cat conftest.err >&5
8339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340   (exit $ac_status); } &&
8341          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343   (eval $ac_try) 2>&5
8344   ac_status=$?
8345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346   (exit $ac_status); }; } &&
8347          { ac_try='test -s conftest$ac_exeext'
8348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8349   (eval $ac_try) 2>&5
8350   ac_status=$?
8351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352   (exit $ac_status); }; }; then
8353   eval "$as_ac_var=yes"
8354 else
8355   echo "$as_me: failed program was:" >&5
8356 sed 's/^/| /' conftest.$ac_ext >&5
8357
8358 eval "$as_ac_var=no"
8359 fi
8360 rm -f conftest.err conftest.$ac_objext \
8361       conftest$ac_exeext conftest.$ac_ext
8362 fi
8363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8364 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8365 if test `eval echo '${'$as_ac_var'}'` = yes; then
8366   cat >>confdefs.h <<_ACEOF
8367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8368 _ACEOF
8369
8370 fi
8371 done
8372
8373
8374
8375   echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
8376 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
8377 if test "${ac_cv_have_decl__snprintf+set}" = set; then
8378   echo $ECHO_N "(cached) $ECHO_C" >&6
8379 else
8380   cat >conftest.$ac_ext <<_ACEOF
8381 /* confdefs.h.  */
8382 _ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h.  */
8386 #include <stdio.h>
8387 int
8388 main ()
8389 {
8390
8391 #ifndef _snprintf
8392   char *p = (char *) _snprintf;
8393 #endif
8394
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"                   || test ! -s conftest.err'
8409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410   (eval $ac_try) 2>&5
8411   ac_status=$?
8412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413   (exit $ac_status); }; } &&
8414          { ac_try='test -s conftest.$ac_objext'
8415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416   (eval $ac_try) 2>&5
8417   ac_status=$?
8418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419   (exit $ac_status); }; }; then
8420   ac_cv_have_decl__snprintf=yes
8421 else
8422   echo "$as_me: failed program was:" >&5
8423 sed 's/^/| /' conftest.$ac_ext >&5
8424
8425 ac_cv_have_decl__snprintf=no
8426 fi
8427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8428 fi
8429 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
8430 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
8431   if test $ac_cv_have_decl__snprintf = yes; then
8432     gt_value=1
8433   else
8434     gt_value=0
8435   fi
8436
8437 cat >>confdefs.h <<_ACEOF
8438 #define HAVE_DECL__SNPRINTF $gt_value
8439 _ACEOF
8440
8441
8442
8443   echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
8444 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
8445 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
8446   echo $ECHO_N "(cached) $ECHO_C" >&6
8447 else
8448   cat >conftest.$ac_ext <<_ACEOF
8449 /* confdefs.h.  */
8450 _ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h.  */
8454 #include <stdio.h>
8455 int
8456 main ()
8457 {
8458
8459 #ifndef _snwprintf
8460   char *p = (char *) _snwprintf;
8461 #endif
8462
8463   ;
8464   return 0;
8465 }
8466 _ACEOF
8467 rm -f conftest.$ac_objext
8468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8469   (eval $ac_compile) 2>conftest.er1
8470   ac_status=$?
8471   grep -v '^ *+' conftest.er1 >conftest.err
8472   rm -f conftest.er1
8473   cat conftest.err >&5
8474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475   (exit $ac_status); } &&
8476          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478   (eval $ac_try) 2>&5
8479   ac_status=$?
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); }; } &&
8482          { ac_try='test -s conftest.$ac_objext'
8483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484   (eval $ac_try) 2>&5
8485   ac_status=$?
8486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487   (exit $ac_status); }; }; then
8488   ac_cv_have_decl__snwprintf=yes
8489 else
8490   echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8492
8493 ac_cv_have_decl__snwprintf=no
8494 fi
8495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8496 fi
8497 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
8498 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
8499   if test $ac_cv_have_decl__snwprintf = yes; then
8500     gt_value=1
8501   else
8502     gt_value=0
8503   fi
8504
8505 cat >>confdefs.h <<_ACEOF
8506 #define HAVE_DECL__SNWPRINTF $gt_value
8507 _ACEOF
8508
8509
8510
8511
8512   echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8513 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
8514 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8515   echo $ECHO_N "(cached) $ECHO_C" >&6
8516 else
8517   cat >conftest.$ac_ext <<_ACEOF
8518 /* confdefs.h.  */
8519 _ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h.  */
8523 #include <stdio.h>
8524 int
8525 main ()
8526 {
8527
8528 #ifndef feof_unlocked
8529   char *p = (char *) feof_unlocked;
8530 #endif
8531
8532   ;
8533   return 0;
8534 }
8535 _ACEOF
8536 rm -f conftest.$ac_objext
8537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8538   (eval $ac_compile) 2>conftest.er1
8539   ac_status=$?
8540   grep -v '^ *+' conftest.er1 >conftest.err
8541   rm -f conftest.er1
8542   cat conftest.err >&5
8543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544   (exit $ac_status); } &&
8545          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547   (eval $ac_try) 2>&5
8548   ac_status=$?
8549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550   (exit $ac_status); }; } &&
8551          { ac_try='test -s conftest.$ac_objext'
8552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553   (eval $ac_try) 2>&5
8554   ac_status=$?
8555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556   (exit $ac_status); }; }; then
8557   ac_cv_have_decl_feof_unlocked=yes
8558 else
8559   echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8561
8562 ac_cv_have_decl_feof_unlocked=no
8563 fi
8564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8565 fi
8566 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8567 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
8568   if test $ac_cv_have_decl_feof_unlocked = yes; then
8569     gt_value=1
8570   else
8571     gt_value=0
8572   fi
8573
8574 cat >>confdefs.h <<_ACEOF
8575 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8576 _ACEOF
8577
8578
8579
8580   echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
8581 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
8582 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
8583   echo $ECHO_N "(cached) $ECHO_C" >&6
8584 else
8585   cat >conftest.$ac_ext <<_ACEOF
8586 /* confdefs.h.  */
8587 _ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h.  */
8591 #include <stdio.h>
8592 int
8593 main ()
8594 {
8595
8596 #ifndef fgets_unlocked
8597   char *p = (char *) fgets_unlocked;
8598 #endif
8599
8600   ;
8601   return 0;
8602 }
8603 _ACEOF
8604 rm -f conftest.$ac_objext
8605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8606   (eval $ac_compile) 2>conftest.er1
8607   ac_status=$?
8608   grep -v '^ *+' conftest.er1 >conftest.err
8609   rm -f conftest.er1
8610   cat conftest.err >&5
8611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612   (exit $ac_status); } &&
8613          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615   (eval $ac_try) 2>&5
8616   ac_status=$?
8617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); }; } &&
8619          { ac_try='test -s conftest.$ac_objext'
8620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621   (eval $ac_try) 2>&5
8622   ac_status=$?
8623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624   (exit $ac_status); }; }; then
8625   ac_cv_have_decl_fgets_unlocked=yes
8626 else
8627   echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.$ac_ext >&5
8629
8630 ac_cv_have_decl_fgets_unlocked=no
8631 fi
8632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8633 fi
8634 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
8635 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
8636   if test $ac_cv_have_decl_fgets_unlocked = yes; then
8637     gt_value=1
8638   else
8639     gt_value=0
8640   fi
8641
8642 cat >>confdefs.h <<_ACEOF
8643 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8644 _ACEOF
8645
8646
8647
8648   echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
8649 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
8650 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
8651   echo $ECHO_N "(cached) $ECHO_C" >&6
8652 else
8653   cat >conftest.$ac_ext <<_ACEOF
8654 /* confdefs.h.  */
8655 _ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h.  */
8659 #include <stdio.h>
8660 int
8661 main ()
8662 {
8663
8664 #ifndef getc_unlocked
8665   char *p = (char *) getc_unlocked;
8666 #endif
8667
8668   ;
8669   return 0;
8670 }
8671 _ACEOF
8672 rm -f conftest.$ac_objext
8673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8674   (eval $ac_compile) 2>conftest.er1
8675   ac_status=$?
8676   grep -v '^ *+' conftest.er1 >conftest.err
8677   rm -f conftest.er1
8678   cat conftest.err >&5
8679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680   (exit $ac_status); } &&
8681          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683   (eval $ac_try) 2>&5
8684   ac_status=$?
8685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686   (exit $ac_status); }; } &&
8687          { ac_try='test -s conftest.$ac_objext'
8688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689   (eval $ac_try) 2>&5
8690   ac_status=$?
8691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692   (exit $ac_status); }; }; then
8693   ac_cv_have_decl_getc_unlocked=yes
8694 else
8695   echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8697
8698 ac_cv_have_decl_getc_unlocked=no
8699 fi
8700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8701 fi
8702 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
8703 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
8704   if test $ac_cv_have_decl_getc_unlocked = yes; then
8705     gt_value=1
8706   else
8707     gt_value=0
8708   fi
8709
8710 cat >>confdefs.h <<_ACEOF
8711 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8712 _ACEOF
8713
8714
8715
8716   case $gt_cv_func_printf_posix in
8717     *yes) HAVE_POSIX_PRINTF=1 ;;
8718     *) HAVE_POSIX_PRINTF=0 ;;
8719   esac
8720
8721   if test "$ac_cv_func_asprintf" = yes; then
8722     HAVE_ASPRINTF=1
8723   else
8724     HAVE_ASPRINTF=0
8725   fi
8726
8727   if test "$ac_cv_func_snprintf" = yes; then
8728     HAVE_SNPRINTF=1
8729   else
8730     HAVE_SNPRINTF=0
8731   fi
8732
8733   if test "$ac_cv_func_wprintf" = yes; then
8734     HAVE_WPRINTF=1
8735   else
8736     HAVE_WPRINTF=0
8737   fi
8738
8739
8740
8741
8742
8743
8744
8745           am_save_CPPFLAGS="$CPPFLAGS"
8746
8747   for element in $INCICONV; do
8748     haveit=
8749     for x in $CPPFLAGS; do
8750
8751   acl_save_prefix="$prefix"
8752   prefix="$acl_final_prefix"
8753   acl_save_exec_prefix="$exec_prefix"
8754   exec_prefix="$acl_final_exec_prefix"
8755   eval x=\"$x\"
8756   exec_prefix="$acl_save_exec_prefix"
8757   prefix="$acl_save_prefix"
8758
8759       if test "X$x" = "X$element"; then
8760         haveit=yes
8761         break
8762       fi
8763     done
8764     if test -z "$haveit"; then
8765       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8766     fi
8767   done
8768
8769
8770   echo "$as_me:$LINENO: checking for iconv" >&5
8771 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8772 if test "${am_cv_func_iconv+set}" = set; then
8773   echo $ECHO_N "(cached) $ECHO_C" >&6
8774 else
8775
8776     am_cv_func_iconv="no, consider installing GNU libiconv"
8777     am_cv_lib_iconv=no
8778     cat >conftest.$ac_ext <<_ACEOF
8779 /* confdefs.h.  */
8780 _ACEOF
8781 cat confdefs.h >>conftest.$ac_ext
8782 cat >>conftest.$ac_ext <<_ACEOF
8783 /* end confdefs.h.  */
8784 #include <stdlib.h>
8785 #include <iconv.h>
8786 int
8787 main ()
8788 {
8789 iconv_t cd = iconv_open("","");
8790        iconv(cd,NULL,NULL,NULL,NULL);
8791        iconv_close(cd);
8792   ;
8793   return 0;
8794 }
8795 _ACEOF
8796 rm -f conftest.$ac_objext conftest$ac_exeext
8797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8798   (eval $ac_link) 2>conftest.er1
8799   ac_status=$?
8800   grep -v '^ *+' conftest.er1 >conftest.err
8801   rm -f conftest.er1
8802   cat conftest.err >&5
8803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804   (exit $ac_status); } &&
8805          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807   (eval $ac_try) 2>&5
8808   ac_status=$?
8809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810   (exit $ac_status); }; } &&
8811          { ac_try='test -s conftest$ac_exeext'
8812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813   (eval $ac_try) 2>&5
8814   ac_status=$?
8815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816   (exit $ac_status); }; }; then
8817   am_cv_func_iconv=yes
8818 else
8819   echo "$as_me: failed program was:" >&5
8820 sed 's/^/| /' conftest.$ac_ext >&5
8821
8822 fi
8823 rm -f conftest.err conftest.$ac_objext \
8824       conftest$ac_exeext conftest.$ac_ext
8825     if test "$am_cv_func_iconv" != yes; then
8826       am_save_LIBS="$LIBS"
8827       LIBS="$LIBS $LIBICONV"
8828       cat >conftest.$ac_ext <<_ACEOF
8829 /* confdefs.h.  */
8830 _ACEOF
8831 cat confdefs.h >>conftest.$ac_ext
8832 cat >>conftest.$ac_ext <<_ACEOF
8833 /* end confdefs.h.  */
8834 #include <stdlib.h>
8835 #include <iconv.h>
8836 int
8837 main ()
8838 {
8839 iconv_t cd = iconv_open("","");
8840          iconv(cd,NULL,NULL,NULL,NULL);
8841          iconv_close(cd);
8842   ;
8843   return 0;
8844 }
8845 _ACEOF
8846 rm -f conftest.$ac_objext conftest$ac_exeext
8847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8848   (eval $ac_link) 2>conftest.er1
8849   ac_status=$?
8850   grep -v '^ *+' conftest.er1 >conftest.err
8851   rm -f conftest.er1
8852   cat conftest.err >&5
8853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854   (exit $ac_status); } &&
8855          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857   (eval $ac_try) 2>&5
8858   ac_status=$?
8859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860   (exit $ac_status); }; } &&
8861          { ac_try='test -s conftest$ac_exeext'
8862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863   (eval $ac_try) 2>&5
8864   ac_status=$?
8865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866   (exit $ac_status); }; }; then
8867   am_cv_lib_iconv=yes
8868         am_cv_func_iconv=yes
8869 else
8870   echo "$as_me: failed program was:" >&5
8871 sed 's/^/| /' conftest.$ac_ext >&5
8872
8873 fi
8874 rm -f conftest.err conftest.$ac_objext \
8875       conftest$ac_exeext conftest.$ac_ext
8876       LIBS="$am_save_LIBS"
8877     fi
8878
8879 fi
8880 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8881 echo "${ECHO_T}$am_cv_func_iconv" >&6
8882   if test "$am_cv_func_iconv" = yes; then
8883
8884 cat >>confdefs.h <<\_ACEOF
8885 #define HAVE_ICONV 1
8886 _ACEOF
8887
8888   fi
8889   if test "$am_cv_lib_iconv" = yes; then
8890     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8891 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8892     echo "$as_me:$LINENO: result: $LIBICONV" >&5
8893 echo "${ECHO_T}$LIBICONV" >&6
8894   else
8895             CPPFLAGS="$am_save_CPPFLAGS"
8896     LIBICONV=
8897     LTLIBICONV=
8898   fi
8899
8900
8901
8902   if test "$am_cv_func_iconv" = yes; then
8903     echo "$as_me:$LINENO: checking for iconv declaration" >&5
8904 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8905     if test "${am_cv_proto_iconv+set}" = set; then
8906   echo $ECHO_N "(cached) $ECHO_C" >&6
8907 else
8908
8909       cat >conftest.$ac_ext <<_ACEOF
8910 /* confdefs.h.  */
8911 _ACEOF
8912 cat confdefs.h >>conftest.$ac_ext
8913 cat >>conftest.$ac_ext <<_ACEOF
8914 /* end confdefs.h.  */
8915
8916 #include <stdlib.h>
8917 #include <iconv.h>
8918 extern
8919 #ifdef __cplusplus
8920 "C"
8921 #endif
8922 #if defined(__STDC__) || defined(__cplusplus)
8923 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8924 #else
8925 size_t iconv();
8926 #endif
8927
8928 int
8929 main ()
8930 {
8931
8932   ;
8933   return 0;
8934 }
8935 _ACEOF
8936 rm -f conftest.$ac_objext
8937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8938   (eval $ac_compile) 2>conftest.er1
8939   ac_status=$?
8940   grep -v '^ *+' conftest.er1 >conftest.err
8941   rm -f conftest.er1
8942   cat conftest.err >&5
8943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944   (exit $ac_status); } &&
8945          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947   (eval $ac_try) 2>&5
8948   ac_status=$?
8949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950   (exit $ac_status); }; } &&
8951          { ac_try='test -s conftest.$ac_objext'
8952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953   (eval $ac_try) 2>&5
8954   ac_status=$?
8955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956   (exit $ac_status); }; }; then
8957   am_cv_proto_iconv_arg1=""
8958 else
8959   echo "$as_me: failed program was:" >&5
8960 sed 's/^/| /' conftest.$ac_ext >&5
8961
8962 am_cv_proto_iconv_arg1="const"
8963 fi
8964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8965       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8966 fi
8967
8968     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8969     echo "$as_me:$LINENO: result: ${ac_t:-
8970          }$am_cv_proto_iconv" >&5
8971 echo "${ECHO_T}${ac_t:-
8972          }$am_cv_proto_iconv" >&6
8973
8974 cat >>confdefs.h <<_ACEOF
8975 #define ICONV_CONST $am_cv_proto_iconv_arg1
8976 _ACEOF
8977
8978   fi
8979
8980
8981   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8982 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8983 if test "${am_cv_langinfo_codeset+set}" = set; then
8984   echo $ECHO_N "(cached) $ECHO_C" >&6
8985 else
8986   cat >conftest.$ac_ext <<_ACEOF
8987 /* confdefs.h.  */
8988 _ACEOF
8989 cat confdefs.h >>conftest.$ac_ext
8990 cat >>conftest.$ac_ext <<_ACEOF
8991 /* end confdefs.h.  */
8992 #include <langinfo.h>
8993 int
8994 main ()
8995 {
8996 char* cs = nl_langinfo(CODESET);
8997   ;
8998   return 0;
8999 }
9000 _ACEOF
9001 rm -f conftest.$ac_objext conftest$ac_exeext
9002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9003   (eval $ac_link) 2>conftest.er1
9004   ac_status=$?
9005   grep -v '^ *+' conftest.er1 >conftest.err
9006   rm -f conftest.er1
9007   cat conftest.err >&5
9008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009   (exit $ac_status); } &&
9010          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012   (eval $ac_try) 2>&5
9013   ac_status=$?
9014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015   (exit $ac_status); }; } &&
9016          { ac_try='test -s conftest$ac_exeext'
9017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9018   (eval $ac_try) 2>&5
9019   ac_status=$?
9020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021   (exit $ac_status); }; }; then
9022   am_cv_langinfo_codeset=yes
9023 else
9024   echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9026
9027 am_cv_langinfo_codeset=no
9028 fi
9029 rm -f conftest.err conftest.$ac_objext \
9030       conftest$ac_exeext conftest.$ac_ext
9031
9032 fi
9033 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9034 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
9035   if test $am_cv_langinfo_codeset = yes; then
9036
9037 cat >>confdefs.h <<\_ACEOF
9038 #define HAVE_LANGINFO_CODESET 1
9039 _ACEOF
9040
9041   fi
9042
9043   if test $ac_cv_header_locale_h = yes; then
9044
9045   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9046 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
9047 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9048   echo $ECHO_N "(cached) $ECHO_C" >&6
9049 else
9050   cat >conftest.$ac_ext <<_ACEOF
9051 /* confdefs.h.  */
9052 _ACEOF
9053 cat confdefs.h >>conftest.$ac_ext
9054 cat >>conftest.$ac_ext <<_ACEOF
9055 /* end confdefs.h.  */
9056 #include <locale.h>
9057 int
9058 main ()
9059 {
9060 return LC_MESSAGES
9061   ;
9062   return 0;
9063 }
9064 _ACEOF
9065 rm -f conftest.$ac_objext conftest$ac_exeext
9066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9067   (eval $ac_link) 2>conftest.er1
9068   ac_status=$?
9069   grep -v '^ *+' conftest.er1 >conftest.err
9070   rm -f conftest.er1
9071   cat conftest.err >&5
9072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073   (exit $ac_status); } &&
9074          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076   (eval $ac_try) 2>&5
9077   ac_status=$?
9078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079   (exit $ac_status); }; } &&
9080          { ac_try='test -s conftest$ac_exeext'
9081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082   (eval $ac_try) 2>&5
9083   ac_status=$?
9084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085   (exit $ac_status); }; }; then
9086   am_cv_val_LC_MESSAGES=yes
9087 else
9088   echo "$as_me: failed program was:" >&5
9089 sed 's/^/| /' conftest.$ac_ext >&5
9090
9091 am_cv_val_LC_MESSAGES=no
9092 fi
9093 rm -f conftest.err conftest.$ac_objext \
9094       conftest$ac_exeext conftest.$ac_ext
9095 fi
9096 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9097 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
9098   if test $am_cv_val_LC_MESSAGES = yes; then
9099
9100 cat >>confdefs.h <<\_ACEOF
9101 #define HAVE_LC_MESSAGES 1
9102 _ACEOF
9103
9104   fi
9105
9106   fi
9107
9108                       for ac_prog in bison
9109 do
9110   # Extract the first word of "$ac_prog", so it can be a program name with args.
9111 set dummy $ac_prog; ac_word=$2
9112 echo "$as_me:$LINENO: checking for $ac_word" >&5
9113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9114 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9115   echo $ECHO_N "(cached) $ECHO_C" >&6
9116 else
9117   if test -n "$INTLBISON"; then
9118   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9119 else
9120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9121 for as_dir in $PATH
9122 do
9123   IFS=$as_save_IFS
9124   test -z "$as_dir" && as_dir=.
9125   for ac_exec_ext in '' $ac_executable_extensions; do
9126   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9127     ac_cv_prog_INTLBISON="$ac_prog"
9128     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9129     break 2
9130   fi
9131 done
9132 done
9133
9134 fi
9135 fi
9136 INTLBISON=$ac_cv_prog_INTLBISON
9137 if test -n "$INTLBISON"; then
9138   echo "$as_me:$LINENO: result: $INTLBISON" >&5
9139 echo "${ECHO_T}$INTLBISON" >&6
9140 else
9141   echo "$as_me:$LINENO: result: no" >&5
9142 echo "${ECHO_T}no" >&6
9143 fi
9144
9145   test -n "$INTLBISON" && break
9146 done
9147
9148   if test -z "$INTLBISON"; then
9149     ac_verc_fail=yes
9150   else
9151         echo "$as_me:$LINENO: checking version of bison" >&5
9152 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
9153     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9154     case $ac_prog_version in
9155       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9156       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9157          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9158       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9159     esac
9160     echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9161 echo "${ECHO_T}$ac_prog_version" >&6
9162   fi
9163   if test $ac_verc_fail = yes; then
9164     INTLBISON=:
9165   fi
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9183 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9184     # Check whether --enable-nls or --disable-nls was given.
9185 if test "${enable_nls+set}" = set; then
9186   enableval="$enable_nls"
9187   USE_NLS=$enableval
9188 else
9189   USE_NLS=yes
9190 fi;
9191   echo "$as_me:$LINENO: result: $USE_NLS" >&5
9192 echo "${ECHO_T}$USE_NLS" >&6
9193
9194
9195
9196
9197     BUILD_INCLUDED_LIBINTL=no
9198     USE_INCLUDED_LIBINTL=no
9199
9200   LIBINTL=
9201   LTLIBINTL=
9202   POSUB=
9203
9204     if test "$USE_NLS" = "yes"; then
9205     gt_use_preinstalled_gnugettext=no
9206
9207       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9208 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
9209
9210 # Check whether --with-included-gettext or --without-included-gettext was given.
9211 if test "${with_included_gettext+set}" = set; then
9212   withval="$with_included_gettext"
9213   nls_cv_force_use_gnu_gettext=$withval
9214 else
9215   nls_cv_force_use_gnu_gettext=no
9216 fi;
9217       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9218 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
9219
9220       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9221       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9222
9223
9224
9225
9226
9227
9228         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9229 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
9230 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9231   echo $ECHO_N "(cached) $ECHO_C" >&6
9232 else
9233   cat >conftest.$ac_ext <<_ACEOF
9234 /* confdefs.h.  */
9235 _ACEOF
9236 cat confdefs.h >>conftest.$ac_ext
9237 cat >>conftest.$ac_ext <<_ACEOF
9238 /* end confdefs.h.  */
9239 #include <libintl.h>
9240 extern int _nl_msg_cat_cntr;
9241 extern int *_nl_domain_bindings;
9242 int
9243 main ()
9244 {
9245 bindtextdomain ("", "");
9246 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
9247   ;
9248   return 0;
9249 }
9250 _ACEOF
9251 rm -f conftest.$ac_objext conftest$ac_exeext
9252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9253   (eval $ac_link) 2>conftest.er1
9254   ac_status=$?
9255   grep -v '^ *+' conftest.er1 >conftest.err
9256   rm -f conftest.er1
9257   cat conftest.err >&5
9258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259   (exit $ac_status); } &&
9260          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262   (eval $ac_try) 2>&5
9263   ac_status=$?
9264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265   (exit $ac_status); }; } &&
9266          { ac_try='test -s conftest$ac_exeext'
9267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268   (eval $ac_try) 2>&5
9269   ac_status=$?
9270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271   (exit $ac_status); }; }; then
9272   gt_cv_func_gnugettext1_libc=yes
9273 else
9274   echo "$as_me: failed program was:" >&5
9275 sed 's/^/| /' conftest.$ac_ext >&5
9276
9277 gt_cv_func_gnugettext1_libc=no
9278 fi
9279 rm -f conftest.err conftest.$ac_objext \
9280       conftest$ac_exeext conftest.$ac_ext
9281 fi
9282 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9283 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
9284
9285         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
9286
9287
9288
9289     use_additional=yes
9290
9291   acl_save_prefix="$prefix"
9292   prefix="$acl_final_prefix"
9293   acl_save_exec_prefix="$exec_prefix"
9294   exec_prefix="$acl_final_exec_prefix"
9295
9296     eval additional_includedir=\"$includedir\"
9297     eval additional_libdir=\"$libdir\"
9298
9299   exec_prefix="$acl_save_exec_prefix"
9300   prefix="$acl_save_prefix"
9301
9302
9303 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
9304 if test "${with_libintl_prefix+set}" = set; then
9305   withval="$with_libintl_prefix"
9306
9307     if test "X$withval" = "Xno"; then
9308       use_additional=no
9309     else
9310       if test "X$withval" = "X"; then
9311
9312   acl_save_prefix="$prefix"
9313   prefix="$acl_final_prefix"
9314   acl_save_exec_prefix="$exec_prefix"
9315   exec_prefix="$acl_final_exec_prefix"
9316
9317           eval additional_includedir=\"$includedir\"
9318           eval additional_libdir=\"$libdir\"
9319
9320   exec_prefix="$acl_save_exec_prefix"
9321   prefix="$acl_save_prefix"
9322
9323       else
9324         additional_includedir="$withval/include"
9325         additional_libdir="$withval/lib"
9326       fi
9327     fi
9328
9329 fi;
9330       LIBINTL=
9331   LTLIBINTL=
9332   INCINTL=
9333   rpathdirs=
9334   ltrpathdirs=
9335   names_already_handled=
9336   names_next_round='intl '
9337   while test -n "$names_next_round"; do
9338     names_this_round="$names_next_round"
9339     names_next_round=
9340     for name in $names_this_round; do
9341       already_handled=
9342       for n in $names_already_handled; do
9343         if test "$n" = "$name"; then
9344           already_handled=yes
9345           break
9346         fi
9347       done
9348       if test -z "$already_handled"; then
9349         names_already_handled="$names_already_handled $name"
9350                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9351         eval value=\"\$HAVE_LIB$uppername\"
9352         if test -n "$value"; then
9353           if test "$value" = yes; then
9354             eval value=\"\$LIB$uppername\"
9355             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9356             eval value=\"\$LTLIB$uppername\"
9357             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9358           else
9359                                     :
9360           fi
9361         else
9362                               found_dir=
9363           found_la=
9364           found_so=
9365           found_a=
9366           if test $use_additional = yes; then
9367             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9368               found_dir="$additional_libdir"
9369               found_so="$additional_libdir/lib$name.$shlibext"
9370               if test -f "$additional_libdir/lib$name.la"; then
9371                 found_la="$additional_libdir/lib$name.la"
9372               fi
9373             else
9374               if test -f "$additional_libdir/lib$name.$libext"; then
9375                 found_dir="$additional_libdir"
9376                 found_a="$additional_libdir/lib$name.$libext"
9377                 if test -f "$additional_libdir/lib$name.la"; then
9378                   found_la="$additional_libdir/lib$name.la"
9379                 fi
9380               fi
9381             fi
9382           fi
9383           if test "X$found_dir" = "X"; then
9384             for x in $LDFLAGS $LTLIBINTL; do
9385
9386   acl_save_prefix="$prefix"
9387   prefix="$acl_final_prefix"
9388   acl_save_exec_prefix="$exec_prefix"
9389   exec_prefix="$acl_final_exec_prefix"
9390   eval x=\"$x\"
9391   exec_prefix="$acl_save_exec_prefix"
9392   prefix="$acl_save_prefix"
9393
9394               case "$x" in
9395                 -L*)
9396                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9397                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9398                     found_dir="$dir"
9399                     found_so="$dir/lib$name.$shlibext"
9400                     if test -f "$dir/lib$name.la"; then
9401                       found_la="$dir/lib$name.la"
9402                     fi
9403                   else
9404                     if test -f "$dir/lib$name.$libext"; then
9405                       found_dir="$dir"
9406                       found_a="$dir/lib$name.$libext"
9407                       if test -f "$dir/lib$name.la"; then
9408                         found_la="$dir/lib$name.la"
9409                       fi
9410                     fi
9411                   fi
9412                   ;;
9413               esac
9414               if test "X$found_dir" != "X"; then
9415                 break
9416               fi
9417             done
9418           fi
9419           if test "X$found_dir" != "X"; then
9420                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9421             if test "X$found_so" != "X"; then
9422                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9423                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9424               else
9425                                                                                 haveit=
9426                 for x in $ltrpathdirs; do
9427                   if test "X$x" = "X$found_dir"; then
9428                     haveit=yes
9429                     break
9430                   fi
9431                 done
9432                 if test -z "$haveit"; then
9433                   ltrpathdirs="$ltrpathdirs $found_dir"
9434                 fi
9435                                 if test "$hardcode_direct" = yes; then
9436                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9437                 else
9438                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9439                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9440                                                             haveit=
9441                     for x in $rpathdirs; do
9442                       if test "X$x" = "X$found_dir"; then
9443                         haveit=yes
9444                         break
9445                       fi
9446                     done
9447                     if test -z "$haveit"; then
9448                       rpathdirs="$rpathdirs $found_dir"
9449                     fi
9450                   else
9451                                                                                 haveit=
9452                     for x in $LDFLAGS $LIBINTL; do
9453
9454   acl_save_prefix="$prefix"
9455   prefix="$acl_final_prefix"
9456   acl_save_exec_prefix="$exec_prefix"
9457   exec_prefix="$acl_final_exec_prefix"
9458   eval x=\"$x\"
9459   exec_prefix="$acl_save_exec_prefix"
9460   prefix="$acl_save_prefix"
9461
9462                       if test "X$x" = "X-L$found_dir"; then
9463                         haveit=yes
9464                         break
9465                       fi
9466                     done
9467                     if test -z "$haveit"; then
9468                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9469                     fi
9470                     if test "$hardcode_minus_L" != no; then
9471                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9472                     else
9473                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9474                     fi
9475                   fi
9476                 fi
9477               fi
9478             else
9479               if test "X$found_a" != "X"; then
9480                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9481               else
9482                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9483               fi
9484             fi
9485                         additional_includedir=
9486             case "$found_dir" in
9487               */lib | */lib/)
9488                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9489                 additional_includedir="$basedir/include"
9490                 ;;
9491             esac
9492             if test "X$additional_includedir" != "X"; then
9493                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9494                 haveit=
9495                 if test "X$additional_includedir" = "X/usr/local/include"; then
9496                   if test -n "$GCC"; then
9497                     case $host_os in
9498                       linux*) haveit=yes;;
9499                     esac
9500                   fi
9501                 fi
9502                 if test -z "$haveit"; then
9503                   for x in $CPPFLAGS $INCINTL; do
9504
9505   acl_save_prefix="$prefix"
9506   prefix="$acl_final_prefix"
9507   acl_save_exec_prefix="$exec_prefix"
9508   exec_prefix="$acl_final_exec_prefix"
9509   eval x=\"$x\"
9510   exec_prefix="$acl_save_exec_prefix"
9511   prefix="$acl_save_prefix"
9512
9513                     if test "X$x" = "X-I$additional_includedir"; then
9514                       haveit=yes
9515                       break
9516                     fi
9517                   done
9518                   if test -z "$haveit"; then
9519                     if test -d "$additional_includedir"; then
9520                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9521                     fi
9522                   fi
9523                 fi
9524               fi
9525             fi
9526                         if test -n "$found_la"; then
9527                                                         save_libdir="$libdir"
9528               case "$found_la" in
9529                 */* | *\\*) . "$found_la" ;;
9530                 *) . "./$found_la" ;;
9531               esac
9532               libdir="$save_libdir"
9533                             for dep in $dependency_libs; do
9534                 case "$dep" in
9535                   -L*)
9536                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9537                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9538                       haveit=
9539                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9540                         if test -n "$GCC"; then
9541                           case $host_os in
9542                             linux*) haveit=yes;;
9543                           esac
9544                         fi
9545                       fi
9546                       if test -z "$haveit"; then
9547                         haveit=
9548                         for x in $LDFLAGS $LIBINTL; do
9549
9550   acl_save_prefix="$prefix"
9551   prefix="$acl_final_prefix"
9552   acl_save_exec_prefix="$exec_prefix"
9553   exec_prefix="$acl_final_exec_prefix"
9554   eval x=\"$x\"
9555   exec_prefix="$acl_save_exec_prefix"
9556   prefix="$acl_save_prefix"
9557
9558                           if test "X$x" = "X-L$additional_libdir"; then
9559                             haveit=yes
9560                             break
9561                           fi
9562                         done
9563                         if test -z "$haveit"; then
9564                           if test -d "$additional_libdir"; then
9565                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9566                           fi
9567                         fi
9568                         haveit=
9569                         for x in $LDFLAGS $LTLIBINTL; do
9570
9571   acl_save_prefix="$prefix"
9572   prefix="$acl_final_prefix"
9573   acl_save_exec_prefix="$exec_prefix"
9574   exec_prefix="$acl_final_exec_prefix"
9575   eval x=\"$x\"
9576   exec_prefix="$acl_save_exec_prefix"
9577   prefix="$acl_save_prefix"
9578
9579                           if test "X$x" = "X-L$additional_libdir"; then
9580                             haveit=yes
9581                             break
9582                           fi
9583                         done
9584                         if test -z "$haveit"; then
9585                           if test -d "$additional_libdir"; then
9586                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9587                           fi
9588                         fi
9589                       fi
9590                     fi
9591                     ;;
9592                   -R*)
9593                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9594                     if test "$enable_rpath" != no; then
9595                                                                   haveit=
9596                       for x in $rpathdirs; do
9597                         if test "X$x" = "X$dir"; then
9598                           haveit=yes
9599                           break
9600                         fi
9601                       done
9602                       if test -z "$haveit"; then
9603                         rpathdirs="$rpathdirs $dir"
9604                       fi
9605                                                                   haveit=
9606                       for x in $ltrpathdirs; do
9607                         if test "X$x" = "X$dir"; then
9608                           haveit=yes
9609                           break
9610                         fi
9611                       done
9612                       if test -z "$haveit"; then
9613                         ltrpathdirs="$ltrpathdirs $dir"
9614                       fi
9615                     fi
9616                     ;;
9617                   -l*)
9618                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9619                     ;;
9620                   *.la)
9621                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9622                     ;;
9623                   *)
9624                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9625                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9626                     ;;
9627                 esac
9628               done
9629             fi
9630           else
9631                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9632             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9633           fi
9634         fi
9635       fi
9636     done
9637   done
9638   if test "X$rpathdirs" != "X"; then
9639     if test -n "$hardcode_libdir_separator"; then
9640                         alldirs=
9641       for found_dir in $rpathdirs; do
9642         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9643       done
9644             acl_save_libdir="$libdir"
9645       libdir="$alldirs"
9646       eval flag=\"$hardcode_libdir_flag_spec\"
9647       libdir="$acl_save_libdir"
9648       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9649     else
9650             for found_dir in $rpathdirs; do
9651         acl_save_libdir="$libdir"
9652         libdir="$found_dir"
9653         eval flag=\"$hardcode_libdir_flag_spec\"
9654         libdir="$acl_save_libdir"
9655         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9656       done
9657     fi
9658   fi
9659   if test "X$ltrpathdirs" != "X"; then
9660             for found_dir in $ltrpathdirs; do
9661       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9662     done
9663   fi
9664
9665           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9666 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9667 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
9668   echo $ECHO_N "(cached) $ECHO_C" >&6
9669 else
9670   gt_save_CPPFLAGS="$CPPFLAGS"
9671             CPPFLAGS="$CPPFLAGS $INCINTL"
9672             gt_save_LIBS="$LIBS"
9673             LIBS="$LIBS $LIBINTL"
9674                         cat >conftest.$ac_ext <<_ACEOF
9675 /* confdefs.h.  */
9676 _ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h.  */
9680 #include <libintl.h>
9681 extern int _nl_msg_cat_cntr;
9682 extern
9683 #ifdef __cplusplus
9684 "C"
9685 #endif
9686 const char *_nl_expand_alias ();
9687 int
9688 main ()
9689 {
9690 bindtextdomain ("", "");
9691 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9692   ;
9693   return 0;
9694 }
9695 _ACEOF
9696 rm -f conftest.$ac_objext conftest$ac_exeext
9697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9698   (eval $ac_link) 2>conftest.er1
9699   ac_status=$?
9700   grep -v '^ *+' conftest.er1 >conftest.err
9701   rm -f conftest.er1
9702   cat conftest.err >&5
9703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704   (exit $ac_status); } &&
9705          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707   (eval $ac_try) 2>&5
9708   ac_status=$?
9709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710   (exit $ac_status); }; } &&
9711          { ac_try='test -s conftest$ac_exeext'
9712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713   (eval $ac_try) 2>&5
9714   ac_status=$?
9715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716   (exit $ac_status); }; }; then
9717   gt_cv_func_gnugettext1_libintl=yes
9718 else
9719   echo "$as_me: failed program was:" >&5
9720 sed 's/^/| /' conftest.$ac_ext >&5
9721
9722 gt_cv_func_gnugettext1_libintl=no
9723 fi
9724 rm -f conftest.err conftest.$ac_objext \
9725       conftest$ac_exeext conftest.$ac_ext
9726                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9727               LIBS="$LIBS $LIBICONV"
9728               cat >conftest.$ac_ext <<_ACEOF
9729 /* confdefs.h.  */
9730 _ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h.  */
9734 #include <libintl.h>
9735 extern int _nl_msg_cat_cntr;
9736 extern
9737 #ifdef __cplusplus
9738 "C"
9739 #endif
9740 const char *_nl_expand_alias ();
9741 int
9742 main ()
9743 {
9744 bindtextdomain ("", "");
9745 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9746   ;
9747   return 0;
9748 }
9749 _ACEOF
9750 rm -f conftest.$ac_objext conftest$ac_exeext
9751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9752   (eval $ac_link) 2>conftest.er1
9753   ac_status=$?
9754   grep -v '^ *+' conftest.er1 >conftest.err
9755   rm -f conftest.er1
9756   cat conftest.err >&5
9757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758   (exit $ac_status); } &&
9759          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761   (eval $ac_try) 2>&5
9762   ac_status=$?
9763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764   (exit $ac_status); }; } &&
9765          { ac_try='test -s conftest$ac_exeext'
9766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9767   (eval $ac_try) 2>&5
9768   ac_status=$?
9769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770   (exit $ac_status); }; }; then
9771   LIBINTL="$LIBINTL $LIBICONV"
9772                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9773                 gt_cv_func_gnugettext1_libintl=yes
9774
9775 else
9776   echo "$as_me: failed program was:" >&5
9777 sed 's/^/| /' conftest.$ac_ext >&5
9778
9779 fi
9780 rm -f conftest.err conftest.$ac_objext \
9781       conftest$ac_exeext conftest.$ac_ext
9782             fi
9783             CPPFLAGS="$gt_save_CPPFLAGS"
9784             LIBS="$gt_save_LIBS"
9785 fi
9786 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
9787 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
9788         fi
9789
9790                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9791            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9792                 && test "$PACKAGE" != gettext-runtime \
9793                 && test "$PACKAGE" != gettext-tools; }; then
9794           gt_use_preinstalled_gnugettext=yes
9795         else
9796                     LIBINTL=
9797           LTLIBINTL=
9798           INCINTL=
9799         fi
9800
9801
9802         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9803                               nls_cv_use_gnu_gettext=yes
9804         fi
9805       fi
9806
9807       if test "$nls_cv_use_gnu_gettext" = "yes"; then
9808                 BUILD_INCLUDED_LIBINTL=yes
9809         USE_INCLUDED_LIBINTL=yes
9810         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9811         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9812         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9813       fi
9814
9815       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9816          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9817                 CATOBJEXT=.gmo
9818       fi
9819
9820
9821     if test "$gt_use_preinstalled_gnugettext" = "yes" \
9822        || test "$nls_cv_use_gnu_gettext" = "yes"; then
9823
9824 cat >>confdefs.h <<\_ACEOF
9825 #define ENABLE_NLS 1
9826 _ACEOF
9827
9828     else
9829       USE_NLS=no
9830     fi
9831   fi
9832
9833   echo "$as_me:$LINENO: checking whether to use NLS" >&5
9834 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
9835   echo "$as_me:$LINENO: result: $USE_NLS" >&5
9836 echo "${ECHO_T}$USE_NLS" >&6
9837   if test "$USE_NLS" = "yes"; then
9838     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
9839 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
9840     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9841       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9842         gt_source="external libintl"
9843       else
9844         gt_source="libc"
9845       fi
9846     else
9847       gt_source="included intl directory"
9848     fi
9849     echo "$as_me:$LINENO: result: $gt_source" >&5
9850 echo "${ECHO_T}$gt_source" >&6
9851   fi
9852
9853   if test "$USE_NLS" = "yes"; then
9854
9855     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9856       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9857         echo "$as_me:$LINENO: checking how to link with libintl" >&5
9858 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
9859         echo "$as_me:$LINENO: result: $LIBINTL" >&5
9860 echo "${ECHO_T}$LIBINTL" >&6
9861
9862   for element in $INCINTL; do
9863     haveit=
9864     for x in $CPPFLAGS; do
9865
9866   acl_save_prefix="$prefix"
9867   prefix="$acl_final_prefix"
9868   acl_save_exec_prefix="$exec_prefix"
9869   exec_prefix="$acl_final_exec_prefix"
9870   eval x=\"$x\"
9871   exec_prefix="$acl_save_exec_prefix"
9872   prefix="$acl_save_prefix"
9873
9874       if test "X$x" = "X$element"; then
9875         haveit=yes
9876         break
9877       fi
9878     done
9879     if test -z "$haveit"; then
9880       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9881     fi
9882   done
9883
9884       fi
9885
9886
9887 cat >>confdefs.h <<\_ACEOF
9888 #define HAVE_GETTEXT 1
9889 _ACEOF
9890
9891
9892 cat >>confdefs.h <<\_ACEOF
9893 #define HAVE_DCGETTEXT 1
9894 _ACEOF
9895
9896     fi
9897
9898         POSUB=po
9899   fi
9900
9901
9902             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9903       BUILD_INCLUDED_LIBINTL=yes
9904     fi
9905
9906
9907
9908
9909
9910         nls_cv_header_intl=
9911     nls_cv_header_libgt=
9912
9913         DATADIRNAME=share
9914
9915
9916         INSTOBJEXT=.mo
9917
9918
9919         GENCAT=gencat
9920
9921
9922         if test "$USE_INCLUDED_LIBINTL" = yes; then
9923       INTLOBJS="\$(GETTOBJS)"
9924     fi
9925
9926
9927         INTL_LIBTOOL_SUFFIX_PREFIX=
9928
9929
9930
9931     INTLLIBS="$LIBINTL"
9932
9933
9934
9935
9936
9937
9938
9939 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9940 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
9941 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
9942 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
9943   echo $ECHO_N "(cached) $ECHO_C" >&6
9944 else
9945   cat >conftest.make <<\_ACEOF
9946 all:
9947         @echo 'ac_maketemp="$(MAKE)"'
9948 _ACEOF
9949 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9950 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
9951 if test -n "$ac_maketemp"; then
9952   eval ac_cv_prog_make_${ac_make}_set=yes
9953 else
9954   eval ac_cv_prog_make_${ac_make}_set=no
9955 fi
9956 rm -f conftest.make
9957 fi
9958 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
9959   echo "$as_me:$LINENO: result: yes" >&5
9960 echo "${ECHO_T}yes" >&6
9961   SET_MAKE=
9962 else
9963   echo "$as_me:$LINENO: result: no" >&5
9964 echo "${ECHO_T}no" >&6
9965   SET_MAKE="MAKE=${MAKE-make}"
9966 fi
9967
9968 # Extract the first word of "ln", so it can be a program name with args.
9969 set dummy ln; ac_word=$2
9970 echo "$as_me:$LINENO: checking for $ac_word" >&5
9971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9972 if test "${ac_cv_path_LN+set}" = set; then
9973   echo $ECHO_N "(cached) $ECHO_C" >&6
9974 else
9975   case $LN in
9976   [\\/]* | ?:[\\/]*)
9977   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9978   ;;
9979   *)
9980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9981 for as_dir in $PATH
9982 do
9983   IFS=$as_save_IFS
9984   test -z "$as_dir" && as_dir=.
9985   for ac_exec_ext in '' $ac_executable_extensions; do
9986   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9987     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9989     break 2
9990   fi
9991 done
9992 done
9993
9994   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9995   ;;
9996 esac
9997 fi
9998 LN=$ac_cv_path_LN
9999
10000 if test -n "$LN"; then
10001   echo "$as_me:$LINENO: result: $LN" >&5
10002 echo "${ECHO_T}$LN" >&6
10003 else
10004   echo "$as_me:$LINENO: result: no" >&5
10005 echo "${ECHO_T}no" >&6
10006 fi
10007
10008 echo "$as_me:$LINENO: checking whether ln -s works" >&5
10009 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
10010 LN_S=$as_ln_s
10011 if test "$LN_S" = "ln -s"; then
10012   echo "$as_me:$LINENO: result: yes" >&5
10013 echo "${ECHO_T}yes" >&6
10014 else
10015   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10016 echo "${ECHO_T}no, using $LN_S" >&6
10017 fi
10018
10019 # Extract the first word of "mv", so it can be a program name with args.
10020 set dummy mv; ac_word=$2
10021 echo "$as_me:$LINENO: checking for $ac_word" >&5
10022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10023 if test "${ac_cv_path_MV+set}" = set; then
10024   echo $ECHO_N "(cached) $ECHO_C" >&6
10025 else
10026   case $MV in
10027   [\\/]* | ?:[\\/]*)
10028   ac_cv_path_MV="$MV" # Let the user override the test with a path.
10029   ;;
10030   *)
10031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10032 for as_dir in $PATH
10033 do
10034   IFS=$as_save_IFS
10035   test -z "$as_dir" && as_dir=.
10036   for ac_exec_ext in '' $ac_executable_extensions; do
10037   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10038     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10040     break 2
10041   fi
10042 done
10043 done
10044
10045   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10046   ;;
10047 esac
10048 fi
10049 MV=$ac_cv_path_MV
10050
10051 if test -n "$MV"; then
10052   echo "$as_me:$LINENO: result: $MV" >&5
10053 echo "${ECHO_T}$MV" >&6
10054 else
10055   echo "$as_me:$LINENO: result: no" >&5
10056 echo "${ECHO_T}no" >&6
10057 fi
10058
10059 # Extract the first word of "cp", so it can be a program name with args.
10060 set dummy cp; ac_word=$2
10061 echo "$as_me:$LINENO: checking for $ac_word" >&5
10062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10063 if test "${ac_cv_path_CP+set}" = set; then
10064   echo $ECHO_N "(cached) $ECHO_C" >&6
10065 else
10066   case $CP in
10067   [\\/]* | ?:[\\/]*)
10068   ac_cv_path_CP="$CP" # Let the user override the test with a path.
10069   ;;
10070   *)
10071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10072 for as_dir in $PATH
10073 do
10074   IFS=$as_save_IFS
10075   test -z "$as_dir" && as_dir=.
10076   for ac_exec_ext in '' $ac_executable_extensions; do
10077   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10078     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10080     break 2
10081   fi
10082 done
10083 done
10084
10085   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10086   ;;
10087 esac
10088 fi
10089 CP=$ac_cv_path_CP
10090
10091 if test -n "$CP"; then
10092   echo "$as_me:$LINENO: result: $CP" >&5
10093 echo "${ECHO_T}$CP" >&6
10094 else
10095   echo "$as_me:$LINENO: result: no" >&5
10096 echo "${ECHO_T}no" >&6
10097 fi
10098
10099 # Extract the first word of "rm", so it can be a program name with args.
10100 set dummy rm; ac_word=$2
10101 echo "$as_me:$LINENO: checking for $ac_word" >&5
10102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10103 if test "${ac_cv_path_RM+set}" = set; then
10104   echo $ECHO_N "(cached) $ECHO_C" >&6
10105 else
10106   case $RM in
10107   [\\/]* | ?:[\\/]*)
10108   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10109   ;;
10110   *)
10111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10112 for as_dir in $PATH
10113 do
10114   IFS=$as_save_IFS
10115   test -z "$as_dir" && as_dir=.
10116   for ac_exec_ext in '' $ac_executable_extensions; do
10117   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10118     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10120     break 2
10121   fi
10122 done
10123 done
10124
10125   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
10126   ;;
10127 esac
10128 fi
10129 RM=$ac_cv_path_RM
10130
10131 if test -n "$RM"; then
10132   echo "$as_me:$LINENO: result: $RM" >&5
10133 echo "${ECHO_T}$RM" >&6
10134 else
10135   echo "$as_me:$LINENO: result: no" >&5
10136 echo "${ECHO_T}no" >&6
10137 fi
10138
10139 # Extract the first word of "chmod", so it can be a program name with args.
10140 set dummy chmod; ac_word=$2
10141 echo "$as_me:$LINENO: checking for $ac_word" >&5
10142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10143 if test "${ac_cv_path_CHMOD+set}" = set; then
10144   echo $ECHO_N "(cached) $ECHO_C" >&6
10145 else
10146   case $CHMOD in
10147   [\\/]* | ?:[\\/]*)
10148   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
10149   ;;
10150   *)
10151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10152 for as_dir in $PATH
10153 do
10154   IFS=$as_save_IFS
10155   test -z "$as_dir" && as_dir=.
10156   for ac_exec_ext in '' $ac_executable_extensions; do
10157   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10158     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
10159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10160     break 2
10161   fi
10162 done
10163 done
10164
10165   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
10166   ;;
10167 esac
10168 fi
10169 CHMOD=$ac_cv_path_CHMOD
10170
10171 if test -n "$CHMOD"; then
10172   echo "$as_me:$LINENO: result: $CHMOD" >&5
10173 echo "${ECHO_T}$CHMOD" >&6
10174 else
10175   echo "$as_me:$LINENO: result: no" >&5
10176 echo "${ECHO_T}no" >&6
10177 fi
10178
10179 for ac_prog in gawk mawk nawk awk
10180 do
10181   # Extract the first word of "$ac_prog", so it can be a program name with args.
10182 set dummy $ac_prog; ac_word=$2
10183 echo "$as_me:$LINENO: checking for $ac_word" >&5
10184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10185 if test "${ac_cv_prog_AWK+set}" = set; then
10186   echo $ECHO_N "(cached) $ECHO_C" >&6
10187 else
10188   if test -n "$AWK"; then
10189   ac_cv_prog_AWK="$AWK" # Let the user override the test.
10190 else
10191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10192 for as_dir in $PATH
10193 do
10194   IFS=$as_save_IFS
10195   test -z "$as_dir" && as_dir=.
10196   for ac_exec_ext in '' $ac_executable_extensions; do
10197   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10198     ac_cv_prog_AWK="$ac_prog"
10199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10200     break 2
10201   fi
10202 done
10203 done
10204
10205 fi
10206 fi
10207 AWK=$ac_cv_prog_AWK
10208 if test -n "$AWK"; then
10209   echo "$as_me:$LINENO: result: $AWK" >&5
10210 echo "${ECHO_T}$AWK" >&6
10211 else
10212   echo "$as_me:$LINENO: result: no" >&5
10213 echo "${ECHO_T}no" >&6
10214 fi
10215
10216   test -n "$AWK" && break
10217 done
10218
10219 echo "$as_me:$LINENO: checking for egrep" >&5
10220 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10221 if test "${ac_cv_prog_egrep+set}" = set; then
10222   echo $ECHO_N "(cached) $ECHO_C" >&6
10223 else
10224   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10225     then ac_cv_prog_egrep='grep -E'
10226     else ac_cv_prog_egrep='egrep'
10227     fi
10228 fi
10229 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10230 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10231  EGREP=$ac_cv_prog_egrep
10232
10233
10234 # Extract the first word of "sed", so it can be a program name with args.
10235 set dummy sed; ac_word=$2
10236 echo "$as_me:$LINENO: checking for $ac_word" >&5
10237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10238 if test "${ac_cv_path_SED+set}" = set; then
10239   echo $ECHO_N "(cached) $ECHO_C" >&6
10240 else
10241   case $SED in
10242   [\\/]* | ?:[\\/]*)
10243   ac_cv_path_SED="$SED" # Let the user override the test with a path.
10244   ;;
10245   *)
10246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10247 for as_dir in $PATH
10248 do
10249   IFS=$as_save_IFS
10250   test -z "$as_dir" && as_dir=.
10251   for ac_exec_ext in '' $ac_executable_extensions; do
10252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10253     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
10254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10255     break 2
10256   fi
10257 done
10258 done
10259
10260   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
10261   ;;
10262 esac
10263 fi
10264 SED=$ac_cv_path_SED
10265
10266 if test -n "$SED"; then
10267   echo "$as_me:$LINENO: result: $SED" >&5
10268 echo "${ECHO_T}$SED" >&6
10269 else
10270   echo "$as_me:$LINENO: result: no" >&5
10271 echo "${ECHO_T}no" >&6
10272 fi
10273
10274 # Extract the first word of "perl", so it can be a program name with args.
10275 set dummy perl; ac_word=$2
10276 echo "$as_me:$LINENO: checking for $ac_word" >&5
10277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10278 if test "${ac_cv_path_PERL+set}" = set; then
10279   echo $ECHO_N "(cached) $ECHO_C" >&6
10280 else
10281   case $PERL in
10282   [\\/]* | ?:[\\/]*)
10283   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10284   ;;
10285   *)
10286   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10287 for as_dir in $PATH
10288 do
10289   IFS=$as_save_IFS
10290   test -z "$as_dir" && as_dir=.
10291   for ac_exec_ext in '' $ac_executable_extensions; do
10292   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10293     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10294     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10295     break 2
10296   fi
10297 done
10298 done
10299
10300   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10301   ;;
10302 esac
10303 fi
10304 PERL=$ac_cv_path_PERL
10305
10306 if test -n "$PERL"; then
10307   echo "$as_me:$LINENO: result: $PERL" >&5
10308 echo "${ECHO_T}$PERL" >&6
10309 else
10310   echo "$as_me:$LINENO: result: no" >&5
10311 echo "${ECHO_T}no" >&6
10312 fi
10313
10314 # Extract the first word of "ldconfig", so it can be a program name with args.
10315 set dummy ldconfig; ac_word=$2
10316 echo "$as_me:$LINENO: checking for $ac_word" >&5
10317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10318 if test "${ac_cv_path_LDCONFIG+set}" = set; then
10319   echo $ECHO_N "(cached) $ECHO_C" >&6
10320 else
10321   case $LDCONFIG in
10322   [\\/]* | ?:[\\/]*)
10323   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10324   ;;
10325   *)
10326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10327 for as_dir in $PATH
10328 do
10329   IFS=$as_save_IFS
10330   test -z "$as_dir" && as_dir=.
10331   for ac_exec_ext in '' $ac_executable_extensions; do
10332   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10333     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10335     break 2
10336   fi
10337 done
10338 done
10339
10340   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10341   ;;
10342 esac
10343 fi
10344 LDCONFIG=$ac_cv_path_LDCONFIG
10345
10346 if test -n "$LDCONFIG"; then
10347   echo "$as_me:$LINENO: result: $LDCONFIG" >&5
10348 echo "${ECHO_T}$LDCONFIG" >&6
10349 else
10350   echo "$as_me:$LINENO: result: no" >&5
10351 echo "${ECHO_T}no" >&6
10352 fi
10353
10354 if test -n "$ac_tool_prefix"; then
10355   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10356 set dummy ${ac_tool_prefix}ar; ac_word=$2
10357 echo "$as_me:$LINENO: checking for $ac_word" >&5
10358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10359 if test "${ac_cv_prog_AR+set}" = set; then
10360   echo $ECHO_N "(cached) $ECHO_C" >&6
10361 else
10362   if test -n "$AR"; then
10363   ac_cv_prog_AR="$AR" # Let the user override the test.
10364 else
10365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366 for as_dir in $PATH
10367 do
10368   IFS=$as_save_IFS
10369   test -z "$as_dir" && as_dir=.
10370   for ac_exec_ext in '' $ac_executable_extensions; do
10371   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10372     ac_cv_prog_AR="${ac_tool_prefix}ar"
10373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10374     break 2
10375   fi
10376 done
10377 done
10378
10379 fi
10380 fi
10381 AR=$ac_cv_prog_AR
10382 if test -n "$AR"; then
10383   echo "$as_me:$LINENO: result: $AR" >&5
10384 echo "${ECHO_T}$AR" >&6
10385 else
10386   echo "$as_me:$LINENO: result: no" >&5
10387 echo "${ECHO_T}no" >&6
10388 fi
10389
10390 fi
10391 if test -z "$ac_cv_prog_AR"; then
10392   ac_ct_AR=$AR
10393   # Extract the first word of "ar", so it can be a program name with args.
10394 set dummy ar; ac_word=$2
10395 echo "$as_me:$LINENO: checking for $ac_word" >&5
10396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10397 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10398   echo $ECHO_N "(cached) $ECHO_C" >&6
10399 else
10400   if test -n "$ac_ct_AR"; then
10401   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10402 else
10403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10404 for as_dir in $PATH
10405 do
10406   IFS=$as_save_IFS
10407   test -z "$as_dir" && as_dir=.
10408   for ac_exec_ext in '' $ac_executable_extensions; do
10409   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10410     ac_cv_prog_ac_ct_AR="ar"
10411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10412     break 2
10413   fi
10414 done
10415 done
10416
10417   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
10418 fi
10419 fi
10420 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10421 if test -n "$ac_ct_AR"; then
10422   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
10423 echo "${ECHO_T}$ac_ct_AR" >&6
10424 else
10425   echo "$as_me:$LINENO: result: no" >&5
10426 echo "${ECHO_T}no" >&6
10427 fi
10428
10429   AR=$ac_ct_AR
10430 else
10431   AR="$ac_cv_prog_AR"
10432 fi
10433
10434 if test -n "$ac_tool_prefix"; then
10435   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10436 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10437 echo "$as_me:$LINENO: checking for $ac_word" >&5
10438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10439 if test "${ac_cv_prog_RANLIB+set}" = set; then
10440   echo $ECHO_N "(cached) $ECHO_C" >&6
10441 else
10442   if test -n "$RANLIB"; then
10443   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10444 else
10445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10446 for as_dir in $PATH
10447 do
10448   IFS=$as_save_IFS
10449   test -z "$as_dir" && as_dir=.
10450   for ac_exec_ext in '' $ac_executable_extensions; do
10451   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10452     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10454     break 2
10455   fi
10456 done
10457 done
10458
10459 fi
10460 fi
10461 RANLIB=$ac_cv_prog_RANLIB
10462 if test -n "$RANLIB"; then
10463   echo "$as_me:$LINENO: result: $RANLIB" >&5
10464 echo "${ECHO_T}$RANLIB" >&6
10465 else
10466   echo "$as_me:$LINENO: result: no" >&5
10467 echo "${ECHO_T}no" >&6
10468 fi
10469
10470 fi
10471 if test -z "$ac_cv_prog_RANLIB"; then
10472   ac_ct_RANLIB=$RANLIB
10473   # Extract the first word of "ranlib", so it can be a program name with args.
10474 set dummy ranlib; ac_word=$2
10475 echo "$as_me:$LINENO: checking for $ac_word" >&5
10476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10477 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10478   echo $ECHO_N "(cached) $ECHO_C" >&6
10479 else
10480   if test -n "$ac_ct_RANLIB"; then
10481   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10482 else
10483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10484 for as_dir in $PATH
10485 do
10486   IFS=$as_save_IFS
10487   test -z "$as_dir" && as_dir=.
10488   for ac_exec_ext in '' $ac_executable_extensions; do
10489   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10490     ac_cv_prog_ac_ct_RANLIB="ranlib"
10491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10492     break 2
10493   fi
10494 done
10495 done
10496
10497   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
10498 fi
10499 fi
10500 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10501 if test -n "$ac_ct_RANLIB"; then
10502   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10503 echo "${ECHO_T}$ac_ct_RANLIB" >&6
10504 else
10505   echo "$as_me:$LINENO: result: no" >&5
10506 echo "${ECHO_T}no" >&6
10507 fi
10508
10509   RANLIB=$ac_ct_RANLIB
10510 else
10511   RANLIB="$ac_cv_prog_RANLIB"
10512 fi
10513
10514 if test -n "$ac_tool_prefix"; then
10515   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10516 set dummy ${ac_tool_prefix}strip; ac_word=$2
10517 echo "$as_me:$LINENO: checking for $ac_word" >&5
10518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10519 if test "${ac_cv_prog_STRIP+set}" = set; then
10520   echo $ECHO_N "(cached) $ECHO_C" >&6
10521 else
10522   if test -n "$STRIP"; then
10523   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10524 else
10525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10526 for as_dir in $PATH
10527 do
10528   IFS=$as_save_IFS
10529   test -z "$as_dir" && as_dir=.
10530   for ac_exec_ext in '' $ac_executable_extensions; do
10531   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10532     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10534     break 2
10535   fi
10536 done
10537 done
10538
10539 fi
10540 fi
10541 STRIP=$ac_cv_prog_STRIP
10542 if test -n "$STRIP"; then
10543   echo "$as_me:$LINENO: result: $STRIP" >&5
10544 echo "${ECHO_T}$STRIP" >&6
10545 else
10546   echo "$as_me:$LINENO: result: no" >&5
10547 echo "${ECHO_T}no" >&6
10548 fi
10549
10550 fi
10551 if test -z "$ac_cv_prog_STRIP"; then
10552   ac_ct_STRIP=$STRIP
10553   # Extract the first word of "strip", so it can be a program name with args.
10554 set dummy strip; ac_word=$2
10555 echo "$as_me:$LINENO: checking for $ac_word" >&5
10556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10557 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10558   echo $ECHO_N "(cached) $ECHO_C" >&6
10559 else
10560   if test -n "$ac_ct_STRIP"; then
10561   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10562 else
10563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10564 for as_dir in $PATH
10565 do
10566   IFS=$as_save_IFS
10567   test -z "$as_dir" && as_dir=.
10568   for ac_exec_ext in '' $ac_executable_extensions; do
10569   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10570     ac_cv_prog_ac_ct_STRIP="strip"
10571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10572     break 2
10573   fi
10574 done
10575 done
10576
10577   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
10578 fi
10579 fi
10580 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10581 if test -n "$ac_ct_STRIP"; then
10582   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10583 echo "${ECHO_T}$ac_ct_STRIP" >&6
10584 else
10585   echo "$as_me:$LINENO: result: no" >&5
10586 echo "${ECHO_T}no" >&6
10587 fi
10588
10589   STRIP=$ac_ct_STRIP
10590 else
10591   STRIP="$ac_cv_prog_STRIP"
10592 fi
10593
10594 # Find a good install program.  We prefer a C program (faster),
10595 # so one script is as good as another.  But avoid the broken or
10596 # incompatible versions:
10597 # SysV /etc/install, /usr/sbin/install
10598 # SunOS /usr/etc/install
10599 # IRIX /sbin/install
10600 # AIX /bin/install
10601 # AmigaOS /C/install, which installs bootblocks on floppy discs
10602 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10603 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10604 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10605 # OS/2's system install, which has a completely different semantic
10606 # ./install, which can be erroneously created by make from ./install.sh.
10607 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10608 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10609 if test -z "$INSTALL"; then
10610 if test "${ac_cv_path_install+set}" = set; then
10611   echo $ECHO_N "(cached) $ECHO_C" >&6
10612 else
10613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10614 for as_dir in $PATH
10615 do
10616   IFS=$as_save_IFS
10617   test -z "$as_dir" && as_dir=.
10618   # Account for people who put trailing slashes in PATH elements.
10619 case $as_dir/ in
10620   ./ | .// | /cC/* | \
10621   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10622   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10623   /usr/ucb/* ) ;;
10624   *)
10625     # OSF1 and SCO ODT 3.0 have their own names for install.
10626     # Don't use installbsd from OSF since it installs stuff as root
10627     # by default.
10628     for ac_prog in ginstall scoinst install; do
10629       for ac_exec_ext in '' $ac_executable_extensions; do
10630         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
10631           if test $ac_prog = install &&
10632             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10633             # AIX install.  It has an incompatible calling convention.
10634             :
10635           elif test $ac_prog = install &&
10636             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10637             # program-specific install script used by HP pwplus--don't use.
10638             :
10639           else
10640             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10641             break 3
10642           fi
10643         fi
10644       done
10645     done
10646     ;;
10647 esac
10648 done
10649
10650
10651 fi
10652   if test "${ac_cv_path_install+set}" = set; then
10653     INSTALL=$ac_cv_path_install
10654   else
10655     # As a last resort, use the slow shell script.  We don't cache a
10656     # path for INSTALL within a source directory, because that will
10657     # break other packages using the cache if that directory is
10658     # removed, or if the path is relative.
10659     INSTALL=$ac_install_sh
10660   fi
10661 fi
10662 echo "$as_me:$LINENO: result: $INSTALL" >&5
10663 echo "${ECHO_T}$INSTALL" >&6
10664
10665 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10666 # It thinks the first close brace ends the variable substitution.
10667 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10668
10669 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10670
10671 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10672
10673 # See if we need a separate native compiler.
10674 if test $cross_compiling = no; then
10675   BUILD_CC="$CC"
10676
10677 else
10678   for ac_prog in gcc cc
10679 do
10680   # Extract the first word of "$ac_prog", so it can be a program name with args.
10681 set dummy $ac_prog; ac_word=$2
10682 echo "$as_me:$LINENO: checking for $ac_word" >&5
10683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10684 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
10685   echo $ECHO_N "(cached) $ECHO_C" >&6
10686 else
10687   if test -n "$BUILD_CC"; then
10688   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10689 else
10690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10691 for as_dir in $PATH
10692 do
10693   IFS=$as_save_IFS
10694   test -z "$as_dir" && as_dir=.
10695   for ac_exec_ext in '' $ac_executable_extensions; do
10696   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10697     ac_cv_prog_BUILD_CC="$ac_prog"
10698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10699     break 2
10700   fi
10701 done
10702 done
10703
10704 fi
10705 fi
10706 BUILD_CC=$ac_cv_prog_BUILD_CC
10707 if test -n "$BUILD_CC"; then
10708   echo "$as_me:$LINENO: result: $BUILD_CC" >&5
10709 echo "${ECHO_T}$BUILD_CC" >&6
10710 else
10711   echo "$as_me:$LINENO: result: no" >&5
10712 echo "${ECHO_T}no" >&6
10713 fi
10714
10715   test -n "$BUILD_CC" && break
10716 done
10717
10718 fi
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749 for ac_header in stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/prctl.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if_dl.h netinet/in.h
10750 do
10751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10753   echo "$as_me:$LINENO: checking for $ac_header" >&5
10754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10756   echo $ECHO_N "(cached) $ECHO_C" >&6
10757 fi
10758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10760 else
10761   # Is the header compilable?
10762 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10764 cat >conftest.$ac_ext <<_ACEOF
10765 /* confdefs.h.  */
10766 _ACEOF
10767 cat confdefs.h >>conftest.$ac_ext
10768 cat >>conftest.$ac_ext <<_ACEOF
10769 /* end confdefs.h.  */
10770 $ac_includes_default
10771 #include <$ac_header>
10772 _ACEOF
10773 rm -f conftest.$ac_objext
10774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10775   (eval $ac_compile) 2>conftest.er1
10776   ac_status=$?
10777   grep -v '^ *+' conftest.er1 >conftest.err
10778   rm -f conftest.er1
10779   cat conftest.err >&5
10780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781   (exit $ac_status); } &&
10782          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10784   (eval $ac_try) 2>&5
10785   ac_status=$?
10786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787   (exit $ac_status); }; } &&
10788          { ac_try='test -s conftest.$ac_objext'
10789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790   (eval $ac_try) 2>&5
10791   ac_status=$?
10792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793   (exit $ac_status); }; }; then
10794   ac_header_compiler=yes
10795 else
10796   echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10798
10799 ac_header_compiler=no
10800 fi
10801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10802 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10803 echo "${ECHO_T}$ac_header_compiler" >&6
10804
10805 # Is the header present?
10806 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10808 cat >conftest.$ac_ext <<_ACEOF
10809 /* confdefs.h.  */
10810 _ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h.  */
10814 #include <$ac_header>
10815 _ACEOF
10816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10817   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10818   ac_status=$?
10819   grep -v '^ *+' conftest.er1 >conftest.err
10820   rm -f conftest.er1
10821   cat conftest.err >&5
10822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823   (exit $ac_status); } >/dev/null; then
10824   if test -s conftest.err; then
10825     ac_cpp_err=$ac_c_preproc_warn_flag
10826     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10827   else
10828     ac_cpp_err=
10829   fi
10830 else
10831   ac_cpp_err=yes
10832 fi
10833 if test -z "$ac_cpp_err"; then
10834   ac_header_preproc=yes
10835 else
10836   echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10838
10839   ac_header_preproc=no
10840 fi
10841 rm -f conftest.err conftest.$ac_ext
10842 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10843 echo "${ECHO_T}$ac_header_preproc" >&6
10844
10845 # So?  What about this header?
10846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10847   yes:no: )
10848     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10852     ac_header_preproc=yes
10853     ;;
10854   no:yes:* )
10855     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10857     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10858 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10859     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10861     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10862 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10863     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10865     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10867     (
10868       cat <<\_ASBOX
10869 ## ------------------------------------------ ##
10870 ## Report this to the AC_PACKAGE_NAME lists.  ##
10871 ## ------------------------------------------ ##
10872 _ASBOX
10873     ) |
10874       sed "s/^/$as_me: WARNING:     /" >&2
10875     ;;
10876 esac
10877 echo "$as_me:$LINENO: checking for $ac_header" >&5
10878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10880   echo $ECHO_N "(cached) $ECHO_C" >&6
10881 else
10882   eval "$as_ac_Header=\$ac_header_preproc"
10883 fi
10884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10886
10887 fi
10888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10889   cat >>confdefs.h <<_ACEOF
10890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10891 _ACEOF
10892
10893 fi
10894
10895 done
10896
10897
10898
10899 for ac_header in sys/disk.h sys/mount.h
10900 do
10901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10902 echo "$as_me:$LINENO: checking for $ac_header" >&5
10903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10905   echo $ECHO_N "(cached) $ECHO_C" >&6
10906 else
10907   cat >conftest.$ac_ext <<_ACEOF
10908 /* confdefs.h.  */
10909 _ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h.  */
10913
10914 #if HAVE_SYS_QUEUE_H
10915 #include <sys/queue.h>
10916 #endif
10917
10918
10919 #include <$ac_header>
10920 _ACEOF
10921 rm -f conftest.$ac_objext
10922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10923   (eval $ac_compile) 2>conftest.er1
10924   ac_status=$?
10925   grep -v '^ *+' conftest.er1 >conftest.err
10926   rm -f conftest.er1
10927   cat conftest.err >&5
10928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929   (exit $ac_status); } &&
10930          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10932   (eval $ac_try) 2>&5
10933   ac_status=$?
10934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935   (exit $ac_status); }; } &&
10936          { ac_try='test -s conftest.$ac_objext'
10937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10938   (eval $ac_try) 2>&5
10939   ac_status=$?
10940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941   (exit $ac_status); }; }; then
10942   eval "$as_ac_Header=yes"
10943 else
10944   echo "$as_me: failed program was:" >&5
10945 sed 's/^/| /' conftest.$ac_ext >&5
10946
10947 eval "$as_ac_Header=no"
10948 fi
10949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10950 fi
10951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10954   cat >>confdefs.h <<_ACEOF
10955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10956 _ACEOF
10957
10958 fi
10959
10960 done
10961
10962
10963 for ac_header in net/if.h
10964 do
10965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10966 echo "$as_me:$LINENO: checking for $ac_header" >&5
10967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10969   echo $ECHO_N "(cached) $ECHO_C" >&6
10970 else
10971   cat >conftest.$ac_ext <<_ACEOF
10972 /* confdefs.h.  */
10973 _ACEOF
10974 cat confdefs.h >>conftest.$ac_ext
10975 cat >>conftest.$ac_ext <<_ACEOF
10976 /* end confdefs.h.  */
10977
10978 #if HAVE_SYS_TYPES_H
10979 #include <sys/types.h>
10980 #endif
10981 #if HAVE_SYS_SOCKET
10982 #include <sys/socket.h>
10983 #endif
10984
10985
10986 #include <$ac_header>
10987 _ACEOF
10988 rm -f conftest.$ac_objext
10989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10990   (eval $ac_compile) 2>conftest.er1
10991   ac_status=$?
10992   grep -v '^ *+' conftest.er1 >conftest.err
10993   rm -f conftest.er1
10994   cat conftest.err >&5
10995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996   (exit $ac_status); } &&
10997          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10999   (eval $ac_try) 2>&5
11000   ac_status=$?
11001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002   (exit $ac_status); }; } &&
11003          { ac_try='test -s conftest.$ac_objext'
11004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11005   (eval $ac_try) 2>&5
11006   ac_status=$?
11007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008   (exit $ac_status); }; }; then
11009   eval "$as_ac_Header=yes"
11010 else
11011   echo "$as_me: failed program was:" >&5
11012 sed 's/^/| /' conftest.$ac_ext >&5
11013
11014 eval "$as_ac_Header=no"
11015 fi
11016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11017 fi
11018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11021   cat >>confdefs.h <<_ACEOF
11022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11023 _ACEOF
11024
11025 fi
11026
11027 done
11028
11029
11030 for ac_func in vprintf
11031 do
11032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11033 echo "$as_me:$LINENO: checking for $ac_func" >&5
11034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11035 if eval "test \"\${$as_ac_var+set}\" = set"; then
11036   echo $ECHO_N "(cached) $ECHO_C" >&6
11037 else
11038   cat >conftest.$ac_ext <<_ACEOF
11039 /* confdefs.h.  */
11040 _ACEOF
11041 cat confdefs.h >>conftest.$ac_ext
11042 cat >>conftest.$ac_ext <<_ACEOF
11043 /* end confdefs.h.  */
11044 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11045    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11046 #define $ac_func innocuous_$ac_func
11047
11048 /* System header to define __stub macros and hopefully few prototypes,
11049     which can conflict with char $ac_func (); below.
11050     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11051     <limits.h> exists even on freestanding compilers.  */
11052
11053 #ifdef __STDC__
11054 # include <limits.h>
11055 #else
11056 # include <assert.h>
11057 #endif
11058
11059 #undef $ac_func
11060
11061 /* Override any gcc2 internal prototype to avoid an error.  */
11062 #ifdef __cplusplus
11063 extern "C"
11064 {
11065 #endif
11066 /* We use char because int might match the return type of a gcc2
11067    builtin and then its argument prototype would still apply.  */
11068 char $ac_func ();
11069 /* The GNU C library defines this for functions which it implements
11070     to always fail with ENOSYS.  Some functions are actually named
11071     something starting with __ and the normal name is an alias.  */
11072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11073 choke me
11074 #else
11075 char (*f) () = $ac_func;
11076 #endif
11077 #ifdef __cplusplus
11078 }
11079 #endif
11080
11081 int
11082 main ()
11083 {
11084 return f != $ac_func;
11085   ;
11086   return 0;
11087 }
11088 _ACEOF
11089 rm -f conftest.$ac_objext conftest$ac_exeext
11090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11091   (eval $ac_link) 2>conftest.er1
11092   ac_status=$?
11093   grep -v '^ *+' conftest.er1 >conftest.err
11094   rm -f conftest.er1
11095   cat conftest.err >&5
11096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097   (exit $ac_status); } &&
11098          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100   (eval $ac_try) 2>&5
11101   ac_status=$?
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); }; } &&
11104          { ac_try='test -s conftest$ac_exeext'
11105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11106   (eval $ac_try) 2>&5
11107   ac_status=$?
11108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109   (exit $ac_status); }; }; then
11110   eval "$as_ac_var=yes"
11111 else
11112   echo "$as_me: failed program was:" >&5
11113 sed 's/^/| /' conftest.$ac_ext >&5
11114
11115 eval "$as_ac_var=no"
11116 fi
11117 rm -f conftest.err conftest.$ac_objext \
11118       conftest$ac_exeext conftest.$ac_ext
11119 fi
11120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11121 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11122 if test `eval echo '${'$as_ac_var'}'` = yes; then
11123   cat >>confdefs.h <<_ACEOF
11124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11125 _ACEOF
11126
11127 echo "$as_me:$LINENO: checking for _doprnt" >&5
11128 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
11129 if test "${ac_cv_func__doprnt+set}" = set; then
11130   echo $ECHO_N "(cached) $ECHO_C" >&6
11131 else
11132   cat >conftest.$ac_ext <<_ACEOF
11133 /* confdefs.h.  */
11134 _ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h.  */
11138 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11139    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11140 #define _doprnt innocuous__doprnt
11141
11142 /* System header to define __stub macros and hopefully few prototypes,
11143     which can conflict with char _doprnt (); below.
11144     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11145     <limits.h> exists even on freestanding compilers.  */
11146
11147 #ifdef __STDC__
11148 # include <limits.h>
11149 #else
11150 # include <assert.h>
11151 #endif
11152
11153 #undef _doprnt
11154
11155 /* Override any gcc2 internal prototype to avoid an error.  */
11156 #ifdef __cplusplus
11157 extern "C"
11158 {
11159 #endif
11160 /* We use char because int might match the return type of a gcc2
11161    builtin and then its argument prototype would still apply.  */
11162 char _doprnt ();
11163 /* The GNU C library defines this for functions which it implements
11164     to always fail with ENOSYS.  Some functions are actually named
11165     something starting with __ and the normal name is an alias.  */
11166 #if defined (__stub__doprnt) || defined (__stub____doprnt)
11167 choke me
11168 #else
11169 char (*f) () = _doprnt;
11170 #endif
11171 #ifdef __cplusplus
11172 }
11173 #endif
11174
11175 int
11176 main ()
11177 {
11178 return f != _doprnt;
11179   ;
11180   return 0;
11181 }
11182 _ACEOF
11183 rm -f conftest.$ac_objext conftest$ac_exeext
11184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11185   (eval $ac_link) 2>conftest.er1
11186   ac_status=$?
11187   grep -v '^ *+' conftest.er1 >conftest.err
11188   rm -f conftest.er1
11189   cat conftest.err >&5
11190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191   (exit $ac_status); } &&
11192          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11194   (eval $ac_try) 2>&5
11195   ac_status=$?
11196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197   (exit $ac_status); }; } &&
11198          { ac_try='test -s conftest$ac_exeext'
11199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11200   (eval $ac_try) 2>&5
11201   ac_status=$?
11202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203   (exit $ac_status); }; }; then
11204   ac_cv_func__doprnt=yes
11205 else
11206   echo "$as_me: failed program was:" >&5
11207 sed 's/^/| /' conftest.$ac_ext >&5
11208
11209 ac_cv_func__doprnt=no
11210 fi
11211 rm -f conftest.err conftest.$ac_objext \
11212       conftest$ac_exeext conftest.$ac_ext
11213 fi
11214 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11215 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
11216 if test $ac_cv_func__doprnt = yes; then
11217
11218 cat >>confdefs.h <<\_ACEOF
11219 #define HAVE_DOPRNT 1
11220 _ACEOF
11221
11222 fi
11223
11224 fi
11225 done
11226
11227
11228 echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
11229 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6
11230 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
11231   echo $ECHO_N "(cached) $ECHO_C" >&6
11232 else
11233   cat >conftest.$ac_ext <<_ACEOF
11234 /* confdefs.h.  */
11235 _ACEOF
11236 cat confdefs.h >>conftest.$ac_ext
11237 cat >>conftest.$ac_ext <<_ACEOF
11238 /* end confdefs.h.  */
11239 #include <dirent.h>
11240
11241 int
11242 main ()
11243 {
11244 static struct dirent ac_aggr;
11245 if (ac_aggr.d_reclen)
11246 return 0;
11247   ;
11248   return 0;
11249 }
11250 _ACEOF
11251 rm -f conftest.$ac_objext
11252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11253   (eval $ac_compile) 2>conftest.er1
11254   ac_status=$?
11255   grep -v '^ *+' conftest.er1 >conftest.err
11256   rm -f conftest.er1
11257   cat conftest.err >&5
11258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259   (exit $ac_status); } &&
11260          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11262   (eval $ac_try) 2>&5
11263   ac_status=$?
11264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265   (exit $ac_status); }; } &&
11266          { ac_try='test -s conftest.$ac_objext'
11267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11268   (eval $ac_try) 2>&5
11269   ac_status=$?
11270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271   (exit $ac_status); }; }; then
11272   ac_cv_member_struct_dirent_d_reclen=yes
11273 else
11274   echo "$as_me: failed program was:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11276
11277 cat >conftest.$ac_ext <<_ACEOF
11278 /* confdefs.h.  */
11279 _ACEOF
11280 cat confdefs.h >>conftest.$ac_ext
11281 cat >>conftest.$ac_ext <<_ACEOF
11282 /* end confdefs.h.  */
11283 #include <dirent.h>
11284
11285 int
11286 main ()
11287 {
11288 static struct dirent ac_aggr;
11289 if (sizeof ac_aggr.d_reclen)
11290 return 0;
11291   ;
11292   return 0;
11293 }
11294 _ACEOF
11295 rm -f conftest.$ac_objext
11296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11297   (eval $ac_compile) 2>conftest.er1
11298   ac_status=$?
11299   grep -v '^ *+' conftest.er1 >conftest.err
11300   rm -f conftest.er1
11301   cat conftest.err >&5
11302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303   (exit $ac_status); } &&
11304          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11306   (eval $ac_try) 2>&5
11307   ac_status=$?
11308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309   (exit $ac_status); }; } &&
11310          { ac_try='test -s conftest.$ac_objext'
11311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11312   (eval $ac_try) 2>&5
11313   ac_status=$?
11314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315   (exit $ac_status); }; }; then
11316   ac_cv_member_struct_dirent_d_reclen=yes
11317 else
11318   echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11320
11321 ac_cv_member_struct_dirent_d_reclen=no
11322 fi
11323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11324 fi
11325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11326 fi
11327 echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
11328 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6
11329 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
11330   cat >>confdefs.h <<\_ACEOF
11331 #define HAVE_RECLEN_DIRENT 1
11332 _ACEOF
11333
11334 fi
11335
11336 echo "$as_me:$LINENO: checking for ssize_t" >&5
11337 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11338 if test "${ac_cv_type_ssize_t+set}" = set; then
11339   echo $ECHO_N "(cached) $ECHO_C" >&6
11340 else
11341   cat >conftest.$ac_ext <<_ACEOF
11342 /* confdefs.h.  */
11343 _ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h.  */
11347 #include <sys/types.h>
11348
11349 int
11350 main ()
11351 {
11352 if ((ssize_t *) 0)
11353   return 0;
11354 if (sizeof (ssize_t))
11355   return 0;
11356   ;
11357   return 0;
11358 }
11359 _ACEOF
11360 rm -f conftest.$ac_objext
11361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11362   (eval $ac_compile) 2>conftest.er1
11363   ac_status=$?
11364   grep -v '^ *+' conftest.er1 >conftest.err
11365   rm -f conftest.er1
11366   cat conftest.err >&5
11367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368   (exit $ac_status); } &&
11369          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371   (eval $ac_try) 2>&5
11372   ac_status=$?
11373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374   (exit $ac_status); }; } &&
11375          { ac_try='test -s conftest.$ac_objext'
11376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377   (eval $ac_try) 2>&5
11378   ac_status=$?
11379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380   (exit $ac_status); }; }; then
11381   ac_cv_type_ssize_t=yes
11382 else
11383   echo "$as_me: failed program was:" >&5
11384 sed 's/^/| /' conftest.$ac_ext >&5
11385
11386 ac_cv_type_ssize_t=no
11387 fi
11388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11389 fi
11390 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11391 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11392 if test $ac_cv_type_ssize_t = yes; then
11393   cat >>confdefs.h <<\_ACEOF
11394 #define HAVE_TYPE_SSIZE_T 1
11395 _ACEOF
11396
11397 fi
11398
11399 echo "$as_me:$LINENO: checking whether llseek is declared" >&5
11400 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6
11401 if test "${ac_cv_have_decl_llseek+set}" = set; then
11402   echo $ECHO_N "(cached) $ECHO_C" >&6
11403 else
11404   cat >conftest.$ac_ext <<_ACEOF
11405 /* confdefs.h.  */
11406 _ACEOF
11407 cat confdefs.h >>conftest.$ac_ext
11408 cat >>conftest.$ac_ext <<_ACEOF
11409 /* end confdefs.h.  */
11410 #include <unistd.h>
11411
11412 int
11413 main ()
11414 {
11415 #ifndef llseek
11416   char *p = (char *) llseek;
11417 #endif
11418
11419   ;
11420   return 0;
11421 }
11422 _ACEOF
11423 rm -f conftest.$ac_objext
11424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11425   (eval $ac_compile) 2>conftest.er1
11426   ac_status=$?
11427   grep -v '^ *+' conftest.er1 >conftest.err
11428   rm -f conftest.er1
11429   cat conftest.err >&5
11430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431   (exit $ac_status); } &&
11432          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434   (eval $ac_try) 2>&5
11435   ac_status=$?
11436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437   (exit $ac_status); }; } &&
11438          { ac_try='test -s conftest.$ac_objext'
11439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440   (eval $ac_try) 2>&5
11441   ac_status=$?
11442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443   (exit $ac_status); }; }; then
11444   ac_cv_have_decl_llseek=yes
11445 else
11446   echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11448
11449 ac_cv_have_decl_llseek=no
11450 fi
11451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11452 fi
11453 echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
11454 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6
11455 if test $ac_cv_have_decl_llseek = yes; then
11456   cat >>confdefs.h <<\_ACEOF
11457 #define HAVE_LLSEEK_PROTOTYPE 1
11458 _ACEOF
11459
11460 fi
11461
11462 echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
11463 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6
11464 if test "${ac_cv_have_decl_lseek64+set}" = set; then
11465   echo $ECHO_N "(cached) $ECHO_C" >&6
11466 else
11467   cat >conftest.$ac_ext <<_ACEOF
11468 /* confdefs.h.  */
11469 _ACEOF
11470 cat confdefs.h >>conftest.$ac_ext
11471 cat >>conftest.$ac_ext <<_ACEOF
11472 /* end confdefs.h.  */
11473 #define _LARGEFILE_SOURCE
11474                  #define _LARGEFILE64_SOURCE
11475                  #include <unistd.h>
11476
11477 int
11478 main ()
11479 {
11480 #ifndef lseek64
11481   char *p = (char *) lseek64;
11482 #endif
11483
11484   ;
11485   return 0;
11486 }
11487 _ACEOF
11488 rm -f conftest.$ac_objext
11489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11490   (eval $ac_compile) 2>conftest.er1
11491   ac_status=$?
11492   grep -v '^ *+' conftest.er1 >conftest.err
11493   rm -f conftest.er1
11494   cat conftest.err >&5
11495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496   (exit $ac_status); } &&
11497          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499   (eval $ac_try) 2>&5
11500   ac_status=$?
11501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502   (exit $ac_status); }; } &&
11503          { ac_try='test -s conftest.$ac_objext'
11504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505   (eval $ac_try) 2>&5
11506   ac_status=$?
11507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508   (exit $ac_status); }; }; then
11509   ac_cv_have_decl_lseek64=yes
11510 else
11511   echo "$as_me: failed program was:" >&5
11512 sed 's/^/| /' conftest.$ac_ext >&5
11513
11514 ac_cv_have_decl_lseek64=no
11515 fi
11516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11517 fi
11518 echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
11519 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6
11520 if test $ac_cv_have_decl_lseek64 = yes; then
11521   cat >>confdefs.h <<\_ACEOF
11522 #define HAVE_LSEEK64_PROTOTYPE 1
11523 _ACEOF
11524
11525 fi
11526
11527 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
11528   # if cross-compiling, with no cached values, just assume something common.
11529   ac_cv_sizeof_short=2
11530   ac_cv_sizeof_int=4
11531   ac_cv_sizeof_long=4
11532   ac_cv_sizeof_long_long=8
11533   { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
11534 echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
11535 fi
11536 echo "$as_me:$LINENO: checking for short" >&5
11537 echo $ECHO_N "checking for short... $ECHO_C" >&6
11538 if test "${ac_cv_type_short+set}" = set; then
11539   echo $ECHO_N "(cached) $ECHO_C" >&6
11540 else
11541   cat >conftest.$ac_ext <<_ACEOF
11542 /* confdefs.h.  */
11543 _ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h.  */
11547 $ac_includes_default
11548 int
11549 main ()
11550 {
11551 if ((short *) 0)
11552   return 0;
11553 if (sizeof (short))
11554   return 0;
11555   ;
11556   return 0;
11557 }
11558 _ACEOF
11559 rm -f conftest.$ac_objext
11560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11561   (eval $ac_compile) 2>conftest.er1
11562   ac_status=$?
11563   grep -v '^ *+' conftest.er1 >conftest.err
11564   rm -f conftest.er1
11565   cat conftest.err >&5
11566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567   (exit $ac_status); } &&
11568          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570   (eval $ac_try) 2>&5
11571   ac_status=$?
11572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573   (exit $ac_status); }; } &&
11574          { ac_try='test -s conftest.$ac_objext'
11575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576   (eval $ac_try) 2>&5
11577   ac_status=$?
11578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579   (exit $ac_status); }; }; then
11580   ac_cv_type_short=yes
11581 else
11582   echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.$ac_ext >&5
11584
11585 ac_cv_type_short=no
11586 fi
11587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11588 fi
11589 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
11590 echo "${ECHO_T}$ac_cv_type_short" >&6
11591
11592 echo "$as_me:$LINENO: checking size of short" >&5
11593 echo $ECHO_N "checking size of short... $ECHO_C" >&6
11594 if test "${ac_cv_sizeof_short+set}" = set; then
11595   echo $ECHO_N "(cached) $ECHO_C" >&6
11596 else
11597   if test "$ac_cv_type_short" = yes; then
11598   # The cast to unsigned long works around a bug in the HP C Compiler
11599   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11600   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11601   # This bug is HP SR number 8606223364.
11602   if test "$cross_compiling" = yes; then
11603   # Depending upon the size, compute the lo and hi bounds.
11604 cat >conftest.$ac_ext <<_ACEOF
11605 /* confdefs.h.  */
11606 _ACEOF
11607 cat confdefs.h >>conftest.$ac_ext
11608 cat >>conftest.$ac_ext <<_ACEOF
11609 /* end confdefs.h.  */
11610 $ac_includes_default
11611 int
11612 main ()
11613 {
11614 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
11615 test_array [0] = 0
11616
11617   ;
11618   return 0;
11619 }
11620 _ACEOF
11621 rm -f conftest.$ac_objext
11622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11623   (eval $ac_compile) 2>conftest.er1
11624   ac_status=$?
11625   grep -v '^ *+' conftest.er1 >conftest.err
11626   rm -f conftest.er1
11627   cat conftest.err >&5
11628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629   (exit $ac_status); } &&
11630          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632   (eval $ac_try) 2>&5
11633   ac_status=$?
11634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635   (exit $ac_status); }; } &&
11636          { ac_try='test -s conftest.$ac_objext'
11637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11638   (eval $ac_try) 2>&5
11639   ac_status=$?
11640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641   (exit $ac_status); }; }; then
11642   ac_lo=0 ac_mid=0
11643   while :; do
11644     cat >conftest.$ac_ext <<_ACEOF
11645 /* confdefs.h.  */
11646 _ACEOF
11647 cat confdefs.h >>conftest.$ac_ext
11648 cat >>conftest.$ac_ext <<_ACEOF
11649 /* end confdefs.h.  */
11650 $ac_includes_default
11651 int
11652 main ()
11653 {
11654 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11655 test_array [0] = 0
11656
11657   ;
11658   return 0;
11659 }
11660 _ACEOF
11661 rm -f conftest.$ac_objext
11662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11663   (eval $ac_compile) 2>conftest.er1
11664   ac_status=$?
11665   grep -v '^ *+' conftest.er1 >conftest.err
11666   rm -f conftest.er1
11667   cat conftest.err >&5
11668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669   (exit $ac_status); } &&
11670          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11672   (eval $ac_try) 2>&5
11673   ac_status=$?
11674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675   (exit $ac_status); }; } &&
11676          { ac_try='test -s conftest.$ac_objext'
11677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678   (eval $ac_try) 2>&5
11679   ac_status=$?
11680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681   (exit $ac_status); }; }; then
11682   ac_hi=$ac_mid; break
11683 else
11684   echo "$as_me: failed program was:" >&5
11685 sed 's/^/| /' conftest.$ac_ext >&5
11686
11687 ac_lo=`expr $ac_mid + 1`
11688                     if test $ac_lo -le $ac_mid; then
11689                       ac_lo= ac_hi=
11690                       break
11691                     fi
11692                     ac_mid=`expr 2 '*' $ac_mid + 1`
11693 fi
11694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11695   done
11696 else
11697   echo "$as_me: failed program was:" >&5
11698 sed 's/^/| /' conftest.$ac_ext >&5
11699
11700 cat >conftest.$ac_ext <<_ACEOF
11701 /* confdefs.h.  */
11702 _ACEOF
11703 cat confdefs.h >>conftest.$ac_ext
11704 cat >>conftest.$ac_ext <<_ACEOF
11705 /* end confdefs.h.  */
11706 $ac_includes_default
11707 int
11708 main ()
11709 {
11710 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
11711 test_array [0] = 0
11712
11713   ;
11714   return 0;
11715 }
11716 _ACEOF
11717 rm -f conftest.$ac_objext
11718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11719   (eval $ac_compile) 2>conftest.er1
11720   ac_status=$?
11721   grep -v '^ *+' conftest.er1 >conftest.err
11722   rm -f conftest.er1
11723   cat conftest.err >&5
11724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725   (exit $ac_status); } &&
11726          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11728   (eval $ac_try) 2>&5
11729   ac_status=$?
11730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731   (exit $ac_status); }; } &&
11732          { ac_try='test -s conftest.$ac_objext'
11733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734   (eval $ac_try) 2>&5
11735   ac_status=$?
11736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737   (exit $ac_status); }; }; then
11738   ac_hi=-1 ac_mid=-1
11739   while :; do
11740     cat >conftest.$ac_ext <<_ACEOF
11741 /* confdefs.h.  */
11742 _ACEOF
11743 cat confdefs.h >>conftest.$ac_ext
11744 cat >>conftest.$ac_ext <<_ACEOF
11745 /* end confdefs.h.  */
11746 $ac_includes_default
11747 int
11748 main ()
11749 {
11750 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
11751 test_array [0] = 0
11752
11753   ;
11754   return 0;
11755 }
11756 _ACEOF
11757 rm -f conftest.$ac_objext
11758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11759   (eval $ac_compile) 2>conftest.er1
11760   ac_status=$?
11761   grep -v '^ *+' conftest.er1 >conftest.err
11762   rm -f conftest.er1
11763   cat conftest.err >&5
11764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765   (exit $ac_status); } &&
11766          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11768   (eval $ac_try) 2>&5
11769   ac_status=$?
11770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771   (exit $ac_status); }; } &&
11772          { ac_try='test -s conftest.$ac_objext'
11773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774   (eval $ac_try) 2>&5
11775   ac_status=$?
11776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777   (exit $ac_status); }; }; then
11778   ac_lo=$ac_mid; break
11779 else
11780   echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11782
11783 ac_hi=`expr '(' $ac_mid ')' - 1`
11784                        if test $ac_mid -le $ac_hi; then
11785                          ac_lo= ac_hi=
11786                          break
11787                        fi
11788                        ac_mid=`expr 2 '*' $ac_mid`
11789 fi
11790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11791   done
11792 else
11793   echo "$as_me: failed program was:" >&5
11794 sed 's/^/| /' conftest.$ac_ext >&5
11795
11796 ac_lo= ac_hi=
11797 fi
11798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11799 fi
11800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11801 # Binary search between lo and hi bounds.
11802 while test "x$ac_lo" != "x$ac_hi"; do
11803   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11804   cat >conftest.$ac_ext <<_ACEOF
11805 /* confdefs.h.  */
11806 _ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h.  */
11810 $ac_includes_default
11811 int
11812 main ()
11813 {
11814 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11815 test_array [0] = 0
11816
11817   ;
11818   return 0;
11819 }
11820 _ACEOF
11821 rm -f conftest.$ac_objext
11822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11823   (eval $ac_compile) 2>conftest.er1
11824   ac_status=$?
11825   grep -v '^ *+' conftest.er1 >conftest.err
11826   rm -f conftest.er1
11827   cat conftest.err >&5
11828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829   (exit $ac_status); } &&
11830          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11832   (eval $ac_try) 2>&5
11833   ac_status=$?
11834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835   (exit $ac_status); }; } &&
11836          { ac_try='test -s conftest.$ac_objext'
11837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838   (eval $ac_try) 2>&5
11839   ac_status=$?
11840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841   (exit $ac_status); }; }; then
11842   ac_hi=$ac_mid
11843 else
11844   echo "$as_me: failed program was:" >&5
11845 sed 's/^/| /' conftest.$ac_ext >&5
11846
11847 ac_lo=`expr '(' $ac_mid ')' + 1`
11848 fi
11849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11850 done
11851 case $ac_lo in
11852 ?*) ac_cv_sizeof_short=$ac_lo;;
11853 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11854 See \`config.log' for more details." >&5
11855 echo "$as_me: error: cannot compute sizeof (short), 77
11856 See \`config.log' for more details." >&2;}
11857    { (exit 1); exit 1; }; } ;;
11858 esac
11859 else
11860   if test "$cross_compiling" = yes; then
11861   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11862 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11863    { (exit 1); exit 1; }; }
11864 else
11865   cat >conftest.$ac_ext <<_ACEOF
11866 /* confdefs.h.  */
11867 _ACEOF
11868 cat confdefs.h >>conftest.$ac_ext
11869 cat >>conftest.$ac_ext <<_ACEOF
11870 /* end confdefs.h.  */
11871 $ac_includes_default
11872 long longval () { return (long) (sizeof (short)); }
11873 unsigned long ulongval () { return (long) (sizeof (short)); }
11874 #include <stdio.h>
11875 #include <stdlib.h>
11876 int
11877 main ()
11878 {
11879
11880   FILE *f = fopen ("conftest.val", "w");
11881   if (! f)
11882     exit (1);
11883   if (((long) (sizeof (short))) < 0)
11884     {
11885       long i = longval ();
11886       if (i != ((long) (sizeof (short))))
11887         exit (1);
11888       fprintf (f, "%ld\n", i);
11889     }
11890   else
11891     {
11892       unsigned long i = ulongval ();
11893       if (i != ((long) (sizeof (short))))
11894         exit (1);
11895       fprintf (f, "%lu\n", i);
11896     }
11897   exit (ferror (f) || fclose (f) != 0);
11898
11899   ;
11900   return 0;
11901 }
11902 _ACEOF
11903 rm -f conftest$ac_exeext
11904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11905   (eval $ac_link) 2>&5
11906   ac_status=$?
11907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910   (eval $ac_try) 2>&5
11911   ac_status=$?
11912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913   (exit $ac_status); }; }; then
11914   ac_cv_sizeof_short=`cat conftest.val`
11915 else
11916   echo "$as_me: program exited with status $ac_status" >&5
11917 echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11919
11920 ( exit $ac_status )
11921 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11922 See \`config.log' for more details." >&5
11923 echo "$as_me: error: cannot compute sizeof (short), 77
11924 See \`config.log' for more details." >&2;}
11925    { (exit 1); exit 1; }; }
11926 fi
11927 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11928 fi
11929 fi
11930 rm -f conftest.val
11931 else
11932   ac_cv_sizeof_short=0
11933 fi
11934 fi
11935 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
11936 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
11937 cat >>confdefs.h <<_ACEOF
11938 #define SIZEOF_SHORT $ac_cv_sizeof_short
11939 _ACEOF
11940
11941
11942 echo "$as_me:$LINENO: checking for int" >&5
11943 echo $ECHO_N "checking for int... $ECHO_C" >&6
11944 if test "${ac_cv_type_int+set}" = set; then
11945   echo $ECHO_N "(cached) $ECHO_C" >&6
11946 else
11947   cat >conftest.$ac_ext <<_ACEOF
11948 /* confdefs.h.  */
11949 _ACEOF
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h.  */
11953 $ac_includes_default
11954 int
11955 main ()
11956 {
11957 if ((int *) 0)
11958   return 0;
11959 if (sizeof (int))
11960   return 0;
11961   ;
11962   return 0;
11963 }
11964 _ACEOF
11965 rm -f conftest.$ac_objext
11966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11967   (eval $ac_compile) 2>conftest.er1
11968   ac_status=$?
11969   grep -v '^ *+' conftest.er1 >conftest.err
11970   rm -f conftest.er1
11971   cat conftest.err >&5
11972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973   (exit $ac_status); } &&
11974          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976   (eval $ac_try) 2>&5
11977   ac_status=$?
11978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979   (exit $ac_status); }; } &&
11980          { ac_try='test -s conftest.$ac_objext'
11981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982   (eval $ac_try) 2>&5
11983   ac_status=$?
11984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985   (exit $ac_status); }; }; then
11986   ac_cv_type_int=yes
11987 else
11988   echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.$ac_ext >&5
11990
11991 ac_cv_type_int=no
11992 fi
11993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11994 fi
11995 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
11996 echo "${ECHO_T}$ac_cv_type_int" >&6
11997
11998 echo "$as_me:$LINENO: checking size of int" >&5
11999 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12000 if test "${ac_cv_sizeof_int+set}" = set; then
12001   echo $ECHO_N "(cached) $ECHO_C" >&6
12002 else
12003   if test "$ac_cv_type_int" = yes; then
12004   # The cast to unsigned long works around a bug in the HP C Compiler
12005   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12006   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12007   # This bug is HP SR number 8606223364.
12008   if test "$cross_compiling" = yes; then
12009   # Depending upon the size, compute the lo and hi bounds.
12010 cat >conftest.$ac_ext <<_ACEOF
12011 /* confdefs.h.  */
12012 _ACEOF
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h.  */
12016 $ac_includes_default
12017 int
12018 main ()
12019 {
12020 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12021 test_array [0] = 0
12022
12023   ;
12024   return 0;
12025 }
12026 _ACEOF
12027 rm -f conftest.$ac_objext
12028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12029   (eval $ac_compile) 2>conftest.er1
12030   ac_status=$?
12031   grep -v '^ *+' conftest.er1 >conftest.err
12032   rm -f conftest.er1
12033   cat conftest.err >&5
12034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035   (exit $ac_status); } &&
12036          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038   (eval $ac_try) 2>&5
12039   ac_status=$?
12040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041   (exit $ac_status); }; } &&
12042          { ac_try='test -s conftest.$ac_objext'
12043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044   (eval $ac_try) 2>&5
12045   ac_status=$?
12046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   (exit $ac_status); }; }; then
12048   ac_lo=0 ac_mid=0
12049   while :; do
12050     cat >conftest.$ac_ext <<_ACEOF
12051 /* confdefs.h.  */
12052 _ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h.  */
12056 $ac_includes_default
12057 int
12058 main ()
12059 {
12060 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12061 test_array [0] = 0
12062
12063   ;
12064   return 0;
12065 }
12066 _ACEOF
12067 rm -f conftest.$ac_objext
12068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12069   (eval $ac_compile) 2>conftest.er1
12070   ac_status=$?
12071   grep -v '^ *+' conftest.er1 >conftest.err
12072   rm -f conftest.er1
12073   cat conftest.err >&5
12074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075   (exit $ac_status); } &&
12076          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078   (eval $ac_try) 2>&5
12079   ac_status=$?
12080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081   (exit $ac_status); }; } &&
12082          { ac_try='test -s conftest.$ac_objext'
12083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084   (eval $ac_try) 2>&5
12085   ac_status=$?
12086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087   (exit $ac_status); }; }; then
12088   ac_hi=$ac_mid; break
12089 else
12090   echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12092
12093 ac_lo=`expr $ac_mid + 1`
12094                     if test $ac_lo -le $ac_mid; then
12095                       ac_lo= ac_hi=
12096                       break
12097                     fi
12098                     ac_mid=`expr 2 '*' $ac_mid + 1`
12099 fi
12100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12101   done
12102 else
12103   echo "$as_me: failed program was:" >&5
12104 sed 's/^/| /' conftest.$ac_ext >&5
12105
12106 cat >conftest.$ac_ext <<_ACEOF
12107 /* confdefs.h.  */
12108 _ACEOF
12109 cat confdefs.h >>conftest.$ac_ext
12110 cat >>conftest.$ac_ext <<_ACEOF
12111 /* end confdefs.h.  */
12112 $ac_includes_default
12113 int
12114 main ()
12115 {
12116 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12117 test_array [0] = 0
12118
12119   ;
12120   return 0;
12121 }
12122 _ACEOF
12123 rm -f conftest.$ac_objext
12124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12125   (eval $ac_compile) 2>conftest.er1
12126   ac_status=$?
12127   grep -v '^ *+' conftest.er1 >conftest.err
12128   rm -f conftest.er1
12129   cat conftest.err >&5
12130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131   (exit $ac_status); } &&
12132          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12134   (eval $ac_try) 2>&5
12135   ac_status=$?
12136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137   (exit $ac_status); }; } &&
12138          { ac_try='test -s conftest.$ac_objext'
12139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140   (eval $ac_try) 2>&5
12141   ac_status=$?
12142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143   (exit $ac_status); }; }; then
12144   ac_hi=-1 ac_mid=-1
12145   while :; do
12146     cat >conftest.$ac_ext <<_ACEOF
12147 /* confdefs.h.  */
12148 _ACEOF
12149 cat confdefs.h >>conftest.$ac_ext
12150 cat >>conftest.$ac_ext <<_ACEOF
12151 /* end confdefs.h.  */
12152 $ac_includes_default
12153 int
12154 main ()
12155 {
12156 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12157 test_array [0] = 0
12158
12159   ;
12160   return 0;
12161 }
12162 _ACEOF
12163 rm -f conftest.$ac_objext
12164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12165   (eval $ac_compile) 2>conftest.er1
12166   ac_status=$?
12167   grep -v '^ *+' conftest.er1 >conftest.err
12168   rm -f conftest.er1
12169   cat conftest.err >&5
12170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171   (exit $ac_status); } &&
12172          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174   (eval $ac_try) 2>&5
12175   ac_status=$?
12176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177   (exit $ac_status); }; } &&
12178          { ac_try='test -s conftest.$ac_objext'
12179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180   (eval $ac_try) 2>&5
12181   ac_status=$?
12182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183   (exit $ac_status); }; }; then
12184   ac_lo=$ac_mid; break
12185 else
12186   echo "$as_me: failed program was:" >&5
12187 sed 's/^/| /' conftest.$ac_ext >&5
12188
12189 ac_hi=`expr '(' $ac_mid ')' - 1`
12190                        if test $ac_mid -le $ac_hi; then
12191                          ac_lo= ac_hi=
12192                          break
12193                        fi
12194                        ac_mid=`expr 2 '*' $ac_mid`
12195 fi
12196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12197   done
12198 else
12199   echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12201
12202 ac_lo= ac_hi=
12203 fi
12204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12205 fi
12206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12207 # Binary search between lo and hi bounds.
12208 while test "x$ac_lo" != "x$ac_hi"; do
12209   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12210   cat >conftest.$ac_ext <<_ACEOF
12211 /* confdefs.h.  */
12212 _ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h.  */
12216 $ac_includes_default
12217 int
12218 main ()
12219 {
12220 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12221 test_array [0] = 0
12222
12223   ;
12224   return 0;
12225 }
12226 _ACEOF
12227 rm -f conftest.$ac_objext
12228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12229   (eval $ac_compile) 2>conftest.er1
12230   ac_status=$?
12231   grep -v '^ *+' conftest.er1 >conftest.err
12232   rm -f conftest.er1
12233   cat conftest.err >&5
12234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235   (exit $ac_status); } &&
12236          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238   (eval $ac_try) 2>&5
12239   ac_status=$?
12240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241   (exit $ac_status); }; } &&
12242          { ac_try='test -s conftest.$ac_objext'
12243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244   (eval $ac_try) 2>&5
12245   ac_status=$?
12246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247   (exit $ac_status); }; }; then
12248   ac_hi=$ac_mid
12249 else
12250   echo "$as_me: failed program was:" >&5
12251 sed 's/^/| /' conftest.$ac_ext >&5
12252
12253 ac_lo=`expr '(' $ac_mid ')' + 1`
12254 fi
12255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12256 done
12257 case $ac_lo in
12258 ?*) ac_cv_sizeof_int=$ac_lo;;
12259 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12260 See \`config.log' for more details." >&5
12261 echo "$as_me: error: cannot compute sizeof (int), 77
12262 See \`config.log' for more details." >&2;}
12263    { (exit 1); exit 1; }; } ;;
12264 esac
12265 else
12266   if test "$cross_compiling" = yes; then
12267   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12268 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12269    { (exit 1); exit 1; }; }
12270 else
12271   cat >conftest.$ac_ext <<_ACEOF
12272 /* confdefs.h.  */
12273 _ACEOF
12274 cat confdefs.h >>conftest.$ac_ext
12275 cat >>conftest.$ac_ext <<_ACEOF
12276 /* end confdefs.h.  */
12277 $ac_includes_default
12278 long longval () { return (long) (sizeof (int)); }
12279 unsigned long ulongval () { return (long) (sizeof (int)); }
12280 #include <stdio.h>
12281 #include <stdlib.h>
12282 int
12283 main ()
12284 {
12285
12286   FILE *f = fopen ("conftest.val", "w");
12287   if (! f)
12288     exit (1);
12289   if (((long) (sizeof (int))) < 0)
12290     {
12291       long i = longval ();
12292       if (i != ((long) (sizeof (int))))
12293         exit (1);
12294       fprintf (f, "%ld\n", i);
12295     }
12296   else
12297     {
12298       unsigned long i = ulongval ();
12299       if (i != ((long) (sizeof (int))))
12300         exit (1);
12301       fprintf (f, "%lu\n", i);
12302     }
12303   exit (ferror (f) || fclose (f) != 0);
12304
12305   ;
12306   return 0;
12307 }
12308 _ACEOF
12309 rm -f conftest$ac_exeext
12310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12311   (eval $ac_link) 2>&5
12312   ac_status=$?
12313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316   (eval $ac_try) 2>&5
12317   ac_status=$?
12318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319   (exit $ac_status); }; }; then
12320   ac_cv_sizeof_int=`cat conftest.val`
12321 else
12322   echo "$as_me: program exited with status $ac_status" >&5
12323 echo "$as_me: failed program was:" >&5
12324 sed 's/^/| /' conftest.$ac_ext >&5
12325
12326 ( exit $ac_status )
12327 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12328 See \`config.log' for more details." >&5
12329 echo "$as_me: error: cannot compute sizeof (int), 77
12330 See \`config.log' for more details." >&2;}
12331    { (exit 1); exit 1; }; }
12332 fi
12333 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12334 fi
12335 fi
12336 rm -f conftest.val
12337 else
12338   ac_cv_sizeof_int=0
12339 fi
12340 fi
12341 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12342 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12343 cat >>confdefs.h <<_ACEOF
12344 #define SIZEOF_INT $ac_cv_sizeof_int
12345 _ACEOF
12346
12347
12348 echo "$as_me:$LINENO: checking for long" >&5
12349 echo $ECHO_N "checking for long... $ECHO_C" >&6
12350 if test "${ac_cv_type_long+set}" = set; then
12351   echo $ECHO_N "(cached) $ECHO_C" >&6
12352 else
12353   cat >conftest.$ac_ext <<_ACEOF
12354 /* confdefs.h.  */
12355 _ACEOF
12356 cat confdefs.h >>conftest.$ac_ext
12357 cat >>conftest.$ac_ext <<_ACEOF
12358 /* end confdefs.h.  */
12359 $ac_includes_default
12360 int
12361 main ()
12362 {
12363 if ((long *) 0)
12364   return 0;
12365 if (sizeof (long))
12366   return 0;
12367   ;
12368   return 0;
12369 }
12370 _ACEOF
12371 rm -f conftest.$ac_objext
12372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12373   (eval $ac_compile) 2>conftest.er1
12374   ac_status=$?
12375   grep -v '^ *+' conftest.er1 >conftest.err
12376   rm -f conftest.er1
12377   cat conftest.err >&5
12378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379   (exit $ac_status); } &&
12380          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12382   (eval $ac_try) 2>&5
12383   ac_status=$?
12384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385   (exit $ac_status); }; } &&
12386          { ac_try='test -s conftest.$ac_objext'
12387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12388   (eval $ac_try) 2>&5
12389   ac_status=$?
12390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391   (exit $ac_status); }; }; then
12392   ac_cv_type_long=yes
12393 else
12394   echo "$as_me: failed program was:" >&5
12395 sed 's/^/| /' conftest.$ac_ext >&5
12396
12397 ac_cv_type_long=no
12398 fi
12399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12400 fi
12401 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12402 echo "${ECHO_T}$ac_cv_type_long" >&6
12403
12404 echo "$as_me:$LINENO: checking size of long" >&5
12405 echo $ECHO_N "checking size of long... $ECHO_C" >&6
12406 if test "${ac_cv_sizeof_long+set}" = set; then
12407   echo $ECHO_N "(cached) $ECHO_C" >&6
12408 else
12409   if test "$ac_cv_type_long" = yes; then
12410   # The cast to unsigned long works around a bug in the HP C Compiler
12411   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12412   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12413   # This bug is HP SR number 8606223364.
12414   if test "$cross_compiling" = yes; then
12415   # Depending upon the size, compute the lo and hi bounds.
12416 cat >conftest.$ac_ext <<_ACEOF
12417 /* confdefs.h.  */
12418 _ACEOF
12419 cat confdefs.h >>conftest.$ac_ext
12420 cat >>conftest.$ac_ext <<_ACEOF
12421 /* end confdefs.h.  */
12422 $ac_includes_default
12423 int
12424 main ()
12425 {
12426 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12427 test_array [0] = 0
12428
12429   ;
12430   return 0;
12431 }
12432 _ACEOF
12433 rm -f conftest.$ac_objext
12434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12435   (eval $ac_compile) 2>conftest.er1
12436   ac_status=$?
12437   grep -v '^ *+' conftest.er1 >conftest.err
12438   rm -f conftest.er1
12439   cat conftest.err >&5
12440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441   (exit $ac_status); } &&
12442          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12444   (eval $ac_try) 2>&5
12445   ac_status=$?
12446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447   (exit $ac_status); }; } &&
12448          { ac_try='test -s conftest.$ac_objext'
12449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450   (eval $ac_try) 2>&5
12451   ac_status=$?
12452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453   (exit $ac_status); }; }; then
12454   ac_lo=0 ac_mid=0
12455   while :; do
12456     cat >conftest.$ac_ext <<_ACEOF
12457 /* confdefs.h.  */
12458 _ACEOF
12459 cat confdefs.h >>conftest.$ac_ext
12460 cat >>conftest.$ac_ext <<_ACEOF
12461 /* end confdefs.h.  */
12462 $ac_includes_default
12463 int
12464 main ()
12465 {
12466 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12467 test_array [0] = 0
12468
12469   ;
12470   return 0;
12471 }
12472 _ACEOF
12473 rm -f conftest.$ac_objext
12474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12475   (eval $ac_compile) 2>conftest.er1
12476   ac_status=$?
12477   grep -v '^ *+' conftest.er1 >conftest.err
12478   rm -f conftest.er1
12479   cat conftest.err >&5
12480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481   (exit $ac_status); } &&
12482          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484   (eval $ac_try) 2>&5
12485   ac_status=$?
12486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487   (exit $ac_status); }; } &&
12488          { ac_try='test -s conftest.$ac_objext'
12489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490   (eval $ac_try) 2>&5
12491   ac_status=$?
12492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493   (exit $ac_status); }; }; then
12494   ac_hi=$ac_mid; break
12495 else
12496   echo "$as_me: failed program was:" >&5
12497 sed 's/^/| /' conftest.$ac_ext >&5
12498
12499 ac_lo=`expr $ac_mid + 1`
12500                     if test $ac_lo -le $ac_mid; then
12501                       ac_lo= ac_hi=
12502                       break
12503                     fi
12504                     ac_mid=`expr 2 '*' $ac_mid + 1`
12505 fi
12506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12507   done
12508 else
12509   echo "$as_me: failed program was:" >&5
12510 sed 's/^/| /' conftest.$ac_ext >&5
12511
12512 cat >conftest.$ac_ext <<_ACEOF
12513 /* confdefs.h.  */
12514 _ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h.  */
12518 $ac_includes_default
12519 int
12520 main ()
12521 {
12522 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12523 test_array [0] = 0
12524
12525   ;
12526   return 0;
12527 }
12528 _ACEOF
12529 rm -f conftest.$ac_objext
12530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12531   (eval $ac_compile) 2>conftest.er1
12532   ac_status=$?
12533   grep -v '^ *+' conftest.er1 >conftest.err
12534   rm -f conftest.er1
12535   cat conftest.err >&5
12536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537   (exit $ac_status); } &&
12538          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12540   (eval $ac_try) 2>&5
12541   ac_status=$?
12542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543   (exit $ac_status); }; } &&
12544          { ac_try='test -s conftest.$ac_objext'
12545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546   (eval $ac_try) 2>&5
12547   ac_status=$?
12548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549   (exit $ac_status); }; }; then
12550   ac_hi=-1 ac_mid=-1
12551   while :; do
12552     cat >conftest.$ac_ext <<_ACEOF
12553 /* confdefs.h.  */
12554 _ACEOF
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h.  */
12558 $ac_includes_default
12559 int
12560 main ()
12561 {
12562 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12563 test_array [0] = 0
12564
12565   ;
12566   return 0;
12567 }
12568 _ACEOF
12569 rm -f conftest.$ac_objext
12570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12571   (eval $ac_compile) 2>conftest.er1
12572   ac_status=$?
12573   grep -v '^ *+' conftest.er1 >conftest.err
12574   rm -f conftest.er1
12575   cat conftest.err >&5
12576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577   (exit $ac_status); } &&
12578          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580   (eval $ac_try) 2>&5
12581   ac_status=$?
12582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583   (exit $ac_status); }; } &&
12584          { ac_try='test -s conftest.$ac_objext'
12585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586   (eval $ac_try) 2>&5
12587   ac_status=$?
12588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589   (exit $ac_status); }; }; then
12590   ac_lo=$ac_mid; break
12591 else
12592   echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12594
12595 ac_hi=`expr '(' $ac_mid ')' - 1`
12596                        if test $ac_mid -le $ac_hi; then
12597                          ac_lo= ac_hi=
12598                          break
12599                        fi
12600                        ac_mid=`expr 2 '*' $ac_mid`
12601 fi
12602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12603   done
12604 else
12605   echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12607
12608 ac_lo= ac_hi=
12609 fi
12610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12611 fi
12612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12613 # Binary search between lo and hi bounds.
12614 while test "x$ac_lo" != "x$ac_hi"; do
12615   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12616   cat >conftest.$ac_ext <<_ACEOF
12617 /* confdefs.h.  */
12618 _ACEOF
12619 cat confdefs.h >>conftest.$ac_ext
12620 cat >>conftest.$ac_ext <<_ACEOF
12621 /* end confdefs.h.  */
12622 $ac_includes_default
12623 int
12624 main ()
12625 {
12626 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12627 test_array [0] = 0
12628
12629   ;
12630   return 0;
12631 }
12632 _ACEOF
12633 rm -f conftest.$ac_objext
12634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12635   (eval $ac_compile) 2>conftest.er1
12636   ac_status=$?
12637   grep -v '^ *+' conftest.er1 >conftest.err
12638   rm -f conftest.er1
12639   cat conftest.err >&5
12640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641   (exit $ac_status); } &&
12642          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644   (eval $ac_try) 2>&5
12645   ac_status=$?
12646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647   (exit $ac_status); }; } &&
12648          { ac_try='test -s conftest.$ac_objext'
12649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650   (eval $ac_try) 2>&5
12651   ac_status=$?
12652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653   (exit $ac_status); }; }; then
12654   ac_hi=$ac_mid
12655 else
12656   echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12658
12659 ac_lo=`expr '(' $ac_mid ')' + 1`
12660 fi
12661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12662 done
12663 case $ac_lo in
12664 ?*) ac_cv_sizeof_long=$ac_lo;;
12665 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12666 See \`config.log' for more details." >&5
12667 echo "$as_me: error: cannot compute sizeof (long), 77
12668 See \`config.log' for more details." >&2;}
12669    { (exit 1); exit 1; }; } ;;
12670 esac
12671 else
12672   if test "$cross_compiling" = yes; then
12673   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12674 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12675    { (exit 1); exit 1; }; }
12676 else
12677   cat >conftest.$ac_ext <<_ACEOF
12678 /* confdefs.h.  */
12679 _ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h.  */
12683 $ac_includes_default
12684 long longval () { return (long) (sizeof (long)); }
12685 unsigned long ulongval () { return (long) (sizeof (long)); }
12686 #include <stdio.h>
12687 #include <stdlib.h>
12688 int
12689 main ()
12690 {
12691
12692   FILE *f = fopen ("conftest.val", "w");
12693   if (! f)
12694     exit (1);
12695   if (((long) (sizeof (long))) < 0)
12696     {
12697       long i = longval ();
12698       if (i != ((long) (sizeof (long))))
12699         exit (1);
12700       fprintf (f, "%ld\n", i);
12701     }
12702   else
12703     {
12704       unsigned long i = ulongval ();
12705       if (i != ((long) (sizeof (long))))
12706         exit (1);
12707       fprintf (f, "%lu\n", i);
12708     }
12709   exit (ferror (f) || fclose (f) != 0);
12710
12711   ;
12712   return 0;
12713 }
12714 _ACEOF
12715 rm -f conftest$ac_exeext
12716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12717   (eval $ac_link) 2>&5
12718   ac_status=$?
12719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722   (eval $ac_try) 2>&5
12723   ac_status=$?
12724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725   (exit $ac_status); }; }; then
12726   ac_cv_sizeof_long=`cat conftest.val`
12727 else
12728   echo "$as_me: program exited with status $ac_status" >&5
12729 echo "$as_me: failed program was:" >&5
12730 sed 's/^/| /' conftest.$ac_ext >&5
12731
12732 ( exit $ac_status )
12733 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12734 See \`config.log' for more details." >&5
12735 echo "$as_me: error: cannot compute sizeof (long), 77
12736 See \`config.log' for more details." >&2;}
12737    { (exit 1); exit 1; }; }
12738 fi
12739 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12740 fi
12741 fi
12742 rm -f conftest.val
12743 else
12744   ac_cv_sizeof_long=0
12745 fi
12746 fi
12747 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12748 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12749 cat >>confdefs.h <<_ACEOF
12750 #define SIZEOF_LONG $ac_cv_sizeof_long
12751 _ACEOF
12752
12753
12754 echo "$as_me:$LINENO: checking for long long" >&5
12755 echo $ECHO_N "checking for long long... $ECHO_C" >&6
12756 if test "${ac_cv_type_long_long+set}" = set; then
12757   echo $ECHO_N "(cached) $ECHO_C" >&6
12758 else
12759   cat >conftest.$ac_ext <<_ACEOF
12760 /* confdefs.h.  */
12761 _ACEOF
12762 cat confdefs.h >>conftest.$ac_ext
12763 cat >>conftest.$ac_ext <<_ACEOF
12764 /* end confdefs.h.  */
12765 $ac_includes_default
12766 int
12767 main ()
12768 {
12769 if ((long long *) 0)
12770   return 0;
12771 if (sizeof (long long))
12772   return 0;
12773   ;
12774   return 0;
12775 }
12776 _ACEOF
12777 rm -f conftest.$ac_objext
12778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12779   (eval $ac_compile) 2>conftest.er1
12780   ac_status=$?
12781   grep -v '^ *+' conftest.er1 >conftest.err
12782   rm -f conftest.er1
12783   cat conftest.err >&5
12784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785   (exit $ac_status); } &&
12786          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788   (eval $ac_try) 2>&5
12789   ac_status=$?
12790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791   (exit $ac_status); }; } &&
12792          { ac_try='test -s conftest.$ac_objext'
12793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12794   (eval $ac_try) 2>&5
12795   ac_status=$?
12796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797   (exit $ac_status); }; }; then
12798   ac_cv_type_long_long=yes
12799 else
12800   echo "$as_me: failed program was:" >&5
12801 sed 's/^/| /' conftest.$ac_ext >&5
12802
12803 ac_cv_type_long_long=no
12804 fi
12805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12806 fi
12807 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12808 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12809
12810 echo "$as_me:$LINENO: checking size of long long" >&5
12811 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12812 if test "${ac_cv_sizeof_long_long+set}" = set; then
12813   echo $ECHO_N "(cached) $ECHO_C" >&6
12814 else
12815   if test "$ac_cv_type_long_long" = yes; then
12816   # The cast to unsigned long works around a bug in the HP C Compiler
12817   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12818   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12819   # This bug is HP SR number 8606223364.
12820   if test "$cross_compiling" = yes; then
12821   # Depending upon the size, compute the lo and hi bounds.
12822 cat >conftest.$ac_ext <<_ACEOF
12823 /* confdefs.h.  */
12824 _ACEOF
12825 cat confdefs.h >>conftest.$ac_ext
12826 cat >>conftest.$ac_ext <<_ACEOF
12827 /* end confdefs.h.  */
12828 $ac_includes_default
12829 int
12830 main ()
12831 {
12832 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12833 test_array [0] = 0
12834
12835   ;
12836   return 0;
12837 }
12838 _ACEOF
12839 rm -f conftest.$ac_objext
12840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12841   (eval $ac_compile) 2>conftest.er1
12842   ac_status=$?
12843   grep -v '^ *+' conftest.er1 >conftest.err
12844   rm -f conftest.er1
12845   cat conftest.err >&5
12846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847   (exit $ac_status); } &&
12848          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12850   (eval $ac_try) 2>&5
12851   ac_status=$?
12852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853   (exit $ac_status); }; } &&
12854          { ac_try='test -s conftest.$ac_objext'
12855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856   (eval $ac_try) 2>&5
12857   ac_status=$?
12858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859   (exit $ac_status); }; }; then
12860   ac_lo=0 ac_mid=0
12861   while :; do
12862     cat >conftest.$ac_ext <<_ACEOF
12863 /* confdefs.h.  */
12864 _ACEOF
12865 cat confdefs.h >>conftest.$ac_ext
12866 cat >>conftest.$ac_ext <<_ACEOF
12867 /* end confdefs.h.  */
12868 $ac_includes_default
12869 int
12870 main ()
12871 {
12872 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12873 test_array [0] = 0
12874
12875   ;
12876   return 0;
12877 }
12878 _ACEOF
12879 rm -f conftest.$ac_objext
12880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12881   (eval $ac_compile) 2>conftest.er1
12882   ac_status=$?
12883   grep -v '^ *+' conftest.er1 >conftest.err
12884   rm -f conftest.er1
12885   cat conftest.err >&5
12886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887   (exit $ac_status); } &&
12888          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890   (eval $ac_try) 2>&5
12891   ac_status=$?
12892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893   (exit $ac_status); }; } &&
12894          { ac_try='test -s conftest.$ac_objext'
12895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12896   (eval $ac_try) 2>&5
12897   ac_status=$?
12898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899   (exit $ac_status); }; }; then
12900   ac_hi=$ac_mid; break
12901 else
12902   echo "$as_me: failed program was:" >&5
12903 sed 's/^/| /' conftest.$ac_ext >&5
12904
12905 ac_lo=`expr $ac_mid + 1`
12906                     if test $ac_lo -le $ac_mid; then
12907                       ac_lo= ac_hi=
12908                       break
12909                     fi
12910                     ac_mid=`expr 2 '*' $ac_mid + 1`
12911 fi
12912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12913   done
12914 else
12915   echo "$as_me: failed program was:" >&5
12916 sed 's/^/| /' conftest.$ac_ext >&5
12917
12918 cat >conftest.$ac_ext <<_ACEOF
12919 /* confdefs.h.  */
12920 _ACEOF
12921 cat confdefs.h >>conftest.$ac_ext
12922 cat >>conftest.$ac_ext <<_ACEOF
12923 /* end confdefs.h.  */
12924 $ac_includes_default
12925 int
12926 main ()
12927 {
12928 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12929 test_array [0] = 0
12930
12931   ;
12932   return 0;
12933 }
12934 _ACEOF
12935 rm -f conftest.$ac_objext
12936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12937   (eval $ac_compile) 2>conftest.er1
12938   ac_status=$?
12939   grep -v '^ *+' conftest.er1 >conftest.err
12940   rm -f conftest.er1
12941   cat conftest.err >&5
12942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943   (exit $ac_status); } &&
12944          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946   (eval $ac_try) 2>&5
12947   ac_status=$?
12948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949   (exit $ac_status); }; } &&
12950          { ac_try='test -s conftest.$ac_objext'
12951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12952   (eval $ac_try) 2>&5
12953   ac_status=$?
12954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955   (exit $ac_status); }; }; then
12956   ac_hi=-1 ac_mid=-1
12957   while :; do
12958     cat >conftest.$ac_ext <<_ACEOF
12959 /* confdefs.h.  */
12960 _ACEOF
12961 cat confdefs.h >>conftest.$ac_ext
12962 cat >>conftest.$ac_ext <<_ACEOF
12963 /* end confdefs.h.  */
12964 $ac_includes_default
12965 int
12966 main ()
12967 {
12968 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12969 test_array [0] = 0
12970
12971   ;
12972   return 0;
12973 }
12974 _ACEOF
12975 rm -f conftest.$ac_objext
12976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12977   (eval $ac_compile) 2>conftest.er1
12978   ac_status=$?
12979   grep -v '^ *+' conftest.er1 >conftest.err
12980   rm -f conftest.er1
12981   cat conftest.err >&5
12982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983   (exit $ac_status); } &&
12984          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986   (eval $ac_try) 2>&5
12987   ac_status=$?
12988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989   (exit $ac_status); }; } &&
12990          { ac_try='test -s conftest.$ac_objext'
12991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992   (eval $ac_try) 2>&5
12993   ac_status=$?
12994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995   (exit $ac_status); }; }; then
12996   ac_lo=$ac_mid; break
12997 else
12998   echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13000
13001 ac_hi=`expr '(' $ac_mid ')' - 1`
13002                        if test $ac_mid -le $ac_hi; then
13003                          ac_lo= ac_hi=
13004                          break
13005                        fi
13006                        ac_mid=`expr 2 '*' $ac_mid`
13007 fi
13008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13009   done
13010 else
13011   echo "$as_me: failed program was:" >&5
13012 sed 's/^/| /' conftest.$ac_ext >&5
13013
13014 ac_lo= ac_hi=
13015 fi
13016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13017 fi
13018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13019 # Binary search between lo and hi bounds.
13020 while test "x$ac_lo" != "x$ac_hi"; do
13021   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13022   cat >conftest.$ac_ext <<_ACEOF
13023 /* confdefs.h.  */
13024 _ACEOF
13025 cat confdefs.h >>conftest.$ac_ext
13026 cat >>conftest.$ac_ext <<_ACEOF
13027 /* end confdefs.h.  */
13028 $ac_includes_default
13029 int
13030 main ()
13031 {
13032 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13033 test_array [0] = 0
13034
13035   ;
13036   return 0;
13037 }
13038 _ACEOF
13039 rm -f conftest.$ac_objext
13040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13041   (eval $ac_compile) 2>conftest.er1
13042   ac_status=$?
13043   grep -v '^ *+' conftest.er1 >conftest.err
13044   rm -f conftest.er1
13045   cat conftest.err >&5
13046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047   (exit $ac_status); } &&
13048          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050   (eval $ac_try) 2>&5
13051   ac_status=$?
13052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053   (exit $ac_status); }; } &&
13054          { ac_try='test -s conftest.$ac_objext'
13055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13056   (eval $ac_try) 2>&5
13057   ac_status=$?
13058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059   (exit $ac_status); }; }; then
13060   ac_hi=$ac_mid
13061 else
13062   echo "$as_me: failed program was:" >&5
13063 sed 's/^/| /' conftest.$ac_ext >&5
13064
13065 ac_lo=`expr '(' $ac_mid ')' + 1`
13066 fi
13067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13068 done
13069 case $ac_lo in
13070 ?*) ac_cv_sizeof_long_long=$ac_lo;;
13071 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13072 See \`config.log' for more details." >&5
13073 echo "$as_me: error: cannot compute sizeof (long long), 77
13074 See \`config.log' for more details." >&2;}
13075    { (exit 1); exit 1; }; } ;;
13076 esac
13077 else
13078   if test "$cross_compiling" = yes; then
13079   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13080 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13081    { (exit 1); exit 1; }; }
13082 else
13083   cat >conftest.$ac_ext <<_ACEOF
13084 /* confdefs.h.  */
13085 _ACEOF
13086 cat confdefs.h >>conftest.$ac_ext
13087 cat >>conftest.$ac_ext <<_ACEOF
13088 /* end confdefs.h.  */
13089 $ac_includes_default
13090 long longval () { return (long) (sizeof (long long)); }
13091 unsigned long ulongval () { return (long) (sizeof (long long)); }
13092 #include <stdio.h>
13093 #include <stdlib.h>
13094 int
13095 main ()
13096 {
13097
13098   FILE *f = fopen ("conftest.val", "w");
13099   if (! f)
13100     exit (1);
13101   if (((long) (sizeof (long long))) < 0)
13102     {
13103       long i = longval ();
13104       if (i != ((long) (sizeof (long long))))
13105         exit (1);
13106       fprintf (f, "%ld\n", i);
13107     }
13108   else
13109     {
13110       unsigned long i = ulongval ();
13111       if (i != ((long) (sizeof (long long))))
13112         exit (1);
13113       fprintf (f, "%lu\n", i);
13114     }
13115   exit (ferror (f) || fclose (f) != 0);
13116
13117   ;
13118   return 0;
13119 }
13120 _ACEOF
13121 rm -f conftest$ac_exeext
13122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13123   (eval $ac_link) 2>&5
13124   ac_status=$?
13125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13128   (eval $ac_try) 2>&5
13129   ac_status=$?
13130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131   (exit $ac_status); }; }; then
13132   ac_cv_sizeof_long_long=`cat conftest.val`
13133 else
13134   echo "$as_me: program exited with status $ac_status" >&5
13135 echo "$as_me: failed program was:" >&5
13136 sed 's/^/| /' conftest.$ac_ext >&5
13137
13138 ( exit $ac_status )
13139 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13140 See \`config.log' for more details." >&5
13141 echo "$as_me: error: cannot compute sizeof (long long), 77
13142 See \`config.log' for more details." >&2;}
13143    { (exit 1); exit 1; }; }
13144 fi
13145 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13146 fi
13147 fi
13148 rm -f conftest.val
13149 else
13150   ac_cv_sizeof_long_long=0
13151 fi
13152 fi
13153 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13154 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
13155 cat >>confdefs.h <<_ACEOF
13156 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13157 _ACEOF
13158
13159
13160 SIZEOF_SHORT=$ac_cv_sizeof_short
13161 SIZEOF_INT=$ac_cv_sizeof_int
13162 SIZEOF_LONG=$ac_cv_sizeof_long
13163 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
13164
13165
13166
13167
13168 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13169 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13170 if test "${ac_cv_c_bigendian+set}" = set; then
13171   echo $ECHO_N "(cached) $ECHO_C" >&6
13172 else
13173   # See if sys/param.h defines the BYTE_ORDER macro.
13174 cat >conftest.$ac_ext <<_ACEOF
13175 /* confdefs.h.  */
13176 _ACEOF
13177 cat confdefs.h >>conftest.$ac_ext
13178 cat >>conftest.$ac_ext <<_ACEOF
13179 /* end confdefs.h.  */
13180 #include <sys/types.h>
13181 #include <sys/param.h>
13182
13183 int
13184 main ()
13185 {
13186 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13187  bogus endian macros
13188 #endif
13189
13190   ;
13191   return 0;
13192 }
13193 _ACEOF
13194 rm -f conftest.$ac_objext
13195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13196   (eval $ac_compile) 2>conftest.er1
13197   ac_status=$?
13198   grep -v '^ *+' conftest.er1 >conftest.err
13199   rm -f conftest.er1
13200   cat conftest.err >&5
13201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202   (exit $ac_status); } &&
13203          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13205   (eval $ac_try) 2>&5
13206   ac_status=$?
13207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208   (exit $ac_status); }; } &&
13209          { ac_try='test -s conftest.$ac_objext'
13210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13211   (eval $ac_try) 2>&5
13212   ac_status=$?
13213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214   (exit $ac_status); }; }; then
13215   # It does; now see whether it defined to BIG_ENDIAN or not.
13216 cat >conftest.$ac_ext <<_ACEOF
13217 /* confdefs.h.  */
13218 _ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h.  */
13222 #include <sys/types.h>
13223 #include <sys/param.h>
13224
13225 int
13226 main ()
13227 {
13228 #if BYTE_ORDER != BIG_ENDIAN
13229  not big endian
13230 #endif
13231
13232   ;
13233   return 0;
13234 }
13235 _ACEOF
13236 rm -f conftest.$ac_objext
13237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13238   (eval $ac_compile) 2>conftest.er1
13239   ac_status=$?
13240   grep -v '^ *+' conftest.er1 >conftest.err
13241   rm -f conftest.er1
13242   cat conftest.err >&5
13243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244   (exit $ac_status); } &&
13245          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247   (eval $ac_try) 2>&5
13248   ac_status=$?
13249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250   (exit $ac_status); }; } &&
13251          { ac_try='test -s conftest.$ac_objext'
13252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253   (eval $ac_try) 2>&5
13254   ac_status=$?
13255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256   (exit $ac_status); }; }; then
13257   ac_cv_c_bigendian=yes
13258 else
13259   echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13261
13262 ac_cv_c_bigendian=no
13263 fi
13264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13265 else
13266   echo "$as_me: failed program was:" >&5
13267 sed 's/^/| /' conftest.$ac_ext >&5
13268
13269 # It does not; compile a test program.
13270 if test "$cross_compiling" = yes; then
13271   # try to guess the endianness by grepping values into an object file
13272   ac_cv_c_bigendian=unknown
13273   cat >conftest.$ac_ext <<_ACEOF
13274 /* confdefs.h.  */
13275 _ACEOF
13276 cat confdefs.h >>conftest.$ac_ext
13277 cat >>conftest.$ac_ext <<_ACEOF
13278 /* end confdefs.h.  */
13279 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13280 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13281 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13282 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13283 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13284 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13285 int
13286 main ()
13287 {
13288  _ascii (); _ebcdic ();
13289   ;
13290   return 0;
13291 }
13292 _ACEOF
13293 rm -f conftest.$ac_objext
13294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13295   (eval $ac_compile) 2>conftest.er1
13296   ac_status=$?
13297   grep -v '^ *+' conftest.er1 >conftest.err
13298   rm -f conftest.er1
13299   cat conftest.err >&5
13300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301   (exit $ac_status); } &&
13302          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13304   (eval $ac_try) 2>&5
13305   ac_status=$?
13306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307   (exit $ac_status); }; } &&
13308          { ac_try='test -s conftest.$ac_objext'
13309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310   (eval $ac_try) 2>&5
13311   ac_status=$?
13312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313   (exit $ac_status); }; }; then
13314   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13315   ac_cv_c_bigendian=yes
13316 fi
13317 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13318   if test "$ac_cv_c_bigendian" = unknown; then
13319     ac_cv_c_bigendian=no
13320   else
13321     # finding both strings is unlikely to happen, but who knows?
13322     ac_cv_c_bigendian=unknown
13323   fi
13324 fi
13325 else
13326   echo "$as_me: failed program was:" >&5
13327 sed 's/^/| /' conftest.$ac_ext >&5
13328
13329 fi
13330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13331 else
13332   cat >conftest.$ac_ext <<_ACEOF
13333 /* confdefs.h.  */
13334 _ACEOF
13335 cat confdefs.h >>conftest.$ac_ext
13336 cat >>conftest.$ac_ext <<_ACEOF
13337 /* end confdefs.h.  */
13338 int
13339 main ()
13340 {
13341   /* Are we little or big endian?  From Harbison&Steele.  */
13342   union
13343   {
13344     long l;
13345     char c[sizeof (long)];
13346   } u;
13347   u.l = 1;
13348   exit (u.c[sizeof (long) - 1] == 1);
13349 }
13350 _ACEOF
13351 rm -f conftest$ac_exeext
13352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13353   (eval $ac_link) 2>&5
13354   ac_status=$?
13355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13358   (eval $ac_try) 2>&5
13359   ac_status=$?
13360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361   (exit $ac_status); }; }; then
13362   ac_cv_c_bigendian=no
13363 else
13364   echo "$as_me: program exited with status $ac_status" >&5
13365 echo "$as_me: failed program was:" >&5
13366 sed 's/^/| /' conftest.$ac_ext >&5
13367
13368 ( exit $ac_status )
13369 ac_cv_c_bigendian=yes
13370 fi
13371 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13372 fi
13373 fi
13374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13375 fi
13376 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13377 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13378 case $ac_cv_c_bigendian in
13379   yes)
13380
13381 cat >>confdefs.h <<\_ACEOF
13382 #define WORDS_BIGENDIAN 1
13383 _ACEOF
13384  ;;
13385   no)
13386      ;;
13387   *)
13388     { { echo "$as_me:$LINENO: error: unknown endianness
13389 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13390 echo "$as_me: error: unknown endianness
13391 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13392    { (exit 1); exit 1; }; } ;;
13393 esac
13394
13395
13396 for ac_header in inttypes.h
13397 do
13398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13400   echo "$as_me:$LINENO: checking for $ac_header" >&5
13401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13403   echo $ECHO_N "(cached) $ECHO_C" >&6
13404 fi
13405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13407 else
13408   # Is the header compilable?
13409 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13411 cat >conftest.$ac_ext <<_ACEOF
13412 /* confdefs.h.  */
13413 _ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h.  */
13417 $ac_includes_default
13418 #include <$ac_header>
13419 _ACEOF
13420 rm -f conftest.$ac_objext
13421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13422   (eval $ac_compile) 2>conftest.er1
13423   ac_status=$?
13424   grep -v '^ *+' conftest.er1 >conftest.err
13425   rm -f conftest.er1
13426   cat conftest.err >&5
13427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428   (exit $ac_status); } &&
13429          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431   (eval $ac_try) 2>&5
13432   ac_status=$?
13433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434   (exit $ac_status); }; } &&
13435          { ac_try='test -s conftest.$ac_objext'
13436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13437   (eval $ac_try) 2>&5
13438   ac_status=$?
13439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440   (exit $ac_status); }; }; then
13441   ac_header_compiler=yes
13442 else
13443   echo "$as_me: failed program was:" >&5
13444 sed 's/^/| /' conftest.$ac_ext >&5
13445
13446 ac_header_compiler=no
13447 fi
13448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13450 echo "${ECHO_T}$ac_header_compiler" >&6
13451
13452 # Is the header present?
13453 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13455 cat >conftest.$ac_ext <<_ACEOF
13456 /* confdefs.h.  */
13457 _ACEOF
13458 cat confdefs.h >>conftest.$ac_ext
13459 cat >>conftest.$ac_ext <<_ACEOF
13460 /* end confdefs.h.  */
13461 #include <$ac_header>
13462 _ACEOF
13463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13464   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13465   ac_status=$?
13466   grep -v '^ *+' conftest.er1 >conftest.err
13467   rm -f conftest.er1
13468   cat conftest.err >&5
13469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470   (exit $ac_status); } >/dev/null; then
13471   if test -s conftest.err; then
13472     ac_cpp_err=$ac_c_preproc_warn_flag
13473     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13474   else
13475     ac_cpp_err=
13476   fi
13477 else
13478   ac_cpp_err=yes
13479 fi
13480 if test -z "$ac_cpp_err"; then
13481   ac_header_preproc=yes
13482 else
13483   echo "$as_me: failed program was:" >&5
13484 sed 's/^/| /' conftest.$ac_ext >&5
13485
13486   ac_header_preproc=no
13487 fi
13488 rm -f conftest.err conftest.$ac_ext
13489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13490 echo "${ECHO_T}$ac_header_preproc" >&6
13491
13492 # So?  What about this header?
13493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13494   yes:no: )
13495     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13499     ac_header_preproc=yes
13500     ;;
13501   no:yes:* )
13502     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13504     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13505 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13506     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13508     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13509 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13512     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13514     (
13515       cat <<\_ASBOX
13516 ## ------------------------------------------ ##
13517 ## Report this to the AC_PACKAGE_NAME lists.  ##
13518 ## ------------------------------------------ ##
13519 _ASBOX
13520     ) |
13521       sed "s/^/$as_me: WARNING:     /" >&2
13522     ;;
13523 esac
13524 echo "$as_me:$LINENO: checking for $ac_header" >&5
13525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13527   echo $ECHO_N "(cached) $ECHO_C" >&6
13528 else
13529   eval "$as_ac_Header=\$ac_header_preproc"
13530 fi
13531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13533
13534 fi
13535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13536   cat >>confdefs.h <<_ACEOF
13537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13538 _ACEOF
13539
13540 fi
13541
13542 done
13543
13544 echo "$as_me:$LINENO: checking for intptr_t" >&5
13545 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
13546 if test "${ac_cv_type_intptr_t+set}" = set; then
13547   echo $ECHO_N "(cached) $ECHO_C" >&6
13548 else
13549   cat >conftest.$ac_ext <<_ACEOF
13550 /* confdefs.h.  */
13551 _ACEOF
13552 cat confdefs.h >>conftest.$ac_ext
13553 cat >>conftest.$ac_ext <<_ACEOF
13554 /* end confdefs.h.  */
13555 $ac_includes_default
13556 int
13557 main ()
13558 {
13559 if ((intptr_t *) 0)
13560   return 0;
13561 if (sizeof (intptr_t))
13562   return 0;
13563   ;
13564   return 0;
13565 }
13566 _ACEOF
13567 rm -f conftest.$ac_objext
13568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13569   (eval $ac_compile) 2>conftest.er1
13570   ac_status=$?
13571   grep -v '^ *+' conftest.er1 >conftest.err
13572   rm -f conftest.er1
13573   cat conftest.err >&5
13574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575   (exit $ac_status); } &&
13576          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578   (eval $ac_try) 2>&5
13579   ac_status=$?
13580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581   (exit $ac_status); }; } &&
13582          { ac_try='test -s conftest.$ac_objext'
13583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584   (eval $ac_try) 2>&5
13585   ac_status=$?
13586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587   (exit $ac_status); }; }; then
13588   ac_cv_type_intptr_t=yes
13589 else
13590   echo "$as_me: failed program was:" >&5
13591 sed 's/^/| /' conftest.$ac_ext >&5
13592
13593 ac_cv_type_intptr_t=no
13594 fi
13595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13596 fi
13597 echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
13598 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
13599 if test $ac_cv_type_intptr_t = yes; then
13600
13601 cat >>confdefs.h <<_ACEOF
13602 #define HAVE_INTPTR_T 1
13603 _ACEOF
13604
13605
13606 fi
13607
13608 echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
13609 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6
13610 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
13611   echo $ECHO_N "(cached) $ECHO_C" >&6
13612 else
13613   cat >conftest.$ac_ext <<_ACEOF
13614 /* confdefs.h.  */
13615 _ACEOF
13616 cat confdefs.h >>conftest.$ac_ext
13617 cat >>conftest.$ac_ext <<_ACEOF
13618 /* end confdefs.h.  */
13619 #include <sys/stat.h>
13620 int
13621 main ()
13622 {
13623 struct stat stat; stat.st_flags = 0;
13624   ;
13625   return 0;
13626 }
13627 _ACEOF
13628 rm -f conftest.$ac_objext
13629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13630   (eval $ac_compile) 2>conftest.er1
13631   ac_status=$?
13632   grep -v '^ *+' conftest.er1 >conftest.err
13633   rm -f conftest.er1
13634   cat conftest.err >&5
13635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636   (exit $ac_status); } &&
13637          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13639   (eval $ac_try) 2>&5
13640   ac_status=$?
13641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642   (exit $ac_status); }; } &&
13643          { ac_try='test -s conftest.$ac_objext'
13644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645   (eval $ac_try) 2>&5
13646   ac_status=$?
13647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648   (exit $ac_status); }; }; then
13649   e2fsprogs_cv_struct_st_flags=yes
13650 else
13651   echo "$as_me: failed program was:" >&5
13652 sed 's/^/| /' conftest.$ac_ext >&5
13653
13654 e2fsprogs_cv_struct_st_flags=no
13655 fi
13656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13657 fi
13658
13659 echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
13660 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6
13661 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13662   echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
13663 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6
13664   if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
13665   echo $ECHO_N "(cached) $ECHO_C" >&6
13666 else
13667   cat >conftest.$ac_ext <<_ACEOF
13668 /* confdefs.h.  */
13669 _ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h.  */
13673 #include <sys/stat.h>
13674 int
13675 main ()
13676 {
13677 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13678   ;
13679   return 0;
13680 }
13681 _ACEOF
13682 rm -f conftest.$ac_objext
13683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13684   (eval $ac_compile) 2>conftest.er1
13685   ac_status=$?
13686   grep -v '^ *+' conftest.er1 >conftest.err
13687   rm -f conftest.er1
13688   cat conftest.err >&5
13689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690   (exit $ac_status); } &&
13691          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13693   (eval $ac_try) 2>&5
13694   ac_status=$?
13695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696   (exit $ac_status); }; } &&
13697          { ac_try='test -s conftest.$ac_objext'
13698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699   (eval $ac_try) 2>&5
13700   ac_status=$?
13701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702   (exit $ac_status); }; }; then
13703   e2fsprogs_cv_struct_st_flags_immut=yes
13704 else
13705   echo "$as_me: failed program was:" >&5
13706 sed 's/^/| /' conftest.$ac_ext >&5
13707
13708 e2fsprogs_cv_struct_st_flags_immut=no
13709 fi
13710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13711 fi
13712
13713   echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13714 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6
13715   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13716           cat >>confdefs.h <<\_ACEOF
13717 #define HAVE_STAT_FLAGS 1
13718 _ACEOF
13719
13720   fi
13721 fi
13722 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
13723 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
13724 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
13725   echo $ECHO_N "(cached) $ECHO_C" >&6
13726 else
13727   cat >conftest.$ac_ext <<_ACEOF
13728 /* confdefs.h.  */
13729 _ACEOF
13730 cat confdefs.h >>conftest.$ac_ext
13731 cat >>conftest.$ac_ext <<_ACEOF
13732 /* end confdefs.h.  */
13733 #include <sys/types.h>
13734          #include <sys/socket.h>
13735
13736 int
13737 main ()
13738 {
13739 static struct sockaddr ac_aggr;
13740 if (ac_aggr.sa_len)
13741 return 0;
13742   ;
13743   return 0;
13744 }
13745 _ACEOF
13746 rm -f conftest.$ac_objext
13747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13748   (eval $ac_compile) 2>conftest.er1
13749   ac_status=$?
13750   grep -v '^ *+' conftest.er1 >conftest.err
13751   rm -f conftest.er1
13752   cat conftest.err >&5
13753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754   (exit $ac_status); } &&
13755          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757   (eval $ac_try) 2>&5
13758   ac_status=$?
13759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760   (exit $ac_status); }; } &&
13761          { ac_try='test -s conftest.$ac_objext'
13762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763   (eval $ac_try) 2>&5
13764   ac_status=$?
13765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766   (exit $ac_status); }; }; then
13767   ac_cv_member_struct_sockaddr_sa_len=yes
13768 else
13769   echo "$as_me: failed program was:" >&5
13770 sed 's/^/| /' conftest.$ac_ext >&5
13771
13772 cat >conftest.$ac_ext <<_ACEOF
13773 /* confdefs.h.  */
13774 _ACEOF
13775 cat confdefs.h >>conftest.$ac_ext
13776 cat >>conftest.$ac_ext <<_ACEOF
13777 /* end confdefs.h.  */
13778 #include <sys/types.h>
13779          #include <sys/socket.h>
13780
13781 int
13782 main ()
13783 {
13784 static struct sockaddr ac_aggr;
13785 if (sizeof ac_aggr.sa_len)
13786 return 0;
13787   ;
13788   return 0;
13789 }
13790 _ACEOF
13791 rm -f conftest.$ac_objext
13792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13793   (eval $ac_compile) 2>conftest.er1
13794   ac_status=$?
13795   grep -v '^ *+' conftest.er1 >conftest.err
13796   rm -f conftest.er1
13797   cat conftest.err >&5
13798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799   (exit $ac_status); } &&
13800          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13802   (eval $ac_try) 2>&5
13803   ac_status=$?
13804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805   (exit $ac_status); }; } &&
13806          { ac_try='test -s conftest.$ac_objext'
13807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13808   (eval $ac_try) 2>&5
13809   ac_status=$?
13810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811   (exit $ac_status); }; }; then
13812   ac_cv_member_struct_sockaddr_sa_len=yes
13813 else
13814   echo "$as_me: failed program was:" >&5
13815 sed 's/^/| /' conftest.$ac_ext >&5
13816
13817 ac_cv_member_struct_sockaddr_sa_len=no
13818 fi
13819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13820 fi
13821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13822 fi
13823 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
13824 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
13825 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
13826
13827 cat >>confdefs.h <<_ACEOF
13828 #define HAVE_SA_LEN 1
13829 _ACEOF
13830
13831 fi
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855 for ac_func in chflags getrusage llseek lseek64 open64 fstat64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl
13856 do
13857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13858 echo "$as_me:$LINENO: checking for $ac_func" >&5
13859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13860 if eval "test \"\${$as_ac_var+set}\" = set"; then
13861   echo $ECHO_N "(cached) $ECHO_C" >&6
13862 else
13863   cat >conftest.$ac_ext <<_ACEOF
13864 /* confdefs.h.  */
13865 _ACEOF
13866 cat confdefs.h >>conftest.$ac_ext
13867 cat >>conftest.$ac_ext <<_ACEOF
13868 /* end confdefs.h.  */
13869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13870    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13871 #define $ac_func innocuous_$ac_func
13872
13873 /* System header to define __stub macros and hopefully few prototypes,
13874     which can conflict with char $ac_func (); below.
13875     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13876     <limits.h> exists even on freestanding compilers.  */
13877
13878 #ifdef __STDC__
13879 # include <limits.h>
13880 #else
13881 # include <assert.h>
13882 #endif
13883
13884 #undef $ac_func
13885
13886 /* Override any gcc2 internal prototype to avoid an error.  */
13887 #ifdef __cplusplus
13888 extern "C"
13889 {
13890 #endif
13891 /* We use char because int might match the return type of a gcc2
13892    builtin and then its argument prototype would still apply.  */
13893 char $ac_func ();
13894 /* The GNU C library defines this for functions which it implements
13895     to always fail with ENOSYS.  Some functions are actually named
13896     something starting with __ and the normal name is an alias.  */
13897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13898 choke me
13899 #else
13900 char (*f) () = $ac_func;
13901 #endif
13902 #ifdef __cplusplus
13903 }
13904 #endif
13905
13906 int
13907 main ()
13908 {
13909 return f != $ac_func;
13910   ;
13911   return 0;
13912 }
13913 _ACEOF
13914 rm -f conftest.$ac_objext conftest$ac_exeext
13915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13916   (eval $ac_link) 2>conftest.er1
13917   ac_status=$?
13918   grep -v '^ *+' conftest.er1 >conftest.err
13919   rm -f conftest.er1
13920   cat conftest.err >&5
13921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922   (exit $ac_status); } &&
13923          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925   (eval $ac_try) 2>&5
13926   ac_status=$?
13927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928   (exit $ac_status); }; } &&
13929          { ac_try='test -s conftest$ac_exeext'
13930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13931   (eval $ac_try) 2>&5
13932   ac_status=$?
13933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934   (exit $ac_status); }; }; then
13935   eval "$as_ac_var=yes"
13936 else
13937   echo "$as_me: failed program was:" >&5
13938 sed 's/^/| /' conftest.$ac_ext >&5
13939
13940 eval "$as_ac_var=no"
13941 fi
13942 rm -f conftest.err conftest.$ac_objext \
13943       conftest$ac_exeext conftest.$ac_ext
13944 fi
13945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13946 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13947 if test `eval echo '${'$as_ac_var'}'` = yes; then
13948   cat >>confdefs.h <<_ACEOF
13949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13950 _ACEOF
13951
13952 fi
13953 done
13954
13955 SOCKET_LIB=''
13956 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13957 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
13958 if test "${ac_cv_lib_socket_socket+set}" = set; then
13959   echo $ECHO_N "(cached) $ECHO_C" >&6
13960 else
13961   ac_check_lib_save_LIBS=$LIBS
13962 LIBS="-lsocket  $LIBS"
13963 cat >conftest.$ac_ext <<_ACEOF
13964 /* confdefs.h.  */
13965 _ACEOF
13966 cat confdefs.h >>conftest.$ac_ext
13967 cat >>conftest.$ac_ext <<_ACEOF
13968 /* end confdefs.h.  */
13969
13970 /* Override any gcc2 internal prototype to avoid an error.  */
13971 #ifdef __cplusplus
13972 extern "C"
13973 #endif
13974 /* We use char because int might match the return type of a gcc2
13975    builtin and then its argument prototype would still apply.  */
13976 char socket ();
13977 int
13978 main ()
13979 {
13980 socket ();
13981   ;
13982   return 0;
13983 }
13984 _ACEOF
13985 rm -f conftest.$ac_objext conftest$ac_exeext
13986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13987   (eval $ac_link) 2>conftest.er1
13988   ac_status=$?
13989   grep -v '^ *+' conftest.er1 >conftest.err
13990   rm -f conftest.er1
13991   cat conftest.err >&5
13992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993   (exit $ac_status); } &&
13994          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13996   (eval $ac_try) 2>&5
13997   ac_status=$?
13998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999   (exit $ac_status); }; } &&
14000          { ac_try='test -s conftest$ac_exeext'
14001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14002   (eval $ac_try) 2>&5
14003   ac_status=$?
14004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005   (exit $ac_status); }; }; then
14006   ac_cv_lib_socket_socket=yes
14007 else
14008   echo "$as_me: failed program was:" >&5
14009 sed 's/^/| /' conftest.$ac_ext >&5
14010
14011 ac_cv_lib_socket_socket=no
14012 fi
14013 rm -f conftest.err conftest.$ac_objext \
14014       conftest$ac_exeext conftest.$ac_ext
14015 LIBS=$ac_check_lib_save_LIBS
14016 fi
14017 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14018 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
14019 if test $ac_cv_lib_socket_socket = yes; then
14020   SOCKET_LIB=-lsocket
14021 fi
14022
14023
14024 DLOPEN_LIB=''
14025 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14026 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14027 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14028   echo $ECHO_N "(cached) $ECHO_C" >&6
14029 else
14030   ac_check_lib_save_LIBS=$LIBS
14031 LIBS="-ldl  $LIBS"
14032 cat >conftest.$ac_ext <<_ACEOF
14033 /* confdefs.h.  */
14034 _ACEOF
14035 cat confdefs.h >>conftest.$ac_ext
14036 cat >>conftest.$ac_ext <<_ACEOF
14037 /* end confdefs.h.  */
14038
14039 /* Override any gcc2 internal prototype to avoid an error.  */
14040 #ifdef __cplusplus
14041 extern "C"
14042 #endif
14043 /* We use char because int might match the return type of a gcc2
14044    builtin and then its argument prototype would still apply.  */
14045 char dlopen ();
14046 int
14047 main ()
14048 {
14049 dlopen ();
14050   ;
14051   return 0;
14052 }
14053 _ACEOF
14054 rm -f conftest.$ac_objext conftest$ac_exeext
14055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14056   (eval $ac_link) 2>conftest.er1
14057   ac_status=$?
14058   grep -v '^ *+' conftest.er1 >conftest.err
14059   rm -f conftest.er1
14060   cat conftest.err >&5
14061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062   (exit $ac_status); } &&
14063          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14065   (eval $ac_try) 2>&5
14066   ac_status=$?
14067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068   (exit $ac_status); }; } &&
14069          { ac_try='test -s conftest$ac_exeext'
14070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071   (eval $ac_try) 2>&5
14072   ac_status=$?
14073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074   (exit $ac_status); }; }; then
14075   ac_cv_lib_dl_dlopen=yes
14076 else
14077   echo "$as_me: failed program was:" >&5
14078 sed 's/^/| /' conftest.$ac_ext >&5
14079
14080 ac_cv_lib_dl_dlopen=no
14081 fi
14082 rm -f conftest.err conftest.$ac_objext \
14083       conftest$ac_exeext conftest.$ac_ext
14084 LIBS=$ac_check_lib_save_LIBS
14085 fi
14086 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14087 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14088 if test $ac_cv_lib_dl_dlopen = yes; then
14089   DLOPEN_LIB=-ldl
14090 cat >>confdefs.h <<\_ACEOF
14091 #define HAVE_DLOPEN 1
14092 _ACEOF
14093
14094 fi
14095
14096
14097 echo "$as_me:$LINENO: checking for optreset" >&5
14098 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
14099 if test "${ac_cv_have_optreset+set}" = set; then
14100   echo $ECHO_N "(cached) $ECHO_C" >&6
14101 else
14102   cat >conftest.$ac_ext <<_ACEOF
14103 /* confdefs.h.  */
14104 _ACEOF
14105 cat confdefs.h >>conftest.$ac_ext
14106 cat >>conftest.$ac_ext <<_ACEOF
14107 /* end confdefs.h.  */
14108 #include <unistd.h>
14109
14110 _ACEOF
14111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14112   $EGREP "optreset" >/dev/null 2>&1; then
14113   ac_cv_have_optreset=yes
14114 else
14115   ac_cv_have_optreset=no
14116 fi
14117 rm -f conftest*
14118
14119 fi
14120 echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
14121 echo "${ECHO_T}$ac_cv_have_optreset" >&6
14122 if test $ac_cv_have_optreset = yes; then
14123   cat >>confdefs.h <<\_ACEOF
14124 #define HAVE_OPTRESET 1
14125 _ACEOF
14126
14127 fi
14128 case "$host_os" in
14129 linux*)
14130         cat >>confdefs.h <<\_ACEOF
14131 #define HAVE_EXT2_IOCTLS 1
14132 _ACEOF
14133
14134         ;;
14135 esac
14136 LINUX_CMT="#"
14137 CYGWIN_CMT="#"
14138 UNIX_CMT=
14139 case "$host_os" in
14140 linux*)
14141         LINUX_CMT=
14142         ;;
14143 cygwin)
14144         CYGWIN_CMT=
14145         UNIX_CMT="#"
14146         ;;
14147 esac
14148
14149
14150
14151 case "$host_os" in
14152 linux* | gnu* | k*bsd*-gnu)
14153         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14154                 root_prefix="";
14155                 echo "On $host_os systems, root_prefix defaults to ''"
14156         fi
14157         ;;
14158 esac
14159 case "$host_os" in
14160 linux* | gnu* | k*bsd*-gnu)
14161         if test "$prefix" = NONE ; then
14162                 prefix="/usr";
14163                 echo "On $host_os systems, prefix defaults to /usr"
14164                 if test "$mandir" = '${prefix}/man' ; then
14165                         echo "...and mandir defaults to /usr/share/man"
14166                         mandir=/usr/share/man
14167                 fi
14168         fi
14169 ;;
14170 esac
14171 if test "$root_prefix" = NONE ; then
14172         if test "$prefix" = NONE ; then
14173                 root_prefix="$ac_default_prefix"
14174         else
14175                 root_prefix="$prefix"
14176         fi
14177         root_bindir=$bindir
14178         root_sbindir=$sbindir
14179         root_libdir=$libdir
14180         root_sysconfdir=$sysconfdir
14181 else
14182         root_bindir='${root_prefix}/bin'
14183         root_sbindir='${root_prefix}/sbin'
14184         root_libdir='${root_prefix}/lib'
14185         root_sysconfdir='${root_prefix}/etc'
14186 fi
14187
14188
14189
14190
14191
14192 echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
14193 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6
14194 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
14195   echo $ECHO_N "(cached) $ECHO_C" >&6
14196 else
14197   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
14198 cat >conftest.$ac_ext <<_ACEOF
14199 /* confdefs.h.  */
14200 _ACEOF
14201 cat confdefs.h >>conftest.$ac_ext
14202 cat >>conftest.$ac_ext <<_ACEOF
14203 /* end confdefs.h.  */
14204 #include <stdio.h>
14205 int
14206 main ()
14207 {
14208 fflush(stdout);
14209   ;
14210   return 0;
14211 }
14212 _ACEOF
14213 rm -f conftest.$ac_objext conftest$ac_exeext
14214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14215   (eval $ac_link) 2>conftest.er1
14216   ac_status=$?
14217   grep -v '^ *+' conftest.er1 >conftest.err
14218   rm -f conftest.er1
14219   cat conftest.err >&5
14220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221   (exit $ac_status); } &&
14222          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14224   (eval $ac_try) 2>&5
14225   ac_status=$?
14226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227   (exit $ac_status); }; } &&
14228          { ac_try='test -s conftest$ac_exeext'
14229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14230   (eval $ac_try) 2>&5
14231   ac_status=$?
14232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233   (exit $ac_status); }; }; then
14234   ac_cv_e2fsprogs_use_static=yes
14235 else
14236   echo "$as_me: failed program was:" >&5
14237 sed 's/^/| /' conftest.$ac_ext >&5
14238
14239 ac_cv_e2fsprogs_use_static=no
14240 fi
14241 rm -f conftest.err conftest.$ac_objext \
14242       conftest$ac_exeext conftest.$ac_ext
14243 LDFLAGS=$SAVE_LDFLAGS
14244 fi
14245
14246 case "$host_os" in
14247 solaris2.*)
14248         ac_cv_e2fsprogs_use_static=no
14249 ;;
14250 esac
14251 echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
14252 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6
14253 LDFLAG_STATIC=
14254 if test $ac_cv_e2fsprogs_use_static = yes; then
14255         LDFLAG_STATIC=-static
14256 fi
14257
14258 case "$host_os" in
14259 darwin*)
14260         echo "Using Apple Darwin / GNU libintl workaround"
14261         cat >>confdefs.h <<\_ACEOF
14262 #define _INTL_REDIRECT_MACROS 1
14263 _ACEOF
14264
14265         ;;
14266 esac
14267 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
14268 ET_DIR=`cd ${srcdir}/lib/et; pwd`
14269
14270
14271 if test "$cross_compiling" = yes ; then
14272   DO_TEST_SUITE=
14273 else
14274   DO_TEST_SUITE=check
14275 fi
14276
14277 INTL_FLAGS=
14278 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14279         INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
14280 fi
14281
14282 if test $cross_compiling = no; then
14283    BUILD_CFLAGS="$CFLAGS"
14284    BUILD_LDFLAGS="$LDFLAGS"
14285 else
14286    BUILD_CFLAGS=
14287    BUILD_LDFLAGS=
14288 fi
14289
14290
14291 test -d lib || mkdir lib
14292 test -d include || mkdir include
14293 test -d include/linux || mkdir include/linux
14294 test -d include/asm || mkdir include/asm
14295 for i in MCONFIG Makefile e2fsprogs.spec \
14296         util/Makefile util/subst.conf util/gen-tarball \
14297         lib/et/Makefile lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile \
14298         lib/uuid/Makefile lib/uuid/uuid_types.h \
14299         lib/blkid/Makefile lib/blkid/blkid_types.h \
14300         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
14301         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
14302         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
14303         debugfs/Makefile tests/Makefile tests/progs/Makefile \
14304         resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
14305         if test -d `dirname ${srcdir}/$i` ; then
14306                 outlist="$outlist $i"
14307         fi
14308 done
14309           ac_config_files="$ac_config_files $outlist"
14310 cat >confcache <<\_ACEOF
14311 # This file is a shell script that caches the results of configure
14312 # tests run on this system so they can be shared between configure
14313 # scripts and configure runs, see configure's option --config-cache.
14314 # It is not useful on other systems.  If it contains results you don't
14315 # want to keep, you may remove or edit it.
14316 #
14317 # config.status only pays attention to the cache file if you give it
14318 # the --recheck option to rerun configure.
14319 #
14320 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14321 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14322 # following values.
14323
14324 _ACEOF
14325
14326 # The following way of writing the cache mishandles newlines in values,
14327 # but we know of no workaround that is simple, portable, and efficient.
14328 # So, don't put newlines in cache variables' values.
14329 # Ultrix sh set writes to stderr and can't be redirected directly,
14330 # and sets the high bit in the cache file unless we assign to the vars.
14331 {
14332   (set) 2>&1 |
14333     case `(ac_space=' '; set | grep ac_space) 2>&1` in
14334     *ac_space=\ *)
14335       # `set' does not quote correctly, so add quotes (double-quote
14336       # substitution turns \\\\ into \\, and sed turns \\ into \).
14337       sed -n \
14338         "s/'/'\\\\''/g;
14339           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14340       ;;
14341     *)
14342       # `set' quotes correctly as required by POSIX, so do not add quotes.
14343       sed -n \
14344         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14345       ;;
14346     esac;
14347 } |
14348   sed '
14349      t clear
14350      : clear
14351      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14352      t end
14353      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14354      : end' >>confcache
14355 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14356   if test -w $cache_file; then
14357     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14358     cat confcache >$cache_file
14359   else
14360     echo "not updating unwritable cache $cache_file"
14361   fi
14362 fi
14363 rm -f confcache
14364
14365 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14366 # Let make expand exec_prefix.
14367 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14368
14369 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14370 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14371 # trailing colons and then remove the whole line if VPATH becomes empty
14372 # (actually we leave an empty line to preserve line numbers).
14373 if test "x$srcdir" = x.; then
14374   ac_vpsub='/^[  ]*VPATH[        ]*=/{
14375 s/:*\$(srcdir):*/:/;
14376 s/:*\${srcdir}:*/:/;
14377 s/:*@srcdir@:*/:/;
14378 s/^\([^=]*=[     ]*\):*/\1/;
14379 s/:*$//;
14380 s/^[^=]*=[       ]*$//;
14381 }'
14382 fi
14383
14384 # Transform confdefs.h into DEFS.
14385 # Protect against shell expansion while executing Makefile rules.
14386 # Protect against Makefile macro expansion.
14387 #
14388 # If the first sed substitution is executed (which looks for macros that
14389 # take arguments), then we branch to the quote section.  Otherwise,
14390 # look for a macro that doesn't take arguments.
14391 cat >confdef2opt.sed <<\_ACEOF
14392 t clear
14393 : clear
14394 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
14395 t quote
14396 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
14397 t quote
14398 d
14399 : quote
14400 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
14401 s,\[,\\&,g
14402 s,\],\\&,g
14403 s,\$,$$,g
14404 p
14405 _ACEOF
14406 # We use echo to avoid assuming a particular line-breaking character.
14407 # The extra dot is to prevent the shell from consuming trailing
14408 # line-breaks from the sub-command output.  A line-break within
14409 # single-quotes doesn't work because, if this script is created in a
14410 # platform that uses two characters for line-breaks (e.g., DOS), tr
14411 # would break.
14412 ac_LF_and_DOT=`echo; echo .`
14413 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
14414 rm -f confdef2opt.sed
14415
14416
14417 ac_libobjs=
14418 ac_ltlibobjs=
14419 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14420   # 1. Remove the extension, and $U if already installed.
14421   ac_i=`echo "$ac_i" |
14422          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14423   # 2. Add them.
14424   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14425   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14426 done
14427 LIBOBJS=$ac_libobjs
14428
14429 LTLIBOBJS=$ac_ltlibobjs
14430
14431
14432
14433 : ${CONFIG_STATUS=./config.status}
14434 ac_clean_files_save=$ac_clean_files
14435 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14436 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14437 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14438 cat >$CONFIG_STATUS <<_ACEOF
14439 #! $SHELL
14440 # Generated by $as_me.
14441 # Run this file to recreate the current configuration.
14442 # Compiler output produced by configure, useful for debugging
14443 # configure, is in config.log if it exists.
14444
14445 debug=false
14446 ac_cs_recheck=false
14447 ac_cs_silent=false
14448 SHELL=\${CONFIG_SHELL-$SHELL}
14449 _ACEOF
14450
14451 cat >>$CONFIG_STATUS <<\_ACEOF
14452 ## --------------------- ##
14453 ## M4sh Initialization.  ##
14454 ## --------------------- ##
14455
14456 # Be Bourne compatible
14457 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14458   emulate sh
14459   NULLCMD=:
14460   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14461   # is contrary to our usage.  Disable this feature.
14462   alias -g '${1+"$@"}'='"$@"'
14463 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14464   set -o posix
14465 fi
14466 DUALCASE=1; export DUALCASE # for MKS sh
14467
14468 # Support unset when possible.
14469 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14470   as_unset=unset
14471 else
14472   as_unset=false
14473 fi
14474
14475
14476 # Work around bugs in pre-3.0 UWIN ksh.
14477 $as_unset ENV MAIL MAILPATH
14478 PS1='$ '
14479 PS2='> '
14480 PS4='+ '
14481
14482 # NLS nuisances.
14483 for as_var in \
14484   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14485   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14486   LC_TELEPHONE LC_TIME
14487 do
14488   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14489     eval $as_var=C; export $as_var
14490   else
14491     $as_unset $as_var
14492   fi
14493 done
14494
14495 # Required to use basename.
14496 if expr a : '\(a\)' >/dev/null 2>&1; then
14497   as_expr=expr
14498 else
14499   as_expr=false
14500 fi
14501
14502 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14503   as_basename=basename
14504 else
14505   as_basename=false
14506 fi
14507
14508
14509 # Name of the executable.
14510 as_me=`$as_basename "$0" ||
14511 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14512          X"$0" : 'X\(//\)$' \| \
14513          X"$0" : 'X\(/\)$' \| \
14514          .     : '\(.\)' 2>/dev/null ||
14515 echo X/"$0" |
14516     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14517           /^X\/\(\/\/\)$/{ s//\1/; q; }
14518           /^X\/\(\/\).*/{ s//\1/; q; }
14519           s/.*/./; q'`
14520
14521
14522 # PATH needs CR, and LINENO needs CR and PATH.
14523 # Avoid depending upon Character Ranges.
14524 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14525 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14526 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14527 as_cr_digits='0123456789'
14528 as_cr_alnum=$as_cr_Letters$as_cr_digits
14529
14530 # The user is always right.
14531 if test "${PATH_SEPARATOR+set}" != set; then
14532   echo "#! /bin/sh" >conf$$.sh
14533   echo  "exit 0"   >>conf$$.sh
14534   chmod +x conf$$.sh
14535   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14536     PATH_SEPARATOR=';'
14537   else
14538     PATH_SEPARATOR=:
14539   fi
14540   rm -f conf$$.sh
14541 fi
14542
14543
14544   as_lineno_1=$LINENO
14545   as_lineno_2=$LINENO
14546   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14547   test "x$as_lineno_1" != "x$as_lineno_2" &&
14548   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
14549   # Find who we are.  Look in the path if we contain no path at all
14550   # relative or not.
14551   case $0 in
14552     *[\\/]* ) as_myself=$0 ;;
14553     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14554 for as_dir in $PATH
14555 do
14556   IFS=$as_save_IFS
14557   test -z "$as_dir" && as_dir=.
14558   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14559 done
14560
14561        ;;
14562   esac
14563   # We did not find ourselves, most probably we were run as `sh COMMAND'
14564   # in which case we are not to be found in the path.
14565   if test "x$as_myself" = x; then
14566     as_myself=$0
14567   fi
14568   if test ! -f "$as_myself"; then
14569     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14570 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14571    { (exit 1); exit 1; }; }
14572   fi
14573   case $CONFIG_SHELL in
14574   '')
14575     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14576 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14577 do
14578   IFS=$as_save_IFS
14579   test -z "$as_dir" && as_dir=.
14580   for as_base in sh bash ksh sh5; do
14581          case $as_dir in
14582          /*)
14583            if ("$as_dir/$as_base" -c '
14584   as_lineno_1=$LINENO
14585   as_lineno_2=$LINENO
14586   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14587   test "x$as_lineno_1" != "x$as_lineno_2" &&
14588   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
14589              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14590              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14591              CONFIG_SHELL=$as_dir/$as_base
14592              export CONFIG_SHELL
14593              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14594            fi;;
14595          esac
14596        done
14597 done
14598 ;;
14599   esac
14600
14601   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14602   # uniformly replaced by the line number.  The first 'sed' inserts a
14603   # line-number line before each line; the second 'sed' does the real
14604   # work.  The second script uses 'N' to pair each line-number line
14605   # with the numbered line, and appends trailing '-' during
14606   # substitution so that $LINENO is not a special case at line end.
14607   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14608   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
14609   sed '=' <$as_myself |
14610     sed '
14611       N
14612       s,$,-,
14613       : loop
14614       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14615       t loop
14616       s,-$,,
14617       s,^['$as_cr_digits']*\n,,
14618     ' >$as_me.lineno &&
14619   chmod +x $as_me.lineno ||
14620     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14621 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14622    { (exit 1); exit 1; }; }
14623
14624   # Don't try to exec as it changes $[0], causing all sort of problems
14625   # (the dirname of $[0] is not the place where we might find the
14626   # original and so on.  Autoconf is especially sensible to this).
14627   . ./$as_me.lineno
14628   # Exit status is that of the last command.
14629   exit
14630 }
14631
14632
14633 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14634   *c*,-n*) ECHO_N= ECHO_C='
14635 ' ECHO_T='      ' ;;
14636   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14637   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
14638 esac
14639
14640 if expr a : '\(a\)' >/dev/null 2>&1; then
14641   as_expr=expr
14642 else
14643   as_expr=false
14644 fi
14645
14646 rm -f conf$$ conf$$.exe conf$$.file
14647 echo >conf$$.file
14648 if ln -s conf$$.file conf$$ 2>/dev/null; then
14649   # We could just check for DJGPP; but this test a) works b) is more generic
14650   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14651   if test -f conf$$.exe; then
14652     # Don't use ln at all; we don't have any links
14653     as_ln_s='cp -p'
14654   else
14655     as_ln_s='ln -s'
14656   fi
14657 elif ln conf$$.file conf$$ 2>/dev/null; then
14658   as_ln_s=ln
14659 else
14660   as_ln_s='cp -p'
14661 fi
14662 rm -f conf$$ conf$$.exe conf$$.file
14663
14664 if mkdir -p . 2>/dev/null; then
14665   as_mkdir_p=:
14666 else
14667   test -d ./-p && rmdir ./-p
14668   as_mkdir_p=false
14669 fi
14670
14671 as_executable_p="test -f"
14672
14673 # Sed expression to map a string onto a valid CPP name.
14674 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14675
14676 # Sed expression to map a string onto a valid variable name.
14677 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14678
14679
14680 # IFS
14681 # We need space, tab and new line, in precisely that order.
14682 as_nl='
14683 '
14684 IFS="   $as_nl"
14685
14686 # CDPATH.
14687 $as_unset CDPATH
14688
14689 exec 6>&1
14690
14691 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14692 # report actual input values of CONFIG_FILES etc. instead of their
14693 # values after options handling.  Logging --version etc. is OK.
14694 exec 5>>config.log
14695 {
14696   echo
14697   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14698 ## Running $as_me. ##
14699 _ASBOX
14700 } >&5
14701 cat >&5 <<_CSEOF
14702
14703 This file was extended by $as_me, which was
14704 generated by GNU Autoconf 2.59.  Invocation command line was
14705
14706   CONFIG_FILES    = $CONFIG_FILES
14707   CONFIG_HEADERS  = $CONFIG_HEADERS
14708   CONFIG_LINKS    = $CONFIG_LINKS
14709   CONFIG_COMMANDS = $CONFIG_COMMANDS
14710   $ $0 $@
14711
14712 _CSEOF
14713 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14714 echo >&5
14715 _ACEOF
14716
14717 # Files that config.status was made for.
14718 if test -n "$ac_config_files"; then
14719   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14720 fi
14721
14722 if test -n "$ac_config_headers"; then
14723   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14724 fi
14725
14726 if test -n "$ac_config_links"; then
14727   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14728 fi
14729
14730 if test -n "$ac_config_commands"; then
14731   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14732 fi
14733
14734 cat >>$CONFIG_STATUS <<\_ACEOF
14735
14736 ac_cs_usage="\
14737 \`$as_me' instantiates files from templates according to the
14738 current configuration.
14739
14740 Usage: $0 [OPTIONS] [FILE]...
14741
14742   -h, --help       print this help, then exit
14743   -V, --version    print version number, then exit
14744   -q, --quiet      do not print progress messages
14745   -d, --debug      don't remove temporary files
14746       --recheck    update $as_me by reconfiguring in the same conditions
14747   --file=FILE[:TEMPLATE]
14748                    instantiate the configuration file FILE
14749
14750 Configuration files:
14751 $config_files
14752
14753 Configuration commands:
14754 $config_commands
14755
14756 Report bugs to <bug-autoconf@gnu.org>."
14757 _ACEOF
14758
14759 cat >>$CONFIG_STATUS <<_ACEOF
14760 ac_cs_version="\\
14761 config.status
14762 configured by $0, generated by GNU Autoconf 2.59,
14763   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14764
14765 Copyright (C) 2003 Free Software Foundation, Inc.
14766 This config.status script is free software; the Free Software Foundation
14767 gives unlimited permission to copy, distribute and modify it."
14768 srcdir=$srcdir
14769 INSTALL="$INSTALL"
14770 _ACEOF
14771
14772 cat >>$CONFIG_STATUS <<\_ACEOF
14773 # If no file are specified by the user, then we need to provide default
14774 # value.  By we need to know if files were specified by the user.
14775 ac_need_defaults=:
14776 while test $# != 0
14777 do
14778   case $1 in
14779   --*=*)
14780     ac_option=`expr "x$1" : 'x\([^=]*\)='`
14781     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14782     ac_shift=:
14783     ;;
14784   -*)
14785     ac_option=$1
14786     ac_optarg=$2
14787     ac_shift=shift
14788     ;;
14789   *) # This is not an option, so the user has probably given explicit
14790      # arguments.
14791      ac_option=$1
14792      ac_need_defaults=false;;
14793   esac
14794
14795   case $ac_option in
14796   # Handling of the options.
14797 _ACEOF
14798 cat >>$CONFIG_STATUS <<\_ACEOF
14799   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14800     ac_cs_recheck=: ;;
14801   --version | --vers* | -V )
14802     echo "$ac_cs_version"; exit 0 ;;
14803   --he | --h)
14804     # Conflict between --help and --header
14805     { { echo "$as_me:$LINENO: error: ambiguous option: $1
14806 Try \`$0 --help' for more information." >&5
14807 echo "$as_me: error: ambiguous option: $1
14808 Try \`$0 --help' for more information." >&2;}
14809    { (exit 1); exit 1; }; };;
14810   --help | --hel | -h )
14811     echo "$ac_cs_usage"; exit 0 ;;
14812   --debug | --d* | -d )
14813     debug=: ;;
14814   --file | --fil | --fi | --f )
14815     $ac_shift
14816     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14817     ac_need_defaults=false;;
14818   --header | --heade | --head | --hea )
14819     $ac_shift
14820     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14821     ac_need_defaults=false;;
14822   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14823   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14824     ac_cs_silent=: ;;
14825
14826   # This is an error.
14827   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14828 Try \`$0 --help' for more information." >&5
14829 echo "$as_me: error: unrecognized option: $1
14830 Try \`$0 --help' for more information." >&2;}
14831    { (exit 1); exit 1; }; } ;;
14832
14833   *) ac_config_targets="$ac_config_targets $1" ;;
14834
14835   esac
14836   shift
14837 done
14838
14839 ac_configure_extra_args=
14840
14841 if $ac_cs_silent; then
14842   exec 6>/dev/null
14843   ac_configure_extra_args="$ac_configure_extra_args --silent"
14844 fi
14845
14846 _ACEOF
14847 cat >>$CONFIG_STATUS <<_ACEOF
14848 if \$ac_cs_recheck; then
14849   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14850   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14851 fi
14852
14853 _ACEOF
14854
14855 cat >>$CONFIG_STATUS <<_ACEOF
14856 #
14857 # INIT-COMMANDS section.
14858 #
14859
14860 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14861     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14862     # from automake.
14863     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14864     # Capture the value of LINGUAS because we need it to compute CATALOGS.
14865     LINGUAS="${LINGUAS-%UNSET%}"
14866
14867
14868 _ACEOF
14869
14870
14871
14872 cat >>$CONFIG_STATUS <<\_ACEOF
14873 for ac_config_target in $ac_config_targets
14874 do
14875   case "$ac_config_target" in
14876   # Handling of arguments.
14877   "$outlist" ) CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14878   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14879   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14880 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14881    { (exit 1); exit 1; }; };;
14882   esac
14883 done
14884
14885 # If the user did not use the arguments to specify the items to instantiate,
14886 # then the envvar interface is used.  Set only those that are not.
14887 # We use the long form for the default assignment because of an extremely
14888 # bizarre bug on SunOS 4.1.3.
14889 if $ac_need_defaults; then
14890   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14891   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14892 fi
14893
14894 # Have a temporary directory for convenience.  Make it in the build tree
14895 # simply because there is no reason to put it here, and in addition,
14896 # creating and moving files from /tmp can sometimes cause problems.
14897 # Create a temporary directory, and hook for its removal unless debugging.
14898 $debug ||
14899 {
14900   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14901   trap '{ (exit 1); exit 1; }' 1 2 13 15
14902 }
14903
14904 # Create a (secure) tmp directory for tmp files.
14905
14906 {
14907   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14908   test -n "$tmp" && test -d "$tmp"
14909 }  ||
14910 {
14911   tmp=./confstat$$-$RANDOM
14912   (umask 077 && mkdir $tmp)
14913 } ||
14914 {
14915    echo "$me: cannot create a temporary directory in ." >&2
14916    { (exit 1); exit 1; }
14917 }
14918
14919 _ACEOF
14920
14921 cat >>$CONFIG_STATUS <<_ACEOF
14922
14923 #
14924 # CONFIG_FILES section.
14925 #
14926
14927 # No need to generate the scripts if there are no CONFIG_FILES.
14928 # This happens for instance when ./config.status config.h
14929 if test -n "\$CONFIG_FILES"; then
14930   # Protect against being on the right side of a sed subst in config.status.
14931   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14932    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14933 s,@SHELL@,$SHELL,;t t
14934 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14935 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14936 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14937 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14938 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14939 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14940 s,@exec_prefix@,$exec_prefix,;t t
14941 s,@prefix@,$prefix,;t t
14942 s,@program_transform_name@,$program_transform_name,;t t
14943 s,@bindir@,$bindir,;t t
14944 s,@sbindir@,$sbindir,;t t
14945 s,@libexecdir@,$libexecdir,;t t
14946 s,@datadir@,$datadir,;t t
14947 s,@sysconfdir@,$sysconfdir,;t t
14948 s,@sharedstatedir@,$sharedstatedir,;t t
14949 s,@localstatedir@,$localstatedir,;t t
14950 s,@libdir@,$libdir,;t t
14951 s,@includedir@,$includedir,;t t
14952 s,@oldincludedir@,$oldincludedir,;t t
14953 s,@infodir@,$infodir,;t t
14954 s,@mandir@,$mandir,;t t
14955 s,@build_alias@,$build_alias,;t t
14956 s,@host_alias@,$host_alias,;t t
14957 s,@target_alias@,$target_alias,;t t
14958 s,@DEFS@,$DEFS,;t t
14959 s,@ECHO_C@,$ECHO_C,;t t
14960 s,@ECHO_N@,$ECHO_N,;t t
14961 s,@ECHO_T@,$ECHO_T,;t t
14962 s,@LIBS@,$LIBS,;t t
14963 s,@E2FSPROGS_YEAR@,$E2FSPROGS_YEAR,;t t
14964 s,@E2FSPROGS_MONTH@,$E2FSPROGS_MONTH,;t t
14965 s,@E2FSPROGS_DAY@,$E2FSPROGS_DAY,;t t
14966 s,@E2FSPROGS_VERSION@,$E2FSPROGS_VERSION,;t t
14967 s,@build@,$build,;t t
14968 s,@build_cpu@,$build_cpu,;t t
14969 s,@build_vendor@,$build_vendor,;t t
14970 s,@build_os@,$build_os,;t t
14971 s,@host@,$host,;t t
14972 s,@host_cpu@,$host_cpu,;t t
14973 s,@host_vendor@,$host_vendor,;t t
14974 s,@host_os@,$host_os,;t t
14975 s,@CC@,$CC,;t t
14976 s,@CFLAGS@,$CFLAGS,;t t
14977 s,@LDFLAGS@,$LDFLAGS,;t t
14978 s,@CPPFLAGS@,$CPPFLAGS,;t t
14979 s,@ac_ct_CC@,$ac_ct_CC,;t t
14980 s,@EXEEXT@,$EXEEXT,;t t
14981 s,@OBJEXT@,$OBJEXT,;t t
14982 s,@LD@,$LD,;t t
14983 s,@CPP@,$CPP,;t t
14984 s,@EGREP@,$EGREP,;t t
14985 s,@LINUX_INCLUDE@,$LINUX_INCLUDE,;t t
14986 s,@MAINTAINER_CMT@,$MAINTAINER_CMT,;t t
14987 s,@HTREE_CMT@,$HTREE_CMT,;t t
14988 s,@ELF_CMT@,$ELF_CMT,;t t
14989 s,@BSDLIB_CMT@,$BSDLIB_CMT,;t t
14990 s,@PROFILE_CMT@,$PROFILE_CMT,;t t
14991 s,@CHECKER_CMT@,$CHECKER_CMT,;t t
14992 s,@LIB_EXT@,$LIB_EXT,;t t
14993 s,@STATIC_LIB_EXT@,$STATIC_LIB_EXT,;t t
14994 s,@PROFILED_LIB_EXT@,$PROFILED_LIB_EXT,;t t
14995 s,@SWAPFS_CMT@,$SWAPFS_CMT,;t t
14996 s,@DEBUGFS_CMT@,$DEBUGFS_CMT,;t t
14997 s,@IMAGER_CMT@,$IMAGER_CMT,;t t
14998 s,@RESIZER_CMT@,$RESIZER_CMT,;t t
14999 s,@E2FSCK_TYPE@,$E2FSCK_TYPE,;t t
15000 s,@FSCK_PROG@,$FSCK_PROG,;t t
15001 s,@FSCK_MAN@,$FSCK_MAN,;t t
15002 s,@E2INITRD_PROG@,$E2INITRD_PROG,;t t
15003 s,@E2INITRD_MAN@,$E2INITRD_MAN,;t t
15004 s,@DEVMAPPER_REQ@,$DEVMAPPER_REQ,;t t
15005 s,@DEVMAPPER_PC_LIBS@,$DEVMAPPER_PC_LIBS,;t t
15006 s,@DEVMAPPER_LIBS@,$DEVMAPPER_LIBS,;t t
15007 s,@STATIC_DEVMAPPER_LIBS@,$STATIC_DEVMAPPER_LIBS,;t t
15008 s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
15009 s,@PACKAGE@,$PACKAGE,;t t
15010 s,@VERSION@,$VERSION,;t t
15011 s,@SET_MAKE@,$SET_MAKE,;t t
15012 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15013 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15014 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15015 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15016 s,@USE_NLS@,$USE_NLS,;t t
15017 s,@MSGFMT@,$MSGFMT,;t t
15018 s,@GMSGFMT@,$GMSGFMT,;t t
15019 s,@XGETTEXT@,$XGETTEXT,;t t
15020 s,@MSGMERGE@,$MSGMERGE,;t t
15021 s,@RANLIB@,$RANLIB,;t t
15022 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15023 s,@ALLOCA@,$ALLOCA,;t t
15024 s,@GLIBC21@,$GLIBC21,;t t
15025 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
15026 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
15027 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
15028 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
15029 s,@LIBICONV@,$LIBICONV,;t t
15030 s,@LTLIBICONV@,$LTLIBICONV,;t t
15031 s,@INTLBISON@,$INTLBISON,;t t
15032 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
15033 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
15034 s,@CATOBJEXT@,$CATOBJEXT,;t t
15035 s,@DATADIRNAME@,$DATADIRNAME,;t t
15036 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15037 s,@GENCAT@,$GENCAT,;t t
15038 s,@INTLOBJS@,$INTLOBJS,;t t
15039 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
15040 s,@INTLLIBS@,$INTLLIBS,;t t
15041 s,@LIBINTL@,$LIBINTL,;t t
15042 s,@LTLIBINTL@,$LTLIBINTL,;t t
15043 s,@POSUB@,$POSUB,;t t
15044 s,@BINARY_TYPE@,$BINARY_TYPE,;t t
15045 s,@LN@,$LN,;t t
15046 s,@LN_S@,$LN_S,;t t
15047 s,@MV@,$MV,;t t
15048 s,@CP@,$CP,;t t
15049 s,@RM@,$RM,;t t
15050 s,@CHMOD@,$CHMOD,;t t
15051 s,@AWK@,$AWK,;t t
15052 s,@SED@,$SED,;t t
15053 s,@PERL@,$PERL,;t t
15054 s,@LDCONFIG@,$LDCONFIG,;t t
15055 s,@AR@,$AR,;t t
15056 s,@ac_ct_AR@,$ac_ct_AR,;t t
15057 s,@STRIP@,$STRIP,;t t
15058 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15059 s,@BUILD_CC@,$BUILD_CC,;t t
15060 s,@SIZEOF_SHORT@,$SIZEOF_SHORT,;t t
15061 s,@SIZEOF_INT@,$SIZEOF_INT,;t t
15062 s,@SIZEOF_LONG@,$SIZEOF_LONG,;t t
15063 s,@SIZEOF_LONG_LONG@,$SIZEOF_LONG_LONG,;t t
15064 s,@SOCKET_LIB@,$SOCKET_LIB,;t t
15065 s,@DLOPEN_LIB@,$DLOPEN_LIB,;t t
15066 s,@LINUX_CMT@,$LINUX_CMT,;t t
15067 s,@CYGWIN_CMT@,$CYGWIN_CMT,;t t
15068 s,@UNIX_CMT@,$UNIX_CMT,;t t
15069 s,@root_prefix@,$root_prefix,;t t
15070 s,@root_bindir@,$root_bindir,;t t
15071 s,@root_sbindir@,$root_sbindir,;t t
15072 s,@root_libdir@,$root_libdir,;t t
15073 s,@root_sysconfdir@,$root_sysconfdir,;t t
15074 s,@LDFLAG_STATIC@,$LDFLAG_STATIC,;t t
15075 s,@SS_DIR@,$SS_DIR,;t t
15076 s,@ET_DIR@,$ET_DIR,;t t
15077 s,@DO_TEST_SUITE@,$DO_TEST_SUITE,;t t
15078 s,@INTL_FLAGS@,$INTL_FLAGS,;t t
15079 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
15080 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
15081 s,@LIBOBJS@,$LIBOBJS,;t t
15082 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15083 /@MCONFIG@/r $MCONFIG
15084 s,@MCONFIG@,,;t t
15085 /@MAKEFILE_ELF@/r $MAKEFILE_ELF
15086 s,@MAKEFILE_ELF@,,;t t
15087 /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
15088 s,@MAKEFILE_BSDLIB@,,;t t
15089 /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
15090 s,@MAKEFILE_PROFILE@,,;t t
15091 /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
15092 s,@MAKEFILE_CHECKER@,,;t t
15093 /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
15094 s,@MAKEFILE_LIBRARY@,,;t t
15095 CEOF
15096
15097 _ACEOF
15098
15099   cat >>$CONFIG_STATUS <<\_ACEOF
15100   # Split the substitutions into bite-sized pieces for seds with
15101   # small command number limits, like on Digital OSF/1 and HP-UX.
15102   ac_max_sed_lines=48
15103   ac_sed_frag=1 # Number of current file.
15104   ac_beg=1 # First line for current file.
15105   ac_end=$ac_max_sed_lines # Line after last line for current file.
15106   ac_more_lines=:
15107   ac_sed_cmds=
15108   while $ac_more_lines; do
15109     if test $ac_beg -gt 1; then
15110       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15111     else
15112       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15113     fi
15114     if test ! -s $tmp/subs.frag; then
15115       ac_more_lines=false
15116     else
15117       # The purpose of the label and of the branching condition is to
15118       # speed up the sed processing (if there are no `@' at all, there
15119       # is no need to browse any of the substitutions).
15120       # These are the two extra sed commands mentioned above.
15121       (echo ':t
15122   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15123       if test -z "$ac_sed_cmds"; then
15124         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15125       else
15126         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15127       fi
15128       ac_sed_frag=`expr $ac_sed_frag + 1`
15129       ac_beg=$ac_end
15130       ac_end=`expr $ac_end + $ac_max_sed_lines`
15131     fi
15132   done
15133   if test -z "$ac_sed_cmds"; then
15134     ac_sed_cmds=cat
15135   fi
15136 fi # test -n "$CONFIG_FILES"
15137
15138 _ACEOF
15139 cat >>$CONFIG_STATUS <<\_ACEOF
15140 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15141   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15142   case $ac_file in
15143   - | *:- | *:-:* ) # input from stdin
15144         cat >$tmp/stdin
15145         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15146         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15147   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15148         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15149   * )   ac_file_in=$ac_file.in ;;
15150   esac
15151
15152   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15153   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15154 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15155          X"$ac_file" : 'X\(//\)[^/]' \| \
15156          X"$ac_file" : 'X\(//\)$' \| \
15157          X"$ac_file" : 'X\(/\)' \| \
15158          .     : '\(.\)' 2>/dev/null ||
15159 echo X"$ac_file" |
15160     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15161           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15162           /^X\(\/\/\)$/{ s//\1/; q; }
15163           /^X\(\/\).*/{ s//\1/; q; }
15164           s/.*/./; q'`
15165   { if $as_mkdir_p; then
15166     mkdir -p "$ac_dir"
15167   else
15168     as_dir="$ac_dir"
15169     as_dirs=
15170     while test ! -d "$as_dir"; do
15171       as_dirs="$as_dir $as_dirs"
15172       as_dir=`(dirname "$as_dir") 2>/dev/null ||
15173 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15174          X"$as_dir" : 'X\(//\)[^/]' \| \
15175          X"$as_dir" : 'X\(//\)$' \| \
15176          X"$as_dir" : 'X\(/\)' \| \
15177          .     : '\(.\)' 2>/dev/null ||
15178 echo X"$as_dir" |
15179     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15180           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15181           /^X\(\/\/\)$/{ s//\1/; q; }
15182           /^X\(\/\).*/{ s//\1/; q; }
15183           s/.*/./; q'`
15184     done
15185     test ! -n "$as_dirs" || mkdir $as_dirs
15186   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15187 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15188    { (exit 1); exit 1; }; }; }
15189
15190   ac_builddir=.
15191
15192 if test "$ac_dir" != .; then
15193   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15194   # A "../" for each directory in $ac_dir_suffix.
15195   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15196 else
15197   ac_dir_suffix= ac_top_builddir=
15198 fi
15199
15200 case $srcdir in
15201   .)  # No --srcdir option.  We are building in place.
15202     ac_srcdir=.
15203     if test -z "$ac_top_builddir"; then
15204        ac_top_srcdir=.
15205     else
15206        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15207     fi ;;
15208   [\\/]* | ?:[\\/]* )  # Absolute path.
15209     ac_srcdir=$srcdir$ac_dir_suffix;
15210     ac_top_srcdir=$srcdir ;;
15211   *) # Relative path.
15212     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15213     ac_top_srcdir=$ac_top_builddir$srcdir ;;
15214 esac
15215
15216 # Do not use `cd foo && pwd` to compute absolute paths, because
15217 # the directories may not exist.
15218 case `pwd` in
15219 .) ac_abs_builddir="$ac_dir";;
15220 *)
15221   case "$ac_dir" in
15222   .) ac_abs_builddir=`pwd`;;
15223   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15224   *) ac_abs_builddir=`pwd`/"$ac_dir";;
15225   esac;;
15226 esac
15227 case $ac_abs_builddir in
15228 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15229 *)
15230   case ${ac_top_builddir}. in
15231   .) ac_abs_top_builddir=$ac_abs_builddir;;
15232   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15233   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15234   esac;;
15235 esac
15236 case $ac_abs_builddir in
15237 .) ac_abs_srcdir=$ac_srcdir;;
15238 *)
15239   case $ac_srcdir in
15240   .) ac_abs_srcdir=$ac_abs_builddir;;
15241   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15242   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15243   esac;;
15244 esac
15245 case $ac_abs_builddir in
15246 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15247 *)
15248   case $ac_top_srcdir in
15249   .) ac_abs_top_srcdir=$ac_abs_builddir;;
15250   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15251   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15252   esac;;
15253 esac
15254
15255
15256   case $INSTALL in
15257   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15258   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15259   esac
15260
15261   # Let's still pretend it is `configure' which instantiates (i.e., don't
15262   # use $as_me), people would be surprised to read:
15263   #    /* config.h.  Generated by config.status.  */
15264   if test x"$ac_file" = x-; then
15265     configure_input=
15266   else
15267     configure_input="$ac_file.  "
15268   fi
15269   configure_input=$configure_input"Generated from `echo $ac_file_in |
15270                                      sed 's,.*/,,'` by configure."
15271
15272   # First look for the input files in the build tree, otherwise in the
15273   # src tree.
15274   ac_file_inputs=`IFS=:
15275     for f in $ac_file_in; do
15276       case $f in
15277       -) echo $tmp/stdin ;;
15278       [\\/$]*)
15279          # Absolute (can't be DOS-style, as IFS=:)
15280          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15281 echo "$as_me: error: cannot find input file: $f" >&2;}
15282    { (exit 1); exit 1; }; }
15283          echo "$f";;
15284       *) # Relative
15285          if test -f "$f"; then
15286            # Build tree
15287            echo "$f"
15288          elif test -f "$srcdir/$f"; then
15289            # Source tree
15290            echo "$srcdir/$f"
15291          else
15292            # /dev/null tree
15293            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15294 echo "$as_me: error: cannot find input file: $f" >&2;}
15295    { (exit 1); exit 1; }; }
15296          fi;;
15297       esac
15298     done` || { (exit 1); exit 1; }
15299
15300   if test x"$ac_file" != x-; then
15301     { echo "$as_me:$LINENO: creating $ac_file" >&5
15302 echo "$as_me: creating $ac_file" >&6;}
15303     rm -f "$ac_file"
15304   fi
15305 _ACEOF
15306 cat >>$CONFIG_STATUS <<_ACEOF
15307   sed "$ac_vpsub
15308 $extrasub
15309 _ACEOF
15310 cat >>$CONFIG_STATUS <<\_ACEOF
15311 :t
15312 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15313 s,@configure_input@,$configure_input,;t t
15314 s,@srcdir@,$ac_srcdir,;t t
15315 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15316 s,@top_srcdir@,$ac_top_srcdir,;t t
15317 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15318 s,@builddir@,$ac_builddir,;t t
15319 s,@abs_builddir@,$ac_abs_builddir,;t t
15320 s,@top_builddir@,$ac_top_builddir,;t t
15321 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15322 s,@INSTALL@,$ac_INSTALL,;t t
15323 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15324   rm -f $tmp/stdin
15325   if test x"$ac_file" != x-; then
15326     mv $tmp/out $ac_file
15327   else
15328     cat $tmp/out
15329     rm -f $tmp/out
15330   fi
15331
15332 done
15333 _ACEOF
15334 cat >>$CONFIG_STATUS <<\_ACEOF
15335
15336 #
15337 # CONFIG_COMMANDS section.
15338 #
15339 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15340   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15341   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15342   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15343 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15344          X"$ac_dest" : 'X\(//\)[^/]' \| \
15345          X"$ac_dest" : 'X\(//\)$' \| \
15346          X"$ac_dest" : 'X\(/\)' \| \
15347          .     : '\(.\)' 2>/dev/null ||
15348 echo X"$ac_dest" |
15349     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15350           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15351           /^X\(\/\/\)$/{ s//\1/; q; }
15352           /^X\(\/\).*/{ s//\1/; q; }
15353           s/.*/./; q'`
15354   { if $as_mkdir_p; then
15355     mkdir -p "$ac_dir"
15356   else
15357     as_dir="$ac_dir"
15358     as_dirs=
15359     while test ! -d "$as_dir"; do
15360       as_dirs="$as_dir $as_dirs"
15361       as_dir=`(dirname "$as_dir") 2>/dev/null ||
15362 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15363          X"$as_dir" : 'X\(//\)[^/]' \| \
15364          X"$as_dir" : 'X\(//\)$' \| \
15365          X"$as_dir" : 'X\(/\)' \| \
15366          .     : '\(.\)' 2>/dev/null ||
15367 echo X"$as_dir" |
15368     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15369           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15370           /^X\(\/\/\)$/{ s//\1/; q; }
15371           /^X\(\/\).*/{ s//\1/; q; }
15372           s/.*/./; q'`
15373     done
15374     test ! -n "$as_dirs" || mkdir $as_dirs
15375   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15376 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15377    { (exit 1); exit 1; }; }; }
15378
15379   ac_builddir=.
15380
15381 if test "$ac_dir" != .; then
15382   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15383   # A "../" for each directory in $ac_dir_suffix.
15384   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15385 else
15386   ac_dir_suffix= ac_top_builddir=
15387 fi
15388
15389 case $srcdir in
15390   .)  # No --srcdir option.  We are building in place.
15391     ac_srcdir=.
15392     if test -z "$ac_top_builddir"; then
15393        ac_top_srcdir=.
15394     else
15395        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15396     fi ;;
15397   [\\/]* | ?:[\\/]* )  # Absolute path.
15398     ac_srcdir=$srcdir$ac_dir_suffix;
15399     ac_top_srcdir=$srcdir ;;
15400   *) # Relative path.
15401     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15402     ac_top_srcdir=$ac_top_builddir$srcdir ;;
15403 esac
15404
15405 # Do not use `cd foo && pwd` to compute absolute paths, because
15406 # the directories may not exist.
15407 case `pwd` in
15408 .) ac_abs_builddir="$ac_dir";;
15409 *)
15410   case "$ac_dir" in
15411   .) ac_abs_builddir=`pwd`;;
15412   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15413   *) ac_abs_builddir=`pwd`/"$ac_dir";;
15414   esac;;
15415 esac
15416 case $ac_abs_builddir in
15417 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15418 *)
15419   case ${ac_top_builddir}. in
15420   .) ac_abs_top_builddir=$ac_abs_builddir;;
15421   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15422   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15423   esac;;
15424 esac
15425 case $ac_abs_builddir in
15426 .) ac_abs_srcdir=$ac_srcdir;;
15427 *)
15428   case $ac_srcdir in
15429   .) ac_abs_srcdir=$ac_abs_builddir;;
15430   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15431   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15432   esac;;
15433 esac
15434 case $ac_abs_builddir in
15435 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15436 *)
15437   case $ac_top_srcdir in
15438   .) ac_abs_top_srcdir=$ac_abs_builddir;;
15439   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15440   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15441   esac;;
15442 esac
15443
15444
15445   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15446 echo "$as_me: executing $ac_dest commands" >&6;}
15447   case $ac_dest in
15448     default-1 )
15449     for ac_file in $CONFIG_FILES; do
15450       # Support "outfile[:infile[:infile...]]"
15451       case "$ac_file" in
15452         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15453       esac
15454       # PO directories have a Makefile.in generated from Makefile.in.in.
15455       case "$ac_file" in */Makefile.in)
15456         # Adjust a relative srcdir.
15457         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15458         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15459         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15460         # In autoconf-2.13 it is called $ac_given_srcdir.
15461         # In autoconf-2.50 it is called $srcdir.
15462         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15463         case "$ac_given_srcdir" in
15464           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15465           /*) top_srcdir="$ac_given_srcdir" ;;
15466           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
15467         esac
15468         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15469           rm -f "$ac_dir/POTFILES"
15470           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15471           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15472           POMAKEFILEDEPS="POTFILES.in"
15473           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15474           # on $ac_dir but don't depend on user-specified configuration
15475           # parameters.
15476           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15477             # The LINGUAS file contains the set of available languages.
15478             if test -n "$OBSOLETE_ALL_LINGUAS"; then
15479               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15480             fi
15481             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15482             # Hide the ALL_LINGUAS assigment from automake.
15483             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15484             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15485           else
15486             # The set of available languages was given in configure.in.
15487             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15488           fi
15489           # Compute POFILES
15490           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15491           # Compute UPDATEPOFILES
15492           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15493           # Compute DUMMYPOFILES
15494           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15495           # Compute GMOFILES
15496           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15497           case "$ac_given_srcdir" in
15498             .) srcdirpre= ;;
15499             *) srcdirpre='$(srcdir)/' ;;
15500           esac
15501           POFILES=
15502           UPDATEPOFILES=
15503           DUMMYPOFILES=
15504           GMOFILES=
15505           for lang in $ALL_LINGUAS; do
15506             POFILES="$POFILES $srcdirpre$lang.po"
15507             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15508             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15509             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15510           done
15511           # CATALOGS depends on both $ac_dir and the user's LINGUAS
15512           # environment variable.
15513           INST_LINGUAS=
15514           if test -n "$ALL_LINGUAS"; then
15515             for presentlang in $ALL_LINGUAS; do
15516               useit=no
15517               if test "%UNSET%" != "$LINGUAS"; then
15518                 desiredlanguages="$LINGUAS"
15519               else
15520                 desiredlanguages="$ALL_LINGUAS"
15521               fi
15522               for desiredlang in $desiredlanguages; do
15523                 # Use the presentlang catalog if desiredlang is
15524                 #   a. equal to presentlang, or
15525                 #   b. a variant of presentlang (because in this case,
15526                 #      presentlang can be used as a fallback for messages
15527                 #      which are not translated in the desiredlang catalog).
15528                 case "$desiredlang" in
15529                   "$presentlang"*) useit=yes;;
15530                 esac
15531               done
15532               if test $useit = yes; then
15533                 INST_LINGUAS="$INST_LINGUAS $presentlang"
15534               fi
15535             done
15536           fi
15537           CATALOGS=
15538           if test -n "$INST_LINGUAS"; then
15539             for lang in $INST_LINGUAS; do
15540               CATALOGS="$CATALOGS $lang.gmo"
15541             done
15542           fi
15543           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15544           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15545           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15546             if test -f "$f"; then
15547               case "$f" in
15548                 *.orig | *.bak | *~) ;;
15549                 *) cat "$f" >> "$ac_dir/Makefile" ;;
15550               esac
15551             fi
15552           done
15553         fi
15554         ;;
15555       esac
15556     done ;;
15557   esac
15558 done
15559 _ACEOF
15560
15561 cat >>$CONFIG_STATUS <<\_ACEOF
15562
15563 { (exit 0); exit 0; }
15564 _ACEOF
15565 chmod +x $CONFIG_STATUS
15566 ac_clean_files=$ac_clean_files_save
15567
15568
15569 # configure is writing to config.log, and then calls config.status.
15570 # config.status does its own redirection, appending to config.log.
15571 # Unfortunately, on DOS this fails, as config.log is still kept open
15572 # by configure, so config.status won't be able to write to it; its
15573 # output is simply discarded.  So we exec the FD to /dev/null,
15574 # effectively closing config.log, so it can be properly (re)opened and
15575 # appended to by config.status.  When coming back to configure, we
15576 # need to make the FD available again.
15577 if test "$no_create" != yes; then
15578   ac_cs_success=:
15579   ac_config_status_args=
15580   test "$silent" = yes &&
15581     ac_config_status_args="$ac_config_status_args --quiet"
15582   exec 5>/dev/null
15583   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15584   exec 5>>config.log
15585   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15586   # would make configure fail if this is the last instruction.
15587   $ac_cs_success || { (exit 1); exit 1; }
15588 fi
15589
15590 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
15591