configure revision bb988b2fd3f76147d1e8f83c6c450690f44291bd
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13 
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15  --with-diet-libc      Use diet libc"
16ac_help="$ac_help
17  --with-cc=COMPILER      select compiler to use"
18ac_help="$ac_help
19  --with-linker=LINKER    select linker to use"
20ac_help="$ac_help
21  --with-ccopts=CCOPTS    select compiler command line options"
22ac_help="$ac_help
23  --with-ldopts=LDOPTS    select linker command line options"
24ac_help="$ac_help
25  --with-root-prefix=PREFIX override prefix variable for files to be placed in the root"
26ac_help="$ac_help
27  --enable-compression	  enable EXPERIMENTAL compression support"
28ac_help="$ac_help
29  --enable-htree      	  enable EXPERIMENTAL htree directory support"
30ac_help="$ac_help
31  --enable-htree-clear 	  clear htree because we don't trust e2fsck"
32ac_help="$ac_help
33  --disable-evms   	  don't build EVMS plugin"
34ac_help="$ac_help
35  --enable-evms-10	  use EVMS 1.0 ABI (instead of EVMS 1.2)"
36ac_help="$ac_help
37  --enable-evms-11	  use EVMS 1.1 ABI (instead of EVMS 1.2)"
38ac_help="$ac_help
39  --enable-dll-shlibs	  select DLL libraries"
40ac_help="$ac_help
41  --enable-elf-shlibs	  select ELF shared libraries"
42ac_help="$ac_help
43  --enable-bsd-shlibs	  select BSD shared libraries"
44ac_help="$ac_help
45  --enable-profile	  build profiling libraries"
46ac_help="$ac_help
47  --enable-checker	  build checker libraries"
48ac_help="$ac_help
49  --enable-jbd-debug  	  enable journal debugging"
50ac_help="$ac_help
51  --enable-blkid-debug    enable blkid debugging"
52ac_help="$ac_help
53  --enable-testio-debug   enable the use of the test I/O manager for debugging"
54ac_help="$ac_help
55  --disable-swapfs    	  disable support of legacy byte-swapped filesystems"
56ac_help="$ac_help
57  --disable-debugfs   	  disable support of debugfs program"
58ac_help="$ac_help
59  --disable-imager   	  disable support of e2image program"
60ac_help="$ac_help
61  --disable-resizer   	  disable support of e2resize program"
62ac_help="$ac_help
63  --enable-dynamic-e2fsck build e2fsck dynamically"
64ac_help="$ac_help
65  --enable-fsck           build fsck wrapper program"
66ac_help="$ac_help
67  --enable-old-bitops	  Use old (non-standard but native) bitmask operations"
68ac_help="$ac_help
69  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
70ac_help="$ac_help
71  --disable-rpath         do not hardcode runtime library paths"
72ac_help="$ac_help
73  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
74  --without-libiconv-prefix     don't search for libiconv in includedir and libdir"
75ac_help="$ac_help
76  --disable-nls           do not use Native Language Support"
77ac_help="$ac_help
78  --with-included-gettext use the GNU gettext library included here"
79ac_help="$ac_help
80  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
81  --without-libintl-prefix     don't search for libintl in includedir and libdir"
82
83# Initialize some variables set by options.
84# The variables have the same names as the options, with
85# dashes changed to underlines.
86build=NONE
87cache_file=./config.cache
88exec_prefix=NONE
89host=NONE
90no_create=
91nonopt=NONE
92no_recursion=
93prefix=NONE
94program_prefix=NONE
95program_suffix=NONE
96program_transform_name=s,x,x,
97silent=
98site=
99srcdir=
100target=NONE
101verbose=
102x_includes=NONE
103x_libraries=NONE
104bindir='${exec_prefix}/bin'
105sbindir='${exec_prefix}/sbin'
106libexecdir='${exec_prefix}/libexec'
107datadir='${prefix}/share'
108sysconfdir='${prefix}/etc'
109sharedstatedir='${prefix}/com'
110localstatedir='${prefix}/var'
111libdir='${exec_prefix}/lib'
112includedir='${prefix}/include'
113oldincludedir='/usr/include'
114infodir='${prefix}/info'
115mandir='${prefix}/man'
116
117# Initialize some other variables.
118subdirs=
119MFLAGS= MAKEFLAGS=
120SHELL=${CONFIG_SHELL-/bin/sh}
121# Maximum number of lines to put in a shell here document.
122ac_max_here_lines=12
123
124ac_prev=
125for ac_option
126do
127
128  # If the previous option needs an argument, assign it.
129  if test -n "$ac_prev"; then
130    eval "$ac_prev=\$ac_option"
131    ac_prev=
132    continue
133  fi
134
135  case "$ac_option" in
136  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
137  *) ac_optarg= ;;
138  esac
139
140  # Accept the important Cygnus configure options, so we can diagnose typos.
141
142  case "$ac_option" in
143
144  -bindir | --bindir | --bindi | --bind | --bin | --bi)
145    ac_prev=bindir ;;
146  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
147    bindir="$ac_optarg" ;;
148
149  -build | --build | --buil | --bui | --bu)
150    ac_prev=build ;;
151  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
152    build="$ac_optarg" ;;
153
154  -cache-file | --cache-file | --cache-fil | --cache-fi \
155  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
156    ac_prev=cache_file ;;
157  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
158  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
159    cache_file="$ac_optarg" ;;
160
161  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
162    ac_prev=datadir ;;
163  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
164  | --da=*)
165    datadir="$ac_optarg" ;;
166
167  -disable-* | --disable-*)
168    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
169    # Reject names that are not valid shell variable names.
170    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
171      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
172    fi
173    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
174    eval "enable_${ac_feature}=no" ;;
175
176  -enable-* | --enable-*)
177    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
178    # Reject names that are not valid shell variable names.
179    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
180      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
181    fi
182    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
183    case "$ac_option" in
184      *=*) ;;
185      *) ac_optarg=yes ;;
186    esac
187    eval "enable_${ac_feature}='$ac_optarg'" ;;
188
189  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
190  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
191  | --exec | --exe | --ex)
192    ac_prev=exec_prefix ;;
193  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
194  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
195  | --exec=* | --exe=* | --ex=*)
196    exec_prefix="$ac_optarg" ;;
197
198  -gas | --gas | --ga | --g)
199    # Obsolete; use --with-gas.
200    with_gas=yes ;;
201
202  -help | --help | --hel | --he)
203    # Omit some internal or obsolete options to make the list less imposing.
204    # This message is too long to be a string in the A/UX 3.1 sh.
205    cat << EOF
206Usage: configure [options] [host]
207Options: [defaults in brackets after descriptions]
208Configuration:
209  --cache-file=FILE       cache test results in FILE
210  --help                  print this message
211  --no-create             do not create output files
212  --quiet, --silent       do not print \`checking...' messages
213  --version               print the version of autoconf that created configure
214Directory and file names:
215  --prefix=PREFIX         install architecture-independent files in PREFIX
216                          [$ac_default_prefix]
217  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
218                          [same as prefix]
219  --bindir=DIR            user executables in DIR [EPREFIX/bin]
220  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
221  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
222  --datadir=DIR           read-only architecture-independent data in DIR
223                          [PREFIX/share]
224  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
225  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
226                          [PREFIX/com]
227  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
228  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
229  --includedir=DIR        C header files in DIR [PREFIX/include]
230  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
231  --infodir=DIR           info documentation in DIR [PREFIX/info]
232  --mandir=DIR            man documentation in DIR [PREFIX/man]
233  --srcdir=DIR            find the sources in DIR [configure dir or ..]
234  --program-prefix=PREFIX prepend PREFIX to installed program names
235  --program-suffix=SUFFIX append SUFFIX to installed program names
236  --program-transform-name=PROGRAM
237                          run sed PROGRAM on installed program names
238EOF
239    cat << EOF
240Host type:
241  --build=BUILD           configure for building on BUILD [BUILD=HOST]
242  --host=HOST             configure for HOST [guessed]
243  --target=TARGET         configure for TARGET [TARGET=HOST]
244Features and packages:
245  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
246  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
247  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
248  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
249  --x-includes=DIR        X include files are in DIR
250  --x-libraries=DIR       X library files are in DIR
251EOF
252    if test -n "$ac_help"; then
253      echo "--enable and --with options recognized:$ac_help"
254    fi
255    exit 0 ;;
256
257  -host | --host | --hos | --ho)
258    ac_prev=host ;;
259  -host=* | --host=* | --hos=* | --ho=*)
260    host="$ac_optarg" ;;
261
262  -includedir | --includedir | --includedi | --included | --include \
263  | --includ | --inclu | --incl | --inc)
264    ac_prev=includedir ;;
265  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
266  | --includ=* | --inclu=* | --incl=* | --inc=*)
267    includedir="$ac_optarg" ;;
268
269  -infodir | --infodir | --infodi | --infod | --info | --inf)
270    ac_prev=infodir ;;
271  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
272    infodir="$ac_optarg" ;;
273
274  -libdir | --libdir | --libdi | --libd)
275    ac_prev=libdir ;;
276  -libdir=* | --libdir=* | --libdi=* | --libd=*)
277    libdir="$ac_optarg" ;;
278
279  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
280  | --libexe | --libex | --libe)
281    ac_prev=libexecdir ;;
282  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
283  | --libexe=* | --libex=* | --libe=*)
284    libexecdir="$ac_optarg" ;;
285
286  -localstatedir | --localstatedir | --localstatedi | --localstated \
287  | --localstate | --localstat | --localsta | --localst \
288  | --locals | --local | --loca | --loc | --lo)
289    ac_prev=localstatedir ;;
290  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
291  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
292  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
293    localstatedir="$ac_optarg" ;;
294
295  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
296    ac_prev=mandir ;;
297  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
298    mandir="$ac_optarg" ;;
299
300  -nfp | --nfp | --nf)
301    # Obsolete; use --without-fp.
302    with_fp=no ;;
303
304  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
305  | --no-cr | --no-c)
306    no_create=yes ;;
307
308  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
309  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
310    no_recursion=yes ;;
311
312  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
313  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
314  | --oldin | --oldi | --old | --ol | --o)
315    ac_prev=oldincludedir ;;
316  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
317  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
318  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
319    oldincludedir="$ac_optarg" ;;
320
321  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
322    ac_prev=prefix ;;
323  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
324    prefix="$ac_optarg" ;;
325
326  -program-prefix | --program-prefix | --program-prefi | --program-pref \
327  | --program-pre | --program-pr | --program-p)
328    ac_prev=program_prefix ;;
329  -program-prefix=* | --program-prefix=* | --program-prefi=* \
330  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
331    program_prefix="$ac_optarg" ;;
332
333  -program-suffix | --program-suffix | --program-suffi | --program-suff \
334  | --program-suf | --program-su | --program-s)
335    ac_prev=program_suffix ;;
336  -program-suffix=* | --program-suffix=* | --program-suffi=* \
337  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
338    program_suffix="$ac_optarg" ;;
339
340  -program-transform-name | --program-transform-name \
341  | --program-transform-nam | --program-transform-na \
342  | --program-transform-n | --program-transform- \
343  | --program-transform | --program-transfor \
344  | --program-transfo | --program-transf \
345  | --program-trans | --program-tran \
346  | --progr-tra | --program-tr | --program-t)
347    ac_prev=program_transform_name ;;
348  -program-transform-name=* | --program-transform-name=* \
349  | --program-transform-nam=* | --program-transform-na=* \
350  | --program-transform-n=* | --program-transform-=* \
351  | --program-transform=* | --program-transfor=* \
352  | --program-transfo=* | --program-transf=* \
353  | --program-trans=* | --program-tran=* \
354  | --progr-tra=* | --program-tr=* | --program-t=*)
355    program_transform_name="$ac_optarg" ;;
356
357  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
358  | -silent | --silent | --silen | --sile | --sil)
359    silent=yes ;;
360
361  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
362    ac_prev=sbindir ;;
363  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
364  | --sbi=* | --sb=*)
365    sbindir="$ac_optarg" ;;
366
367  -sharedstatedir | --sharedstatedir | --sharedstatedi \
368  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
369  | --sharedst | --shareds | --shared | --share | --shar \
370  | --sha | --sh)
371    ac_prev=sharedstatedir ;;
372  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
373  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
374  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
375  | --sha=* | --sh=*)
376    sharedstatedir="$ac_optarg" ;;
377
378  -site | --site | --sit)
379    ac_prev=site ;;
380  -site=* | --site=* | --sit=*)
381    site="$ac_optarg" ;;
382
383  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
384    ac_prev=srcdir ;;
385  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
386    srcdir="$ac_optarg" ;;
387
388  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
389  | --syscon | --sysco | --sysc | --sys | --sy)
390    ac_prev=sysconfdir ;;
391  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
392  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
393    sysconfdir="$ac_optarg" ;;
394
395  -target | --target | --targe | --targ | --tar | --ta | --t)
396    ac_prev=target ;;
397  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
398    target="$ac_optarg" ;;
399
400  -v | -verbose | --verbose | --verbos | --verbo | --verb)
401    verbose=yes ;;
402
403  -version | --version | --versio | --versi | --vers)
404    echo "configure generated by autoconf version 2.13"
405    exit 0 ;;
406
407  -with-* | --with-*)
408    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
409    # Reject names that are not valid shell variable names.
410    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
411      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412    fi
413    ac_package=`echo $ac_package| sed 's/-/_/g'`
414    case "$ac_option" in
415      *=*) ;;
416      *) ac_optarg=yes ;;
417    esac
418    eval "with_${ac_package}='$ac_optarg'" ;;
419
420  -without-* | --without-*)
421    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
422    # Reject names that are not valid shell variable names.
423    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
424      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
425    fi
426    ac_package=`echo $ac_package| sed 's/-/_/g'`
427    eval "with_${ac_package}=no" ;;
428
429  --x)
430    # Obsolete; use --with-x.
431    with_x=yes ;;
432
433  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
434  | --x-incl | --x-inc | --x-in | --x-i)
435    ac_prev=x_includes ;;
436  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
437  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
438    x_includes="$ac_optarg" ;;
439
440  -x-libraries | --x-libraries | --x-librarie | --x-librari \
441  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
442    ac_prev=x_libraries ;;
443  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
444  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
445    x_libraries="$ac_optarg" ;;
446
447  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
448    ;;
449
450  *)
451    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
452      echo "configure: warning: $ac_option: invalid host type" 1>&2
453    fi
454    if test "x$nonopt" != xNONE; then
455      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
456    fi
457    nonopt="$ac_option"
458    ;;
459
460  esac
461done
462
463if test -n "$ac_prev"; then
464  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
465fi
466
467trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
468
469# File descriptor usage:
470# 0 standard input
471# 1 file creation
472# 2 errors and warnings
473# 3 some systems may open it to /dev/tty
474# 4 used on the Kubota Titan
475# 6 checking for... messages and results
476# 5 compiler messages saved in config.log
477if test "$silent" = yes; then
478  exec 6>/dev/null
479else
480  exec 6>&1
481fi
482exec 5>./config.log
483
484echo "\
485This file contains any messages produced by compilers while
486running configure, to aid debugging if configure makes a mistake.
487" 1>&5
488
489# Strip out --no-create and --no-recursion so they do not pile up.
490# Also quote any args containing shell metacharacters.
491ac_configure_args=
492for ac_arg
493do
494  case "$ac_arg" in
495  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
496  | --no-cr | --no-c) ;;
497  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
498  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
499  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
500  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
501  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
502  esac
503done
504
505# NLS nuisances.
506# Only set these to C if already set.  These must not be set unconditionally
507# because not all systems understand e.g. LANG=C (notably SCO).
508# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
509# Non-C LC_CTYPE values break the ctype check.
510if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
511if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
512if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
513if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
514
515# confdefs.h avoids OS command line length limits that DEFS can exceed.
516rm -rf conftest* confdefs.h
517# AIX cpp loses on an empty file, so make sure it contains at least a newline.
518echo > confdefs.h
519
520# A filename unique to this package, relative to the directory that
521# configure is in, which we can look for to find out if srcdir is correct.
522ac_unique_file=version.h
523
524# Find the source files, if location was not specified.
525if test -z "$srcdir"; then
526  ac_srcdir_defaulted=yes
527  # Try the directory containing this script, then its parent.
528  ac_prog=$0
529  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
530  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
531  srcdir=$ac_confdir
532  if test ! -r $srcdir/$ac_unique_file; then
533    srcdir=..
534  fi
535else
536  ac_srcdir_defaulted=no
537fi
538if test ! -r $srcdir/$ac_unique_file; then
539  if test "$ac_srcdir_defaulted" = yes; then
540    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
541  else
542    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
543  fi
544fi
545srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
546
547# Prefer explicitly selected file to automatically selected ones.
548if test -z "$CONFIG_SITE"; then
549  if test "x$prefix" != xNONE; then
550    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
551  else
552    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
553  fi
554fi
555for ac_site_file in $CONFIG_SITE; do
556  if test -r "$ac_site_file"; then
557    echo "loading site script $ac_site_file"
558    . "$ac_site_file"
559  fi
560done
561
562if test -r "$cache_file"; then
563  echo "loading cache $cache_file"
564  . $cache_file
565else
566  echo "creating cache $cache_file"
567  > $cache_file
568fi
569
570ac_ext=c
571# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
572ac_cpp='$CPP $CPPFLAGS'
573ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
574ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
575cross_compiling=$ac_cv_prog_cc_cross
576
577ac_exeext=
578ac_objext=o
579if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
580  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
581  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
582    ac_n= ac_c='
583' ac_t='	'
584  else
585    ac_n=-n ac_c= ac_t=
586  fi
587else
588  ac_n= ac_c='\c' ac_t=
589fi
590
591# Check whether --with-gnu-ld or --without-gnu-ld was given.
592if test "${with_gnu_ld+set}" = set; then
593  withval="$with_gnu_ld"
594  test "$withval" = no || with_gnu_ld=yes
595else
596  with_gnu_ld=no
597fi
598
599ac_prog=ld
600if test "$GCC" = yes; then
601  # Check if gcc -print-prog-name=ld gives a path.
602  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
603echo "configure:604: checking for ld used by GCC" >&5
604  case $host in
605  *-*-mingw*)
606    # gcc leaves a trailing carriage return which upsets mingw
607    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
608  *)
609    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
610  esac
611  case $ac_prog in
612    # Accept absolute paths.
613    [\\/]* | [A-Za-z]:[\\/]*)
614      re_direlt='/[^/][^/]*/\.\./'
615      # Canonicalize the path of ld
616      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
617      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
618	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
619      done
620      test -z "$LD" && LD="$ac_prog"
621      ;;
622  "")
623    # If it fails, then pretend we aren't using GCC.
624    ac_prog=ld
625    ;;
626  *)
627    # If it is relative, then search for the first ld in PATH.
628    with_gnu_ld=unknown
629    ;;
630  esac
631elif test "$with_gnu_ld" = yes; then
632  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
633echo "configure:634: checking for GNU ld" >&5
634else
635  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
636echo "configure:637: checking for non-GNU ld" >&5
637fi
638if eval "test \"`echo '$''{'acl_cv_path_LD'+set}'`\" = set"; then
639  echo $ac_n "(cached) $ac_c" 1>&6
640else
641  if test -z "$LD"; then
642  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
643  for ac_dir in $PATH; do
644    test -z "$ac_dir" && ac_dir=.
645    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
646      acl_cv_path_LD="$ac_dir/$ac_prog"
647      # Check to see if the program is GNU ld.  I'd rather use --version,
648      # but apparently some GNU ld's only accept -v.
649      # Break only if it was the GNU/non-GNU ld that we prefer.
650      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
651	test "$with_gnu_ld" != no && break
652      else
653	test "$with_gnu_ld" != yes && break
654      fi
655    fi
656  done
657  IFS="$ac_save_ifs"
658else
659  acl_cv_path_LD="$LD" # Let the user override the test with a path.
660fi
661fi
662
663LD="$acl_cv_path_LD"
664if test -n "$LD"; then
665  echo "$ac_t""$LD" 1>&6
666else
667  echo "$ac_t""no" 1>&6
668fi
669test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
670echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
671echo "configure:672: checking if the linker ($LD) is GNU ld" >&5
672if eval "test \"`echo '$''{'acl_cv_prog_gnu_ld'+set}'`\" = set"; then
673  echo $ac_n "(cached) $ac_c" 1>&6
674else
675  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
676if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
677  acl_cv_prog_gnu_ld=yes
678else
679  acl_cv_prog_gnu_ld=no
680fi
681fi
682
683echo "$ac_t""$acl_cv_prog_gnu_ld" 1>&6
684with_gnu_ld=$acl_cv_prog_gnu_ld
685
686
687
688
689MCONFIG=./MCONFIG
690
691BINARY_TYPE=bin
692E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
693	| awk '{print $3}' | tr \" " " | awk '{print $1}'`
694DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
695	| tr \" " "`
696E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
697MONTH=`echo $DATE | awk -F- '{print $2}'`
698YEAR=`echo $DATE | awk -F- '{print $3}'`
699
700if expr $YEAR ">" 1900 > /dev/null ; then
701	E2FSPROGS_YEAR=$YEAR
702elif expr $YEAR ">" 90 >/dev/null ; then
703	E2FSPROGS_YEAR=19$YEAR
704else
705	E2FSPROGS_YEAR=20$YEAR
706fi
707
708case $MONTH in
709Jan)	E2FSPROGS_MONTH="January" ;;
710Feb)	E2FSPROGS_MONTH="February" ;;
711Mar)	E2FSPROGS_MONTH="March" ;;
712Apr)	E2FSPROGS_MONTH="April" ;;
713May)	E2FSPROGS_MONTH="May" ;;
714Jun)	E2FSPROGS_MONTH="June" ;;
715Jul)	E2FSPROGS_MONTH="July" ;;
716Aug)	E2FSPROGS_MONTH="August" ;;
717Sep)	E2FSPROGS_MONTH="September" ;;
718Oct)	E2FSPROGS_MONTH="October" ;;
719Nov)	E2FSPROGS_MONTH="November" ;;
720Dec)	E2FSPROGS_MONTH="December" ;;
721*)	echo "Unknown month $MONTH??" ;;
722esac
723
724unset DATE MONTH YEAR
725echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
726echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
727
728
729
730
731ac_aux_dir=
732for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
733  if test -f $ac_dir/install-sh; then
734    ac_aux_dir=$ac_dir
735    ac_install_sh="$ac_aux_dir/install-sh -c"
736    break
737  elif test -f $ac_dir/install.sh; then
738    ac_aux_dir=$ac_dir
739    ac_install_sh="$ac_aux_dir/install.sh -c"
740    break
741  fi
742done
743if test -z "$ac_aux_dir"; then
744  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
745fi
746ac_config_guess=$ac_aux_dir/config.guess
747ac_config_sub=$ac_aux_dir/config.sub
748ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
749
750
751# Make sure we can run config.sub.
752if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
753else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
754fi
755
756echo $ac_n "checking host system type""... $ac_c" 1>&6
757echo "configure:758: checking host system type" >&5
758
759host_alias=$host
760case "$host_alias" in
761NONE)
762  case $nonopt in
763  NONE)
764    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
765    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
766    fi ;;
767  *) host_alias=$nonopt ;;
768  esac ;;
769esac
770
771host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
772host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
773host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
774host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
775echo "$ac_t""$host" 1>&6
776
777EVMS_CMT=
778
779# Check whether --with-diet-libc or --without-diet-libc was given.
780if test "${with_diet_libc+set}" = set; then
781  withval="$with_diet_libc"
782  CC="diet cc -nostdinc"
783EVMS_CMT="#"
784echo "$ac_t""CC=$CC" 1>&6
785fi
786# Check whether --with-cc or --without-cc was given.
787if test "${with_cc+set}" = set; then
788  withval="$with_cc"
789  echo "$ac_t""CC=$withval" 1>&6
790CC=$withval
791else
792  if test -z "$CC" ; then CC=cc; fi
793echo "$ac_t""CC defaults to $CC" 1>&6
794fi
795export CC
796
797# Extract the first word of "gcc", so it can be a program name with args.
798set dummy gcc; ac_word=$2
799echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
800echo "configure:801: checking for $ac_word" >&5
801if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
802  echo $ac_n "(cached) $ac_c" 1>&6
803else
804  if test -n "$CC"; then
805  ac_cv_prog_CC="$CC" # Let the user override the test.
806else
807  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
808  ac_dummy="$PATH"
809  for ac_dir in $ac_dummy; do
810    test -z "$ac_dir" && ac_dir=.
811    if test -f $ac_dir/$ac_word; then
812      ac_cv_prog_CC="gcc"
813      break
814    fi
815  done
816  IFS="$ac_save_ifs"
817fi
818fi
819CC="$ac_cv_prog_CC"
820if test -n "$CC"; then
821  echo "$ac_t""$CC" 1>&6
822else
823  echo "$ac_t""no" 1>&6
824fi
825
826if test -z "$CC"; then
827  # Extract the first word of "cc", so it can be a program name with args.
828set dummy cc; ac_word=$2
829echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
830echo "configure:831: checking for $ac_word" >&5
831if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
832  echo $ac_n "(cached) $ac_c" 1>&6
833else
834  if test -n "$CC"; then
835  ac_cv_prog_CC="$CC" # Let the user override the test.
836else
837  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
838  ac_prog_rejected=no
839  ac_dummy="$PATH"
840  for ac_dir in $ac_dummy; do
841    test -z "$ac_dir" && ac_dir=.
842    if test -f $ac_dir/$ac_word; then
843      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
844        ac_prog_rejected=yes
845	continue
846      fi
847      ac_cv_prog_CC="cc"
848      break
849    fi
850  done
851  IFS="$ac_save_ifs"
852if test $ac_prog_rejected = yes; then
853  # We found a bogon in the path, so make sure we never use it.
854  set dummy $ac_cv_prog_CC
855  shift
856  if test $# -gt 0; then
857    # We chose a different compiler from the bogus one.
858    # However, it has the same basename, so the bogon will be chosen
859    # first if we set CC to just the basename; use the full file name.
860    shift
861    set dummy "$ac_dir/$ac_word" "$@"
862    shift
863    ac_cv_prog_CC="$@"
864  fi
865fi
866fi
867fi
868CC="$ac_cv_prog_CC"
869if test -n "$CC"; then
870  echo "$ac_t""$CC" 1>&6
871else
872  echo "$ac_t""no" 1>&6
873fi
874
875  if test -z "$CC"; then
876    case "`uname -s`" in
877    *win32* | *WIN32*)
878      # Extract the first word of "cl", so it can be a program name with args.
879set dummy cl; ac_word=$2
880echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
881echo "configure:882: checking for $ac_word" >&5
882if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
883  echo $ac_n "(cached) $ac_c" 1>&6
884else
885  if test -n "$CC"; then
886  ac_cv_prog_CC="$CC" # Let the user override the test.
887else
888  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
889  ac_dummy="$PATH"
890  for ac_dir in $ac_dummy; do
891    test -z "$ac_dir" && ac_dir=.
892    if test -f $ac_dir/$ac_word; then
893      ac_cv_prog_CC="cl"
894      break
895    fi
896  done
897  IFS="$ac_save_ifs"
898fi
899fi
900CC="$ac_cv_prog_CC"
901if test -n "$CC"; then
902  echo "$ac_t""$CC" 1>&6
903else
904  echo "$ac_t""no" 1>&6
905fi
906 ;;
907    esac
908  fi
909  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
910fi
911
912echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
913echo "configure:914: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
914
915ac_ext=c
916# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
917ac_cpp='$CPP $CPPFLAGS'
918ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
919ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
920cross_compiling=$ac_cv_prog_cc_cross
921
922cat > conftest.$ac_ext << EOF
923
924#line 925 "configure"
925#include "confdefs.h"
926
927main(){return(0);}
928EOF
929if { (eval echo configure:930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
930  ac_cv_prog_cc_works=yes
931  # If we can't run a trivial program, we are probably using a cross compiler.
932  if (./conftest; exit) 2>/dev/null; then
933    ac_cv_prog_cc_cross=no
934  else
935    ac_cv_prog_cc_cross=yes
936  fi
937else
938  echo "configure: failed program was:" >&5
939  cat conftest.$ac_ext >&5
940  ac_cv_prog_cc_works=no
941fi
942rm -fr conftest*
943ac_ext=c
944# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
945ac_cpp='$CPP $CPPFLAGS'
946ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
947ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
948cross_compiling=$ac_cv_prog_cc_cross
949
950echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
951if test $ac_cv_prog_cc_works = no; then
952  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
953fi
954echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
955echo "configure:956: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
956echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
957cross_compiling=$ac_cv_prog_cc_cross
958
959echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
960echo "configure:961: checking whether we are using GNU C" >&5
961if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
962  echo $ac_n "(cached) $ac_c" 1>&6
963else
964  cat > conftest.c <<EOF
965#ifdef __GNUC__
966  yes;
967#endif
968EOF
969if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
970  ac_cv_prog_gcc=yes
971else
972  ac_cv_prog_gcc=no
973fi
974fi
975
976echo "$ac_t""$ac_cv_prog_gcc" 1>&6
977
978if test $ac_cv_prog_gcc = yes; then
979  GCC=yes
980else
981  GCC=
982fi
983
984ac_test_CFLAGS="${CFLAGS+set}"
985ac_save_CFLAGS="$CFLAGS"
986CFLAGS=
987echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
988echo "configure:989: checking whether ${CC-cc} accepts -g" >&5
989if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
990  echo $ac_n "(cached) $ac_c" 1>&6
991else
992  echo 'void f(){}' > conftest.c
993if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
994  ac_cv_prog_cc_g=yes
995else
996  ac_cv_prog_cc_g=no
997fi
998rm -f conftest*
999
1000fi
1001
1002echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1003if test "$ac_test_CFLAGS" = set; then
1004  CFLAGS="$ac_save_CFLAGS"
1005elif test $ac_cv_prog_cc_g = yes; then
1006  if test "$GCC" = yes; then
1007    CFLAGS="-g -O2"
1008  else
1009    CFLAGS="-g"
1010  fi
1011else
1012  if test "$GCC" = yes; then
1013    CFLAGS="-O2"
1014  else
1015    CFLAGS=
1016  fi
1017fi
1018
1019# Check whether --with-linker or --without-linker was given.
1020if test "${with_linker+set}" = set; then
1021  withval="$with_linker"
1022  echo "$ac_t""LD=$withval" 1>&6
1023LD=$withval
1024else
1025  if test -z "$LD" ; then LD=$CC; fi
1026echo "$ac_t""LD defaults to $LD" 1>&6
1027fi
1028export LD
1029
1030# Check whether --with-ccopts or --without-ccopts was given.
1031if test "${with_ccopts+set}" = set; then
1032  withval="$with_ccopts"
1033  echo "$ac_t""CCOPTS is $withval" 1>&6
1034CFLAGS=$withval
1035fi
1036echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1037echo "configure:1038: checking how to run the C preprocessor" >&5
1038# On Suns, sometimes $CPP names a directory.
1039if test -n "$CPP" && test -d "$CPP"; then
1040  CPP=
1041fi
1042if test -z "$CPP"; then
1043if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1044  echo $ac_n "(cached) $ac_c" 1>&6
1045else
1046    # This must be in double quotes, not single quotes, because CPP may get
1047  # substituted into the Makefile and "${CC-cc}" will confuse make.
1048  CPP="${CC-cc} -E"
1049  # On the NeXT, cc -E runs the code through the compiler's parser,
1050  # not just through cpp.
1051  cat > conftest.$ac_ext <<EOF
1052#line 1053 "configure"
1053#include "confdefs.h"
1054#include <assert.h>
1055Syntax Error
1056EOF
1057ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1058{ (eval echo configure:1059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1059ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1060if test -z "$ac_err"; then
1061  :
1062else
1063  echo "$ac_err" >&5
1064  echo "configure: failed program was:" >&5
1065  cat conftest.$ac_ext >&5
1066  rm -rf conftest*
1067  CPP="${CC-cc} -E -traditional-cpp"
1068  cat > conftest.$ac_ext <<EOF
1069#line 1070 "configure"
1070#include "confdefs.h"
1071#include <assert.h>
1072Syntax Error
1073EOF
1074ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1075{ (eval echo configure:1076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1076ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1077if test -z "$ac_err"; then
1078  :
1079else
1080  echo "$ac_err" >&5
1081  echo "configure: failed program was:" >&5
1082  cat conftest.$ac_ext >&5
1083  rm -rf conftest*
1084  CPP="${CC-cc} -nologo -E"
1085  cat > conftest.$ac_ext <<EOF
1086#line 1087 "configure"
1087#include "confdefs.h"
1088#include <assert.h>
1089Syntax Error
1090EOF
1091ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1092{ (eval echo configure:1093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1093ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1094if test -z "$ac_err"; then
1095  :
1096else
1097  echo "$ac_err" >&5
1098  echo "configure: failed program was:" >&5
1099  cat conftest.$ac_ext >&5
1100  rm -rf conftest*
1101  CPP=/lib/cpp
1102fi
1103rm -f conftest*
1104fi
1105rm -f conftest*
1106fi
1107rm -f conftest*
1108  ac_cv_prog_CPP="$CPP"
1109fi
1110  CPP="$ac_cv_prog_CPP"
1111else
1112  ac_cv_prog_CPP="$CPP"
1113fi
1114echo "$ac_t""$CPP" 1>&6
1115
1116ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
1117echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
1118echo "configure:1119: checking for linux/fs.h" >&5
1119if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1120  echo $ac_n "(cached) $ac_c" 1>&6
1121else
1122  cat > conftest.$ac_ext <<EOF
1123#line 1124 "configure"
1124#include "confdefs.h"
1125#include <linux/fs.h>
1126EOF
1127ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1128{ (eval echo configure:1129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1129ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1130if test -z "$ac_err"; then
1131  rm -rf conftest*
1132  eval "ac_cv_header_$ac_safe=yes"
1133else
1134  echo "$ac_err" >&5
1135  echo "configure: failed program was:" >&5
1136  cat conftest.$ac_ext >&5
1137  rm -rf conftest*
1138  eval "ac_cv_header_$ac_safe=no"
1139fi
1140rm -f conftest*
1141fi
1142if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1143  echo "$ac_t""yes" 1>&6
1144  linux_headers=yes
1145else
1146  echo "$ac_t""no" 1>&6
1147linux_headers=no
1148fi
1149
1150if test "$linux_headers" != yes; then
1151  LINUX_INCLUDE='-I$(top_builddir)/include'
1152fi
1153
1154LIB_EXT=.a
1155STATIC_LIB_EXT=.a
1156PROFILE_LIB_EXT=.a
1157# Check whether --with-ldopts or --without-ldopts was given.
1158if test "${with_ldopts+set}" = set; then
1159  withval="$with_ldopts"
1160  echo "$ac_t""LDFLAGS is $withval" 1>&6
1161LDFLAGS=$withval
1162else
1163  LDFLAGS=
1164fi
1165
1166# Check whether --with-root-prefix or --without-root-prefix was given.
1167if test "${with_root_prefix+set}" = set; then
1168  withval="$with_root_prefix"
1169  root_prefix=$withval
1170else
1171  root_prefix=NONE
1172fi
1173# Check whether --enable-compression or --disable-compression was given.
1174if test "${enable_compression+set}" = set; then
1175  enableval="$enable_compression"
1176  if test "$enableval" = "no"
1177then
1178	echo "Disabling compression support"
1179else
1180	cat >> confdefs.h <<\EOF
1181#define ENABLE_COMPRESSION 1
1182EOF
1183
1184	echo "Enabling compression support"
1185	echo "WARNING: Compression support is experimental"
1186fi
1187
1188else
1189  echo "Disabling compression support by default"
1190
1191fi
1192
1193# Check whether --enable-htree or --disable-htree was given.
1194if test "${enable_htree+set}" = set; then
1195  enableval="$enable_htree"
1196  if test "$enableval" = "no"
1197then
1198	HTREE_CMT=#
1199	echo "Disabling htree directory support"
1200else
1201	HTREE_CMT=
1202	cat >> confdefs.h <<\EOF
1203#define ENABLE_HTREE 1
1204EOF
1205
1206	echo "Enabling htree directory support"
1207fi
1208
1209else
1210  HTREE_CMT=
1211cat >> confdefs.h <<\EOF
1212#define ENABLE_HTREE 1
1213EOF
1214
1215echo "Enabling htree directory support by default"
1216
1217fi
1218
1219
1220# Check whether --enable-htree-clear or --disable-htree-clear was given.
1221if test "${enable_htree_clear+set}" = set; then
1222  enableval="$enable_htree_clear"
1223  if test "$enableval" = "no"
1224then
1225	HTREE_CLR_CMT=#
1226	echo "Disabling htree clearing"
1227else
1228	HTREE_CLR_CMT=
1229	cat >> confdefs.h <<\EOF
1230#define ENABLE_HTREE_CLEAR 1
1231EOF
1232
1233	echo "Enabling htree clearing"
1234fi
1235
1236else
1237  HTREE_CLR_CMT=#
1238echo "Disabling htree clearing by default"
1239
1240fi
1241
1242
1243# Check whether --enable-evms or --disable-evms was given.
1244if test "${enable_evms+set}" = set; then
1245  enableval="$enable_evms"
1246  if test "$enableval" != "no"
1247then
1248	EVMS_CMT="#"
1249	echo "Disabling EVMS plugin"
1250fi
1251
1252fi
1253
1254EVMS_ABI_CODE=120
1255# Check whether --enable-evms-10 or --disable-evms-10 was given.
1256if test "${enable_evms_10+set}" = set; then
1257  enableval="$enable_evms_10"
1258  if test "$enableval" != "no"
1259then
1260	EVMS_ABI_CODE=100
1261	echo "Enabling EVMS 1.0.0 ABI"
1262fi
1263
1264fi
1265
1266# Check whether --enable-evms-11 or --disable-evms-11 was given.
1267if test "${enable_evms_11+set}" = set; then
1268  enableval="$enable_evms_11"
1269  if test "$enableval" != "no"
1270then
1271	EVMS_ABI_CODE=110
1272	echo "Enabling EVMS 1.1.0 ABI"
1273fi
1274
1275fi
1276
1277if test "$EVMS_ABI_CODE" = "120"
1278then
1279	echo "Using EVMS 1.2.0 ABI by default"
1280fi
1281
1282# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
1283if test "${enable_dll_shlibs+set}" = set; then
1284  enableval="$enable_dll_shlibs"
1285  if test "$enableval" = "no"
1286then
1287	DLL_CMT=#
1288	MAKEFILE_DLL=/dev/null
1289	echo "Disabling DLL shared libraries"
1290else
1291	DLL_CMT=
1292	MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
1293	BINARY_TYPE=dllbin
1294	LIB_EXT=.sa
1295	echo "Enabling DLL shared libraries"
1296fi
1297
1298else
1299  MAKEFILE_DLL=/dev/null
1300DLL_CMT=#
1301echo "Disabling DLL shared libraries by default"
1302
1303fi
1304
1305
1306
1307# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
1308if test "${enable_elf_shlibs+set}" = set; then
1309  enableval="$enable_elf_shlibs"
1310  if test "$enableval" = "no"
1311then
1312	ELF_CMT=#
1313	MAKEFILE_ELF=/dev/null
1314	echo "Disabling ELF shared libraries"
1315else
1316	ELF_CMT=
1317	MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
1318	case "$host_os" in
1319	solaris2.*)
1320		MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
1321	;;
1322	esac
1323	BINARY_TYPE=elfbin
1324	LIB_EXT=.so
1325	echo "Enabling ELF shared libraries"
1326fi
1327
1328else
1329  MAKEFILE_ELF=/dev/null
1330ELF_CMT=#
1331echo "Disabling ELF shared libraries by default"
1332
1333fi
1334
1335
1336
1337# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
1338if test "${enable_bsd_shlibs+set}" = set; then
1339  enableval="$enable_bsd_shlibs"
1340  if test "$enableval" = "no"
1341then
1342	BSDLIB_CMT=#
1343	MAKEFILE_BSDLIB=/dev/null
1344	echo "Disabling BSD shared libraries"
1345else
1346	BSDLIB_CMT=
1347	MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
1348	LIB_EXT=.so
1349	case "$host_os" in
1350	darwin*)
1351		MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
1352		LIB_EXT=.dylib
1353	;;
1354	esac
1355	echo "Enabling BSD shared libraries"
1356fi
1357
1358else
1359  MAKEFILE_BSDLIB=/dev/null
1360BSDLIB_CMT=#
1361echo "Disabling BSD shared libraries by default"
1362
1363fi
1364
1365
1366
1367# Check whether --enable-profile or --disable-profile was given.
1368if test "${enable_profile+set}" = set; then
1369  enableval="$enable_profile"
1370  if test "$enableval" = "no"
1371then
1372	PROFILE_CMT=#
1373	MAKEFILE_PROFILE=/dev/null
1374	echo "Disabling profiling libraries"
1375else
1376	PROFILE_CMT=
1377	MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
1378	PROFILED_LIB_EXT=_p.a
1379	echo "Building profiling libraries"
1380fi
1381
1382else
1383  PROFILE_CMT=#
1384MAKEFILE_PROFILE=/dev/null
1385echo "Disabling profiling libraries by default"
1386
1387fi
1388
1389
1390
1391# Check whether --enable-checker or --disable-checker was given.
1392if test "${enable_checker+set}" = set; then
1393  enableval="$enable_checker"
1394  if test "$enableval" = "no"
1395then
1396	CHECKER_CMT=#
1397	MAKEFILE_CHECKER=/dev/null
1398	echo "Disabling checker libraries"
1399else
1400	CHECKER_CMT=
1401	MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
1402	echo "Building checker libraries"
1403fi
1404
1405else
1406  CHECKER_CMT=#
1407MAKEFILE_CHECKER=/dev/null
1408echo "Disabling checker libraries by default"
1409
1410fi
1411
1412
1413
1414
1415
1416
1417# Check whether --enable-jbd-debug or --disable-jbd-debug was given.
1418if test "${enable_jbd_debug+set}" = set; then
1419  enableval="$enable_jbd_debug"
1420  if test "$enableval" = "no"
1421then
1422	echo "Disabling journal debugging"
1423else
1424	cat >> confdefs.h <<\EOF
1425#define CONFIG_JBD_DEBUG 1
1426EOF
1427
1428	echo "Enabling journal debugging"
1429fi
1430
1431else
1432  echo "Disabling journal debugging by default"
1433
1434fi
1435
1436# Check whether --enable-blkid-debug or --disable-blkid-debug was given.
1437if test "${enable_blkid_debug+set}" = set; then
1438  enableval="$enable_blkid_debug"
1439  if test "$enableval" = "no"
1440then
1441	echo "Disabling blkid debugging"
1442else
1443	cat >> confdefs.h <<\EOF
1444#define CONFIG_BLKID_DEBUG 1
1445EOF
1446
1447	echo "Enabling blkid debugging"
1448fi
1449
1450else
1451  echo "Disabling blkid debugging by default"
1452
1453fi
1454
1455# Check whether --enable-testio-debug or --disable-testio-debug was given.
1456if test "${enable_testio_debug+set}" = set; then
1457  enableval="$enable_testio_debug"
1458  if test "$enableval" = "no"
1459then
1460	echo "Disabling testio debugging"
1461else
1462	cat >> confdefs.h <<\EOF
1463#define CONFIG_TESTIO_DEBUG 1
1464EOF
1465
1466	echo "Enabling testio debugging"
1467fi
1468
1469else
1470  echo "Disabling testio debugging by default"
1471
1472fi
1473
1474# Check whether --enable-swapfs or --disable-swapfs was given.
1475if test "${enable_swapfs+set}" = set; then
1476  enableval="$enable_swapfs"
1477  if test "$enableval" = "no"
1478then
1479	SWAPFS_CMT=#
1480	echo "Disabling swapfs support"
1481else
1482	SWAPFS_CMT=
1483	cat >> confdefs.h <<\EOF
1484#define ENABLE_SWAPFS 1
1485EOF
1486
1487	echo "Enabling swapfs support"
1488fi
1489
1490else
1491  SWAPFS_CMT=
1492echo "Enabling swapfs support by default"
1493cat >> confdefs.h <<\EOF
1494#define ENABLE_SWAPFS 1
1495EOF
1496
1497
1498fi
1499
1500
1501# Check whether --enable-debugfs or --disable-debugfs was given.
1502if test "${enable_debugfs+set}" = set; then
1503  enableval="$enable_debugfs"
1504  if test "$enableval" = "no"
1505then
1506	echo "Disabling debugfs support"
1507	DEBUGFS_CMT="#"
1508else
1509	DEBUGFS_CMT=
1510	echo "Enabling debugfs support"
1511fi
1512
1513else
1514  echo "Enabling debugfs support by default"
1515DEBUGFS_CMT=
1516
1517fi
1518
1519
1520# Check whether --enable-imager or --disable-imager was given.
1521if test "${enable_imager+set}" = set; then
1522  enableval="$enable_imager"
1523  if test "$enableval" = "no"
1524then
1525	echo "Disabling e2image support"
1526	IMAGER_CMT="#"
1527else
1528	IMAGER_CMT=
1529	echo "Enabling e2image support"
1530fi
1531
1532else
1533  echo "Enabling e2image support by default"
1534IMAGER_CMT=
1535
1536fi
1537
1538
1539# Check whether --enable-resizer or --disable-resizer was given.
1540if test "${enable_resizer+set}" = set; then
1541  enableval="$enable_resizer"
1542  if test "$enableval" = "no"
1543then
1544	echo "Disabling e2resize support"
1545	RESIZER_CMT="#"
1546else
1547	RESIZER_CMT=
1548	echo "Enabling e2resize support"
1549fi
1550
1551else
1552  echo "Enabling e2resize support by default"
1553RESIZER_CMT=
1554
1555fi
1556
1557
1558# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
1559if test "${enable_dynamic_e2fsck+set}" = set; then
1560  enableval="$enable_dynamic_e2fsck"
1561  if test "$enableval" = "no"
1562then
1563	E2FSCK_TYPE=static
1564	echo "Building e2fsck statically"
1565else
1566	E2FSCK_TYPE=shared
1567	echo "Building e2fsck dynamically"
1568fi
1569
1570else
1571  E2FSCK_TYPE=static
1572echo "Building e2fsck statically by default"
1573
1574fi
1575
1576
1577# Check whether --enable-fsck or --disable-fsck was given.
1578if test "${enable_fsck+set}" = set; then
1579  enableval="$enable_fsck"
1580  if test "$enableval" = "no"
1581then
1582	FSCK_PROG='' FSCK_MAN=''
1583	echo "Not building fsck wrapper"
1584else
1585	FSCK_PROG=fsck FSCK_MAN=fsck.8
1586	echo "Building fsck wrapper"
1587fi
1588
1589else
1590  case "$host_os" in
1591  gnu*)
1592    FSCK_PROG='' FSCK_MAN=''
1593    echo "Not building fsck wrapper by default"
1594    ;;
1595  *)
1596    FSCK_PROG=fsck FSCK_MAN=fsck.8
1597    echo "Building fsck wrapper by default"
1598esac
1599
1600fi
1601
1602
1603
1604MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
1605
1606# Check whether --enable-old-bitops or --disable-old-bitops was given.
1607if test "${enable_old_bitops+set}" = set; then
1608  enableval="$enable_old_bitops"
1609  if test "$enableval" = "no"
1610then
1611	echo "Using new (standard) bitmask operations"
1612else
1613	cat >> confdefs.h <<\EOF
1614#define EXT2_OLD_BITOPS 1
1615EOF
1616
1617	echo "Using old (native) bitmask operations"
1618
1619fi
1620
1621else
1622  echo "Using standard bitmask operations by default"
1623
1624fi
1625
1626PACKAGE=e2fsprogs
1627VERSION="$E2FSPROGS_VERSION"
1628cat >> confdefs.h <<EOF
1629#define PACKAGE "$PACKAGE"
1630EOF
1631
1632cat >> confdefs.h <<EOF
1633#define VERSION "$VERSION"
1634EOF
1635
1636
1637
1638
1639
1640  echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
1641echo "configure:1642: checking for inttypes.h" >&5
1642if eval "test \"`echo '$''{'jm_ac_cv_header_inttypes_h'+set}'`\" = set"; then
1643  echo $ac_n "(cached) $ac_c" 1>&6
1644else
1645  cat > conftest.$ac_ext <<EOF
1646#line 1647 "configure"
1647#include "confdefs.h"
1648#include <sys/types.h>
1649#include <inttypes.h>
1650int main() {
1651uintmax_t i = (uintmax_t) -1;
1652; return 0; }
1653EOF
1654if { (eval echo configure:1655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1655  rm -rf conftest*
1656  jm_ac_cv_header_inttypes_h=yes
1657else
1658  echo "configure: failed program was:" >&5
1659  cat conftest.$ac_ext >&5
1660  rm -rf conftest*
1661  jm_ac_cv_header_inttypes_h=no
1662fi
1663rm -f conftest*
1664fi
1665
1666echo "$ac_t""$jm_ac_cv_header_inttypes_h" 1>&6
1667  if test $jm_ac_cv_header_inttypes_h = yes; then
1668    cat >> confdefs.h <<EOF
1669#define HAVE_INTTYPES_H_WITH_UINTMAX 1
1670EOF
1671
1672  fi
1673
1674
1675  echo $ac_n "checking for stdint.h""... $ac_c" 1>&6
1676echo "configure:1677: checking for stdint.h" >&5
1677if eval "test \"`echo '$''{'jm_ac_cv_header_stdint_h'+set}'`\" = set"; then
1678  echo $ac_n "(cached) $ac_c" 1>&6
1679else
1680  cat > conftest.$ac_ext <<EOF
1681#line 1682 "configure"
1682#include "confdefs.h"
1683#include <sys/types.h>
1684#include <stdint.h>
1685int main() {
1686uintmax_t i = (uintmax_t) -1;
1687; return 0; }
1688EOF
1689if { (eval echo configure:1690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1690  rm -rf conftest*
1691  jm_ac_cv_header_stdint_h=yes
1692else
1693  echo "configure: failed program was:" >&5
1694  cat conftest.$ac_ext >&5
1695  rm -rf conftest*
1696  jm_ac_cv_header_stdint_h=no
1697fi
1698rm -f conftest*
1699fi
1700
1701echo "$ac_t""$jm_ac_cv_header_stdint_h" 1>&6
1702  if test $jm_ac_cv_header_stdint_h = yes; then
1703    cat >> confdefs.h <<EOF
1704#define HAVE_STDINT_H_WITH_UINTMAX 1
1705EOF
1706
1707  fi
1708
1709
1710  echo $ac_n "checking for unsigned long long""... $ac_c" 1>&6
1711echo "configure:1712: checking for unsigned long long" >&5
1712if eval "test \"`echo '$''{'ac_cv_type_unsigned_long_long'+set}'`\" = set"; then
1713  echo $ac_n "(cached) $ac_c" 1>&6
1714else
1715  cat > conftest.$ac_ext <<EOF
1716#line 1717 "configure"
1717#include "confdefs.h"
1718unsigned long long ull = 1; int i = 63;
1719int main() {
1720unsigned long long ullmax = (unsigned long long) -1;
1721     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
1722; return 0; }
1723EOF
1724if { (eval echo configure:1725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1725  rm -rf conftest*
1726  ac_cv_type_unsigned_long_long=yes
1727else
1728  echo "configure: failed program was:" >&5
1729  cat conftest.$ac_ext >&5
1730  rm -rf conftest*
1731  ac_cv_type_unsigned_long_long=no
1732fi
1733rm -f conftest*
1734fi
1735
1736echo "$ac_t""$ac_cv_type_unsigned_long_long" 1>&6
1737  if test $ac_cv_type_unsigned_long_long = yes; then
1738    cat >> confdefs.h <<\EOF
1739#define HAVE_UNSIGNED_LONG_LONG 1
1740EOF
1741
1742  fi
1743
1744
1745      if test "X$prefix" = "XNONE"; then
1746    acl_final_prefix="$ac_default_prefix"
1747  else
1748    acl_final_prefix="$prefix"
1749  fi
1750  if test "X$exec_prefix" = "XNONE"; then
1751    acl_final_exec_prefix='${prefix}'
1752  else
1753    acl_final_exec_prefix="$exec_prefix"
1754  fi
1755  acl_save_prefix="$prefix"
1756  prefix="$acl_final_prefix"
1757  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
1758  prefix="$acl_save_prefix"
1759
1760
1761                                                echo $ac_n "checking for shared library run path origin""... $ac_c" 1>&6
1762echo "configure:1763: checking for shared library run path origin" >&5
1763if eval "test \"`echo '$''{'acl_cv_rpath'+set}'`\" = set"; then
1764  echo $ac_n "(cached) $ac_c" 1>&6
1765else
1766  
1767    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
1768    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
1769    . ./conftest.sh
1770    rm -f ./conftest.sh
1771    acl_cv_rpath=done
1772  
1773fi
1774
1775echo "$ac_t""$acl_cv_rpath" 1>&6
1776  wl="$acl_cv_wl"
1777  libext="$acl_cv_libext"
1778  shlibext="$acl_cv_shlibext"
1779  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
1780  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
1781  hardcode_direct="$acl_cv_hardcode_direct"
1782  hardcode_minus_L="$acl_cv_hardcode_minus_L"
1783  sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
1784  sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
1785    # Check whether --enable-rpath or --disable-rpath was given.
1786if test "${enable_rpath+set}" = set; then
1787  enableval="$enable_rpath"
1788  :
1789else
1790  enable_rpath=yes
1791fi
1792
1793
1794echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1795echo "configure:1796: checking whether ${MAKE-make} sets \${MAKE}" >&5
1796set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1797if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1798  echo $ac_n "(cached) $ac_c" 1>&6
1799else
1800  cat > conftestmake <<\EOF
1801all:
1802	@echo 'ac_maketemp="${MAKE}"'
1803EOF
1804# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1805eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1806if test -n "$ac_maketemp"; then
1807  eval ac_cv_prog_make_${ac_make}_set=yes
1808else
1809  eval ac_cv_prog_make_${ac_make}_set=no
1810fi
1811rm -f conftestmake
1812fi
1813if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1814  echo "$ac_t""yes" 1>&6
1815  SET_MAKE=
1816else
1817  echo "$ac_t""no" 1>&6
1818  SET_MAKE="MAKE=${MAKE-make}"
1819fi
1820
1821# Find a good install program.  We prefer a C program (faster),
1822# so one script is as good as another.  But avoid the broken or
1823# incompatible versions:
1824# SysV /etc/install, /usr/sbin/install
1825# SunOS /usr/etc/install
1826# IRIX /sbin/install
1827# AIX /bin/install
1828# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1829# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1830# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1831# ./install, which can be erroneously created by make from ./install.sh.
1832echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1833echo "configure:1834: checking for a BSD compatible install" >&5
1834if test -z "$INSTALL"; then
1835if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1836  echo $ac_n "(cached) $ac_c" 1>&6
1837else
1838    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
1839  for ac_dir in $PATH; do
1840    # Account for people who put trailing slashes in PATH elements.
1841    case "$ac_dir/" in
1842    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1843    *)
1844      # OSF1 and SCO ODT 3.0 have their own names for install.
1845      # Don't use installbsd from OSF since it installs stuff as root
1846      # by default.
1847      for ac_prog in ginstall scoinst install; do
1848        if test -f $ac_dir/$ac_prog; then
1849	  if test $ac_prog = install &&
1850            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1851	    # AIX install.  It has an incompatible calling convention.
1852	    :
1853	  else
1854	    ac_cv_path_install="$ac_dir/$ac_prog -c"
1855	    break 2
1856	  fi
1857	fi
1858      done
1859      ;;
1860    esac
1861  done
1862  IFS="$ac_save_IFS"
1863
1864fi
1865  if test "${ac_cv_path_install+set}" = set; then
1866    INSTALL="$ac_cv_path_install"
1867  else
1868    # As a last resort, use the slow shell script.  We don't cache a
1869    # path for INSTALL within a source directory, because that will
1870    # break other packages using the cache if that directory is
1871    # removed, or if the path is relative.
1872    INSTALL="$ac_install_sh"
1873  fi
1874fi
1875echo "$ac_t""$INSTALL" 1>&6
1876
1877# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1878# It thinks the first close brace ends the variable substitution.
1879test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1880
1881test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1882
1883test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1884
1885
1886        MKINSTALLDIRS=
1887  if test -n "$ac_aux_dir"; then
1888    MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
1889  fi
1890  if test -z "$MKINSTALLDIRS"; then
1891    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
1892  fi
1893  
1894
1895# Extract the first word of "ranlib", so it can be a program name with args.
1896set dummy ranlib; ac_word=$2
1897echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1898echo "configure:1899: checking for $ac_word" >&5
1899if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1900  echo $ac_n "(cached) $ac_c" 1>&6
1901else
1902  if test -n "$RANLIB"; then
1903  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1904else
1905  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1906  ac_dummy="$PATH"
1907  for ac_dir in $ac_dummy; do
1908    test -z "$ac_dir" && ac_dir=.
1909    if test -f $ac_dir/$ac_word; then
1910      ac_cv_prog_RANLIB="ranlib"
1911      break
1912    fi
1913  done
1914  IFS="$ac_save_ifs"
1915  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1916fi
1917fi
1918RANLIB="$ac_cv_prog_RANLIB"
1919if test -n "$RANLIB"; then
1920  echo "$ac_t""$RANLIB" 1>&6
1921else
1922  echo "$ac_t""no" 1>&6
1923fi
1924
1925
1926        echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1927echo "configure:1928: checking for strerror in -lcposix" >&5
1928ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1929if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1930  echo $ac_n "(cached) $ac_c" 1>&6
1931else
1932  ac_save_LIBS="$LIBS"
1933LIBS="-lcposix  $LIBS"
1934cat > conftest.$ac_ext <<EOF
1935#line 1936 "configure"
1936#include "confdefs.h"
1937/* Override any gcc2 internal prototype to avoid an error.  */
1938/* We use char because int might match the return type of a gcc2
1939    builtin and then its argument prototype would still apply.  */
1940char strerror();
1941
1942int main() {
1943strerror()
1944; return 0; }
1945EOF
1946if { (eval echo configure:1947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1947  rm -rf conftest*
1948  eval "ac_cv_lib_$ac_lib_var=yes"
1949else
1950  echo "configure: failed program was:" >&5
1951  cat conftest.$ac_ext >&5
1952  rm -rf conftest*
1953  eval "ac_cv_lib_$ac_lib_var=no"
1954fi
1955rm -f conftest*
1956LIBS="$ac_save_LIBS"
1957
1958fi
1959if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1960  echo "$ac_t""yes" 1>&6
1961  LIBS="$LIBS -lcposix"
1962else
1963  echo "$ac_t""no" 1>&6
1964fi
1965
1966  
1967
1968echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1969echo "configure:1970: checking for ANSI C header files" >&5
1970if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1971  echo $ac_n "(cached) $ac_c" 1>&6
1972else
1973  cat > conftest.$ac_ext <<EOF
1974#line 1975 "configure"
1975#include "confdefs.h"
1976#include <stdlib.h>
1977#include <stdarg.h>
1978#include <string.h>
1979#include <float.h>
1980EOF
1981ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1982{ (eval echo configure:1983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1983ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1984if test -z "$ac_err"; then
1985  rm -rf conftest*
1986  ac_cv_header_stdc=yes
1987else
1988  echo "$ac_err" >&5
1989  echo "configure: failed program was:" >&5
1990  cat conftest.$ac_ext >&5
1991  rm -rf conftest*
1992  ac_cv_header_stdc=no
1993fi
1994rm -f conftest*
1995
1996if test $ac_cv_header_stdc = yes; then
1997  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1998cat > conftest.$ac_ext <<EOF
1999#line 2000 "configure"
2000#include "confdefs.h"
2001#include <string.h>
2002EOF
2003if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2004  egrep "memchr" >/dev/null 2>&1; then
2005  :
2006else
2007  rm -rf conftest*
2008  ac_cv_header_stdc=no
2009fi
2010rm -f conftest*
2011
2012fi
2013
2014if test $ac_cv_header_stdc = yes; then
2015  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2016cat > conftest.$ac_ext <<EOF
2017#line 2018 "configure"
2018#include "confdefs.h"
2019#include <stdlib.h>
2020EOF
2021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2022  egrep "free" >/dev/null 2>&1; then
2023  :
2024else
2025  rm -rf conftest*
2026  ac_cv_header_stdc=no
2027fi
2028rm -f conftest*
2029
2030fi
2031
2032if test $ac_cv_header_stdc = yes; then
2033  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2034if test "$cross_compiling" = yes; then
2035  :
2036else
2037  cat > conftest.$ac_ext <<EOF
2038#line 2039 "configure"
2039#include "confdefs.h"
2040#include <ctype.h>
2041#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2042#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2043#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2044int main () { int i; for (i = 0; i < 256; i++)
2045if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2046exit (0); }
2047
2048EOF
2049if { (eval echo configure:2050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2050then
2051  :
2052else
2053  echo "configure: failed program was:" >&5
2054  cat conftest.$ac_ext >&5
2055  rm -fr conftest*
2056  ac_cv_header_stdc=no
2057fi
2058rm -fr conftest*
2059fi
2060
2061fi
2062fi
2063
2064echo "$ac_t""$ac_cv_header_stdc" 1>&6
2065if test $ac_cv_header_stdc = yes; then
2066  cat >> confdefs.h <<\EOF
2067#define STDC_HEADERS 1
2068EOF
2069
2070fi
2071
2072echo $ac_n "checking for working const""... $ac_c" 1>&6
2073echo "configure:2074: checking for working const" >&5
2074if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2075  echo $ac_n "(cached) $ac_c" 1>&6
2076else
2077  cat > conftest.$ac_ext <<EOF
2078#line 2079 "configure"
2079#include "confdefs.h"
2080
2081int main() {
2082
2083/* Ultrix mips cc rejects this.  */
2084typedef int charset[2]; const charset x;
2085/* SunOS 4.1.1 cc rejects this.  */
2086char const *const *ccp;
2087char **p;
2088/* NEC SVR4.0.2 mips cc rejects this.  */
2089struct point {int x, y;};
2090static struct point const zero = {0,0};
2091/* AIX XL C 1.02.0.0 rejects this.
2092   It does not let you subtract one const X* pointer from another in an arm
2093   of an if-expression whose if-part is not a constant expression */
2094const char *g = "string";
2095ccp = &g + (g ? g-g : 0);
2096/* HPUX 7.0 cc rejects these. */
2097++ccp;
2098p = (char**) ccp;
2099ccp = (char const *const *) p;
2100{ /* SCO 3.2v4 cc rejects this.  */
2101  char *t;
2102  char const *s = 0 ? (char *) 0 : (char const *) 0;
2103
2104  *t++ = 0;
2105}
2106{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2107  int x[] = {25, 17};
2108  const int *foo = &x[0];
2109  ++foo;
2110}
2111{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2112  typedef const int *iptr;
2113  iptr p = 0;
2114  ++p;
2115}
2116{ /* AIX XL C 1.02.0.0 rejects this saying
2117     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2118  struct s { int j; const int *ap[3]; };
2119  struct s *b; b->j = 5;
2120}
2121{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2122  const int foo = 10;
2123}
2124
2125; return 0; }
2126EOF
2127if { (eval echo configure:2128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2128  rm -rf conftest*
2129  ac_cv_c_const=yes
2130else
2131  echo "configure: failed program was:" >&5
2132  cat conftest.$ac_ext >&5
2133  rm -rf conftest*
2134  ac_cv_c_const=no
2135fi
2136rm -f conftest*
2137fi
2138
2139echo "$ac_t""$ac_cv_c_const" 1>&6
2140if test $ac_cv_c_const = no; then
2141  cat >> confdefs.h <<\EOF
2142#define const 
2143EOF
2144
2145fi
2146
2147echo $ac_n "checking for inline""... $ac_c" 1>&6
2148echo "configure:2149: checking for inline" >&5
2149if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2150  echo $ac_n "(cached) $ac_c" 1>&6
2151else
2152  ac_cv_c_inline=no
2153for ac_kw in inline __inline__ __inline; do
2154  cat > conftest.$ac_ext <<EOF
2155#line 2156 "configure"
2156#include "confdefs.h"
2157
2158int main() {
2159} $ac_kw foo() {
2160; return 0; }
2161EOF
2162if { (eval echo configure:2163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2163  rm -rf conftest*
2164  ac_cv_c_inline=$ac_kw; break
2165else
2166  echo "configure: failed program was:" >&5
2167  cat conftest.$ac_ext >&5
2168fi
2169rm -f conftest*
2170done
2171
2172fi
2173
2174echo "$ac_t""$ac_cv_c_inline" 1>&6
2175case "$ac_cv_c_inline" in
2176  inline | yes) ;;
2177  no) cat >> confdefs.h <<\EOF
2178#define inline 
2179EOF
2180 ;;
2181  *)  cat >> confdefs.h <<EOF
2182#define inline $ac_cv_c_inline
2183EOF
2184 ;;
2185esac
2186
2187echo $ac_n "checking for off_t""... $ac_c" 1>&6
2188echo "configure:2189: checking for off_t" >&5
2189if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2190  echo $ac_n "(cached) $ac_c" 1>&6
2191else
2192  cat > conftest.$ac_ext <<EOF
2193#line 2194 "configure"
2194#include "confdefs.h"
2195#include <sys/types.h>
2196#if STDC_HEADERS
2197#include <stdlib.h>
2198#include <stddef.h>
2199#endif
2200EOF
2201if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2202  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2203  rm -rf conftest*
2204  ac_cv_type_off_t=yes
2205else
2206  rm -rf conftest*
2207  ac_cv_type_off_t=no
2208fi
2209rm -f conftest*
2210
2211fi
2212echo "$ac_t""$ac_cv_type_off_t" 1>&6
2213if test $ac_cv_type_off_t = no; then
2214  cat >> confdefs.h <<\EOF
2215#define off_t long
2216EOF
2217
2218fi
2219
2220echo $ac_n "checking for size_t""... $ac_c" 1>&6
2221echo "configure:2222: checking for size_t" >&5
2222if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2223  echo $ac_n "(cached) $ac_c" 1>&6
2224else
2225  cat > conftest.$ac_ext <<EOF
2226#line 2227 "configure"
2227#include "confdefs.h"
2228#include <sys/types.h>
2229#if STDC_HEADERS
2230#include <stdlib.h>
2231#include <stddef.h>
2232#endif
2233EOF
2234if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2235  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2236  rm -rf conftest*
2237  ac_cv_type_size_t=yes
2238else
2239  rm -rf conftest*
2240  ac_cv_type_size_t=no
2241fi
2242rm -f conftest*
2243
2244fi
2245echo "$ac_t""$ac_cv_type_size_t" 1>&6
2246if test $ac_cv_type_size_t = no; then
2247  cat >> confdefs.h <<\EOF
2248#define size_t unsigned
2249EOF
2250
2251fi
2252
2253# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2254# for constant arguments.  Useless!
2255echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2256echo "configure:2257: checking for working alloca.h" >&5
2257if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2258  echo $ac_n "(cached) $ac_c" 1>&6
2259else
2260  cat > conftest.$ac_ext <<EOF
2261#line 2262 "configure"
2262#include "confdefs.h"
2263#include <alloca.h>
2264int main() {
2265char *p = alloca(2 * sizeof(int));
2266; return 0; }
2267EOF
2268if { (eval echo configure:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2269  rm -rf conftest*
2270  ac_cv_header_alloca_h=yes
2271else
2272  echo "configure: failed program was:" >&5
2273  cat conftest.$ac_ext >&5
2274  rm -rf conftest*
2275  ac_cv_header_alloca_h=no
2276fi
2277rm -f conftest*
2278fi
2279
2280echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2281if test $ac_cv_header_alloca_h = yes; then
2282  cat >> confdefs.h <<\EOF
2283#define HAVE_ALLOCA_H 1
2284EOF
2285
2286fi
2287
2288echo $ac_n "checking for alloca""... $ac_c" 1>&6
2289echo "configure:2290: checking for alloca" >&5
2290if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2291  echo $ac_n "(cached) $ac_c" 1>&6
2292else
2293  cat > conftest.$ac_ext <<EOF
2294#line 2295 "configure"
2295#include "confdefs.h"
2296
2297#ifdef __GNUC__
2298# define alloca __builtin_alloca
2299#else
2300# ifdef _MSC_VER
2301#  include <malloc.h>
2302#  define alloca _alloca
2303# else
2304#  if HAVE_ALLOCA_H
2305#   include <alloca.h>
2306#  else
2307#   ifdef _AIX
2308 #pragma alloca
2309#   else
2310#    ifndef alloca /* predefined by HP cc +Olibcalls */
2311char *alloca ();
2312#    endif
2313#   endif
2314#  endif
2315# endif
2316#endif
2317
2318int main() {
2319char *p = (char *) alloca(1);
2320; return 0; }
2321EOF
2322if { (eval echo configure:2323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2323  rm -rf conftest*
2324  ac_cv_func_alloca_works=yes
2325else
2326  echo "configure: failed program was:" >&5
2327  cat conftest.$ac_ext >&5
2328  rm -rf conftest*
2329  ac_cv_func_alloca_works=no
2330fi
2331rm -f conftest*
2332fi
2333
2334echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2335if test $ac_cv_func_alloca_works = yes; then
2336  cat >> confdefs.h <<\EOF
2337#define HAVE_ALLOCA 1
2338EOF
2339
2340fi
2341
2342if test $ac_cv_func_alloca_works = no; then
2343  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2344  # that cause trouble.  Some versions do not even contain alloca or
2345  # contain a buggy version.  If you still want to use their alloca,
2346  # use ar to extract alloca.o from them instead of compiling alloca.c.
2347  ALLOCA=alloca.${ac_objext}
2348  cat >> confdefs.h <<\EOF
2349#define C_ALLOCA 1
2350EOF
2351
2352
2353echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2354echo "configure:2355: checking whether alloca needs Cray hooks" >&5
2355if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2356  echo $ac_n "(cached) $ac_c" 1>&6
2357else
2358  cat > conftest.$ac_ext <<EOF
2359#line 2360 "configure"
2360#include "confdefs.h"
2361#if defined(CRAY) && ! defined(CRAY2)
2362webecray
2363#else
2364wenotbecray
2365#endif
2366
2367EOF
2368if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2369  egrep "webecray" >/dev/null 2>&1; then
2370  rm -rf conftest*
2371  ac_cv_os_cray=yes
2372else
2373  rm -rf conftest*
2374  ac_cv_os_cray=no
2375fi
2376rm -f conftest*
2377
2378fi
2379
2380echo "$ac_t""$ac_cv_os_cray" 1>&6
2381if test $ac_cv_os_cray = yes; then
2382for ac_func in _getb67 GETB67 getb67; do
2383  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2384echo "configure:2385: checking for $ac_func" >&5
2385if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2386  echo $ac_n "(cached) $ac_c" 1>&6
2387else
2388  cat > conftest.$ac_ext <<EOF
2389#line 2390 "configure"
2390#include "confdefs.h"
2391/* System header to define __stub macros and hopefully few prototypes,
2392    which can conflict with char $ac_func(); below.  */
2393#include <assert.h>
2394/* Override any gcc2 internal prototype to avoid an error.  */
2395/* We use char because int might match the return type of a gcc2
2396    builtin and then its argument prototype would still apply.  */
2397char $ac_func();
2398
2399int main() {
2400
2401/* The GNU C library defines this for functions which it implements
2402    to always fail with ENOSYS.  Some functions are actually named
2403    something starting with __ and the normal name is an alias.  */
2404#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2405choke me
2406#else
2407$ac_func();
2408#endif
2409
2410; return 0; }
2411EOF
2412if { (eval echo configure:2413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2413  rm -rf conftest*
2414  eval "ac_cv_func_$ac_func=yes"
2415else
2416  echo "configure: failed program was:" >&5
2417  cat conftest.$ac_ext >&5
2418  rm -rf conftest*
2419  eval "ac_cv_func_$ac_func=no"
2420fi
2421rm -f conftest*
2422fi
2423
2424if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2425  echo "$ac_t""yes" 1>&6
2426  cat >> confdefs.h <<EOF
2427#define CRAY_STACKSEG_END $ac_func
2428EOF
2429
2430  break
2431else
2432  echo "$ac_t""no" 1>&6
2433fi
2434
2435done
2436fi
2437
2438echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2439echo "configure:2440: checking stack direction for C alloca" >&5
2440if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2441  echo $ac_n "(cached) $ac_c" 1>&6
2442else
2443  if test "$cross_compiling" = yes; then
2444  ac_cv_c_stack_direction=0
2445else
2446  cat > conftest.$ac_ext <<EOF
2447#line 2448 "configure"
2448#include "confdefs.h"
2449find_stack_direction ()
2450{
2451  static char *addr = 0;
2452  auto char dummy;
2453  if (addr == 0)
2454    {
2455      addr = &dummy;
2456      return find_stack_direction ();
2457    }
2458  else
2459    return (&dummy > addr) ? 1 : -1;
2460}
2461main ()
2462{
2463  exit (find_stack_direction() < 0);
2464}
2465EOF
2466if { (eval echo configure:2467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2467then
2468  ac_cv_c_stack_direction=1
2469else
2470  echo "configure: failed program was:" >&5
2471  cat conftest.$ac_ext >&5
2472  rm -fr conftest*
2473  ac_cv_c_stack_direction=-1
2474fi
2475rm -fr conftest*
2476fi
2477
2478fi
2479
2480echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2481cat >> confdefs.h <<EOF
2482#define STACK_DIRECTION $ac_cv_c_stack_direction
2483EOF
2484
2485fi
2486
2487for ac_hdr in unistd.h
2488do
2489ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2490echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2491echo "configure:2492: checking for $ac_hdr" >&5
2492if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2493  echo $ac_n "(cached) $ac_c" 1>&6
2494else
2495  cat > conftest.$ac_ext <<EOF
2496#line 2497 "configure"
2497#include "confdefs.h"
2498#include <$ac_hdr>
2499EOF
2500ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2501{ (eval echo configure:2502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2502ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2503if test -z "$ac_err"; then
2504  rm -rf conftest*
2505  eval "ac_cv_header_$ac_safe=yes"
2506else
2507  echo "$ac_err" >&5
2508  echo "configure: failed program was:" >&5
2509  cat conftest.$ac_ext >&5
2510  rm -rf conftest*
2511  eval "ac_cv_header_$ac_safe=no"
2512fi
2513rm -f conftest*
2514fi
2515if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2516  echo "$ac_t""yes" 1>&6
2517    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2518  cat >> confdefs.h <<EOF
2519#define $ac_tr_hdr 1
2520EOF
2521 
2522else
2523  echo "$ac_t""no" 1>&6
2524fi
2525done
2526
2527for ac_func in getpagesize
2528do
2529echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2530echo "configure:2531: checking for $ac_func" >&5
2531if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2532  echo $ac_n "(cached) $ac_c" 1>&6
2533else
2534  cat > conftest.$ac_ext <<EOF
2535#line 2536 "configure"
2536#include "confdefs.h"
2537/* System header to define __stub macros and hopefully few prototypes,
2538    which can conflict with char $ac_func(); below.  */
2539#include <assert.h>
2540/* Override any gcc2 internal prototype to avoid an error.  */
2541/* We use char because int might match the return type of a gcc2
2542    builtin and then its argument prototype would still apply.  */
2543char $ac_func();
2544
2545int main() {
2546
2547/* The GNU C library defines this for functions which it implements
2548    to always fail with ENOSYS.  Some functions are actually named
2549    something starting with __ and the normal name is an alias.  */
2550#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2551choke me
2552#else
2553$ac_func();
2554#endif
2555
2556; return 0; }
2557EOF
2558if { (eval echo configure:2559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2559  rm -rf conftest*
2560  eval "ac_cv_func_$ac_func=yes"
2561else
2562  echo "configure: failed program was:" >&5
2563  cat conftest.$ac_ext >&5
2564  rm -rf conftest*
2565  eval "ac_cv_func_$ac_func=no"
2566fi
2567rm -f conftest*
2568fi
2569
2570if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2571  echo "$ac_t""yes" 1>&6
2572    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2573  cat >> confdefs.h <<EOF
2574#define $ac_tr_func 1
2575EOF
2576 
2577else
2578  echo "$ac_t""no" 1>&6
2579fi
2580done
2581
2582echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2583echo "configure:2584: checking for working mmap" >&5
2584if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2585  echo $ac_n "(cached) $ac_c" 1>&6
2586else
2587  if test "$cross_compiling" = yes; then
2588  ac_cv_func_mmap_fixed_mapped=no
2589else
2590  cat > conftest.$ac_ext <<EOF
2591#line 2592 "configure"
2592#include "confdefs.h"
2593
2594/* Thanks to Mike Haertel and Jim Avera for this test.
2595   Here is a matrix of mmap possibilities:
2596	mmap private not fixed
2597	mmap private fixed at somewhere currently unmapped
2598	mmap private fixed at somewhere already mapped
2599	mmap shared not fixed
2600	mmap shared fixed at somewhere currently unmapped
2601	mmap shared fixed at somewhere already mapped
2602   For private mappings, we should verify that changes cannot be read()
2603   back from the file, nor mmap's back from the file at a different
2604   address.  (There have been systems where private was not correctly
2605   implemented like the infamous i386 svr4.0, and systems where the
2606   VM page cache was not coherent with the filesystem buffer cache
2607   like early versions of FreeBSD and possibly contemporary NetBSD.)
2608   For shared mappings, we should conversely verify that changes get
2609   propogated back to all the places they're supposed to be.
2610
2611   Grep wants private fixed already mapped.
2612   The main things grep needs to know about mmap are:
2613   * does it exist and is it safe to write into the mmap'd area
2614   * how to use it (BSD variants)  */
2615#include <sys/types.h>
2616#include <fcntl.h>
2617#include <sys/mman.h>
2618
2619/* This mess was copied from the GNU getpagesize.h.  */
2620#ifndef HAVE_GETPAGESIZE
2621# ifdef HAVE_UNISTD_H
2622#  include <unistd.h>
2623# endif
2624
2625/* Assume that all systems that can run configure have sys/param.h.  */
2626# ifndef HAVE_SYS_PARAM_H
2627#  define HAVE_SYS_PARAM_H 1
2628# endif
2629
2630# ifdef _SC_PAGESIZE
2631#  define getpagesize() sysconf(_SC_PAGESIZE)
2632# else /* no _SC_PAGESIZE */
2633#  ifdef HAVE_SYS_PARAM_H
2634#   include <sys/param.h>
2635#   ifdef EXEC_PAGESIZE
2636#    define getpagesize() EXEC_PAGESIZE
2637#   else /* no EXEC_PAGESIZE */
2638#    ifdef NBPG
2639#     define getpagesize() NBPG * CLSIZE
2640#     ifndef CLSIZE
2641#      define CLSIZE 1
2642#     endif /* no CLSIZE */
2643#    else /* no NBPG */
2644#     ifdef NBPC
2645#      define getpagesize() NBPC
2646#     else /* no NBPC */
2647#      ifdef PAGESIZE
2648#       define getpagesize() PAGESIZE
2649#      endif /* PAGESIZE */
2650#     endif /* no NBPC */
2651#    endif /* no NBPG */
2652#   endif /* no EXEC_PAGESIZE */
2653#  else /* no HAVE_SYS_PARAM_H */
2654#   define getpagesize() 8192	/* punt totally */
2655#  endif /* no HAVE_SYS_PARAM_H */
2656# endif /* no _SC_PAGESIZE */
2657
2658#endif /* no HAVE_GETPAGESIZE */
2659
2660#ifdef __cplusplus
2661extern "C" { void *malloc(unsigned); }
2662#else
2663char *malloc();
2664#endif
2665
2666int
2667main()
2668{
2669	char *data, *data2, *data3;
2670	int i, pagesize;
2671	int fd;
2672
2673	pagesize = getpagesize();
2674
2675	/*
2676	 * First, make a file with some known garbage in it.
2677	 */
2678	data = malloc(pagesize);
2679	if (!data)
2680		exit(1);
2681	for (i = 0; i < pagesize; ++i)
2682		*(data + i) = rand();
2683	umask(0);
2684	fd = creat("conftestmmap", 0600);
2685	if (fd < 0)
2686		exit(1);
2687	if (write(fd, data, pagesize) != pagesize)
2688		exit(1);
2689	close(fd);
2690
2691	/*
2692	 * Next, try to mmap the file at a fixed address which
2693	 * already has something else allocated at it.  If we can,
2694	 * also make sure that we see the same garbage.
2695	 */
2696	fd = open("conftestmmap", O_RDWR);
2697	if (fd < 0)
2698		exit(1);
2699	data2 = malloc(2 * pagesize);
2700	if (!data2)
2701		exit(1);
2702	data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2703	if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2704	    MAP_PRIVATE | MAP_FIXED, fd, 0L))
2705		exit(1);
2706	for (i = 0; i < pagesize; ++i)
2707		if (*(data + i) != *(data2 + i))
2708			exit(1);
2709
2710	/*
2711	 * Finally, make sure that changes to the mapped area
2712	 * do not percolate back to the file as seen by read().
2713	 * (This is a bug on some variants of i386 svr4.0.)
2714	 */
2715	for (i = 0; i < pagesize; ++i)
2716		*(data2 + i) = *(data2 + i) + 1;
2717	data3 = malloc(pagesize);
2718	if (!data3)
2719		exit(1);
2720	if (read(fd, data3, pagesize) != pagesize)
2721		exit(1);
2722	for (i = 0; i < pagesize; ++i)
2723		if (*(data + i) != *(data3 + i))
2724			exit(1);
2725	close(fd);
2726	unlink("conftestmmap");
2727	exit(0);
2728}
2729
2730EOF
2731if { (eval echo configure:2732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2732then
2733  ac_cv_func_mmap_fixed_mapped=yes
2734else
2735  echo "configure: failed program was:" >&5
2736  cat conftest.$ac_ext >&5
2737  rm -fr conftest*
2738  ac_cv_func_mmap_fixed_mapped=no
2739fi
2740rm -fr conftest*
2741fi
2742
2743fi
2744
2745echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2746if test $ac_cv_func_mmap_fixed_mapped = yes; then
2747  cat >> confdefs.h <<\EOF
2748#define HAVE_MMAP 1
2749EOF
2750
2751fi
2752
2753
2754    echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2755echo "configure:2756: checking whether we are using the GNU C Library 2.1 or newer" >&5
2756if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2757  echo $ac_n "(cached) $ac_c" 1>&6
2758else
2759  cat > conftest.$ac_ext <<EOF
2760#line 2761 "configure"
2761#include "confdefs.h"
2762
2763#include <features.h>
2764#ifdef __GNU_LIBRARY__
2765 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2766  Lucky GNU user
2767 #endif
2768#endif
2769	
2770EOF
2771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2772  egrep "Lucky GNU user" >/dev/null 2>&1; then
2773  rm -rf conftest*
2774  ac_cv_gnu_library_2_1=yes
2775else
2776  rm -rf conftest*
2777  ac_cv_gnu_library_2_1=no
2778fi
2779rm -f conftest*
2780
2781      
2782    
2783fi
2784
2785echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2786    
2787    GLIBC21="$ac_cv_gnu_library_2_1"
2788  
2789
2790
2791    
2792  echo $ac_n "checking whether integer division by zero raises SIGFPE""... $ac_c" 1>&6
2793echo "configure:2794: checking whether integer division by zero raises SIGFPE" >&5
2794if eval "test \"`echo '$''{'gt_cv_int_divbyzero_sigfpe'+set}'`\" = set"; then
2795  echo $ac_n "(cached) $ac_c" 1>&6
2796else
2797  
2798      if test "$cross_compiling" = yes; then
2799  
2800          # Guess based on the CPU.
2801          case "$host_cpu" in
2802            alpha* | i3456786 | m68k | s390*)
2803              gt_cv_int_divbyzero_sigfpe="guessing yes";;
2804            *)
2805              gt_cv_int_divbyzero_sigfpe="guessing no";;
2806          esac
2807        
2808else
2809  cat > conftest.$ac_ext <<EOF
2810#line 2811 "configure"
2811#include "confdefs.h"
2812
2813#include <stdlib.h>
2814#include <signal.h>
2815
2816static void
2817#ifdef __cplusplus
2818sigfpe_handler (int sig)
2819#else
2820sigfpe_handler (sig) int sig;
2821#endif
2822{
2823  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
2824  exit (sig != SIGFPE);
2825}
2826
2827int x = 1;
2828int y = 0;
2829int z;
2830int nan;
2831
2832int main ()
2833{
2834  signal (SIGFPE, sigfpe_handler);
2835/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
2836#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
2837  signal (SIGTRAP, sigfpe_handler);
2838#endif
2839/* Linux/SPARC yields signal SIGILL.  */
2840#if defined (__sparc__) && defined (__linux__)
2841  signal (SIGILL, sigfpe_handler);
2842#endif
2843
2844  z = x / y;
2845  nan = y / y;
2846  exit (1);
2847}
2848
2849EOF
2850if { (eval echo configure:2851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2851then
2852  gt_cv_int_divbyzero_sigfpe=yes
2853else
2854  echo "configure: failed program was:" >&5
2855  cat conftest.$ac_ext >&5
2856  rm -fr conftest*
2857  gt_cv_int_divbyzero_sigfpe=no
2858fi
2859rm -fr conftest*
2860fi
2861
2862    
2863fi
2864
2865echo "$ac_t""$gt_cv_int_divbyzero_sigfpe" 1>&6
2866  case "$gt_cv_int_divbyzero_sigfpe" in
2867    *yes) value=1;;
2868    *) value=0;;
2869  esac
2870  cat >> confdefs.h <<EOF
2871#define INTDIV0_RAISES_SIGFPE $value
2872EOF
2873
2874
2875
2876  
2877  
2878  if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
2879    
2880    test $ac_cv_type_unsigned_long_long = yes \
2881      && ac_type='unsigned long long' \
2882      || ac_type='unsigned long'
2883    cat >> confdefs.h <<EOF
2884#define uintmax_t $ac_type
2885EOF
2886
2887  fi
2888
2889
2890  echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2891echo "configure:2892: checking for inttypes.h" >&5
2892if eval "test \"`echo '$''{'gt_cv_header_inttypes_h'+set}'`\" = set"; then
2893  echo $ac_n "(cached) $ac_c" 1>&6
2894else
2895  
2896    cat > conftest.$ac_ext <<EOF
2897#line 2898 "configure"
2898#include "confdefs.h"
2899#include <sys/types.h>
2900#include <inttypes.h>
2901int main() {
2902
2903; return 0; }
2904EOF
2905if { (eval echo configure:2906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2906  rm -rf conftest*
2907  gt_cv_header_inttypes_h=yes
2908else
2909  echo "configure: failed program was:" >&5
2910  cat conftest.$ac_ext >&5
2911  rm -rf conftest*
2912  gt_cv_header_inttypes_h=no
2913fi
2914rm -f conftest*
2915  
2916fi
2917
2918echo "$ac_t""$gt_cv_header_inttypes_h" 1>&6
2919  if test $gt_cv_header_inttypes_h = yes; then
2920    cat >> confdefs.h <<EOF
2921#define HAVE_INTTYPES_H 1
2922EOF
2923
2924  fi
2925
2926
2927  
2928  if test $gt_cv_header_inttypes_h = yes; then
2929    echo $ac_n "checking whether the inttypes.h PRIxNN macros are broken""... $ac_c" 1>&6
2930echo "configure:2931: checking whether the inttypes.h PRIxNN macros are broken" >&5
2931if eval "test \"`echo '$''{'gt_cv_inttypes_pri_broken'+set}'`\" = set"; then
2932  echo $ac_n "(cached) $ac_c" 1>&6
2933else
2934  
2935        cat > conftest.$ac_ext <<EOF
2936#line 2937 "configure"
2937#include "confdefs.h"
2938#include <inttypes.h>
2939#ifdef PRId32
2940char *p = PRId32;
2941#endif
2942
2943int main() {
2944
2945; return 0; }
2946EOF
2947if { (eval echo configure:2948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2948  rm -rf conftest*
2949  gt_cv_inttypes_pri_broken=no
2950else
2951  echo "configure: failed program was:" >&5
2952  cat conftest.$ac_ext >&5
2953  rm -rf conftest*
2954  gt_cv_inttypes_pri_broken=yes
2955fi
2956rm -f conftest*
2957      
2958fi
2959
2960echo "$ac_t""$gt_cv_inttypes_pri_broken" 1>&6
2961  fi
2962  if test "$gt_cv_inttypes_pri_broken" = yes; then
2963    cat >> confdefs.h <<EOF
2964#define PRI_MACROS_BROKEN 1
2965EOF
2966
2967  fi
2968
2969
2970    
2971  
2972
2973      
2974  
2975    use_additional=yes
2976  
2977  acl_save_prefix="$prefix"
2978  prefix="$acl_final_prefix"
2979  acl_save_exec_prefix="$exec_prefix"
2980  exec_prefix="$acl_final_exec_prefix"
2981  
2982    eval additional_includedir=\"$includedir\"
2983    eval additional_libdir=\"$libdir\"
2984  
2985  exec_prefix="$acl_save_exec_prefix"
2986  prefix="$acl_save_prefix"
2987
2988  # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2989if test "${with_libiconv_prefix+set}" = set; then
2990  withval="$with_libiconv_prefix"
2991  
2992    if test "X$withval" = "Xno"; then
2993      use_additional=no
2994    else
2995      if test "X$withval" = "X"; then
2996        
2997  acl_save_prefix="$prefix"
2998  prefix="$acl_final_prefix"
2999  acl_save_exec_prefix="$exec_prefix"
3000  exec_prefix="$acl_final_exec_prefix"
3001  
3002          eval additional_includedir=\"$includedir\"
3003          eval additional_libdir=\"$libdir\"
3004        
3005  exec_prefix="$acl_save_exec_prefix"
3006  prefix="$acl_save_prefix"
3007
3008      else
3009        additional_includedir="$withval/include"
3010        additional_libdir="$withval/lib"
3011      fi
3012    fi
3013
3014fi
3015
3016      LIBICONV=
3017  LTLIBICONV=
3018  INCICONV=
3019  rpathdirs=
3020  ltrpathdirs=
3021  names_already_handled=
3022  names_next_round='iconv '
3023  while test -n "$names_next_round"; do
3024    names_this_round="$names_next_round"
3025    names_next_round=
3026    for name in $names_this_round; do
3027      already_handled=
3028      for n in $names_already_handled; do
3029        if test "$n" = "$name"; then
3030          already_handled=yes
3031          break
3032        fi
3033      done
3034      if test -z "$already_handled"; then
3035        names_already_handled="$names_already_handled $name"
3036                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
3037        eval value=\"\$HAVE_LIB$uppername\"
3038        if test -n "$value"; then
3039          if test "$value" = yes; then
3040            eval value=\"\$LIB$uppername\"
3041            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
3042            eval value=\"\$LTLIB$uppername\"
3043            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
3044          else
3045                                    :
3046          fi
3047        else
3048                              found_dir=
3049          found_la=
3050          found_so=
3051          found_a=
3052          if test $use_additional = yes; then
3053            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
3054              found_dir="$additional_libdir"
3055              found_so="$additional_libdir/lib$name.$shlibext"
3056              if test -f "$additional_libdir/lib$name.la"; then
3057                found_la="$additional_libdir/lib$name.la"
3058              fi
3059            else
3060              if test -f "$additional_libdir/lib$name.$libext"; then
3061                found_dir="$additional_libdir"
3062                found_a="$additional_libdir/lib$name.$libext"
3063                if test -f "$additional_libdir/lib$name.la"; then
3064                  found_la="$additional_libdir/lib$name.la"
3065                fi
3066              fi
3067            fi
3068          fi
3069          if test "X$found_dir" = "X"; then
3070            for x in $LDFLAGS $LTLIBICONV; do
3071              
3072  acl_save_prefix="$prefix"
3073  prefix="$acl_final_prefix"
3074  acl_save_exec_prefix="$exec_prefix"
3075  exec_prefix="$acl_final_exec_prefix"
3076  eval x=\"$x\"
3077  exec_prefix="$acl_save_exec_prefix"
3078  prefix="$acl_save_prefix"
3079
3080              case "$x" in
3081                -L*)
3082                  dir=`echo "X$x" | sed -e 's/^X-L//'`
3083                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
3084                    found_dir="$dir"
3085                    found_so="$dir/lib$name.$shlibext"
3086                    if test -f "$dir/lib$name.la"; then
3087                      found_la="$dir/lib$name.la"
3088                    fi
3089                  else
3090                    if test -f "$dir/lib$name.$libext"; then
3091                      found_dir="$dir"
3092                      found_a="$dir/lib$name.$libext"
3093                      if test -f "$dir/lib$name.la"; then
3094                        found_la="$dir/lib$name.la"
3095                      fi
3096                    fi
3097                  fi
3098                  ;;
3099              esac
3100              if test "X$found_dir" != "X"; then
3101                break
3102              fi
3103            done
3104          fi
3105          if test "X$found_dir" != "X"; then
3106                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
3107            if test "X$found_so" != "X"; then
3108                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
3109                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3110              else
3111                                                                                haveit=
3112                for x in $ltrpathdirs; do
3113                  if test "X$x" = "X$found_dir"; then
3114                    haveit=yes
3115                    break
3116                  fi
3117                done
3118                if test -z "$haveit"; then
3119                  ltrpathdirs="$ltrpathdirs $found_dir"
3120                fi
3121                                if test "$hardcode_direct" = yes; then
3122                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3123                else
3124                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
3125                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3126                                                            haveit=
3127                    for x in $rpathdirs; do
3128                      if test "X$x" = "X$found_dir"; then
3129                        haveit=yes
3130                        break
3131                      fi
3132                    done
3133                    if test -z "$haveit"; then
3134                      rpathdirs="$rpathdirs $found_dir"
3135                    fi
3136                  else
3137                                                                                haveit=
3138                    for x in $LDFLAGS $LIBICONV; do
3139                      
3140  acl_save_prefix="$prefix"
3141  prefix="$acl_final_prefix"
3142  acl_save_exec_prefix="$exec_prefix"
3143  exec_prefix="$acl_final_exec_prefix"
3144  eval x=\"$x\"
3145  exec_prefix="$acl_save_exec_prefix"
3146  prefix="$acl_save_prefix"
3147
3148                      if test "X$x" = "X-L$found_dir"; then
3149                        haveit=yes
3150                        break
3151                      fi
3152                    done
3153                    if test -z "$haveit"; then
3154                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
3155                    fi
3156                    if test "$hardcode_minus_L" != no; then
3157                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3158                    else
3159                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
3160                    fi
3161                  fi
3162                fi
3163              fi
3164            else
3165              if test "X$found_a" != "X"; then
3166                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
3167              else
3168                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
3169              fi
3170            fi
3171                        additional_includedir=
3172            case "$found_dir" in
3173              */lib | */lib/)
3174                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
3175                additional_includedir="$basedir/include"
3176                ;;
3177            esac
3178            if test "X$additional_includedir" != "X"; then
3179                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
3180                haveit=
3181                if test "X$additional_includedir" = "X/usr/local/include"; then
3182                  if test -n "$GCC"; then
3183                    case $host_os in
3184                      linux*) haveit=yes;;
3185                    esac
3186                  fi
3187                fi
3188                if test -z "$haveit"; then
3189                  for x in $CPPFLAGS $INCICONV; do
3190                    
3191  acl_save_prefix="$prefix"
3192  prefix="$acl_final_prefix"
3193  acl_save_exec_prefix="$exec_prefix"
3194  exec_prefix="$acl_final_exec_prefix"
3195  eval x=\"$x\"
3196  exec_prefix="$acl_save_exec_prefix"
3197  prefix="$acl_save_prefix"
3198
3199                    if test "X$x" = "X-I$additional_includedir"; then
3200                      haveit=yes
3201                      break
3202                    fi
3203                  done
3204                  if test -z "$haveit"; then
3205                    if test -d "$additional_includedir"; then
3206                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
3207                    fi
3208                  fi
3209                fi
3210              fi
3211            fi
3212                        if test -n "$found_la"; then
3213                                                        save_libdir="$libdir"
3214              case "$found_la" in
3215                */* | *\\*) . "$found_la" ;;
3216                *) . "./$found_la" ;;
3217              esac
3218              libdir="$save_libdir"
3219                            for dep in $dependency_libs; do
3220                case "$dep" in
3221                  -L*)
3222                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
3223                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
3224                      haveit=
3225                      if test "X$additional_libdir" = "X/usr/local/lib"; then
3226                        if test -n "$GCC"; then
3227                          case $host_os in
3228                            linux*) haveit=yes;;
3229                          esac
3230                        fi
3231                      fi
3232                      if test -z "$haveit"; then
3233                        haveit=
3234                        for x in $LDFLAGS $LIBICONV; do
3235                          
3236  acl_save_prefix="$prefix"
3237  prefix="$acl_final_prefix"
3238  acl_save_exec_prefix="$exec_prefix"
3239  exec_prefix="$acl_final_exec_prefix"
3240  eval x=\"$x\"
3241  exec_prefix="$acl_save_exec_prefix"
3242  prefix="$acl_save_prefix"
3243
3244                          if test "X$x" = "X-L$additional_libdir"; then
3245                            haveit=yes
3246                            break
3247                          fi
3248                        done
3249                        if test -z "$haveit"; then
3250                          if test -d "$additional_libdir"; then
3251                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
3252                          fi
3253                        fi
3254                        haveit=
3255                        for x in $LDFLAGS $LTLIBICONV; do
3256                          
3257  acl_save_prefix="$prefix"
3258  prefix="$acl_final_prefix"
3259  acl_save_exec_prefix="$exec_prefix"
3260  exec_prefix="$acl_final_exec_prefix"
3261  eval x=\"$x\"
3262  exec_prefix="$acl_save_exec_prefix"
3263  prefix="$acl_save_prefix"
3264
3265                          if test "X$x" = "X-L$additional_libdir"; then
3266                            haveit=yes
3267                            break
3268                          fi
3269                        done
3270                        if test -z "$haveit"; then
3271                          if test -d "$additional_libdir"; then
3272                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
3273                          fi
3274                        fi
3275                      fi
3276                    fi
3277                    ;;
3278                  -R*)
3279                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
3280                    if test "$enable_rpath" != no; then
3281                                                                  haveit=
3282                      for x in $rpathdirs; do
3283                        if test "X$x" = "X$dir"; then
3284                          haveit=yes
3285                          break
3286                        fi
3287                      done
3288                      if test -z "$haveit"; then
3289                        rpathdirs="$rpathdirs $dir"
3290                      fi
3291                                                                  haveit=
3292                      for x in $ltrpathdirs; do
3293                        if test "X$x" = "X$dir"; then
3294                          haveit=yes
3295                          break
3296                        fi
3297                      done
3298                      if test -z "$haveit"; then
3299                        ltrpathdirs="$ltrpathdirs $dir"
3300                      fi
3301                    fi
3302                    ;;
3303                  -l*)
3304                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
3305                    ;;
3306                  *.la)
3307                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
3308                    ;;
3309                  *)
3310                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
3311                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
3312                    ;;
3313                esac
3314              done
3315            fi
3316          else
3317                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
3318            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
3319          fi
3320        fi
3321      fi
3322    done
3323  done
3324  if test "X$rpathdirs" != "X"; then
3325    if test -n "$hardcode_libdir_separator"; then
3326                        alldirs=
3327      for found_dir in $rpathdirs; do
3328        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
3329      done
3330            acl_save_libdir="$libdir"
3331      libdir="$alldirs"
3332      eval flag=\"$hardcode_libdir_flag_spec\"
3333      libdir="$acl_save_libdir"
3334      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
3335    else
3336            for found_dir in $rpathdirs; do
3337        acl_save_libdir="$libdir"
3338        libdir="$found_dir"
3339        eval flag=\"$hardcode_libdir_flag_spec\"
3340        libdir="$acl_save_libdir"
3341        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
3342      done
3343    fi
3344  fi
3345  if test "X$ltrpathdirs" != "X"; then
3346            for found_dir in $ltrpathdirs; do
3347      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
3348    done
3349  fi
3350
3351
3352
3353      
3354    
3355        # Extract the first word of "msgfmt", so it can be a program name with args.
3356set dummy msgfmt; ac_word=$2
3357echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3358echo "configure:3359: checking for $ac_word" >&5
3359if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3360  echo $ac_n "(cached) $ac_c" 1>&6
3361else
3362  case "$MSGFMT" in
3363  /*)
3364  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3365  ;;
3366  *)
3367  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3368  for ac_dir in $PATH; do
3369    test -z "$ac_dir" && ac_dir=.
3370    if test -f $ac_dir/$ac_word; then
3371      if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3372     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3373	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3374	break
3375      fi
3376    fi
3377  done
3378  IFS="$ac_save_ifs"
3379  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3380  ;;
3381esac
3382fi
3383MSGFMT="$ac_cv_path_MSGFMT"
3384if test "$MSGFMT" != ":"; then
3385  echo "$ac_t""$MSGFMT" 1>&6
3386else
3387  echo "$ac_t""no" 1>&6
3388fi
3389
3390  # Extract the first word of "gmsgfmt", so it can be a program name with args.
3391set dummy gmsgfmt; ac_word=$2
3392echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3393echo "configure:3394: checking for $ac_word" >&5
3394if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3395  echo $ac_n "(cached) $ac_c" 1>&6
3396else
3397  case "$GMSGFMT" in
3398  /*)
3399  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3400  ;;
3401  ?:/*)			 
3402  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3403  ;;
3404  *)
3405  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
3406  ac_dummy="$PATH"
3407  for ac_dir in $ac_dummy; do 
3408    test -z "$ac_dir" && ac_dir=.
3409    if test -f $ac_dir/$ac_word; then
3410      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3411      break
3412    fi
3413  done
3414  IFS="$ac_save_ifs"
3415  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3416  ;;
3417esac
3418fi
3419GMSGFMT="$ac_cv_path_GMSGFMT"
3420if test -n "$GMSGFMT"; then
3421  echo "$ac_t""$GMSGFMT" 1>&6
3422else
3423  echo "$ac_t""no" 1>&6
3424fi
3425
3426
3427        # Extract the first word of "xgettext", so it can be a program name with args.
3428set dummy xgettext; ac_word=$2
3429echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3430echo "configure:3431: checking for $ac_word" >&5
3431if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3432  echo $ac_n "(cached) $ac_c" 1>&6
3433else
3434  case "$XGETTEXT" in
3435  /*)
3436  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3437  ;;
3438  *)
3439  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3440  for ac_dir in $PATH; do
3441    test -z "$ac_dir" && ac_dir=.
3442    if test -f $ac_dir/$ac_word; then
3443      if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
3444     (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
3445	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3446	break
3447      fi
3448    fi
3449  done
3450  IFS="$ac_save_ifs"
3451  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3452  ;;
3453esac
3454fi
3455XGETTEXT="$ac_cv_path_XGETTEXT"
3456if test "$XGETTEXT" != ":"; then
3457  echo "$ac_t""$XGETTEXT" 1>&6
3458else
3459  echo "$ac_t""no" 1>&6
3460fi
3461
3462    rm -f messages.po
3463
3464    # Extract the first word of "msgmerge", so it can be a program name with args.
3465set dummy msgmerge; ac_word=$2
3466echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3467echo "configure:3468: checking for $ac_word" >&5
3468if eval "test \"`echo '$''{'ac_cv_path_MSGMERGE'+set}'`\" = set"; then
3469  echo $ac_n "(cached) $ac_c" 1>&6
3470else
3471  case "$MSGMERGE" in
3472  /*)
3473  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3474  ;;
3475  *)
3476  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3477  for ac_dir in $PATH; do
3478    test -z "$ac_dir" && ac_dir=.
3479    if test -f $ac_dir/$ac_word; then
3480      if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3481	ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
3482	break
3483      fi
3484    fi
3485  done
3486  IFS="$ac_save_ifs"
3487  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3488  ;;
3489esac
3490fi
3491MSGMERGE="$ac_cv_path_MSGMERGE"
3492if test "$MSGMERGE" != ":"; then
3493  echo "$ac_t""$MSGMERGE" 1>&6
3494else
3495  echo "$ac_t""no" 1>&6
3496fi
3497
3498
3499      if test "$GMSGFMT" != ":"; then
3500            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3501       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3502      : ;
3503    else
3504      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3505      echo "$ac_t""found $GMSGFMT program is not GNU msgfmt; ignore it" 1>&6
3506      GMSGFMT=":"
3507    fi
3508  fi
3509
3510      if test "$XGETTEXT" != ":"; then
3511            if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
3512       (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3513      : ;
3514    else
3515      echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3516      XGETTEXT=":"
3517    fi
3518        rm -f messages.po
3519  fi
3520
3521  
3522
3523
3524                                    
3525  for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
3526stdlib.h string.h unistd.h sys/param.h
3527do
3528ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3529echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3530echo "configure:3531: checking for $ac_hdr" >&5
3531if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3532  echo $ac_n "(cached) $ac_c" 1>&6
3533else
3534  cat > conftest.$ac_ext <<EOF
3535#line 3536 "configure"
3536#include "confdefs.h"
3537#include <$ac_hdr>
3538EOF
3539ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3540{ (eval echo configure:3541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3541ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3542if test -z "$ac_err"; then
3543  rm -rf conftest*
3544  eval "ac_cv_header_$ac_safe=yes"
3545else
3546  echo "$ac_err" >&5
3547  echo "configure: failed program was:" >&5
3548  cat conftest.$ac_ext >&5
3549  rm -rf conftest*
3550  eval "ac_cv_header_$ac_safe=no"
3551fi
3552rm -f conftest*
3553fi
3554if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3555  echo "$ac_t""yes" 1>&6
3556    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3557  cat >> confdefs.h <<EOF
3558#define $ac_tr_hdr 1
3559EOF
3560 
3561else
3562  echo "$ac_t""no" 1>&6
3563fi
3564done
3565
3566  for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
3567geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
3568strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
3569do
3570echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3571echo "configure:3572: checking for $ac_func" >&5
3572if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3573  echo $ac_n "(cached) $ac_c" 1>&6
3574else
3575  cat > conftest.$ac_ext <<EOF
3576#line 3577 "configure"
3577#include "confdefs.h"
3578/* System header to define __stub macros and hopefully few prototypes,
3579    which can conflict with char $ac_func(); below.  */
3580#include <assert.h>
3581/* Override any gcc2 internal prototype to avoid an error.  */
3582/* We use char because int might match the return type of a gcc2
3583    builtin and then its argument prototype would still apply.  */
3584char $ac_func();
3585
3586int main() {
3587
3588/* The GNU C library defines this for functions which it implements
3589    to always fail with ENOSYS.  Some functions are actually named
3590    something starting with __ and the normal name is an alias.  */
3591#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3592choke me
3593#else
3594$ac_func();
3595#endif
3596
3597; return 0; }
3598EOF
3599if { (eval echo configure:3600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3600  rm -rf conftest*
3601  eval "ac_cv_func_$ac_func=yes"
3602else
3603  echo "configure: failed program was:" >&5
3604  cat conftest.$ac_ext >&5
3605  rm -rf conftest*
3606  eval "ac_cv_func_$ac_func=no"
3607fi
3608rm -f conftest*
3609fi
3610
3611if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3612  echo "$ac_t""yes" 1>&6
3613    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3614  cat >> confdefs.h <<EOF
3615#define $ac_tr_func 1
3616EOF
3617 
3618else
3619  echo "$ac_t""no" 1>&6
3620fi
3621done
3622
3623
3624  
3625  
3626    
3627      
3628
3629          am_save_CPPFLAGS="$CPPFLAGS"
3630  
3631  for element in $INCICONV; do
3632    haveit=
3633    for x in $CPPFLAGS; do
3634      
3635  acl_save_prefix="$prefix"
3636  prefix="$acl_final_prefix"
3637  acl_save_exec_prefix="$exec_prefix"
3638  exec_prefix="$acl_final_exec_prefix"
3639  eval x=\"$x\"
3640  exec_prefix="$acl_save_exec_prefix"
3641  prefix="$acl_save_prefix"
3642
3643      if test "X$x" = "X$element"; then
3644        haveit=yes
3645        break
3646      fi
3647    done
3648    if test -z "$haveit"; then
3649      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
3650    fi
3651  done
3652
3653
3654  echo $ac_n "checking for iconv""... $ac_c" 1>&6
3655echo "configure:3656: checking for iconv" >&5
3656if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
3657  echo $ac_n "(cached) $ac_c" 1>&6
3658else
3659  
3660    am_cv_func_iconv="no, consider installing GNU libiconv"
3661    am_cv_lib_iconv=no
3662    cat > conftest.$ac_ext <<EOF
3663#line 3664 "configure"
3664#include "confdefs.h"
3665#include <stdlib.h>
3666#include <iconv.h>
3667int main() {
3668iconv_t cd = iconv_open("","");
3669       iconv(cd,NULL,NULL,NULL,NULL);
3670       iconv_close(cd);
3671; return 0; }
3672EOF
3673if { (eval echo configure:3674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3674  rm -rf conftest*
3675  am_cv_func_iconv=yes
3676else
3677  echo "configure: failed program was:" >&5
3678  cat conftest.$ac_ext >&5
3679fi
3680rm -f conftest*
3681    if test "$am_cv_func_iconv" != yes; then
3682      am_save_LIBS="$LIBS"
3683      LIBS="$LIBS $LIBICONV"
3684      cat > conftest.$ac_ext <<EOF
3685#line 3686 "configure"
3686#include "confdefs.h"
3687#include <stdlib.h>
3688#include <iconv.h>
3689int main() {
3690iconv_t cd = iconv_open("","");
3691         iconv(cd,NULL,NULL,NULL,NULL);
3692         iconv_close(cd);
3693; return 0; }
3694EOF
3695if { (eval echo configure:3696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3696  rm -rf conftest*
3697  am_cv_lib_iconv=yes
3698        am_cv_func_iconv=yes
3699else
3700  echo "configure: failed program was:" >&5
3701  cat conftest.$ac_ext >&5
3702fi
3703rm -f conftest*
3704      LIBS="$am_save_LIBS"
3705    fi
3706  
3707fi
3708
3709echo "$ac_t""$am_cv_func_iconv" 1>&6
3710  if test "$am_cv_func_iconv" = yes; then
3711    cat >> confdefs.h <<\EOF
3712#define HAVE_ICONV 1
3713EOF
3714
3715  fi
3716  if test "$am_cv_lib_iconv" = yes; then
3717    echo $ac_n "checking how to link with libiconv""... $ac_c" 1>&6
3718echo "configure:3719: checking how to link with libiconv" >&5
3719    echo "$ac_t""$LIBICONV" 1>&6
3720  else
3721            CPPFLAGS="$am_save_CPPFLAGS"
3722    LIBICONV=
3723    LTLIBICONV=
3724  fi
3725  
3726  
3727
3728  if test "$am_cv_func_iconv" = yes; then
3729    echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
3730echo "configure:3731: checking for iconv declaration" >&5
3731    if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
3732  echo $ac_n "(cached) $ac_c" 1>&6
3733else
3734  
3735      cat > conftest.$ac_ext <<EOF
3736#line 3737 "configure"
3737#include "confdefs.h"
3738
3739#include <stdlib.h>
3740#include <iconv.h>
3741extern
3742#ifdef __cplusplus
3743"C"
3744#endif
3745#if defined(__STDC__) || defined(__cplusplus)
3746size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
3747#else
3748size_t iconv();
3749#endif
3750
3751int main() {
3752
3753; return 0; }
3754EOF
3755if { (eval echo configure:3756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3756  rm -rf conftest*
3757  am_cv_proto_iconv_arg1=""
3758else
3759  echo "configure: failed program was:" >&5
3760  cat conftest.$ac_ext >&5
3761  rm -rf conftest*
3762  am_cv_proto_iconv_arg1="const"
3763fi
3764rm -f conftest*
3765      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);"
3766fi
3767
3768    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
3769    echo "$ac_t""${ac_t:-
3770         }$am_cv_proto_iconv" 1>&6
3771    cat >> confdefs.h <<EOF
3772#define ICONV_CONST $am_cv_proto_iconv_arg1
3773EOF
3774
3775  fi
3776
3777  
3778  echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
3779echo "configure:3780: checking for nl_langinfo and CODESET" >&5
3780if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
3781  echo $ac_n "(cached) $ac_c" 1>&6
3782else
3783  cat > conftest.$ac_ext <<EOF
3784#line 3785 "configure"
3785#include "confdefs.h"
3786#include <langinfo.h>
3787int main() {
3788char* cs = nl_langinfo(CODESET);
3789; return 0; }
3790EOF
3791if { (eval echo configure:3792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3792  rm -rf conftest*
3793  am_cv_langinfo_codeset=yes
3794else
3795  echo "configure: failed program was:" >&5
3796  cat conftest.$ac_ext >&5
3797  rm -rf conftest*
3798  am_cv_langinfo_codeset=no
3799fi
3800rm -f conftest*
3801    
3802fi
3803
3804echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
3805  if test $am_cv_langinfo_codeset = yes; then
3806    cat >> confdefs.h <<\EOF
3807#define HAVE_LANGINFO_CODESET 1
3808EOF
3809
3810  fi
3811
3812  if test $ac_cv_header_locale_h = yes; then
3813    
3814  echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3815echo "configure:3816: checking for LC_MESSAGES" >&5
3816if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3817  echo $ac_n "(cached) $ac_c" 1>&6
3818else
3819  cat > conftest.$ac_ext <<EOF
3820#line 3821 "configure"
3821#include "confdefs.h"
3822#include <locale.h>
3823int main() {
3824return LC_MESSAGES
3825; return 0; }
3826EOF
3827if { (eval echo configure:3828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3828  rm -rf conftest*
3829  am_cv_val_LC_MESSAGES=yes
3830else
3831  echo "configure: failed program was:" >&5
3832  cat conftest.$ac_ext >&5
3833  rm -rf conftest*
3834  am_cv_val_LC_MESSAGES=no
3835fi
3836rm -f conftest*
3837fi
3838
3839echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3840  if test $am_cv_val_LC_MESSAGES = yes; then
3841    cat >> confdefs.h <<\EOF
3842#define HAVE_LC_MESSAGES 1
3843EOF
3844
3845  fi
3846
3847  fi
3848
3849                      for ac_prog in bison
3850do
3851# Extract the first word of "$ac_prog", so it can be a program name with args.
3852set dummy $ac_prog; ac_word=$2
3853echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3854echo "configure:3855: checking for $ac_word" >&5
3855if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
3856  echo $ac_n "(cached) $ac_c" 1>&6
3857else
3858  if test -n "$INTLBISON"; then
3859  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
3860else
3861  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
3862  ac_dummy="$PATH"
3863  for ac_dir in $ac_dummy; do
3864    test -z "$ac_dir" && ac_dir=.
3865    if test -f $ac_dir/$ac_word; then
3866      ac_cv_prog_INTLBISON="$ac_prog"
3867      break
3868    fi
3869  done
3870  IFS="$ac_save_ifs"
3871fi
3872fi
3873INTLBISON="$ac_cv_prog_INTLBISON"
3874if test -n "$INTLBISON"; then
3875  echo "$ac_t""$INTLBISON" 1>&6
3876else
3877  echo "$ac_t""no" 1>&6
3878fi
3879
3880test -n "$INTLBISON" && break
3881done
3882
3883  if test -z "$INTLBISON"; then
3884    ac_verc_fail=yes
3885  else
3886        echo $ac_n "checking version of bison""... $ac_c" 1>&6
3887echo "configure:3888: checking version of bison" >&5
3888    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3889    case $ac_prog_version in
3890      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3891      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3892         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3893      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3894    esac
3895    echo "$ac_t""$ac_prog_version" 1>&6
3896  fi
3897  if test $ac_verc_fail = yes; then
3898    INTLBISON=:
3899  fi
3900
3901
3902    
3903  
3904  
3905  
3906
3907    
3908      
3909
3910    
3911  
3912
3913                        
3914
3915  echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3916echo "configure:3917: checking whether NLS is requested" >&5
3917    # Check whether --enable-nls or --disable-nls was given.
3918if test "${enable_nls+set}" = set; then
3919  enableval="$enable_nls"
3920  USE_NLS=$enableval
3921else
3922  USE_NLS=yes
3923fi
3924
3925  echo "$ac_t""$USE_NLS" 1>&6
3926  
3927
3928  
3929    BUILD_INCLUDED_LIBINTL=no
3930    USE_INCLUDED_LIBINTL=no
3931  
3932  LIBINTL=
3933  LTLIBINTL=
3934  POSUB=
3935
3936    if test "$USE_NLS" = "yes"; then
3937    gt_use_preinstalled_gnugettext=no
3938    
3939      echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3940echo "configure:3941: checking whether included gettext is requested" >&5
3941      # Check whether --with-included-gettext or --without-included-gettext was given.
3942if test "${with_included_gettext+set}" = set; then
3943  withval="$with_included_gettext"
3944  nls_cv_force_use_gnu_gettext=$withval
3945else
3946  nls_cv_force_use_gnu_gettext=no
3947fi
3948
3949      echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3950
3951      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3952      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3953    
3954                        
3955                
3956        
3957        
3958
3959        echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
3960echo "configure:3961: checking for GNU gettext in libc" >&5
3961if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
3962  echo $ac_n "(cached) $ac_c" 1>&6
3963else
3964  cat > conftest.$ac_ext <<EOF
3965#line 3966 "configure"
3966#include "confdefs.h"
3967#include <libintl.h>
3968extern int _nl_msg_cat_cntr;
3969extern int *_nl_domain_bindings;
3970int main() {
3971bindtextdomain ("", "");
3972return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
3973; return 0; }
3974EOF
3975if { (eval echo configure:3976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3976  rm -rf conftest*
3977  gt_cv_func_gnugettext1_libc=yes
3978else
3979  echo "configure: failed program was:" >&5
3980  cat conftest.$ac_ext >&5
3981  rm -rf conftest*
3982  gt_cv_func_gnugettext1_libc=no
3983fi
3984rm -f conftest*
3985fi
3986
3987echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
3988
3989        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
3990                    
3991                                                  
3992  
3993    use_additional=yes
3994  
3995  acl_save_prefix="$prefix"
3996  prefix="$acl_final_prefix"
3997  acl_save_exec_prefix="$exec_prefix"
3998  exec_prefix="$acl_final_exec_prefix"
3999  
4000    eval additional_includedir=\"$includedir\"
4001    eval additional_libdir=\"$libdir\"
4002  
4003  exec_prefix="$acl_save_exec_prefix"
4004  prefix="$acl_save_prefix"
4005
4006  # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
4007if test "${with_libintl_prefix+set}" = set; then
4008  withval="$with_libintl_prefix"
4009  
4010    if test "X$withval" = "Xno"; then
4011      use_additional=no
4012    else
4013      if test "X$withval" = "X"; then
4014        
4015  acl_save_prefix="$prefix"
4016  prefix="$acl_final_prefix"
4017  acl_save_exec_prefix="$exec_prefix"
4018  exec_prefix="$acl_final_exec_prefix"
4019  
4020          eval additional_includedir=\"$includedir\"
4021          eval additional_libdir=\"$libdir\"
4022        
4023  exec_prefix="$acl_save_exec_prefix"
4024  prefix="$acl_save_prefix"
4025
4026      else
4027        additional_includedir="$withval/include"
4028        additional_libdir="$withval/lib"
4029      fi
4030    fi
4031
4032fi
4033
4034      LIBINTL=
4035  LTLIBINTL=
4036  INCINTL=
4037  rpathdirs=
4038  ltrpathdirs=
4039  names_already_handled=
4040  names_next_round='intl '
4041  while test -n "$names_next_round"; do
4042    names_this_round="$names_next_round"
4043    names_next_round=
4044    for name in $names_this_round; do
4045      already_handled=
4046      for n in $names_already_handled; do
4047        if test "$n" = "$name"; then
4048          already_handled=yes
4049          break
4050        fi
4051      done
4052      if test -z "$already_handled"; then
4053        names_already_handled="$names_already_handled $name"
4054                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4055        eval value=\"\$HAVE_LIB$uppername\"
4056        if test -n "$value"; then
4057          if test "$value" = yes; then
4058            eval value=\"\$LIB$uppername\"
4059            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
4060            eval value=\"\$LTLIB$uppername\"
4061            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
4062          else
4063                                    :
4064          fi
4065        else
4066                              found_dir=
4067          found_la=
4068          found_so=
4069          found_a=
4070          if test $use_additional = yes; then
4071            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4072              found_dir="$additional_libdir"
4073              found_so="$additional_libdir/lib$name.$shlibext"
4074              if test -f "$additional_libdir/lib$name.la"; then
4075                found_la="$additional_libdir/lib$name.la"
4076              fi
4077            else
4078              if test -f "$additional_libdir/lib$name.$libext"; then
4079                found_dir="$additional_libdir"
4080                found_a="$additional_libdir/lib$name.$libext"
4081                if test -f "$additional_libdir/lib$name.la"; then
4082                  found_la="$additional_libdir/lib$name.la"
4083                fi
4084              fi
4085            fi
4086          fi
4087          if test "X$found_dir" = "X"; then
4088            for x in $LDFLAGS $LTLIBINTL; do
4089              
4090  acl_save_prefix="$prefix"
4091  prefix="$acl_final_prefix"
4092  acl_save_exec_prefix="$exec_prefix"
4093  exec_prefix="$acl_final_exec_prefix"
4094  eval x=\"$x\"
4095  exec_prefix="$acl_save_exec_prefix"
4096  prefix="$acl_save_prefix"
4097
4098              case "$x" in
4099                -L*)
4100                  dir=`echo "X$x" | sed -e 's/^X-L//'`
4101                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4102                    found_dir="$dir"
4103                    found_so="$dir/lib$name.$shlibext"
4104                    if test -f "$dir/lib$name.la"; then
4105                      found_la="$dir/lib$name.la"
4106                    fi
4107                  else
4108                    if test -f "$dir/lib$name.$libext"; then
4109                      found_dir="$dir"
4110                      found_a="$dir/lib$name.$libext"
4111                      if test -f "$dir/lib$name.la"; then
4112                        found_la="$dir/lib$name.la"
4113                      fi
4114                    fi
4115                  fi
4116                  ;;
4117              esac
4118              if test "X$found_dir" != "X"; then
4119                break
4120              fi
4121            done
4122          fi
4123          if test "X$found_dir" != "X"; then
4124                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
4125            if test "X$found_so" != "X"; then
4126                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4127                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4128              else
4129                                                                                haveit=
4130                for x in $ltrpathdirs; do
4131                  if test "X$x" = "X$found_dir"; then
4132                    haveit=yes
4133                    break
4134                  fi
4135                done
4136                if test -z "$haveit"; then
4137                  ltrpathdirs="$ltrpathdirs $found_dir"
4138                fi
4139                                if test "$hardcode_direct" = yes; then
4140                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4141                else
4142                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4143                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4144                                                            haveit=
4145                    for x in $rpathdirs; do
4146                      if test "X$x" = "X$found_dir"; then
4147                        haveit=yes
4148                        break
4149                      fi
4150                    done
4151                    if test -z "$haveit"; then
4152                      rpathdirs="$rpathdirs $found_dir"
4153                    fi
4154                  else
4155                                                                                haveit=
4156                    for x in $LDFLAGS $LIBINTL; do
4157                      
4158  acl_save_prefix="$prefix"
4159  prefix="$acl_final_prefix"
4160  acl_save_exec_prefix="$exec_prefix"
4161  exec_prefix="$acl_final_exec_prefix"
4162  eval x=\"$x\"
4163  exec_prefix="$acl_save_exec_prefix"
4164  prefix="$acl_save_prefix"
4165
4166                      if test "X$x" = "X-L$found_dir"; then
4167                        haveit=yes
4168                        break
4169                      fi
4170                    done
4171                    if test -z "$haveit"; then
4172                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
4173                    fi
4174                    if test "$hardcode_minus_L" != no; then
4175                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4176                    else
4177                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4178                    fi
4179                  fi
4180                fi
4181              fi
4182            else
4183              if test "X$found_a" != "X"; then
4184                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
4185              else
4186                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
4187              fi
4188            fi
4189                        additional_includedir=
4190            case "$found_dir" in
4191              */lib | */lib/)
4192                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4193                additional_includedir="$basedir/include"
4194                ;;
4195            esac
4196            if test "X$additional_includedir" != "X"; then
4197                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
4198                haveit=
4199                if test "X$additional_includedir" = "X/usr/local/include"; then
4200                  if test -n "$GCC"; then
4201                    case $host_os in
4202                      linux*) haveit=yes;;
4203                    esac
4204                  fi
4205                fi
4206                if test -z "$haveit"; then
4207                  for x in $CPPFLAGS $INCINTL; do
4208                    
4209  acl_save_prefix="$prefix"
4210  prefix="$acl_final_prefix"
4211  acl_save_exec_prefix="$exec_prefix"
4212  exec_prefix="$acl_final_exec_prefix"
4213  eval x=\"$x\"
4214  exec_prefix="$acl_save_exec_prefix"
4215  prefix="$acl_save_prefix"
4216
4217                    if test "X$x" = "X-I$additional_includedir"; then
4218                      haveit=yes
4219                      break
4220                    fi
4221                  done
4222                  if test -z "$haveit"; then
4223                    if test -d "$additional_includedir"; then
4224                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
4225                    fi
4226                  fi
4227                fi
4228              fi
4229            fi
4230                        if test -n "$found_la"; then
4231                                                        save_libdir="$libdir"
4232              case "$found_la" in
4233                */* | *\\*) . "$found_la" ;;
4234                *) . "./$found_la" ;;
4235              esac
4236              libdir="$save_libdir"
4237                            for dep in $dependency_libs; do
4238                case "$dep" in
4239                  -L*)
4240                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4241                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
4242                      haveit=
4243                      if test "X$additional_libdir" = "X/usr/local/lib"; then
4244                        if test -n "$GCC"; then
4245                          case $host_os in
4246                            linux*) haveit=yes;;
4247                          esac
4248                        fi
4249                      fi
4250                      if test -z "$haveit"; then
4251                        haveit=
4252                        for x in $LDFLAGS $LIBINTL; do
4253                          
4254  acl_save_prefix="$prefix"
4255  prefix="$acl_final_prefix"
4256  acl_save_exec_prefix="$exec_prefix"
4257  exec_prefix="$acl_final_exec_prefix"
4258  eval x=\"$x\"
4259  exec_prefix="$acl_save_exec_prefix"
4260  prefix="$acl_save_prefix"
4261
4262                          if test "X$x" = "X-L$additional_libdir"; then
4263                            haveit=yes
4264                            break
4265                          fi
4266                        done
4267                        if test -z "$haveit"; then
4268                          if test -d "$additional_libdir"; then
4269                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
4270                          fi
4271                        fi
4272                        haveit=
4273                        for x in $LDFLAGS $LTLIBINTL; do
4274                          
4275  acl_save_prefix="$prefix"
4276  prefix="$acl_final_prefix"
4277  acl_save_exec_prefix="$exec_prefix"
4278  exec_prefix="$acl_final_exec_prefix"
4279  eval x=\"$x\"
4280  exec_prefix="$acl_save_exec_prefix"
4281  prefix="$acl_save_prefix"
4282
4283                          if test "X$x" = "X-L$additional_libdir"; then
4284                            haveit=yes
4285                            break
4286                          fi
4287                        done
4288                        if test -z "$haveit"; then
4289                          if test -d "$additional_libdir"; then
4290                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
4291                          fi
4292                        fi
4293                      fi
4294                    fi
4295                    ;;
4296                  -R*)
4297                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
4298                    if test "$enable_rpath" != no; then
4299                                                                  haveit=
4300                      for x in $rpathdirs; do
4301                        if test "X$x" = "X$dir"; then
4302                          haveit=yes
4303                          break
4304                        fi
4305                      done
4306                      if test -z "$haveit"; then
4307                        rpathdirs="$rpathdirs $dir"
4308                      fi
4309                                                                  haveit=
4310                      for x in $ltrpathdirs; do
4311                        if test "X$x" = "X$dir"; then
4312                          haveit=yes
4313                          break
4314                        fi
4315                      done
4316                      if test -z "$haveit"; then
4317                        ltrpathdirs="$ltrpathdirs $dir"
4318                      fi
4319                    fi
4320                    ;;
4321                  -l*)
4322                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4323                    ;;
4324                  *.la)
4325                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4326                    ;;
4327                  *)
4328                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
4329                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
4330                    ;;
4331                esac
4332              done
4333            fi
4334          else
4335                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4336            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
4337          fi
4338        fi
4339      fi
4340    done
4341  done
4342  if test "X$rpathdirs" != "X"; then
4343    if test -n "$hardcode_libdir_separator"; then
4344                        alldirs=
4345      for found_dir in $rpathdirs; do
4346        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4347      done
4348            acl_save_libdir="$libdir"
4349      libdir="$alldirs"
4350      eval flag=\"$hardcode_libdir_flag_spec\"
4351      libdir="$acl_save_libdir"
4352      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4353    else
4354            for found_dir in $rpathdirs; do
4355        acl_save_libdir="$libdir"
4356        libdir="$found_dir"
4357        eval flag=\"$hardcode_libdir_flag_spec\"
4358        libdir="$acl_save_libdir"
4359        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4360      done
4361    fi
4362  fi
4363  if test "X$ltrpathdirs" != "X"; then
4364            for found_dir in $ltrpathdirs; do
4365      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
4366    done
4367  fi
4368
4369          echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
4370echo "configure:4371: checking for GNU gettext in libintl" >&5
4371if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
4372  echo $ac_n "(cached) $ac_c" 1>&6
4373else
4374  gt_save_CPPFLAGS="$CPPFLAGS"
4375            CPPFLAGS="$CPPFLAGS $INCINTL"
4376            gt_save_LIBS="$LIBS"
4377            LIBS="$LIBS $LIBINTL"
4378                        cat > conftest.$ac_ext <<EOF
4379#line 4380 "configure"
4380#include "confdefs.h"
4381#include <libintl.h>
4382extern int _nl_msg_cat_cntr;
4383extern
4384#ifdef __cplusplus
4385"C"
4386#endif
4387const char *_nl_expand_alias ();
4388int main() {
4389bindtextdomain ("", "");
4390return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
4391; return 0; }
4392EOF
4393if { (eval echo configure:4394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4394  rm -rf conftest*
4395  gt_cv_func_gnugettext1_libintl=yes
4396else
4397  echo "configure: failed program was:" >&5
4398  cat conftest.$ac_ext >&5
4399  rm -rf conftest*
4400  gt_cv_func_gnugettext1_libintl=no
4401fi
4402rm -f conftest*
4403                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
4404              LIBS="$LIBS $LIBICONV"
4405              cat > conftest.$ac_ext <<EOF
4406#line 4407 "configure"
4407#include "confdefs.h"
4408#include <libintl.h>
4409extern int _nl_msg_cat_cntr;
4410extern
4411#ifdef __cplusplus
4412"C"
4413#endif
4414const char *_nl_expand_alias ();
4415int main() {
4416bindtextdomain ("", "");
4417return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
4418; return 0; }
4419EOF
4420if { (eval echo configure:4421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4421  rm -rf conftest*
4422  LIBINTL="$LIBINTL $LIBICONV"
4423                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
4424                gt_cv_func_gnugettext1_libintl=yes
4425               
4426else
4427  echo "configure: failed program was:" >&5
4428  cat conftest.$ac_ext >&5
4429fi
4430rm -f conftest*
4431            fi
4432            CPPFLAGS="$gt_save_CPPFLAGS"
4433            LIBS="$gt_save_LIBS"
4434fi
4435
4436echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
4437        fi
4438
4439                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
4440           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
4441                && test "$PACKAGE" != gettext; }; then
4442          gt_use_preinstalled_gnugettext=yes
4443        else
4444                    LIBINTL=
4445          LTLIBINTL=
4446          INCINTL=
4447        fi
4448
4449    
4450        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
4451                              nls_cv_use_gnu_gettext=yes
4452        fi
4453      fi
4454
4455      if test "$nls_cv_use_gnu_gettext" = "yes"; then
4456                INTLOBJS="\$(GETTOBJS)"
4457        BUILD_INCLUDED_LIBINTL=yes
4458        USE_INCLUDED_LIBINTL=yes
4459        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
4460        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
4461        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
4462      fi
4463
4464      if test "$gt_use_preinstalled_gnugettext" = "yes" \
4465         || test "$nls_cv_use_gnu_gettext" = "yes"; then
4466                CATOBJEXT=.gmo
4467      fi
4468    
4469
4470    if test "$gt_use_preinstalled_gnugettext" = "yes" \
4471       || test "$nls_cv_use_gnu_gettext" = "yes"; then
4472      cat >> confdefs.h <<\EOF
4473#define ENABLE_NLS 1
4474EOF
4475
4476    else
4477      USE_NLS=no
4478    fi
4479  fi
4480
4481  if test "$USE_NLS" = "yes"; then
4482
4483    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
4484      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
4485        echo $ac_n "checking how to link with libintl""... $ac_c" 1>&6
4486echo "configure:4487: checking how to link with libintl" >&5
4487        echo "$ac_t""$LIBINTL" 1>&6
4488        
4489  for element in $INCINTL; do
4490    haveit=
4491    for x in $CPPFLAGS; do
4492      
4493  acl_save_prefix="$prefix"
4494  prefix="$acl_final_prefix"
4495  acl_save_exec_prefix="$exec_prefix"
4496  exec_prefix="$acl_final_exec_prefix"
4497  eval x=\"$x\"
4498  exec_prefix="$acl_save_exec_prefix"
4499  prefix="$acl_save_prefix"
4500
4501      if test "X$x" = "X$element"; then
4502        haveit=yes
4503        break
4504      fi
4505    done
4506    if test -z "$haveit"; then
4507      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4508    fi
4509  done
4510
4511      fi
4512
4513            cat >> confdefs.h <<\EOF
4514#define HAVE_GETTEXT 1
4515EOF
4516
4517      cat >> confdefs.h <<\EOF
4518#define HAVE_DCGETTEXT 1
4519EOF
4520
4521    fi
4522
4523        POSUB=po
4524  fi
4525
4526  
4527            if test "$PACKAGE" = gettext; then
4528      BUILD_INCLUDED_LIBINTL=yes
4529    fi
4530
4531        
4532    
4533    
4534    
4535
4536        nls_cv_header_intl=
4537    nls_cv_header_libgt=
4538
4539        DATADIRNAME=share
4540    
4541
4542        INSTOBJEXT=.mo
4543    
4544
4545        GENCAT=gencat
4546    
4547
4548        INTL_LIBTOOL_SUFFIX_PREFIX=
4549    
4550  
4551
4552    INTLLIBS="$LIBINTL"
4553  
4554
4555    
4556  
4557  
4558
4559
4560echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4561echo "configure:4562: checking whether ${MAKE-make} sets \${MAKE}" >&5
4562set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4563if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
4564  echo $ac_n "(cached) $ac_c" 1>&6
4565else
4566  cat > conftestmake <<\EOF
4567all:
4568	@echo 'ac_maketemp="${MAKE}"'
4569EOF
4570# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4571eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4572if test -n "$ac_maketemp"; then
4573  eval ac_cv_prog_make_${ac_make}_set=yes
4574else
4575  eval ac_cv_prog_make_${ac_make}_set=no
4576fi
4577rm -f conftestmake
4578fi
4579if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4580  echo "$ac_t""yes" 1>&6
4581  SET_MAKE=
4582else
4583  echo "$ac_t""no" 1>&6
4584  SET_MAKE="MAKE=${MAKE-make}"
4585fi
4586
4587# Extract the first word of "ln", so it can be a program name with args.
4588set dummy ln; ac_word=$2
4589echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4590echo "configure:4591: checking for $ac_word" >&5
4591if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
4592  echo $ac_n "(cached) $ac_c" 1>&6
4593else
4594  case "$LN" in
4595  /*)
4596  ac_cv_path_LN="$LN" # Let the user override the test with a path.
4597  ;;
4598  ?:/*)			 
4599  ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
4600  ;;
4601  *)
4602  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
4603  ac_dummy="$PATH"
4604  for ac_dir in $ac_dummy; do 
4605    test -z "$ac_dir" && ac_dir=.
4606    if test -f $ac_dir/$ac_word; then
4607      ac_cv_path_LN="$ac_dir/$ac_word"
4608      break
4609    fi
4610  done
4611  IFS="$ac_save_ifs"
4612  test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
4613  ;;
4614esac
4615fi
4616LN="$ac_cv_path_LN"
4617if test -n "$LN"; then
4618  echo "$ac_t""$LN" 1>&6
4619else
4620  echo "$ac_t""no" 1>&6
4621fi
4622
4623echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
4624echo "configure:4625: checking whether ln -s works" >&5
4625if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
4626  echo $ac_n "(cached) $ac_c" 1>&6
4627else
4628  rm -f conftestdata
4629if ln -s X conftestdata 2>/dev/null
4630then
4631  rm -f conftestdata
4632  ac_cv_prog_LN_S="ln -s"
4633else
4634  ac_cv_prog_LN_S=ln
4635fi
4636fi
4637LN_S="$ac_cv_prog_LN_S"
4638if test "$ac_cv_prog_LN_S" = "ln -s"; then
4639  echo "$ac_t""yes" 1>&6
4640else
4641  echo "$ac_t""no" 1>&6
4642fi
4643
4644# Extract the first word of "mv", so it can be a program name with args.
4645set dummy mv; ac_word=$2
4646echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4647echo "configure:4648: checking for $ac_word" >&5
4648if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
4649  echo $ac_n "(cached) $ac_c" 1>&6
4650else
4651  case "$MV" in
4652  /*)
4653  ac_cv_path_MV="$MV" # Let the user override the test with a path.
4654  ;;
4655  ?:/*)			 
4656  ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
4657  ;;
4658  *)
4659  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
4660  ac_dummy="$PATH"
4661  for ac_dir in $ac_dummy; do 
4662    test -z "$ac_dir" && ac_dir=.
4663    if test -f $ac_dir/$ac_word; then
4664      ac_cv_path_MV="$ac_dir/$ac_word"
4665      break
4666    fi
4667  done
4668  IFS="$ac_save_ifs"
4669  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4670  ;;
4671esac
4672fi
4673MV="$ac_cv_path_MV"
4674if test -n "$MV"; then
4675  echo "$ac_t""$MV" 1>&6
4676else
4677  echo "$ac_t""no" 1>&6
4678fi
4679
4680# Extract the first word of "cp", so it can be a program name with args.
4681set dummy cp; ac_word=$2
4682echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4683echo "configure:4684: checking for $ac_word" >&5
4684if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
4685  echo $ac_n "(cached) $ac_c" 1>&6
4686else
4687  case "$CP" in
4688  /*)
4689  ac_cv_path_CP="$CP" # Let the user override the test with a path.
4690  ;;
4691  ?:/*)			 
4692  ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
4693  ;;
4694  *)
4695  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
4696  ac_dummy="$PATH"
4697  for ac_dir in $ac_dummy; do 
4698    test -z "$ac_dir" && ac_dir=.
4699    if test -f $ac_dir/$ac_word; then
4700      ac_cv_path_CP="$ac_dir/$ac_word"
4701      break
4702    fi
4703  done
4704  IFS="$ac_save_ifs"
4705  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4706  ;;
4707esac
4708fi
4709CP="$ac_cv_path_CP"
4710if test -n "$CP"; then
4711  echo "$ac_t""$CP" 1>&6
4712else
4713  echo "$ac_t""no" 1>&6
4714fi
4715
4716# Extract the first word of "rm", so it can be a program name with args.
4717set dummy rm; ac_word=$2
4718echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4719echo "configure:4720: checking for $ac_word" >&5
4720if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
4721  echo $ac_n "(cached) $ac_c" 1>&6
4722else
4723  case "$RM" in
4724  /*)
4725  ac_cv_path_RM="$RM" # Let the user override the test with a path.
4726  ;;
4727  ?:/*)			 
4728  ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
4729  ;;
4730  *)
4731  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
4732  ac_dummy="$PATH"
4733  for ac_dir in $ac_dummy; do 
4734    test -z "$ac_dir" && ac_dir=.
4735    if test -f $ac_dir/$ac_word; then
4736      ac_cv_path_RM="$ac_dir/$ac_word"
4737      break
4738    fi
4739  done
4740  IFS="$ac_save_ifs"
4741  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4742  ;;
4743esac
4744fi
4745RM="$ac_cv_path_RM"
4746if test -n "$RM"; then
4747  echo "$ac_t""$RM" 1>&6
4748else
4749  echo "$ac_t""no" 1>&6
4750fi
4751
4752# Extract the first word of "chmod", so it can be a program name with args.
4753set dummy chmod; ac_word=$2
4754echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4755echo "configure:4756: checking for $ac_word" >&5
4756if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
4757  echo $ac_n "(cached) $ac_c" 1>&6
4758else
4759  case "$CHMOD" in
4760  /*)
4761  ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4762  ;;
4763  ?:/*)			 
4764  ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
4765  ;;
4766  *)
4767  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
4768  ac_dummy="$PATH"
4769  for ac_dir in $ac_dummy; do 
4770    test -z "$ac_dir" && ac_dir=.
4771    if test -f $ac_dir/$ac_word; then
4772      ac_cv_path_CHMOD="$ac_dir/$ac_word"
4773      break
4774    fi
4775  done
4776  IFS="$ac_save_ifs"
4777  test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
4778  ;;
4779esac
4780fi
4781CHMOD="$ac_cv_path_CHMOD"
4782if test -n "$CHMOD"; then
4783  echo "$ac_t""$CHMOD" 1>&6
4784else
4785  echo "$ac_t""no" 1>&6
4786fi
4787
4788# Extract the first word of "awk", so it can be a program name with args.
4789set dummy awk; ac_word=$2
4790echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4791echo "configure:4792: checking for $ac_word" >&5
4792if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
4793  echo $ac_n "(cached) $ac_c" 1>&6
4794else
4795  case "$AWK" in
4796  /*)
4797  ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4798  ;;
4799  ?:/*)			 
4800  ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
4801  ;;
4802  *)
4803  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
4804  ac_dummy="$PATH"
4805  for ac_dir in $ac_dummy; do 
4806    test -z "$ac_dir" && ac_dir=.
4807    if test -f $ac_dir/$ac_word; then
4808      ac_cv_path_AWK="$ac_dir/$ac_word"
4809      break
4810    fi
4811  done
4812  IFS="$ac_save_ifs"
4813  test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
4814  ;;
4815esac
4816fi
4817AWK="$ac_cv_path_AWK"
4818if test -n "$AWK"; then
4819  echo "$ac_t""$AWK" 1>&6
4820else
4821  echo "$ac_t""no" 1>&6
4822fi
4823
4824# Extract the first word of "sed", so it can be a program name with args.
4825set dummy sed; ac_word=$2
4826echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4827echo "configure:4828: checking for $ac_word" >&5
4828if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
4829  echo $ac_n "(cached) $ac_c" 1>&6
4830else
4831  case "$SED" in
4832  /*)
4833  ac_cv_path_SED="$SED" # Let the user override the test with a path.
4834  ;;
4835  ?:/*)			 
4836  ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
4837  ;;
4838  *)
4839  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
4840  ac_dummy="$PATH"
4841  for ac_dir in $ac_dummy; do 
4842    test -z "$ac_dir" && ac_dir=.
4843    if test -f $ac_dir/$ac_word; then
4844      ac_cv_path_SED="$ac_dir/$ac_word"
4845      break
4846    fi
4847  done
4848  IFS="$ac_save_ifs"
4849  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4850  ;;
4851esac
4852fi
4853SED="$ac_cv_path_SED"
4854if test -n "$SED"; then
4855  echo "$ac_t""$SED" 1>&6
4856else
4857  echo "$ac_t""no" 1>&6
4858fi
4859
4860# Extract the first word of "perl", so it can be a program name with args.
4861set dummy perl; ac_word=$2
4862echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4863echo "configure:4864: checking for $ac_word" >&5
4864if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
4865  echo $ac_n "(cached) $ac_c" 1>&6
4866else
4867  case "$PERL" in
4868  /*)
4869  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4870  ;;
4871  ?:/*)			 
4872  ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
4873  ;;
4874  *)
4875  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
4876  ac_dummy="$PATH"
4877  for ac_dir in $ac_dummy; do 
4878    test -z "$ac_dir" && ac_dir=.
4879    if test -f $ac_dir/$ac_word; then
4880      ac_cv_path_PERL="$ac_dir/$ac_word"
4881      break
4882    fi
4883  done
4884  IFS="$ac_save_ifs"
4885  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
4886  ;;
4887esac
4888fi
4889PERL="$ac_cv_path_PERL"
4890if test -n "$PERL"; then
4891  echo "$ac_t""$PERL" 1>&6
4892else
4893  echo "$ac_t""no" 1>&6
4894fi
4895
4896# Extract the first word of "ldconfig", so it can be a program name with args.
4897set dummy ldconfig; ac_word=$2
4898echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4899echo "configure:4900: checking for $ac_word" >&5
4900if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
4901  echo $ac_n "(cached) $ac_c" 1>&6
4902else
4903  case "$LDCONFIG" in
4904  /*)
4905  ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4906  ;;
4907  ?:/*)			 
4908  ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
4909  ;;
4910  *)
4911  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
4912  ac_dummy="$PATH"
4913  for ac_dir in $ac_dummy; do 
4914    test -z "$ac_dir" && ac_dir=.
4915    if test -f $ac_dir/$ac_word; then
4916      ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
4917      break
4918    fi
4919  done
4920  IFS="$ac_save_ifs"
4921  test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
4922  ;;
4923esac
4924fi
4925LDCONFIG="$ac_cv_path_LDCONFIG"
4926if test -n "$LDCONFIG"; then
4927  echo "$ac_t""$LDCONFIG" 1>&6
4928else
4929  echo "$ac_t""no" 1>&6
4930fi
4931
4932echo $ac_n "checking build system type""... $ac_c" 1>&6
4933echo "configure:4934: checking build system type" >&5
4934
4935build_alias=$build
4936case "$build_alias" in
4937NONE)
4938  case $nonopt in
4939  NONE) build_alias=$host_alias ;;
4940  *) build_alias=$nonopt ;;
4941  esac ;;
4942esac
4943
4944build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
4945build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4946build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4947build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4948echo "$ac_t""$build" 1>&6
4949
4950if test $host != $build; then
4951  ac_tool_prefix=${host_alias}-
4952else
4953  ac_tool_prefix=
4954fi
4955
4956# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4957set dummy ${ac_tool_prefix}ar; ac_word=$2
4958echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4959echo "configure:4960: checking for $ac_word" >&5
4960if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
4961  echo $ac_n "(cached) $ac_c" 1>&6
4962else
4963  if test -n "$AR"; then
4964  ac_cv_prog_AR="$AR" # Let the user override the test.
4965else
4966  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
4967  ac_dummy="$PATH"
4968  for ac_dir in $ac_dummy; do
4969    test -z "$ac_dir" && ac_dir=.
4970    if test -f $ac_dir/$ac_word; then
4971      ac_cv_prog_AR="${ac_tool_prefix}ar"
4972      break
4973    fi
4974  done
4975  IFS="$ac_save_ifs"
4976fi
4977fi
4978AR="$ac_cv_prog_AR"
4979if test -n "$AR"; then
4980  echo "$ac_t""$AR" 1>&6
4981else
4982  echo "$ac_t""no" 1>&6
4983fi
4984
4985
4986if test -z "$ac_cv_prog_AR"; then
4987if test -n "$ac_tool_prefix"; then
4988  # Extract the first word of "ar", so it can be a program name with args.
4989set dummy ar; ac_word=$2
4990echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4991echo "configure:4992: checking for $ac_word" >&5
4992if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
4993  echo $ac_n "(cached) $ac_c" 1>&6
4994else
4995  if test -n "$AR"; then
4996  ac_cv_prog_AR="$AR" # Let the user override the test.
4997else
4998  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
4999  ac_dummy="$PATH"
5000  for ac_dir in $ac_dummy; do
5001    test -z "$ac_dir" && ac_dir=.
5002    if test -f $ac_dir/$ac_word; then
5003      ac_cv_prog_AR="ar"
5004      break
5005    fi
5006  done
5007  IFS="$ac_save_ifs"
5008  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
5009fi
5010fi
5011AR="$ac_cv_prog_AR"
5012if test -n "$AR"; then
5013  echo "$ac_t""$AR" 1>&6
5014else
5015  echo "$ac_t""no" 1>&6
5016fi
5017
5018else
5019  AR="ar"
5020fi
5021fi
5022
5023# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5024set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5025echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5026echo "configure:5027: checking for $ac_word" >&5
5027if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
5028  echo $ac_n "(cached) $ac_c" 1>&6
5029else
5030  if test -n "$RANLIB"; then
5031  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5032else
5033  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
5034  ac_dummy="$PATH"
5035  for ac_dir in $ac_dummy; do
5036    test -z "$ac_dir" && ac_dir=.
5037    if test -f $ac_dir/$ac_word; then
5038      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5039      break
5040    fi
5041  done
5042  IFS="$ac_save_ifs"
5043fi
5044fi
5045RANLIB="$ac_cv_prog_RANLIB"
5046if test -n "$RANLIB"; then
5047  echo "$ac_t""$RANLIB" 1>&6
5048else
5049  echo "$ac_t""no" 1>&6
5050fi
5051
5052
5053if test -z "$ac_cv_prog_RANLIB"; then
5054if test -n "$ac_tool_prefix"; then
5055  # Extract the first word of "ranlib", so it can be a program name with args.
5056set dummy ranlib; ac_word=$2
5057echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5058echo "configure:5059: checking for $ac_word" >&5
5059if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
5060  echo $ac_n "(cached) $ac_c" 1>&6
5061else
5062  if test -n "$RANLIB"; then
5063  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5064else
5065  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
5066  ac_dummy="$PATH"
5067  for ac_dir in $ac_dummy; do
5068    test -z "$ac_dir" && ac_dir=.
5069    if test -f $ac_dir/$ac_word; then
5070      ac_cv_prog_RANLIB="ranlib"
5071      break
5072    fi
5073  done
5074  IFS="$ac_save_ifs"
5075  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
5076fi
5077fi
5078RANLIB="$ac_cv_prog_RANLIB"
5079if test -n "$RANLIB"; then
5080  echo "$ac_t""$RANLIB" 1>&6
5081else
5082  echo "$ac_t""no" 1>&6
5083fi
5084
5085else
5086  RANLIB=":"
5087fi
5088fi
5089
5090# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5091set dummy ${ac_tool_prefix}strip; ac_word=$2
5092echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5093echo "configure:5094: checking for $ac_word" >&5
5094if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
5095  echo $ac_n "(cached) $ac_c" 1>&6
5096else
5097  if test -n "$STRIP"; then
5098  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5099else
5100  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
5101  ac_dummy="$PATH"
5102  for ac_dir in $ac_dummy; do
5103    test -z "$ac_dir" && ac_dir=.
5104    if test -f $ac_dir/$ac_word; then
5105      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5106      break
5107    fi
5108  done
5109  IFS="$ac_save_ifs"
5110fi
5111fi
5112STRIP="$ac_cv_prog_STRIP"
5113if test -n "$STRIP"; then
5114  echo "$ac_t""$STRIP" 1>&6
5115else
5116  echo "$ac_t""no" 1>&6
5117fi
5118
5119
5120if test -z "$ac_cv_prog_STRIP"; then
5121if test -n "$ac_tool_prefix"; then
5122  # Extract the first word of "strip", so it can be a program name with args.
5123set dummy strip; ac_word=$2
5124echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5125echo "configure:5126: checking for $ac_word" >&5
5126if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
5127  echo $ac_n "(cached) $ac_c" 1>&6
5128else
5129  if test -n "$STRIP"; then
5130  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5131else
5132  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
5133  ac_dummy="$PATH"
5134  for ac_dir in $ac_dummy; do
5135    test -z "$ac_dir" && ac_dir=.
5136    if test -f $ac_dir/$ac_word; then
5137      ac_cv_prog_STRIP="strip"
5138      break
5139    fi
5140  done
5141  IFS="$ac_save_ifs"
5142  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
5143fi
5144fi
5145STRIP="$ac_cv_prog_STRIP"
5146if test -n "$STRIP"; then
5147  echo "$ac_t""$STRIP" 1>&6
5148else
5149  echo "$ac_t""no" 1>&6
5150fi
5151
5152else
5153  STRIP=":"
5154fi
5155fi
5156
5157# Find a good install program.  We prefer a C program (faster),
5158# so one script is as good as another.  But avoid the broken or
5159# incompatible versions:
5160# SysV /etc/install, /usr/sbin/install
5161# SunOS /usr/etc/install
5162# IRIX /sbin/install
5163# AIX /bin/install
5164# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5165# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5166# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5167# ./install, which can be erroneously created by make from ./install.sh.
5168echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
5169echo "configure:5170: checking for a BSD compatible install" >&5
5170if test -z "$INSTALL"; then
5171if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
5172  echo $ac_n "(cached) $ac_c" 1>&6
5173else
5174    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
5175  for ac_dir in $PATH; do
5176    # Account for people who put trailing slashes in PATH elements.
5177    case "$ac_dir/" in
5178    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5179    *)
5180      # OSF1 and SCO ODT 3.0 have their own names for install.
5181      # Don't use installbsd from OSF since it installs stuff as root
5182      # by default.
5183      for ac_prog in ginstall scoinst install; do
5184        if test -f $ac_dir/$ac_prog; then
5185	  if test $ac_prog = install &&
5186            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5187	    # AIX install.  It has an incompatible calling convention.
5188	    :
5189	  else
5190	    ac_cv_path_install="$ac_dir/$ac_prog -c"
5191	    break 2
5192	  fi
5193	fi
5194      done
5195      ;;
5196    esac
5197  done
5198  IFS="$ac_save_IFS"
5199
5200fi
5201  if test "${ac_cv_path_install+set}" = set; then
5202    INSTALL="$ac_cv_path_install"
5203  else
5204    # As a last resort, use the slow shell script.  We don't cache a
5205    # path for INSTALL within a source directory, because that will
5206    # break other packages using the cache if that directory is
5207    # removed, or if the path is relative.
5208    INSTALL="$ac_install_sh"
5209  fi
5210fi
5211echo "$ac_t""$INSTALL" 1>&6
5212
5213# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5214# It thinks the first close brace ends the variable substitution.
5215test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5216
5217test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
5218
5219test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5220
5221# See if we need a separate native compiler.
5222if test $cross_compiling = no; then
5223  BUILD_CC="$CC"
5224  
5225else
5226  for ac_prog in gcc cc
5227do
5228# Extract the first word of "$ac_prog", so it can be a program name with args.
5229set dummy $ac_prog; ac_word=$2
5230echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5231echo "configure:5232: checking for $ac_word" >&5
5232if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
5233  echo $ac_n "(cached) $ac_c" 1>&6
5234else
5235  if test -n "$BUILD_CC"; then
5236  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5237else
5238  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
5239  ac_dummy="$PATH"
5240  for ac_dir in $ac_dummy; do
5241    test -z "$ac_dir" && ac_dir=.
5242    if test -f $ac_dir/$ac_word; then
5243      ac_cv_prog_BUILD_CC="$ac_prog"
5244      break
5245    fi
5246  done
5247  IFS="$ac_save_ifs"
5248fi
5249fi
5250BUILD_CC="$ac_cv_prog_BUILD_CC"
5251if test -n "$BUILD_CC"; then
5252  echo "$ac_t""$BUILD_CC" 1>&6
5253else
5254  echo "$ac_t""no" 1>&6
5255fi
5256
5257test -n "$BUILD_CC" && break
5258done
5259
5260fi
5261for ac_hdr 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
5262do
5263ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5264echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5265echo "configure:5266: checking for $ac_hdr" >&5
5266if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5267  echo $ac_n "(cached) $ac_c" 1>&6
5268else
5269  cat > conftest.$ac_ext <<EOF
5270#line 5271 "configure"
5271#include "confdefs.h"
5272#include <$ac_hdr>
5273EOF
5274ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5275{ (eval echo configure:5276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5276ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5277if test -z "$ac_err"; then
5278  rm -rf conftest*
5279  eval "ac_cv_header_$ac_safe=yes"
5280else
5281  echo "$ac_err" >&5
5282  echo "configure: failed program was:" >&5
5283  cat conftest.$ac_ext >&5
5284  rm -rf conftest*
5285  eval "ac_cv_header_$ac_safe=no"
5286fi
5287rm -f conftest*
5288fi
5289if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5290  echo "$ac_t""yes" 1>&6
5291    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5292  cat >> confdefs.h <<EOF
5293#define $ac_tr_hdr 1
5294EOF
5295 
5296else
5297  echo "$ac_t""no" 1>&6
5298fi
5299done
5300
5301echo $ac_n "checking for vprintf""... $ac_c" 1>&6
5302echo "configure:5303: checking for vprintf" >&5
5303if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
5304  echo $ac_n "(cached) $ac_c" 1>&6
5305else
5306  cat > conftest.$ac_ext <<EOF
5307#line 5308 "configure"
5308#include "confdefs.h"
5309/* System header to define __stub macros and hopefully few prototypes,
5310    which can conflict with char vprintf(); below.  */
5311#include <assert.h>
5312/* Override any gcc2 internal prototype to avoid an error.  */
5313/* We use char because int might match the return type of a gcc2
5314    builtin and then its argument prototype would still apply.  */
5315char vprintf();
5316
5317int main() {
5318
5319/* The GNU C library defines this for functions which it implements
5320    to always fail with ENOSYS.  Some functions are actually named
5321    something starting with __ and the normal name is an alias.  */
5322#if defined (__stub_vprintf) || defined (__stub___vprintf)
5323choke me
5324#else
5325vprintf();
5326#endif
5327
5328; return 0; }
5329EOF
5330if { (eval echo configure:5331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5331  rm -rf conftest*
5332  eval "ac_cv_func_vprintf=yes"
5333else
5334  echo "configure: failed program was:" >&5
5335  cat conftest.$ac_ext >&5
5336  rm -rf conftest*
5337  eval "ac_cv_func_vprintf=no"
5338fi
5339rm -f conftest*
5340fi
5341
5342if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
5343  echo "$ac_t""yes" 1>&6
5344  cat >> confdefs.h <<\EOF
5345#define HAVE_VPRINTF 1
5346EOF
5347
5348else
5349  echo "$ac_t""no" 1>&6
5350fi
5351
5352if test "$ac_cv_func_vprintf" != yes; then
5353echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
5354echo "configure:5355: checking for _doprnt" >&5
5355if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
5356  echo $ac_n "(cached) $ac_c" 1>&6
5357else
5358  cat > conftest.$ac_ext <<EOF
5359#line 5360 "configure"
5360#include "confdefs.h"
5361/* System header to define __stub macros and hopefully few prototypes,
5362    which can conflict with char _doprnt(); below.  */
5363#include <assert.h>
5364/* Override any gcc2 internal prototype to avoid an error.  */
5365/* We use char because int might match the return type of a gcc2
5366    builtin and then its argument prototype would still apply.  */
5367char _doprnt();
5368
5369int main() {
5370
5371/* The GNU C library defines this for functions which it implements
5372    to always fail with ENOSYS.  Some functions are actually named
5373    something starting with __ and the normal name is an alias.  */
5374#if defined (__stub__doprnt) || defined (__stub____doprnt)
5375choke me
5376#else
5377_doprnt();
5378#endif
5379
5380; return 0; }
5381EOF
5382if { (eval echo configure:5383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5383  rm -rf conftest*
5384  eval "ac_cv_func__doprnt=yes"
5385else
5386  echo "configure: failed program was:" >&5
5387  cat conftest.$ac_ext >&5
5388  rm -rf conftest*
5389  eval "ac_cv_func__doprnt=no"
5390fi
5391rm -f conftest*
5392fi
5393
5394if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
5395  echo "$ac_t""yes" 1>&6
5396  cat >> confdefs.h <<\EOF
5397#define HAVE_DOPRNT 1
5398EOF
5399
5400else
5401  echo "$ac_t""no" 1>&6
5402fi
5403
5404fi
5405
5406echo $ac_n "checking whether d_reclen declared in dirent""... $ac_c" 1>&6
5407echo "configure:5408: checking whether d_reclen declared in dirent" >&5
5408if eval "test \"`echo '$''{'e2fsprogs_cv_have_d_reclen_dirent'+set}'`\" = set"; then
5409  echo $ac_n "(cached) $ac_c" 1>&6
5410else
5411  cat > conftest.$ac_ext <<EOF
5412#line 5413 "configure"
5413#include "confdefs.h"
5414#include <dirent.h>
5415int main() {
5416struct dirent de; de.d_reclen = 0; 
5417; return 0; }
5418EOF
5419if { (eval echo configure:5420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5420  rm -rf conftest*
5421  e2fsprogs_cv_have_d_reclen_dirent=yes
5422else
5423  echo "configure: failed program was:" >&5
5424  cat conftest.$ac_ext >&5
5425  rm -rf conftest*
5426  e2fsprogs_cv_have_d_reclen_dirent=no
5427fi
5428rm -f conftest*
5429fi
5430
5431echo "$ac_t""$e2fsprogs_cv_have_d_reclen_dirent" 1>&6
5432if test "$e2fsprogs_cv_have_d_reclen_dirent" = yes; then
5433   cat >> confdefs.h <<\EOF
5434#define HAVE_RECLEN_DIRENT 1
5435EOF
5436
5437fi
5438echo $ac_n "checking whether ssize_t declared""... $ac_c" 1>&6
5439echo "configure:5440: checking whether ssize_t declared" >&5
5440if eval "test \"`echo '$''{'e2fsprogs_cv_have_ssize_t'+set}'`\" = set"; then
5441  echo $ac_n "(cached) $ac_c" 1>&6
5442else
5443  cat > conftest.$ac_ext <<EOF
5444#line 5445 "configure"
5445#include "confdefs.h"
5446#include <sys/types.h>
5447int main() {
5448ssize_t a = 0; 
5449; return 0; }
5450EOF
5451if { (eval echo configure:5452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5452  rm -rf conftest*
5453  e2fsprogs_cv_have_ssize_t=yes
5454else
5455  echo "configure: failed program was:" >&5
5456  cat conftest.$ac_ext >&5
5457  rm -rf conftest*
5458  e2fsprogs_cv_have_ssize_t=no
5459fi
5460rm -f conftest*
5461fi
5462
5463echo "$ac_t""$e2fsprogs_cv_have_ssize_t" 1>&6
5464if test "$e2fsprogs_cv_have_ssize_t" = yes; then
5465   cat >> confdefs.h <<\EOF
5466#define HAVE_TYPE_SSIZE_T 1
5467EOF
5468
5469fi
5470echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
5471echo "configure:5472: checking whether llseek declared in unistd.h" >&5
5472if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
5473  echo $ac_n "(cached) $ac_c" 1>&6
5474else
5475  cat > conftest.$ac_ext <<EOF
5476#line 5477 "configure"
5477#include "confdefs.h"
5478#include <unistd.h>
5479int main() {
5480extern int llseek(int);
5481; return 0; }
5482EOF
5483if { (eval echo configure:5484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5484  rm -rf conftest*
5485  e2fsprogs_cv_have_llseek_prototype=no
5486else
5487  echo "configure: failed program was:" >&5
5488  cat conftest.$ac_ext >&5
5489  rm -rf conftest*
5490  e2fsprogs_cv_have_llseek_prototype=yes
5491fi
5492rm -f conftest*
5493fi
5494
5495echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
5496if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
5497   cat >> confdefs.h <<\EOF
5498#define HAVE_LLSEEK_PROTOTYPE 1
5499EOF
5500
5501fi
5502echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
5503echo "configure:5504: checking whether lseek64 declared in unistd.h" >&5
5504if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
5505  echo $ac_n "(cached) $ac_c" 1>&6
5506else
5507  cat > conftest.$ac_ext <<EOF
5508#line 5509 "configure"
5509#include "confdefs.h"
5510#define _LARGEFILE_SOURCE
5511#define _LARGEFILE64_SOURCE
5512#include <unistd.h>
5513int main() {
5514extern int lseek64(int);
5515; return 0; }
5516EOF
5517if { (eval echo configure:5518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5518  rm -rf conftest*
5519  e2fsprogs_cv_have_lseek64_prototype=no
5520else
5521  echo "configure: failed program was:" >&5
5522  cat conftest.$ac_ext >&5
5523  rm -rf conftest*
5524  e2fsprogs_cv_have_lseek64_prototype=yes
5525fi
5526rm -f conftest*
5527fi
5528
5529echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
5530if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
5531   cat >> confdefs.h <<\EOF
5532#define HAVE_LSEEK64_PROTOTYPE 1
5533EOF
5534
5535fi
5536if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
5537  # if cross-compiling, with no cached values, just assume something common. 
5538  ac_cv_sizeof_short=2
5539  ac_cv_sizeof_int=4
5540  ac_cv_sizeof_long=4
5541  ac_cv_sizeof_long_long=8
5542  echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" 1>&2
5543fi
5544echo $ac_n "checking size of short""... $ac_c" 1>&6
5545echo "configure:5546: checking size of short" >&5
5546if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
5547  echo $ac_n "(cached) $ac_c" 1>&6
5548else
5549  if test "$cross_compiling" = yes; then
5550    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5551else
5552  cat > conftest.$ac_ext <<EOF
5553#line 5554 "configure"
5554#include "confdefs.h"
5555#include <stdio.h>
5556#include <sys/types.h>
5557main()
5558{
5559  FILE *f=fopen("conftestval", "w");
5560  if (!f) exit(1);
5561  fprintf(f, "%d\n", sizeof(short));
5562  exit(0);
5563}
5564EOF
5565if { (eval echo configure:5566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5566then
5567  ac_cv_sizeof_short=`cat conftestval`
5568else
5569  echo "configure: failed program was:" >&5
5570  cat conftest.$ac_ext >&5
5571  rm -fr conftest*
5572  ac_cv_sizeof_short=0
5573fi
5574rm -fr conftest*
5575fi
5576
5577fi
5578echo "$ac_t""$ac_cv_sizeof_short" 1>&6
5579cat >> confdefs.h <<EOF
5580#define SIZEOF_SHORT $ac_cv_sizeof_short
5581EOF
5582
5583
5584echo $ac_n "checking size of int""... $ac_c" 1>&6
5585echo "configure:5586: checking size of int" >&5
5586if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
5587  echo $ac_n "(cached) $ac_c" 1>&6
5588else
5589  if test "$cross_compiling" = yes; then
5590    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5591else
5592  cat > conftest.$ac_ext <<EOF
5593#line 5594 "configure"
5594#include "confdefs.h"
5595#include <stdio.h>
5596#include <sys/types.h>
5597main()
5598{
5599  FILE *f=fopen("conftestval", "w");
5600  if (!f) exit(1);
5601  fprintf(f, "%d\n", sizeof(int));
5602  exit(0);
5603}
5604EOF
5605if { (eval echo configure:5606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5606then
5607  ac_cv_sizeof_int=`cat conftestval`
5608else
5609  echo "configure: failed program was:" >&5
5610  cat conftest.$ac_ext >&5
5611  rm -fr conftest*
5612  ac_cv_sizeof_int=0
5613fi
5614rm -fr conftest*
5615fi
5616
5617fi
5618echo "$ac_t""$ac_cv_sizeof_int" 1>&6
5619cat >> confdefs.h <<EOF
5620#define SIZEOF_INT $ac_cv_sizeof_int
5621EOF
5622
5623
5624echo $ac_n "checking size of long""... $ac_c" 1>&6
5625echo "configure:5626: checking size of long" >&5
5626if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
5627  echo $ac_n "(cached) $ac_c" 1>&6
5628else
5629  if test "$cross_compiling" = yes; then
5630    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5631else
5632  cat > conftest.$ac_ext <<EOF
5633#line 5634 "configure"
5634#include "confdefs.h"
5635#include <stdio.h>
5636#include <sys/types.h>
5637main()
5638{
5639  FILE *f=fopen("conftestval", "w");
5640  if (!f) exit(1);
5641  fprintf(f, "%d\n", sizeof(long));
5642  exit(0);
5643}
5644EOF
5645if { (eval echo configure:5646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5646then
5647  ac_cv_sizeof_long=`cat conftestval`
5648else
5649  echo "configure: failed program was:" >&5
5650  cat conftest.$ac_ext >&5
5651  rm -fr conftest*
5652  ac_cv_sizeof_long=0
5653fi
5654rm -fr conftest*
5655fi
5656
5657fi
5658echo "$ac_t""$ac_cv_sizeof_long" 1>&6
5659cat >> confdefs.h <<EOF
5660#define SIZEOF_LONG $ac_cv_sizeof_long
5661EOF
5662
5663
5664echo $ac_n "checking size of long long""... $ac_c" 1>&6
5665echo "configure:5666: checking size of long long" >&5
5666if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
5667  echo $ac_n "(cached) $ac_c" 1>&6
5668else
5669  if test "$cross_compiling" = yes; then
5670    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5671else
5672  cat > conftest.$ac_ext <<EOF
5673#line 5674 "configure"
5674#include "confdefs.h"
5675#include <stdio.h>
5676#include <sys/types.h>
5677main()
5678{
5679  FILE *f=fopen("conftestval", "w");
5680  if (!f) exit(1);
5681  fprintf(f, "%d\n", sizeof(long long));
5682  exit(0);
5683}
5684EOF
5685if { (eval echo configure:5686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5686then
5687  ac_cv_sizeof_long_long=`cat conftestval`
5688else
5689  echo "configure: failed program was:" >&5
5690  cat conftest.$ac_ext >&5
5691  rm -fr conftest*
5692  ac_cv_sizeof_long_long=0
5693fi
5694rm -fr conftest*
5695fi
5696
5697fi
5698echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
5699cat >> confdefs.h <<EOF
5700#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5701EOF
5702
5703
5704SIZEOF_SHORT=$ac_cv_sizeof_short
5705SIZEOF_INT=$ac_cv_sizeof_int
5706SIZEOF_LONG=$ac_cv_sizeof_long
5707SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
5708
5709
5710
5711
5712echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
5713echo "configure:5714: checking whether byte ordering is bigendian" >&5
5714if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
5715  echo $ac_n "(cached) $ac_c" 1>&6
5716else
5717  ac_cv_c_bigendian=unknown
5718# See if sys/param.h defines the BYTE_ORDER macro.
5719cat > conftest.$ac_ext <<EOF
5720#line 5721 "configure"
5721#include "confdefs.h"
5722#include <sys/types.h>
5723#include <sys/param.h>
5724int main() {
5725
5726#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5727 bogus endian macros
5728#endif
5729; return 0; }
5730EOF
5731if { (eval echo configure:5732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5732  rm -rf conftest*
5733  # It does; now see whether it defined to BIG_ENDIAN or not.
5734cat > conftest.$ac_ext <<EOF
5735#line 5736 "configure"
5736#include "confdefs.h"
5737#include <sys/types.h>
5738#include <sys/param.h>
5739int main() {
5740
5741#if BYTE_ORDER != BIG_ENDIAN
5742 not big endian
5743#endif
5744; return 0; }
5745EOF
5746if { (eval echo configure:5747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5747  rm -rf conftest*
5748  ac_cv_c_bigendian=yes
5749else
5750  echo "configure: failed program was:" >&5
5751  cat conftest.$ac_ext >&5
5752  rm -rf conftest*
5753  ac_cv_c_bigendian=no
5754fi
5755rm -f conftest*
5756else
5757  echo "configure: failed program was:" >&5
5758  cat conftest.$ac_ext >&5
5759fi
5760rm -f conftest*
5761if test $ac_cv_c_bigendian = unknown; then
5762if test "$cross_compiling" = yes; then
5763    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5764else
5765  cat > conftest.$ac_ext <<EOF
5766#line 5767 "configure"
5767#include "confdefs.h"
5768main () {
5769  /* Are we little or big endian?  From Harbison&Steele.  */
5770  union
5771  {
5772    long l;
5773    char c[sizeof (long)];
5774  } u;
5775  u.l = 1;
5776  exit (u.c[sizeof (long) - 1] == 1);
5777}
5778EOF
5779if { (eval echo configure:5780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5780then
5781  ac_cv_c_bigendian=no
5782else
5783  echo "configure: failed program was:" >&5
5784  cat conftest.$ac_ext >&5
5785  rm -fr conftest*
5786  ac_cv_c_bigendian=yes
5787fi
5788rm -fr conftest*
5789fi
5790
5791fi
5792fi
5793
5794echo "$ac_t""$ac_cv_c_bigendian" 1>&6
5795if test $ac_cv_c_bigendian = yes; then
5796  cat >> confdefs.h <<\EOF
5797#define WORDS_BIGENDIAN 1
5798EOF
5799
5800fi
5801
5802echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
5803echo "configure:5804: checking whether struct stat has a st_flags field" >&5
5804if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
5805  echo $ac_n "(cached) $ac_c" 1>&6
5806else
5807  cat > conftest.$ac_ext <<EOF
5808#line 5809 "configure"
5809#include "confdefs.h"
5810#include <sys/stat.h>
5811int main() {
5812struct stat stat; stat.st_flags = 0;
5813; return 0; }
5814EOF
5815if { (eval echo configure:5816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5816  rm -rf conftest*
5817  e2fsprogs_cv_struct_st_flags=yes
5818else
5819  echo "configure: failed program was:" >&5
5820  cat conftest.$ac_ext >&5
5821  rm -rf conftest*
5822  e2fsprogs_cv_struct_st_flags=no
5823fi
5824rm -f conftest*
5825fi
5826
5827echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
5828if test "$e2fsprogs_cv_struct_st_flags" = yes; then
5829  echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
5830echo "configure:5831: checking whether st_flags field is useful" >&5
5831  if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
5832  echo $ac_n "(cached) $ac_c" 1>&6
5833else
5834  cat > conftest.$ac_ext <<EOF
5835#line 5836 "configure"
5836#include "confdefs.h"
5837#include <sys/stat.h>
5838int main() {
5839struct stat stat; stat.st_flags |= UF_IMMUTABLE;
5840; return 0; }
5841EOF
5842if { (eval echo configure:5843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5843  rm -rf conftest*
5844  e2fsprogs_cv_struct_st_flags_immut=yes
5845else
5846  echo "configure: failed program was:" >&5
5847  cat conftest.$ac_ext >&5
5848  rm -rf conftest*
5849  e2fsprogs_cv_struct_st_flags_immut=no
5850fi
5851rm -f conftest*
5852fi
5853
5854  echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
5855  if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
5856	  cat >> confdefs.h <<\EOF
5857#define HAVE_STAT_FLAGS 1
5858EOF
5859
5860  fi
5861fi
5862for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf
5863do
5864echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5865echo "configure:5866: checking for $ac_func" >&5
5866if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5867  echo $ac_n "(cached) $ac_c" 1>&6
5868else
5869  cat > conftest.$ac_ext <<EOF
5870#line 5871 "configure"
5871#include "confdefs.h"
5872/* System header to define __stub macros and hopefully few prototypes,
5873    which can conflict with char $ac_func(); below.  */
5874#include <assert.h>
5875/* Override any gcc2 internal prototype to avoid an error.  */
5876/* We use char because int might match the return type of a gcc2
5877    builtin and then its argument prototype would still apply.  */
5878char $ac_func();
5879
5880int main() {
5881
5882/* The GNU C library defines this for functions which it implements
5883    to always fail with ENOSYS.  Some functions are actually named
5884    something starting with __ and the normal name is an alias.  */
5885#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5886choke me
5887#else
5888$ac_func();
5889#endif
5890
5891; return 0; }
5892EOF
5893if { (eval echo configure:5894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5894  rm -rf conftest*
5895  eval "ac_cv_func_$ac_func=yes"
5896else
5897  echo "configure: failed program was:" >&5
5898  cat conftest.$ac_ext >&5
5899  rm -rf conftest*
5900  eval "ac_cv_func_$ac_func=no"
5901fi
5902rm -f conftest*
5903fi
5904
5905if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5906  echo "$ac_t""yes" 1>&6
5907    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5908  cat >> confdefs.h <<EOF
5909#define $ac_tr_func 1
5910EOF
5911 
5912else
5913  echo "$ac_t""no" 1>&6
5914fi
5915done
5916
5917SOCKET_LIB=''
5918echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
5919echo "configure:5920: checking for socket in -lsocket" >&5
5920ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
5921if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5922  echo $ac_n "(cached) $ac_c" 1>&6
5923else
5924  ac_save_LIBS="$LIBS"
5925LIBS="-lsocket  $LIBS"
5926cat > conftest.$ac_ext <<EOF
5927#line 5928 "configure"
5928#include "confdefs.h"
5929/* Override any gcc2 internal prototype to avoid an error.  */
5930/* We use char because int might match the return type of a gcc2
5931    builtin and then its argument prototype would still apply.  */
5932char socket();
5933
5934int main() {
5935socket()
5936; return 0; }
5937EOF
5938if { (eval echo configure:5939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5939  rm -rf conftest*
5940  eval "ac_cv_lib_$ac_lib_var=yes"
5941else
5942  echo "configure: failed program was:" >&5
5943  cat conftest.$ac_ext >&5
5944  rm -rf conftest*
5945  eval "ac_cv_lib_$ac_lib_var=no"
5946fi
5947rm -f conftest*
5948LIBS="$ac_save_LIBS"
5949
5950fi
5951if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5952  echo "$ac_t""yes" 1>&6
5953  SOCKET_LIB=-lsocket
5954else
5955  echo "$ac_t""no" 1>&6
5956fi
5957
5958
5959DLOPEN_LIB=''
5960echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5961echo "configure:5962: checking for dlopen in -ldl" >&5
5962ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5963if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5964  echo $ac_n "(cached) $ac_c" 1>&6
5965else
5966  ac_save_LIBS="$LIBS"
5967LIBS="-ldl  $LIBS"
5968cat > conftest.$ac_ext <<EOF
5969#line 5970 "configure"
5970#include "confdefs.h"
5971/* Override any gcc2 internal prototype to avoid an error.  */
5972/* We use char because int might match the return type of a gcc2
5973    builtin and then its argument prototype would still apply.  */
5974char dlopen();
5975
5976int main() {
5977dlopen()
5978; return 0; }
5979EOF
5980if { (eval echo configure:5981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5981  rm -rf conftest*
5982  eval "ac_cv_lib_$ac_lib_var=yes"
5983else
5984  echo "configure: failed program was:" >&5
5985  cat conftest.$ac_ext >&5
5986  rm -rf conftest*
5987  eval "ac_cv_lib_$ac_lib_var=no"
5988fi
5989rm -f conftest*
5990LIBS="$ac_save_LIBS"
5991
5992fi
5993if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5994  echo "$ac_t""yes" 1>&6
5995  DLOPEN_LIB=-ldl
5996cat >> confdefs.h <<\EOF
5997#define HAVE_DLOPEN 1
5998EOF
5999
6000else
6001  echo "$ac_t""no" 1>&6
6002fi
6003
6004
6005echo $ac_n "checking for optreset""... $ac_c" 1>&6
6006echo "configure:6007: checking for optreset" >&5
6007if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
6008  echo $ac_n "(cached) $ac_c" 1>&6
6009else
6010  cat > conftest.$ac_ext <<EOF
6011#line 6012 "configure"
6012#include "confdefs.h"
6013#include <unistd.h>
6014EOF
6015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6016  egrep "optreset" >/dev/null 2>&1; then
6017  rm -rf conftest*
6018  ac_cv_have_optreset=yes
6019else
6020  rm -rf conftest*
6021  ac_cv_have_optreset=no
6022fi
6023rm -f conftest*
6024
6025fi
6026echo "$ac_t""$ac_cv_have_optreset" 1>&6
6027if test $ac_cv_have_optreset = yes; then
6028  cat >> confdefs.h <<\EOF
6029#define HAVE_OPTRESET 1
6030EOF
6031
6032fi
6033case "$host_os" in
6034linux*)
6035	cat >> confdefs.h <<\EOF
6036#define HAVE_EXT2_IOCTLS 1
6037EOF
6038
6039	;;
6040esac
6041LINUX_CMT="#"
6042CYGWIN_CMT="#"
6043UNIX_CMT=
6044case "$host_os" in
6045linux*)
6046	LINUX_CMT=
6047	;;
6048cygwin)
6049	CYGWIN_CMT=
6050	UNIX_CMT="#"
6051	EVMS_CMT="#"
6052	;;
6053*)
6054	EVMS_CMT="#"
6055esac
6056
6057
6058
6059case "$host_os" in
6060linux* | gnu*)
6061	if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
6062		root_prefix="";
6063		echo "On $host_os systems, root_prefix defaults to ''"
6064	fi
6065	;;
6066esac
6067case "$host_os" in
6068linux* | gnu*)
6069	if test "$prefix" = NONE ; then
6070		prefix="/usr";
6071		echo "On $host_os systems, prefix defaults to /usr"
6072		if test "$mandir" = '${prefix}/man' ; then
6073			echo "...and mandir defaults to /usr/share/man"
6074			mandir=/usr/share/man
6075		fi
6076	fi
6077;;
6078esac
6079if test "$root_prefix" = NONE ; then
6080	if test "$prefix" = NONE ; then
6081		root_prefix="$ac_default_prefix"
6082	else
6083		root_prefix="$prefix"
6084	fi
6085	root_bindir=$bindir
6086	root_sbindir=$sbindir
6087	root_libdir=$libdir
6088	root_sysconfdir=$sysconfdir
6089else
6090	root_bindir='${root_prefix}/bin'
6091	root_sbindir='${root_prefix}/sbin'
6092	root_libdir='${root_prefix}/lib'
6093	root_sysconfdir='${root_prefix}/etc'
6094fi
6095
6096
6097
6098
6099
6100echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
6101echo "configure:6102: checking whether linker accepts -static" >&5
6102if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
6103  echo $ac_n "(cached) $ac_c" 1>&6
6104else
6105  SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
6106cat > conftest.$ac_ext <<EOF
6107#line 6108 "configure"
6108#include "confdefs.h"
6109#include <stdio.h>
6110int main() {
6111fflush(stdout);
6112; return 0; }
6113EOF
6114if { (eval echo configure:6115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6115  rm -rf conftest*
6116  ac_cv_e2fsprogs_use_static=yes
6117else
6118  echo "configure: failed program was:" >&5
6119  cat conftest.$ac_ext >&5
6120  rm -rf conftest*
6121  ac_cv_e2fsprogs_use_static=no
6122fi
6123rm -f conftest*
6124LDFLAGS=$SAVE_LDFLAGS
6125fi
6126
6127case "$host_os" in
6128solaris2.*)
6129	ac_cv_e2fsprogs_use_static=no	
6130;;
6131esac
6132echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
6133LDFLAG_STATIC=
6134if test $ac_cv_e2fsprogs_use_static = yes; then
6135	LDFLAG_STATIC=-static
6136fi
6137
6138SS_DIR=`cd ${srcdir}/lib/ss; pwd`
6139ET_DIR=`cd ${srcdir}/lib/et; pwd`
6140
6141
6142if test "$cross_compiling" = yes ; then
6143  DO_TEST_SUITE=
6144else
6145  DO_TEST_SUITE=check
6146fi
6147
6148test -d lib || mkdir lib
6149test -d include || mkdir include
6150test -d include/linux || mkdir include/linux
6151test -d include/asm || mkdir include/asm
6152for i in MCONFIG Makefile e2fsprogs.spec \
6153	util/Makefile util/subst.conf util/gen-tarball \
6154	lib/et/Makefile lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile \
6155	lib/uuid/Makefile lib/uuid/uuid_types.h \
6156	lib/blkid/Makefile lib/blkid/blkid_types.h \
6157	lib/evms/Makefile misc/Makefile ext2ed/Makefile e2fsck/Makefile \
6158	debugfs/Makefile tests/Makefile tests/progs/Makefile \
6159	resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
6160	if test -d `dirname ${srcdir}/$i` ; then
6161		outlist="$outlist $i"
6162	fi
6163done
6164trap '' 1 2 15
6165cat > confcache <<\EOF
6166# This file is a shell script that caches the results of configure
6167# tests run on this system so they can be shared between configure
6168# scripts and configure runs.  It is not useful on other systems.
6169# If it contains results you don't want to keep, you may remove or edit it.
6170#
6171# By default, configure uses ./config.cache as the cache file,
6172# creating it if it does not exist already.  You can give configure
6173# the --cache-file=FILE option to use a different cache file; that is
6174# what configure does when it calls configure scripts in
6175# subdirectories, so they share the cache.
6176# Giving --cache-file=/dev/null disables caching, for debugging configure.
6177# config.status only pays attention to the cache file if you give it the
6178# --recheck option to rerun configure.
6179#
6180EOF
6181# The following way of writing the cache mishandles newlines in values,
6182# but we know of no workaround that is simple, portable, and efficient.
6183# So, don't put newlines in cache variables' values.
6184# Ultrix sh set writes to stderr and can't be redirected directly,
6185# and sets the high bit in the cache file unless we assign to the vars.
6186(set) 2>&1 |
6187  case `(ac_space=' '; set | grep ac_space) 2>&1` in
6188  *ac_space=\ *)
6189    # `set' does not quote correctly, so add quotes (double-quote substitution
6190    # turns \\\\ into \\, and sed turns \\ into \).
6191    sed -n \
6192      -e "s/'/'\\\\''/g" \
6193      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6194    ;;
6195  *)
6196    # `set' quotes correctly as required by POSIX, so do not add quotes.
6197    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6198    ;;
6199  esac >> confcache
6200if cmp -s $cache_file confcache; then
6201  :
6202else
6203  if test -w $cache_file; then
6204    echo "updating cache $cache_file"
6205    cat confcache > $cache_file
6206  else
6207    echo "not updating unwritable cache $cache_file"
6208  fi
6209fi
6210rm -f confcache
6211
6212trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6213
6214test "x$prefix" = xNONE && prefix=$ac_default_prefix
6215# Let make expand exec_prefix.
6216test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6217
6218# Any assignment to VPATH causes Sun make to only execute
6219# the first set of double-colon rules, so remove it if not needed.
6220# If there is a colon in the path, we need to keep it.
6221if test "x$srcdir" = x.; then
6222  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
6223fi
6224
6225trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6226
6227# Transform confdefs.h into DEFS.
6228# Protect against shell expansion while executing Makefile rules.
6229# Protect against Makefile macro expansion.
6230cat > conftest.defs <<\EOF
6231s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
6232s%[ 	`~#$^&*(){}\\|;'"<>?]%\\&%g
6233s%\[%\\&%g
6234s%\]%\\&%g
6235s%\$%$$%g
6236EOF
6237DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
6238rm -f conftest.defs
6239
6240
6241# Without the "./", some shells look in PATH for config.status.
6242: ${CONFIG_STATUS=./config.status}
6243
6244echo creating $CONFIG_STATUS
6245rm -f $CONFIG_STATUS
6246cat > $CONFIG_STATUS <<EOF
6247#! /bin/sh
6248# Generated automatically by configure.
6249# Run this file to recreate the current configuration.
6250# This directory was configured as follows,
6251# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6252#
6253# $0 $ac_configure_args
6254#
6255# Compiler output produced by configure, useful for debugging
6256# configure, is in ./config.log if it exists.
6257
6258ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6259for ac_option
6260do
6261  case "\$ac_option" in
6262  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6263    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6264    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6265  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6266    echo "$CONFIG_STATUS generated by autoconf version 2.13"
6267    exit 0 ;;
6268  -help | --help | --hel | --he | --h)
6269    echo "\$ac_cs_usage"; exit 0 ;;
6270  *) echo "\$ac_cs_usage"; exit 1 ;;
6271  esac
6272done
6273
6274ac_given_srcdir=$srcdir
6275ac_given_INSTALL="$INSTALL"
6276
6277trap 'rm -fr `echo "$outlist" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6278EOF
6279cat >> $CONFIG_STATUS <<EOF
6280
6281# Protect against being on the right side of a sed subst in config.status.
6282sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6283 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6284$ac_vpsub
6285$extrasub
6286s%@SHELL@%$SHELL%g
6287s%@CFLAGS@%$CFLAGS%g
6288s%@CPPFLAGS@%$CPPFLAGS%g
6289s%@CXXFLAGS@%$CXXFLAGS%g
6290s%@FFLAGS@%$FFLAGS%g
6291s%@DEFS@%$DEFS%g
6292s%@LDFLAGS@%$LDFLAGS%g
6293s%@LIBS@%$LIBS%g
6294s%@exec_prefix@%$exec_prefix%g
6295s%@prefix@%$prefix%g
6296s%@program_transform_name@%$program_transform_name%g
6297s%@bindir@%$bindir%g
6298s%@sbindir@%$sbindir%g
6299s%@libexecdir@%$libexecdir%g
6300s%@datadir@%$datadir%g
6301s%@sysconfdir@%$sysconfdir%g
6302s%@sharedstatedir@%$sharedstatedir%g
6303s%@localstatedir@%$localstatedir%g
6304s%@libdir@%$libdir%g
6305s%@includedir@%$includedir%g
6306s%@oldincludedir@%$oldincludedir%g
6307s%@infodir@%$infodir%g
6308s%@mandir@%$mandir%g
6309/@MCONFIG@/r $MCONFIG
6310s%@MCONFIG@%%g
6311s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
6312s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
6313s%@E2FSPROGS_DAY@%$E2FSPROGS_DAY%g
6314s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
6315s%@host@%$host%g
6316s%@host_alias@%$host_alias%g
6317s%@host_cpu@%$host_cpu%g
6318s%@host_vendor@%$host_vendor%g
6319s%@host_os@%$host_os%g
6320s%@EVMS_CMT@%$EVMS_CMT%g
6321s%@CC@%$CC%g
6322s%@LD@%$LD%g
6323s%@CPP@%$CPP%g
6324s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
6325s%@HTREE_CMT@%$HTREE_CMT%g
6326s%@HTREE_CLR_CMT@%$HTREE_CLR_CMT%g
6327s%@EVMS_ABI_CODE@%$EVMS_ABI_CODE%g
6328s%@DLL_CMT@%$DLL_CMT%g
6329/@MAKEFILE_DLL@/r $MAKEFILE_DLL
6330s%@MAKEFILE_DLL@%%g
6331s%@ELF_CMT@%$ELF_CMT%g
6332/@MAKEFILE_ELF@/r $MAKEFILE_ELF
6333s%@MAKEFILE_ELF@%%g
6334s%@BSDLIB_CMT@%$BSDLIB_CMT%g
6335/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
6336s%@MAKEFILE_BSDLIB@%%g
6337s%@PROFILE_CMT@%$PROFILE_CMT%g
6338/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
6339s%@MAKEFILE_PROFILE@%%g
6340s%@CHECKER_CMT@%$CHECKER_CMT%g
6341/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
6342s%@MAKEFILE_CHECKER@%%g
6343s%@LIB_EXT@%$LIB_EXT%g
6344s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
6345s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
6346s%@SWAPFS_CMT@%$SWAPFS_CMT%g
6347s%@DEBUGFS_CMT@%$DEBUGFS_CMT%g
6348s%@IMAGER_CMT@%$IMAGER_CMT%g
6349s%@RESIZER_CMT@%$RESIZER_CMT%g
6350s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
6351s%@FSCK_PROG@%$FSCK_PROG%g
6352s%@FSCK_MAN@%$FSCK_MAN%g
6353/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
6354s%@MAKEFILE_LIBRARY@%%g
6355s%@PACKAGE@%$PACKAGE%g
6356s%@VERSION@%$VERSION%g
6357s%@SET_MAKE@%$SET_MAKE%g
6358s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6359s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6360s%@INSTALL_DATA@%$INSTALL_DATA%g
6361s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6362s%@MSGFMT@%$MSGFMT%g
6363s%@GMSGFMT@%$GMSGFMT%g
6364s%@XGETTEXT@%$XGETTEXT%g
6365s%@MSGMERGE@%$MSGMERGE%g
6366s%@RANLIB@%$RANLIB%g
6367s%@ALLOCA@%$ALLOCA%g
6368s%@GLIBC21@%$GLIBC21%g
6369s%@LIBICONV@%$LIBICONV%g
6370s%@LTLIBICONV@%$LTLIBICONV%g
6371s%@INTLBISON@%$INTLBISON%g
6372s%@USE_NLS@%$USE_NLS%g
6373s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
6374s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6375s%@CATOBJEXT@%$CATOBJEXT%g
6376s%@INTLOBJS@%$INTLOBJS%g
6377s%@DATADIRNAME@%$DATADIRNAME%g
6378s%@INSTOBJEXT@%$INSTOBJEXT%g
6379s%@GENCAT@%$GENCAT%g
6380s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
6381s%@INTLLIBS@%$INTLLIBS%g
6382s%@LIBINTL@%$LIBINTL%g
6383s%@LTLIBINTL@%$LTLIBINTL%g
6384s%@POSUB@%$POSUB%g
6385s%@BINARY_TYPE@%$BINARY_TYPE%g
6386s%@LN@%$LN%g
6387s%@LN_S@%$LN_S%g
6388s%@MV@%$MV%g
6389s%@CP@%$CP%g
6390s%@RM@%$RM%g
6391s%@CHMOD@%$CHMOD%g
6392s%@AWK@%$AWK%g
6393s%@SED@%$SED%g
6394s%@PERL@%$PERL%g
6395s%@LDCONFIG@%$LDCONFIG%g
6396s%@build@%$build%g
6397s%@build_alias@%$build_alias%g
6398s%@build_cpu@%$build_cpu%g
6399s%@build_vendor@%$build_vendor%g
6400s%@build_os@%$build_os%g
6401s%@AR@%$AR%g
6402s%@STRIP@%$STRIP%g
6403s%@BUILD_CC@%$BUILD_CC%g
6404s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
6405s%@SIZEOF_INT@%$SIZEOF_INT%g
6406s%@SIZEOF_LONG@%$SIZEOF_LONG%g
6407s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
6408s%@SOCKET_LIB@%$SOCKET_LIB%g
6409s%@DLOPEN_LIB@%$DLOPEN_LIB%g
6410s%@LINUX_CMT@%$LINUX_CMT%g
6411s%@CYGWIN_CMT@%$CYGWIN_CMT%g
6412s%@UNIX_CMT@%$UNIX_CMT%g
6413s%@root_prefix@%$root_prefix%g
6414s%@root_bindir@%$root_bindir%g
6415s%@root_sbindir@%$root_sbindir%g
6416s%@root_libdir@%$root_libdir%g
6417s%@root_sysconfdir@%$root_sysconfdir%g
6418s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
6419s%@SS_DIR@%$SS_DIR%g
6420s%@ET_DIR@%$ET_DIR%g
6421s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
6422
6423CEOF
6424EOF
6425
6426cat >> $CONFIG_STATUS <<\EOF
6427
6428# Split the substitutions into bite-sized pieces for seds with
6429# small command number limits, like on Digital OSF/1 and HP-UX.
6430ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6431ac_file=1 # Number of current file.
6432ac_beg=1 # First line for current file.
6433ac_end=$ac_max_sed_cmds # Line after last line for current file.
6434ac_more_lines=:
6435ac_sed_cmds=""
6436while $ac_more_lines; do
6437  if test $ac_beg -gt 1; then
6438    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6439  else
6440    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6441  fi
6442  if test ! -s conftest.s$ac_file; then
6443    ac_more_lines=false
6444    rm -f conftest.s$ac_file
6445  else
6446    if test -z "$ac_sed_cmds"; then
6447      ac_sed_cmds="sed -f conftest.s$ac_file"
6448    else
6449      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6450    fi
6451    ac_file=`expr $ac_file + 1`
6452    ac_beg=$ac_end
6453    ac_end=`expr $ac_end + $ac_max_sed_cmds`
6454  fi
6455done
6456if test -z "$ac_sed_cmds"; then
6457  ac_sed_cmds=cat
6458fi
6459EOF
6460
6461cat >> $CONFIG_STATUS <<EOF
6462
6463CONFIG_FILES=\${CONFIG_FILES-"$outlist"}
6464EOF
6465cat >> $CONFIG_STATUS <<\EOF
6466for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6467  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6468  case "$ac_file" in
6469  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6470       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6471  *) ac_file_in="${ac_file}.in" ;;
6472  esac
6473
6474  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6475
6476  # Remove last slash and all that follows it.  Not all systems have dirname.
6477  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6478  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6479    # The file is in a subdirectory.
6480    test ! -d "$ac_dir" && mkdir "$ac_dir"
6481    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6482    # A "../" for each directory in $ac_dir_suffix.
6483    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6484  else
6485    ac_dir_suffix= ac_dots=
6486  fi
6487
6488  case "$ac_given_srcdir" in
6489  .)  srcdir=.
6490      if test -z "$ac_dots"; then top_srcdir=.
6491      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6492  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6493  *) # Relative path.
6494    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6495    top_srcdir="$ac_dots$ac_given_srcdir" ;;
6496  esac
6497
6498  case "$ac_given_INSTALL" in
6499  [/$]*) INSTALL="$ac_given_INSTALL" ;;
6500  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6501  esac
6502
6503  echo creating "$ac_file"
6504  rm -f "$ac_file"
6505  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6506  case "$ac_file" in
6507  *Makefile*) ac_comsub="1i\\
6508# $configure_input" ;;
6509  *) ac_comsub= ;;
6510  esac
6511
6512  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6513  sed -e "$ac_comsub
6514s%@configure_input@%$configure_input%g
6515s%@srcdir@%$srcdir%g
6516s%@top_srcdir@%$top_srcdir%g
6517s%@INSTALL@%$INSTALL%g
6518" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6519fi; done
6520rm -f conftest.s*
6521
6522EOF
6523cat >> $CONFIG_STATUS <<EOF
6524# Capture the value of obsolete ALL_LINGUAS because we need it to compute
6525    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
6526    # from automake.
6527    eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
6528    # Capture the value of LINGUAS because we need it to compute CATALOGS.
6529    LINGUAS="${LINGUAS-%UNSET%}"
6530   
6531
6532EOF
6533cat >> $CONFIG_STATUS <<\EOF
6534
6535    for ac_file in $CONFIG_FILES; do
6536      # Support "outfile[:infile[:infile...]]"
6537      case "$ac_file" in
6538        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6539      esac
6540      # PO directories have a Makefile.in generated from Makefile.in.in.
6541      case "$ac_file" in */Makefile.in)
6542        # Adjust a relative srcdir.
6543        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
6544        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
6545        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
6546        # In autoconf-2.13 it is called $ac_given_srcdir.
6547        # In autoconf-2.50 it is called $srcdir.
6548        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
6549        case "$ac_given_srcdir" in
6550          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
6551          /*) top_srcdir="$ac_given_srcdir" ;;
6552          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
6553        esac
6554        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
6555          rm -f "$ac_dir/POTFILES"
6556          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
6557          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
6558          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
6559          # on $ac_dir but don't depend on user-specified configuration
6560          # parameters.
6561          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
6562            # The LINGUAS file contains the set of available languages.
6563            if test -n "$ALL_LINGUAS"; then
6564              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
6565            fi
6566            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
6567            # Hide the ALL_LINGUAS assigment from automake.
6568            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
6569          fi
6570          case "$ac_given_srcdir" in
6571            .) srcdirpre= ;;
6572            *) srcdirpre='$(srcdir)/' ;;
6573          esac
6574          POFILES=
6575          GMOFILES=
6576          UPDATEPOFILES=
6577          DUMMYPOFILES=
6578          for lang in $ALL_LINGUAS; do
6579            POFILES="$POFILES $srcdirpre$lang.po"
6580            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
6581            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
6582            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
6583          done
6584          # CATALOGS depends on both $ac_dir and the user's LINGUAS
6585          # environment variable.
6586          INST_LINGUAS=
6587          if test -n "$ALL_LINGUAS"; then
6588            for presentlang in $ALL_LINGUAS; do
6589              useit=no
6590              if test "%UNSET%" != "$LINGUAS"; then
6591                desiredlanguages="$LINGUAS"
6592              else
6593                desiredlanguages="$ALL_LINGUAS"
6594              fi
6595              for desiredlang in $desiredlanguages; do
6596                # Use the presentlang catalog if desiredlang is
6597                #   a. equal to presentlang, or
6598                #   b. a variant of presentlang (because in this case,
6599                #      presentlang can be used as a fallback for messages
6600                #      which are not translated in the desiredlang catalog).
6601                case "$desiredlang" in
6602                  "$presentlang"*) useit=yes;;
6603                esac
6604              done
6605              if test $useit = yes; then
6606                INST_LINGUAS="$INST_LINGUAS $presentlang"
6607              fi
6608            done
6609          fi
6610          CATALOGS=
6611          if test -n "$INST_LINGUAS"; then
6612            for lang in $INST_LINGUAS; do
6613              CATALOGS="$CATALOGS $lang.gmo"
6614            done
6615          fi
6616          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
6617          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"
6618          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
6619            if test -f "$f"; then
6620              case "$f" in
6621                *.orig | *.bak | *~) ;;
6622                *) cat "$f" >> "$ac_dir/Makefile" ;;
6623              esac
6624            fi
6625          done
6626        fi
6627        ;;
6628      esac
6629    done
6630
6631exit 0
6632EOF
6633chmod +x $CONFIG_STATUS
6634rm -fr confdefs* $ac_clean_files
6635test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6636
6637