configure revision 1917875fcd16428d14eb5a86acf414472bc216f1
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-cc=COMPILER      select compiler to use"
16ac_help="$ac_help
17  --with-linker=LINKER    select linker to use"
18ac_help="$ac_help
19  --with-ccopts=CCOPTS    select compiler command line options"
20ac_help="$ac_help
21  --with-ldopts=LDOPTS    select linker command line options"
22ac_help="$ac_help
23  --with-root-prefix=PREFIX override prefix variable for files to be placed in the root"
24ac_help="$ac_help
25  --enable-compression	  enable EXPERIMENTAL compression support"
26ac_help="$ac_help
27  --enable-dll-shlibs	  select DLL libraries"
28ac_help="$ac_help
29  --enable-elf-shlibs	  select ELF shared libraries"
30ac_help="$ac_help
31  --enable-bsd-shlibs	  select BSD shared libraries"
32ac_help="$ac_help
33  --enable-nls           Turn on Native Language Support"
34ac_help="$ac_help
35  --with-included-gettext use the GNU gettext library included here"
36ac_help="$ac_help
37  --with-catgets          use catgets functions if available"
38ac_help="$ac_help
39  --enable-profile	  build profiling libraries"
40ac_help="$ac_help
41  --enable-checker	  build checker libraries"
42ac_help="$ac_help
43  --enable-gcc-wall	  enable GCC anal warnings (DON'T USE IN PRODUCTION)"
44ac_help="$ac_help
45  --enable-dynamic-e2fsck build e2fsck dynamically"
46ac_help="$ac_help
47  --enable-fsck           build fsck wrapper program"
48ac_help="$ac_help
49  --enable-old-bitops	  Use old (non-standard but native) bitmask operations"
50
51# Initialize some variables set by options.
52# The variables have the same names as the options, with
53# dashes changed to underlines.
54build=NONE
55cache_file=./config.cache
56exec_prefix=NONE
57host=NONE
58no_create=
59nonopt=NONE
60no_recursion=
61prefix=NONE
62program_prefix=NONE
63program_suffix=NONE
64program_transform_name=s,x,x,
65silent=
66site=
67srcdir=
68target=NONE
69verbose=
70x_includes=NONE
71x_libraries=NONE
72bindir='${exec_prefix}/bin'
73sbindir='${exec_prefix}/sbin'
74libexecdir='${exec_prefix}/libexec'
75datadir='${prefix}/share'
76sysconfdir='${prefix}/etc'
77sharedstatedir='${prefix}/com'
78localstatedir='${prefix}/var'
79libdir='${exec_prefix}/lib'
80includedir='${prefix}/include'
81oldincludedir='/usr/include'
82infodir='${prefix}/info'
83mandir='${prefix}/man'
84
85# Initialize some other variables.
86subdirs=
87MFLAGS= MAKEFLAGS=
88SHELL=${CONFIG_SHELL-/bin/sh}
89# Maximum number of lines to put in a shell here document.
90ac_max_here_lines=12
91
92ac_prev=
93for ac_option
94do
95
96  # If the previous option needs an argument, assign it.
97  if test -n "$ac_prev"; then
98    eval "$ac_prev=\$ac_option"
99    ac_prev=
100    continue
101  fi
102
103  case "$ac_option" in
104  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
105  *) ac_optarg= ;;
106  esac
107
108  # Accept the important Cygnus configure options, so we can diagnose typos.
109
110  case "$ac_option" in
111
112  -bindir | --bindir | --bindi | --bind | --bin | --bi)
113    ac_prev=bindir ;;
114  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
115    bindir="$ac_optarg" ;;
116
117  -build | --build | --buil | --bui | --bu)
118    ac_prev=build ;;
119  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
120    build="$ac_optarg" ;;
121
122  -cache-file | --cache-file | --cache-fil | --cache-fi \
123  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
124    ac_prev=cache_file ;;
125  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
126  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
127    cache_file="$ac_optarg" ;;
128
129  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
130    ac_prev=datadir ;;
131  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
132  | --da=*)
133    datadir="$ac_optarg" ;;
134
135  -disable-* | --disable-*)
136    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
137    # Reject names that are not valid shell variable names.
138    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
139      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
140    fi
141    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
142    eval "enable_${ac_feature}=no" ;;
143
144  -enable-* | --enable-*)
145    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
146    # Reject names that are not valid shell variable names.
147    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
148      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
149    fi
150    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
151    case "$ac_option" in
152      *=*) ;;
153      *) ac_optarg=yes ;;
154    esac
155    eval "enable_${ac_feature}='$ac_optarg'" ;;
156
157  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
158  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
159  | --exec | --exe | --ex)
160    ac_prev=exec_prefix ;;
161  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
162  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
163  | --exec=* | --exe=* | --ex=*)
164    exec_prefix="$ac_optarg" ;;
165
166  -gas | --gas | --ga | --g)
167    # Obsolete; use --with-gas.
168    with_gas=yes ;;
169
170  -help | --help | --hel | --he)
171    # Omit some internal or obsolete options to make the list less imposing.
172    # This message is too long to be a string in the A/UX 3.1 sh.
173    cat << EOF
174Usage: configure [options] [host]
175Options: [defaults in brackets after descriptions]
176Configuration:
177  --cache-file=FILE       cache test results in FILE
178  --help                  print this message
179  --no-create             do not create output files
180  --quiet, --silent       do not print \`checking...' messages
181  --version               print the version of autoconf that created configure
182Directory and file names:
183  --prefix=PREFIX         install architecture-independent files in PREFIX
184                          [$ac_default_prefix]
185  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
186                          [same as prefix]
187  --bindir=DIR            user executables in DIR [EPREFIX/bin]
188  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
189  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
190  --datadir=DIR           read-only architecture-independent data in DIR
191                          [PREFIX/share]
192  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
193  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
194                          [PREFIX/com]
195  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
196  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
197  --includedir=DIR        C header files in DIR [PREFIX/include]
198  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
199  --infodir=DIR           info documentation in DIR [PREFIX/info]
200  --mandir=DIR            man documentation in DIR [PREFIX/man]
201  --srcdir=DIR            find the sources in DIR [configure dir or ..]
202  --program-prefix=PREFIX prepend PREFIX to installed program names
203  --program-suffix=SUFFIX append SUFFIX to installed program names
204  --program-transform-name=PROGRAM
205                          run sed PROGRAM on installed program names
206EOF
207    cat << EOF
208Host type:
209  --build=BUILD           configure for building on BUILD [BUILD=HOST]
210  --host=HOST             configure for HOST [guessed]
211  --target=TARGET         configure for TARGET [TARGET=HOST]
212Features and packages:
213  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
214  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
215  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
216  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
217  --x-includes=DIR        X include files are in DIR
218  --x-libraries=DIR       X library files are in DIR
219EOF
220    if test -n "$ac_help"; then
221      echo "--enable and --with options recognized:$ac_help"
222    fi
223    exit 0 ;;
224
225  -host | --host | --hos | --ho)
226    ac_prev=host ;;
227  -host=* | --host=* | --hos=* | --ho=*)
228    host="$ac_optarg" ;;
229
230  -includedir | --includedir | --includedi | --included | --include \
231  | --includ | --inclu | --incl | --inc)
232    ac_prev=includedir ;;
233  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
234  | --includ=* | --inclu=* | --incl=* | --inc=*)
235    includedir="$ac_optarg" ;;
236
237  -infodir | --infodir | --infodi | --infod | --info | --inf)
238    ac_prev=infodir ;;
239  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
240    infodir="$ac_optarg" ;;
241
242  -libdir | --libdir | --libdi | --libd)
243    ac_prev=libdir ;;
244  -libdir=* | --libdir=* | --libdi=* | --libd=*)
245    libdir="$ac_optarg" ;;
246
247  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
248  | --libexe | --libex | --libe)
249    ac_prev=libexecdir ;;
250  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
251  | --libexe=* | --libex=* | --libe=*)
252    libexecdir="$ac_optarg" ;;
253
254  -localstatedir | --localstatedir | --localstatedi | --localstated \
255  | --localstate | --localstat | --localsta | --localst \
256  | --locals | --local | --loca | --loc | --lo)
257    ac_prev=localstatedir ;;
258  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
259  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
260  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
261    localstatedir="$ac_optarg" ;;
262
263  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
264    ac_prev=mandir ;;
265  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
266    mandir="$ac_optarg" ;;
267
268  -nfp | --nfp | --nf)
269    # Obsolete; use --without-fp.
270    with_fp=no ;;
271
272  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
273  | --no-cr | --no-c)
274    no_create=yes ;;
275
276  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
277  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
278    no_recursion=yes ;;
279
280  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
281  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
282  | --oldin | --oldi | --old | --ol | --o)
283    ac_prev=oldincludedir ;;
284  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
285  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
286  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
287    oldincludedir="$ac_optarg" ;;
288
289  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
290    ac_prev=prefix ;;
291  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
292    prefix="$ac_optarg" ;;
293
294  -program-prefix | --program-prefix | --program-prefi | --program-pref \
295  | --program-pre | --program-pr | --program-p)
296    ac_prev=program_prefix ;;
297  -program-prefix=* | --program-prefix=* | --program-prefi=* \
298  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
299    program_prefix="$ac_optarg" ;;
300
301  -program-suffix | --program-suffix | --program-suffi | --program-suff \
302  | --program-suf | --program-su | --program-s)
303    ac_prev=program_suffix ;;
304  -program-suffix=* | --program-suffix=* | --program-suffi=* \
305  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
306    program_suffix="$ac_optarg" ;;
307
308  -program-transform-name | --program-transform-name \
309  | --program-transform-nam | --program-transform-na \
310  | --program-transform-n | --program-transform- \
311  | --program-transform | --program-transfor \
312  | --program-transfo | --program-transf \
313  | --program-trans | --program-tran \
314  | --progr-tra | --program-tr | --program-t)
315    ac_prev=program_transform_name ;;
316  -program-transform-name=* | --program-transform-name=* \
317  | --program-transform-nam=* | --program-transform-na=* \
318  | --program-transform-n=* | --program-transform-=* \
319  | --program-transform=* | --program-transfor=* \
320  | --program-transfo=* | --program-transf=* \
321  | --program-trans=* | --program-tran=* \
322  | --progr-tra=* | --program-tr=* | --program-t=*)
323    program_transform_name="$ac_optarg" ;;
324
325  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
326  | -silent | --silent | --silen | --sile | --sil)
327    silent=yes ;;
328
329  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
330    ac_prev=sbindir ;;
331  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
332  | --sbi=* | --sb=*)
333    sbindir="$ac_optarg" ;;
334
335  -sharedstatedir | --sharedstatedir | --sharedstatedi \
336  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
337  | --sharedst | --shareds | --shared | --share | --shar \
338  | --sha | --sh)
339    ac_prev=sharedstatedir ;;
340  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
341  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
342  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
343  | --sha=* | --sh=*)
344    sharedstatedir="$ac_optarg" ;;
345
346  -site | --site | --sit)
347    ac_prev=site ;;
348  -site=* | --site=* | --sit=*)
349    site="$ac_optarg" ;;
350
351  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
352    ac_prev=srcdir ;;
353  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
354    srcdir="$ac_optarg" ;;
355
356  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
357  | --syscon | --sysco | --sysc | --sys | --sy)
358    ac_prev=sysconfdir ;;
359  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
360  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
361    sysconfdir="$ac_optarg" ;;
362
363  -target | --target | --targe | --targ | --tar | --ta | --t)
364    ac_prev=target ;;
365  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
366    target="$ac_optarg" ;;
367
368  -v | -verbose | --verbose | --verbos | --verbo | --verb)
369    verbose=yes ;;
370
371  -version | --version | --versio | --versi | --vers)
372    echo "configure generated by autoconf version 2.13"
373    exit 0 ;;
374
375  -with-* | --with-*)
376    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
377    # Reject names that are not valid shell variable names.
378    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
379      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
380    fi
381    ac_package=`echo $ac_package| sed 's/-/_/g'`
382    case "$ac_option" in
383      *=*) ;;
384      *) ac_optarg=yes ;;
385    esac
386    eval "with_${ac_package}='$ac_optarg'" ;;
387
388  -without-* | --without-*)
389    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
390    # Reject names that are not valid shell variable names.
391    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
392      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
393    fi
394    ac_package=`echo $ac_package| sed 's/-/_/g'`
395    eval "with_${ac_package}=no" ;;
396
397  --x)
398    # Obsolete; use --with-x.
399    with_x=yes ;;
400
401  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
402  | --x-incl | --x-inc | --x-in | --x-i)
403    ac_prev=x_includes ;;
404  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
405  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
406    x_includes="$ac_optarg" ;;
407
408  -x-libraries | --x-libraries | --x-librarie | --x-librari \
409  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
410    ac_prev=x_libraries ;;
411  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
412  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
413    x_libraries="$ac_optarg" ;;
414
415  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
416    ;;
417
418  *)
419    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
420      echo "configure: warning: $ac_option: invalid host type" 1>&2
421    fi
422    if test "x$nonopt" != xNONE; then
423      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
424    fi
425    nonopt="$ac_option"
426    ;;
427
428  esac
429done
430
431if test -n "$ac_prev"; then
432  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
433fi
434
435trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
436
437# File descriptor usage:
438# 0 standard input
439# 1 file creation
440# 2 errors and warnings
441# 3 some systems may open it to /dev/tty
442# 4 used on the Kubota Titan
443# 6 checking for... messages and results
444# 5 compiler messages saved in config.log
445if test "$silent" = yes; then
446  exec 6>/dev/null
447else
448  exec 6>&1
449fi
450exec 5>./config.log
451
452echo "\
453This file contains any messages produced by compilers while
454running configure, to aid debugging if configure makes a mistake.
455" 1>&5
456
457# Strip out --no-create and --no-recursion so they do not pile up.
458# Also quote any args containing shell metacharacters.
459ac_configure_args=
460for ac_arg
461do
462  case "$ac_arg" in
463  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
464  | --no-cr | --no-c) ;;
465  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
466  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
467  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
468  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
469  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
470  esac
471done
472
473# NLS nuisances.
474# Only set these to C if already set.  These must not be set unconditionally
475# because not all systems understand e.g. LANG=C (notably SCO).
476# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
477# Non-C LC_CTYPE values break the ctype check.
478if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
479if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
480if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
481if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
482
483# confdefs.h avoids OS command line length limits that DEFS can exceed.
484rm -rf conftest* confdefs.h
485# AIX cpp loses on an empty file, so make sure it contains at least a newline.
486echo > confdefs.h
487
488# A filename unique to this package, relative to the directory that
489# configure is in, which we can look for to find out if srcdir is correct.
490ac_unique_file=version.h
491
492# Find the source files, if location was not specified.
493if test -z "$srcdir"; then
494  ac_srcdir_defaulted=yes
495  # Try the directory containing this script, then its parent.
496  ac_prog=$0
497  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
498  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
499  srcdir=$ac_confdir
500  if test ! -r $srcdir/$ac_unique_file; then
501    srcdir=..
502  fi
503else
504  ac_srcdir_defaulted=no
505fi
506if test ! -r $srcdir/$ac_unique_file; then
507  if test "$ac_srcdir_defaulted" = yes; then
508    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
509  else
510    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
511  fi
512fi
513srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
514
515# Prefer explicitly selected file to automatically selected ones.
516if test -z "$CONFIG_SITE"; then
517  if test "x$prefix" != xNONE; then
518    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
519  else
520    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
521  fi
522fi
523for ac_site_file in $CONFIG_SITE; do
524  if test -r "$ac_site_file"; then
525    echo "loading site script $ac_site_file"
526    . "$ac_site_file"
527  fi
528done
529
530if test -r "$cache_file"; then
531  echo "loading cache $cache_file"
532  . $cache_file
533else
534  echo "creating cache $cache_file"
535  > $cache_file
536fi
537
538ac_ext=c
539# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
540ac_cpp='$CPP $CPPFLAGS'
541ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
542ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
543cross_compiling=$ac_cv_prog_cc_cross
544
545ac_exeext=
546ac_objext=o
547if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
548  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
549  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
550    ac_n= ac_c='
551' ac_t='	'
552  else
553    ac_n=-n ac_c= ac_t=
554  fi
555else
556  ac_n= ac_c='\c' ac_t=
557fi
558
559
560
561MCONFIG=./MCONFIG
562
563BINARY_TYPE=bin
564E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
565	| awk '{print $3}' | tr \" " " | awk '{print $1}'`
566DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
567	| tr \" " "`
568MONTH=`echo $DATE | awk -F- '{print $2}'`
569YEAR=`echo $DATE | awk -F- '{print $3}'`
570
571if expr $YEAR ">" 1900 > /dev/null ; then
572	E2FSPROGS_YEAR=$YEAR
573elif expr $YEAR ">" 90 >/dev/null ; then
574	E2FSPROGS_YEAR=19$YEAR
575else
576	E2FSPROGS_YEAR=20$YEAR
577fi
578
579case $MONTH in
580Jan)	E2FSPROGS_MONTH="January" ;;
581Feb)	E2FSPROGS_MONTH="February" ;;
582Mar)	E2FSPROGS_MONTH="March" ;;
583Apr)	E2FSPROGS_MONTH="April" ;;
584May)	E2FSPROGS_MONTH="May" ;;
585Jun)	E2FSPROGS_MONTH="June" ;;
586Jul)	E2FSPROGS_MONTH="July" ;;
587Aug)	E2FSPROGS_MONTH="August" ;;
588Sep)	E2FSPROGS_MONTH="September" ;;
589Oct)	E2FSPROGS_MONTH="October" ;;
590Nov)	E2FSPROGS_MONTH="November" ;;
591Dec)	E2FSPROGS_MONTH="December" ;;
592*)	echo "Unknown month $MONTH??" ;;
593esac
594
595unset DATE MONTH YEAR
596echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
597echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
598
599
600
601
602ac_aux_dir=
603for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
604  if test -f $ac_dir/install-sh; then
605    ac_aux_dir=$ac_dir
606    ac_install_sh="$ac_aux_dir/install-sh -c"
607    break
608  elif test -f $ac_dir/install.sh; then
609    ac_aux_dir=$ac_dir
610    ac_install_sh="$ac_aux_dir/install.sh -c"
611    break
612  fi
613done
614if test -z "$ac_aux_dir"; then
615  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
616fi
617ac_config_guess=$ac_aux_dir/config.guess
618ac_config_sub=$ac_aux_dir/config.sub
619ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
620
621
622# Make sure we can run config.sub.
623if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
624else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
625fi
626
627echo $ac_n "checking host system type""... $ac_c" 1>&6
628echo "configure:629: checking host system type" >&5
629
630host_alias=$host
631case "$host_alias" in
632NONE)
633  case $nonopt in
634  NONE)
635    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
636    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
637    fi ;;
638  *) host_alias=$nonopt ;;
639  esac ;;
640esac
641
642host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
643host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
644host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
645host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
646echo "$ac_t""$host" 1>&6
647
648# Check whether --with-cc or --without-cc was given.
649if test "${with_cc+set}" = set; then
650  withval="$with_cc"
651  echo "$ac_t""CC=$withval" 1>&6
652CC=$withval
653else
654  if test -z "$CC" ; then CC=cc; fi
655echo "$ac_t""CC defaults to $CC" 1>&6
656fi
657export CC
658
659# Extract the first word of "gcc", so it can be a program name with args.
660set dummy gcc; ac_word=$2
661echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
662echo "configure:663: checking for $ac_word" >&5
663if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
664  echo $ac_n "(cached) $ac_c" 1>&6
665else
666  if test -n "$CC"; then
667  ac_cv_prog_CC="$CC" # Let the user override the test.
668else
669  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
670  ac_dummy="$PATH"
671  for ac_dir in $ac_dummy; do
672    test -z "$ac_dir" && ac_dir=.
673    if test -f $ac_dir/$ac_word; then
674      ac_cv_prog_CC="gcc"
675      break
676    fi
677  done
678  IFS="$ac_save_ifs"
679fi
680fi
681CC="$ac_cv_prog_CC"
682if test -n "$CC"; then
683  echo "$ac_t""$CC" 1>&6
684else
685  echo "$ac_t""no" 1>&6
686fi
687
688if test -z "$CC"; then
689  # Extract the first word of "cc", so it can be a program name with args.
690set dummy cc; ac_word=$2
691echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
692echo "configure:693: checking for $ac_word" >&5
693if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
694  echo $ac_n "(cached) $ac_c" 1>&6
695else
696  if test -n "$CC"; then
697  ac_cv_prog_CC="$CC" # Let the user override the test.
698else
699  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
700  ac_prog_rejected=no
701  ac_dummy="$PATH"
702  for ac_dir in $ac_dummy; do
703    test -z "$ac_dir" && ac_dir=.
704    if test -f $ac_dir/$ac_word; then
705      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
706        ac_prog_rejected=yes
707	continue
708      fi
709      ac_cv_prog_CC="cc"
710      break
711    fi
712  done
713  IFS="$ac_save_ifs"
714if test $ac_prog_rejected = yes; then
715  # We found a bogon in the path, so make sure we never use it.
716  set dummy $ac_cv_prog_CC
717  shift
718  if test $# -gt 0; then
719    # We chose a different compiler from the bogus one.
720    # However, it has the same basename, so the bogon will be chosen
721    # first if we set CC to just the basename; use the full file name.
722    shift
723    set dummy "$ac_dir/$ac_word" "$@"
724    shift
725    ac_cv_prog_CC="$@"
726  fi
727fi
728fi
729fi
730CC="$ac_cv_prog_CC"
731if test -n "$CC"; then
732  echo "$ac_t""$CC" 1>&6
733else
734  echo "$ac_t""no" 1>&6
735fi
736
737  if test -z "$CC"; then
738    case "`uname -s`" in
739    *win32* | *WIN32*)
740      # Extract the first word of "cl", so it can be a program name with args.
741set dummy cl; ac_word=$2
742echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
743echo "configure:744: checking for $ac_word" >&5
744if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
745  echo $ac_n "(cached) $ac_c" 1>&6
746else
747  if test -n "$CC"; then
748  ac_cv_prog_CC="$CC" # Let the user override the test.
749else
750  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
751  ac_dummy="$PATH"
752  for ac_dir in $ac_dummy; do
753    test -z "$ac_dir" && ac_dir=.
754    if test -f $ac_dir/$ac_word; then
755      ac_cv_prog_CC="cl"
756      break
757    fi
758  done
759  IFS="$ac_save_ifs"
760fi
761fi
762CC="$ac_cv_prog_CC"
763if test -n "$CC"; then
764  echo "$ac_t""$CC" 1>&6
765else
766  echo "$ac_t""no" 1>&6
767fi
768 ;;
769    esac
770  fi
771  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
772fi
773
774echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
775echo "configure:776: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
776
777ac_ext=c
778# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
779ac_cpp='$CPP $CPPFLAGS'
780ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
781ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
782cross_compiling=$ac_cv_prog_cc_cross
783
784cat > conftest.$ac_ext << EOF
785
786#line 787 "configure"
787#include "confdefs.h"
788
789main(){return(0);}
790EOF
791if { (eval echo configure:792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
792  ac_cv_prog_cc_works=yes
793  # If we can't run a trivial program, we are probably using a cross compiler.
794  if (./conftest; exit) 2>/dev/null; then
795    ac_cv_prog_cc_cross=no
796  else
797    ac_cv_prog_cc_cross=yes
798  fi
799else
800  echo "configure: failed program was:" >&5
801  cat conftest.$ac_ext >&5
802  ac_cv_prog_cc_works=no
803fi
804rm -fr conftest*
805ac_ext=c
806# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
807ac_cpp='$CPP $CPPFLAGS'
808ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
809ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
810cross_compiling=$ac_cv_prog_cc_cross
811
812echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
813if test $ac_cv_prog_cc_works = no; then
814  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
815fi
816echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
817echo "configure:818: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
818echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
819cross_compiling=$ac_cv_prog_cc_cross
820
821echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
822echo "configure:823: checking whether we are using GNU C" >&5
823if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
824  echo $ac_n "(cached) $ac_c" 1>&6
825else
826  cat > conftest.c <<EOF
827#ifdef __GNUC__
828  yes;
829#endif
830EOF
831if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
832  ac_cv_prog_gcc=yes
833else
834  ac_cv_prog_gcc=no
835fi
836fi
837
838echo "$ac_t""$ac_cv_prog_gcc" 1>&6
839
840if test $ac_cv_prog_gcc = yes; then
841  GCC=yes
842else
843  GCC=
844fi
845
846ac_test_CFLAGS="${CFLAGS+set}"
847ac_save_CFLAGS="$CFLAGS"
848CFLAGS=
849echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
850echo "configure:851: checking whether ${CC-cc} accepts -g" >&5
851if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
852  echo $ac_n "(cached) $ac_c" 1>&6
853else
854  echo 'void f(){}' > conftest.c
855if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
856  ac_cv_prog_cc_g=yes
857else
858  ac_cv_prog_cc_g=no
859fi
860rm -f conftest*
861
862fi
863
864echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
865if test "$ac_test_CFLAGS" = set; then
866  CFLAGS="$ac_save_CFLAGS"
867elif test $ac_cv_prog_cc_g = yes; then
868  if test "$GCC" = yes; then
869    CFLAGS="-g -O2"
870  else
871    CFLAGS="-g"
872  fi
873else
874  if test "$GCC" = yes; then
875    CFLAGS="-O2"
876  else
877    CFLAGS=
878  fi
879fi
880
881# Check whether --with-linker or --without-linker was given.
882if test "${with_linker+set}" = set; then
883  withval="$with_linker"
884  echo "$ac_t""LD=$withval" 1>&6
885LD=$withval
886else
887  if test -z "$LD" ; then LD=$CC; fi
888echo "$ac_t""LD defaults to $LD" 1>&6
889fi
890export LD
891
892# Check whether --with-ccopts or --without-ccopts was given.
893if test "${with_ccopts+set}" = set; then
894  withval="$with_ccopts"
895  echo "$ac_t""CCOPTS is $withval" 1>&6
896CCOPTS=$withval
897CFLAGS="$CFLAGS $withval"
898else
899  CCOPTS=
900fi
901
902echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
903echo "configure:904: checking how to run the C preprocessor" >&5
904# On Suns, sometimes $CPP names a directory.
905if test -n "$CPP" && test -d "$CPP"; then
906  CPP=
907fi
908if test -z "$CPP"; then
909if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
910  echo $ac_n "(cached) $ac_c" 1>&6
911else
912    # This must be in double quotes, not single quotes, because CPP may get
913  # substituted into the Makefile and "${CC-cc}" will confuse make.
914  CPP="${CC-cc} -E"
915  # On the NeXT, cc -E runs the code through the compiler's parser,
916  # not just through cpp.
917  cat > conftest.$ac_ext <<EOF
918#line 919 "configure"
919#include "confdefs.h"
920#include <assert.h>
921Syntax Error
922EOF
923ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
924{ (eval echo configure:925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
925ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
926if test -z "$ac_err"; then
927  :
928else
929  echo "$ac_err" >&5
930  echo "configure: failed program was:" >&5
931  cat conftest.$ac_ext >&5
932  rm -rf conftest*
933  CPP="${CC-cc} -E -traditional-cpp"
934  cat > conftest.$ac_ext <<EOF
935#line 936 "configure"
936#include "confdefs.h"
937#include <assert.h>
938Syntax Error
939EOF
940ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
941{ (eval echo configure:942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
942ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
943if test -z "$ac_err"; then
944  :
945else
946  echo "$ac_err" >&5
947  echo "configure: failed program was:" >&5
948  cat conftest.$ac_ext >&5
949  rm -rf conftest*
950  CPP="${CC-cc} -nologo -E"
951  cat > conftest.$ac_ext <<EOF
952#line 953 "configure"
953#include "confdefs.h"
954#include <assert.h>
955Syntax Error
956EOF
957ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
958{ (eval echo configure:959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
959ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
960if test -z "$ac_err"; then
961  :
962else
963  echo "$ac_err" >&5
964  echo "configure: failed program was:" >&5
965  cat conftest.$ac_ext >&5
966  rm -rf conftest*
967  CPP=/lib/cpp
968fi
969rm -f conftest*
970fi
971rm -f conftest*
972fi
973rm -f conftest*
974  ac_cv_prog_CPP="$CPP"
975fi
976  CPP="$ac_cv_prog_CPP"
977else
978  ac_cv_prog_CPP="$CPP"
979fi
980echo "$ac_t""$CPP" 1>&6
981
982ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
983echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
984echo "configure:985: checking for linux/fs.h" >&5
985if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
986  echo $ac_n "(cached) $ac_c" 1>&6
987else
988  cat > conftest.$ac_ext <<EOF
989#line 990 "configure"
990#include "confdefs.h"
991#include <linux/fs.h>
992EOF
993ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
994{ (eval echo configure:995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
995ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
996if test -z "$ac_err"; then
997  rm -rf conftest*
998  eval "ac_cv_header_$ac_safe=yes"
999else
1000  echo "$ac_err" >&5
1001  echo "configure: failed program was:" >&5
1002  cat conftest.$ac_ext >&5
1003  rm -rf conftest*
1004  eval "ac_cv_header_$ac_safe=no"
1005fi
1006rm -f conftest*
1007fi
1008if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1009  echo "$ac_t""yes" 1>&6
1010  linux_headers=yes
1011else
1012  echo "$ac_t""no" 1>&6
1013linux_headers=no
1014fi
1015
1016if test "$linux_headers" != yes; then
1017  LINUX_INCLUDE='-I$(top_builddir)/include'
1018fi
1019
1020LIB_EXT=.a
1021STATIC_LIB_EXT=.a
1022PROFILE_LIB_EXT=.a
1023# Check whether --with-ldopts or --without-ldopts was given.
1024if test "${with_ldopts+set}" = set; then
1025  withval="$with_ldopts"
1026  echo "$ac_t""LDFLAGS is $withval" 1>&6
1027LDFLAGS=$withval
1028else
1029  LDFLAGS=
1030fi
1031
1032# Check whether --with-root-prefix or --without-root-prefix was given.
1033if test "${with_root_prefix+set}" = set; then
1034  withval="$with_root_prefix"
1035  root_prefix=$withval
1036else
1037  root_prefix=NONE
1038fi
1039# Check whether --enable-compression or --disable-compression was given.
1040if test "${enable_compression+set}" = set; then
1041  enableval="$enable_compression"
1042  if test "$enableval" = "no"
1043then
1044	echo "Disabling compression support"
1045else
1046	cat >> confdefs.h <<\EOF
1047#define ENABLE_COMPRESSION 1
1048EOF
1049
1050	echo "Enabling compression support"
1051	echo "WARNING: Compression support is experimental"
1052fi
1053
1054else
1055  echo "Disabling compression support by default"
1056
1057fi
1058
1059# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
1060if test "${enable_dll_shlibs+set}" = set; then
1061  enableval="$enable_dll_shlibs"
1062  if test "$enableval" = "no"
1063then
1064	DLL_CMT=#
1065	MAKEFILE_DLL=/dev/null
1066	echo "Disabling DLL shared libraries"
1067else
1068	DLL_CMT=
1069	MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
1070	BINARY_TYPE=dllbin
1071	LIB_EXT=.sa
1072	echo "Enabling DLL shared libraries"
1073fi
1074
1075else
1076  MAKEFILE_DLL=/dev/null
1077DLL_CMT=#
1078echo "Disabling DLL shared libraries by default"
1079
1080fi
1081
1082
1083
1084# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
1085if test "${enable_elf_shlibs+set}" = set; then
1086  enableval="$enable_elf_shlibs"
1087  if test "$enableval" = "no"
1088then
1089	ELF_CMT=#
1090	MAKEFILE_ELF=/dev/null
1091	echo "Disabling ELF shared libraries"
1092else
1093	ELF_CMT=
1094	MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
1095	BINARY_TYPE=elfbin
1096	LIB_EXT=.so
1097	echo "Enabling ELF shared libraries"
1098fi
1099
1100else
1101  MAKEFILE_ELF=/dev/null
1102ELF_CMT=#
1103echo "Disabling ELF shared libraries by default"
1104
1105fi
1106
1107
1108
1109# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
1110if test "${enable_bsd_shlibs+set}" = set; then
1111  enableval="$enable_bsd_shlibs"
1112  if test "$enableval" = "no"
1113then
1114	BSDLIB_CMT=#
1115	MAKEFILE_BSDLIB=/dev/null
1116	echo "Disabling BSD shared libraries"
1117else
1118	BSDLIB_CMT=
1119	MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
1120	LIB_EXT=.so
1121	echo "Enabling BSD shared libraries"
1122fi
1123
1124else
1125  MAKEFILE_BSDLIB=/dev/null
1126BSDLIB_CMT=#
1127echo "Disabling BSD shared libraries by default"
1128
1129fi
1130
1131
1132
1133PACKAGE=e2fsprogs
1134VERSION="$E2FSPROGS_VERSION"
1135cat >> confdefs.h <<EOF
1136#define PACKAGE "$PACKAGE"
1137EOF
1138
1139cat >> confdefs.h <<EOF
1140#define VERSION "$VERSION"
1141EOF
1142
1143
1144
1145
1146ALL_LINGUAS="it nyc"
1147echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1148echo "configure:1149: checking whether ${MAKE-make} sets \${MAKE}" >&5
1149set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1150if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1151  echo $ac_n "(cached) $ac_c" 1>&6
1152else
1153  cat > conftestmake <<\EOF
1154all:
1155	@echo 'ac_maketemp="${MAKE}"'
1156EOF
1157# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1158eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1159if test -n "$ac_maketemp"; then
1160  eval ac_cv_prog_make_${ac_make}_set=yes
1161else
1162  eval ac_cv_prog_make_${ac_make}_set=no
1163fi
1164rm -f conftestmake
1165fi
1166if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1167  echo "$ac_t""yes" 1>&6
1168  SET_MAKE=
1169else
1170  echo "$ac_t""no" 1>&6
1171  SET_MAKE="MAKE=${MAKE-make}"
1172fi
1173
1174# Extract the first word of "ranlib", so it can be a program name with args.
1175set dummy ranlib; ac_word=$2
1176echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1177echo "configure:1178: checking for $ac_word" >&5
1178if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1179  echo $ac_n "(cached) $ac_c" 1>&6
1180else
1181  if test -n "$RANLIB"; then
1182  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1183else
1184  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1185  ac_dummy="$PATH"
1186  for ac_dir in $ac_dummy; do
1187    test -z "$ac_dir" && ac_dir=.
1188    if test -f $ac_dir/$ac_word; then
1189      ac_cv_prog_RANLIB="ranlib"
1190      break
1191    fi
1192  done
1193  IFS="$ac_save_ifs"
1194  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1195fi
1196fi
1197RANLIB="$ac_cv_prog_RANLIB"
1198if test -n "$RANLIB"; then
1199  echo "$ac_t""$RANLIB" 1>&6
1200else
1201  echo "$ac_t""no" 1>&6
1202fi
1203
1204echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1205echo "configure:1206: checking for POSIXized ISC" >&5
1206if test -d /etc/conf/kconfig.d &&
1207  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1208then
1209  echo "$ac_t""yes" 1>&6
1210  ISC=yes # If later tests want to check for ISC.
1211  cat >> confdefs.h <<\EOF
1212#define _POSIX_SOURCE 1
1213EOF
1214
1215  if test "$GCC" = yes; then
1216    CC="$CC -posix"
1217  else
1218    CC="$CC -Xp"
1219  fi
1220else
1221  echo "$ac_t""no" 1>&6
1222  ISC=
1223fi
1224
1225echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1226echo "configure:1227: checking for ANSI C header files" >&5
1227if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1228  echo $ac_n "(cached) $ac_c" 1>&6
1229else
1230  cat > conftest.$ac_ext <<EOF
1231#line 1232 "configure"
1232#include "confdefs.h"
1233#include <stdlib.h>
1234#include <stdarg.h>
1235#include <string.h>
1236#include <float.h>
1237EOF
1238ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1239{ (eval echo configure:1240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1240ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1241if test -z "$ac_err"; then
1242  rm -rf conftest*
1243  ac_cv_header_stdc=yes
1244else
1245  echo "$ac_err" >&5
1246  echo "configure: failed program was:" >&5
1247  cat conftest.$ac_ext >&5
1248  rm -rf conftest*
1249  ac_cv_header_stdc=no
1250fi
1251rm -f conftest*
1252
1253if test $ac_cv_header_stdc = yes; then
1254  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1255cat > conftest.$ac_ext <<EOF
1256#line 1257 "configure"
1257#include "confdefs.h"
1258#include <string.h>
1259EOF
1260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1261  egrep "memchr" >/dev/null 2>&1; then
1262  :
1263else
1264  rm -rf conftest*
1265  ac_cv_header_stdc=no
1266fi
1267rm -f conftest*
1268
1269fi
1270
1271if test $ac_cv_header_stdc = yes; then
1272  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1273cat > conftest.$ac_ext <<EOF
1274#line 1275 "configure"
1275#include "confdefs.h"
1276#include <stdlib.h>
1277EOF
1278if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1279  egrep "free" >/dev/null 2>&1; then
1280  :
1281else
1282  rm -rf conftest*
1283  ac_cv_header_stdc=no
1284fi
1285rm -f conftest*
1286
1287fi
1288
1289if test $ac_cv_header_stdc = yes; then
1290  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1291if test "$cross_compiling" = yes; then
1292  :
1293else
1294  cat > conftest.$ac_ext <<EOF
1295#line 1296 "configure"
1296#include "confdefs.h"
1297#include <ctype.h>
1298#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1299#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1300#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1301int main () { int i; for (i = 0; i < 256; i++)
1302if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1303exit (0); }
1304
1305EOF
1306if { (eval echo configure:1307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1307then
1308  :
1309else
1310  echo "configure: failed program was:" >&5
1311  cat conftest.$ac_ext >&5
1312  rm -fr conftest*
1313  ac_cv_header_stdc=no
1314fi
1315rm -fr conftest*
1316fi
1317
1318fi
1319fi
1320
1321echo "$ac_t""$ac_cv_header_stdc" 1>&6
1322if test $ac_cv_header_stdc = yes; then
1323  cat >> confdefs.h <<\EOF
1324#define STDC_HEADERS 1
1325EOF
1326
1327fi
1328
1329echo $ac_n "checking for working const""... $ac_c" 1>&6
1330echo "configure:1331: checking for working const" >&5
1331if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1332  echo $ac_n "(cached) $ac_c" 1>&6
1333else
1334  cat > conftest.$ac_ext <<EOF
1335#line 1336 "configure"
1336#include "confdefs.h"
1337
1338int main() {
1339
1340/* Ultrix mips cc rejects this.  */
1341typedef int charset[2]; const charset x;
1342/* SunOS 4.1.1 cc rejects this.  */
1343char const *const *ccp;
1344char **p;
1345/* NEC SVR4.0.2 mips cc rejects this.  */
1346struct point {int x, y;};
1347static struct point const zero = {0,0};
1348/* AIX XL C 1.02.0.0 rejects this.
1349   It does not let you subtract one const X* pointer from another in an arm
1350   of an if-expression whose if-part is not a constant expression */
1351const char *g = "string";
1352ccp = &g + (g ? g-g : 0);
1353/* HPUX 7.0 cc rejects these. */
1354++ccp;
1355p = (char**) ccp;
1356ccp = (char const *const *) p;
1357{ /* SCO 3.2v4 cc rejects this.  */
1358  char *t;
1359  char const *s = 0 ? (char *) 0 : (char const *) 0;
1360
1361  *t++ = 0;
1362}
1363{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1364  int x[] = {25, 17};
1365  const int *foo = &x[0];
1366  ++foo;
1367}
1368{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1369  typedef const int *iptr;
1370  iptr p = 0;
1371  ++p;
1372}
1373{ /* AIX XL C 1.02.0.0 rejects this saying
1374     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1375  struct s { int j; const int *ap[3]; };
1376  struct s *b; b->j = 5;
1377}
1378{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1379  const int foo = 10;
1380}
1381
1382; return 0; }
1383EOF
1384if { (eval echo configure:1385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1385  rm -rf conftest*
1386  ac_cv_c_const=yes
1387else
1388  echo "configure: failed program was:" >&5
1389  cat conftest.$ac_ext >&5
1390  rm -rf conftest*
1391  ac_cv_c_const=no
1392fi
1393rm -f conftest*
1394fi
1395
1396echo "$ac_t""$ac_cv_c_const" 1>&6
1397if test $ac_cv_c_const = no; then
1398  cat >> confdefs.h <<\EOF
1399#define const 
1400EOF
1401
1402fi
1403
1404echo $ac_n "checking for inline""... $ac_c" 1>&6
1405echo "configure:1406: checking for inline" >&5
1406if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1407  echo $ac_n "(cached) $ac_c" 1>&6
1408else
1409  ac_cv_c_inline=no
1410for ac_kw in inline __inline__ __inline; do
1411  cat > conftest.$ac_ext <<EOF
1412#line 1413 "configure"
1413#include "confdefs.h"
1414
1415int main() {
1416} $ac_kw foo() {
1417; return 0; }
1418EOF
1419if { (eval echo configure:1420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1420  rm -rf conftest*
1421  ac_cv_c_inline=$ac_kw; break
1422else
1423  echo "configure: failed program was:" >&5
1424  cat conftest.$ac_ext >&5
1425fi
1426rm -f conftest*
1427done
1428
1429fi
1430
1431echo "$ac_t""$ac_cv_c_inline" 1>&6
1432case "$ac_cv_c_inline" in
1433  inline | yes) ;;
1434  no) cat >> confdefs.h <<\EOF
1435#define inline 
1436EOF
1437 ;;
1438  *)  cat >> confdefs.h <<EOF
1439#define inline $ac_cv_c_inline
1440EOF
1441 ;;
1442esac
1443
1444echo $ac_n "checking for off_t""... $ac_c" 1>&6
1445echo "configure:1446: checking for off_t" >&5
1446if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1447  echo $ac_n "(cached) $ac_c" 1>&6
1448else
1449  cat > conftest.$ac_ext <<EOF
1450#line 1451 "configure"
1451#include "confdefs.h"
1452#include <sys/types.h>
1453#if STDC_HEADERS
1454#include <stdlib.h>
1455#include <stddef.h>
1456#endif
1457EOF
1458if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1459  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1460  rm -rf conftest*
1461  ac_cv_type_off_t=yes
1462else
1463  rm -rf conftest*
1464  ac_cv_type_off_t=no
1465fi
1466rm -f conftest*
1467
1468fi
1469echo "$ac_t""$ac_cv_type_off_t" 1>&6
1470if test $ac_cv_type_off_t = no; then
1471  cat >> confdefs.h <<\EOF
1472#define off_t long
1473EOF
1474
1475fi
1476
1477echo $ac_n "checking for size_t""... $ac_c" 1>&6
1478echo "configure:1479: checking for size_t" >&5
1479if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1480  echo $ac_n "(cached) $ac_c" 1>&6
1481else
1482  cat > conftest.$ac_ext <<EOF
1483#line 1484 "configure"
1484#include "confdefs.h"
1485#include <sys/types.h>
1486#if STDC_HEADERS
1487#include <stdlib.h>
1488#include <stddef.h>
1489#endif
1490EOF
1491if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1492  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1493  rm -rf conftest*
1494  ac_cv_type_size_t=yes
1495else
1496  rm -rf conftest*
1497  ac_cv_type_size_t=no
1498fi
1499rm -f conftest*
1500
1501fi
1502echo "$ac_t""$ac_cv_type_size_t" 1>&6
1503if test $ac_cv_type_size_t = no; then
1504  cat >> confdefs.h <<\EOF
1505#define size_t unsigned
1506EOF
1507
1508fi
1509
1510# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1511# for constant arguments.  Useless!
1512echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1513echo "configure:1514: checking for working alloca.h" >&5
1514if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1515  echo $ac_n "(cached) $ac_c" 1>&6
1516else
1517  cat > conftest.$ac_ext <<EOF
1518#line 1519 "configure"
1519#include "confdefs.h"
1520#include <alloca.h>
1521int main() {
1522char *p = alloca(2 * sizeof(int));
1523; return 0; }
1524EOF
1525if { (eval echo configure:1526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1526  rm -rf conftest*
1527  ac_cv_header_alloca_h=yes
1528else
1529  echo "configure: failed program was:" >&5
1530  cat conftest.$ac_ext >&5
1531  rm -rf conftest*
1532  ac_cv_header_alloca_h=no
1533fi
1534rm -f conftest*
1535fi
1536
1537echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1538if test $ac_cv_header_alloca_h = yes; then
1539  cat >> confdefs.h <<\EOF
1540#define HAVE_ALLOCA_H 1
1541EOF
1542
1543fi
1544
1545echo $ac_n "checking for alloca""... $ac_c" 1>&6
1546echo "configure:1547: checking for alloca" >&5
1547if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1548  echo $ac_n "(cached) $ac_c" 1>&6
1549else
1550  cat > conftest.$ac_ext <<EOF
1551#line 1552 "configure"
1552#include "confdefs.h"
1553
1554#ifdef __GNUC__
1555# define alloca __builtin_alloca
1556#else
1557# ifdef _MSC_VER
1558#  include <malloc.h>
1559#  define alloca _alloca
1560# else
1561#  if HAVE_ALLOCA_H
1562#   include <alloca.h>
1563#  else
1564#   ifdef _AIX
1565 #pragma alloca
1566#   else
1567#    ifndef alloca /* predefined by HP cc +Olibcalls */
1568char *alloca ();
1569#    endif
1570#   endif
1571#  endif
1572# endif
1573#endif
1574
1575int main() {
1576char *p = (char *) alloca(1);
1577; return 0; }
1578EOF
1579if { (eval echo configure:1580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1580  rm -rf conftest*
1581  ac_cv_func_alloca_works=yes
1582else
1583  echo "configure: failed program was:" >&5
1584  cat conftest.$ac_ext >&5
1585  rm -rf conftest*
1586  ac_cv_func_alloca_works=no
1587fi
1588rm -f conftest*
1589fi
1590
1591echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1592if test $ac_cv_func_alloca_works = yes; then
1593  cat >> confdefs.h <<\EOF
1594#define HAVE_ALLOCA 1
1595EOF
1596
1597fi
1598
1599if test $ac_cv_func_alloca_works = no; then
1600  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1601  # that cause trouble.  Some versions do not even contain alloca or
1602  # contain a buggy version.  If you still want to use their alloca,
1603  # use ar to extract alloca.o from them instead of compiling alloca.c.
1604  ALLOCA=alloca.${ac_objext}
1605  cat >> confdefs.h <<\EOF
1606#define C_ALLOCA 1
1607EOF
1608
1609
1610echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1611echo "configure:1612: checking whether alloca needs Cray hooks" >&5
1612if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1613  echo $ac_n "(cached) $ac_c" 1>&6
1614else
1615  cat > conftest.$ac_ext <<EOF
1616#line 1617 "configure"
1617#include "confdefs.h"
1618#if defined(CRAY) && ! defined(CRAY2)
1619webecray
1620#else
1621wenotbecray
1622#endif
1623
1624EOF
1625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1626  egrep "webecray" >/dev/null 2>&1; then
1627  rm -rf conftest*
1628  ac_cv_os_cray=yes
1629else
1630  rm -rf conftest*
1631  ac_cv_os_cray=no
1632fi
1633rm -f conftest*
1634
1635fi
1636
1637echo "$ac_t""$ac_cv_os_cray" 1>&6
1638if test $ac_cv_os_cray = yes; then
1639for ac_func in _getb67 GETB67 getb67; do
1640  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1641echo "configure:1642: checking for $ac_func" >&5
1642if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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/* System header to define __stub macros and hopefully few prototypes,
1649    which can conflict with char $ac_func(); below.  */
1650#include <assert.h>
1651/* Override any gcc2 internal prototype to avoid an error.  */
1652/* We use char because int might match the return type of a gcc2
1653    builtin and then its argument prototype would still apply.  */
1654char $ac_func();
1655
1656int main() {
1657
1658/* The GNU C library defines this for functions which it implements
1659    to always fail with ENOSYS.  Some functions are actually named
1660    something starting with __ and the normal name is an alias.  */
1661#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1662choke me
1663#else
1664$ac_func();
1665#endif
1666
1667; return 0; }
1668EOF
1669if { (eval echo configure:1670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1670  rm -rf conftest*
1671  eval "ac_cv_func_$ac_func=yes"
1672else
1673  echo "configure: failed program was:" >&5
1674  cat conftest.$ac_ext >&5
1675  rm -rf conftest*
1676  eval "ac_cv_func_$ac_func=no"
1677fi
1678rm -f conftest*
1679fi
1680
1681if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1682  echo "$ac_t""yes" 1>&6
1683  cat >> confdefs.h <<EOF
1684#define CRAY_STACKSEG_END $ac_func
1685EOF
1686
1687  break
1688else
1689  echo "$ac_t""no" 1>&6
1690fi
1691
1692done
1693fi
1694
1695echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1696echo "configure:1697: checking stack direction for C alloca" >&5
1697if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1698  echo $ac_n "(cached) $ac_c" 1>&6
1699else
1700  if test "$cross_compiling" = yes; then
1701  ac_cv_c_stack_direction=0
1702else
1703  cat > conftest.$ac_ext <<EOF
1704#line 1705 "configure"
1705#include "confdefs.h"
1706find_stack_direction ()
1707{
1708  static char *addr = 0;
1709  auto char dummy;
1710  if (addr == 0)
1711    {
1712      addr = &dummy;
1713      return find_stack_direction ();
1714    }
1715  else
1716    return (&dummy > addr) ? 1 : -1;
1717}
1718main ()
1719{
1720  exit (find_stack_direction() < 0);
1721}
1722EOF
1723if { (eval echo configure:1724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1724then
1725  ac_cv_c_stack_direction=1
1726else
1727  echo "configure: failed program was:" >&5
1728  cat conftest.$ac_ext >&5
1729  rm -fr conftest*
1730  ac_cv_c_stack_direction=-1
1731fi
1732rm -fr conftest*
1733fi
1734
1735fi
1736
1737echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1738cat >> confdefs.h <<EOF
1739#define STACK_DIRECTION $ac_cv_c_stack_direction
1740EOF
1741
1742fi
1743
1744for ac_hdr in unistd.h
1745do
1746ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1747echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1748echo "configure:1749: checking for $ac_hdr" >&5
1749if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1750  echo $ac_n "(cached) $ac_c" 1>&6
1751else
1752  cat > conftest.$ac_ext <<EOF
1753#line 1754 "configure"
1754#include "confdefs.h"
1755#include <$ac_hdr>
1756EOF
1757ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1758{ (eval echo configure:1759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1759ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1760if test -z "$ac_err"; then
1761  rm -rf conftest*
1762  eval "ac_cv_header_$ac_safe=yes"
1763else
1764  echo "$ac_err" >&5
1765  echo "configure: failed program was:" >&5
1766  cat conftest.$ac_ext >&5
1767  rm -rf conftest*
1768  eval "ac_cv_header_$ac_safe=no"
1769fi
1770rm -f conftest*
1771fi
1772if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1773  echo "$ac_t""yes" 1>&6
1774    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1775  cat >> confdefs.h <<EOF
1776#define $ac_tr_hdr 1
1777EOF
1778 
1779else
1780  echo "$ac_t""no" 1>&6
1781fi
1782done
1783
1784for ac_func in getpagesize
1785do
1786echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1787echo "configure:1788: checking for $ac_func" >&5
1788if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1789  echo $ac_n "(cached) $ac_c" 1>&6
1790else
1791  cat > conftest.$ac_ext <<EOF
1792#line 1793 "configure"
1793#include "confdefs.h"
1794/* System header to define __stub macros and hopefully few prototypes,
1795    which can conflict with char $ac_func(); below.  */
1796#include <assert.h>
1797/* Override any gcc2 internal prototype to avoid an error.  */
1798/* We use char because int might match the return type of a gcc2
1799    builtin and then its argument prototype would still apply.  */
1800char $ac_func();
1801
1802int main() {
1803
1804/* The GNU C library defines this for functions which it implements
1805    to always fail with ENOSYS.  Some functions are actually named
1806    something starting with __ and the normal name is an alias.  */
1807#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1808choke me
1809#else
1810$ac_func();
1811#endif
1812
1813; return 0; }
1814EOF
1815if { (eval echo configure:1816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1816  rm -rf conftest*
1817  eval "ac_cv_func_$ac_func=yes"
1818else
1819  echo "configure: failed program was:" >&5
1820  cat conftest.$ac_ext >&5
1821  rm -rf conftest*
1822  eval "ac_cv_func_$ac_func=no"
1823fi
1824rm -f conftest*
1825fi
1826
1827if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1828  echo "$ac_t""yes" 1>&6
1829    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1830  cat >> confdefs.h <<EOF
1831#define $ac_tr_func 1
1832EOF
1833 
1834else
1835  echo "$ac_t""no" 1>&6
1836fi
1837done
1838
1839echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1840echo "configure:1841: checking for working mmap" >&5
1841if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1842  echo $ac_n "(cached) $ac_c" 1>&6
1843else
1844  if test "$cross_compiling" = yes; then
1845  ac_cv_func_mmap_fixed_mapped=no
1846else
1847  cat > conftest.$ac_ext <<EOF
1848#line 1849 "configure"
1849#include "confdefs.h"
1850
1851/* Thanks to Mike Haertel and Jim Avera for this test.
1852   Here is a matrix of mmap possibilities:
1853	mmap private not fixed
1854	mmap private fixed at somewhere currently unmapped
1855	mmap private fixed at somewhere already mapped
1856	mmap shared not fixed
1857	mmap shared fixed at somewhere currently unmapped
1858	mmap shared fixed at somewhere already mapped
1859   For private mappings, we should verify that changes cannot be read()
1860   back from the file, nor mmap's back from the file at a different
1861   address.  (There have been systems where private was not correctly
1862   implemented like the infamous i386 svr4.0, and systems where the
1863   VM page cache was not coherent with the filesystem buffer cache
1864   like early versions of FreeBSD and possibly contemporary NetBSD.)
1865   For shared mappings, we should conversely verify that changes get
1866   propogated back to all the places they're supposed to be.
1867
1868   Grep wants private fixed already mapped.
1869   The main things grep needs to know about mmap are:
1870   * does it exist and is it safe to write into the mmap'd area
1871   * how to use it (BSD variants)  */
1872#include <sys/types.h>
1873#include <fcntl.h>
1874#include <sys/mman.h>
1875
1876/* This mess was copied from the GNU getpagesize.h.  */
1877#ifndef HAVE_GETPAGESIZE
1878# ifdef HAVE_UNISTD_H
1879#  include <unistd.h>
1880# endif
1881
1882/* Assume that all systems that can run configure have sys/param.h.  */
1883# ifndef HAVE_SYS_PARAM_H
1884#  define HAVE_SYS_PARAM_H 1
1885# endif
1886
1887# ifdef _SC_PAGESIZE
1888#  define getpagesize() sysconf(_SC_PAGESIZE)
1889# else /* no _SC_PAGESIZE */
1890#  ifdef HAVE_SYS_PARAM_H
1891#   include <sys/param.h>
1892#   ifdef EXEC_PAGESIZE
1893#    define getpagesize() EXEC_PAGESIZE
1894#   else /* no EXEC_PAGESIZE */
1895#    ifdef NBPG
1896#     define getpagesize() NBPG * CLSIZE
1897#     ifndef CLSIZE
1898#      define CLSIZE 1
1899#     endif /* no CLSIZE */
1900#    else /* no NBPG */
1901#     ifdef NBPC
1902#      define getpagesize() NBPC
1903#     else /* no NBPC */
1904#      ifdef PAGESIZE
1905#       define getpagesize() PAGESIZE
1906#      endif /* PAGESIZE */
1907#     endif /* no NBPC */
1908#    endif /* no NBPG */
1909#   endif /* no EXEC_PAGESIZE */
1910#  else /* no HAVE_SYS_PARAM_H */
1911#   define getpagesize() 8192	/* punt totally */
1912#  endif /* no HAVE_SYS_PARAM_H */
1913# endif /* no _SC_PAGESIZE */
1914
1915#endif /* no HAVE_GETPAGESIZE */
1916
1917#ifdef __cplusplus
1918extern "C" { void *malloc(unsigned); }
1919#else
1920char *malloc();
1921#endif
1922
1923int
1924main()
1925{
1926	char *data, *data2, *data3;
1927	int i, pagesize;
1928	int fd;
1929
1930	pagesize = getpagesize();
1931
1932	/*
1933	 * First, make a file with some known garbage in it.
1934	 */
1935	data = malloc(pagesize);
1936	if (!data)
1937		exit(1);
1938	for (i = 0; i < pagesize; ++i)
1939		*(data + i) = rand();
1940	umask(0);
1941	fd = creat("conftestmmap", 0600);
1942	if (fd < 0)
1943		exit(1);
1944	if (write(fd, data, pagesize) != pagesize)
1945		exit(1);
1946	close(fd);
1947
1948	/*
1949	 * Next, try to mmap the file at a fixed address which
1950	 * already has something else allocated at it.  If we can,
1951	 * also make sure that we see the same garbage.
1952	 */
1953	fd = open("conftestmmap", O_RDWR);
1954	if (fd < 0)
1955		exit(1);
1956	data2 = malloc(2 * pagesize);
1957	if (!data2)
1958		exit(1);
1959	data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1960	if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1961	    MAP_PRIVATE | MAP_FIXED, fd, 0L))
1962		exit(1);
1963	for (i = 0; i < pagesize; ++i)
1964		if (*(data + i) != *(data2 + i))
1965			exit(1);
1966
1967	/*
1968	 * Finally, make sure that changes to the mapped area
1969	 * do not percolate back to the file as seen by read().
1970	 * (This is a bug on some variants of i386 svr4.0.)
1971	 */
1972	for (i = 0; i < pagesize; ++i)
1973		*(data2 + i) = *(data2 + i) + 1;
1974	data3 = malloc(pagesize);
1975	if (!data3)
1976		exit(1);
1977	if (read(fd, data3, pagesize) != pagesize)
1978		exit(1);
1979	for (i = 0; i < pagesize; ++i)
1980		if (*(data + i) != *(data3 + i))
1981			exit(1);
1982	close(fd);
1983	unlink("conftestmmap");
1984	exit(0);
1985}
1986
1987EOF
1988if { (eval echo configure:1989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1989then
1990  ac_cv_func_mmap_fixed_mapped=yes
1991else
1992  echo "configure: failed program was:" >&5
1993  cat conftest.$ac_ext >&5
1994  rm -fr conftest*
1995  ac_cv_func_mmap_fixed_mapped=no
1996fi
1997rm -fr conftest*
1998fi
1999
2000fi
2001
2002echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2003if test $ac_cv_func_mmap_fixed_mapped = yes; then
2004  cat >> confdefs.h <<\EOF
2005#define HAVE_MMAP 1
2006EOF
2007
2008fi
2009
2010                              
2011   for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2012unistd.h sys/param.h
2013do
2014ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2015echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2016echo "configure:2017: checking for $ac_hdr" >&5
2017if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2018  echo $ac_n "(cached) $ac_c" 1>&6
2019else
2020  cat > conftest.$ac_ext <<EOF
2021#line 2022 "configure"
2022#include "confdefs.h"
2023#include <$ac_hdr>
2024EOF
2025ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2026{ (eval echo configure:2027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2027ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2028if test -z "$ac_err"; then
2029  rm -rf conftest*
2030  eval "ac_cv_header_$ac_safe=yes"
2031else
2032  echo "$ac_err" >&5
2033  echo "configure: failed program was:" >&5
2034  cat conftest.$ac_ext >&5
2035  rm -rf conftest*
2036  eval "ac_cv_header_$ac_safe=no"
2037fi
2038rm -f conftest*
2039fi
2040if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2041  echo "$ac_t""yes" 1>&6
2042    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2043  cat >> confdefs.h <<EOF
2044#define $ac_tr_hdr 1
2045EOF
2046 
2047else
2048  echo "$ac_t""no" 1>&6
2049fi
2050done
2051
2052   for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2053strdup __argz_count __argz_stringify __argz_next
2054do
2055echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2056echo "configure:2057: checking for $ac_func" >&5
2057if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2058  echo $ac_n "(cached) $ac_c" 1>&6
2059else
2060  cat > conftest.$ac_ext <<EOF
2061#line 2062 "configure"
2062#include "confdefs.h"
2063/* System header to define __stub macros and hopefully few prototypes,
2064    which can conflict with char $ac_func(); below.  */
2065#include <assert.h>
2066/* Override any gcc2 internal prototype to avoid an error.  */
2067/* We use char because int might match the return type of a gcc2
2068    builtin and then its argument prototype would still apply.  */
2069char $ac_func();
2070
2071int main() {
2072
2073/* The GNU C library defines this for functions which it implements
2074    to always fail with ENOSYS.  Some functions are actually named
2075    something starting with __ and the normal name is an alias.  */
2076#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2077choke me
2078#else
2079$ac_func();
2080#endif
2081
2082; return 0; }
2083EOF
2084if { (eval echo configure:2085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2085  rm -rf conftest*
2086  eval "ac_cv_func_$ac_func=yes"
2087else
2088  echo "configure: failed program was:" >&5
2089  cat conftest.$ac_ext >&5
2090  rm -rf conftest*
2091  eval "ac_cv_func_$ac_func=no"
2092fi
2093rm -f conftest*
2094fi
2095
2096if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2097  echo "$ac_t""yes" 1>&6
2098    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2099  cat >> confdefs.h <<EOF
2100#define $ac_tr_func 1
2101EOF
2102 
2103else
2104  echo "$ac_t""no" 1>&6
2105fi
2106done
2107
2108
2109   if test "${ac_cv_func_stpcpy+set}" != "set"; then
2110     for ac_func in stpcpy
2111do
2112echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2113echo "configure:2114: checking for $ac_func" >&5
2114if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2115  echo $ac_n "(cached) $ac_c" 1>&6
2116else
2117  cat > conftest.$ac_ext <<EOF
2118#line 2119 "configure"
2119#include "confdefs.h"
2120/* System header to define __stub macros and hopefully few prototypes,
2121    which can conflict with char $ac_func(); below.  */
2122#include <assert.h>
2123/* Override any gcc2 internal prototype to avoid an error.  */
2124/* We use char because int might match the return type of a gcc2
2125    builtin and then its argument prototype would still apply.  */
2126char $ac_func();
2127
2128int main() {
2129
2130/* The GNU C library defines this for functions which it implements
2131    to always fail with ENOSYS.  Some functions are actually named
2132    something starting with __ and the normal name is an alias.  */
2133#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2134choke me
2135#else
2136$ac_func();
2137#endif
2138
2139; return 0; }
2140EOF
2141if { (eval echo configure:2142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2142  rm -rf conftest*
2143  eval "ac_cv_func_$ac_func=yes"
2144else
2145  echo "configure: failed program was:" >&5
2146  cat conftest.$ac_ext >&5
2147  rm -rf conftest*
2148  eval "ac_cv_func_$ac_func=no"
2149fi
2150rm -f conftest*
2151fi
2152
2153if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2154  echo "$ac_t""yes" 1>&6
2155    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2156  cat >> confdefs.h <<EOF
2157#define $ac_tr_func 1
2158EOF
2159 
2160else
2161  echo "$ac_t""no" 1>&6
2162fi
2163done
2164
2165   fi
2166   if test "${ac_cv_func_stpcpy}" = "yes"; then
2167     cat >> confdefs.h <<\EOF
2168#define HAVE_STPCPY 1
2169EOF
2170
2171   fi
2172
2173   if test $ac_cv_header_locale_h = yes; then
2174    echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2175echo "configure:2176: checking for LC_MESSAGES" >&5
2176if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2177  echo $ac_n "(cached) $ac_c" 1>&6
2178else
2179  cat > conftest.$ac_ext <<EOF
2180#line 2181 "configure"
2181#include "confdefs.h"
2182#include <locale.h>
2183int main() {
2184return LC_MESSAGES
2185; return 0; }
2186EOF
2187if { (eval echo configure:2188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2188  rm -rf conftest*
2189  am_cv_val_LC_MESSAGES=yes
2190else
2191  echo "configure: failed program was:" >&5
2192  cat conftest.$ac_ext >&5
2193  rm -rf conftest*
2194  am_cv_val_LC_MESSAGES=no
2195fi
2196rm -f conftest*
2197fi
2198
2199echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2200    if test $am_cv_val_LC_MESSAGES = yes; then
2201      cat >> confdefs.h <<\EOF
2202#define HAVE_LC_MESSAGES 1
2203EOF
2204
2205    fi
2206  fi
2207   echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2208echo "configure:2209: checking whether NLS is requested" >&5
2209        # Check whether --enable-nls or --disable-nls was given.
2210if test "${enable_nls+set}" = set; then
2211  enableval="$enable_nls"
2212  USE_NLS=$enableval
2213else
2214  USE_NLS=no
2215fi
2216
2217    echo "$ac_t""$USE_NLS" 1>&6
2218    
2219
2220    USE_INCLUDED_LIBINTL=no
2221
2222        if test "$USE_NLS" = "yes"; then
2223      cat >> confdefs.h <<\EOF
2224#define ENABLE_NLS 1
2225EOF
2226
2227      echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2228echo "configure:2229: checking whether included gettext is requested" >&5
2229      # Check whether --with-included-gettext or --without-included-gettext was given.
2230if test "${with_included_gettext+set}" = set; then
2231  withval="$with_included_gettext"
2232  nls_cv_force_use_gnu_gettext=$withval
2233else
2234  nls_cv_force_use_gnu_gettext=no
2235fi
2236
2237      echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2238
2239      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2240      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2241                        		nls_cv_header_intl=
2242	nls_cv_header_libgt=
2243	CATOBJEXT=NONE
2244
2245	ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2246echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2247echo "configure:2248: checking for libintl.h" >&5
2248if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2249  echo $ac_n "(cached) $ac_c" 1>&6
2250else
2251  cat > conftest.$ac_ext <<EOF
2252#line 2253 "configure"
2253#include "confdefs.h"
2254#include <libintl.h>
2255EOF
2256ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2257{ (eval echo configure:2258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2258ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2259if test -z "$ac_err"; then
2260  rm -rf conftest*
2261  eval "ac_cv_header_$ac_safe=yes"
2262else
2263  echo "$ac_err" >&5
2264  echo "configure: failed program was:" >&5
2265  cat conftest.$ac_ext >&5
2266  rm -rf conftest*
2267  eval "ac_cv_header_$ac_safe=no"
2268fi
2269rm -f conftest*
2270fi
2271if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2272  echo "$ac_t""yes" 1>&6
2273  echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2274echo "configure:2275: checking for gettext in libc" >&5
2275if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2276  echo $ac_n "(cached) $ac_c" 1>&6
2277else
2278  cat > conftest.$ac_ext <<EOF
2279#line 2280 "configure"
2280#include "confdefs.h"
2281#include <libintl.h>
2282int main() {
2283return (int) gettext ("")
2284; return 0; }
2285EOF
2286if { (eval echo configure:2287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2287  rm -rf conftest*
2288  gt_cv_func_gettext_libc=yes
2289else
2290  echo "configure: failed program was:" >&5
2291  cat conftest.$ac_ext >&5
2292  rm -rf conftest*
2293  gt_cv_func_gettext_libc=no
2294fi
2295rm -f conftest*
2296fi
2297
2298echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2299
2300	   if test "$gt_cv_func_gettext_libc" != "yes"; then
2301	     echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2302echo "configure:2303: checking for bindtextdomain in -lintl" >&5
2303ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2304if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2305  echo $ac_n "(cached) $ac_c" 1>&6
2306else
2307  ac_save_LIBS="$LIBS"
2308LIBS="-lintl  $LIBS"
2309cat > conftest.$ac_ext <<EOF
2310#line 2311 "configure"
2311#include "confdefs.h"
2312/* Override any gcc2 internal prototype to avoid an error.  */
2313/* We use char because int might match the return type of a gcc2
2314    builtin and then its argument prototype would still apply.  */
2315char bindtextdomain();
2316
2317int main() {
2318bindtextdomain()
2319; return 0; }
2320EOF
2321if { (eval echo configure:2322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2322  rm -rf conftest*
2323  eval "ac_cv_lib_$ac_lib_var=yes"
2324else
2325  echo "configure: failed program was:" >&5
2326  cat conftest.$ac_ext >&5
2327  rm -rf conftest*
2328  eval "ac_cv_lib_$ac_lib_var=no"
2329fi
2330rm -f conftest*
2331LIBS="$ac_save_LIBS"
2332
2333fi
2334if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2335  echo "$ac_t""yes" 1>&6
2336  echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2337echo "configure:2338: checking for gettext in libintl" >&5
2338if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2339  echo $ac_n "(cached) $ac_c" 1>&6
2340else
2341  echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2342echo "configure:2343: checking for gettext in -lintl" >&5
2343ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2344if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2345  echo $ac_n "(cached) $ac_c" 1>&6
2346else
2347  ac_save_LIBS="$LIBS"
2348LIBS="-lintl  $LIBS"
2349cat > conftest.$ac_ext <<EOF
2350#line 2351 "configure"
2351#include "confdefs.h"
2352/* Override any gcc2 internal prototype to avoid an error.  */
2353/* We use char because int might match the return type of a gcc2
2354    builtin and then its argument prototype would still apply.  */
2355char gettext();
2356
2357int main() {
2358gettext()
2359; return 0; }
2360EOF
2361if { (eval echo configure:2362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2362  rm -rf conftest*
2363  eval "ac_cv_lib_$ac_lib_var=yes"
2364else
2365  echo "configure: failed program was:" >&5
2366  cat conftest.$ac_ext >&5
2367  rm -rf conftest*
2368  eval "ac_cv_lib_$ac_lib_var=no"
2369fi
2370rm -f conftest*
2371LIBS="$ac_save_LIBS"
2372
2373fi
2374if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2375  echo "$ac_t""yes" 1>&6
2376  gt_cv_func_gettext_libintl=yes
2377else
2378  echo "$ac_t""no" 1>&6
2379gt_cv_func_gettext_libintl=no
2380fi
2381
2382fi
2383
2384echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2385else
2386  echo "$ac_t""no" 1>&6
2387fi
2388
2389	   fi
2390
2391	   if test "$gt_cv_func_gettext_libc" = "yes" \
2392	      || test "$gt_cv_func_gettext_libintl" = "yes"; then
2393	      cat >> confdefs.h <<\EOF
2394#define HAVE_GETTEXT 1
2395EOF
2396
2397	      # Extract the first word of "msgfmt", so it can be a program name with args.
2398set dummy msgfmt; ac_word=$2
2399echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2400echo "configure:2401: checking for $ac_word" >&5
2401if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2402  echo $ac_n "(cached) $ac_c" 1>&6
2403else
2404  case "$MSGFMT" in
2405  /*)
2406  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2407  ;;
2408  *)
2409  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2410  for ac_dir in $PATH; do
2411    test -z "$ac_dir" && ac_dir=.
2412    if test -f $ac_dir/$ac_word; then
2413      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2414	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2415	break
2416      fi
2417    fi
2418  done
2419  IFS="$ac_save_ifs"
2420  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2421  ;;
2422esac
2423fi
2424MSGFMT="$ac_cv_path_MSGFMT"
2425if test -n "$MSGFMT"; then
2426  echo "$ac_t""$MSGFMT" 1>&6
2427else
2428  echo "$ac_t""no" 1>&6
2429fi
2430	      if test "$MSGFMT" != "no"; then
2431		for ac_func in dcgettext
2432do
2433echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2434echo "configure:2435: checking for $ac_func" >&5
2435if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2436  echo $ac_n "(cached) $ac_c" 1>&6
2437else
2438  cat > conftest.$ac_ext <<EOF
2439#line 2440 "configure"
2440#include "confdefs.h"
2441/* System header to define __stub macros and hopefully few prototypes,
2442    which can conflict with char $ac_func(); below.  */
2443#include <assert.h>
2444/* Override any gcc2 internal prototype to avoid an error.  */
2445/* We use char because int might match the return type of a gcc2
2446    builtin and then its argument prototype would still apply.  */
2447char $ac_func();
2448
2449int main() {
2450
2451/* The GNU C library defines this for functions which it implements
2452    to always fail with ENOSYS.  Some functions are actually named
2453    something starting with __ and the normal name is an alias.  */
2454#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2455choke me
2456#else
2457$ac_func();
2458#endif
2459
2460; return 0; }
2461EOF
2462if { (eval echo configure:2463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2463  rm -rf conftest*
2464  eval "ac_cv_func_$ac_func=yes"
2465else
2466  echo "configure: failed program was:" >&5
2467  cat conftest.$ac_ext >&5
2468  rm -rf conftest*
2469  eval "ac_cv_func_$ac_func=no"
2470fi
2471rm -f conftest*
2472fi
2473
2474if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2475  echo "$ac_t""yes" 1>&6
2476    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2477  cat >> confdefs.h <<EOF
2478#define $ac_tr_func 1
2479EOF
2480 
2481else
2482  echo "$ac_t""no" 1>&6
2483fi
2484done
2485
2486		# Extract the first word of "gmsgfmt", so it can be a program name with args.
2487set dummy gmsgfmt; ac_word=$2
2488echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2489echo "configure:2490: checking for $ac_word" >&5
2490if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2491  echo $ac_n "(cached) $ac_c" 1>&6
2492else
2493  case "$GMSGFMT" in
2494  /*)
2495  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2496  ;;
2497  ?:/*)			 
2498  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2499  ;;
2500  *)
2501  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2502  ac_dummy="$PATH"
2503  for ac_dir in $ac_dummy; do 
2504    test -z "$ac_dir" && ac_dir=.
2505    if test -f $ac_dir/$ac_word; then
2506      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2507      break
2508    fi
2509  done
2510  IFS="$ac_save_ifs"
2511  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2512  ;;
2513esac
2514fi
2515GMSGFMT="$ac_cv_path_GMSGFMT"
2516if test -n "$GMSGFMT"; then
2517  echo "$ac_t""$GMSGFMT" 1>&6
2518else
2519  echo "$ac_t""no" 1>&6
2520fi
2521
2522		# Extract the first word of "xgettext", so it can be a program name with args.
2523set dummy xgettext; ac_word=$2
2524echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2525echo "configure:2526: checking for $ac_word" >&5
2526if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2527  echo $ac_n "(cached) $ac_c" 1>&6
2528else
2529  case "$XGETTEXT" in
2530  /*)
2531  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2532  ;;
2533  *)
2534  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2535  for ac_dir in $PATH; do
2536    test -z "$ac_dir" && ac_dir=.
2537    if test -f $ac_dir/$ac_word; then
2538      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2539	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2540	break
2541      fi
2542    fi
2543  done
2544  IFS="$ac_save_ifs"
2545  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2546  ;;
2547esac
2548fi
2549XGETTEXT="$ac_cv_path_XGETTEXT"
2550if test -n "$XGETTEXT"; then
2551  echo "$ac_t""$XGETTEXT" 1>&6
2552else
2553  echo "$ac_t""no" 1>&6
2554fi
2555
2556		cat > conftest.$ac_ext <<EOF
2557#line 2558 "configure"
2558#include "confdefs.h"
2559
2560int main() {
2561extern int _nl_msg_cat_cntr;
2562			       return _nl_msg_cat_cntr
2563; return 0; }
2564EOF
2565if { (eval echo configure:2566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2566  rm -rf conftest*
2567  CATOBJEXT=.gmo
2568		   DATADIRNAME=share
2569else
2570  echo "configure: failed program was:" >&5
2571  cat conftest.$ac_ext >&5
2572  rm -rf conftest*
2573  CATOBJEXT=.mo
2574		   DATADIRNAME=lib
2575fi
2576rm -f conftest*
2577		INSTOBJEXT=.mo
2578	      fi
2579	    fi
2580	
2581else
2582  echo "$ac_t""no" 1>&6
2583fi
2584
2585
2586        if test "$CATOBJEXT" = "NONE"; then
2587	  echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
2588echo "configure:2589: checking whether catgets can be used" >&5
2589	  # Check whether --with-catgets or --without-catgets was given.
2590if test "${with_catgets+set}" = set; then
2591  withval="$with_catgets"
2592  nls_cv_use_catgets=$withval
2593else
2594  nls_cv_use_catgets=no
2595fi
2596
2597	  echo "$ac_t""$nls_cv_use_catgets" 1>&6
2598
2599	  if test "$nls_cv_use_catgets" = "yes"; then
2600	    	    echo $ac_n "checking for main in -li""... $ac_c" 1>&6
2601echo "configure:2602: checking for main in -li" >&5
2602ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
2603if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2604  echo $ac_n "(cached) $ac_c" 1>&6
2605else
2606  ac_save_LIBS="$LIBS"
2607LIBS="-li  $LIBS"
2608cat > conftest.$ac_ext <<EOF
2609#line 2610 "configure"
2610#include "confdefs.h"
2611
2612int main() {
2613main()
2614; return 0; }
2615EOF
2616if { (eval echo configure:2617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2617  rm -rf conftest*
2618  eval "ac_cv_lib_$ac_lib_var=yes"
2619else
2620  echo "configure: failed program was:" >&5
2621  cat conftest.$ac_ext >&5
2622  rm -rf conftest*
2623  eval "ac_cv_lib_$ac_lib_var=no"
2624fi
2625rm -f conftest*
2626LIBS="$ac_save_LIBS"
2627
2628fi
2629if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2630  echo "$ac_t""yes" 1>&6
2631    ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2632    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2633  cat >> confdefs.h <<EOF
2634#define $ac_tr_lib 1
2635EOF
2636
2637  LIBS="-li $LIBS"
2638
2639else
2640  echo "$ac_t""no" 1>&6
2641fi
2642
2643	    echo $ac_n "checking for catgets""... $ac_c" 1>&6
2644echo "configure:2645: checking for catgets" >&5
2645if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2646  echo $ac_n "(cached) $ac_c" 1>&6
2647else
2648  cat > conftest.$ac_ext <<EOF
2649#line 2650 "configure"
2650#include "confdefs.h"
2651/* System header to define __stub macros and hopefully few prototypes,
2652    which can conflict with char catgets(); below.  */
2653#include <assert.h>
2654/* Override any gcc2 internal prototype to avoid an error.  */
2655/* We use char because int might match the return type of a gcc2
2656    builtin and then its argument prototype would still apply.  */
2657char catgets();
2658
2659int main() {
2660
2661/* The GNU C library defines this for functions which it implements
2662    to always fail with ENOSYS.  Some functions are actually named
2663    something starting with __ and the normal name is an alias.  */
2664#if defined (__stub_catgets) || defined (__stub___catgets)
2665choke me
2666#else
2667catgets();
2668#endif
2669
2670; return 0; }
2671EOF
2672if { (eval echo configure:2673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2673  rm -rf conftest*
2674  eval "ac_cv_func_catgets=yes"
2675else
2676  echo "configure: failed program was:" >&5
2677  cat conftest.$ac_ext >&5
2678  rm -rf conftest*
2679  eval "ac_cv_func_catgets=no"
2680fi
2681rm -f conftest*
2682fi
2683
2684if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
2685  echo "$ac_t""yes" 1>&6
2686  cat >> confdefs.h <<\EOF
2687#define HAVE_CATGETS 1
2688EOF
2689
2690	       INTLOBJS="\$(CATOBJS)"
2691	       # Extract the first word of "gencat", so it can be a program name with args.
2692set dummy gencat; ac_word=$2
2693echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2694echo "configure:2695: checking for $ac_word" >&5
2695if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
2696  echo $ac_n "(cached) $ac_c" 1>&6
2697else
2698  case "$GENCAT" in
2699  /*)
2700  ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
2701  ;;
2702  ?:/*)			 
2703  ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
2704  ;;
2705  *)
2706  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2707  ac_dummy="$PATH"
2708  for ac_dir in $ac_dummy; do 
2709    test -z "$ac_dir" && ac_dir=.
2710    if test -f $ac_dir/$ac_word; then
2711      ac_cv_path_GENCAT="$ac_dir/$ac_word"
2712      break
2713    fi
2714  done
2715  IFS="$ac_save_ifs"
2716  test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
2717  ;;
2718esac
2719fi
2720GENCAT="$ac_cv_path_GENCAT"
2721if test -n "$GENCAT"; then
2722  echo "$ac_t""$GENCAT" 1>&6
2723else
2724  echo "$ac_t""no" 1>&6
2725fi
2726	       if test "$GENCAT" != "no"; then
2727		 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2728set dummy gmsgfmt; ac_word=$2
2729echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2730echo "configure:2731: checking for $ac_word" >&5
2731if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2732  echo $ac_n "(cached) $ac_c" 1>&6
2733else
2734  case "$GMSGFMT" in
2735  /*)
2736  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2737  ;;
2738  ?:/*)			 
2739  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2740  ;;
2741  *)
2742  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2743  ac_dummy="$PATH"
2744  for ac_dir in $ac_dummy; do 
2745    test -z "$ac_dir" && ac_dir=.
2746    if test -f $ac_dir/$ac_word; then
2747      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2748      break
2749    fi
2750  done
2751  IFS="$ac_save_ifs"
2752  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2753  ;;
2754esac
2755fi
2756GMSGFMT="$ac_cv_path_GMSGFMT"
2757if test -n "$GMSGFMT"; then
2758  echo "$ac_t""$GMSGFMT" 1>&6
2759else
2760  echo "$ac_t""no" 1>&6
2761fi
2762
2763		 if test "$GMSGFMT" = "no"; then
2764		   # Extract the first word of "msgfmt", so it can be a program name with args.
2765set dummy msgfmt; ac_word=$2
2766echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2767echo "configure:2768: checking for $ac_word" >&5
2768if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2769  echo $ac_n "(cached) $ac_c" 1>&6
2770else
2771  case "$GMSGFMT" in
2772  /*)
2773  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2774  ;;
2775  *)
2776  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2777  for ac_dir in $PATH; do
2778    test -z "$ac_dir" && ac_dir=.
2779    if test -f $ac_dir/$ac_word; then
2780      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2781	ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2782	break
2783      fi
2784    fi
2785  done
2786  IFS="$ac_save_ifs"
2787  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2788  ;;
2789esac
2790fi
2791GMSGFMT="$ac_cv_path_GMSGFMT"
2792if test -n "$GMSGFMT"; then
2793  echo "$ac_t""$GMSGFMT" 1>&6
2794else
2795  echo "$ac_t""no" 1>&6
2796fi
2797
2798		 fi
2799		 # Extract the first word of "xgettext", so it can be a program name with args.
2800set dummy xgettext; ac_word=$2
2801echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2802echo "configure:2803: checking for $ac_word" >&5
2803if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2804  echo $ac_n "(cached) $ac_c" 1>&6
2805else
2806  case "$XGETTEXT" in
2807  /*)
2808  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2809  ;;
2810  *)
2811  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2812  for ac_dir in $PATH; do
2813    test -z "$ac_dir" && ac_dir=.
2814    if test -f $ac_dir/$ac_word; then
2815      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2816	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2817	break
2818      fi
2819    fi
2820  done
2821  IFS="$ac_save_ifs"
2822  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2823  ;;
2824esac
2825fi
2826XGETTEXT="$ac_cv_path_XGETTEXT"
2827if test -n "$XGETTEXT"; then
2828  echo "$ac_t""$XGETTEXT" 1>&6
2829else
2830  echo "$ac_t""no" 1>&6
2831fi
2832
2833		 USE_INCLUDED_LIBINTL=yes
2834		 CATOBJEXT=.cat
2835		 INSTOBJEXT=.cat
2836		 DATADIRNAME=lib
2837		 INTLDEPS='$(top_builddir)/intl/libintl.a'
2838		 INTLLIBS=$INTLDEPS
2839		 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2840		 nls_cv_header_intl=intl/libintl.h
2841		 nls_cv_header_libgt=intl/libgettext.h
2842	       fi
2843else
2844  echo "$ac_t""no" 1>&6
2845fi
2846
2847	  fi
2848        fi
2849
2850        if test "$CATOBJEXT" = "NONE"; then
2851	  	  	  nls_cv_use_gnu_gettext=yes
2852        fi
2853      fi
2854
2855      if test "$nls_cv_use_gnu_gettext" = "yes"; then
2856                INTLOBJS="\$(GETTOBJS)"
2857        # Extract the first word of "msgfmt", so it can be a program name with args.
2858set dummy msgfmt; ac_word=$2
2859echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2860echo "configure:2861: checking for $ac_word" >&5
2861if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2862  echo $ac_n "(cached) $ac_c" 1>&6
2863else
2864  case "$MSGFMT" in
2865  /*)
2866  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2867  ;;
2868  *)
2869  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2870  for ac_dir in $PATH; do
2871    test -z "$ac_dir" && ac_dir=.
2872    if test -f $ac_dir/$ac_word; then
2873      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2874	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2875	break
2876      fi
2877    fi
2878  done
2879  IFS="$ac_save_ifs"
2880  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2881  ;;
2882esac
2883fi
2884MSGFMT="$ac_cv_path_MSGFMT"
2885if test -n "$MSGFMT"; then
2886  echo "$ac_t""$MSGFMT" 1>&6
2887else
2888  echo "$ac_t""no" 1>&6
2889fi
2890
2891        # Extract the first word of "gmsgfmt", so it can be a program name with args.
2892set dummy gmsgfmt; ac_word=$2
2893echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2894echo "configure:2895: checking for $ac_word" >&5
2895if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2896  echo $ac_n "(cached) $ac_c" 1>&6
2897else
2898  case "$GMSGFMT" in
2899  /*)
2900  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2901  ;;
2902  ?:/*)			 
2903  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2904  ;;
2905  *)
2906  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2907  ac_dummy="$PATH"
2908  for ac_dir in $ac_dummy; do 
2909    test -z "$ac_dir" && ac_dir=.
2910    if test -f $ac_dir/$ac_word; then
2911      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2912      break
2913    fi
2914  done
2915  IFS="$ac_save_ifs"
2916  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2917  ;;
2918esac
2919fi
2920GMSGFMT="$ac_cv_path_GMSGFMT"
2921if test -n "$GMSGFMT"; then
2922  echo "$ac_t""$GMSGFMT" 1>&6
2923else
2924  echo "$ac_t""no" 1>&6
2925fi
2926
2927        # Extract the first word of "xgettext", so it can be a program name with args.
2928set dummy xgettext; ac_word=$2
2929echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2930echo "configure:2931: checking for $ac_word" >&5
2931if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2932  echo $ac_n "(cached) $ac_c" 1>&6
2933else
2934  case "$XGETTEXT" in
2935  /*)
2936  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2937  ;;
2938  *)
2939  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2940  for ac_dir in $PATH; do
2941    test -z "$ac_dir" && ac_dir=.
2942    if test -f $ac_dir/$ac_word; then
2943      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2944	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2945	break
2946      fi
2947    fi
2948  done
2949  IFS="$ac_save_ifs"
2950  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2951  ;;
2952esac
2953fi
2954XGETTEXT="$ac_cv_path_XGETTEXT"
2955if test -n "$XGETTEXT"; then
2956  echo "$ac_t""$XGETTEXT" 1>&6
2957else
2958  echo "$ac_t""no" 1>&6
2959fi
2960
2961        
2962	USE_INCLUDED_LIBINTL=yes
2963        CATOBJEXT=.gmo
2964        INSTOBJEXT=.mo
2965        DATADIRNAME=share
2966	INTLDEPS='$(top_builddir)/intl/libintl.a'
2967	INTLLIBS=$INTLDEPS
2968	LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2969        nls_cv_header_intl=intl/libintl.h
2970        nls_cv_header_libgt=intl/libgettext.h
2971      fi
2972
2973            if test "$XGETTEXT" != ":"; then
2974			if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2975	  : ;
2976	else
2977	  echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2978	  XGETTEXT=":"
2979	fi
2980      fi
2981
2982      # We need to process the po/ directory.
2983      POSUB=po
2984    else
2985      DATADIRNAME=share
2986      nls_cv_header_intl=intl/libintl.h
2987      nls_cv_header_libgt=intl/libgettext.h
2988    fi
2989    
2990    
2991
2992
2993    # If this is used in GNU gettext we have to set USE_NLS to `yes'
2994    # because some of the sources are only built for this goal.
2995    if test "$PACKAGE" = gettext; then
2996      USE_NLS=yes
2997      USE_INCLUDED_LIBINTL=yes
2998    fi
2999
3000                for lang in $ALL_LINGUAS; do
3001      GMOFILES="$GMOFILES $lang.gmo"
3002      POFILES="$POFILES $lang.po"
3003    done
3004
3005        
3006    
3007    
3008    
3009    
3010    
3011    
3012    
3013    
3014    
3015    
3016  
3017
3018   if test "x$CATOBJEXT" != "x"; then
3019     if test "x$ALL_LINGUAS" = "x"; then
3020       LINGUAS=
3021     else
3022       echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3023echo "configure:3024: checking for catalogs to be installed" >&5
3024       NEW_LINGUAS=
3025       for lang in ${LINGUAS=$ALL_LINGUAS}; do
3026         case "$ALL_LINGUAS" in
3027          *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3028         esac
3029       done
3030       LINGUAS=$NEW_LINGUAS
3031       echo "$ac_t""$LINGUAS" 1>&6
3032     fi
3033
3034          if test -n "$LINGUAS"; then
3035       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3036     fi
3037   fi
3038
3039            if test $ac_cv_header_locale_h = yes; then
3040     INCLUDE_LOCALE_H="#include <locale.h>"
3041   else
3042     INCLUDE_LOCALE_H="\
3043/* The system does not provide the header <locale.h>.  Take care yourself.  */"
3044   fi
3045   
3046
3047            test -d intl || mkdir intl
3048   if test "$CATOBJEXT" = ".cat"; then
3049     ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3050echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3051echo "configure:3052: checking for linux/version.h" >&5
3052if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3053  echo $ac_n "(cached) $ac_c" 1>&6
3054else
3055  cat > conftest.$ac_ext <<EOF
3056#line 3057 "configure"
3057#include "confdefs.h"
3058#include <linux/version.h>
3059EOF
3060ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3061{ (eval echo configure:3062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3062ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3063if test -z "$ac_err"; then
3064  rm -rf conftest*
3065  eval "ac_cv_header_$ac_safe=yes"
3066else
3067  echo "$ac_err" >&5
3068  echo "configure: failed program was:" >&5
3069  cat conftest.$ac_ext >&5
3070  rm -rf conftest*
3071  eval "ac_cv_header_$ac_safe=no"
3072fi
3073rm -f conftest*
3074fi
3075if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3076  echo "$ac_t""yes" 1>&6
3077  msgformat=linux
3078else
3079  echo "$ac_t""no" 1>&6
3080msgformat=xopen
3081fi
3082
3083
3084               sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3085   fi
3086      sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3087     $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3088
3089            if test "$PACKAGE" = "gettext"; then
3090     GT_NO="#NO#"
3091     GT_YES=
3092   else
3093     GT_NO=
3094     GT_YES="#YES#"
3095   fi
3096   
3097   
3098
3099            MKINSTALLDIRS=
3100   if test -n "$ac_aux_dir"; then
3101     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3102   fi
3103   if test -z "$MKINSTALLDIRS"; then
3104     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3105   fi
3106   
3107
3108      l=
3109   
3110
3111         test -d po || mkdir po
3112   if test "x$srcdir" != "x."; then
3113     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3114       posrcprefix="$srcdir/"
3115     else
3116       posrcprefix="../$srcdir/"
3117     fi
3118   else
3119     posrcprefix="../"
3120   fi
3121   rm -f po/POTFILES
3122   sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3123	< $srcdir/po/POTFILES.in > po/POTFILES
3124  
3125# Check whether --enable-profile or --disable-profile was given.
3126if test "${enable_profile+set}" = set; then
3127  enableval="$enable_profile"
3128  if test "$enableval" = "no"
3129then
3130	PROFILE_CMT=#
3131	MAKEFILE_PROFILE=/dev/null
3132	echo "Disabling profiling libraries"
3133else
3134	PROFILE_CMT=
3135	MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3136	PROFILED_LIB_EXT=_p.a
3137	echo "Building profiling libraries"
3138fi
3139
3140else
3141  PROFILE_CMT=#
3142MAKEFILE_PROFILE=/dev/null
3143echo "Disabling profiling libraries by default"
3144
3145fi
3146
3147
3148
3149# Check whether --enable-checker or --disable-checker was given.
3150if test "${enable_checker+set}" = set; then
3151  enableval="$enable_checker"
3152  if test "$enableval" = "no"
3153then
3154	CHECKER_CMT=#
3155	MAKEFILE_CHECKER=/dev/null
3156	echo "Disabling checker libraries"
3157else
3158	CHECKER_CMT=
3159	MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3160	echo "Building checker libraries"
3161fi
3162
3163else
3164  CHECKER_CMT=#
3165MAKEFILE_CHECKER=/dev/null
3166echo "Disabling checker libraries by default"
3167
3168fi
3169
3170
3171
3172
3173
3174
3175# Check whether --enable-gcc-wall or --disable-gcc-wall was given.
3176if test "${enable_gcc_wall+set}" = set; then
3177  enableval="$enable_gcc_wall"
3178  if test "$enableval" = "no"
3179then
3180	W=#
3181	echo "Disabling GCC warnings"
3182else
3183	W=
3184	echo "Enabling GCC warnings"
3185fi
3186
3187else
3188  W=#
3189echo "Disabling GCC warnings by default"
3190
3191fi
3192
3193
3194# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
3195if test "${enable_dynamic_e2fsck+set}" = set; then
3196  enableval="$enable_dynamic_e2fsck"
3197  if test "$enableval" = "no"
3198then
3199	E2FSCK_TYPE=static
3200	echo "Building e2fsck statically"
3201else
3202	E2FSCK_TYPE=shared
3203	echo "Building e2fsck dynamically"
3204fi
3205
3206else
3207  E2FSCK_TYPE=static
3208echo "Building e2fsck statically by default"
3209
3210fi
3211
3212
3213# Check whether --enable-fsck or --disable-fsck was given.
3214if test "${enable_fsck+set}" = set; then
3215  enableval="$enable_fsck"
3216  if test "$enableval" = "no"
3217then
3218	FSCK_PROG='' FSCK_MAN=''
3219	echo "Not building fsck wrapper"
3220else
3221	FSCK_PROG=fsck FSCK_MAN=fsck.8
3222	echo "Building fsck wrapper"
3223fi
3224
3225else
3226  case "$host_os" in
3227  gnu*)
3228    FSCK_PROG='' FSCK_MAN=''
3229    echo "Not building fsck wrapper by default"
3230    ;;
3231  *)
3232    FSCK_PROG=fsck FSCK_MAN=fsck.8
3233    echo "Building fsck wrapper by default"
3234esac
3235
3236fi
3237
3238
3239
3240MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
3241
3242# Check whether --enable-old-bitops or --disable-old-bitops was given.
3243if test "${enable_old_bitops+set}" = set; then
3244  enableval="$enable_old_bitops"
3245  if test "$enableval" = "no"
3246then
3247	echo "Using new (standard) bitmask operations"
3248else
3249	cat >> confdefs.h <<\EOF
3250#define EXT2_OLD_BITOPS 1
3251EOF
3252
3253	echo "Using old (native) bitmask operations"
3254
3255fi
3256
3257else
3258  echo "Using standard bitmask operations by default"
3259
3260fi
3261
3262
3263echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3264echo "configure:3265: checking whether ${MAKE-make} sets \${MAKE}" >&5
3265set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3266if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3267  echo $ac_n "(cached) $ac_c" 1>&6
3268else
3269  cat > conftestmake <<\EOF
3270all:
3271	@echo 'ac_maketemp="${MAKE}"'
3272EOF
3273# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3274eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3275if test -n "$ac_maketemp"; then
3276  eval ac_cv_prog_make_${ac_make}_set=yes
3277else
3278  eval ac_cv_prog_make_${ac_make}_set=no
3279fi
3280rm -f conftestmake
3281fi
3282if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3283  echo "$ac_t""yes" 1>&6
3284  SET_MAKE=
3285else
3286  echo "$ac_t""no" 1>&6
3287  SET_MAKE="MAKE=${MAKE-make}"
3288fi
3289
3290# Extract the first word of "ln", so it can be a program name with args.
3291set dummy ln; ac_word=$2
3292echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3293echo "configure:3294: checking for $ac_word" >&5
3294if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
3295  echo $ac_n "(cached) $ac_c" 1>&6
3296else
3297  case "$LN" in
3298  /*)
3299  ac_cv_path_LN="$LN" # Let the user override the test with a path.
3300  ;;
3301  ?:/*)			 
3302  ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
3303  ;;
3304  *)
3305  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
3306  ac_dummy="$PATH"
3307  for ac_dir in $ac_dummy; do 
3308    test -z "$ac_dir" && ac_dir=.
3309    if test -f $ac_dir/$ac_word; then
3310      ac_cv_path_LN="$ac_dir/$ac_word"
3311      break
3312    fi
3313  done
3314  IFS="$ac_save_ifs"
3315  test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
3316  ;;
3317esac
3318fi
3319LN="$ac_cv_path_LN"
3320if test -n "$LN"; then
3321  echo "$ac_t""$LN" 1>&6
3322else
3323  echo "$ac_t""no" 1>&6
3324fi
3325
3326echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3327echo "configure:3328: checking whether ln -s works" >&5
3328if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3329  echo $ac_n "(cached) $ac_c" 1>&6
3330else
3331  rm -f conftestdata
3332if ln -s X conftestdata 2>/dev/null
3333then
3334  rm -f conftestdata
3335  ac_cv_prog_LN_S="ln -s"
3336else
3337  ac_cv_prog_LN_S=ln
3338fi
3339fi
3340LN_S="$ac_cv_prog_LN_S"
3341if test "$ac_cv_prog_LN_S" = "ln -s"; then
3342  echo "$ac_t""yes" 1>&6
3343else
3344  echo "$ac_t""no" 1>&6
3345fi
3346
3347# Extract the first word of "mv", so it can be a program name with args.
3348set dummy mv; ac_word=$2
3349echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3350echo "configure:3351: checking for $ac_word" >&5
3351if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
3352  echo $ac_n "(cached) $ac_c" 1>&6
3353else
3354  case "$MV" in
3355  /*)
3356  ac_cv_path_MV="$MV" # Let the user override the test with a path.
3357  ;;
3358  ?:/*)			 
3359  ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
3360  ;;
3361  *)
3362  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
3363  ac_dummy="$PATH"
3364  for ac_dir in $ac_dummy; do 
3365    test -z "$ac_dir" && ac_dir=.
3366    if test -f $ac_dir/$ac_word; then
3367      ac_cv_path_MV="$ac_dir/$ac_word"
3368      break
3369    fi
3370  done
3371  IFS="$ac_save_ifs"
3372  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3373  ;;
3374esac
3375fi
3376MV="$ac_cv_path_MV"
3377if test -n "$MV"; then
3378  echo "$ac_t""$MV" 1>&6
3379else
3380  echo "$ac_t""no" 1>&6
3381fi
3382
3383# Extract the first word of "cp", so it can be a program name with args.
3384set dummy cp; ac_word=$2
3385echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3386echo "configure:3387: checking for $ac_word" >&5
3387if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
3388  echo $ac_n "(cached) $ac_c" 1>&6
3389else
3390  case "$CP" in
3391  /*)
3392  ac_cv_path_CP="$CP" # Let the user override the test with a path.
3393  ;;
3394  ?:/*)			 
3395  ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
3396  ;;
3397  *)
3398  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
3399  ac_dummy="$PATH"
3400  for ac_dir in $ac_dummy; do 
3401    test -z "$ac_dir" && ac_dir=.
3402    if test -f $ac_dir/$ac_word; then
3403      ac_cv_path_CP="$ac_dir/$ac_word"
3404      break
3405    fi
3406  done
3407  IFS="$ac_save_ifs"
3408  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3409  ;;
3410esac
3411fi
3412CP="$ac_cv_path_CP"
3413if test -n "$CP"; then
3414  echo "$ac_t""$CP" 1>&6
3415else
3416  echo "$ac_t""no" 1>&6
3417fi
3418
3419# Extract the first word of "rm", so it can be a program name with args.
3420set dummy rm; ac_word=$2
3421echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3422echo "configure:3423: checking for $ac_word" >&5
3423if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
3424  echo $ac_n "(cached) $ac_c" 1>&6
3425else
3426  case "$RM" in
3427  /*)
3428  ac_cv_path_RM="$RM" # Let the user override the test with a path.
3429  ;;
3430  ?:/*)			 
3431  ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
3432  ;;
3433  *)
3434  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
3435  ac_dummy="$PATH"
3436  for ac_dir in $ac_dummy; do 
3437    test -z "$ac_dir" && ac_dir=.
3438    if test -f $ac_dir/$ac_word; then
3439      ac_cv_path_RM="$ac_dir/$ac_word"
3440      break
3441    fi
3442  done
3443  IFS="$ac_save_ifs"
3444  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3445  ;;
3446esac
3447fi
3448RM="$ac_cv_path_RM"
3449if test -n "$RM"; then
3450  echo "$ac_t""$RM" 1>&6
3451else
3452  echo "$ac_t""no" 1>&6
3453fi
3454
3455# Extract the first word of "chmod", so it can be a program name with args.
3456set dummy chmod; ac_word=$2
3457echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3458echo "configure:3459: checking for $ac_word" >&5
3459if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
3460  echo $ac_n "(cached) $ac_c" 1>&6
3461else
3462  case "$CHMOD" in
3463  /*)
3464  ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3465  ;;
3466  ?:/*)			 
3467  ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
3468  ;;
3469  *)
3470  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
3471  ac_dummy="$PATH"
3472  for ac_dir in $ac_dummy; do 
3473    test -z "$ac_dir" && ac_dir=.
3474    if test -f $ac_dir/$ac_word; then
3475      ac_cv_path_CHMOD="$ac_dir/$ac_word"
3476      break
3477    fi
3478  done
3479  IFS="$ac_save_ifs"
3480  test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
3481  ;;
3482esac
3483fi
3484CHMOD="$ac_cv_path_CHMOD"
3485if test -n "$CHMOD"; then
3486  echo "$ac_t""$CHMOD" 1>&6
3487else
3488  echo "$ac_t""no" 1>&6
3489fi
3490
3491# Extract the first word of "awk", so it can be a program name with args.
3492set dummy awk; ac_word=$2
3493echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3494echo "configure:3495: checking for $ac_word" >&5
3495if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
3496  echo $ac_n "(cached) $ac_c" 1>&6
3497else
3498  case "$AWK" in
3499  /*)
3500  ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3501  ;;
3502  ?:/*)			 
3503  ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
3504  ;;
3505  *)
3506  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
3507  ac_dummy="$PATH"
3508  for ac_dir in $ac_dummy; do 
3509    test -z "$ac_dir" && ac_dir=.
3510    if test -f $ac_dir/$ac_word; then
3511      ac_cv_path_AWK="$ac_dir/$ac_word"
3512      break
3513    fi
3514  done
3515  IFS="$ac_save_ifs"
3516  test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3517  ;;
3518esac
3519fi
3520AWK="$ac_cv_path_AWK"
3521if test -n "$AWK"; then
3522  echo "$ac_t""$AWK" 1>&6
3523else
3524  echo "$ac_t""no" 1>&6
3525fi
3526
3527# Extract the first word of "sed", so it can be a program name with args.
3528set dummy sed; ac_word=$2
3529echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3530echo "configure:3531: checking for $ac_word" >&5
3531if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
3532  echo $ac_n "(cached) $ac_c" 1>&6
3533else
3534  case "$SED" in
3535  /*)
3536  ac_cv_path_SED="$SED" # Let the user override the test with a path.
3537  ;;
3538  ?:/*)			 
3539  ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
3540  ;;
3541  *)
3542  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
3543  ac_dummy="$PATH"
3544  for ac_dir in $ac_dummy; do 
3545    test -z "$ac_dir" && ac_dir=.
3546    if test -f $ac_dir/$ac_word; then
3547      ac_cv_path_SED="$ac_dir/$ac_word"
3548      break
3549    fi
3550  done
3551  IFS="$ac_save_ifs"
3552  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3553  ;;
3554esac
3555fi
3556SED="$ac_cv_path_SED"
3557if test -n "$SED"; then
3558  echo "$ac_t""$SED" 1>&6
3559else
3560  echo "$ac_t""no" 1>&6
3561fi
3562
3563# Extract the first word of "perl", so it can be a program name with args.
3564set dummy perl; ac_word=$2
3565echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3566echo "configure:3567: checking for $ac_word" >&5
3567if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3568  echo $ac_n "(cached) $ac_c" 1>&6
3569else
3570  case "$PERL" in
3571  /*)
3572  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3573  ;;
3574  ?:/*)			 
3575  ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3576  ;;
3577  *)
3578  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
3579  ac_dummy="$PATH"
3580  for ac_dir in $ac_dummy; do 
3581    test -z "$ac_dir" && ac_dir=.
3582    if test -f $ac_dir/$ac_word; then
3583      ac_cv_path_PERL="$ac_dir/$ac_word"
3584      break
3585    fi
3586  done
3587  IFS="$ac_save_ifs"
3588  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
3589  ;;
3590esac
3591fi
3592PERL="$ac_cv_path_PERL"
3593if test -n "$PERL"; then
3594  echo "$ac_t""$PERL" 1>&6
3595else
3596  echo "$ac_t""no" 1>&6
3597fi
3598
3599echo $ac_n "checking build system type""... $ac_c" 1>&6
3600echo "configure:3601: checking build system type" >&5
3601
3602build_alias=$build
3603case "$build_alias" in
3604NONE)
3605  case $nonopt in
3606  NONE) build_alias=$host_alias ;;
3607  *) build_alias=$nonopt ;;
3608  esac ;;
3609esac
3610
3611build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
3612build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3613build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3614build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3615echo "$ac_t""$build" 1>&6
3616
3617if test $host != $build; then
3618  ac_tool_prefix=${host_alias}-
3619else
3620  ac_tool_prefix=
3621fi
3622
3623# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3624set dummy ${ac_tool_prefix}ar; ac_word=$2
3625echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3626echo "configure:3627: checking for $ac_word" >&5
3627if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3628  echo $ac_n "(cached) $ac_c" 1>&6
3629else
3630  if test -n "$AR"; then
3631  ac_cv_prog_AR="$AR" # Let the user override the test.
3632else
3633  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
3634  ac_dummy="$PATH"
3635  for ac_dir in $ac_dummy; do
3636    test -z "$ac_dir" && ac_dir=.
3637    if test -f $ac_dir/$ac_word; then
3638      ac_cv_prog_AR="${ac_tool_prefix}ar"
3639      break
3640    fi
3641  done
3642  IFS="$ac_save_ifs"
3643fi
3644fi
3645AR="$ac_cv_prog_AR"
3646if test -n "$AR"; then
3647  echo "$ac_t""$AR" 1>&6
3648else
3649  echo "$ac_t""no" 1>&6
3650fi
3651
3652
3653if test -z "$ac_cv_prog_AR"; then
3654if test -n "$ac_tool_prefix"; then
3655  # Extract the first word of "ar", so it can be a program name with args.
3656set dummy ar; ac_word=$2
3657echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3658echo "configure:3659: checking for $ac_word" >&5
3659if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3660  echo $ac_n "(cached) $ac_c" 1>&6
3661else
3662  if test -n "$AR"; then
3663  ac_cv_prog_AR="$AR" # Let the user override the test.
3664else
3665  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
3666  ac_dummy="$PATH"
3667  for ac_dir in $ac_dummy; do
3668    test -z "$ac_dir" && ac_dir=.
3669    if test -f $ac_dir/$ac_word; then
3670      ac_cv_prog_AR="ar"
3671      break
3672    fi
3673  done
3674  IFS="$ac_save_ifs"
3675  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3676fi
3677fi
3678AR="$ac_cv_prog_AR"
3679if test -n "$AR"; then
3680  echo "$ac_t""$AR" 1>&6
3681else
3682  echo "$ac_t""no" 1>&6
3683fi
3684
3685else
3686  AR="ar"
3687fi
3688fi
3689
3690# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3691set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3692echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3693echo "configure:3694: checking for $ac_word" >&5
3694if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3695  echo $ac_n "(cached) $ac_c" 1>&6
3696else
3697  if test -n "$RANLIB"; then
3698  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3699else
3700  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
3701  ac_dummy="$PATH"
3702  for ac_dir in $ac_dummy; do
3703    test -z "$ac_dir" && ac_dir=.
3704    if test -f $ac_dir/$ac_word; then
3705      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3706      break
3707    fi
3708  done
3709  IFS="$ac_save_ifs"
3710fi
3711fi
3712RANLIB="$ac_cv_prog_RANLIB"
3713if test -n "$RANLIB"; then
3714  echo "$ac_t""$RANLIB" 1>&6
3715else
3716  echo "$ac_t""no" 1>&6
3717fi
3718
3719
3720if test -z "$ac_cv_prog_RANLIB"; then
3721if test -n "$ac_tool_prefix"; then
3722  # Extract the first word of "ranlib", so it can be a program name with args.
3723set dummy ranlib; ac_word=$2
3724echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3725echo "configure:3726: checking for $ac_word" >&5
3726if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3727  echo $ac_n "(cached) $ac_c" 1>&6
3728else
3729  if test -n "$RANLIB"; then
3730  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3731else
3732  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
3733  ac_dummy="$PATH"
3734  for ac_dir in $ac_dummy; do
3735    test -z "$ac_dir" && ac_dir=.
3736    if test -f $ac_dir/$ac_word; then
3737      ac_cv_prog_RANLIB="ranlib"
3738      break
3739    fi
3740  done
3741  IFS="$ac_save_ifs"
3742  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3743fi
3744fi
3745RANLIB="$ac_cv_prog_RANLIB"
3746if test -n "$RANLIB"; then
3747  echo "$ac_t""$RANLIB" 1>&6
3748else
3749  echo "$ac_t""no" 1>&6
3750fi
3751
3752else
3753  RANLIB=":"
3754fi
3755fi
3756
3757# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3758set dummy ${ac_tool_prefix}strip; ac_word=$2
3759echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3760echo "configure:3761: checking for $ac_word" >&5
3761if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3762  echo $ac_n "(cached) $ac_c" 1>&6
3763else
3764  if test -n "$STRIP"; then
3765  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3766else
3767  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
3768  ac_dummy="$PATH"
3769  for ac_dir in $ac_dummy; do
3770    test -z "$ac_dir" && ac_dir=.
3771    if test -f $ac_dir/$ac_word; then
3772      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3773      break
3774    fi
3775  done
3776  IFS="$ac_save_ifs"
3777fi
3778fi
3779STRIP="$ac_cv_prog_STRIP"
3780if test -n "$STRIP"; then
3781  echo "$ac_t""$STRIP" 1>&6
3782else
3783  echo "$ac_t""no" 1>&6
3784fi
3785
3786
3787if test -z "$ac_cv_prog_STRIP"; then
3788if test -n "$ac_tool_prefix"; then
3789  # Extract the first word of "strip", so it can be a program name with args.
3790set dummy strip; ac_word=$2
3791echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3792echo "configure:3793: checking for $ac_word" >&5
3793if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3794  echo $ac_n "(cached) $ac_c" 1>&6
3795else
3796  if test -n "$STRIP"; then
3797  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3798else
3799  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
3800  ac_dummy="$PATH"
3801  for ac_dir in $ac_dummy; do
3802    test -z "$ac_dir" && ac_dir=.
3803    if test -f $ac_dir/$ac_word; then
3804      ac_cv_prog_STRIP="strip"
3805      break
3806    fi
3807  done
3808  IFS="$ac_save_ifs"
3809  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3810fi
3811fi
3812STRIP="$ac_cv_prog_STRIP"
3813if test -n "$STRIP"; then
3814  echo "$ac_t""$STRIP" 1>&6
3815else
3816  echo "$ac_t""no" 1>&6
3817fi
3818
3819else
3820  STRIP=":"
3821fi
3822fi
3823
3824# Find a good install program.  We prefer a C program (faster),
3825# so one script is as good as another.  But avoid the broken or
3826# incompatible versions:
3827# SysV /etc/install, /usr/sbin/install
3828# SunOS /usr/etc/install
3829# IRIX /sbin/install
3830# AIX /bin/install
3831# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3832# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3833# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3834# ./install, which can be erroneously created by make from ./install.sh.
3835echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3836echo "configure:3837: checking for a BSD compatible install" >&5
3837if test -z "$INSTALL"; then
3838if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3839  echo $ac_n "(cached) $ac_c" 1>&6
3840else
3841    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
3842  for ac_dir in $PATH; do
3843    # Account for people who put trailing slashes in PATH elements.
3844    case "$ac_dir/" in
3845    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3846    *)
3847      # OSF1 and SCO ODT 3.0 have their own names for install.
3848      # Don't use installbsd from OSF since it installs stuff as root
3849      # by default.
3850      for ac_prog in ginstall scoinst install; do
3851        if test -f $ac_dir/$ac_prog; then
3852	  if test $ac_prog = install &&
3853            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3854	    # AIX install.  It has an incompatible calling convention.
3855	    :
3856	  else
3857	    ac_cv_path_install="$ac_dir/$ac_prog -c"
3858	    break 2
3859	  fi
3860	fi
3861      done
3862      ;;
3863    esac
3864  done
3865  IFS="$ac_save_IFS"
3866
3867fi
3868  if test "${ac_cv_path_install+set}" = set; then
3869    INSTALL="$ac_cv_path_install"
3870  else
3871    # As a last resort, use the slow shell script.  We don't cache a
3872    # path for INSTALL within a source directory, because that will
3873    # break other packages using the cache if that directory is
3874    # removed, or if the path is relative.
3875    INSTALL="$ac_install_sh"
3876  fi
3877fi
3878echo "$ac_t""$INSTALL" 1>&6
3879
3880# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3881# It thinks the first close brace ends the variable substitution.
3882test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3883
3884test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3885
3886test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3887
3888# See if we need a separate native compiler.
3889if test $cross_compiling = no; then
3890  BUILD_CC="$CC"
3891  
3892else
3893  for ac_prog in gcc cc
3894do
3895# Extract the first word of "$ac_prog", so it can be a program name with args.
3896set dummy $ac_prog; ac_word=$2
3897echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3898echo "configure:3899: checking for $ac_word" >&5
3899if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
3900  echo $ac_n "(cached) $ac_c" 1>&6
3901else
3902  if test -n "$BUILD_CC"; then
3903  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3904else
3905  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
3906  ac_dummy="$PATH"
3907  for ac_dir in $ac_dummy; do
3908    test -z "$ac_dir" && ac_dir=.
3909    if test -f $ac_dir/$ac_word; then
3910      ac_cv_prog_BUILD_CC="$ac_prog"
3911      break
3912    fi
3913  done
3914  IFS="$ac_save_ifs"
3915fi
3916fi
3917BUILD_CC="$ac_cv_prog_BUILD_CC"
3918if test -n "$BUILD_CC"; then
3919  echo "$ac_t""$BUILD_CC" 1>&6
3920else
3921  echo "$ac_t""no" 1>&6
3922fi
3923
3924test -n "$BUILD_CC" && break
3925done
3926
3927fi
3928for 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/sockio.h sys/time.h sys/stat.h sys/types.h net/if.h netinet/in.h
3929do
3930ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3931echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3932echo "configure:3933: checking for $ac_hdr" >&5
3933if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3934  echo $ac_n "(cached) $ac_c" 1>&6
3935else
3936  cat > conftest.$ac_ext <<EOF
3937#line 3938 "configure"
3938#include "confdefs.h"
3939#include <$ac_hdr>
3940EOF
3941ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3942{ (eval echo configure:3943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3943ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3944if test -z "$ac_err"; then
3945  rm -rf conftest*
3946  eval "ac_cv_header_$ac_safe=yes"
3947else
3948  echo "$ac_err" >&5
3949  echo "configure: failed program was:" >&5
3950  cat conftest.$ac_ext >&5
3951  rm -rf conftest*
3952  eval "ac_cv_header_$ac_safe=no"
3953fi
3954rm -f conftest*
3955fi
3956if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3957  echo "$ac_t""yes" 1>&6
3958    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3959  cat >> confdefs.h <<EOF
3960#define $ac_tr_hdr 1
3961EOF
3962 
3963else
3964  echo "$ac_t""no" 1>&6
3965fi
3966done
3967
3968echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3969echo "configure:3970: checking for vprintf" >&5
3970if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3971  echo $ac_n "(cached) $ac_c" 1>&6
3972else
3973  cat > conftest.$ac_ext <<EOF
3974#line 3975 "configure"
3975#include "confdefs.h"
3976/* System header to define __stub macros and hopefully few prototypes,
3977    which can conflict with char vprintf(); below.  */
3978#include <assert.h>
3979/* Override any gcc2 internal prototype to avoid an error.  */
3980/* We use char because int might match the return type of a gcc2
3981    builtin and then its argument prototype would still apply.  */
3982char vprintf();
3983
3984int main() {
3985
3986/* The GNU C library defines this for functions which it implements
3987    to always fail with ENOSYS.  Some functions are actually named
3988    something starting with __ and the normal name is an alias.  */
3989#if defined (__stub_vprintf) || defined (__stub___vprintf)
3990choke me
3991#else
3992vprintf();
3993#endif
3994
3995; return 0; }
3996EOF
3997if { (eval echo configure:3998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3998  rm -rf conftest*
3999  eval "ac_cv_func_vprintf=yes"
4000else
4001  echo "configure: failed program was:" >&5
4002  cat conftest.$ac_ext >&5
4003  rm -rf conftest*
4004  eval "ac_cv_func_vprintf=no"
4005fi
4006rm -f conftest*
4007fi
4008
4009if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4010  echo "$ac_t""yes" 1>&6
4011  cat >> confdefs.h <<\EOF
4012#define HAVE_VPRINTF 1
4013EOF
4014
4015else
4016  echo "$ac_t""no" 1>&6
4017fi
4018
4019if test "$ac_cv_func_vprintf" != yes; then
4020echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
4021echo "configure:4022: checking for _doprnt" >&5
4022if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4023  echo $ac_n "(cached) $ac_c" 1>&6
4024else
4025  cat > conftest.$ac_ext <<EOF
4026#line 4027 "configure"
4027#include "confdefs.h"
4028/* System header to define __stub macros and hopefully few prototypes,
4029    which can conflict with char _doprnt(); below.  */
4030#include <assert.h>
4031/* Override any gcc2 internal prototype to avoid an error.  */
4032/* We use char because int might match the return type of a gcc2
4033    builtin and then its argument prototype would still apply.  */
4034char _doprnt();
4035
4036int main() {
4037
4038/* The GNU C library defines this for functions which it implements
4039    to always fail with ENOSYS.  Some functions are actually named
4040    something starting with __ and the normal name is an alias.  */
4041#if defined (__stub__doprnt) || defined (__stub____doprnt)
4042choke me
4043#else
4044_doprnt();
4045#endif
4046
4047; return 0; }
4048EOF
4049if { (eval echo configure:4050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4050  rm -rf conftest*
4051  eval "ac_cv_func__doprnt=yes"
4052else
4053  echo "configure: failed program was:" >&5
4054  cat conftest.$ac_ext >&5
4055  rm -rf conftest*
4056  eval "ac_cv_func__doprnt=no"
4057fi
4058rm -f conftest*
4059fi
4060
4061if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4062  echo "$ac_t""yes" 1>&6
4063  cat >> confdefs.h <<\EOF
4064#define HAVE_DOPRNT 1
4065EOF
4066
4067else
4068  echo "$ac_t""no" 1>&6
4069fi
4070
4071fi
4072
4073echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6
4074echo "configure:4075: checking whether struct dirent has a d_namlen field" >&5
4075if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then
4076  echo $ac_n "(cached) $ac_c" 1>&6
4077else
4078  cat > conftest.$ac_ext <<EOF
4079#line 4080 "configure"
4080#include "confdefs.h"
4081#include <sys/types.h>
4082#include <dirent.h>
4083int main() {
4084struct dirent de; de.d_namlen = 0;
4085; return 0; }
4086EOF
4087if { (eval echo configure:4088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4088  rm -rf conftest*
4089  e2fsprogs_cv_struct_d_namlen=yes
4090else
4091  echo "configure: failed program was:" >&5
4092  cat conftest.$ac_ext >&5
4093  rm -rf conftest*
4094  e2fsprogs_cv_struct_d_namlen=no
4095fi
4096rm -f conftest*
4097fi
4098
4099echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6
4100if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
4101  cat >> confdefs.h <<\EOF
4102#define HAVE_DIRENT_NAMLEN 1
4103EOF
4104
4105fi
4106echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
4107echo "configure:4108: checking whether llseek declared in unistd.h" >&5
4108if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
4109  echo $ac_n "(cached) $ac_c" 1>&6
4110else
4111  cat > conftest.$ac_ext <<EOF
4112#line 4113 "configure"
4113#include "confdefs.h"
4114#include <unistd.h>
4115int main() {
4116extern int llseek(int);
4117; return 0; }
4118EOF
4119if { (eval echo configure:4120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4120  rm -rf conftest*
4121  e2fsprogs_cv_have_llseek_prototype=no
4122else
4123  echo "configure: failed program was:" >&5
4124  cat conftest.$ac_ext >&5
4125  rm -rf conftest*
4126  e2fsprogs_cv_have_llseek_prototype=yes
4127fi
4128rm -f conftest*
4129fi
4130
4131echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
4132if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
4133   cat >> confdefs.h <<\EOF
4134#define HAVE_LLSEEK_PROTOTYPE 1
4135EOF
4136
4137fi
4138if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
4139  # if cross-compiling, with no cached values, just assume something common. 
4140  ac_cv_sizeof_short=2
4141  ac_cv_sizeof_int=4
4142  ac_cv_sizeof_long=4
4143  ac_cv_sizeof_long_long=8
4144  echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" 1>&2
4145fi
4146echo $ac_n "checking size of short""... $ac_c" 1>&6
4147echo "configure:4148: checking size of short" >&5
4148if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
4149  echo $ac_n "(cached) $ac_c" 1>&6
4150else
4151  if test "$cross_compiling" = yes; then
4152    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4153else
4154  cat > conftest.$ac_ext <<EOF
4155#line 4156 "configure"
4156#include "confdefs.h"
4157#include <stdio.h>
4158main()
4159{
4160  FILE *f=fopen("conftestval", "w");
4161  if (!f) exit(1);
4162  fprintf(f, "%d\n", sizeof(short));
4163  exit(0);
4164}
4165EOF
4166if { (eval echo configure:4167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4167then
4168  ac_cv_sizeof_short=`cat conftestval`
4169else
4170  echo "configure: failed program was:" >&5
4171  cat conftest.$ac_ext >&5
4172  rm -fr conftest*
4173  ac_cv_sizeof_short=0
4174fi
4175rm -fr conftest*
4176fi
4177
4178fi
4179echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4180cat >> confdefs.h <<EOF
4181#define SIZEOF_SHORT $ac_cv_sizeof_short
4182EOF
4183
4184
4185echo $ac_n "checking size of int""... $ac_c" 1>&6
4186echo "configure:4187: checking size of int" >&5
4187if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4188  echo $ac_n "(cached) $ac_c" 1>&6
4189else
4190  if test "$cross_compiling" = yes; then
4191    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4192else
4193  cat > conftest.$ac_ext <<EOF
4194#line 4195 "configure"
4195#include "confdefs.h"
4196#include <stdio.h>
4197main()
4198{
4199  FILE *f=fopen("conftestval", "w");
4200  if (!f) exit(1);
4201  fprintf(f, "%d\n", sizeof(int));
4202  exit(0);
4203}
4204EOF
4205if { (eval echo configure:4206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4206then
4207  ac_cv_sizeof_int=`cat conftestval`
4208else
4209  echo "configure: failed program was:" >&5
4210  cat conftest.$ac_ext >&5
4211  rm -fr conftest*
4212  ac_cv_sizeof_int=0
4213fi
4214rm -fr conftest*
4215fi
4216
4217fi
4218echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4219cat >> confdefs.h <<EOF
4220#define SIZEOF_INT $ac_cv_sizeof_int
4221EOF
4222
4223
4224echo $ac_n "checking size of long""... $ac_c" 1>&6
4225echo "configure:4226: checking size of long" >&5
4226if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4227  echo $ac_n "(cached) $ac_c" 1>&6
4228else
4229  if test "$cross_compiling" = yes; then
4230    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4231else
4232  cat > conftest.$ac_ext <<EOF
4233#line 4234 "configure"
4234#include "confdefs.h"
4235#include <stdio.h>
4236main()
4237{
4238  FILE *f=fopen("conftestval", "w");
4239  if (!f) exit(1);
4240  fprintf(f, "%d\n", sizeof(long));
4241  exit(0);
4242}
4243EOF
4244if { (eval echo configure:4245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4245then
4246  ac_cv_sizeof_long=`cat conftestval`
4247else
4248  echo "configure: failed program was:" >&5
4249  cat conftest.$ac_ext >&5
4250  rm -fr conftest*
4251  ac_cv_sizeof_long=0
4252fi
4253rm -fr conftest*
4254fi
4255
4256fi
4257echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4258cat >> confdefs.h <<EOF
4259#define SIZEOF_LONG $ac_cv_sizeof_long
4260EOF
4261
4262
4263echo $ac_n "checking size of long long""... $ac_c" 1>&6
4264echo "configure:4265: checking size of long long" >&5
4265if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4266  echo $ac_n "(cached) $ac_c" 1>&6
4267else
4268  if test "$cross_compiling" = yes; then
4269    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4270else
4271  cat > conftest.$ac_ext <<EOF
4272#line 4273 "configure"
4273#include "confdefs.h"
4274#include <stdio.h>
4275main()
4276{
4277  FILE *f=fopen("conftestval", "w");
4278  if (!f) exit(1);
4279  fprintf(f, "%d\n", sizeof(long long));
4280  exit(0);
4281}
4282EOF
4283if { (eval echo configure:4284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4284then
4285  ac_cv_sizeof_long_long=`cat conftestval`
4286else
4287  echo "configure: failed program was:" >&5
4288  cat conftest.$ac_ext >&5
4289  rm -fr conftest*
4290  ac_cv_sizeof_long_long=0
4291fi
4292rm -fr conftest*
4293fi
4294
4295fi
4296echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4297cat >> confdefs.h <<EOF
4298#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4299EOF
4300
4301
4302SIZEOF_SHORT=$ac_cv_sizeof_short
4303SIZEOF_INT=$ac_cv_sizeof_int
4304SIZEOF_LONG=$ac_cv_sizeof_long
4305SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
4306
4307
4308
4309
4310echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
4311echo "configure:4312: checking whether struct stat has a st_flags field" >&5
4312if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
4313  echo $ac_n "(cached) $ac_c" 1>&6
4314else
4315  cat > conftest.$ac_ext <<EOF
4316#line 4317 "configure"
4317#include "confdefs.h"
4318#include <sys/stat.h>
4319int main() {
4320struct stat stat; stat.st_flags = 0;
4321; return 0; }
4322EOF
4323if { (eval echo configure:4324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4324  rm -rf conftest*
4325  e2fsprogs_cv_struct_st_flags=yes
4326else
4327  echo "configure: failed program was:" >&5
4328  cat conftest.$ac_ext >&5
4329  rm -rf conftest*
4330  e2fsprogs_cv_struct_st_flags=no
4331fi
4332rm -f conftest*
4333fi
4334
4335echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
4336if test "$e2fsprogs_cv_struct_st_flags" = yes; then
4337  echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
4338echo "configure:4339: checking whether st_flags field is useful" >&5
4339  if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
4340  echo $ac_n "(cached) $ac_c" 1>&6
4341else
4342  cat > conftest.$ac_ext <<EOF
4343#line 4344 "configure"
4344#include "confdefs.h"
4345#include <sys/stat.h>
4346int main() {
4347struct stat stat; stat.st_flags |= UF_IMMUTABLE;
4348; return 0; }
4349EOF
4350if { (eval echo configure:4351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4351  rm -rf conftest*
4352  e2fsprogs_cv_struct_st_flags_immut=yes
4353else
4354  echo "configure: failed program was:" >&5
4355  cat conftest.$ac_ext >&5
4356  rm -rf conftest*
4357  e2fsprogs_cv_struct_st_flags_immut=no
4358fi
4359rm -f conftest*
4360fi
4361
4362  echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
4363  if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
4364	  cat >> confdefs.h <<\EOF
4365#define HAVE_STAT_FLAGS 1
4366EOF
4367
4368  fi
4369fi
4370for ac_func in chflags getrusage llseek strdup getmntinfo strcasecmp srandom fchown mallinfo
4371do
4372echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4373echo "configure:4374: checking for $ac_func" >&5
4374if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4375  echo $ac_n "(cached) $ac_c" 1>&6
4376else
4377  cat > conftest.$ac_ext <<EOF
4378#line 4379 "configure"
4379#include "confdefs.h"
4380/* System header to define __stub macros and hopefully few prototypes,
4381    which can conflict with char $ac_func(); below.  */
4382#include <assert.h>
4383/* Override any gcc2 internal prototype to avoid an error.  */
4384/* We use char because int might match the return type of a gcc2
4385    builtin and then its argument prototype would still apply.  */
4386char $ac_func();
4387
4388int main() {
4389
4390/* The GNU C library defines this for functions which it implements
4391    to always fail with ENOSYS.  Some functions are actually named
4392    something starting with __ and the normal name is an alias.  */
4393#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4394choke me
4395#else
4396$ac_func();
4397#endif
4398
4399; return 0; }
4400EOF
4401if { (eval echo configure:4402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4402  rm -rf conftest*
4403  eval "ac_cv_func_$ac_func=yes"
4404else
4405  echo "configure: failed program was:" >&5
4406  cat conftest.$ac_ext >&5
4407  rm -rf conftest*
4408  eval "ac_cv_func_$ac_func=no"
4409fi
4410rm -f conftest*
4411fi
4412
4413if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4414  echo "$ac_t""yes" 1>&6
4415    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4416  cat >> confdefs.h <<EOF
4417#define $ac_tr_func 1
4418EOF
4419 
4420else
4421  echo "$ac_t""no" 1>&6
4422fi
4423done
4424
4425echo $ac_n "checking ino_t defined by sys/types.h""... $ac_c" 1>&6
4426echo "configure:4427: checking ino_t defined by sys/types.h" >&5
4427if eval "test \"`echo '$''{'e2fsprogs_cv_ino_t'+set}'`\" = set"; then
4428  echo $ac_n "(cached) $ac_c" 1>&6
4429else
4430  cat > conftest.$ac_ext <<EOF
4431#line 4432 "configure"
4432#include "confdefs.h"
4433#include <sys/types.h>
4434int main() {
4435ino_t ino; ino = 0;
4436; return 0; }
4437EOF
4438if { (eval echo configure:4439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4439  rm -rf conftest*
4440  e2fsprogs_cv_ino_t=yes
4441else
4442  echo "configure: failed program was:" >&5
4443  cat conftest.$ac_ext >&5
4444  rm -rf conftest*
4445  e2fsprogs_cv_ino_t=no
4446fi
4447rm -f conftest*
4448fi
4449
4450echo "$ac_t""$e2fsprogs_cv_ino_t" 1>&6
4451if test "$e2fsprogs_cv_ino_t" = yes; then
4452   cat >> confdefs.h <<\EOF
4453#define HAVE_INO_T 1
4454EOF
4455
4456fi
4457SOCKET_LIB=''
4458echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
4459echo "configure:4460: checking for socket in -lsocket" >&5
4460ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
4461if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4462  echo $ac_n "(cached) $ac_c" 1>&6
4463else
4464  ac_save_LIBS="$LIBS"
4465LIBS="-lsocket  $LIBS"
4466cat > conftest.$ac_ext <<EOF
4467#line 4468 "configure"
4468#include "confdefs.h"
4469/* Override any gcc2 internal prototype to avoid an error.  */
4470/* We use char because int might match the return type of a gcc2
4471    builtin and then its argument prototype would still apply.  */
4472char socket();
4473
4474int main() {
4475socket()
4476; return 0; }
4477EOF
4478if { (eval echo configure:4479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4479  rm -rf conftest*
4480  eval "ac_cv_lib_$ac_lib_var=yes"
4481else
4482  echo "configure: failed program was:" >&5
4483  cat conftest.$ac_ext >&5
4484  rm -rf conftest*
4485  eval "ac_cv_lib_$ac_lib_var=no"
4486fi
4487rm -f conftest*
4488LIBS="$ac_save_LIBS"
4489
4490fi
4491if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4492  echo "$ac_t""yes" 1>&6
4493  SOCKET_LIB=-lsocket
4494else
4495  echo "$ac_t""no" 1>&6
4496fi
4497
4498
4499echo $ac_n "checking for optreset""... $ac_c" 1>&6
4500echo "configure:4501: checking for optreset" >&5
4501if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
4502  echo $ac_n "(cached) $ac_c" 1>&6
4503else
4504  cat > conftest.$ac_ext <<EOF
4505#line 4506 "configure"
4506#include "confdefs.h"
4507#include <unistd.h>
4508EOF
4509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4510  egrep "optreset" >/dev/null 2>&1; then
4511  rm -rf conftest*
4512  ac_cv_have_optreset=yes
4513else
4514  rm -rf conftest*
4515  ac_cv_have_optreset=no
4516fi
4517rm -f conftest*
4518
4519fi
4520echo "$ac_t""$ac_cv_have_optreset" 1>&6
4521if test $ac_cv_have_optreset = yes; then
4522  cat >> confdefs.h <<\EOF
4523#define HAVE_OPTRESET 1
4524EOF
4525
4526fi
4527case "$host_os" in
4528linux*)
4529	cat >> confdefs.h <<\EOF
4530#define HAVE_EXT2_IOCTLS 1
4531EOF
4532
4533	;;
4534esac
4535case "$host_os" in
4536linux* | gnu*)
4537	if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
4538		root_prefix="";
4539		echo "On $host_os systems, root_prefix defaults to ''"
4540	fi
4541	;;
4542esac
4543case "$host_os" in
4544linux* | gnu*)
4545	if test "$prefix" = NONE ; then
4546		prefix="/usr";
4547		echo "On $host_os systems, prefix defaults to /usr"
4548	fi
4549;;
4550esac
4551if test "$root_prefix" = NONE ; then
4552	if test "$prefix" = NONE ; then
4553		root_prefix="$ac_default_prefix"
4554	else
4555		root_prefix="$prefix"
4556	fi
4557fi
4558
4559echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
4560echo "configure:4561: checking whether linker accepts -static" >&5
4561if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
4562  echo $ac_n "(cached) $ac_c" 1>&6
4563else
4564  SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
4565cat > conftest.$ac_ext <<EOF
4566#line 4567 "configure"
4567#include "confdefs.h"
4568#include <stdio.h>
4569int main() {
4570fflush(stdout);
4571; return 0; }
4572EOF
4573if { (eval echo configure:4574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4574  rm -rf conftest*
4575  ac_cv_e2fsprogs_use_static=yes
4576else
4577  echo "configure: failed program was:" >&5
4578  cat conftest.$ac_ext >&5
4579  rm -rf conftest*
4580  ac_cv_e2fsprogs_use_static=no
4581fi
4582rm -f conftest*
4583LDFLAGS=$SAVE_LDFLAGS
4584fi
4585
4586case "$host_os" in
4587solaris2.*)
4588	ac_cv_e2fsprogs_use_static=no	
4589;;
4590esac
4591echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
4592LDFLAG_STATIC=
4593if test $ac_cv_e2fsprogs_use_static = yes; then
4594	LDFLAG_STATIC=-static
4595fi
4596
4597SS_DIR=`cd ${srcdir}/lib/ss; pwd`
4598ET_DIR=`cd ${srcdir}/lib/et; pwd`
4599
4600
4601if test "$cross_compiling" = yes ; then
4602  DO_TEST_SUITE=
4603else
4604  DO_TEST_SUITE=check
4605fi
4606
4607DO_SUBSTITUTE_SCRIPT=$srcdir/lib/do_substitute
4608
4609test -d lib || mkdir lib
4610test -d include || mkdir include
4611test -d include/linux || mkdir include/linux
4612test -d include/asm || mkdir include/asm
4613rmakefile=
4614if test -d ${srcdir}/resize ; then
4615   rmakefile=resize/Makefile
4616fi
4617trap '' 1 2 15
4618cat > confcache <<\EOF
4619# This file is a shell script that caches the results of configure
4620# tests run on this system so they can be shared between configure
4621# scripts and configure runs.  It is not useful on other systems.
4622# If it contains results you don't want to keep, you may remove or edit it.
4623#
4624# By default, configure uses ./config.cache as the cache file,
4625# creating it if it does not exist already.  You can give configure
4626# the --cache-file=FILE option to use a different cache file; that is
4627# what configure does when it calls configure scripts in
4628# subdirectories, so they share the cache.
4629# Giving --cache-file=/dev/null disables caching, for debugging configure.
4630# config.status only pays attention to the cache file if you give it the
4631# --recheck option to rerun configure.
4632#
4633EOF
4634# The following way of writing the cache mishandles newlines in values,
4635# but we know of no workaround that is simple, portable, and efficient.
4636# So, don't put newlines in cache variables' values.
4637# Ultrix sh set writes to stderr and can't be redirected directly,
4638# and sets the high bit in the cache file unless we assign to the vars.
4639(set) 2>&1 |
4640  case `(ac_space=' '; set | grep ac_space) 2>&1` in
4641  *ac_space=\ *)
4642    # `set' does not quote correctly, so add quotes (double-quote substitution
4643    # turns \\\\ into \\, and sed turns \\ into \).
4644    sed -n \
4645      -e "s/'/'\\\\''/g" \
4646      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4647    ;;
4648  *)
4649    # `set' quotes correctly as required by POSIX, so do not add quotes.
4650    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4651    ;;
4652  esac >> confcache
4653if cmp -s $cache_file confcache; then
4654  :
4655else
4656  if test -w $cache_file; then
4657    echo "updating cache $cache_file"
4658    cat confcache > $cache_file
4659  else
4660    echo "not updating unwritable cache $cache_file"
4661  fi
4662fi
4663rm -f confcache
4664
4665trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4666
4667test "x$prefix" = xNONE && prefix=$ac_default_prefix
4668# Let make expand exec_prefix.
4669test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4670
4671# Any assignment to VPATH causes Sun make to only execute
4672# the first set of double-colon rules, so remove it if not needed.
4673# If there is a colon in the path, we need to keep it.
4674if test "x$srcdir" = x.; then
4675  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
4676fi
4677
4678trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4679
4680# Transform confdefs.h into DEFS.
4681# Protect against shell expansion while executing Makefile rules.
4682# Protect against Makefile macro expansion.
4683cat > conftest.defs <<\EOF
4684s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
4685s%[ 	`~#$^&*(){}\\|;'"<>?]%\\&%g
4686s%\[%\\&%g
4687s%\]%\\&%g
4688s%\$%$$%g
4689EOF
4690DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4691rm -f conftest.defs
4692
4693
4694# Without the "./", some shells look in PATH for config.status.
4695: ${CONFIG_STATUS=./config.status}
4696
4697echo creating $CONFIG_STATUS
4698rm -f $CONFIG_STATUS
4699cat > $CONFIG_STATUS <<EOF
4700#! /bin/sh
4701# Generated automatically by configure.
4702# Run this file to recreate the current configuration.
4703# This directory was configured as follows,
4704# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4705#
4706# $0 $ac_configure_args
4707#
4708# Compiler output produced by configure, useful for debugging
4709# configure, is in ./config.log if it exists.
4710
4711ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4712for ac_option
4713do
4714  case "\$ac_option" in
4715  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4716    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4717    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4718  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4719    echo "$CONFIG_STATUS generated by autoconf version 2.13"
4720    exit 0 ;;
4721  -help | --help | --hel | --he | --h)
4722    echo "\$ac_cs_usage"; exit 0 ;;
4723  *) echo "\$ac_cs_usage"; exit 1 ;;
4724  esac
4725done
4726
4727ac_given_srcdir=$srcdir
4728ac_given_INSTALL="$INSTALL"
4729
4730trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile 
4731	lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
4732	misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile 
4733	tests/progs/Makefile $rmakefile doc/Makefile 
4734	intl/Makefile po/Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4735EOF
4736cat >> $CONFIG_STATUS <<EOF
4737
4738# Protect against being on the right side of a sed subst in config.status.
4739sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4740 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4741$ac_vpsub
4742$extrasub
4743s%@SHELL@%$SHELL%g
4744s%@CFLAGS@%$CFLAGS%g
4745s%@CPPFLAGS@%$CPPFLAGS%g
4746s%@CXXFLAGS@%$CXXFLAGS%g
4747s%@FFLAGS@%$FFLAGS%g
4748s%@DEFS@%$DEFS%g
4749s%@LDFLAGS@%$LDFLAGS%g
4750s%@LIBS@%$LIBS%g
4751s%@exec_prefix@%$exec_prefix%g
4752s%@prefix@%$prefix%g
4753s%@program_transform_name@%$program_transform_name%g
4754s%@bindir@%$bindir%g
4755s%@sbindir@%$sbindir%g
4756s%@libexecdir@%$libexecdir%g
4757s%@datadir@%$datadir%g
4758s%@sysconfdir@%$sysconfdir%g
4759s%@sharedstatedir@%$sharedstatedir%g
4760s%@localstatedir@%$localstatedir%g
4761s%@libdir@%$libdir%g
4762s%@includedir@%$includedir%g
4763s%@oldincludedir@%$oldincludedir%g
4764s%@infodir@%$infodir%g
4765s%@mandir@%$mandir%g
4766/@MCONFIG@/r $MCONFIG
4767s%@MCONFIG@%%g
4768s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
4769s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
4770s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
4771s%@host@%$host%g
4772s%@host_alias@%$host_alias%g
4773s%@host_cpu@%$host_cpu%g
4774s%@host_vendor@%$host_vendor%g
4775s%@host_os@%$host_os%g
4776s%@CC@%$CC%g
4777s%@LD@%$LD%g
4778s%@CCOPTS@%$CCOPTS%g
4779s%@CPP@%$CPP%g
4780s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
4781s%@DLL_CMT@%$DLL_CMT%g
4782/@MAKEFILE_DLL@/r $MAKEFILE_DLL
4783s%@MAKEFILE_DLL@%%g
4784s%@ELF_CMT@%$ELF_CMT%g
4785/@MAKEFILE_ELF@/r $MAKEFILE_ELF
4786s%@MAKEFILE_ELF@%%g
4787s%@BSDLIB_CMT@%$BSDLIB_CMT%g
4788/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
4789s%@MAKEFILE_BSDLIB@%%g
4790s%@PACKAGE@%$PACKAGE%g
4791s%@VERSION@%$VERSION%g
4792s%@SET_MAKE@%$SET_MAKE%g
4793s%@RANLIB@%$RANLIB%g
4794s%@ALLOCA@%$ALLOCA%g
4795s%@USE_NLS@%$USE_NLS%g
4796s%@MSGFMT@%$MSGFMT%g
4797s%@GMSGFMT@%$GMSGFMT%g
4798s%@XGETTEXT@%$XGETTEXT%g
4799s%@GENCAT@%$GENCAT%g
4800s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4801s%@CATALOGS@%$CATALOGS%g
4802s%@CATOBJEXT@%$CATOBJEXT%g
4803s%@DATADIRNAME@%$DATADIRNAME%g
4804s%@GMOFILES@%$GMOFILES%g
4805s%@INSTOBJEXT@%$INSTOBJEXT%g
4806s%@INTLDEPS@%$INTLDEPS%g
4807s%@INTLLIBS@%$INTLLIBS%g
4808s%@INTLOBJS@%$INTLOBJS%g
4809s%@POFILES@%$POFILES%g
4810s%@POSUB@%$POSUB%g
4811s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4812s%@GT_NO@%$GT_NO%g
4813s%@GT_YES@%$GT_YES%g
4814s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4815s%@l@%$l%g
4816s%@PROFILE_CMT@%$PROFILE_CMT%g
4817/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
4818s%@MAKEFILE_PROFILE@%%g
4819s%@CHECKER_CMT@%$CHECKER_CMT%g
4820/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
4821s%@MAKEFILE_CHECKER@%%g
4822s%@LIB_EXT@%$LIB_EXT%g
4823s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
4824s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
4825s%@W@%$W%g
4826s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
4827s%@FSCK_PROG@%$FSCK_PROG%g
4828s%@FSCK_MAN@%$FSCK_MAN%g
4829/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
4830s%@MAKEFILE_LIBRARY@%%g
4831s%@BINARY_TYPE@%$BINARY_TYPE%g
4832s%@LN@%$LN%g
4833s%@LN_S@%$LN_S%g
4834s%@MV@%$MV%g
4835s%@CP@%$CP%g
4836s%@RM@%$RM%g
4837s%@CHMOD@%$CHMOD%g
4838s%@AWK@%$AWK%g
4839s%@SED@%$SED%g
4840s%@PERL@%$PERL%g
4841s%@build@%$build%g
4842s%@build_alias@%$build_alias%g
4843s%@build_cpu@%$build_cpu%g
4844s%@build_vendor@%$build_vendor%g
4845s%@build_os@%$build_os%g
4846s%@AR@%$AR%g
4847s%@STRIP@%$STRIP%g
4848s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4849s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4850s%@INSTALL_DATA@%$INSTALL_DATA%g
4851s%@BUILD_CC@%$BUILD_CC%g
4852s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
4853s%@SIZEOF_INT@%$SIZEOF_INT%g
4854s%@SIZEOF_LONG@%$SIZEOF_LONG%g
4855s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
4856s%@SOCKET_LIB@%$SOCKET_LIB%g
4857s%@root_prefix@%$root_prefix%g
4858s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
4859s%@SS_DIR@%$SS_DIR%g
4860s%@ET_DIR@%$ET_DIR%g
4861s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
4862/@DO_SUBSTITUTE_SCRIPT@/r $DO_SUBSTITUTE_SCRIPT
4863s%@DO_SUBSTITUTE_SCRIPT@%%g
4864
4865CEOF
4866EOF
4867
4868cat >> $CONFIG_STATUS <<\EOF
4869
4870# Split the substitutions into bite-sized pieces for seds with
4871# small command number limits, like on Digital OSF/1 and HP-UX.
4872ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4873ac_file=1 # Number of current file.
4874ac_beg=1 # First line for current file.
4875ac_end=$ac_max_sed_cmds # Line after last line for current file.
4876ac_more_lines=:
4877ac_sed_cmds=""
4878while $ac_more_lines; do
4879  if test $ac_beg -gt 1; then
4880    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4881  else
4882    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4883  fi
4884  if test ! -s conftest.s$ac_file; then
4885    ac_more_lines=false
4886    rm -f conftest.s$ac_file
4887  else
4888    if test -z "$ac_sed_cmds"; then
4889      ac_sed_cmds="sed -f conftest.s$ac_file"
4890    else
4891      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4892    fi
4893    ac_file=`expr $ac_file + 1`
4894    ac_beg=$ac_end
4895    ac_end=`expr $ac_end + $ac_max_sed_cmds`
4896  fi
4897done
4898if test -z "$ac_sed_cmds"; then
4899  ac_sed_cmds=cat
4900fi
4901EOF
4902
4903cat >> $CONFIG_STATUS <<EOF
4904
4905CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile 
4906	lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
4907	misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile 
4908	tests/progs/Makefile $rmakefile doc/Makefile 
4909	intl/Makefile po/Makefile.in"}
4910EOF
4911cat >> $CONFIG_STATUS <<\EOF
4912for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4913  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4914  case "$ac_file" in
4915  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4916       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4917  *) ac_file_in="${ac_file}.in" ;;
4918  esac
4919
4920  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4921
4922  # Remove last slash and all that follows it.  Not all systems have dirname.
4923  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4924  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4925    # The file is in a subdirectory.
4926    test ! -d "$ac_dir" && mkdir "$ac_dir"
4927    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4928    # A "../" for each directory in $ac_dir_suffix.
4929    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4930  else
4931    ac_dir_suffix= ac_dots=
4932  fi
4933
4934  case "$ac_given_srcdir" in
4935  .)  srcdir=.
4936      if test -z "$ac_dots"; then top_srcdir=.
4937      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4938  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4939  *) # Relative path.
4940    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4941    top_srcdir="$ac_dots$ac_given_srcdir" ;;
4942  esac
4943
4944  case "$ac_given_INSTALL" in
4945  [/$]*) INSTALL="$ac_given_INSTALL" ;;
4946  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4947  esac
4948
4949  echo creating "$ac_file"
4950  rm -f "$ac_file"
4951  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4952  case "$ac_file" in
4953  *Makefile*) ac_comsub="1i\\
4954# $configure_input" ;;
4955  *) ac_comsub= ;;
4956  esac
4957
4958  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4959  sed -e "$ac_comsub
4960s%@configure_input@%$configure_input%g
4961s%@srcdir@%$srcdir%g
4962s%@top_srcdir@%$top_srcdir%g
4963s%@INSTALL@%$INSTALL%g
4964" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4965fi; done
4966rm -f conftest.s*
4967
4968EOF
4969
4970cat >> $CONFIG_STATUS <<EOF
4971ac_sources="$nls_cv_header_libgt"
4972ac_dests="$nls_cv_header_intl"
4973EOF
4974
4975cat >> $CONFIG_STATUS <<\EOF
4976srcdir=$ac_given_srcdir
4977while test -n "$ac_sources"; do
4978  set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4979  set $ac_sources; ac_source=$1; shift; ac_sources=$*
4980
4981  echo "linking $srcdir/$ac_source to $ac_dest"
4982
4983  if test ! -r $srcdir/$ac_source; then
4984    { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4985  fi
4986  rm -f $ac_dest
4987
4988  # Make relative symlinks.
4989  # Remove last slash and all that follows it.  Not all systems have dirname.
4990  ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
4991  if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4992    # The dest file is in a subdirectory.
4993    test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4994    ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
4995    # A "../" for each directory in $ac_dest_dir_suffix.
4996    ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
4997  else
4998    ac_dest_dir_suffix= ac_dots=
4999  fi
5000
5001  case "$srcdir" in
5002  [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5003  *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5004  esac
5005
5006  # Make a symlink if possible; otherwise try a hard link.
5007  if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5008    ln $srcdir/$ac_source $ac_dest; then :
5009  else
5010    { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5011  fi
5012done
5013EOF
5014cat >> $CONFIG_STATUS <<EOF
5015
5016
5017EOF
5018cat >> $CONFIG_STATUS <<\EOF
5019case "$CONFIG_FILES" in *po/Makefile.in*)
5020        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5021      esac
5022
5023exit 0
5024EOF
5025chmod +x $CONFIG_STATUS
5026rm -fr confdefs* $ac_clean_files
5027test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5028
5029