Whamcloud - gitweb
a4b9f3223c182ae1ec1b9e08744957dce0f0e596
[tools/e2fsprogs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
16
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25   emulate sh
26   NULLCMD=:
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28   set -o posix
29 fi
30
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
33
34 if expr a : '\(a\)' >/dev/null 2>&1; then
35   as_expr=expr
36 else
37   as_expr=false
38 fi
39
40 rm -f conf$$ conf$$.exe conf$$.file
41 echo >conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43   # We could just check for DJGPP; but this test a) works b) is more generic
44   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45   if test -f conf$$.exe; then
46     # Don't use ln at all; we don't have any links
47     as_ln_s='cp -p'
48   else
49     as_ln_s='ln -s'
50   fi
51 elif ln conf$$.file conf$$ 2>/dev/null; then
52   as_ln_s=ln
53 else
54   as_ln_s='cp -p'
55 fi
56 rm -f conf$$ conf$$.exe conf$$.file
57
58 as_executable_p="test -f"
59
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62   as_unset=unset
63 else
64   as_unset=false
65 fi
66
67 # NLS nuisances.
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
76
77 # IFS
78 # We need space, tab and new line, in precisely that order.
79 as_nl='
80 '
81 IFS="   $as_nl"
82
83 # CDPATH.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
85
86 # Name of the host.
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
90
91 exec 6>&1
92
93 #
94 # Initializations.
95 #
96 ac_default_prefix=/usr/local
97 cross_compiling=no
98 subdirs=
99 MFLAGS= MAKEFLAGS=
100 SHELL=${CONFIG_SHELL-/bin/sh}
101
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete.  It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
106
107 ac_unique_file="version.h"
108 # Factoring default headers for most tests.
109 ac_includes_default="\
110 #include <stdio.h>
111 #if HAVE_SYS_TYPES_H
112 # include <sys/types.h>
113 #endif
114 #if HAVE_SYS_STAT_H
115 # include <sys/stat.h>
116 #endif
117 #if STDC_HEADERS
118 # include <stdlib.h>
119 # include <stddef.h>
120 #else
121 # if HAVE_STDLIB_H
122 #  include <stdlib.h>
123 # endif
124 #endif
125 #if HAVE_STRING_H
126 # if !STDC_HEADERS && HAVE_MEMORY_H
127 #  include <memory.h>
128 # endif
129 # include <string.h>
130 #endif
131 #if HAVE_STRINGS_H
132 # include <strings.h>
133 #endif
134 #if HAVE_INTTYPES_H
135 # include <inttypes.h>
136 #else
137 # if HAVE_STDINT_H
138 #  include <stdint.h>
139 # endif
140 #endif
141 #if HAVE_UNISTD_H
142 # include <unistd.h>
143 #endif"
144
145 # Initialize some variables set by options.
146 ac_init_help=
147 ac_init_version=false
148 # The variables have the same names as the options, with
149 # dashes changed to underlines.
150 cache_file=/dev/null
151 exec_prefix=NONE
152 no_create=
153 no_recursion=
154 prefix=NONE
155 program_prefix=NONE
156 program_suffix=NONE
157 program_transform_name=s,x,x,
158 silent=
159 site=
160 srcdir=
161 verbose=
162 x_includes=NONE
163 x_libraries=NONE
164
165 # Installation directory options.
166 # These are left unexpanded so users can "make install exec_prefix=/foo"
167 # and all the variables that are supposed to be based on exec_prefix
168 # by default will actually change.
169 # Use braces instead of parens because sh, perl, etc. also accept them.
170 bindir='${exec_prefix}/bin'
171 sbindir='${exec_prefix}/sbin'
172 libexecdir='${exec_prefix}/libexec'
173 datadir='${prefix}/share'
174 sysconfdir='${prefix}/etc'
175 sharedstatedir='${prefix}/com'
176 localstatedir='${prefix}/var'
177 libdir='${exec_prefix}/lib'
178 includedir='${prefix}/include'
179 oldincludedir='/usr/include'
180 infodir='${prefix}/info'
181 mandir='${prefix}/man'
182
183 # Identity of this package.
184 PACKAGE_NAME=
185 PACKAGE_TARNAME=
186 PACKAGE_VERSION=
187 PACKAGE_STRING=
188 PACKAGE_BUGREPORT=
189
190 ac_prev=
191 for ac_option
192 do
193   # If the previous option needs an argument, assign it.
194   if test -n "$ac_prev"; then
195     eval "$ac_prev=\$ac_option"
196     ac_prev=
197     continue
198   fi
199
200   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
201
202   # Accept the important Cygnus configure options, so we can diagnose typos.
203
204   case $ac_option in
205
206   -bindir | --bindir | --bindi | --bind | --bin | --bi)
207     ac_prev=bindir ;;
208   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
209     bindir=$ac_optarg ;;
210
211   -build | --build | --buil | --bui | --bu)
212     ac_prev=build_alias ;;
213   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
214     build_alias=$ac_optarg ;;
215
216   -cache-file | --cache-file | --cache-fil | --cache-fi \
217   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
218     ac_prev=cache_file ;;
219   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
220   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
221     cache_file=$ac_optarg ;;
222
223   --config-cache | -C)
224     cache_file=config.cache ;;
225
226   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
227     ac_prev=datadir ;;
228   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
229   | --da=*)
230     datadir=$ac_optarg ;;
231
232   -disable-* | --disable-*)
233     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
234     # Reject names that are not valid shell variable names.
235     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
236       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237    { (exit 1); exit 1; }; }
238     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
239     eval "enable_$ac_feature=no" ;;
240
241   -enable-* | --enable-*)
242     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
243     # Reject names that are not valid shell variable names.
244     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246    { (exit 1); exit 1; }; }
247     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248     case $ac_option in
249       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
250       *) ac_optarg=yes ;;
251     esac
252     eval "enable_$ac_feature='$ac_optarg'" ;;
253
254   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
255   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
256   | --exec | --exe | --ex)
257     ac_prev=exec_prefix ;;
258   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
259   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
260   | --exec=* | --exe=* | --ex=*)
261     exec_prefix=$ac_optarg ;;
262
263   -gas | --gas | --ga | --g)
264     # Obsolete; use --with-gas.
265     with_gas=yes ;;
266
267   -help | --help | --hel | --he | -h)
268     ac_init_help=long ;;
269   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
270     ac_init_help=recursive ;;
271   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
272     ac_init_help=short ;;
273
274   -host | --host | --hos | --ho)
275     ac_prev=host_alias ;;
276   -host=* | --host=* | --hos=* | --ho=*)
277     host_alias=$ac_optarg ;;
278
279   -includedir | --includedir | --includedi | --included | --include \
280   | --includ | --inclu | --incl | --inc)
281     ac_prev=includedir ;;
282   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283   | --includ=* | --inclu=* | --incl=* | --inc=*)
284     includedir=$ac_optarg ;;
285
286   -infodir | --infodir | --infodi | --infod | --info | --inf)
287     ac_prev=infodir ;;
288   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289     infodir=$ac_optarg ;;
290
291   -libdir | --libdir | --libdi | --libd)
292     ac_prev=libdir ;;
293   -libdir=* | --libdir=* | --libdi=* | --libd=*)
294     libdir=$ac_optarg ;;
295
296   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297   | --libexe | --libex | --libe)
298     ac_prev=libexecdir ;;
299   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300   | --libexe=* | --libex=* | --libe=*)
301     libexecdir=$ac_optarg ;;
302
303   -localstatedir | --localstatedir | --localstatedi | --localstated \
304   | --localstate | --localstat | --localsta | --localst \
305   | --locals | --local | --loca | --loc | --lo)
306     ac_prev=localstatedir ;;
307   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310     localstatedir=$ac_optarg ;;
311
312   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
313     ac_prev=mandir ;;
314   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
315     mandir=$ac_optarg ;;
316
317   -nfp | --nfp | --nf)
318     # Obsolete; use --without-fp.
319     with_fp=no ;;
320
321   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
322   | --no-cr | --no-c)
323     no_create=yes ;;
324
325   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
327     no_recursion=yes ;;
328
329   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331   | --oldin | --oldi | --old | --ol | --o)
332     ac_prev=oldincludedir ;;
333   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336     oldincludedir=$ac_optarg ;;
337
338   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
339     ac_prev=prefix ;;
340   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
341     prefix=$ac_optarg ;;
342
343   -program-prefix | --program-prefix | --program-prefi | --program-pref \
344   | --program-pre | --program-pr | --program-p)
345     ac_prev=program_prefix ;;
346   -program-prefix=* | --program-prefix=* | --program-prefi=* \
347   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348     program_prefix=$ac_optarg ;;
349
350   -program-suffix | --program-suffix | --program-suffi | --program-suff \
351   | --program-suf | --program-su | --program-s)
352     ac_prev=program_suffix ;;
353   -program-suffix=* | --program-suffix=* | --program-suffi=* \
354   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355     program_suffix=$ac_optarg ;;
356
357   -program-transform-name | --program-transform-name \
358   | --program-transform-nam | --program-transform-na \
359   | --program-transform-n | --program-transform- \
360   | --program-transform | --program-transfor \
361   | --program-transfo | --program-transf \
362   | --program-trans | --program-tran \
363   | --progr-tra | --program-tr | --program-t)
364     ac_prev=program_transform_name ;;
365   -program-transform-name=* | --program-transform-name=* \
366   | --program-transform-nam=* | --program-transform-na=* \
367   | --program-transform-n=* | --program-transform-=* \
368   | --program-transform=* | --program-transfor=* \
369   | --program-transfo=* | --program-transf=* \
370   | --program-trans=* | --program-tran=* \
371   | --progr-tra=* | --program-tr=* | --program-t=*)
372     program_transform_name=$ac_optarg ;;
373
374   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375   | -silent | --silent | --silen | --sile | --sil)
376     silent=yes ;;
377
378   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
379     ac_prev=sbindir ;;
380   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
381   | --sbi=* | --sb=*)
382     sbindir=$ac_optarg ;;
383
384   -sharedstatedir | --sharedstatedir | --sharedstatedi \
385   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386   | --sharedst | --shareds | --shared | --share | --shar \
387   | --sha | --sh)
388     ac_prev=sharedstatedir ;;
389   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
392   | --sha=* | --sh=*)
393     sharedstatedir=$ac_optarg ;;
394
395   -site | --site | --sit)
396     ac_prev=site ;;
397   -site=* | --site=* | --sit=*)
398     site=$ac_optarg ;;
399
400   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
401     ac_prev=srcdir ;;
402   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
403     srcdir=$ac_optarg ;;
404
405   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406   | --syscon | --sysco | --sysc | --sys | --sy)
407     ac_prev=sysconfdir ;;
408   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410     sysconfdir=$ac_optarg ;;
411
412   -target | --target | --targe | --targ | --tar | --ta | --t)
413     ac_prev=target_alias ;;
414   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415     target_alias=$ac_optarg ;;
416
417   -v | -verbose | --verbose | --verbos | --verbo | --verb)
418     verbose=yes ;;
419
420   -version | --version | --versio | --versi | --vers | -V)
421     ac_init_version=: ;;
422
423   -with-* | --with-*)
424     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
425     # Reject names that are not valid shell variable names.
426     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
427       { echo "$as_me: error: invalid package name: $ac_package" >&2
428    { (exit 1); exit 1; }; }
429     ac_package=`echo $ac_package| sed 's/-/_/g'`
430     case $ac_option in
431       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
432       *) ac_optarg=yes ;;
433     esac
434     eval "with_$ac_package='$ac_optarg'" ;;
435
436   -without-* | --without-*)
437     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
438     # Reject names that are not valid shell variable names.
439     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
440       { echo "$as_me: error: invalid package name: $ac_package" >&2
441    { (exit 1); exit 1; }; }
442     ac_package=`echo $ac_package | sed 's/-/_/g'`
443     eval "with_$ac_package=no" ;;
444
445   --x)
446     # Obsolete; use --with-x.
447     with_x=yes ;;
448
449   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450   | --x-incl | --x-inc | --x-in | --x-i)
451     ac_prev=x_includes ;;
452   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
454     x_includes=$ac_optarg ;;
455
456   -x-libraries | --x-libraries | --x-librarie | --x-librari \
457   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458     ac_prev=x_libraries ;;
459   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
461     x_libraries=$ac_optarg ;;
462
463   -*) { echo "$as_me: error: unrecognized option: $ac_option
464 Try \`$0 --help' for more information." >&2
465    { (exit 1); exit 1; }; }
466     ;;
467
468   *=*)
469     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
470     # Reject names that are not valid shell variable names.
471     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
472       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473    { (exit 1); exit 1; }; }
474     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475     eval "$ac_envvar='$ac_optarg'"
476     export $ac_envvar ;;
477
478   *)
479     # FIXME: should be removed in autoconf 3.0.
480     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
482       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
484     ;;
485
486   esac
487 done
488
489 if test -n "$ac_prev"; then
490   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
491   { echo "$as_me: error: missing argument to $ac_option" >&2
492    { (exit 1); exit 1; }; }
493 fi
494
495 # Be sure to have absolute paths.
496 for ac_var in exec_prefix prefix
497 do
498   eval ac_val=$`echo $ac_var`
499   case $ac_val in
500     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502    { (exit 1); exit 1; }; };;
503   esac
504 done
505
506 # Be sure to have absolute paths.
507 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508               localstatedir libdir includedir oldincludedir infodir mandir
509 do
510   eval ac_val=$`echo $ac_var`
511   case $ac_val in
512     [\\/$]* | ?:[\\/]* ) ;;
513     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514    { (exit 1); exit 1; }; };;
515   esac
516 done
517
518 # There might be people who depend on the old broken behavior: `$host'
519 # used to hold the argument of --host etc.
520 build=$build_alias
521 host=$host_alias
522 target=$target_alias
523
524 # FIXME: should be removed in autoconf 3.0.
525 if test "x$host_alias" != x; then
526   if test "x$build_alias" = x; then
527     cross_compiling=maybe
528     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529     If a cross compiler is detected then cross compile mode will be used." >&2
530   elif test "x$build_alias" != "x$host_alias"; then
531     cross_compiling=yes
532   fi
533 fi
534
535 ac_tool_prefix=
536 test -n "$host_alias" && ac_tool_prefix=$host_alias-
537
538 test "$silent" = yes && exec 6>/dev/null
539
540 # Find the source files, if location was not specified.
541 if test -z "$srcdir"; then
542   ac_srcdir_defaulted=yes
543   # Try the directory containing this script, then its parent.
544   ac_prog=$0
545   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
547   srcdir=$ac_confdir
548   if test ! -r $srcdir/$ac_unique_file; then
549     srcdir=..
550   fi
551 else
552   ac_srcdir_defaulted=no
553 fi
554 if test ! -r $srcdir/$ac_unique_file; then
555   if test "$ac_srcdir_defaulted" = yes; then
556     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557    { (exit 1); exit 1; }; }
558   else
559     { echo "$as_me: error: cannot find sources in $srcdir" >&2
560    { (exit 1); exit 1; }; }
561   fi
562 fi
563 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564 ac_env_build_alias_set=${build_alias+set}
565 ac_env_build_alias_value=$build_alias
566 ac_cv_env_build_alias_set=${build_alias+set}
567 ac_cv_env_build_alias_value=$build_alias
568 ac_env_host_alias_set=${host_alias+set}
569 ac_env_host_alias_value=$host_alias
570 ac_cv_env_host_alias_set=${host_alias+set}
571 ac_cv_env_host_alias_value=$host_alias
572 ac_env_target_alias_set=${target_alias+set}
573 ac_env_target_alias_value=$target_alias
574 ac_cv_env_target_alias_set=${target_alias+set}
575 ac_cv_env_target_alias_value=$target_alias
576 ac_env_CC_set=${CC+set}
577 ac_env_CC_value=$CC
578 ac_cv_env_CC_set=${CC+set}
579 ac_cv_env_CC_value=$CC
580 ac_env_CFLAGS_set=${CFLAGS+set}
581 ac_env_CFLAGS_value=$CFLAGS
582 ac_cv_env_CFLAGS_set=${CFLAGS+set}
583 ac_cv_env_CFLAGS_value=$CFLAGS
584 ac_env_LDFLAGS_set=${LDFLAGS+set}
585 ac_env_LDFLAGS_value=$LDFLAGS
586 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
587 ac_cv_env_LDFLAGS_value=$LDFLAGS
588 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
589 ac_env_CPPFLAGS_value=$CPPFLAGS
590 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
591 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
592 ac_env_CPP_set=${CPP+set}
593 ac_env_CPP_value=$CPP
594 ac_cv_env_CPP_set=${CPP+set}
595 ac_cv_env_CPP_value=$CPP
596
597 #
598 # Report the --help message.
599 #
600 if test "$ac_init_help" = "long"; then
601   # Omit some internal or obsolete options to make the list less imposing.
602   # This message is too long to be a string in the A/UX 3.1 sh.
603   cat <<EOF
604 \`configure' configures this package to adapt to many kinds of systems.
605
606 Usage: $0 [OPTION]... [VAR=VALUE]...
607
608 To assign environment variables (e.g., CC, CFLAGS...), specify them as
609 VAR=VALUE.  See below for descriptions of some of the useful variables.
610
611 Defaults for the options are specified in brackets.
612
613 Configuration:
614   -h, --help              display this help and exit
615       --help=short        display options specific to this package
616       --help=recursive    display the short help of all the included packages
617   -V, --version           display version information and exit
618   -q, --quiet, --silent   do not print \`checking...' messages
619       --cache-file=FILE   cache test results in FILE [disabled]
620   -C, --config-cache      alias for \`--cache-file=config.cache'
621   -n, --no-create         do not create output files
622       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
623
624 EOF
625
626   cat <<EOF
627 Installation directories:
628   --prefix=PREFIX         install architecture-independent files in PREFIX
629                           [$ac_default_prefix]
630   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
631                           [PREFIX]
632
633 By default, \`make install' will install all the files in
634 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
635 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636 for instance \`--prefix=\$HOME'.
637
638 For better control, use the options below.
639
640 Fine tuning of the installation directories:
641   --bindir=DIR           user executables [EPREFIX/bin]
642   --sbindir=DIR          system admin executables [EPREFIX/sbin]
643   --libexecdir=DIR       program executables [EPREFIX/libexec]
644   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
645   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
646   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
647   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
648   --libdir=DIR           object code libraries [EPREFIX/lib]
649   --includedir=DIR       C header files [PREFIX/include]
650   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
651   --infodir=DIR          info documentation [PREFIX/info]
652   --mandir=DIR           man documentation [PREFIX/man]
653 EOF
654
655   cat <<\EOF
656
657 System types:
658   --build=BUILD     configure for building on BUILD [guessed]
659   --host=HOST       build programs to run on HOST [BUILD]
660 EOF
661 fi
662
663 if test -n "$ac_init_help"; then
664
665   cat <<\EOF
666
667 Optional Features:
668   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
669   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
670   --enable-compression    enable EXPERIMENTAL compression support
671   --enable-htree          enable EXPERIMENTAL htree directory support
672   --enable-htree-clear    clear htree because we don't trust e2fsck
673   --disable-evms          don't build EVMS plugin
674   --enable-evms-10        use EVMS 1.0 ABI (instead of EVMS 1.2)
675   --enable-evms-11        use EVMS 1.1 ABI (instead of EVMS 1.2)
676   --enable-dll-shlibs     select DLL libraries
677   --enable-elf-shlibs     select ELF shared libraries
678   --enable-bsd-shlibs     select BSD shared libraries
679   --enable-profile        build profiling libraries
680   --enable-checker        build checker libraries
681   --enable-jbd-debug      enable journal debugging
682   --enable-blkid-debug    enable blkid debugging
683   --enable-testio-debug   enable the use of the test I/O manager for debugging
684   --disable-swapfs        disable support of legacy byte-swapped filesystems
685   --disable-debugfs       disable support of debugfs program
686   --disable-imager        disable support of e2image program
687   --disable-resizer       disable support of e2resize program
688   --enable-dynamic-e2fsck build e2fsck dynamically
689   --enable-fsck           build fsck wrapper program
690   --enable-old-bitops     Use old (non-standard but native) bitmask operations
691   --disable-rpath         do not hardcode runtime library paths
692   --disable-nls           do not use Native Language Support
693
694 Optional Packages:
695   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
696   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
697   --with-diet-libc      Use diet libc
698   --with-cc=COMPILER      select compiler to use
699   --with-linker=LINKER    select linker to use
700   --with-ccopts=CCOPTS    select compiler command line options
701   --with-ldopts=LDOPTS    select linker command line options
702   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
703   --with-gnu-ld           assume the C compiler uses GNU ld default=no
704   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
705   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
706   --with-included-gettext use the GNU gettext library included here
707   --with-libintl-prefix=DIR  search for libintl in DIR/include and DIR/lib
708   --without-libintl-prefix     don't search for libintl in includedir and libdir
709
710 Some influential environment variables:
711   CC          C compiler command
712   CFLAGS      C compiler flags
713   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
714               nonstandard directory <lib dir>
715   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
716               headers in a nonstandard directory <include dir>
717   CPP         C preprocessor
718
719 Use these variables to override the choices made by `configure' or to help
720 it to find libraries and programs with nonstandard names/locations.
721
722 EOF
723 fi
724
725 if test "$ac_init_help" = "recursive"; then
726   # If there are subdirs, report their specific --help.
727   ac_popdir=`pwd`
728   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
729     cd $ac_subdir
730     # A "../" for each directory in /$ac_subdir.
731     ac_dots=`echo $ac_subdir |
732              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
733
734     case $srcdir in
735     .) # No --srcdir option.  We are building in place.
736       ac_sub_srcdir=$srcdir ;;
737     [\\/]* | ?:[\\/]* ) # Absolute path.
738       ac_sub_srcdir=$srcdir/$ac_subdir ;;
739     *) # Relative path.
740       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
741     esac
742
743     # Check for guested configure; otherwise get Cygnus style configure.
744     if test -f $ac_sub_srcdir/configure.gnu; then
745       echo
746       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
747     elif test -f $ac_sub_srcdir/configure; then
748       echo
749       $SHELL $ac_sub_srcdir/configure  --help=recursive
750     elif test -f $ac_sub_srcdir/configure.ac ||
751            test -f $ac_sub_srcdir/configure.in; then
752       echo
753       $ac_configure --help
754     else
755       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
756     fi
757     cd $ac_popdir
758   done
759 fi
760
761 test -n "$ac_init_help" && exit 0
762 if $ac_init_version; then
763   cat <<\EOF
764
765 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
766 Free Software Foundation, Inc.
767 This configure script is free software; the Free Software Foundation
768 gives unlimited permission to copy, distribute and modify it.
769 EOF
770   exit 0
771 fi
772 exec 5>config.log
773 cat >&5 <<EOF
774 This file contains any messages produced by compilers while
775 running configure, to aid debugging if configure makes a mistake.
776
777 It was created by $as_me, which was
778 generated by GNU Autoconf 2.52.  Invocation command line was
779
780   $ $0 $@
781
782 EOF
783 {
784 cat <<_ASUNAME
785 ## ---------- ##
786 ## Platform.  ##
787 ## ---------- ##
788
789 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
790 uname -m = `(uname -m) 2>/dev/null || echo unknown`
791 uname -r = `(uname -r) 2>/dev/null || echo unknown`
792 uname -s = `(uname -s) 2>/dev/null || echo unknown`
793 uname -v = `(uname -v) 2>/dev/null || echo unknown`
794
795 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
796 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
797
798 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
799 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
800 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
801 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
802 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
803 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
804 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
805
806 PATH = $PATH
807
808 _ASUNAME
809 } >&5
810
811 cat >&5 <<EOF
812 ## ------------ ##
813 ## Core tests.  ##
814 ## ------------ ##
815
816 EOF
817
818 # Keep a trace of the command line.
819 # Strip out --no-create and --no-recursion so they do not pile up.
820 # Also quote any args containing shell meta-characters.
821 ac_configure_args=
822 ac_sep=
823 for ac_arg
824 do
825   case $ac_arg in
826   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
827   | --no-cr | --no-c) ;;
828   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
829   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
830   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
831     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
832     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
833     ac_sep=" " ;;
834   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
835      ac_sep=" " ;;
836   esac
837   # Get rid of the leading space.
838 done
839
840 # When interrupted or exit'd, cleanup temporary files, and complete
841 # config.log.  We remove comments because anyway the quotes in there
842 # would cause problems or look ugly.
843 trap 'exit_status=$?
844   # Save into config.log some information that might help in debugging.
845   echo >&5
846   echo "## ----------------- ##" >&5
847   echo "## Cache variables.  ##" >&5
848   echo "## ----------------- ##" >&5
849   echo >&5
850   # The following way of writing the cache mishandles newlines in values,
851 {
852   (set) 2>&1 |
853     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
854     *ac_space=\ *)
855       sed -n \
856         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
857           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
858       ;;
859     *)
860       sed -n \
861         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
862       ;;
863     esac;
864 } >&5
865   sed "/^$/d" confdefs.h >conftest.log
866   if test -s conftest.log; then
867     echo >&5
868     echo "## ------------ ##" >&5
869     echo "## confdefs.h.  ##" >&5
870     echo "## ------------ ##" >&5
871     echo >&5
872     cat conftest.log >&5
873   fi
874   (echo; echo) >&5
875   test "$ac_signal" != 0 &&
876     echo "$as_me: caught signal $ac_signal" >&5
877   echo "$as_me: exit $exit_status" >&5
878   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
879     exit $exit_status
880      ' 0
881 for ac_signal in 1 2 13 15; do
882   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
883 done
884 ac_signal=0
885
886 # confdefs.h avoids OS command line length limits that DEFS can exceed.
887 rm -rf conftest* confdefs.h
888 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
889 echo >confdefs.h
890
891 # Let the site file select an alternate cache file if it wants to.
892 # Prefer explicitly selected file to automatically selected ones.
893 if test -z "$CONFIG_SITE"; then
894   if test "x$prefix" != xNONE; then
895     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
896   else
897     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
898   fi
899 fi
900 for ac_site_file in $CONFIG_SITE; do
901   if test -r "$ac_site_file"; then
902     { echo "$as_me:902: loading site script $ac_site_file" >&5
903 echo "$as_me: loading site script $ac_site_file" >&6;}
904     cat "$ac_site_file" >&5
905     . "$ac_site_file"
906   fi
907 done
908
909 if test -r "$cache_file"; then
910   # Some versions of bash will fail to source /dev/null (special
911   # files actually), so we avoid doing that.
912   if test -f "$cache_file"; then
913     { echo "$as_me:913: loading cache $cache_file" >&5
914 echo "$as_me: loading cache $cache_file" >&6;}
915     case $cache_file in
916       [\\/]* | ?:[\\/]* ) . $cache_file;;
917       *)                      . ./$cache_file;;
918     esac
919   fi
920 else
921   { echo "$as_me:921: creating cache $cache_file" >&5
922 echo "$as_me: creating cache $cache_file" >&6;}
923   >$cache_file
924 fi
925
926 # Check that the precious variables saved in the cache have kept the same
927 # value.
928 ac_cache_corrupted=false
929 for ac_var in `(set) 2>&1 |
930                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
931   eval ac_old_set=\$ac_cv_env_${ac_var}_set
932   eval ac_new_set=\$ac_env_${ac_var}_set
933   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
934   eval ac_new_val="\$ac_env_${ac_var}_value"
935   case $ac_old_set,$ac_new_set in
936     set,)
937       { echo "$as_me:937: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
938 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
939       ac_cache_corrupted=: ;;
940     ,set)
941       { echo "$as_me:941: error: \`$ac_var' was not set in the previous run" >&5
942 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
943       ac_cache_corrupted=: ;;
944     ,);;
945     *)
946       if test "x$ac_old_val" != "x$ac_new_val"; then
947         { echo "$as_me:947: error: \`$ac_var' has changed since the previous run:" >&5
948 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
949         { echo "$as_me:949:   former value:  $ac_old_val" >&5
950 echo "$as_me:   former value:  $ac_old_val" >&2;}
951         { echo "$as_me:951:   current value: $ac_new_val" >&5
952 echo "$as_me:   current value: $ac_new_val" >&2;}
953         ac_cache_corrupted=:
954       fi;;
955   esac
956   # Pass precious variables to config.status.  It doesn't matter if
957   # we pass some twice (in addition to the command line arguments).
958   if test "$ac_new_set" = set; then
959     case $ac_new_val in
960     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
961       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
962       ac_configure_args="$ac_configure_args '$ac_arg'"
963       ;;
964     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
965        ;;
966     esac
967   fi
968 done
969 if $ac_cache_corrupted; then
970   { echo "$as_me:970: error: changes in the environment can compromise the build" >&5
971 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
972   { { echo "$as_me:972: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
973 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
974    { (exit 1); exit 1; }; }
975 fi
976
977 ac_ext=c
978 ac_cpp='$CPP $CPPFLAGS'
979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
982
983 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
984   *c*,-n*) ECHO_N= ECHO_C='
985 ' ECHO_T='      ' ;;
986   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
987   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
988 esac
989 echo "#! $SHELL" >conftest.sh
990 echo  "exit 0"   >>conftest.sh
991 chmod +x conftest.sh
992 if { (echo "$as_me:992: PATH=\".;.\"; conftest.sh") >&5
993   (PATH=".;."; conftest.sh) 2>&5
994   ac_status=$?
995   echo "$as_me:995: \$? = $ac_status" >&5
996   (exit $ac_status); }; then
997   ac_path_separator=';'
998 else
999   ac_path_separator=:
1000 fi
1001 PATH_SEPARATOR="$ac_path_separator"
1002 rm -f conftest.sh
1003
1004 MCONFIG=./MCONFIG
1005
1006 BINARY_TYPE=bin
1007 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
1008         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1009 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1010         | tr \" " "`
1011 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1012 MONTH=`echo $DATE | awk -F- '{print $2}'`
1013 YEAR=`echo $DATE | awk -F- '{print $3}'`
1014
1015 if expr $YEAR ">" 1900 > /dev/null ; then
1016         E2FSPROGS_YEAR=$YEAR
1017 elif expr $YEAR ">" 90 >/dev/null ; then
1018         E2FSPROGS_YEAR=19$YEAR
1019 else
1020         E2FSPROGS_YEAR=20$YEAR
1021 fi
1022
1023 case $MONTH in
1024 Jan)    E2FSPROGS_MONTH="January" ;;
1025 Feb)    E2FSPROGS_MONTH="February" ;;
1026 Mar)    E2FSPROGS_MONTH="March" ;;
1027 Apr)    E2FSPROGS_MONTH="April" ;;
1028 May)    E2FSPROGS_MONTH="May" ;;
1029 Jun)    E2FSPROGS_MONTH="June" ;;
1030 Jul)    E2FSPROGS_MONTH="July" ;;
1031 Aug)    E2FSPROGS_MONTH="August" ;;
1032 Sep)    E2FSPROGS_MONTH="September" ;;
1033 Oct)    E2FSPROGS_MONTH="October" ;;
1034 Nov)    E2FSPROGS_MONTH="November" ;;
1035 Dec)    E2FSPROGS_MONTH="December" ;;
1036 *)      echo "Unknown month $MONTH??" ;;
1037 esac
1038
1039 unset DATE MONTH YEAR
1040 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1041 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1042
1043 ac_aux_dir=
1044 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1045   if test -f $ac_dir/install-sh; then
1046     ac_aux_dir=$ac_dir
1047     ac_install_sh="$ac_aux_dir/install-sh -c"
1048     break
1049   elif test -f $ac_dir/install.sh; then
1050     ac_aux_dir=$ac_dir
1051     ac_install_sh="$ac_aux_dir/install.sh -c"
1052     break
1053   elif test -f $ac_dir/shtool; then
1054     ac_aux_dir=$ac_dir
1055     ac_install_sh="$ac_aux_dir/shtool install -c"
1056     break
1057   fi
1058 done
1059 if test -z "$ac_aux_dir"; then
1060   { { echo "$as_me:1060: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1061 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1062    { (exit 1); exit 1; }; }
1063 fi
1064 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1065 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1066 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1067
1068 # Make sure we can run config.sub.
1069 $ac_config_sub sun4 >/dev/null 2>&1 ||
1070   { { echo "$as_me:1070: error: cannot run $ac_config_sub" >&5
1071 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1072    { (exit 1); exit 1; }; }
1073
1074 echo "$as_me:1074: checking build system type" >&5
1075 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1076 if test "${ac_cv_build+set}" = set; then
1077   echo $ECHO_N "(cached) $ECHO_C" >&6
1078 else
1079   ac_cv_build_alias=$build_alias
1080 test -z "$ac_cv_build_alias" &&
1081   ac_cv_build_alias=`$ac_config_guess`
1082 test -z "$ac_cv_build_alias" &&
1083   { { echo "$as_me:1083: error: cannot guess build type; you must specify one" >&5
1084 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1085    { (exit 1); exit 1; }; }
1086 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1087   { { echo "$as_me:1087: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1088 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1089    { (exit 1); exit 1; }; }
1090
1091 fi
1092 echo "$as_me:1092: result: $ac_cv_build" >&5
1093 echo "${ECHO_T}$ac_cv_build" >&6
1094 build=$ac_cv_build
1095 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1096 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1097 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1098
1099 echo "$as_me:1099: checking host system type" >&5
1100 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1101 if test "${ac_cv_host+set}" = set; then
1102   echo $ECHO_N "(cached) $ECHO_C" >&6
1103 else
1104   ac_cv_host_alias=$host_alias
1105 test -z "$ac_cv_host_alias" &&
1106   ac_cv_host_alias=$ac_cv_build_alias
1107 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1108   { { echo "$as_me:1108: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1109 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1110    { (exit 1); exit 1; }; }
1111
1112 fi
1113 echo "$as_me:1113: result: $ac_cv_host" >&5
1114 echo "${ECHO_T}$ac_cv_host" >&6
1115 host=$ac_cv_host
1116 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1117 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1118 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1119
1120 EVMS_CMT=
1121
1122 # Check whether --with-diet-libc or --without-diet-libc was given.
1123 if test "${with_diet_libc+set}" = set; then
1124   withval="$with_diet_libc"
1125   CC="diet cc -nostdinc"
1126 EVMS_CMT="#"
1127 echo "$as_me:1127: result: CC=$CC" >&5
1128 echo "${ECHO_T}CC=$CC" >&6
1129 fi;
1130 # Check whether --with-cc or --without-cc was given.
1131 if test "${with_cc+set}" = set; then
1132   withval="$with_cc"
1133   echo "$as_me:1133: result: CC=$withval" >&5
1134 echo "${ECHO_T}CC=$withval" >&6
1135 CC=$withval
1136 else
1137   if test -z "$CC" ; then CC=cc; fi
1138 echo "$as_me:1138: result: CC defaults to $CC" >&5
1139 echo "${ECHO_T}CC defaults to $CC" >&6
1140 fi; export CC
1141
1142 ac_ext=c
1143 ac_cpp='$CPP $CPPFLAGS'
1144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1147 if test -n "$ac_tool_prefix"; then
1148   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1149 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1150 echo "$as_me:1150: checking for $ac_word" >&5
1151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1152 if test "${ac_cv_prog_CC+set}" = set; then
1153   echo $ECHO_N "(cached) $ECHO_C" >&6
1154 else
1155   if test -n "$CC"; then
1156   ac_cv_prog_CC="$CC" # Let the user override the test.
1157 else
1158   ac_save_IFS=$IFS; IFS=$ac_path_separator
1159 ac_dummy="$PATH"
1160 for ac_dir in $ac_dummy; do
1161   IFS=$ac_save_IFS
1162   test -z "$ac_dir" && ac_dir=.
1163   $as_executable_p "$ac_dir/$ac_word" || continue
1164 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1165 echo "$as_me:1165: found $ac_dir/$ac_word" >&5
1166 break
1167 done
1168
1169 fi
1170 fi
1171 CC=$ac_cv_prog_CC
1172 if test -n "$CC"; then
1173   echo "$as_me:1173: result: $CC" >&5
1174 echo "${ECHO_T}$CC" >&6
1175 else
1176   echo "$as_me:1176: result: no" >&5
1177 echo "${ECHO_T}no" >&6
1178 fi
1179
1180 fi
1181 if test -z "$ac_cv_prog_CC"; then
1182   ac_ct_CC=$CC
1183   # Extract the first word of "gcc", so it can be a program name with args.
1184 set dummy gcc; ac_word=$2
1185 echo "$as_me:1185: checking for $ac_word" >&5
1186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1187 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1188   echo $ECHO_N "(cached) $ECHO_C" >&6
1189 else
1190   if test -n "$ac_ct_CC"; then
1191   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1192 else
1193   ac_save_IFS=$IFS; IFS=$ac_path_separator
1194 ac_dummy="$PATH"
1195 for ac_dir in $ac_dummy; do
1196   IFS=$ac_save_IFS
1197   test -z "$ac_dir" && ac_dir=.
1198   $as_executable_p "$ac_dir/$ac_word" || continue
1199 ac_cv_prog_ac_ct_CC="gcc"
1200 echo "$as_me:1200: found $ac_dir/$ac_word" >&5
1201 break
1202 done
1203
1204 fi
1205 fi
1206 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1207 if test -n "$ac_ct_CC"; then
1208   echo "$as_me:1208: result: $ac_ct_CC" >&5
1209 echo "${ECHO_T}$ac_ct_CC" >&6
1210 else
1211   echo "$as_me:1211: result: no" >&5
1212 echo "${ECHO_T}no" >&6
1213 fi
1214
1215   CC=$ac_ct_CC
1216 else
1217   CC="$ac_cv_prog_CC"
1218 fi
1219
1220 if test -z "$CC"; then
1221   if test -n "$ac_tool_prefix"; then
1222   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1223 set dummy ${ac_tool_prefix}cc; ac_word=$2
1224 echo "$as_me:1224: checking for $ac_word" >&5
1225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1226 if test "${ac_cv_prog_CC+set}" = set; then
1227   echo $ECHO_N "(cached) $ECHO_C" >&6
1228 else
1229   if test -n "$CC"; then
1230   ac_cv_prog_CC="$CC" # Let the user override the test.
1231 else
1232   ac_save_IFS=$IFS; IFS=$ac_path_separator
1233 ac_dummy="$PATH"
1234 for ac_dir in $ac_dummy; do
1235   IFS=$ac_save_IFS
1236   test -z "$ac_dir" && ac_dir=.
1237   $as_executable_p "$ac_dir/$ac_word" || continue
1238 ac_cv_prog_CC="${ac_tool_prefix}cc"
1239 echo "$as_me:1239: found $ac_dir/$ac_word" >&5
1240 break
1241 done
1242
1243 fi
1244 fi
1245 CC=$ac_cv_prog_CC
1246 if test -n "$CC"; then
1247   echo "$as_me:1247: result: $CC" >&5
1248 echo "${ECHO_T}$CC" >&6
1249 else
1250   echo "$as_me:1250: result: no" >&5
1251 echo "${ECHO_T}no" >&6
1252 fi
1253
1254 fi
1255 if test -z "$ac_cv_prog_CC"; then
1256   ac_ct_CC=$CC
1257   # Extract the first word of "cc", so it can be a program name with args.
1258 set dummy cc; ac_word=$2
1259 echo "$as_me:1259: checking for $ac_word" >&5
1260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1261 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1262   echo $ECHO_N "(cached) $ECHO_C" >&6
1263 else
1264   if test -n "$ac_ct_CC"; then
1265   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1266 else
1267   ac_save_IFS=$IFS; IFS=$ac_path_separator
1268 ac_dummy="$PATH"
1269 for ac_dir in $ac_dummy; do
1270   IFS=$ac_save_IFS
1271   test -z "$ac_dir" && ac_dir=.
1272   $as_executable_p "$ac_dir/$ac_word" || continue
1273 ac_cv_prog_ac_ct_CC="cc"
1274 echo "$as_me:1274: found $ac_dir/$ac_word" >&5
1275 break
1276 done
1277
1278 fi
1279 fi
1280 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1281 if test -n "$ac_ct_CC"; then
1282   echo "$as_me:1282: result: $ac_ct_CC" >&5
1283 echo "${ECHO_T}$ac_ct_CC" >&6
1284 else
1285   echo "$as_me:1285: result: no" >&5
1286 echo "${ECHO_T}no" >&6
1287 fi
1288
1289   CC=$ac_ct_CC
1290 else
1291   CC="$ac_cv_prog_CC"
1292 fi
1293
1294 fi
1295 if test -z "$CC"; then
1296   # Extract the first word of "cc", so it can be a program name with args.
1297 set dummy cc; ac_word=$2
1298 echo "$as_me:1298: checking for $ac_word" >&5
1299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1300 if test "${ac_cv_prog_CC+set}" = set; then
1301   echo $ECHO_N "(cached) $ECHO_C" >&6
1302 else
1303   if test -n "$CC"; then
1304   ac_cv_prog_CC="$CC" # Let the user override the test.
1305 else
1306   ac_prog_rejected=no
1307   ac_save_IFS=$IFS; IFS=$ac_path_separator
1308 ac_dummy="$PATH"
1309 for ac_dir in $ac_dummy; do
1310   IFS=$ac_save_IFS
1311   test -z "$ac_dir" && ac_dir=.
1312   $as_executable_p "$ac_dir/$ac_word" || continue
1313 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1314   ac_prog_rejected=yes
1315   continue
1316 fi
1317 ac_cv_prog_CC="cc"
1318 echo "$as_me:1318: found $ac_dir/$ac_word" >&5
1319 break
1320 done
1321
1322 if test $ac_prog_rejected = yes; then
1323   # We found a bogon in the path, so make sure we never use it.
1324   set dummy $ac_cv_prog_CC
1325   shift
1326   if test $# != 0; then
1327     # We chose a different compiler from the bogus one.
1328     # However, it has the same basename, so the bogon will be chosen
1329     # first if we set CC to just the basename; use the full file name.
1330     shift
1331     set dummy "$ac_dir/$ac_word" ${1+"$@"}
1332     shift
1333     ac_cv_prog_CC="$@"
1334   fi
1335 fi
1336 fi
1337 fi
1338 CC=$ac_cv_prog_CC
1339 if test -n "$CC"; then
1340   echo "$as_me:1340: result: $CC" >&5
1341 echo "${ECHO_T}$CC" >&6
1342 else
1343   echo "$as_me:1343: result: no" >&5
1344 echo "${ECHO_T}no" >&6
1345 fi
1346
1347 fi
1348 if test -z "$CC"; then
1349   if test -n "$ac_tool_prefix"; then
1350   for ac_prog in cl
1351   do
1352     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1353 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1354 echo "$as_me:1354: checking for $ac_word" >&5
1355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1356 if test "${ac_cv_prog_CC+set}" = set; then
1357   echo $ECHO_N "(cached) $ECHO_C" >&6
1358 else
1359   if test -n "$CC"; then
1360   ac_cv_prog_CC="$CC" # Let the user override the test.
1361 else
1362   ac_save_IFS=$IFS; IFS=$ac_path_separator
1363 ac_dummy="$PATH"
1364 for ac_dir in $ac_dummy; do
1365   IFS=$ac_save_IFS
1366   test -z "$ac_dir" && ac_dir=.
1367   $as_executable_p "$ac_dir/$ac_word" || continue
1368 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1369 echo "$as_me:1369: found $ac_dir/$ac_word" >&5
1370 break
1371 done
1372
1373 fi
1374 fi
1375 CC=$ac_cv_prog_CC
1376 if test -n "$CC"; then
1377   echo "$as_me:1377: result: $CC" >&5
1378 echo "${ECHO_T}$CC" >&6
1379 else
1380   echo "$as_me:1380: result: no" >&5
1381 echo "${ECHO_T}no" >&6
1382 fi
1383
1384     test -n "$CC" && break
1385   done
1386 fi
1387 if test -z "$CC"; then
1388   ac_ct_CC=$CC
1389   for ac_prog in cl
1390 do
1391   # Extract the first word of "$ac_prog", so it can be a program name with args.
1392 set dummy $ac_prog; ac_word=$2
1393 echo "$as_me:1393: checking for $ac_word" >&5
1394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1395 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1396   echo $ECHO_N "(cached) $ECHO_C" >&6
1397 else
1398   if test -n "$ac_ct_CC"; then
1399   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1400 else
1401   ac_save_IFS=$IFS; IFS=$ac_path_separator
1402 ac_dummy="$PATH"
1403 for ac_dir in $ac_dummy; do
1404   IFS=$ac_save_IFS
1405   test -z "$ac_dir" && ac_dir=.
1406   $as_executable_p "$ac_dir/$ac_word" || continue
1407 ac_cv_prog_ac_ct_CC="$ac_prog"
1408 echo "$as_me:1408: found $ac_dir/$ac_word" >&5
1409 break
1410 done
1411
1412 fi
1413 fi
1414 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1415 if test -n "$ac_ct_CC"; then
1416   echo "$as_me:1416: result: $ac_ct_CC" >&5
1417 echo "${ECHO_T}$ac_ct_CC" >&6
1418 else
1419   echo "$as_me:1419: result: no" >&5
1420 echo "${ECHO_T}no" >&6
1421 fi
1422
1423   test -n "$ac_ct_CC" && break
1424 done
1425
1426   CC=$ac_ct_CC
1427 fi
1428
1429 fi
1430
1431 test -z "$CC" && { { echo "$as_me:1431: error: no acceptable cc found in \$PATH" >&5
1432 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1433    { (exit 1); exit 1; }; }
1434
1435 # Provide some information about the compiler.
1436 echo "$as_me:1436:" \
1437      "checking for C compiler version" >&5
1438 ac_compiler=`set X $ac_compile; echo $2`
1439 { (eval echo "$as_me:1439: \"$ac_compiler --version </dev/null >&5\"") >&5
1440   (eval $ac_compiler --version </dev/null >&5) 2>&5
1441   ac_status=$?
1442   echo "$as_me:1442: \$? = $ac_status" >&5
1443   (exit $ac_status); }
1444 { (eval echo "$as_me:1444: \"$ac_compiler -v </dev/null >&5\"") >&5
1445   (eval $ac_compiler -v </dev/null >&5) 2>&5
1446   ac_status=$?
1447   echo "$as_me:1447: \$? = $ac_status" >&5
1448   (exit $ac_status); }
1449 { (eval echo "$as_me:1449: \"$ac_compiler -V </dev/null >&5\"") >&5
1450   (eval $ac_compiler -V </dev/null >&5) 2>&5
1451   ac_status=$?
1452   echo "$as_me:1452: \$? = $ac_status" >&5
1453   (exit $ac_status); }
1454
1455 cat >conftest.$ac_ext <<_ACEOF
1456 #line 1456 "configure"
1457 #include "confdefs.h"
1458
1459 int
1460 main ()
1461 {
1462
1463   ;
1464   return 0;
1465 }
1466 _ACEOF
1467 ac_clean_files_save=$ac_clean_files
1468 ac_clean_files="$ac_clean_files a.out a.exe"
1469 # Try to create an executable without -o first, disregard a.out.
1470 # It will help us diagnose broken compilers, and finding out an intuition
1471 # of exeext.
1472 echo "$as_me:1472: checking for C compiler default output" >&5
1473 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1474 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1475 if { (eval echo "$as_me:1475: \"$ac_link_default\"") >&5
1476   (eval $ac_link_default) 2>&5
1477   ac_status=$?
1478   echo "$as_me:1478: \$? = $ac_status" >&5
1479   (exit $ac_status); }; then
1480   # Find the output, starting from the most likely.  This scheme is
1481 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1482 # resort.
1483 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1484                 ls a.out conftest 2>/dev/null;
1485                 ls a.* conftest.* 2>/dev/null`; do
1486   case $ac_file in
1487     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1488     a.out ) # We found the default executable, but exeext='' is most
1489             # certainly right.
1490             break;;
1491     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1492           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1493           export ac_cv_exeext
1494           break;;
1495     * ) break;;
1496   esac
1497 done
1498 else
1499   echo "$as_me: failed program was:" >&5
1500 cat conftest.$ac_ext >&5
1501 { { echo "$as_me:1501: error: C compiler cannot create executables" >&5
1502 echo "$as_me: error: C compiler cannot create executables" >&2;}
1503    { (exit 77); exit 77; }; }
1504 fi
1505
1506 ac_exeext=$ac_cv_exeext
1507 echo "$as_me:1507: result: $ac_file" >&5
1508 echo "${ECHO_T}$ac_file" >&6
1509
1510 # Check the compiler produces executables we can run.  If not, either
1511 # the compiler is broken, or we cross compile.
1512 echo "$as_me:1512: checking whether the C compiler works" >&5
1513 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1514 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1515 # If not cross compiling, check that we can run a simple program.
1516 if test "$cross_compiling" != yes; then
1517   if { ac_try='./$ac_file'
1518   { (eval echo "$as_me:1518: \"$ac_try\"") >&5
1519   (eval $ac_try) 2>&5
1520   ac_status=$?
1521   echo "$as_me:1521: \$? = $ac_status" >&5
1522   (exit $ac_status); }; }; then
1523     cross_compiling=no
1524   else
1525     if test "$cross_compiling" = maybe; then
1526         cross_compiling=yes
1527     else
1528         { { echo "$as_me:1528: error: cannot run C compiled programs.
1529 If you meant to cross compile, use \`--host'." >&5
1530 echo "$as_me: error: cannot run C compiled programs.
1531 If you meant to cross compile, use \`--host'." >&2;}
1532    { (exit 1); exit 1; }; }
1533     fi
1534   fi
1535 fi
1536 echo "$as_me:1536: result: yes" >&5
1537 echo "${ECHO_T}yes" >&6
1538
1539 rm -f a.out a.exe conftest$ac_cv_exeext
1540 ac_clean_files=$ac_clean_files_save
1541 # Check the compiler produces executables we can run.  If not, either
1542 # the compiler is broken, or we cross compile.
1543 echo "$as_me:1543: checking whether we are cross compiling" >&5
1544 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1545 echo "$as_me:1545: result: $cross_compiling" >&5
1546 echo "${ECHO_T}$cross_compiling" >&6
1547
1548 echo "$as_me:1548: checking for executable suffix" >&5
1549 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1550 if { (eval echo "$as_me:1550: \"$ac_link\"") >&5
1551   (eval $ac_link) 2>&5
1552   ac_status=$?
1553   echo "$as_me:1553: \$? = $ac_status" >&5
1554   (exit $ac_status); }; then
1555   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1556 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1557 # work properly (i.e., refer to `conftest.exe'), while it won't with
1558 # `rm'.
1559 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1560   case $ac_file in
1561     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1562     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1563           export ac_cv_exeext
1564           break;;
1565     * ) break;;
1566   esac
1567 done
1568 else
1569   { { echo "$as_me:1569: error: cannot compute EXEEXT: cannot compile and link" >&5
1570 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1571    { (exit 1); exit 1; }; }
1572 fi
1573
1574 rm -f conftest$ac_cv_exeext
1575 echo "$as_me:1575: result: $ac_cv_exeext" >&5
1576 echo "${ECHO_T}$ac_cv_exeext" >&6
1577
1578 rm -f conftest.$ac_ext
1579 EXEEXT=$ac_cv_exeext
1580 ac_exeext=$EXEEXT
1581 echo "$as_me:1581: checking for object suffix" >&5
1582 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1583 if test "${ac_cv_objext+set}" = set; then
1584   echo $ECHO_N "(cached) $ECHO_C" >&6
1585 else
1586   cat >conftest.$ac_ext <<_ACEOF
1587 #line 1587 "configure"
1588 #include "confdefs.h"
1589
1590 int
1591 main ()
1592 {
1593
1594   ;
1595   return 0;
1596 }
1597 _ACEOF
1598 rm -f conftest.o conftest.obj
1599 if { (eval echo "$as_me:1599: \"$ac_compile\"") >&5
1600   (eval $ac_compile) 2>&5
1601   ac_status=$?
1602   echo "$as_me:1602: \$? = $ac_status" >&5
1603   (exit $ac_status); }; then
1604   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1605   case $ac_file in
1606     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1607     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1608        break;;
1609   esac
1610 done
1611 else
1612   echo "$as_me: failed program was:" >&5
1613 cat conftest.$ac_ext >&5
1614 { { echo "$as_me:1614: error: cannot compute OBJEXT: cannot compile" >&5
1615 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1616    { (exit 1); exit 1; }; }
1617 fi
1618
1619 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1620 fi
1621 echo "$as_me:1621: result: $ac_cv_objext" >&5
1622 echo "${ECHO_T}$ac_cv_objext" >&6
1623 OBJEXT=$ac_cv_objext
1624 ac_objext=$OBJEXT
1625 echo "$as_me:1625: checking whether we are using the GNU C compiler" >&5
1626 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1627 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1628   echo $ECHO_N "(cached) $ECHO_C" >&6
1629 else
1630   cat >conftest.$ac_ext <<_ACEOF
1631 #line 1631 "configure"
1632 #include "confdefs.h"
1633
1634 int
1635 main ()
1636 {
1637 #ifndef __GNUC__
1638        choke me
1639 #endif
1640
1641   ;
1642   return 0;
1643 }
1644 _ACEOF
1645 rm -f conftest.$ac_objext
1646 if { (eval echo "$as_me:1646: \"$ac_compile\"") >&5
1647   (eval $ac_compile) 2>&5
1648   ac_status=$?
1649   echo "$as_me:1649: \$? = $ac_status" >&5
1650   (exit $ac_status); } &&
1651          { ac_try='test -s conftest.$ac_objext'
1652   { (eval echo "$as_me:1652: \"$ac_try\"") >&5
1653   (eval $ac_try) 2>&5
1654   ac_status=$?
1655   echo "$as_me:1655: \$? = $ac_status" >&5
1656   (exit $ac_status); }; }; then
1657   ac_compiler_gnu=yes
1658 else
1659   echo "$as_me: failed program was:" >&5
1660 cat conftest.$ac_ext >&5
1661 ac_compiler_gnu=no
1662 fi
1663 rm -f conftest.$ac_objext conftest.$ac_ext
1664 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1665
1666 fi
1667 echo "$as_me:1667: result: $ac_cv_c_compiler_gnu" >&5
1668 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1669 GCC=`test $ac_compiler_gnu = yes && echo yes`
1670 ac_test_CFLAGS=${CFLAGS+set}
1671 ac_save_CFLAGS=$CFLAGS
1672 CFLAGS="-g"
1673 echo "$as_me:1673: checking whether $CC accepts -g" >&5
1674 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1675 if test "${ac_cv_prog_cc_g+set}" = set; then
1676   echo $ECHO_N "(cached) $ECHO_C" >&6
1677 else
1678   cat >conftest.$ac_ext <<_ACEOF
1679 #line 1679 "configure"
1680 #include "confdefs.h"
1681
1682 int
1683 main ()
1684 {
1685
1686   ;
1687   return 0;
1688 }
1689 _ACEOF
1690 rm -f conftest.$ac_objext
1691 if { (eval echo "$as_me:1691: \"$ac_compile\"") >&5
1692   (eval $ac_compile) 2>&5
1693   ac_status=$?
1694   echo "$as_me:1694: \$? = $ac_status" >&5
1695   (exit $ac_status); } &&
1696          { ac_try='test -s conftest.$ac_objext'
1697   { (eval echo "$as_me:1697: \"$ac_try\"") >&5
1698   (eval $ac_try) 2>&5
1699   ac_status=$?
1700   echo "$as_me:1700: \$? = $ac_status" >&5
1701   (exit $ac_status); }; }; then
1702   ac_cv_prog_cc_g=yes
1703 else
1704   echo "$as_me: failed program was:" >&5
1705 cat conftest.$ac_ext >&5
1706 ac_cv_prog_cc_g=no
1707 fi
1708 rm -f conftest.$ac_objext conftest.$ac_ext
1709 fi
1710 echo "$as_me:1710: result: $ac_cv_prog_cc_g" >&5
1711 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1712 if test "$ac_test_CFLAGS" = set; then
1713   CFLAGS=$ac_save_CFLAGS
1714 elif test $ac_cv_prog_cc_g = yes; then
1715   if test "$GCC" = yes; then
1716     CFLAGS="-g -O2"
1717   else
1718     CFLAGS="-g"
1719   fi
1720 else
1721   if test "$GCC" = yes; then
1722     CFLAGS="-O2"
1723   else
1724     CFLAGS=
1725   fi
1726 fi
1727 # Some people use a C++ compiler to compile C.  Since we use `exit',
1728 # in C++ we need to declare it.  In case someone uses the same compiler
1729 # for both compiling C and C++ we need to have the C++ compiler decide
1730 # the declaration of exit, since it's the most demanding environment.
1731 cat >conftest.$ac_ext <<_ACEOF
1732 #ifndef __cplusplus
1733   choke me
1734 #endif
1735 _ACEOF
1736 rm -f conftest.$ac_objext
1737 if { (eval echo "$as_me:1737: \"$ac_compile\"") >&5
1738   (eval $ac_compile) 2>&5
1739   ac_status=$?
1740   echo "$as_me:1740: \$? = $ac_status" >&5
1741   (exit $ac_status); } &&
1742          { ac_try='test -s conftest.$ac_objext'
1743   { (eval echo "$as_me:1743: \"$ac_try\"") >&5
1744   (eval $ac_try) 2>&5
1745   ac_status=$?
1746   echo "$as_me:1746: \$? = $ac_status" >&5
1747   (exit $ac_status); }; }; then
1748   for ac_declaration in \
1749    ''\
1750    '#include <stdlib.h>' \
1751    'extern "C" void std::exit (int) throw (); using std::exit;' \
1752    'extern "C" void std::exit (int); using std::exit;' \
1753    'extern "C" void exit (int) throw ();' \
1754    'extern "C" void exit (int);' \
1755    'void exit (int);'
1756 do
1757   cat >conftest.$ac_ext <<_ACEOF
1758 #line 1758 "configure"
1759 #include "confdefs.h"
1760 #include <stdlib.h>
1761 $ac_declaration
1762 int
1763 main ()
1764 {
1765 exit (42);
1766   ;
1767   return 0;
1768 }
1769 _ACEOF
1770 rm -f conftest.$ac_objext
1771 if { (eval echo "$as_me:1771: \"$ac_compile\"") >&5
1772   (eval $ac_compile) 2>&5
1773   ac_status=$?
1774   echo "$as_me:1774: \$? = $ac_status" >&5
1775   (exit $ac_status); } &&
1776          { ac_try='test -s conftest.$ac_objext'
1777   { (eval echo "$as_me:1777: \"$ac_try\"") >&5
1778   (eval $ac_try) 2>&5
1779   ac_status=$?
1780   echo "$as_me:1780: \$? = $ac_status" >&5
1781   (exit $ac_status); }; }; then
1782   :
1783 else
1784   echo "$as_me: failed program was:" >&5
1785 cat conftest.$ac_ext >&5
1786 continue
1787 fi
1788 rm -f conftest.$ac_objext conftest.$ac_ext
1789   cat >conftest.$ac_ext <<_ACEOF
1790 #line 1790 "configure"
1791 #include "confdefs.h"
1792 $ac_declaration
1793 int
1794 main ()
1795 {
1796 exit (42);
1797   ;
1798   return 0;
1799 }
1800 _ACEOF
1801 rm -f conftest.$ac_objext
1802 if { (eval echo "$as_me:1802: \"$ac_compile\"") >&5
1803   (eval $ac_compile) 2>&5
1804   ac_status=$?
1805   echo "$as_me:1805: \$? = $ac_status" >&5
1806   (exit $ac_status); } &&
1807          { ac_try='test -s conftest.$ac_objext'
1808   { (eval echo "$as_me:1808: \"$ac_try\"") >&5
1809   (eval $ac_try) 2>&5
1810   ac_status=$?
1811   echo "$as_me:1811: \$? = $ac_status" >&5
1812   (exit $ac_status); }; }; then
1813   break
1814 else
1815   echo "$as_me: failed program was:" >&5
1816 cat conftest.$ac_ext >&5
1817 fi
1818 rm -f conftest.$ac_objext conftest.$ac_ext
1819 done
1820 rm -f conftest*
1821 if test -n "$ac_declaration"; then
1822   echo '#ifdef __cplusplus' >>confdefs.h
1823   echo $ac_declaration      >>confdefs.h
1824   echo '#endif'             >>confdefs.h
1825 fi
1826
1827 else
1828   echo "$as_me: failed program was:" >&5
1829 cat conftest.$ac_ext >&5
1830 fi
1831 rm -f conftest.$ac_objext conftest.$ac_ext
1832 ac_ext=c
1833 ac_cpp='$CPP $CPPFLAGS'
1834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1837
1838 # Check whether --with-linker or --without-linker was given.
1839 if test "${with_linker+set}" = set; then
1840   withval="$with_linker"
1841   echo "$as_me:1841: result: LD=$withval" >&5
1842 echo "${ECHO_T}LD=$withval" >&6
1843 LD=$withval
1844 else
1845   if test -z "$LD" ; then LD=$CC; fi
1846 echo "$as_me:1846: result: LD defaults to $LD" >&5
1847 echo "${ECHO_T}LD defaults to $LD" >&6
1848 fi; export LD
1849
1850 # Check whether --with-ccopts or --without-ccopts was given.
1851 if test "${with_ccopts+set}" = set; then
1852   withval="$with_ccopts"
1853   echo "$as_me:1853: result: CCOPTS is $withval" >&5
1854 echo "${ECHO_T}CCOPTS is $withval" >&6
1855 CFLAGS=$withval
1856 fi;
1857 ac_ext=c
1858 ac_cpp='$CPP $CPPFLAGS'
1859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1862 echo "$as_me:1862: checking how to run the C preprocessor" >&5
1863 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1864 # On Suns, sometimes $CPP names a directory.
1865 if test -n "$CPP" && test -d "$CPP"; then
1866   CPP=
1867 fi
1868 if test -z "$CPP"; then
1869   if test "${ac_cv_prog_CPP+set}" = set; then
1870   echo $ECHO_N "(cached) $ECHO_C" >&6
1871 else
1872       # Double quotes because CPP needs to be expanded
1873     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1874     do
1875       ac_preproc_ok=false
1876 for ac_c_preproc_warn_flag in '' yes
1877 do
1878   # Use a header file that comes with gcc, so configuring glibc
1879   # with a fresh cross-compiler works.
1880   # On the NeXT, cc -E runs the code through the compiler's parser,
1881   # not just through cpp. "Syntax error" is here to catch this case.
1882   cat >conftest.$ac_ext <<_ACEOF
1883 #line 1883 "configure"
1884 #include "confdefs.h"
1885 #include <assert.h>
1886                      Syntax error
1887 _ACEOF
1888 if { (eval echo "$as_me:1888: \"$ac_cpp conftest.$ac_ext\"") >&5
1889   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1890   ac_status=$?
1891   egrep -v '^ *\+' conftest.er1 >conftest.err
1892   rm -f conftest.er1
1893   cat conftest.err >&5
1894   echo "$as_me:1894: \$? = $ac_status" >&5
1895   (exit $ac_status); } >/dev/null; then
1896   if test -s conftest.err; then
1897     ac_cpp_err=$ac_c_preproc_warn_flag
1898   else
1899     ac_cpp_err=
1900   fi
1901 else
1902   ac_cpp_err=yes
1903 fi
1904 if test -z "$ac_cpp_err"; then
1905   :
1906 else
1907   echo "$as_me: failed program was:" >&5
1908   cat conftest.$ac_ext >&5
1909   # Broken: fails on valid input.
1910 continue
1911 fi
1912 rm -f conftest.err conftest.$ac_ext
1913
1914   # OK, works on sane cases.  Now check whether non-existent headers
1915   # can be detected and how.
1916   cat >conftest.$ac_ext <<_ACEOF
1917 #line 1917 "configure"
1918 #include "confdefs.h"
1919 #include <ac_nonexistent.h>
1920 _ACEOF
1921 if { (eval echo "$as_me:1921: \"$ac_cpp conftest.$ac_ext\"") >&5
1922   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1923   ac_status=$?
1924   egrep -v '^ *\+' conftest.er1 >conftest.err
1925   rm -f conftest.er1
1926   cat conftest.err >&5
1927   echo "$as_me:1927: \$? = $ac_status" >&5
1928   (exit $ac_status); } >/dev/null; then
1929   if test -s conftest.err; then
1930     ac_cpp_err=$ac_c_preproc_warn_flag
1931   else
1932     ac_cpp_err=
1933   fi
1934 else
1935   ac_cpp_err=yes
1936 fi
1937 if test -z "$ac_cpp_err"; then
1938   # Broken: success on invalid input.
1939 continue
1940 else
1941   echo "$as_me: failed program was:" >&5
1942   cat conftest.$ac_ext >&5
1943   # Passes both tests.
1944 ac_preproc_ok=:
1945 break
1946 fi
1947 rm -f conftest.err conftest.$ac_ext
1948
1949 done
1950 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1951 rm -f conftest.err conftest.$ac_ext
1952 if $ac_preproc_ok; then
1953   break
1954 fi
1955
1956     done
1957     ac_cv_prog_CPP=$CPP
1958
1959 fi
1960   CPP=$ac_cv_prog_CPP
1961 else
1962   ac_cv_prog_CPP=$CPP
1963 fi
1964 echo "$as_me:1964: result: $CPP" >&5
1965 echo "${ECHO_T}$CPP" >&6
1966 ac_preproc_ok=false
1967 for ac_c_preproc_warn_flag in '' yes
1968 do
1969   # Use a header file that comes with gcc, so configuring glibc
1970   # with a fresh cross-compiler works.
1971   # On the NeXT, cc -E runs the code through the compiler's parser,
1972   # not just through cpp. "Syntax error" is here to catch this case.
1973   cat >conftest.$ac_ext <<_ACEOF
1974 #line 1974 "configure"
1975 #include "confdefs.h"
1976 #include <assert.h>
1977                      Syntax error
1978 _ACEOF
1979 if { (eval echo "$as_me:1979: \"$ac_cpp conftest.$ac_ext\"") >&5
1980   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1981   ac_status=$?
1982   egrep -v '^ *\+' conftest.er1 >conftest.err
1983   rm -f conftest.er1
1984   cat conftest.err >&5
1985   echo "$as_me:1985: \$? = $ac_status" >&5
1986   (exit $ac_status); } >/dev/null; then
1987   if test -s conftest.err; then
1988     ac_cpp_err=$ac_c_preproc_warn_flag
1989   else
1990     ac_cpp_err=
1991   fi
1992 else
1993   ac_cpp_err=yes
1994 fi
1995 if test -z "$ac_cpp_err"; then
1996   :
1997 else
1998   echo "$as_me: failed program was:" >&5
1999   cat conftest.$ac_ext >&5
2000   # Broken: fails on valid input.
2001 continue
2002 fi
2003 rm -f conftest.err conftest.$ac_ext
2004
2005   # OK, works on sane cases.  Now check whether non-existent headers
2006   # can be detected and how.
2007   cat >conftest.$ac_ext <<_ACEOF
2008 #line 2008 "configure"
2009 #include "confdefs.h"
2010 #include <ac_nonexistent.h>
2011 _ACEOF
2012 if { (eval echo "$as_me:2012: \"$ac_cpp conftest.$ac_ext\"") >&5
2013   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2014   ac_status=$?
2015   egrep -v '^ *\+' conftest.er1 >conftest.err
2016   rm -f conftest.er1
2017   cat conftest.err >&5
2018   echo "$as_me:2018: \$? = $ac_status" >&5
2019   (exit $ac_status); } >/dev/null; then
2020   if test -s conftest.err; then
2021     ac_cpp_err=$ac_c_preproc_warn_flag
2022   else
2023     ac_cpp_err=
2024   fi
2025 else
2026   ac_cpp_err=yes
2027 fi
2028 if test -z "$ac_cpp_err"; then
2029   # Broken: success on invalid input.
2030 continue
2031 else
2032   echo "$as_me: failed program was:" >&5
2033   cat conftest.$ac_ext >&5
2034   # Passes both tests.
2035 ac_preproc_ok=:
2036 break
2037 fi
2038 rm -f conftest.err conftest.$ac_ext
2039
2040 done
2041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2042 rm -f conftest.err conftest.$ac_ext
2043 if $ac_preproc_ok; then
2044   :
2045 else
2046   { { echo "$as_me:2046: error: C preprocessor \"$CPP\" fails sanity check" >&5
2047 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2048    { (exit 1); exit 1; }; }
2049 fi
2050
2051 ac_ext=c
2052 ac_cpp='$CPP $CPPFLAGS'
2053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2056
2057 echo "$as_me:2057: checking for linux/fs.h" >&5
2058 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6
2059 if test "${ac_cv_header_linux_fs_h+set}" = set; then
2060   echo $ECHO_N "(cached) $ECHO_C" >&6
2061 else
2062   cat >conftest.$ac_ext <<_ACEOF
2063 #line 2063 "configure"
2064 #include "confdefs.h"
2065 #include <linux/fs.h>
2066 _ACEOF
2067 if { (eval echo "$as_me:2067: \"$ac_cpp conftest.$ac_ext\"") >&5
2068   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2069   ac_status=$?
2070   egrep -v '^ *\+' conftest.er1 >conftest.err
2071   rm -f conftest.er1
2072   cat conftest.err >&5
2073   echo "$as_me:2073: \$? = $ac_status" >&5
2074   (exit $ac_status); } >/dev/null; then
2075   if test -s conftest.err; then
2076     ac_cpp_err=$ac_c_preproc_warn_flag
2077   else
2078     ac_cpp_err=
2079   fi
2080 else
2081   ac_cpp_err=yes
2082 fi
2083 if test -z "$ac_cpp_err"; then
2084   ac_cv_header_linux_fs_h=yes
2085 else
2086   echo "$as_me: failed program was:" >&5
2087   cat conftest.$ac_ext >&5
2088   ac_cv_header_linux_fs_h=no
2089 fi
2090 rm -f conftest.err conftest.$ac_ext
2091 fi
2092 echo "$as_me:2092: result: $ac_cv_header_linux_fs_h" >&5
2093 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6
2094 if test $ac_cv_header_linux_fs_h = yes; then
2095   linux_headers=yes
2096 else
2097   linux_headers=no
2098 fi
2099
2100 if test "$linux_headers" != yes; then
2101   LINUX_INCLUDE='-I$(top_builddir)/include'
2102 fi
2103
2104 LIB_EXT=.a
2105 STATIC_LIB_EXT=.a
2106 PROFILE_LIB_EXT=.a
2107
2108 # Check whether --with-ldopts or --without-ldopts was given.
2109 if test "${with_ldopts+set}" = set; then
2110   withval="$with_ldopts"
2111   echo "$as_me:2111: result: LDFLAGS is $withval" >&5
2112 echo "${ECHO_T}LDFLAGS is $withval" >&6
2113 LDFLAGS=$withval
2114 else
2115   LDFLAGS=
2116 fi;
2117
2118 # Check whether --with-root-prefix or --without-root-prefix was given.
2119 if test "${with_root_prefix+set}" = set; then
2120   withval="$with_root_prefix"
2121   root_prefix=$withval
2122 else
2123   root_prefix=NONE
2124 fi; # Check whether --enable-compression or --disable-compression was given.
2125 if test "${enable_compression+set}" = set; then
2126   enableval="$enable_compression"
2127   if test "$enableval" = "no"
2128 then
2129         echo "Disabling compression support"
2130 else
2131         cat >>confdefs.h <<\EOF
2132 #define ENABLE_COMPRESSION 1
2133 EOF
2134
2135         echo "Enabling compression support"
2136         echo "WARNING: Compression support is experimental"
2137 fi
2138
2139 else
2140   echo "Disabling compression support by default"
2141
2142 fi;
2143 # Check whether --enable-htree or --disable-htree was given.
2144 if test "${enable_htree+set}" = set; then
2145   enableval="$enable_htree"
2146   if test "$enableval" = "no"
2147 then
2148         HTREE_CMT=#
2149         echo "Disabling htree directory support"
2150 else
2151         HTREE_CMT=
2152         cat >>confdefs.h <<\EOF
2153 #define ENABLE_HTREE 1
2154 EOF
2155
2156         echo "Enabling htree directory support"
2157 fi
2158
2159 else
2160   HTREE_CMT=
2161 cat >>confdefs.h <<\EOF
2162 #define ENABLE_HTREE 1
2163 EOF
2164
2165 echo "Enabling htree directory support by default"
2166
2167 fi;
2168
2169 # Check whether --enable-htree-clear or --disable-htree-clear was given.
2170 if test "${enable_htree_clear+set}" = set; then
2171   enableval="$enable_htree_clear"
2172   if test "$enableval" = "no"
2173 then
2174         HTREE_CLR_CMT=#
2175         echo "Disabling htree clearing"
2176 else
2177         HTREE_CLR_CMT=
2178         cat >>confdefs.h <<\EOF
2179 #define ENABLE_HTREE_CLEAR 1
2180 EOF
2181
2182         echo "Enabling htree clearing"
2183 fi
2184
2185 else
2186   HTREE_CLR_CMT=#
2187 echo "Disabling htree clearing by default"
2188
2189 fi;
2190
2191 # Check whether --enable-evms or --disable-evms was given.
2192 if test "${enable_evms+set}" = set; then
2193   enableval="$enable_evms"
2194   if test "$enableval" == "no"
2195 then
2196         EVMS_CMT="#"
2197         echo "Disabling EVMS plugin"
2198 fi
2199
2200 fi;
2201 EVMS_ABI_CODE=120
2202 # Check whether --enable-evms-10 or --disable-evms-10 was given.
2203 if test "${enable_evms_10+set}" = set; then
2204   enableval="$enable_evms_10"
2205   if test "$enableval" != "no"
2206 then
2207         EVMS_ABI_CODE=100
2208         echo "Enabling EVMS 1.0.0 ABI"
2209 fi
2210
2211 fi;
2212 # Check whether --enable-evms-11 or --disable-evms-11 was given.
2213 if test "${enable_evms_11+set}" = set; then
2214   enableval="$enable_evms_11"
2215   if test "$enableval" != "no"
2216 then
2217         EVMS_ABI_CODE=110
2218         echo "Enabling EVMS 1.1.0 ABI"
2219 fi
2220
2221 fi;
2222 if test "$EVMS_ABI_CODE" = "120"
2223 then
2224         echo "Using EVMS 1.2.0 ABI by default"
2225 fi
2226
2227 # Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
2228 if test "${enable_dll_shlibs+set}" = set; then
2229   enableval="$enable_dll_shlibs"
2230   if test "$enableval" = "no"
2231 then
2232         DLL_CMT=#
2233         MAKEFILE_DLL=/dev/null
2234         echo "Disabling DLL shared libraries"
2235 else
2236         DLL_CMT=
2237         MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
2238         BINARY_TYPE=dllbin
2239         LIB_EXT=.sa
2240         echo "Enabling DLL shared libraries"
2241 fi
2242
2243 else
2244   MAKEFILE_DLL=/dev/null
2245 DLL_CMT=#
2246 echo "Disabling DLL shared libraries by default"
2247
2248 fi;
2249
2250 # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
2251 if test "${enable_elf_shlibs+set}" = set; then
2252   enableval="$enable_elf_shlibs"
2253   if test "$enableval" = "no"
2254 then
2255         ELF_CMT=#
2256         MAKEFILE_ELF=/dev/null
2257         echo "Disabling ELF shared libraries"
2258 else
2259         ELF_CMT=
2260         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
2261         case "$host_os" in
2262         solaris2.*)
2263                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
2264         ;;
2265         esac
2266         BINARY_TYPE=elfbin
2267         LIB_EXT=.so
2268         echo "Enabling ELF shared libraries"
2269 fi
2270
2271 else
2272   MAKEFILE_ELF=/dev/null
2273 ELF_CMT=#
2274 echo "Disabling ELF shared libraries by default"
2275
2276 fi;
2277
2278 # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
2279 if test "${enable_bsd_shlibs+set}" = set; then
2280   enableval="$enable_bsd_shlibs"
2281   if test "$enableval" = "no"
2282 then
2283         BSDLIB_CMT=#
2284         MAKEFILE_BSDLIB=/dev/null
2285         echo "Disabling BSD shared libraries"
2286 else
2287         BSDLIB_CMT=
2288         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
2289         LIB_EXT=.so
2290         case "$host_os" in
2291         darwin*)
2292                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
2293                 LIB_EXT=.dylib
2294         ;;
2295         esac
2296         echo "Enabling BSD shared libraries"
2297 fi
2298
2299 else
2300   MAKEFILE_BSDLIB=/dev/null
2301 BSDLIB_CMT=#
2302 echo "Disabling BSD shared libraries by default"
2303
2304 fi;
2305
2306 # Check whether --enable-profile or --disable-profile was given.
2307 if test "${enable_profile+set}" = set; then
2308   enableval="$enable_profile"
2309   if test "$enableval" = "no"
2310 then
2311         PROFILE_CMT=#
2312         MAKEFILE_PROFILE=/dev/null
2313         echo "Disabling profiling libraries"
2314 else
2315         PROFILE_CMT=
2316         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
2317         PROFILED_LIB_EXT=_p.a
2318         echo "Building profiling libraries"
2319 fi
2320
2321 else
2322   PROFILE_CMT=#
2323 MAKEFILE_PROFILE=/dev/null
2324 echo "Disabling profiling libraries by default"
2325
2326 fi;
2327
2328 # Check whether --enable-checker or --disable-checker was given.
2329 if test "${enable_checker+set}" = set; then
2330   enableval="$enable_checker"
2331   if test "$enableval" = "no"
2332 then
2333         CHECKER_CMT=#
2334         MAKEFILE_CHECKER=/dev/null
2335         echo "Disabling checker libraries"
2336 else
2337         CHECKER_CMT=
2338         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
2339         echo "Building checker libraries"
2340 fi
2341
2342 else
2343   CHECKER_CMT=#
2344 MAKEFILE_CHECKER=/dev/null
2345 echo "Disabling checker libraries by default"
2346
2347 fi;
2348
2349 # Check whether --enable-jbd-debug or --disable-jbd-debug was given.
2350 if test "${enable_jbd_debug+set}" = set; then
2351   enableval="$enable_jbd_debug"
2352   if test "$enableval" = "no"
2353 then
2354         echo "Disabling journal debugging"
2355 else
2356         cat >>confdefs.h <<\EOF
2357 #define CONFIG_JBD_DEBUG 1
2358 EOF
2359
2360         echo "Enabling journal debugging"
2361 fi
2362
2363 else
2364   echo "Disabling journal debugging by default"
2365
2366 fi;
2367 # Check whether --enable-blkid-debug or --disable-blkid-debug was given.
2368 if test "${enable_blkid_debug+set}" = set; then
2369   enableval="$enable_blkid_debug"
2370   if test "$enableval" = "no"
2371 then
2372         echo "Disabling blkid debugging"
2373 else
2374         cat >>confdefs.h <<\EOF
2375 #define CONFIG_BLKID_DEBUG 1
2376 EOF
2377
2378         echo "Enabling blkid debugging"
2379 fi
2380
2381 else
2382   echo "Disabling blkid debugging by default"
2383
2384 fi;
2385 # Check whether --enable-testio-debug or --disable-testio-debug was given.
2386 if test "${enable_testio_debug+set}" = set; then
2387   enableval="$enable_testio_debug"
2388   if test "$enableval" = "no"
2389 then
2390         echo "Disabling testio debugging"
2391 else
2392         cat >>confdefs.h <<\EOF
2393 #define CONFIG_TESTIO_DEBUG 1
2394 EOF
2395
2396         echo "Enabling testio debugging"
2397 fi
2398
2399 else
2400   echo "Disabling testio debugging by default"
2401
2402 fi;
2403 # Check whether --enable-swapfs or --disable-swapfs was given.
2404 if test "${enable_swapfs+set}" = set; then
2405   enableval="$enable_swapfs"
2406   if test "$enableval" = "no"
2407 then
2408         SWAPFS_CMT=#
2409         echo "Disabling swapfs support"
2410 else
2411         SWAPFS_CMT=
2412         cat >>confdefs.h <<\EOF
2413 #define ENABLE_SWAPFS 1
2414 EOF
2415
2416         echo "Enabling swapfs support"
2417 fi
2418
2419 else
2420   SWAPFS_CMT=
2421 echo "Enabling swapfs support by default"
2422 cat >>confdefs.h <<\EOF
2423 #define ENABLE_SWAPFS 1
2424 EOF
2425
2426 fi;
2427
2428 # Check whether --enable-debugfs or --disable-debugfs was given.
2429 if test "${enable_debugfs+set}" = set; then
2430   enableval="$enable_debugfs"
2431   if test "$enableval" = "no"
2432 then
2433         echo "Disabling debugfs support"
2434         DEBUGFS_CMT="#"
2435 else
2436         DEBUGFS_CMT=
2437         echo "Enabling debugfs support"
2438 fi
2439
2440 else
2441   echo "Enabling debugfs support by default"
2442 DEBUGFS_CMT=
2443
2444 fi;
2445
2446 # Check whether --enable-imager or --disable-imager was given.
2447 if test "${enable_imager+set}" = set; then
2448   enableval="$enable_imager"
2449   if test "$enableval" = "no"
2450 then
2451         echo "Disabling e2image support"
2452         IMAGER_CMT="#"
2453 else
2454         IMAGER_CMT=
2455         echo "Enabling e2image support"
2456 fi
2457
2458 else
2459   echo "Enabling e2image support by default"
2460 IMAGER_CMT=
2461
2462 fi;
2463
2464 # Check whether --enable-resizer or --disable-resizer was given.
2465 if test "${enable_resizer+set}" = set; then
2466   enableval="$enable_resizer"
2467   if test "$enableval" = "no"
2468 then
2469         echo "Disabling e2resize support"
2470         RESIZER_CMT="#"
2471 else
2472         RESIZER_CMT=
2473         echo "Enabling e2resize support"
2474 fi
2475
2476 else
2477   echo "Enabling e2resize support by default"
2478 RESIZER_CMT=
2479
2480 fi;
2481
2482 # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
2483 if test "${enable_dynamic_e2fsck+set}" = set; then
2484   enableval="$enable_dynamic_e2fsck"
2485   if test "$enableval" = "no"
2486 then
2487         E2FSCK_TYPE=static
2488         echo "Building e2fsck statically"
2489 else
2490         E2FSCK_TYPE=shared
2491         echo "Building e2fsck dynamically"
2492 fi
2493
2494 else
2495   E2FSCK_TYPE=static
2496 echo "Building e2fsck statically by default"
2497
2498 fi;
2499
2500 # Check whether --enable-fsck or --disable-fsck was given.
2501 if test "${enable_fsck+set}" = set; then
2502   enableval="$enable_fsck"
2503   if test "$enableval" = "no"
2504 then
2505         FSCK_PROG='' FSCK_MAN=''
2506         echo "Not building fsck wrapper"
2507 else
2508         FSCK_PROG=fsck FSCK_MAN=fsck.8
2509         echo "Building fsck wrapper"
2510 fi
2511
2512 else
2513   case "$host_os" in
2514   gnu* | freebsd*-gnu*)
2515     FSCK_PROG='' FSCK_MAN=''
2516     echo "Not building fsck wrapper by default"
2517     ;;
2518   *)
2519     FSCK_PROG=fsck FSCK_MAN=fsck.8
2520     echo "Building fsck wrapper by default"
2521 esac
2522
2523 fi;
2524
2525 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
2526
2527 # Check whether --enable-old-bitops or --disable-old-bitops was given.
2528 if test "${enable_old_bitops+set}" = set; then
2529   enableval="$enable_old_bitops"
2530   if test "$enableval" = "no"
2531 then
2532         echo "Using new (standard) bitmask operations"
2533 else
2534         cat >>confdefs.h <<\EOF
2535 #define EXT2_OLD_BITOPS 1
2536 EOF
2537
2538         echo "Using old (native) bitmask operations"
2539
2540 fi
2541
2542 else
2543   echo "Using standard bitmask operations by default"
2544
2545 fi;
2546 PACKAGE=e2fsprogs
2547 VERSION="$E2FSPROGS_VERSION"
2548 cat >>confdefs.h <<EOF
2549 #define PACKAGE "$PACKAGE"
2550 EOF
2551
2552 cat >>confdefs.h <<EOF
2553 #define VERSION "$VERSION"
2554 EOF
2555
2556 echo "$as_me:2556: checking whether ${MAKE-make} sets \${MAKE}" >&5
2557 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2558 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2559 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2560   echo $ECHO_N "(cached) $ECHO_C" >&6
2561 else
2562   cat >conftest.make <<\EOF
2563 all:
2564         @echo 'ac_maketemp="${MAKE}"'
2565 EOF
2566 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2567 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2568 if test -n "$ac_maketemp"; then
2569   eval ac_cv_prog_make_${ac_make}_set=yes
2570 else
2571   eval ac_cv_prog_make_${ac_make}_set=no
2572 fi
2573 rm -f conftest.make
2574 fi
2575 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2576   echo "$as_me:2576: result: yes" >&5
2577 echo "${ECHO_T}yes" >&6
2578   SET_MAKE=
2579 else
2580   echo "$as_me:2580: result: no" >&5
2581 echo "${ECHO_T}no" >&6
2582   SET_MAKE="MAKE=${MAKE-make}"
2583 fi
2584
2585 # Find a good install program.  We prefer a C program (faster),
2586 # so one script is as good as another.  But avoid the broken or
2587 # incompatible versions:
2588 # SysV /etc/install, /usr/sbin/install
2589 # SunOS /usr/etc/install
2590 # IRIX /sbin/install
2591 # AIX /bin/install
2592 # AmigaOS /C/install, which installs bootblocks on floppy discs
2593 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2594 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2595 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2596 # ./install, which can be erroneously created by make from ./install.sh.
2597 echo "$as_me:2597: checking for a BSD compatible install" >&5
2598 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2599 if test -z "$INSTALL"; then
2600 if test "${ac_cv_path_install+set}" = set; then
2601   echo $ECHO_N "(cached) $ECHO_C" >&6
2602 else
2603     ac_save_IFS=$IFS; IFS=$ac_path_separator
2604   for ac_dir in $PATH; do
2605     IFS=$ac_save_IFS
2606     # Account for people who put trailing slashes in PATH elements.
2607     case $ac_dir/ in
2608     / | ./ | .// | /cC/* \
2609     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2610     | /usr/ucb/* ) ;;
2611     *)
2612       # OSF1 and SCO ODT 3.0 have their own names for install.
2613       # Don't use installbsd from OSF since it installs stuff as root
2614       # by default.
2615       for ac_prog in ginstall scoinst install; do
2616         if $as_executable_p "$ac_dir/$ac_prog"; then
2617           if test $ac_prog = install &&
2618             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2619             # AIX install.  It has an incompatible calling convention.
2620             :
2621           elif test $ac_prog = install &&
2622             grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2623             # program-specific install script used by HP pwplus--don't use.
2624             :
2625           else
2626             ac_cv_path_install="$ac_dir/$ac_prog -c"
2627             break 2
2628           fi
2629         fi
2630       done
2631       ;;
2632     esac
2633   done
2634
2635 fi
2636   if test "${ac_cv_path_install+set}" = set; then
2637     INSTALL=$ac_cv_path_install
2638   else
2639     # As a last resort, use the slow shell script.  We don't cache a
2640     # path for INSTALL within a source directory, because that will
2641     # break other packages using the cache if that directory is
2642     # removed, or if the path is relative.
2643     INSTALL=$ac_install_sh
2644   fi
2645 fi
2646 echo "$as_me:2646: result: $INSTALL" >&5
2647 echo "${ECHO_T}$INSTALL" >&6
2648
2649 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2650 # It thinks the first close brace ends the variable substitution.
2651 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2652
2653 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2654
2655 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2656
2657         MKINSTALLDIRS=
2658   if test -n "$ac_aux_dir"; then
2659     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
2660   fi
2661   if test -z "$MKINSTALLDIRS"; then
2662     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2663   fi
2664
2665         # Extract the first word of "msgfmt", so it can be a program name with args.
2666 set dummy msgfmt; ac_word=$2
2667 echo "$as_me:2667: checking for $ac_word" >&5
2668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2669 if test "${ac_cv_path_MSGFMT+set}" = set; then
2670   echo $ECHO_N "(cached) $ECHO_C" >&6
2671 else
2672   case "$MSGFMT" in
2673   /*)
2674   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2675   ;;
2676   *)
2677   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2678   for ac_dir in $PATH; do
2679     test -z "$ac_dir" && ac_dir=.
2680     if test -f $ac_dir/$ac_word; then
2681       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
2682      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2683         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2684         break
2685       fi
2686     fi
2687   done
2688   IFS="$ac_save_ifs"
2689   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2690   ;;
2691 esac
2692 fi
2693 MSGFMT="$ac_cv_path_MSGFMT"
2694 if test "$MSGFMT" != ":"; then
2695   echo "$as_me:2695: result: $MSGFMT" >&5
2696 echo "${ECHO_T}$MSGFMT" >&6
2697 else
2698   echo "$as_me:2698: result: no" >&5
2699 echo "${ECHO_T}no" >&6
2700 fi
2701
2702   # Extract the first word of "gmsgfmt", so it can be a program name with args.
2703 set dummy gmsgfmt; ac_word=$2
2704 echo "$as_me:2704: checking for $ac_word" >&5
2705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2706 if test "${ac_cv_path_GMSGFMT+set}" = set; then
2707   echo $ECHO_N "(cached) $ECHO_C" >&6
2708 else
2709   case $GMSGFMT in
2710   [\\/]* | ?:[\\/]*)
2711   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2712   ;;
2713   *)
2714   ac_save_IFS=$IFS; IFS=$ac_path_separator
2715 ac_dummy="$PATH"
2716 for ac_dir in $ac_dummy; do
2717   IFS=$ac_save_IFS
2718   test -z "$ac_dir" && ac_dir=.
2719   if $as_executable_p "$ac_dir/$ac_word"; then
2720    ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2721    echo "$as_me:2721: found $ac_dir/$ac_word" >&5
2722    break
2723 fi
2724 done
2725
2726   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2727   ;;
2728 esac
2729 fi
2730 GMSGFMT=$ac_cv_path_GMSGFMT
2731
2732 if test -n "$GMSGFMT"; then
2733   echo "$as_me:2733: result: $GMSGFMT" >&5
2734 echo "${ECHO_T}$GMSGFMT" >&6
2735 else
2736   echo "$as_me:2736: result: no" >&5
2737 echo "${ECHO_T}no" >&6
2738 fi
2739
2740         # Extract the first word of "xgettext", so it can be a program name with args.
2741 set dummy xgettext; ac_word=$2
2742 echo "$as_me:2742: checking for $ac_word" >&5
2743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2744 if test "${ac_cv_path_XGETTEXT+set}" = set; then
2745   echo $ECHO_N "(cached) $ECHO_C" >&6
2746 else
2747   case "$XGETTEXT" in
2748   /*)
2749   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2750   ;;
2751   *)
2752   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2753   for ac_dir in $PATH; do
2754     test -z "$ac_dir" && ac_dir=.
2755     if test -f $ac_dir/$ac_word; then
2756       if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
2757      (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2758         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2759         break
2760       fi
2761     fi
2762   done
2763   IFS="$ac_save_ifs"
2764   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2765   ;;
2766 esac
2767 fi
2768 XGETTEXT="$ac_cv_path_XGETTEXT"
2769 if test "$XGETTEXT" != ":"; then
2770   echo "$as_me:2770: result: $XGETTEXT" >&5
2771 echo "${ECHO_T}$XGETTEXT" >&6
2772 else
2773   echo "$as_me:2773: result: no" >&5
2774 echo "${ECHO_T}no" >&6
2775 fi
2776
2777     rm -f messages.po
2778
2779     # Extract the first word of "msgmerge", so it can be a program name with args.
2780 set dummy msgmerge; ac_word=$2
2781 echo "$as_me:2781: checking for $ac_word" >&5
2782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2783 if test "${ac_cv_path_MSGMERGE+set}" = set; then
2784   echo $ECHO_N "(cached) $ECHO_C" >&6
2785 else
2786   case "$MSGMERGE" in
2787   /*)
2788   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2789   ;;
2790   *)
2791   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2792   for ac_dir in $PATH; do
2793     test -z "$ac_dir" && ac_dir=.
2794     if test -f $ac_dir/$ac_word; then
2795       if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
2796         ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
2797         break
2798       fi
2799     fi
2800   done
2801   IFS="$ac_save_ifs"
2802   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
2803   ;;
2804 esac
2805 fi
2806 MSGMERGE="$ac_cv_path_MSGMERGE"
2807 if test "$MSGMERGE" != ":"; then
2808   echo "$as_me:2808: result: $MSGMERGE" >&5
2809 echo "${ECHO_T}$MSGMERGE" >&6
2810 else
2811   echo "$as_me:2811: result: no" >&5
2812 echo "${ECHO_T}no" >&6
2813 fi
2814
2815       if test "$GMSGFMT" != ":"; then
2816             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
2817        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2818       : ;
2819     else
2820       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
2821       echo "$as_me:2821: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
2822 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
2823       GMSGFMT=":"
2824     fi
2825   fi
2826
2827       if test "$XGETTEXT" != ":"; then
2828             if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
2829        (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2830       : ;
2831     else
2832       echo "$as_me:2832: result: found xgettext program is not GNU xgettext; ignore it" >&5
2833 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
2834       XGETTEXT=":"
2835     fi
2836         rm -f messages.po
2837   fi
2838
2839   ac_config_commands="$ac_config_commands default-1"
2840
2841 if test -n "$ac_tool_prefix"; then
2842   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2843 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2844 echo "$as_me:2844: checking for $ac_word" >&5
2845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2846 if test "${ac_cv_prog_RANLIB+set}" = set; then
2847   echo $ECHO_N "(cached) $ECHO_C" >&6
2848 else
2849   if test -n "$RANLIB"; then
2850   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2851 else
2852   ac_save_IFS=$IFS; IFS=$ac_path_separator
2853 ac_dummy="$PATH"
2854 for ac_dir in $ac_dummy; do
2855   IFS=$ac_save_IFS
2856   test -z "$ac_dir" && ac_dir=.
2857   $as_executable_p "$ac_dir/$ac_word" || continue
2858 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2859 echo "$as_me:2859: found $ac_dir/$ac_word" >&5
2860 break
2861 done
2862
2863 fi
2864 fi
2865 RANLIB=$ac_cv_prog_RANLIB
2866 if test -n "$RANLIB"; then
2867   echo "$as_me:2867: result: $RANLIB" >&5
2868 echo "${ECHO_T}$RANLIB" >&6
2869 else
2870   echo "$as_me:2870: result: no" >&5
2871 echo "${ECHO_T}no" >&6
2872 fi
2873
2874 fi
2875 if test -z "$ac_cv_prog_RANLIB"; then
2876   ac_ct_RANLIB=$RANLIB
2877   # Extract the first word of "ranlib", so it can be a program name with args.
2878 set dummy ranlib; ac_word=$2
2879 echo "$as_me:2879: checking for $ac_word" >&5
2880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2881 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2882   echo $ECHO_N "(cached) $ECHO_C" >&6
2883 else
2884   if test -n "$ac_ct_RANLIB"; then
2885   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2886 else
2887   ac_save_IFS=$IFS; IFS=$ac_path_separator
2888 ac_dummy="$PATH"
2889 for ac_dir in $ac_dummy; do
2890   IFS=$ac_save_IFS
2891   test -z "$ac_dir" && ac_dir=.
2892   $as_executable_p "$ac_dir/$ac_word" || continue
2893 ac_cv_prog_ac_ct_RANLIB="ranlib"
2894 echo "$as_me:2894: found $ac_dir/$ac_word" >&5
2895 break
2896 done
2897
2898   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2899 fi
2900 fi
2901 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2902 if test -n "$ac_ct_RANLIB"; then
2903   echo "$as_me:2903: result: $ac_ct_RANLIB" >&5
2904 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2905 else
2906   echo "$as_me:2906: result: no" >&5
2907 echo "${ECHO_T}no" >&6
2908 fi
2909
2910   RANLIB=$ac_ct_RANLIB
2911 else
2912   RANLIB="$ac_cv_prog_RANLIB"
2913 fi
2914
2915         echo "$as_me:2915: checking for strerror in -lcposix" >&5
2916 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2917 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2918   echo $ECHO_N "(cached) $ECHO_C" >&6
2919 else
2920   ac_check_lib_save_LIBS=$LIBS
2921 LIBS="-lcposix  $LIBS"
2922 cat >conftest.$ac_ext <<_ACEOF
2923 #line 2923 "configure"
2924 #include "confdefs.h"
2925
2926 /* Override any gcc2 internal prototype to avoid an error.  */
2927 #ifdef __cplusplus
2928 extern "C"
2929 #endif
2930 /* We use char because int might match the return type of a gcc2
2931    builtin and then its argument prototype would still apply.  */
2932 char strerror ();
2933 int
2934 main ()
2935 {
2936 strerror ();
2937   ;
2938   return 0;
2939 }
2940 _ACEOF
2941 rm -f conftest.$ac_objext conftest$ac_exeext
2942 if { (eval echo "$as_me:2942: \"$ac_link\"") >&5
2943   (eval $ac_link) 2>&5
2944   ac_status=$?
2945   echo "$as_me:2945: \$? = $ac_status" >&5
2946   (exit $ac_status); } &&
2947          { ac_try='test -s conftest$ac_exeext'
2948   { (eval echo "$as_me:2948: \"$ac_try\"") >&5
2949   (eval $ac_try) 2>&5
2950   ac_status=$?
2951   echo "$as_me:2951: \$? = $ac_status" >&5
2952   (exit $ac_status); }; }; then
2953   ac_cv_lib_cposix_strerror=yes
2954 else
2955   echo "$as_me: failed program was:" >&5
2956 cat conftest.$ac_ext >&5
2957 ac_cv_lib_cposix_strerror=no
2958 fi
2959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2960 LIBS=$ac_check_lib_save_LIBS
2961 fi
2962 echo "$as_me:2962: result: $ac_cv_lib_cposix_strerror" >&5
2963 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2964 if test $ac_cv_lib_cposix_strerror = yes; then
2965   LIBS="$LIBS -lcposix"
2966 fi
2967
2968 echo "$as_me:2968: checking for ANSI C header files" >&5
2969 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2970 if test "${ac_cv_header_stdc+set}" = set; then
2971   echo $ECHO_N "(cached) $ECHO_C" >&6
2972 else
2973   cat >conftest.$ac_ext <<_ACEOF
2974 #line 2974 "configure"
2975 #include "confdefs.h"
2976 #include <stdlib.h>
2977 #include <stdarg.h>
2978 #include <string.h>
2979 #include <float.h>
2980
2981 _ACEOF
2982 if { (eval echo "$as_me:2982: \"$ac_cpp conftest.$ac_ext\"") >&5
2983   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2984   ac_status=$?
2985   egrep -v '^ *\+' conftest.er1 >conftest.err
2986   rm -f conftest.er1
2987   cat conftest.err >&5
2988   echo "$as_me:2988: \$? = $ac_status" >&5
2989   (exit $ac_status); } >/dev/null; then
2990   if test -s conftest.err; then
2991     ac_cpp_err=$ac_c_preproc_warn_flag
2992   else
2993     ac_cpp_err=
2994   fi
2995 else
2996   ac_cpp_err=yes
2997 fi
2998 if test -z "$ac_cpp_err"; then
2999   ac_cv_header_stdc=yes
3000 else
3001   echo "$as_me: failed program was:" >&5
3002   cat conftest.$ac_ext >&5
3003   ac_cv_header_stdc=no
3004 fi
3005 rm -f conftest.err conftest.$ac_ext
3006
3007 if test $ac_cv_header_stdc = yes; then
3008   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3009   cat >conftest.$ac_ext <<_ACEOF
3010 #line 3010 "configure"
3011 #include "confdefs.h"
3012 #include <string.h>
3013
3014 _ACEOF
3015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3016   egrep "memchr" >/dev/null 2>&1; then
3017   :
3018 else
3019   ac_cv_header_stdc=no
3020 fi
3021 rm -f conftest*
3022
3023 fi
3024
3025 if test $ac_cv_header_stdc = yes; then
3026   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3027   cat >conftest.$ac_ext <<_ACEOF
3028 #line 3028 "configure"
3029 #include "confdefs.h"
3030 #include <stdlib.h>
3031
3032 _ACEOF
3033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3034   egrep "free" >/dev/null 2>&1; then
3035   :
3036 else
3037   ac_cv_header_stdc=no
3038 fi
3039 rm -f conftest*
3040
3041 fi
3042
3043 if test $ac_cv_header_stdc = yes; then
3044   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3045   if test "$cross_compiling" = yes; then
3046   :
3047 else
3048   cat >conftest.$ac_ext <<_ACEOF
3049 #line 3049 "configure"
3050 #include "confdefs.h"
3051 #include <ctype.h>
3052 #if ((' ' & 0x0FF) == 0x020)
3053 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3054 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3055 #else
3056 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3057                      || ('j' <= (c) && (c) <= 'r') \
3058                      || ('s' <= (c) && (c) <= 'z'))
3059 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3060 #endif
3061
3062 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3063 int
3064 main ()
3065 {
3066   int i;
3067   for (i = 0; i < 256; i++)
3068     if (XOR (islower (i), ISLOWER (i))
3069         || toupper (i) != TOUPPER (i))
3070       exit(2);
3071   exit (0);
3072 }
3073 _ACEOF
3074 rm -f conftest$ac_exeext
3075 if { (eval echo "$as_me:3075: \"$ac_link\"") >&5
3076   (eval $ac_link) 2>&5
3077   ac_status=$?
3078   echo "$as_me:3078: \$? = $ac_status" >&5
3079   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3080   { (eval echo "$as_me:3080: \"$ac_try\"") >&5
3081   (eval $ac_try) 2>&5
3082   ac_status=$?
3083   echo "$as_me:3083: \$? = $ac_status" >&5
3084   (exit $ac_status); }; }; then
3085   :
3086 else
3087   echo "$as_me: program exited with status $ac_status" >&5
3088 echo "$as_me: failed program was:" >&5
3089 cat conftest.$ac_ext >&5
3090 ac_cv_header_stdc=no
3091 fi
3092 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3093 fi
3094 fi
3095 fi
3096 echo "$as_me:3096: result: $ac_cv_header_stdc" >&5
3097 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3098 if test $ac_cv_header_stdc = yes; then
3099
3100 cat >>confdefs.h <<\EOF
3101 #define STDC_HEADERS 1
3102 EOF
3103
3104 fi
3105
3106 echo "$as_me:3106: checking for $CC option to accept ANSI C" >&5
3107 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3108 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3109   echo $ECHO_N "(cached) $ECHO_C" >&6
3110 else
3111   ac_cv_prog_cc_stdc=no
3112 ac_save_CC=$CC
3113 cat >conftest.$ac_ext <<_ACEOF
3114 #line 3114 "configure"
3115 #include "confdefs.h"
3116 #include <stdarg.h>
3117 #include <stdio.h>
3118 #include <sys/types.h>
3119 #include <sys/stat.h>
3120 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3121 struct buf { int x; };
3122 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3123 static char *e (p, i)
3124      char **p;
3125      int i;
3126 {
3127   return p[i];
3128 }
3129 static char *f (char * (*g) (char **, int), char **p, ...)
3130 {
3131   char *s;
3132   va_list v;
3133   va_start (v,p);
3134   s = g (p, va_arg (v,int));
3135   va_end (v);
3136   return s;
3137 }
3138 int test (int i, double x);
3139 struct s1 {int (*f) (int a);};
3140 struct s2 {int (*f) (double a);};
3141 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3142 int argc;
3143 char **argv;
3144 int
3145 main ()
3146 {
3147 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3148   ;
3149   return 0;
3150 }
3151 _ACEOF
3152 # Don't try gcc -ansi; that turns off useful extensions and
3153 # breaks some systems' header files.
3154 # AIX                   -qlanglvl=ansi
3155 # Ultrix and OSF/1      -std1
3156 # HP-UX 10.20 and later -Ae
3157 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3158 # SVR4                  -Xc -D__EXTENSIONS__
3159 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3160 do
3161   CC="$ac_save_CC $ac_arg"
3162   rm -f conftest.$ac_objext
3163 if { (eval echo "$as_me:3163: \"$ac_compile\"") >&5
3164   (eval $ac_compile) 2>&5
3165   ac_status=$?
3166   echo "$as_me:3166: \$? = $ac_status" >&5
3167   (exit $ac_status); } &&
3168          { ac_try='test -s conftest.$ac_objext'
3169   { (eval echo "$as_me:3169: \"$ac_try\"") >&5
3170   (eval $ac_try) 2>&5
3171   ac_status=$?
3172   echo "$as_me:3172: \$? = $ac_status" >&5
3173   (exit $ac_status); }; }; then
3174   ac_cv_prog_cc_stdc=$ac_arg
3175 break
3176 else
3177   echo "$as_me: failed program was:" >&5
3178 cat conftest.$ac_ext >&5
3179 fi
3180 rm -f conftest.$ac_objext
3181 done
3182 rm -f conftest.$ac_ext conftest.$ac_objext
3183 CC=$ac_save_CC
3184
3185 fi
3186
3187 case "x$ac_cv_prog_cc_stdc" in
3188   x|xno)
3189     echo "$as_me:3189: result: none needed" >&5
3190 echo "${ECHO_T}none needed" >&6 ;;
3191   *)
3192     echo "$as_me:3192: result: $ac_cv_prog_cc_stdc" >&5
3193 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3194     CC="$CC $ac_cv_prog_cc_stdc" ;;
3195 esac
3196
3197 echo "$as_me:3197: checking for an ANSI C-conforming const" >&5
3198 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3199 if test "${ac_cv_c_const+set}" = set; then
3200   echo $ECHO_N "(cached) $ECHO_C" >&6
3201 else
3202   cat >conftest.$ac_ext <<_ACEOF
3203 #line 3203 "configure"
3204 #include "confdefs.h"
3205
3206 int
3207 main ()
3208 {
3209 /* FIXME: Include the comments suggested by Paul. */
3210 #ifndef __cplusplus
3211   /* Ultrix mips cc rejects this.  */
3212   typedef int charset[2];
3213   const charset x;
3214   /* SunOS 4.1.1 cc rejects this.  */
3215   char const *const *ccp;
3216   char **p;
3217   /* NEC SVR4.0.2 mips cc rejects this.  */
3218   struct point {int x, y;};
3219   static struct point const zero = {0,0};
3220   /* AIX XL C 1.02.0.0 rejects this.
3221      It does not let you subtract one const X* pointer from another in
3222      an arm of an if-expression whose if-part is not a constant
3223      expression */
3224   const char *g = "string";
3225   ccp = &g + (g ? g-g : 0);
3226   /* HPUX 7.0 cc rejects these. */
3227   ++ccp;
3228   p = (char**) ccp;
3229   ccp = (char const *const *) p;
3230   { /* SCO 3.2v4 cc rejects this.  */
3231     char *t;
3232     char const *s = 0 ? (char *) 0 : (char const *) 0;
3233
3234     *t++ = 0;
3235   }
3236   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3237     int x[] = {25, 17};
3238     const int *foo = &x[0];
3239     ++foo;
3240   }
3241   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3242     typedef const int *iptr;
3243     iptr p = 0;
3244     ++p;
3245   }
3246   { /* AIX XL C 1.02.0.0 rejects this saying
3247        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3248     struct s { int j; const int *ap[3]; };
3249     struct s *b; b->j = 5;
3250   }
3251   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3252     const int foo = 10;
3253   }
3254 #endif
3255
3256   ;
3257   return 0;
3258 }
3259 _ACEOF
3260 rm -f conftest.$ac_objext
3261 if { (eval echo "$as_me:3261: \"$ac_compile\"") >&5
3262   (eval $ac_compile) 2>&5
3263   ac_status=$?
3264   echo "$as_me:3264: \$? = $ac_status" >&5
3265   (exit $ac_status); } &&
3266          { ac_try='test -s conftest.$ac_objext'
3267   { (eval echo "$as_me:3267: \"$ac_try\"") >&5
3268   (eval $ac_try) 2>&5
3269   ac_status=$?
3270   echo "$as_me:3270: \$? = $ac_status" >&5
3271   (exit $ac_status); }; }; then
3272   ac_cv_c_const=yes
3273 else
3274   echo "$as_me: failed program was:" >&5
3275 cat conftest.$ac_ext >&5
3276 ac_cv_c_const=no
3277 fi
3278 rm -f conftest.$ac_objext conftest.$ac_ext
3279 fi
3280 echo "$as_me:3280: result: $ac_cv_c_const" >&5
3281 echo "${ECHO_T}$ac_cv_c_const" >&6
3282 if test $ac_cv_c_const = no; then
3283
3284 cat >>confdefs.h <<\EOF
3285 #define const
3286 EOF
3287
3288 fi
3289
3290 echo "$as_me:3290: checking for inline" >&5
3291 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3292 if test "${ac_cv_c_inline+set}" = set; then
3293   echo $ECHO_N "(cached) $ECHO_C" >&6
3294 else
3295   ac_cv_c_inline=no
3296 for ac_kw in inline __inline__ __inline; do
3297   cat >conftest.$ac_ext <<_ACEOF
3298 #line 3298 "configure"
3299 #include "confdefs.h"
3300 #ifndef __cplusplus
3301 static $ac_kw int static_foo () {return 0; }
3302 $ac_kw int foo () {return 0; }
3303 #endif
3304
3305 _ACEOF
3306 rm -f conftest.$ac_objext
3307 if { (eval echo "$as_me:3307: \"$ac_compile\"") >&5
3308   (eval $ac_compile) 2>&5
3309   ac_status=$?
3310   echo "$as_me:3310: \$? = $ac_status" >&5
3311   (exit $ac_status); } &&
3312          { ac_try='test -s conftest.$ac_objext'
3313   { (eval echo "$as_me:3313: \"$ac_try\"") >&5
3314   (eval $ac_try) 2>&5
3315   ac_status=$?
3316   echo "$as_me:3316: \$? = $ac_status" >&5
3317   (exit $ac_status); }; }; then
3318   ac_cv_c_inline=$ac_kw; break
3319 else
3320   echo "$as_me: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3322 fi
3323 rm -f conftest.$ac_objext conftest.$ac_ext
3324 done
3325
3326 fi
3327 echo "$as_me:3327: result: $ac_cv_c_inline" >&5
3328 echo "${ECHO_T}$ac_cv_c_inline" >&6
3329 case $ac_cv_c_inline in
3330   inline | yes) ;;
3331   no)
3332 cat >>confdefs.h <<\EOF
3333 #define inline
3334 EOF
3335  ;;
3336   *)  cat >>confdefs.h <<EOF
3337 #define inline $ac_cv_c_inline
3338 EOF
3339  ;;
3340 esac
3341
3342 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3343
3344 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3345                   inttypes.h stdint.h unistd.h
3346 do
3347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3348 echo "$as_me:3348: checking for $ac_header" >&5
3349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3351   echo $ECHO_N "(cached) $ECHO_C" >&6
3352 else
3353   cat >conftest.$ac_ext <<_ACEOF
3354 #line 3354 "configure"
3355 #include "confdefs.h"
3356 $ac_includes_default
3357 #include <$ac_header>
3358 _ACEOF
3359 rm -f conftest.$ac_objext
3360 if { (eval echo "$as_me:3360: \"$ac_compile\"") >&5
3361   (eval $ac_compile) 2>&5
3362   ac_status=$?
3363   echo "$as_me:3363: \$? = $ac_status" >&5
3364   (exit $ac_status); } &&
3365          { ac_try='test -s conftest.$ac_objext'
3366   { (eval echo "$as_me:3366: \"$ac_try\"") >&5
3367   (eval $ac_try) 2>&5
3368   ac_status=$?
3369   echo "$as_me:3369: \$? = $ac_status" >&5
3370   (exit $ac_status); }; }; then
3371   eval "$as_ac_Header=yes"
3372 else
3373   echo "$as_me: failed program was:" >&5
3374 cat conftest.$ac_ext >&5
3375 eval "$as_ac_Header=no"
3376 fi
3377 rm -f conftest.$ac_objext conftest.$ac_ext
3378 fi
3379 echo "$as_me:3379: result: `eval echo '${'$as_ac_Header'}'`" >&5
3380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3382   cat >>confdefs.h <<EOF
3383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3384 EOF
3385
3386 fi
3387 done
3388
3389 echo "$as_me:3389: checking for off_t" >&5
3390 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3391 if test "${ac_cv_type_off_t+set}" = set; then
3392   echo $ECHO_N "(cached) $ECHO_C" >&6
3393 else
3394   cat >conftest.$ac_ext <<_ACEOF
3395 #line 3395 "configure"
3396 #include "confdefs.h"
3397 $ac_includes_default
3398 int
3399 main ()
3400 {
3401 if ((off_t *) 0)
3402   return 0;
3403 if (sizeof (off_t))
3404   return 0;
3405   ;
3406   return 0;
3407 }
3408 _ACEOF
3409 rm -f conftest.$ac_objext
3410 if { (eval echo "$as_me:3410: \"$ac_compile\"") >&5
3411   (eval $ac_compile) 2>&5
3412   ac_status=$?
3413   echo "$as_me:3413: \$? = $ac_status" >&5
3414   (exit $ac_status); } &&
3415          { ac_try='test -s conftest.$ac_objext'
3416   { (eval echo "$as_me:3416: \"$ac_try\"") >&5
3417   (eval $ac_try) 2>&5
3418   ac_status=$?
3419   echo "$as_me:3419: \$? = $ac_status" >&5
3420   (exit $ac_status); }; }; then
3421   ac_cv_type_off_t=yes
3422 else
3423   echo "$as_me: failed program was:" >&5
3424 cat conftest.$ac_ext >&5
3425 ac_cv_type_off_t=no
3426 fi
3427 rm -f conftest.$ac_objext conftest.$ac_ext
3428 fi
3429 echo "$as_me:3429: result: $ac_cv_type_off_t" >&5
3430 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3431 if test $ac_cv_type_off_t = yes; then
3432   :
3433 else
3434
3435 cat >>confdefs.h <<EOF
3436 #define off_t long
3437 EOF
3438
3439 fi
3440
3441 echo "$as_me:3441: checking for size_t" >&5
3442 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3443 if test "${ac_cv_type_size_t+set}" = set; then
3444   echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446   cat >conftest.$ac_ext <<_ACEOF
3447 #line 3447 "configure"
3448 #include "confdefs.h"
3449 $ac_includes_default
3450 int
3451 main ()
3452 {
3453 if ((size_t *) 0)
3454   return 0;
3455 if (sizeof (size_t))
3456   return 0;
3457   ;
3458   return 0;
3459 }
3460 _ACEOF
3461 rm -f conftest.$ac_objext
3462 if { (eval echo "$as_me:3462: \"$ac_compile\"") >&5
3463   (eval $ac_compile) 2>&5
3464   ac_status=$?
3465   echo "$as_me:3465: \$? = $ac_status" >&5
3466   (exit $ac_status); } &&
3467          { ac_try='test -s conftest.$ac_objext'
3468   { (eval echo "$as_me:3468: \"$ac_try\"") >&5
3469   (eval $ac_try) 2>&5
3470   ac_status=$?
3471   echo "$as_me:3471: \$? = $ac_status" >&5
3472   (exit $ac_status); }; }; then
3473   ac_cv_type_size_t=yes
3474 else
3475   echo "$as_me: failed program was:" >&5
3476 cat conftest.$ac_ext >&5
3477 ac_cv_type_size_t=no
3478 fi
3479 rm -f conftest.$ac_objext conftest.$ac_ext
3480 fi
3481 echo "$as_me:3481: result: $ac_cv_type_size_t" >&5
3482 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3483 if test $ac_cv_type_size_t = yes; then
3484   :
3485 else
3486
3487 cat >>confdefs.h <<EOF
3488 #define size_t unsigned
3489 EOF
3490
3491 fi
3492
3493 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3494 # for constant arguments.  Useless!
3495 echo "$as_me:3495: checking for working alloca.h" >&5
3496 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3497 if test "${ac_cv_working_alloca_h+set}" = set; then
3498   echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500   cat >conftest.$ac_ext <<_ACEOF
3501 #line 3501 "configure"
3502 #include "confdefs.h"
3503 #include <alloca.h>
3504 int
3505 main ()
3506 {
3507 char *p = (char *) alloca (2 * sizeof (int));
3508   ;
3509   return 0;
3510 }
3511 _ACEOF
3512 rm -f conftest.$ac_objext conftest$ac_exeext
3513 if { (eval echo "$as_me:3513: \"$ac_link\"") >&5
3514   (eval $ac_link) 2>&5
3515   ac_status=$?
3516   echo "$as_me:3516: \$? = $ac_status" >&5
3517   (exit $ac_status); } &&
3518          { ac_try='test -s conftest$ac_exeext'
3519   { (eval echo "$as_me:3519: \"$ac_try\"") >&5
3520   (eval $ac_try) 2>&5
3521   ac_status=$?
3522   echo "$as_me:3522: \$? = $ac_status" >&5
3523   (exit $ac_status); }; }; then
3524   ac_cv_working_alloca_h=yes
3525 else
3526   echo "$as_me: failed program was:" >&5
3527 cat conftest.$ac_ext >&5
3528 ac_cv_working_alloca_h=no
3529 fi
3530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3531 fi
3532 echo "$as_me:3532: result: $ac_cv_working_alloca_h" >&5
3533 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3534 if test $ac_cv_working_alloca_h = yes; then
3535
3536 cat >>confdefs.h <<\EOF
3537 #define HAVE_ALLOCA_H 1
3538 EOF
3539
3540 fi
3541
3542 echo "$as_me:3542: checking for alloca" >&5
3543 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3544 if test "${ac_cv_func_alloca_works+set}" = set; then
3545   echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547   cat >conftest.$ac_ext <<_ACEOF
3548 #line 3548 "configure"
3549 #include "confdefs.h"
3550 #ifdef __GNUC__
3551 # define alloca __builtin_alloca
3552 #else
3553 # ifdef _MSC_VER
3554 #  include <malloc.h>
3555 #  define alloca _alloca
3556 # else
3557 #  if HAVE_ALLOCA_H
3558 #   include <alloca.h>
3559 #  else
3560 #   ifdef _AIX
3561  #pragma alloca
3562 #   else
3563 #    ifndef alloca /* predefined by HP cc +Olibcalls */
3564 char *alloca ();
3565 #    endif
3566 #   endif
3567 #  endif
3568 # endif
3569 #endif
3570
3571 int
3572 main ()
3573 {
3574 char *p = (char *) alloca (1);
3575   ;
3576   return 0;
3577 }
3578 _ACEOF
3579 rm -f conftest.$ac_objext conftest$ac_exeext
3580 if { (eval echo "$as_me:3580: \"$ac_link\"") >&5
3581   (eval $ac_link) 2>&5
3582   ac_status=$?
3583   echo "$as_me:3583: \$? = $ac_status" >&5
3584   (exit $ac_status); } &&
3585          { ac_try='test -s conftest$ac_exeext'
3586   { (eval echo "$as_me:3586: \"$ac_try\"") >&5
3587   (eval $ac_try) 2>&5
3588   ac_status=$?
3589   echo "$as_me:3589: \$? = $ac_status" >&5
3590   (exit $ac_status); }; }; then
3591   ac_cv_func_alloca_works=yes
3592 else
3593   echo "$as_me: failed program was:" >&5
3594 cat conftest.$ac_ext >&5
3595 ac_cv_func_alloca_works=no
3596 fi
3597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3598 fi
3599 echo "$as_me:3599: result: $ac_cv_func_alloca_works" >&5
3600 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3601
3602 if test $ac_cv_func_alloca_works = yes; then
3603
3604 cat >>confdefs.h <<\EOF
3605 #define HAVE_ALLOCA 1
3606 EOF
3607
3608 else
3609   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3610 # that cause trouble.  Some versions do not even contain alloca or
3611 # contain a buggy version.  If you still want to use their alloca,
3612 # use ar to extract alloca.o from them instead of compiling alloca.c.
3613
3614 ALLOCA=alloca.$ac_objext
3615
3616 cat >>confdefs.h <<\EOF
3617 #define C_ALLOCA 1
3618 EOF
3619
3620 echo "$as_me:3620: checking whether \`alloca.c' needs Cray hooks" >&5
3621 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3622 if test "${ac_cv_os_cray+set}" = set; then
3623   echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625   cat >conftest.$ac_ext <<_ACEOF
3626 #line 3626 "configure"
3627 #include "confdefs.h"
3628 #if defined(CRAY) && ! defined(CRAY2)
3629 webecray
3630 #else
3631 wenotbecray
3632 #endif
3633
3634 _ACEOF
3635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3636   egrep "webecray" >/dev/null 2>&1; then
3637   ac_cv_os_cray=yes
3638 else
3639   ac_cv_os_cray=no
3640 fi
3641 rm -f conftest*
3642
3643 fi
3644 echo "$as_me:3644: result: $ac_cv_os_cray" >&5
3645 echo "${ECHO_T}$ac_cv_os_cray" >&6
3646 if test $ac_cv_os_cray = yes; then
3647   for ac_func in _getb67 GETB67 getb67; do
3648     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3649 echo "$as_me:3649: checking for $ac_func" >&5
3650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3651 if eval "test \"\${$as_ac_var+set}\" = set"; then
3652   echo $ECHO_N "(cached) $ECHO_C" >&6
3653 else
3654   cat >conftest.$ac_ext <<_ACEOF
3655 #line 3655 "configure"
3656 #include "confdefs.h"
3657 /* System header to define __stub macros and hopefully few prototypes,
3658     which can conflict with char $ac_func (); below.  */
3659 #include <assert.h>
3660 /* Override any gcc2 internal prototype to avoid an error.  */
3661 #ifdef __cplusplus
3662 extern "C"
3663 #endif
3664 /* We use char because int might match the return type of a gcc2
3665    builtin and then its argument prototype would still apply.  */
3666 char $ac_func ();
3667 char (*f) ();
3668
3669 int
3670 main ()
3671 {
3672 /* The GNU C library defines this for functions which it implements
3673     to always fail with ENOSYS.  Some functions are actually named
3674     something starting with __ and the normal name is an alias.  */
3675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3676 choke me
3677 #else
3678 f = $ac_func;
3679 #endif
3680
3681   ;
3682   return 0;
3683 }
3684 _ACEOF
3685 rm -f conftest.$ac_objext conftest$ac_exeext
3686 if { (eval echo "$as_me:3686: \"$ac_link\"") >&5
3687   (eval $ac_link) 2>&5
3688   ac_status=$?
3689   echo "$as_me:3689: \$? = $ac_status" >&5
3690   (exit $ac_status); } &&
3691          { ac_try='test -s conftest$ac_exeext'
3692   { (eval echo "$as_me:3692: \"$ac_try\"") >&5
3693   (eval $ac_try) 2>&5
3694   ac_status=$?
3695   echo "$as_me:3695: \$? = $ac_status" >&5
3696   (exit $ac_status); }; }; then
3697   eval "$as_ac_var=yes"
3698 else
3699   echo "$as_me: failed program was:" >&5
3700 cat conftest.$ac_ext >&5
3701 eval "$as_ac_var=no"
3702 fi
3703 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3704 fi
3705 echo "$as_me:3705: result: `eval echo '${'$as_ac_var'}'`" >&5
3706 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3707 if test `eval echo '${'$as_ac_var'}'` = yes; then
3708
3709 cat >>confdefs.h <<EOF
3710 #define CRAY_STACKSEG_END $ac_func
3711 EOF
3712
3713     break
3714 fi
3715
3716   done
3717 fi
3718
3719 echo "$as_me:3719: checking stack direction for C alloca" >&5
3720 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3721 if test "${ac_cv_c_stack_direction+set}" = set; then
3722   echo $ECHO_N "(cached) $ECHO_C" >&6
3723 else
3724   if test "$cross_compiling" = yes; then
3725   ac_cv_c_stack_direction=0
3726 else
3727   cat >conftest.$ac_ext <<_ACEOF
3728 #line 3728 "configure"
3729 #include "confdefs.h"
3730 int
3731 find_stack_direction ()
3732 {
3733   static char *addr = 0;
3734   auto char dummy;
3735   if (addr == 0)
3736     {
3737       addr = &dummy;
3738       return find_stack_direction ();
3739     }
3740   else
3741     return (&dummy > addr) ? 1 : -1;
3742 }
3743
3744 int
3745 main ()
3746 {
3747   exit (find_stack_direction () < 0);
3748 }
3749 _ACEOF
3750 rm -f conftest$ac_exeext
3751 if { (eval echo "$as_me:3751: \"$ac_link\"") >&5
3752   (eval $ac_link) 2>&5
3753   ac_status=$?
3754   echo "$as_me:3754: \$? = $ac_status" >&5
3755   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3756   { (eval echo "$as_me:3756: \"$ac_try\"") >&5
3757   (eval $ac_try) 2>&5
3758   ac_status=$?
3759   echo "$as_me:3759: \$? = $ac_status" >&5
3760   (exit $ac_status); }; }; then
3761   ac_cv_c_stack_direction=1
3762 else
3763   echo "$as_me: program exited with status $ac_status" >&5
3764 echo "$as_me: failed program was:" >&5
3765 cat conftest.$ac_ext >&5
3766 ac_cv_c_stack_direction=-1
3767 fi
3768 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3769 fi
3770 fi
3771 echo "$as_me:3771: result: $ac_cv_c_stack_direction" >&5
3772 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3773
3774 cat >>confdefs.h <<EOF
3775 #define STACK_DIRECTION $ac_cv_c_stack_direction
3776 EOF
3777
3778 fi
3779
3780 for ac_header in stdlib.h unistd.h
3781 do
3782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3783 echo "$as_me:3783: checking for $ac_header" >&5
3784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3786   echo $ECHO_N "(cached) $ECHO_C" >&6
3787 else
3788   cat >conftest.$ac_ext <<_ACEOF
3789 #line 3789 "configure"
3790 #include "confdefs.h"
3791 #include <$ac_header>
3792 _ACEOF
3793 if { (eval echo "$as_me:3793: \"$ac_cpp conftest.$ac_ext\"") >&5
3794   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3795   ac_status=$?
3796   egrep -v '^ *\+' conftest.er1 >conftest.err
3797   rm -f conftest.er1
3798   cat conftest.err >&5
3799   echo "$as_me:3799: \$? = $ac_status" >&5
3800   (exit $ac_status); } >/dev/null; then
3801   if test -s conftest.err; then
3802     ac_cpp_err=$ac_c_preproc_warn_flag
3803   else
3804     ac_cpp_err=
3805   fi
3806 else
3807   ac_cpp_err=yes
3808 fi
3809 if test -z "$ac_cpp_err"; then
3810   eval "$as_ac_Header=yes"
3811 else
3812   echo "$as_me: failed program was:" >&5
3813   cat conftest.$ac_ext >&5
3814   eval "$as_ac_Header=no"
3815 fi
3816 rm -f conftest.err conftest.$ac_ext
3817 fi
3818 echo "$as_me:3818: result: `eval echo '${'$as_ac_Header'}'`" >&5
3819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3821   cat >>confdefs.h <<EOF
3822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3823 EOF
3824
3825 fi
3826 done
3827
3828 for ac_func in getpagesize
3829 do
3830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3831 echo "$as_me:3831: checking for $ac_func" >&5
3832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3833 if eval "test \"\${$as_ac_var+set}\" = set"; then
3834   echo $ECHO_N "(cached) $ECHO_C" >&6
3835 else
3836   cat >conftest.$ac_ext <<_ACEOF
3837 #line 3837 "configure"
3838 #include "confdefs.h"
3839 /* System header to define __stub macros and hopefully few prototypes,
3840     which can conflict with char $ac_func (); below.  */
3841 #include <assert.h>
3842 /* Override any gcc2 internal prototype to avoid an error.  */
3843 #ifdef __cplusplus
3844 extern "C"
3845 #endif
3846 /* We use char because int might match the return type of a gcc2
3847    builtin and then its argument prototype would still apply.  */
3848 char $ac_func ();
3849 char (*f) ();
3850
3851 int
3852 main ()
3853 {
3854 /* The GNU C library defines this for functions which it implements
3855     to always fail with ENOSYS.  Some functions are actually named
3856     something starting with __ and the normal name is an alias.  */
3857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3858 choke me
3859 #else
3860 f = $ac_func;
3861 #endif
3862
3863   ;
3864   return 0;
3865 }
3866 _ACEOF
3867 rm -f conftest.$ac_objext conftest$ac_exeext
3868 if { (eval echo "$as_me:3868: \"$ac_link\"") >&5
3869   (eval $ac_link) 2>&5
3870   ac_status=$?
3871   echo "$as_me:3871: \$? = $ac_status" >&5
3872   (exit $ac_status); } &&
3873          { ac_try='test -s conftest$ac_exeext'
3874   { (eval echo "$as_me:3874: \"$ac_try\"") >&5
3875   (eval $ac_try) 2>&5
3876   ac_status=$?
3877   echo "$as_me:3877: \$? = $ac_status" >&5
3878   (exit $ac_status); }; }; then
3879   eval "$as_ac_var=yes"
3880 else
3881   echo "$as_me: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3883 eval "$as_ac_var=no"
3884 fi
3885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3886 fi
3887 echo "$as_me:3887: result: `eval echo '${'$as_ac_var'}'`" >&5
3888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3889 if test `eval echo '${'$as_ac_var'}'` = yes; then
3890   cat >>confdefs.h <<EOF
3891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3892 EOF
3893
3894 fi
3895 done
3896
3897 echo "$as_me:3897: checking for working mmap" >&5
3898 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
3899 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
3900   echo $ECHO_N "(cached) $ECHO_C" >&6
3901 else
3902   if test "$cross_compiling" = yes; then
3903   ac_cv_func_mmap_fixed_mapped=no
3904 else
3905   cat >conftest.$ac_ext <<_ACEOF
3906 #line 3906 "configure"
3907 #include "confdefs.h"
3908 $ac_includes_default
3909 /* Thanks to Mike Haertel and Jim Avera for this test.
3910    Here is a matrix of mmap possibilities:
3911         mmap private not fixed
3912         mmap private fixed at somewhere currently unmapped
3913         mmap private fixed at somewhere already mapped
3914         mmap shared not fixed
3915         mmap shared fixed at somewhere currently unmapped
3916         mmap shared fixed at somewhere already mapped
3917    For private mappings, we should verify that changes cannot be read()
3918    back from the file, nor mmap's back from the file at a different
3919    address.  (There have been systems where private was not correctly
3920    implemented like the infamous i386 svr4.0, and systems where the
3921    VM page cache was not coherent with the file system buffer cache
3922    like early versions of FreeBSD and possibly contemporary NetBSD.)
3923    For shared mappings, we should conversely verify that changes get
3924    propogated back to all the places they're supposed to be.
3925
3926    Grep wants private fixed already mapped.
3927    The main things grep needs to know about mmap are:
3928    * does it exist and is it safe to write into the mmap'd area
3929    * how to use it (BSD variants)  */
3930
3931 #include <fcntl.h>
3932 #include <sys/mman.h>
3933
3934 #if !STDC_HEADERS && !HAVE_STDLIB_H
3935 char *malloc ();
3936 #endif
3937
3938 /* This mess was copied from the GNU getpagesize.h.  */
3939 #if !HAVE_GETPAGESIZE
3940 /* Assume that all systems that can run configure have sys/param.h.  */
3941 # if !HAVE_SYS_PARAM_H
3942 #  define HAVE_SYS_PARAM_H 1
3943 # endif
3944
3945 # ifdef _SC_PAGESIZE
3946 #  define getpagesize() sysconf(_SC_PAGESIZE)
3947 # else /* no _SC_PAGESIZE */
3948 #  if HAVE_SYS_PARAM_H
3949 #   include <sys/param.h>
3950 #   ifdef EXEC_PAGESIZE
3951 #    define getpagesize() EXEC_PAGESIZE
3952 #   else /* no EXEC_PAGESIZE */
3953 #    ifdef NBPG
3954 #     define getpagesize() NBPG * CLSIZE
3955 #     ifndef CLSIZE
3956 #      define CLSIZE 1
3957 #     endif /* no CLSIZE */
3958 #    else /* no NBPG */
3959 #     ifdef NBPC
3960 #      define getpagesize() NBPC
3961 #     else /* no NBPC */
3962 #      ifdef PAGESIZE
3963 #       define getpagesize() PAGESIZE
3964 #      endif /* PAGESIZE */
3965 #     endif /* no NBPC */
3966 #    endif /* no NBPG */
3967 #   endif /* no EXEC_PAGESIZE */
3968 #  else /* no HAVE_SYS_PARAM_H */
3969 #   define getpagesize() 8192   /* punt totally */
3970 #  endif /* no HAVE_SYS_PARAM_H */
3971 # endif /* no _SC_PAGESIZE */
3972
3973 #endif /* no HAVE_GETPAGESIZE */
3974
3975 int
3976 main ()
3977 {
3978   char *data, *data2, *data3;
3979   int i, pagesize;
3980   int fd;
3981
3982   pagesize = getpagesize ();
3983
3984   /* First, make a file with some known garbage in it. */
3985   data = (char *) malloc (pagesize);
3986   if (!data)
3987     exit (1);
3988   for (i = 0; i < pagesize; ++i)
3989     *(data + i) = rand ();
3990   umask (0);
3991   fd = creat ("conftest.mmap", 0600);
3992   if (fd < 0)
3993     exit (1);
3994   if (write (fd, data, pagesize) != pagesize)
3995     exit (1);
3996   close (fd);
3997
3998   /* Next, try to mmap the file at a fixed address which already has
3999      something else allocated at it.  If we can, also make sure that
4000      we see the same garbage.  */
4001   fd = open ("conftest.mmap", O_RDWR);
4002   if (fd < 0)
4003     exit (1);
4004   data2 = (char *) malloc (2 * pagesize);
4005   if (!data2)
4006     exit (1);
4007   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4008   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4009                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
4010     exit (1);
4011   for (i = 0; i < pagesize; ++i)
4012     if (*(data + i) != *(data2 + i))
4013       exit (1);
4014
4015   /* Finally, make sure that changes to the mapped area do not
4016      percolate back to the file as seen by read().  (This is a bug on
4017      some variants of i386 svr4.0.)  */
4018   for (i = 0; i < pagesize; ++i)
4019     *(data2 + i) = *(data2 + i) + 1;
4020   data3 = (char *) malloc (pagesize);
4021   if (!data3)
4022     exit (1);
4023   if (read (fd, data3, pagesize) != pagesize)
4024     exit (1);
4025   for (i = 0; i < pagesize; ++i)
4026     if (*(data + i) != *(data3 + i))
4027       exit (1);
4028   close (fd);
4029   exit (0);
4030 }
4031 _ACEOF
4032 rm -f conftest$ac_exeext
4033 if { (eval echo "$as_me:4033: \"$ac_link\"") >&5
4034   (eval $ac_link) 2>&5
4035   ac_status=$?
4036   echo "$as_me:4036: \$? = $ac_status" >&5
4037   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4038   { (eval echo "$as_me:4038: \"$ac_try\"") >&5
4039   (eval $ac_try) 2>&5
4040   ac_status=$?
4041   echo "$as_me:4041: \$? = $ac_status" >&5
4042   (exit $ac_status); }; }; then
4043   ac_cv_func_mmap_fixed_mapped=yes
4044 else
4045   echo "$as_me: program exited with status $ac_status" >&5
4046 echo "$as_me: failed program was:" >&5
4047 cat conftest.$ac_ext >&5
4048 ac_cv_func_mmap_fixed_mapped=no
4049 fi
4050 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4051 fi
4052 fi
4053 echo "$as_me:4053: result: $ac_cv_func_mmap_fixed_mapped" >&5
4054 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4055 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4056
4057 cat >>confdefs.h <<\EOF
4058 #define HAVE_MMAP 1
4059 EOF
4060
4061 fi
4062 rm -f conftest.mmap
4063
4064     echo "$as_me:4064: checking whether we are using the GNU C Library 2.1 or newer" >&5
4065 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
4066 if test "${ac_cv_gnu_library_2_1+set}" = set; then
4067   echo $ECHO_N "(cached) $ECHO_C" >&6
4068 else
4069   cat >conftest.$ac_ext <<_ACEOF
4070 #line 4070 "configure"
4071 #include "confdefs.h"
4072
4073 #include <features.h>
4074 #ifdef __GNU_LIBRARY__
4075  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
4076   Lucky GNU user
4077  #endif
4078 #endif
4079
4080 _ACEOF
4081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4082   egrep "Lucky GNU user" >/dev/null 2>&1; then
4083   ac_cv_gnu_library_2_1=yes
4084 else
4085   ac_cv_gnu_library_2_1=no
4086 fi
4087 rm -f conftest*
4088
4089 fi
4090 echo "$as_me:4090: result: $ac_cv_gnu_library_2_1" >&5
4091 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
4092
4093     GLIBC21="$ac_cv_gnu_library_2_1"
4094
4095   echo "$as_me:4095: checking whether integer division by zero raises SIGFPE" >&5
4096 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
4097 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
4098   echo $ECHO_N "(cached) $ECHO_C" >&6
4099 else
4100
4101       if test "$cross_compiling" = yes; then
4102
4103           # Guess based on the CPU.
4104           case "$host_cpu" in
4105             alpha* | i3456786 | m68k | s390*)
4106               gt_cv_int_divbyzero_sigfpe="guessing yes";;
4107             *)
4108               gt_cv_int_divbyzero_sigfpe="guessing no";;
4109           esac
4110
4111 else
4112   cat >conftest.$ac_ext <<_ACEOF
4113 #line 4113 "configure"
4114 #include "confdefs.h"
4115
4116 #include <stdlib.h>
4117 #include <signal.h>
4118
4119 static void
4120 #ifdef __cplusplus
4121 sigfpe_handler (int sig)
4122 #else
4123 sigfpe_handler (sig) int sig;
4124 #endif
4125 {
4126   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
4127   exit (sig != SIGFPE);
4128 }
4129
4130 int x = 1;
4131 int y = 0;
4132 int z;
4133 int nan;
4134
4135 int main ()
4136 {
4137   signal (SIGFPE, sigfpe_handler);
4138 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
4139 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
4140   signal (SIGTRAP, sigfpe_handler);
4141 #endif
4142 /* Linux/SPARC yields signal SIGILL.  */
4143 #if defined (__sparc__) && defined (__linux__)
4144   signal (SIGILL, sigfpe_handler);
4145 #endif
4146
4147   z = x / y;
4148   nan = y / y;
4149   exit (1);
4150 }
4151
4152 _ACEOF
4153 rm -f conftest$ac_exeext
4154 if { (eval echo "$as_me:4154: \"$ac_link\"") >&5
4155   (eval $ac_link) 2>&5
4156   ac_status=$?
4157   echo "$as_me:4157: \$? = $ac_status" >&5
4158   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4159   { (eval echo "$as_me:4159: \"$ac_try\"") >&5
4160   (eval $ac_try) 2>&5
4161   ac_status=$?
4162   echo "$as_me:4162: \$? = $ac_status" >&5
4163   (exit $ac_status); }; }; then
4164   gt_cv_int_divbyzero_sigfpe=yes
4165 else
4166   echo "$as_me: program exited with status $ac_status" >&5
4167 echo "$as_me: failed program was:" >&5
4168 cat conftest.$ac_ext >&5
4169 gt_cv_int_divbyzero_sigfpe=no
4170 fi
4171 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4172 fi
4173
4174 fi
4175 echo "$as_me:4175: result: $gt_cv_int_divbyzero_sigfpe" >&5
4176 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
4177   case "$gt_cv_int_divbyzero_sigfpe" in
4178     *yes) value=1;;
4179     *) value=0;;
4180   esac
4181
4182 cat >>confdefs.h <<EOF
4183 #define INTDIV0_RAISES_SIGFPE $value
4184 EOF
4185
4186   echo "$as_me:4186: checking for inttypes.h" >&5
4187 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4188 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
4189   echo $ECHO_N "(cached) $ECHO_C" >&6
4190 else
4191   cat >conftest.$ac_ext <<_ACEOF
4192 #line 4192 "configure"
4193 #include "confdefs.h"
4194 #include <sys/types.h>
4195 #include <inttypes.h>
4196 int
4197 main ()
4198 {
4199 uintmax_t i = (uintmax_t) -1;
4200   ;
4201   return 0;
4202 }
4203 _ACEOF
4204 rm -f conftest.$ac_objext
4205 if { (eval echo "$as_me:4205: \"$ac_compile\"") >&5
4206   (eval $ac_compile) 2>&5
4207   ac_status=$?
4208   echo "$as_me:4208: \$? = $ac_status" >&5
4209   (exit $ac_status); } &&
4210          { ac_try='test -s conftest.$ac_objext'
4211   { (eval echo "$as_me:4211: \"$ac_try\"") >&5
4212   (eval $ac_try) 2>&5
4213   ac_status=$?
4214   echo "$as_me:4214: \$? = $ac_status" >&5
4215   (exit $ac_status); }; }; then
4216   jm_ac_cv_header_inttypes_h=yes
4217 else
4218   echo "$as_me: failed program was:" >&5
4219 cat conftest.$ac_ext >&5
4220 jm_ac_cv_header_inttypes_h=no
4221 fi
4222 rm -f conftest.$ac_objext conftest.$ac_ext
4223 fi
4224 echo "$as_me:4224: result: $jm_ac_cv_header_inttypes_h" >&5
4225 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
4226   if test $jm_ac_cv_header_inttypes_h = yes; then
4227
4228 cat >>confdefs.h <<EOF
4229 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
4230 EOF
4231
4232   fi
4233
4234   echo "$as_me:4234: checking for stdint.h" >&5
4235 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
4236 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
4237   echo $ECHO_N "(cached) $ECHO_C" >&6
4238 else
4239   cat >conftest.$ac_ext <<_ACEOF
4240 #line 4240 "configure"
4241 #include "confdefs.h"
4242 #include <sys/types.h>
4243 #include <stdint.h>
4244 int
4245 main ()
4246 {
4247 uintmax_t i = (uintmax_t) -1;
4248   ;
4249   return 0;
4250 }
4251 _ACEOF
4252 rm -f conftest.$ac_objext
4253 if { (eval echo "$as_me:4253: \"$ac_compile\"") >&5
4254   (eval $ac_compile) 2>&5
4255   ac_status=$?
4256   echo "$as_me:4256: \$? = $ac_status" >&5
4257   (exit $ac_status); } &&
4258          { ac_try='test -s conftest.$ac_objext'
4259   { (eval echo "$as_me:4259: \"$ac_try\"") >&5
4260   (eval $ac_try) 2>&5
4261   ac_status=$?
4262   echo "$as_me:4262: \$? = $ac_status" >&5
4263   (exit $ac_status); }; }; then
4264   jm_ac_cv_header_stdint_h=yes
4265 else
4266   echo "$as_me: failed program was:" >&5
4267 cat conftest.$ac_ext >&5
4268 jm_ac_cv_header_stdint_h=no
4269 fi
4270 rm -f conftest.$ac_objext conftest.$ac_ext
4271 fi
4272 echo "$as_me:4272: result: $jm_ac_cv_header_stdint_h" >&5
4273 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
4274   if test $jm_ac_cv_header_stdint_h = yes; then
4275
4276 cat >>confdefs.h <<EOF
4277 #define HAVE_STDINT_H_WITH_UINTMAX 1
4278 EOF
4279
4280   fi
4281
4282   echo "$as_me:4282: checking for unsigned long long" >&5
4283 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
4284 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
4285   echo $ECHO_N "(cached) $ECHO_C" >&6
4286 else
4287   cat >conftest.$ac_ext <<_ACEOF
4288 #line 4288 "configure"
4289 #include "confdefs.h"
4290 unsigned long long ull = 1; int i = 63;
4291 int
4292 main ()
4293 {
4294 unsigned long long ullmax = (unsigned long long) -1;
4295      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
4296   ;
4297   return 0;
4298 }
4299 _ACEOF
4300 rm -f conftest.$ac_objext conftest$ac_exeext
4301 if { (eval echo "$as_me:4301: \"$ac_link\"") >&5
4302   (eval $ac_link) 2>&5
4303   ac_status=$?
4304   echo "$as_me:4304: \$? = $ac_status" >&5
4305   (exit $ac_status); } &&
4306          { ac_try='test -s conftest$ac_exeext'
4307   { (eval echo "$as_me:4307: \"$ac_try\"") >&5
4308   (eval $ac_try) 2>&5
4309   ac_status=$?
4310   echo "$as_me:4310: \$? = $ac_status" >&5
4311   (exit $ac_status); }; }; then
4312   ac_cv_type_unsigned_long_long=yes
4313 else
4314   echo "$as_me: failed program was:" >&5
4315 cat conftest.$ac_ext >&5
4316 ac_cv_type_unsigned_long_long=no
4317 fi
4318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4319 fi
4320 echo "$as_me:4320: result: $ac_cv_type_unsigned_long_long" >&5
4321 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
4322   if test $ac_cv_type_unsigned_long_long = yes; then
4323
4324 cat >>confdefs.h <<\EOF
4325 #define HAVE_UNSIGNED_LONG_LONG 1
4326 EOF
4327
4328   fi
4329
4330   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
4331
4332     test $ac_cv_type_unsigned_long_long = yes \
4333       && ac_type='unsigned long long' \
4334       || ac_type='unsigned long'
4335
4336 cat >>confdefs.h <<EOF
4337 #define uintmax_t $ac_type
4338 EOF
4339
4340   fi
4341
4342   echo "$as_me:4342: checking for inttypes.h" >&5
4343 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4344 if test "${gt_cv_header_inttypes_h+set}" = set; then
4345   echo $ECHO_N "(cached) $ECHO_C" >&6
4346 else
4347
4348     cat >conftest.$ac_ext <<_ACEOF
4349 #line 4349 "configure"
4350 #include "confdefs.h"
4351 #include <sys/types.h>
4352 #include <inttypes.h>
4353 int
4354 main ()
4355 {
4356
4357   ;
4358   return 0;
4359 }
4360 _ACEOF
4361 rm -f conftest.$ac_objext
4362 if { (eval echo "$as_me:4362: \"$ac_compile\"") >&5
4363   (eval $ac_compile) 2>&5
4364   ac_status=$?
4365   echo "$as_me:4365: \$? = $ac_status" >&5
4366   (exit $ac_status); } &&
4367          { ac_try='test -s conftest.$ac_objext'
4368   { (eval echo "$as_me:4368: \"$ac_try\"") >&5
4369   (eval $ac_try) 2>&5
4370   ac_status=$?
4371   echo "$as_me:4371: \$? = $ac_status" >&5
4372   (exit $ac_status); }; }; then
4373   gt_cv_header_inttypes_h=yes
4374 else
4375   echo "$as_me: failed program was:" >&5
4376 cat conftest.$ac_ext >&5
4377 gt_cv_header_inttypes_h=no
4378 fi
4379 rm -f conftest.$ac_objext conftest.$ac_ext
4380
4381 fi
4382 echo "$as_me:4382: result: $gt_cv_header_inttypes_h" >&5
4383 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
4384   if test $gt_cv_header_inttypes_h = yes; then
4385
4386 cat >>confdefs.h <<EOF
4387 #define HAVE_INTTYPES_H 1
4388 EOF
4389
4390   fi
4391
4392   if test $gt_cv_header_inttypes_h = yes; then
4393     echo "$as_me:4393: checking whether the inttypes.h PRIxNN macros are broken" >&5
4394 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
4395 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
4396   echo $ECHO_N "(cached) $ECHO_C" >&6
4397 else
4398
4399         cat >conftest.$ac_ext <<_ACEOF
4400 #line 4400 "configure"
4401 #include "confdefs.h"
4402 #include <inttypes.h>
4403 #ifdef PRId32
4404 char *p = PRId32;
4405 #endif
4406
4407 int
4408 main ()
4409 {
4410
4411   ;
4412   return 0;
4413 }
4414 _ACEOF
4415 rm -f conftest.$ac_objext
4416 if { (eval echo "$as_me:4416: \"$ac_compile\"") >&5
4417   (eval $ac_compile) 2>&5
4418   ac_status=$?
4419   echo "$as_me:4419: \$? = $ac_status" >&5
4420   (exit $ac_status); } &&
4421          { ac_try='test -s conftest.$ac_objext'
4422   { (eval echo "$as_me:4422: \"$ac_try\"") >&5
4423   (eval $ac_try) 2>&5
4424   ac_status=$?
4425   echo "$as_me:4425: \$? = $ac_status" >&5
4426   (exit $ac_status); }; }; then
4427   gt_cv_inttypes_pri_broken=no
4428 else
4429   echo "$as_me: failed program was:" >&5
4430 cat conftest.$ac_ext >&5
4431 gt_cv_inttypes_pri_broken=yes
4432 fi
4433 rm -f conftest.$ac_objext conftest.$ac_ext
4434
4435 fi
4436 echo "$as_me:4436: result: $gt_cv_inttypes_pri_broken" >&5
4437 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
4438   fi
4439   if test "$gt_cv_inttypes_pri_broken" = yes; then
4440
4441 cat >>confdefs.h <<EOF
4442 #define PRI_MACROS_BROKEN 1
4443 EOF
4444
4445   fi
4446
4447       if test "X$prefix" = "XNONE"; then
4448     acl_final_prefix="$ac_default_prefix"
4449   else
4450     acl_final_prefix="$prefix"
4451   fi
4452   if test "X$exec_prefix" = "XNONE"; then
4453     acl_final_exec_prefix='${prefix}'
4454   else
4455     acl_final_exec_prefix="$exec_prefix"
4456   fi
4457   acl_save_prefix="$prefix"
4458   prefix="$acl_final_prefix"
4459   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4460   prefix="$acl_save_prefix"
4461
4462 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4463 if test "${with_gnu_ld+set}" = set; then
4464   withval="$with_gnu_ld"
4465   test "$withval" = no || with_gnu_ld=yes
4466 else
4467   with_gnu_ld=no
4468 fi;
4469 ac_prog=ld
4470 if test "$GCC" = yes; then
4471   # Check if gcc -print-prog-name=ld gives a path.
4472   echo "$as_me:4472: checking for ld used by GCC" >&5
4473 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4474   case $host in
4475   *-*-mingw*)
4476     # gcc leaves a trailing carriage return which upsets mingw
4477     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4478   *)
4479     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4480   esac
4481   case $ac_prog in
4482     # Accept absolute paths.
4483     [\\/]* | [A-Za-z]:[\\/]*)
4484       re_direlt='/[^/][^/]*/\.\./'
4485       # Canonicalize the path of ld
4486       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4487       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4488         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4489       done
4490       test -z "$LD" && LD="$ac_prog"
4491       ;;
4492   "")
4493     # If it fails, then pretend we aren't using GCC.
4494     ac_prog=ld
4495     ;;
4496   *)
4497     # If it is relative, then search for the first ld in PATH.
4498     with_gnu_ld=unknown
4499     ;;
4500   esac
4501 elif test "$with_gnu_ld" = yes; then
4502   echo "$as_me:4502: checking for GNU ld" >&5
4503 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4504 else
4505   echo "$as_me:4505: checking for non-GNU ld" >&5
4506 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4507 fi
4508 if test "${acl_cv_path_LD+set}" = set; then
4509   echo $ECHO_N "(cached) $ECHO_C" >&6
4510 else
4511   if test -z "$LD"; then
4512   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4513   for ac_dir in $PATH; do
4514     test -z "$ac_dir" && ac_dir=.
4515     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4516       acl_cv_path_LD="$ac_dir/$ac_prog"
4517       # Check to see if the program is GNU ld.  I'd rather use --version,
4518       # but apparently some GNU ld's only accept -v.
4519       # Break only if it was the GNU/non-GNU ld that we prefer.
4520       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4521         test "$with_gnu_ld" != no && break
4522       else
4523         test "$with_gnu_ld" != yes && break
4524       fi
4525     fi
4526   done
4527   IFS="$ac_save_ifs"
4528 else
4529   acl_cv_path_LD="$LD" # Let the user override the test with a path.
4530 fi
4531 fi
4532
4533 LD="$acl_cv_path_LD"
4534 if test -n "$LD"; then
4535   echo "$as_me:4535: result: $LD" >&5
4536 echo "${ECHO_T}$LD" >&6
4537 else
4538   echo "$as_me:4538: result: no" >&5
4539 echo "${ECHO_T}no" >&6
4540 fi
4541 test -z "$LD" && { { echo "$as_me:4541: error: no acceptable ld found in \$PATH" >&5
4542 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4543    { (exit 1); exit 1; }; }
4544 echo "$as_me:4544: checking if the linker ($LD) is GNU ld" >&5
4545 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4546 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4547   echo $ECHO_N "(cached) $ECHO_C" >&6
4548 else
4549   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4550 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4551   acl_cv_prog_gnu_ld=yes
4552 else
4553   acl_cv_prog_gnu_ld=no
4554 fi
4555 fi
4556 echo "$as_me:4556: result: $acl_cv_prog_gnu_ld" >&5
4557 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4558 with_gnu_ld=$acl_cv_prog_gnu_ld
4559
4560                                                 echo "$as_me:4560: checking for shared library run path origin" >&5
4561 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
4562 if test "${acl_cv_rpath+set}" = set; then
4563   echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565
4566     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4567     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4568     . ./conftest.sh
4569     rm -f ./conftest.sh
4570     acl_cv_rpath=done
4571
4572 fi
4573 echo "$as_me:4573: result: $acl_cv_rpath" >&5
4574 echo "${ECHO_T}$acl_cv_rpath" >&6
4575   wl="$acl_cv_wl"
4576   libext="$acl_cv_libext"
4577   shlibext="$acl_cv_shlibext"
4578   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4579   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4580   hardcode_direct="$acl_cv_hardcode_direct"
4581   hardcode_minus_L="$acl_cv_hardcode_minus_L"
4582   sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
4583   sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
4584     # Check whether --enable-rpath or --disable-rpath was given.
4585 if test "${enable_rpath+set}" = set; then
4586   enableval="$enable_rpath"
4587   :
4588 else
4589   enable_rpath=yes
4590 fi;
4591
4592     use_additional=yes
4593
4594   acl_save_prefix="$prefix"
4595   prefix="$acl_final_prefix"
4596   acl_save_exec_prefix="$exec_prefix"
4597   exec_prefix="$acl_final_exec_prefix"
4598
4599     eval additional_includedir=\"$includedir\"
4600     eval additional_libdir=\"$libdir\"
4601
4602   exec_prefix="$acl_save_exec_prefix"
4603   prefix="$acl_save_prefix"
4604
4605 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4606 if test "${with_libiconv_prefix+set}" = set; then
4607   withval="$with_libiconv_prefix"
4608
4609     if test "X$withval" = "Xno"; then
4610       use_additional=no
4611     else
4612       if test "X$withval" = "X"; then
4613
4614   acl_save_prefix="$prefix"
4615   prefix="$acl_final_prefix"
4616   acl_save_exec_prefix="$exec_prefix"
4617   exec_prefix="$acl_final_exec_prefix"
4618
4619           eval additional_includedir=\"$includedir\"
4620           eval additional_libdir=\"$libdir\"
4621
4622   exec_prefix="$acl_save_exec_prefix"
4623   prefix="$acl_save_prefix"
4624
4625       else
4626         additional_includedir="$withval/include"
4627         additional_libdir="$withval/lib"
4628       fi
4629     fi
4630
4631 fi;
4632       LIBICONV=
4633   LTLIBICONV=
4634   INCICONV=
4635   rpathdirs=
4636   ltrpathdirs=
4637   names_already_handled=
4638   names_next_round='iconv '
4639   while test -n "$names_next_round"; do
4640     names_this_round="$names_next_round"
4641     names_next_round=
4642     for name in $names_this_round; do
4643       already_handled=
4644       for n in $names_already_handled; do
4645         if test "$n" = "$name"; then
4646           already_handled=yes
4647           break
4648         fi
4649       done
4650       if test -z "$already_handled"; then
4651         names_already_handled="$names_already_handled $name"
4652                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4653         eval value=\"\$HAVE_LIB$uppername\"
4654         if test -n "$value"; then
4655           if test "$value" = yes; then
4656             eval value=\"\$LIB$uppername\"
4657             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4658             eval value=\"\$LTLIB$uppername\"
4659             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4660           else
4661                                     :
4662           fi
4663         else
4664                               found_dir=
4665           found_la=
4666           found_so=
4667           found_a=
4668           if test $use_additional = yes; then
4669             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4670               found_dir="$additional_libdir"
4671               found_so="$additional_libdir/lib$name.$shlibext"
4672               if test -f "$additional_libdir/lib$name.la"; then
4673                 found_la="$additional_libdir/lib$name.la"
4674               fi
4675             else
4676               if test -f "$additional_libdir/lib$name.$libext"; then
4677                 found_dir="$additional_libdir"
4678                 found_a="$additional_libdir/lib$name.$libext"
4679                 if test -f "$additional_libdir/lib$name.la"; then
4680                   found_la="$additional_libdir/lib$name.la"
4681                 fi
4682               fi
4683             fi
4684           fi
4685           if test "X$found_dir" = "X"; then
4686             for x in $LDFLAGS $LTLIBICONV; do
4687
4688   acl_save_prefix="$prefix"
4689   prefix="$acl_final_prefix"
4690   acl_save_exec_prefix="$exec_prefix"
4691   exec_prefix="$acl_final_exec_prefix"
4692   eval x=\"$x\"
4693   exec_prefix="$acl_save_exec_prefix"
4694   prefix="$acl_save_prefix"
4695
4696               case "$x" in
4697                 -L*)
4698                   dir=`echo "X$x" | sed -e 's/^X-L//'`
4699                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4700                     found_dir="$dir"
4701                     found_so="$dir/lib$name.$shlibext"
4702                     if test -f "$dir/lib$name.la"; then
4703                       found_la="$dir/lib$name.la"
4704                     fi
4705                   else
4706                     if test -f "$dir/lib$name.$libext"; then
4707                       found_dir="$dir"
4708                       found_a="$dir/lib$name.$libext"
4709                       if test -f "$dir/lib$name.la"; then
4710                         found_la="$dir/lib$name.la"
4711                       fi
4712                     fi
4713                   fi
4714                   ;;
4715               esac
4716               if test "X$found_dir" != "X"; then
4717                 break
4718               fi
4719             done
4720           fi
4721           if test "X$found_dir" != "X"; then
4722                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4723             if test "X$found_so" != "X"; then
4724                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4725                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4726               else
4727                                                                                 haveit=
4728                 for x in $ltrpathdirs; do
4729                   if test "X$x" = "X$found_dir"; then
4730                     haveit=yes
4731                     break
4732                   fi
4733                 done
4734                 if test -z "$haveit"; then
4735                   ltrpathdirs="$ltrpathdirs $found_dir"
4736                 fi
4737                                 if test "$hardcode_direct" = yes; then
4738                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4739                 else
4740                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4741                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4742                                                             haveit=
4743                     for x in $rpathdirs; do
4744                       if test "X$x" = "X$found_dir"; then
4745                         haveit=yes
4746                         break
4747                       fi
4748                     done
4749                     if test -z "$haveit"; then
4750                       rpathdirs="$rpathdirs $found_dir"
4751                     fi
4752                   else
4753                                                                                 haveit=
4754                     for x in $LDFLAGS $LIBICONV; do
4755
4756   acl_save_prefix="$prefix"
4757   prefix="$acl_final_prefix"
4758   acl_save_exec_prefix="$exec_prefix"
4759   exec_prefix="$acl_final_exec_prefix"
4760   eval x=\"$x\"
4761   exec_prefix="$acl_save_exec_prefix"
4762   prefix="$acl_save_prefix"
4763
4764                       if test "X$x" = "X-L$found_dir"; then
4765                         haveit=yes
4766                         break
4767                       fi
4768                     done
4769                     if test -z "$haveit"; then
4770                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4771                     fi
4772                     if test "$hardcode_minus_L" != no; then
4773                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4774                     else
4775                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4776                     fi
4777                   fi
4778                 fi
4779               fi
4780             else
4781               if test "X$found_a" != "X"; then
4782                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4783               else
4784                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4785               fi
4786             fi
4787                         additional_includedir=
4788             case "$found_dir" in
4789               */lib | */lib/)
4790                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4791                 additional_includedir="$basedir/include"
4792                 ;;
4793             esac
4794             if test "X$additional_includedir" != "X"; then
4795                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
4796                 haveit=
4797                 if test "X$additional_includedir" = "X/usr/local/include"; then
4798                   if test -n "$GCC"; then
4799                     case $host_os in
4800                       linux*) haveit=yes;;
4801                     esac
4802                   fi
4803                 fi
4804                 if test -z "$haveit"; then
4805                   for x in $CPPFLAGS $INCICONV; do
4806
4807   acl_save_prefix="$prefix"
4808   prefix="$acl_final_prefix"
4809   acl_save_exec_prefix="$exec_prefix"
4810   exec_prefix="$acl_final_exec_prefix"
4811   eval x=\"$x\"
4812   exec_prefix="$acl_save_exec_prefix"
4813   prefix="$acl_save_prefix"
4814
4815                     if test "X$x" = "X-I$additional_includedir"; then
4816                       haveit=yes
4817                       break
4818                     fi
4819                   done
4820                   if test -z "$haveit"; then
4821                     if test -d "$additional_includedir"; then
4822                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4823                     fi
4824                   fi
4825                 fi
4826               fi
4827             fi
4828                         if test -n "$found_la"; then
4829                                                         save_libdir="$libdir"
4830               case "$found_la" in
4831                 */* | *\\*) . "$found_la" ;;
4832                 *) . "./$found_la" ;;
4833               esac
4834               libdir="$save_libdir"
4835                             for dep in $dependency_libs; do
4836                 case "$dep" in
4837                   -L*)
4838                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4839                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
4840                       haveit=
4841                       if test "X$additional_libdir" = "X/usr/local/lib"; then
4842                         if test -n "$GCC"; then
4843                           case $host_os in
4844                             linux*) haveit=yes;;
4845                           esac
4846                         fi
4847                       fi
4848                       if test -z "$haveit"; then
4849                         haveit=
4850                         for x in $LDFLAGS $LIBICONV; do
4851
4852   acl_save_prefix="$prefix"
4853   prefix="$acl_final_prefix"
4854   acl_save_exec_prefix="$exec_prefix"
4855   exec_prefix="$acl_final_exec_prefix"
4856   eval x=\"$x\"
4857   exec_prefix="$acl_save_exec_prefix"
4858   prefix="$acl_save_prefix"
4859
4860                           if test "X$x" = "X-L$additional_libdir"; then
4861                             haveit=yes
4862                             break
4863                           fi
4864                         done
4865                         if test -z "$haveit"; then
4866                           if test -d "$additional_libdir"; then
4867                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4868                           fi
4869                         fi
4870                         haveit=
4871                         for x in $LDFLAGS $LTLIBICONV; do
4872
4873   acl_save_prefix="$prefix"
4874   prefix="$acl_final_prefix"
4875   acl_save_exec_prefix="$exec_prefix"
4876   exec_prefix="$acl_final_exec_prefix"
4877   eval x=\"$x\"
4878   exec_prefix="$acl_save_exec_prefix"
4879   prefix="$acl_save_prefix"
4880
4881                           if test "X$x" = "X-L$additional_libdir"; then
4882                             haveit=yes
4883                             break
4884                           fi
4885                         done
4886                         if test -z "$haveit"; then
4887                           if test -d "$additional_libdir"; then
4888                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4889                           fi
4890                         fi
4891                       fi
4892                     fi
4893                     ;;
4894                   -R*)
4895                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
4896                     if test "$enable_rpath" != no; then
4897                                                                   haveit=
4898                       for x in $rpathdirs; do
4899                         if test "X$x" = "X$dir"; then
4900                           haveit=yes
4901                           break
4902                         fi
4903                       done
4904                       if test -z "$haveit"; then
4905                         rpathdirs="$rpathdirs $dir"
4906                       fi
4907                                                                   haveit=
4908                       for x in $ltrpathdirs; do
4909                         if test "X$x" = "X$dir"; then
4910                           haveit=yes
4911                           break
4912                         fi
4913                       done
4914                       if test -z "$haveit"; then
4915                         ltrpathdirs="$ltrpathdirs $dir"
4916                       fi
4917                     fi
4918                     ;;
4919                   -l*)
4920                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4921                     ;;
4922                   *.la)
4923                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4924                     ;;
4925                   *)
4926                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4927                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4928                     ;;
4929                 esac
4930               done
4931             fi
4932           else
4933                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4934             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4935           fi
4936         fi
4937       fi
4938     done
4939   done
4940   if test "X$rpathdirs" != "X"; then
4941     if test -n "$hardcode_libdir_separator"; then
4942                         alldirs=
4943       for found_dir in $rpathdirs; do
4944         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4945       done
4946             acl_save_libdir="$libdir"
4947       libdir="$alldirs"
4948       eval flag=\"$hardcode_libdir_flag_spec\"
4949       libdir="$acl_save_libdir"
4950       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4951     else
4952             for found_dir in $rpathdirs; do
4953         acl_save_libdir="$libdir"
4954         libdir="$found_dir"
4955         eval flag=\"$hardcode_libdir_flag_spec\"
4956         libdir="$acl_save_libdir"
4957         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4958       done
4959     fi
4960   fi
4961   if test "X$ltrpathdirs" != "X"; then
4962             for found_dir in $ltrpathdirs; do
4963       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4964     done
4965   fi
4966
4967 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
4968 stdlib.h string.h unistd.h sys/param.h
4969 do
4970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4971 echo "$as_me:4971: checking for $ac_header" >&5
4972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4974   echo $ECHO_N "(cached) $ECHO_C" >&6
4975 else
4976   cat >conftest.$ac_ext <<_ACEOF
4977 #line 4977 "configure"
4978 #include "confdefs.h"
4979 #include <$ac_header>
4980 _ACEOF
4981 if { (eval echo "$as_me:4981: \"$ac_cpp conftest.$ac_ext\"") >&5
4982   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4983   ac_status=$?
4984   egrep -v '^ *\+' conftest.er1 >conftest.err
4985   rm -f conftest.er1
4986   cat conftest.err >&5
4987   echo "$as_me:4987: \$? = $ac_status" >&5
4988   (exit $ac_status); } >/dev/null; then
4989   if test -s conftest.err; then
4990     ac_cpp_err=$ac_c_preproc_warn_flag
4991   else
4992     ac_cpp_err=
4993   fi
4994 else
4995   ac_cpp_err=yes
4996 fi
4997 if test -z "$ac_cpp_err"; then
4998   eval "$as_ac_Header=yes"
4999 else
5000   echo "$as_me: failed program was:" >&5
5001   cat conftest.$ac_ext >&5
5002   eval "$as_ac_Header=no"
5003 fi
5004 rm -f conftest.err conftest.$ac_ext
5005 fi
5006 echo "$as_me:5006: result: `eval echo '${'$as_ac_Header'}'`" >&5
5007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5009   cat >>confdefs.h <<EOF
5010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5011 EOF
5012
5013 fi
5014 done
5015
5016 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
5017 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
5018 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
5019 do
5020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5021 echo "$as_me:5021: checking for $ac_func" >&5
5022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5023 if eval "test \"\${$as_ac_var+set}\" = set"; then
5024   echo $ECHO_N "(cached) $ECHO_C" >&6
5025 else
5026   cat >conftest.$ac_ext <<_ACEOF
5027 #line 5027 "configure"
5028 #include "confdefs.h"
5029 /* System header to define __stub macros and hopefully few prototypes,
5030     which can conflict with char $ac_func (); below.  */
5031 #include <assert.h>
5032 /* Override any gcc2 internal prototype to avoid an error.  */
5033 #ifdef __cplusplus
5034 extern "C"
5035 #endif
5036 /* We use char because int might match the return type of a gcc2
5037    builtin and then its argument prototype would still apply.  */
5038 char $ac_func ();
5039 char (*f) ();
5040
5041 int
5042 main ()
5043 {
5044 /* The GNU C library defines this for functions which it implements
5045     to always fail with ENOSYS.  Some functions are actually named
5046     something starting with __ and the normal name is an alias.  */
5047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5048 choke me
5049 #else
5050 f = $ac_func;
5051 #endif
5052
5053   ;
5054   return 0;
5055 }
5056 _ACEOF
5057 rm -f conftest.$ac_objext conftest$ac_exeext
5058 if { (eval echo "$as_me:5058: \"$ac_link\"") >&5
5059   (eval $ac_link) 2>&5
5060   ac_status=$?
5061   echo "$as_me:5061: \$? = $ac_status" >&5
5062   (exit $ac_status); } &&
5063          { ac_try='test -s conftest$ac_exeext'
5064   { (eval echo "$as_me:5064: \"$ac_try\"") >&5
5065   (eval $ac_try) 2>&5
5066   ac_status=$?
5067   echo "$as_me:5067: \$? = $ac_status" >&5
5068   (exit $ac_status); }; }; then
5069   eval "$as_ac_var=yes"
5070 else
5071   echo "$as_me: failed program was:" >&5
5072 cat conftest.$ac_ext >&5
5073 eval "$as_ac_var=no"
5074 fi
5075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5076 fi
5077 echo "$as_me:5077: result: `eval echo '${'$as_ac_var'}'`" >&5
5078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5079 if test `eval echo '${'$as_ac_var'}'` = yes; then
5080   cat >>confdefs.h <<EOF
5081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5082 EOF
5083
5084 fi
5085 done
5086
5087           am_save_CPPFLAGS="$CPPFLAGS"
5088
5089   for element in $INCICONV; do
5090     haveit=
5091     for x in $CPPFLAGS; do
5092
5093   acl_save_prefix="$prefix"
5094   prefix="$acl_final_prefix"
5095   acl_save_exec_prefix="$exec_prefix"
5096   exec_prefix="$acl_final_exec_prefix"
5097   eval x=\"$x\"
5098   exec_prefix="$acl_save_exec_prefix"
5099   prefix="$acl_save_prefix"
5100
5101       if test "X$x" = "X$element"; then
5102         haveit=yes
5103         break
5104       fi
5105     done
5106     if test -z "$haveit"; then
5107       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5108     fi
5109   done
5110
5111   echo "$as_me:5111: checking for iconv" >&5
5112 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5113 if test "${am_cv_func_iconv+set}" = set; then
5114   echo $ECHO_N "(cached) $ECHO_C" >&6
5115 else
5116
5117     am_cv_func_iconv="no, consider installing GNU libiconv"
5118     am_cv_lib_iconv=no
5119     cat >conftest.$ac_ext <<_ACEOF
5120 #line 5120 "configure"
5121 #include "confdefs.h"
5122 #include <stdlib.h>
5123 #include <iconv.h>
5124 int
5125 main ()
5126 {
5127 iconv_t cd = iconv_open("","");
5128        iconv(cd,NULL,NULL,NULL,NULL);
5129        iconv_close(cd);
5130   ;
5131   return 0;
5132 }
5133 _ACEOF
5134 rm -f conftest.$ac_objext conftest$ac_exeext
5135 if { (eval echo "$as_me:5135: \"$ac_link\"") >&5
5136   (eval $ac_link) 2>&5
5137   ac_status=$?
5138   echo "$as_me:5138: \$? = $ac_status" >&5
5139   (exit $ac_status); } &&
5140          { ac_try='test -s conftest$ac_exeext'
5141   { (eval echo "$as_me:5141: \"$ac_try\"") >&5
5142   (eval $ac_try) 2>&5
5143   ac_status=$?
5144   echo "$as_me:5144: \$? = $ac_status" >&5
5145   (exit $ac_status); }; }; then
5146   am_cv_func_iconv=yes
5147 else
5148   echo "$as_me: failed program was:" >&5
5149 cat conftest.$ac_ext >&5
5150 fi
5151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5152     if test "$am_cv_func_iconv" != yes; then
5153       am_save_LIBS="$LIBS"
5154       LIBS="$LIBS $LIBICONV"
5155       cat >conftest.$ac_ext <<_ACEOF
5156 #line 5156 "configure"
5157 #include "confdefs.h"
5158 #include <stdlib.h>
5159 #include <iconv.h>
5160 int
5161 main ()
5162 {
5163 iconv_t cd = iconv_open("","");
5164          iconv(cd,NULL,NULL,NULL,NULL);
5165          iconv_close(cd);
5166   ;
5167   return 0;
5168 }
5169 _ACEOF
5170 rm -f conftest.$ac_objext conftest$ac_exeext
5171 if { (eval echo "$as_me:5171: \"$ac_link\"") >&5
5172   (eval $ac_link) 2>&5
5173   ac_status=$?
5174   echo "$as_me:5174: \$? = $ac_status" >&5
5175   (exit $ac_status); } &&
5176          { ac_try='test -s conftest$ac_exeext'
5177   { (eval echo "$as_me:5177: \"$ac_try\"") >&5
5178   (eval $ac_try) 2>&5
5179   ac_status=$?
5180   echo "$as_me:5180: \$? = $ac_status" >&5
5181   (exit $ac_status); }; }; then
5182   am_cv_lib_iconv=yes
5183         am_cv_func_iconv=yes
5184 else
5185   echo "$as_me: failed program was:" >&5
5186 cat conftest.$ac_ext >&5
5187 fi
5188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5189       LIBS="$am_save_LIBS"
5190     fi
5191
5192 fi
5193 echo "$as_me:5193: result: $am_cv_func_iconv" >&5
5194 echo "${ECHO_T}$am_cv_func_iconv" >&6
5195   if test "$am_cv_func_iconv" = yes; then
5196
5197 cat >>confdefs.h <<\EOF
5198 #define HAVE_ICONV 1
5199 EOF
5200
5201   fi
5202   if test "$am_cv_lib_iconv" = yes; then
5203     echo "$as_me:5203: checking how to link with libiconv" >&5
5204 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
5205     echo "$as_me:5205: result: $LIBICONV" >&5
5206 echo "${ECHO_T}$LIBICONV" >&6
5207   else
5208             CPPFLAGS="$am_save_CPPFLAGS"
5209     LIBICONV=
5210     LTLIBICONV=
5211   fi
5212
5213   if test "$am_cv_func_iconv" = yes; then
5214     echo "$as_me:5214: checking for iconv declaration" >&5
5215 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
5216     if test "${am_cv_proto_iconv+set}" = set; then
5217   echo $ECHO_N "(cached) $ECHO_C" >&6
5218 else
5219
5220       cat >conftest.$ac_ext <<_ACEOF
5221 #line 5221 "configure"
5222 #include "confdefs.h"
5223
5224 #include <stdlib.h>
5225 #include <iconv.h>
5226 extern
5227 #ifdef __cplusplus
5228 "C"
5229 #endif
5230 #if defined(__STDC__) || defined(__cplusplus)
5231 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5232 #else
5233 size_t iconv();
5234 #endif
5235
5236 int
5237 main ()
5238 {
5239
5240   ;
5241   return 0;
5242 }
5243 _ACEOF
5244 rm -f conftest.$ac_objext
5245 if { (eval echo "$as_me:5245: \"$ac_compile\"") >&5
5246   (eval $ac_compile) 2>&5
5247   ac_status=$?
5248   echo "$as_me:5248: \$? = $ac_status" >&5
5249   (exit $ac_status); } &&
5250          { ac_try='test -s conftest.$ac_objext'
5251   { (eval echo "$as_me:5251: \"$ac_try\"") >&5
5252   (eval $ac_try) 2>&5
5253   ac_status=$?
5254   echo "$as_me:5254: \$? = $ac_status" >&5
5255   (exit $ac_status); }; }; then
5256   am_cv_proto_iconv_arg1=""
5257 else
5258   echo "$as_me: failed program was:" >&5
5259 cat conftest.$ac_ext >&5
5260 am_cv_proto_iconv_arg1="const"
5261 fi
5262 rm -f conftest.$ac_objext conftest.$ac_ext
5263       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);"
5264 fi
5265
5266     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5267     echo "$as_me:5267: result: ${ac_t:-
5268          }$am_cv_proto_iconv" >&5
5269 echo "${ECHO_T}${ac_t:-
5270          }$am_cv_proto_iconv" >&6
5271
5272 cat >>confdefs.h <<EOF
5273 #define ICONV_CONST $am_cv_proto_iconv_arg1
5274 EOF
5275
5276   fi
5277
5278   echo "$as_me:5278: checking for nl_langinfo and CODESET" >&5
5279 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
5280 if test "${am_cv_langinfo_codeset+set}" = set; then
5281   echo $ECHO_N "(cached) $ECHO_C" >&6
5282 else
5283   cat >conftest.$ac_ext <<_ACEOF
5284 #line 5284 "configure"
5285 #include "confdefs.h"
5286 #include <langinfo.h>
5287 int
5288 main ()
5289 {
5290 char* cs = nl_langinfo(CODESET);
5291   ;
5292   return 0;
5293 }
5294 _ACEOF
5295 rm -f conftest.$ac_objext conftest$ac_exeext
5296 if { (eval echo "$as_me:5296: \"$ac_link\"") >&5
5297   (eval $ac_link) 2>&5
5298   ac_status=$?
5299   echo "$as_me:5299: \$? = $ac_status" >&5
5300   (exit $ac_status); } &&
5301          { ac_try='test -s conftest$ac_exeext'
5302   { (eval echo "$as_me:5302: \"$ac_try\"") >&5
5303   (eval $ac_try) 2>&5
5304   ac_status=$?
5305   echo "$as_me:5305: \$? = $ac_status" >&5
5306   (exit $ac_status); }; }; then
5307   am_cv_langinfo_codeset=yes
5308 else
5309   echo "$as_me: failed program was:" >&5
5310 cat conftest.$ac_ext >&5
5311 am_cv_langinfo_codeset=no
5312 fi
5313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5314
5315 fi
5316 echo "$as_me:5316: result: $am_cv_langinfo_codeset" >&5
5317 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
5318   if test $am_cv_langinfo_codeset = yes; then
5319
5320 cat >>confdefs.h <<\EOF
5321 #define HAVE_LANGINFO_CODESET 1
5322 EOF
5323
5324   fi
5325
5326   if test $ac_cv_header_locale_h = yes; then
5327
5328   echo "$as_me:5328: checking for LC_MESSAGES" >&5
5329 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
5330 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
5331   echo $ECHO_N "(cached) $ECHO_C" >&6
5332 else
5333   cat >conftest.$ac_ext <<_ACEOF
5334 #line 5334 "configure"
5335 #include "confdefs.h"
5336 #include <locale.h>
5337 int
5338 main ()
5339 {
5340 return LC_MESSAGES
5341   ;
5342   return 0;
5343 }
5344 _ACEOF
5345 rm -f conftest.$ac_objext conftest$ac_exeext
5346 if { (eval echo "$as_me:5346: \"$ac_link\"") >&5
5347   (eval $ac_link) 2>&5
5348   ac_status=$?
5349   echo "$as_me:5349: \$? = $ac_status" >&5
5350   (exit $ac_status); } &&
5351          { ac_try='test -s conftest$ac_exeext'
5352   { (eval echo "$as_me:5352: \"$ac_try\"") >&5
5353   (eval $ac_try) 2>&5
5354   ac_status=$?
5355   echo "$as_me:5355: \$? = $ac_status" >&5
5356   (exit $ac_status); }; }; then
5357   am_cv_val_LC_MESSAGES=yes
5358 else
5359   echo "$as_me: failed program was:" >&5
5360 cat conftest.$ac_ext >&5
5361 am_cv_val_LC_MESSAGES=no
5362 fi
5363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5364 fi
5365 echo "$as_me:5365: result: $am_cv_val_LC_MESSAGES" >&5
5366 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
5367   if test $am_cv_val_LC_MESSAGES = yes; then
5368
5369 cat >>confdefs.h <<\EOF
5370 #define HAVE_LC_MESSAGES 1
5371 EOF
5372
5373   fi
5374
5375   fi
5376
5377                       for ac_prog in bison
5378 do
5379   # Extract the first word of "$ac_prog", so it can be a program name with args.
5380 set dummy $ac_prog; ac_word=$2
5381 echo "$as_me:5381: checking for $ac_word" >&5
5382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5383 if test "${ac_cv_prog_INTLBISON+set}" = set; then
5384   echo $ECHO_N "(cached) $ECHO_C" >&6
5385 else
5386   if test -n "$INTLBISON"; then
5387   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
5388 else
5389   ac_save_IFS=$IFS; IFS=$ac_path_separator
5390 ac_dummy="$PATH"
5391 for ac_dir in $ac_dummy; do
5392   IFS=$ac_save_IFS
5393   test -z "$ac_dir" && ac_dir=.
5394   $as_executable_p "$ac_dir/$ac_word" || continue
5395 ac_cv_prog_INTLBISON="$ac_prog"
5396 echo "$as_me:5396: found $ac_dir/$ac_word" >&5
5397 break
5398 done
5399
5400 fi
5401 fi
5402 INTLBISON=$ac_cv_prog_INTLBISON
5403 if test -n "$INTLBISON"; then
5404   echo "$as_me:5404: result: $INTLBISON" >&5
5405 echo "${ECHO_T}$INTLBISON" >&6
5406 else
5407   echo "$as_me:5407: result: no" >&5
5408 echo "${ECHO_T}no" >&6
5409 fi
5410
5411   test -n "$INTLBISON" && break
5412 done
5413
5414   if test -z "$INTLBISON"; then
5415     ac_verc_fail=yes
5416   else
5417         echo "$as_me:5417: checking version of bison" >&5
5418 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
5419     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5420     case $ac_prog_version in
5421       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5422       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
5423          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5424       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5425     esac
5426     echo "$as_me:5426: result: $ac_prog_version" >&5
5427 echo "${ECHO_T}$ac_prog_version" >&6
5428   fi
5429   if test $ac_verc_fail = yes; then
5430     INTLBISON=:
5431   fi
5432
5433   echo "$as_me:5433: checking whether NLS is requested" >&5
5434 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5435     # Check whether --enable-nls or --disable-nls was given.
5436 if test "${enable_nls+set}" = set; then
5437   enableval="$enable_nls"
5438   USE_NLS=$enableval
5439 else
5440   USE_NLS=yes
5441 fi;
5442   echo "$as_me:5442: result: $USE_NLS" >&5
5443 echo "${ECHO_T}$USE_NLS" >&6
5444
5445     BUILD_INCLUDED_LIBINTL=no
5446     USE_INCLUDED_LIBINTL=no
5447
5448   LIBINTL=
5449   LTLIBINTL=
5450   POSUB=
5451
5452     if test "$USE_NLS" = "yes"; then
5453     gt_use_preinstalled_gnugettext=no
5454
5455       echo "$as_me:5455: checking whether included gettext is requested" >&5
5456 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
5457
5458 # Check whether --with-included-gettext or --without-included-gettext was given.
5459 if test "${with_included_gettext+set}" = set; then
5460   withval="$with_included_gettext"
5461   nls_cv_force_use_gnu_gettext=$withval
5462 else
5463   nls_cv_force_use_gnu_gettext=no
5464 fi;
5465       echo "$as_me:5465: result: $nls_cv_force_use_gnu_gettext" >&5
5466 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
5467
5468       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
5469       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5470
5471         echo "$as_me:5471: checking for GNU gettext in libc" >&5
5472 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5473 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5474   echo $ECHO_N "(cached) $ECHO_C" >&6
5475 else
5476   cat >conftest.$ac_ext <<_ACEOF
5477 #line 5477 "configure"
5478 #include "confdefs.h"
5479 #include <libintl.h>
5480 extern int _nl_msg_cat_cntr;
5481 extern int *_nl_domain_bindings;
5482 int
5483 main ()
5484 {
5485 bindtextdomain ("", "");
5486 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5487   ;
5488   return 0;
5489 }
5490 _ACEOF
5491 rm -f conftest.$ac_objext conftest$ac_exeext
5492 if { (eval echo "$as_me:5492: \"$ac_link\"") >&5
5493   (eval $ac_link) 2>&5
5494   ac_status=$?
5495   echo "$as_me:5495: \$? = $ac_status" >&5
5496   (exit $ac_status); } &&
5497          { ac_try='test -s conftest$ac_exeext'
5498   { (eval echo "$as_me:5498: \"$ac_try\"") >&5
5499   (eval $ac_try) 2>&5
5500   ac_status=$?
5501   echo "$as_me:5501: \$? = $ac_status" >&5
5502   (exit $ac_status); }; }; then
5503   gt_cv_func_gnugettext1_libc=yes
5504 else
5505   echo "$as_me: failed program was:" >&5
5506 cat conftest.$ac_ext >&5
5507 gt_cv_func_gnugettext1_libc=no
5508 fi
5509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5510 fi
5511 echo "$as_me:5511: result: $gt_cv_func_gnugettext1_libc" >&5
5512 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5513
5514         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5515
5516     use_additional=yes
5517
5518   acl_save_prefix="$prefix"
5519   prefix="$acl_final_prefix"
5520   acl_save_exec_prefix="$exec_prefix"
5521   exec_prefix="$acl_final_exec_prefix"
5522
5523     eval additional_includedir=\"$includedir\"
5524     eval additional_libdir=\"$libdir\"
5525
5526   exec_prefix="$acl_save_exec_prefix"
5527   prefix="$acl_save_prefix"
5528
5529 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
5530 if test "${with_libintl_prefix+set}" = set; then
5531   withval="$with_libintl_prefix"
5532
5533     if test "X$withval" = "Xno"; then
5534       use_additional=no
5535     else
5536       if test "X$withval" = "X"; then
5537
5538   acl_save_prefix="$prefix"
5539   prefix="$acl_final_prefix"
5540   acl_save_exec_prefix="$exec_prefix"
5541   exec_prefix="$acl_final_exec_prefix"
5542
5543           eval additional_includedir=\"$includedir\"
5544           eval additional_libdir=\"$libdir\"
5545
5546   exec_prefix="$acl_save_exec_prefix"
5547   prefix="$acl_save_prefix"
5548
5549       else
5550         additional_includedir="$withval/include"
5551         additional_libdir="$withval/lib"
5552       fi
5553     fi
5554
5555 fi;
5556       LIBINTL=
5557   LTLIBINTL=
5558   INCINTL=
5559   rpathdirs=
5560   ltrpathdirs=
5561   names_already_handled=
5562   names_next_round='intl '
5563   while test -n "$names_next_round"; do
5564     names_this_round="$names_next_round"
5565     names_next_round=
5566     for name in $names_this_round; do
5567       already_handled=
5568       for n in $names_already_handled; do
5569         if test "$n" = "$name"; then
5570           already_handled=yes
5571           break
5572         fi
5573       done
5574       if test -z "$already_handled"; then
5575         names_already_handled="$names_already_handled $name"
5576                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5577         eval value=\"\$HAVE_LIB$uppername\"
5578         if test -n "$value"; then
5579           if test "$value" = yes; then
5580             eval value=\"\$LIB$uppername\"
5581             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5582             eval value=\"\$LTLIB$uppername\"
5583             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5584           else
5585                                     :
5586           fi
5587         else
5588                               found_dir=
5589           found_la=
5590           found_so=
5591           found_a=
5592           if test $use_additional = yes; then
5593             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5594               found_dir="$additional_libdir"
5595               found_so="$additional_libdir/lib$name.$shlibext"
5596               if test -f "$additional_libdir/lib$name.la"; then
5597                 found_la="$additional_libdir/lib$name.la"
5598               fi
5599             else
5600               if test -f "$additional_libdir/lib$name.$libext"; then
5601                 found_dir="$additional_libdir"
5602                 found_a="$additional_libdir/lib$name.$libext"
5603                 if test -f "$additional_libdir/lib$name.la"; then
5604                   found_la="$additional_libdir/lib$name.la"
5605                 fi
5606               fi
5607             fi
5608           fi
5609           if test "X$found_dir" = "X"; then
5610             for x in $LDFLAGS $LTLIBINTL; do
5611
5612   acl_save_prefix="$prefix"
5613   prefix="$acl_final_prefix"
5614   acl_save_exec_prefix="$exec_prefix"
5615   exec_prefix="$acl_final_exec_prefix"
5616   eval x=\"$x\"
5617   exec_prefix="$acl_save_exec_prefix"
5618   prefix="$acl_save_prefix"
5619
5620               case "$x" in
5621                 -L*)
5622                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5623                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5624                     found_dir="$dir"
5625                     found_so="$dir/lib$name.$shlibext"
5626                     if test -f "$dir/lib$name.la"; then
5627                       found_la="$dir/lib$name.la"
5628                     fi
5629                   else
5630                     if test -f "$dir/lib$name.$libext"; then
5631                       found_dir="$dir"
5632                       found_a="$dir/lib$name.$libext"
5633                       if test -f "$dir/lib$name.la"; then
5634                         found_la="$dir/lib$name.la"
5635                       fi
5636                     fi
5637                   fi
5638                   ;;
5639               esac
5640               if test "X$found_dir" != "X"; then
5641                 break
5642               fi
5643             done
5644           fi
5645           if test "X$found_dir" != "X"; then
5646                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5647             if test "X$found_so" != "X"; then
5648                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5649                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5650               else
5651                                                                                 haveit=
5652                 for x in $ltrpathdirs; do
5653                   if test "X$x" = "X$found_dir"; then
5654                     haveit=yes
5655                     break
5656                   fi
5657                 done
5658                 if test -z "$haveit"; then
5659                   ltrpathdirs="$ltrpathdirs $found_dir"
5660                 fi
5661                                 if test "$hardcode_direct" = yes; then
5662                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5663                 else
5664                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5665                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5666                                                             haveit=
5667                     for x in $rpathdirs; do
5668                       if test "X$x" = "X$found_dir"; then
5669                         haveit=yes
5670                         break
5671                       fi
5672                     done
5673                     if test -z "$haveit"; then
5674                       rpathdirs="$rpathdirs $found_dir"
5675                     fi
5676                   else
5677                                                                                 haveit=
5678                     for x in $LDFLAGS $LIBINTL; do
5679
5680   acl_save_prefix="$prefix"
5681   prefix="$acl_final_prefix"
5682   acl_save_exec_prefix="$exec_prefix"
5683   exec_prefix="$acl_final_exec_prefix"
5684   eval x=\"$x\"
5685   exec_prefix="$acl_save_exec_prefix"
5686   prefix="$acl_save_prefix"
5687
5688                       if test "X$x" = "X-L$found_dir"; then
5689                         haveit=yes
5690                         break
5691                       fi
5692                     done
5693                     if test -z "$haveit"; then
5694                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5695                     fi
5696                     if test "$hardcode_minus_L" != no; then
5697                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5698                     else
5699                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5700                     fi
5701                   fi
5702                 fi
5703               fi
5704             else
5705               if test "X$found_a" != "X"; then
5706                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5707               else
5708                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5709               fi
5710             fi
5711                         additional_includedir=
5712             case "$found_dir" in
5713               */lib | */lib/)
5714                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5715                 additional_includedir="$basedir/include"
5716                 ;;
5717             esac
5718             if test "X$additional_includedir" != "X"; then
5719                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5720                 haveit=
5721                 if test "X$additional_includedir" = "X/usr/local/include"; then
5722                   if test -n "$GCC"; then
5723                     case $host_os in
5724                       linux*) haveit=yes;;
5725                     esac
5726                   fi
5727                 fi
5728                 if test -z "$haveit"; then
5729                   for x in $CPPFLAGS $INCINTL; do
5730
5731   acl_save_prefix="$prefix"
5732   prefix="$acl_final_prefix"
5733   acl_save_exec_prefix="$exec_prefix"
5734   exec_prefix="$acl_final_exec_prefix"
5735   eval x=\"$x\"
5736   exec_prefix="$acl_save_exec_prefix"
5737   prefix="$acl_save_prefix"
5738
5739                     if test "X$x" = "X-I$additional_includedir"; then
5740                       haveit=yes
5741                       break
5742                     fi
5743                   done
5744                   if test -z "$haveit"; then
5745                     if test -d "$additional_includedir"; then
5746                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5747                     fi
5748                   fi
5749                 fi
5750               fi
5751             fi
5752                         if test -n "$found_la"; then
5753                                                         save_libdir="$libdir"
5754               case "$found_la" in
5755                 */* | *\\*) . "$found_la" ;;
5756                 *) . "./$found_la" ;;
5757               esac
5758               libdir="$save_libdir"
5759                             for dep in $dependency_libs; do
5760                 case "$dep" in
5761                   -L*)
5762                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5763                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
5764                       haveit=
5765                       if test "X$additional_libdir" = "X/usr/local/lib"; then
5766                         if test -n "$GCC"; then
5767                           case $host_os in
5768                             linux*) haveit=yes;;
5769                           esac
5770                         fi
5771                       fi
5772                       if test -z "$haveit"; then
5773                         haveit=
5774                         for x in $LDFLAGS $LIBINTL; do
5775
5776   acl_save_prefix="$prefix"
5777   prefix="$acl_final_prefix"
5778   acl_save_exec_prefix="$exec_prefix"
5779   exec_prefix="$acl_final_exec_prefix"
5780   eval x=\"$x\"
5781   exec_prefix="$acl_save_exec_prefix"
5782   prefix="$acl_save_prefix"
5783
5784                           if test "X$x" = "X-L$additional_libdir"; then
5785                             haveit=yes
5786                             break
5787                           fi
5788                         done
5789                         if test -z "$haveit"; then
5790                           if test -d "$additional_libdir"; then
5791                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5792                           fi
5793                         fi
5794                         haveit=
5795                         for x in $LDFLAGS $LTLIBINTL; do
5796
5797   acl_save_prefix="$prefix"
5798   prefix="$acl_final_prefix"
5799   acl_save_exec_prefix="$exec_prefix"
5800   exec_prefix="$acl_final_exec_prefix"
5801   eval x=\"$x\"
5802   exec_prefix="$acl_save_exec_prefix"
5803   prefix="$acl_save_prefix"
5804
5805                           if test "X$x" = "X-L$additional_libdir"; then
5806                             haveit=yes
5807                             break
5808                           fi
5809                         done
5810                         if test -z "$haveit"; then
5811                           if test -d "$additional_libdir"; then
5812                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5813                           fi
5814                         fi
5815                       fi
5816                     fi
5817                     ;;
5818                   -R*)
5819                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5820                     if test "$enable_rpath" != no; then
5821                                                                   haveit=
5822                       for x in $rpathdirs; do
5823                         if test "X$x" = "X$dir"; then
5824                           haveit=yes
5825                           break
5826                         fi
5827                       done
5828                       if test -z "$haveit"; then
5829                         rpathdirs="$rpathdirs $dir"
5830                       fi
5831                                                                   haveit=
5832                       for x in $ltrpathdirs; do
5833                         if test "X$x" = "X$dir"; then
5834                           haveit=yes
5835                           break
5836                         fi
5837                       done
5838                       if test -z "$haveit"; then
5839                         ltrpathdirs="$ltrpathdirs $dir"
5840                       fi
5841                     fi
5842                     ;;
5843                   -l*)
5844                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5845                     ;;
5846                   *.la)
5847                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5848                     ;;
5849                   *)
5850                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5851                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5852                     ;;
5853                 esac
5854               done
5855             fi
5856           else
5857                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5858             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5859           fi
5860         fi
5861       fi
5862     done
5863   done
5864   if test "X$rpathdirs" != "X"; then
5865     if test -n "$hardcode_libdir_separator"; then
5866                         alldirs=
5867       for found_dir in $rpathdirs; do
5868         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5869       done
5870             acl_save_libdir="$libdir"
5871       libdir="$alldirs"
5872       eval flag=\"$hardcode_libdir_flag_spec\"
5873       libdir="$acl_save_libdir"
5874       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5875     else
5876             for found_dir in $rpathdirs; do
5877         acl_save_libdir="$libdir"
5878         libdir="$found_dir"
5879         eval flag=\"$hardcode_libdir_flag_spec\"
5880         libdir="$acl_save_libdir"
5881         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5882       done
5883     fi
5884   fi
5885   if test "X$ltrpathdirs" != "X"; then
5886             for found_dir in $ltrpathdirs; do
5887       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5888     done
5889   fi
5890
5891           echo "$as_me:5891: checking for GNU gettext in libintl" >&5
5892 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
5893 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
5894   echo $ECHO_N "(cached) $ECHO_C" >&6
5895 else
5896   gt_save_CPPFLAGS="$CPPFLAGS"
5897             CPPFLAGS="$CPPFLAGS $INCINTL"
5898             gt_save_LIBS="$LIBS"
5899             LIBS="$LIBS $LIBINTL"
5900                         cat >conftest.$ac_ext <<_ACEOF
5901 #line 5901 "configure"
5902 #include "confdefs.h"
5903 #include <libintl.h>
5904 extern int _nl_msg_cat_cntr;
5905 extern
5906 #ifdef __cplusplus
5907 "C"
5908 #endif
5909 const char *_nl_expand_alias ();
5910 int
5911 main ()
5912 {
5913 bindtextdomain ("", "");
5914 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5915   ;
5916   return 0;
5917 }
5918 _ACEOF
5919 rm -f conftest.$ac_objext conftest$ac_exeext
5920 if { (eval echo "$as_me:5920: \"$ac_link\"") >&5
5921   (eval $ac_link) 2>&5
5922   ac_status=$?
5923   echo "$as_me:5923: \$? = $ac_status" >&5
5924   (exit $ac_status); } &&
5925          { ac_try='test -s conftest$ac_exeext'
5926   { (eval echo "$as_me:5926: \"$ac_try\"") >&5
5927   (eval $ac_try) 2>&5
5928   ac_status=$?
5929   echo "$as_me:5929: \$? = $ac_status" >&5
5930   (exit $ac_status); }; }; then
5931   gt_cv_func_gnugettext1_libintl=yes
5932 else
5933   echo "$as_me: failed program was:" >&5
5934 cat conftest.$ac_ext >&5
5935 gt_cv_func_gnugettext1_libintl=no
5936 fi
5937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5938                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
5939               LIBS="$LIBS $LIBICONV"
5940               cat >conftest.$ac_ext <<_ACEOF
5941 #line 5941 "configure"
5942 #include "confdefs.h"
5943 #include <libintl.h>
5944 extern int _nl_msg_cat_cntr;
5945 extern
5946 #ifdef __cplusplus
5947 "C"
5948 #endif
5949 const char *_nl_expand_alias ();
5950 int
5951 main ()
5952 {
5953 bindtextdomain ("", "");
5954 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5955   ;
5956   return 0;
5957 }
5958 _ACEOF
5959 rm -f conftest.$ac_objext conftest$ac_exeext
5960 if { (eval echo "$as_me:5960: \"$ac_link\"") >&5
5961   (eval $ac_link) 2>&5
5962   ac_status=$?
5963   echo "$as_me:5963: \$? = $ac_status" >&5
5964   (exit $ac_status); } &&
5965          { ac_try='test -s conftest$ac_exeext'
5966   { (eval echo "$as_me:5966: \"$ac_try\"") >&5
5967   (eval $ac_try) 2>&5
5968   ac_status=$?
5969   echo "$as_me:5969: \$? = $ac_status" >&5
5970   (exit $ac_status); }; }; then
5971   LIBINTL="$LIBINTL $LIBICONV"
5972                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5973                 gt_cv_func_gnugettext1_libintl=yes
5974
5975 else
5976   echo "$as_me: failed program was:" >&5
5977 cat conftest.$ac_ext >&5
5978 fi
5979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5980             fi
5981             CPPFLAGS="$gt_save_CPPFLAGS"
5982             LIBS="$gt_save_LIBS"
5983 fi
5984 echo "$as_me:5984: result: $gt_cv_func_gnugettext1_libintl" >&5
5985 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
5986         fi
5987
5988                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
5989            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
5990                 && test "$PACKAGE" != gettext; }; then
5991           gt_use_preinstalled_gnugettext=yes
5992         else
5993                     LIBINTL=
5994           LTLIBINTL=
5995           INCINTL=
5996         fi
5997
5998         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
5999                               nls_cv_use_gnu_gettext=yes
6000         fi
6001       fi
6002
6003       if test "$nls_cv_use_gnu_gettext" = "yes"; then
6004                 INTLOBJS="\$(GETTOBJS)"
6005         BUILD_INCLUDED_LIBINTL=yes
6006         USE_INCLUDED_LIBINTL=yes
6007         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
6008         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
6009         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6010       fi
6011
6012       if test "$gt_use_preinstalled_gnugettext" = "yes" \
6013          || test "$nls_cv_use_gnu_gettext" = "yes"; then
6014                 CATOBJEXT=.gmo
6015       fi
6016
6017     if test "$gt_use_preinstalled_gnugettext" = "yes" \
6018        || test "$nls_cv_use_gnu_gettext" = "yes"; then
6019
6020 cat >>confdefs.h <<\EOF
6021 #define ENABLE_NLS 1
6022 EOF
6023
6024     else
6025       USE_NLS=no
6026     fi
6027   fi
6028
6029   if test "$USE_NLS" = "yes"; then
6030
6031     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6032       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6033         echo "$as_me:6033: checking how to link with libintl" >&5
6034 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6035         echo "$as_me:6035: result: $LIBINTL" >&5
6036 echo "${ECHO_T}$LIBINTL" >&6
6037
6038   for element in $INCINTL; do
6039     haveit=
6040     for x in $CPPFLAGS; do
6041
6042   acl_save_prefix="$prefix"
6043   prefix="$acl_final_prefix"
6044   acl_save_exec_prefix="$exec_prefix"
6045   exec_prefix="$acl_final_exec_prefix"
6046   eval x=\"$x\"
6047   exec_prefix="$acl_save_exec_prefix"
6048   prefix="$acl_save_prefix"
6049
6050       if test "X$x" = "X$element"; then
6051         haveit=yes
6052         break
6053       fi
6054     done
6055     if test -z "$haveit"; then
6056       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6057     fi
6058   done
6059
6060       fi
6061
6062 cat >>confdefs.h <<\EOF
6063 #define HAVE_GETTEXT 1
6064 EOF
6065
6066 cat >>confdefs.h <<\EOF
6067 #define HAVE_DCGETTEXT 1
6068 EOF
6069
6070     fi
6071
6072         POSUB=po
6073   fi
6074
6075             if test "$PACKAGE" = gettext; then
6076       BUILD_INCLUDED_LIBINTL=yes
6077     fi
6078
6079         nls_cv_header_intl=
6080     nls_cv_header_libgt=
6081
6082         DATADIRNAME=share
6083
6084         INSTOBJEXT=.mo
6085
6086         GENCAT=gencat
6087
6088         INTL_LIBTOOL_SUFFIX_PREFIX=
6089
6090     INTLLIBS="$LIBINTL"
6091
6092 echo "$as_me:6092: checking whether ${MAKE-make} sets \${MAKE}" >&5
6093 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
6094 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
6095 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6096   echo $ECHO_N "(cached) $ECHO_C" >&6
6097 else
6098   cat >conftest.make <<\EOF
6099 all:
6100         @echo 'ac_maketemp="${MAKE}"'
6101 EOF
6102 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6103 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6104 if test -n "$ac_maketemp"; then
6105   eval ac_cv_prog_make_${ac_make}_set=yes
6106 else
6107   eval ac_cv_prog_make_${ac_make}_set=no
6108 fi
6109 rm -f conftest.make
6110 fi
6111 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6112   echo "$as_me:6112: result: yes" >&5
6113 echo "${ECHO_T}yes" >&6
6114   SET_MAKE=
6115 else
6116   echo "$as_me:6116: result: no" >&5
6117 echo "${ECHO_T}no" >&6
6118   SET_MAKE="MAKE=${MAKE-make}"
6119 fi
6120
6121 # Extract the first word of "ln", so it can be a program name with args.
6122 set dummy ln; ac_word=$2
6123 echo "$as_me:6123: checking for $ac_word" >&5
6124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6125 if test "${ac_cv_path_LN+set}" = set; then
6126   echo $ECHO_N "(cached) $ECHO_C" >&6
6127 else
6128   case $LN in
6129   [\\/]* | ?:[\\/]*)
6130   ac_cv_path_LN="$LN" # Let the user override the test with a path.
6131   ;;
6132   *)
6133   ac_save_IFS=$IFS; IFS=$ac_path_separator
6134 ac_dummy="$PATH"
6135 for ac_dir in $ac_dummy; do
6136   IFS=$ac_save_IFS
6137   test -z "$ac_dir" && ac_dir=.
6138   if $as_executable_p "$ac_dir/$ac_word"; then
6139    ac_cv_path_LN="$ac_dir/$ac_word"
6140    echo "$as_me:6140: found $ac_dir/$ac_word" >&5
6141    break
6142 fi
6143 done
6144
6145   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
6146   ;;
6147 esac
6148 fi
6149 LN=$ac_cv_path_LN
6150
6151 if test -n "$LN"; then
6152   echo "$as_me:6152: result: $LN" >&5
6153 echo "${ECHO_T}$LN" >&6
6154 else
6155   echo "$as_me:6155: result: no" >&5
6156 echo "${ECHO_T}no" >&6
6157 fi
6158
6159 echo "$as_me:6159: checking whether ln -s works" >&5
6160 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6161 LN_S=$as_ln_s
6162 if test "$LN_S" = "ln -s"; then
6163   echo "$as_me:6163: result: yes" >&5
6164 echo "${ECHO_T}yes" >&6
6165 else
6166   echo "$as_me:6166: result: no, using $LN_S" >&5
6167 echo "${ECHO_T}no, using $LN_S" >&6
6168 fi
6169
6170 # Extract the first word of "mv", so it can be a program name with args.
6171 set dummy mv; ac_word=$2
6172 echo "$as_me:6172: checking for $ac_word" >&5
6173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6174 if test "${ac_cv_path_MV+set}" = set; then
6175   echo $ECHO_N "(cached) $ECHO_C" >&6
6176 else
6177   case $MV in
6178   [\\/]* | ?:[\\/]*)
6179   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6180   ;;
6181   *)
6182   ac_save_IFS=$IFS; IFS=$ac_path_separator
6183 ac_dummy="$PATH"
6184 for ac_dir in $ac_dummy; do
6185   IFS=$ac_save_IFS
6186   test -z "$ac_dir" && ac_dir=.
6187   if $as_executable_p "$ac_dir/$ac_word"; then
6188    ac_cv_path_MV="$ac_dir/$ac_word"
6189    echo "$as_me:6189: found $ac_dir/$ac_word" >&5
6190    break
6191 fi
6192 done
6193
6194   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6195   ;;
6196 esac
6197 fi
6198 MV=$ac_cv_path_MV
6199
6200 if test -n "$MV"; then
6201   echo "$as_me:6201: result: $MV" >&5
6202 echo "${ECHO_T}$MV" >&6
6203 else
6204   echo "$as_me:6204: result: no" >&5
6205 echo "${ECHO_T}no" >&6
6206 fi
6207
6208 # Extract the first word of "cp", so it can be a program name with args.
6209 set dummy cp; ac_word=$2
6210 echo "$as_me:6210: checking for $ac_word" >&5
6211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6212 if test "${ac_cv_path_CP+set}" = set; then
6213   echo $ECHO_N "(cached) $ECHO_C" >&6
6214 else
6215   case $CP in
6216   [\\/]* | ?:[\\/]*)
6217   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6218   ;;
6219   *)
6220   ac_save_IFS=$IFS; IFS=$ac_path_separator
6221 ac_dummy="$PATH"
6222 for ac_dir in $ac_dummy; do
6223   IFS=$ac_save_IFS
6224   test -z "$ac_dir" && ac_dir=.
6225   if $as_executable_p "$ac_dir/$ac_word"; then
6226    ac_cv_path_CP="$ac_dir/$ac_word"
6227    echo "$as_me:6227: found $ac_dir/$ac_word" >&5
6228    break
6229 fi
6230 done
6231
6232   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6233   ;;
6234 esac
6235 fi
6236 CP=$ac_cv_path_CP
6237
6238 if test -n "$CP"; then
6239   echo "$as_me:6239: result: $CP" >&5
6240 echo "${ECHO_T}$CP" >&6
6241 else
6242   echo "$as_me:6242: result: no" >&5
6243 echo "${ECHO_T}no" >&6
6244 fi
6245
6246 # Extract the first word of "rm", so it can be a program name with args.
6247 set dummy rm; ac_word=$2
6248 echo "$as_me:6248: checking for $ac_word" >&5
6249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6250 if test "${ac_cv_path_RM+set}" = set; then
6251   echo $ECHO_N "(cached) $ECHO_C" >&6
6252 else
6253   case $RM in
6254   [\\/]* | ?:[\\/]*)
6255   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6256   ;;
6257   *)
6258   ac_save_IFS=$IFS; IFS=$ac_path_separator
6259 ac_dummy="$PATH"
6260 for ac_dir in $ac_dummy; do
6261   IFS=$ac_save_IFS
6262   test -z "$ac_dir" && ac_dir=.
6263   if $as_executable_p "$ac_dir/$ac_word"; then
6264    ac_cv_path_RM="$ac_dir/$ac_word"
6265    echo "$as_me:6265: found $ac_dir/$ac_word" >&5
6266    break
6267 fi
6268 done
6269
6270   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6271   ;;
6272 esac
6273 fi
6274 RM=$ac_cv_path_RM
6275
6276 if test -n "$RM"; then
6277   echo "$as_me:6277: result: $RM" >&5
6278 echo "${ECHO_T}$RM" >&6
6279 else
6280   echo "$as_me:6280: result: no" >&5
6281 echo "${ECHO_T}no" >&6
6282 fi
6283
6284 # Extract the first word of "chmod", so it can be a program name with args.
6285 set dummy chmod; ac_word=$2
6286 echo "$as_me:6286: checking for $ac_word" >&5
6287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6288 if test "${ac_cv_path_CHMOD+set}" = set; then
6289   echo $ECHO_N "(cached) $ECHO_C" >&6
6290 else
6291   case $CHMOD in
6292   [\\/]* | ?:[\\/]*)
6293   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
6294   ;;
6295   *)
6296   ac_save_IFS=$IFS; IFS=$ac_path_separator
6297 ac_dummy="$PATH"
6298 for ac_dir in $ac_dummy; do
6299   IFS=$ac_save_IFS
6300   test -z "$ac_dir" && ac_dir=.
6301   if $as_executable_p "$ac_dir/$ac_word"; then
6302    ac_cv_path_CHMOD="$ac_dir/$ac_word"
6303    echo "$as_me:6303: found $ac_dir/$ac_word" >&5
6304    break
6305 fi
6306 done
6307
6308   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
6309   ;;
6310 esac
6311 fi
6312 CHMOD=$ac_cv_path_CHMOD
6313
6314 if test -n "$CHMOD"; then
6315   echo "$as_me:6315: result: $CHMOD" >&5
6316 echo "${ECHO_T}$CHMOD" >&6
6317 else
6318   echo "$as_me:6318: result: no" >&5
6319 echo "${ECHO_T}no" >&6
6320 fi
6321
6322 # Extract the first word of "awk", so it can be a program name with args.
6323 set dummy awk; ac_word=$2
6324 echo "$as_me:6324: checking for $ac_word" >&5
6325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6326 if test "${ac_cv_path_AWK+set}" = set; then
6327   echo $ECHO_N "(cached) $ECHO_C" >&6
6328 else
6329   case $AWK in
6330   [\\/]* | ?:[\\/]*)
6331   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
6332   ;;
6333   *)
6334   ac_save_IFS=$IFS; IFS=$ac_path_separator
6335 ac_dummy="$PATH"
6336 for ac_dir in $ac_dummy; do
6337   IFS=$ac_save_IFS
6338   test -z "$ac_dir" && ac_dir=.
6339   if $as_executable_p "$ac_dir/$ac_word"; then
6340    ac_cv_path_AWK="$ac_dir/$ac_word"
6341    echo "$as_me:6341: found $ac_dir/$ac_word" >&5
6342    break
6343 fi
6344 done
6345
6346   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
6347   ;;
6348 esac
6349 fi
6350 AWK=$ac_cv_path_AWK
6351
6352 if test -n "$AWK"; then
6353   echo "$as_me:6353: result: $AWK" >&5
6354 echo "${ECHO_T}$AWK" >&6
6355 else
6356   echo "$as_me:6356: result: no" >&5
6357 echo "${ECHO_T}no" >&6
6358 fi
6359
6360 # Extract the first word of "sed", so it can be a program name with args.
6361 set dummy sed; ac_word=$2
6362 echo "$as_me:6362: checking for $ac_word" >&5
6363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6364 if test "${ac_cv_path_SED+set}" = set; then
6365   echo $ECHO_N "(cached) $ECHO_C" >&6
6366 else
6367   case $SED in
6368   [\\/]* | ?:[\\/]*)
6369   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6370   ;;
6371   *)
6372   ac_save_IFS=$IFS; IFS=$ac_path_separator
6373 ac_dummy="$PATH"
6374 for ac_dir in $ac_dummy; do
6375   IFS=$ac_save_IFS
6376   test -z "$ac_dir" && ac_dir=.
6377   if $as_executable_p "$ac_dir/$ac_word"; then
6378    ac_cv_path_SED="$ac_dir/$ac_word"
6379    echo "$as_me:6379: found $ac_dir/$ac_word" >&5
6380    break
6381 fi
6382 done
6383
6384   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6385   ;;
6386 esac
6387 fi
6388 SED=$ac_cv_path_SED
6389
6390 if test -n "$SED"; then
6391   echo "$as_me:6391: result: $SED" >&5
6392 echo "${ECHO_T}$SED" >&6
6393 else
6394   echo "$as_me:6394: result: no" >&5
6395 echo "${ECHO_T}no" >&6
6396 fi
6397
6398 # Extract the first word of "perl", so it can be a program name with args.
6399 set dummy perl; ac_word=$2
6400 echo "$as_me:6400: checking for $ac_word" >&5
6401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6402 if test "${ac_cv_path_PERL+set}" = set; then
6403   echo $ECHO_N "(cached) $ECHO_C" >&6
6404 else
6405   case $PERL in
6406   [\\/]* | ?:[\\/]*)
6407   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6408   ;;
6409   *)
6410   ac_save_IFS=$IFS; IFS=$ac_path_separator
6411 ac_dummy="$PATH"
6412 for ac_dir in $ac_dummy; do
6413   IFS=$ac_save_IFS
6414   test -z "$ac_dir" && ac_dir=.
6415   if $as_executable_p "$ac_dir/$ac_word"; then
6416    ac_cv_path_PERL="$ac_dir/$ac_word"
6417    echo "$as_me:6417: found $ac_dir/$ac_word" >&5
6418    break
6419 fi
6420 done
6421
6422   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
6423   ;;
6424 esac
6425 fi
6426 PERL=$ac_cv_path_PERL
6427
6428 if test -n "$PERL"; then
6429   echo "$as_me:6429: result: $PERL" >&5
6430 echo "${ECHO_T}$PERL" >&6
6431 else
6432   echo "$as_me:6432: result: no" >&5
6433 echo "${ECHO_T}no" >&6
6434 fi
6435
6436 # Extract the first word of "ldconfig", so it can be a program name with args.
6437 set dummy ldconfig; ac_word=$2
6438 echo "$as_me:6438: checking for $ac_word" >&5
6439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6440 if test "${ac_cv_path_LDCONFIG+set}" = set; then
6441   echo $ECHO_N "(cached) $ECHO_C" >&6
6442 else
6443   case $LDCONFIG in
6444   [\\/]* | ?:[\\/]*)
6445   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
6446   ;;
6447   *)
6448   ac_save_IFS=$IFS; IFS=$ac_path_separator
6449 ac_dummy="$PATH"
6450 for ac_dir in $ac_dummy; do
6451   IFS=$ac_save_IFS
6452   test -z "$ac_dir" && ac_dir=.
6453   if $as_executable_p "$ac_dir/$ac_word"; then
6454    ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
6455    echo "$as_me:6455: found $ac_dir/$ac_word" >&5
6456    break
6457 fi
6458 done
6459
6460   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
6461   ;;
6462 esac
6463 fi
6464 LDCONFIG=$ac_cv_path_LDCONFIG
6465
6466 if test -n "$LDCONFIG"; then
6467   echo "$as_me:6467: result: $LDCONFIG" >&5
6468 echo "${ECHO_T}$LDCONFIG" >&6
6469 else
6470   echo "$as_me:6470: result: no" >&5
6471 echo "${ECHO_T}no" >&6
6472 fi
6473
6474 if test -n "$ac_tool_prefix"; then
6475   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6476 set dummy ${ac_tool_prefix}ar; ac_word=$2
6477 echo "$as_me:6477: checking for $ac_word" >&5
6478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6479 if test "${ac_cv_prog_AR+set}" = set; then
6480   echo $ECHO_N "(cached) $ECHO_C" >&6
6481 else
6482   if test -n "$AR"; then
6483   ac_cv_prog_AR="$AR" # Let the user override the test.
6484 else
6485   ac_save_IFS=$IFS; IFS=$ac_path_separator
6486 ac_dummy="$PATH"
6487 for ac_dir in $ac_dummy; do
6488   IFS=$ac_save_IFS
6489   test -z "$ac_dir" && ac_dir=.
6490   $as_executable_p "$ac_dir/$ac_word" || continue
6491 ac_cv_prog_AR="${ac_tool_prefix}ar"
6492 echo "$as_me:6492: found $ac_dir/$ac_word" >&5
6493 break
6494 done
6495
6496 fi
6497 fi
6498 AR=$ac_cv_prog_AR
6499 if test -n "$AR"; then
6500   echo "$as_me:6500: result: $AR" >&5
6501 echo "${ECHO_T}$AR" >&6
6502 else
6503   echo "$as_me:6503: result: no" >&5
6504 echo "${ECHO_T}no" >&6
6505 fi
6506
6507 fi
6508 if test -z "$ac_cv_prog_AR"; then
6509   ac_ct_AR=$AR
6510   # Extract the first word of "ar", so it can be a program name with args.
6511 set dummy ar; ac_word=$2
6512 echo "$as_me:6512: checking for $ac_word" >&5
6513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6514 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6515   echo $ECHO_N "(cached) $ECHO_C" >&6
6516 else
6517   if test -n "$ac_ct_AR"; then
6518   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6519 else
6520   ac_save_IFS=$IFS; IFS=$ac_path_separator
6521 ac_dummy="$PATH"
6522 for ac_dir in $ac_dummy; do
6523   IFS=$ac_save_IFS
6524   test -z "$ac_dir" && ac_dir=.
6525   $as_executable_p "$ac_dir/$ac_word" || continue
6526 ac_cv_prog_ac_ct_AR="ar"
6527 echo "$as_me:6527: found $ac_dir/$ac_word" >&5
6528 break
6529 done
6530
6531   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
6532 fi
6533 fi
6534 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6535 if test -n "$ac_ct_AR"; then
6536   echo "$as_me:6536: result: $ac_ct_AR" >&5
6537 echo "${ECHO_T}$ac_ct_AR" >&6
6538 else
6539   echo "$as_me:6539: result: no" >&5
6540 echo "${ECHO_T}no" >&6
6541 fi
6542
6543   AR=$ac_ct_AR
6544 else
6545   AR="$ac_cv_prog_AR"
6546 fi
6547
6548 if test -n "$ac_tool_prefix"; then
6549   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6550 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6551 echo "$as_me:6551: checking for $ac_word" >&5
6552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6553 if test "${ac_cv_prog_RANLIB+set}" = set; then
6554   echo $ECHO_N "(cached) $ECHO_C" >&6
6555 else
6556   if test -n "$RANLIB"; then
6557   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6558 else
6559   ac_save_IFS=$IFS; IFS=$ac_path_separator
6560 ac_dummy="$PATH"
6561 for ac_dir in $ac_dummy; do
6562   IFS=$ac_save_IFS
6563   test -z "$ac_dir" && ac_dir=.
6564   $as_executable_p "$ac_dir/$ac_word" || continue
6565 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6566 echo "$as_me:6566: found $ac_dir/$ac_word" >&5
6567 break
6568 done
6569
6570 fi
6571 fi
6572 RANLIB=$ac_cv_prog_RANLIB
6573 if test -n "$RANLIB"; then
6574   echo "$as_me:6574: result: $RANLIB" >&5
6575 echo "${ECHO_T}$RANLIB" >&6
6576 else
6577   echo "$as_me:6577: result: no" >&5
6578 echo "${ECHO_T}no" >&6
6579 fi
6580
6581 fi
6582 if test -z "$ac_cv_prog_RANLIB"; then
6583   ac_ct_RANLIB=$RANLIB
6584   # Extract the first word of "ranlib", so it can be a program name with args.
6585 set dummy ranlib; ac_word=$2
6586 echo "$as_me:6586: checking for $ac_word" >&5
6587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6588 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6589   echo $ECHO_N "(cached) $ECHO_C" >&6
6590 else
6591   if test -n "$ac_ct_RANLIB"; then
6592   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6593 else
6594   ac_save_IFS=$IFS; IFS=$ac_path_separator
6595 ac_dummy="$PATH"
6596 for ac_dir in $ac_dummy; do
6597   IFS=$ac_save_IFS
6598   test -z "$ac_dir" && ac_dir=.
6599   $as_executable_p "$ac_dir/$ac_word" || continue
6600 ac_cv_prog_ac_ct_RANLIB="ranlib"
6601 echo "$as_me:6601: found $ac_dir/$ac_word" >&5
6602 break
6603 done
6604
6605   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6606 fi
6607 fi
6608 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6609 if test -n "$ac_ct_RANLIB"; then
6610   echo "$as_me:6610: result: $ac_ct_RANLIB" >&5
6611 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6612 else
6613   echo "$as_me:6613: result: no" >&5
6614 echo "${ECHO_T}no" >&6
6615 fi
6616
6617   RANLIB=$ac_ct_RANLIB
6618 else
6619   RANLIB="$ac_cv_prog_RANLIB"
6620 fi
6621
6622 if test -n "$ac_tool_prefix"; then
6623   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6624 set dummy ${ac_tool_prefix}strip; ac_word=$2
6625 echo "$as_me:6625: checking for $ac_word" >&5
6626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6627 if test "${ac_cv_prog_STRIP+set}" = set; then
6628   echo $ECHO_N "(cached) $ECHO_C" >&6
6629 else
6630   if test -n "$STRIP"; then
6631   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6632 else
6633   ac_save_IFS=$IFS; IFS=$ac_path_separator
6634 ac_dummy="$PATH"
6635 for ac_dir in $ac_dummy; do
6636   IFS=$ac_save_IFS
6637   test -z "$ac_dir" && ac_dir=.
6638   $as_executable_p "$ac_dir/$ac_word" || continue
6639 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6640 echo "$as_me:6640: found $ac_dir/$ac_word" >&5
6641 break
6642 done
6643
6644 fi
6645 fi
6646 STRIP=$ac_cv_prog_STRIP
6647 if test -n "$STRIP"; then
6648   echo "$as_me:6648: result: $STRIP" >&5
6649 echo "${ECHO_T}$STRIP" >&6
6650 else
6651   echo "$as_me:6651: result: no" >&5
6652 echo "${ECHO_T}no" >&6
6653 fi
6654
6655 fi
6656 if test -z "$ac_cv_prog_STRIP"; then
6657   ac_ct_STRIP=$STRIP
6658   # Extract the first word of "strip", so it can be a program name with args.
6659 set dummy strip; ac_word=$2
6660 echo "$as_me:6660: checking for $ac_word" >&5
6661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6662 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6663   echo $ECHO_N "(cached) $ECHO_C" >&6
6664 else
6665   if test -n "$ac_ct_STRIP"; then
6666   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6667 else
6668   ac_save_IFS=$IFS; IFS=$ac_path_separator
6669 ac_dummy="$PATH"
6670 for ac_dir in $ac_dummy; do
6671   IFS=$ac_save_IFS
6672   test -z "$ac_dir" && ac_dir=.
6673   $as_executable_p "$ac_dir/$ac_word" || continue
6674 ac_cv_prog_ac_ct_STRIP="strip"
6675 echo "$as_me:6675: found $ac_dir/$ac_word" >&5
6676 break
6677 done
6678
6679   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6680 fi
6681 fi
6682 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6683 if test -n "$ac_ct_STRIP"; then
6684   echo "$as_me:6684: result: $ac_ct_STRIP" >&5
6685 echo "${ECHO_T}$ac_ct_STRIP" >&6
6686 else
6687   echo "$as_me:6687: result: no" >&5
6688 echo "${ECHO_T}no" >&6
6689 fi
6690
6691   STRIP=$ac_ct_STRIP
6692 else
6693   STRIP="$ac_cv_prog_STRIP"
6694 fi
6695
6696 # Find a good install program.  We prefer a C program (faster),
6697 # so one script is as good as another.  But avoid the broken or
6698 # incompatible versions:
6699 # SysV /etc/install, /usr/sbin/install
6700 # SunOS /usr/etc/install
6701 # IRIX /sbin/install
6702 # AIX /bin/install
6703 # AmigaOS /C/install, which installs bootblocks on floppy discs
6704 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6705 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6706 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6707 # ./install, which can be erroneously created by make from ./install.sh.
6708 echo "$as_me:6708: checking for a BSD compatible install" >&5
6709 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
6710 if test -z "$INSTALL"; then
6711 if test "${ac_cv_path_install+set}" = set; then
6712   echo $ECHO_N "(cached) $ECHO_C" >&6
6713 else
6714     ac_save_IFS=$IFS; IFS=$ac_path_separator
6715   for ac_dir in $PATH; do
6716     IFS=$ac_save_IFS
6717     # Account for people who put trailing slashes in PATH elements.
6718     case $ac_dir/ in
6719     / | ./ | .// | /cC/* \
6720     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
6721     | /usr/ucb/* ) ;;
6722     *)
6723       # OSF1 and SCO ODT 3.0 have their own names for install.
6724       # Don't use installbsd from OSF since it installs stuff as root
6725       # by default.
6726       for ac_prog in ginstall scoinst install; do
6727         if $as_executable_p "$ac_dir/$ac_prog"; then
6728           if test $ac_prog = install &&
6729             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
6730             # AIX install.  It has an incompatible calling convention.
6731             :
6732           elif test $ac_prog = install &&
6733             grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
6734             # program-specific install script used by HP pwplus--don't use.
6735             :
6736           else
6737             ac_cv_path_install="$ac_dir/$ac_prog -c"
6738             break 2
6739           fi
6740         fi
6741       done
6742       ;;
6743     esac
6744   done
6745
6746 fi
6747   if test "${ac_cv_path_install+set}" = set; then
6748     INSTALL=$ac_cv_path_install
6749   else
6750     # As a last resort, use the slow shell script.  We don't cache a
6751     # path for INSTALL within a source directory, because that will
6752     # break other packages using the cache if that directory is
6753     # removed, or if the path is relative.
6754     INSTALL=$ac_install_sh
6755   fi
6756 fi
6757 echo "$as_me:6757: result: $INSTALL" >&5
6758 echo "${ECHO_T}$INSTALL" >&6
6759
6760 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6761 # It thinks the first close brace ends the variable substitution.
6762 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6763
6764 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6765
6766 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6767
6768 # See if we need a separate native compiler.
6769 if test $cross_compiling = no; then
6770   BUILD_CC="$CC"
6771
6772 else
6773   for ac_prog in gcc cc
6774 do
6775   # Extract the first word of "$ac_prog", so it can be a program name with args.
6776 set dummy $ac_prog; ac_word=$2
6777 echo "$as_me:6777: checking for $ac_word" >&5
6778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6779 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
6780   echo $ECHO_N "(cached) $ECHO_C" >&6
6781 else
6782   if test -n "$BUILD_CC"; then
6783   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
6784 else
6785   ac_save_IFS=$IFS; IFS=$ac_path_separator
6786 ac_dummy="$PATH"
6787 for ac_dir in $ac_dummy; do
6788   IFS=$ac_save_IFS
6789   test -z "$ac_dir" && ac_dir=.
6790   $as_executable_p "$ac_dir/$ac_word" || continue
6791 ac_cv_prog_BUILD_CC="$ac_prog"
6792 echo "$as_me:6792: found $ac_dir/$ac_word" >&5
6793 break
6794 done
6795
6796 fi
6797 fi
6798 BUILD_CC=$ac_cv_prog_BUILD_CC
6799 if test -n "$BUILD_CC"; then
6800   echo "$as_me:6800: result: $BUILD_CC" >&5
6801 echo "${ECHO_T}$BUILD_CC" >&6
6802 else
6803   echo "$as_me:6803: result: no" >&5
6804 echo "${ECHO_T}no" >&6
6805 fi
6806
6807   test -n "$BUILD_CC" && break
6808 done
6809
6810 fi
6811
6812 for ac_header in stdlib.h unistd.h stdarg.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/mount.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.h netinet/in.h
6813 do
6814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6815 echo "$as_me:6815: checking for $ac_header" >&5
6816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6818   echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820   cat >conftest.$ac_ext <<_ACEOF
6821 #line 6821 "configure"
6822 #include "confdefs.h"
6823 #include <$ac_header>
6824 _ACEOF
6825 if { (eval echo "$as_me:6825: \"$ac_cpp conftest.$ac_ext\"") >&5
6826   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6827   ac_status=$?
6828   egrep -v '^ *\+' conftest.er1 >conftest.err
6829   rm -f conftest.er1
6830   cat conftest.err >&5
6831   echo "$as_me:6831: \$? = $ac_status" >&5
6832   (exit $ac_status); } >/dev/null; then
6833   if test -s conftest.err; then
6834     ac_cpp_err=$ac_c_preproc_warn_flag
6835   else
6836     ac_cpp_err=
6837   fi
6838 else
6839   ac_cpp_err=yes
6840 fi
6841 if test -z "$ac_cpp_err"; then
6842   eval "$as_ac_Header=yes"
6843 else
6844   echo "$as_me: failed program was:" >&5
6845   cat conftest.$ac_ext >&5
6846   eval "$as_ac_Header=no"
6847 fi
6848 rm -f conftest.err conftest.$ac_ext
6849 fi
6850 echo "$as_me:6850: result: `eval echo '${'$as_ac_Header'}'`" >&5
6851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6853   cat >>confdefs.h <<EOF
6854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6855 EOF
6856
6857 fi
6858 done
6859
6860 for ac_func in vprintf
6861 do
6862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6863 echo "$as_me:6863: checking for $ac_func" >&5
6864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6865 if eval "test \"\${$as_ac_var+set}\" = set"; then
6866   echo $ECHO_N "(cached) $ECHO_C" >&6
6867 else
6868   cat >conftest.$ac_ext <<_ACEOF
6869 #line 6869 "configure"
6870 #include "confdefs.h"
6871 /* System header to define __stub macros and hopefully few prototypes,
6872     which can conflict with char $ac_func (); below.  */
6873 #include <assert.h>
6874 /* Override any gcc2 internal prototype to avoid an error.  */
6875 #ifdef __cplusplus
6876 extern "C"
6877 #endif
6878 /* We use char because int might match the return type of a gcc2
6879    builtin and then its argument prototype would still apply.  */
6880 char $ac_func ();
6881 char (*f) ();
6882
6883 int
6884 main ()
6885 {
6886 /* The GNU C library defines this for functions which it implements
6887     to always fail with ENOSYS.  Some functions are actually named
6888     something starting with __ and the normal name is an alias.  */
6889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6890 choke me
6891 #else
6892 f = $ac_func;
6893 #endif
6894
6895   ;
6896   return 0;
6897 }
6898 _ACEOF
6899 rm -f conftest.$ac_objext conftest$ac_exeext
6900 if { (eval echo "$as_me:6900: \"$ac_link\"") >&5
6901   (eval $ac_link) 2>&5
6902   ac_status=$?
6903   echo "$as_me:6903: \$? = $ac_status" >&5
6904   (exit $ac_status); } &&
6905          { ac_try='test -s conftest$ac_exeext'
6906   { (eval echo "$as_me:6906: \"$ac_try\"") >&5
6907   (eval $ac_try) 2>&5
6908   ac_status=$?
6909   echo "$as_me:6909: \$? = $ac_status" >&5
6910   (exit $ac_status); }; }; then
6911   eval "$as_ac_var=yes"
6912 else
6913   echo "$as_me: failed program was:" >&5
6914 cat conftest.$ac_ext >&5
6915 eval "$as_ac_var=no"
6916 fi
6917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6918 fi
6919 echo "$as_me:6919: result: `eval echo '${'$as_ac_var'}'`" >&5
6920 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6921 if test `eval echo '${'$as_ac_var'}'` = yes; then
6922   cat >>confdefs.h <<EOF
6923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6924 EOF
6925
6926 echo "$as_me:6926: checking for _doprnt" >&5
6927 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
6928 if test "${ac_cv_func__doprnt+set}" = set; then
6929   echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931   cat >conftest.$ac_ext <<_ACEOF
6932 #line 6932 "configure"
6933 #include "confdefs.h"
6934 /* System header to define __stub macros and hopefully few prototypes,
6935     which can conflict with char _doprnt (); below.  */
6936 #include <assert.h>
6937 /* Override any gcc2 internal prototype to avoid an error.  */
6938 #ifdef __cplusplus
6939 extern "C"
6940 #endif
6941 /* We use char because int might match the return type of a gcc2
6942    builtin and then its argument prototype would still apply.  */
6943 char _doprnt ();
6944 char (*f) ();
6945
6946 int
6947 main ()
6948 {
6949 /* The GNU C library defines this for functions which it implements
6950     to always fail with ENOSYS.  Some functions are actually named
6951     something starting with __ and the normal name is an alias.  */
6952 #if defined (__stub__doprnt) || defined (__stub____doprnt)
6953 choke me
6954 #else
6955 f = _doprnt;
6956 #endif
6957
6958   ;
6959   return 0;
6960 }
6961 _ACEOF
6962 rm -f conftest.$ac_objext conftest$ac_exeext
6963 if { (eval echo "$as_me:6963: \"$ac_link\"") >&5
6964   (eval $ac_link) 2>&5
6965   ac_status=$?
6966   echo "$as_me:6966: \$? = $ac_status" >&5
6967   (exit $ac_status); } &&
6968          { ac_try='test -s conftest$ac_exeext'
6969   { (eval echo "$as_me:6969: \"$ac_try\"") >&5
6970   (eval $ac_try) 2>&5
6971   ac_status=$?
6972   echo "$as_me:6972: \$? = $ac_status" >&5
6973   (exit $ac_status); }; }; then
6974   ac_cv_func__doprnt=yes
6975 else
6976   echo "$as_me: failed program was:" >&5
6977 cat conftest.$ac_ext >&5
6978 ac_cv_func__doprnt=no
6979 fi
6980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6981 fi
6982 echo "$as_me:6982: result: $ac_cv_func__doprnt" >&5
6983 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
6984 if test $ac_cv_func__doprnt = yes; then
6985
6986 cat >>confdefs.h <<\EOF
6987 #define HAVE_DOPRNT 1
6988 EOF
6989
6990 fi
6991
6992 fi
6993 done
6994
6995 echo "$as_me:6995: checking whether d_reclen declared in dirent" >&5
6996 echo $ECHO_N "checking whether d_reclen declared in dirent... $ECHO_C" >&6
6997 if test "${e2fsprogs_cv_have_d_reclen_dirent+set}" = set; then
6998   echo $ECHO_N "(cached) $ECHO_C" >&6
6999 else
7000   cat >conftest.$ac_ext <<_ACEOF
7001 #line 7001 "configure"
7002 #include "confdefs.h"
7003 #include <dirent.h>
7004 int
7005 main ()
7006 {
7007 struct dirent de; de.d_reclen = 0;
7008   ;
7009   return 0;
7010 }
7011 _ACEOF
7012 rm -f conftest.$ac_objext
7013 if { (eval echo "$as_me:7013: \"$ac_compile\"") >&5
7014   (eval $ac_compile) 2>&5
7015   ac_status=$?
7016   echo "$as_me:7016: \$? = $ac_status" >&5
7017   (exit $ac_status); } &&
7018          { ac_try='test -s conftest.$ac_objext'
7019   { (eval echo "$as_me:7019: \"$ac_try\"") >&5
7020   (eval $ac_try) 2>&5
7021   ac_status=$?
7022   echo "$as_me:7022: \$? = $ac_status" >&5
7023   (exit $ac_status); }; }; then
7024   e2fsprogs_cv_have_d_reclen_dirent=yes
7025 else
7026   echo "$as_me: failed program was:" >&5
7027 cat conftest.$ac_ext >&5
7028 e2fsprogs_cv_have_d_reclen_dirent=no
7029 fi
7030 rm -f conftest.$ac_objext conftest.$ac_ext
7031 fi
7032
7033 echo "$as_me:7033: result: $e2fsprogs_cv_have_d_reclen_dirent" >&5
7034 echo "${ECHO_T}$e2fsprogs_cv_have_d_reclen_dirent" >&6
7035 if test "$e2fsprogs_cv_have_d_reclen_dirent" = yes; then
7036    cat >>confdefs.h <<\EOF
7037 #define HAVE_RECLEN_DIRENT 1
7038 EOF
7039
7040 fi
7041 echo "$as_me:7041: checking whether ssize_t declared" >&5
7042 echo $ECHO_N "checking whether ssize_t declared... $ECHO_C" >&6
7043 if test "${e2fsprogs_cv_have_ssize_t+set}" = set; then
7044   echo $ECHO_N "(cached) $ECHO_C" >&6
7045 else
7046   cat >conftest.$ac_ext <<_ACEOF
7047 #line 7047 "configure"
7048 #include "confdefs.h"
7049 #include <sys/types.h>
7050 int
7051 main ()
7052 {
7053 ssize_t a = 0;
7054   ;
7055   return 0;
7056 }
7057 _ACEOF
7058 rm -f conftest.$ac_objext
7059 if { (eval echo "$as_me:7059: \"$ac_compile\"") >&5
7060   (eval $ac_compile) 2>&5
7061   ac_status=$?
7062   echo "$as_me:7062: \$? = $ac_status" >&5
7063   (exit $ac_status); } &&
7064          { ac_try='test -s conftest.$ac_objext'
7065   { (eval echo "$as_me:7065: \"$ac_try\"") >&5
7066   (eval $ac_try) 2>&5
7067   ac_status=$?
7068   echo "$as_me:7068: \$? = $ac_status" >&5
7069   (exit $ac_status); }; }; then
7070   e2fsprogs_cv_have_ssize_t=yes
7071 else
7072   echo "$as_me: failed program was:" >&5
7073 cat conftest.$ac_ext >&5
7074 e2fsprogs_cv_have_ssize_t=no
7075 fi
7076 rm -f conftest.$ac_objext conftest.$ac_ext
7077 fi
7078
7079 echo "$as_me:7079: result: $e2fsprogs_cv_have_ssize_t" >&5
7080 echo "${ECHO_T}$e2fsprogs_cv_have_ssize_t" >&6
7081 if test "$e2fsprogs_cv_have_ssize_t" = yes; then
7082    cat >>confdefs.h <<\EOF
7083 #define HAVE_TYPE_SSIZE_T 1
7084 EOF
7085
7086 fi
7087 echo "$as_me:7087: checking whether llseek declared in unistd.h" >&5
7088 echo $ECHO_N "checking whether llseek declared in unistd.h... $ECHO_C" >&6
7089 if test "${e2fsprogs_cv_have_llseek_prototype+set}" = set; then
7090   echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092   cat >conftest.$ac_ext <<_ACEOF
7093 #line 7093 "configure"
7094 #include "confdefs.h"
7095 #include <unistd.h>
7096 int
7097 main ()
7098 {
7099 extern int llseek(int);
7100   ;
7101   return 0;
7102 }
7103 _ACEOF
7104 rm -f conftest.$ac_objext
7105 if { (eval echo "$as_me:7105: \"$ac_compile\"") >&5
7106   (eval $ac_compile) 2>&5
7107   ac_status=$?
7108   echo "$as_me:7108: \$? = $ac_status" >&5
7109   (exit $ac_status); } &&
7110          { ac_try='test -s conftest.$ac_objext'
7111   { (eval echo "$as_me:7111: \"$ac_try\"") >&5
7112   (eval $ac_try) 2>&5
7113   ac_status=$?
7114   echo "$as_me:7114: \$? = $ac_status" >&5
7115   (exit $ac_status); }; }; then
7116   e2fsprogs_cv_have_llseek_prototype=no
7117 else
7118   echo "$as_me: failed program was:" >&5
7119 cat conftest.$ac_ext >&5
7120 e2fsprogs_cv_have_llseek_prototype=yes
7121 fi
7122 rm -f conftest.$ac_objext conftest.$ac_ext
7123 fi
7124
7125 echo "$as_me:7125: result: $e2fsprogs_cv_have_llseek_prototype" >&5
7126 echo "${ECHO_T}$e2fsprogs_cv_have_llseek_prototype" >&6
7127 if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
7128    cat >>confdefs.h <<\EOF
7129 #define HAVE_LLSEEK_PROTOTYPE 1
7130 EOF
7131
7132 fi
7133 echo "$as_me:7133: checking whether lseek64 declared in unistd.h" >&5
7134 echo $ECHO_N "checking whether lseek64 declared in unistd.h... $ECHO_C" >&6
7135 if test "${e2fsprogs_cv_have_lseek64_prototype+set}" = set; then
7136   echo $ECHO_N "(cached) $ECHO_C" >&6
7137 else
7138   cat >conftest.$ac_ext <<_ACEOF
7139 #line 7139 "configure"
7140 #include "confdefs.h"
7141 #define _LARGEFILE_SOURCE
7142 #define _LARGEFILE64_SOURCE
7143 #include <unistd.h>
7144 int
7145 main ()
7146 {
7147 extern int lseek64(int);
7148   ;
7149   return 0;
7150 }
7151 _ACEOF
7152 rm -f conftest.$ac_objext
7153 if { (eval echo "$as_me:7153: \"$ac_compile\"") >&5
7154   (eval $ac_compile) 2>&5
7155   ac_status=$?
7156   echo "$as_me:7156: \$? = $ac_status" >&5
7157   (exit $ac_status); } &&
7158          { ac_try='test -s conftest.$ac_objext'
7159   { (eval echo "$as_me:7159: \"$ac_try\"") >&5
7160   (eval $ac_try) 2>&5
7161   ac_status=$?
7162   echo "$as_me:7162: \$? = $ac_status" >&5
7163   (exit $ac_status); }; }; then
7164   e2fsprogs_cv_have_lseek64_prototype=no
7165 else
7166   echo "$as_me: failed program was:" >&5
7167 cat conftest.$ac_ext >&5
7168 e2fsprogs_cv_have_lseek64_prototype=yes
7169 fi
7170 rm -f conftest.$ac_objext conftest.$ac_ext
7171 fi
7172
7173 echo "$as_me:7173: result: $e2fsprogs_cv_have_lseek64_prototype" >&5
7174 echo "${ECHO_T}$e2fsprogs_cv_have_lseek64_prototype" >&6
7175 if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
7176    cat >>confdefs.h <<\EOF
7177 #define HAVE_LSEEK64_PROTOTYPE 1
7178 EOF
7179
7180 fi
7181 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
7182   # if cross-compiling, with no cached values, just assume something common.
7183   ac_cv_sizeof_short=2
7184   ac_cv_sizeof_int=4
7185   ac_cv_sizeof_long=4
7186   ac_cv_sizeof_long_long=8
7187   { echo "$as_me:7187: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
7188 echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
7189 fi
7190 echo "$as_me:7190: checking for short" >&5
7191 echo $ECHO_N "checking for short... $ECHO_C" >&6
7192 if test "${ac_cv_type_short+set}" = set; then
7193   echo $ECHO_N "(cached) $ECHO_C" >&6
7194 else
7195   cat >conftest.$ac_ext <<_ACEOF
7196 #line 7196 "configure"
7197 #include "confdefs.h"
7198 $ac_includes_default
7199 int
7200 main ()
7201 {
7202 if ((short *) 0)
7203   return 0;
7204 if (sizeof (short))
7205   return 0;
7206   ;
7207   return 0;
7208 }
7209 _ACEOF
7210 rm -f conftest.$ac_objext
7211 if { (eval echo "$as_me:7211: \"$ac_compile\"") >&5
7212   (eval $ac_compile) 2>&5
7213   ac_status=$?
7214   echo "$as_me:7214: \$? = $ac_status" >&5
7215   (exit $ac_status); } &&
7216          { ac_try='test -s conftest.$ac_objext'
7217   { (eval echo "$as_me:7217: \"$ac_try\"") >&5
7218   (eval $ac_try) 2>&5
7219   ac_status=$?
7220   echo "$as_me:7220: \$? = $ac_status" >&5
7221   (exit $ac_status); }; }; then
7222   ac_cv_type_short=yes
7223 else
7224   echo "$as_me: failed program was:" >&5
7225 cat conftest.$ac_ext >&5
7226 ac_cv_type_short=no
7227 fi
7228 rm -f conftest.$ac_objext conftest.$ac_ext
7229 fi
7230 echo "$as_me:7230: result: $ac_cv_type_short" >&5
7231 echo "${ECHO_T}$ac_cv_type_short" >&6
7232
7233 echo "$as_me:7233: checking size of short" >&5
7234 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7235 if test "${ac_cv_sizeof_short+set}" = set; then
7236   echo $ECHO_N "(cached) $ECHO_C" >&6
7237 else
7238   if test "$ac_cv_type_short" = yes; then
7239   if test "$cross_compiling" = yes; then
7240   # Depending upon the size, compute the lo and hi bounds.
7241 cat >conftest.$ac_ext <<_ACEOF
7242 #line 7242 "configure"
7243 #include "confdefs.h"
7244 $ac_includes_default
7245 int
7246 main ()
7247 {
7248 int _array_ [1 - 2 * !((sizeof (short)) >= 0)]
7249   ;
7250   return 0;
7251 }
7252 _ACEOF
7253 rm -f conftest.$ac_objext
7254 if { (eval echo "$as_me:7254: \"$ac_compile\"") >&5
7255   (eval $ac_compile) 2>&5
7256   ac_status=$?
7257   echo "$as_me:7257: \$? = $ac_status" >&5
7258   (exit $ac_status); } &&
7259          { ac_try='test -s conftest.$ac_objext'
7260   { (eval echo "$as_me:7260: \"$ac_try\"") >&5
7261   (eval $ac_try) 2>&5
7262   ac_status=$?
7263   echo "$as_me:7263: \$? = $ac_status" >&5
7264   (exit $ac_status); }; }; then
7265   ac_lo=0 ac_mid=0
7266   while :; do
7267     cat >conftest.$ac_ext <<_ACEOF
7268 #line 7268 "configure"
7269 #include "confdefs.h"
7270 $ac_includes_default
7271 int
7272 main ()
7273 {
7274 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
7275   ;
7276   return 0;
7277 }
7278 _ACEOF
7279 rm -f conftest.$ac_objext
7280 if { (eval echo "$as_me:7280: \"$ac_compile\"") >&5
7281   (eval $ac_compile) 2>&5
7282   ac_status=$?
7283   echo "$as_me:7283: \$? = $ac_status" >&5
7284   (exit $ac_status); } &&
7285          { ac_try='test -s conftest.$ac_objext'
7286   { (eval echo "$as_me:7286: \"$ac_try\"") >&5
7287   (eval $ac_try) 2>&5
7288   ac_status=$?
7289   echo "$as_me:7289: \$? = $ac_status" >&5
7290   (exit $ac_status); }; }; then
7291   ac_hi=$ac_mid; break
7292 else
7293   echo "$as_me: failed program was:" >&5
7294 cat conftest.$ac_ext >&5
7295 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
7296 fi
7297 rm -f conftest.$ac_objext conftest.$ac_ext
7298   done
7299 else
7300   echo "$as_me: failed program was:" >&5
7301 cat conftest.$ac_ext >&5
7302 ac_hi=-1 ac_mid=-1
7303   while :; do
7304     cat >conftest.$ac_ext <<_ACEOF
7305 #line 7305 "configure"
7306 #include "confdefs.h"
7307 $ac_includes_default
7308 int
7309 main ()
7310 {
7311 int _array_ [1 - 2 * !((sizeof (short)) >= $ac_mid)]
7312   ;
7313   return 0;
7314 }
7315 _ACEOF
7316 rm -f conftest.$ac_objext
7317 if { (eval echo "$as_me:7317: \"$ac_compile\"") >&5
7318   (eval $ac_compile) 2>&5
7319   ac_status=$?
7320   echo "$as_me:7320: \$? = $ac_status" >&5
7321   (exit $ac_status); } &&
7322          { ac_try='test -s conftest.$ac_objext'
7323   { (eval echo "$as_me:7323: \"$ac_try\"") >&5
7324   (eval $ac_try) 2>&5
7325   ac_status=$?
7326   echo "$as_me:7326: \$? = $ac_status" >&5
7327   (exit $ac_status); }; }; then
7328   ac_lo=$ac_mid; break
7329 else
7330   echo "$as_me: failed program was:" >&5
7331 cat conftest.$ac_ext >&5
7332 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
7333 fi
7334 rm -f conftest.$ac_objext conftest.$ac_ext
7335   done
7336 fi
7337 rm -f conftest.$ac_objext conftest.$ac_ext
7338 # Binary search between lo and hi bounds.
7339 while test "x$ac_lo" != "x$ac_hi"; do
7340   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7341   cat >conftest.$ac_ext <<_ACEOF
7342 #line 7342 "configure"
7343 #include "confdefs.h"
7344 $ac_includes_default
7345 int
7346 main ()
7347 {
7348 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
7349   ;
7350   return 0;
7351 }
7352 _ACEOF
7353 rm -f conftest.$ac_objext
7354 if { (eval echo "$as_me:7354: \"$ac_compile\"") >&5
7355   (eval $ac_compile) 2>&5
7356   ac_status=$?
7357   echo "$as_me:7357: \$? = $ac_status" >&5
7358   (exit $ac_status); } &&
7359          { ac_try='test -s conftest.$ac_objext'
7360   { (eval echo "$as_me:7360: \"$ac_try\"") >&5
7361   (eval $ac_try) 2>&5
7362   ac_status=$?
7363   echo "$as_me:7363: \$? = $ac_status" >&5
7364   (exit $ac_status); }; }; then
7365   ac_hi=$ac_mid
7366 else
7367   echo "$as_me: failed program was:" >&5
7368 cat conftest.$ac_ext >&5
7369 ac_lo=`expr $ac_mid + 1`
7370 fi
7371 rm -f conftest.$ac_objext conftest.$ac_ext
7372 done
7373 ac_cv_sizeof_short=$ac_lo
7374 else
7375   if test "$cross_compiling" = yes; then
7376   { { echo "$as_me:7376: error: cannot run test program while cross compiling" >&5
7377 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7378    { (exit 1); exit 1; }; }
7379 else
7380   cat >conftest.$ac_ext <<_ACEOF
7381 #line 7381 "configure"
7382 #include "confdefs.h"
7383 $ac_includes_default
7384 int
7385 main ()
7386 {
7387 FILE *f = fopen ("conftest.val", "w");
7388 if (!f)
7389   exit (1);
7390 fprintf (f, "%d", (sizeof (short)));
7391 fclose (f);
7392   ;
7393   return 0;
7394 }
7395 _ACEOF
7396 rm -f conftest$ac_exeext
7397 if { (eval echo "$as_me:7397: \"$ac_link\"") >&5
7398   (eval $ac_link) 2>&5
7399   ac_status=$?
7400   echo "$as_me:7400: \$? = $ac_status" >&5
7401   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7402   { (eval echo "$as_me:7402: \"$ac_try\"") >&5
7403   (eval $ac_try) 2>&5
7404   ac_status=$?
7405   echo "$as_me:7405: \$? = $ac_status" >&5
7406   (exit $ac_status); }; }; then
7407   ac_cv_sizeof_short=`cat conftest.val`
7408 else
7409   echo "$as_me: program exited with status $ac_status" >&5
7410 echo "$as_me: failed program was:" >&5
7411 cat conftest.$ac_ext >&5
7412 fi
7413 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7414 fi
7415 fi
7416 rm -f conftest.val
7417 else
7418   ac_cv_sizeof_short=0
7419 fi
7420 fi
7421 echo "$as_me:7421: result: $ac_cv_sizeof_short" >&5
7422 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7423 cat >>confdefs.h <<EOF
7424 #define SIZEOF_SHORT $ac_cv_sizeof_short
7425 EOF
7426
7427 echo "$as_me:7427: checking for int" >&5
7428 echo $ECHO_N "checking for int... $ECHO_C" >&6
7429 if test "${ac_cv_type_int+set}" = set; then
7430   echo $ECHO_N "(cached) $ECHO_C" >&6
7431 else
7432   cat >conftest.$ac_ext <<_ACEOF
7433 #line 7433 "configure"
7434 #include "confdefs.h"
7435 $ac_includes_default
7436 int
7437 main ()
7438 {
7439 if ((int *) 0)
7440   return 0;
7441 if (sizeof (int))
7442   return 0;
7443   ;
7444   return 0;
7445 }
7446 _ACEOF
7447 rm -f conftest.$ac_objext
7448 if { (eval echo "$as_me:7448: \"$ac_compile\"") >&5
7449   (eval $ac_compile) 2>&5
7450   ac_status=$?
7451   echo "$as_me:7451: \$? = $ac_status" >&5
7452   (exit $ac_status); } &&
7453          { ac_try='test -s conftest.$ac_objext'
7454   { (eval echo "$as_me:7454: \"$ac_try\"") >&5
7455   (eval $ac_try) 2>&5
7456   ac_status=$?
7457   echo "$as_me:7457: \$? = $ac_status" >&5
7458   (exit $ac_status); }; }; then
7459   ac_cv_type_int=yes
7460 else
7461   echo "$as_me: failed program was:" >&5
7462 cat conftest.$ac_ext >&5
7463 ac_cv_type_int=no
7464 fi
7465 rm -f conftest.$ac_objext conftest.$ac_ext
7466 fi
7467 echo "$as_me:7467: result: $ac_cv_type_int" >&5
7468 echo "${ECHO_T}$ac_cv_type_int" >&6
7469
7470 echo "$as_me:7470: checking size of int" >&5
7471 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7472 if test "${ac_cv_sizeof_int+set}" = set; then
7473   echo $ECHO_N "(cached) $ECHO_C" >&6
7474 else
7475   if test "$ac_cv_type_int" = yes; then
7476   if test "$cross_compiling" = yes; then
7477   # Depending upon the size, compute the lo and hi bounds.
7478 cat >conftest.$ac_ext <<_ACEOF
7479 #line 7479 "configure"
7480 #include "confdefs.h"
7481 $ac_includes_default
7482 int
7483 main ()
7484 {
7485 int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
7486   ;
7487   return 0;
7488 }
7489 _ACEOF
7490 rm -f conftest.$ac_objext
7491 if { (eval echo "$as_me:7491: \"$ac_compile\"") >&5
7492   (eval $ac_compile) 2>&5
7493   ac_status=$?
7494   echo "$as_me:7494: \$? = $ac_status" >&5
7495   (exit $ac_status); } &&
7496          { ac_try='test -s conftest.$ac_objext'
7497   { (eval echo "$as_me:7497: \"$ac_try\"") >&5
7498   (eval $ac_try) 2>&5
7499   ac_status=$?
7500   echo "$as_me:7500: \$? = $ac_status" >&5
7501   (exit $ac_status); }; }; then
7502   ac_lo=0 ac_mid=0
7503   while :; do
7504     cat >conftest.$ac_ext <<_ACEOF
7505 #line 7505 "configure"
7506 #include "confdefs.h"
7507 $ac_includes_default
7508 int
7509 main ()
7510 {
7511 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
7512   ;
7513   return 0;
7514 }
7515 _ACEOF
7516 rm -f conftest.$ac_objext
7517 if { (eval echo "$as_me:7517: \"$ac_compile\"") >&5
7518   (eval $ac_compile) 2>&5
7519   ac_status=$?
7520   echo "$as_me:7520: \$? = $ac_status" >&5
7521   (exit $ac_status); } &&
7522          { ac_try='test -s conftest.$ac_objext'
7523   { (eval echo "$as_me:7523: \"$ac_try\"") >&5
7524   (eval $ac_try) 2>&5
7525   ac_status=$?
7526   echo "$as_me:7526: \$? = $ac_status" >&5
7527   (exit $ac_status); }; }; then
7528   ac_hi=$ac_mid; break
7529 else
7530   echo "$as_me: failed program was:" >&5
7531 cat conftest.$ac_ext >&5
7532 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
7533 fi
7534 rm -f conftest.$ac_objext conftest.$ac_ext
7535   done
7536 else
7537   echo "$as_me: failed program was:" >&5
7538 cat conftest.$ac_ext >&5
7539 ac_hi=-1 ac_mid=-1
7540   while :; do
7541     cat >conftest.$ac_ext <<_ACEOF
7542 #line 7542 "configure"
7543 #include "confdefs.h"
7544 $ac_includes_default
7545 int
7546 main ()
7547 {
7548 int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
7549   ;
7550   return 0;
7551 }
7552 _ACEOF
7553 rm -f conftest.$ac_objext
7554 if { (eval echo "$as_me:7554: \"$ac_compile\"") >&5
7555   (eval $ac_compile) 2>&5
7556   ac_status=$?
7557   echo "$as_me:7557: \$? = $ac_status" >&5
7558   (exit $ac_status); } &&
7559          { ac_try='test -s conftest.$ac_objext'
7560   { (eval echo "$as_me:7560: \"$ac_try\"") >&5
7561   (eval $ac_try) 2>&5
7562   ac_status=$?
7563   echo "$as_me:7563: \$? = $ac_status" >&5
7564   (exit $ac_status); }; }; then
7565   ac_lo=$ac_mid; break
7566 else
7567   echo "$as_me: failed program was:" >&5
7568 cat conftest.$ac_ext >&5
7569 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
7570 fi
7571 rm -f conftest.$ac_objext conftest.$ac_ext
7572   done
7573 fi
7574 rm -f conftest.$ac_objext conftest.$ac_ext
7575 # Binary search between lo and hi bounds.
7576 while test "x$ac_lo" != "x$ac_hi"; do
7577   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7578   cat >conftest.$ac_ext <<_ACEOF
7579 #line 7579 "configure"
7580 #include "confdefs.h"
7581 $ac_includes_default
7582 int
7583 main ()
7584 {
7585 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
7586   ;
7587   return 0;
7588 }
7589 _ACEOF
7590 rm -f conftest.$ac_objext
7591 if { (eval echo "$as_me:7591: \"$ac_compile\"") >&5
7592   (eval $ac_compile) 2>&5
7593   ac_status=$?
7594   echo "$as_me:7594: \$? = $ac_status" >&5
7595   (exit $ac_status); } &&
7596          { ac_try='test -s conftest.$ac_objext'
7597   { (eval echo "$as_me:7597: \"$ac_try\"") >&5
7598   (eval $ac_try) 2>&5
7599   ac_status=$?
7600   echo "$as_me:7600: \$? = $ac_status" >&5
7601   (exit $ac_status); }; }; then
7602   ac_hi=$ac_mid
7603 else
7604   echo "$as_me: failed program was:" >&5
7605 cat conftest.$ac_ext >&5
7606 ac_lo=`expr $ac_mid + 1`
7607 fi
7608 rm -f conftest.$ac_objext conftest.$ac_ext
7609 done
7610 ac_cv_sizeof_int=$ac_lo
7611 else
7612   if test "$cross_compiling" = yes; then
7613   { { echo "$as_me:7613: error: cannot run test program while cross compiling" >&5
7614 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7615    { (exit 1); exit 1; }; }
7616 else
7617   cat >conftest.$ac_ext <<_ACEOF
7618 #line 7618 "configure"
7619 #include "confdefs.h"
7620 $ac_includes_default
7621 int
7622 main ()
7623 {
7624 FILE *f = fopen ("conftest.val", "w");
7625 if (!f)
7626   exit (1);
7627 fprintf (f, "%d", (sizeof (int)));
7628 fclose (f);
7629   ;
7630   return 0;
7631 }
7632 _ACEOF
7633 rm -f conftest$ac_exeext
7634 if { (eval echo "$as_me:7634: \"$ac_link\"") >&5
7635   (eval $ac_link) 2>&5
7636   ac_status=$?
7637   echo "$as_me:7637: \$? = $ac_status" >&5
7638   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7639   { (eval echo "$as_me:7639: \"$ac_try\"") >&5
7640   (eval $ac_try) 2>&5
7641   ac_status=$?
7642   echo "$as_me:7642: \$? = $ac_status" >&5
7643   (exit $ac_status); }; }; then
7644   ac_cv_sizeof_int=`cat conftest.val`
7645 else
7646   echo "$as_me: program exited with status $ac_status" >&5
7647 echo "$as_me: failed program was:" >&5
7648 cat conftest.$ac_ext >&5
7649 fi
7650 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7651 fi
7652 fi
7653 rm -f conftest.val
7654 else
7655   ac_cv_sizeof_int=0
7656 fi
7657 fi
7658 echo "$as_me:7658: result: $ac_cv_sizeof_int" >&5
7659 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7660 cat >>confdefs.h <<EOF
7661 #define SIZEOF_INT $ac_cv_sizeof_int
7662 EOF
7663
7664 echo "$as_me:7664: checking for long" >&5
7665 echo $ECHO_N "checking for long... $ECHO_C" >&6
7666 if test "${ac_cv_type_long+set}" = set; then
7667   echo $ECHO_N "(cached) $ECHO_C" >&6
7668 else
7669   cat >conftest.$ac_ext <<_ACEOF
7670 #line 7670 "configure"
7671 #include "confdefs.h"
7672 $ac_includes_default
7673 int
7674 main ()
7675 {
7676 if ((long *) 0)
7677   return 0;
7678 if (sizeof (long))
7679   return 0;
7680   ;
7681   return 0;
7682 }
7683 _ACEOF
7684 rm -f conftest.$ac_objext
7685 if { (eval echo "$as_me:7685: \"$ac_compile\"") >&5
7686   (eval $ac_compile) 2>&5
7687   ac_status=$?
7688   echo "$as_me:7688: \$? = $ac_status" >&5
7689   (exit $ac_status); } &&
7690          { ac_try='test -s conftest.$ac_objext'
7691   { (eval echo "$as_me:7691: \"$ac_try\"") >&5
7692   (eval $ac_try) 2>&5
7693   ac_status=$?
7694   echo "$as_me:7694: \$? = $ac_status" >&5
7695   (exit $ac_status); }; }; then
7696   ac_cv_type_long=yes
7697 else
7698   echo "$as_me: failed program was:" >&5
7699 cat conftest.$ac_ext >&5
7700 ac_cv_type_long=no
7701 fi
7702 rm -f conftest.$ac_objext conftest.$ac_ext
7703 fi
7704 echo "$as_me:7704: result: $ac_cv_type_long" >&5
7705 echo "${ECHO_T}$ac_cv_type_long" >&6
7706
7707 echo "$as_me:7707: checking size of long" >&5
7708 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7709 if test "${ac_cv_sizeof_long+set}" = set; then
7710   echo $ECHO_N "(cached) $ECHO_C" >&6
7711 else
7712   if test "$ac_cv_type_long" = yes; then
7713   if test "$cross_compiling" = yes; then
7714   # Depending upon the size, compute the lo and hi bounds.
7715 cat >conftest.$ac_ext <<_ACEOF
7716 #line 7716 "configure"
7717 #include "confdefs.h"
7718 $ac_includes_default
7719 int
7720 main ()
7721 {
7722 int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
7723   ;
7724   return 0;
7725 }
7726 _ACEOF
7727 rm -f conftest.$ac_objext
7728 if { (eval echo "$as_me:7728: \"$ac_compile\"") >&5
7729   (eval $ac_compile) 2>&5
7730   ac_status=$?
7731   echo "$as_me:7731: \$? = $ac_status" >&5
7732   (exit $ac_status); } &&
7733          { ac_try='test -s conftest.$ac_objext'
7734   { (eval echo "$as_me:7734: \"$ac_try\"") >&5
7735   (eval $ac_try) 2>&5
7736   ac_status=$?
7737   echo "$as_me:7737: \$? = $ac_status" >&5
7738   (exit $ac_status); }; }; then
7739   ac_lo=0 ac_mid=0
7740   while :; do
7741     cat >conftest.$ac_ext <<_ACEOF
7742 #line 7742 "configure"
7743 #include "confdefs.h"
7744 $ac_includes_default
7745 int
7746 main ()
7747 {
7748 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
7749   ;
7750   return 0;
7751 }
7752 _ACEOF
7753 rm -f conftest.$ac_objext
7754 if { (eval echo "$as_me:7754: \"$ac_compile\"") >&5
7755   (eval $ac_compile) 2>&5
7756   ac_status=$?
7757   echo "$as_me:7757: \$? = $ac_status" >&5
7758   (exit $ac_status); } &&
7759          { ac_try='test -s conftest.$ac_objext'
7760   { (eval echo "$as_me:7760: \"$ac_try\"") >&5
7761   (eval $ac_try) 2>&5
7762   ac_status=$?
7763   echo "$as_me:7763: \$? = $ac_status" >&5
7764   (exit $ac_status); }; }; then
7765   ac_hi=$ac_mid; break
7766 else
7767   echo "$as_me: failed program was:" >&5
7768 cat conftest.$ac_ext >&5
7769 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
7770 fi
7771 rm -f conftest.$ac_objext conftest.$ac_ext
7772   done
7773 else
7774   echo "$as_me: failed program was:" >&5
7775 cat conftest.$ac_ext >&5
7776 ac_hi=-1 ac_mid=-1
7777   while :; do
7778     cat >conftest.$ac_ext <<_ACEOF
7779 #line 7779 "configure"
7780 #include "confdefs.h"
7781 $ac_includes_default
7782 int
7783 main ()
7784 {
7785 int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
7786   ;
7787   return 0;
7788 }
7789 _ACEOF
7790 rm -f conftest.$ac_objext
7791 if { (eval echo "$as_me:7791: \"$ac_compile\"") >&5
7792   (eval $ac_compile) 2>&5
7793   ac_status=$?
7794   echo "$as_me:7794: \$? = $ac_status" >&5
7795   (exit $ac_status); } &&
7796          { ac_try='test -s conftest.$ac_objext'
7797   { (eval echo "$as_me:7797: \"$ac_try\"") >&5
7798   (eval $ac_try) 2>&5
7799   ac_status=$?
7800   echo "$as_me:7800: \$? = $ac_status" >&5
7801   (exit $ac_status); }; }; then
7802   ac_lo=$ac_mid; break
7803 else
7804   echo "$as_me: failed program was:" >&5
7805 cat conftest.$ac_ext >&5
7806 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
7807 fi
7808 rm -f conftest.$ac_objext conftest.$ac_ext
7809   done
7810 fi
7811 rm -f conftest.$ac_objext conftest.$ac_ext
7812 # Binary search between lo and hi bounds.
7813 while test "x$ac_lo" != "x$ac_hi"; do
7814   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7815   cat >conftest.$ac_ext <<_ACEOF
7816 #line 7816 "configure"
7817 #include "confdefs.h"
7818 $ac_includes_default
7819 int
7820 main ()
7821 {
7822 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
7823   ;
7824   return 0;
7825 }
7826 _ACEOF
7827 rm -f conftest.$ac_objext
7828 if { (eval echo "$as_me:7828: \"$ac_compile\"") >&5
7829   (eval $ac_compile) 2>&5
7830   ac_status=$?
7831   echo "$as_me:7831: \$? = $ac_status" >&5
7832   (exit $ac_status); } &&
7833          { ac_try='test -s conftest.$ac_objext'
7834   { (eval echo "$as_me:7834: \"$ac_try\"") >&5
7835   (eval $ac_try) 2>&5
7836   ac_status=$?
7837   echo "$as_me:7837: \$? = $ac_status" >&5
7838   (exit $ac_status); }; }; then
7839   ac_hi=$ac_mid
7840 else
7841   echo "$as_me: failed program was:" >&5
7842 cat conftest.$ac_ext >&5
7843 ac_lo=`expr $ac_mid + 1`
7844 fi
7845 rm -f conftest.$ac_objext conftest.$ac_ext
7846 done
7847 ac_cv_sizeof_long=$ac_lo
7848 else
7849   if test "$cross_compiling" = yes; then
7850   { { echo "$as_me:7850: error: cannot run test program while cross compiling" >&5
7851 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7852    { (exit 1); exit 1; }; }
7853 else
7854   cat >conftest.$ac_ext <<_ACEOF
7855 #line 7855 "configure"
7856 #include "confdefs.h"
7857 $ac_includes_default
7858 int
7859 main ()
7860 {
7861 FILE *f = fopen ("conftest.val", "w");
7862 if (!f)
7863   exit (1);
7864 fprintf (f, "%d", (sizeof (long)));
7865 fclose (f);
7866   ;
7867   return 0;
7868 }
7869 _ACEOF
7870 rm -f conftest$ac_exeext
7871 if { (eval echo "$as_me:7871: \"$ac_link\"") >&5
7872   (eval $ac_link) 2>&5
7873   ac_status=$?
7874   echo "$as_me:7874: \$? = $ac_status" >&5
7875   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7876   { (eval echo "$as_me:7876: \"$ac_try\"") >&5
7877   (eval $ac_try) 2>&5
7878   ac_status=$?
7879   echo "$as_me:7879: \$? = $ac_status" >&5
7880   (exit $ac_status); }; }; then
7881   ac_cv_sizeof_long=`cat conftest.val`
7882 else
7883   echo "$as_me: program exited with status $ac_status" >&5
7884 echo "$as_me: failed program was:" >&5
7885 cat conftest.$ac_ext >&5
7886 fi
7887 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7888 fi
7889 fi
7890 rm -f conftest.val
7891 else
7892   ac_cv_sizeof_long=0
7893 fi
7894 fi
7895 echo "$as_me:7895: result: $ac_cv_sizeof_long" >&5
7896 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7897 cat >>confdefs.h <<EOF
7898 #define SIZEOF_LONG $ac_cv_sizeof_long
7899 EOF
7900
7901 echo "$as_me:7901: checking for long long" >&5
7902 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7903 if test "${ac_cv_type_long_long+set}" = set; then
7904   echo $ECHO_N "(cached) $ECHO_C" >&6
7905 else
7906   cat >conftest.$ac_ext <<_ACEOF
7907 #line 7907 "configure"
7908 #include "confdefs.h"
7909 $ac_includes_default
7910 int
7911 main ()
7912 {
7913 if ((long long *) 0)
7914   return 0;
7915 if (sizeof (long long))
7916   return 0;
7917   ;
7918   return 0;
7919 }
7920 _ACEOF
7921 rm -f conftest.$ac_objext
7922 if { (eval echo "$as_me:7922: \"$ac_compile\"") >&5
7923   (eval $ac_compile) 2>&5
7924   ac_status=$?
7925   echo "$as_me:7925: \$? = $ac_status" >&5
7926   (exit $ac_status); } &&
7927          { ac_try='test -s conftest.$ac_objext'
7928   { (eval echo "$as_me:7928: \"$ac_try\"") >&5
7929   (eval $ac_try) 2>&5
7930   ac_status=$?
7931   echo "$as_me:7931: \$? = $ac_status" >&5
7932   (exit $ac_status); }; }; then
7933   ac_cv_type_long_long=yes
7934 else
7935   echo "$as_me: failed program was:" >&5
7936 cat conftest.$ac_ext >&5
7937 ac_cv_type_long_long=no
7938 fi
7939 rm -f conftest.$ac_objext conftest.$ac_ext
7940 fi
7941 echo "$as_me:7941: result: $ac_cv_type_long_long" >&5
7942 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7943
7944 echo "$as_me:7944: checking size of long long" >&5
7945 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
7946 if test "${ac_cv_sizeof_long_long+set}" = set; then
7947   echo $ECHO_N "(cached) $ECHO_C" >&6
7948 else
7949   if test "$ac_cv_type_long_long" = yes; then
7950   if test "$cross_compiling" = yes; then
7951   # Depending upon the size, compute the lo and hi bounds.
7952 cat >conftest.$ac_ext <<_ACEOF
7953 #line 7953 "configure"
7954 #include "confdefs.h"
7955 $ac_includes_default
7956 int
7957 main ()
7958 {
7959 int _array_ [1 - 2 * !((sizeof (long long)) >= 0)]
7960   ;
7961   return 0;
7962 }
7963 _ACEOF
7964 rm -f conftest.$ac_objext
7965 if { (eval echo "$as_me:7965: \"$ac_compile\"") >&5
7966   (eval $ac_compile) 2>&5
7967   ac_status=$?
7968   echo "$as_me:7968: \$? = $ac_status" >&5
7969   (exit $ac_status); } &&
7970          { ac_try='test -s conftest.$ac_objext'
7971   { (eval echo "$as_me:7971: \"$ac_try\"") >&5
7972   (eval $ac_try) 2>&5
7973   ac_status=$?
7974   echo "$as_me:7974: \$? = $ac_status" >&5
7975   (exit $ac_status); }; }; then
7976   ac_lo=0 ac_mid=0
7977   while :; do
7978     cat >conftest.$ac_ext <<_ACEOF
7979 #line 7979 "configure"
7980 #include "confdefs.h"
7981 $ac_includes_default
7982 int
7983 main ()
7984 {
7985 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
7986   ;
7987   return 0;
7988 }
7989 _ACEOF
7990 rm -f conftest.$ac_objext
7991 if { (eval echo "$as_me:7991: \"$ac_compile\"") >&5
7992   (eval $ac_compile) 2>&5
7993   ac_status=$?
7994   echo "$as_me:7994: \$? = $ac_status" >&5
7995   (exit $ac_status); } &&
7996          { ac_try='test -s conftest.$ac_objext'
7997   { (eval echo "$as_me:7997: \"$ac_try\"") >&5
7998   (eval $ac_try) 2>&5
7999   ac_status=$?
8000   echo "$as_me:8000: \$? = $ac_status" >&5
8001   (exit $ac_status); }; }; then
8002   ac_hi=$ac_mid; break
8003 else
8004   echo "$as_me: failed program was:" >&5
8005 cat conftest.$ac_ext >&5
8006 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
8007 fi
8008 rm -f conftest.$ac_objext conftest.$ac_ext
8009   done
8010 else
8011   echo "$as_me: failed program was:" >&5
8012 cat conftest.$ac_ext >&5
8013 ac_hi=-1 ac_mid=-1
8014   while :; do
8015     cat >conftest.$ac_ext <<_ACEOF
8016 #line 8016 "configure"
8017 #include "confdefs.h"
8018 $ac_includes_default
8019 int
8020 main ()
8021 {
8022 int _array_ [1 - 2 * !((sizeof (long long)) >= $ac_mid)]
8023   ;
8024   return 0;
8025 }
8026 _ACEOF
8027 rm -f conftest.$ac_objext
8028 if { (eval echo "$as_me:8028: \"$ac_compile\"") >&5
8029   (eval $ac_compile) 2>&5
8030   ac_status=$?
8031   echo "$as_me:8031: \$? = $ac_status" >&5
8032   (exit $ac_status); } &&
8033          { ac_try='test -s conftest.$ac_objext'
8034   { (eval echo "$as_me:8034: \"$ac_try\"") >&5
8035   (eval $ac_try) 2>&5
8036   ac_status=$?
8037   echo "$as_me:8037: \$? = $ac_status" >&5
8038   (exit $ac_status); }; }; then
8039   ac_lo=$ac_mid; break
8040 else
8041   echo "$as_me: failed program was:" >&5
8042 cat conftest.$ac_ext >&5
8043 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
8044 fi
8045 rm -f conftest.$ac_objext conftest.$ac_ext
8046   done
8047 fi
8048 rm -f conftest.$ac_objext conftest.$ac_ext
8049 # Binary search between lo and hi bounds.
8050 while test "x$ac_lo" != "x$ac_hi"; do
8051   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8052   cat >conftest.$ac_ext <<_ACEOF
8053 #line 8053 "configure"
8054 #include "confdefs.h"
8055 $ac_includes_default
8056 int
8057 main ()
8058 {
8059 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
8060   ;
8061   return 0;
8062 }
8063 _ACEOF
8064 rm -f conftest.$ac_objext
8065 if { (eval echo "$as_me:8065: \"$ac_compile\"") >&5
8066   (eval $ac_compile) 2>&5
8067   ac_status=$?
8068   echo "$as_me:8068: \$? = $ac_status" >&5
8069   (exit $ac_status); } &&
8070          { ac_try='test -s conftest.$ac_objext'
8071   { (eval echo "$as_me:8071: \"$ac_try\"") >&5
8072   (eval $ac_try) 2>&5
8073   ac_status=$?
8074   echo "$as_me:8074: \$? = $ac_status" >&5
8075   (exit $ac_status); }; }; then
8076   ac_hi=$ac_mid
8077 else
8078   echo "$as_me: failed program was:" >&5
8079 cat conftest.$ac_ext >&5
8080 ac_lo=`expr $ac_mid + 1`
8081 fi
8082 rm -f conftest.$ac_objext conftest.$ac_ext
8083 done
8084 ac_cv_sizeof_long_long=$ac_lo
8085 else
8086   if test "$cross_compiling" = yes; then
8087   { { echo "$as_me:8087: error: cannot run test program while cross compiling" >&5
8088 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8089    { (exit 1); exit 1; }; }
8090 else
8091   cat >conftest.$ac_ext <<_ACEOF
8092 #line 8092 "configure"
8093 #include "confdefs.h"
8094 $ac_includes_default
8095 int
8096 main ()
8097 {
8098 FILE *f = fopen ("conftest.val", "w");
8099 if (!f)
8100   exit (1);
8101 fprintf (f, "%d", (sizeof (long long)));
8102 fclose (f);
8103   ;
8104   return 0;
8105 }
8106 _ACEOF
8107 rm -f conftest$ac_exeext
8108 if { (eval echo "$as_me:8108: \"$ac_link\"") >&5
8109   (eval $ac_link) 2>&5
8110   ac_status=$?
8111   echo "$as_me:8111: \$? = $ac_status" >&5
8112   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8113   { (eval echo "$as_me:8113: \"$ac_try\"") >&5
8114   (eval $ac_try) 2>&5
8115   ac_status=$?
8116   echo "$as_me:8116: \$? = $ac_status" >&5
8117   (exit $ac_status); }; }; then
8118   ac_cv_sizeof_long_long=`cat conftest.val`
8119 else
8120   echo "$as_me: program exited with status $ac_status" >&5
8121 echo "$as_me: failed program was:" >&5
8122 cat conftest.$ac_ext >&5
8123 fi
8124 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8125 fi
8126 fi
8127 rm -f conftest.val
8128 else
8129   ac_cv_sizeof_long_long=0
8130 fi
8131 fi
8132 echo "$as_me:8132: result: $ac_cv_sizeof_long_long" >&5
8133 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8134 cat >>confdefs.h <<EOF
8135 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8136 EOF
8137
8138 SIZEOF_SHORT=$ac_cv_sizeof_short
8139 SIZEOF_INT=$ac_cv_sizeof_int
8140 SIZEOF_LONG=$ac_cv_sizeof_long
8141 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
8142
8143 echo "$as_me:8143: checking whether byte ordering is bigendian" >&5
8144 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8145 if test "${ac_cv_c_bigendian+set}" = set; then
8146   echo $ECHO_N "(cached) $ECHO_C" >&6
8147 else
8148   ac_cv_c_bigendian=unknown
8149 # See if sys/param.h defines the BYTE_ORDER macro.
8150 cat >conftest.$ac_ext <<_ACEOF
8151 #line 8151 "configure"
8152 #include "confdefs.h"
8153 #include <sys/types.h>
8154 #include <sys/param.h>
8155
8156 int
8157 main ()
8158 {
8159 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8160  bogus endian macros
8161 #endif
8162
8163   ;
8164   return 0;
8165 }
8166 _ACEOF
8167 rm -f conftest.$ac_objext
8168 if { (eval echo "$as_me:8168: \"$ac_compile\"") >&5
8169   (eval $ac_compile) 2>&5
8170   ac_status=$?
8171   echo "$as_me:8171: \$? = $ac_status" >&5
8172   (exit $ac_status); } &&
8173          { ac_try='test -s conftest.$ac_objext'
8174   { (eval echo "$as_me:8174: \"$ac_try\"") >&5
8175   (eval $ac_try) 2>&5
8176   ac_status=$?
8177   echo "$as_me:8177: \$? = $ac_status" >&5
8178   (exit $ac_status); }; }; then
8179   # It does; now see whether it defined to BIG_ENDIAN or not.
8180 cat >conftest.$ac_ext <<_ACEOF
8181 #line 8181 "configure"
8182 #include "confdefs.h"
8183 #include <sys/types.h>
8184 #include <sys/param.h>
8185
8186 int
8187 main ()
8188 {
8189 #if BYTE_ORDER != BIG_ENDIAN
8190  not big endian
8191 #endif
8192
8193   ;
8194   return 0;
8195 }
8196 _ACEOF
8197 rm -f conftest.$ac_objext
8198 if { (eval echo "$as_me:8198: \"$ac_compile\"") >&5
8199   (eval $ac_compile) 2>&5
8200   ac_status=$?
8201   echo "$as_me:8201: \$? = $ac_status" >&5
8202   (exit $ac_status); } &&
8203          { ac_try='test -s conftest.$ac_objext'
8204   { (eval echo "$as_me:8204: \"$ac_try\"") >&5
8205   (eval $ac_try) 2>&5
8206   ac_status=$?
8207   echo "$as_me:8207: \$? = $ac_status" >&5
8208   (exit $ac_status); }; }; then
8209   ac_cv_c_bigendian=yes
8210 else
8211   echo "$as_me: failed program was:" >&5
8212 cat conftest.$ac_ext >&5
8213 ac_cv_c_bigendian=no
8214 fi
8215 rm -f conftest.$ac_objext conftest.$ac_ext
8216 else
8217   echo "$as_me: failed program was:" >&5
8218 cat conftest.$ac_ext >&5
8219 fi
8220 rm -f conftest.$ac_objext conftest.$ac_ext
8221 if test $ac_cv_c_bigendian = unknown; then
8222 if test "$cross_compiling" = yes; then
8223   { { echo "$as_me:8223: error: cannot run test program while cross compiling" >&5
8224 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8225    { (exit 1); exit 1; }; }
8226 else
8227   cat >conftest.$ac_ext <<_ACEOF
8228 #line 8228 "configure"
8229 #include "confdefs.h"
8230 int
8231 main ()
8232 {
8233   /* Are we little or big endian?  From Harbison&Steele.  */
8234   union
8235   {
8236     long l;
8237     char c[sizeof (long)];
8238   } u;
8239   u.l = 1;
8240   exit (u.c[sizeof (long) - 1] == 1);
8241 }
8242 _ACEOF
8243 rm -f conftest$ac_exeext
8244 if { (eval echo "$as_me:8244: \"$ac_link\"") >&5
8245   (eval $ac_link) 2>&5
8246   ac_status=$?
8247   echo "$as_me:8247: \$? = $ac_status" >&5
8248   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8249   { (eval echo "$as_me:8249: \"$ac_try\"") >&5
8250   (eval $ac_try) 2>&5
8251   ac_status=$?
8252   echo "$as_me:8252: \$? = $ac_status" >&5
8253   (exit $ac_status); }; }; then
8254   ac_cv_c_bigendian=no
8255 else
8256   echo "$as_me: program exited with status $ac_status" >&5
8257 echo "$as_me: failed program was:" >&5
8258 cat conftest.$ac_ext >&5
8259 ac_cv_c_bigendian=yes
8260 fi
8261 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8262 fi
8263 fi
8264 fi
8265 echo "$as_me:8265: result: $ac_cv_c_bigendian" >&5
8266 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8267 if test $ac_cv_c_bigendian = yes; then
8268
8269 cat >>confdefs.h <<\EOF
8270 #define WORDS_BIGENDIAN 1
8271 EOF
8272
8273 fi
8274
8275 echo "$as_me:8275: checking whether struct stat has a st_flags field" >&5
8276 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6
8277 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
8278   echo $ECHO_N "(cached) $ECHO_C" >&6
8279 else
8280   cat >conftest.$ac_ext <<_ACEOF
8281 #line 8281 "configure"
8282 #include "confdefs.h"
8283 #include <sys/stat.h>
8284 int
8285 main ()
8286 {
8287 struct stat stat; stat.st_flags = 0;
8288   ;
8289   return 0;
8290 }
8291 _ACEOF
8292 rm -f conftest.$ac_objext
8293 if { (eval echo "$as_me:8293: \"$ac_compile\"") >&5
8294   (eval $ac_compile) 2>&5
8295   ac_status=$?
8296   echo "$as_me:8296: \$? = $ac_status" >&5
8297   (exit $ac_status); } &&
8298          { ac_try='test -s conftest.$ac_objext'
8299   { (eval echo "$as_me:8299: \"$ac_try\"") >&5
8300   (eval $ac_try) 2>&5
8301   ac_status=$?
8302   echo "$as_me:8302: \$? = $ac_status" >&5
8303   (exit $ac_status); }; }; then
8304   e2fsprogs_cv_struct_st_flags=yes
8305 else
8306   echo "$as_me: failed program was:" >&5
8307 cat conftest.$ac_ext >&5
8308 e2fsprogs_cv_struct_st_flags=no
8309 fi
8310 rm -f conftest.$ac_objext conftest.$ac_ext
8311 fi
8312
8313 echo "$as_me:8313: result: $e2fsprogs_cv_struct_st_flags" >&5
8314 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6
8315 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
8316   echo "$as_me:8316: checking whether st_flags field is useful" >&5
8317 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6
8318   if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
8319   echo $ECHO_N "(cached) $ECHO_C" >&6
8320 else
8321   cat >conftest.$ac_ext <<_ACEOF
8322 #line 8322 "configure"
8323 #include "confdefs.h"
8324 #include <sys/stat.h>
8325 int
8326 main ()
8327 {
8328 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
8329   ;
8330   return 0;
8331 }
8332 _ACEOF
8333 rm -f conftest.$ac_objext
8334 if { (eval echo "$as_me:8334: \"$ac_compile\"") >&5
8335   (eval $ac_compile) 2>&5
8336   ac_status=$?
8337   echo "$as_me:8337: \$? = $ac_status" >&5
8338   (exit $ac_status); } &&
8339          { ac_try='test -s conftest.$ac_objext'
8340   { (eval echo "$as_me:8340: \"$ac_try\"") >&5
8341   (eval $ac_try) 2>&5
8342   ac_status=$?
8343   echo "$as_me:8343: \$? = $ac_status" >&5
8344   (exit $ac_status); }; }; then
8345   e2fsprogs_cv_struct_st_flags_immut=yes
8346 else
8347   echo "$as_me: failed program was:" >&5
8348 cat conftest.$ac_ext >&5
8349 e2fsprogs_cv_struct_st_flags_immut=no
8350 fi
8351 rm -f conftest.$ac_objext conftest.$ac_ext
8352 fi
8353
8354   echo "$as_me:8354: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
8355 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6
8356   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
8357           cat >>confdefs.h <<\EOF
8358 #define HAVE_STAT_FLAGS 1
8359 EOF
8360
8361   fi
8362 fi
8363
8364 for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf
8365 do
8366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8367 echo "$as_me:8367: checking for $ac_func" >&5
8368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8369 if eval "test \"\${$as_ac_var+set}\" = set"; then
8370   echo $ECHO_N "(cached) $ECHO_C" >&6
8371 else
8372   cat >conftest.$ac_ext <<_ACEOF
8373 #line 8373 "configure"
8374 #include "confdefs.h"
8375 /* System header to define __stub macros and hopefully few prototypes,
8376     which can conflict with char $ac_func (); below.  */
8377 #include <assert.h>
8378 /* Override any gcc2 internal prototype to avoid an error.  */
8379 #ifdef __cplusplus
8380 extern "C"
8381 #endif
8382 /* We use char because int might match the return type of a gcc2
8383    builtin and then its argument prototype would still apply.  */
8384 char $ac_func ();
8385 char (*f) ();
8386
8387 int
8388 main ()
8389 {
8390 /* The GNU C library defines this for functions which it implements
8391     to always fail with ENOSYS.  Some functions are actually named
8392     something starting with __ and the normal name is an alias.  */
8393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8394 choke me
8395 #else
8396 f = $ac_func;
8397 #endif
8398
8399   ;
8400   return 0;
8401 }
8402 _ACEOF
8403 rm -f conftest.$ac_objext conftest$ac_exeext
8404 if { (eval echo "$as_me:8404: \"$ac_link\"") >&5
8405   (eval $ac_link) 2>&5
8406   ac_status=$?
8407   echo "$as_me:8407: \$? = $ac_status" >&5
8408   (exit $ac_status); } &&
8409          { ac_try='test -s conftest$ac_exeext'
8410   { (eval echo "$as_me:8410: \"$ac_try\"") >&5
8411   (eval $ac_try) 2>&5
8412   ac_status=$?
8413   echo "$as_me:8413: \$? = $ac_status" >&5
8414   (exit $ac_status); }; }; then
8415   eval "$as_ac_var=yes"
8416 else
8417   echo "$as_me: failed program was:" >&5
8418 cat conftest.$ac_ext >&5
8419 eval "$as_ac_var=no"
8420 fi
8421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8422 fi
8423 echo "$as_me:8423: result: `eval echo '${'$as_ac_var'}'`" >&5
8424 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8425 if test `eval echo '${'$as_ac_var'}'` = yes; then
8426   cat >>confdefs.h <<EOF
8427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8428 EOF
8429
8430 fi
8431 done
8432
8433 SOCKET_LIB=''
8434 echo "$as_me:8434: checking for socket in -lsocket" >&5
8435 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
8436 if test "${ac_cv_lib_socket_socket+set}" = set; then
8437   echo $ECHO_N "(cached) $ECHO_C" >&6
8438 else
8439   ac_check_lib_save_LIBS=$LIBS
8440 LIBS="-lsocket  $LIBS"
8441 cat >conftest.$ac_ext <<_ACEOF
8442 #line 8442 "configure"
8443 #include "confdefs.h"
8444
8445 /* Override any gcc2 internal prototype to avoid an error.  */
8446 #ifdef __cplusplus
8447 extern "C"
8448 #endif
8449 /* We use char because int might match the return type of a gcc2
8450    builtin and then its argument prototype would still apply.  */
8451 char socket ();
8452 int
8453 main ()
8454 {
8455 socket ();
8456   ;
8457   return 0;
8458 }
8459 _ACEOF
8460 rm -f conftest.$ac_objext conftest$ac_exeext
8461 if { (eval echo "$as_me:8461: \"$ac_link\"") >&5
8462   (eval $ac_link) 2>&5
8463   ac_status=$?
8464   echo "$as_me:8464: \$? = $ac_status" >&5
8465   (exit $ac_status); } &&
8466          { ac_try='test -s conftest$ac_exeext'
8467   { (eval echo "$as_me:8467: \"$ac_try\"") >&5
8468   (eval $ac_try) 2>&5
8469   ac_status=$?
8470   echo "$as_me:8470: \$? = $ac_status" >&5
8471   (exit $ac_status); }; }; then
8472   ac_cv_lib_socket_socket=yes
8473 else
8474   echo "$as_me: failed program was:" >&5
8475 cat conftest.$ac_ext >&5
8476 ac_cv_lib_socket_socket=no
8477 fi
8478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8479 LIBS=$ac_check_lib_save_LIBS
8480 fi
8481 echo "$as_me:8481: result: $ac_cv_lib_socket_socket" >&5
8482 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
8483 if test $ac_cv_lib_socket_socket = yes; then
8484   SOCKET_LIB=-lsocket
8485 fi
8486
8487 DLOPEN_LIB=''
8488 echo "$as_me:8488: checking for dlopen in -ldl" >&5
8489 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8490 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8491   echo $ECHO_N "(cached) $ECHO_C" >&6
8492 else
8493   ac_check_lib_save_LIBS=$LIBS
8494 LIBS="-ldl  $LIBS"
8495 cat >conftest.$ac_ext <<_ACEOF
8496 #line 8496 "configure"
8497 #include "confdefs.h"
8498
8499 /* Override any gcc2 internal prototype to avoid an error.  */
8500 #ifdef __cplusplus
8501 extern "C"
8502 #endif
8503 /* We use char because int might match the return type of a gcc2
8504    builtin and then its argument prototype would still apply.  */
8505 char dlopen ();
8506 int
8507 main ()
8508 {
8509 dlopen ();
8510   ;
8511   return 0;
8512 }
8513 _ACEOF
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (eval echo "$as_me:8515: \"$ac_link\"") >&5
8516   (eval $ac_link) 2>&5
8517   ac_status=$?
8518   echo "$as_me:8518: \$? = $ac_status" >&5
8519   (exit $ac_status); } &&
8520          { ac_try='test -s conftest$ac_exeext'
8521   { (eval echo "$as_me:8521: \"$ac_try\"") >&5
8522   (eval $ac_try) 2>&5
8523   ac_status=$?
8524   echo "$as_me:8524: \$? = $ac_status" >&5
8525   (exit $ac_status); }; }; then
8526   ac_cv_lib_dl_dlopen=yes
8527 else
8528   echo "$as_me: failed program was:" >&5
8529 cat conftest.$ac_ext >&5
8530 ac_cv_lib_dl_dlopen=no
8531 fi
8532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8533 LIBS=$ac_check_lib_save_LIBS
8534 fi
8535 echo "$as_me:8535: result: $ac_cv_lib_dl_dlopen" >&5
8536 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8537 if test $ac_cv_lib_dl_dlopen = yes; then
8538   DLOPEN_LIB=-ldl
8539 cat >>confdefs.h <<\EOF
8540 #define HAVE_DLOPEN 1
8541 EOF
8542
8543 fi
8544
8545 echo "$as_me:8545: checking for optreset" >&5
8546 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
8547 if test "${ac_cv_have_optreset+set}" = set; then
8548   echo $ECHO_N "(cached) $ECHO_C" >&6
8549 else
8550   cat >conftest.$ac_ext <<_ACEOF
8551 #line 8551 "configure"
8552 #include "confdefs.h"
8553 #include <unistd.h>
8554
8555 _ACEOF
8556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8557   egrep "optreset" >/dev/null 2>&1; then
8558   ac_cv_have_optreset=yes
8559 else
8560   ac_cv_have_optreset=no
8561 fi
8562 rm -f conftest*
8563
8564 fi
8565 echo "$as_me:8565: result: $ac_cv_have_optreset" >&5
8566 echo "${ECHO_T}$ac_cv_have_optreset" >&6
8567 if test $ac_cv_have_optreset = yes; then
8568   cat >>confdefs.h <<\EOF
8569 #define HAVE_OPTRESET 1
8570 EOF
8571
8572 fi
8573 case "$host_os" in
8574 linux*)
8575         cat >>confdefs.h <<\EOF
8576 #define HAVE_EXT2_IOCTLS 1
8577 EOF
8578
8579         ;;
8580 esac
8581 LINUX_CMT="#"
8582 CYGWIN_CMT="#"
8583 UNIX_CMT=
8584 case "$host_os" in
8585 linux*)
8586         LINUX_CMT=
8587         ;;
8588 cygwin)
8589         CYGWIN_CMT=
8590         UNIX_CMT="#"
8591         EVMS_CMT="#"
8592         ;;
8593 *)
8594         EVMS_CMT="#"
8595 esac
8596
8597 case "$host_os" in
8598 linux* | gnu* | freebsd*-gnu*)
8599         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
8600                 root_prefix="";
8601                 echo "On $host_os systems, root_prefix defaults to ''"
8602         fi
8603         ;;
8604 esac
8605 case "$host_os" in
8606 linux* | gnu* | freebsd*-gnu*)
8607         if test "$prefix" = NONE ; then
8608                 prefix="/usr";
8609                 echo "On $host_os systems, prefix defaults to /usr"
8610                 if test "$mandir" = '${prefix}/man' ; then
8611                         echo "...and mandir defaults to /usr/share/man"
8612                         mandir=/usr/share/man
8613                 fi
8614         fi
8615 ;;
8616 esac
8617 if test "$root_prefix" = NONE ; then
8618         if test "$prefix" = NONE ; then
8619                 root_prefix="$ac_default_prefix"
8620         else
8621                 root_prefix="$prefix"
8622         fi
8623         root_bindir=$bindir
8624         root_sbindir=$sbindir
8625         root_libdir=$libdir
8626         root_sysconfdir=$sysconfdir
8627 else
8628         root_bindir='${root_prefix}/bin'
8629         root_sbindir='${root_prefix}/sbin'
8630         root_libdir='${root_prefix}/lib'
8631         root_sysconfdir='${root_prefix}/etc'
8632 fi
8633
8634 echo "$as_me:8634: checking whether linker accepts -static" >&5
8635 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6
8636 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
8637   echo $ECHO_N "(cached) $ECHO_C" >&6
8638 else
8639   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
8640 cat >conftest.$ac_ext <<_ACEOF
8641 #line 8641 "configure"
8642 #include "confdefs.h"
8643 #include <stdio.h>
8644 int
8645 main ()
8646 {
8647 fflush(stdout);
8648   ;
8649   return 0;
8650 }
8651 _ACEOF
8652 rm -f conftest.$ac_objext conftest$ac_exeext
8653 if { (eval echo "$as_me:8653: \"$ac_link\"") >&5
8654   (eval $ac_link) 2>&5
8655   ac_status=$?
8656   echo "$as_me:8656: \$? = $ac_status" >&5
8657   (exit $ac_status); } &&
8658          { ac_try='test -s conftest$ac_exeext'
8659   { (eval echo "$as_me:8659: \"$ac_try\"") >&5
8660   (eval $ac_try) 2>&5
8661   ac_status=$?
8662   echo "$as_me:8662: \$? = $ac_status" >&5
8663   (exit $ac_status); }; }; then
8664   ac_cv_e2fsprogs_use_static=yes
8665 else
8666   echo "$as_me: failed program was:" >&5
8667 cat conftest.$ac_ext >&5
8668 ac_cv_e2fsprogs_use_static=no
8669 fi
8670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8671 LDFLAGS=$SAVE_LDFLAGS
8672 fi
8673
8674 case "$host_os" in
8675 solaris2.*)
8676         ac_cv_e2fsprogs_use_static=no
8677 ;;
8678 esac
8679 echo "$as_me:8679: result: $ac_cv_e2fsprogs_use_static" >&5
8680 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6
8681 LDFLAG_STATIC=
8682 if test $ac_cv_e2fsprogs_use_static = yes; then
8683         LDFLAG_STATIC=-static
8684 fi
8685
8686 case "$host_os" in
8687 darwin*)
8688         echo "Using Apple Darwin / GNU libintl workaround"
8689         cat >>confdefs.h <<\EOF
8690 #define _INTL_REDIRECT_MACROS 1
8691 EOF
8692
8693         ;;
8694 esac
8695 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
8696 ET_DIR=`cd ${srcdir}/lib/et; pwd`
8697
8698 if test "$cross_compiling" = yes ; then
8699   DO_TEST_SUITE=
8700 else
8701   DO_TEST_SUITE=check
8702 fi
8703
8704 INTL_FLAGS=
8705 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
8706         INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
8707 fi
8708
8709 test -d lib || mkdir lib
8710 test -d include || mkdir include
8711 test -d include/linux || mkdir include/linux
8712 test -d include/asm || mkdir include/asm
8713 for i in MCONFIG Makefile e2fsprogs.spec \
8714         util/Makefile util/subst.conf util/gen-tarball \
8715         lib/et/Makefile lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile \
8716         lib/uuid/Makefile lib/uuid/uuid_types.h \
8717         lib/blkid/Makefile lib/blkid/blkid_types.h \
8718         lib/evms/Makefile misc/Makefile ext2ed/Makefile e2fsck/Makefile \
8719         debugfs/Makefile tests/Makefile tests/progs/Makefile \
8720         resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
8721         if test -d `dirname ${srcdir}/$i` ; then
8722                 outlist="$outlist $i"
8723         fi
8724 done
8725 ac_config_files="$ac_config_files $outlist"
8726 cat >confcache <<\_ACEOF
8727 # This file is a shell script that caches the results of configure
8728 # tests run on this system so they can be shared between configure
8729 # scripts and configure runs, see configure's option --config-cache.
8730 # It is not useful on other systems.  If it contains results you don't
8731 # want to keep, you may remove or edit it.
8732 #
8733 # config.status only pays attention to the cache file if you give it
8734 # the --recheck option to rerun configure.
8735 #
8736 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8737 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8738 # following values.
8739
8740 _ACEOF
8741
8742 # The following way of writing the cache mishandles newlines in values,
8743 # but we know of no workaround that is simple, portable, and efficient.
8744 # So, don't put newlines in cache variables' values.
8745 # Ultrix sh set writes to stderr and can't be redirected directly,
8746 # and sets the high bit in the cache file unless we assign to the vars.
8747 {
8748   (set) 2>&1 |
8749     case `(ac_space=' '; set | grep ac_space) 2>&1` in
8750     *ac_space=\ *)
8751       # `set' does not quote correctly, so add quotes (double-quote
8752       # substitution turns \\\\ into \\, and sed turns \\ into \).
8753       sed -n \
8754         "s/'/'\\\\''/g;
8755           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8756       ;;
8757     *)
8758       # `set' quotes correctly as required by POSIX, so do not add quotes.
8759       sed -n \
8760         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8761       ;;
8762     esac;
8763 } |
8764   sed '
8765      t clear
8766      : clear
8767      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8768      t end
8769      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8770      : end' >>confcache
8771 if cmp -s $cache_file confcache; then :; else
8772   if test -w $cache_file; then
8773     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8774     cat confcache >$cache_file
8775   else
8776     echo "not updating unwritable cache $cache_file"
8777   fi
8778 fi
8779 rm -f confcache
8780
8781 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8782 # Let make expand exec_prefix.
8783 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8784
8785 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8786 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8787 # trailing colons and then remove the whole line if VPATH becomes empty
8788 # (actually we leave an empty line to preserve line numbers).
8789 if test "x$srcdir" = x.; then
8790   ac_vpsub='/^[         ]*VPATH[        ]*=/{
8791 s/:*\$(srcdir):*/:/;
8792 s/:*\${srcdir}:*/:/;
8793 s/:*@srcdir@:*/:/;
8794 s/^\([^=]*=[    ]*\):*/\1/;
8795 s/:*$//;
8796 s/^[^=]*=[      ]*$//;
8797 }'
8798 fi
8799
8800 # Transform confdefs.h into DEFS.
8801 # Protect against shell expansion while executing Makefile rules.
8802 # Protect against Makefile macro expansion.
8803 #
8804 # If the first sed substitution is executed (which looks for macros that
8805 # take arguments), then we branch to the quote section.  Otherwise,
8806 # look for a macro that doesn't take arguments.
8807 cat >confdef2opt.sed <<\EOF
8808 t clear
8809 : clear
8810 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
8811 t quote
8812 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
8813 t quote
8814 d
8815 : quote
8816 s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
8817 s,\[,\\&,g
8818 s,\],\\&,g
8819 s,\$,$$,g
8820 p
8821 EOF
8822 # We use echo to avoid assuming a particular line-breaking character.
8823 # The extra dot is to prevent the shell from consuming trailing
8824 # line-breaks from the sub-command output.  A line-break within
8825 # single-quotes doesn't work because, if this script is created in a
8826 # platform that uses two characters for line-breaks (e.g., DOS), tr
8827 # would break.
8828 ac_LF_and_DOT=`echo; echo .`
8829 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
8830 rm -f confdef2opt.sed
8831
8832 : ${CONFIG_STATUS=./config.status}
8833 ac_clean_files_save=$ac_clean_files
8834 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8835 { echo "$as_me:8835: creating $CONFIG_STATUS" >&5
8836 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8837 cat >$CONFIG_STATUS <<_ACEOF
8838 #! $SHELL
8839 # Generated automatically by configure.
8840 # Run this file to recreate the current configuration.
8841 # Compiler output produced by configure, useful for debugging
8842 # configure, is in config.log if it exists.
8843
8844 debug=false
8845 SHELL=\${CONFIG_SHELL-$SHELL}
8846 ac_cs_invocation="\$0 \$@"
8847
8848 _ACEOF
8849
8850 cat >>$CONFIG_STATUS <<\_ACEOF
8851 # Be Bourne compatible
8852 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8853   emulate sh
8854   NULLCMD=:
8855 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8856   set -o posix
8857 fi
8858
8859 # Name of the executable.
8860 as_me=`echo "$0" |sed 's,.*[\\/],,'`
8861
8862 if expr a : '\(a\)' >/dev/null 2>&1; then
8863   as_expr=expr
8864 else
8865   as_expr=false
8866 fi
8867
8868 rm -f conf$$ conf$$.exe conf$$.file
8869 echo >conf$$.file
8870 if ln -s conf$$.file conf$$ 2>/dev/null; then
8871   # We could just check for DJGPP; but this test a) works b) is more generic
8872   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8873   if test -f conf$$.exe; then
8874     # Don't use ln at all; we don't have any links
8875     as_ln_s='cp -p'
8876   else
8877     as_ln_s='ln -s'
8878   fi
8879 elif ln conf$$.file conf$$ 2>/dev/null; then
8880   as_ln_s=ln
8881 else
8882   as_ln_s='cp -p'
8883 fi
8884 rm -f conf$$ conf$$.exe conf$$.file
8885
8886 as_executable_p="test -f"
8887
8888 # Support unset when possible.
8889 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8890   as_unset=unset
8891 else
8892   as_unset=false
8893 fi
8894
8895 # NLS nuisances.
8896 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
8897 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
8898 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
8899 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
8900 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
8901 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
8902 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
8903 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
8904
8905 # IFS
8906 # We need space, tab and new line, in precisely that order.
8907 as_nl='
8908 '
8909 IFS="   $as_nl"
8910
8911 # CDPATH.
8912 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
8913
8914 exec 6>&1
8915
8916 _ACEOF
8917
8918 # Files that config.status was made for.
8919 if test -n "$ac_config_files"; then
8920   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8921 fi
8922
8923 if test -n "$ac_config_headers"; then
8924   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8925 fi
8926
8927 if test -n "$ac_config_links"; then
8928   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8929 fi
8930
8931 if test -n "$ac_config_commands"; then
8932   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8933 fi
8934
8935 cat >>$CONFIG_STATUS <<\EOF
8936
8937 ac_cs_usage="\
8938 \`$as_me' instantiates files from templates according to the
8939 current configuration.
8940
8941 Usage: $0 [OPTIONS] [FILE]...
8942
8943   -h, --help       print this help, then exit
8944   -V, --version    print version number, then exit
8945   -d, --debug      don't remove temporary files
8946       --recheck    update $as_me by reconfiguring in the same conditions
8947   --file=FILE[:TEMPLATE]
8948                    instantiate the configuration file FILE
8949
8950 Configuration files:
8951 $config_files
8952
8953 Configuration commands:
8954 $config_commands
8955
8956 Report bugs to <bug-autoconf@gnu.org>."
8957 EOF
8958
8959 cat >>$CONFIG_STATUS <<EOF
8960 ac_cs_version="\\
8961 config.status
8962 configured by $0, generated by GNU Autoconf 2.52,
8963   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8964
8965 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8966 Free Software Foundation, Inc.
8967 This config.status script is free software; the Free Software Foundation
8968 gives unlimited permission to copy, distribute and modify it."
8969 srcdir=$srcdir
8970 INSTALL="$INSTALL"
8971 EOF
8972
8973 cat >>$CONFIG_STATUS <<\EOF
8974 # If no file are specified by the user, then we need to provide default
8975 # value.  By we need to know if files were specified by the user.
8976 ac_need_defaults=:
8977 while test $# != 0
8978 do
8979   case $1 in
8980   --*=*)
8981     ac_option=`expr "x$1" : 'x\([^=]*\)='`
8982     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8983     shift
8984     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
8985     shift
8986     ;;
8987   -*);;
8988   *) # This is not an option, so the user has probably given explicit
8989      # arguments.
8990      ac_need_defaults=false;;
8991   esac
8992
8993   case $1 in
8994   # Handling of the options.
8995 EOF
8996 cat >>$CONFIG_STATUS <<EOF
8997   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8998     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8999     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9000 EOF
9001 cat >>$CONFIG_STATUS <<\EOF
9002   --version | --vers* | -V )
9003     echo "$ac_cs_version"; exit 0 ;;
9004   --he | --h)
9005     # Conflict between --help and --header
9006     { { echo "$as_me:9006: error: ambiguous option: $1
9007 Try \`$0 --help' for more information." >&5
9008 echo "$as_me: error: ambiguous option: $1
9009 Try \`$0 --help' for more information." >&2;}
9010    { (exit 1); exit 1; }; };;
9011   --help | --hel | -h )
9012     echo "$ac_cs_usage"; exit 0 ;;
9013   --debug | --d* | -d )
9014     debug=: ;;
9015   --file | --fil | --fi | --f )
9016     shift
9017     CONFIG_FILES="$CONFIG_FILES $1"
9018     ac_need_defaults=false;;
9019   --header | --heade | --head | --hea )
9020     shift
9021     CONFIG_HEADERS="$CONFIG_HEADERS $1"
9022     ac_need_defaults=false;;
9023
9024   # This is an error.
9025   -*) { { echo "$as_me:9025: error: unrecognized option: $1
9026 Try \`$0 --help' for more information." >&5
9027 echo "$as_me: error: unrecognized option: $1
9028 Try \`$0 --help' for more information." >&2;}
9029    { (exit 1); exit 1; }; } ;;
9030
9031   *) ac_config_targets="$ac_config_targets $1" ;;
9032
9033   esac
9034   shift
9035 done
9036
9037 exec 5>>config.log
9038 cat >&5 << _ACEOF
9039
9040 ## ----------------------- ##
9041 ## Running config.status.  ##
9042 ## ----------------------- ##
9043
9044 This file was extended by $as_me 2.52, executed with
9045   CONFIG_FILES    = $CONFIG_FILES
9046   CONFIG_HEADERS  = $CONFIG_HEADERS
9047   CONFIG_LINKS    = $CONFIG_LINKS
9048   CONFIG_COMMANDS = $CONFIG_COMMANDS
9049   > $ac_cs_invocation
9050 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9051
9052 _ACEOF
9053 EOF
9054
9055 cat >>$CONFIG_STATUS <<EOF
9056 #
9057 # INIT-COMMANDS section.
9058 #
9059
9060 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9061     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
9062     # from automake.
9063     eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
9064     # Capture the value of LINGUAS because we need it to compute CATALOGS.
9065     LINGUAS="${LINGUAS-%UNSET%}"
9066
9067 EOF
9068
9069 cat >>$CONFIG_STATUS <<\EOF
9070 for ac_config_target in $ac_config_targets
9071 do
9072   case "$ac_config_target" in
9073   # Handling of arguments.
9074   "$outlist" ) CONFIG_FILES="$CONFIG_FILES $outlist" ;;
9075   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9076   *) { { echo "$as_me:9076: error: invalid argument: $ac_config_target" >&5
9077 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9078    { (exit 1); exit 1; }; };;
9079   esac
9080 done
9081
9082 # If the user did not use the arguments to specify the items to instantiate,
9083 # then the envvar interface is used.  Set only those that are not.
9084 # We use the long form for the default assignment because of an extremely
9085 # bizarre bug on SunOS 4.1.3.
9086 if $ac_need_defaults; then
9087   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9088   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9089 fi
9090
9091 # Create a temporary directory, and hook for its removal unless debugging.
9092 $debug ||
9093 {
9094   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9095   trap '{ (exit 1); exit 1; }' 1 2 13 15
9096 }
9097
9098 # Create a (secure) tmp directory for tmp files.
9099 : ${TMPDIR=/tmp}
9100 {
9101   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9102   test -n "$tmp" && test -d "$tmp"
9103 }  ||
9104 {
9105   tmp=$TMPDIR/cs$$-$RANDOM
9106   (umask 077 && mkdir $tmp)
9107 } ||
9108 {
9109    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9110    { (exit 1); exit 1; }
9111 }
9112
9113 EOF
9114
9115 cat >>$CONFIG_STATUS <<EOF
9116
9117 #
9118 # CONFIG_FILES section.
9119 #
9120
9121 # No need to generate the scripts if there are no CONFIG_FILES.
9122 # This happens for instance when ./config.status config.h
9123 if test -n "\$CONFIG_FILES"; then
9124   # Protect against being on the right side of a sed subst in config.status.
9125   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9126    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9127 s,@SHELL@,$SHELL,;t t
9128 s,@exec_prefix@,$exec_prefix,;t t
9129 s,@prefix@,$prefix,;t t
9130 s,@program_transform_name@,$program_transform_name,;t t
9131 s,@bindir@,$bindir,;t t
9132 s,@sbindir@,$sbindir,;t t
9133 s,@libexecdir@,$libexecdir,;t t
9134 s,@datadir@,$datadir,;t t
9135 s,@sysconfdir@,$sysconfdir,;t t
9136 s,@sharedstatedir@,$sharedstatedir,;t t
9137 s,@localstatedir@,$localstatedir,;t t
9138 s,@libdir@,$libdir,;t t
9139 s,@includedir@,$includedir,;t t
9140 s,@oldincludedir@,$oldincludedir,;t t
9141 s,@infodir@,$infodir,;t t
9142 s,@mandir@,$mandir,;t t
9143 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9144 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9145 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9146 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9147 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9148 s,@build_alias@,$build_alias,;t t
9149 s,@host_alias@,$host_alias,;t t
9150 s,@target_alias@,$target_alias,;t t
9151 s,@ECHO_C@,$ECHO_C,;t t
9152 s,@ECHO_N@,$ECHO_N,;t t
9153 s,@ECHO_T@,$ECHO_T,;t t
9154 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9155 s,@DEFS@,$DEFS,;t t
9156 s,@LIBS@,$LIBS,;t t
9157 /@MCONFIG@/r $MCONFIG
9158 s,@MCONFIG@,,;t t
9159 s,@E2FSPROGS_YEAR@,$E2FSPROGS_YEAR,;t t
9160 s,@E2FSPROGS_MONTH@,$E2FSPROGS_MONTH,;t t
9161 s,@E2FSPROGS_DAY@,$E2FSPROGS_DAY,;t t
9162 s,@E2FSPROGS_VERSION@,$E2FSPROGS_VERSION,;t t
9163 s,@build@,$build,;t t
9164 s,@build_cpu@,$build_cpu,;t t
9165 s,@build_vendor@,$build_vendor,;t t
9166 s,@build_os@,$build_os,;t t
9167 s,@host@,$host,;t t
9168 s,@host_cpu@,$host_cpu,;t t
9169 s,@host_vendor@,$host_vendor,;t t
9170 s,@host_os@,$host_os,;t t
9171 s,@CC@,$CC,;t t
9172 s,@CFLAGS@,$CFLAGS,;t t
9173 s,@LDFLAGS@,$LDFLAGS,;t t
9174 s,@CPPFLAGS@,$CPPFLAGS,;t t
9175 s,@ac_ct_CC@,$ac_ct_CC,;t t
9176 s,@EXEEXT@,$EXEEXT,;t t
9177 s,@OBJEXT@,$OBJEXT,;t t
9178 s,@LD@,$LD,;t t
9179 s,@CPP@,$CPP,;t t
9180 s,@LINUX_INCLUDE@,$LINUX_INCLUDE,;t t
9181 s,@HTREE_CMT@,$HTREE_CMT,;t t
9182 s,@HTREE_CLR_CMT@,$HTREE_CLR_CMT,;t t
9183 s,@EVMS_ABI_CODE@,$EVMS_ABI_CODE,;t t
9184 s,@DLL_CMT@,$DLL_CMT,;t t
9185 /@MAKEFILE_DLL@/r $MAKEFILE_DLL
9186 s,@MAKEFILE_DLL@,,;t t
9187 s,@ELF_CMT@,$ELF_CMT,;t t
9188 /@MAKEFILE_ELF@/r $MAKEFILE_ELF
9189 s,@MAKEFILE_ELF@,,;t t
9190 s,@BSDLIB_CMT@,$BSDLIB_CMT,;t t
9191 /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
9192 s,@MAKEFILE_BSDLIB@,,;t t
9193 s,@PROFILE_CMT@,$PROFILE_CMT,;t t
9194 /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
9195 s,@MAKEFILE_PROFILE@,,;t t
9196 s,@CHECKER_CMT@,$CHECKER_CMT,;t t
9197 /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
9198 s,@MAKEFILE_CHECKER@,,;t t
9199 s,@LIB_EXT@,$LIB_EXT,;t t
9200 s,@STATIC_LIB_EXT@,$STATIC_LIB_EXT,;t t
9201 s,@PROFILED_LIB_EXT@,$PROFILED_LIB_EXT,;t t
9202 s,@SWAPFS_CMT@,$SWAPFS_CMT,;t t
9203 s,@DEBUGFS_CMT@,$DEBUGFS_CMT,;t t
9204 s,@IMAGER_CMT@,$IMAGER_CMT,;t t
9205 s,@RESIZER_CMT@,$RESIZER_CMT,;t t
9206 s,@E2FSCK_TYPE@,$E2FSCK_TYPE,;t t
9207 s,@FSCK_PROG@,$FSCK_PROG,;t t
9208 s,@FSCK_MAN@,$FSCK_MAN,;t t
9209 /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
9210 s,@MAKEFILE_LIBRARY@,,;t t
9211 s,@PACKAGE@,$PACKAGE,;t t
9212 s,@VERSION@,$VERSION,;t t
9213 s,@SET_MAKE@,$SET_MAKE,;t t
9214 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9215 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9216 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9217 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9218 s,@MSGFMT@,$MSGFMT,;t t
9219 s,@GMSGFMT@,$GMSGFMT,;t t
9220 s,@XGETTEXT@,$XGETTEXT,;t t
9221 s,@MSGMERGE@,$MSGMERGE,;t t
9222 s,@RANLIB@,$RANLIB,;t t
9223 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9224 s,@ALLOCA@,$ALLOCA,;t t
9225 s,@GLIBC21@,$GLIBC21,;t t
9226 s,@LIBICONV@,$LIBICONV,;t t
9227 s,@LTLIBICONV@,$LTLIBICONV,;t t
9228 s,@INTLBISON@,$INTLBISON,;t t
9229 s,@USE_NLS@,$USE_NLS,;t t
9230 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
9231 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9232 s,@CATOBJEXT@,$CATOBJEXT,;t t
9233 s,@INTLOBJS@,$INTLOBJS,;t t
9234 s,@DATADIRNAME@,$DATADIRNAME,;t t
9235 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9236 s,@GENCAT@,$GENCAT,;t t
9237 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
9238 s,@INTLLIBS@,$INTLLIBS,;t t
9239 s,@LIBINTL@,$LIBINTL,;t t
9240 s,@LTLIBINTL@,$LTLIBINTL,;t t
9241 s,@POSUB@,$POSUB,;t t
9242 s,@BINARY_TYPE@,$BINARY_TYPE,;t t
9243 s,@LN@,$LN,;t t
9244 s,@LN_S@,$LN_S,;t t
9245 s,@MV@,$MV,;t t
9246 s,@CP@,$CP,;t t
9247 s,@RM@,$RM,;t t
9248 s,@CHMOD@,$CHMOD,;t t
9249 s,@AWK@,$AWK,;t t
9250 s,@SED@,$SED,;t t
9251 s,@PERL@,$PERL,;t t
9252 s,@LDCONFIG@,$LDCONFIG,;t t
9253 s,@AR@,$AR,;t t
9254 s,@ac_ct_AR@,$ac_ct_AR,;t t
9255 s,@STRIP@,$STRIP,;t t
9256 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9257 s,@BUILD_CC@,$BUILD_CC,;t t
9258 s,@SIZEOF_SHORT@,$SIZEOF_SHORT,;t t
9259 s,@SIZEOF_INT@,$SIZEOF_INT,;t t
9260 s,@SIZEOF_LONG@,$SIZEOF_LONG,;t t
9261 s,@SIZEOF_LONG_LONG@,$SIZEOF_LONG_LONG,;t t
9262 s,@SOCKET_LIB@,$SOCKET_LIB,;t t
9263 s,@DLOPEN_LIB@,$DLOPEN_LIB,;t t
9264 s,@LINUX_CMT@,$LINUX_CMT,;t t
9265 s,@CYGWIN_CMT@,$CYGWIN_CMT,;t t
9266 s,@UNIX_CMT@,$UNIX_CMT,;t t
9267 s,@EVMS_CMT@,$EVMS_CMT,;t t
9268 s,@root_prefix@,$root_prefix,;t t
9269 s,@root_bindir@,$root_bindir,;t t
9270 s,@root_sbindir@,$root_sbindir,;t t
9271 s,@root_libdir@,$root_libdir,;t t
9272 s,@root_sysconfdir@,$root_sysconfdir,;t t
9273 s,@LDFLAG_STATIC@,$LDFLAG_STATIC,;t t
9274 s,@SS_DIR@,$SS_DIR,;t t
9275 s,@ET_DIR@,$ET_DIR,;t t
9276 s,@DO_TEST_SUITE@,$DO_TEST_SUITE,;t t
9277 s,@INTL_FLAGS@,$INTL_FLAGS,;t t
9278 CEOF
9279
9280 EOF
9281
9282   cat >>$CONFIG_STATUS <<\EOF
9283   # Split the substitutions into bite-sized pieces for seds with
9284   # small command number limits, like on Digital OSF/1 and HP-UX.
9285   ac_max_sed_lines=48
9286   ac_sed_frag=1 # Number of current file.
9287   ac_beg=1 # First line for current file.
9288   ac_end=$ac_max_sed_lines # Line after last line for current file.
9289   ac_more_lines=:
9290   ac_sed_cmds=
9291   while $ac_more_lines; do
9292     if test $ac_beg -gt 1; then
9293       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9294     else
9295       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9296     fi
9297     if test ! -s $tmp/subs.frag; then
9298       ac_more_lines=false
9299     else
9300       # The purpose of the label and of the branching condition is to
9301       # speed up the sed processing (if there are no `@' at all, there
9302       # is no need to browse any of the substitutions).
9303       # These are the two extra sed commands mentioned above.
9304       (echo ':t
9305   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9306       if test -z "$ac_sed_cmds"; then
9307         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9308       else
9309         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9310       fi
9311       ac_sed_frag=`expr $ac_sed_frag + 1`
9312       ac_beg=$ac_end
9313       ac_end=`expr $ac_end + $ac_max_sed_lines`
9314     fi
9315   done
9316   if test -z "$ac_sed_cmds"; then
9317     ac_sed_cmds=cat
9318   fi
9319 fi # test -n "$CONFIG_FILES"
9320
9321 EOF
9322 cat >>$CONFIG_STATUS <<\EOF
9323 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9324   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9325   case $ac_file in
9326   - | *:- | *:-:* ) # input from stdin
9327         cat >$tmp/stdin
9328         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9329         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9330   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9331         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9332   * )   ac_file_in=$ac_file.in ;;
9333   esac
9334
9335   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9336   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9337          X"$ac_file" : 'X\(//\)[^/]' \| \
9338          X"$ac_file" : 'X\(//\)$' \| \
9339          X"$ac_file" : 'X\(/\)' \| \
9340          .     : '\(.\)' 2>/dev/null ||
9341 echo X"$ac_file" |
9342     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9343           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9344           /^X\(\/\/\)$/{ s//\1/; q; }
9345           /^X\(\/\).*/{ s//\1/; q; }
9346           s/.*/./; q'`
9347   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9348     { case "$ac_dir" in
9349   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9350   *)                      as_incr_dir=.;;
9351 esac
9352 as_dummy="$ac_dir"
9353 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9354   case $as_mkdir_dir in
9355     # Skip DOS drivespec
9356     ?:) as_incr_dir=$as_mkdir_dir ;;
9357     *)
9358       as_incr_dir=$as_incr_dir/$as_mkdir_dir
9359       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
9360     ;;
9361   esac
9362 done; }
9363
9364     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
9365     # A "../" for each directory in $ac_dir_suffix.
9366     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
9367   else
9368     ac_dir_suffix= ac_dots=
9369   fi
9370
9371   case $srcdir in
9372   .)  ac_srcdir=.
9373       if test -z "$ac_dots"; then
9374          ac_top_srcdir=.
9375       else
9376          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
9377       fi ;;
9378   [\\/]* | ?:[\\/]* )
9379       ac_srcdir=$srcdir$ac_dir_suffix;
9380       ac_top_srcdir=$srcdir ;;
9381   *) # Relative path.
9382     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
9383     ac_top_srcdir=$ac_dots$srcdir ;;
9384   esac
9385
9386   case $INSTALL in
9387   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9388   *) ac_INSTALL=$ac_dots$INSTALL ;;
9389   esac
9390
9391   if test x"$ac_file" != x-; then
9392     { echo "$as_me:9392: creating $ac_file" >&5
9393 echo "$as_me: creating $ac_file" >&6;}
9394     rm -f "$ac_file"
9395   fi
9396   # Let's still pretend it is `configure' which instantiates (i.e., don't
9397   # use $as_me), people would be surprised to read:
9398   #    /* config.h.  Generated automatically by config.status.  */
9399   configure_input="Generated automatically from `echo $ac_file_in |
9400                                                  sed 's,.*/,,'` by configure."
9401
9402   # First look for the input files in the build tree, otherwise in the
9403   # src tree.
9404   ac_file_inputs=`IFS=:
9405     for f in $ac_file_in; do
9406       case $f in
9407       -) echo $tmp/stdin ;;
9408       [\\/$]*)
9409          # Absolute (can't be DOS-style, as IFS=:)
9410          test -f "$f" || { { echo "$as_me:9410: error: cannot find input file: $f" >&5
9411 echo "$as_me: error: cannot find input file: $f" >&2;}
9412    { (exit 1); exit 1; }; }
9413          echo $f;;
9414       *) # Relative
9415          if test -f "$f"; then
9416            # Build tree
9417            echo $f
9418          elif test -f "$srcdir/$f"; then
9419            # Source tree
9420            echo $srcdir/$f
9421          else
9422            # /dev/null tree
9423            { { echo "$as_me:9423: error: cannot find input file: $f" >&5
9424 echo "$as_me: error: cannot find input file: $f" >&2;}
9425    { (exit 1); exit 1; }; }
9426          fi;;
9427       esac
9428     done` || { (exit 1); exit 1; }
9429 EOF
9430 cat >>$CONFIG_STATUS <<EOF
9431   sed "$ac_vpsub
9432 $extrasub
9433 EOF
9434 cat >>$CONFIG_STATUS <<\EOF
9435 :t
9436 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9437 s,@configure_input@,$configure_input,;t t
9438 s,@srcdir@,$ac_srcdir,;t t
9439 s,@top_srcdir@,$ac_top_srcdir,;t t
9440 s,@INSTALL@,$ac_INSTALL,;t t
9441 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9442   rm -f $tmp/stdin
9443   if test x"$ac_file" != x-; then
9444     mv $tmp/out $ac_file
9445   else
9446     cat $tmp/out
9447     rm -f $tmp/out
9448   fi
9449
9450 done
9451 EOF
9452 cat >>$CONFIG_STATUS <<\EOF
9453
9454 #
9455 # CONFIG_COMMANDS section.
9456 #
9457 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9458   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9459   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9460
9461   case $ac_dest in
9462     default-1 )
9463     for ac_file in $CONFIG_FILES; do
9464       # Support "outfile[:infile[:infile...]]"
9465       case "$ac_file" in
9466         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9467       esac
9468       # PO directories have a Makefile.in generated from Makefile.in.in.
9469       case "$ac_file" in */Makefile.in)
9470         # Adjust a relative srcdir.
9471         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9472         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9473         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9474         # In autoconf-2.13 it is called $ac_given_srcdir.
9475         # In autoconf-2.50 it is called $srcdir.
9476         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9477         case "$ac_given_srcdir" in
9478           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9479           /*) top_srcdir="$ac_given_srcdir" ;;
9480           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
9481         esac
9482         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9483           rm -f "$ac_dir/POTFILES"
9484           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9485           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9486           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
9487           # on $ac_dir but don't depend on user-specified configuration
9488           # parameters.
9489           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9490             # The LINGUAS file contains the set of available languages.
9491             if test -n "$ALL_LINGUAS"; then
9492               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9493             fi
9494             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9495             # Hide the ALL_LINGUAS assigment from automake.
9496             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9497           fi
9498           case "$ac_given_srcdir" in
9499             .) srcdirpre= ;;
9500             *) srcdirpre='$(srcdir)/' ;;
9501           esac
9502           POFILES=
9503           GMOFILES=
9504           UPDATEPOFILES=
9505           DUMMYPOFILES=
9506           for lang in $ALL_LINGUAS; do
9507             POFILES="$POFILES $srcdirpre$lang.po"
9508             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9509             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9510             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9511           done
9512           # CATALOGS depends on both $ac_dir and the user's LINGUAS
9513           # environment variable.
9514           INST_LINGUAS=
9515           if test -n "$ALL_LINGUAS"; then
9516             for presentlang in $ALL_LINGUAS; do
9517               useit=no
9518               if test "%UNSET%" != "$LINGUAS"; then
9519                 desiredlanguages="$LINGUAS"
9520               else
9521                 desiredlanguages="$ALL_LINGUAS"
9522               fi
9523               for desiredlang in $desiredlanguages; do
9524                 # Use the presentlang catalog if desiredlang is
9525                 #   a. equal to presentlang, or
9526                 #   b. a variant of presentlang (because in this case,
9527                 #      presentlang can be used as a fallback for messages
9528                 #      which are not translated in the desiredlang catalog).
9529                 case "$desiredlang" in
9530                   "$presentlang"*) useit=yes;;
9531                 esac
9532               done
9533               if test $useit = yes; then
9534                 INST_LINGUAS="$INST_LINGUAS $presentlang"
9535               fi
9536             done
9537           fi
9538           CATALOGS=
9539           if test -n "$INST_LINGUAS"; then
9540             for lang in $INST_LINGUAS; do
9541               CATALOGS="$CATALOGS $lang.gmo"
9542             done
9543           fi
9544           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9545           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9546           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9547             if test -f "$f"; then
9548               case "$f" in
9549                 *.orig | *.bak | *~) ;;
9550                 *) cat "$f" >> "$ac_dir/Makefile" ;;
9551               esac
9552             fi
9553           done
9554         fi
9555         ;;
9556       esac
9557     done ;;
9558   esac
9559 done
9560 EOF
9561
9562 cat >>$CONFIG_STATUS <<\EOF
9563
9564 { (exit 0); exit 0; }
9565 EOF
9566 chmod +x $CONFIG_STATUS
9567 ac_clean_files=$ac_clean_files_save
9568
9569 # configure is writing to config.log, and then calls config.status.
9570 # config.status does its own redirection, appending to config.log.
9571 # Unfortunately, on DOS this fails, as config.log is still kept open
9572 # by configure, so config.status won't be able to write to it; its
9573 # output is simply discarded.  So we exec the FD to /dev/null,
9574 # effectively closing config.log, so it can be properly (re)opened and
9575 # appended to by config.status.  When coming back to configure, we
9576 # need to make the FD available again.
9577 if test "$no_create" != yes; then
9578   ac_cs_success=:
9579   exec 5>/dev/null
9580   $SHELL $CONFIG_STATUS || ac_cs_success=false
9581   exec 5>>config.log
9582   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9583   # would make configure fail if this is the last instruction.
9584   $ac_cs_success || { (exit 1); exit 1; }
9585 fi
9586