1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8# Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92case $0 in #((
93  *[\\/]* ) as_myself=$0 ;;
94  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97  IFS=$as_save_IFS
98  test -z "$as_dir" && as_dir=.
99    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100  done
101IFS=$as_save_IFS
102
103     ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108  as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112  exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there.  '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138  emulate sh
139  NULLCMD=:
140  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141  # is contrary to our usage.  Disable this feature.
142  alias -g '\${1+\"\$@\"}'='\"\$@\"'
143  setopt NO_GLOB_SUBST
144else
145  case \`(set -o) 2>/dev/null\` in #(
146  *posix*) :
147    set -o posix ;; #(
148  *) :
149     ;;
150esac
151fi
152"
153  as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167  exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175  if (eval "$as_required") 2>/dev/null; then :
176  as_have_required=yes
177else
178  as_have_required=no
179fi
180  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187  IFS=$as_save_IFS
188  test -z "$as_dir" && as_dir=.
189  as_found=:
190  case $as_dir in #(
191	 /*)
192	   for as_base in sh bash ksh sh5; do
193	     # Try only shells that exist, to save several forks.
194	     as_shell=$as_dir/$as_base
195	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197  CONFIG_SHELL=$as_shell as_have_required=yes
198		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  break 2
200fi
201fi
202	   done;;
203       esac
204  as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208  CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213      if test "x$CONFIG_SHELL" != x; then :
214  # We cannot yet assume a decent shell, so we have to provide a
215	# neutralization value for shells without unset; and this also
216	# works around shells that cannot unset nonexistent variables.
217	BASH_ENV=/dev/null
218	ENV=/dev/null
219	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220	export CONFIG_SHELL
221	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224    if test x$as_have_required = xno; then :
225  $as_echo "$0: This script requires a shell more modern than all"
226  $as_echo "$0: the shells that I found on your system."
227  if test x${ZSH_VERSION+set} = xset ; then
228    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230  else
231    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235  fi
236  exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254  { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263  return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271  set +e
272  as_fn_set_status $1
273  exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282  case $as_dir in #(
283  -*) as_dir=./$as_dir;;
284  esac
285  test -d "$as_dir" || eval $as_mkdir_p || {
286    as_dirs=
287    while :; do
288      case $as_dir in #(
289      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290      *) as_qdir=$as_dir;;
291      esac
292      as_dirs="'$as_qdir' $as_dirs"
293      as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295	 X"$as_dir" : 'X\(//\)[^/]' \| \
296	 X"$as_dir" : 'X\(//\)$' \| \
297	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300	    s//\1/
301	    q
302	  }
303	  /^X\(\/\/\)[^/].*/{
304	    s//\1/
305	    q
306	  }
307	  /^X\(\/\/\)$/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\).*/{
312	    s//\1/
313	    q
314	  }
315	  s/.*/./; q'`
316      test -d "$as_dir" && break
317    done
318    test -z "$as_dirs" || eval "mkdir $as_dirs"
319  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330  eval 'as_fn_append ()
331  {
332    eval $1+=\$2
333  }'
334else
335  as_fn_append ()
336  {
337    eval $1=\$$1\$2
338  }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347  eval 'as_fn_arith ()
348  {
349    as_val=$(( $* ))
350  }'
351else
352  as_fn_arith ()
353  {
354    as_val=`expr "$@" || test $? -eq 1`
355  }
356fi # as_fn_arith
357
358
359# as_fn_error ERROR [LINENO LOG_FD]
360# ---------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with status $?, using 1 if that was 0.
364as_fn_error ()
365{
366  as_status=$?; test $as_status -eq 0 && as_status=1
367  if test "$3"; then
368    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370  fi
371  $as_echo "$as_me: error: $1" >&2
372  as_fn_exit $as_status
373} # as_fn_error
374
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376   test "X`expr 00001 : '.*\(...\)'`" = X001; then
377  as_expr=expr
378else
379  as_expr=false
380fi
381
382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383  as_basename=basename
384else
385  as_basename=false
386fi
387
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389  as_dirname=dirname
390else
391  as_dirname=false
392fi
393
394as_me=`$as_basename -- "$0" ||
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396	 X"$0" : 'X\(//\)$' \| \
397	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398$as_echo X/"$0" |
399    sed '/^.*\/\([^/][^/]*\)\/*$/{
400	    s//\1/
401	    q
402	  }
403	  /^X\/\(\/\/\)$/{
404	    s//\1/
405	    q
406	  }
407	  /^X\/\(\/\).*/{
408	    s//\1/
409	    q
410	  }
411	  s/.*/./; q'`
412
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421  as_lineno_1=$LINENO as_lineno_1a=$LINENO
422  as_lineno_2=$LINENO as_lineno_2a=$LINENO
423  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426  sed -n '
427    p
428    /[$]LINENO/=
429  ' <$as_myself |
430    sed '
431      s/[$]LINENO.*/&-/
432      t lineno
433      b
434      :lineno
435      N
436      :loop
437      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438      t loop
439      s/-\n.*//
440    ' >$as_me.lineno &&
441  chmod +x "$as_me.lineno" ||
442    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444  # Don't try to exec as it changes $[0], causing all sort of problems
445  # (the dirname of $[0] is not the place where we might find the
446  # original and so on.  Autoconf is especially sensitive to this).
447  . "./$as_me.lineno"
448  # Exit status is that of the last command.
449  exit
450}
451
452ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #(((((
454-n*)
455  case `echo 'xy\c'` in
456  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
457  xy)  ECHO_C='\c';;
458  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459       ECHO_T='	';;
460  esac;;
461*)
462  ECHO_N='-n';;
463esac
464
465rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then
467  rm -f conf$$.dir/conf$$.file
468else
469  rm -f conf$$.dir
470  mkdir conf$$.dir 2>/dev/null
471fi
472if (echo >conf$$.file) 2>/dev/null; then
473  if ln -s conf$$.file conf$$ 2>/dev/null; then
474    as_ln_s='ln -s'
475    # ... but there are two gotchas:
476    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478    # In both cases, we have to default to `cp -p'.
479    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480      as_ln_s='cp -p'
481  elif ln conf$$.file conf$$ 2>/dev/null; then
482    as_ln_s=ln
483  else
484    as_ln_s='cp -p'
485  fi
486else
487  as_ln_s='cp -p'
488fi
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
491
492if mkdir -p . 2>/dev/null; then
493  as_mkdir_p='mkdir -p "$as_dir"'
494else
495  test -d ./-p && rmdir ./-p
496  as_mkdir_p=false
497fi
498
499if test -x / >/dev/null 2>&1; then
500  as_test_x='test -x'
501else
502  if ls -dL / >/dev/null 2>&1; then
503    as_ls_L_option=L
504  else
505    as_ls_L_option=
506  fi
507  as_test_x='
508    eval sh -c '\''
509      if test -d "$1"; then
510	test -d "$1/.";
511      else
512	case $1 in #(
513	-*)set "./$1";;
514	esac;
515	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516	???[sx]*):;;*)false;;esac;fi
517    '\'' sh
518  '
519fi
520as_executable_p=$as_test_x
521
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529test -n "$DJDIR" || exec 7<&0 </dev/null
530exec 6>&1
531
532# Name of the host.
533# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534# so uname gets run too.
535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537#
538# Initializations.
539#
540ac_default_prefix=/usr/local
541ac_clean_files=
542ac_config_libobj_dir=.
543LIBOBJS=
544cross_compiling=no
545subdirs=
546MFLAGS=
547MAKEFLAGS=
548
549# Identity of this package.
550PACKAGE_NAME=
551PACKAGE_TARNAME=
552PACKAGE_VERSION=
553PACKAGE_STRING=
554PACKAGE_BUGREPORT=
555PACKAGE_URL=
556
557ac_unique_file="version.h"
558# Factoring default headers for most tests.
559ac_includes_default="\
560#include <stdio.h>
561#ifdef HAVE_SYS_TYPES_H
562# include <sys/types.h>
563#endif
564#ifdef HAVE_SYS_STAT_H
565# include <sys/stat.h>
566#endif
567#ifdef STDC_HEADERS
568# include <stdlib.h>
569# include <stddef.h>
570#else
571# ifdef HAVE_STDLIB_H
572#  include <stdlib.h>
573# endif
574#endif
575#ifdef HAVE_STRING_H
576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577#  include <memory.h>
578# endif
579# include <string.h>
580#endif
581#ifdef HAVE_STRINGS_H
582# include <strings.h>
583#endif
584#ifdef HAVE_INTTYPES_H
585# include <inttypes.h>
586#endif
587#ifdef HAVE_STDINT_H
588# include <stdint.h>
589#endif
590#ifdef HAVE_UNISTD_H
591# include <unistd.h>
592#endif"
593
594ac_header_list=
595ac_subst_vars='LTLIBOBJS
596LIBOBJS
597BUILD_LDFLAGS
598BUILD_CFLAGS
599INTL_FLAGS
600DO_TEST_SUITE
601ET_DIR
602SS_DIR
603LDFLAG_STATIC
604root_sysconfdir
605root_libdir
606root_sbindir
607root_bindir
608root_prefix
609UNIX_CMT
610CYGWIN_CMT
611LINUX_CMT
612UNI_DIFF_OPTS
613SEM_INIT_LIB
614SOCKET_LIB
615SIZEOF_LONG_LONG
616SIZEOF_LONG
617SIZEOF_INT
618SIZEOF_SHORT
619BUILD_CC
620MAKEINFO
621STRIP
622AR
623LDCONFIG
624PERL
625SED
626AWK
627CHMOD
628RM
629CP
630MV
631LN_S
632LN
633ifNotGNUmake
634ifGNUmake
635BINARY_TYPE
636POSUB
637LTLIBINTL
638LIBINTL
639INTLLIBS
640INTL_LIBTOOL_SUFFIX_PREFIX
641INTLOBJS
642GENCAT
643INSTOBJEXT
644DATADIRNAME
645CATOBJEXT
646USE_INCLUDED_LIBINTL
647BUILD_INCLUDED_LIBINTL
648INTLBISON
649LTLIBICONV
650LIBICONV
651HAVE_WPRINTF
652HAVE_SNPRINTF
653HAVE_ASPRINTF
654HAVE_POSIX_PRINTF
655GLIBC21
656ALLOCA
657RANLIB
658MSGMERGE
659XGETTEXT
660GMSGFMT
661MSGFMT
662USE_NLS
663MKINSTALLDIRS
664INSTALL_DATA
665INSTALL_SCRIPT
666INSTALL_PROGRAM
667SET_MAKE
668VERSION
669PACKAGE
670GETTEXT_PACKAGE
671UUIDD_CMT
672E2INITRD_MAN
673E2INITRD_PROG
674FSCK_MAN
675FSCK_PROG
676RESIZER_CMT
677IMAGER_CMT
678DEBUGFS_CMT
679BLKID_CMT
680DEPPROFILED_LIBBLKID
681PROFILED_LIBBLKID
682DEPSTATIC_LIBBLKID
683STATIC_LIBBLKID
684DEPLIBBLKID
685LIBBLKID
686UUID_CMT
687DEPPROFILED_LIBUUID
688PROFILED_LIBUUID
689DEPSTATIC_LIBUUID
690STATIC_LIBUUID
691DEPLIBUUID
692LIBUUID
693PKG_CONFIG
694TEST_IO_CMT
695PRIVATE_LIBS_CMT
696LDFLAG_DYNAMIC
697PROFILED_LIB_EXT
698STATIC_LIB_EXT
699LIB_EXT
700CHECKER_CMT
701PROFILE_CMT
702BSDLIB_CMT
703ELF_CMT
704HTREE_CMT
705Q
706E
707LINK_BUILD_FLAGS
708LINK_INSTALL_FLAGS
709MAINTAINER_CMT
710LINUX_INCLUDE
711EGREP
712GREP
713CPP
714DLOPEN_LIB
715OBJEXT
716EXEEXT
717ac_ct_CC
718CPPFLAGS
719LDFLAGS
720CFLAGS
721CC
722host_os
723host_vendor
724host_cpu
725host
726build_os
727build_vendor
728build_cpu
729build
730E2FSPROGS_PKGVER
731E2FSPROGS_VERSION
732E2FSPROGS_DAY
733E2FSPROGS_MONTH
734E2FSPROGS_YEAR
735target_alias
736host_alias
737build_alias
738LIBS
739ECHO_T
740ECHO_N
741ECHO_C
742DEFS
743mandir
744localedir
745libdir
746psdir
747pdfdir
748dvidir
749htmldir
750infodir
751docdir
752oldincludedir
753includedir
754localstatedir
755sharedstatedir
756sysconfdir
757datadir
758datarootdir
759libexecdir
760sbindir
761bindir
762program_transform_name
763prefix
764exec_prefix
765PACKAGE_URL
766PACKAGE_BUGREPORT
767PACKAGE_STRING
768PACKAGE_VERSION
769PACKAGE_TARNAME
770PACKAGE_NAME
771PATH_SEPARATOR
772SHELL'
773ac_subst_files='MCONFIG
774MAKEFILE_ELF
775MAKEFILE_BSDLIB
776MAKEFILE_PROFILE
777MAKEFILE_CHECKER
778MAKEFILE_LIBRARY
779ASM_TYPES_HEADER
780PUBLIC_CONFIG_HEADER'
781ac_user_opts='
782enable_option_checking
783with_diet_libc
784with_cc
785with_ccopts
786with_ldopts
787with_root_prefix
788enable_maintainer_mode
789enable_symlink_install
790enable_symlink_build
791enable_verbose_makecmds
792enable_compression
793enable_htree
794enable_elf_shlibs
795enable_bsd_shlibs
796enable_profile
797enable_checker
798enable_jbd_debug
799enable_blkid_debug
800enable_testio_debug
801enable_libuuid
802enable_libblkid
803enable_debugfs
804enable_imager
805enable_resizer
806enable_fsck
807enable_e2initrd_helper
808enable_tls
809enable_uuidd
810enable_nls
811with_gnu_ld
812enable_rpath
813with_libiconv_prefix
814with_included_gettext
815with_libintl_prefix
816'
817      ac_precious_vars='build_alias
818host_alias
819target_alias
820CC
821CFLAGS
822LDFLAGS
823LIBS
824CPPFLAGS
825CPP
826PKG_CONFIG'
827
828
829# Initialize some variables set by options.
830ac_init_help=
831ac_init_version=false
832ac_unrecognized_opts=
833ac_unrecognized_sep=
834# The variables have the same names as the options, with
835# dashes changed to underlines.
836cache_file=/dev/null
837exec_prefix=NONE
838no_create=
839no_recursion=
840prefix=NONE
841program_prefix=NONE
842program_suffix=NONE
843program_transform_name=s,x,x,
844silent=
845site=
846srcdir=
847verbose=
848x_includes=NONE
849x_libraries=NONE
850
851# Installation directory options.
852# These are left unexpanded so users can "make install exec_prefix=/foo"
853# and all the variables that are supposed to be based on exec_prefix
854# by default will actually change.
855# Use braces instead of parens because sh, perl, etc. also accept them.
856# (The list follows the same order as the GNU Coding Standards.)
857bindir='${exec_prefix}/bin'
858sbindir='${exec_prefix}/sbin'
859libexecdir='${exec_prefix}/libexec'
860datarootdir='${prefix}/share'
861datadir='${datarootdir}'
862sysconfdir='${prefix}/etc'
863sharedstatedir='${prefix}/com'
864localstatedir='${prefix}/var'
865includedir='${prefix}/include'
866oldincludedir='/usr/include'
867docdir='${datarootdir}/doc/${PACKAGE}'
868infodir='${datarootdir}/info'
869htmldir='${docdir}'
870dvidir='${docdir}'
871pdfdir='${docdir}'
872psdir='${docdir}'
873libdir='${exec_prefix}/lib'
874localedir='${datarootdir}/locale'
875mandir='${datarootdir}/man'
876
877ac_prev=
878ac_dashdash=
879for ac_option
880do
881  # If the previous option needs an argument, assign it.
882  if test -n "$ac_prev"; then
883    eval $ac_prev=\$ac_option
884    ac_prev=
885    continue
886  fi
887
888  case $ac_option in
889  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890  *)	ac_optarg=yes ;;
891  esac
892
893  # Accept the important Cygnus configure options, so we can diagnose typos.
894
895  case $ac_dashdash$ac_option in
896  --)
897    ac_dashdash=yes ;;
898
899  -bindir | --bindir | --bindi | --bind | --bin | --bi)
900    ac_prev=bindir ;;
901  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902    bindir=$ac_optarg ;;
903
904  -build | --build | --buil | --bui | --bu)
905    ac_prev=build_alias ;;
906  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907    build_alias=$ac_optarg ;;
908
909  -cache-file | --cache-file | --cache-fil | --cache-fi \
910  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911    ac_prev=cache_file ;;
912  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914    cache_file=$ac_optarg ;;
915
916  --config-cache | -C)
917    cache_file=config.cache ;;
918
919  -datadir | --datadir | --datadi | --datad)
920    ac_prev=datadir ;;
921  -datadir=* | --datadir=* | --datadi=* | --datad=*)
922    datadir=$ac_optarg ;;
923
924  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925  | --dataroo | --dataro | --datar)
926    ac_prev=datarootdir ;;
927  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929    datarootdir=$ac_optarg ;;
930
931  -disable-* | --disable-*)
932    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933    # Reject names that are not valid shell variable names.
934    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935      as_fn_error "invalid feature name: $ac_useropt"
936    ac_useropt_orig=$ac_useropt
937    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938    case $ac_user_opts in
939      *"
940"enable_$ac_useropt"
941"*) ;;
942      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
943	 ac_unrecognized_sep=', ';;
944    esac
945    eval enable_$ac_useropt=no ;;
946
947  -docdir | --docdir | --docdi | --doc | --do)
948    ac_prev=docdir ;;
949  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
950    docdir=$ac_optarg ;;
951
952  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
953    ac_prev=dvidir ;;
954  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
955    dvidir=$ac_optarg ;;
956
957  -enable-* | --enable-*)
958    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
959    # Reject names that are not valid shell variable names.
960    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961      as_fn_error "invalid feature name: $ac_useropt"
962    ac_useropt_orig=$ac_useropt
963    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964    case $ac_user_opts in
965      *"
966"enable_$ac_useropt"
967"*) ;;
968      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
969	 ac_unrecognized_sep=', ';;
970    esac
971    eval enable_$ac_useropt=\$ac_optarg ;;
972
973  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
974  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
975  | --exec | --exe | --ex)
976    ac_prev=exec_prefix ;;
977  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
978  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
979  | --exec=* | --exe=* | --ex=*)
980    exec_prefix=$ac_optarg ;;
981
982  -gas | --gas | --ga | --g)
983    # Obsolete; use --with-gas.
984    with_gas=yes ;;
985
986  -help | --help | --hel | --he | -h)
987    ac_init_help=long ;;
988  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
989    ac_init_help=recursive ;;
990  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
991    ac_init_help=short ;;
992
993  -host | --host | --hos | --ho)
994    ac_prev=host_alias ;;
995  -host=* | --host=* | --hos=* | --ho=*)
996    host_alias=$ac_optarg ;;
997
998  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
999    ac_prev=htmldir ;;
1000  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1001  | --ht=*)
1002    htmldir=$ac_optarg ;;
1003
1004  -includedir | --includedir | --includedi | --included | --include \
1005  | --includ | --inclu | --incl | --inc)
1006    ac_prev=includedir ;;
1007  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1008  | --includ=* | --inclu=* | --incl=* | --inc=*)
1009    includedir=$ac_optarg ;;
1010
1011  -infodir | --infodir | --infodi | --infod | --info | --inf)
1012    ac_prev=infodir ;;
1013  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1014    infodir=$ac_optarg ;;
1015
1016  -libdir | --libdir | --libdi | --libd)
1017    ac_prev=libdir ;;
1018  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1019    libdir=$ac_optarg ;;
1020
1021  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1022  | --libexe | --libex | --libe)
1023    ac_prev=libexecdir ;;
1024  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1025  | --libexe=* | --libex=* | --libe=*)
1026    libexecdir=$ac_optarg ;;
1027
1028  -localedir | --localedir | --localedi | --localed | --locale)
1029    ac_prev=localedir ;;
1030  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1031    localedir=$ac_optarg ;;
1032
1033  -localstatedir | --localstatedir | --localstatedi | --localstated \
1034  | --localstate | --localstat | --localsta | --localst | --locals)
1035    ac_prev=localstatedir ;;
1036  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1037  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1038    localstatedir=$ac_optarg ;;
1039
1040  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1041    ac_prev=mandir ;;
1042  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1043    mandir=$ac_optarg ;;
1044
1045  -nfp | --nfp | --nf)
1046    # Obsolete; use --without-fp.
1047    with_fp=no ;;
1048
1049  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1050  | --no-cr | --no-c | -n)
1051    no_create=yes ;;
1052
1053  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1054  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1055    no_recursion=yes ;;
1056
1057  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1058  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1059  | --oldin | --oldi | --old | --ol | --o)
1060    ac_prev=oldincludedir ;;
1061  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1062  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1063  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1064    oldincludedir=$ac_optarg ;;
1065
1066  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1067    ac_prev=prefix ;;
1068  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1069    prefix=$ac_optarg ;;
1070
1071  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1072  | --program-pre | --program-pr | --program-p)
1073    ac_prev=program_prefix ;;
1074  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1075  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1076    program_prefix=$ac_optarg ;;
1077
1078  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1079  | --program-suf | --program-su | --program-s)
1080    ac_prev=program_suffix ;;
1081  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1082  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1083    program_suffix=$ac_optarg ;;
1084
1085  -program-transform-name | --program-transform-name \
1086  | --program-transform-nam | --program-transform-na \
1087  | --program-transform-n | --program-transform- \
1088  | --program-transform | --program-transfor \
1089  | --program-transfo | --program-transf \
1090  | --program-trans | --program-tran \
1091  | --progr-tra | --program-tr | --program-t)
1092    ac_prev=program_transform_name ;;
1093  -program-transform-name=* | --program-transform-name=* \
1094  | --program-transform-nam=* | --program-transform-na=* \
1095  | --program-transform-n=* | --program-transform-=* \
1096  | --program-transform=* | --program-transfor=* \
1097  | --program-transfo=* | --program-transf=* \
1098  | --program-trans=* | --program-tran=* \
1099  | --progr-tra=* | --program-tr=* | --program-t=*)
1100    program_transform_name=$ac_optarg ;;
1101
1102  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1103    ac_prev=pdfdir ;;
1104  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1105    pdfdir=$ac_optarg ;;
1106
1107  -psdir | --psdir | --psdi | --psd | --ps)
1108    ac_prev=psdir ;;
1109  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1110    psdir=$ac_optarg ;;
1111
1112  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113  | -silent | --silent | --silen | --sile | --sil)
1114    silent=yes ;;
1115
1116  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1117    ac_prev=sbindir ;;
1118  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1119  | --sbi=* | --sb=*)
1120    sbindir=$ac_optarg ;;
1121
1122  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1123  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1124  | --sharedst | --shareds | --shared | --share | --shar \
1125  | --sha | --sh)
1126    ac_prev=sharedstatedir ;;
1127  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1128  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1129  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1130  | --sha=* | --sh=*)
1131    sharedstatedir=$ac_optarg ;;
1132
1133  -site | --site | --sit)
1134    ac_prev=site ;;
1135  -site=* | --site=* | --sit=*)
1136    site=$ac_optarg ;;
1137
1138  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1139    ac_prev=srcdir ;;
1140  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1141    srcdir=$ac_optarg ;;
1142
1143  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1144  | --syscon | --sysco | --sysc | --sys | --sy)
1145    ac_prev=sysconfdir ;;
1146  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1147  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1148    sysconfdir=$ac_optarg ;;
1149
1150  -target | --target | --targe | --targ | --tar | --ta | --t)
1151    ac_prev=target_alias ;;
1152  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1153    target_alias=$ac_optarg ;;
1154
1155  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1156    verbose=yes ;;
1157
1158  -version | --version | --versio | --versi | --vers | -V)
1159    ac_init_version=: ;;
1160
1161  -with-* | --with-*)
1162    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1163    # Reject names that are not valid shell variable names.
1164    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165      as_fn_error "invalid package name: $ac_useropt"
1166    ac_useropt_orig=$ac_useropt
1167    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168    case $ac_user_opts in
1169      *"
1170"with_$ac_useropt"
1171"*) ;;
1172      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1173	 ac_unrecognized_sep=', ';;
1174    esac
1175    eval with_$ac_useropt=\$ac_optarg ;;
1176
1177  -without-* | --without-*)
1178    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1179    # Reject names that are not valid shell variable names.
1180    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181      as_fn_error "invalid package name: $ac_useropt"
1182    ac_useropt_orig=$ac_useropt
1183    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184    case $ac_user_opts in
1185      *"
1186"with_$ac_useropt"
1187"*) ;;
1188      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1189	 ac_unrecognized_sep=', ';;
1190    esac
1191    eval with_$ac_useropt=no ;;
1192
1193  --x)
1194    # Obsolete; use --with-x.
1195    with_x=yes ;;
1196
1197  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198  | --x-incl | --x-inc | --x-in | --x-i)
1199    ac_prev=x_includes ;;
1200  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1202    x_includes=$ac_optarg ;;
1203
1204  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206    ac_prev=x_libraries ;;
1207  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1209    x_libraries=$ac_optarg ;;
1210
1211  -*) as_fn_error "unrecognized option: \`$ac_option'
1212Try \`$0 --help' for more information."
1213    ;;
1214
1215  *=*)
1216    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217    # Reject names that are not valid shell variable names.
1218    case $ac_envvar in #(
1219      '' | [0-9]* | *[!_$as_cr_alnum]* )
1220      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1221    esac
1222    eval $ac_envvar=\$ac_optarg
1223    export $ac_envvar ;;
1224
1225  *)
1226    # FIXME: should be removed in autoconf 3.0.
1227    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1228    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1230    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1231    ;;
1232
1233  esac
1234done
1235
1236if test -n "$ac_prev"; then
1237  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1238  as_fn_error "missing argument to $ac_option"
1239fi
1240
1241if test -n "$ac_unrecognized_opts"; then
1242  case $enable_option_checking in
1243    no) ;;
1244    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1245    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1246  esac
1247fi
1248
1249# Check all directory arguments for consistency.
1250for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1251		datadir sysconfdir sharedstatedir localstatedir includedir \
1252		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1253		libdir localedir mandir
1254do
1255  eval ac_val=\$$ac_var
1256  # Remove trailing slashes.
1257  case $ac_val in
1258    */ )
1259      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1260      eval $ac_var=\$ac_val;;
1261  esac
1262  # Be sure to have absolute directory names.
1263  case $ac_val in
1264    [\\/$]* | ?:[\\/]* )  continue;;
1265    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1266  esac
1267  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1268done
1269
1270# There might be people who depend on the old broken behavior: `$host'
1271# used to hold the argument of --host etc.
1272# FIXME: To remove some day.
1273build=$build_alias
1274host=$host_alias
1275target=$target_alias
1276
1277# FIXME: To remove some day.
1278if test "x$host_alias" != x; then
1279  if test "x$build_alias" = x; then
1280    cross_compiling=maybe
1281    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1282    If a cross compiler is detected then cross compile mode will be used." >&2
1283  elif test "x$build_alias" != "x$host_alias"; then
1284    cross_compiling=yes
1285  fi
1286fi
1287
1288ac_tool_prefix=
1289test -n "$host_alias" && ac_tool_prefix=$host_alias-
1290
1291test "$silent" = yes && exec 6>/dev/null
1292
1293
1294ac_pwd=`pwd` && test -n "$ac_pwd" &&
1295ac_ls_di=`ls -di .` &&
1296ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1297  as_fn_error "working directory cannot be determined"
1298test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1299  as_fn_error "pwd does not report name of working directory"
1300
1301
1302# Find the source files, if location was not specified.
1303if test -z "$srcdir"; then
1304  ac_srcdir_defaulted=yes
1305  # Try the directory containing this script, then the parent directory.
1306  ac_confdir=`$as_dirname -- "$as_myself" ||
1307$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1308	 X"$as_myself" : 'X\(//\)[^/]' \| \
1309	 X"$as_myself" : 'X\(//\)$' \| \
1310	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1311$as_echo X"$as_myself" |
1312    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1313	    s//\1/
1314	    q
1315	  }
1316	  /^X\(\/\/\)[^/].*/{
1317	    s//\1/
1318	    q
1319	  }
1320	  /^X\(\/\/\)$/{
1321	    s//\1/
1322	    q
1323	  }
1324	  /^X\(\/\).*/{
1325	    s//\1/
1326	    q
1327	  }
1328	  s/.*/./; q'`
1329  srcdir=$ac_confdir
1330  if test ! -r "$srcdir/$ac_unique_file"; then
1331    srcdir=..
1332  fi
1333else
1334  ac_srcdir_defaulted=no
1335fi
1336if test ! -r "$srcdir/$ac_unique_file"; then
1337  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1338  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1339fi
1340ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1341ac_abs_confdir=`(
1342	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1343	pwd)`
1344# When building in place, set srcdir=.
1345if test "$ac_abs_confdir" = "$ac_pwd"; then
1346  srcdir=.
1347fi
1348# Remove unnecessary trailing slashes from srcdir.
1349# Double slashes in file names in object file debugging info
1350# mess up M-x gdb in Emacs.
1351case $srcdir in
1352*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1353esac
1354for ac_var in $ac_precious_vars; do
1355  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1356  eval ac_env_${ac_var}_value=\$${ac_var}
1357  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1358  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1359done
1360
1361#
1362# Report the --help message.
1363#
1364if test "$ac_init_help" = "long"; then
1365  # Omit some internal or obsolete options to make the list less imposing.
1366  # This message is too long to be a string in the A/UX 3.1 sh.
1367  cat <<_ACEOF
1368\`configure' configures this package to adapt to many kinds of systems.
1369
1370Usage: $0 [OPTION]... [VAR=VALUE]...
1371
1372To assign environment variables (e.g., CC, CFLAGS...), specify them as
1373VAR=VALUE.  See below for descriptions of some of the useful variables.
1374
1375Defaults for the options are specified in brackets.
1376
1377Configuration:
1378  -h, --help              display this help and exit
1379      --help=short        display options specific to this package
1380      --help=recursive    display the short help of all the included packages
1381  -V, --version           display version information and exit
1382  -q, --quiet, --silent   do not print \`checking...' messages
1383      --cache-file=FILE   cache test results in FILE [disabled]
1384  -C, --config-cache      alias for \`--cache-file=config.cache'
1385  -n, --no-create         do not create output files
1386      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1387
1388Installation directories:
1389  --prefix=PREFIX         install architecture-independent files in PREFIX
1390                          [$ac_default_prefix]
1391  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1392                          [PREFIX]
1393
1394By default, \`make install' will install all the files in
1395\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1396an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1397for instance \`--prefix=\$HOME'.
1398
1399For better control, use the options below.
1400
1401Fine tuning of the installation directories:
1402  --bindir=DIR            user executables [EPREFIX/bin]
1403  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1404  --libexecdir=DIR        program executables [EPREFIX/libexec]
1405  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1406  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1407  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1408  --libdir=DIR            object code libraries [EPREFIX/lib]
1409  --includedir=DIR        C header files [PREFIX/include]
1410  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1411  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1412  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1413  --infodir=DIR           info documentation [DATAROOTDIR/info]
1414  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1415  --mandir=DIR            man documentation [DATAROOTDIR/man]
1416  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1417  --htmldir=DIR           html documentation [DOCDIR]
1418  --dvidir=DIR            dvi documentation [DOCDIR]
1419  --pdfdir=DIR            pdf documentation [DOCDIR]
1420  --psdir=DIR             ps documentation [DOCDIR]
1421_ACEOF
1422
1423  cat <<\_ACEOF
1424
1425System types:
1426  --build=BUILD     configure for building on BUILD [guessed]
1427  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1428_ACEOF
1429fi
1430
1431if test -n "$ac_init_help"; then
1432
1433  cat <<\_ACEOF
1434
1435Optional Features:
1436  --disable-option-checking  ignore unrecognized --enable/--with options
1437  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1438  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1439  --enable-maintainer-mode enable makefile rules useful for maintainers
1440  --enable-symlink-install use symlinks when installing instead of hard links
1441  --enable-symlink-build  use symlinks while building instead of hard links
1442  --enable-verbose-makecmds enable verbose make command output
1443  --enable-compression	  enable EXPERIMENTAL compression support
1444  --enable-htree      	  enable EXPERIMENTAL htree directory support
1445  --enable-elf-shlibs	  select ELF shared libraries
1446  --enable-bsd-shlibs	  select BSD shared libraries
1447  --enable-profile	  build profiling libraries
1448  --enable-checker	  build checker libraries
1449  --enable-jbd-debug  	  enable journal debugging
1450  --enable-blkid-debug    enable blkid debugging
1451  --disable-testio-debug  disable the use of the test I/O manager for debugging
1452  --disable-libuuid	  do not build private uuid library
1453  --disable-libblkid	  do not build private blkid library
1454  --disable-debugfs   	  disable support of debugfs program
1455  --disable-imager   	  disable support of e2image program
1456  --disable-resizer   	  disable support of e2resize program
1457  --enable-fsck           build fsck wrapper program
1458  --enable-e2initrd-helper build e2initrd-helper program
1459  --disable-tls           disable use of thread local support
1460  --disable-uuidd         disable building the uuid daemon
1461  --disable-nls           do not use Native Language Support
1462  --disable-rpath         do not hardcode runtime library paths
1463
1464Optional Packages:
1465  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1466  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1467  --with-diet-libc        use diet libc
1468  --with-cc               no longer supported, use CC= instead
1469  --with-ccopts           no longer supported, use CFLAGS= instead
1470  --with-ldopts           no longer supported, use LDFLAGS= instead
1471  --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1472  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1473  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1474  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1475  --with-included-gettext use the GNU gettext library included here
1476  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1477  --without-libintl-prefix     don't search for libintl in includedir and libdir
1478
1479Some influential environment variables:
1480  CC          C compiler command
1481  CFLAGS      C compiler flags
1482  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1483              nonstandard directory <lib dir>
1484  LIBS        libraries to pass to the linker, e.g. -l<library>
1485  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1486              you have headers in a nonstandard directory <include dir>
1487  CPP         C preprocessor
1488  PKG_CONFIG  path to pkg-config utility
1489
1490Use these variables to override the choices made by `configure' or to help
1491it to find libraries and programs with nonstandard names/locations.
1492
1493Report bugs to the package provider.
1494_ACEOF
1495ac_status=$?
1496fi
1497
1498if test "$ac_init_help" = "recursive"; then
1499  # If there are subdirs, report their specific --help.
1500  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1501    test -d "$ac_dir" ||
1502      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1503      continue
1504    ac_builddir=.
1505
1506case "$ac_dir" in
1507.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508*)
1509  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1510  # A ".." for each directory in $ac_dir_suffix.
1511  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1512  case $ac_top_builddir_sub in
1513  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515  esac ;;
1516esac
1517ac_abs_top_builddir=$ac_pwd
1518ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519# for backward compatibility:
1520ac_top_builddir=$ac_top_build_prefix
1521
1522case $srcdir in
1523  .)  # We are building in place.
1524    ac_srcdir=.
1525    ac_top_srcdir=$ac_top_builddir_sub
1526    ac_abs_top_srcdir=$ac_pwd ;;
1527  [\\/]* | ?:[\\/]* )  # Absolute name.
1528    ac_srcdir=$srcdir$ac_dir_suffix;
1529    ac_top_srcdir=$srcdir
1530    ac_abs_top_srcdir=$srcdir ;;
1531  *) # Relative name.
1532    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533    ac_top_srcdir=$ac_top_build_prefix$srcdir
1534    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535esac
1536ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537
1538    cd "$ac_dir" || { ac_status=$?; continue; }
1539    # Check for guested configure.
1540    if test -f "$ac_srcdir/configure.gnu"; then
1541      echo &&
1542      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543    elif test -f "$ac_srcdir/configure"; then
1544      echo &&
1545      $SHELL "$ac_srcdir/configure" --help=recursive
1546    else
1547      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548    fi || ac_status=$?
1549    cd "$ac_pwd" || { ac_status=$?; break; }
1550  done
1551fi
1552
1553test -n "$ac_init_help" && exit $ac_status
1554if $ac_init_version; then
1555  cat <<\_ACEOF
1556configure
1557generated by GNU Autoconf 2.65
1558
1559Copyright (C) 2009 Free Software Foundation, Inc.
1560This configure script is free software; the Free Software Foundation
1561gives unlimited permission to copy, distribute and modify it.
1562_ACEOF
1563  exit
1564fi
1565
1566## ------------------------ ##
1567## Autoconf initialization. ##
1568## ------------------------ ##
1569
1570# ac_fn_c_try_compile LINENO
1571# --------------------------
1572# Try to compile conftest.$ac_ext, and return whether this succeeded.
1573ac_fn_c_try_compile ()
1574{
1575  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576  rm -f conftest.$ac_objext
1577  if { { ac_try="$ac_compile"
1578case "(($ac_try" in
1579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580  *) ac_try_echo=$ac_try;;
1581esac
1582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583$as_echo "$ac_try_echo"; } >&5
1584  (eval "$ac_compile") 2>conftest.err
1585  ac_status=$?
1586  if test -s conftest.err; then
1587    grep -v '^ *+' conftest.err >conftest.er1
1588    cat conftest.er1 >&5
1589    mv -f conftest.er1 conftest.err
1590  fi
1591  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592  test $ac_status = 0; } && {
1593	 test -z "$ac_c_werror_flag" ||
1594	 test ! -s conftest.err
1595       } && test -s conftest.$ac_objext; then :
1596  ac_retval=0
1597else
1598  $as_echo "$as_me: failed program was:" >&5
1599sed 's/^/| /' conftest.$ac_ext >&5
1600
1601	ac_retval=1
1602fi
1603  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1604  as_fn_set_status $ac_retval
1605
1606} # ac_fn_c_try_compile
1607
1608# ac_fn_c_try_link LINENO
1609# -----------------------
1610# Try to link conftest.$ac_ext, and return whether this succeeded.
1611ac_fn_c_try_link ()
1612{
1613  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614  rm -f conftest.$ac_objext conftest$ac_exeext
1615  if { { ac_try="$ac_link"
1616case "(($ac_try" in
1617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618  *) ac_try_echo=$ac_try;;
1619esac
1620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621$as_echo "$ac_try_echo"; } >&5
1622  (eval "$ac_link") 2>conftest.err
1623  ac_status=$?
1624  if test -s conftest.err; then
1625    grep -v '^ *+' conftest.err >conftest.er1
1626    cat conftest.er1 >&5
1627    mv -f conftest.er1 conftest.err
1628  fi
1629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630  test $ac_status = 0; } && {
1631	 test -z "$ac_c_werror_flag" ||
1632	 test ! -s conftest.err
1633       } && test -s conftest$ac_exeext && {
1634	 test "$cross_compiling" = yes ||
1635	 $as_test_x conftest$ac_exeext
1636       }; then :
1637  ac_retval=0
1638else
1639  $as_echo "$as_me: failed program was:" >&5
1640sed 's/^/| /' conftest.$ac_ext >&5
1641
1642	ac_retval=1
1643fi
1644  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1645  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1646  # interfere with the next link command; also delete a directory that is
1647  # left behind by Apple's compiler.  We do this before executing the actions.
1648  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1649  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1650  as_fn_set_status $ac_retval
1651
1652} # ac_fn_c_try_link
1653
1654# ac_fn_c_try_cpp LINENO
1655# ----------------------
1656# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1657ac_fn_c_try_cpp ()
1658{
1659  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660  if { { ac_try="$ac_cpp conftest.$ac_ext"
1661case "(($ac_try" in
1662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663  *) ac_try_echo=$ac_try;;
1664esac
1665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666$as_echo "$ac_try_echo"; } >&5
1667  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1668  ac_status=$?
1669  if test -s conftest.err; then
1670    grep -v '^ *+' conftest.err >conftest.er1
1671    cat conftest.er1 >&5
1672    mv -f conftest.er1 conftest.err
1673  fi
1674  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675  test $ac_status = 0; } >/dev/null && {
1676	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1677	 test ! -s conftest.err
1678       }; then :
1679  ac_retval=0
1680else
1681  $as_echo "$as_me: failed program was:" >&5
1682sed 's/^/| /' conftest.$ac_ext >&5
1683
1684    ac_retval=1
1685fi
1686  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1687  as_fn_set_status $ac_retval
1688
1689} # ac_fn_c_try_cpp
1690
1691# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1692# -------------------------------------------------------
1693# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1694# the include files in INCLUDES and setting the cache variable VAR
1695# accordingly.
1696ac_fn_c_check_header_mongrel ()
1697{
1698  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1700  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701$as_echo_n "checking for $2... " >&6; }
1702if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1703  $as_echo_n "(cached) " >&6
1704fi
1705eval ac_res=\$$3
1706	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1707$as_echo "$ac_res" >&6; }
1708else
1709  # Is the header compilable?
1710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1711$as_echo_n "checking $2 usability... " >&6; }
1712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713/* end confdefs.h.  */
1714$4
1715#include <$2>
1716_ACEOF
1717if ac_fn_c_try_compile "$LINENO"; then :
1718  ac_header_compiler=yes
1719else
1720  ac_header_compiler=no
1721fi
1722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1724$as_echo "$ac_header_compiler" >&6; }
1725
1726# Is the header present?
1727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1728$as_echo_n "checking $2 presence... " >&6; }
1729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730/* end confdefs.h.  */
1731#include <$2>
1732_ACEOF
1733if ac_fn_c_try_cpp "$LINENO"; then :
1734  ac_header_preproc=yes
1735else
1736  ac_header_preproc=no
1737fi
1738rm -f conftest.err conftest.$ac_ext
1739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1740$as_echo "$ac_header_preproc" >&6; }
1741
1742# So?  What about this header?
1743case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1744  yes:no: )
1745    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1746$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1747    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1748$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1749    ;;
1750  no:yes:* )
1751    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1752$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1753    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1754$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1755    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1756$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1757    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1758$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1759    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1760$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1761    ;;
1762esac
1763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764$as_echo_n "checking for $2... " >&6; }
1765if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1766  $as_echo_n "(cached) " >&6
1767else
1768  eval "$3=\$ac_header_compiler"
1769fi
1770eval ac_res=\$$3
1771	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772$as_echo "$ac_res" >&6; }
1773fi
1774  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1775
1776} # ac_fn_c_check_header_mongrel
1777
1778# ac_fn_c_try_run LINENO
1779# ----------------------
1780# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1781# that executables *can* be run.
1782ac_fn_c_try_run ()
1783{
1784  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785  if { { ac_try="$ac_link"
1786case "(($ac_try" in
1787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788  *) ac_try_echo=$ac_try;;
1789esac
1790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791$as_echo "$ac_try_echo"; } >&5
1792  (eval "$ac_link") 2>&5
1793  ac_status=$?
1794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1796  { { case "(($ac_try" in
1797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798  *) ac_try_echo=$ac_try;;
1799esac
1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801$as_echo "$ac_try_echo"; } >&5
1802  (eval "$ac_try") 2>&5
1803  ac_status=$?
1804  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805  test $ac_status = 0; }; }; then :
1806  ac_retval=0
1807else
1808  $as_echo "$as_me: program exited with status $ac_status" >&5
1809       $as_echo "$as_me: failed program was:" >&5
1810sed 's/^/| /' conftest.$ac_ext >&5
1811
1812       ac_retval=$ac_status
1813fi
1814  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1815  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816  as_fn_set_status $ac_retval
1817
1818} # ac_fn_c_try_run
1819
1820# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1821# -------------------------------------------------------
1822# Tests whether HEADER exists and can be compiled using the include files in
1823# INCLUDES, setting the cache variable VAR accordingly.
1824ac_fn_c_check_header_compile ()
1825{
1826  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1828$as_echo_n "checking for $2... " >&6; }
1829if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1830  $as_echo_n "(cached) " >&6
1831else
1832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833/* end confdefs.h.  */
1834$4
1835#include <$2>
1836_ACEOF
1837if ac_fn_c_try_compile "$LINENO"; then :
1838  eval "$3=yes"
1839else
1840  eval "$3=no"
1841fi
1842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1843fi
1844eval ac_res=\$$3
1845	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846$as_echo "$ac_res" >&6; }
1847  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848
1849} # ac_fn_c_check_header_compile
1850
1851# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1852# -------------------------------------------
1853# Tests whether TYPE exists after having included INCLUDES, setting cache
1854# variable VAR accordingly.
1855ac_fn_c_check_type ()
1856{
1857  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859$as_echo_n "checking for $2... " >&6; }
1860if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1861  $as_echo_n "(cached) " >&6
1862else
1863  eval "$3=no"
1864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865/* end confdefs.h.  */
1866$4
1867int
1868main ()
1869{
1870if (sizeof ($2))
1871	 return 0;
1872  ;
1873  return 0;
1874}
1875_ACEOF
1876if ac_fn_c_try_compile "$LINENO"; then :
1877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878/* end confdefs.h.  */
1879$4
1880int
1881main ()
1882{
1883if (sizeof (($2)))
1884	    return 0;
1885  ;
1886  return 0;
1887}
1888_ACEOF
1889if ac_fn_c_try_compile "$LINENO"; then :
1890
1891else
1892  eval "$3=yes"
1893fi
1894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1895fi
1896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897fi
1898eval ac_res=\$$3
1899	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900$as_echo "$ac_res" >&6; }
1901  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1902
1903} # ac_fn_c_check_type
1904
1905# ac_fn_c_check_func LINENO FUNC VAR
1906# ----------------------------------
1907# Tests whether FUNC exists, setting the cache variable VAR accordingly
1908ac_fn_c_check_func ()
1909{
1910  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912$as_echo_n "checking for $2... " >&6; }
1913if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1914  $as_echo_n "(cached) " >&6
1915else
1916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917/* end confdefs.h.  */
1918/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1919   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1920#define $2 innocuous_$2
1921
1922/* System header to define __stub macros and hopefully few prototypes,
1923    which can conflict with char $2 (); below.
1924    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1925    <limits.h> exists even on freestanding compilers.  */
1926
1927#ifdef __STDC__
1928# include <limits.h>
1929#else
1930# include <assert.h>
1931#endif
1932
1933#undef $2
1934
1935/* Override any GCC internal prototype to avoid an error.
1936   Use char because int might match the return type of a GCC
1937   builtin and then its argument prototype would still apply.  */
1938#ifdef __cplusplus
1939extern "C"
1940#endif
1941char $2 ();
1942/* The GNU C library defines this for functions which it implements
1943    to always fail with ENOSYS.  Some functions are actually named
1944    something starting with __ and the normal name is an alias.  */
1945#if defined __stub_$2 || defined __stub___$2
1946choke me
1947#endif
1948
1949int
1950main ()
1951{
1952return $2 ();
1953  ;
1954  return 0;
1955}
1956_ACEOF
1957if ac_fn_c_try_link "$LINENO"; then :
1958  eval "$3=yes"
1959else
1960  eval "$3=no"
1961fi
1962rm -f core conftest.err conftest.$ac_objext \
1963    conftest$ac_exeext conftest.$ac_ext
1964fi
1965eval ac_res=\$$3
1966	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967$as_echo "$ac_res" >&6; }
1968  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1969
1970} # ac_fn_c_check_func
1971
1972# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1973# --------------------------------------------
1974# Tries to find the compile-time value of EXPR in a program that includes
1975# INCLUDES, setting VAR accordingly. Returns whether the value could be
1976# computed
1977ac_fn_c_compute_int ()
1978{
1979  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980  if test "$cross_compiling" = yes; then
1981    # Depending upon the size, compute the lo and hi bounds.
1982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983/* end confdefs.h.  */
1984$4
1985int
1986main ()
1987{
1988static int test_array [1 - 2 * !(($2) >= 0)];
1989test_array [0] = 0
1990
1991  ;
1992  return 0;
1993}
1994_ACEOF
1995if ac_fn_c_try_compile "$LINENO"; then :
1996  ac_lo=0 ac_mid=0
1997  while :; do
1998    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999/* end confdefs.h.  */
2000$4
2001int
2002main ()
2003{
2004static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2005test_array [0] = 0
2006
2007  ;
2008  return 0;
2009}
2010_ACEOF
2011if ac_fn_c_try_compile "$LINENO"; then :
2012  ac_hi=$ac_mid; break
2013else
2014  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2015			if test $ac_lo -le $ac_mid; then
2016			  ac_lo= ac_hi=
2017			  break
2018			fi
2019			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2020fi
2021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022  done
2023else
2024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025/* end confdefs.h.  */
2026$4
2027int
2028main ()
2029{
2030static int test_array [1 - 2 * !(($2) < 0)];
2031test_array [0] = 0
2032
2033  ;
2034  return 0;
2035}
2036_ACEOF
2037if ac_fn_c_try_compile "$LINENO"; then :
2038  ac_hi=-1 ac_mid=-1
2039  while :; do
2040    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041/* end confdefs.h.  */
2042$4
2043int
2044main ()
2045{
2046static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2047test_array [0] = 0
2048
2049  ;
2050  return 0;
2051}
2052_ACEOF
2053if ac_fn_c_try_compile "$LINENO"; then :
2054  ac_lo=$ac_mid; break
2055else
2056  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2057			if test $ac_mid -le $ac_hi; then
2058			  ac_lo= ac_hi=
2059			  break
2060			fi
2061			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2062fi
2063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064  done
2065else
2066  ac_lo= ac_hi=
2067fi
2068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069fi
2070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071# Binary search between lo and hi bounds.
2072while test "x$ac_lo" != "x$ac_hi"; do
2073  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075/* end confdefs.h.  */
2076$4
2077int
2078main ()
2079{
2080static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2081test_array [0] = 0
2082
2083  ;
2084  return 0;
2085}
2086_ACEOF
2087if ac_fn_c_try_compile "$LINENO"; then :
2088  ac_hi=$ac_mid
2089else
2090  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2091fi
2092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093done
2094case $ac_lo in #((
2095?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2096'') ac_retval=1 ;;
2097esac
2098  else
2099    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100/* end confdefs.h.  */
2101$4
2102static long int longval () { return $2; }
2103static unsigned long int ulongval () { return $2; }
2104#include <stdio.h>
2105#include <stdlib.h>
2106int
2107main ()
2108{
2109
2110  FILE *f = fopen ("conftest.val", "w");
2111  if (! f)
2112    return 1;
2113  if (($2) < 0)
2114    {
2115      long int i = longval ();
2116      if (i != ($2))
2117	return 1;
2118      fprintf (f, "%ld", i);
2119    }
2120  else
2121    {
2122      unsigned long int i = ulongval ();
2123      if (i != ($2))
2124	return 1;
2125      fprintf (f, "%lu", i);
2126    }
2127  /* Do not output a trailing newline, as this causes \r\n confusion
2128     on some platforms.  */
2129  return ferror (f) || fclose (f) != 0;
2130
2131  ;
2132  return 0;
2133}
2134_ACEOF
2135if ac_fn_c_try_run "$LINENO"; then :
2136  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2137else
2138  ac_retval=1
2139fi
2140rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2141  conftest.$ac_objext conftest.beam conftest.$ac_ext
2142rm -f conftest.val
2143
2144  fi
2145  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2146  as_fn_set_status $ac_retval
2147
2148} # ac_fn_c_compute_int
2149
2150# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2151# ----------------------------------------------------
2152# Tries to find if the field MEMBER exists in type AGGR, after including
2153# INCLUDES, setting cache variable VAR accordingly.
2154ac_fn_c_check_member ()
2155{
2156  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2158$as_echo_n "checking for $2.$3... " >&6; }
2159if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2160  $as_echo_n "(cached) " >&6
2161else
2162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163/* end confdefs.h.  */
2164$5
2165int
2166main ()
2167{
2168static $2 ac_aggr;
2169if (ac_aggr.$3)
2170return 0;
2171  ;
2172  return 0;
2173}
2174_ACEOF
2175if ac_fn_c_try_compile "$LINENO"; then :
2176  eval "$4=yes"
2177else
2178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179/* end confdefs.h.  */
2180$5
2181int
2182main ()
2183{
2184static $2 ac_aggr;
2185if (sizeof ac_aggr.$3)
2186return 0;
2187  ;
2188  return 0;
2189}
2190_ACEOF
2191if ac_fn_c_try_compile "$LINENO"; then :
2192  eval "$4=yes"
2193else
2194  eval "$4=no"
2195fi
2196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197fi
2198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199fi
2200eval ac_res=\$$4
2201	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2202$as_echo "$ac_res" >&6; }
2203  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2204
2205} # ac_fn_c_check_member
2206
2207# ac_fn_c_check_decl LINENO SYMBOL VAR
2208# ------------------------------------
2209# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2210ac_fn_c_check_decl ()
2211{
2212  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2214$as_echo_n "checking whether $2 is declared... " >&6; }
2215if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2216  $as_echo_n "(cached) " >&6
2217else
2218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219/* end confdefs.h.  */
2220$4
2221int
2222main ()
2223{
2224#ifndef $2
2225  (void) $2;
2226#endif
2227
2228  ;
2229  return 0;
2230}
2231_ACEOF
2232if ac_fn_c_try_compile "$LINENO"; then :
2233  eval "$3=yes"
2234else
2235  eval "$3=no"
2236fi
2237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238fi
2239eval ac_res=\$$3
2240	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2241$as_echo "$ac_res" >&6; }
2242  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2243
2244} # ac_fn_c_check_decl
2245cat >config.log <<_ACEOF
2246This file contains any messages produced by compilers while
2247running configure, to aid debugging if configure makes a mistake.
2248
2249It was created by $as_me, which was
2250generated by GNU Autoconf 2.65.  Invocation command line was
2251
2252  $ $0 $@
2253
2254_ACEOF
2255exec 5>>config.log
2256{
2257cat <<_ASUNAME
2258## --------- ##
2259## Platform. ##
2260## --------- ##
2261
2262hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2263uname -m = `(uname -m) 2>/dev/null || echo unknown`
2264uname -r = `(uname -r) 2>/dev/null || echo unknown`
2265uname -s = `(uname -s) 2>/dev/null || echo unknown`
2266uname -v = `(uname -v) 2>/dev/null || echo unknown`
2267
2268/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2269/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2270
2271/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2272/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2273/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2274/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2275/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2276/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2277/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2278
2279_ASUNAME
2280
2281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282for as_dir in $PATH
2283do
2284  IFS=$as_save_IFS
2285  test -z "$as_dir" && as_dir=.
2286    $as_echo "PATH: $as_dir"
2287  done
2288IFS=$as_save_IFS
2289
2290} >&5
2291
2292cat >&5 <<_ACEOF
2293
2294
2295## ----------- ##
2296## Core tests. ##
2297## ----------- ##
2298
2299_ACEOF
2300
2301
2302# Keep a trace of the command line.
2303# Strip out --no-create and --no-recursion so they do not pile up.
2304# Strip out --silent because we don't want to record it for future runs.
2305# Also quote any args containing shell meta-characters.
2306# Make two passes to allow for proper duplicate-argument suppression.
2307ac_configure_args=
2308ac_configure_args0=
2309ac_configure_args1=
2310ac_must_keep_next=false
2311for ac_pass in 1 2
2312do
2313  for ac_arg
2314  do
2315    case $ac_arg in
2316    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2317    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2318    | -silent | --silent | --silen | --sile | --sil)
2319      continue ;;
2320    *\'*)
2321      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2322    esac
2323    case $ac_pass in
2324    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2325    2)
2326      as_fn_append ac_configure_args1 " '$ac_arg'"
2327      if test $ac_must_keep_next = true; then
2328	ac_must_keep_next=false # Got value, back to normal.
2329      else
2330	case $ac_arg in
2331	  *=* | --config-cache | -C | -disable-* | --disable-* \
2332	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2333	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2334	  | -with-* | --with-* | -without-* | --without-* | --x)
2335	    case "$ac_configure_args0 " in
2336	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2337	    esac
2338	    ;;
2339	  -* ) ac_must_keep_next=true ;;
2340	esac
2341      fi
2342      as_fn_append ac_configure_args " '$ac_arg'"
2343      ;;
2344    esac
2345  done
2346done
2347{ ac_configure_args0=; unset ac_configure_args0;}
2348{ ac_configure_args1=; unset ac_configure_args1;}
2349
2350# When interrupted or exit'd, cleanup temporary files, and complete
2351# config.log.  We remove comments because anyway the quotes in there
2352# would cause problems or look ugly.
2353# WARNING: Use '\'' to represent an apostrophe within the trap.
2354# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2355trap 'exit_status=$?
2356  # Save into config.log some information that might help in debugging.
2357  {
2358    echo
2359
2360    cat <<\_ASBOX
2361## ---------------- ##
2362## Cache variables. ##
2363## ---------------- ##
2364_ASBOX
2365    echo
2366    # The following way of writing the cache mishandles newlines in values,
2367(
2368  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2369    eval ac_val=\$$ac_var
2370    case $ac_val in #(
2371    *${as_nl}*)
2372      case $ac_var in #(
2373      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2374$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2375      esac
2376      case $ac_var in #(
2377      _ | IFS | as_nl) ;; #(
2378      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2379      *) { eval $ac_var=; unset $ac_var;} ;;
2380      esac ;;
2381    esac
2382  done
2383  (set) 2>&1 |
2384    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2385    *${as_nl}ac_space=\ *)
2386      sed -n \
2387	"s/'\''/'\''\\\\'\'''\''/g;
2388	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2389      ;; #(
2390    *)
2391      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2392      ;;
2393    esac |
2394    sort
2395)
2396    echo
2397
2398    cat <<\_ASBOX
2399## ----------------- ##
2400## Output variables. ##
2401## ----------------- ##
2402_ASBOX
2403    echo
2404    for ac_var in $ac_subst_vars
2405    do
2406      eval ac_val=\$$ac_var
2407      case $ac_val in
2408      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2409      esac
2410      $as_echo "$ac_var='\''$ac_val'\''"
2411    done | sort
2412    echo
2413
2414    if test -n "$ac_subst_files"; then
2415      cat <<\_ASBOX
2416## ------------------- ##
2417## File substitutions. ##
2418## ------------------- ##
2419_ASBOX
2420      echo
2421      for ac_var in $ac_subst_files
2422      do
2423	eval ac_val=\$$ac_var
2424	case $ac_val in
2425	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2426	esac
2427	$as_echo "$ac_var='\''$ac_val'\''"
2428      done | sort
2429      echo
2430    fi
2431
2432    if test -s confdefs.h; then
2433      cat <<\_ASBOX
2434## ----------- ##
2435## confdefs.h. ##
2436## ----------- ##
2437_ASBOX
2438      echo
2439      cat confdefs.h
2440      echo
2441    fi
2442    test "$ac_signal" != 0 &&
2443      $as_echo "$as_me: caught signal $ac_signal"
2444    $as_echo "$as_me: exit $exit_status"
2445  } >&5
2446  rm -f core *.core core.conftest.* &&
2447    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2448    exit $exit_status
2449' 0
2450for ac_signal in 1 2 13 15; do
2451  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2452done
2453ac_signal=0
2454
2455# confdefs.h avoids OS command line length limits that DEFS can exceed.
2456rm -f -r conftest* confdefs.h
2457
2458$as_echo "/* confdefs.h */" > confdefs.h
2459
2460# Predefined preprocessor variables.
2461
2462cat >>confdefs.h <<_ACEOF
2463#define PACKAGE_NAME "$PACKAGE_NAME"
2464_ACEOF
2465
2466cat >>confdefs.h <<_ACEOF
2467#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2468_ACEOF
2469
2470cat >>confdefs.h <<_ACEOF
2471#define PACKAGE_VERSION "$PACKAGE_VERSION"
2472_ACEOF
2473
2474cat >>confdefs.h <<_ACEOF
2475#define PACKAGE_STRING "$PACKAGE_STRING"
2476_ACEOF
2477
2478cat >>confdefs.h <<_ACEOF
2479#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2480_ACEOF
2481
2482cat >>confdefs.h <<_ACEOF
2483#define PACKAGE_URL "$PACKAGE_URL"
2484_ACEOF
2485
2486
2487# Let the site file select an alternate cache file if it wants to.
2488# Prefer an explicitly selected file to automatically selected ones.
2489ac_site_file1=NONE
2490ac_site_file2=NONE
2491if test -n "$CONFIG_SITE"; then
2492  ac_site_file1=$CONFIG_SITE
2493elif test "x$prefix" != xNONE; then
2494  ac_site_file1=$prefix/share/config.site
2495  ac_site_file2=$prefix/etc/config.site
2496else
2497  ac_site_file1=$ac_default_prefix/share/config.site
2498  ac_site_file2=$ac_default_prefix/etc/config.site
2499fi
2500for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2501do
2502  test "x$ac_site_file" = xNONE && continue
2503  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2504    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2505$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2506    sed 's/^/| /' "$ac_site_file" >&5
2507    . "$ac_site_file"
2508  fi
2509done
2510
2511if test -r "$cache_file"; then
2512  # Some versions of bash will fail to source /dev/null (special files
2513  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2514  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2515    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2516$as_echo "$as_me: loading cache $cache_file" >&6;}
2517    case $cache_file in
2518      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2519      *)                      . "./$cache_file";;
2520    esac
2521  fi
2522else
2523  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2524$as_echo "$as_me: creating cache $cache_file" >&6;}
2525  >$cache_file
2526fi
2527
2528as_fn_append ac_header_list " stdlib.h"
2529as_fn_append ac_header_list " unistd.h"
2530as_fn_append ac_header_list " sys/param.h"
2531# Check that the precious variables saved in the cache have kept the same
2532# value.
2533ac_cache_corrupted=false
2534for ac_var in $ac_precious_vars; do
2535  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2536  eval ac_new_set=\$ac_env_${ac_var}_set
2537  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2538  eval ac_new_val=\$ac_env_${ac_var}_value
2539  case $ac_old_set,$ac_new_set in
2540    set,)
2541      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2542$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2543      ac_cache_corrupted=: ;;
2544    ,set)
2545      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2546$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2547      ac_cache_corrupted=: ;;
2548    ,);;
2549    *)
2550      if test "x$ac_old_val" != "x$ac_new_val"; then
2551	# differences in whitespace do not lead to failure.
2552	ac_old_val_w=`echo x $ac_old_val`
2553	ac_new_val_w=`echo x $ac_new_val`
2554	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2555	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2556$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2557	  ac_cache_corrupted=:
2558	else
2559	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2560$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2561	  eval $ac_var=\$ac_old_val
2562	fi
2563	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2564$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2565	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2566$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2567      fi;;
2568  esac
2569  # Pass precious variables to config.status.
2570  if test "$ac_new_set" = set; then
2571    case $ac_new_val in
2572    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2573    *) ac_arg=$ac_var=$ac_new_val ;;
2574    esac
2575    case " $ac_configure_args " in
2576      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2577      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2578    esac
2579  fi
2580done
2581if $ac_cache_corrupted; then
2582  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2584  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2585$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2586  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2587fi
2588## -------------------- ##
2589## Main body of script. ##
2590## -------------------- ##
2591
2592ac_ext=c
2593ac_cpp='$CPP $CPPFLAGS'
2594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2596ac_compiler_gnu=$ac_cv_c_compiler_gnu
2597
2598
2599
2600ac_aux_dir=
2601for ac_dir in config "$srcdir"/config; do
2602  for ac_t in install-sh install.sh shtool; do
2603    if test -f "$ac_dir/$ac_t"; then
2604      ac_aux_dir=$ac_dir
2605      ac_install_sh="$ac_aux_dir/$ac_t -c"
2606      break 2
2607    fi
2608  done
2609done
2610if test -z "$ac_aux_dir"; then
2611  as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2612fi
2613
2614# These three variables are undocumented and unsupported,
2615# and are intended to be withdrawn in a future Autoconf release.
2616# They can cause serious problems if a builder's source tree is in a directory
2617# whose full name contains unusual characters.
2618ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2619ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2620ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2621
2622
2623MCONFIG=./MCONFIG
2624
2625BINARY_TYPE=bin
2626E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2627	| awk '{print $3}' | tr \" " " | awk '{print $1}'`
2628DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2629	| tr \" " "`
2630E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2631MONTH=`echo $DATE | awk -F- '{print $2}'`
2632YEAR=`echo $DATE | awk -F- '{print $3}'`
2633
2634if expr $YEAR ">" 1900 > /dev/null ; then
2635	E2FSPROGS_YEAR=$YEAR
2636elif expr $YEAR ">" 90 >/dev/null ; then
2637	E2FSPROGS_YEAR=19$YEAR
2638else
2639	E2FSPROGS_YEAR=20$YEAR
2640fi
2641
2642case $MONTH in
2643Jan)	MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2644Feb)	MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2645Mar)	MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2646Apr)	MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2647May)	MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2648Jun)	MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2649Jul)	MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2650Aug)	MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2651Sep)	MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2652Oct)	MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2653Nov)	MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2654Dec)	MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2655*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2656$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2657esac
2658
2659base_ver=`echo $E2FSPROGS_VERSION | \
2660	       sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2661
2662date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2663
2664case $E2FSPROGS_VERSION in
2665*-WIP|pre-*)
2666	E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2667	;;
2668*)
2669	E2FSPROGS_PKGVER="$base_ver"
2670	;;
2671esac
2672
2673unset DATE MONTH YEAR base_ver pre_vers date_spec
2674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2675$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2677$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2678
2679
2680
2681
2682
2683# Make sure we can run config.sub.
2684$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2685  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2686
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2688$as_echo_n "checking build system type... " >&6; }
2689if test "${ac_cv_build+set}" = set; then :
2690  $as_echo_n "(cached) " >&6
2691else
2692  ac_build_alias=$build_alias
2693test "x$ac_build_alias" = x &&
2694  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2695test "x$ac_build_alias" = x &&
2696  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2697ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2698  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2699
2700fi
2701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2702$as_echo "$ac_cv_build" >&6; }
2703case $ac_cv_build in
2704*-*-*) ;;
2705*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2706esac
2707build=$ac_cv_build
2708ac_save_IFS=$IFS; IFS='-'
2709set x $ac_cv_build
2710shift
2711build_cpu=$1
2712build_vendor=$2
2713shift; shift
2714# Remember, the first character of IFS is used to create $*,
2715# except with old shells:
2716build_os=$*
2717IFS=$ac_save_IFS
2718case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2719
2720
2721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2722$as_echo_n "checking host system type... " >&6; }
2723if test "${ac_cv_host+set}" = set; then :
2724  $as_echo_n "(cached) " >&6
2725else
2726  if test "x$host_alias" = x; then
2727  ac_cv_host=$ac_cv_build
2728else
2729  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2730    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2731fi
2732
2733fi
2734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2735$as_echo "$ac_cv_host" >&6; }
2736case $ac_cv_host in
2737*-*-*) ;;
2738*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2739esac
2740host=$ac_cv_host
2741ac_save_IFS=$IFS; IFS='-'
2742set x $ac_cv_host
2743shift
2744host_cpu=$1
2745host_vendor=$2
2746shift; shift
2747# Remember, the first character of IFS is used to create $*,
2748# except with old shells:
2749host_os=$*
2750IFS=$ac_save_IFS
2751case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2752
2753
2754DLOPEN_LIB=''
2755ac_ext=c
2756ac_cpp='$CPP $CPPFLAGS'
2757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759ac_compiler_gnu=$ac_cv_c_compiler_gnu
2760if test -n "$ac_tool_prefix"; then
2761  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2762set dummy ${ac_tool_prefix}gcc; ac_word=$2
2763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2764$as_echo_n "checking for $ac_word... " >&6; }
2765if test "${ac_cv_prog_CC+set}" = set; then :
2766  $as_echo_n "(cached) " >&6
2767else
2768  if test -n "$CC"; then
2769  ac_cv_prog_CC="$CC" # Let the user override the test.
2770else
2771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772for as_dir in $PATH
2773do
2774  IFS=$as_save_IFS
2775  test -z "$as_dir" && as_dir=.
2776    for ac_exec_ext in '' $ac_executable_extensions; do
2777  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2778    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2779    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2780    break 2
2781  fi
2782done
2783  done
2784IFS=$as_save_IFS
2785
2786fi
2787fi
2788CC=$ac_cv_prog_CC
2789if test -n "$CC"; then
2790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2791$as_echo "$CC" >&6; }
2792else
2793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794$as_echo "no" >&6; }
2795fi
2796
2797
2798fi
2799if test -z "$ac_cv_prog_CC"; then
2800  ac_ct_CC=$CC
2801  # Extract the first word of "gcc", so it can be a program name with args.
2802set dummy gcc; ac_word=$2
2803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804$as_echo_n "checking for $ac_word... " >&6; }
2805if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2806  $as_echo_n "(cached) " >&6
2807else
2808  if test -n "$ac_ct_CC"; then
2809  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2810else
2811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812for as_dir in $PATH
2813do
2814  IFS=$as_save_IFS
2815  test -z "$as_dir" && as_dir=.
2816    for ac_exec_ext in '' $ac_executable_extensions; do
2817  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818    ac_cv_prog_ac_ct_CC="gcc"
2819    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820    break 2
2821  fi
2822done
2823  done
2824IFS=$as_save_IFS
2825
2826fi
2827fi
2828ac_ct_CC=$ac_cv_prog_ac_ct_CC
2829if test -n "$ac_ct_CC"; then
2830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2831$as_echo "$ac_ct_CC" >&6; }
2832else
2833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834$as_echo "no" >&6; }
2835fi
2836
2837  if test "x$ac_ct_CC" = x; then
2838    CC=""
2839  else
2840    case $cross_compiling:$ac_tool_warned in
2841yes:)
2842{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2844ac_tool_warned=yes ;;
2845esac
2846    CC=$ac_ct_CC
2847  fi
2848else
2849  CC="$ac_cv_prog_CC"
2850fi
2851
2852if test -z "$CC"; then
2853          if test -n "$ac_tool_prefix"; then
2854    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2855set dummy ${ac_tool_prefix}cc; ac_word=$2
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2857$as_echo_n "checking for $ac_word... " >&6; }
2858if test "${ac_cv_prog_CC+set}" = set; then :
2859  $as_echo_n "(cached) " >&6
2860else
2861  if test -n "$CC"; then
2862  ac_cv_prog_CC="$CC" # Let the user override the test.
2863else
2864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865for as_dir in $PATH
2866do
2867  IFS=$as_save_IFS
2868  test -z "$as_dir" && as_dir=.
2869    for ac_exec_ext in '' $ac_executable_extensions; do
2870  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2871    ac_cv_prog_CC="${ac_tool_prefix}cc"
2872    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2873    break 2
2874  fi
2875done
2876  done
2877IFS=$as_save_IFS
2878
2879fi
2880fi
2881CC=$ac_cv_prog_CC
2882if test -n "$CC"; then
2883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2884$as_echo "$CC" >&6; }
2885else
2886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887$as_echo "no" >&6; }
2888fi
2889
2890
2891  fi
2892fi
2893if test -z "$CC"; then
2894  # Extract the first word of "cc", so it can be a program name with args.
2895set dummy cc; ac_word=$2
2896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897$as_echo_n "checking for $ac_word... " >&6; }
2898if test "${ac_cv_prog_CC+set}" = set; then :
2899  $as_echo_n "(cached) " >&6
2900else
2901  if test -n "$CC"; then
2902  ac_cv_prog_CC="$CC" # Let the user override the test.
2903else
2904  ac_prog_rejected=no
2905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906for as_dir in $PATH
2907do
2908  IFS=$as_save_IFS
2909  test -z "$as_dir" && as_dir=.
2910    for ac_exec_ext in '' $ac_executable_extensions; do
2911  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2912    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2913       ac_prog_rejected=yes
2914       continue
2915     fi
2916    ac_cv_prog_CC="cc"
2917    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2918    break 2
2919  fi
2920done
2921  done
2922IFS=$as_save_IFS
2923
2924if test $ac_prog_rejected = yes; then
2925  # We found a bogon in the path, so make sure we never use it.
2926  set dummy $ac_cv_prog_CC
2927  shift
2928  if test $# != 0; then
2929    # We chose a different compiler from the bogus one.
2930    # However, it has the same basename, so the bogon will be chosen
2931    # first if we set CC to just the basename; use the full file name.
2932    shift
2933    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2934  fi
2935fi
2936fi
2937fi
2938CC=$ac_cv_prog_CC
2939if test -n "$CC"; then
2940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2941$as_echo "$CC" >&6; }
2942else
2943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944$as_echo "no" >&6; }
2945fi
2946
2947
2948fi
2949if test -z "$CC"; then
2950  if test -n "$ac_tool_prefix"; then
2951  for ac_prog in cl.exe
2952  do
2953    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2954set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2956$as_echo_n "checking for $ac_word... " >&6; }
2957if test "${ac_cv_prog_CC+set}" = set; then :
2958  $as_echo_n "(cached) " >&6
2959else
2960  if test -n "$CC"; then
2961  ac_cv_prog_CC="$CC" # Let the user override the test.
2962else
2963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964for as_dir in $PATH
2965do
2966  IFS=$as_save_IFS
2967  test -z "$as_dir" && as_dir=.
2968    for ac_exec_ext in '' $ac_executable_extensions; do
2969  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2970    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2971    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2972    break 2
2973  fi
2974done
2975  done
2976IFS=$as_save_IFS
2977
2978fi
2979fi
2980CC=$ac_cv_prog_CC
2981if test -n "$CC"; then
2982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2983$as_echo "$CC" >&6; }
2984else
2985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2986$as_echo "no" >&6; }
2987fi
2988
2989
2990    test -n "$CC" && break
2991  done
2992fi
2993if test -z "$CC"; then
2994  ac_ct_CC=$CC
2995  for ac_prog in cl.exe
2996do
2997  # Extract the first word of "$ac_prog", so it can be a program name with args.
2998set dummy $ac_prog; ac_word=$2
2999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3000$as_echo_n "checking for $ac_word... " >&6; }
3001if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3002  $as_echo_n "(cached) " >&6
3003else
3004  if test -n "$ac_ct_CC"; then
3005  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3006else
3007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008for as_dir in $PATH
3009do
3010  IFS=$as_save_IFS
3011  test -z "$as_dir" && as_dir=.
3012    for ac_exec_ext in '' $ac_executable_extensions; do
3013  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3014    ac_cv_prog_ac_ct_CC="$ac_prog"
3015    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3016    break 2
3017  fi
3018done
3019  done
3020IFS=$as_save_IFS
3021
3022fi
3023fi
3024ac_ct_CC=$ac_cv_prog_ac_ct_CC
3025if test -n "$ac_ct_CC"; then
3026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3027$as_echo "$ac_ct_CC" >&6; }
3028else
3029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3030$as_echo "no" >&6; }
3031fi
3032
3033
3034  test -n "$ac_ct_CC" && break
3035done
3036
3037  if test "x$ac_ct_CC" = x; then
3038    CC=""
3039  else
3040    case $cross_compiling:$ac_tool_warned in
3041yes:)
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3043$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3044ac_tool_warned=yes ;;
3045esac
3046    CC=$ac_ct_CC
3047  fi
3048fi
3049
3050fi
3051
3052
3053test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3055as_fn_error "no acceptable C compiler found in \$PATH
3056See \`config.log' for more details." "$LINENO" 5; }
3057
3058# Provide some information about the compiler.
3059$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3060set X $ac_compile
3061ac_compiler=$2
3062for ac_option in --version -v -V -qversion; do
3063  { { ac_try="$ac_compiler $ac_option >&5"
3064case "(($ac_try" in
3065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066  *) ac_try_echo=$ac_try;;
3067esac
3068eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3069$as_echo "$ac_try_echo"; } >&5
3070  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3071  ac_status=$?
3072  if test -s conftest.err; then
3073    sed '10a\
3074... rest of stderr output deleted ...
3075         10q' conftest.err >conftest.er1
3076    cat conftest.er1 >&5
3077  fi
3078  rm -f conftest.er1 conftest.err
3079  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3080  test $ac_status = 0; }
3081done
3082
3083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3084/* end confdefs.h.  */
3085
3086int
3087main ()
3088{
3089
3090  ;
3091  return 0;
3092}
3093_ACEOF
3094ac_clean_files_save=$ac_clean_files
3095ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3096# Try to create an executable without -o first, disregard a.out.
3097# It will help us diagnose broken compilers, and finding out an intuition
3098# of exeext.
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3100$as_echo_n "checking whether the C compiler works... " >&6; }
3101ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3102
3103# The possible output files:
3104ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3105
3106ac_rmfiles=
3107for ac_file in $ac_files
3108do
3109  case $ac_file in
3110    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3111    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3112  esac
3113done
3114rm -f $ac_rmfiles
3115
3116if { { ac_try="$ac_link_default"
3117case "(($ac_try" in
3118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119  *) ac_try_echo=$ac_try;;
3120esac
3121eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3122$as_echo "$ac_try_echo"; } >&5
3123  (eval "$ac_link_default") 2>&5
3124  ac_status=$?
3125  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3126  test $ac_status = 0; }; then :
3127  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3128# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3129# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3130# so that the user can short-circuit this test for compilers unknown to
3131# Autoconf.
3132for ac_file in $ac_files ''
3133do
3134  test -f "$ac_file" || continue
3135  case $ac_file in
3136    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3137	;;
3138    [ab].out )
3139	# We found the default executable, but exeext='' is most
3140	# certainly right.
3141	break;;
3142    *.* )
3143	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3144	then :; else
3145	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3146	fi
3147	# We set ac_cv_exeext here because the later test for it is not
3148	# safe: cross compilers may not add the suffix if given an `-o'
3149	# argument, so we may need to know it at that point already.
3150	# Even if this section looks crufty: it has the advantage of
3151	# actually working.
3152	break;;
3153    * )
3154	break;;
3155  esac
3156done
3157test "$ac_cv_exeext" = no && ac_cv_exeext=
3158
3159else
3160  ac_file=''
3161fi
3162if test -z "$ac_file"; then :
3163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164$as_echo "no" >&6; }
3165$as_echo "$as_me: failed program was:" >&5
3166sed 's/^/| /' conftest.$ac_ext >&5
3167
3168{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3169$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3170{ as_fn_set_status 77
3171as_fn_error "C compiler cannot create executables
3172See \`config.log' for more details." "$LINENO" 5; }; }
3173else
3174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3175$as_echo "yes" >&6; }
3176fi
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3178$as_echo_n "checking for C compiler default output file name... " >&6; }
3179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3180$as_echo "$ac_file" >&6; }
3181ac_exeext=$ac_cv_exeext
3182
3183rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3184ac_clean_files=$ac_clean_files_save
3185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3186$as_echo_n "checking for suffix of executables... " >&6; }
3187if { { ac_try="$ac_link"
3188case "(($ac_try" in
3189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190  *) ac_try_echo=$ac_try;;
3191esac
3192eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3193$as_echo "$ac_try_echo"; } >&5
3194  (eval "$ac_link") 2>&5
3195  ac_status=$?
3196  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3197  test $ac_status = 0; }; then :
3198  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3199# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3200# work properly (i.e., refer to `conftest.exe'), while it won't with
3201# `rm'.
3202for ac_file in conftest.exe conftest conftest.*; do
3203  test -f "$ac_file" || continue
3204  case $ac_file in
3205    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3206    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3207	  break;;
3208    * ) break;;
3209  esac
3210done
3211else
3212  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214as_fn_error "cannot compute suffix of executables: cannot compile and link
3215See \`config.log' for more details." "$LINENO" 5; }
3216fi
3217rm -f conftest conftest$ac_cv_exeext
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3219$as_echo "$ac_cv_exeext" >&6; }
3220
3221rm -f conftest.$ac_ext
3222EXEEXT=$ac_cv_exeext
3223ac_exeext=$EXEEXT
3224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225/* end confdefs.h.  */
3226#include <stdio.h>
3227int
3228main ()
3229{
3230FILE *f = fopen ("conftest.out", "w");
3231 return ferror (f) || fclose (f) != 0;
3232
3233  ;
3234  return 0;
3235}
3236_ACEOF
3237ac_clean_files="$ac_clean_files conftest.out"
3238# Check that the compiler produces executables we can run.  If not, either
3239# the compiler is broken, or we cross compile.
3240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3241$as_echo_n "checking whether we are cross compiling... " >&6; }
3242if test "$cross_compiling" != yes; then
3243  { { ac_try="$ac_link"
3244case "(($ac_try" in
3245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246  *) ac_try_echo=$ac_try;;
3247esac
3248eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249$as_echo "$ac_try_echo"; } >&5
3250  (eval "$ac_link") 2>&5
3251  ac_status=$?
3252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253  test $ac_status = 0; }
3254  if { ac_try='./conftest$ac_cv_exeext'
3255  { { case "(($ac_try" in
3256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257  *) ac_try_echo=$ac_try;;
3258esac
3259eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3260$as_echo "$ac_try_echo"; } >&5
3261  (eval "$ac_try") 2>&5
3262  ac_status=$?
3263  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264  test $ac_status = 0; }; }; then
3265    cross_compiling=no
3266  else
3267    if test "$cross_compiling" = maybe; then
3268	cross_compiling=yes
3269    else
3270	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272as_fn_error "cannot run C compiled programs.
3273If you meant to cross compile, use \`--host'.
3274See \`config.log' for more details." "$LINENO" 5; }
3275    fi
3276  fi
3277fi
3278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3279$as_echo "$cross_compiling" >&6; }
3280
3281rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3282ac_clean_files=$ac_clean_files_save
3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3284$as_echo_n "checking for suffix of object files... " >&6; }
3285if test "${ac_cv_objext+set}" = set; then :
3286  $as_echo_n "(cached) " >&6
3287else
3288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289/* end confdefs.h.  */
3290
3291int
3292main ()
3293{
3294
3295  ;
3296  return 0;
3297}
3298_ACEOF
3299rm -f conftest.o conftest.obj
3300if { { ac_try="$ac_compile"
3301case "(($ac_try" in
3302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303  *) ac_try_echo=$ac_try;;
3304esac
3305eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3306$as_echo "$ac_try_echo"; } >&5
3307  (eval "$ac_compile") 2>&5
3308  ac_status=$?
3309  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3310  test $ac_status = 0; }; then :
3311  for ac_file in conftest.o conftest.obj conftest.*; do
3312  test -f "$ac_file" || continue;
3313  case $ac_file in
3314    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3315    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3316       break;;
3317  esac
3318done
3319else
3320  $as_echo "$as_me: failed program was:" >&5
3321sed 's/^/| /' conftest.$ac_ext >&5
3322
3323{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3325as_fn_error "cannot compute suffix of object files: cannot compile
3326See \`config.log' for more details." "$LINENO" 5; }
3327fi
3328rm -f conftest.$ac_cv_objext conftest.$ac_ext
3329fi
3330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3331$as_echo "$ac_cv_objext" >&6; }
3332OBJEXT=$ac_cv_objext
3333ac_objext=$OBJEXT
3334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3335$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3336if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3337  $as_echo_n "(cached) " >&6
3338else
3339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340/* end confdefs.h.  */
3341
3342int
3343main ()
3344{
3345#ifndef __GNUC__
3346       choke me
3347#endif
3348
3349  ;
3350  return 0;
3351}
3352_ACEOF
3353if ac_fn_c_try_compile "$LINENO"; then :
3354  ac_compiler_gnu=yes
3355else
3356  ac_compiler_gnu=no
3357fi
3358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359ac_cv_c_compiler_gnu=$ac_compiler_gnu
3360
3361fi
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3363$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3364if test $ac_compiler_gnu = yes; then
3365  GCC=yes
3366else
3367  GCC=
3368fi
3369ac_test_CFLAGS=${CFLAGS+set}
3370ac_save_CFLAGS=$CFLAGS
3371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3372$as_echo_n "checking whether $CC accepts -g... " >&6; }
3373if test "${ac_cv_prog_cc_g+set}" = set; then :
3374  $as_echo_n "(cached) " >&6
3375else
3376  ac_save_c_werror_flag=$ac_c_werror_flag
3377   ac_c_werror_flag=yes
3378   ac_cv_prog_cc_g=no
3379   CFLAGS="-g"
3380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381/* end confdefs.h.  */
3382
3383int
3384main ()
3385{
3386
3387  ;
3388  return 0;
3389}
3390_ACEOF
3391if ac_fn_c_try_compile "$LINENO"; then :
3392  ac_cv_prog_cc_g=yes
3393else
3394  CFLAGS=""
3395      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396/* end confdefs.h.  */
3397
3398int
3399main ()
3400{
3401
3402  ;
3403  return 0;
3404}
3405_ACEOF
3406if ac_fn_c_try_compile "$LINENO"; then :
3407
3408else
3409  ac_c_werror_flag=$ac_save_c_werror_flag
3410	 CFLAGS="-g"
3411	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412/* end confdefs.h.  */
3413
3414int
3415main ()
3416{
3417
3418  ;
3419  return 0;
3420}
3421_ACEOF
3422if ac_fn_c_try_compile "$LINENO"; then :
3423  ac_cv_prog_cc_g=yes
3424fi
3425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3426fi
3427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3428fi
3429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430   ac_c_werror_flag=$ac_save_c_werror_flag
3431fi
3432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3433$as_echo "$ac_cv_prog_cc_g" >&6; }
3434if test "$ac_test_CFLAGS" = set; then
3435  CFLAGS=$ac_save_CFLAGS
3436elif test $ac_cv_prog_cc_g = yes; then
3437  if test "$GCC" = yes; then
3438    CFLAGS="-g -O2"
3439  else
3440    CFLAGS="-g"
3441  fi
3442else
3443  if test "$GCC" = yes; then
3444    CFLAGS="-O2"
3445  else
3446    CFLAGS=
3447  fi
3448fi
3449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3450$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3451if test "${ac_cv_prog_cc_c89+set}" = set; then :
3452  $as_echo_n "(cached) " >&6
3453else
3454  ac_cv_prog_cc_c89=no
3455ac_save_CC=$CC
3456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457/* end confdefs.h.  */
3458#include <stdarg.h>
3459#include <stdio.h>
3460#include <sys/types.h>
3461#include <sys/stat.h>
3462/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3463struct buf { int x; };
3464FILE * (*rcsopen) (struct buf *, struct stat *, int);
3465static char *e (p, i)
3466     char **p;
3467     int i;
3468{
3469  return p[i];
3470}
3471static char *f (char * (*g) (char **, int), char **p, ...)
3472{
3473  char *s;
3474  va_list v;
3475  va_start (v,p);
3476  s = g (p, va_arg (v,int));
3477  va_end (v);
3478  return s;
3479}
3480
3481/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3482   function prototypes and stuff, but not '\xHH' hex character constants.
3483   These don't provoke an error unfortunately, instead are silently treated
3484   as 'x'.  The following induces an error, until -std is added to get
3485   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3486   array size at least.  It's necessary to write '\x00'==0 to get something
3487   that's true only with -std.  */
3488int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3489
3490/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3491   inside strings and character constants.  */
3492#define FOO(x) 'x'
3493int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3494
3495int test (int i, double x);
3496struct s1 {int (*f) (int a);};
3497struct s2 {int (*f) (double a);};
3498int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3499int argc;
3500char **argv;
3501int
3502main ()
3503{
3504return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3505  ;
3506  return 0;
3507}
3508_ACEOF
3509for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3510	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3511do
3512  CC="$ac_save_CC $ac_arg"
3513  if ac_fn_c_try_compile "$LINENO"; then :
3514  ac_cv_prog_cc_c89=$ac_arg
3515fi
3516rm -f core conftest.err conftest.$ac_objext
3517  test "x$ac_cv_prog_cc_c89" != "xno" && break
3518done
3519rm -f conftest.$ac_ext
3520CC=$ac_save_CC
3521
3522fi
3523# AC_CACHE_VAL
3524case "x$ac_cv_prog_cc_c89" in
3525  x)
3526    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3527$as_echo "none needed" >&6; } ;;
3528  xno)
3529    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3530$as_echo "unsupported" >&6; } ;;
3531  *)
3532    CC="$CC $ac_cv_prog_cc_c89"
3533    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3534$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3535esac
3536if test "x$ac_cv_prog_cc_c89" != xno; then :
3537
3538fi
3539
3540ac_ext=c
3541ac_cpp='$CPP $CPPFLAGS'
3542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544ac_compiler_gnu=$ac_cv_c_compiler_gnu
3545
3546
3547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3548$as_echo_n "checking for dlopen in -ldl... " >&6; }
3549if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
3550  $as_echo_n "(cached) " >&6
3551else
3552  ac_check_lib_save_LIBS=$LIBS
3553LIBS="-ldl  $LIBS"
3554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555/* end confdefs.h.  */
3556
3557/* Override any GCC internal prototype to avoid an error.
3558   Use char because int might match the return type of a GCC
3559   builtin and then its argument prototype would still apply.  */
3560#ifdef __cplusplus
3561extern "C"
3562#endif
3563char dlopen ();
3564int
3565main ()
3566{
3567return dlopen ();
3568  ;
3569  return 0;
3570}
3571_ACEOF
3572if ac_fn_c_try_link "$LINENO"; then :
3573  ac_cv_lib_dl_dlopen=yes
3574else
3575  ac_cv_lib_dl_dlopen=no
3576fi
3577rm -f core conftest.err conftest.$ac_objext \
3578    conftest$ac_exeext conftest.$ac_ext
3579LIBS=$ac_check_lib_save_LIBS
3580fi
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3582$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3583if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
3584  DLOPEN_LIB=-ldl
3585$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3586
3587fi
3588
3589
3590WITH_DIET_LIBC=
3591
3592# Check whether --with-diet-libc was given.
3593if test "${with_diet_libc+set}" = set; then :
3594  withval=$with_diet_libc; CC="diet cc -nostdinc"
3595WITH_DIET_LIBC=yes
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3597$as_echo "CC=$CC" >&6; }
3598fi
3599
3600# Check whether --with-cc was given.
3601if test "${with_cc+set}" = set; then :
3602  withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3603fi
3604
3605
3606# Check whether --with-ccopts was given.
3607if test "${with_ccopts+set}" = set; then :
3608  withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3609fi
3610
3611
3612# Check whether --with-ldopts was given.
3613if test "${with_ldopts+set}" = set; then :
3614  withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3615fi
3616
3617ac_ext=c
3618ac_cpp='$CPP $CPPFLAGS'
3619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3621ac_compiler_gnu=$ac_cv_c_compiler_gnu
3622if test -n "$ac_tool_prefix"; then
3623  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3624set dummy ${ac_tool_prefix}gcc; ac_word=$2
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626$as_echo_n "checking for $ac_word... " >&6; }
3627if test "${ac_cv_prog_CC+set}" = set; then :
3628  $as_echo_n "(cached) " >&6
3629else
3630  if test -n "$CC"; then
3631  ac_cv_prog_CC="$CC" # Let the user override the test.
3632else
3633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634for as_dir in $PATH
3635do
3636  IFS=$as_save_IFS
3637  test -z "$as_dir" && as_dir=.
3638    for ac_exec_ext in '' $ac_executable_extensions; do
3639  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3640    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3642    break 2
3643  fi
3644done
3645  done
3646IFS=$as_save_IFS
3647
3648fi
3649fi
3650CC=$ac_cv_prog_CC
3651if test -n "$CC"; then
3652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3653$as_echo "$CC" >&6; }
3654else
3655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656$as_echo "no" >&6; }
3657fi
3658
3659
3660fi
3661if test -z "$ac_cv_prog_CC"; then
3662  ac_ct_CC=$CC
3663  # Extract the first word of "gcc", so it can be a program name with args.
3664set dummy gcc; ac_word=$2
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3666$as_echo_n "checking for $ac_word... " >&6; }
3667if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3668  $as_echo_n "(cached) " >&6
3669else
3670  if test -n "$ac_ct_CC"; then
3671  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3672else
3673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674for as_dir in $PATH
3675do
3676  IFS=$as_save_IFS
3677  test -z "$as_dir" && as_dir=.
3678    for ac_exec_ext in '' $ac_executable_extensions; do
3679  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3680    ac_cv_prog_ac_ct_CC="gcc"
3681    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3682    break 2
3683  fi
3684done
3685  done
3686IFS=$as_save_IFS
3687
3688fi
3689fi
3690ac_ct_CC=$ac_cv_prog_ac_ct_CC
3691if test -n "$ac_ct_CC"; then
3692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3693$as_echo "$ac_ct_CC" >&6; }
3694else
3695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3696$as_echo "no" >&6; }
3697fi
3698
3699  if test "x$ac_ct_CC" = x; then
3700    CC=""
3701  else
3702    case $cross_compiling:$ac_tool_warned in
3703yes:)
3704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3706ac_tool_warned=yes ;;
3707esac
3708    CC=$ac_ct_CC
3709  fi
3710else
3711  CC="$ac_cv_prog_CC"
3712fi
3713
3714if test -z "$CC"; then
3715          if test -n "$ac_tool_prefix"; then
3716    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3717set dummy ${ac_tool_prefix}cc; ac_word=$2
3718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719$as_echo_n "checking for $ac_word... " >&6; }
3720if test "${ac_cv_prog_CC+set}" = set; then :
3721  $as_echo_n "(cached) " >&6
3722else
3723  if test -n "$CC"; then
3724  ac_cv_prog_CC="$CC" # Let the user override the test.
3725else
3726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727for as_dir in $PATH
3728do
3729  IFS=$as_save_IFS
3730  test -z "$as_dir" && as_dir=.
3731    for ac_exec_ext in '' $ac_executable_extensions; do
3732  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3733    ac_cv_prog_CC="${ac_tool_prefix}cc"
3734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3735    break 2
3736  fi
3737done
3738  done
3739IFS=$as_save_IFS
3740
3741fi
3742fi
3743CC=$ac_cv_prog_CC
3744if test -n "$CC"; then
3745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3746$as_echo "$CC" >&6; }
3747else
3748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749$as_echo "no" >&6; }
3750fi
3751
3752
3753  fi
3754fi
3755if test -z "$CC"; then
3756  # Extract the first word of "cc", so it can be a program name with args.
3757set dummy cc; ac_word=$2
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759$as_echo_n "checking for $ac_word... " >&6; }
3760if test "${ac_cv_prog_CC+set}" = set; then :
3761  $as_echo_n "(cached) " >&6
3762else
3763  if test -n "$CC"; then
3764  ac_cv_prog_CC="$CC" # Let the user override the test.
3765else
3766  ac_prog_rejected=no
3767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768for as_dir in $PATH
3769do
3770  IFS=$as_save_IFS
3771  test -z "$as_dir" && as_dir=.
3772    for ac_exec_ext in '' $ac_executable_extensions; do
3773  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3774    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3775       ac_prog_rejected=yes
3776       continue
3777     fi
3778    ac_cv_prog_CC="cc"
3779    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3780    break 2
3781  fi
3782done
3783  done
3784IFS=$as_save_IFS
3785
3786if test $ac_prog_rejected = yes; then
3787  # We found a bogon in the path, so make sure we never use it.
3788  set dummy $ac_cv_prog_CC
3789  shift
3790  if test $# != 0; then
3791    # We chose a different compiler from the bogus one.
3792    # However, it has the same basename, so the bogon will be chosen
3793    # first if we set CC to just the basename; use the full file name.
3794    shift
3795    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3796  fi
3797fi
3798fi
3799fi
3800CC=$ac_cv_prog_CC
3801if test -n "$CC"; then
3802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3803$as_echo "$CC" >&6; }
3804else
3805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3806$as_echo "no" >&6; }
3807fi
3808
3809
3810fi
3811if test -z "$CC"; then
3812  if test -n "$ac_tool_prefix"; then
3813  for ac_prog in cl.exe
3814  do
3815    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3816set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3818$as_echo_n "checking for $ac_word... " >&6; }
3819if test "${ac_cv_prog_CC+set}" = set; then :
3820  $as_echo_n "(cached) " >&6
3821else
3822  if test -n "$CC"; then
3823  ac_cv_prog_CC="$CC" # Let the user override the test.
3824else
3825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826for as_dir in $PATH
3827do
3828  IFS=$as_save_IFS
3829  test -z "$as_dir" && as_dir=.
3830    for ac_exec_ext in '' $ac_executable_extensions; do
3831  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3832    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3833    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3834    break 2
3835  fi
3836done
3837  done
3838IFS=$as_save_IFS
3839
3840fi
3841fi
3842CC=$ac_cv_prog_CC
3843if test -n "$CC"; then
3844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3845$as_echo "$CC" >&6; }
3846else
3847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3848$as_echo "no" >&6; }
3849fi
3850
3851
3852    test -n "$CC" && break
3853  done
3854fi
3855if test -z "$CC"; then
3856  ac_ct_CC=$CC
3857  for ac_prog in cl.exe
3858do
3859  # Extract the first word of "$ac_prog", so it can be a program name with args.
3860set dummy $ac_prog; ac_word=$2
3861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3862$as_echo_n "checking for $ac_word... " >&6; }
3863if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3864  $as_echo_n "(cached) " >&6
3865else
3866  if test -n "$ac_ct_CC"; then
3867  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3868else
3869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870for as_dir in $PATH
3871do
3872  IFS=$as_save_IFS
3873  test -z "$as_dir" && as_dir=.
3874    for ac_exec_ext in '' $ac_executable_extensions; do
3875  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3876    ac_cv_prog_ac_ct_CC="$ac_prog"
3877    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3878    break 2
3879  fi
3880done
3881  done
3882IFS=$as_save_IFS
3883
3884fi
3885fi
3886ac_ct_CC=$ac_cv_prog_ac_ct_CC
3887if test -n "$ac_ct_CC"; then
3888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3889$as_echo "$ac_ct_CC" >&6; }
3890else
3891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3892$as_echo "no" >&6; }
3893fi
3894
3895
3896  test -n "$ac_ct_CC" && break
3897done
3898
3899  if test "x$ac_ct_CC" = x; then
3900    CC=""
3901  else
3902    case $cross_compiling:$ac_tool_warned in
3903yes:)
3904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3906ac_tool_warned=yes ;;
3907esac
3908    CC=$ac_ct_CC
3909  fi
3910fi
3911
3912fi
3913
3914
3915test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3916$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3917as_fn_error "no acceptable C compiler found in \$PATH
3918See \`config.log' for more details." "$LINENO" 5; }
3919
3920# Provide some information about the compiler.
3921$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3922set X $ac_compile
3923ac_compiler=$2
3924for ac_option in --version -v -V -qversion; do
3925  { { ac_try="$ac_compiler $ac_option >&5"
3926case "(($ac_try" in
3927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928  *) ac_try_echo=$ac_try;;
3929esac
3930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3931$as_echo "$ac_try_echo"; } >&5
3932  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3933  ac_status=$?
3934  if test -s conftest.err; then
3935    sed '10a\
3936... rest of stderr output deleted ...
3937         10q' conftest.err >conftest.er1
3938    cat conftest.er1 >&5
3939  fi
3940  rm -f conftest.er1 conftest.err
3941  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3942  test $ac_status = 0; }
3943done
3944
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3946$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3947if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3948  $as_echo_n "(cached) " >&6
3949else
3950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951/* end confdefs.h.  */
3952
3953int
3954main ()
3955{
3956#ifndef __GNUC__
3957       choke me
3958#endif
3959
3960  ;
3961  return 0;
3962}
3963_ACEOF
3964if ac_fn_c_try_compile "$LINENO"; then :
3965  ac_compiler_gnu=yes
3966else
3967  ac_compiler_gnu=no
3968fi
3969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970ac_cv_c_compiler_gnu=$ac_compiler_gnu
3971
3972fi
3973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3974$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3975if test $ac_compiler_gnu = yes; then
3976  GCC=yes
3977else
3978  GCC=
3979fi
3980ac_test_CFLAGS=${CFLAGS+set}
3981ac_save_CFLAGS=$CFLAGS
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3983$as_echo_n "checking whether $CC accepts -g... " >&6; }
3984if test "${ac_cv_prog_cc_g+set}" = set; then :
3985  $as_echo_n "(cached) " >&6
3986else
3987  ac_save_c_werror_flag=$ac_c_werror_flag
3988   ac_c_werror_flag=yes
3989   ac_cv_prog_cc_g=no
3990   CFLAGS="-g"
3991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992/* end confdefs.h.  */
3993
3994int
3995main ()
3996{
3997
3998  ;
3999  return 0;
4000}
4001_ACEOF
4002if ac_fn_c_try_compile "$LINENO"; then :
4003  ac_cv_prog_cc_g=yes
4004else
4005  CFLAGS=""
4006      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007/* end confdefs.h.  */
4008
4009int
4010main ()
4011{
4012
4013  ;
4014  return 0;
4015}
4016_ACEOF
4017if ac_fn_c_try_compile "$LINENO"; then :
4018
4019else
4020  ac_c_werror_flag=$ac_save_c_werror_flag
4021	 CFLAGS="-g"
4022	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023/* end confdefs.h.  */
4024
4025int
4026main ()
4027{
4028
4029  ;
4030  return 0;
4031}
4032_ACEOF
4033if ac_fn_c_try_compile "$LINENO"; then :
4034  ac_cv_prog_cc_g=yes
4035fi
4036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4037fi
4038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4039fi
4040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041   ac_c_werror_flag=$ac_save_c_werror_flag
4042fi
4043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4044$as_echo "$ac_cv_prog_cc_g" >&6; }
4045if test "$ac_test_CFLAGS" = set; then
4046  CFLAGS=$ac_save_CFLAGS
4047elif test $ac_cv_prog_cc_g = yes; then
4048  if test "$GCC" = yes; then
4049    CFLAGS="-g -O2"
4050  else
4051    CFLAGS="-g"
4052  fi
4053else
4054  if test "$GCC" = yes; then
4055    CFLAGS="-O2"
4056  else
4057    CFLAGS=
4058  fi
4059fi
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4061$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4062if test "${ac_cv_prog_cc_c89+set}" = set; then :
4063  $as_echo_n "(cached) " >&6
4064else
4065  ac_cv_prog_cc_c89=no
4066ac_save_CC=$CC
4067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068/* end confdefs.h.  */
4069#include <stdarg.h>
4070#include <stdio.h>
4071#include <sys/types.h>
4072#include <sys/stat.h>
4073/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4074struct buf { int x; };
4075FILE * (*rcsopen) (struct buf *, struct stat *, int);
4076static char *e (p, i)
4077     char **p;
4078     int i;
4079{
4080  return p[i];
4081}
4082static char *f (char * (*g) (char **, int), char **p, ...)
4083{
4084  char *s;
4085  va_list v;
4086  va_start (v,p);
4087  s = g (p, va_arg (v,int));
4088  va_end (v);
4089  return s;
4090}
4091
4092/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4093   function prototypes and stuff, but not '\xHH' hex character constants.
4094   These don't provoke an error unfortunately, instead are silently treated
4095   as 'x'.  The following induces an error, until -std is added to get
4096   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4097   array size at least.  It's necessary to write '\x00'==0 to get something
4098   that's true only with -std.  */
4099int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4100
4101/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4102   inside strings and character constants.  */
4103#define FOO(x) 'x'
4104int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4105
4106int test (int i, double x);
4107struct s1 {int (*f) (int a);};
4108struct s2 {int (*f) (double a);};
4109int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4110int argc;
4111char **argv;
4112int
4113main ()
4114{
4115return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4116  ;
4117  return 0;
4118}
4119_ACEOF
4120for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4121	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4122do
4123  CC="$ac_save_CC $ac_arg"
4124  if ac_fn_c_try_compile "$LINENO"; then :
4125  ac_cv_prog_cc_c89=$ac_arg
4126fi
4127rm -f core conftest.err conftest.$ac_objext
4128  test "x$ac_cv_prog_cc_c89" != "xno" && break
4129done
4130rm -f conftest.$ac_ext
4131CC=$ac_save_CC
4132
4133fi
4134# AC_CACHE_VAL
4135case "x$ac_cv_prog_cc_c89" in
4136  x)
4137    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4138$as_echo "none needed" >&6; } ;;
4139  xno)
4140    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4141$as_echo "unsupported" >&6; } ;;
4142  *)
4143    CC="$CC $ac_cv_prog_cc_c89"
4144    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4145$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4146esac
4147if test "x$ac_cv_prog_cc_c89" != xno; then :
4148
4149fi
4150
4151ac_ext=c
4152ac_cpp='$CPP $CPPFLAGS'
4153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4155ac_compiler_gnu=$ac_cv_c_compiler_gnu
4156
4157ac_ext=c
4158ac_cpp='$CPP $CPPFLAGS'
4159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4161ac_compiler_gnu=$ac_cv_c_compiler_gnu
4162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4163$as_echo_n "checking how to run the C preprocessor... " >&6; }
4164# On Suns, sometimes $CPP names a directory.
4165if test -n "$CPP" && test -d "$CPP"; then
4166  CPP=
4167fi
4168if test -z "$CPP"; then
4169  if test "${ac_cv_prog_CPP+set}" = set; then :
4170  $as_echo_n "(cached) " >&6
4171else
4172      # Double quotes because CPP needs to be expanded
4173    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4174    do
4175      ac_preproc_ok=false
4176for ac_c_preproc_warn_flag in '' yes
4177do
4178  # Use a header file that comes with gcc, so configuring glibc
4179  # with a fresh cross-compiler works.
4180  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4181  # <limits.h> exists even on freestanding compilers.
4182  # On the NeXT, cc -E runs the code through the compiler's parser,
4183  # not just through cpp. "Syntax error" is here to catch this case.
4184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185/* end confdefs.h.  */
4186#ifdef __STDC__
4187# include <limits.h>
4188#else
4189# include <assert.h>
4190#endif
4191		     Syntax error
4192_ACEOF
4193if ac_fn_c_try_cpp "$LINENO"; then :
4194
4195else
4196  # Broken: fails on valid input.
4197continue
4198fi
4199rm -f conftest.err conftest.$ac_ext
4200
4201  # OK, works on sane cases.  Now check whether nonexistent headers
4202  # can be detected and how.
4203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204/* end confdefs.h.  */
4205#include <ac_nonexistent.h>
4206_ACEOF
4207if ac_fn_c_try_cpp "$LINENO"; then :
4208  # Broken: success on invalid input.
4209continue
4210else
4211  # Passes both tests.
4212ac_preproc_ok=:
4213break
4214fi
4215rm -f conftest.err conftest.$ac_ext
4216
4217done
4218# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4219rm -f conftest.err conftest.$ac_ext
4220if $ac_preproc_ok; then :
4221  break
4222fi
4223
4224    done
4225    ac_cv_prog_CPP=$CPP
4226
4227fi
4228  CPP=$ac_cv_prog_CPP
4229else
4230  ac_cv_prog_CPP=$CPP
4231fi
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4233$as_echo "$CPP" >&6; }
4234ac_preproc_ok=false
4235for ac_c_preproc_warn_flag in '' yes
4236do
4237  # Use a header file that comes with gcc, so configuring glibc
4238  # with a fresh cross-compiler works.
4239  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4240  # <limits.h> exists even on freestanding compilers.
4241  # On the NeXT, cc -E runs the code through the compiler's parser,
4242  # not just through cpp. "Syntax error" is here to catch this case.
4243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244/* end confdefs.h.  */
4245#ifdef __STDC__
4246# include <limits.h>
4247#else
4248# include <assert.h>
4249#endif
4250		     Syntax error
4251_ACEOF
4252if ac_fn_c_try_cpp "$LINENO"; then :
4253
4254else
4255  # Broken: fails on valid input.
4256continue
4257fi
4258rm -f conftest.err conftest.$ac_ext
4259
4260  # OK, works on sane cases.  Now check whether nonexistent headers
4261  # can be detected and how.
4262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263/* end confdefs.h.  */
4264#include <ac_nonexistent.h>
4265_ACEOF
4266if ac_fn_c_try_cpp "$LINENO"; then :
4267  # Broken: success on invalid input.
4268continue
4269else
4270  # Passes both tests.
4271ac_preproc_ok=:
4272break
4273fi
4274rm -f conftest.err conftest.$ac_ext
4275
4276done
4277# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4278rm -f conftest.err conftest.$ac_ext
4279if $ac_preproc_ok; then :
4280
4281else
4282  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4284as_fn_error "C preprocessor \"$CPP\" fails sanity check
4285See \`config.log' for more details." "$LINENO" 5; }
4286fi
4287
4288ac_ext=c
4289ac_cpp='$CPP $CPPFLAGS'
4290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4292ac_compiler_gnu=$ac_cv_c_compiler_gnu
4293
4294
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4296$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4297if test "${ac_cv_path_GREP+set}" = set; then :
4298  $as_echo_n "(cached) " >&6
4299else
4300  if test -z "$GREP"; then
4301  ac_path_GREP_found=false
4302  # Loop through the user's path and test for each of PROGNAME-LIST
4303  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4305do
4306  IFS=$as_save_IFS
4307  test -z "$as_dir" && as_dir=.
4308    for ac_prog in grep ggrep; do
4309    for ac_exec_ext in '' $ac_executable_extensions; do
4310      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4311      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4312# Check for GNU ac_path_GREP and select it if it is found.
4313  # Check for GNU $ac_path_GREP
4314case `"$ac_path_GREP" --version 2>&1` in
4315*GNU*)
4316  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4317*)
4318  ac_count=0
4319  $as_echo_n 0123456789 >"conftest.in"
4320  while :
4321  do
4322    cat "conftest.in" "conftest.in" >"conftest.tmp"
4323    mv "conftest.tmp" "conftest.in"
4324    cp "conftest.in" "conftest.nl"
4325    $as_echo 'GREP' >> "conftest.nl"
4326    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4327    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4328    as_fn_arith $ac_count + 1 && ac_count=$as_val
4329    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4330      # Best one so far, save it but keep looking for a better one
4331      ac_cv_path_GREP="$ac_path_GREP"
4332      ac_path_GREP_max=$ac_count
4333    fi
4334    # 10*(2^10) chars as input seems more than enough
4335    test $ac_count -gt 10 && break
4336  done
4337  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4338esac
4339
4340      $ac_path_GREP_found && break 3
4341    done
4342  done
4343  done
4344IFS=$as_save_IFS
4345  if test -z "$ac_cv_path_GREP"; then
4346    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4347  fi
4348else
4349  ac_cv_path_GREP=$GREP
4350fi
4351
4352fi
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4354$as_echo "$ac_cv_path_GREP" >&6; }
4355 GREP="$ac_cv_path_GREP"
4356
4357
4358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4359$as_echo_n "checking for egrep... " >&6; }
4360if test "${ac_cv_path_EGREP+set}" = set; then :
4361  $as_echo_n "(cached) " >&6
4362else
4363  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4364   then ac_cv_path_EGREP="$GREP -E"
4365   else
4366     if test -z "$EGREP"; then
4367  ac_path_EGREP_found=false
4368  # Loop through the user's path and test for each of PROGNAME-LIST
4369  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4371do
4372  IFS=$as_save_IFS
4373  test -z "$as_dir" && as_dir=.
4374    for ac_prog in egrep; do
4375    for ac_exec_ext in '' $ac_executable_extensions; do
4376      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4377      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4378# Check for GNU ac_path_EGREP and select it if it is found.
4379  # Check for GNU $ac_path_EGREP
4380case `"$ac_path_EGREP" --version 2>&1` in
4381*GNU*)
4382  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4383*)
4384  ac_count=0
4385  $as_echo_n 0123456789 >"conftest.in"
4386  while :
4387  do
4388    cat "conftest.in" "conftest.in" >"conftest.tmp"
4389    mv "conftest.tmp" "conftest.in"
4390    cp "conftest.in" "conftest.nl"
4391    $as_echo 'EGREP' >> "conftest.nl"
4392    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4393    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4394    as_fn_arith $ac_count + 1 && ac_count=$as_val
4395    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4396      # Best one so far, save it but keep looking for a better one
4397      ac_cv_path_EGREP="$ac_path_EGREP"
4398      ac_path_EGREP_max=$ac_count
4399    fi
4400    # 10*(2^10) chars as input seems more than enough
4401    test $ac_count -gt 10 && break
4402  done
4403  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4404esac
4405
4406      $ac_path_EGREP_found && break 3
4407    done
4408  done
4409  done
4410IFS=$as_save_IFS
4411  if test -z "$ac_cv_path_EGREP"; then
4412    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4413  fi
4414else
4415  ac_cv_path_EGREP=$EGREP
4416fi
4417
4418   fi
4419fi
4420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4421$as_echo "$ac_cv_path_EGREP" >&6; }
4422 EGREP="$ac_cv_path_EGREP"
4423
4424
4425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4426$as_echo_n "checking for ANSI C header files... " >&6; }
4427if test "${ac_cv_header_stdc+set}" = set; then :
4428  $as_echo_n "(cached) " >&6
4429else
4430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431/* end confdefs.h.  */
4432#include <stdlib.h>
4433#include <stdarg.h>
4434#include <string.h>
4435#include <float.h>
4436
4437int
4438main ()
4439{
4440
4441  ;
4442  return 0;
4443}
4444_ACEOF
4445if ac_fn_c_try_compile "$LINENO"; then :
4446  ac_cv_header_stdc=yes
4447else
4448  ac_cv_header_stdc=no
4449fi
4450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4451
4452if test $ac_cv_header_stdc = yes; then
4453  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455/* end confdefs.h.  */
4456#include <string.h>
4457
4458_ACEOF
4459if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4460  $EGREP "memchr" >/dev/null 2>&1; then :
4461
4462else
4463  ac_cv_header_stdc=no
4464fi
4465rm -f conftest*
4466
4467fi
4468
4469if test $ac_cv_header_stdc = yes; then
4470  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472/* end confdefs.h.  */
4473#include <stdlib.h>
4474
4475_ACEOF
4476if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4477  $EGREP "free" >/dev/null 2>&1; then :
4478
4479else
4480  ac_cv_header_stdc=no
4481fi
4482rm -f conftest*
4483
4484fi
4485
4486if test $ac_cv_header_stdc = yes; then
4487  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4488  if test "$cross_compiling" = yes; then :
4489  :
4490else
4491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492/* end confdefs.h.  */
4493#include <ctype.h>
4494#include <stdlib.h>
4495#if ((' ' & 0x0FF) == 0x020)
4496# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4497# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4498#else
4499# define ISLOWER(c) \
4500		   (('a' <= (c) && (c) <= 'i') \
4501		     || ('j' <= (c) && (c) <= 'r') \
4502		     || ('s' <= (c) && (c) <= 'z'))
4503# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4504#endif
4505
4506#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4507int
4508main ()
4509{
4510  int i;
4511  for (i = 0; i < 256; i++)
4512    if (XOR (islower (i), ISLOWER (i))
4513	|| toupper (i) != TOUPPER (i))
4514      return 2;
4515  return 0;
4516}
4517_ACEOF
4518if ac_fn_c_try_run "$LINENO"; then :
4519
4520else
4521  ac_cv_header_stdc=no
4522fi
4523rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4524  conftest.$ac_objext conftest.beam conftest.$ac_ext
4525fi
4526
4527fi
4528fi
4529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4530$as_echo "$ac_cv_header_stdc" >&6; }
4531if test $ac_cv_header_stdc = yes; then
4532
4533$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4534
4535fi
4536
4537# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4538for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4539		  inttypes.h stdint.h unistd.h
4540do :
4541  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4542ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4543"
4544eval as_val=\$$as_ac_Header
4545   if test "x$as_val" = x""yes; then :
4546  cat >>confdefs.h <<_ACEOF
4547#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4548_ACEOF
4549
4550fi
4551
4552done
4553
4554
4555ac_fn_c_check_header_mongrel "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
4556if test "x$ac_cv_header_linux_fs_h" = x""yes; then :
4557  linux_headers=yes
4558else
4559  linux_headers=no
4560fi
4561
4562
4563if test "$linux_headers" != yes; then
4564  LINUX_INCLUDE='-I$(top_builddir)/include'
4565fi
4566
4567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4568$as_echo_n "checking for additional special compiler flags... " >&6; }
4569if test "$GCC" = yes
4570then
4571    case "$host_cpu" in
4572	alpha)		addcflags="-mieee" ;;
4573    esac
4574fi
4575if test "x$addcflags" != x
4576then
4577    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4578$as_echo "$addcflags" >&6; }
4579    CFLAGS="$addcflags $CFLAGS"
4580else
4581    { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4582$as_echo "(none)" >&6; }
4583fi
4584LIB_EXT=.a
4585STATIC_LIB_EXT=.a
4586PROFILED_LIB_EXT=.a
4587
4588# Check whether --with-root-prefix was given.
4589if test "${with_root_prefix+set}" = set; then :
4590  withval=$with_root_prefix; root_prefix=$withval
4591else
4592  root_prefix=NONE
4593fi
4594# Check whether --enable-maintainer-mode was given.
4595if test "${enable_maintainer_mode+set}" = set; then :
4596  enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4597then
4598	MAINTAINER_CMT=#
4599	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4600$as_echo "Disabling maintainer mode" >&6; }
4601else
4602	MAINTAINER_CMT=
4603	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4604$as_echo "Enabling maintainer mode" >&6; }
4605fi
4606
4607else
4608  MAINTAINER_CMT=#
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4610$as_echo "Disabling maintainer mode by default" >&6; }
4611
4612fi
4613
4614
4615# Check whether --enable-symlink-install was given.
4616if test "${enable_symlink_install+set}" = set; then :
4617  enableval=$enable_symlink_install; if test "$enableval" = "no"
4618then
4619	LINK_INSTALL_FLAGS=-f
4620	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4621$as_echo "Disabling symlinks for install" >&6; }
4622else
4623	LINK_INSTALL_FLAGS=-sf
4624	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4625$as_echo "Enabling symlinks for install" >&6; }
4626fi
4627
4628else
4629  LINK_INSTALL_FLAGS=-f
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4631$as_echo "Disabling symlinks for install" >&6; }
4632
4633fi
4634
4635
4636# Check whether --enable-symlink-build was given.
4637if test "${enable_symlink_build+set}" = set; then :
4638  enableval=$enable_symlink_build; if test "$enableval" = "no"
4639then
4640	LINK_BUILD_FLAGS=
4641	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4642$as_echo "Disabling symlinks for build" >&6; }
4643else
4644	LINK_BUILD_FLAGS=-s
4645	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4646$as_echo "Enabling symlinks for build" >&6; }
4647fi
4648
4649else
4650  LINK_BUILD_FLAGS=
4651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4652$as_echo "Disabling symlinks for build" >&6; }
4653
4654fi
4655
4656
4657# Check whether --enable-verbose-makecmds was given.
4658if test "${enable_verbose_makecmds+set}" = set; then :
4659  enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4660then
4661	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4662$as_echo "Disabling verbose make commands" >&6; }
4663	E=@echo
4664	Q=@
4665else
4666	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4667$as_echo "Enabling verbose make commands" >&6; }
4668	E=@\\#
4669	Q=
4670fi
4671
4672else
4673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4674$as_echo "Disabling verbose make commands" >&6; }
4675E=@echo
4676Q=@
4677
4678fi
4679
4680
4681
4682# Check whether --enable-compression was given.
4683if test "${enable_compression+set}" = set; then :
4684  enableval=$enable_compression; if test "$enableval" = "no"
4685then
4686	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4687$as_echo "Disabling compression support" >&6; }
4688else
4689	$as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4690
4691	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4692$as_echo "Enabling compression support" >&6; }
4693	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4694$as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4695fi
4696
4697else
4698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4699$as_echo "Disabling compression support by default" >&6; }
4700
4701fi
4702
4703# Check whether --enable-htree was given.
4704if test "${enable_htree+set}" = set; then :
4705  enableval=$enable_htree; if test "$enableval" = "no"
4706then
4707	HTREE_CMT=#
4708	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4709$as_echo "Disabling htree directory support" >&6; }
4710else
4711	HTREE_CMT=
4712	$as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4713
4714	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4715$as_echo "Enabling htree directory support" >&6; }
4716fi
4717
4718else
4719  HTREE_CMT=
4720$as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4721
4722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4723$as_echo "Enabling htree directory support by default" >&6; }
4724
4725fi
4726
4727
4728E2_PKG_CONFIG_STATIC=--static
4729LDFLAG_DYNAMIC=
4730PRIVATE_LIBS_CMT=
4731# Check whether --enable-elf-shlibs was given.
4732if test "${enable_elf_shlibs+set}" = set; then :
4733  enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4734then
4735	ELF_CMT=#
4736	MAKEFILE_ELF=/dev/null
4737	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4738$as_echo "Disabling ELF shared libraries" >&6; }
4739else
4740	E2_PKG_CONFIG_STATIC=
4741	ELF_CMT=
4742	MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4743	case "$host_os" in
4744	solaris2.*)
4745		MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4746	;;
4747	esac
4748	BINARY_TYPE=elfbin
4749	LIB_EXT=.so
4750	PRIVATE_LIBS_CMT=#
4751	LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4752	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4753$as_echo "Enabling ELF shared libraries" >&6; }
4754fi
4755
4756else
4757  MAKEFILE_ELF=/dev/null
4758ELF_CMT=#
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4760$as_echo "Disabling ELF shared libraries by default" >&6; }
4761
4762fi
4763
4764
4765
4766# Check whether --enable-bsd-shlibs was given.
4767if test "${enable_bsd_shlibs+set}" = set; then :
4768  enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4769then
4770	BSDLIB_CMT=#
4771	MAKEFILE_BSDLIB=/dev/null
4772	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4773$as_echo "Disabling BSD shared libraries" >&6; }
4774else
4775	E2_PKG_CONFIG_STATIC=
4776	BSDLIB_CMT=
4777	MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4778	LIB_EXT=.so
4779	case "$host_os" in
4780	darwin*)
4781		MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4782		LIB_EXT=.dylib
4783	;;
4784	esac
4785	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4786$as_echo "Enabling BSD shared libraries" >&6; }
4787fi
4788
4789else
4790  MAKEFILE_BSDLIB=/dev/null
4791BSDLIB_CMT=#
4792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4793$as_echo "Disabling BSD shared libraries by default" >&6; }
4794
4795fi
4796
4797
4798
4799# Check whether --enable-profile was given.
4800if test "${enable_profile+set}" = set; then :
4801  enableval=$enable_profile; if test "$enableval" = "no"
4802then
4803	PROFILE_CMT=#
4804	MAKEFILE_PROFILE=/dev/null
4805	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4806$as_echo "Disabling profiling libraries" >&6; }
4807else
4808	PROFILE_CMT=
4809	MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4810	PROFILED_LIB_EXT=_p.a
4811	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4812$as_echo "Building profiling libraries" >&6; }
4813fi
4814
4815else
4816  PROFILE_CMT=#
4817MAKEFILE_PROFILE=/dev/null
4818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4819$as_echo "Disabling profiling libraries by default" >&6; }
4820
4821fi
4822
4823
4824
4825# Check whether --enable-checker was given.
4826if test "${enable_checker+set}" = set; then :
4827  enableval=$enable_checker; if test "$enableval" = "no"
4828then
4829	CHECKER_CMT=#
4830	MAKEFILE_CHECKER=/dev/null
4831	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4832$as_echo "Disabling checker libraries" >&6; }
4833else
4834	CHECKER_CMT=
4835	MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4836	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4837$as_echo "Building checker libraries" >&6; }
4838fi
4839
4840else
4841  CHECKER_CMT=#
4842MAKEFILE_CHECKER=/dev/null
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4844$as_echo "Disabling checker libraries by default" >&6; }
4845
4846fi
4847
4848
4849
4850
4851
4852
4853
4854
4855# Check whether --enable-jbd-debug was given.
4856if test "${enable_jbd_debug+set}" = set; then :
4857  enableval=$enable_jbd_debug; if test "$enableval" = "no"
4858then
4859	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4860$as_echo "Disabling journal debugging" >&6; }
4861else
4862	$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4863
4864	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4865$as_echo "Enabling journal debugging" >&6; }
4866fi
4867
4868else
4869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4870$as_echo "Disabling journal debugging by default" >&6; }
4871
4872fi
4873
4874# Check whether --enable-blkid-debug was given.
4875if test "${enable_blkid_debug+set}" = set; then :
4876  enableval=$enable_blkid_debug; if test "$enableval" = "no"
4877then
4878	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4879$as_echo "Disabling blkid debugging" >&6; }
4880else
4881	$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4882
4883	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4884$as_echo "Enabling blkid debugging" >&6; }
4885fi
4886
4887else
4888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4889$as_echo "Disabling blkid debugging by default" >&6; }
4890
4891fi
4892
4893# Check whether --enable-testio-debug was given.
4894if test "${enable_testio_debug+set}" = set; then :
4895  enableval=$enable_testio_debug; if test "$enableval" = "no"
4896then
4897	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4898$as_echo "Disabling testio debugging" >&6; }
4899	TEST_IO_CMT="#"
4900else
4901	TEST_IO_CMT=
4902	$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4903
4904	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4905$as_echo "Enabling testio debugging" >&6; }
4906fi
4907
4908else
4909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4910$as_echo "Enabling testio debugging by default" >&6; }
4911$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4912
4913TEST_IO_CMT=
4914
4915fi
4916
4917
4918
4919
4920if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4921        if test -n "$ac_tool_prefix"; then
4922  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4923set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925$as_echo_n "checking for $ac_word... " >&6; }
4926if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4927  $as_echo_n "(cached) " >&6
4928else
4929  case $PKG_CONFIG in
4930  [\\/]* | ?:[\\/]*)
4931  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4932  ;;
4933  *)
4934  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935for as_dir in $PATH
4936do
4937  IFS=$as_save_IFS
4938  test -z "$as_dir" && as_dir=.
4939    for ac_exec_ext in '' $ac_executable_extensions; do
4940  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4941    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4942    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4943    break 2
4944  fi
4945done
4946  done
4947IFS=$as_save_IFS
4948
4949  ;;
4950esac
4951fi
4952PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4953if test -n "$PKG_CONFIG"; then
4954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4955$as_echo "$PKG_CONFIG" >&6; }
4956else
4957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958$as_echo "no" >&6; }
4959fi
4960
4961
4962fi
4963if test -z "$ac_cv_path_PKG_CONFIG"; then
4964  ac_pt_PKG_CONFIG=$PKG_CONFIG
4965  # Extract the first word of "pkg-config", so it can be a program name with args.
4966set dummy pkg-config; ac_word=$2
4967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4968$as_echo_n "checking for $ac_word... " >&6; }
4969if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4970  $as_echo_n "(cached) " >&6
4971else
4972  case $ac_pt_PKG_CONFIG in
4973  [\\/]* | ?:[\\/]*)
4974  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4975  ;;
4976  *)
4977  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978for as_dir in $PATH
4979do
4980  IFS=$as_save_IFS
4981  test -z "$as_dir" && as_dir=.
4982    for ac_exec_ext in '' $ac_executable_extensions; do
4983  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4984    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4985    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4986    break 2
4987  fi
4988done
4989  done
4990IFS=$as_save_IFS
4991
4992  ;;
4993esac
4994fi
4995ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4996if test -n "$ac_pt_PKG_CONFIG"; then
4997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4998$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4999else
5000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5001$as_echo "no" >&6; }
5002fi
5003
5004  if test "x$ac_pt_PKG_CONFIG" = x; then
5005    PKG_CONFIG=""
5006  else
5007    case $cross_compiling:$ac_tool_warned in
5008yes:)
5009{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5011ac_tool_warned=yes ;;
5012esac
5013    PKG_CONFIG=$ac_pt_PKG_CONFIG
5014  fi
5015else
5016  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5017fi
5018
5019fi
5020if test -n "$PKG_CONFIG"; then
5021        _pkg_min_version=0.9.0
5022        { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5023$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5024        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5025                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5026$as_echo "yes" >&6; }
5027        else
5028                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5029$as_echo "no" >&6; }
5030                PKG_CONFIG=""
5031        fi
5032
5033fi
5034LIBUUID=
5035DEPLIBUUID=
5036STATIC_LIBUUID=
5037DEPSTATIC_LIBUUID=
5038PROFILED_LIBUUID=
5039DEPPROFILED_LIBUUID=
5040UUID_CMT=
5041# Check whether --enable-libuuid was given.
5042if test "${enable_libuuid+set}" = set; then :
5043  enableval=$enable_libuuid; if test "$enableval" = "no"
5044then
5045	if test -z "$PKG_CONFIG"; then
5046		as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
5047	fi
5048
5049	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5050$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5051if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
5052  $as_echo_n "(cached) " >&6
5053else
5054  ac_check_lib_save_LIBS=$LIBS
5055LIBS="-luuid $LIBUUID $LIBS"
5056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057/* end confdefs.h.  */
5058
5059/* Override any GCC internal prototype to avoid an error.
5060   Use char because int might match the return type of a GCC
5061   builtin and then its argument prototype would still apply.  */
5062#ifdef __cplusplus
5063extern "C"
5064#endif
5065char uuid_generate ();
5066int
5067main ()
5068{
5069return uuid_generate ();
5070  ;
5071  return 0;
5072}
5073_ACEOF
5074if ac_fn_c_try_link "$LINENO"; then :
5075  ac_cv_lib_uuid_uuid_generate=yes
5076else
5077  ac_cv_lib_uuid_uuid_generate=no
5078fi
5079rm -f core conftest.err conftest.$ac_objext \
5080    conftest$ac_exeext conftest.$ac_ext
5081LIBS=$ac_check_lib_save_LIBS
5082fi
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5084$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5085if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
5086  LIBUUID=`$PKG_CONFIG --libs uuid`;
5087		 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5088else
5089  as_fn_error "external uuid library not found" "$LINENO" 5
5090fi
5091
5092	UUID_CMT=#
5093	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5094$as_echo "Disabling private uuid library" >&6; }
5095else
5096	LIBUUID='$(LIB)/libuuid'$LIB_EXT
5097	DEPLIBUUID=$LIBUUID
5098	STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5099	DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5100	PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5101	DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5102	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5103$as_echo "Enabling private uuid library" >&6; }
5104fi
5105
5106else
5107  LIBUUID='$(LIB)/libuuid'$LIB_EXT
5108DEPLIBUUID=$LIBUUID
5109STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5110DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5111PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5112DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5114$as_echo "Enabling private uuid library by default" >&6; }
5115
5116fi
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5128        if test -n "$ac_tool_prefix"; then
5129  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5130set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132$as_echo_n "checking for $ac_word... " >&6; }
5133if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5134  $as_echo_n "(cached) " >&6
5135else
5136  case $PKG_CONFIG in
5137  [\\/]* | ?:[\\/]*)
5138  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5139  ;;
5140  *)
5141  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142for as_dir in $PATH
5143do
5144  IFS=$as_save_IFS
5145  test -z "$as_dir" && as_dir=.
5146    for ac_exec_ext in '' $ac_executable_extensions; do
5147  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5148    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5149    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5150    break 2
5151  fi
5152done
5153  done
5154IFS=$as_save_IFS
5155
5156  ;;
5157esac
5158fi
5159PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5160if test -n "$PKG_CONFIG"; then
5161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5162$as_echo "$PKG_CONFIG" >&6; }
5163else
5164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165$as_echo "no" >&6; }
5166fi
5167
5168
5169fi
5170if test -z "$ac_cv_path_PKG_CONFIG"; then
5171  ac_pt_PKG_CONFIG=$PKG_CONFIG
5172  # Extract the first word of "pkg-config", so it can be a program name with args.
5173set dummy pkg-config; ac_word=$2
5174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175$as_echo_n "checking for $ac_word... " >&6; }
5176if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5177  $as_echo_n "(cached) " >&6
5178else
5179  case $ac_pt_PKG_CONFIG in
5180  [\\/]* | ?:[\\/]*)
5181  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5182  ;;
5183  *)
5184  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185for as_dir in $PATH
5186do
5187  IFS=$as_save_IFS
5188  test -z "$as_dir" && as_dir=.
5189    for ac_exec_ext in '' $ac_executable_extensions; do
5190  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5191    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5193    break 2
5194  fi
5195done
5196  done
5197IFS=$as_save_IFS
5198
5199  ;;
5200esac
5201fi
5202ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5203if test -n "$ac_pt_PKG_CONFIG"; then
5204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5205$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5206else
5207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208$as_echo "no" >&6; }
5209fi
5210
5211  if test "x$ac_pt_PKG_CONFIG" = x; then
5212    PKG_CONFIG=""
5213  else
5214    case $cross_compiling:$ac_tool_warned in
5215yes:)
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5218ac_tool_warned=yes ;;
5219esac
5220    PKG_CONFIG=$ac_pt_PKG_CONFIG
5221  fi
5222else
5223  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5224fi
5225
5226fi
5227if test -n "$PKG_CONFIG"; then
5228        _pkg_min_version=0.9.0
5229        { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5230$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5231        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5232                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5233$as_echo "yes" >&6; }
5234        else
5235                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236$as_echo "no" >&6; }
5237                PKG_CONFIG=""
5238        fi
5239
5240fi
5241LIBBLKID=
5242DEPLIBBLKID=
5243STATIC_LIBBLKID=
5244DEPSTATIC_LIBBLKID=
5245PROFILED_LIBBLKID=
5246DEPPROFILED_LIBBLKID=
5247BLKID_CMT=
5248# Check whether --enable-libblkid was given.
5249if test "${enable_libblkid+set}" = set; then :
5250  enableval=$enable_libblkid; if test "$enableval" = "no"
5251then
5252	if test -z "$PKG_CONFIG"; then
5253		as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
5254	fi
5255
5256	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5257$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5258if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
5259  $as_echo_n "(cached) " >&6
5260else
5261  ac_check_lib_save_LIBS=$LIBS
5262LIBS="-lblkid $LIBBLKID $LIBS"
5263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264/* end confdefs.h.  */
5265
5266/* Override any GCC internal prototype to avoid an error.
5267   Use char because int might match the return type of a GCC
5268   builtin and then its argument prototype would still apply.  */
5269#ifdef __cplusplus
5270extern "C"
5271#endif
5272char blkid_get_cache ();
5273int
5274main ()
5275{
5276return blkid_get_cache ();
5277  ;
5278  return 0;
5279}
5280_ACEOF
5281if ac_fn_c_try_link "$LINENO"; then :
5282  ac_cv_lib_blkid_blkid_get_cache=yes
5283else
5284  ac_cv_lib_blkid_blkid_get_cache=no
5285fi
5286rm -f core conftest.err conftest.$ac_objext \
5287    conftest$ac_exeext conftest.$ac_ext
5288LIBS=$ac_check_lib_save_LIBS
5289fi
5290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5291$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5292if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then :
5293  LIBBLKID=`$PKG_CONFIG --libs blkid`;
5294		 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5295else
5296  as_fn_error "external blkid library not found" "$LINENO" 5
5297fi
5298
5299	BLKID_CMT=#
5300	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5301$as_echo "Disabling private blkid library" >&6; }
5302else
5303	LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5304	DEPLIBBLKID=$LIBBLKID
5305	STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5306	DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5307	PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5308	DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5309	$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5310
5311	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5312$as_echo "Enabling private blkid library" >&6; }
5313fi
5314
5315else
5316  LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5317DEPLIBBLKID=$LIBBLKID
5318STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5319DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5320PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5321DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5322$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5323
5324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5325$as_echo "Enabling private blkid library by default" >&6; }
5326
5327fi
5328
5329
5330
5331
5332
5333
5334
5335
5336# Check whether --enable-debugfs was given.
5337if test "${enable_debugfs+set}" = set; then :
5338  enableval=$enable_debugfs; if test "$enableval" = "no"
5339then
5340	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5341$as_echo "Disabling debugfs support" >&6; }
5342	DEBUGFS_CMT="#"
5343else
5344	DEBUGFS_CMT=
5345	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5346$as_echo "Enabling debugfs support" >&6; }
5347fi
5348
5349else
5350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5351$as_echo "Enabling debugfs support by default" >&6; }
5352DEBUGFS_CMT=
5353
5354fi
5355
5356
5357# Check whether --enable-imager was given.
5358if test "${enable_imager+set}" = set; then :
5359  enableval=$enable_imager; if test "$enableval" = "no"
5360then
5361	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5362$as_echo "Disabling e2image support" >&6; }
5363	IMAGER_CMT="#"
5364else
5365	IMAGER_CMT=
5366	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5367$as_echo "Enabling e2image support" >&6; }
5368fi
5369
5370else
5371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5372$as_echo "Enabling e2image support by default" >&6; }
5373IMAGER_CMT=
5374
5375fi
5376
5377
5378# Check whether --enable-resizer was given.
5379if test "${enable_resizer+set}" = set; then :
5380  enableval=$enable_resizer; if test "$enableval" = "no"
5381then
5382	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5383$as_echo "Disabling e2resize support" >&6; }
5384	RESIZER_CMT="#"
5385else
5386	RESIZER_CMT=
5387	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5388$as_echo "Enabling e2resize support" >&6; }
5389fi
5390
5391else
5392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5393$as_echo "Enabling e2resize support by default" >&6; }
5394RESIZER_CMT=
5395
5396fi
5397
5398
5399# Check whether --enable-fsck was given.
5400if test "${enable_fsck+set}" = set; then :
5401  enableval=$enable_fsck; if test "$enableval" = "no"
5402then
5403	FSCK_PROG='' FSCK_MAN=''
5404	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5405$as_echo "Not building fsck wrapper" >&6; }
5406else
5407	FSCK_PROG=fsck FSCK_MAN=fsck.8
5408	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5409$as_echo "Building fsck wrapper" >&6; }
5410fi
5411
5412else
5413  case "$host_os" in
5414  gnu*)
5415    FSCK_PROG='' FSCK_MAN=''
5416    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5417$as_echo "Not building fsck wrapper by default" >&6; }
5418    ;;
5419  *)
5420    FSCK_PROG=fsck FSCK_MAN=fsck.8
5421    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5422$as_echo "Building fsck wrapper by default" >&6; }
5423esac
5424
5425fi
5426
5427
5428
5429# Check whether --enable-e2initrd-helper was given.
5430if test "${enable_e2initrd_helper+set}" = set; then :
5431  enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5432then
5433	E2INITRD_PROG='' E2INITRD_MAN=''
5434	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5435$as_echo "Not building e2initrd helper" >&6; }
5436else
5437	E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5438	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5439$as_echo "Building e2initrd helper" >&6; }
5440fi
5441
5442else
5443  E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5445$as_echo "Building e2initrd helper by default" >&6; }
5446
5447fi
5448
5449
5450
5451# Check whether --enable-tls was given.
5452if test "${enable_tls+set}" = set; then :
5453  enableval=$enable_tls; if test "$enableval" = "no"
5454then
5455	try_tls=""
5456	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5457$as_echo "Disabling thread local support" >&6; }
5458else
5459	try_tls="yes"
5460	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5461$as_echo "Enabling thread local support" >&6; }
5462fi
5463
5464else
5465  if test -n "$WITH_DIET_LIBC"
5466then
5467	try_tls=""
5468	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5469$as_echo "Diet libc does not support thread local support" >&6; }
5470else
5471	try_tls="yes"
5472	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5473$as_echo "Try using thread local support by default" >&6; }
5474fi
5475
5476fi
5477
5478if test "$try_tls" = "yes"
5479then
5480
5481  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5482$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5483  if test "${ac_cv_tls+set}" = set; then :
5484  $as_echo_n "(cached) " >&6
5485else
5486
5487    ax_tls_keywords="__thread __declspec(thread) none"
5488    for ax_tls_keyword in $ax_tls_keywords; do
5489       case $ax_tls_keyword in
5490          none) ac_cv_tls=none ; break ;;
5491          *)
5492             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493/* end confdefs.h.  */
5494#include <stdlib.h>
5495                 static void
5496                 foo(void) {
5497                 static  $ax_tls_keyword  int bar;
5498                 exit(1);
5499                 }
5500int
5501main ()
5502{
5503
5504  ;
5505  return 0;
5506}
5507_ACEOF
5508if ac_fn_c_try_compile "$LINENO"; then :
5509  ac_cv_tls=$ax_tls_keyword ; break
5510else
5511  ac_cv_tls=none
5512
5513fi
5514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5515          esac
5516    done
5517
5518fi
5519
5520
5521  if test "$ac_cv_tls" != "none"; then
5522
5523cat >>confdefs.h <<_ACEOF
5524#define TLS $ac_cv_tls
5525_ACEOF
5526
5527  fi
5528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5529$as_echo "$ac_cv_tls" >&6; }
5530
5531fi
5532# Check whether --enable-uuidd was given.
5533if test "${enable_uuidd+set}" = set; then :
5534  enableval=$enable_uuidd; if test "$enableval" = "no"
5535then
5536	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5537$as_echo "Not building uuidd" >&6; }
5538	UUIDD_CMT="#"
5539else
5540	$as_echo "#define USE_UUIDD 1" >>confdefs.h
5541
5542	UUIDD_CMT=""
5543	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5544$as_echo "Building uuidd" >&6; }
5545fi
5546
5547else
5548  $as_echo "#define USE_UUIDD 1" >>confdefs.h
5549
5550UUIDD_CMT=""
5551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5552$as_echo "Building uuidd by default" >&6; }
5553
5554fi
5555
5556
5557MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5558
5559GETTEXT_PACKAGE=e2fsprogs
5560PACKAGE=e2fsprogs
5561VERSION="$E2FSPROGS_VERSION"
5562VERSION=0.14.1
5563cat >>confdefs.h <<_ACEOF
5564#define PACKAGE "$PACKAGE"
5565_ACEOF
5566
5567cat >>confdefs.h <<_ACEOF
5568#define VERSION "$VERSION"
5569_ACEOF
5570
5571
5572
5573
5574
5575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5576$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5577set x ${MAKE-make}
5578ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5579if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5580  $as_echo_n "(cached) " >&6
5581else
5582  cat >conftest.make <<\_ACEOF
5583SHELL = /bin/sh
5584all:
5585	@echo '@@@%%%=$(MAKE)=@@@%%%'
5586_ACEOF
5587# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5588case `${MAKE-make} -f conftest.make 2>/dev/null` in
5589  *@@@%%%=?*=@@@%%%*)
5590    eval ac_cv_prog_make_${ac_make}_set=yes;;
5591  *)
5592    eval ac_cv_prog_make_${ac_make}_set=no;;
5593esac
5594rm -f conftest.make
5595fi
5596if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5598$as_echo "yes" >&6; }
5599  SET_MAKE=
5600else
5601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602$as_echo "no" >&6; }
5603  SET_MAKE="MAKE=${MAKE-make}"
5604fi
5605
5606# Find a good install program.  We prefer a C program (faster),
5607# so one script is as good as another.  But avoid the broken or
5608# incompatible versions:
5609# SysV /etc/install, /usr/sbin/install
5610# SunOS /usr/etc/install
5611# IRIX /sbin/install
5612# AIX /bin/install
5613# AmigaOS /C/install, which installs bootblocks on floppy discs
5614# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5615# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5616# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5617# OS/2's system install, which has a completely different semantic
5618# ./install, which can be erroneously created by make from ./install.sh.
5619# Reject install programs that cannot install multiple files.
5620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5621$as_echo_n "checking for a BSD-compatible install... " >&6; }
5622if test -z "$INSTALL"; then
5623if test "${ac_cv_path_install+set}" = set; then :
5624  $as_echo_n "(cached) " >&6
5625else
5626  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627for as_dir in $PATH
5628do
5629  IFS=$as_save_IFS
5630  test -z "$as_dir" && as_dir=.
5631    # Account for people who put trailing slashes in PATH elements.
5632case $as_dir/ in #((
5633  ./ | .// | /[cC]/* | \
5634  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5635  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5636  /usr/ucb/* ) ;;
5637  *)
5638    # OSF1 and SCO ODT 3.0 have their own names for install.
5639    # Don't use installbsd from OSF since it installs stuff as root
5640    # by default.
5641    for ac_prog in ginstall scoinst install; do
5642      for ac_exec_ext in '' $ac_executable_extensions; do
5643	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5644	  if test $ac_prog = install &&
5645	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5646	    # AIX install.  It has an incompatible calling convention.
5647	    :
5648	  elif test $ac_prog = install &&
5649	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5650	    # program-specific install script used by HP pwplus--don't use.
5651	    :
5652	  else
5653	    rm -rf conftest.one conftest.two conftest.dir
5654	    echo one > conftest.one
5655	    echo two > conftest.two
5656	    mkdir conftest.dir
5657	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5658	      test -s conftest.one && test -s conftest.two &&
5659	      test -s conftest.dir/conftest.one &&
5660	      test -s conftest.dir/conftest.two
5661	    then
5662	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5663	      break 3
5664	    fi
5665	  fi
5666	fi
5667      done
5668    done
5669    ;;
5670esac
5671
5672  done
5673IFS=$as_save_IFS
5674
5675rm -rf conftest.one conftest.two conftest.dir
5676
5677fi
5678  if test "${ac_cv_path_install+set}" = set; then
5679    INSTALL=$ac_cv_path_install
5680  else
5681    # As a last resort, use the slow shell script.  Don't cache a
5682    # value for INSTALL within a source directory, because that will
5683    # break other packages using the cache if that directory is
5684    # removed, or if the value is a relative name.
5685    INSTALL=$ac_install_sh
5686  fi
5687fi
5688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5689$as_echo "$INSTALL" >&6; }
5690
5691# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5692# It thinks the first close brace ends the variable substitution.
5693test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5694
5695test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5696
5697test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5698
5699
5700        MKINSTALLDIRS=
5701  if test -n "$ac_aux_dir"; then
5702    case "$ac_aux_dir" in
5703      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5704      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5705    esac
5706  fi
5707  if test -z "$MKINSTALLDIRS"; then
5708    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5709  fi
5710
5711
5712
5713  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5714$as_echo_n "checking whether NLS is requested... " >&6; }
5715    # Check whether --enable-nls was given.
5716if test "${enable_nls+set}" = set; then :
5717  enableval=$enable_nls; USE_NLS=$enableval
5718else
5719  USE_NLS=yes
5720fi
5721
5722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5723$as_echo "$USE_NLS" >&6; }
5724
5725
5726
5727
5728
5729
5730# Prepare PATH_SEPARATOR.
5731# The user is always right.
5732if test "${PATH_SEPARATOR+set}" != set; then
5733  echo "#! /bin/sh" >conf$$.sh
5734  echo  "exit 0"   >>conf$$.sh
5735  chmod +x conf$$.sh
5736  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5737    PATH_SEPARATOR=';'
5738  else
5739    PATH_SEPARATOR=:
5740  fi
5741  rm -f conf$$.sh
5742fi
5743
5744# Find out how to test for executable files. Don't use a zero-byte file,
5745# as systems may use methods other than mode bits to determine executability.
5746cat >conf$$.file <<_ASEOF
5747#! /bin/sh
5748exit 0
5749_ASEOF
5750chmod +x conf$$.file
5751if test -x conf$$.file >/dev/null 2>&1; then
5752  ac_executable_p="test -x"
5753else
5754  ac_executable_p="test -f"
5755fi
5756rm -f conf$$.file
5757
5758# Extract the first word of "msgfmt", so it can be a program name with args.
5759set dummy msgfmt; ac_word=$2
5760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5761$as_echo_n "checking for $ac_word... " >&6; }
5762if test "${ac_cv_path_MSGFMT+set}" = set; then :
5763  $as_echo_n "(cached) " >&6
5764else
5765  case "$MSGFMT" in
5766  [\\/]* | ?:[\\/]*)
5767    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5768    ;;
5769  *)
5770    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5771    for ac_dir in $PATH; do
5772      IFS="$ac_save_IFS"
5773      test -z "$ac_dir" && ac_dir=.
5774      for ac_exec_ext in '' $ac_executable_extensions; do
5775        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5776          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5777     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5778            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5779            break 2
5780          fi
5781        fi
5782      done
5783    done
5784    IFS="$ac_save_IFS"
5785  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5786    ;;
5787esac
5788fi
5789MSGFMT="$ac_cv_path_MSGFMT"
5790if test "$MSGFMT" != ":"; then
5791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5792$as_echo "$MSGFMT" >&6; }
5793else
5794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795$as_echo "no" >&6; }
5796fi
5797
5798  # Extract the first word of "gmsgfmt", so it can be a program name with args.
5799set dummy gmsgfmt; ac_word=$2
5800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5801$as_echo_n "checking for $ac_word... " >&6; }
5802if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5803  $as_echo_n "(cached) " >&6
5804else
5805  case $GMSGFMT in
5806  [\\/]* | ?:[\\/]*)
5807  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5808  ;;
5809  *)
5810  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811for as_dir in $PATH
5812do
5813  IFS=$as_save_IFS
5814  test -z "$as_dir" && as_dir=.
5815    for ac_exec_ext in '' $ac_executable_extensions; do
5816  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5817    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5818    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5819    break 2
5820  fi
5821done
5822  done
5823IFS=$as_save_IFS
5824
5825  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5826  ;;
5827esac
5828fi
5829GMSGFMT=$ac_cv_path_GMSGFMT
5830if test -n "$GMSGFMT"; then
5831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5832$as_echo "$GMSGFMT" >&6; }
5833else
5834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5835$as_echo "no" >&6; }
5836fi
5837
5838
5839
5840
5841# Prepare PATH_SEPARATOR.
5842# The user is always right.
5843if test "${PATH_SEPARATOR+set}" != set; then
5844  echo "#! /bin/sh" >conf$$.sh
5845  echo  "exit 0"   >>conf$$.sh
5846  chmod +x conf$$.sh
5847  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5848    PATH_SEPARATOR=';'
5849  else
5850    PATH_SEPARATOR=:
5851  fi
5852  rm -f conf$$.sh
5853fi
5854
5855# Find out how to test for executable files. Don't use a zero-byte file,
5856# as systems may use methods other than mode bits to determine executability.
5857cat >conf$$.file <<_ASEOF
5858#! /bin/sh
5859exit 0
5860_ASEOF
5861chmod +x conf$$.file
5862if test -x conf$$.file >/dev/null 2>&1; then
5863  ac_executable_p="test -x"
5864else
5865  ac_executable_p="test -f"
5866fi
5867rm -f conf$$.file
5868
5869# Extract the first word of "xgettext", so it can be a program name with args.
5870set dummy xgettext; ac_word=$2
5871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5872$as_echo_n "checking for $ac_word... " >&6; }
5873if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5874  $as_echo_n "(cached) " >&6
5875else
5876  case "$XGETTEXT" in
5877  [\\/]* | ?:[\\/]*)
5878    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5879    ;;
5880  *)
5881    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5882    for ac_dir in $PATH; do
5883      IFS="$ac_save_IFS"
5884      test -z "$ac_dir" && ac_dir=.
5885      for ac_exec_ext in '' $ac_executable_extensions; do
5886        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5887          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5888     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5889            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5890            break 2
5891          fi
5892        fi
5893      done
5894    done
5895    IFS="$ac_save_IFS"
5896  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5897    ;;
5898esac
5899fi
5900XGETTEXT="$ac_cv_path_XGETTEXT"
5901if test "$XGETTEXT" != ":"; then
5902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5903$as_echo "$XGETTEXT" >&6; }
5904else
5905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906$as_echo "no" >&6; }
5907fi
5908
5909    rm -f messages.po
5910
5911
5912# Prepare PATH_SEPARATOR.
5913# The user is always right.
5914if test "${PATH_SEPARATOR+set}" != set; then
5915  echo "#! /bin/sh" >conf$$.sh
5916  echo  "exit 0"   >>conf$$.sh
5917  chmod +x conf$$.sh
5918  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5919    PATH_SEPARATOR=';'
5920  else
5921    PATH_SEPARATOR=:
5922  fi
5923  rm -f conf$$.sh
5924fi
5925
5926# Find out how to test for executable files. Don't use a zero-byte file,
5927# as systems may use methods other than mode bits to determine executability.
5928cat >conf$$.file <<_ASEOF
5929#! /bin/sh
5930exit 0
5931_ASEOF
5932chmod +x conf$$.file
5933if test -x conf$$.file >/dev/null 2>&1; then
5934  ac_executable_p="test -x"
5935else
5936  ac_executable_p="test -f"
5937fi
5938rm -f conf$$.file
5939
5940# Extract the first word of "msgmerge", so it can be a program name with args.
5941set dummy msgmerge; ac_word=$2
5942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5943$as_echo_n "checking for $ac_word... " >&6; }
5944if test "${ac_cv_path_MSGMERGE+set}" = set; then :
5945  $as_echo_n "(cached) " >&6
5946else
5947  case "$MSGMERGE" in
5948  [\\/]* | ?:[\\/]*)
5949    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5950    ;;
5951  *)
5952    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5953    for ac_dir in $PATH; do
5954      IFS="$ac_save_IFS"
5955      test -z "$ac_dir" && ac_dir=.
5956      for ac_exec_ext in '' $ac_executable_extensions; do
5957        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5958          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5959            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5960            break 2
5961          fi
5962        fi
5963      done
5964    done
5965    IFS="$ac_save_IFS"
5966  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5967    ;;
5968esac
5969fi
5970MSGMERGE="$ac_cv_path_MSGMERGE"
5971if test "$MSGMERGE" != ":"; then
5972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5973$as_echo "$MSGMERGE" >&6; }
5974else
5975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976$as_echo "no" >&6; }
5977fi
5978
5979
5980      if test "$GMSGFMT" != ":"; then
5981            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5982       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5983      : ;
5984    else
5985      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5986      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5987$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
5988      GMSGFMT=":"
5989    fi
5990  fi
5991
5992      if test "$XGETTEXT" != ":"; then
5993            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5994       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5995      : ;
5996    else
5997      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
5998$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
5999      XGETTEXT=":"
6000    fi
6001        rm -f messages.po
6002  fi
6003
6004  ac_config_commands="$ac_config_commands default-1"
6005
6006
6007if test -n "$ac_tool_prefix"; then
6008  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6009set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6011$as_echo_n "checking for $ac_word... " >&6; }
6012if test "${ac_cv_prog_RANLIB+set}" = set; then :
6013  $as_echo_n "(cached) " >&6
6014else
6015  if test -n "$RANLIB"; then
6016  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6017else
6018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019for as_dir in $PATH
6020do
6021  IFS=$as_save_IFS
6022  test -z "$as_dir" && as_dir=.
6023    for ac_exec_ext in '' $ac_executable_extensions; do
6024  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6025    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6026    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6027    break 2
6028  fi
6029done
6030  done
6031IFS=$as_save_IFS
6032
6033fi
6034fi
6035RANLIB=$ac_cv_prog_RANLIB
6036if test -n "$RANLIB"; then
6037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6038$as_echo "$RANLIB" >&6; }
6039else
6040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6041$as_echo "no" >&6; }
6042fi
6043
6044
6045fi
6046if test -z "$ac_cv_prog_RANLIB"; then
6047  ac_ct_RANLIB=$RANLIB
6048  # Extract the first word of "ranlib", so it can be a program name with args.
6049set dummy ranlib; ac_word=$2
6050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051$as_echo_n "checking for $ac_word... " >&6; }
6052if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6053  $as_echo_n "(cached) " >&6
6054else
6055  if test -n "$ac_ct_RANLIB"; then
6056  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6057else
6058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059for as_dir in $PATH
6060do
6061  IFS=$as_save_IFS
6062  test -z "$as_dir" && as_dir=.
6063    for ac_exec_ext in '' $ac_executable_extensions; do
6064  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6065    ac_cv_prog_ac_ct_RANLIB="ranlib"
6066    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6067    break 2
6068  fi
6069done
6070  done
6071IFS=$as_save_IFS
6072
6073fi
6074fi
6075ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6076if test -n "$ac_ct_RANLIB"; then
6077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6078$as_echo "$ac_ct_RANLIB" >&6; }
6079else
6080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081$as_echo "no" >&6; }
6082fi
6083
6084  if test "x$ac_ct_RANLIB" = x; then
6085    RANLIB=":"
6086  else
6087    case $cross_compiling:$ac_tool_warned in
6088yes:)
6089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6091ac_tool_warned=yes ;;
6092esac
6093    RANLIB=$ac_ct_RANLIB
6094  fi
6095else
6096  RANLIB="$ac_cv_prog_RANLIB"
6097fi
6098
6099
6100        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6101$as_echo_n "checking for strerror in -lcposix... " >&6; }
6102if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
6103  $as_echo_n "(cached) " >&6
6104else
6105  ac_check_lib_save_LIBS=$LIBS
6106LIBS="-lcposix  $LIBS"
6107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108/* end confdefs.h.  */
6109
6110/* Override any GCC internal prototype to avoid an error.
6111   Use char because int might match the return type of a GCC
6112   builtin and then its argument prototype would still apply.  */
6113#ifdef __cplusplus
6114extern "C"
6115#endif
6116char strerror ();
6117int
6118main ()
6119{
6120return strerror ();
6121  ;
6122  return 0;
6123}
6124_ACEOF
6125if ac_fn_c_try_link "$LINENO"; then :
6126  ac_cv_lib_cposix_strerror=yes
6127else
6128  ac_cv_lib_cposix_strerror=no
6129fi
6130rm -f core conftest.err conftest.$ac_objext \
6131    conftest$ac_exeext conftest.$ac_ext
6132LIBS=$ac_check_lib_save_LIBS
6133fi
6134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6135$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6136if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
6137  LIBS="$LIBS -lcposix"
6138fi
6139
6140
6141
6142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6143$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6144if test "${ac_cv_c_const+set}" = set; then :
6145  $as_echo_n "(cached) " >&6
6146else
6147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148/* end confdefs.h.  */
6149
6150int
6151main ()
6152{
6153/* FIXME: Include the comments suggested by Paul. */
6154#ifndef __cplusplus
6155  /* Ultrix mips cc rejects this.  */
6156  typedef int charset[2];
6157  const charset cs;
6158  /* SunOS 4.1.1 cc rejects this.  */
6159  char const *const *pcpcc;
6160  char **ppc;
6161  /* NEC SVR4.0.2 mips cc rejects this.  */
6162  struct point {int x, y;};
6163  static struct point const zero = {0,0};
6164  /* AIX XL C 1.02.0.0 rejects this.
6165     It does not let you subtract one const X* pointer from another in
6166     an arm of an if-expression whose if-part is not a constant
6167     expression */
6168  const char *g = "string";
6169  pcpcc = &g + (g ? g-g : 0);
6170  /* HPUX 7.0 cc rejects these. */
6171  ++pcpcc;
6172  ppc = (char**) pcpcc;
6173  pcpcc = (char const *const *) ppc;
6174  { /* SCO 3.2v4 cc rejects this.  */
6175    char *t;
6176    char const *s = 0 ? (char *) 0 : (char const *) 0;
6177
6178    *t++ = 0;
6179    if (s) return 0;
6180  }
6181  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6182    int x[] = {25, 17};
6183    const int *foo = &x[0];
6184    ++foo;
6185  }
6186  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6187    typedef const int *iptr;
6188    iptr p = 0;
6189    ++p;
6190  }
6191  { /* AIX XL C 1.02.0.0 rejects this saying
6192       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6193    struct s { int j; const int *ap[3]; };
6194    struct s *b; b->j = 5;
6195  }
6196  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6197    const int foo = 10;
6198    if (!foo) return 0;
6199  }
6200  return !cs[0] && !zero.x;
6201#endif
6202
6203  ;
6204  return 0;
6205}
6206_ACEOF
6207if ac_fn_c_try_compile "$LINENO"; then :
6208  ac_cv_c_const=yes
6209else
6210  ac_cv_c_const=no
6211fi
6212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6213fi
6214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6215$as_echo "$ac_cv_c_const" >&6; }
6216if test $ac_cv_c_const = no; then
6217
6218$as_echo "#define const /**/" >>confdefs.h
6219
6220fi
6221
6222
6223  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6224$as_echo_n "checking for signed... " >&6; }
6225if test "${bh_cv_c_signed+set}" = set; then :
6226  $as_echo_n "(cached) " >&6
6227else
6228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229/* end confdefs.h.  */
6230
6231int
6232main ()
6233{
6234signed char x;
6235  ;
6236  return 0;
6237}
6238_ACEOF
6239if ac_fn_c_try_compile "$LINENO"; then :
6240  bh_cv_c_signed=yes
6241else
6242  bh_cv_c_signed=no
6243fi
6244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6245fi
6246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6247$as_echo "$bh_cv_c_signed" >&6; }
6248  if test $bh_cv_c_signed = no; then
6249
6250$as_echo "#define signed /**/" >>confdefs.h
6251
6252  fi
6253
6254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6255$as_echo_n "checking for inline... " >&6; }
6256if test "${ac_cv_c_inline+set}" = set; then :
6257  $as_echo_n "(cached) " >&6
6258else
6259  ac_cv_c_inline=no
6260for ac_kw in inline __inline__ __inline; do
6261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6262/* end confdefs.h.  */
6263#ifndef __cplusplus
6264typedef int foo_t;
6265static $ac_kw foo_t static_foo () {return 0; }
6266$ac_kw foo_t foo () {return 0; }
6267#endif
6268
6269_ACEOF
6270if ac_fn_c_try_compile "$LINENO"; then :
6271  ac_cv_c_inline=$ac_kw
6272fi
6273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6274  test "$ac_cv_c_inline" != no && break
6275done
6276
6277fi
6278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6279$as_echo "$ac_cv_c_inline" >&6; }
6280
6281case $ac_cv_c_inline in
6282  inline | yes) ;;
6283  *)
6284    case $ac_cv_c_inline in
6285      no) ac_val=;;
6286      *) ac_val=$ac_cv_c_inline;;
6287    esac
6288    cat >>confdefs.h <<_ACEOF
6289#ifndef __cplusplus
6290#define inline $ac_val
6291#endif
6292_ACEOF
6293    ;;
6294esac
6295
6296ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6297if test "x$ac_cv_type_off_t" = x""yes; then :
6298
6299else
6300
6301cat >>confdefs.h <<_ACEOF
6302#define off_t long int
6303_ACEOF
6304
6305fi
6306
6307ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6308if test "x$ac_cv_type_size_t" = x""yes; then :
6309
6310else
6311
6312cat >>confdefs.h <<_ACEOF
6313#define size_t unsigned int
6314_ACEOF
6315
6316fi
6317
6318
6319  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6320$as_echo_n "checking for long long... " >&6; }
6321if test "${ac_cv_type_long_long+set}" = set; then :
6322  $as_echo_n "(cached) " >&6
6323else
6324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325/* end confdefs.h.  */
6326long long ll = 1LL; int i = 63;
6327int
6328main ()
6329{
6330long long llmax = (long long) -1;
6331     return ll << i | ll >> i | llmax / ll | llmax % ll;
6332  ;
6333  return 0;
6334}
6335_ACEOF
6336if ac_fn_c_try_link "$LINENO"; then :
6337  ac_cv_type_long_long=yes
6338else
6339  ac_cv_type_long_long=no
6340fi
6341rm -f core conftest.err conftest.$ac_objext \
6342    conftest$ac_exeext conftest.$ac_ext
6343fi
6344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6345$as_echo "$ac_cv_type_long_long" >&6; }
6346  if test $ac_cv_type_long_long = yes; then
6347
6348$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6349
6350  fi
6351
6352
6353  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6354$as_echo_n "checking for long double... " >&6; }
6355if test "${gt_cv_c_long_double+set}" = set; then :
6356  $as_echo_n "(cached) " >&6
6357else
6358  if test "$GCC" = yes; then
6359       gt_cv_c_long_double=yes
6360     else
6361       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362/* end confdefs.h.  */
6363
6364         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
6365         long double foo = 0.0;
6366         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
6367         int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6368
6369int
6370main ()
6371{
6372
6373  ;
6374  return 0;
6375}
6376_ACEOF
6377if ac_fn_c_try_compile "$LINENO"; then :
6378  gt_cv_c_long_double=yes
6379else
6380  gt_cv_c_long_double=no
6381fi
6382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6383     fi
6384fi
6385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6386$as_echo "$gt_cv_c_long_double" >&6; }
6387  if test $gt_cv_c_long_double = yes; then
6388
6389$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6390
6391  fi
6392
6393
6394  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6395$as_echo_n "checking for wchar_t... " >&6; }
6396if test "${gt_cv_c_wchar_t+set}" = set; then :
6397  $as_echo_n "(cached) " >&6
6398else
6399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400/* end confdefs.h.  */
6401#include <stddef.h>
6402       wchar_t foo = (wchar_t)'\0';
6403int
6404main ()
6405{
6406
6407  ;
6408  return 0;
6409}
6410_ACEOF
6411if ac_fn_c_try_compile "$LINENO"; then :
6412  gt_cv_c_wchar_t=yes
6413else
6414  gt_cv_c_wchar_t=no
6415fi
6416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6417fi
6418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6419$as_echo "$gt_cv_c_wchar_t" >&6; }
6420  if test $gt_cv_c_wchar_t = yes; then
6421
6422$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6423
6424  fi
6425
6426
6427  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6428$as_echo_n "checking for wint_t... " >&6; }
6429if test "${gt_cv_c_wint_t+set}" = set; then :
6430  $as_echo_n "(cached) " >&6
6431else
6432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433/* end confdefs.h.  */
6434#include <wchar.h>
6435       wint_t foo = (wchar_t)'\0';
6436int
6437main ()
6438{
6439
6440  ;
6441  return 0;
6442}
6443_ACEOF
6444if ac_fn_c_try_compile "$LINENO"; then :
6445  gt_cv_c_wint_t=yes
6446else
6447  gt_cv_c_wint_t=no
6448fi
6449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6450fi
6451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6452$as_echo "$gt_cv_c_wint_t" >&6; }
6453  if test $gt_cv_c_wint_t = yes; then
6454
6455$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6456
6457  fi
6458
6459
6460  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6461$as_echo_n "checking for inttypes.h... " >&6; }
6462if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
6463  $as_echo_n "(cached) " >&6
6464else
6465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466/* end confdefs.h.  */
6467#include <sys/types.h>
6468#include <inttypes.h>
6469int
6470main ()
6471{
6472uintmax_t i = (uintmax_t) -1;
6473  ;
6474  return 0;
6475}
6476_ACEOF
6477if ac_fn_c_try_compile "$LINENO"; then :
6478  jm_ac_cv_header_inttypes_h=yes
6479else
6480  jm_ac_cv_header_inttypes_h=no
6481fi
6482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483fi
6484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6485$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6486  if test $jm_ac_cv_header_inttypes_h = yes; then
6487
6488cat >>confdefs.h <<_ACEOF
6489#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6490_ACEOF
6491
6492  fi
6493
6494
6495  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6496$as_echo_n "checking for stdint.h... " >&6; }
6497if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
6498  $as_echo_n "(cached) " >&6
6499else
6500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501/* end confdefs.h.  */
6502#include <sys/types.h>
6503#include <stdint.h>
6504int
6505main ()
6506{
6507uintmax_t i = (uintmax_t) -1;
6508  ;
6509  return 0;
6510}
6511_ACEOF
6512if ac_fn_c_try_compile "$LINENO"; then :
6513  jm_ac_cv_header_stdint_h=yes
6514else
6515  jm_ac_cv_header_stdint_h=no
6516fi
6517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6518fi
6519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6520$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6521  if test $jm_ac_cv_header_stdint_h = yes; then
6522
6523cat >>confdefs.h <<_ACEOF
6524#define HAVE_STDINT_H_WITH_UINTMAX 1
6525_ACEOF
6526
6527  fi
6528
6529
6530
6531
6532  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6533$as_echo_n "checking for intmax_t... " >&6; }
6534if test "${gt_cv_c_intmax_t+set}" = set; then :
6535  $as_echo_n "(cached) " >&6
6536else
6537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538/* end confdefs.h.  */
6539
6540#include <stddef.h>
6541#include <stdlib.h>
6542#if HAVE_STDINT_H_WITH_UINTMAX
6543#include <stdint.h>
6544#endif
6545#if HAVE_INTTYPES_H_WITH_UINTMAX
6546#include <inttypes.h>
6547#endif
6548
6549int
6550main ()
6551{
6552intmax_t x = -1;
6553  ;
6554  return 0;
6555}
6556_ACEOF
6557if ac_fn_c_try_compile "$LINENO"; then :
6558  gt_cv_c_intmax_t=yes
6559else
6560  gt_cv_c_intmax_t=no
6561fi
6562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563fi
6564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6565$as_echo "$gt_cv_c_intmax_t" >&6; }
6566  if test $gt_cv_c_intmax_t = yes; then
6567
6568$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6569
6570  fi
6571
6572
6573
6574  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6575$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6576if test "${gt_cv_func_printf_posix+set}" = set; then :
6577  $as_echo_n "(cached) " >&6
6578else
6579
6580      if test "$cross_compiling" = yes; then :
6581
6582        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583/* end confdefs.h.  */
6584
6585#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6586  notposix
6587#endif
6588
6589_ACEOF
6590if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6591  $EGREP "notposix" >/dev/null 2>&1; then :
6592  gt_cv_func_printf_posix="guessing no"
6593else
6594  gt_cv_func_printf_posix="guessing yes"
6595fi
6596rm -f conftest*
6597
6598
6599else
6600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6601/* end confdefs.h.  */
6602
6603#include <stdio.h>
6604#include <string.h>
6605/* The string "%2$d %1$d", with dollar characters protected from the shell's
6606   dollar expansion (possibly an autoconf bug).  */
6607static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6608static char buf[100];
6609int main ()
6610{
6611  sprintf (buf, format, 33, 55);
6612  return (strcmp (buf, "55 33") != 0);
6613}
6614_ACEOF
6615if ac_fn_c_try_run "$LINENO"; then :
6616  gt_cv_func_printf_posix=yes
6617else
6618  gt_cv_func_printf_posix=no
6619fi
6620rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6621  conftest.$ac_objext conftest.beam conftest.$ac_ext
6622fi
6623
6624
6625fi
6626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6627$as_echo "$gt_cv_func_printf_posix" >&6; }
6628  case $gt_cv_func_printf_posix in
6629    *yes)
6630
6631$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6632
6633      ;;
6634  esac
6635
6636# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6637# for constant arguments.  Useless!
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6639$as_echo_n "checking for working alloca.h... " >&6; }
6640if test "${ac_cv_working_alloca_h+set}" = set; then :
6641  $as_echo_n "(cached) " >&6
6642else
6643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6644/* end confdefs.h.  */
6645#include <alloca.h>
6646int
6647main ()
6648{
6649char *p = (char *) alloca (2 * sizeof (int));
6650			  if (p) return 0;
6651  ;
6652  return 0;
6653}
6654_ACEOF
6655if ac_fn_c_try_link "$LINENO"; then :
6656  ac_cv_working_alloca_h=yes
6657else
6658  ac_cv_working_alloca_h=no
6659fi
6660rm -f core conftest.err conftest.$ac_objext \
6661    conftest$ac_exeext conftest.$ac_ext
6662fi
6663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6664$as_echo "$ac_cv_working_alloca_h" >&6; }
6665if test $ac_cv_working_alloca_h = yes; then
6666
6667$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6668
6669fi
6670
6671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6672$as_echo_n "checking for alloca... " >&6; }
6673if test "${ac_cv_func_alloca_works+set}" = set; then :
6674  $as_echo_n "(cached) " >&6
6675else
6676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677/* end confdefs.h.  */
6678#ifdef __GNUC__
6679# define alloca __builtin_alloca
6680#else
6681# ifdef _MSC_VER
6682#  include <malloc.h>
6683#  define alloca _alloca
6684# else
6685#  ifdef HAVE_ALLOCA_H
6686#   include <alloca.h>
6687#  else
6688#   ifdef _AIX
6689 #pragma alloca
6690#   else
6691#    ifndef alloca /* predefined by HP cc +Olibcalls */
6692char *alloca ();
6693#    endif
6694#   endif
6695#  endif
6696# endif
6697#endif
6698
6699int
6700main ()
6701{
6702char *p = (char *) alloca (1);
6703				    if (p) return 0;
6704  ;
6705  return 0;
6706}
6707_ACEOF
6708if ac_fn_c_try_link "$LINENO"; then :
6709  ac_cv_func_alloca_works=yes
6710else
6711  ac_cv_func_alloca_works=no
6712fi
6713rm -f core conftest.err conftest.$ac_objext \
6714    conftest$ac_exeext conftest.$ac_ext
6715fi
6716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6717$as_echo "$ac_cv_func_alloca_works" >&6; }
6718
6719if test $ac_cv_func_alloca_works = yes; then
6720
6721$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6722
6723else
6724  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6725# that cause trouble.  Some versions do not even contain alloca or
6726# contain a buggy version.  If you still want to use their alloca,
6727# use ar to extract alloca.o from them instead of compiling alloca.c.
6728
6729ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6730
6731$as_echo "#define C_ALLOCA 1" >>confdefs.h
6732
6733
6734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6735$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6736if test "${ac_cv_os_cray+set}" = set; then :
6737  $as_echo_n "(cached) " >&6
6738else
6739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740/* end confdefs.h.  */
6741#if defined CRAY && ! defined CRAY2
6742webecray
6743#else
6744wenotbecray
6745#endif
6746
6747_ACEOF
6748if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6749  $EGREP "webecray" >/dev/null 2>&1; then :
6750  ac_cv_os_cray=yes
6751else
6752  ac_cv_os_cray=no
6753fi
6754rm -f conftest*
6755
6756fi
6757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6758$as_echo "$ac_cv_os_cray" >&6; }
6759if test $ac_cv_os_cray = yes; then
6760  for ac_func in _getb67 GETB67 getb67; do
6761    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6762ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6763eval as_val=\$$as_ac_var
6764   if test "x$as_val" = x""yes; then :
6765
6766cat >>confdefs.h <<_ACEOF
6767#define CRAY_STACKSEG_END $ac_func
6768_ACEOF
6769
6770    break
6771fi
6772
6773  done
6774fi
6775
6776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6777$as_echo_n "checking stack direction for C alloca... " >&6; }
6778if test "${ac_cv_c_stack_direction+set}" = set; then :
6779  $as_echo_n "(cached) " >&6
6780else
6781  if test "$cross_compiling" = yes; then :
6782  ac_cv_c_stack_direction=0
6783else
6784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785/* end confdefs.h.  */
6786$ac_includes_default
6787int
6788find_stack_direction ()
6789{
6790  static char *addr = 0;
6791  auto char dummy;
6792  if (addr == 0)
6793    {
6794      addr = &dummy;
6795      return find_stack_direction ();
6796    }
6797  else
6798    return (&dummy > addr) ? 1 : -1;
6799}
6800
6801int
6802main ()
6803{
6804  return find_stack_direction () < 0;
6805}
6806_ACEOF
6807if ac_fn_c_try_run "$LINENO"; then :
6808  ac_cv_c_stack_direction=1
6809else
6810  ac_cv_c_stack_direction=-1
6811fi
6812rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6813  conftest.$ac_objext conftest.beam conftest.$ac_ext
6814fi
6815
6816fi
6817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6818$as_echo "$ac_cv_c_stack_direction" >&6; }
6819cat >>confdefs.h <<_ACEOF
6820#define STACK_DIRECTION $ac_cv_c_stack_direction
6821_ACEOF
6822
6823
6824fi
6825
6826
6827
6828
6829  for ac_header in $ac_header_list
6830do :
6831  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6832ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6833"
6834eval as_val=\$$as_ac_Header
6835   if test "x$as_val" = x""yes; then :
6836  cat >>confdefs.h <<_ACEOF
6837#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6838_ACEOF
6839
6840fi
6841
6842done
6843
6844
6845
6846
6847
6848
6849
6850
6851for ac_func in getpagesize
6852do :
6853  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6854if test "x$ac_cv_func_getpagesize" = x""yes; then :
6855  cat >>confdefs.h <<_ACEOF
6856#define HAVE_GETPAGESIZE 1
6857_ACEOF
6858
6859fi
6860done
6861
6862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6863$as_echo_n "checking for working mmap... " >&6; }
6864if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6865  $as_echo_n "(cached) " >&6
6866else
6867  if test "$cross_compiling" = yes; then :
6868  ac_cv_func_mmap_fixed_mapped=no
6869else
6870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871/* end confdefs.h.  */
6872$ac_includes_default
6873/* malloc might have been renamed as rpl_malloc. */
6874#undef malloc
6875
6876/* Thanks to Mike Haertel and Jim Avera for this test.
6877   Here is a matrix of mmap possibilities:
6878	mmap private not fixed
6879	mmap private fixed at somewhere currently unmapped
6880	mmap private fixed at somewhere already mapped
6881	mmap shared not fixed
6882	mmap shared fixed at somewhere currently unmapped
6883	mmap shared fixed at somewhere already mapped
6884   For private mappings, we should verify that changes cannot be read()
6885   back from the file, nor mmap's back from the file at a different
6886   address.  (There have been systems where private was not correctly
6887   implemented like the infamous i386 svr4.0, and systems where the
6888   VM page cache was not coherent with the file system buffer cache
6889   like early versions of FreeBSD and possibly contemporary NetBSD.)
6890   For shared mappings, we should conversely verify that changes get
6891   propagated back to all the places they're supposed to be.
6892
6893   Grep wants private fixed already mapped.
6894   The main things grep needs to know about mmap are:
6895   * does it exist and is it safe to write into the mmap'd area
6896   * how to use it (BSD variants)  */
6897
6898#include <fcntl.h>
6899#include <sys/mman.h>
6900
6901#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6902char *malloc ();
6903#endif
6904
6905/* This mess was copied from the GNU getpagesize.h.  */
6906#ifndef HAVE_GETPAGESIZE
6907# ifdef _SC_PAGESIZE
6908#  define getpagesize() sysconf(_SC_PAGESIZE)
6909# else /* no _SC_PAGESIZE */
6910#  ifdef HAVE_SYS_PARAM_H
6911#   include <sys/param.h>
6912#   ifdef EXEC_PAGESIZE
6913#    define getpagesize() EXEC_PAGESIZE
6914#   else /* no EXEC_PAGESIZE */
6915#    ifdef NBPG
6916#     define getpagesize() NBPG * CLSIZE
6917#     ifndef CLSIZE
6918#      define CLSIZE 1
6919#     endif /* no CLSIZE */
6920#    else /* no NBPG */
6921#     ifdef NBPC
6922#      define getpagesize() NBPC
6923#     else /* no NBPC */
6924#      ifdef PAGESIZE
6925#       define getpagesize() PAGESIZE
6926#      endif /* PAGESIZE */
6927#     endif /* no NBPC */
6928#    endif /* no NBPG */
6929#   endif /* no EXEC_PAGESIZE */
6930#  else /* no HAVE_SYS_PARAM_H */
6931#   define getpagesize() 8192	/* punt totally */
6932#  endif /* no HAVE_SYS_PARAM_H */
6933# endif /* no _SC_PAGESIZE */
6934
6935#endif /* no HAVE_GETPAGESIZE */
6936
6937int
6938main ()
6939{
6940  char *data, *data2, *data3;
6941  const char *cdata2;
6942  int i, pagesize;
6943  int fd, fd2;
6944
6945  pagesize = getpagesize ();
6946
6947  /* First, make a file with some known garbage in it. */
6948  data = (char *) malloc (pagesize);
6949  if (!data)
6950    return 1;
6951  for (i = 0; i < pagesize; ++i)
6952    *(data + i) = rand ();
6953  umask (0);
6954  fd = creat ("conftest.mmap", 0600);
6955  if (fd < 0)
6956    return 2;
6957  if (write (fd, data, pagesize) != pagesize)
6958    return 3;
6959  close (fd);
6960
6961  /* Next, check that the tail of a page is zero-filled.  File must have
6962     non-zero length, otherwise we risk SIGBUS for entire page.  */
6963  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6964  if (fd2 < 0)
6965    return 4;
6966  cdata2 = "";
6967  if (write (fd2, cdata2, 1) != 1)
6968    return 5;
6969  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6970  if (data2 == MAP_FAILED)
6971    return 6;
6972  for (i = 0; i < pagesize; ++i)
6973    if (*(data2 + i))
6974      return 7;
6975  close (fd2);
6976  if (munmap (data2, pagesize))
6977    return 8;
6978
6979  /* Next, try to mmap the file at a fixed address which already has
6980     something else allocated at it.  If we can, also make sure that
6981     we see the same garbage.  */
6982  fd = open ("conftest.mmap", O_RDWR);
6983  if (fd < 0)
6984    return 9;
6985  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6986		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
6987    return 10;
6988  for (i = 0; i < pagesize; ++i)
6989    if (*(data + i) != *(data2 + i))
6990      return 11;
6991
6992  /* Finally, make sure that changes to the mapped area do not
6993     percolate back to the file as seen by read().  (This is a bug on
6994     some variants of i386 svr4.0.)  */
6995  for (i = 0; i < pagesize; ++i)
6996    *(data2 + i) = *(data2 + i) + 1;
6997  data3 = (char *) malloc (pagesize);
6998  if (!data3)
6999    return 12;
7000  if (read (fd, data3, pagesize) != pagesize)
7001    return 13;
7002  for (i = 0; i < pagesize; ++i)
7003    if (*(data + i) != *(data3 + i))
7004      return 14;
7005  close (fd);
7006  return 0;
7007}
7008_ACEOF
7009if ac_fn_c_try_run "$LINENO"; then :
7010  ac_cv_func_mmap_fixed_mapped=yes
7011else
7012  ac_cv_func_mmap_fixed_mapped=no
7013fi
7014rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7015  conftest.$ac_objext conftest.beam conftest.$ac_ext
7016fi
7017
7018fi
7019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7020$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7021if test $ac_cv_func_mmap_fixed_mapped = yes; then
7022
7023$as_echo "#define HAVE_MMAP 1" >>confdefs.h
7024
7025fi
7026rm -f conftest.mmap conftest.txt
7027
7028
7029    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7030$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7031if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7032  $as_echo_n "(cached) " >&6
7033else
7034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035/* end confdefs.h.  */
7036
7037#include <features.h>
7038#ifdef __GNU_LIBRARY__
7039 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7040  Lucky GNU user
7041 #endif
7042#endif
7043
7044_ACEOF
7045if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7046  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7047  ac_cv_gnu_library_2_1=yes
7048else
7049  ac_cv_gnu_library_2_1=no
7050fi
7051rm -f conftest*
7052
7053
7054
7055fi
7056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7057$as_echo "$ac_cv_gnu_library_2_1" >&6; }
7058
7059    GLIBC21="$ac_cv_gnu_library_2_1"
7060
7061
7062
7063
7064  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7065$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7066if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
7067  $as_echo_n "(cached) " >&6
7068else
7069
7070      if test "$cross_compiling" = yes; then :
7071
7072          # Guess based on the CPU.
7073          case "$host_cpu" in
7074            alpha* | i3456786 | m68k | s390*)
7075              gt_cv_int_divbyzero_sigfpe="guessing yes";;
7076            *)
7077              gt_cv_int_divbyzero_sigfpe="guessing no";;
7078          esac
7079
7080else
7081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7082/* end confdefs.h.  */
7083
7084#include <stdlib.h>
7085#include <signal.h>
7086
7087static void
7088#ifdef __cplusplus
7089sigfpe_handler (int sig)
7090#else
7091sigfpe_handler (sig) int sig;
7092#endif
7093{
7094  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7095  exit (sig != SIGFPE);
7096}
7097
7098int x = 1;
7099int y = 0;
7100int z;
7101int nan;
7102
7103int main ()
7104{
7105  signal (SIGFPE, sigfpe_handler);
7106/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7107#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7108  signal (SIGTRAP, sigfpe_handler);
7109#endif
7110/* Linux/SPARC yields signal SIGILL.  */
7111#if defined (__sparc__) && defined (__linux__)
7112  signal (SIGILL, sigfpe_handler);
7113#endif
7114
7115  z = x / y;
7116  nan = y / y;
7117  exit (1);
7118}
7119
7120_ACEOF
7121if ac_fn_c_try_run "$LINENO"; then :
7122  gt_cv_int_divbyzero_sigfpe=yes
7123else
7124  gt_cv_int_divbyzero_sigfpe=no
7125fi
7126rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7127  conftest.$ac_objext conftest.beam conftest.$ac_ext
7128fi
7129
7130
7131fi
7132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7133$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7134  case "$gt_cv_int_divbyzero_sigfpe" in
7135    *yes) value=1;;
7136    *) value=0;;
7137  esac
7138
7139cat >>confdefs.h <<_ACEOF
7140#define INTDIV0_RAISES_SIGFPE $value
7141_ACEOF
7142
7143
7144
7145  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7146$as_echo_n "checking for unsigned long long... " >&6; }
7147if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
7148  $as_echo_n "(cached) " >&6
7149else
7150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151/* end confdefs.h.  */
7152unsigned long long ull = 1ULL; int i = 63;
7153int
7154main ()
7155{
7156unsigned long long ullmax = (unsigned long long) -1;
7157     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7158  ;
7159  return 0;
7160}
7161_ACEOF
7162if ac_fn_c_try_link "$LINENO"; then :
7163  ac_cv_type_unsigned_long_long=yes
7164else
7165  ac_cv_type_unsigned_long_long=no
7166fi
7167rm -f core conftest.err conftest.$ac_objext \
7168    conftest$ac_exeext conftest.$ac_ext
7169fi
7170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7171$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7172  if test $ac_cv_type_unsigned_long_long = yes; then
7173
7174$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7175
7176  fi
7177
7178
7179
7180
7181  if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7182
7183    test $ac_cv_type_unsigned_long_long = yes \
7184      && ac_type='unsigned long long' \
7185      || ac_type='unsigned long'
7186
7187cat >>confdefs.h <<_ACEOF
7188#define uintmax_t $ac_type
7189_ACEOF
7190
7191  else
7192
7193$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7194
7195  fi
7196
7197
7198  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7199$as_echo_n "checking for inttypes.h... " >&6; }
7200if test "${gt_cv_header_inttypes_h+set}" = set; then :
7201  $as_echo_n "(cached) " >&6
7202else
7203
7204    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205/* end confdefs.h.  */
7206#include <sys/types.h>
7207#include <inttypes.h>
7208int
7209main ()
7210{
7211
7212  ;
7213  return 0;
7214}
7215_ACEOF
7216if ac_fn_c_try_compile "$LINENO"; then :
7217  gt_cv_header_inttypes_h=yes
7218else
7219  gt_cv_header_inttypes_h=no
7220fi
7221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7222
7223fi
7224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7225$as_echo "$gt_cv_header_inttypes_h" >&6; }
7226  if test $gt_cv_header_inttypes_h = yes; then
7227
7228cat >>confdefs.h <<_ACEOF
7229#define HAVE_INTTYPES_H 1
7230_ACEOF
7231
7232  fi
7233
7234
7235
7236  if test $gt_cv_header_inttypes_h = yes; then
7237    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7238$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7239if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7240  $as_echo_n "(cached) " >&6
7241else
7242
7243        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244/* end confdefs.h.  */
7245#include <inttypes.h>
7246#ifdef PRId32
7247char *p = PRId32;
7248#endif
7249
7250int
7251main ()
7252{
7253
7254  ;
7255  return 0;
7256}
7257_ACEOF
7258if ac_fn_c_try_compile "$LINENO"; then :
7259  gt_cv_inttypes_pri_broken=no
7260else
7261  gt_cv_inttypes_pri_broken=yes
7262fi
7263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7264
7265fi
7266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7267$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7268  fi
7269  if test "$gt_cv_inttypes_pri_broken" = yes; then
7270
7271cat >>confdefs.h <<_ACEOF
7272#define PRI_MACROS_BROKEN 1
7273_ACEOF
7274
7275  fi
7276
7277
7278  for ac_header in stdint.h
7279do :
7280  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7281if test "x$ac_cv_header_stdint_h" = x""yes; then :
7282  cat >>confdefs.h <<_ACEOF
7283#define HAVE_STDINT_H 1
7284_ACEOF
7285
7286fi
7287
7288done
7289
7290    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7291$as_echo_n "checking for SIZE_MAX... " >&6; }
7292  result=
7293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7294/* end confdefs.h.  */
7295
7296#include <limits.h>
7297#if HAVE_STDINT_H
7298#include <stdint.h>
7299#endif
7300#ifdef SIZE_MAX
7301Found it
7302#endif
7303
7304_ACEOF
7305if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7306  $EGREP "Found it" >/dev/null 2>&1; then :
7307  result=yes
7308fi
7309rm -f conftest*
7310
7311  if test -z "$result"; then
7312                    if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
7313
7314else
7315  result=?
7316fi
7317
7318
7319    if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
7320
7321else
7322  result=?
7323fi
7324
7325
7326    if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
7327
7328else
7329  result=?
7330fi
7331
7332
7333    if test "$fits_in_uint" = 1; then
7334                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7335/* end confdefs.h.  */
7336#include <stddef.h>
7337        extern size_t foo;
7338        extern unsigned long foo;
7339
7340int
7341main ()
7342{
7343
7344  ;
7345  return 0;
7346}
7347_ACEOF
7348if ac_fn_c_try_compile "$LINENO"; then :
7349  fits_in_uint=0
7350fi
7351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7352    fi
7353    if test -z "$result"; then
7354      if test "$fits_in_uint" = 1; then
7355        result="$res_hi$res_lo"U
7356      else
7357        result="$res_hi$res_lo"UL
7358      fi
7359    else
7360            result='~(size_t)0'
7361    fi
7362  fi
7363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7364$as_echo "$result" >&6; }
7365  if test "$result" != yes; then
7366
7367cat >>confdefs.h <<_ACEOF
7368#define SIZE_MAX $result
7369_ACEOF
7370
7371  fi
7372
7373
7374
7375  for ac_header in stdint.h
7376do :
7377  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7378if test "x$ac_cv_header_stdint_h" = x""yes; then :
7379  cat >>confdefs.h <<_ACEOF
7380#define HAVE_STDINT_H 1
7381_ACEOF
7382
7383fi
7384
7385done
7386
7387
7388
7389      if test "X$prefix" = "XNONE"; then
7390    acl_final_prefix="$ac_default_prefix"
7391  else
7392    acl_final_prefix="$prefix"
7393  fi
7394  if test "X$exec_prefix" = "XNONE"; then
7395    acl_final_exec_prefix='${prefix}'
7396  else
7397    acl_final_exec_prefix="$exec_prefix"
7398  fi
7399  acl_save_prefix="$prefix"
7400  prefix="$acl_final_prefix"
7401  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7402  prefix="$acl_save_prefix"
7403
7404
7405# Check whether --with-gnu-ld was given.
7406if test "${with_gnu_ld+set}" = set; then :
7407  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7408else
7409  with_gnu_ld=no
7410fi
7411
7412# Prepare PATH_SEPARATOR.
7413# The user is always right.
7414if test "${PATH_SEPARATOR+set}" != set; then
7415  echo "#! /bin/sh" >conf$$.sh
7416  echo  "exit 0"   >>conf$$.sh
7417  chmod +x conf$$.sh
7418  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7419    PATH_SEPARATOR=';'
7420  else
7421    PATH_SEPARATOR=:
7422  fi
7423  rm -f conf$$.sh
7424fi
7425ac_prog=ld
7426if test "$GCC" = yes; then
7427  # Check if gcc -print-prog-name=ld gives a path.
7428  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7429$as_echo_n "checking for ld used by GCC... " >&6; }
7430  case $host in
7431  *-*-mingw*)
7432    # gcc leaves a trailing carriage return which upsets mingw
7433    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7434  *)
7435    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7436  esac
7437  case $ac_prog in
7438    # Accept absolute paths.
7439    [\\/]* | [A-Za-z]:[\\/]*)
7440      re_direlt='/[^/][^/]*/\.\./'
7441      # Canonicalize the path of ld
7442      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7443      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7444	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7445      done
7446      test -z "$LD" && LD="$ac_prog"
7447      ;;
7448  "")
7449    # If it fails, then pretend we aren't using GCC.
7450    ac_prog=ld
7451    ;;
7452  *)
7453    # If it is relative, then search for the first ld in PATH.
7454    with_gnu_ld=unknown
7455    ;;
7456  esac
7457elif test "$with_gnu_ld" = yes; then
7458  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7459$as_echo_n "checking for GNU ld... " >&6; }
7460else
7461  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7462$as_echo_n "checking for non-GNU ld... " >&6; }
7463fi
7464if test "${acl_cv_path_LD+set}" = set; then :
7465  $as_echo_n "(cached) " >&6
7466else
7467  if test -z "$LD"; then
7468  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7469  for ac_dir in $PATH; do
7470    test -z "$ac_dir" && ac_dir=.
7471    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7472      acl_cv_path_LD="$ac_dir/$ac_prog"
7473      # Check to see if the program is GNU ld.  I'd rather use --version,
7474      # but apparently some GNU ld's only accept -v.
7475      # Break only if it was the GNU/non-GNU ld that we prefer.
7476      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7477      *GNU* | *'with BFD'*)
7478	test "$with_gnu_ld" != no && break ;;
7479      *)
7480	test "$with_gnu_ld" != yes && break ;;
7481      esac
7482    fi
7483  done
7484  IFS="$ac_save_ifs"
7485else
7486  acl_cv_path_LD="$LD" # Let the user override the test with a path.
7487fi
7488fi
7489
7490LD="$acl_cv_path_LD"
7491if test -n "$LD"; then
7492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7493$as_echo "$LD" >&6; }
7494else
7495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496$as_echo "no" >&6; }
7497fi
7498test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7500$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7501if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7502  $as_echo_n "(cached) " >&6
7503else
7504  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7505case `$LD -v 2>&1 </dev/null` in
7506*GNU* | *'with BFD'*)
7507  acl_cv_prog_gnu_ld=yes ;;
7508*)
7509  acl_cv_prog_gnu_ld=no ;;
7510esac
7511fi
7512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7513$as_echo "$acl_cv_prog_gnu_ld" >&6; }
7514with_gnu_ld=$acl_cv_prog_gnu_ld
7515
7516
7517
7518                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7519$as_echo_n "checking for shared library run path origin... " >&6; }
7520if test "${acl_cv_rpath+set}" = set; then :
7521  $as_echo_n "(cached) " >&6
7522else
7523
7524    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7525    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7526    . ./conftest.sh
7527    rm -f ./conftest.sh
7528    acl_cv_rpath=done
7529
7530fi
7531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7532$as_echo "$acl_cv_rpath" >&6; }
7533  wl="$acl_cv_wl"
7534  libext="$acl_cv_libext"
7535  shlibext="$acl_cv_shlibext"
7536  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7537  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7538  hardcode_direct="$acl_cv_hardcode_direct"
7539  hardcode_minus_L="$acl_cv_hardcode_minus_L"
7540    # Check whether --enable-rpath was given.
7541if test "${enable_rpath+set}" = set; then :
7542  enableval=$enable_rpath; :
7543else
7544  enable_rpath=yes
7545fi
7546
7547
7548
7549
7550
7551
7552
7553
7554    use_additional=yes
7555
7556  acl_save_prefix="$prefix"
7557  prefix="$acl_final_prefix"
7558  acl_save_exec_prefix="$exec_prefix"
7559  exec_prefix="$acl_final_exec_prefix"
7560
7561    eval additional_includedir=\"$includedir\"
7562    eval additional_libdir=\"$libdir\"
7563
7564  exec_prefix="$acl_save_exec_prefix"
7565  prefix="$acl_save_prefix"
7566
7567
7568# Check whether --with-libiconv-prefix was given.
7569if test "${with_libiconv_prefix+set}" = set; then :
7570  withval=$with_libiconv_prefix;
7571    if test "X$withval" = "Xno"; then
7572      use_additional=no
7573    else
7574      if test "X$withval" = "X"; then
7575
7576  acl_save_prefix="$prefix"
7577  prefix="$acl_final_prefix"
7578  acl_save_exec_prefix="$exec_prefix"
7579  exec_prefix="$acl_final_exec_prefix"
7580
7581          eval additional_includedir=\"$includedir\"
7582          eval additional_libdir=\"$libdir\"
7583
7584  exec_prefix="$acl_save_exec_prefix"
7585  prefix="$acl_save_prefix"
7586
7587      else
7588        additional_includedir="$withval/include"
7589        additional_libdir="$withval/lib"
7590      fi
7591    fi
7592
7593fi
7594
7595      LIBICONV=
7596  LTLIBICONV=
7597  INCICONV=
7598  rpathdirs=
7599  ltrpathdirs=
7600  names_already_handled=
7601  names_next_round='iconv '
7602  while test -n "$names_next_round"; do
7603    names_this_round="$names_next_round"
7604    names_next_round=
7605    for name in $names_this_round; do
7606      already_handled=
7607      for n in $names_already_handled; do
7608        if test "$n" = "$name"; then
7609          already_handled=yes
7610          break
7611        fi
7612      done
7613      if test -z "$already_handled"; then
7614        names_already_handled="$names_already_handled $name"
7615                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7616        eval value=\"\$HAVE_LIB$uppername\"
7617        if test -n "$value"; then
7618          if test "$value" = yes; then
7619            eval value=\"\$LIB$uppername\"
7620            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7621            eval value=\"\$LTLIB$uppername\"
7622            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7623          else
7624                                    :
7625          fi
7626        else
7627                              found_dir=
7628          found_la=
7629          found_so=
7630          found_a=
7631          if test $use_additional = yes; then
7632            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7633              found_dir="$additional_libdir"
7634              found_so="$additional_libdir/lib$name.$shlibext"
7635              if test -f "$additional_libdir/lib$name.la"; then
7636                found_la="$additional_libdir/lib$name.la"
7637              fi
7638            else
7639              if test -f "$additional_libdir/lib$name.$libext"; then
7640                found_dir="$additional_libdir"
7641                found_a="$additional_libdir/lib$name.$libext"
7642                if test -f "$additional_libdir/lib$name.la"; then
7643                  found_la="$additional_libdir/lib$name.la"
7644                fi
7645              fi
7646            fi
7647          fi
7648          if test "X$found_dir" = "X"; then
7649            for x in $LDFLAGS $LTLIBICONV; do
7650
7651  acl_save_prefix="$prefix"
7652  prefix="$acl_final_prefix"
7653  acl_save_exec_prefix="$exec_prefix"
7654  exec_prefix="$acl_final_exec_prefix"
7655  eval x=\"$x\"
7656  exec_prefix="$acl_save_exec_prefix"
7657  prefix="$acl_save_prefix"
7658
7659              case "$x" in
7660                -L*)
7661                  dir=`echo "X$x" | sed -e 's/^X-L//'`
7662                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7663                    found_dir="$dir"
7664                    found_so="$dir/lib$name.$shlibext"
7665                    if test -f "$dir/lib$name.la"; then
7666                      found_la="$dir/lib$name.la"
7667                    fi
7668                  else
7669                    if test -f "$dir/lib$name.$libext"; then
7670                      found_dir="$dir"
7671                      found_a="$dir/lib$name.$libext"
7672                      if test -f "$dir/lib$name.la"; then
7673                        found_la="$dir/lib$name.la"
7674                      fi
7675                    fi
7676                  fi
7677                  ;;
7678              esac
7679              if test "X$found_dir" != "X"; then
7680                break
7681              fi
7682            done
7683          fi
7684          if test "X$found_dir" != "X"; then
7685                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7686            if test "X$found_so" != "X"; then
7687                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7688                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7689              else
7690                                                                                haveit=
7691                for x in $ltrpathdirs; do
7692                  if test "X$x" = "X$found_dir"; then
7693                    haveit=yes
7694                    break
7695                  fi
7696                done
7697                if test -z "$haveit"; then
7698                  ltrpathdirs="$ltrpathdirs $found_dir"
7699                fi
7700                                if test "$hardcode_direct" = yes; then
7701                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7702                else
7703                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7704                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7705                                                            haveit=
7706                    for x in $rpathdirs; do
7707                      if test "X$x" = "X$found_dir"; then
7708                        haveit=yes
7709                        break
7710                      fi
7711                    done
7712                    if test -z "$haveit"; then
7713                      rpathdirs="$rpathdirs $found_dir"
7714                    fi
7715                  else
7716                                                                                haveit=
7717                    for x in $LDFLAGS $LIBICONV; do
7718
7719  acl_save_prefix="$prefix"
7720  prefix="$acl_final_prefix"
7721  acl_save_exec_prefix="$exec_prefix"
7722  exec_prefix="$acl_final_exec_prefix"
7723  eval x=\"$x\"
7724  exec_prefix="$acl_save_exec_prefix"
7725  prefix="$acl_save_prefix"
7726
7727                      if test "X$x" = "X-L$found_dir"; then
7728                        haveit=yes
7729                        break
7730                      fi
7731                    done
7732                    if test -z "$haveit"; then
7733                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7734                    fi
7735                    if test "$hardcode_minus_L" != no; then
7736                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7737                    else
7738                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7739                    fi
7740                  fi
7741                fi
7742              fi
7743            else
7744              if test "X$found_a" != "X"; then
7745                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7746              else
7747                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7748              fi
7749            fi
7750                        additional_includedir=
7751            case "$found_dir" in
7752              */lib | */lib/)
7753                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7754                additional_includedir="$basedir/include"
7755                ;;
7756            esac
7757            if test "X$additional_includedir" != "X"; then
7758                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
7759                haveit=
7760                if test "X$additional_includedir" = "X/usr/local/include"; then
7761                  if test -n "$GCC"; then
7762                    case $host_os in
7763                      linux*) haveit=yes;;
7764                    esac
7765                  fi
7766                fi
7767                if test -z "$haveit"; then
7768                  for x in $CPPFLAGS $INCICONV; do
7769
7770  acl_save_prefix="$prefix"
7771  prefix="$acl_final_prefix"
7772  acl_save_exec_prefix="$exec_prefix"
7773  exec_prefix="$acl_final_exec_prefix"
7774  eval x=\"$x\"
7775  exec_prefix="$acl_save_exec_prefix"
7776  prefix="$acl_save_prefix"
7777
7778                    if test "X$x" = "X-I$additional_includedir"; then
7779                      haveit=yes
7780                      break
7781                    fi
7782                  done
7783                  if test -z "$haveit"; then
7784                    if test -d "$additional_includedir"; then
7785                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7786                    fi
7787                  fi
7788                fi
7789              fi
7790            fi
7791                        if test -n "$found_la"; then
7792                                                        save_libdir="$libdir"
7793              case "$found_la" in
7794                */* | *\\*) . "$found_la" ;;
7795                *) . "./$found_la" ;;
7796              esac
7797              libdir="$save_libdir"
7798                            for dep in $dependency_libs; do
7799                case "$dep" in
7800                  -L*)
7801                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7802                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
7803                      haveit=
7804                      if test "X$additional_libdir" = "X/usr/local/lib"; then
7805                        if test -n "$GCC"; then
7806                          case $host_os in
7807                            linux*) haveit=yes;;
7808                          esac
7809                        fi
7810                      fi
7811                      if test -z "$haveit"; then
7812                        haveit=
7813                        for x in $LDFLAGS $LIBICONV; do
7814
7815  acl_save_prefix="$prefix"
7816  prefix="$acl_final_prefix"
7817  acl_save_exec_prefix="$exec_prefix"
7818  exec_prefix="$acl_final_exec_prefix"
7819  eval x=\"$x\"
7820  exec_prefix="$acl_save_exec_prefix"
7821  prefix="$acl_save_prefix"
7822
7823                          if test "X$x" = "X-L$additional_libdir"; then
7824                            haveit=yes
7825                            break
7826                          fi
7827                        done
7828                        if test -z "$haveit"; then
7829                          if test -d "$additional_libdir"; then
7830                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7831                          fi
7832                        fi
7833                        haveit=
7834                        for x in $LDFLAGS $LTLIBICONV; do
7835
7836  acl_save_prefix="$prefix"
7837  prefix="$acl_final_prefix"
7838  acl_save_exec_prefix="$exec_prefix"
7839  exec_prefix="$acl_final_exec_prefix"
7840  eval x=\"$x\"
7841  exec_prefix="$acl_save_exec_prefix"
7842  prefix="$acl_save_prefix"
7843
7844                          if test "X$x" = "X-L$additional_libdir"; then
7845                            haveit=yes
7846                            break
7847                          fi
7848                        done
7849                        if test -z "$haveit"; then
7850                          if test -d "$additional_libdir"; then
7851                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7852                          fi
7853                        fi
7854                      fi
7855                    fi
7856                    ;;
7857                  -R*)
7858                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
7859                    if test "$enable_rpath" != no; then
7860                                                                  haveit=
7861                      for x in $rpathdirs; do
7862                        if test "X$x" = "X$dir"; then
7863                          haveit=yes
7864                          break
7865                        fi
7866                      done
7867                      if test -z "$haveit"; then
7868                        rpathdirs="$rpathdirs $dir"
7869                      fi
7870                                                                  haveit=
7871                      for x in $ltrpathdirs; do
7872                        if test "X$x" = "X$dir"; then
7873                          haveit=yes
7874                          break
7875                        fi
7876                      done
7877                      if test -z "$haveit"; then
7878                        ltrpathdirs="$ltrpathdirs $dir"
7879                      fi
7880                    fi
7881                    ;;
7882                  -l*)
7883                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7884                    ;;
7885                  *.la)
7886                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7887                    ;;
7888                  *)
7889                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7890                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7891                    ;;
7892                esac
7893              done
7894            fi
7895          else
7896                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7897            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7898          fi
7899        fi
7900      fi
7901    done
7902  done
7903  if test "X$rpathdirs" != "X"; then
7904    if test -n "$hardcode_libdir_separator"; then
7905                        alldirs=
7906      for found_dir in $rpathdirs; do
7907        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7908      done
7909            acl_save_libdir="$libdir"
7910      libdir="$alldirs"
7911      eval flag=\"$hardcode_libdir_flag_spec\"
7912      libdir="$acl_save_libdir"
7913      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7914    else
7915            for found_dir in $rpathdirs; do
7916        acl_save_libdir="$libdir"
7917        libdir="$found_dir"
7918        eval flag=\"$hardcode_libdir_flag_spec\"
7919        libdir="$acl_save_libdir"
7920        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7921      done
7922    fi
7923  fi
7924  if test "X$ltrpathdirs" != "X"; then
7925            for found_dir in $ltrpathdirs; do
7926      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7927    done
7928  fi
7929
7930
7931
7932
7933
7934
7935
7936
7937  ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
7938if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
7939
7940else
7941
7942$as_echo "#define ptrdiff_t long" >>confdefs.h
7943
7944
7945fi
7946
7947  for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7948stdlib.h string.h unistd.h sys/param.h
7949do :
7950  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7951ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7952eval as_val=\$$as_ac_Header
7953   if test "x$as_val" = x""yes; then :
7954  cat >>confdefs.h <<_ACEOF
7955#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7956_ACEOF
7957
7958fi
7959
7960done
7961
7962  for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
7963mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
7964strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
7965__fsetlocking
7966do :
7967  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7968ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7969eval as_val=\$$as_ac_var
7970   if test "x$as_val" = x""yes; then :
7971  cat >>confdefs.h <<_ACEOF
7972#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7973_ACEOF
7974
7975fi
7976done
7977
7978
7979
7980  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
7981$as_echo_n "checking whether _snprintf is declared... " >&6; }
7982if test "${ac_cv_have_decl__snprintf+set}" = set; then :
7983  $as_echo_n "(cached) " >&6
7984else
7985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986/* end confdefs.h.  */
7987#include <stdio.h>
7988int
7989main ()
7990{
7991
7992#ifndef _snprintf
7993  char *p = (char *) _snprintf;
7994#endif
7995
7996  ;
7997  return 0;
7998}
7999_ACEOF
8000if ac_fn_c_try_compile "$LINENO"; then :
8001  ac_cv_have_decl__snprintf=yes
8002else
8003  ac_cv_have_decl__snprintf=no
8004fi
8005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8006fi
8007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8008$as_echo "$ac_cv_have_decl__snprintf" >&6; }
8009  if test $ac_cv_have_decl__snprintf = yes; then
8010    gt_value=1
8011  else
8012    gt_value=0
8013  fi
8014
8015cat >>confdefs.h <<_ACEOF
8016#define HAVE_DECL__SNPRINTF $gt_value
8017_ACEOF
8018
8019
8020
8021  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8022$as_echo_n "checking whether _snwprintf is declared... " >&6; }
8023if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
8024  $as_echo_n "(cached) " >&6
8025else
8026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8027/* end confdefs.h.  */
8028#include <stdio.h>
8029int
8030main ()
8031{
8032
8033#ifndef _snwprintf
8034  char *p = (char *) _snwprintf;
8035#endif
8036
8037  ;
8038  return 0;
8039}
8040_ACEOF
8041if ac_fn_c_try_compile "$LINENO"; then :
8042  ac_cv_have_decl__snwprintf=yes
8043else
8044  ac_cv_have_decl__snwprintf=no
8045fi
8046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8047fi
8048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8049$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8050  if test $ac_cv_have_decl__snwprintf = yes; then
8051    gt_value=1
8052  else
8053    gt_value=0
8054  fi
8055
8056cat >>confdefs.h <<_ACEOF
8057#define HAVE_DECL__SNWPRINTF $gt_value
8058_ACEOF
8059
8060
8061
8062
8063  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8064$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8065if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
8066  $as_echo_n "(cached) " >&6
8067else
8068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8069/* end confdefs.h.  */
8070#include <stdio.h>
8071int
8072main ()
8073{
8074
8075#ifndef feof_unlocked
8076  char *p = (char *) feof_unlocked;
8077#endif
8078
8079  ;
8080  return 0;
8081}
8082_ACEOF
8083if ac_fn_c_try_compile "$LINENO"; then :
8084  ac_cv_have_decl_feof_unlocked=yes
8085else
8086  ac_cv_have_decl_feof_unlocked=no
8087fi
8088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8089fi
8090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8091$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8092  if test $ac_cv_have_decl_feof_unlocked = yes; then
8093    gt_value=1
8094  else
8095    gt_value=0
8096  fi
8097
8098cat >>confdefs.h <<_ACEOF
8099#define HAVE_DECL_FEOF_UNLOCKED $gt_value
8100_ACEOF
8101
8102
8103
8104  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8105$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8106if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
8107  $as_echo_n "(cached) " >&6
8108else
8109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110/* end confdefs.h.  */
8111#include <stdio.h>
8112int
8113main ()
8114{
8115
8116#ifndef fgets_unlocked
8117  char *p = (char *) fgets_unlocked;
8118#endif
8119
8120  ;
8121  return 0;
8122}
8123_ACEOF
8124if ac_fn_c_try_compile "$LINENO"; then :
8125  ac_cv_have_decl_fgets_unlocked=yes
8126else
8127  ac_cv_have_decl_fgets_unlocked=no
8128fi
8129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130fi
8131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8132$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8133  if test $ac_cv_have_decl_fgets_unlocked = yes; then
8134    gt_value=1
8135  else
8136    gt_value=0
8137  fi
8138
8139cat >>confdefs.h <<_ACEOF
8140#define HAVE_DECL_FGETS_UNLOCKED $gt_value
8141_ACEOF
8142
8143
8144
8145  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8146$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8147if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
8148  $as_echo_n "(cached) " >&6
8149else
8150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151/* end confdefs.h.  */
8152#include <stdio.h>
8153int
8154main ()
8155{
8156
8157#ifndef getc_unlocked
8158  char *p = (char *) getc_unlocked;
8159#endif
8160
8161  ;
8162  return 0;
8163}
8164_ACEOF
8165if ac_fn_c_try_compile "$LINENO"; then :
8166  ac_cv_have_decl_getc_unlocked=yes
8167else
8168  ac_cv_have_decl_getc_unlocked=no
8169fi
8170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8171fi
8172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8173$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8174  if test $ac_cv_have_decl_getc_unlocked = yes; then
8175    gt_value=1
8176  else
8177    gt_value=0
8178  fi
8179
8180cat >>confdefs.h <<_ACEOF
8181#define HAVE_DECL_GETC_UNLOCKED $gt_value
8182_ACEOF
8183
8184
8185
8186  case $gt_cv_func_printf_posix in
8187    *yes) HAVE_POSIX_PRINTF=1 ;;
8188    *) HAVE_POSIX_PRINTF=0 ;;
8189  esac
8190
8191  if test "$ac_cv_func_asprintf" = yes; then
8192    HAVE_ASPRINTF=1
8193  else
8194    HAVE_ASPRINTF=0
8195  fi
8196
8197  if test "$ac_cv_func_snprintf" = yes; then
8198    HAVE_SNPRINTF=1
8199  else
8200    HAVE_SNPRINTF=0
8201  fi
8202
8203  if test "$ac_cv_func_wprintf" = yes; then
8204    HAVE_WPRINTF=1
8205  else
8206    HAVE_WPRINTF=0
8207  fi
8208
8209
8210
8211
8212
8213
8214
8215          am_save_CPPFLAGS="$CPPFLAGS"
8216
8217  for element in $INCICONV; do
8218    haveit=
8219    for x in $CPPFLAGS; do
8220
8221  acl_save_prefix="$prefix"
8222  prefix="$acl_final_prefix"
8223  acl_save_exec_prefix="$exec_prefix"
8224  exec_prefix="$acl_final_exec_prefix"
8225  eval x=\"$x\"
8226  exec_prefix="$acl_save_exec_prefix"
8227  prefix="$acl_save_prefix"
8228
8229      if test "X$x" = "X$element"; then
8230        haveit=yes
8231        break
8232      fi
8233    done
8234    if test -z "$haveit"; then
8235      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8236    fi
8237  done
8238
8239
8240  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8241$as_echo_n "checking for iconv... " >&6; }
8242if test "${am_cv_func_iconv+set}" = set; then :
8243  $as_echo_n "(cached) " >&6
8244else
8245
8246    am_cv_func_iconv="no, consider installing GNU libiconv"
8247    am_cv_lib_iconv=no
8248    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8249/* end confdefs.h.  */
8250#include <stdlib.h>
8251#include <iconv.h>
8252int
8253main ()
8254{
8255iconv_t cd = iconv_open("","");
8256       iconv(cd,NULL,NULL,NULL,NULL);
8257       iconv_close(cd);
8258  ;
8259  return 0;
8260}
8261_ACEOF
8262if ac_fn_c_try_link "$LINENO"; then :
8263  am_cv_func_iconv=yes
8264fi
8265rm -f core conftest.err conftest.$ac_objext \
8266    conftest$ac_exeext conftest.$ac_ext
8267    if test "$am_cv_func_iconv" != yes; then
8268      am_save_LIBS="$LIBS"
8269      LIBS="$LIBS $LIBICONV"
8270      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271/* end confdefs.h.  */
8272#include <stdlib.h>
8273#include <iconv.h>
8274int
8275main ()
8276{
8277iconv_t cd = iconv_open("","");
8278         iconv(cd,NULL,NULL,NULL,NULL);
8279         iconv_close(cd);
8280  ;
8281  return 0;
8282}
8283_ACEOF
8284if ac_fn_c_try_link "$LINENO"; then :
8285  am_cv_lib_iconv=yes
8286        am_cv_func_iconv=yes
8287fi
8288rm -f core conftest.err conftest.$ac_objext \
8289    conftest$ac_exeext conftest.$ac_ext
8290      LIBS="$am_save_LIBS"
8291    fi
8292
8293fi
8294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8295$as_echo "$am_cv_func_iconv" >&6; }
8296  if test "$am_cv_func_iconv" = yes; then
8297
8298$as_echo "#define HAVE_ICONV 1" >>confdefs.h
8299
8300  fi
8301  if test "$am_cv_lib_iconv" = yes; then
8302    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8303$as_echo_n "checking how to link with libiconv... " >&6; }
8304    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8305$as_echo "$LIBICONV" >&6; }
8306  else
8307            CPPFLAGS="$am_save_CPPFLAGS"
8308    LIBICONV=
8309    LTLIBICONV=
8310  fi
8311
8312
8313
8314  if test "$am_cv_func_iconv" = yes; then
8315    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8316$as_echo_n "checking for iconv declaration... " >&6; }
8317    if test "${am_cv_proto_iconv+set}" = set; then :
8318  $as_echo_n "(cached) " >&6
8319else
8320
8321      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322/* end confdefs.h.  */
8323
8324#include <stdlib.h>
8325#include <iconv.h>
8326extern
8327#ifdef __cplusplus
8328"C"
8329#endif
8330#if defined(__STDC__) || defined(__cplusplus)
8331size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8332#else
8333size_t iconv();
8334#endif
8335
8336int
8337main ()
8338{
8339
8340  ;
8341  return 0;
8342}
8343_ACEOF
8344if ac_fn_c_try_compile "$LINENO"; then :
8345  am_cv_proto_iconv_arg1=""
8346else
8347  am_cv_proto_iconv_arg1="const"
8348fi
8349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8350      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8351fi
8352
8353    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8354    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8355         }$am_cv_proto_iconv" >&5
8356$as_echo "${ac_t:-
8357         }$am_cv_proto_iconv" >&6; }
8358
8359cat >>confdefs.h <<_ACEOF
8360#define ICONV_CONST $am_cv_proto_iconv_arg1
8361_ACEOF
8362
8363  fi
8364
8365
8366  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8367$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8368if test "${am_cv_langinfo_codeset+set}" = set; then :
8369  $as_echo_n "(cached) " >&6
8370else
8371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8372/* end confdefs.h.  */
8373#include <langinfo.h>
8374int
8375main ()
8376{
8377char* cs = nl_langinfo(CODESET);
8378  ;
8379  return 0;
8380}
8381_ACEOF
8382if ac_fn_c_try_link "$LINENO"; then :
8383  am_cv_langinfo_codeset=yes
8384else
8385  am_cv_langinfo_codeset=no
8386fi
8387rm -f core conftest.err conftest.$ac_objext \
8388    conftest$ac_exeext conftest.$ac_ext
8389
8390fi
8391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8392$as_echo "$am_cv_langinfo_codeset" >&6; }
8393  if test $am_cv_langinfo_codeset = yes; then
8394
8395$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8396
8397  fi
8398
8399  if test $ac_cv_header_locale_h = yes; then
8400
8401  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8402$as_echo_n "checking for LC_MESSAGES... " >&6; }
8403if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
8404  $as_echo_n "(cached) " >&6
8405else
8406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8407/* end confdefs.h.  */
8408#include <locale.h>
8409int
8410main ()
8411{
8412return LC_MESSAGES
8413  ;
8414  return 0;
8415}
8416_ACEOF
8417if ac_fn_c_try_link "$LINENO"; then :
8418  am_cv_val_LC_MESSAGES=yes
8419else
8420  am_cv_val_LC_MESSAGES=no
8421fi
8422rm -f core conftest.err conftest.$ac_objext \
8423    conftest$ac_exeext conftest.$ac_ext
8424fi
8425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8426$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8427  if test $am_cv_val_LC_MESSAGES = yes; then
8428
8429$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8430
8431  fi
8432
8433  fi
8434
8435                      for ac_prog in bison
8436do
8437  # Extract the first word of "$ac_prog", so it can be a program name with args.
8438set dummy $ac_prog; ac_word=$2
8439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8440$as_echo_n "checking for $ac_word... " >&6; }
8441if test "${ac_cv_prog_INTLBISON+set}" = set; then :
8442  $as_echo_n "(cached) " >&6
8443else
8444  if test -n "$INTLBISON"; then
8445  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8446else
8447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448for as_dir in $PATH
8449do
8450  IFS=$as_save_IFS
8451  test -z "$as_dir" && as_dir=.
8452    for ac_exec_ext in '' $ac_executable_extensions; do
8453  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8454    ac_cv_prog_INTLBISON="$ac_prog"
8455    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8456    break 2
8457  fi
8458done
8459  done
8460IFS=$as_save_IFS
8461
8462fi
8463fi
8464INTLBISON=$ac_cv_prog_INTLBISON
8465if test -n "$INTLBISON"; then
8466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8467$as_echo "$INTLBISON" >&6; }
8468else
8469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470$as_echo "no" >&6; }
8471fi
8472
8473
8474  test -n "$INTLBISON" && break
8475done
8476
8477  if test -z "$INTLBISON"; then
8478    ac_verc_fail=yes
8479  else
8480        { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8481$as_echo_n "checking version of bison... " >&6; }
8482    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8483    case $ac_prog_version in
8484      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8485      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8486         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8487      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8488    esac
8489    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8490$as_echo "$ac_prog_version" >&6; }
8491  fi
8492  if test $ac_verc_fail = yes; then
8493    INTLBISON=:
8494  fi
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8512$as_echo_n "checking whether NLS is requested... " >&6; }
8513    # Check whether --enable-nls was given.
8514if test "${enable_nls+set}" = set; then :
8515  enableval=$enable_nls; USE_NLS=$enableval
8516else
8517  USE_NLS=yes
8518fi
8519
8520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8521$as_echo "$USE_NLS" >&6; }
8522
8523
8524
8525
8526    BUILD_INCLUDED_LIBINTL=no
8527    USE_INCLUDED_LIBINTL=no
8528
8529  LIBINTL=
8530  LTLIBINTL=
8531  POSUB=
8532
8533    if test "$USE_NLS" = "yes"; then
8534    gt_use_preinstalled_gnugettext=no
8535
8536      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8537$as_echo_n "checking whether included gettext is requested... " >&6; }
8538
8539# Check whether --with-included-gettext was given.
8540if test "${with_included_gettext+set}" = set; then :
8541  withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8542else
8543  nls_cv_force_use_gnu_gettext=no
8544fi
8545
8546      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8547$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8548
8549      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8550      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8551
8552
8553
8554
8555
8556
8557        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8558$as_echo_n "checking for GNU gettext in libc... " >&6; }
8559if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
8560  $as_echo_n "(cached) " >&6
8561else
8562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8563/* end confdefs.h.  */
8564#include <libintl.h>
8565extern int _nl_msg_cat_cntr;
8566extern int *_nl_domain_bindings;
8567int
8568main ()
8569{
8570bindtextdomain ("", "");
8571return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8572  ;
8573  return 0;
8574}
8575_ACEOF
8576if ac_fn_c_try_link "$LINENO"; then :
8577  gt_cv_func_gnugettext1_libc=yes
8578else
8579  gt_cv_func_gnugettext1_libc=no
8580fi
8581rm -f core conftest.err conftest.$ac_objext \
8582    conftest$ac_exeext conftest.$ac_ext
8583fi
8584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8585$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8586
8587        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8588
8589
8590
8591    use_additional=yes
8592
8593  acl_save_prefix="$prefix"
8594  prefix="$acl_final_prefix"
8595  acl_save_exec_prefix="$exec_prefix"
8596  exec_prefix="$acl_final_exec_prefix"
8597
8598    eval additional_includedir=\"$includedir\"
8599    eval additional_libdir=\"$libdir\"
8600
8601  exec_prefix="$acl_save_exec_prefix"
8602  prefix="$acl_save_prefix"
8603
8604
8605# Check whether --with-libintl-prefix was given.
8606if test "${with_libintl_prefix+set}" = set; then :
8607  withval=$with_libintl_prefix;
8608    if test "X$withval" = "Xno"; then
8609      use_additional=no
8610    else
8611      if test "X$withval" = "X"; then
8612
8613  acl_save_prefix="$prefix"
8614  prefix="$acl_final_prefix"
8615  acl_save_exec_prefix="$exec_prefix"
8616  exec_prefix="$acl_final_exec_prefix"
8617
8618          eval additional_includedir=\"$includedir\"
8619          eval additional_libdir=\"$libdir\"
8620
8621  exec_prefix="$acl_save_exec_prefix"
8622  prefix="$acl_save_prefix"
8623
8624      else
8625        additional_includedir="$withval/include"
8626        additional_libdir="$withval/lib"
8627      fi
8628    fi
8629
8630fi
8631
8632      LIBINTL=
8633  LTLIBINTL=
8634  INCINTL=
8635  rpathdirs=
8636  ltrpathdirs=
8637  names_already_handled=
8638  names_next_round='intl '
8639  while test -n "$names_next_round"; do
8640    names_this_round="$names_next_round"
8641    names_next_round=
8642    for name in $names_this_round; do
8643      already_handled=
8644      for n in $names_already_handled; do
8645        if test "$n" = "$name"; then
8646          already_handled=yes
8647          break
8648        fi
8649      done
8650      if test -z "$already_handled"; then
8651        names_already_handled="$names_already_handled $name"
8652                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8653        eval value=\"\$HAVE_LIB$uppername\"
8654        if test -n "$value"; then
8655          if test "$value" = yes; then
8656            eval value=\"\$LIB$uppername\"
8657            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8658            eval value=\"\$LTLIB$uppername\"
8659            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8660          else
8661                                    :
8662          fi
8663        else
8664                              found_dir=
8665          found_la=
8666          found_so=
8667          found_a=
8668          if test $use_additional = yes; then
8669            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8670              found_dir="$additional_libdir"
8671              found_so="$additional_libdir/lib$name.$shlibext"
8672              if test -f "$additional_libdir/lib$name.la"; then
8673                found_la="$additional_libdir/lib$name.la"
8674              fi
8675            else
8676              if test -f "$additional_libdir/lib$name.$libext"; then
8677                found_dir="$additional_libdir"
8678                found_a="$additional_libdir/lib$name.$libext"
8679                if test -f "$additional_libdir/lib$name.la"; then
8680                  found_la="$additional_libdir/lib$name.la"
8681                fi
8682              fi
8683            fi
8684          fi
8685          if test "X$found_dir" = "X"; then
8686            for x in $LDFLAGS $LTLIBINTL; do
8687
8688  acl_save_prefix="$prefix"
8689  prefix="$acl_final_prefix"
8690  acl_save_exec_prefix="$exec_prefix"
8691  exec_prefix="$acl_final_exec_prefix"
8692  eval x=\"$x\"
8693  exec_prefix="$acl_save_exec_prefix"
8694  prefix="$acl_save_prefix"
8695
8696              case "$x" in
8697                -L*)
8698                  dir=`echo "X$x" | sed -e 's/^X-L//'`
8699                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8700                    found_dir="$dir"
8701                    found_so="$dir/lib$name.$shlibext"
8702                    if test -f "$dir/lib$name.la"; then
8703                      found_la="$dir/lib$name.la"
8704                    fi
8705                  else
8706                    if test -f "$dir/lib$name.$libext"; then
8707                      found_dir="$dir"
8708                      found_a="$dir/lib$name.$libext"
8709                      if test -f "$dir/lib$name.la"; then
8710                        found_la="$dir/lib$name.la"
8711                      fi
8712                    fi
8713                  fi
8714                  ;;
8715              esac
8716              if test "X$found_dir" != "X"; then
8717                break
8718              fi
8719            done
8720          fi
8721          if test "X$found_dir" != "X"; then
8722                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8723            if test "X$found_so" != "X"; then
8724                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8725                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8726              else
8727                                                                                haveit=
8728                for x in $ltrpathdirs; do
8729                  if test "X$x" = "X$found_dir"; then
8730                    haveit=yes
8731                    break
8732                  fi
8733                done
8734                if test -z "$haveit"; then
8735                  ltrpathdirs="$ltrpathdirs $found_dir"
8736                fi
8737                                if test "$hardcode_direct" = yes; then
8738                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8739                else
8740                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8741                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8742                                                            haveit=
8743                    for x in $rpathdirs; do
8744                      if test "X$x" = "X$found_dir"; then
8745                        haveit=yes
8746                        break
8747                      fi
8748                    done
8749                    if test -z "$haveit"; then
8750                      rpathdirs="$rpathdirs $found_dir"
8751                    fi
8752                  else
8753                                                                                haveit=
8754                    for x in $LDFLAGS $LIBINTL; do
8755
8756  acl_save_prefix="$prefix"
8757  prefix="$acl_final_prefix"
8758  acl_save_exec_prefix="$exec_prefix"
8759  exec_prefix="$acl_final_exec_prefix"
8760  eval x=\"$x\"
8761  exec_prefix="$acl_save_exec_prefix"
8762  prefix="$acl_save_prefix"
8763
8764                      if test "X$x" = "X-L$found_dir"; then
8765                        haveit=yes
8766                        break
8767                      fi
8768                    done
8769                    if test -z "$haveit"; then
8770                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8771                    fi
8772                    if test "$hardcode_minus_L" != no; then
8773                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8774                    else
8775                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8776                    fi
8777                  fi
8778                fi
8779              fi
8780            else
8781              if test "X$found_a" != "X"; then
8782                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8783              else
8784                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8785              fi
8786            fi
8787                        additional_includedir=
8788            case "$found_dir" in
8789              */lib | */lib/)
8790                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8791                additional_includedir="$basedir/include"
8792                ;;
8793            esac
8794            if test "X$additional_includedir" != "X"; then
8795                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
8796                haveit=
8797                if test "X$additional_includedir" = "X/usr/local/include"; then
8798                  if test -n "$GCC"; then
8799                    case $host_os in
8800                      linux*) haveit=yes;;
8801                    esac
8802                  fi
8803                fi
8804                if test -z "$haveit"; then
8805                  for x in $CPPFLAGS $INCINTL; do
8806
8807  acl_save_prefix="$prefix"
8808  prefix="$acl_final_prefix"
8809  acl_save_exec_prefix="$exec_prefix"
8810  exec_prefix="$acl_final_exec_prefix"
8811  eval x=\"$x\"
8812  exec_prefix="$acl_save_exec_prefix"
8813  prefix="$acl_save_prefix"
8814
8815                    if test "X$x" = "X-I$additional_includedir"; then
8816                      haveit=yes
8817                      break
8818                    fi
8819                  done
8820                  if test -z "$haveit"; then
8821                    if test -d "$additional_includedir"; then
8822                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8823                    fi
8824                  fi
8825                fi
8826              fi
8827            fi
8828                        if test -n "$found_la"; then
8829                                                        save_libdir="$libdir"
8830              case "$found_la" in
8831                */* | *\\*) . "$found_la" ;;
8832                *) . "./$found_la" ;;
8833              esac
8834              libdir="$save_libdir"
8835                            for dep in $dependency_libs; do
8836                case "$dep" in
8837                  -L*)
8838                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8839                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
8840                      haveit=
8841                      if test "X$additional_libdir" = "X/usr/local/lib"; then
8842                        if test -n "$GCC"; then
8843                          case $host_os in
8844                            linux*) haveit=yes;;
8845                          esac
8846                        fi
8847                      fi
8848                      if test -z "$haveit"; then
8849                        haveit=
8850                        for x in $LDFLAGS $LIBINTL; do
8851
8852  acl_save_prefix="$prefix"
8853  prefix="$acl_final_prefix"
8854  acl_save_exec_prefix="$exec_prefix"
8855  exec_prefix="$acl_final_exec_prefix"
8856  eval x=\"$x\"
8857  exec_prefix="$acl_save_exec_prefix"
8858  prefix="$acl_save_prefix"
8859
8860                          if test "X$x" = "X-L$additional_libdir"; then
8861                            haveit=yes
8862                            break
8863                          fi
8864                        done
8865                        if test -z "$haveit"; then
8866                          if test -d "$additional_libdir"; then
8867                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8868                          fi
8869                        fi
8870                        haveit=
8871                        for x in $LDFLAGS $LTLIBINTL; do
8872
8873  acl_save_prefix="$prefix"
8874  prefix="$acl_final_prefix"
8875  acl_save_exec_prefix="$exec_prefix"
8876  exec_prefix="$acl_final_exec_prefix"
8877  eval x=\"$x\"
8878  exec_prefix="$acl_save_exec_prefix"
8879  prefix="$acl_save_prefix"
8880
8881                          if test "X$x" = "X-L$additional_libdir"; then
8882                            haveit=yes
8883                            break
8884                          fi
8885                        done
8886                        if test -z "$haveit"; then
8887                          if test -d "$additional_libdir"; then
8888                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8889                          fi
8890                        fi
8891                      fi
8892                    fi
8893                    ;;
8894                  -R*)
8895                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
8896                    if test "$enable_rpath" != no; then
8897                                                                  haveit=
8898                      for x in $rpathdirs; do
8899                        if test "X$x" = "X$dir"; then
8900                          haveit=yes
8901                          break
8902                        fi
8903                      done
8904                      if test -z "$haveit"; then
8905                        rpathdirs="$rpathdirs $dir"
8906                      fi
8907                                                                  haveit=
8908                      for x in $ltrpathdirs; do
8909                        if test "X$x" = "X$dir"; then
8910                          haveit=yes
8911                          break
8912                        fi
8913                      done
8914                      if test -z "$haveit"; then
8915                        ltrpathdirs="$ltrpathdirs $dir"
8916                      fi
8917                    fi
8918                    ;;
8919                  -l*)
8920                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8921                    ;;
8922                  *.la)
8923                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8924                    ;;
8925                  *)
8926                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8927                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8928                    ;;
8929                esac
8930              done
8931            fi
8932          else
8933                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8934            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8935          fi
8936        fi
8937      fi
8938    done
8939  done
8940  if test "X$rpathdirs" != "X"; then
8941    if test -n "$hardcode_libdir_separator"; then
8942                        alldirs=
8943      for found_dir in $rpathdirs; do
8944        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8945      done
8946            acl_save_libdir="$libdir"
8947      libdir="$alldirs"
8948      eval flag=\"$hardcode_libdir_flag_spec\"
8949      libdir="$acl_save_libdir"
8950      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8951    else
8952            for found_dir in $rpathdirs; do
8953        acl_save_libdir="$libdir"
8954        libdir="$found_dir"
8955        eval flag=\"$hardcode_libdir_flag_spec\"
8956        libdir="$acl_save_libdir"
8957        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8958      done
8959    fi
8960  fi
8961  if test "X$ltrpathdirs" != "X"; then
8962            for found_dir in $ltrpathdirs; do
8963      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8964    done
8965  fi
8966
8967          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8968$as_echo_n "checking for GNU gettext in libintl... " >&6; }
8969if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
8970  $as_echo_n "(cached) " >&6
8971else
8972  gt_save_CPPFLAGS="$CPPFLAGS"
8973            CPPFLAGS="$CPPFLAGS $INCINTL"
8974            gt_save_LIBS="$LIBS"
8975            LIBS="$LIBS $LIBINTL"
8976                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977/* end confdefs.h.  */
8978#include <libintl.h>
8979extern int _nl_msg_cat_cntr;
8980extern
8981#ifdef __cplusplus
8982"C"
8983#endif
8984const char *_nl_expand_alias ();
8985int
8986main ()
8987{
8988bindtextdomain ("", "");
8989return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8990  ;
8991  return 0;
8992}
8993_ACEOF
8994if ac_fn_c_try_link "$LINENO"; then :
8995  gt_cv_func_gnugettext1_libintl=yes
8996else
8997  gt_cv_func_gnugettext1_libintl=no
8998fi
8999rm -f core conftest.err conftest.$ac_objext \
9000    conftest$ac_exeext conftest.$ac_ext
9001                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9002              LIBS="$LIBS $LIBICONV"
9003              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004/* end confdefs.h.  */
9005#include <libintl.h>
9006extern int _nl_msg_cat_cntr;
9007extern
9008#ifdef __cplusplus
9009"C"
9010#endif
9011const char *_nl_expand_alias ();
9012int
9013main ()
9014{
9015bindtextdomain ("", "");
9016return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9017  ;
9018  return 0;
9019}
9020_ACEOF
9021if ac_fn_c_try_link "$LINENO"; then :
9022  LIBINTL="$LIBINTL $LIBICONV"
9023                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9024                gt_cv_func_gnugettext1_libintl=yes
9025
9026fi
9027rm -f core conftest.err conftest.$ac_objext \
9028    conftest$ac_exeext conftest.$ac_ext
9029            fi
9030            CPPFLAGS="$gt_save_CPPFLAGS"
9031            LIBS="$gt_save_LIBS"
9032fi
9033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9034$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9035        fi
9036
9037                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9038           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9039                && test "$PACKAGE" != gettext-runtime \
9040                && test "$PACKAGE" != gettext-tools; }; then
9041          gt_use_preinstalled_gnugettext=yes
9042        else
9043                    LIBINTL=
9044          LTLIBINTL=
9045          INCINTL=
9046        fi
9047
9048
9049        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9050                              nls_cv_use_gnu_gettext=yes
9051        fi
9052      fi
9053
9054      if test "$nls_cv_use_gnu_gettext" = "yes"; then
9055                BUILD_INCLUDED_LIBINTL=yes
9056        USE_INCLUDED_LIBINTL=yes
9057        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9058        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9059        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9060      fi
9061
9062      if test "$gt_use_preinstalled_gnugettext" = "yes" \
9063         || test "$nls_cv_use_gnu_gettext" = "yes"; then
9064                CATOBJEXT=.gmo
9065      fi
9066
9067
9068    if test "$gt_use_preinstalled_gnugettext" = "yes" \
9069       || test "$nls_cv_use_gnu_gettext" = "yes"; then
9070
9071$as_echo "#define ENABLE_NLS 1" >>confdefs.h
9072
9073    else
9074      USE_NLS=no
9075    fi
9076  fi
9077
9078  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9079$as_echo_n "checking whether to use NLS... " >&6; }
9080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9081$as_echo "$USE_NLS" >&6; }
9082  if test "$USE_NLS" = "yes"; then
9083    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9084$as_echo_n "checking where the gettext function comes from... " >&6; }
9085    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9086      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9087        gt_source="external libintl"
9088      else
9089        gt_source="libc"
9090      fi
9091    else
9092      gt_source="included intl directory"
9093    fi
9094    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9095$as_echo "$gt_source" >&6; }
9096  fi
9097
9098  if test "$USE_NLS" = "yes"; then
9099
9100    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9101      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9102        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9103$as_echo_n "checking how to link with libintl... " >&6; }
9104        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9105$as_echo "$LIBINTL" >&6; }
9106
9107  for element in $INCINTL; do
9108    haveit=
9109    for x in $CPPFLAGS; do
9110
9111  acl_save_prefix="$prefix"
9112  prefix="$acl_final_prefix"
9113  acl_save_exec_prefix="$exec_prefix"
9114  exec_prefix="$acl_final_exec_prefix"
9115  eval x=\"$x\"
9116  exec_prefix="$acl_save_exec_prefix"
9117  prefix="$acl_save_prefix"
9118
9119      if test "X$x" = "X$element"; then
9120        haveit=yes
9121        break
9122      fi
9123    done
9124    if test -z "$haveit"; then
9125      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9126    fi
9127  done
9128
9129      fi
9130
9131
9132$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9133
9134
9135$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9136
9137    fi
9138
9139        POSUB=po
9140  fi
9141
9142
9143            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9144      BUILD_INCLUDED_LIBINTL=yes
9145    fi
9146
9147
9148
9149
9150
9151        nls_cv_header_intl=
9152    nls_cv_header_libgt=
9153
9154        DATADIRNAME=share
9155
9156
9157        INSTOBJEXT=.mo
9158
9159
9160        GENCAT=gencat
9161
9162
9163        if test "$USE_INCLUDED_LIBINTL" = yes; then
9164      INTLOBJS="\$(GETTOBJS)"
9165    fi
9166
9167
9168        INTL_LIBTOOL_SUFFIX_PREFIX=
9169
9170
9171
9172    INTLLIBS="$LIBINTL"
9173
9174
9175
9176
9177
9178
9179
9180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9181$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9182set x ${MAKE-make}
9183ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9184if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9185  $as_echo_n "(cached) " >&6
9186else
9187  cat >conftest.make <<\_ACEOF
9188SHELL = /bin/sh
9189all:
9190	@echo '@@@%%%=$(MAKE)=@@@%%%'
9191_ACEOF
9192# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9193case `${MAKE-make} -f conftest.make 2>/dev/null` in
9194  *@@@%%%=?*=@@@%%%*)
9195    eval ac_cv_prog_make_${ac_make}_set=yes;;
9196  *)
9197    eval ac_cv_prog_make_${ac_make}_set=no;;
9198esac
9199rm -f conftest.make
9200fi
9201if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9203$as_echo "yes" >&6; }
9204  SET_MAKE=
9205else
9206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9207$as_echo "no" >&6; }
9208  SET_MAKE="MAKE=${MAKE-make}"
9209fi
9210
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9212$as_echo_n "checking for GNU make... " >&6; }
9213if test "${_cv_gnu_make_command+set}" = set; then :
9214  $as_echo_n "(cached) " >&6
9215else
9216  _cv_gnu_make_command='' ;
9217                for a in "$MAKE" make gmake gnumake ; do
9218                        if test -z "$a" ; then continue ; fi ;
9219                        if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
9220                                _cv_gnu_make_command=$a ;
9221                                break;
9222                        fi
9223                done ;
9224
9225fi
9226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9227$as_echo "$_cv_gnu_make_command" >&6; } ;
9228        if test  "x$_cv_gnu_make_command" != "x"  ; then
9229                ifGNUmake='' ;
9230                ifNotGNUmake='#' ;
9231        else
9232                ifGNUmake='#' ;
9233                ifNotGNUmake='' ;
9234                { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9235$as_echo "\"Not found\"" >&6; };
9236        fi
9237
9238
9239
9240# Extract the first word of "ln", so it can be a program name with args.
9241set dummy ln; ac_word=$2
9242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9243$as_echo_n "checking for $ac_word... " >&6; }
9244if test "${ac_cv_path_LN+set}" = set; then :
9245  $as_echo_n "(cached) " >&6
9246else
9247  case $LN in
9248  [\\/]* | ?:[\\/]*)
9249  ac_cv_path_LN="$LN" # Let the user override the test with a path.
9250  ;;
9251  *)
9252  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9253for as_dir in $PATH
9254do
9255  IFS=$as_save_IFS
9256  test -z "$as_dir" && as_dir=.
9257    for ac_exec_ext in '' $ac_executable_extensions; do
9258  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9259    ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9260    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9261    break 2
9262  fi
9263done
9264  done
9265IFS=$as_save_IFS
9266
9267  test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9268  ;;
9269esac
9270fi
9271LN=$ac_cv_path_LN
9272if test -n "$LN"; then
9273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9274$as_echo "$LN" >&6; }
9275else
9276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9277$as_echo "no" >&6; }
9278fi
9279
9280
9281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9282$as_echo_n "checking whether ln -s works... " >&6; }
9283LN_S=$as_ln_s
9284if test "$LN_S" = "ln -s"; then
9285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9286$as_echo "yes" >&6; }
9287else
9288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9289$as_echo "no, using $LN_S" >&6; }
9290fi
9291
9292# Extract the first word of "mv", so it can be a program name with args.
9293set dummy mv; ac_word=$2
9294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9295$as_echo_n "checking for $ac_word... " >&6; }
9296if test "${ac_cv_path_MV+set}" = set; then :
9297  $as_echo_n "(cached) " >&6
9298else
9299  case $MV in
9300  [\\/]* | ?:[\\/]*)
9301  ac_cv_path_MV="$MV" # Let the user override the test with a path.
9302  ;;
9303  *)
9304  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9305for as_dir in $PATH
9306do
9307  IFS=$as_save_IFS
9308  test -z "$as_dir" && as_dir=.
9309    for ac_exec_ext in '' $ac_executable_extensions; do
9310  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9311    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9312    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9313    break 2
9314  fi
9315done
9316  done
9317IFS=$as_save_IFS
9318
9319  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9320  ;;
9321esac
9322fi
9323MV=$ac_cv_path_MV
9324if test -n "$MV"; then
9325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9326$as_echo "$MV" >&6; }
9327else
9328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9329$as_echo "no" >&6; }
9330fi
9331
9332
9333# Extract the first word of "cp", so it can be a program name with args.
9334set dummy cp; ac_word=$2
9335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9336$as_echo_n "checking for $ac_word... " >&6; }
9337if test "${ac_cv_path_CP+set}" = set; then :
9338  $as_echo_n "(cached) " >&6
9339else
9340  case $CP in
9341  [\\/]* | ?:[\\/]*)
9342  ac_cv_path_CP="$CP" # Let the user override the test with a path.
9343  ;;
9344  *)
9345  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9346for as_dir in $PATH
9347do
9348  IFS=$as_save_IFS
9349  test -z "$as_dir" && as_dir=.
9350    for ac_exec_ext in '' $ac_executable_extensions; do
9351  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9352    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9353    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9354    break 2
9355  fi
9356done
9357  done
9358IFS=$as_save_IFS
9359
9360  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9361  ;;
9362esac
9363fi
9364CP=$ac_cv_path_CP
9365if test -n "$CP"; then
9366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9367$as_echo "$CP" >&6; }
9368else
9369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9370$as_echo "no" >&6; }
9371fi
9372
9373
9374# Extract the first word of "rm", so it can be a program name with args.
9375set dummy rm; ac_word=$2
9376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9377$as_echo_n "checking for $ac_word... " >&6; }
9378if test "${ac_cv_path_RM+set}" = set; then :
9379  $as_echo_n "(cached) " >&6
9380else
9381  case $RM in
9382  [\\/]* | ?:[\\/]*)
9383  ac_cv_path_RM="$RM" # Let the user override the test with a path.
9384  ;;
9385  *)
9386  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9387for as_dir in $PATH
9388do
9389  IFS=$as_save_IFS
9390  test -z "$as_dir" && as_dir=.
9391    for ac_exec_ext in '' $ac_executable_extensions; do
9392  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9393    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9394    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9395    break 2
9396  fi
9397done
9398  done
9399IFS=$as_save_IFS
9400
9401  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9402  ;;
9403esac
9404fi
9405RM=$ac_cv_path_RM
9406if test -n "$RM"; then
9407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9408$as_echo "$RM" >&6; }
9409else
9410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9411$as_echo "no" >&6; }
9412fi
9413
9414
9415# Extract the first word of "chmod", so it can be a program name with args.
9416set dummy chmod; ac_word=$2
9417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9418$as_echo_n "checking for $ac_word... " >&6; }
9419if test "${ac_cv_path_CHMOD+set}" = set; then :
9420  $as_echo_n "(cached) " >&6
9421else
9422  case $CHMOD in
9423  [\\/]* | ?:[\\/]*)
9424  ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9425  ;;
9426  *)
9427  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9428for as_dir in $PATH
9429do
9430  IFS=$as_save_IFS
9431  test -z "$as_dir" && as_dir=.
9432    for ac_exec_ext in '' $ac_executable_extensions; do
9433  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9434    ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9435    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9436    break 2
9437  fi
9438done
9439  done
9440IFS=$as_save_IFS
9441
9442  test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9443  ;;
9444esac
9445fi
9446CHMOD=$ac_cv_path_CHMOD
9447if test -n "$CHMOD"; then
9448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9449$as_echo "$CHMOD" >&6; }
9450else
9451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9452$as_echo "no" >&6; }
9453fi
9454
9455
9456for ac_prog in gawk mawk nawk awk
9457do
9458  # Extract the first word of "$ac_prog", so it can be a program name with args.
9459set dummy $ac_prog; ac_word=$2
9460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9461$as_echo_n "checking for $ac_word... " >&6; }
9462if test "${ac_cv_prog_AWK+set}" = set; then :
9463  $as_echo_n "(cached) " >&6
9464else
9465  if test -n "$AWK"; then
9466  ac_cv_prog_AWK="$AWK" # Let the user override the test.
9467else
9468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9469for as_dir in $PATH
9470do
9471  IFS=$as_save_IFS
9472  test -z "$as_dir" && as_dir=.
9473    for ac_exec_ext in '' $ac_executable_extensions; do
9474  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9475    ac_cv_prog_AWK="$ac_prog"
9476    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9477    break 2
9478  fi
9479done
9480  done
9481IFS=$as_save_IFS
9482
9483fi
9484fi
9485AWK=$ac_cv_prog_AWK
9486if test -n "$AWK"; then
9487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9488$as_echo "$AWK" >&6; }
9489else
9490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9491$as_echo "no" >&6; }
9492fi
9493
9494
9495  test -n "$AWK" && break
9496done
9497
9498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9499$as_echo_n "checking for egrep... " >&6; }
9500if test "${ac_cv_path_EGREP+set}" = set; then :
9501  $as_echo_n "(cached) " >&6
9502else
9503  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9504   then ac_cv_path_EGREP="$GREP -E"
9505   else
9506     if test -z "$EGREP"; then
9507  ac_path_EGREP_found=false
9508  # Loop through the user's path and test for each of PROGNAME-LIST
9509  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9510for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9511do
9512  IFS=$as_save_IFS
9513  test -z "$as_dir" && as_dir=.
9514    for ac_prog in egrep; do
9515    for ac_exec_ext in '' $ac_executable_extensions; do
9516      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9517      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
9518# Check for GNU ac_path_EGREP and select it if it is found.
9519  # Check for GNU $ac_path_EGREP
9520case `"$ac_path_EGREP" --version 2>&1` in
9521*GNU*)
9522  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9523*)
9524  ac_count=0
9525  $as_echo_n 0123456789 >"conftest.in"
9526  while :
9527  do
9528    cat "conftest.in" "conftest.in" >"conftest.tmp"
9529    mv "conftest.tmp" "conftest.in"
9530    cp "conftest.in" "conftest.nl"
9531    $as_echo 'EGREP' >> "conftest.nl"
9532    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9533    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9534    as_fn_arith $ac_count + 1 && ac_count=$as_val
9535    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9536      # Best one so far, save it but keep looking for a better one
9537      ac_cv_path_EGREP="$ac_path_EGREP"
9538      ac_path_EGREP_max=$ac_count
9539    fi
9540    # 10*(2^10) chars as input seems more than enough
9541    test $ac_count -gt 10 && break
9542  done
9543  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9544esac
9545
9546      $ac_path_EGREP_found && break 3
9547    done
9548  done
9549  done
9550IFS=$as_save_IFS
9551  if test -z "$ac_cv_path_EGREP"; then
9552    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9553  fi
9554else
9555  ac_cv_path_EGREP=$EGREP
9556fi
9557
9558   fi
9559fi
9560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9561$as_echo "$ac_cv_path_EGREP" >&6; }
9562 EGREP="$ac_cv_path_EGREP"
9563
9564
9565# Extract the first word of "sed", so it can be a program name with args.
9566set dummy sed; ac_word=$2
9567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9568$as_echo_n "checking for $ac_word... " >&6; }
9569if test "${ac_cv_path_SED+set}" = set; then :
9570  $as_echo_n "(cached) " >&6
9571else
9572  case $SED in
9573  [\\/]* | ?:[\\/]*)
9574  ac_cv_path_SED="$SED" # Let the user override the test with a path.
9575  ;;
9576  *)
9577  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9578for as_dir in $PATH
9579do
9580  IFS=$as_save_IFS
9581  test -z "$as_dir" && as_dir=.
9582    for ac_exec_ext in '' $ac_executable_extensions; do
9583  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9584    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9585    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9586    break 2
9587  fi
9588done
9589  done
9590IFS=$as_save_IFS
9591
9592  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9593  ;;
9594esac
9595fi
9596SED=$ac_cv_path_SED
9597if test -n "$SED"; then
9598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9599$as_echo "$SED" >&6; }
9600else
9601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9602$as_echo "no" >&6; }
9603fi
9604
9605
9606# Extract the first word of "perl", so it can be a program name with args.
9607set dummy perl; ac_word=$2
9608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9609$as_echo_n "checking for $ac_word... " >&6; }
9610if test "${ac_cv_path_PERL+set}" = set; then :
9611  $as_echo_n "(cached) " >&6
9612else
9613  case $PERL in
9614  [\\/]* | ?:[\\/]*)
9615  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9616  ;;
9617  *)
9618  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9619for as_dir in $PATH
9620do
9621  IFS=$as_save_IFS
9622  test -z "$as_dir" && as_dir=.
9623    for ac_exec_ext in '' $ac_executable_extensions; do
9624  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9625    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9626    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9627    break 2
9628  fi
9629done
9630  done
9631IFS=$as_save_IFS
9632
9633  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9634  ;;
9635esac
9636fi
9637PERL=$ac_cv_path_PERL
9638if test -n "$PERL"; then
9639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9640$as_echo "$PERL" >&6; }
9641else
9642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9643$as_echo "no" >&6; }
9644fi
9645
9646
9647# Extract the first word of "ldconfig", so it can be a program name with args.
9648set dummy ldconfig; ac_word=$2
9649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9650$as_echo_n "checking for $ac_word... " >&6; }
9651if test "${ac_cv_path_LDCONFIG+set}" = set; then :
9652  $as_echo_n "(cached) " >&6
9653else
9654  case $LDCONFIG in
9655  [\\/]* | ?:[\\/]*)
9656  ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9657  ;;
9658  *)
9659  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9660for as_dir in $PATH
9661do
9662  IFS=$as_save_IFS
9663  test -z "$as_dir" && as_dir=.
9664    for ac_exec_ext in '' $ac_executable_extensions; do
9665  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9666    ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
9667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9668    break 2
9669  fi
9670done
9671  done
9672IFS=$as_save_IFS
9673
9674  test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9675  ;;
9676esac
9677fi
9678LDCONFIG=$ac_cv_path_LDCONFIG
9679if test -n "$LDCONFIG"; then
9680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
9681$as_echo "$LDCONFIG" >&6; }
9682else
9683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9684$as_echo "no" >&6; }
9685fi
9686
9687
9688if test -n "$ac_tool_prefix"; then
9689  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9690set dummy ${ac_tool_prefix}ar; ac_word=$2
9691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9692$as_echo_n "checking for $ac_word... " >&6; }
9693if test "${ac_cv_prog_AR+set}" = set; then :
9694  $as_echo_n "(cached) " >&6
9695else
9696  if test -n "$AR"; then
9697  ac_cv_prog_AR="$AR" # Let the user override the test.
9698else
9699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9700for as_dir in $PATH
9701do
9702  IFS=$as_save_IFS
9703  test -z "$as_dir" && as_dir=.
9704    for ac_exec_ext in '' $ac_executable_extensions; do
9705  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9706    ac_cv_prog_AR="${ac_tool_prefix}ar"
9707    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9708    break 2
9709  fi
9710done
9711  done
9712IFS=$as_save_IFS
9713
9714fi
9715fi
9716AR=$ac_cv_prog_AR
9717if test -n "$AR"; then
9718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9719$as_echo "$AR" >&6; }
9720else
9721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9722$as_echo "no" >&6; }
9723fi
9724
9725
9726fi
9727if test -z "$ac_cv_prog_AR"; then
9728  ac_ct_AR=$AR
9729  # Extract the first word of "ar", so it can be a program name with args.
9730set dummy ar; ac_word=$2
9731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9732$as_echo_n "checking for $ac_word... " >&6; }
9733if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
9734  $as_echo_n "(cached) " >&6
9735else
9736  if test -n "$ac_ct_AR"; then
9737  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9738else
9739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9740for as_dir in $PATH
9741do
9742  IFS=$as_save_IFS
9743  test -z "$as_dir" && as_dir=.
9744    for ac_exec_ext in '' $ac_executable_extensions; do
9745  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9746    ac_cv_prog_ac_ct_AR="ar"
9747    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9748    break 2
9749  fi
9750done
9751  done
9752IFS=$as_save_IFS
9753
9754fi
9755fi
9756ac_ct_AR=$ac_cv_prog_ac_ct_AR
9757if test -n "$ac_ct_AR"; then
9758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9759$as_echo "$ac_ct_AR" >&6; }
9760else
9761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9762$as_echo "no" >&6; }
9763fi
9764
9765  if test "x$ac_ct_AR" = x; then
9766    AR="ar"
9767  else
9768    case $cross_compiling:$ac_tool_warned in
9769yes:)
9770{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9772ac_tool_warned=yes ;;
9773esac
9774    AR=$ac_ct_AR
9775  fi
9776else
9777  AR="$ac_cv_prog_AR"
9778fi
9779
9780if test -n "$ac_tool_prefix"; then
9781  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9782set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9784$as_echo_n "checking for $ac_word... " >&6; }
9785if test "${ac_cv_prog_RANLIB+set}" = set; then :
9786  $as_echo_n "(cached) " >&6
9787else
9788  if test -n "$RANLIB"; then
9789  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9790else
9791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9792for as_dir in $PATH
9793do
9794  IFS=$as_save_IFS
9795  test -z "$as_dir" && as_dir=.
9796    for ac_exec_ext in '' $ac_executable_extensions; do
9797  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9798    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9799    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9800    break 2
9801  fi
9802done
9803  done
9804IFS=$as_save_IFS
9805
9806fi
9807fi
9808RANLIB=$ac_cv_prog_RANLIB
9809if test -n "$RANLIB"; then
9810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9811$as_echo "$RANLIB" >&6; }
9812else
9813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9814$as_echo "no" >&6; }
9815fi
9816
9817
9818fi
9819if test -z "$ac_cv_prog_RANLIB"; then
9820  ac_ct_RANLIB=$RANLIB
9821  # Extract the first word of "ranlib", so it can be a program name with args.
9822set dummy ranlib; ac_word=$2
9823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9824$as_echo_n "checking for $ac_word... " >&6; }
9825if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
9826  $as_echo_n "(cached) " >&6
9827else
9828  if test -n "$ac_ct_RANLIB"; then
9829  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9830else
9831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9832for as_dir in $PATH
9833do
9834  IFS=$as_save_IFS
9835  test -z "$as_dir" && as_dir=.
9836    for ac_exec_ext in '' $ac_executable_extensions; do
9837  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9838    ac_cv_prog_ac_ct_RANLIB="ranlib"
9839    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9840    break 2
9841  fi
9842done
9843  done
9844IFS=$as_save_IFS
9845
9846fi
9847fi
9848ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9849if test -n "$ac_ct_RANLIB"; then
9850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9851$as_echo "$ac_ct_RANLIB" >&6; }
9852else
9853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9854$as_echo "no" >&6; }
9855fi
9856
9857  if test "x$ac_ct_RANLIB" = x; then
9858    RANLIB=":"
9859  else
9860    case $cross_compiling:$ac_tool_warned in
9861yes:)
9862{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9863$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9864ac_tool_warned=yes ;;
9865esac
9866    RANLIB=$ac_ct_RANLIB
9867  fi
9868else
9869  RANLIB="$ac_cv_prog_RANLIB"
9870fi
9871
9872if test -n "$ac_tool_prefix"; then
9873  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9874set dummy ${ac_tool_prefix}strip; ac_word=$2
9875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9876$as_echo_n "checking for $ac_word... " >&6; }
9877if test "${ac_cv_prog_STRIP+set}" = set; then :
9878  $as_echo_n "(cached) " >&6
9879else
9880  if test -n "$STRIP"; then
9881  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9882else
9883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9884for as_dir in $PATH
9885do
9886  IFS=$as_save_IFS
9887  test -z "$as_dir" && as_dir=.
9888    for ac_exec_ext in '' $ac_executable_extensions; do
9889  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9890    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9891    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9892    break 2
9893  fi
9894done
9895  done
9896IFS=$as_save_IFS
9897
9898fi
9899fi
9900STRIP=$ac_cv_prog_STRIP
9901if test -n "$STRIP"; then
9902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9903$as_echo "$STRIP" >&6; }
9904else
9905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9906$as_echo "no" >&6; }
9907fi
9908
9909
9910fi
9911if test -z "$ac_cv_prog_STRIP"; then
9912  ac_ct_STRIP=$STRIP
9913  # Extract the first word of "strip", so it can be a program name with args.
9914set dummy strip; ac_word=$2
9915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9916$as_echo_n "checking for $ac_word... " >&6; }
9917if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
9918  $as_echo_n "(cached) " >&6
9919else
9920  if test -n "$ac_ct_STRIP"; then
9921  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9922else
9923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9924for as_dir in $PATH
9925do
9926  IFS=$as_save_IFS
9927  test -z "$as_dir" && as_dir=.
9928    for ac_exec_ext in '' $ac_executable_extensions; do
9929  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9930    ac_cv_prog_ac_ct_STRIP="strip"
9931    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9932    break 2
9933  fi
9934done
9935  done
9936IFS=$as_save_IFS
9937
9938fi
9939fi
9940ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9941if test -n "$ac_ct_STRIP"; then
9942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9943$as_echo "$ac_ct_STRIP" >&6; }
9944else
9945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9946$as_echo "no" >&6; }
9947fi
9948
9949  if test "x$ac_ct_STRIP" = x; then
9950    STRIP=":"
9951  else
9952    case $cross_compiling:$ac_tool_warned in
9953yes:)
9954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9956ac_tool_warned=yes ;;
9957esac
9958    STRIP=$ac_ct_STRIP
9959  fi
9960else
9961  STRIP="$ac_cv_prog_STRIP"
9962fi
9963
9964# Extract the first word of "makeinfo", so it can be a program name with args.
9965set dummy makeinfo; ac_word=$2
9966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9967$as_echo_n "checking for $ac_word... " >&6; }
9968if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
9969  $as_echo_n "(cached) " >&6
9970else
9971  if test -n "$MAKEINFO"; then
9972  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
9973else
9974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9975for as_dir in $PATH
9976do
9977  IFS=$as_save_IFS
9978  test -z "$as_dir" && as_dir=.
9979    for ac_exec_ext in '' $ac_executable_extensions; do
9980  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9981    ac_cv_prog_MAKEINFO="makeinfo"
9982    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9983    break 2
9984  fi
9985done
9986  done
9987IFS=$as_save_IFS
9988
9989fi
9990fi
9991MAKEINFO=$ac_cv_prog_MAKEINFO
9992if test -n "$MAKEINFO"; then
9993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
9994$as_echo "$MAKEINFO" >&6; }
9995else
9996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9997$as_echo "no" >&6; }
9998fi
9999
10000
10001if test "_$MAKEINFO" = "_"; then
10002    MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10003else
10004    case "$MAKEINFO" in
10005      */missing.*)
10006        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10007*** Makeinfo is missing. Info documentation will not be built." >&5
10008$as_echo "$as_me: WARNING:
10009*** Makeinfo is missing. Info documentation will not be built." >&2;}
10010        ;;
10011      *)
10012        ;;
10013    esac
10014fi
10015
10016
10017# See if we need a separate native compiler.
10018if test $cross_compiling = no; then
10019  BUILD_CC="$CC"
10020
10021else
10022  for ac_prog in gcc cc
10023do
10024  # Extract the first word of "$ac_prog", so it can be a program name with args.
10025set dummy $ac_prog; ac_word=$2
10026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10027$as_echo_n "checking for $ac_word... " >&6; }
10028if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
10029  $as_echo_n "(cached) " >&6
10030else
10031  if test -n "$BUILD_CC"; then
10032  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10033else
10034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10035for as_dir in $PATH
10036do
10037  IFS=$as_save_IFS
10038  test -z "$as_dir" && as_dir=.
10039    for ac_exec_ext in '' $ac_executable_extensions; do
10040  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10041    ac_cv_prog_BUILD_CC="$ac_prog"
10042    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10043    break 2
10044  fi
10045done
10046  done
10047IFS=$as_save_IFS
10048
10049fi
10050fi
10051BUILD_CC=$ac_cv_prog_BUILD_CC
10052if test -n "$BUILD_CC"; then
10053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10054$as_echo "$BUILD_CC" >&6; }
10055else
10056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10057$as_echo "no" >&6; }
10058fi
10059
10060
10061  test -n "$BUILD_CC" && break
10062done
10063
10064fi
10065for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
10066do :
10067  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10068ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10069eval as_val=\$$as_ac_Header
10070   if test "x$as_val" = x""yes; then :
10071  cat >>confdefs.h <<_ACEOF
10072#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10073_ACEOF
10074
10075fi
10076
10077done
10078
10079for ac_header in sys/disk.h sys/mount.h
10080do :
10081  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10082ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10083#if HAVE_SYS_QUEUE_H
10084#include <sys/queue.h>
10085#endif
10086
10087"
10088eval as_val=\$$as_ac_Header
10089   if test "x$as_val" = x""yes; then :
10090  cat >>confdefs.h <<_ACEOF
10091#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10092_ACEOF
10093
10094fi
10095
10096done
10097
10098for ac_header in net/if.h
10099do :
10100  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10101#if HAVE_SYS_TYPES_H
10102#include <sys/types.h>
10103#endif
10104#if HAVE_SYS_SOCKET
10105#include <sys/socket.h>
10106#endif
10107
10108"
10109if test "x$ac_cv_header_net_if_h" = x""yes; then :
10110  cat >>confdefs.h <<_ACEOF
10111#define HAVE_NET_IF_H 1
10112_ACEOF
10113
10114fi
10115
10116done
10117
10118for ac_func in vprintf
10119do :
10120  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10121if test "x$ac_cv_func_vprintf" = x""yes; then :
10122  cat >>confdefs.h <<_ACEOF
10123#define HAVE_VPRINTF 1
10124_ACEOF
10125
10126ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10127if test "x$ac_cv_func__doprnt" = x""yes; then :
10128
10129$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10130
10131fi
10132
10133fi
10134done
10135
10136
10137ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10138"
10139if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then :
10140  $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10141
10142fi
10143
10144ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10145"
10146if test "x$ac_cv_type_ssize_t" = x""yes; then :
10147  $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10148
10149fi
10150
10151ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10152"
10153if test "x$ac_cv_have_decl_llseek" = x""yes; then :
10154  $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10155
10156fi
10157
10158ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10159		 #define _LARGEFILE64_SOURCE
10160		 #include <unistd.h>
10161"
10162if test "x$ac_cv_have_decl_lseek64" = x""yes; then :
10163  $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10164
10165fi
10166
10167# The cast to long int works around a bug in the HP C Compiler
10168# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10169# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10170# This bug is HP SR number 8606223364.
10171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10172$as_echo_n "checking size of short... " >&6; }
10173if test "${ac_cv_sizeof_short+set}" = set; then :
10174  $as_echo_n "(cached) " >&6
10175else
10176  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
10177
10178else
10179  if test "$ac_cv_type_short" = yes; then
10180     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10182{ as_fn_set_status 77
10183as_fn_error "cannot compute sizeof (short)
10184See \`config.log' for more details." "$LINENO" 5; }; }
10185   else
10186     ac_cv_sizeof_short=0
10187   fi
10188fi
10189
10190fi
10191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10192$as_echo "$ac_cv_sizeof_short" >&6; }
10193
10194
10195
10196cat >>confdefs.h <<_ACEOF
10197#define SIZEOF_SHORT $ac_cv_sizeof_short
10198_ACEOF
10199
10200
10201# The cast to long int works around a bug in the HP C Compiler
10202# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10203# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10204# This bug is HP SR number 8606223364.
10205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10206$as_echo_n "checking size of int... " >&6; }
10207if test "${ac_cv_sizeof_int+set}" = set; then :
10208  $as_echo_n "(cached) " >&6
10209else
10210  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
10211
10212else
10213  if test "$ac_cv_type_int" = yes; then
10214     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10216{ as_fn_set_status 77
10217as_fn_error "cannot compute sizeof (int)
10218See \`config.log' for more details." "$LINENO" 5; }; }
10219   else
10220     ac_cv_sizeof_int=0
10221   fi
10222fi
10223
10224fi
10225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10226$as_echo "$ac_cv_sizeof_int" >&6; }
10227
10228
10229
10230cat >>confdefs.h <<_ACEOF
10231#define SIZEOF_INT $ac_cv_sizeof_int
10232_ACEOF
10233
10234
10235# The cast to long int works around a bug in the HP C Compiler
10236# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10237# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10238# This bug is HP SR number 8606223364.
10239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10240$as_echo_n "checking size of long... " >&6; }
10241if test "${ac_cv_sizeof_long+set}" = set; then :
10242  $as_echo_n "(cached) " >&6
10243else
10244  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
10245
10246else
10247  if test "$ac_cv_type_long" = yes; then
10248     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10249$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10250{ as_fn_set_status 77
10251as_fn_error "cannot compute sizeof (long)
10252See \`config.log' for more details." "$LINENO" 5; }; }
10253   else
10254     ac_cv_sizeof_long=0
10255   fi
10256fi
10257
10258fi
10259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10260$as_echo "$ac_cv_sizeof_long" >&6; }
10261
10262
10263
10264cat >>confdefs.h <<_ACEOF
10265#define SIZEOF_LONG $ac_cv_sizeof_long
10266_ACEOF
10267
10268
10269# The cast to long int works around a bug in the HP C Compiler
10270# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10271# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10272# This bug is HP SR number 8606223364.
10273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10274$as_echo_n "checking size of long long... " >&6; }
10275if test "${ac_cv_sizeof_long_long+set}" = set; then :
10276  $as_echo_n "(cached) " >&6
10277else
10278  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
10279
10280else
10281  if test "$ac_cv_type_long_long" = yes; then
10282     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10284{ as_fn_set_status 77
10285as_fn_error "cannot compute sizeof (long long)
10286See \`config.log' for more details." "$LINENO" 5; }; }
10287   else
10288     ac_cv_sizeof_long_long=0
10289   fi
10290fi
10291
10292fi
10293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10294$as_echo "$ac_cv_sizeof_long_long" >&6; }
10295
10296
10297
10298cat >>confdefs.h <<_ACEOF
10299#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10300_ACEOF
10301
10302
10303SIZEOF_SHORT=$ac_cv_sizeof_short
10304SIZEOF_INT=$ac_cv_sizeof_int
10305SIZEOF_LONG=$ac_cv_sizeof_long
10306SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10307
10308
10309
10310
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10312$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10313if test "${ac_cv_c_bigendian+set}" = set; then :
10314  $as_echo_n "(cached) " >&6
10315else
10316  ac_cv_c_bigendian=unknown
10317    # See if we're dealing with a universal compiler.
10318    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10319/* end confdefs.h.  */
10320#ifndef __APPLE_CC__
10321	       not a universal capable compiler
10322	     #endif
10323	     typedef int dummy;
10324
10325_ACEOF
10326if ac_fn_c_try_compile "$LINENO"; then :
10327
10328	# Check for potential -arch flags.  It is not universal unless
10329	# there are at least two -arch flags with different values.
10330	ac_arch=
10331	ac_prev=
10332	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10333	 if test -n "$ac_prev"; then
10334	   case $ac_word in
10335	     i?86 | x86_64 | ppc | ppc64)
10336	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10337		 ac_arch=$ac_word
10338	       else
10339		 ac_cv_c_bigendian=universal
10340		 break
10341	       fi
10342	       ;;
10343	   esac
10344	   ac_prev=
10345	 elif test "x$ac_word" = "x-arch"; then
10346	   ac_prev=arch
10347	 fi
10348       done
10349fi
10350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10351    if test $ac_cv_c_bigendian = unknown; then
10352      # See if sys/param.h defines the BYTE_ORDER macro.
10353      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10354/* end confdefs.h.  */
10355#include <sys/types.h>
10356	     #include <sys/param.h>
10357
10358int
10359main ()
10360{
10361#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10362		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10363		     && LITTLE_ENDIAN)
10364	      bogus endian macros
10365	     #endif
10366
10367  ;
10368  return 0;
10369}
10370_ACEOF
10371if ac_fn_c_try_compile "$LINENO"; then :
10372  # It does; now see whether it defined to BIG_ENDIAN or not.
10373	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10374/* end confdefs.h.  */
10375#include <sys/types.h>
10376		#include <sys/param.h>
10377
10378int
10379main ()
10380{
10381#if BYTE_ORDER != BIG_ENDIAN
10382		 not big endian
10383		#endif
10384
10385  ;
10386  return 0;
10387}
10388_ACEOF
10389if ac_fn_c_try_compile "$LINENO"; then :
10390  ac_cv_c_bigendian=yes
10391else
10392  ac_cv_c_bigendian=no
10393fi
10394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10395fi
10396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10397    fi
10398    if test $ac_cv_c_bigendian = unknown; then
10399      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10400      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401/* end confdefs.h.  */
10402#include <limits.h>
10403
10404int
10405main ()
10406{
10407#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10408	      bogus endian macros
10409	     #endif
10410
10411  ;
10412  return 0;
10413}
10414_ACEOF
10415if ac_fn_c_try_compile "$LINENO"; then :
10416  # It does; now see whether it defined to _BIG_ENDIAN or not.
10417	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10418/* end confdefs.h.  */
10419#include <limits.h>
10420
10421int
10422main ()
10423{
10424#ifndef _BIG_ENDIAN
10425		 not big endian
10426		#endif
10427
10428  ;
10429  return 0;
10430}
10431_ACEOF
10432if ac_fn_c_try_compile "$LINENO"; then :
10433  ac_cv_c_bigendian=yes
10434else
10435  ac_cv_c_bigendian=no
10436fi
10437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10438fi
10439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10440    fi
10441    if test $ac_cv_c_bigendian = unknown; then
10442      # Compile a test program.
10443      if test "$cross_compiling" = yes; then :
10444  # Try to guess by grepping values from an object file.
10445	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446/* end confdefs.h.  */
10447short int ascii_mm[] =
10448		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10449		short int ascii_ii[] =
10450		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10451		int use_ascii (int i) {
10452		  return ascii_mm[i] + ascii_ii[i];
10453		}
10454		short int ebcdic_ii[] =
10455		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10456		short int ebcdic_mm[] =
10457		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10458		int use_ebcdic (int i) {
10459		  return ebcdic_mm[i] + ebcdic_ii[i];
10460		}
10461		extern int foo;
10462
10463int
10464main ()
10465{
10466return use_ascii (foo) == use_ebcdic (foo);
10467  ;
10468  return 0;
10469}
10470_ACEOF
10471if ac_fn_c_try_compile "$LINENO"; then :
10472  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10473	      ac_cv_c_bigendian=yes
10474	    fi
10475	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10476	      if test "$ac_cv_c_bigendian" = unknown; then
10477		ac_cv_c_bigendian=no
10478	      else
10479		# finding both strings is unlikely to happen, but who knows?
10480		ac_cv_c_bigendian=unknown
10481	      fi
10482	    fi
10483fi
10484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10485else
10486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10487/* end confdefs.h.  */
10488$ac_includes_default
10489int
10490main ()
10491{
10492
10493	     /* Are we little or big endian?  From Harbison&Steele.  */
10494	     union
10495	     {
10496	       long int l;
10497	       char c[sizeof (long int)];
10498	     } u;
10499	     u.l = 1;
10500	     return u.c[sizeof (long int) - 1] == 1;
10501
10502  ;
10503  return 0;
10504}
10505_ACEOF
10506if ac_fn_c_try_run "$LINENO"; then :
10507  ac_cv_c_bigendian=no
10508else
10509  ac_cv_c_bigendian=yes
10510fi
10511rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10512  conftest.$ac_objext conftest.beam conftest.$ac_ext
10513fi
10514
10515    fi
10516fi
10517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10518$as_echo "$ac_cv_c_bigendian" >&6; }
10519 case $ac_cv_c_bigendian in #(
10520   yes)
10521     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10522;; #(
10523   no)
10524      ;; #(
10525   universal)
10526
10527$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10528
10529     ;; #(
10530   *)
10531     as_fn_error "unknown endianness
10532 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10533 esac
10534
10535BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10536ASM_TYPES_HEADER=./asm_types.h
10537
10538echo "/* These defines are needed for the public ext2fs.h header file */" \
10539     > public_config.h
10540if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10541  uniq tmp_config.$$ >> public_config.h
10542else
10543  echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10544fi
10545if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10546  uniq tmp_config.$$ >> public_config.h
10547else
10548  echo "#undef WORDS_BIGENDIAN" >> public_config.h
10549fi
10550rm -f tmp_config.$$
10551PUBLIC_CONFIG_HEADER=./public_config.h
10552
10553for ac_header in inttypes.h
10554do :
10555  ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10556if test "x$ac_cv_header_inttypes_h" = x""yes; then :
10557  cat >>confdefs.h <<_ACEOF
10558#define HAVE_INTTYPES_H 1
10559_ACEOF
10560
10561fi
10562
10563done
10564
10565ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10566if test "x$ac_cv_type_intptr_t" = x""yes; then :
10567
10568cat >>confdefs.h <<_ACEOF
10569#define HAVE_INTPTR_T 1
10570_ACEOF
10571
10572
10573fi
10574
10575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10576$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10577if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then :
10578  $as_echo_n "(cached) " >&6
10579else
10580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10581/* end confdefs.h.  */
10582#include <sys/stat.h>
10583int
10584main ()
10585{
10586struct stat stat; stat.st_flags = 0;
10587  ;
10588  return 0;
10589}
10590_ACEOF
10591if ac_fn_c_try_compile "$LINENO"; then :
10592  e2fsprogs_cv_struct_st_flags=yes
10593else
10594  e2fsprogs_cv_struct_st_flags=no
10595fi
10596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10597fi
10598
10599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10600$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10601if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10602  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10603$as_echo_n "checking whether st_flags field is useful... " >&6; }
10604  if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then :
10605  $as_echo_n "(cached) " >&6
10606else
10607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10608/* end confdefs.h.  */
10609#include <sys/stat.h>
10610int
10611main ()
10612{
10613struct stat stat; stat.st_flags |= UF_IMMUTABLE;
10614  ;
10615  return 0;
10616}
10617_ACEOF
10618if ac_fn_c_try_compile "$LINENO"; then :
10619  e2fsprogs_cv_struct_st_flags_immut=yes
10620else
10621  e2fsprogs_cv_struct_st_flags_immut=no
10622fi
10623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10624fi
10625
10626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
10627$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
10628  if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
10629	  $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
10630
10631  fi
10632fi
10633ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10634	 #include <sys/socket.h>
10635"
10636if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
10637
10638cat >>confdefs.h <<_ACEOF
10639#define HAVE_SA_LEN 1
10640_ACEOF
10641
10642fi
10643
10644if test -n "$BLKID_CMT"; then
10645  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
10646$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
10647if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10648  $as_echo_n "(cached) " >&6
10649else
10650  ac_func_search_save_LIBS=$LIBS
10651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10652/* end confdefs.h.  */
10653
10654/* Override any GCC internal prototype to avoid an error.
10655   Use char because int might match the return type of a GCC
10656   builtin and then its argument prototype would still apply.  */
10657#ifdef __cplusplus
10658extern "C"
10659#endif
10660char blkid_probe_all ();
10661int
10662main ()
10663{
10664return blkid_probe_all ();
10665  ;
10666  return 0;
10667}
10668_ACEOF
10669for ac_lib in '' blkid; do
10670  if test -z "$ac_lib"; then
10671    ac_res="none required"
10672  else
10673    ac_res=-l$ac_lib
10674    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10675  fi
10676  if ac_fn_c_try_link "$LINENO"; then :
10677  ac_cv_search_blkid_probe_all=$ac_res
10678fi
10679rm -f core conftest.err conftest.$ac_objext \
10680    conftest$ac_exeext
10681  if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10682  break
10683fi
10684done
10685if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10686
10687else
10688  ac_cv_search_blkid_probe_all=no
10689fi
10690rm conftest.$ac_ext
10691LIBS=$ac_func_search_save_LIBS
10692fi
10693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
10694$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
10695ac_res=$ac_cv_search_blkid_probe_all
10696if test "$ac_res" != no; then :
10697  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10698
10699fi
10700
10701fi
10702for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep getdtablesize getrlimit blkid_probe_get_topology mbstowcs
10703do :
10704  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10705ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10706eval as_val=\$$as_ac_var
10707   if test "x$as_val" = x""yes; then :
10708  cat >>confdefs.h <<_ACEOF
10709#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10710_ACEOF
10711
10712fi
10713done
10714
10715SOCKET_LIB=''
10716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10717$as_echo_n "checking for socket in -lsocket... " >&6; }
10718if test "${ac_cv_lib_socket_socket+set}" = set; then :
10719  $as_echo_n "(cached) " >&6
10720else
10721  ac_check_lib_save_LIBS=$LIBS
10722LIBS="-lsocket  $LIBS"
10723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10724/* end confdefs.h.  */
10725
10726/* Override any GCC internal prototype to avoid an error.
10727   Use char because int might match the return type of a GCC
10728   builtin and then its argument prototype would still apply.  */
10729#ifdef __cplusplus
10730extern "C"
10731#endif
10732char socket ();
10733int
10734main ()
10735{
10736return socket ();
10737  ;
10738  return 0;
10739}
10740_ACEOF
10741if ac_fn_c_try_link "$LINENO"; then :
10742  ac_cv_lib_socket_socket=yes
10743else
10744  ac_cv_lib_socket_socket=no
10745fi
10746rm -f core conftest.err conftest.$ac_objext \
10747    conftest$ac_exeext conftest.$ac_ext
10748LIBS=$ac_check_lib_save_LIBS
10749fi
10750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10751$as_echo "$ac_cv_lib_socket_socket" >&6; }
10752if test "x$ac_cv_lib_socket_socket" = x""yes; then :
10753  SOCKET_LIB=-lsocket
10754fi
10755
10756
10757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
10758$as_echo_n "checking for optreset... " >&6; }
10759if test "${ac_cv_have_optreset+set}" = set; then :
10760  $as_echo_n "(cached) " >&6
10761else
10762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10763/* end confdefs.h.  */
10764#include <unistd.h>
10765
10766_ACEOF
10767if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10768  $EGREP "optreset" >/dev/null 2>&1; then :
10769  ac_cv_have_optreset=yes
10770else
10771  ac_cv_have_optreset=no
10772fi
10773rm -f conftest*
10774
10775fi
10776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
10777$as_echo "$ac_cv_have_optreset" >&6; }
10778if test $ac_cv_have_optreset = yes; then
10779  $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
10780
10781fi
10782SEM_INIT_LIB=''
10783ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
10784if test "x$ac_cv_func_sem_init" = x""yes; then :
10785
10786else
10787  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
10788$as_echo_n "checking for sem_init in -lpthread... " >&6; }
10789if test "${ac_cv_lib_pthread_sem_init+set}" = set; then :
10790  $as_echo_n "(cached) " >&6
10791else
10792  ac_check_lib_save_LIBS=$LIBS
10793LIBS="-lpthread  $LIBS"
10794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795/* end confdefs.h.  */
10796
10797/* Override any GCC internal prototype to avoid an error.
10798   Use char because int might match the return type of a GCC
10799   builtin and then its argument prototype would still apply.  */
10800#ifdef __cplusplus
10801extern "C"
10802#endif
10803char sem_init ();
10804int
10805main ()
10806{
10807return sem_init ();
10808  ;
10809  return 0;
10810}
10811_ACEOF
10812if ac_fn_c_try_link "$LINENO"; then :
10813  ac_cv_lib_pthread_sem_init=yes
10814else
10815  ac_cv_lib_pthread_sem_init=no
10816fi
10817rm -f core conftest.err conftest.$ac_objext \
10818    conftest$ac_exeext conftest.$ac_ext
10819LIBS=$ac_check_lib_save_LIBS
10820fi
10821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
10822$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
10823if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then :
10824  $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
10825
10826  	SEM_INIT_LIB=-lpthread
10827else
10828  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
10829$as_echo_n "checking for sem_init in -lrt... " >&6; }
10830if test "${ac_cv_lib_rt_sem_init+set}" = set; then :
10831  $as_echo_n "(cached) " >&6
10832else
10833  ac_check_lib_save_LIBS=$LIBS
10834LIBS="-lrt  $LIBS"
10835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836/* end confdefs.h.  */
10837
10838/* Override any GCC internal prototype to avoid an error.
10839   Use char because int might match the return type of a GCC
10840   builtin and then its argument prototype would still apply.  */
10841#ifdef __cplusplus
10842extern "C"
10843#endif
10844char sem_init ();
10845int
10846main ()
10847{
10848return sem_init ();
10849  ;
10850  return 0;
10851}
10852_ACEOF
10853if ac_fn_c_try_link "$LINENO"; then :
10854  ac_cv_lib_rt_sem_init=yes
10855else
10856  ac_cv_lib_rt_sem_init=no
10857fi
10858rm -f core conftest.err conftest.$ac_objext \
10859    conftest$ac_exeext conftest.$ac_ext
10860LIBS=$ac_check_lib_save_LIBS
10861fi
10862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
10863$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
10864if test "x$ac_cv_lib_rt_sem_init" = x""yes; then :
10865  $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
10866
10867  	SEM_INIT_LIB=-lrt
10868else
10869  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
10870$as_echo_n "checking for sem_init in -lposix4... " >&6; }
10871if test "${ac_cv_lib_posix4_sem_init+set}" = set; then :
10872  $as_echo_n "(cached) " >&6
10873else
10874  ac_check_lib_save_LIBS=$LIBS
10875LIBS="-lposix4  $LIBS"
10876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877/* end confdefs.h.  */
10878
10879/* Override any GCC internal prototype to avoid an error.
10880   Use char because int might match the return type of a GCC
10881   builtin and then its argument prototype would still apply.  */
10882#ifdef __cplusplus
10883extern "C"
10884#endif
10885char sem_init ();
10886int
10887main ()
10888{
10889return sem_init ();
10890  ;
10891  return 0;
10892}
10893_ACEOF
10894if ac_fn_c_try_link "$LINENO"; then :
10895  ac_cv_lib_posix4_sem_init=yes
10896else
10897  ac_cv_lib_posix4_sem_init=no
10898fi
10899rm -f core conftest.err conftest.$ac_objext \
10900    conftest$ac_exeext conftest.$ac_ext
10901LIBS=$ac_check_lib_save_LIBS
10902fi
10903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
10904$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
10905if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then :
10906  $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
10907
10908  	SEM_INIT_LIB=-lposix4
10909fi
10910
10911fi
10912
10913fi
10914
10915fi
10916
10917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
10918$as_echo_n "checking for unified diff option... " >&6; }
10919if diff -u $0 $0 > /dev/null 2>&1 ; then
10920   UNI_DIFF_OPTS=-u
10921else
10922   UNI_DIFF_OPTS=-c
10923fi
10924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
10925$as_echo "$UNI_DIFF_OPTS" >&6; }
10926
10927case "$host_os" in
10928linux*)
10929	$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
10930
10931	;;
10932esac
10933LINUX_CMT="#"
10934CYGWIN_CMT="#"
10935UNIX_CMT=
10936case "$host_os" in
10937linux*)
10938	LINUX_CMT=
10939	;;
10940cygwin)
10941	CYGWIN_CMT=
10942	UNIX_CMT="#"
10943	;;
10944esac
10945
10946
10947
10948case "$host_os" in
10949linux* | gnu* | k*bsd*-gnu)
10950	if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
10951		root_prefix="";
10952		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
10953$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
10954	fi
10955	;;
10956esac
10957case "$host_os" in
10958linux* | gnu* | k*bsd*-gnu)
10959	if test "$prefix" = NONE ; then
10960		prefix="/usr";
10961		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
10962$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
10963		if test "$mandir" = '${prefix}/man' ; then
10964			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
10965$as_echo "...and mandir defaults to /usr/share/man" >&6; }
10966			mandir=/usr/share/man
10967		fi
10968	fi
10969;;
10970esac
10971if test "$root_prefix" = NONE ; then
10972	if test "$prefix" = NONE ; then
10973		root_prefix="$ac_default_prefix"
10974	else
10975		root_prefix="$prefix"
10976	fi
10977	root_bindir=$bindir
10978	root_sbindir=$sbindir
10979	root_libdir=$libdir
10980	root_sysconfdir=$sysconfdir
10981else
10982	root_bindir='${root_prefix}/bin'
10983	root_sbindir='${root_prefix}/sbin'
10984	root_libdir='${root_prefix}/lib'
10985	root_sysconfdir='${root_prefix}/etc'
10986fi
10987if test "$bindir" != '${exec_prefix}/bin'; then
10988    root_bindir=$bindir
10989    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
10990$as_echo "Setting root_bindir to $root_bindir" >&6; }
10991fi
10992if test "$sbindir" != '${exec_prefix}/sbin'; then
10993    root_sbindir=$sbindir
10994    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
10995$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
10996fi
10997if test "$libdir" != '${exec_prefix}/lib'; then
10998    root_libdir=$libdir
10999    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11000$as_echo "Setting root_libdir to $root_libdir" >&6; }
11001fi
11002if test "$sysconfdir" != '${prefix}/etc'; then
11003    root_sysconfdir=$sysconfdir
11004    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11005$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11006fi
11007
11008
11009
11010
11011
11012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5
11013$as_echo_n "checking whether linker accepts -static... " >&6; }
11014if test "${ac_cv_e2fsprogs_use_static+set}" = set; then :
11015  $as_echo_n "(cached) " >&6
11016else
11017  SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019/* end confdefs.h.  */
11020#include <stdio.h>
11021int
11022main ()
11023{
11024fflush(stdout);
11025  ;
11026  return 0;
11027}
11028_ACEOF
11029if ac_fn_c_try_link "$LINENO"; then :
11030  ac_cv_e2fsprogs_use_static=yes
11031else
11032  ac_cv_e2fsprogs_use_static=no
11033fi
11034rm -f core conftest.err conftest.$ac_objext \
11035    conftest$ac_exeext conftest.$ac_ext
11036LDFLAGS=$SAVE_LDFLAGS
11037fi
11038
11039case "$host_os" in
11040solaris2.*)
11041	ac_cv_e2fsprogs_use_static=no
11042;;
11043esac
11044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11045$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11046LDFLAG_STATIC=
11047if test $ac_cv_e2fsprogs_use_static = yes; then
11048	LDFLAG_STATIC=-static
11049fi
11050
11051case "$host_os" in
11052darwin*)
11053	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11054$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11055	$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11056
11057	;;
11058esac
11059SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11060ET_DIR=`cd ${srcdir}/lib/et; pwd`
11061
11062
11063if test "$cross_compiling" = yes ; then
11064  DO_TEST_SUITE=
11065else
11066  DO_TEST_SUITE=check
11067fi
11068
11069INTL_FLAGS=
11070if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11071	INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
11072fi
11073
11074if test $cross_compiling = no; then
11075   BUILD_CFLAGS="$CFLAGS"
11076   BUILD_LDFLAGS="$LDFLAGS"
11077else
11078   BUILD_CFLAGS=
11079   BUILD_LDFLAGS=
11080fi
11081
11082
11083test -d lib || mkdir lib
11084test -d include || mkdir include
11085test -d include/linux || mkdir include/linux
11086test -d include/asm || mkdir include/asm
11087for i in MCONFIG Makefile e2fsprogs.spec \
11088	util/Makefile util/subst.conf util/gen-tarball \
11089	lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11090	lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11091	lib/uuid/Makefile lib/uuid/uuid_types.h \
11092	lib/blkid/Makefile lib/blkid/blkid_types.h \
11093	lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11094	lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11095	misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11096	debugfs/Makefile tests/Makefile tests/progs/Makefile \
11097	resize/Makefile doc/Makefile intl/Makefile \
11098	intl/libgnuintl.h po/Makefile.in ; do
11099	if test -d `dirname ${srcdir}/$i` ; then
11100		outlist="$outlist $i"
11101	fi
11102done
11103ac_config_files="$ac_config_files $outlist"
11104
11105cat >confcache <<\_ACEOF
11106# This file is a shell script that caches the results of configure
11107# tests run on this system so they can be shared between configure
11108# scripts and configure runs, see configure's option --config-cache.
11109# It is not useful on other systems.  If it contains results you don't
11110# want to keep, you may remove or edit it.
11111#
11112# config.status only pays attention to the cache file if you give it
11113# the --recheck option to rerun configure.
11114#
11115# `ac_cv_env_foo' variables (set or unset) will be overridden when
11116# loading this file, other *unset* `ac_cv_foo' will be assigned the
11117# following values.
11118
11119_ACEOF
11120
11121# The following way of writing the cache mishandles newlines in values,
11122# but we know of no workaround that is simple, portable, and efficient.
11123# So, we kill variables containing newlines.
11124# Ultrix sh set writes to stderr and can't be redirected directly,
11125# and sets the high bit in the cache file unless we assign to the vars.
11126(
11127  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11128    eval ac_val=\$$ac_var
11129    case $ac_val in #(
11130    *${as_nl}*)
11131      case $ac_var in #(
11132      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11133$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11134      esac
11135      case $ac_var in #(
11136      _ | IFS | as_nl) ;; #(
11137      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11138      *) { eval $ac_var=; unset $ac_var;} ;;
11139      esac ;;
11140    esac
11141  done
11142
11143  (set) 2>&1 |
11144    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11145    *${as_nl}ac_space=\ *)
11146      # `set' does not quote correctly, so add quotes: double-quote
11147      # substitution turns \\\\ into \\, and sed turns \\ into \.
11148      sed -n \
11149	"s/'/'\\\\''/g;
11150	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11151      ;; #(
11152    *)
11153      # `set' quotes correctly as required by POSIX, so do not add quotes.
11154      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11155      ;;
11156    esac |
11157    sort
11158) |
11159  sed '
11160     /^ac_cv_env_/b end
11161     t clear
11162     :clear
11163     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11164     t end
11165     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11166     :end' >>confcache
11167if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11168  if test -w "$cache_file"; then
11169    test "x$cache_file" != "x/dev/null" &&
11170      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11171$as_echo "$as_me: updating cache $cache_file" >&6;}
11172    cat confcache >$cache_file
11173  else
11174    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11175$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11176  fi
11177fi
11178rm -f confcache
11179
11180test "x$prefix" = xNONE && prefix=$ac_default_prefix
11181# Let make expand exec_prefix.
11182test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11183
11184# Transform confdefs.h into DEFS.
11185# Protect against shell expansion while executing Makefile rules.
11186# Protect against Makefile macro expansion.
11187#
11188# If the first sed substitution is executed (which looks for macros that
11189# take arguments), then branch to the quote section.  Otherwise,
11190# look for a macro that doesn't take arguments.
11191ac_script='
11192:mline
11193/\\$/{
11194 N
11195 s,\\\n,,
11196 b mline
11197}
11198t clear
11199:clear
11200s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
11201t quote
11202s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
11203t quote
11204b any
11205:quote
11206s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11207s/\[/\\&/g
11208s/\]/\\&/g
11209s/\$/$$/g
11210H
11211:any
11212${
11213	g
11214	s/^\n//
11215	s/\n/ /g
11216	p
11217}
11218'
11219DEFS=`sed -n "$ac_script" confdefs.h`
11220
11221
11222ac_libobjs=
11223ac_ltlibobjs=
11224for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11225  # 1. Remove the extension, and $U if already installed.
11226  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11227  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11228  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11229  #    will be set to the directory where LIBOBJS objects are built.
11230  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11231  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11232done
11233LIBOBJS=$ac_libobjs
11234
11235LTLIBOBJS=$ac_ltlibobjs
11236
11237
11238
11239
11240: ${CONFIG_STATUS=./config.status}
11241ac_write_fail=0
11242ac_clean_files_save=$ac_clean_files
11243ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11244{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11245$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11246as_write_fail=0
11247cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11248#! $SHELL
11249# Generated by $as_me.
11250# Run this file to recreate the current configuration.
11251# Compiler output produced by configure, useful for debugging
11252# configure, is in config.log if it exists.
11253
11254debug=false
11255ac_cs_recheck=false
11256ac_cs_silent=false
11257
11258SHELL=\${CONFIG_SHELL-$SHELL}
11259export SHELL
11260_ASEOF
11261cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11262## -------------------- ##
11263## M4sh Initialization. ##
11264## -------------------- ##
11265
11266# Be more Bourne compatible
11267DUALCASE=1; export DUALCASE # for MKS sh
11268if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11269  emulate sh
11270  NULLCMD=:
11271  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11272  # is contrary to our usage.  Disable this feature.
11273  alias -g '${1+"$@"}'='"$@"'
11274  setopt NO_GLOB_SUBST
11275else
11276  case `(set -o) 2>/dev/null` in #(
11277  *posix*) :
11278    set -o posix ;; #(
11279  *) :
11280     ;;
11281esac
11282fi
11283
11284
11285as_nl='
11286'
11287export as_nl
11288# Printing a long string crashes Solaris 7 /usr/bin/printf.
11289as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11290as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11291as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11292# Prefer a ksh shell builtin over an external printf program on Solaris,
11293# but without wasting forks for bash or zsh.
11294if test -z "$BASH_VERSION$ZSH_VERSION" \
11295    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11296  as_echo='print -r --'
11297  as_echo_n='print -rn --'
11298elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11299  as_echo='printf %s\n'
11300  as_echo_n='printf %s'
11301else
11302  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11303    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11304    as_echo_n='/usr/ucb/echo -n'
11305  else
11306    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11307    as_echo_n_body='eval
11308      arg=$1;
11309      case $arg in #(
11310      *"$as_nl"*)
11311	expr "X$arg" : "X\\(.*\\)$as_nl";
11312	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11313      esac;
11314      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11315    '
11316    export as_echo_n_body
11317    as_echo_n='sh -c $as_echo_n_body as_echo'
11318  fi
11319  export as_echo_body
11320  as_echo='sh -c $as_echo_body as_echo'
11321fi
11322
11323# The user is always right.
11324if test "${PATH_SEPARATOR+set}" != set; then
11325  PATH_SEPARATOR=:
11326  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11327    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11328      PATH_SEPARATOR=';'
11329  }
11330fi
11331
11332
11333# IFS
11334# We need space, tab and new line, in precisely that order.  Quoting is
11335# there to prevent editors from complaining about space-tab.
11336# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11337# splitting by setting IFS to empty value.)
11338IFS=" ""	$as_nl"
11339
11340# Find who we are.  Look in the path if we contain no directory separator.
11341case $0 in #((
11342  *[\\/]* ) as_myself=$0 ;;
11343  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11344for as_dir in $PATH
11345do
11346  IFS=$as_save_IFS
11347  test -z "$as_dir" && as_dir=.
11348    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11349  done
11350IFS=$as_save_IFS
11351
11352     ;;
11353esac
11354# We did not find ourselves, most probably we were run as `sh COMMAND'
11355# in which case we are not to be found in the path.
11356if test "x$as_myself" = x; then
11357  as_myself=$0
11358fi
11359if test ! -f "$as_myself"; then
11360  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11361  exit 1
11362fi
11363
11364# Unset variables that we do not need and which cause bugs (e.g. in
11365# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11366# suppresses any "Segmentation fault" message there.  '((' could
11367# trigger a bug in pdksh 5.2.14.
11368for as_var in BASH_ENV ENV MAIL MAILPATH
11369do eval test x\${$as_var+set} = xset \
11370  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11371done
11372PS1='$ '
11373PS2='> '
11374PS4='+ '
11375
11376# NLS nuisances.
11377LC_ALL=C
11378export LC_ALL
11379LANGUAGE=C
11380export LANGUAGE
11381
11382# CDPATH.
11383(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11384
11385
11386# as_fn_error ERROR [LINENO LOG_FD]
11387# ---------------------------------
11388# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11389# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11390# script with status $?, using 1 if that was 0.
11391as_fn_error ()
11392{
11393  as_status=$?; test $as_status -eq 0 && as_status=1
11394  if test "$3"; then
11395    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11396    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11397  fi
11398  $as_echo "$as_me: error: $1" >&2
11399  as_fn_exit $as_status
11400} # as_fn_error
11401
11402
11403# as_fn_set_status STATUS
11404# -----------------------
11405# Set $? to STATUS, without forking.
11406as_fn_set_status ()
11407{
11408  return $1
11409} # as_fn_set_status
11410
11411# as_fn_exit STATUS
11412# -----------------
11413# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11414as_fn_exit ()
11415{
11416  set +e
11417  as_fn_set_status $1
11418  exit $1
11419} # as_fn_exit
11420
11421# as_fn_unset VAR
11422# ---------------
11423# Portably unset VAR.
11424as_fn_unset ()
11425{
11426  { eval $1=; unset $1;}
11427}
11428as_unset=as_fn_unset
11429# as_fn_append VAR VALUE
11430# ----------------------
11431# Append the text in VALUE to the end of the definition contained in VAR. Take
11432# advantage of any shell optimizations that allow amortized linear growth over
11433# repeated appends, instead of the typical quadratic growth present in naive
11434# implementations.
11435if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11436  eval 'as_fn_append ()
11437  {
11438    eval $1+=\$2
11439  }'
11440else
11441  as_fn_append ()
11442  {
11443    eval $1=\$$1\$2
11444  }
11445fi # as_fn_append
11446
11447# as_fn_arith ARG...
11448# ------------------
11449# Perform arithmetic evaluation on the ARGs, and store the result in the
11450# global $as_val. Take advantage of shells that can avoid forks. The arguments
11451# must be portable across $(()) and expr.
11452if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11453  eval 'as_fn_arith ()
11454  {
11455    as_val=$(( $* ))
11456  }'
11457else
11458  as_fn_arith ()
11459  {
11460    as_val=`expr "$@" || test $? -eq 1`
11461  }
11462fi # as_fn_arith
11463
11464
11465if expr a : '\(a\)' >/dev/null 2>&1 &&
11466   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11467  as_expr=expr
11468else
11469  as_expr=false
11470fi
11471
11472if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11473  as_basename=basename
11474else
11475  as_basename=false
11476fi
11477
11478if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11479  as_dirname=dirname
11480else
11481  as_dirname=false
11482fi
11483
11484as_me=`$as_basename -- "$0" ||
11485$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11486	 X"$0" : 'X\(//\)$' \| \
11487	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11488$as_echo X/"$0" |
11489    sed '/^.*\/\([^/][^/]*\)\/*$/{
11490	    s//\1/
11491	    q
11492	  }
11493	  /^X\/\(\/\/\)$/{
11494	    s//\1/
11495	    q
11496	  }
11497	  /^X\/\(\/\).*/{
11498	    s//\1/
11499	    q
11500	  }
11501	  s/.*/./; q'`
11502
11503# Avoid depending upon Character Ranges.
11504as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11505as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11506as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11507as_cr_digits='0123456789'
11508as_cr_alnum=$as_cr_Letters$as_cr_digits
11509
11510ECHO_C= ECHO_N= ECHO_T=
11511case `echo -n x` in #(((((
11512-n*)
11513  case `echo 'xy\c'` in
11514  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11515  xy)  ECHO_C='\c';;
11516  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11517       ECHO_T='	';;
11518  esac;;
11519*)
11520  ECHO_N='-n';;
11521esac
11522
11523rm -f conf$$ conf$$.exe conf$$.file
11524if test -d conf$$.dir; then
11525  rm -f conf$$.dir/conf$$.file
11526else
11527  rm -f conf$$.dir
11528  mkdir conf$$.dir 2>/dev/null
11529fi
11530if (echo >conf$$.file) 2>/dev/null; then
11531  if ln -s conf$$.file conf$$ 2>/dev/null; then
11532    as_ln_s='ln -s'
11533    # ... but there are two gotchas:
11534    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11535    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11536    # In both cases, we have to default to `cp -p'.
11537    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11538      as_ln_s='cp -p'
11539  elif ln conf$$.file conf$$ 2>/dev/null; then
11540    as_ln_s=ln
11541  else
11542    as_ln_s='cp -p'
11543  fi
11544else
11545  as_ln_s='cp -p'
11546fi
11547rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11548rmdir conf$$.dir 2>/dev/null
11549
11550
11551# as_fn_mkdir_p
11552# -------------
11553# Create "$as_dir" as a directory, including parents if necessary.
11554as_fn_mkdir_p ()
11555{
11556
11557  case $as_dir in #(
11558  -*) as_dir=./$as_dir;;
11559  esac
11560  test -d "$as_dir" || eval $as_mkdir_p || {
11561    as_dirs=
11562    while :; do
11563      case $as_dir in #(
11564      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11565      *) as_qdir=$as_dir;;
11566      esac
11567      as_dirs="'$as_qdir' $as_dirs"
11568      as_dir=`$as_dirname -- "$as_dir" ||
11569$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11570	 X"$as_dir" : 'X\(//\)[^/]' \| \
11571	 X"$as_dir" : 'X\(//\)$' \| \
11572	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11573$as_echo X"$as_dir" |
11574    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11575	    s//\1/
11576	    q
11577	  }
11578	  /^X\(\/\/\)[^/].*/{
11579	    s//\1/
11580	    q
11581	  }
11582	  /^X\(\/\/\)$/{
11583	    s//\1/
11584	    q
11585	  }
11586	  /^X\(\/\).*/{
11587	    s//\1/
11588	    q
11589	  }
11590	  s/.*/./; q'`
11591      test -d "$as_dir" && break
11592    done
11593    test -z "$as_dirs" || eval "mkdir $as_dirs"
11594  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11595
11596
11597} # as_fn_mkdir_p
11598if mkdir -p . 2>/dev/null; then
11599  as_mkdir_p='mkdir -p "$as_dir"'
11600else
11601  test -d ./-p && rmdir ./-p
11602  as_mkdir_p=false
11603fi
11604
11605if test -x / >/dev/null 2>&1; then
11606  as_test_x='test -x'
11607else
11608  if ls -dL / >/dev/null 2>&1; then
11609    as_ls_L_option=L
11610  else
11611    as_ls_L_option=
11612  fi
11613  as_test_x='
11614    eval sh -c '\''
11615      if test -d "$1"; then
11616	test -d "$1/.";
11617      else
11618	case $1 in #(
11619	-*)set "./$1";;
11620	esac;
11621	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11622	???[sx]*):;;*)false;;esac;fi
11623    '\'' sh
11624  '
11625fi
11626as_executable_p=$as_test_x
11627
11628# Sed expression to map a string onto a valid CPP name.
11629as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11630
11631# Sed expression to map a string onto a valid variable name.
11632as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11633
11634
11635exec 6>&1
11636## ----------------------------------- ##
11637## Main body of $CONFIG_STATUS script. ##
11638## ----------------------------------- ##
11639_ASEOF
11640test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11641
11642cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11643# Save the log message, to keep $0 and so on meaningful, and to
11644# report actual input values of CONFIG_FILES etc. instead of their
11645# values after options handling.
11646ac_log="
11647This file was extended by $as_me, which was
11648generated by GNU Autoconf 2.65.  Invocation command line was
11649
11650  CONFIG_FILES    = $CONFIG_FILES
11651  CONFIG_HEADERS  = $CONFIG_HEADERS
11652  CONFIG_LINKS    = $CONFIG_LINKS
11653  CONFIG_COMMANDS = $CONFIG_COMMANDS
11654  $ $0 $@
11655
11656on `(hostname || uname -n) 2>/dev/null | sed 1q`
11657"
11658
11659_ACEOF
11660
11661case $ac_config_files in *"
11662"*) set x $ac_config_files; shift; ac_config_files=$*;;
11663esac
11664
11665
11666
11667cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11668# Files that config.status was made for.
11669config_files="$ac_config_files"
11670config_commands="$ac_config_commands"
11671
11672_ACEOF
11673
11674cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11675ac_cs_usage="\
11676\`$as_me' instantiates files and other configuration actions
11677from templates according to the current configuration.  Unless the files
11678and actions are specified as TAGs, all are instantiated by default.
11679
11680Usage: $0 [OPTION]... [TAG]...
11681
11682  -h, --help       print this help, then exit
11683  -V, --version    print version number and configuration settings, then exit
11684      --config     print configuration, then exit
11685  -q, --quiet, --silent
11686                   do not print progress messages
11687  -d, --debug      don't remove temporary files
11688      --recheck    update $as_me by reconfiguring in the same conditions
11689      --file=FILE[:TEMPLATE]
11690                   instantiate the configuration file FILE
11691
11692Configuration files:
11693$config_files
11694
11695Configuration commands:
11696$config_commands
11697
11698Report bugs to the package provider."
11699
11700_ACEOF
11701cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11702ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11703ac_cs_version="\\
11704config.status
11705configured by $0, generated by GNU Autoconf 2.65,
11706  with options \\"\$ac_cs_config\\"
11707
11708Copyright (C) 2009 Free Software Foundation, Inc.
11709This config.status script is free software; the Free Software Foundation
11710gives unlimited permission to copy, distribute and modify it."
11711
11712ac_pwd='$ac_pwd'
11713srcdir='$srcdir'
11714INSTALL='$INSTALL'
11715AWK='$AWK'
11716test -n "\$AWK" || AWK=awk
11717_ACEOF
11718
11719cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11720# The default lists apply if the user does not specify any file.
11721ac_need_defaults=:
11722while test $# != 0
11723do
11724  case $1 in
11725  --*=*)
11726    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11727    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11728    ac_shift=:
11729    ;;
11730  *)
11731    ac_option=$1
11732    ac_optarg=$2
11733    ac_shift=shift
11734    ;;
11735  esac
11736
11737  case $ac_option in
11738  # Handling of the options.
11739  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11740    ac_cs_recheck=: ;;
11741  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11742    $as_echo "$ac_cs_version"; exit ;;
11743  --config | --confi | --conf | --con | --co | --c )
11744    $as_echo "$ac_cs_config"; exit ;;
11745  --debug | --debu | --deb | --de | --d | -d )
11746    debug=: ;;
11747  --file | --fil | --fi | --f )
11748    $ac_shift
11749    case $ac_optarg in
11750    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11751    esac
11752    as_fn_append CONFIG_FILES " '$ac_optarg'"
11753    ac_need_defaults=false;;
11754  --he | --h |  --help | --hel | -h )
11755    $as_echo "$ac_cs_usage"; exit ;;
11756  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11757  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11758    ac_cs_silent=: ;;
11759
11760  # This is an error.
11761  -*) as_fn_error "unrecognized option: \`$1'
11762Try \`$0 --help' for more information." ;;
11763
11764  *) as_fn_append ac_config_targets " $1"
11765     ac_need_defaults=false ;;
11766
11767  esac
11768  shift
11769done
11770
11771ac_configure_extra_args=
11772
11773if $ac_cs_silent; then
11774  exec 6>/dev/null
11775  ac_configure_extra_args="$ac_configure_extra_args --silent"
11776fi
11777
11778_ACEOF
11779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11780if \$ac_cs_recheck; then
11781  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11782  shift
11783  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11784  CONFIG_SHELL='$SHELL'
11785  export CONFIG_SHELL
11786  exec "\$@"
11787fi
11788
11789_ACEOF
11790cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11791exec 5>>config.log
11792{
11793  echo
11794  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11795## Running $as_me. ##
11796_ASBOX
11797  $as_echo "$ac_log"
11798} >&5
11799
11800_ACEOF
11801cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11802#
11803# INIT-COMMANDS
11804#
11805# Capture the value of obsolete ALL_LINGUAS because we need it to compute
11806    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
11807    # from automake.
11808    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11809    # Capture the value of LINGUAS because we need it to compute CATALOGS.
11810    LINGUAS="${LINGUAS-%UNSET%}"
11811
11812
11813_ACEOF
11814
11815cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11816
11817# Handling of arguments.
11818for ac_config_target in $ac_config_targets
11819do
11820  case $ac_config_target in
11821    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11822    "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
11823
11824  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11825  esac
11826done
11827
11828
11829# If the user did not use the arguments to specify the items to instantiate,
11830# then the envvar interface is used.  Set only those that are not.
11831# We use the long form for the default assignment because of an extremely
11832# bizarre bug on SunOS 4.1.3.
11833if $ac_need_defaults; then
11834  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11835  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11836fi
11837
11838# Have a temporary directory for convenience.  Make it in the build tree
11839# simply because there is no reason against having it here, and in addition,
11840# creating and moving files from /tmp can sometimes cause problems.
11841# Hook for its removal unless debugging.
11842# Note that there is a small window in which the directory will not be cleaned:
11843# after its creation but before its name has been assigned to `$tmp'.
11844$debug ||
11845{
11846  tmp=
11847  trap 'exit_status=$?
11848  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11849' 0
11850  trap 'as_fn_exit 1' 1 2 13 15
11851}
11852# Create a (secure) tmp directory for tmp files.
11853
11854{
11855  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11856  test -n "$tmp" && test -d "$tmp"
11857}  ||
11858{
11859  tmp=./conf$$-$RANDOM
11860  (umask 077 && mkdir "$tmp")
11861} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11862
11863# Set up the scripts for CONFIG_FILES section.
11864# No need to generate them if there are no CONFIG_FILES.
11865# This happens for instance with `./config.status config.h'.
11866if test -n "$CONFIG_FILES"; then
11867
11868if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
11869  ac_cs_awk_getline=:
11870  ac_cs_awk_pipe_init=
11871  ac_cs_awk_read_file='
11872      while ((getline aline < (F[key])) > 0)
11873	print(aline)
11874      close(F[key])'
11875  ac_cs_awk_pipe_fini=
11876else
11877  ac_cs_awk_getline=false
11878  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
11879  ac_cs_awk_read_file='
11880      print "|#_!!_#|"
11881      print "cat " F[key] " &&"
11882      '$ac_cs_awk_pipe_init
11883  # The final `:' finishes the AND list.
11884  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
11885fi
11886ac_cr=`echo X | tr X '\015'`
11887# On cygwin, bash can eat \r inside `` if the user requested igncr.
11888# But we know of no other shell where ac_cr would be empty at this
11889# point, so we can use a bashism as a fallback.
11890if test "x$ac_cr" = x; then
11891  eval ac_cr=\$\'\\r\'
11892fi
11893ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11894if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11895  ac_cs_awk_cr='\r'
11896else
11897  ac_cs_awk_cr=$ac_cr
11898fi
11899
11900echo 'BEGIN {' >"$tmp/subs1.awk" &&
11901_ACEOF
11902
11903# Create commands to substitute file output variables.
11904{
11905  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
11906  echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
11907  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
11908  echo "_ACAWK" &&
11909  echo "_ACEOF"
11910} >conf$$files.sh &&
11911. ./conf$$files.sh ||
11912  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11913rm -f conf$$files.sh
11914
11915{
11916  echo "cat >conf$$subs.awk <<_ACEOF" &&
11917  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11918  echo "_ACEOF"
11919} >conf$$subs.sh ||
11920  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11921ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11922ac_delim='%!_!# '
11923for ac_last_try in false false false false false :; do
11924  . ./conf$$subs.sh ||
11925    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11926
11927  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11928  if test $ac_delim_n = $ac_delim_num; then
11929    break
11930  elif $ac_last_try; then
11931    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11932  else
11933    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11934  fi
11935done
11936rm -f conf$$subs.sh
11937
11938cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11939cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11940_ACEOF
11941sed -n '
11942h
11943s/^/S["/; s/!.*/"]=/
11944p
11945g
11946s/^[^!]*!//
11947:repl
11948t repl
11949s/'"$ac_delim"'$//
11950t delim
11951:nl
11952h
11953s/\(.\{148\}\)..*/\1/
11954t more1
11955s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11956p
11957n
11958b repl
11959:more1
11960s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11961p
11962g
11963s/.\{148\}//
11964t nl
11965:delim
11966h
11967s/\(.\{148\}\)..*/\1/
11968t more2
11969s/["\\]/\\&/g; s/^/"/; s/$/"/
11970p
11971b
11972:more2
11973s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11974p
11975g
11976s/.\{148\}//
11977t delim
11978' <conf$$subs.awk | sed '
11979/^[^""]/{
11980  N
11981  s/\n//
11982}
11983' >>$CONFIG_STATUS || ac_write_fail=1
11984rm -f conf$$subs.awk
11985cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11986_ACAWK
11987cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11988  for (key in S) S_is_set[key] = 1
11989  FS = ""
11990  \$ac_cs_awk_pipe_init
11991}
11992{
11993  line = $ 0
11994  nfields = split(line, field, "@")
11995  substed = 0
11996  len = length(field[1])
11997  for (i = 2; i < nfields; i++) {
11998    key = field[i]
11999    keylen = length(key)
12000    if (S_is_set[key]) {
12001      value = S[key]
12002      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12003      len += length(value) + length(field[++i])
12004      substed = 1
12005    } else
12006      len += 1 + keylen
12007  }
12008  if (nfields == 3 && !substed) {
12009    key = field[2]
12010    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
12011      \$ac_cs_awk_read_file
12012      next
12013    }
12014  }
12015  print line
12016}
12017\$ac_cs_awk_pipe_fini
12018_ACAWK
12019_ACEOF
12020cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12021if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12022  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12023else
12024  cat
12025fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12026  || as_fn_error "could not setup config files machinery" "$LINENO" 5
12027_ACEOF
12028
12029# VPATH may cause trouble with some makes, so we remove $(srcdir),
12030# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12031# trailing colons and then remove the whole line if VPATH becomes empty
12032# (actually we leave an empty line to preserve line numbers).
12033if test "x$srcdir" = x.; then
12034  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
12035s/:*\$(srcdir):*/:/
12036s/:*\${srcdir}:*/:/
12037s/:*@srcdir@:*/:/
12038s/^\([^=]*=[	 ]*\):*/\1/
12039s/:*$//
12040s/^[^=]*=[	 ]*$//
12041}'
12042fi
12043
12044cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12045fi # test -n "$CONFIG_FILES"
12046
12047
12048eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
12049shift
12050for ac_tag
12051do
12052  case $ac_tag in
12053  :[FHLC]) ac_mode=$ac_tag; continue;;
12054  esac
12055  case $ac_mode$ac_tag in
12056  :[FHL]*:*);;
12057  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12058  :[FH]-) ac_tag=-:-;;
12059  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12060  esac
12061  ac_save_IFS=$IFS
12062  IFS=:
12063  set x $ac_tag
12064  IFS=$ac_save_IFS
12065  shift
12066  ac_file=$1
12067  shift
12068
12069  case $ac_mode in
12070  :L) ac_source=$1;;
12071  :[FH])
12072    ac_file_inputs=
12073    for ac_f
12074    do
12075      case $ac_f in
12076      -) ac_f="$tmp/stdin";;
12077      *) # Look for the file first in the build tree, then in the source tree
12078	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12079	 # because $ac_f cannot contain `:'.
12080	 test -f "$ac_f" ||
12081	   case $ac_f in
12082	   [\\/$]*) false;;
12083	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12084	   esac ||
12085	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12086      esac
12087      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12088      as_fn_append ac_file_inputs " '$ac_f'"
12089    done
12090
12091    # Let's still pretend it is `configure' which instantiates (i.e., don't
12092    # use $as_me), people would be surprised to read:
12093    #    /* config.h.  Generated by config.status.  */
12094    configure_input='Generated from '`
12095	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12096	`' by configure.'
12097    if test x"$ac_file" != x-; then
12098      configure_input="$ac_file.  $configure_input"
12099      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12100$as_echo "$as_me: creating $ac_file" >&6;}
12101    fi
12102    # Neutralize special characters interpreted by sed in replacement strings.
12103    case $configure_input in #(
12104    *\&* | *\|* | *\\* )
12105       ac_sed_conf_input=`$as_echo "$configure_input" |
12106       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12107    *) ac_sed_conf_input=$configure_input;;
12108    esac
12109
12110    case $ac_tag in
12111    *:-:* | *:-) cat >"$tmp/stdin" \
12112      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12113    esac
12114    ;;
12115  esac
12116
12117  ac_dir=`$as_dirname -- "$ac_file" ||
12118$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12119	 X"$ac_file" : 'X\(//\)[^/]' \| \
12120	 X"$ac_file" : 'X\(//\)$' \| \
12121	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12122$as_echo X"$ac_file" |
12123    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12124	    s//\1/
12125	    q
12126	  }
12127	  /^X\(\/\/\)[^/].*/{
12128	    s//\1/
12129	    q
12130	  }
12131	  /^X\(\/\/\)$/{
12132	    s//\1/
12133	    q
12134	  }
12135	  /^X\(\/\).*/{
12136	    s//\1/
12137	    q
12138	  }
12139	  s/.*/./; q'`
12140  as_dir="$ac_dir"; as_fn_mkdir_p
12141  ac_builddir=.
12142
12143case "$ac_dir" in
12144.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12145*)
12146  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12147  # A ".." for each directory in $ac_dir_suffix.
12148  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12149  case $ac_top_builddir_sub in
12150  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12151  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12152  esac ;;
12153esac
12154ac_abs_top_builddir=$ac_pwd
12155ac_abs_builddir=$ac_pwd$ac_dir_suffix
12156# for backward compatibility:
12157ac_top_builddir=$ac_top_build_prefix
12158
12159case $srcdir in
12160  .)  # We are building in place.
12161    ac_srcdir=.
12162    ac_top_srcdir=$ac_top_builddir_sub
12163    ac_abs_top_srcdir=$ac_pwd ;;
12164  [\\/]* | ?:[\\/]* )  # Absolute name.
12165    ac_srcdir=$srcdir$ac_dir_suffix;
12166    ac_top_srcdir=$srcdir
12167    ac_abs_top_srcdir=$srcdir ;;
12168  *) # Relative name.
12169    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12170    ac_top_srcdir=$ac_top_build_prefix$srcdir
12171    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12172esac
12173ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12174
12175
12176  case $ac_mode in
12177  :F)
12178  #
12179  # CONFIG_FILE
12180  #
12181
12182  case $INSTALL in
12183  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12184  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12185  esac
12186_ACEOF
12187
12188cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12189# If the template does not know about datarootdir, expand it.
12190# FIXME: This hack should be removed a few years after 2.60.
12191ac_datarootdir_hack=; ac_datarootdir_seen=
12192ac_sed_dataroot='
12193/datarootdir/ {
12194  p
12195  q
12196}
12197/@datadir@/p
12198/@docdir@/p
12199/@infodir@/p
12200/@localedir@/p
12201/@mandir@/p'
12202case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12203*datarootdir*) ac_datarootdir_seen=yes;;
12204*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12205  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12206$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12207_ACEOF
12208cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12209  ac_datarootdir_hack='
12210  s&@datadir@&$datadir&g
12211  s&@docdir@&$docdir&g
12212  s&@infodir@&$infodir&g
12213  s&@localedir@&$localedir&g
12214  s&@mandir@&$mandir&g
12215  s&\\\${datarootdir}&$datarootdir&g' ;;
12216esac
12217_ACEOF
12218
12219# Neutralize VPATH when `$srcdir' = `.'.
12220# Shell code in configure.ac might set extrasub.
12221# FIXME: do we really want to maintain this feature?
12222cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12223ac_sed_extra="$ac_vpsub
12224$extrasub
12225_ACEOF
12226cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12227:t
12228/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12229s|@configure_input@|$ac_sed_conf_input|;t t
12230s&@top_builddir@&$ac_top_builddir_sub&;t t
12231s&@top_build_prefix@&$ac_top_build_prefix&;t t
12232s&@srcdir@&$ac_srcdir&;t t
12233s&@abs_srcdir@&$ac_abs_srcdir&;t t
12234s&@top_srcdir@&$ac_top_srcdir&;t t
12235s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12236s&@builddir@&$ac_builddir&;t t
12237s&@abs_builddir@&$ac_abs_builddir&;t t
12238s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12239s&@INSTALL@&$ac_INSTALL&;t t
12240$ac_datarootdir_hack
12241"
12242eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12243if $ac_cs_awk_getline; then
12244  $AWK -f "$tmp/subs.awk"
12245else
12246  $AWK -f "$tmp/subs.awk" | $SHELL
12247fi >$tmp/out \
12248  || as_fn_error "could not create $ac_file" "$LINENO" 5
12249
12250test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12251  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12252  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12253  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12254which seems to be undefined.  Please make sure it is defined." >&5
12255$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12256which seems to be undefined.  Please make sure it is defined." >&2;}
12257
12258  rm -f "$tmp/stdin"
12259  case $ac_file in
12260  -) cat "$tmp/out" && rm -f "$tmp/out";;
12261  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12262  esac \
12263  || as_fn_error "could not create $ac_file" "$LINENO" 5
12264 ;;
12265
12266
12267  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12268$as_echo "$as_me: executing $ac_file commands" >&6;}
12269 ;;
12270  esac
12271
12272
12273  case $ac_file$ac_mode in
12274    "default-1":C)
12275    for ac_file in $CONFIG_FILES; do
12276      # Support "outfile[:infile[:infile...]]"
12277      case "$ac_file" in
12278        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12279      esac
12280      # PO directories have a Makefile.in generated from Makefile.in.in.
12281      case "$ac_file" in */Makefile.in)
12282        # Adjust a relative srcdir.
12283        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12284        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12285        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12286        # In autoconf-2.13 it is called $ac_given_srcdir.
12287        # In autoconf-2.50 it is called $srcdir.
12288        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12289        case "$ac_given_srcdir" in
12290          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12291          /*) top_srcdir="$ac_given_srcdir" ;;
12292          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
12293        esac
12294        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12295          rm -f "$ac_dir/POTFILES"
12296          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12297          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12298          POMAKEFILEDEPS="POTFILES.in"
12299          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12300          # on $ac_dir but don't depend on user-specified configuration
12301          # parameters.
12302          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12303            # The LINGUAS file contains the set of available languages.
12304            if test -n "$OBSOLETE_ALL_LINGUAS"; then
12305              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12306            fi
12307            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12308            # Hide the ALL_LINGUAS assigment from automake.
12309            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12310            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12311          else
12312            # The set of available languages was given in configure.in.
12313            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12314          fi
12315          # Compute POFILES
12316          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12317          # Compute UPDATEPOFILES
12318          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12319          # Compute DUMMYPOFILES
12320          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12321          # Compute GMOFILES
12322          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12323          case "$ac_given_srcdir" in
12324            .) srcdirpre= ;;
12325            *) srcdirpre='$(srcdir)/' ;;
12326          esac
12327          POFILES=
12328          UPDATEPOFILES=
12329          DUMMYPOFILES=
12330          GMOFILES=
12331          for lang in $ALL_LINGUAS; do
12332            POFILES="$POFILES $srcdirpre$lang.po"
12333            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12334            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12335            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12336          done
12337          # CATALOGS depends on both $ac_dir and the user's LINGUAS
12338          # environment variable.
12339          INST_LINGUAS=
12340          if test -n "$ALL_LINGUAS"; then
12341            for presentlang in $ALL_LINGUAS; do
12342              useit=no
12343              if test "%UNSET%" != "$LINGUAS"; then
12344                desiredlanguages="$LINGUAS"
12345              else
12346                desiredlanguages="$ALL_LINGUAS"
12347              fi
12348              for desiredlang in $desiredlanguages; do
12349                # Use the presentlang catalog if desiredlang is
12350                #   a. equal to presentlang, or
12351                #   b. a variant of presentlang (because in this case,
12352                #      presentlang can be used as a fallback for messages
12353                #      which are not translated in the desiredlang catalog).
12354                case "$desiredlang" in
12355                  "$presentlang"*) useit=yes;;
12356                esac
12357              done
12358              if test $useit = yes; then
12359                INST_LINGUAS="$INST_LINGUAS $presentlang"
12360              fi
12361            done
12362          fi
12363          CATALOGS=
12364          if test -n "$INST_LINGUAS"; then
12365            for lang in $INST_LINGUAS; do
12366              CATALOGS="$CATALOGS $lang.gmo"
12367            done
12368          fi
12369          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12370          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
12371          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12372            if test -f "$f"; then
12373              case "$f" in
12374                *.orig | *.bak | *~) ;;
12375                *) cat "$f" >> "$ac_dir/Makefile" ;;
12376              esac
12377            fi
12378          done
12379        fi
12380        ;;
12381      esac
12382    done ;;
12383
12384  esac
12385done # for ac_tag
12386
12387
12388as_fn_exit 0
12389_ACEOF
12390ac_clean_files=$ac_clean_files_save
12391
12392test $ac_write_fail = 0 ||
12393  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12394
12395
12396# configure is writing to config.log, and then calls config.status.
12397# config.status does its own redirection, appending to config.log.
12398# Unfortunately, on DOS this fails, as config.log is still kept open
12399# by configure, so config.status won't be able to write to it; its
12400# output is simply discarded.  So we exec the FD to /dev/null,
12401# effectively closing config.log, so it can be properly (re)opened and
12402# appended to by config.status.  When coming back to configure, we
12403# need to make the FD available again.
12404if test "$no_create" != yes; then
12405  ac_cs_success=:
12406  ac_config_status_args=
12407  test "$silent" = yes &&
12408    ac_config_status_args="$ac_config_status_args --quiet"
12409  exec 5>/dev/null
12410  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12411  exec 5>>config.log
12412  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12413  # would make configure fail if this is the last instruction.
12414  $ac_cs_success || as_fn_exit $?
12415fi
12416if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12417  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12418$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12419fi
12420
12421if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
12422