configure revision 2d07b3ad98bfe1db5fb1071f53a5338ab6c35522
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90case $0 in #((
91  *[\\/]* ) as_myself=$0 ;;
92  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95  IFS=$as_save_IFS
96  test -z "$as_dir" && as_dir=.
97    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98  done
99IFS=$as_save_IFS
100
101     ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106  as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110  exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there.  '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136  emulate sh
137  NULLCMD=:
138  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139  # is contrary to our usage.  Disable this feature.
140  alias -g '\${1+\"\$@\"}'='\"\$@\"'
141  setopt NO_GLOB_SUBST
142else
143  case \`(set -o) 2>/dev/null\` in #(
144  *posix*) :
145    set -o posix ;; #(
146  *) :
147     ;;
148esac
149fi
150"
151  as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165  exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173  if (eval "$as_required") 2>/dev/null; then :
174  as_have_required=yes
175else
176  as_have_required=no
177fi
178  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184do
185  IFS=$as_save_IFS
186  test -z "$as_dir" && as_dir=.
187  as_found=:
188  case $as_dir in #(
189	 /*)
190	   for as_base in sh bash ksh sh5; do
191	     # Try only shells that exist, to save several forks.
192	     as_shell=$as_dir/$as_base
193	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195  CONFIG_SHELL=$as_shell as_have_required=yes
196		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197  break 2
198fi
199fi
200	   done;;
201       esac
202  as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206  CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211      if test "x$CONFIG_SHELL" != x; then :
212  # We cannot yet assume a decent shell, so we have to provide a
213	# neutralization value for shells without unset; and this also
214	# works around shells that cannot unset nonexistent variables.
215	BASH_ENV=/dev/null
216	ENV=/dev/null
217	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218	export CONFIG_SHELL
219	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222    if test x$as_have_required = xno; then :
223  $as_echo "$0: This script requires a shell more modern than all"
224  $as_echo "$0: the shells that I found on your system."
225  if test x${ZSH_VERSION+set} = xset ; then
226    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228  else
229    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
233  fi
234  exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252  { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261  return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269  set +e
270  as_fn_set_status $1
271  exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280  case $as_dir in #(
281  -*) as_dir=./$as_dir;;
282  esac
283  test -d "$as_dir" || eval $as_mkdir_p || {
284    as_dirs=
285    while :; do
286      case $as_dir in #(
287      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288      *) as_qdir=$as_dir;;
289      esac
290      as_dirs="'$as_qdir' $as_dirs"
291      as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293	 X"$as_dir" : 'X\(//\)[^/]' \| \
294	 X"$as_dir" : 'X\(//\)$' \| \
295	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298	    s//\1/
299	    q
300	  }
301	  /^X\(\/\/\)[^/].*/{
302	    s//\1/
303	    q
304	  }
305	  /^X\(\/\/\)$/{
306	    s//\1/
307	    q
308	  }
309	  /^X\(\/\).*/{
310	    s//\1/
311	    q
312	  }
313	  s/.*/./; q'`
314      test -d "$as_dir" && break
315    done
316    test -z "$as_dirs" || eval "mkdir $as_dirs"
317  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328  eval 'as_fn_append ()
329  {
330    eval $1+=\$2
331  }'
332else
333  as_fn_append ()
334  {
335    eval $1=\$$1\$2
336  }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345  eval 'as_fn_arith ()
346  {
347    as_val=$(( $* ))
348  }'
349else
350  as_fn_arith ()
351  {
352    as_val=`expr "$@" || test $? -eq 1`
353  }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364  as_status=$?; test $as_status -eq 0 && as_status=1
365  if test "$3"; then
366    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368  fi
369  $as_echo "$as_me: error: $1" >&2
370  as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374   test "X`expr 00001 : '.*\(...\)'`" = X001; then
375  as_expr=expr
376else
377  as_expr=false
378fi
379
380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381  as_basename=basename
382else
383  as_basename=false
384fi
385
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387  as_dirname=dirname
388else
389  as_dirname=false
390fi
391
392as_me=`$as_basename -- "$0" ||
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394	 X"$0" : 'X\(//\)$' \| \
395	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397    sed '/^.*\/\([^/][^/]*\)\/*$/{
398	    s//\1/
399	    q
400	  }
401	  /^X\/\(\/\/\)$/{
402	    s//\1/
403	    q
404	  }
405	  /^X\/\(\/\).*/{
406	    s//\1/
407	    q
408	  }
409	  s/.*/./; q'`
410
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419  as_lineno_1=$LINENO as_lineno_1a=$LINENO
420  as_lineno_2=$LINENO as_lineno_2a=$LINENO
421  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424  sed -n '
425    p
426    /[$]LINENO/=
427  ' <$as_myself |
428    sed '
429      s/[$]LINENO.*/&-/
430      t lineno
431      b
432      :lineno
433      N
434      :loop
435      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436      t loop
437      s/-\n.*//
438    ' >$as_me.lineno &&
439  chmod +x "$as_me.lineno" ||
440    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442  # Don't try to exec as it changes $[0], causing all sort of problems
443  # (the dirname of $[0] is not the place where we might find the
444  # original and so on.  Autoconf is especially sensitive to this).
445  . "./$as_me.lineno"
446  # Exit status is that of the last command.
447  exit
448}
449
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453  case `echo 'xy\c'` in
454  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
455  xy)  ECHO_C='\c';;
456  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457       ECHO_T='	';;
458  esac;;
459*)
460  ECHO_N='-n';;
461esac
462
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465  rm -f conf$$.dir/conf$$.file
466else
467  rm -f conf$$.dir
468  mkdir conf$$.dir 2>/dev/null
469fi
470if (echo >conf$$.file) 2>/dev/null; then
471  if ln -s conf$$.file conf$$ 2>/dev/null; then
472    as_ln_s='ln -s'
473    # ... but there are two gotchas:
474    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476    # In both cases, we have to default to `cp -p'.
477    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478      as_ln_s='cp -p'
479  elif ln conf$$.file conf$$ 2>/dev/null; then
480    as_ln_s=ln
481  else
482    as_ln_s='cp -p'
483  fi
484else
485  as_ln_s='cp -p'
486fi
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
489
490if mkdir -p . 2>/dev/null; then
491  as_mkdir_p='mkdir -p "$as_dir"'
492else
493  test -d ./-p && rmdir ./-p
494  as_mkdir_p=false
495fi
496
497if test -x / >/dev/null 2>&1; then
498  as_test_x='test -x'
499else
500  if ls -dL / >/dev/null 2>&1; then
501    as_ls_L_option=L
502  else
503    as_ls_L_option=
504  fi
505  as_test_x='
506    eval sh -c '\''
507      if test -d "$1"; then
508	test -d "$1/.";
509      else
510	case $1 in #(
511	-*)set "./$1";;
512	esac;
513	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514	???[sx]*):;;*)false;;esac;fi
515    '\'' sh
516  '
517fi
518as_executable_p=$as_test_x
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527exec 7<&0 </dev/null 6>&1
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534#
535# Initializations.
536#
537ac_default_prefix=/usr/local
538ac_clean_files=
539ac_config_libobj_dir=.
540LIBOBJS=
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
552PACKAGE_URL=
553
554ac_unique_file="version.h"
555# Factoring default headers for most tests.
556ac_includes_default="\
557#include <stdio.h>
558#ifdef HAVE_SYS_TYPES_H
559# include <sys/types.h>
560#endif
561#ifdef HAVE_SYS_STAT_H
562# include <sys/stat.h>
563#endif
564#ifdef STDC_HEADERS
565# include <stdlib.h>
566# include <stddef.h>
567#else
568# ifdef HAVE_STDLIB_H
569#  include <stdlib.h>
570# endif
571#endif
572#ifdef HAVE_STRING_H
573# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574#  include <memory.h>
575# endif
576# include <string.h>
577#endif
578#ifdef HAVE_STRINGS_H
579# include <strings.h>
580#endif
581#ifdef HAVE_INTTYPES_H
582# include <inttypes.h>
583#endif
584#ifdef HAVE_STDINT_H
585# include <stdint.h>
586#endif
587#ifdef HAVE_UNISTD_H
588# include <unistd.h>
589#endif"
590
591ac_subst_vars='LTLIBOBJS
592LIBOBJS
593BUILD_LDFLAGS
594BUILD_CFLAGS
595INTL_FLAGS
596DO_TEST_SUITE
597ET_DIR
598SS_DIR
599LDFLAG_STATIC
600root_sysconfdir
601root_libdir
602root_sbindir
603root_bindir
604root_prefix
605UNIX_CMT
606CYGWIN_CMT
607LINUX_CMT
608UNI_DIFF_OPTS
609SEM_INIT_LIB
610SOCKET_LIB
611SIZEOF_LONG_LONG
612SIZEOF_LONG
613SIZEOF_INT
614SIZEOF_SHORT
615BUILD_CC
616MAKEINFO
617STRIP
618AR
619LDCONFIG
620PERL
621SED
622AWK
623CHMOD
624RM
625CP
626MV
627LN_S
628LN
629ifNotGNUmake
630ifGNUmake
631BINARY_TYPE
632POSUB
633LTLIBINTL
634LIBINTL
635INTLLIBS
636INTL_LIBTOOL_SUFFIX_PREFIX
637INTLOBJS
638GENCAT
639INSTOBJEXT
640DATADIRNAME
641CATOBJEXT
642USE_INCLUDED_LIBINTL
643BUILD_INCLUDED_LIBINTL
644INTLBISON
645LTLIBICONV
646LIBICONV
647HAVE_WPRINTF
648HAVE_SNPRINTF
649HAVE_ASPRINTF
650HAVE_POSIX_PRINTF
651GLIBC21
652ALLOCA
653RANLIB
654MSGMERGE
655XGETTEXT
656GMSGFMT
657MSGFMT
658USE_NLS
659MKINSTALLDIRS
660INSTALL_DATA
661INSTALL_SCRIPT
662INSTALL_PROGRAM
663SET_MAKE
664VERSION
665PACKAGE
666GETTEXT_PACKAGE
667UUIDD_CMT
668E2INITRD_MAN
669E2INITRD_PROG
670FSCK_MAN
671FSCK_PROG
672RESIZER_CMT
673IMAGER_CMT
674DEBUGFS_CMT
675BLKID_CMT
676DEPPROFILED_LIBBLKID
677PROFILED_LIBBLKID
678DEPSTATIC_LIBBLKID
679STATIC_LIBBLKID
680DEPLIBBLKID
681LIBBLKID
682UUID_CMT
683DEPPROFILED_LIBUUID
684PROFILED_LIBUUID
685DEPSTATIC_LIBUUID
686STATIC_LIBUUID
687DEPLIBUUID
688LIBUUID
689PKG_CONFIG
690TEST_IO_CMT
691PRIVATE_LIBS_CMT
692LDFLAG_DYNAMIC
693PROFILED_LIB_EXT
694STATIC_LIB_EXT
695LIB_EXT
696CHECKER_CMT
697PROFILE_CMT
698BSDLIB_CMT
699ELF_CMT
700HTREE_CMT
701Q
702E
703MAINTAINER_CMT
704LINUX_INCLUDE
705EGREP
706GREP
707CPP
708DLOPEN_LIB
709OBJEXT
710EXEEXT
711ac_ct_CC
712CPPFLAGS
713LDFLAGS
714CFLAGS
715CC
716host_os
717host_vendor
718host_cpu
719host
720build_os
721build_vendor
722build_cpu
723build
724E2FSPROGS_PKGVER
725E2FSPROGS_VERSION
726E2FSPROGS_DAY
727E2FSPROGS_MONTH
728E2FSPROGS_YEAR
729target_alias
730host_alias
731build_alias
732LIBS
733ECHO_T
734ECHO_N
735ECHO_C
736DEFS
737mandir
738localedir
739libdir
740psdir
741pdfdir
742dvidir
743htmldir
744infodir
745docdir
746oldincludedir
747includedir
748localstatedir
749sharedstatedir
750sysconfdir
751datadir
752datarootdir
753libexecdir
754sbindir
755bindir
756program_transform_name
757prefix
758exec_prefix
759PACKAGE_URL
760PACKAGE_BUGREPORT
761PACKAGE_STRING
762PACKAGE_VERSION
763PACKAGE_TARNAME
764PACKAGE_NAME
765PATH_SEPARATOR
766SHELL'
767ac_subst_files='MCONFIG
768MAKEFILE_ELF
769MAKEFILE_BSDLIB
770MAKEFILE_PROFILE
771MAKEFILE_CHECKER
772MAKEFILE_LIBRARY
773ASM_TYPES_HEADER
774PUBLIC_CONFIG_HEADER'
775ac_user_opts='
776enable_option_checking
777with_diet_libc
778with_cc
779with_ccopts
780with_ldopts
781with_root_prefix
782enable_maintainer_mode
783enable_verbose_makecmds
784enable_compression
785enable_htree
786enable_elf_shlibs
787enable_bsd_shlibs
788enable_profile
789enable_checker
790enable_jbd_debug
791enable_blkid_debug
792enable_testio_debug
793enable_libuuid
794enable_libblkid
795enable_debugfs
796enable_imager
797enable_resizer
798enable_fsck
799enable_e2initrd_helper
800enable_tls
801enable_uuidd
802enable_nls
803with_gnu_ld
804enable_rpath
805with_libiconv_prefix
806with_included_gettext
807with_libintl_prefix
808'
809      ac_precious_vars='build_alias
810host_alias
811target_alias
812CC
813CFLAGS
814LDFLAGS
815LIBS
816CPPFLAGS
817CPP
818PKG_CONFIG'
819
820
821# Initialize some variables set by options.
822ac_init_help=
823ac_init_version=false
824ac_unrecognized_opts=
825ac_unrecognized_sep=
826# The variables have the same names as the options, with
827# dashes changed to underlines.
828cache_file=/dev/null
829exec_prefix=NONE
830no_create=
831no_recursion=
832prefix=NONE
833program_prefix=NONE
834program_suffix=NONE
835program_transform_name=s,x,x,
836silent=
837site=
838srcdir=
839verbose=
840x_includes=NONE
841x_libraries=NONE
842
843# Installation directory options.
844# These are left unexpanded so users can "make install exec_prefix=/foo"
845# and all the variables that are supposed to be based on exec_prefix
846# by default will actually change.
847# Use braces instead of parens because sh, perl, etc. also accept them.
848# (The list follows the same order as the GNU Coding Standards.)
849bindir='${exec_prefix}/bin'
850sbindir='${exec_prefix}/sbin'
851libexecdir='${exec_prefix}/libexec'
852datarootdir='${prefix}/share'
853datadir='${datarootdir}'
854sysconfdir='${prefix}/etc'
855sharedstatedir='${prefix}/com'
856localstatedir='${prefix}/var'
857includedir='${prefix}/include'
858oldincludedir='/usr/include'
859docdir='${datarootdir}/doc/${PACKAGE}'
860infodir='${datarootdir}/info'
861htmldir='${docdir}'
862dvidir='${docdir}'
863pdfdir='${docdir}'
864psdir='${docdir}'
865libdir='${exec_prefix}/lib'
866localedir='${datarootdir}/locale'
867mandir='${datarootdir}/man'
868
869ac_prev=
870ac_dashdash=
871for ac_option
872do
873  # If the previous option needs an argument, assign it.
874  if test -n "$ac_prev"; then
875    eval $ac_prev=\$ac_option
876    ac_prev=
877    continue
878  fi
879
880  case $ac_option in
881  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882  *)	ac_optarg=yes ;;
883  esac
884
885  # Accept the important Cygnus configure options, so we can diagnose typos.
886
887  case $ac_dashdash$ac_option in
888  --)
889    ac_dashdash=yes ;;
890
891  -bindir | --bindir | --bindi | --bind | --bin | --bi)
892    ac_prev=bindir ;;
893  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894    bindir=$ac_optarg ;;
895
896  -build | --build | --buil | --bui | --bu)
897    ac_prev=build_alias ;;
898  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899    build_alias=$ac_optarg ;;
900
901  -cache-file | --cache-file | --cache-fil | --cache-fi \
902  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903    ac_prev=cache_file ;;
904  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906    cache_file=$ac_optarg ;;
907
908  --config-cache | -C)
909    cache_file=config.cache ;;
910
911  -datadir | --datadir | --datadi | --datad)
912    ac_prev=datadir ;;
913  -datadir=* | --datadir=* | --datadi=* | --datad=*)
914    datadir=$ac_optarg ;;
915
916  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917  | --dataroo | --dataro | --datar)
918    ac_prev=datarootdir ;;
919  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921    datarootdir=$ac_optarg ;;
922
923  -disable-* | --disable-*)
924    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925    # Reject names that are not valid shell variable names.
926    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927      as_fn_error "invalid feature name: $ac_useropt"
928    ac_useropt_orig=$ac_useropt
929    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930    case $ac_user_opts in
931      *"
932"enable_$ac_useropt"
933"*) ;;
934      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935	 ac_unrecognized_sep=', ';;
936    esac
937    eval enable_$ac_useropt=no ;;
938
939  -docdir | --docdir | --docdi | --doc | --do)
940    ac_prev=docdir ;;
941  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942    docdir=$ac_optarg ;;
943
944  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945    ac_prev=dvidir ;;
946  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947    dvidir=$ac_optarg ;;
948
949  -enable-* | --enable-*)
950    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951    # Reject names that are not valid shell variable names.
952    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953      as_fn_error "invalid feature name: $ac_useropt"
954    ac_useropt_orig=$ac_useropt
955    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956    case $ac_user_opts in
957      *"
958"enable_$ac_useropt"
959"*) ;;
960      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961	 ac_unrecognized_sep=', ';;
962    esac
963    eval enable_$ac_useropt=\$ac_optarg ;;
964
965  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967  | --exec | --exe | --ex)
968    ac_prev=exec_prefix ;;
969  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971  | --exec=* | --exe=* | --ex=*)
972    exec_prefix=$ac_optarg ;;
973
974  -gas | --gas | --ga | --g)
975    # Obsolete; use --with-gas.
976    with_gas=yes ;;
977
978  -help | --help | --hel | --he | -h)
979    ac_init_help=long ;;
980  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981    ac_init_help=recursive ;;
982  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983    ac_init_help=short ;;
984
985  -host | --host | --hos | --ho)
986    ac_prev=host_alias ;;
987  -host=* | --host=* | --hos=* | --ho=*)
988    host_alias=$ac_optarg ;;
989
990  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991    ac_prev=htmldir ;;
992  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993  | --ht=*)
994    htmldir=$ac_optarg ;;
995
996  -includedir | --includedir | --includedi | --included | --include \
997  | --includ | --inclu | --incl | --inc)
998    ac_prev=includedir ;;
999  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000  | --includ=* | --inclu=* | --incl=* | --inc=*)
1001    includedir=$ac_optarg ;;
1002
1003  -infodir | --infodir | --infodi | --infod | --info | --inf)
1004    ac_prev=infodir ;;
1005  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006    infodir=$ac_optarg ;;
1007
1008  -libdir | --libdir | --libdi | --libd)
1009    ac_prev=libdir ;;
1010  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011    libdir=$ac_optarg ;;
1012
1013  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014  | --libexe | --libex | --libe)
1015    ac_prev=libexecdir ;;
1016  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017  | --libexe=* | --libex=* | --libe=*)
1018    libexecdir=$ac_optarg ;;
1019
1020  -localedir | --localedir | --localedi | --localed | --locale)
1021    ac_prev=localedir ;;
1022  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023    localedir=$ac_optarg ;;
1024
1025  -localstatedir | --localstatedir | --localstatedi | --localstated \
1026  | --localstate | --localstat | --localsta | --localst | --locals)
1027    ac_prev=localstatedir ;;
1028  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030    localstatedir=$ac_optarg ;;
1031
1032  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033    ac_prev=mandir ;;
1034  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035    mandir=$ac_optarg ;;
1036
1037  -nfp | --nfp | --nf)
1038    # Obsolete; use --without-fp.
1039    with_fp=no ;;
1040
1041  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042  | --no-cr | --no-c | -n)
1043    no_create=yes ;;
1044
1045  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047    no_recursion=yes ;;
1048
1049  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051  | --oldin | --oldi | --old | --ol | --o)
1052    ac_prev=oldincludedir ;;
1053  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056    oldincludedir=$ac_optarg ;;
1057
1058  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059    ac_prev=prefix ;;
1060  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061    prefix=$ac_optarg ;;
1062
1063  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064  | --program-pre | --program-pr | --program-p)
1065    ac_prev=program_prefix ;;
1066  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068    program_prefix=$ac_optarg ;;
1069
1070  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071  | --program-suf | --program-su | --program-s)
1072    ac_prev=program_suffix ;;
1073  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075    program_suffix=$ac_optarg ;;
1076
1077  -program-transform-name | --program-transform-name \
1078  | --program-transform-nam | --program-transform-na \
1079  | --program-transform-n | --program-transform- \
1080  | --program-transform | --program-transfor \
1081  | --program-transfo | --program-transf \
1082  | --program-trans | --program-tran \
1083  | --progr-tra | --program-tr | --program-t)
1084    ac_prev=program_transform_name ;;
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    program_transform_name=$ac_optarg ;;
1093
1094  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095    ac_prev=pdfdir ;;
1096  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097    pdfdir=$ac_optarg ;;
1098
1099  -psdir | --psdir | --psdi | --psd | --ps)
1100    ac_prev=psdir ;;
1101  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102    psdir=$ac_optarg ;;
1103
1104  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105  | -silent | --silent | --silen | --sile | --sil)
1106    silent=yes ;;
1107
1108  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109    ac_prev=sbindir ;;
1110  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111  | --sbi=* | --sb=*)
1112    sbindir=$ac_optarg ;;
1113
1114  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1115  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116  | --sharedst | --shareds | --shared | --share | --shar \
1117  | --sha | --sh)
1118    ac_prev=sharedstatedir ;;
1119  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122  | --sha=* | --sh=*)
1123    sharedstatedir=$ac_optarg ;;
1124
1125  -site | --site | --sit)
1126    ac_prev=site ;;
1127  -site=* | --site=* | --sit=*)
1128    site=$ac_optarg ;;
1129
1130  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131    ac_prev=srcdir ;;
1132  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133    srcdir=$ac_optarg ;;
1134
1135  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136  | --syscon | --sysco | --sysc | --sys | --sy)
1137    ac_prev=sysconfdir ;;
1138  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1140    sysconfdir=$ac_optarg ;;
1141
1142  -target | --target | --targe | --targ | --tar | --ta | --t)
1143    ac_prev=target_alias ;;
1144  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1145    target_alias=$ac_optarg ;;
1146
1147  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1148    verbose=yes ;;
1149
1150  -version | --version | --versio | --versi | --vers | -V)
1151    ac_init_version=: ;;
1152
1153  -with-* | --with-*)
1154    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155    # Reject names that are not valid shell variable names.
1156    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157      as_fn_error "invalid package name: $ac_useropt"
1158    ac_useropt_orig=$ac_useropt
1159    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160    case $ac_user_opts in
1161      *"
1162"with_$ac_useropt"
1163"*) ;;
1164      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165	 ac_unrecognized_sep=', ';;
1166    esac
1167    eval with_$ac_useropt=\$ac_optarg ;;
1168
1169  -without-* | --without-*)
1170    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171    # Reject names that are not valid shell variable names.
1172    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173      as_fn_error "invalid package name: $ac_useropt"
1174    ac_useropt_orig=$ac_useropt
1175    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176    case $ac_user_opts in
1177      *"
1178"with_$ac_useropt"
1179"*) ;;
1180      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1181	 ac_unrecognized_sep=', ';;
1182    esac
1183    eval with_$ac_useropt=no ;;
1184
1185  --x)
1186    # Obsolete; use --with-x.
1187    with_x=yes ;;
1188
1189  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1190  | --x-incl | --x-inc | --x-in | --x-i)
1191    ac_prev=x_includes ;;
1192  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1193  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1194    x_includes=$ac_optarg ;;
1195
1196  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1197  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1198    ac_prev=x_libraries ;;
1199  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1200  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1201    x_libraries=$ac_optarg ;;
1202
1203  -*) as_fn_error "unrecognized option: \`$ac_option'
1204Try \`$0 --help' for more information."
1205    ;;
1206
1207  *=*)
1208    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1209    # Reject names that are not valid shell variable names.
1210    case $ac_envvar in #(
1211      '' | [0-9]* | *[!_$as_cr_alnum]* )
1212      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1213    esac
1214    eval $ac_envvar=\$ac_optarg
1215    export $ac_envvar ;;
1216
1217  *)
1218    # FIXME: should be removed in autoconf 3.0.
1219    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1220    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1222    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1223    ;;
1224
1225  esac
1226done
1227
1228if test -n "$ac_prev"; then
1229  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1230  as_fn_error "missing argument to $ac_option"
1231fi
1232
1233if test -n "$ac_unrecognized_opts"; then
1234  case $enable_option_checking in
1235    no) ;;
1236    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1237    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1238  esac
1239fi
1240
1241# Check all directory arguments for consistency.
1242for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1243		datadir sysconfdir sharedstatedir localstatedir includedir \
1244		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1245		libdir localedir mandir
1246do
1247  eval ac_val=\$$ac_var
1248  # Remove trailing slashes.
1249  case $ac_val in
1250    */ )
1251      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1252      eval $ac_var=\$ac_val;;
1253  esac
1254  # Be sure to have absolute directory names.
1255  case $ac_val in
1256    [\\/$]* | ?:[\\/]* )  continue;;
1257    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1258  esac
1259  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1260done
1261
1262# There might be people who depend on the old broken behavior: `$host'
1263# used to hold the argument of --host etc.
1264# FIXME: To remove some day.
1265build=$build_alias
1266host=$host_alias
1267target=$target_alias
1268
1269# FIXME: To remove some day.
1270if test "x$host_alias" != x; then
1271  if test "x$build_alias" = x; then
1272    cross_compiling=maybe
1273    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1274    If a cross compiler is detected then cross compile mode will be used." >&2
1275  elif test "x$build_alias" != "x$host_alias"; then
1276    cross_compiling=yes
1277  fi
1278fi
1279
1280ac_tool_prefix=
1281test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282
1283test "$silent" = yes && exec 6>/dev/null
1284
1285
1286ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287ac_ls_di=`ls -di .` &&
1288ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289  as_fn_error "working directory cannot be determined"
1290test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291  as_fn_error "pwd does not report name of working directory"
1292
1293
1294# Find the source files, if location was not specified.
1295if test -z "$srcdir"; then
1296  ac_srcdir_defaulted=yes
1297  # Try the directory containing this script, then the parent directory.
1298  ac_confdir=`$as_dirname -- "$as_myself" ||
1299$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300	 X"$as_myself" : 'X\(//\)[^/]' \| \
1301	 X"$as_myself" : 'X\(//\)$' \| \
1302	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303$as_echo X"$as_myself" |
1304    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305	    s//\1/
1306	    q
1307	  }
1308	  /^X\(\/\/\)[^/].*/{
1309	    s//\1/
1310	    q
1311	  }
1312	  /^X\(\/\/\)$/{
1313	    s//\1/
1314	    q
1315	  }
1316	  /^X\(\/\).*/{
1317	    s//\1/
1318	    q
1319	  }
1320	  s/.*/./; q'`
1321  srcdir=$ac_confdir
1322  if test ! -r "$srcdir/$ac_unique_file"; then
1323    srcdir=..
1324  fi
1325else
1326  ac_srcdir_defaulted=no
1327fi
1328if test ! -r "$srcdir/$ac_unique_file"; then
1329  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1331fi
1332ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333ac_abs_confdir=`(
1334	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1335	pwd)`
1336# When building in place, set srcdir=.
1337if test "$ac_abs_confdir" = "$ac_pwd"; then
1338  srcdir=.
1339fi
1340# Remove unnecessary trailing slashes from srcdir.
1341# Double slashes in file names in object file debugging info
1342# mess up M-x gdb in Emacs.
1343case $srcdir in
1344*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345esac
1346for ac_var in $ac_precious_vars; do
1347  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348  eval ac_env_${ac_var}_value=\$${ac_var}
1349  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351done
1352
1353#
1354# Report the --help message.
1355#
1356if test "$ac_init_help" = "long"; then
1357  # Omit some internal or obsolete options to make the list less imposing.
1358  # This message is too long to be a string in the A/UX 3.1 sh.
1359  cat <<_ACEOF
1360\`configure' configures this package to adapt to many kinds of systems.
1361
1362Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365VAR=VALUE.  See below for descriptions of some of the useful variables.
1366
1367Defaults for the options are specified in brackets.
1368
1369Configuration:
1370  -h, --help              display this help and exit
1371      --help=short        display options specific to this package
1372      --help=recursive    display the short help of all the included packages
1373  -V, --version           display version information and exit
1374  -q, --quiet, --silent   do not print \`checking...' messages
1375      --cache-file=FILE   cache test results in FILE [disabled]
1376  -C, --config-cache      alias for \`--cache-file=config.cache'
1377  -n, --no-create         do not create output files
1378      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1379
1380Installation directories:
1381  --prefix=PREFIX         install architecture-independent files in PREFIX
1382                          [$ac_default_prefix]
1383  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1384                          [PREFIX]
1385
1386By default, \`make install' will install all the files in
1387\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1388an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389for instance \`--prefix=\$HOME'.
1390
1391For better control, use the options below.
1392
1393Fine tuning of the installation directories:
1394  --bindir=DIR            user executables [EPREFIX/bin]
1395  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1396  --libexecdir=DIR        program executables [EPREFIX/libexec]
1397  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1398  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1399  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1400  --libdir=DIR            object code libraries [EPREFIX/lib]
1401  --includedir=DIR        C header files [PREFIX/include]
1402  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1403  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1404  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1405  --infodir=DIR           info documentation [DATAROOTDIR/info]
1406  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1407  --mandir=DIR            man documentation [DATAROOTDIR/man]
1408  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1409  --htmldir=DIR           html documentation [DOCDIR]
1410  --dvidir=DIR            dvi documentation [DOCDIR]
1411  --pdfdir=DIR            pdf documentation [DOCDIR]
1412  --psdir=DIR             ps documentation [DOCDIR]
1413_ACEOF
1414
1415  cat <<\_ACEOF
1416
1417System types:
1418  --build=BUILD     configure for building on BUILD [guessed]
1419  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1420_ACEOF
1421fi
1422
1423if test -n "$ac_init_help"; then
1424
1425  cat <<\_ACEOF
1426
1427Optional Features:
1428  --disable-option-checking  ignore unrecognized --enable/--with options
1429  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1430  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1431  --enable-maintainer-mode enable makefile rules useful for maintainers
1432  --enable-verbose-makecmds  enable verbose make command output
1433  --enable-compression	  enable EXPERIMENTAL compression support
1434  --enable-htree      	  enable EXPERIMENTAL htree directory support
1435  --enable-elf-shlibs	  select ELF shared libraries
1436  --enable-bsd-shlibs	  select BSD shared libraries
1437  --enable-profile	  build profiling libraries
1438  --enable-checker	  build checker libraries
1439  --enable-jbd-debug  	  enable journal debugging
1440  --enable-blkid-debug    enable blkid debugging
1441  --disable-testio-debug  disable the use of the test I/O manager for debugging
1442  --disable-libuuid	  do not build private uuid library
1443  --disable-libblkid	  do not build private blkid library
1444  --disable-debugfs   	  disable support of debugfs program
1445  --disable-imager   	  disable support of e2image program
1446  --disable-resizer   	  disable support of e2resize program
1447  --enable-fsck           build fsck wrapper program
1448  --enable-e2initrd-helper build e2initrd-helper program
1449  --disable-tls           disable use of thread local support
1450  --disable-uuidd         disable building the uuid daemon
1451  --disable-nls           do not use Native Language Support
1452  --disable-rpath         do not hardcode runtime library paths
1453
1454Optional Packages:
1455  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1456  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1457  --with-diet-libc        use diet libc
1458  --with-cc               no longer supported, use CC= instead
1459  --with-ccopts           no longer supported, use CFLAGS= instead
1460  --with-ldopts           no longer supported, use LDFLAGS= instead
1461  --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1462  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1463  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1464  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1465  --with-included-gettext use the GNU gettext library included here
1466  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1467  --without-libintl-prefix     don't search for libintl in includedir and libdir
1468
1469Some influential environment variables:
1470  CC          C compiler command
1471  CFLAGS      C compiler flags
1472  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1473              nonstandard directory <lib dir>
1474  LIBS        libraries to pass to the linker, e.g. -l<library>
1475  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1476              you have headers in a nonstandard directory <include dir>
1477  CPP         C preprocessor
1478  PKG_CONFIG  path to pkg-config utility
1479
1480Use these variables to override the choices made by `configure' or to help
1481it to find libraries and programs with nonstandard names/locations.
1482
1483Report bugs to the package provider.
1484_ACEOF
1485ac_status=$?
1486fi
1487
1488if test "$ac_init_help" = "recursive"; then
1489  # If there are subdirs, report their specific --help.
1490  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1491    test -d "$ac_dir" ||
1492      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1493      continue
1494    ac_builddir=.
1495
1496case "$ac_dir" in
1497.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498*)
1499  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1500  # A ".." for each directory in $ac_dir_suffix.
1501  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1502  case $ac_top_builddir_sub in
1503  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1505  esac ;;
1506esac
1507ac_abs_top_builddir=$ac_pwd
1508ac_abs_builddir=$ac_pwd$ac_dir_suffix
1509# for backward compatibility:
1510ac_top_builddir=$ac_top_build_prefix
1511
1512case $srcdir in
1513  .)  # We are building in place.
1514    ac_srcdir=.
1515    ac_top_srcdir=$ac_top_builddir_sub
1516    ac_abs_top_srcdir=$ac_pwd ;;
1517  [\\/]* | ?:[\\/]* )  # Absolute name.
1518    ac_srcdir=$srcdir$ac_dir_suffix;
1519    ac_top_srcdir=$srcdir
1520    ac_abs_top_srcdir=$srcdir ;;
1521  *) # Relative name.
1522    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1523    ac_top_srcdir=$ac_top_build_prefix$srcdir
1524    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1525esac
1526ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1527
1528    cd "$ac_dir" || { ac_status=$?; continue; }
1529    # Check for guested configure.
1530    if test -f "$ac_srcdir/configure.gnu"; then
1531      echo &&
1532      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1533    elif test -f "$ac_srcdir/configure"; then
1534      echo &&
1535      $SHELL "$ac_srcdir/configure" --help=recursive
1536    else
1537      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1538    fi || ac_status=$?
1539    cd "$ac_pwd" || { ac_status=$?; break; }
1540  done
1541fi
1542
1543test -n "$ac_init_help" && exit $ac_status
1544if $ac_init_version; then
1545  cat <<\_ACEOF
1546configure
1547generated by GNU Autoconf 2.64
1548
1549Copyright (C) 2009 Free Software Foundation, Inc.
1550This configure script is free software; the Free Software Foundation
1551gives unlimited permission to copy, distribute and modify it.
1552_ACEOF
1553  exit
1554fi
1555
1556## ------------------------ ##
1557## Autoconf initialization. ##
1558## ------------------------ ##
1559
1560# ac_fn_c_try_compile LINENO
1561# --------------------------
1562# Try to compile conftest.$ac_ext, and return whether this succeeded.
1563ac_fn_c_try_compile ()
1564{
1565  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566  rm -f conftest.$ac_objext
1567  if { { ac_try="$ac_compile"
1568case "(($ac_try" in
1569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570  *) ac_try_echo=$ac_try;;
1571esac
1572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573$as_echo "$ac_try_echo"; } >&5
1574  (eval "$ac_compile") 2>conftest.err
1575  ac_status=$?
1576  if test -s conftest.err; then
1577    grep -v '^ *+' conftest.err >conftest.er1
1578    cat conftest.er1 >&5
1579    mv -f conftest.er1 conftest.err
1580  fi
1581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582  test $ac_status = 0; } && {
1583	 test -z "$ac_c_werror_flag" ||
1584	 test ! -s conftest.err
1585       } && test -s conftest.$ac_objext; then :
1586  ac_retval=0
1587else
1588  $as_echo "$as_me: failed program was:" >&5
1589sed 's/^/| /' conftest.$ac_ext >&5
1590
1591	ac_retval=1
1592fi
1593  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1594  return $ac_retval
1595
1596} # ac_fn_c_try_compile
1597
1598# ac_fn_c_try_link LINENO
1599# -----------------------
1600# Try to link conftest.$ac_ext, and return whether this succeeded.
1601ac_fn_c_try_link ()
1602{
1603  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604  rm -f conftest.$ac_objext conftest$ac_exeext
1605  if { { ac_try="$ac_link"
1606case "(($ac_try" in
1607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608  *) ac_try_echo=$ac_try;;
1609esac
1610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611$as_echo "$ac_try_echo"; } >&5
1612  (eval "$ac_link") 2>conftest.err
1613  ac_status=$?
1614  if test -s conftest.err; then
1615    grep -v '^ *+' conftest.err >conftest.er1
1616    cat conftest.er1 >&5
1617    mv -f conftest.er1 conftest.err
1618  fi
1619  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620  test $ac_status = 0; } && {
1621	 test -z "$ac_c_werror_flag" ||
1622	 test ! -s conftest.err
1623       } && test -s conftest$ac_exeext && {
1624	 test "$cross_compiling" = yes ||
1625	 $as_test_x conftest$ac_exeext
1626       }; then :
1627  ac_retval=0
1628else
1629  $as_echo "$as_me: failed program was:" >&5
1630sed 's/^/| /' conftest.$ac_ext >&5
1631
1632	ac_retval=1
1633fi
1634  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1635  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1636  # interfere with the next link command; also delete a directory that is
1637  # left behind by Apple's compiler.  We do this before executing the actions.
1638  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1639  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1640  return $ac_retval
1641
1642} # ac_fn_c_try_link
1643
1644# ac_fn_c_try_cpp LINENO
1645# ----------------------
1646# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1647ac_fn_c_try_cpp ()
1648{
1649  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650  if { { ac_try="$ac_cpp conftest.$ac_ext"
1651case "(($ac_try" in
1652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653  *) ac_try_echo=$ac_try;;
1654esac
1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656$as_echo "$ac_try_echo"; } >&5
1657  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1658  ac_status=$?
1659  if test -s conftest.err; then
1660    grep -v '^ *+' conftest.err >conftest.er1
1661    cat conftest.er1 >&5
1662    mv -f conftest.er1 conftest.err
1663  fi
1664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665  test $ac_status = 0; } >/dev/null && {
1666	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1667	 test ! -s conftest.err
1668       }; then :
1669  ac_retval=0
1670else
1671  $as_echo "$as_me: failed program was:" >&5
1672sed 's/^/| /' conftest.$ac_ext >&5
1673
1674    ac_retval=1
1675fi
1676  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1677  return $ac_retval
1678
1679} # ac_fn_c_try_cpp
1680
1681# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1682# -------------------------------------------------------
1683# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1684# the include files in INCLUDES and setting the cache variable VAR
1685# accordingly.
1686ac_fn_c_check_header_mongrel ()
1687{
1688  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1690  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691$as_echo_n "checking for $2... " >&6; }
1692if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1693  $as_echo_n "(cached) " >&6
1694fi
1695eval ac_res=\$$3
1696	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1697$as_echo "$ac_res" >&6; }
1698else
1699  # Is the header compilable?
1700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1701$as_echo_n "checking $2 usability... " >&6; }
1702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703/* end confdefs.h.  */
1704$4
1705#include <$2>
1706_ACEOF
1707if ac_fn_c_try_compile "$LINENO"; then :
1708  ac_header_compiler=yes
1709else
1710  ac_header_compiler=no
1711fi
1712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1714$as_echo "$ac_header_compiler" >&6; }
1715
1716# Is the header present?
1717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1718$as_echo_n "checking $2 presence... " >&6; }
1719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720/* end confdefs.h.  */
1721#include <$2>
1722_ACEOF
1723if ac_fn_c_try_cpp "$LINENO"; then :
1724  ac_header_preproc=yes
1725else
1726  ac_header_preproc=no
1727fi
1728rm -f conftest.err conftest.$ac_ext
1729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1730$as_echo "$ac_header_preproc" >&6; }
1731
1732# So?  What about this header?
1733case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1734  yes:no: )
1735    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1736$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1737    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1738$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1739    ;;
1740  no:yes:* )
1741    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1742$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1743    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1744$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1745    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1746$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1747    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1748$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1749    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1750$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1751    ;;
1752esac
1753  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754$as_echo_n "checking for $2... " >&6; }
1755if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1756  $as_echo_n "(cached) " >&6
1757else
1758  eval "$3=\$ac_header_compiler"
1759fi
1760eval ac_res=\$$3
1761	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762$as_echo "$ac_res" >&6; }
1763fi
1764  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1765
1766} # ac_fn_c_check_header_mongrel
1767
1768# ac_fn_c_try_run LINENO
1769# ----------------------
1770# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1771# that executables *can* be run.
1772ac_fn_c_try_run ()
1773{
1774  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775  if { { ac_try="$ac_link"
1776case "(($ac_try" in
1777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778  *) ac_try_echo=$ac_try;;
1779esac
1780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781$as_echo "$ac_try_echo"; } >&5
1782  (eval "$ac_link") 2>&5
1783  ac_status=$?
1784  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1786  { { case "(($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_try") 2>&5
1793  ac_status=$?
1794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795  test $ac_status = 0; }; }; then :
1796  ac_retval=0
1797else
1798  $as_echo "$as_me: program exited with status $ac_status" >&5
1799       $as_echo "$as_me: failed program was:" >&5
1800sed 's/^/| /' conftest.$ac_ext >&5
1801
1802       ac_retval=$ac_status
1803fi
1804  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1805  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806  return $ac_retval
1807
1808} # ac_fn_c_try_run
1809
1810# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1811# -------------------------------------------------------
1812# Tests whether HEADER exists and can be compiled using the include files in
1813# INCLUDES, setting the cache variable VAR accordingly.
1814ac_fn_c_check_header_compile ()
1815{
1816  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818$as_echo_n "checking for $2... " >&6; }
1819if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1820  $as_echo_n "(cached) " >&6
1821else
1822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823/* end confdefs.h.  */
1824$4
1825#include <$2>
1826_ACEOF
1827if ac_fn_c_try_compile "$LINENO"; then :
1828  eval "$3=yes"
1829else
1830  eval "$3=no"
1831fi
1832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1833fi
1834eval ac_res=\$$3
1835	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836$as_echo "$ac_res" >&6; }
1837  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838
1839} # ac_fn_c_check_header_compile
1840
1841# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1842# -------------------------------------------
1843# Tests whether TYPE exists after having included INCLUDES, setting cache
1844# variable VAR accordingly.
1845ac_fn_c_check_type ()
1846{
1847  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849$as_echo_n "checking for $2... " >&6; }
1850if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1851  $as_echo_n "(cached) " >&6
1852else
1853  eval "$3=no"
1854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855/* end confdefs.h.  */
1856$4
1857int
1858main ()
1859{
1860if (sizeof ($2))
1861	 return 0;
1862  ;
1863  return 0;
1864}
1865_ACEOF
1866if ac_fn_c_try_compile "$LINENO"; then :
1867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868/* end confdefs.h.  */
1869$4
1870int
1871main ()
1872{
1873if (sizeof (($2)))
1874	    return 0;
1875  ;
1876  return 0;
1877}
1878_ACEOF
1879if ac_fn_c_try_compile "$LINENO"; then :
1880
1881else
1882  eval "$3=yes"
1883fi
1884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1885fi
1886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1887fi
1888eval ac_res=\$$3
1889	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890$as_echo "$ac_res" >&6; }
1891  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892
1893} # ac_fn_c_check_type
1894
1895# ac_fn_c_check_func LINENO FUNC VAR
1896# ----------------------------------
1897# Tests whether FUNC exists, setting the cache variable VAR accordingly
1898ac_fn_c_check_func ()
1899{
1900  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902$as_echo_n "checking for $2... " >&6; }
1903if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1904  $as_echo_n "(cached) " >&6
1905else
1906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907/* end confdefs.h.  */
1908/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1909   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1910#define $2 innocuous_$2
1911
1912/* System header to define __stub macros and hopefully few prototypes,
1913    which can conflict with char $2 (); below.
1914    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1915    <limits.h> exists even on freestanding compilers.  */
1916
1917#ifdef __STDC__
1918# include <limits.h>
1919#else
1920# include <assert.h>
1921#endif
1922
1923#undef $2
1924
1925/* Override any GCC internal prototype to avoid an error.
1926   Use char because int might match the return type of a GCC
1927   builtin and then its argument prototype would still apply.  */
1928#ifdef __cplusplus
1929extern "C"
1930#endif
1931char $2 ();
1932/* The GNU C library defines this for functions which it implements
1933    to always fail with ENOSYS.  Some functions are actually named
1934    something starting with __ and the normal name is an alias.  */
1935#if defined __stub_$2 || defined __stub___$2
1936choke me
1937#endif
1938
1939int
1940main ()
1941{
1942return $2 ();
1943  ;
1944  return 0;
1945}
1946_ACEOF
1947if ac_fn_c_try_link "$LINENO"; then :
1948  eval "$3=yes"
1949else
1950  eval "$3=no"
1951fi
1952rm -f core conftest.err conftest.$ac_objext \
1953    conftest$ac_exeext conftest.$ac_ext
1954fi
1955eval ac_res=\$$3
1956	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957$as_echo "$ac_res" >&6; }
1958  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1959
1960} # ac_fn_c_check_func
1961
1962# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1963# --------------------------------------------
1964# Tries to find the compile-time value of EXPR in a program that includes
1965# INCLUDES, setting VAR accordingly. Returns whether the value could be
1966# computed
1967ac_fn_c_compute_int ()
1968{
1969  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970  if test "$cross_compiling" = yes; then
1971    # Depending upon the size, compute the lo and hi bounds.
1972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973/* end confdefs.h.  */
1974$4
1975int
1976main ()
1977{
1978static int test_array [1 - 2 * !(($2) >= 0)];
1979test_array [0] = 0
1980
1981  ;
1982  return 0;
1983}
1984_ACEOF
1985if ac_fn_c_try_compile "$LINENO"; then :
1986  ac_lo=0 ac_mid=0
1987  while :; do
1988    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989/* end confdefs.h.  */
1990$4
1991int
1992main ()
1993{
1994static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1995test_array [0] = 0
1996
1997  ;
1998  return 0;
1999}
2000_ACEOF
2001if ac_fn_c_try_compile "$LINENO"; then :
2002  ac_hi=$ac_mid; break
2003else
2004  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2005			if test $ac_lo -le $ac_mid; then
2006			  ac_lo= ac_hi=
2007			  break
2008			fi
2009			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2010fi
2011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012  done
2013else
2014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015/* end confdefs.h.  */
2016$4
2017int
2018main ()
2019{
2020static int test_array [1 - 2 * !(($2) < 0)];
2021test_array [0] = 0
2022
2023  ;
2024  return 0;
2025}
2026_ACEOF
2027if ac_fn_c_try_compile "$LINENO"; then :
2028  ac_hi=-1 ac_mid=-1
2029  while :; do
2030    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031/* end confdefs.h.  */
2032$4
2033int
2034main ()
2035{
2036static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2037test_array [0] = 0
2038
2039  ;
2040  return 0;
2041}
2042_ACEOF
2043if ac_fn_c_try_compile "$LINENO"; then :
2044  ac_lo=$ac_mid; break
2045else
2046  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2047			if test $ac_mid -le $ac_hi; then
2048			  ac_lo= ac_hi=
2049			  break
2050			fi
2051			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2052fi
2053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054  done
2055else
2056  ac_lo= ac_hi=
2057fi
2058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059fi
2060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2061# Binary search between lo and hi bounds.
2062while test "x$ac_lo" != "x$ac_hi"; do
2063  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065/* end confdefs.h.  */
2066$4
2067int
2068main ()
2069{
2070static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2071test_array [0] = 0
2072
2073  ;
2074  return 0;
2075}
2076_ACEOF
2077if ac_fn_c_try_compile "$LINENO"; then :
2078  ac_hi=$ac_mid
2079else
2080  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2081fi
2082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083done
2084case $ac_lo in #((
2085?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2086'') ac_retval=1 ;;
2087esac
2088  else
2089    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090/* end confdefs.h.  */
2091$4
2092static long int longval () { return $2; }
2093static unsigned long int ulongval () { return $2; }
2094#include <stdio.h>
2095#include <stdlib.h>
2096int
2097main ()
2098{
2099
2100  FILE *f = fopen ("conftest.val", "w");
2101  if (! f)
2102    return 1;
2103  if (($2) < 0)
2104    {
2105      long int i = longval ();
2106      if (i != ($2))
2107	return 1;
2108      fprintf (f, "%ld", i);
2109    }
2110  else
2111    {
2112      unsigned long int i = ulongval ();
2113      if (i != ($2))
2114	return 1;
2115      fprintf (f, "%lu", i);
2116    }
2117  /* Do not output a trailing newline, as this causes \r\n confusion
2118     on some platforms.  */
2119  return ferror (f) || fclose (f) != 0;
2120
2121  ;
2122  return 0;
2123}
2124_ACEOF
2125if ac_fn_c_try_run "$LINENO"; then :
2126  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2127else
2128  ac_retval=1
2129fi
2130rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2131  conftest.$ac_objext conftest.beam conftest.$ac_ext
2132rm -f conftest.val
2133
2134  fi
2135  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2136  return $ac_retval
2137
2138} # ac_fn_c_compute_int
2139
2140# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2141# ----------------------------------------------------
2142# Tries to find if the field MEMBER exists in type AGGR, after including
2143# INCLUDES, setting cache variable VAR accordingly.
2144ac_fn_c_check_member ()
2145{
2146  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2148$as_echo_n "checking for $2.$3... " >&6; }
2149if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2150  $as_echo_n "(cached) " >&6
2151else
2152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153/* end confdefs.h.  */
2154$5
2155int
2156main ()
2157{
2158static $2 ac_aggr;
2159if (ac_aggr.$3)
2160return 0;
2161  ;
2162  return 0;
2163}
2164_ACEOF
2165if ac_fn_c_try_compile "$LINENO"; then :
2166  eval "$4=yes"
2167else
2168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169/* end confdefs.h.  */
2170$5
2171int
2172main ()
2173{
2174static $2 ac_aggr;
2175if (sizeof ac_aggr.$3)
2176return 0;
2177  ;
2178  return 0;
2179}
2180_ACEOF
2181if ac_fn_c_try_compile "$LINENO"; then :
2182  eval "$4=yes"
2183else
2184  eval "$4=no"
2185fi
2186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187fi
2188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189fi
2190eval ac_res=\$$4
2191	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2192$as_echo "$ac_res" >&6; }
2193  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2194
2195} # ac_fn_c_check_member
2196
2197# ac_fn_c_check_decl LINENO SYMBOL VAR
2198# ------------------------------------
2199# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2200ac_fn_c_check_decl ()
2201{
2202  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2203  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2204$as_echo_n "checking whether $2 is declared... " >&6; }
2205if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2206  $as_echo_n "(cached) " >&6
2207else
2208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209/* end confdefs.h.  */
2210$4
2211int
2212main ()
2213{
2214#ifndef $2
2215  (void) $2;
2216#endif
2217
2218  ;
2219  return 0;
2220}
2221_ACEOF
2222if ac_fn_c_try_compile "$LINENO"; then :
2223  eval "$3=yes"
2224else
2225  eval "$3=no"
2226fi
2227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2228fi
2229eval ac_res=\$$3
2230	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2231$as_echo "$ac_res" >&6; }
2232  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2233
2234} # ac_fn_c_check_decl
2235cat >config.log <<_ACEOF
2236This file contains any messages produced by compilers while
2237running configure, to aid debugging if configure makes a mistake.
2238
2239It was created by $as_me, which was
2240generated by GNU Autoconf 2.64.  Invocation command line was
2241
2242  $ $0 $@
2243
2244_ACEOF
2245exec 5>>config.log
2246{
2247cat <<_ASUNAME
2248## --------- ##
2249## Platform. ##
2250## --------- ##
2251
2252hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2253uname -m = `(uname -m) 2>/dev/null || echo unknown`
2254uname -r = `(uname -r) 2>/dev/null || echo unknown`
2255uname -s = `(uname -s) 2>/dev/null || echo unknown`
2256uname -v = `(uname -v) 2>/dev/null || echo unknown`
2257
2258/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2259/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2260
2261/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2262/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2263/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2264/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2265/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2266/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2267/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2268
2269_ASUNAME
2270
2271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272for as_dir in $PATH
2273do
2274  IFS=$as_save_IFS
2275  test -z "$as_dir" && as_dir=.
2276    $as_echo "PATH: $as_dir"
2277  done
2278IFS=$as_save_IFS
2279
2280} >&5
2281
2282cat >&5 <<_ACEOF
2283
2284
2285## ----------- ##
2286## Core tests. ##
2287## ----------- ##
2288
2289_ACEOF
2290
2291
2292# Keep a trace of the command line.
2293# Strip out --no-create and --no-recursion so they do not pile up.
2294# Strip out --silent because we don't want to record it for future runs.
2295# Also quote any args containing shell meta-characters.
2296# Make two passes to allow for proper duplicate-argument suppression.
2297ac_configure_args=
2298ac_configure_args0=
2299ac_configure_args1=
2300ac_must_keep_next=false
2301for ac_pass in 1 2
2302do
2303  for ac_arg
2304  do
2305    case $ac_arg in
2306    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2307    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2308    | -silent | --silent | --silen | --sile | --sil)
2309      continue ;;
2310    *\'*)
2311      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2312    esac
2313    case $ac_pass in
2314    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2315    2)
2316      as_fn_append ac_configure_args1 " '$ac_arg'"
2317      if test $ac_must_keep_next = true; then
2318	ac_must_keep_next=false # Got value, back to normal.
2319      else
2320	case $ac_arg in
2321	  *=* | --config-cache | -C | -disable-* | --disable-* \
2322	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2323	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2324	  | -with-* | --with-* | -without-* | --without-* | --x)
2325	    case "$ac_configure_args0 " in
2326	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2327	    esac
2328	    ;;
2329	  -* ) ac_must_keep_next=true ;;
2330	esac
2331      fi
2332      as_fn_append ac_configure_args " '$ac_arg'"
2333      ;;
2334    esac
2335  done
2336done
2337{ ac_configure_args0=; unset ac_configure_args0;}
2338{ ac_configure_args1=; unset ac_configure_args1;}
2339
2340# When interrupted or exit'd, cleanup temporary files, and complete
2341# config.log.  We remove comments because anyway the quotes in there
2342# would cause problems or look ugly.
2343# WARNING: Use '\'' to represent an apostrophe within the trap.
2344# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2345trap 'exit_status=$?
2346  # Save into config.log some information that might help in debugging.
2347  {
2348    echo
2349
2350    cat <<\_ASBOX
2351## ---------------- ##
2352## Cache variables. ##
2353## ---------------- ##
2354_ASBOX
2355    echo
2356    # The following way of writing the cache mishandles newlines in values,
2357(
2358  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2359    eval ac_val=\$$ac_var
2360    case $ac_val in #(
2361    *${as_nl}*)
2362      case $ac_var in #(
2363      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2364$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2365      esac
2366      case $ac_var in #(
2367      _ | IFS | as_nl) ;; #(
2368      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2369      *) { eval $ac_var=; unset $ac_var;} ;;
2370      esac ;;
2371    esac
2372  done
2373  (set) 2>&1 |
2374    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2375    *${as_nl}ac_space=\ *)
2376      sed -n \
2377	"s/'\''/'\''\\\\'\'''\''/g;
2378	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2379      ;; #(
2380    *)
2381      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2382      ;;
2383    esac |
2384    sort
2385)
2386    echo
2387
2388    cat <<\_ASBOX
2389## ----------------- ##
2390## Output variables. ##
2391## ----------------- ##
2392_ASBOX
2393    echo
2394    for ac_var in $ac_subst_vars
2395    do
2396      eval ac_val=\$$ac_var
2397      case $ac_val in
2398      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2399      esac
2400      $as_echo "$ac_var='\''$ac_val'\''"
2401    done | sort
2402    echo
2403
2404    if test -n "$ac_subst_files"; then
2405      cat <<\_ASBOX
2406## ------------------- ##
2407## File substitutions. ##
2408## ------------------- ##
2409_ASBOX
2410      echo
2411      for ac_var in $ac_subst_files
2412      do
2413	eval ac_val=\$$ac_var
2414	case $ac_val in
2415	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2416	esac
2417	$as_echo "$ac_var='\''$ac_val'\''"
2418      done | sort
2419      echo
2420    fi
2421
2422    if test -s confdefs.h; then
2423      cat <<\_ASBOX
2424## ----------- ##
2425## confdefs.h. ##
2426## ----------- ##
2427_ASBOX
2428      echo
2429      cat confdefs.h
2430      echo
2431    fi
2432    test "$ac_signal" != 0 &&
2433      $as_echo "$as_me: caught signal $ac_signal"
2434    $as_echo "$as_me: exit $exit_status"
2435  } >&5
2436  rm -f core *.core core.conftest.* &&
2437    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2438    exit $exit_status
2439' 0
2440for ac_signal in 1 2 13 15; do
2441  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2442done
2443ac_signal=0
2444
2445# confdefs.h avoids OS command line length limits that DEFS can exceed.
2446rm -f -r conftest* confdefs.h
2447
2448$as_echo "/* confdefs.h */" > confdefs.h
2449
2450# Predefined preprocessor variables.
2451
2452cat >>confdefs.h <<_ACEOF
2453#define PACKAGE_NAME "$PACKAGE_NAME"
2454_ACEOF
2455
2456cat >>confdefs.h <<_ACEOF
2457#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2458_ACEOF
2459
2460cat >>confdefs.h <<_ACEOF
2461#define PACKAGE_VERSION "$PACKAGE_VERSION"
2462_ACEOF
2463
2464cat >>confdefs.h <<_ACEOF
2465#define PACKAGE_STRING "$PACKAGE_STRING"
2466_ACEOF
2467
2468cat >>confdefs.h <<_ACEOF
2469#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2470_ACEOF
2471
2472cat >>confdefs.h <<_ACEOF
2473#define PACKAGE_URL "$PACKAGE_URL"
2474_ACEOF
2475
2476
2477# Let the site file select an alternate cache file if it wants to.
2478# Prefer an explicitly selected file to automatically selected ones.
2479ac_site_file1=NONE
2480ac_site_file2=NONE
2481if test -n "$CONFIG_SITE"; then
2482  ac_site_file1=$CONFIG_SITE
2483elif test "x$prefix" != xNONE; then
2484  ac_site_file1=$prefix/share/config.site
2485  ac_site_file2=$prefix/etc/config.site
2486else
2487  ac_site_file1=$ac_default_prefix/share/config.site
2488  ac_site_file2=$ac_default_prefix/etc/config.site
2489fi
2490for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2491do
2492  test "x$ac_site_file" = xNONE && continue
2493  if test -r "$ac_site_file"; then
2494    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2495$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2496    sed 's/^/| /' "$ac_site_file" >&5
2497    . "$ac_site_file"
2498  fi
2499done
2500
2501if test -r "$cache_file"; then
2502  # Some versions of bash will fail to source /dev/null (special
2503  # files actually), so we avoid doing that.
2504  if test -f "$cache_file"; then
2505    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2506$as_echo "$as_me: loading cache $cache_file" >&6;}
2507    case $cache_file in
2508      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2509      *)                      . "./$cache_file";;
2510    esac
2511  fi
2512else
2513  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2514$as_echo "$as_me: creating cache $cache_file" >&6;}
2515  >$cache_file
2516fi
2517
2518# Check that the precious variables saved in the cache have kept the same
2519# value.
2520ac_cache_corrupted=false
2521for ac_var in $ac_precious_vars; do
2522  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2523  eval ac_new_set=\$ac_env_${ac_var}_set
2524  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2525  eval ac_new_val=\$ac_env_${ac_var}_value
2526  case $ac_old_set,$ac_new_set in
2527    set,)
2528      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2529$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2530      ac_cache_corrupted=: ;;
2531    ,set)
2532      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2533$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2534      ac_cache_corrupted=: ;;
2535    ,);;
2536    *)
2537      if test "x$ac_old_val" != "x$ac_new_val"; then
2538	# differences in whitespace do not lead to failure.
2539	ac_old_val_w=`echo x $ac_old_val`
2540	ac_new_val_w=`echo x $ac_new_val`
2541	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2542	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2543$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2544	  ac_cache_corrupted=:
2545	else
2546	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2547$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2548	  eval $ac_var=\$ac_old_val
2549	fi
2550	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2551$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2552	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2553$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2554      fi;;
2555  esac
2556  # Pass precious variables to config.status.
2557  if test "$ac_new_set" = set; then
2558    case $ac_new_val in
2559    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2560    *) ac_arg=$ac_var=$ac_new_val ;;
2561    esac
2562    case " $ac_configure_args " in
2563      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2564      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2565    esac
2566  fi
2567done
2568if $ac_cache_corrupted; then
2569  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2570$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2571  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2572$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2573  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2574fi
2575## -------------------- ##
2576## Main body of script. ##
2577## -------------------- ##
2578
2579ac_ext=c
2580ac_cpp='$CPP $CPPFLAGS'
2581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2583ac_compiler_gnu=$ac_cv_c_compiler_gnu
2584
2585
2586
2587ac_aux_dir=
2588for ac_dir in config "$srcdir"/config; do
2589  for ac_t in install-sh install.sh shtool; do
2590    if test -f "$ac_dir/$ac_t"; then
2591      ac_aux_dir=$ac_dir
2592      ac_install_sh="$ac_aux_dir/$ac_t -c"
2593      break 2
2594    fi
2595  done
2596done
2597if test -z "$ac_aux_dir"; then
2598  as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2599fi
2600
2601# These three variables are undocumented and unsupported,
2602# and are intended to be withdrawn in a future Autoconf release.
2603# They can cause serious problems if a builder's source tree is in a directory
2604# whose full name contains unusual characters.
2605ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2606ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2607ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2608
2609
2610MCONFIG=./MCONFIG
2611
2612BINARY_TYPE=bin
2613E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2614	| awk '{print $3}' | tr \" " " | awk '{print $1}'`
2615DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2616	| tr \" " "`
2617E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2618MONTH=`echo $DATE | awk -F- '{print $2}'`
2619YEAR=`echo $DATE | awk -F- '{print $3}'`
2620
2621if expr $YEAR ">" 1900 > /dev/null ; then
2622	E2FSPROGS_YEAR=$YEAR
2623elif expr $YEAR ">" 90 >/dev/null ; then
2624	E2FSPROGS_YEAR=19$YEAR
2625else
2626	E2FSPROGS_YEAR=20$YEAR
2627fi
2628
2629case $MONTH in
2630Jan)	MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2631Feb)	MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2632Mar)	MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2633Apr)	MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2634May)	MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2635Jun)	MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2636Jul)	MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2637Aug)	MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2638Sep)	MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2639Oct)	MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2640Nov)	MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2641Dec)	MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2642*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2643$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2644esac
2645
2646base_ver=`echo $E2FSPROGS_VERSION | \
2647	       sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2648
2649date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2650
2651case $E2FSPROGS_VERSION in
2652*-WIP|pre-*)
2653	E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2654	;;
2655*)
2656	E2FSPROGS_PKGVER="$base_ver"
2657	;;
2658esac
2659
2660unset DATE MONTH YEAR base_ver pre_vers date_spec
2661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2662$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2664$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2665
2666
2667
2668
2669
2670# Make sure we can run config.sub.
2671$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2672  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2673
2674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2675$as_echo_n "checking build system type... " >&6; }
2676if test "${ac_cv_build+set}" = set; then :
2677  $as_echo_n "(cached) " >&6
2678else
2679  ac_build_alias=$build_alias
2680test "x$ac_build_alias" = x &&
2681  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2682test "x$ac_build_alias" = x &&
2683  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2684ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2685  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2686
2687fi
2688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2689$as_echo "$ac_cv_build" >&6; }
2690case $ac_cv_build in
2691*-*-*) ;;
2692*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2693esac
2694build=$ac_cv_build
2695ac_save_IFS=$IFS; IFS='-'
2696set x $ac_cv_build
2697shift
2698build_cpu=$1
2699build_vendor=$2
2700shift; shift
2701# Remember, the first character of IFS is used to create $*,
2702# except with old shells:
2703build_os=$*
2704IFS=$ac_save_IFS
2705case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2706
2707
2708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2709$as_echo_n "checking host system type... " >&6; }
2710if test "${ac_cv_host+set}" = set; then :
2711  $as_echo_n "(cached) " >&6
2712else
2713  if test "x$host_alias" = x; then
2714  ac_cv_host=$ac_cv_build
2715else
2716  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2717    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2718fi
2719
2720fi
2721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2722$as_echo "$ac_cv_host" >&6; }
2723case $ac_cv_host in
2724*-*-*) ;;
2725*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2726esac
2727host=$ac_cv_host
2728ac_save_IFS=$IFS; IFS='-'
2729set x $ac_cv_host
2730shift
2731host_cpu=$1
2732host_vendor=$2
2733shift; shift
2734# Remember, the first character of IFS is used to create $*,
2735# except with old shells:
2736host_os=$*
2737IFS=$ac_save_IFS
2738case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2739
2740
2741DLOPEN_LIB=''
2742ac_ext=c
2743ac_cpp='$CPP $CPPFLAGS'
2744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746ac_compiler_gnu=$ac_cv_c_compiler_gnu
2747if test -n "$ac_tool_prefix"; then
2748  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2749set dummy ${ac_tool_prefix}gcc; ac_word=$2
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751$as_echo_n "checking for $ac_word... " >&6; }
2752if test "${ac_cv_prog_CC+set}" = set; then :
2753  $as_echo_n "(cached) " >&6
2754else
2755  if test -n "$CC"; then
2756  ac_cv_prog_CC="$CC" # Let the user override the test.
2757else
2758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759for as_dir in $PATH
2760do
2761  IFS=$as_save_IFS
2762  test -z "$as_dir" && as_dir=.
2763    for ac_exec_ext in '' $ac_executable_extensions; do
2764  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2765    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2766    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2767    break 2
2768  fi
2769done
2770  done
2771IFS=$as_save_IFS
2772
2773fi
2774fi
2775CC=$ac_cv_prog_CC
2776if test -n "$CC"; then
2777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2778$as_echo "$CC" >&6; }
2779else
2780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781$as_echo "no" >&6; }
2782fi
2783
2784
2785fi
2786if test -z "$ac_cv_prog_CC"; then
2787  ac_ct_CC=$CC
2788  # Extract the first word of "gcc", so it can be a program name with args.
2789set dummy gcc; ac_word=$2
2790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791$as_echo_n "checking for $ac_word... " >&6; }
2792if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2793  $as_echo_n "(cached) " >&6
2794else
2795  if test -n "$ac_ct_CC"; then
2796  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2797else
2798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799for as_dir in $PATH
2800do
2801  IFS=$as_save_IFS
2802  test -z "$as_dir" && as_dir=.
2803    for ac_exec_ext in '' $ac_executable_extensions; do
2804  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2805    ac_cv_prog_ac_ct_CC="gcc"
2806    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2807    break 2
2808  fi
2809done
2810  done
2811IFS=$as_save_IFS
2812
2813fi
2814fi
2815ac_ct_CC=$ac_cv_prog_ac_ct_CC
2816if test -n "$ac_ct_CC"; then
2817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2818$as_echo "$ac_ct_CC" >&6; }
2819else
2820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821$as_echo "no" >&6; }
2822fi
2823
2824  if test "x$ac_ct_CC" = x; then
2825    CC=""
2826  else
2827    case $cross_compiling:$ac_tool_warned in
2828yes:)
2829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2831ac_tool_warned=yes ;;
2832esac
2833    CC=$ac_ct_CC
2834  fi
2835else
2836  CC="$ac_cv_prog_CC"
2837fi
2838
2839if test -z "$CC"; then
2840          if test -n "$ac_tool_prefix"; then
2841    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2842set dummy ${ac_tool_prefix}cc; ac_word=$2
2843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844$as_echo_n "checking for $ac_word... " >&6; }
2845if test "${ac_cv_prog_CC+set}" = set; then :
2846  $as_echo_n "(cached) " >&6
2847else
2848  if test -n "$CC"; then
2849  ac_cv_prog_CC="$CC" # Let the user override the test.
2850else
2851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852for as_dir in $PATH
2853do
2854  IFS=$as_save_IFS
2855  test -z "$as_dir" && as_dir=.
2856    for ac_exec_ext in '' $ac_executable_extensions; do
2857  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2858    ac_cv_prog_CC="${ac_tool_prefix}cc"
2859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860    break 2
2861  fi
2862done
2863  done
2864IFS=$as_save_IFS
2865
2866fi
2867fi
2868CC=$ac_cv_prog_CC
2869if test -n "$CC"; then
2870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2871$as_echo "$CC" >&6; }
2872else
2873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874$as_echo "no" >&6; }
2875fi
2876
2877
2878  fi
2879fi
2880if test -z "$CC"; then
2881  # Extract the first word of "cc", so it can be a program name with args.
2882set dummy cc; ac_word=$2
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884$as_echo_n "checking for $ac_word... " >&6; }
2885if test "${ac_cv_prog_CC+set}" = set; then :
2886  $as_echo_n "(cached) " >&6
2887else
2888  if test -n "$CC"; then
2889  ac_cv_prog_CC="$CC" # Let the user override the test.
2890else
2891  ac_prog_rejected=no
2892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893for as_dir in $PATH
2894do
2895  IFS=$as_save_IFS
2896  test -z "$as_dir" && as_dir=.
2897    for ac_exec_ext in '' $ac_executable_extensions; do
2898  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2900       ac_prog_rejected=yes
2901       continue
2902     fi
2903    ac_cv_prog_CC="cc"
2904    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905    break 2
2906  fi
2907done
2908  done
2909IFS=$as_save_IFS
2910
2911if test $ac_prog_rejected = yes; then
2912  # We found a bogon in the path, so make sure we never use it.
2913  set dummy $ac_cv_prog_CC
2914  shift
2915  if test $# != 0; then
2916    # We chose a different compiler from the bogus one.
2917    # However, it has the same basename, so the bogon will be chosen
2918    # first if we set CC to just the basename; use the full file name.
2919    shift
2920    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2921  fi
2922fi
2923fi
2924fi
2925CC=$ac_cv_prog_CC
2926if test -n "$CC"; then
2927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2928$as_echo "$CC" >&6; }
2929else
2930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931$as_echo "no" >&6; }
2932fi
2933
2934
2935fi
2936if test -z "$CC"; then
2937  if test -n "$ac_tool_prefix"; then
2938  for ac_prog in cl.exe
2939  do
2940    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2941set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943$as_echo_n "checking for $ac_word... " >&6; }
2944if test "${ac_cv_prog_CC+set}" = set; then :
2945  $as_echo_n "(cached) " >&6
2946else
2947  if test -n "$CC"; then
2948  ac_cv_prog_CC="$CC" # Let the user override the test.
2949else
2950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951for as_dir in $PATH
2952do
2953  IFS=$as_save_IFS
2954  test -z "$as_dir" && as_dir=.
2955    for ac_exec_ext in '' $ac_executable_extensions; do
2956  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2957    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2959    break 2
2960  fi
2961done
2962  done
2963IFS=$as_save_IFS
2964
2965fi
2966fi
2967CC=$ac_cv_prog_CC
2968if test -n "$CC"; then
2969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2970$as_echo "$CC" >&6; }
2971else
2972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973$as_echo "no" >&6; }
2974fi
2975
2976
2977    test -n "$CC" && break
2978  done
2979fi
2980if test -z "$CC"; then
2981  ac_ct_CC=$CC
2982  for ac_prog in cl.exe
2983do
2984  # Extract the first word of "$ac_prog", so it can be a program name with args.
2985set dummy $ac_prog; ac_word=$2
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987$as_echo_n "checking for $ac_word... " >&6; }
2988if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2989  $as_echo_n "(cached) " >&6
2990else
2991  if test -n "$ac_ct_CC"; then
2992  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2993else
2994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995for as_dir in $PATH
2996do
2997  IFS=$as_save_IFS
2998  test -z "$as_dir" && as_dir=.
2999    for ac_exec_ext in '' $ac_executable_extensions; do
3000  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3001    ac_cv_prog_ac_ct_CC="$ac_prog"
3002    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3003    break 2
3004  fi
3005done
3006  done
3007IFS=$as_save_IFS
3008
3009fi
3010fi
3011ac_ct_CC=$ac_cv_prog_ac_ct_CC
3012if test -n "$ac_ct_CC"; then
3013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3014$as_echo "$ac_ct_CC" >&6; }
3015else
3016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017$as_echo "no" >&6; }
3018fi
3019
3020
3021  test -n "$ac_ct_CC" && break
3022done
3023
3024  if test "x$ac_ct_CC" = x; then
3025    CC=""
3026  else
3027    case $cross_compiling:$ac_tool_warned in
3028yes:)
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3030$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3031ac_tool_warned=yes ;;
3032esac
3033    CC=$ac_ct_CC
3034  fi
3035fi
3036
3037fi
3038
3039
3040test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3042as_fn_error "no acceptable C compiler found in \$PATH
3043See \`config.log' for more details." "$LINENO" 5; }
3044
3045# Provide some information about the compiler.
3046$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3047set X $ac_compile
3048ac_compiler=$2
3049for ac_option in --version -v -V -qversion; do
3050  { { ac_try="$ac_compiler $ac_option >&5"
3051case "(($ac_try" in
3052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053  *) ac_try_echo=$ac_try;;
3054esac
3055eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3056$as_echo "$ac_try_echo"; } >&5
3057  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3058  ac_status=$?
3059  if test -s conftest.err; then
3060    sed '10a\
3061... rest of stderr output deleted ...
3062         10q' conftest.err >conftest.er1
3063    cat conftest.er1 >&5
3064    rm -f conftest.er1 conftest.err
3065  fi
3066  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3067  test $ac_status = 0; }
3068done
3069
3070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3071/* end confdefs.h.  */
3072#include <stdio.h>
3073int
3074main ()
3075{
3076FILE *f = fopen ("conftest.out", "w");
3077 return ferror (f) || fclose (f) != 0;
3078
3079  ;
3080  return 0;
3081}
3082_ACEOF
3083ac_clean_files_save=$ac_clean_files
3084ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3085# Try to create an executable without -o first, disregard a.out.
3086# It will help us diagnose broken compilers, and finding out an intuition
3087# of exeext.
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3089$as_echo_n "checking for C compiler default output file name... " >&6; }
3090ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3091
3092# The possible output files:
3093ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3094
3095ac_rmfiles=
3096for ac_file in $ac_files
3097do
3098  case $ac_file in
3099    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3100    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3101  esac
3102done
3103rm -f $ac_rmfiles
3104
3105if { { ac_try="$ac_link_default"
3106case "(($ac_try" in
3107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108  *) ac_try_echo=$ac_try;;
3109esac
3110eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111$as_echo "$ac_try_echo"; } >&5
3112  (eval "$ac_link_default") 2>&5
3113  ac_status=$?
3114  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115  test $ac_status = 0; }; then :
3116  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3117# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3118# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3119# so that the user can short-circuit this test for compilers unknown to
3120# Autoconf.
3121for ac_file in $ac_files ''
3122do
3123  test -f "$ac_file" || continue
3124  case $ac_file in
3125    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3126	;;
3127    [ab].out )
3128	# We found the default executable, but exeext='' is most
3129	# certainly right.
3130	break;;
3131    *.* )
3132	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3133	then :; else
3134	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3135	fi
3136	# We set ac_cv_exeext here because the later test for it is not
3137	# safe: cross compilers may not add the suffix if given an `-o'
3138	# argument, so we may need to know it at that point already.
3139	# Even if this section looks crufty: it has the advantage of
3140	# actually working.
3141	break;;
3142    * )
3143	break;;
3144  esac
3145done
3146test "$ac_cv_exeext" = no && ac_cv_exeext=
3147
3148else
3149  ac_file=''
3150fi
3151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3152$as_echo "$ac_file" >&6; }
3153if test -z "$ac_file"; then :
3154  $as_echo "$as_me: failed program was:" >&5
3155sed 's/^/| /' conftest.$ac_ext >&5
3156
3157{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3159{ as_fn_set_status 77
3160as_fn_error "C compiler cannot create executables
3161See \`config.log' for more details." "$LINENO" 5; }; }
3162fi
3163ac_exeext=$ac_cv_exeext
3164
3165# Check that the compiler produces executables we can run.  If not, either
3166# the compiler is broken, or we cross compile.
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3168$as_echo_n "checking whether the C compiler works... " >&6; }
3169# If not cross compiling, check that we can run a simple program.
3170if test "$cross_compiling" != yes; then
3171  if { ac_try='./$ac_file'
3172  { { case "(($ac_try" in
3173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174  *) ac_try_echo=$ac_try;;
3175esac
3176eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177$as_echo "$ac_try_echo"; } >&5
3178  (eval "$ac_try") 2>&5
3179  ac_status=$?
3180  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181  test $ac_status = 0; }; }; then
3182    cross_compiling=no
3183  else
3184    if test "$cross_compiling" = maybe; then
3185	cross_compiling=yes
3186    else
3187	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3188$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189as_fn_error "cannot run C compiled programs.
3190If you meant to cross compile, use \`--host'.
3191See \`config.log' for more details." "$LINENO" 5; }
3192    fi
3193  fi
3194fi
3195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3196$as_echo "yes" >&6; }
3197
3198rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3199ac_clean_files=$ac_clean_files_save
3200# Check that the compiler produces executables we can run.  If not, either
3201# the compiler is broken, or we cross compile.
3202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3203$as_echo_n "checking whether we are cross compiling... " >&6; }
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3205$as_echo "$cross_compiling" >&6; }
3206
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3208$as_echo_n "checking for suffix of executables... " >&6; }
3209if { { ac_try="$ac_link"
3210case "(($ac_try" in
3211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212  *) ac_try_echo=$ac_try;;
3213esac
3214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215$as_echo "$ac_try_echo"; } >&5
3216  (eval "$ac_link") 2>&5
3217  ac_status=$?
3218  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219  test $ac_status = 0; }; then :
3220  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3221# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3222# work properly (i.e., refer to `conftest.exe'), while it won't with
3223# `rm'.
3224for ac_file in conftest.exe conftest conftest.*; do
3225  test -f "$ac_file" || continue
3226  case $ac_file in
3227    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3228    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3229	  break;;
3230    * ) break;;
3231  esac
3232done
3233else
3234  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236as_fn_error "cannot compute suffix of executables: cannot compile and link
3237See \`config.log' for more details." "$LINENO" 5; }
3238fi
3239rm -f conftest$ac_cv_exeext
3240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3241$as_echo "$ac_cv_exeext" >&6; }
3242
3243rm -f conftest.$ac_ext
3244EXEEXT=$ac_cv_exeext
3245ac_exeext=$EXEEXT
3246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3247$as_echo_n "checking for suffix of object files... " >&6; }
3248if test "${ac_cv_objext+set}" = set; then :
3249  $as_echo_n "(cached) " >&6
3250else
3251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252/* end confdefs.h.  */
3253
3254int
3255main ()
3256{
3257
3258  ;
3259  return 0;
3260}
3261_ACEOF
3262rm -f conftest.o conftest.obj
3263if { { ac_try="$ac_compile"
3264case "(($ac_try" in
3265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266  *) ac_try_echo=$ac_try;;
3267esac
3268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269$as_echo "$ac_try_echo"; } >&5
3270  (eval "$ac_compile") 2>&5
3271  ac_status=$?
3272  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273  test $ac_status = 0; }; then :
3274  for ac_file in conftest.o conftest.obj conftest.*; do
3275  test -f "$ac_file" || continue;
3276  case $ac_file in
3277    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3278    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3279       break;;
3280  esac
3281done
3282else
3283  $as_echo "$as_me: failed program was:" >&5
3284sed 's/^/| /' conftest.$ac_ext >&5
3285
3286{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288as_fn_error "cannot compute suffix of object files: cannot compile
3289See \`config.log' for more details." "$LINENO" 5; }
3290fi
3291rm -f conftest.$ac_cv_objext conftest.$ac_ext
3292fi
3293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3294$as_echo "$ac_cv_objext" >&6; }
3295OBJEXT=$ac_cv_objext
3296ac_objext=$OBJEXT
3297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3298$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3299if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3300  $as_echo_n "(cached) " >&6
3301else
3302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3303/* end confdefs.h.  */
3304
3305int
3306main ()
3307{
3308#ifndef __GNUC__
3309       choke me
3310#endif
3311
3312  ;
3313  return 0;
3314}
3315_ACEOF
3316if ac_fn_c_try_compile "$LINENO"; then :
3317  ac_compiler_gnu=yes
3318else
3319  ac_compiler_gnu=no
3320fi
3321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3322ac_cv_c_compiler_gnu=$ac_compiler_gnu
3323
3324fi
3325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3326$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3327if test $ac_compiler_gnu = yes; then
3328  GCC=yes
3329else
3330  GCC=
3331fi
3332ac_test_CFLAGS=${CFLAGS+set}
3333ac_save_CFLAGS=$CFLAGS
3334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3335$as_echo_n "checking whether $CC accepts -g... " >&6; }
3336if test "${ac_cv_prog_cc_g+set}" = set; then :
3337  $as_echo_n "(cached) " >&6
3338else
3339  ac_save_c_werror_flag=$ac_c_werror_flag
3340   ac_c_werror_flag=yes
3341   ac_cv_prog_cc_g=no
3342   CFLAGS="-g"
3343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344/* end confdefs.h.  */
3345
3346int
3347main ()
3348{
3349
3350  ;
3351  return 0;
3352}
3353_ACEOF
3354if ac_fn_c_try_compile "$LINENO"; then :
3355  ac_cv_prog_cc_g=yes
3356else
3357  CFLAGS=""
3358      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359/* end confdefs.h.  */
3360
3361int
3362main ()
3363{
3364
3365  ;
3366  return 0;
3367}
3368_ACEOF
3369if ac_fn_c_try_compile "$LINENO"; then :
3370
3371else
3372  ac_c_werror_flag=$ac_save_c_werror_flag
3373	 CFLAGS="-g"
3374	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375/* end confdefs.h.  */
3376
3377int
3378main ()
3379{
3380
3381  ;
3382  return 0;
3383}
3384_ACEOF
3385if ac_fn_c_try_compile "$LINENO"; then :
3386  ac_cv_prog_cc_g=yes
3387fi
3388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389fi
3390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3391fi
3392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3393   ac_c_werror_flag=$ac_save_c_werror_flag
3394fi
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3396$as_echo "$ac_cv_prog_cc_g" >&6; }
3397if test "$ac_test_CFLAGS" = set; then
3398  CFLAGS=$ac_save_CFLAGS
3399elif test $ac_cv_prog_cc_g = yes; then
3400  if test "$GCC" = yes; then
3401    CFLAGS="-g -O2"
3402  else
3403    CFLAGS="-g"
3404  fi
3405else
3406  if test "$GCC" = yes; then
3407    CFLAGS="-O2"
3408  else
3409    CFLAGS=
3410  fi
3411fi
3412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3413$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3414if test "${ac_cv_prog_cc_c89+set}" = set; then :
3415  $as_echo_n "(cached) " >&6
3416else
3417  ac_cv_prog_cc_c89=no
3418ac_save_CC=$CC
3419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420/* end confdefs.h.  */
3421#include <stdarg.h>
3422#include <stdio.h>
3423#include <sys/types.h>
3424#include <sys/stat.h>
3425/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3426struct buf { int x; };
3427FILE * (*rcsopen) (struct buf *, struct stat *, int);
3428static char *e (p, i)
3429     char **p;
3430     int i;
3431{
3432  return p[i];
3433}
3434static char *f (char * (*g) (char **, int), char **p, ...)
3435{
3436  char *s;
3437  va_list v;
3438  va_start (v,p);
3439  s = g (p, va_arg (v,int));
3440  va_end (v);
3441  return s;
3442}
3443
3444/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3445   function prototypes and stuff, but not '\xHH' hex character constants.
3446   These don't provoke an error unfortunately, instead are silently treated
3447   as 'x'.  The following induces an error, until -std is added to get
3448   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3449   array size at least.  It's necessary to write '\x00'==0 to get something
3450   that's true only with -std.  */
3451int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3452
3453/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3454   inside strings and character constants.  */
3455#define FOO(x) 'x'
3456int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3457
3458int test (int i, double x);
3459struct s1 {int (*f) (int a);};
3460struct s2 {int (*f) (double a);};
3461int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3462int argc;
3463char **argv;
3464int
3465main ()
3466{
3467return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3468  ;
3469  return 0;
3470}
3471_ACEOF
3472for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3473	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3474do
3475  CC="$ac_save_CC $ac_arg"
3476  if ac_fn_c_try_compile "$LINENO"; then :
3477  ac_cv_prog_cc_c89=$ac_arg
3478fi
3479rm -f core conftest.err conftest.$ac_objext
3480  test "x$ac_cv_prog_cc_c89" != "xno" && break
3481done
3482rm -f conftest.$ac_ext
3483CC=$ac_save_CC
3484
3485fi
3486# AC_CACHE_VAL
3487case "x$ac_cv_prog_cc_c89" in
3488  x)
3489    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3490$as_echo "none needed" >&6; } ;;
3491  xno)
3492    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3493$as_echo "unsupported" >&6; } ;;
3494  *)
3495    CC="$CC $ac_cv_prog_cc_c89"
3496    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3497$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3498esac
3499if test "x$ac_cv_prog_cc_c89" != xno; then :
3500
3501fi
3502
3503ac_ext=c
3504ac_cpp='$CPP $CPPFLAGS'
3505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507ac_compiler_gnu=$ac_cv_c_compiler_gnu
3508
3509
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3511$as_echo_n "checking for dlopen in -ldl... " >&6; }
3512if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
3513  $as_echo_n "(cached) " >&6
3514else
3515  ac_check_lib_save_LIBS=$LIBS
3516LIBS="-ldl  $LIBS"
3517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518/* end confdefs.h.  */
3519
3520/* Override any GCC internal prototype to avoid an error.
3521   Use char because int might match the return type of a GCC
3522   builtin and then its argument prototype would still apply.  */
3523#ifdef __cplusplus
3524extern "C"
3525#endif
3526char dlopen ();
3527int
3528main ()
3529{
3530return dlopen ();
3531  ;
3532  return 0;
3533}
3534_ACEOF
3535if ac_fn_c_try_link "$LINENO"; then :
3536  ac_cv_lib_dl_dlopen=yes
3537else
3538  ac_cv_lib_dl_dlopen=no
3539fi
3540rm -f core conftest.err conftest.$ac_objext \
3541    conftest$ac_exeext conftest.$ac_ext
3542LIBS=$ac_check_lib_save_LIBS
3543fi
3544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3545$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3546if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
3547  DLOPEN_LIB=-ldl
3548$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3549
3550fi
3551
3552
3553WITH_DIET_LIBC=
3554
3555# Check whether --with-diet-libc was given.
3556if test "${with_diet_libc+set}" = set; then :
3557  withval=$with_diet_libc; CC="diet cc -nostdinc"
3558WITH_DIET_LIBC=yes
3559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3560$as_echo "CC=$CC" >&6; }
3561fi
3562
3563# Check whether --with-cc was given.
3564if test "${with_cc+set}" = set; then :
3565  withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3566fi
3567
3568
3569# Check whether --with-ccopts was given.
3570if test "${with_ccopts+set}" = set; then :
3571  withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3572fi
3573
3574
3575# Check whether --with-ldopts was given.
3576if test "${with_ldopts+set}" = set; then :
3577  withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3578fi
3579
3580ac_ext=c
3581ac_cpp='$CPP $CPPFLAGS'
3582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3584ac_compiler_gnu=$ac_cv_c_compiler_gnu
3585if test -n "$ac_tool_prefix"; then
3586  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3587set dummy ${ac_tool_prefix}gcc; ac_word=$2
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589$as_echo_n "checking for $ac_word... " >&6; }
3590if test "${ac_cv_prog_CC+set}" = set; then :
3591  $as_echo_n "(cached) " >&6
3592else
3593  if test -n "$CC"; then
3594  ac_cv_prog_CC="$CC" # Let the user override the test.
3595else
3596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597for as_dir in $PATH
3598do
3599  IFS=$as_save_IFS
3600  test -z "$as_dir" && as_dir=.
3601    for ac_exec_ext in '' $ac_executable_extensions; do
3602  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3603    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3604    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3605    break 2
3606  fi
3607done
3608  done
3609IFS=$as_save_IFS
3610
3611fi
3612fi
3613CC=$ac_cv_prog_CC
3614if test -n "$CC"; then
3615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3616$as_echo "$CC" >&6; }
3617else
3618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619$as_echo "no" >&6; }
3620fi
3621
3622
3623fi
3624if test -z "$ac_cv_prog_CC"; then
3625  ac_ct_CC=$CC
3626  # Extract the first word of "gcc", so it can be a program name with args.
3627set dummy gcc; ac_word=$2
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629$as_echo_n "checking for $ac_word... " >&6; }
3630if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3631  $as_echo_n "(cached) " >&6
3632else
3633  if test -n "$ac_ct_CC"; then
3634  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3635else
3636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637for as_dir in $PATH
3638do
3639  IFS=$as_save_IFS
3640  test -z "$as_dir" && as_dir=.
3641    for ac_exec_ext in '' $ac_executable_extensions; do
3642  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3643    ac_cv_prog_ac_ct_CC="gcc"
3644    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3645    break 2
3646  fi
3647done
3648  done
3649IFS=$as_save_IFS
3650
3651fi
3652fi
3653ac_ct_CC=$ac_cv_prog_ac_ct_CC
3654if test -n "$ac_ct_CC"; then
3655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3656$as_echo "$ac_ct_CC" >&6; }
3657else
3658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659$as_echo "no" >&6; }
3660fi
3661
3662  if test "x$ac_ct_CC" = x; then
3663    CC=""
3664  else
3665    case $cross_compiling:$ac_tool_warned in
3666yes:)
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3668$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3669ac_tool_warned=yes ;;
3670esac
3671    CC=$ac_ct_CC
3672  fi
3673else
3674  CC="$ac_cv_prog_CC"
3675fi
3676
3677if test -z "$CC"; then
3678          if test -n "$ac_tool_prefix"; then
3679    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3680set dummy ${ac_tool_prefix}cc; ac_word=$2
3681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3682$as_echo_n "checking for $ac_word... " >&6; }
3683if test "${ac_cv_prog_CC+set}" = set; then :
3684  $as_echo_n "(cached) " >&6
3685else
3686  if test -n "$CC"; then
3687  ac_cv_prog_CC="$CC" # Let the user override the test.
3688else
3689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690for as_dir in $PATH
3691do
3692  IFS=$as_save_IFS
3693  test -z "$as_dir" && as_dir=.
3694    for ac_exec_ext in '' $ac_executable_extensions; do
3695  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3696    ac_cv_prog_CC="${ac_tool_prefix}cc"
3697    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3698    break 2
3699  fi
3700done
3701  done
3702IFS=$as_save_IFS
3703
3704fi
3705fi
3706CC=$ac_cv_prog_CC
3707if test -n "$CC"; then
3708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3709$as_echo "$CC" >&6; }
3710else
3711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712$as_echo "no" >&6; }
3713fi
3714
3715
3716  fi
3717fi
3718if test -z "$CC"; then
3719  # Extract the first word of "cc", so it can be a program name with args.
3720set dummy cc; ac_word=$2
3721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722$as_echo_n "checking for $ac_word... " >&6; }
3723if test "${ac_cv_prog_CC+set}" = set; then :
3724  $as_echo_n "(cached) " >&6
3725else
3726  if test -n "$CC"; then
3727  ac_cv_prog_CC="$CC" # Let the user override the test.
3728else
3729  ac_prog_rejected=no
3730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731for as_dir in $PATH
3732do
3733  IFS=$as_save_IFS
3734  test -z "$as_dir" && as_dir=.
3735    for ac_exec_ext in '' $ac_executable_extensions; do
3736  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3737    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3738       ac_prog_rejected=yes
3739       continue
3740     fi
3741    ac_cv_prog_CC="cc"
3742    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3743    break 2
3744  fi
3745done
3746  done
3747IFS=$as_save_IFS
3748
3749if test $ac_prog_rejected = yes; then
3750  # We found a bogon in the path, so make sure we never use it.
3751  set dummy $ac_cv_prog_CC
3752  shift
3753  if test $# != 0; then
3754    # We chose a different compiler from the bogus one.
3755    # However, it has the same basename, so the bogon will be chosen
3756    # first if we set CC to just the basename; use the full file name.
3757    shift
3758    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3759  fi
3760fi
3761fi
3762fi
3763CC=$ac_cv_prog_CC
3764if test -n "$CC"; then
3765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3766$as_echo "$CC" >&6; }
3767else
3768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3769$as_echo "no" >&6; }
3770fi
3771
3772
3773fi
3774if test -z "$CC"; then
3775  if test -n "$ac_tool_prefix"; then
3776  for ac_prog in cl.exe
3777  do
3778    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3779set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781$as_echo_n "checking for $ac_word... " >&6; }
3782if test "${ac_cv_prog_CC+set}" = set; then :
3783  $as_echo_n "(cached) " >&6
3784else
3785  if test -n "$CC"; then
3786  ac_cv_prog_CC="$CC" # Let the user override the test.
3787else
3788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789for as_dir in $PATH
3790do
3791  IFS=$as_save_IFS
3792  test -z "$as_dir" && as_dir=.
3793    for ac_exec_ext in '' $ac_executable_extensions; do
3794  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3795    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3796    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3797    break 2
3798  fi
3799done
3800  done
3801IFS=$as_save_IFS
3802
3803fi
3804fi
3805CC=$ac_cv_prog_CC
3806if test -n "$CC"; then
3807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3808$as_echo "$CC" >&6; }
3809else
3810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811$as_echo "no" >&6; }
3812fi
3813
3814
3815    test -n "$CC" && break
3816  done
3817fi
3818if test -z "$CC"; then
3819  ac_ct_CC=$CC
3820  for ac_prog in cl.exe
3821do
3822  # Extract the first word of "$ac_prog", so it can be a program name with args.
3823set dummy $ac_prog; ac_word=$2
3824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3825$as_echo_n "checking for $ac_word... " >&6; }
3826if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3827  $as_echo_n "(cached) " >&6
3828else
3829  if test -n "$ac_ct_CC"; then
3830  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3831else
3832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833for as_dir in $PATH
3834do
3835  IFS=$as_save_IFS
3836  test -z "$as_dir" && as_dir=.
3837    for ac_exec_ext in '' $ac_executable_extensions; do
3838  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3839    ac_cv_prog_ac_ct_CC="$ac_prog"
3840    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3841    break 2
3842  fi
3843done
3844  done
3845IFS=$as_save_IFS
3846
3847fi
3848fi
3849ac_ct_CC=$ac_cv_prog_ac_ct_CC
3850if test -n "$ac_ct_CC"; then
3851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3852$as_echo "$ac_ct_CC" >&6; }
3853else
3854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3855$as_echo "no" >&6; }
3856fi
3857
3858
3859  test -n "$ac_ct_CC" && break
3860done
3861
3862  if test "x$ac_ct_CC" = x; then
3863    CC=""
3864  else
3865    case $cross_compiling:$ac_tool_warned in
3866yes:)
3867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3869ac_tool_warned=yes ;;
3870esac
3871    CC=$ac_ct_CC
3872  fi
3873fi
3874
3875fi
3876
3877
3878test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3879$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3880as_fn_error "no acceptable C compiler found in \$PATH
3881See \`config.log' for more details." "$LINENO" 5; }
3882
3883# Provide some information about the compiler.
3884$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3885set X $ac_compile
3886ac_compiler=$2
3887for ac_option in --version -v -V -qversion; do
3888  { { ac_try="$ac_compiler $ac_option >&5"
3889case "(($ac_try" in
3890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891  *) ac_try_echo=$ac_try;;
3892esac
3893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3894$as_echo "$ac_try_echo"; } >&5
3895  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3896  ac_status=$?
3897  if test -s conftest.err; then
3898    sed '10a\
3899... rest of stderr output deleted ...
3900         10q' conftest.err >conftest.er1
3901    cat conftest.er1 >&5
3902    rm -f conftest.er1 conftest.err
3903  fi
3904  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3905  test $ac_status = 0; }
3906done
3907
3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3909$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3910if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3911  $as_echo_n "(cached) " >&6
3912else
3913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914/* end confdefs.h.  */
3915
3916int
3917main ()
3918{
3919#ifndef __GNUC__
3920       choke me
3921#endif
3922
3923  ;
3924  return 0;
3925}
3926_ACEOF
3927if ac_fn_c_try_compile "$LINENO"; then :
3928  ac_compiler_gnu=yes
3929else
3930  ac_compiler_gnu=no
3931fi
3932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933ac_cv_c_compiler_gnu=$ac_compiler_gnu
3934
3935fi
3936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3937$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3938if test $ac_compiler_gnu = yes; then
3939  GCC=yes
3940else
3941  GCC=
3942fi
3943ac_test_CFLAGS=${CFLAGS+set}
3944ac_save_CFLAGS=$CFLAGS
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3946$as_echo_n "checking whether $CC accepts -g... " >&6; }
3947if test "${ac_cv_prog_cc_g+set}" = set; then :
3948  $as_echo_n "(cached) " >&6
3949else
3950  ac_save_c_werror_flag=$ac_c_werror_flag
3951   ac_c_werror_flag=yes
3952   ac_cv_prog_cc_g=no
3953   CFLAGS="-g"
3954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955/* end confdefs.h.  */
3956
3957int
3958main ()
3959{
3960
3961  ;
3962  return 0;
3963}
3964_ACEOF
3965if ac_fn_c_try_compile "$LINENO"; then :
3966  ac_cv_prog_cc_g=yes
3967else
3968  CFLAGS=""
3969      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970/* end confdefs.h.  */
3971
3972int
3973main ()
3974{
3975
3976  ;
3977  return 0;
3978}
3979_ACEOF
3980if ac_fn_c_try_compile "$LINENO"; then :
3981
3982else
3983  ac_c_werror_flag=$ac_save_c_werror_flag
3984	 CFLAGS="-g"
3985	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986/* end confdefs.h.  */
3987
3988int
3989main ()
3990{
3991
3992  ;
3993  return 0;
3994}
3995_ACEOF
3996if ac_fn_c_try_compile "$LINENO"; then :
3997  ac_cv_prog_cc_g=yes
3998fi
3999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4000fi
4001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4002fi
4003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4004   ac_c_werror_flag=$ac_save_c_werror_flag
4005fi
4006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4007$as_echo "$ac_cv_prog_cc_g" >&6; }
4008if test "$ac_test_CFLAGS" = set; then
4009  CFLAGS=$ac_save_CFLAGS
4010elif test $ac_cv_prog_cc_g = yes; then
4011  if test "$GCC" = yes; then
4012    CFLAGS="-g -O2"
4013  else
4014    CFLAGS="-g"
4015  fi
4016else
4017  if test "$GCC" = yes; then
4018    CFLAGS="-O2"
4019  else
4020    CFLAGS=
4021  fi
4022fi
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4024$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4025if test "${ac_cv_prog_cc_c89+set}" = set; then :
4026  $as_echo_n "(cached) " >&6
4027else
4028  ac_cv_prog_cc_c89=no
4029ac_save_CC=$CC
4030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031/* end confdefs.h.  */
4032#include <stdarg.h>
4033#include <stdio.h>
4034#include <sys/types.h>
4035#include <sys/stat.h>
4036/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4037struct buf { int x; };
4038FILE * (*rcsopen) (struct buf *, struct stat *, int);
4039static char *e (p, i)
4040     char **p;
4041     int i;
4042{
4043  return p[i];
4044}
4045static char *f (char * (*g) (char **, int), char **p, ...)
4046{
4047  char *s;
4048  va_list v;
4049  va_start (v,p);
4050  s = g (p, va_arg (v,int));
4051  va_end (v);
4052  return s;
4053}
4054
4055/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4056   function prototypes and stuff, but not '\xHH' hex character constants.
4057   These don't provoke an error unfortunately, instead are silently treated
4058   as 'x'.  The following induces an error, until -std is added to get
4059   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4060   array size at least.  It's necessary to write '\x00'==0 to get something
4061   that's true only with -std.  */
4062int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4063
4064/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4065   inside strings and character constants.  */
4066#define FOO(x) 'x'
4067int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4068
4069int test (int i, double x);
4070struct s1 {int (*f) (int a);};
4071struct s2 {int (*f) (double a);};
4072int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4073int argc;
4074char **argv;
4075int
4076main ()
4077{
4078return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4079  ;
4080  return 0;
4081}
4082_ACEOF
4083for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4084	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4085do
4086  CC="$ac_save_CC $ac_arg"
4087  if ac_fn_c_try_compile "$LINENO"; then :
4088  ac_cv_prog_cc_c89=$ac_arg
4089fi
4090rm -f core conftest.err conftest.$ac_objext
4091  test "x$ac_cv_prog_cc_c89" != "xno" && break
4092done
4093rm -f conftest.$ac_ext
4094CC=$ac_save_CC
4095
4096fi
4097# AC_CACHE_VAL
4098case "x$ac_cv_prog_cc_c89" in
4099  x)
4100    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4101$as_echo "none needed" >&6; } ;;
4102  xno)
4103    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4104$as_echo "unsupported" >&6; } ;;
4105  *)
4106    CC="$CC $ac_cv_prog_cc_c89"
4107    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4108$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4109esac
4110if test "x$ac_cv_prog_cc_c89" != xno; then :
4111
4112fi
4113
4114ac_ext=c
4115ac_cpp='$CPP $CPPFLAGS'
4116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118ac_compiler_gnu=$ac_cv_c_compiler_gnu
4119
4120ac_ext=c
4121ac_cpp='$CPP $CPPFLAGS'
4122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4124ac_compiler_gnu=$ac_cv_c_compiler_gnu
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4126$as_echo_n "checking how to run the C preprocessor... " >&6; }
4127# On Suns, sometimes $CPP names a directory.
4128if test -n "$CPP" && test -d "$CPP"; then
4129  CPP=
4130fi
4131if test -z "$CPP"; then
4132  if test "${ac_cv_prog_CPP+set}" = set; then :
4133  $as_echo_n "(cached) " >&6
4134else
4135      # Double quotes because CPP needs to be expanded
4136    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4137    do
4138      ac_preproc_ok=false
4139for ac_c_preproc_warn_flag in '' yes
4140do
4141  # Use a header file that comes with gcc, so configuring glibc
4142  # with a fresh cross-compiler works.
4143  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4144  # <limits.h> exists even on freestanding compilers.
4145  # On the NeXT, cc -E runs the code through the compiler's parser,
4146  # not just through cpp. "Syntax error" is here to catch this case.
4147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148/* end confdefs.h.  */
4149#ifdef __STDC__
4150# include <limits.h>
4151#else
4152# include <assert.h>
4153#endif
4154		     Syntax error
4155_ACEOF
4156if ac_fn_c_try_cpp "$LINENO"; then :
4157
4158else
4159  # Broken: fails on valid input.
4160continue
4161fi
4162rm -f conftest.err conftest.$ac_ext
4163
4164  # OK, works on sane cases.  Now check whether nonexistent headers
4165  # can be detected and how.
4166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167/* end confdefs.h.  */
4168#include <ac_nonexistent.h>
4169_ACEOF
4170if ac_fn_c_try_cpp "$LINENO"; then :
4171  # Broken: success on invalid input.
4172continue
4173else
4174  # Passes both tests.
4175ac_preproc_ok=:
4176break
4177fi
4178rm -f conftest.err conftest.$ac_ext
4179
4180done
4181# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4182rm -f conftest.err conftest.$ac_ext
4183if $ac_preproc_ok; then :
4184  break
4185fi
4186
4187    done
4188    ac_cv_prog_CPP=$CPP
4189
4190fi
4191  CPP=$ac_cv_prog_CPP
4192else
4193  ac_cv_prog_CPP=$CPP
4194fi
4195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4196$as_echo "$CPP" >&6; }
4197ac_preproc_ok=false
4198for ac_c_preproc_warn_flag in '' yes
4199do
4200  # Use a header file that comes with gcc, so configuring glibc
4201  # with a fresh cross-compiler works.
4202  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4203  # <limits.h> exists even on freestanding compilers.
4204  # On the NeXT, cc -E runs the code through the compiler's parser,
4205  # not just through cpp. "Syntax error" is here to catch this case.
4206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207/* end confdefs.h.  */
4208#ifdef __STDC__
4209# include <limits.h>
4210#else
4211# include <assert.h>
4212#endif
4213		     Syntax error
4214_ACEOF
4215if ac_fn_c_try_cpp "$LINENO"; then :
4216
4217else
4218  # Broken: fails on valid input.
4219continue
4220fi
4221rm -f conftest.err conftest.$ac_ext
4222
4223  # OK, works on sane cases.  Now check whether nonexistent headers
4224  # can be detected and how.
4225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226/* end confdefs.h.  */
4227#include <ac_nonexistent.h>
4228_ACEOF
4229if ac_fn_c_try_cpp "$LINENO"; then :
4230  # Broken: success on invalid input.
4231continue
4232else
4233  # Passes both tests.
4234ac_preproc_ok=:
4235break
4236fi
4237rm -f conftest.err conftest.$ac_ext
4238
4239done
4240# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4241rm -f conftest.err conftest.$ac_ext
4242if $ac_preproc_ok; then :
4243
4244else
4245  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4246$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4247as_fn_error "C preprocessor \"$CPP\" fails sanity check
4248See \`config.log' for more details." "$LINENO" 5; }
4249fi
4250
4251ac_ext=c
4252ac_cpp='$CPP $CPPFLAGS'
4253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255ac_compiler_gnu=$ac_cv_c_compiler_gnu
4256
4257
4258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4259$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4260if test "${ac_cv_path_GREP+set}" = set; then :
4261  $as_echo_n "(cached) " >&6
4262else
4263  if test -z "$GREP"; then
4264  ac_path_GREP_found=false
4265  # Loop through the user's path and test for each of PROGNAME-LIST
4266  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4268do
4269  IFS=$as_save_IFS
4270  test -z "$as_dir" && as_dir=.
4271    for ac_prog in grep ggrep; do
4272    for ac_exec_ext in '' $ac_executable_extensions; do
4273      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4274      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4275# Check for GNU ac_path_GREP and select it if it is found.
4276  # Check for GNU $ac_path_GREP
4277case `"$ac_path_GREP" --version 2>&1` in
4278*GNU*)
4279  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4280*)
4281  ac_count=0
4282  $as_echo_n 0123456789 >"conftest.in"
4283  while :
4284  do
4285    cat "conftest.in" "conftest.in" >"conftest.tmp"
4286    mv "conftest.tmp" "conftest.in"
4287    cp "conftest.in" "conftest.nl"
4288    $as_echo 'GREP' >> "conftest.nl"
4289    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4290    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4291    as_fn_arith $ac_count + 1 && ac_count=$as_val
4292    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4293      # Best one so far, save it but keep looking for a better one
4294      ac_cv_path_GREP="$ac_path_GREP"
4295      ac_path_GREP_max=$ac_count
4296    fi
4297    # 10*(2^10) chars as input seems more than enough
4298    test $ac_count -gt 10 && break
4299  done
4300  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4301esac
4302
4303      $ac_path_GREP_found && break 3
4304    done
4305  done
4306  done
4307IFS=$as_save_IFS
4308  if test -z "$ac_cv_path_GREP"; then
4309    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4310  fi
4311else
4312  ac_cv_path_GREP=$GREP
4313fi
4314
4315fi
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4317$as_echo "$ac_cv_path_GREP" >&6; }
4318 GREP="$ac_cv_path_GREP"
4319
4320
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4322$as_echo_n "checking for egrep... " >&6; }
4323if test "${ac_cv_path_EGREP+set}" = set; then :
4324  $as_echo_n "(cached) " >&6
4325else
4326  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4327   then ac_cv_path_EGREP="$GREP -E"
4328   else
4329     if test -z "$EGREP"; then
4330  ac_path_EGREP_found=false
4331  # Loop through the user's path and test for each of PROGNAME-LIST
4332  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4334do
4335  IFS=$as_save_IFS
4336  test -z "$as_dir" && as_dir=.
4337    for ac_prog in egrep; do
4338    for ac_exec_ext in '' $ac_executable_extensions; do
4339      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4340      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4341# Check for GNU ac_path_EGREP and select it if it is found.
4342  # Check for GNU $ac_path_EGREP
4343case `"$ac_path_EGREP" --version 2>&1` in
4344*GNU*)
4345  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4346*)
4347  ac_count=0
4348  $as_echo_n 0123456789 >"conftest.in"
4349  while :
4350  do
4351    cat "conftest.in" "conftest.in" >"conftest.tmp"
4352    mv "conftest.tmp" "conftest.in"
4353    cp "conftest.in" "conftest.nl"
4354    $as_echo 'EGREP' >> "conftest.nl"
4355    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4356    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4357    as_fn_arith $ac_count + 1 && ac_count=$as_val
4358    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4359      # Best one so far, save it but keep looking for a better one
4360      ac_cv_path_EGREP="$ac_path_EGREP"
4361      ac_path_EGREP_max=$ac_count
4362    fi
4363    # 10*(2^10) chars as input seems more than enough
4364    test $ac_count -gt 10 && break
4365  done
4366  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4367esac
4368
4369      $ac_path_EGREP_found && break 3
4370    done
4371  done
4372  done
4373IFS=$as_save_IFS
4374  if test -z "$ac_cv_path_EGREP"; then
4375    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4376  fi
4377else
4378  ac_cv_path_EGREP=$EGREP
4379fi
4380
4381   fi
4382fi
4383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4384$as_echo "$ac_cv_path_EGREP" >&6; }
4385 EGREP="$ac_cv_path_EGREP"
4386
4387
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4389$as_echo_n "checking for ANSI C header files... " >&6; }
4390if test "${ac_cv_header_stdc+set}" = set; then :
4391  $as_echo_n "(cached) " >&6
4392else
4393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394/* end confdefs.h.  */
4395#include <stdlib.h>
4396#include <stdarg.h>
4397#include <string.h>
4398#include <float.h>
4399
4400int
4401main ()
4402{
4403
4404  ;
4405  return 0;
4406}
4407_ACEOF
4408if ac_fn_c_try_compile "$LINENO"; then :
4409  ac_cv_header_stdc=yes
4410else
4411  ac_cv_header_stdc=no
4412fi
4413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4414
4415if test $ac_cv_header_stdc = yes; then
4416  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418/* end confdefs.h.  */
4419#include <string.h>
4420
4421_ACEOF
4422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4423  $EGREP "memchr" >/dev/null 2>&1; then :
4424
4425else
4426  ac_cv_header_stdc=no
4427fi
4428rm -f conftest*
4429
4430fi
4431
4432if test $ac_cv_header_stdc = yes; then
4433  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435/* end confdefs.h.  */
4436#include <stdlib.h>
4437
4438_ACEOF
4439if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4440  $EGREP "free" >/dev/null 2>&1; then :
4441
4442else
4443  ac_cv_header_stdc=no
4444fi
4445rm -f conftest*
4446
4447fi
4448
4449if test $ac_cv_header_stdc = yes; then
4450  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4451  if test "$cross_compiling" = yes; then :
4452  :
4453else
4454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455/* end confdefs.h.  */
4456#include <ctype.h>
4457#include <stdlib.h>
4458#if ((' ' & 0x0FF) == 0x020)
4459# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4460# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4461#else
4462# define ISLOWER(c) \
4463		   (('a' <= (c) && (c) <= 'i') \
4464		     || ('j' <= (c) && (c) <= 'r') \
4465		     || ('s' <= (c) && (c) <= 'z'))
4466# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4467#endif
4468
4469#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4470int
4471main ()
4472{
4473  int i;
4474  for (i = 0; i < 256; i++)
4475    if (XOR (islower (i), ISLOWER (i))
4476	|| toupper (i) != TOUPPER (i))
4477      return 2;
4478  return 0;
4479}
4480_ACEOF
4481if ac_fn_c_try_run "$LINENO"; then :
4482
4483else
4484  ac_cv_header_stdc=no
4485fi
4486rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4487  conftest.$ac_objext conftest.beam conftest.$ac_ext
4488fi
4489
4490fi
4491fi
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4493$as_echo "$ac_cv_header_stdc" >&6; }
4494if test $ac_cv_header_stdc = yes; then
4495
4496$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4497
4498fi
4499
4500# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4501for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4502		  inttypes.h stdint.h unistd.h
4503do :
4504  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4505ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4506"
4507eval as_val=\$$as_ac_Header
4508   if test "x$as_val" = x""yes; then :
4509  cat >>confdefs.h <<_ACEOF
4510#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4511_ACEOF
4512
4513fi
4514
4515done
4516
4517
4518ac_fn_c_check_header_mongrel "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
4519if test "x$ac_cv_header_linux_fs_h" = x""yes; then :
4520  linux_headers=yes
4521else
4522  linux_headers=no
4523fi
4524
4525
4526if test "$linux_headers" != yes; then
4527  LINUX_INCLUDE='-I$(top_builddir)/include'
4528fi
4529
4530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4531$as_echo_n "checking for additional special compiler flags... " >&6; }
4532if test "$GCC" = yes
4533then
4534    case "$host_cpu" in
4535	alpha)		addcflags="-mieee" ;;
4536    esac
4537fi
4538if test "x$addcflags" != x
4539then
4540    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4541$as_echo "$addcflags" >&6; }
4542    CFLAGS="$addcflags $CFLAGS"
4543else
4544    { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4545$as_echo "(none)" >&6; }
4546fi
4547LIB_EXT=.a
4548STATIC_LIB_EXT=.a
4549PROFILED_LIB_EXT=.a
4550
4551# Check whether --with-root-prefix was given.
4552if test "${with_root_prefix+set}" = set; then :
4553  withval=$with_root_prefix; root_prefix=$withval
4554else
4555  root_prefix=NONE
4556fi
4557# Check whether --enable-maintainer-mode was given.
4558if test "${enable_maintainer_mode+set}" = set; then :
4559  enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4560then
4561	MAINTAINER_CMT=#
4562	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4563$as_echo "Disabling maintainer mode" >&6; }
4564else
4565	MAINTAINER_CMT=
4566	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4567$as_echo "Enabling maintainer mode" >&6; }
4568fi
4569
4570else
4571  MAINTAINER_CMT=#
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4573$as_echo "Disabling maintainer mode by default" >&6; }
4574
4575fi
4576
4577
4578# Check whether --enable-verbose-makecmds was given.
4579if test "${enable_verbose_makecmds+set}" = set; then :
4580  enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4581then
4582	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4583$as_echo "Disabling verbose make commands" >&6; }
4584	E=@echo
4585	Q=@
4586else
4587	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4588$as_echo "Enabling verbose make commands" >&6; }
4589	E=@\\#
4590	Q=
4591fi
4592
4593else
4594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4595$as_echo "Disabling verbose make commands" >&6; }
4596E=@echo
4597Q=@
4598
4599fi
4600
4601
4602
4603# Check whether --enable-compression was given.
4604if test "${enable_compression+set}" = set; then :
4605  enableval=$enable_compression; if test "$enableval" = "no"
4606then
4607	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4608$as_echo "Disabling compression support" >&6; }
4609else
4610	$as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4611
4612	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4613$as_echo "Enabling compression support" >&6; }
4614	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4615$as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4616fi
4617
4618else
4619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4620$as_echo "Disabling compression support by default" >&6; }
4621
4622fi
4623
4624# Check whether --enable-htree was given.
4625if test "${enable_htree+set}" = set; then :
4626  enableval=$enable_htree; if test "$enableval" = "no"
4627then
4628	HTREE_CMT=#
4629	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4630$as_echo "Disabling htree directory support" >&6; }
4631else
4632	HTREE_CMT=
4633	$as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4634
4635	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4636$as_echo "Enabling htree directory support" >&6; }
4637fi
4638
4639else
4640  HTREE_CMT=
4641$as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4642
4643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4644$as_echo "Enabling htree directory support by default" >&6; }
4645
4646fi
4647
4648
4649E2_PKG_CONFIG_STATIC=--static
4650LDFLAG_DYNAMIC=
4651PRIVATE_LIBS_CMT=
4652# Check whether --enable-elf-shlibs was given.
4653if test "${enable_elf_shlibs+set}" = set; then :
4654  enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4655then
4656	ELF_CMT=#
4657	MAKEFILE_ELF=/dev/null
4658	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4659$as_echo "Disabling ELF shared libraries" >&6; }
4660else
4661	E2_PKG_CONFIG_STATIC=
4662	ELF_CMT=
4663	MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4664	case "$host_os" in
4665	solaris2.*)
4666		MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4667	;;
4668	esac
4669	BINARY_TYPE=elfbin
4670	LIB_EXT=.so
4671	PRIVATE_LIBS_CMT=#
4672	LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4673	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4674$as_echo "Enabling ELF shared libraries" >&6; }
4675fi
4676
4677else
4678  MAKEFILE_ELF=/dev/null
4679ELF_CMT=#
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4681$as_echo "Disabling ELF shared libraries by default" >&6; }
4682
4683fi
4684
4685
4686
4687# Check whether --enable-bsd-shlibs was given.
4688if test "${enable_bsd_shlibs+set}" = set; then :
4689  enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4690then
4691	BSDLIB_CMT=#
4692	MAKEFILE_BSDLIB=/dev/null
4693	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4694$as_echo "Disabling BSD shared libraries" >&6; }
4695else
4696	E2_PKG_CONFIG_STATIC=
4697	BSDLIB_CMT=
4698	MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4699	LIB_EXT=.so
4700	case "$host_os" in
4701	darwin*)
4702		MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4703		LIB_EXT=.dylib
4704	;;
4705	esac
4706	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4707$as_echo "Enabling BSD shared libraries" >&6; }
4708fi
4709
4710else
4711  MAKEFILE_BSDLIB=/dev/null
4712BSDLIB_CMT=#
4713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4714$as_echo "Disabling BSD shared libraries by default" >&6; }
4715
4716fi
4717
4718
4719
4720# Check whether --enable-profile was given.
4721if test "${enable_profile+set}" = set; then :
4722  enableval=$enable_profile; if test "$enableval" = "no"
4723then
4724	PROFILE_CMT=#
4725	MAKEFILE_PROFILE=/dev/null
4726	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4727$as_echo "Disabling profiling libraries" >&6; }
4728else
4729	PROFILE_CMT=
4730	MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4731	PROFILED_LIB_EXT=_p.a
4732	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4733$as_echo "Building profiling libraries" >&6; }
4734fi
4735
4736else
4737  PROFILE_CMT=#
4738MAKEFILE_PROFILE=/dev/null
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4740$as_echo "Disabling profiling libraries by default" >&6; }
4741
4742fi
4743
4744
4745
4746# Check whether --enable-checker was given.
4747if test "${enable_checker+set}" = set; then :
4748  enableval=$enable_checker; if test "$enableval" = "no"
4749then
4750	CHECKER_CMT=#
4751	MAKEFILE_CHECKER=/dev/null
4752	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4753$as_echo "Disabling checker libraries" >&6; }
4754else
4755	CHECKER_CMT=
4756	MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4757	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4758$as_echo "Building checker libraries" >&6; }
4759fi
4760
4761else
4762  CHECKER_CMT=#
4763MAKEFILE_CHECKER=/dev/null
4764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4765$as_echo "Disabling checker libraries by default" >&6; }
4766
4767fi
4768
4769
4770
4771
4772
4773
4774
4775
4776# Check whether --enable-jbd-debug was given.
4777if test "${enable_jbd_debug+set}" = set; then :
4778  enableval=$enable_jbd_debug; if test "$enableval" = "no"
4779then
4780	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4781$as_echo "Disabling journal debugging" >&6; }
4782else
4783	$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4784
4785	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4786$as_echo "Enabling journal debugging" >&6; }
4787fi
4788
4789else
4790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4791$as_echo "Disabling journal debugging by default" >&6; }
4792
4793fi
4794
4795# Check whether --enable-blkid-debug was given.
4796if test "${enable_blkid_debug+set}" = set; then :
4797  enableval=$enable_blkid_debug; if test "$enableval" = "no"
4798then
4799	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4800$as_echo "Disabling blkid debugging" >&6; }
4801else
4802	$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4803
4804	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4805$as_echo "Enabling blkid debugging" >&6; }
4806fi
4807
4808else
4809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4810$as_echo "Disabling blkid debugging by default" >&6; }
4811
4812fi
4813
4814# Check whether --enable-testio-debug was given.
4815if test "${enable_testio_debug+set}" = set; then :
4816  enableval=$enable_testio_debug; if test "$enableval" = "no"
4817then
4818	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4819$as_echo "Disabling testio debugging" >&6; }
4820	TEST_IO_CMT="#"
4821else
4822	TEST_IO_CMT=
4823	$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4824
4825	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4826$as_echo "Enabling testio debugging" >&6; }
4827fi
4828
4829else
4830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4831$as_echo "Enabling testio debugging by default" >&6; }
4832$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4833
4834TEST_IO_CMT=
4835
4836fi
4837
4838
4839
4840
4841if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4842        if test -n "$ac_tool_prefix"; then
4843  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4844set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4846$as_echo_n "checking for $ac_word... " >&6; }
4847if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4848  $as_echo_n "(cached) " >&6
4849else
4850  case $PKG_CONFIG in
4851  [\\/]* | ?:[\\/]*)
4852  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4853  ;;
4854  *)
4855  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856for as_dir in $PATH
4857do
4858  IFS=$as_save_IFS
4859  test -z "$as_dir" && as_dir=.
4860    for ac_exec_ext in '' $ac_executable_extensions; do
4861  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4862    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4863    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4864    break 2
4865  fi
4866done
4867  done
4868IFS=$as_save_IFS
4869
4870  ;;
4871esac
4872fi
4873PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4874if test -n "$PKG_CONFIG"; then
4875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4876$as_echo "$PKG_CONFIG" >&6; }
4877else
4878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879$as_echo "no" >&6; }
4880fi
4881
4882
4883fi
4884if test -z "$ac_cv_path_PKG_CONFIG"; then
4885  ac_pt_PKG_CONFIG=$PKG_CONFIG
4886  # Extract the first word of "pkg-config", so it can be a program name with args.
4887set dummy pkg-config; ac_word=$2
4888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4889$as_echo_n "checking for $ac_word... " >&6; }
4890if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4891  $as_echo_n "(cached) " >&6
4892else
4893  case $ac_pt_PKG_CONFIG in
4894  [\\/]* | ?:[\\/]*)
4895  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4896  ;;
4897  *)
4898  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899for as_dir in $PATH
4900do
4901  IFS=$as_save_IFS
4902  test -z "$as_dir" && as_dir=.
4903    for ac_exec_ext in '' $ac_executable_extensions; do
4904  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4905    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907    break 2
4908  fi
4909done
4910  done
4911IFS=$as_save_IFS
4912
4913  ;;
4914esac
4915fi
4916ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4917if test -n "$ac_pt_PKG_CONFIG"; then
4918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4919$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4920else
4921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922$as_echo "no" >&6; }
4923fi
4924
4925  if test "x$ac_pt_PKG_CONFIG" = x; then
4926    PKG_CONFIG=""
4927  else
4928    case $cross_compiling:$ac_tool_warned in
4929yes:)
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4932ac_tool_warned=yes ;;
4933esac
4934    PKG_CONFIG=$ac_pt_PKG_CONFIG
4935  fi
4936else
4937  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4938fi
4939
4940fi
4941if test -n "$PKG_CONFIG"; then
4942        _pkg_min_version=0.9.0
4943        { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4944$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4945        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4946                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4947$as_echo "yes" >&6; }
4948        else
4949                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950$as_echo "no" >&6; }
4951                PKG_CONFIG=""
4952        fi
4953
4954fi
4955LIBUUID=
4956DEPLIBUUID=
4957STATIC_LIBUUID=
4958DEPSTATIC_LIBUUID=
4959PROFILED_LIBUUID=
4960DEPPROFILED_LIBUUID=
4961UUID_CMT=
4962# Check whether --enable-libuuid was given.
4963if test "${enable_libuuid+set}" = set; then :
4964  enableval=$enable_libuuid; if test "$enableval" = "no"
4965then
4966	if test -z "$PKG_CONFIG"; then
4967		as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
4968	fi
4969
4970	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4971$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4972if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
4973  $as_echo_n "(cached) " >&6
4974else
4975  ac_check_lib_save_LIBS=$LIBS
4976LIBS="-luuid $LIBUUID $LIBS"
4977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978/* end confdefs.h.  */
4979
4980/* Override any GCC internal prototype to avoid an error.
4981   Use char because int might match the return type of a GCC
4982   builtin and then its argument prototype would still apply.  */
4983#ifdef __cplusplus
4984extern "C"
4985#endif
4986char uuid_generate ();
4987int
4988main ()
4989{
4990return uuid_generate ();
4991  ;
4992  return 0;
4993}
4994_ACEOF
4995if ac_fn_c_try_link "$LINENO"; then :
4996  ac_cv_lib_uuid_uuid_generate=yes
4997else
4998  ac_cv_lib_uuid_uuid_generate=no
4999fi
5000rm -f core conftest.err conftest.$ac_objext \
5001    conftest$ac_exeext conftest.$ac_ext
5002LIBS=$ac_check_lib_save_LIBS
5003fi
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5005$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5006if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
5007  LIBUUID=`$PKG_CONFIG --libs uuid`;
5008		 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5009else
5010  as_fn_error "external uuid library not found" "$LINENO" 5
5011fi
5012
5013	UUID_CMT=#
5014	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5015$as_echo "Disabling private uuid library" >&6; }
5016else
5017	LIBUUID='$(LIB)/libuuid'$LIB_EXT
5018	DEPLIBUUID=$LIBUUID
5019	STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5020	DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5021	PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5022	DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5023	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5024$as_echo "Enabling private uuid library" >&6; }
5025fi
5026
5027else
5028  LIBUUID='$(LIB)/libuuid'$LIB_EXT
5029DEPLIBUUID=$LIBUUID
5030STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5031DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5032PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5033DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5035$as_echo "Enabling private uuid library by default" >&6; }
5036
5037fi
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5049        if test -n "$ac_tool_prefix"; then
5050  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5051set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053$as_echo_n "checking for $ac_word... " >&6; }
5054if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5055  $as_echo_n "(cached) " >&6
5056else
5057  case $PKG_CONFIG in
5058  [\\/]* | ?:[\\/]*)
5059  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5060  ;;
5061  *)
5062  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063for as_dir in $PATH
5064do
5065  IFS=$as_save_IFS
5066  test -z "$as_dir" && as_dir=.
5067    for ac_exec_ext in '' $ac_executable_extensions; do
5068  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5069    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5070    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5071    break 2
5072  fi
5073done
5074  done
5075IFS=$as_save_IFS
5076
5077  ;;
5078esac
5079fi
5080PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5081if test -n "$PKG_CONFIG"; then
5082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5083$as_echo "$PKG_CONFIG" >&6; }
5084else
5085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086$as_echo "no" >&6; }
5087fi
5088
5089
5090fi
5091if test -z "$ac_cv_path_PKG_CONFIG"; then
5092  ac_pt_PKG_CONFIG=$PKG_CONFIG
5093  # Extract the first word of "pkg-config", so it can be a program name with args.
5094set dummy pkg-config; ac_word=$2
5095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5096$as_echo_n "checking for $ac_word... " >&6; }
5097if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5098  $as_echo_n "(cached) " >&6
5099else
5100  case $ac_pt_PKG_CONFIG in
5101  [\\/]* | ?:[\\/]*)
5102  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5103  ;;
5104  *)
5105  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106for as_dir in $PATH
5107do
5108  IFS=$as_save_IFS
5109  test -z "$as_dir" && as_dir=.
5110    for ac_exec_ext in '' $ac_executable_extensions; do
5111  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5112    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5113    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5114    break 2
5115  fi
5116done
5117  done
5118IFS=$as_save_IFS
5119
5120  ;;
5121esac
5122fi
5123ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5124if test -n "$ac_pt_PKG_CONFIG"; then
5125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5126$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5127else
5128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129$as_echo "no" >&6; }
5130fi
5131
5132  if test "x$ac_pt_PKG_CONFIG" = x; then
5133    PKG_CONFIG=""
5134  else
5135    case $cross_compiling:$ac_tool_warned in
5136yes:)
5137{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5138$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5139ac_tool_warned=yes ;;
5140esac
5141    PKG_CONFIG=$ac_pt_PKG_CONFIG
5142  fi
5143else
5144  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5145fi
5146
5147fi
5148if test -n "$PKG_CONFIG"; then
5149        _pkg_min_version=0.9.0
5150        { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5151$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5152        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5153                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5154$as_echo "yes" >&6; }
5155        else
5156                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157$as_echo "no" >&6; }
5158                PKG_CONFIG=""
5159        fi
5160
5161fi
5162LIBBLKID=
5163DEPLIBBLKID=
5164STATIC_LIBBLKID=
5165DEPSTATIC_LIBBLKID=
5166PROFILED_LIBBLKID=
5167DEPPROFILED_LIBBLKID=
5168BLKID_CMT=
5169# Check whether --enable-libblkid was given.
5170if test "${enable_libblkid+set}" = set; then :
5171  enableval=$enable_libblkid; if test "$enableval" = "no"
5172then
5173	if test -z "$PKG_CONFIG"; then
5174		as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
5175	fi
5176
5177	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5178$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5179if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
5180  $as_echo_n "(cached) " >&6
5181else
5182  ac_check_lib_save_LIBS=$LIBS
5183LIBS="-lblkid $LIBBLKID $LIBS"
5184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185/* end confdefs.h.  */
5186
5187/* Override any GCC internal prototype to avoid an error.
5188   Use char because int might match the return type of a GCC
5189   builtin and then its argument prototype would still apply.  */
5190#ifdef __cplusplus
5191extern "C"
5192#endif
5193char blkid_get_cache ();
5194int
5195main ()
5196{
5197return blkid_get_cache ();
5198  ;
5199  return 0;
5200}
5201_ACEOF
5202if ac_fn_c_try_link "$LINENO"; then :
5203  ac_cv_lib_blkid_blkid_get_cache=yes
5204else
5205  ac_cv_lib_blkid_blkid_get_cache=no
5206fi
5207rm -f core conftest.err conftest.$ac_objext \
5208    conftest$ac_exeext conftest.$ac_ext
5209LIBS=$ac_check_lib_save_LIBS
5210fi
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5212$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5213if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then :
5214  LIBBLKID=`$PKG_CONFIG --libs blkid`;
5215		 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5216else
5217  as_fn_error "external blkid library not found" "$LINENO" 5
5218fi
5219
5220	BLKID_CMT=#
5221	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5222$as_echo "Disabling private blkid library" >&6; }
5223else
5224	LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5225	DEPLIBBLKID=$LIBBLKID
5226	STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5227	DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5228	PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5229	DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5230	$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5231
5232	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5233$as_echo "Enabling private blkid library" >&6; }
5234fi
5235
5236else
5237  LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5238DEPLIBBLKID=$LIBBLKID
5239STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5240DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5241PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5242DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5243$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5244
5245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5246$as_echo "Enabling private blkid library by default" >&6; }
5247
5248fi
5249
5250
5251
5252
5253
5254
5255
5256
5257# Check whether --enable-debugfs was given.
5258if test "${enable_debugfs+set}" = set; then :
5259  enableval=$enable_debugfs; if test "$enableval" = "no"
5260then
5261	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5262$as_echo "Disabling debugfs support" >&6; }
5263	DEBUGFS_CMT="#"
5264else
5265	DEBUGFS_CMT=
5266	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5267$as_echo "Enabling debugfs support" >&6; }
5268fi
5269
5270else
5271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5272$as_echo "Enabling debugfs support by default" >&6; }
5273DEBUGFS_CMT=
5274
5275fi
5276
5277
5278# Check whether --enable-imager was given.
5279if test "${enable_imager+set}" = set; then :
5280  enableval=$enable_imager; if test "$enableval" = "no"
5281then
5282	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5283$as_echo "Disabling e2image support" >&6; }
5284	IMAGER_CMT="#"
5285else
5286	IMAGER_CMT=
5287	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5288$as_echo "Enabling e2image support" >&6; }
5289fi
5290
5291else
5292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5293$as_echo "Enabling e2image support by default" >&6; }
5294IMAGER_CMT=
5295
5296fi
5297
5298
5299# Check whether --enable-resizer was given.
5300if test "${enable_resizer+set}" = set; then :
5301  enableval=$enable_resizer; if test "$enableval" = "no"
5302then
5303	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5304$as_echo "Disabling e2resize support" >&6; }
5305	RESIZER_CMT="#"
5306else
5307	RESIZER_CMT=
5308	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5309$as_echo "Enabling e2resize support" >&6; }
5310fi
5311
5312else
5313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5314$as_echo "Enabling e2resize support by default" >&6; }
5315RESIZER_CMT=
5316
5317fi
5318
5319
5320# Check whether --enable-fsck was given.
5321if test "${enable_fsck+set}" = set; then :
5322  enableval=$enable_fsck; if test "$enableval" = "no"
5323then
5324	FSCK_PROG='' FSCK_MAN=''
5325	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5326$as_echo "Not building fsck wrapper" >&6; }
5327else
5328	FSCK_PROG=fsck FSCK_MAN=fsck.8
5329	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5330$as_echo "Building fsck wrapper" >&6; }
5331fi
5332
5333else
5334  case "$host_os" in
5335  gnu*)
5336    FSCK_PROG='' FSCK_MAN=''
5337    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5338$as_echo "Not building fsck wrapper by default" >&6; }
5339    ;;
5340  *)
5341    FSCK_PROG=fsck FSCK_MAN=fsck.8
5342    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5343$as_echo "Building fsck wrapper by default" >&6; }
5344esac
5345
5346fi
5347
5348
5349
5350# Check whether --enable-e2initrd-helper was given.
5351if test "${enable_e2initrd_helper+set}" = set; then :
5352  enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5353then
5354	E2INITRD_PROG='' E2INITRD_MAN=''
5355	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5356$as_echo "Not building e2initrd helper" >&6; }
5357else
5358	E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5359	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5360$as_echo "Building e2initrd helper" >&6; }
5361fi
5362
5363else
5364  E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5366$as_echo "Building e2initrd helper by default" >&6; }
5367
5368fi
5369
5370
5371
5372# Check whether --enable-tls was given.
5373if test "${enable_tls+set}" = set; then :
5374  enableval=$enable_tls; if test "$enableval" = "no"
5375then
5376	try_tls=""
5377	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5378$as_echo "Disabling thread local support" >&6; }
5379else
5380	try_tls="yes"
5381	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5382$as_echo "Enabling thread local support" >&6; }
5383fi
5384
5385else
5386  if test -n "$WITH_DIET_LIBC"
5387then
5388	try_tls=""
5389	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5390$as_echo "Diet libc does not support thread local support" >&6; }
5391else
5392	try_tls="yes"
5393	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5394$as_echo "Try using thread local support by default" >&6; }
5395fi
5396
5397fi
5398
5399if test "$try_tls" = "yes"
5400then
5401
5402  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5403$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5404  if test "${ac_cv_tls+set}" = set; then :
5405  $as_echo_n "(cached) " >&6
5406else
5407
5408    ax_tls_keywords="__thread __declspec(thread) none"
5409    for ax_tls_keyword in $ax_tls_keywords; do
5410       case $ax_tls_keyword in
5411          none) ac_cv_tls=none ; break ;;
5412          *)
5413             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414/* end confdefs.h.  */
5415#include <stdlib.h>
5416                 static void
5417                 foo(void) {
5418                 static  $ax_tls_keyword  int bar;
5419                 exit(1);
5420                 }
5421int
5422main ()
5423{
5424
5425  ;
5426  return 0;
5427}
5428_ACEOF
5429if ac_fn_c_try_compile "$LINENO"; then :
5430  ac_cv_tls=$ax_tls_keyword ; break
5431else
5432  ac_cv_tls=none
5433
5434fi
5435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5436          esac
5437    done
5438
5439fi
5440
5441
5442  if test "$ac_cv_tls" != "none"; then
5443
5444cat >>confdefs.h <<_ACEOF
5445#define TLS $ac_cv_tls
5446_ACEOF
5447
5448  fi
5449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5450$as_echo "$ac_cv_tls" >&6; }
5451
5452fi
5453# Check whether --enable-uuidd was given.
5454if test "${enable_uuidd+set}" = set; then :
5455  enableval=$enable_uuidd; if test "$enableval" = "no"
5456then
5457	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5458$as_echo "Not building uuidd" >&6; }
5459	UUIDD_CMT="#"
5460else
5461	$as_echo "#define USE_UUIDD 1" >>confdefs.h
5462
5463	UUIDD_CMT=""
5464	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5465$as_echo "Building uuidd" >&6; }
5466fi
5467
5468else
5469  $as_echo "#define USE_UUIDD 1" >>confdefs.h
5470
5471UUIDD_CMT=""
5472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5473$as_echo "Building uuidd by default" >&6; }
5474
5475fi
5476
5477
5478MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5479
5480GETTEXT_PACKAGE=e2fsprogs
5481PACKAGE=e2fsprogs
5482VERSION="$E2FSPROGS_VERSION"
5483VERSION=0.14.1
5484cat >>confdefs.h <<_ACEOF
5485#define PACKAGE "$PACKAGE"
5486_ACEOF
5487
5488cat >>confdefs.h <<_ACEOF
5489#define VERSION "$VERSION"
5490_ACEOF
5491
5492
5493
5494
5495
5496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5497$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5498set x ${MAKE-make}
5499ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5500if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5501  $as_echo_n "(cached) " >&6
5502else
5503  cat >conftest.make <<\_ACEOF
5504SHELL = /bin/sh
5505all:
5506	@echo '@@@%%%=$(MAKE)=@@@%%%'
5507_ACEOF
5508# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5509case `${MAKE-make} -f conftest.make 2>/dev/null` in
5510  *@@@%%%=?*=@@@%%%*)
5511    eval ac_cv_prog_make_${ac_make}_set=yes;;
5512  *)
5513    eval ac_cv_prog_make_${ac_make}_set=no;;
5514esac
5515rm -f conftest.make
5516fi
5517if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5519$as_echo "yes" >&6; }
5520  SET_MAKE=
5521else
5522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523$as_echo "no" >&6; }
5524  SET_MAKE="MAKE=${MAKE-make}"
5525fi
5526
5527# Find a good install program.  We prefer a C program (faster),
5528# so one script is as good as another.  But avoid the broken or
5529# incompatible versions:
5530# SysV /etc/install, /usr/sbin/install
5531# SunOS /usr/etc/install
5532# IRIX /sbin/install
5533# AIX /bin/install
5534# AmigaOS /C/install, which installs bootblocks on floppy discs
5535# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5536# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5537# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5538# OS/2's system install, which has a completely different semantic
5539# ./install, which can be erroneously created by make from ./install.sh.
5540# Reject install programs that cannot install multiple files.
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5542$as_echo_n "checking for a BSD-compatible install... " >&6; }
5543if test -z "$INSTALL"; then
5544if test "${ac_cv_path_install+set}" = set; then :
5545  $as_echo_n "(cached) " >&6
5546else
5547  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548for as_dir in $PATH
5549do
5550  IFS=$as_save_IFS
5551  test -z "$as_dir" && as_dir=.
5552    # Account for people who put trailing slashes in PATH elements.
5553case $as_dir/ in #((
5554  ./ | .// | /[cC]/* | \
5555  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5556  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5557  /usr/ucb/* ) ;;
5558  *)
5559    # OSF1 and SCO ODT 3.0 have their own names for install.
5560    # Don't use installbsd from OSF since it installs stuff as root
5561    # by default.
5562    for ac_prog in ginstall scoinst install; do
5563      for ac_exec_ext in '' $ac_executable_extensions; do
5564	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5565	  if test $ac_prog = install &&
5566	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5567	    # AIX install.  It has an incompatible calling convention.
5568	    :
5569	  elif test $ac_prog = install &&
5570	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5571	    # program-specific install script used by HP pwplus--don't use.
5572	    :
5573	  else
5574	    rm -rf conftest.one conftest.two conftest.dir
5575	    echo one > conftest.one
5576	    echo two > conftest.two
5577	    mkdir conftest.dir
5578	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5579	      test -s conftest.one && test -s conftest.two &&
5580	      test -s conftest.dir/conftest.one &&
5581	      test -s conftest.dir/conftest.two
5582	    then
5583	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5584	      break 3
5585	    fi
5586	  fi
5587	fi
5588      done
5589    done
5590    ;;
5591esac
5592
5593  done
5594IFS=$as_save_IFS
5595
5596rm -rf conftest.one conftest.two conftest.dir
5597
5598fi
5599  if test "${ac_cv_path_install+set}" = set; then
5600    INSTALL=$ac_cv_path_install
5601  else
5602    # As a last resort, use the slow shell script.  Don't cache a
5603    # value for INSTALL within a source directory, because that will
5604    # break other packages using the cache if that directory is
5605    # removed, or if the value is a relative name.
5606    INSTALL=$ac_install_sh
5607  fi
5608fi
5609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5610$as_echo "$INSTALL" >&6; }
5611
5612# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5613# It thinks the first close brace ends the variable substitution.
5614test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5615
5616test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5617
5618test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5619
5620
5621        MKINSTALLDIRS=
5622  if test -n "$ac_aux_dir"; then
5623    case "$ac_aux_dir" in
5624      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5625      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5626    esac
5627  fi
5628  if test -z "$MKINSTALLDIRS"; then
5629    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5630  fi
5631
5632
5633
5634  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5635$as_echo_n "checking whether NLS is requested... " >&6; }
5636    # Check whether --enable-nls was given.
5637if test "${enable_nls+set}" = set; then :
5638  enableval=$enable_nls; USE_NLS=$enableval
5639else
5640  USE_NLS=yes
5641fi
5642
5643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5644$as_echo "$USE_NLS" >&6; }
5645
5646
5647
5648
5649
5650
5651# Prepare PATH_SEPARATOR.
5652# The user is always right.
5653if test "${PATH_SEPARATOR+set}" != set; then
5654  echo "#! /bin/sh" >conf$$.sh
5655  echo  "exit 0"   >>conf$$.sh
5656  chmod +x conf$$.sh
5657  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5658    PATH_SEPARATOR=';'
5659  else
5660    PATH_SEPARATOR=:
5661  fi
5662  rm -f conf$$.sh
5663fi
5664
5665# Find out how to test for executable files. Don't use a zero-byte file,
5666# as systems may use methods other than mode bits to determine executability.
5667cat >conf$$.file <<_ASEOF
5668#! /bin/sh
5669exit 0
5670_ASEOF
5671chmod +x conf$$.file
5672if test -x conf$$.file >/dev/null 2>&1; then
5673  ac_executable_p="test -x"
5674else
5675  ac_executable_p="test -f"
5676fi
5677rm -f conf$$.file
5678
5679# Extract the first word of "msgfmt", so it can be a program name with args.
5680set dummy msgfmt; ac_word=$2
5681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682$as_echo_n "checking for $ac_word... " >&6; }
5683if test "${ac_cv_path_MSGFMT+set}" = set; then :
5684  $as_echo_n "(cached) " >&6
5685else
5686  case "$MSGFMT" in
5687  [\\/]* | ?:[\\/]*)
5688    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5689    ;;
5690  *)
5691    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5692    for ac_dir in $PATH; do
5693      IFS="$ac_save_IFS"
5694      test -z "$ac_dir" && ac_dir=.
5695      for ac_exec_ext in '' $ac_executable_extensions; do
5696        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5697          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5698     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5699            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5700            break 2
5701          fi
5702        fi
5703      done
5704    done
5705    IFS="$ac_save_IFS"
5706  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5707    ;;
5708esac
5709fi
5710MSGFMT="$ac_cv_path_MSGFMT"
5711if test "$MSGFMT" != ":"; then
5712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5713$as_echo "$MSGFMT" >&6; }
5714else
5715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716$as_echo "no" >&6; }
5717fi
5718
5719  # Extract the first word of "gmsgfmt", so it can be a program name with args.
5720set dummy gmsgfmt; ac_word=$2
5721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5722$as_echo_n "checking for $ac_word... " >&6; }
5723if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5724  $as_echo_n "(cached) " >&6
5725else
5726  case $GMSGFMT in
5727  [\\/]* | ?:[\\/]*)
5728  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5729  ;;
5730  *)
5731  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732for as_dir in $PATH
5733do
5734  IFS=$as_save_IFS
5735  test -z "$as_dir" && as_dir=.
5736    for ac_exec_ext in '' $ac_executable_extensions; do
5737  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5738    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5739    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5740    break 2
5741  fi
5742done
5743  done
5744IFS=$as_save_IFS
5745
5746  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5747  ;;
5748esac
5749fi
5750GMSGFMT=$ac_cv_path_GMSGFMT
5751if test -n "$GMSGFMT"; then
5752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5753$as_echo "$GMSGFMT" >&6; }
5754else
5755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756$as_echo "no" >&6; }
5757fi
5758
5759
5760
5761
5762# Prepare PATH_SEPARATOR.
5763# The user is always right.
5764if test "${PATH_SEPARATOR+set}" != set; then
5765  echo "#! /bin/sh" >conf$$.sh
5766  echo  "exit 0"   >>conf$$.sh
5767  chmod +x conf$$.sh
5768  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5769    PATH_SEPARATOR=';'
5770  else
5771    PATH_SEPARATOR=:
5772  fi
5773  rm -f conf$$.sh
5774fi
5775
5776# Find out how to test for executable files. Don't use a zero-byte file,
5777# as systems may use methods other than mode bits to determine executability.
5778cat >conf$$.file <<_ASEOF
5779#! /bin/sh
5780exit 0
5781_ASEOF
5782chmod +x conf$$.file
5783if test -x conf$$.file >/dev/null 2>&1; then
5784  ac_executable_p="test -x"
5785else
5786  ac_executable_p="test -f"
5787fi
5788rm -f conf$$.file
5789
5790# Extract the first word of "xgettext", so it can be a program name with args.
5791set dummy xgettext; ac_word=$2
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793$as_echo_n "checking for $ac_word... " >&6; }
5794if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5795  $as_echo_n "(cached) " >&6
5796else
5797  case "$XGETTEXT" in
5798  [\\/]* | ?:[\\/]*)
5799    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5800    ;;
5801  *)
5802    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5803    for ac_dir in $PATH; do
5804      IFS="$ac_save_IFS"
5805      test -z "$ac_dir" && ac_dir=.
5806      for ac_exec_ext in '' $ac_executable_extensions; do
5807        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5808          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5809     (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
5810            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5811            break 2
5812          fi
5813        fi
5814      done
5815    done
5816    IFS="$ac_save_IFS"
5817  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5818    ;;
5819esac
5820fi
5821XGETTEXT="$ac_cv_path_XGETTEXT"
5822if test "$XGETTEXT" != ":"; then
5823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5824$as_echo "$XGETTEXT" >&6; }
5825else
5826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827$as_echo "no" >&6; }
5828fi
5829
5830    rm -f messages.po
5831
5832
5833# Prepare PATH_SEPARATOR.
5834# The user is always right.
5835if test "${PATH_SEPARATOR+set}" != set; then
5836  echo "#! /bin/sh" >conf$$.sh
5837  echo  "exit 0"   >>conf$$.sh
5838  chmod +x conf$$.sh
5839  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5840    PATH_SEPARATOR=';'
5841  else
5842    PATH_SEPARATOR=:
5843  fi
5844  rm -f conf$$.sh
5845fi
5846
5847# Find out how to test for executable files. Don't use a zero-byte file,
5848# as systems may use methods other than mode bits to determine executability.
5849cat >conf$$.file <<_ASEOF
5850#! /bin/sh
5851exit 0
5852_ASEOF
5853chmod +x conf$$.file
5854if test -x conf$$.file >/dev/null 2>&1; then
5855  ac_executable_p="test -x"
5856else
5857  ac_executable_p="test -f"
5858fi
5859rm -f conf$$.file
5860
5861# Extract the first word of "msgmerge", so it can be a program name with args.
5862set dummy msgmerge; ac_word=$2
5863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5864$as_echo_n "checking for $ac_word... " >&6; }
5865if test "${ac_cv_path_MSGMERGE+set}" = set; then :
5866  $as_echo_n "(cached) " >&6
5867else
5868  case "$MSGMERGE" in
5869  [\\/]* | ?:[\\/]*)
5870    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5871    ;;
5872  *)
5873    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5874    for ac_dir in $PATH; do
5875      IFS="$ac_save_IFS"
5876      test -z "$ac_dir" && ac_dir=.
5877      for ac_exec_ext in '' $ac_executable_extensions; do
5878        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5879          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5880            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5881            break 2
5882          fi
5883        fi
5884      done
5885    done
5886    IFS="$ac_save_IFS"
5887  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5888    ;;
5889esac
5890fi
5891MSGMERGE="$ac_cv_path_MSGMERGE"
5892if test "$MSGMERGE" != ":"; then
5893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5894$as_echo "$MSGMERGE" >&6; }
5895else
5896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897$as_echo "no" >&6; }
5898fi
5899
5900
5901      if test "$GMSGFMT" != ":"; then
5902            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5903       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5904      : ;
5905    else
5906      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5907      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5908$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
5909      GMSGFMT=":"
5910    fi
5911  fi
5912
5913      if test "$XGETTEXT" != ":"; then
5914            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5915       (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
5916      : ;
5917    else
5918      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
5919$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
5920      XGETTEXT=":"
5921    fi
5922        rm -f messages.po
5923  fi
5924
5925  ac_config_commands="$ac_config_commands default-1"
5926
5927
5928if test -n "$ac_tool_prefix"; then
5929  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5930set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5932$as_echo_n "checking for $ac_word... " >&6; }
5933if test "${ac_cv_prog_RANLIB+set}" = set; then :
5934  $as_echo_n "(cached) " >&6
5935else
5936  if test -n "$RANLIB"; then
5937  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5938else
5939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940for as_dir in $PATH
5941do
5942  IFS=$as_save_IFS
5943  test -z "$as_dir" && as_dir=.
5944    for ac_exec_ext in '' $ac_executable_extensions; do
5945  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5946    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5948    break 2
5949  fi
5950done
5951  done
5952IFS=$as_save_IFS
5953
5954fi
5955fi
5956RANLIB=$ac_cv_prog_RANLIB
5957if test -n "$RANLIB"; then
5958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5959$as_echo "$RANLIB" >&6; }
5960else
5961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5962$as_echo "no" >&6; }
5963fi
5964
5965
5966fi
5967if test -z "$ac_cv_prog_RANLIB"; then
5968  ac_ct_RANLIB=$RANLIB
5969  # Extract the first word of "ranlib", so it can be a program name with args.
5970set dummy ranlib; ac_word=$2
5971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5972$as_echo_n "checking for $ac_word... " >&6; }
5973if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5974  $as_echo_n "(cached) " >&6
5975else
5976  if test -n "$ac_ct_RANLIB"; then
5977  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5978else
5979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980for as_dir in $PATH
5981do
5982  IFS=$as_save_IFS
5983  test -z "$as_dir" && as_dir=.
5984    for ac_exec_ext in '' $ac_executable_extensions; do
5985  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5986    ac_cv_prog_ac_ct_RANLIB="ranlib"
5987    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5988    break 2
5989  fi
5990done
5991  done
5992IFS=$as_save_IFS
5993
5994fi
5995fi
5996ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5997if test -n "$ac_ct_RANLIB"; then
5998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5999$as_echo "$ac_ct_RANLIB" >&6; }
6000else
6001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6002$as_echo "no" >&6; }
6003fi
6004
6005  if test "x$ac_ct_RANLIB" = x; then
6006    RANLIB=":"
6007  else
6008    case $cross_compiling:$ac_tool_warned in
6009yes:)
6010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6012ac_tool_warned=yes ;;
6013esac
6014    RANLIB=$ac_ct_RANLIB
6015  fi
6016else
6017  RANLIB="$ac_cv_prog_RANLIB"
6018fi
6019
6020
6021        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6022$as_echo_n "checking for strerror in -lcposix... " >&6; }
6023if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
6024  $as_echo_n "(cached) " >&6
6025else
6026  ac_check_lib_save_LIBS=$LIBS
6027LIBS="-lcposix  $LIBS"
6028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029/* end confdefs.h.  */
6030
6031/* Override any GCC internal prototype to avoid an error.
6032   Use char because int might match the return type of a GCC
6033   builtin and then its argument prototype would still apply.  */
6034#ifdef __cplusplus
6035extern "C"
6036#endif
6037char strerror ();
6038int
6039main ()
6040{
6041return strerror ();
6042  ;
6043  return 0;
6044}
6045_ACEOF
6046if ac_fn_c_try_link "$LINENO"; then :
6047  ac_cv_lib_cposix_strerror=yes
6048else
6049  ac_cv_lib_cposix_strerror=no
6050fi
6051rm -f core conftest.err conftest.$ac_objext \
6052    conftest$ac_exeext conftest.$ac_ext
6053LIBS=$ac_check_lib_save_LIBS
6054fi
6055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6056$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6057if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
6058  LIBS="$LIBS -lcposix"
6059fi
6060
6061
6062
6063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6064$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6065if test "${ac_cv_c_const+set}" = set; then :
6066  $as_echo_n "(cached) " >&6
6067else
6068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069/* end confdefs.h.  */
6070
6071int
6072main ()
6073{
6074/* FIXME: Include the comments suggested by Paul. */
6075#ifndef __cplusplus
6076  /* Ultrix mips cc rejects this.  */
6077  typedef int charset[2];
6078  const charset cs;
6079  /* SunOS 4.1.1 cc rejects this.  */
6080  char const *const *pcpcc;
6081  char **ppc;
6082  /* NEC SVR4.0.2 mips cc rejects this.  */
6083  struct point {int x, y;};
6084  static struct point const zero = {0,0};
6085  /* AIX XL C 1.02.0.0 rejects this.
6086     It does not let you subtract one const X* pointer from another in
6087     an arm of an if-expression whose if-part is not a constant
6088     expression */
6089  const char *g = "string";
6090  pcpcc = &g + (g ? g-g : 0);
6091  /* HPUX 7.0 cc rejects these. */
6092  ++pcpcc;
6093  ppc = (char**) pcpcc;
6094  pcpcc = (char const *const *) ppc;
6095  { /* SCO 3.2v4 cc rejects this.  */
6096    char *t;
6097    char const *s = 0 ? (char *) 0 : (char const *) 0;
6098
6099    *t++ = 0;
6100    if (s) return 0;
6101  }
6102  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6103    int x[] = {25, 17};
6104    const int *foo = &x[0];
6105    ++foo;
6106  }
6107  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6108    typedef const int *iptr;
6109    iptr p = 0;
6110    ++p;
6111  }
6112  { /* AIX XL C 1.02.0.0 rejects this saying
6113       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6114    struct s { int j; const int *ap[3]; };
6115    struct s *b; b->j = 5;
6116  }
6117  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6118    const int foo = 10;
6119    if (!foo) return 0;
6120  }
6121  return !cs[0] && !zero.x;
6122#endif
6123
6124  ;
6125  return 0;
6126}
6127_ACEOF
6128if ac_fn_c_try_compile "$LINENO"; then :
6129  ac_cv_c_const=yes
6130else
6131  ac_cv_c_const=no
6132fi
6133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6134fi
6135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6136$as_echo "$ac_cv_c_const" >&6; }
6137if test $ac_cv_c_const = no; then
6138
6139$as_echo "#define const /**/" >>confdefs.h
6140
6141fi
6142
6143
6144  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6145$as_echo_n "checking for signed... " >&6; }
6146if test "${bh_cv_c_signed+set}" = set; then :
6147  $as_echo_n "(cached) " >&6
6148else
6149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150/* end confdefs.h.  */
6151
6152int
6153main ()
6154{
6155signed char x;
6156  ;
6157  return 0;
6158}
6159_ACEOF
6160if ac_fn_c_try_compile "$LINENO"; then :
6161  bh_cv_c_signed=yes
6162else
6163  bh_cv_c_signed=no
6164fi
6165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6166fi
6167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6168$as_echo "$bh_cv_c_signed" >&6; }
6169  if test $bh_cv_c_signed = no; then
6170
6171$as_echo "#define signed /**/" >>confdefs.h
6172
6173  fi
6174
6175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6176$as_echo_n "checking for inline... " >&6; }
6177if test "${ac_cv_c_inline+set}" = set; then :
6178  $as_echo_n "(cached) " >&6
6179else
6180  ac_cv_c_inline=no
6181for ac_kw in inline __inline__ __inline; do
6182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183/* end confdefs.h.  */
6184#ifndef __cplusplus
6185typedef int foo_t;
6186static $ac_kw foo_t static_foo () {return 0; }
6187$ac_kw foo_t foo () {return 0; }
6188#endif
6189
6190_ACEOF
6191if ac_fn_c_try_compile "$LINENO"; then :
6192  ac_cv_c_inline=$ac_kw
6193fi
6194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6195  test "$ac_cv_c_inline" != no && break
6196done
6197
6198fi
6199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6200$as_echo "$ac_cv_c_inline" >&6; }
6201
6202case $ac_cv_c_inline in
6203  inline | yes) ;;
6204  *)
6205    case $ac_cv_c_inline in
6206      no) ac_val=;;
6207      *) ac_val=$ac_cv_c_inline;;
6208    esac
6209    cat >>confdefs.h <<_ACEOF
6210#ifndef __cplusplus
6211#define inline $ac_val
6212#endif
6213_ACEOF
6214    ;;
6215esac
6216
6217ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6218if test "x$ac_cv_type_off_t" = x""yes; then :
6219
6220else
6221
6222cat >>confdefs.h <<_ACEOF
6223#define off_t long int
6224_ACEOF
6225
6226fi
6227
6228ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6229if test "x$ac_cv_type_size_t" = x""yes; then :
6230
6231else
6232
6233cat >>confdefs.h <<_ACEOF
6234#define size_t unsigned int
6235_ACEOF
6236
6237fi
6238
6239
6240  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6241$as_echo_n "checking for long long... " >&6; }
6242if test "${ac_cv_type_long_long+set}" = set; then :
6243  $as_echo_n "(cached) " >&6
6244else
6245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246/* end confdefs.h.  */
6247long long ll = 1LL; int i = 63;
6248int
6249main ()
6250{
6251long long llmax = (long long) -1;
6252     return ll << i | ll >> i | llmax / ll | llmax % ll;
6253  ;
6254  return 0;
6255}
6256_ACEOF
6257if ac_fn_c_try_link "$LINENO"; then :
6258  ac_cv_type_long_long=yes
6259else
6260  ac_cv_type_long_long=no
6261fi
6262rm -f core conftest.err conftest.$ac_objext \
6263    conftest$ac_exeext conftest.$ac_ext
6264fi
6265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6266$as_echo "$ac_cv_type_long_long" >&6; }
6267  if test $ac_cv_type_long_long = yes; then
6268
6269$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6270
6271  fi
6272
6273
6274  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6275$as_echo_n "checking for long double... " >&6; }
6276if test "${gt_cv_c_long_double+set}" = set; then :
6277  $as_echo_n "(cached) " >&6
6278else
6279  if test "$GCC" = yes; then
6280       gt_cv_c_long_double=yes
6281     else
6282       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6283/* end confdefs.h.  */
6284
6285         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
6286         long double foo = 0.0;
6287         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
6288         int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6289
6290int
6291main ()
6292{
6293
6294  ;
6295  return 0;
6296}
6297_ACEOF
6298if ac_fn_c_try_compile "$LINENO"; then :
6299  gt_cv_c_long_double=yes
6300else
6301  gt_cv_c_long_double=no
6302fi
6303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6304     fi
6305fi
6306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6307$as_echo "$gt_cv_c_long_double" >&6; }
6308  if test $gt_cv_c_long_double = yes; then
6309
6310$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6311
6312  fi
6313
6314
6315  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6316$as_echo_n "checking for wchar_t... " >&6; }
6317if test "${gt_cv_c_wchar_t+set}" = set; then :
6318  $as_echo_n "(cached) " >&6
6319else
6320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6321/* end confdefs.h.  */
6322#include <stddef.h>
6323       wchar_t foo = (wchar_t)'\0';
6324int
6325main ()
6326{
6327
6328  ;
6329  return 0;
6330}
6331_ACEOF
6332if ac_fn_c_try_compile "$LINENO"; then :
6333  gt_cv_c_wchar_t=yes
6334else
6335  gt_cv_c_wchar_t=no
6336fi
6337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6338fi
6339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6340$as_echo "$gt_cv_c_wchar_t" >&6; }
6341  if test $gt_cv_c_wchar_t = yes; then
6342
6343$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6344
6345  fi
6346
6347
6348  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6349$as_echo_n "checking for wint_t... " >&6; }
6350if test "${gt_cv_c_wint_t+set}" = set; then :
6351  $as_echo_n "(cached) " >&6
6352else
6353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354/* end confdefs.h.  */
6355#include <wchar.h>
6356       wint_t foo = (wchar_t)'\0';
6357int
6358main ()
6359{
6360
6361  ;
6362  return 0;
6363}
6364_ACEOF
6365if ac_fn_c_try_compile "$LINENO"; then :
6366  gt_cv_c_wint_t=yes
6367else
6368  gt_cv_c_wint_t=no
6369fi
6370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6371fi
6372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6373$as_echo "$gt_cv_c_wint_t" >&6; }
6374  if test $gt_cv_c_wint_t = yes; then
6375
6376$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6377
6378  fi
6379
6380
6381  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6382$as_echo_n "checking for inttypes.h... " >&6; }
6383if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
6384  $as_echo_n "(cached) " >&6
6385else
6386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387/* end confdefs.h.  */
6388#include <sys/types.h>
6389#include <inttypes.h>
6390int
6391main ()
6392{
6393uintmax_t i = (uintmax_t) -1;
6394  ;
6395  return 0;
6396}
6397_ACEOF
6398if ac_fn_c_try_compile "$LINENO"; then :
6399  jm_ac_cv_header_inttypes_h=yes
6400else
6401  jm_ac_cv_header_inttypes_h=no
6402fi
6403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6404fi
6405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6406$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6407  if test $jm_ac_cv_header_inttypes_h = yes; then
6408
6409cat >>confdefs.h <<_ACEOF
6410#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6411_ACEOF
6412
6413  fi
6414
6415
6416  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6417$as_echo_n "checking for stdint.h... " >&6; }
6418if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
6419  $as_echo_n "(cached) " >&6
6420else
6421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422/* end confdefs.h.  */
6423#include <sys/types.h>
6424#include <stdint.h>
6425int
6426main ()
6427{
6428uintmax_t i = (uintmax_t) -1;
6429  ;
6430  return 0;
6431}
6432_ACEOF
6433if ac_fn_c_try_compile "$LINENO"; then :
6434  jm_ac_cv_header_stdint_h=yes
6435else
6436  jm_ac_cv_header_stdint_h=no
6437fi
6438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439fi
6440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6441$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6442  if test $jm_ac_cv_header_stdint_h = yes; then
6443
6444cat >>confdefs.h <<_ACEOF
6445#define HAVE_STDINT_H_WITH_UINTMAX 1
6446_ACEOF
6447
6448  fi
6449
6450
6451
6452
6453  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6454$as_echo_n "checking for intmax_t... " >&6; }
6455if test "${gt_cv_c_intmax_t+set}" = set; then :
6456  $as_echo_n "(cached) " >&6
6457else
6458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459/* end confdefs.h.  */
6460
6461#include <stddef.h>
6462#include <stdlib.h>
6463#if HAVE_STDINT_H_WITH_UINTMAX
6464#include <stdint.h>
6465#endif
6466#if HAVE_INTTYPES_H_WITH_UINTMAX
6467#include <inttypes.h>
6468#endif
6469
6470int
6471main ()
6472{
6473intmax_t x = -1;
6474  ;
6475  return 0;
6476}
6477_ACEOF
6478if ac_fn_c_try_compile "$LINENO"; then :
6479  gt_cv_c_intmax_t=yes
6480else
6481  gt_cv_c_intmax_t=no
6482fi
6483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6484fi
6485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6486$as_echo "$gt_cv_c_intmax_t" >&6; }
6487  if test $gt_cv_c_intmax_t = yes; then
6488
6489$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6490
6491  fi
6492
6493
6494
6495  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6496$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6497if test "${gt_cv_func_printf_posix+set}" = set; then :
6498  $as_echo_n "(cached) " >&6
6499else
6500
6501      if test "$cross_compiling" = yes; then :
6502
6503        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504/* end confdefs.h.  */
6505
6506#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6507  notposix
6508#endif
6509
6510_ACEOF
6511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6512  $EGREP "notposix" >/dev/null 2>&1; then :
6513  gt_cv_func_printf_posix="guessing no"
6514else
6515  gt_cv_func_printf_posix="guessing yes"
6516fi
6517rm -f conftest*
6518
6519
6520else
6521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522/* end confdefs.h.  */
6523
6524#include <stdio.h>
6525#include <string.h>
6526/* The string "%2$d %1$d", with dollar characters protected from the shell's
6527   dollar expansion (possibly an autoconf bug).  */
6528static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6529static char buf[100];
6530int main ()
6531{
6532  sprintf (buf, format, 33, 55);
6533  return (strcmp (buf, "55 33") != 0);
6534}
6535_ACEOF
6536if ac_fn_c_try_run "$LINENO"; then :
6537  gt_cv_func_printf_posix=yes
6538else
6539  gt_cv_func_printf_posix=no
6540fi
6541rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6542  conftest.$ac_objext conftest.beam conftest.$ac_ext
6543fi
6544
6545
6546fi
6547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6548$as_echo "$gt_cv_func_printf_posix" >&6; }
6549  case $gt_cv_func_printf_posix in
6550    *yes)
6551
6552$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6553
6554      ;;
6555  esac
6556
6557# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6558# for constant arguments.  Useless!
6559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6560$as_echo_n "checking for working alloca.h... " >&6; }
6561if test "${ac_cv_working_alloca_h+set}" = set; then :
6562  $as_echo_n "(cached) " >&6
6563else
6564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565/* end confdefs.h.  */
6566#include <alloca.h>
6567int
6568main ()
6569{
6570char *p = (char *) alloca (2 * sizeof (int));
6571			  if (p) return 0;
6572  ;
6573  return 0;
6574}
6575_ACEOF
6576if ac_fn_c_try_link "$LINENO"; then :
6577  ac_cv_working_alloca_h=yes
6578else
6579  ac_cv_working_alloca_h=no
6580fi
6581rm -f core conftest.err conftest.$ac_objext \
6582    conftest$ac_exeext conftest.$ac_ext
6583fi
6584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6585$as_echo "$ac_cv_working_alloca_h" >&6; }
6586if test $ac_cv_working_alloca_h = yes; then
6587
6588$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6589
6590fi
6591
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6593$as_echo_n "checking for alloca... " >&6; }
6594if test "${ac_cv_func_alloca_works+set}" = set; then :
6595  $as_echo_n "(cached) " >&6
6596else
6597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598/* end confdefs.h.  */
6599#ifdef __GNUC__
6600# define alloca __builtin_alloca
6601#else
6602# ifdef _MSC_VER
6603#  include <malloc.h>
6604#  define alloca _alloca
6605# else
6606#  ifdef HAVE_ALLOCA_H
6607#   include <alloca.h>
6608#  else
6609#   ifdef _AIX
6610 #pragma alloca
6611#   else
6612#    ifndef alloca /* predefined by HP cc +Olibcalls */
6613char *alloca ();
6614#    endif
6615#   endif
6616#  endif
6617# endif
6618#endif
6619
6620int
6621main ()
6622{
6623char *p = (char *) alloca (1);
6624				    if (p) return 0;
6625  ;
6626  return 0;
6627}
6628_ACEOF
6629if ac_fn_c_try_link "$LINENO"; then :
6630  ac_cv_func_alloca_works=yes
6631else
6632  ac_cv_func_alloca_works=no
6633fi
6634rm -f core conftest.err conftest.$ac_objext \
6635    conftest$ac_exeext conftest.$ac_ext
6636fi
6637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6638$as_echo "$ac_cv_func_alloca_works" >&6; }
6639
6640if test $ac_cv_func_alloca_works = yes; then
6641
6642$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6643
6644else
6645  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6646# that cause trouble.  Some versions do not even contain alloca or
6647# contain a buggy version.  If you still want to use their alloca,
6648# use ar to extract alloca.o from them instead of compiling alloca.c.
6649
6650ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6651
6652$as_echo "#define C_ALLOCA 1" >>confdefs.h
6653
6654
6655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6656$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6657if test "${ac_cv_os_cray+set}" = set; then :
6658  $as_echo_n "(cached) " >&6
6659else
6660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661/* end confdefs.h.  */
6662#if defined CRAY && ! defined CRAY2
6663webecray
6664#else
6665wenotbecray
6666#endif
6667
6668_ACEOF
6669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6670  $EGREP "webecray" >/dev/null 2>&1; then :
6671  ac_cv_os_cray=yes
6672else
6673  ac_cv_os_cray=no
6674fi
6675rm -f conftest*
6676
6677fi
6678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6679$as_echo "$ac_cv_os_cray" >&6; }
6680if test $ac_cv_os_cray = yes; then
6681  for ac_func in _getb67 GETB67 getb67; do
6682    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6683ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6684eval as_val=\$$as_ac_var
6685   if test "x$as_val" = x""yes; then :
6686
6687cat >>confdefs.h <<_ACEOF
6688#define CRAY_STACKSEG_END $ac_func
6689_ACEOF
6690
6691    break
6692fi
6693
6694  done
6695fi
6696
6697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6698$as_echo_n "checking stack direction for C alloca... " >&6; }
6699if test "${ac_cv_c_stack_direction+set}" = set; then :
6700  $as_echo_n "(cached) " >&6
6701else
6702  if test "$cross_compiling" = yes; then :
6703  ac_cv_c_stack_direction=0
6704else
6705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6706/* end confdefs.h.  */
6707$ac_includes_default
6708int
6709find_stack_direction ()
6710{
6711  static char *addr = 0;
6712  auto char dummy;
6713  if (addr == 0)
6714    {
6715      addr = &dummy;
6716      return find_stack_direction ();
6717    }
6718  else
6719    return (&dummy > addr) ? 1 : -1;
6720}
6721
6722int
6723main ()
6724{
6725  return find_stack_direction () < 0;
6726}
6727_ACEOF
6728if ac_fn_c_try_run "$LINENO"; then :
6729  ac_cv_c_stack_direction=1
6730else
6731  ac_cv_c_stack_direction=-1
6732fi
6733rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6734  conftest.$ac_objext conftest.beam conftest.$ac_ext
6735fi
6736
6737fi
6738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6739$as_echo "$ac_cv_c_stack_direction" >&6; }
6740cat >>confdefs.h <<_ACEOF
6741#define STACK_DIRECTION $ac_cv_c_stack_direction
6742_ACEOF
6743
6744
6745fi
6746
6747for ac_header in stdlib.h unistd.h
6748do :
6749  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6750ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6751eval as_val=\$$as_ac_Header
6752   if test "x$as_val" = x""yes; then :
6753  cat >>confdefs.h <<_ACEOF
6754#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6755_ACEOF
6756
6757fi
6758
6759done
6760
6761for ac_func in getpagesize
6762do :
6763  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6764if test "x$ac_cv_func_getpagesize" = x""yes; then :
6765  cat >>confdefs.h <<_ACEOF
6766#define HAVE_GETPAGESIZE 1
6767_ACEOF
6768
6769fi
6770done
6771
6772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6773$as_echo_n "checking for working mmap... " >&6; }
6774if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6775  $as_echo_n "(cached) " >&6
6776else
6777  if test "$cross_compiling" = yes; then :
6778  ac_cv_func_mmap_fixed_mapped=no
6779else
6780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781/* end confdefs.h.  */
6782$ac_includes_default
6783/* malloc might have been renamed as rpl_malloc. */
6784#undef malloc
6785
6786/* Thanks to Mike Haertel and Jim Avera for this test.
6787   Here is a matrix of mmap possibilities:
6788	mmap private not fixed
6789	mmap private fixed at somewhere currently unmapped
6790	mmap private fixed at somewhere already mapped
6791	mmap shared not fixed
6792	mmap shared fixed at somewhere currently unmapped
6793	mmap shared fixed at somewhere already mapped
6794   For private mappings, we should verify that changes cannot be read()
6795   back from the file, nor mmap's back from the file at a different
6796   address.  (There have been systems where private was not correctly
6797   implemented like the infamous i386 svr4.0, and systems where the
6798   VM page cache was not coherent with the file system buffer cache
6799   like early versions of FreeBSD and possibly contemporary NetBSD.)
6800   For shared mappings, we should conversely verify that changes get
6801   propagated back to all the places they're supposed to be.
6802
6803   Grep wants private fixed already mapped.
6804   The main things grep needs to know about mmap are:
6805   * does it exist and is it safe to write into the mmap'd area
6806   * how to use it (BSD variants)  */
6807
6808#include <fcntl.h>
6809#include <sys/mman.h>
6810
6811#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6812char *malloc ();
6813#endif
6814
6815/* This mess was copied from the GNU getpagesize.h.  */
6816#ifndef HAVE_GETPAGESIZE
6817/* Assume that all systems that can run configure have sys/param.h.  */
6818# ifndef HAVE_SYS_PARAM_H
6819#  define HAVE_SYS_PARAM_H 1
6820# endif
6821
6822# ifdef _SC_PAGESIZE
6823#  define getpagesize() sysconf(_SC_PAGESIZE)
6824# else /* no _SC_PAGESIZE */
6825#  ifdef HAVE_SYS_PARAM_H
6826#   include <sys/param.h>
6827#   ifdef EXEC_PAGESIZE
6828#    define getpagesize() EXEC_PAGESIZE
6829#   else /* no EXEC_PAGESIZE */
6830#    ifdef NBPG
6831#     define getpagesize() NBPG * CLSIZE
6832#     ifndef CLSIZE
6833#      define CLSIZE 1
6834#     endif /* no CLSIZE */
6835#    else /* no NBPG */
6836#     ifdef NBPC
6837#      define getpagesize() NBPC
6838#     else /* no NBPC */
6839#      ifdef PAGESIZE
6840#       define getpagesize() PAGESIZE
6841#      endif /* PAGESIZE */
6842#     endif /* no NBPC */
6843#    endif /* no NBPG */
6844#   endif /* no EXEC_PAGESIZE */
6845#  else /* no HAVE_SYS_PARAM_H */
6846#   define getpagesize() 8192	/* punt totally */
6847#  endif /* no HAVE_SYS_PARAM_H */
6848# endif /* no _SC_PAGESIZE */
6849
6850#endif /* no HAVE_GETPAGESIZE */
6851
6852int
6853main ()
6854{
6855  char *data, *data2, *data3;
6856  int i, pagesize;
6857  int fd;
6858
6859  pagesize = getpagesize ();
6860
6861  /* First, make a file with some known garbage in it. */
6862  data = (char *) malloc (pagesize);
6863  if (!data)
6864    return 1;
6865  for (i = 0; i < pagesize; ++i)
6866    *(data + i) = rand ();
6867  umask (0);
6868  fd = creat ("conftest.mmap", 0600);
6869  if (fd < 0)
6870    return 1;
6871  if (write (fd, data, pagesize) != pagesize)
6872    return 1;
6873  close (fd);
6874
6875  /* Next, try to mmap the file at a fixed address which already has
6876     something else allocated at it.  If we can, also make sure that
6877     we see the same garbage.  */
6878  fd = open ("conftest.mmap", O_RDWR);
6879  if (fd < 0)
6880    return 1;
6881  data2 = (char *) malloc (2 * pagesize);
6882  if (!data2)
6883    return 1;
6884  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6885  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6886		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
6887    return 1;
6888  for (i = 0; i < pagesize; ++i)
6889    if (*(data + i) != *(data2 + i))
6890      return 1;
6891
6892  /* Finally, make sure that changes to the mapped area do not
6893     percolate back to the file as seen by read().  (This is a bug on
6894     some variants of i386 svr4.0.)  */
6895  for (i = 0; i < pagesize; ++i)
6896    *(data2 + i) = *(data2 + i) + 1;
6897  data3 = (char *) malloc (pagesize);
6898  if (!data3)
6899    return 1;
6900  if (read (fd, data3, pagesize) != pagesize)
6901    return 1;
6902  for (i = 0; i < pagesize; ++i)
6903    if (*(data + i) != *(data3 + i))
6904      return 1;
6905  close (fd);
6906  return 0;
6907}
6908_ACEOF
6909if ac_fn_c_try_run "$LINENO"; then :
6910  ac_cv_func_mmap_fixed_mapped=yes
6911else
6912  ac_cv_func_mmap_fixed_mapped=no
6913fi
6914rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6915  conftest.$ac_objext conftest.beam conftest.$ac_ext
6916fi
6917
6918fi
6919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6920$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6921if test $ac_cv_func_mmap_fixed_mapped = yes; then
6922
6923$as_echo "#define HAVE_MMAP 1" >>confdefs.h
6924
6925fi
6926rm -f conftest.mmap
6927
6928
6929    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
6930$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
6931if test "${ac_cv_gnu_library_2_1+set}" = set; then :
6932  $as_echo_n "(cached) " >&6
6933else
6934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6935/* end confdefs.h.  */
6936
6937#include <features.h>
6938#ifdef __GNU_LIBRARY__
6939 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6940  Lucky GNU user
6941 #endif
6942#endif
6943
6944_ACEOF
6945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6946  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6947  ac_cv_gnu_library_2_1=yes
6948else
6949  ac_cv_gnu_library_2_1=no
6950fi
6951rm -f conftest*
6952
6953
6954
6955fi
6956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
6957$as_echo "$ac_cv_gnu_library_2_1" >&6; }
6958
6959    GLIBC21="$ac_cv_gnu_library_2_1"
6960
6961
6962
6963
6964  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
6965$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
6966if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
6967  $as_echo_n "(cached) " >&6
6968else
6969
6970      if test "$cross_compiling" = yes; then :
6971
6972          # Guess based on the CPU.
6973          case "$host_cpu" in
6974            alpha* | i3456786 | m68k | s390*)
6975              gt_cv_int_divbyzero_sigfpe="guessing yes";;
6976            *)
6977              gt_cv_int_divbyzero_sigfpe="guessing no";;
6978          esac
6979
6980else
6981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982/* end confdefs.h.  */
6983
6984#include <stdlib.h>
6985#include <signal.h>
6986
6987static void
6988#ifdef __cplusplus
6989sigfpe_handler (int sig)
6990#else
6991sigfpe_handler (sig) int sig;
6992#endif
6993{
6994  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
6995  exit (sig != SIGFPE);
6996}
6997
6998int x = 1;
6999int y = 0;
7000int z;
7001int nan;
7002
7003int main ()
7004{
7005  signal (SIGFPE, sigfpe_handler);
7006/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7007#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7008  signal (SIGTRAP, sigfpe_handler);
7009#endif
7010/* Linux/SPARC yields signal SIGILL.  */
7011#if defined (__sparc__) && defined (__linux__)
7012  signal (SIGILL, sigfpe_handler);
7013#endif
7014
7015  z = x / y;
7016  nan = y / y;
7017  exit (1);
7018}
7019
7020_ACEOF
7021if ac_fn_c_try_run "$LINENO"; then :
7022  gt_cv_int_divbyzero_sigfpe=yes
7023else
7024  gt_cv_int_divbyzero_sigfpe=no
7025fi
7026rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7027  conftest.$ac_objext conftest.beam conftest.$ac_ext
7028fi
7029
7030
7031fi
7032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7033$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7034  case "$gt_cv_int_divbyzero_sigfpe" in
7035    *yes) value=1;;
7036    *) value=0;;
7037  esac
7038
7039cat >>confdefs.h <<_ACEOF
7040#define INTDIV0_RAISES_SIGFPE $value
7041_ACEOF
7042
7043
7044
7045  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7046$as_echo_n "checking for unsigned long long... " >&6; }
7047if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
7048  $as_echo_n "(cached) " >&6
7049else
7050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051/* end confdefs.h.  */
7052unsigned long long ull = 1ULL; int i = 63;
7053int
7054main ()
7055{
7056unsigned long long ullmax = (unsigned long long) -1;
7057     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7058  ;
7059  return 0;
7060}
7061_ACEOF
7062if ac_fn_c_try_link "$LINENO"; then :
7063  ac_cv_type_unsigned_long_long=yes
7064else
7065  ac_cv_type_unsigned_long_long=no
7066fi
7067rm -f core conftest.err conftest.$ac_objext \
7068    conftest$ac_exeext conftest.$ac_ext
7069fi
7070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7071$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7072  if test $ac_cv_type_unsigned_long_long = yes; then
7073
7074$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7075
7076  fi
7077
7078
7079
7080
7081  if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7082
7083    test $ac_cv_type_unsigned_long_long = yes \
7084      && ac_type='unsigned long long' \
7085      || ac_type='unsigned long'
7086
7087cat >>confdefs.h <<_ACEOF
7088#define uintmax_t $ac_type
7089_ACEOF
7090
7091  else
7092
7093$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7094
7095  fi
7096
7097
7098  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7099$as_echo_n "checking for inttypes.h... " >&6; }
7100if test "${gt_cv_header_inttypes_h+set}" = set; then :
7101  $as_echo_n "(cached) " >&6
7102else
7103
7104    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7105/* end confdefs.h.  */
7106#include <sys/types.h>
7107#include <inttypes.h>
7108int
7109main ()
7110{
7111
7112  ;
7113  return 0;
7114}
7115_ACEOF
7116if ac_fn_c_try_compile "$LINENO"; then :
7117  gt_cv_header_inttypes_h=yes
7118else
7119  gt_cv_header_inttypes_h=no
7120fi
7121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7122
7123fi
7124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7125$as_echo "$gt_cv_header_inttypes_h" >&6; }
7126  if test $gt_cv_header_inttypes_h = yes; then
7127
7128cat >>confdefs.h <<_ACEOF
7129#define HAVE_INTTYPES_H 1
7130_ACEOF
7131
7132  fi
7133
7134
7135
7136  if test $gt_cv_header_inttypes_h = yes; then
7137    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7138$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7139if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7140  $as_echo_n "(cached) " >&6
7141else
7142
7143        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144/* end confdefs.h.  */
7145#include <inttypes.h>
7146#ifdef PRId32
7147char *p = PRId32;
7148#endif
7149
7150int
7151main ()
7152{
7153
7154  ;
7155  return 0;
7156}
7157_ACEOF
7158if ac_fn_c_try_compile "$LINENO"; then :
7159  gt_cv_inttypes_pri_broken=no
7160else
7161  gt_cv_inttypes_pri_broken=yes
7162fi
7163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7164
7165fi
7166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7167$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7168  fi
7169  if test "$gt_cv_inttypes_pri_broken" = yes; then
7170
7171cat >>confdefs.h <<_ACEOF
7172#define PRI_MACROS_BROKEN 1
7173_ACEOF
7174
7175  fi
7176
7177
7178  for ac_header in stdint.h
7179do :
7180  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7181if test "x$ac_cv_header_stdint_h" = x""yes; then :
7182  cat >>confdefs.h <<_ACEOF
7183#define HAVE_STDINT_H 1
7184_ACEOF
7185
7186fi
7187
7188done
7189
7190    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7191$as_echo_n "checking for SIZE_MAX... " >&6; }
7192  result=
7193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7194/* end confdefs.h.  */
7195
7196#include <limits.h>
7197#if HAVE_STDINT_H
7198#include <stdint.h>
7199#endif
7200#ifdef SIZE_MAX
7201Found it
7202#endif
7203
7204_ACEOF
7205if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7206  $EGREP "Found it" >/dev/null 2>&1; then :
7207  result=yes
7208fi
7209rm -f conftest*
7210
7211  if test -z "$result"; then
7212                    if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
7213
7214else
7215  result=?
7216fi
7217
7218
7219    if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
7220
7221else
7222  result=?
7223fi
7224
7225
7226    if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
7227
7228else
7229  result=?
7230fi
7231
7232
7233    if test "$fits_in_uint" = 1; then
7234                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235/* end confdefs.h.  */
7236#include <stddef.h>
7237        extern size_t foo;
7238        extern unsigned long foo;
7239
7240int
7241main ()
7242{
7243
7244  ;
7245  return 0;
7246}
7247_ACEOF
7248if ac_fn_c_try_compile "$LINENO"; then :
7249  fits_in_uint=0
7250fi
7251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252    fi
7253    if test -z "$result"; then
7254      if test "$fits_in_uint" = 1; then
7255        result="$res_hi$res_lo"U
7256      else
7257        result="$res_hi$res_lo"UL
7258      fi
7259    else
7260            result='~(size_t)0'
7261    fi
7262  fi
7263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7264$as_echo "$result" >&6; }
7265  if test "$result" != yes; then
7266
7267cat >>confdefs.h <<_ACEOF
7268#define SIZE_MAX $result
7269_ACEOF
7270
7271  fi
7272
7273
7274
7275  for ac_header in stdint.h
7276do :
7277  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7278if test "x$ac_cv_header_stdint_h" = x""yes; then :
7279  cat >>confdefs.h <<_ACEOF
7280#define HAVE_STDINT_H 1
7281_ACEOF
7282
7283fi
7284
7285done
7286
7287
7288
7289      if test "X$prefix" = "XNONE"; then
7290    acl_final_prefix="$ac_default_prefix"
7291  else
7292    acl_final_prefix="$prefix"
7293  fi
7294  if test "X$exec_prefix" = "XNONE"; then
7295    acl_final_exec_prefix='${prefix}'
7296  else
7297    acl_final_exec_prefix="$exec_prefix"
7298  fi
7299  acl_save_prefix="$prefix"
7300  prefix="$acl_final_prefix"
7301  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7302  prefix="$acl_save_prefix"
7303
7304
7305# Check whether --with-gnu-ld was given.
7306if test "${with_gnu_ld+set}" = set; then :
7307  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7308else
7309  with_gnu_ld=no
7310fi
7311
7312# Prepare PATH_SEPARATOR.
7313# The user is always right.
7314if test "${PATH_SEPARATOR+set}" != set; then
7315  echo "#! /bin/sh" >conf$$.sh
7316  echo  "exit 0"   >>conf$$.sh
7317  chmod +x conf$$.sh
7318  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7319    PATH_SEPARATOR=';'
7320  else
7321    PATH_SEPARATOR=:
7322  fi
7323  rm -f conf$$.sh
7324fi
7325ac_prog=ld
7326if test "$GCC" = yes; then
7327  # Check if gcc -print-prog-name=ld gives a path.
7328  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7329$as_echo_n "checking for ld used by GCC... " >&6; }
7330  case $host in
7331  *-*-mingw*)
7332    # gcc leaves a trailing carriage return which upsets mingw
7333    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7334  *)
7335    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7336  esac
7337  case $ac_prog in
7338    # Accept absolute paths.
7339    [\\/]* | [A-Za-z]:[\\/]*)
7340      re_direlt='/[^/][^/]*/\.\./'
7341      # Canonicalize the path of ld
7342      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7343      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7344	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7345      done
7346      test -z "$LD" && LD="$ac_prog"
7347      ;;
7348  "")
7349    # If it fails, then pretend we aren't using GCC.
7350    ac_prog=ld
7351    ;;
7352  *)
7353    # If it is relative, then search for the first ld in PATH.
7354    with_gnu_ld=unknown
7355    ;;
7356  esac
7357elif test "$with_gnu_ld" = yes; then
7358  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7359$as_echo_n "checking for GNU ld... " >&6; }
7360else
7361  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7362$as_echo_n "checking for non-GNU ld... " >&6; }
7363fi
7364if test "${acl_cv_path_LD+set}" = set; then :
7365  $as_echo_n "(cached) " >&6
7366else
7367  if test -z "$LD"; then
7368  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7369  for ac_dir in $PATH; do
7370    test -z "$ac_dir" && ac_dir=.
7371    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7372      acl_cv_path_LD="$ac_dir/$ac_prog"
7373      # Check to see if the program is GNU ld.  I'd rather use --version,
7374      # but apparently some GNU ld's only accept -v.
7375      # Break only if it was the GNU/non-GNU ld that we prefer.
7376      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7377      *GNU* | *'with BFD'*)
7378	test "$with_gnu_ld" != no && break ;;
7379      *)
7380	test "$with_gnu_ld" != yes && break ;;
7381      esac
7382    fi
7383  done
7384  IFS="$ac_save_ifs"
7385else
7386  acl_cv_path_LD="$LD" # Let the user override the test with a path.
7387fi
7388fi
7389
7390LD="$acl_cv_path_LD"
7391if test -n "$LD"; then
7392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7393$as_echo "$LD" >&6; }
7394else
7395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396$as_echo "no" >&6; }
7397fi
7398test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7400$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7401if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7402  $as_echo_n "(cached) " >&6
7403else
7404  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7405case `$LD -v 2>&1 </dev/null` in
7406*GNU* | *'with BFD'*)
7407  acl_cv_prog_gnu_ld=yes ;;
7408*)
7409  acl_cv_prog_gnu_ld=no ;;
7410esac
7411fi
7412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7413$as_echo "$acl_cv_prog_gnu_ld" >&6; }
7414with_gnu_ld=$acl_cv_prog_gnu_ld
7415
7416
7417
7418                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7419$as_echo_n "checking for shared library run path origin... " >&6; }
7420if test "${acl_cv_rpath+set}" = set; then :
7421  $as_echo_n "(cached) " >&6
7422else
7423
7424    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7425    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7426    . ./conftest.sh
7427    rm -f ./conftest.sh
7428    acl_cv_rpath=done
7429
7430fi
7431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7432$as_echo "$acl_cv_rpath" >&6; }
7433  wl="$acl_cv_wl"
7434  libext="$acl_cv_libext"
7435  shlibext="$acl_cv_shlibext"
7436  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7437  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7438  hardcode_direct="$acl_cv_hardcode_direct"
7439  hardcode_minus_L="$acl_cv_hardcode_minus_L"
7440    # Check whether --enable-rpath was given.
7441if test "${enable_rpath+set}" = set; then :
7442  enableval=$enable_rpath; :
7443else
7444  enable_rpath=yes
7445fi
7446
7447
7448
7449
7450
7451
7452
7453
7454    use_additional=yes
7455
7456  acl_save_prefix="$prefix"
7457  prefix="$acl_final_prefix"
7458  acl_save_exec_prefix="$exec_prefix"
7459  exec_prefix="$acl_final_exec_prefix"
7460
7461    eval additional_includedir=\"$includedir\"
7462    eval additional_libdir=\"$libdir\"
7463
7464  exec_prefix="$acl_save_exec_prefix"
7465  prefix="$acl_save_prefix"
7466
7467
7468# Check whether --with-libiconv-prefix was given.
7469if test "${with_libiconv_prefix+set}" = set; then :
7470  withval=$with_libiconv_prefix;
7471    if test "X$withval" = "Xno"; then
7472      use_additional=no
7473    else
7474      if test "X$withval" = "X"; then
7475
7476  acl_save_prefix="$prefix"
7477  prefix="$acl_final_prefix"
7478  acl_save_exec_prefix="$exec_prefix"
7479  exec_prefix="$acl_final_exec_prefix"
7480
7481          eval additional_includedir=\"$includedir\"
7482          eval additional_libdir=\"$libdir\"
7483
7484  exec_prefix="$acl_save_exec_prefix"
7485  prefix="$acl_save_prefix"
7486
7487      else
7488        additional_includedir="$withval/include"
7489        additional_libdir="$withval/lib"
7490      fi
7491    fi
7492
7493fi
7494
7495      LIBICONV=
7496  LTLIBICONV=
7497  INCICONV=
7498  rpathdirs=
7499  ltrpathdirs=
7500  names_already_handled=
7501  names_next_round='iconv '
7502  while test -n "$names_next_round"; do
7503    names_this_round="$names_next_round"
7504    names_next_round=
7505    for name in $names_this_round; do
7506      already_handled=
7507      for n in $names_already_handled; do
7508        if test "$n" = "$name"; then
7509          already_handled=yes
7510          break
7511        fi
7512      done
7513      if test -z "$already_handled"; then
7514        names_already_handled="$names_already_handled $name"
7515                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7516        eval value=\"\$HAVE_LIB$uppername\"
7517        if test -n "$value"; then
7518          if test "$value" = yes; then
7519            eval value=\"\$LIB$uppername\"
7520            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7521            eval value=\"\$LTLIB$uppername\"
7522            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7523          else
7524                                    :
7525          fi
7526        else
7527                              found_dir=
7528          found_la=
7529          found_so=
7530          found_a=
7531          if test $use_additional = yes; then
7532            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7533              found_dir="$additional_libdir"
7534              found_so="$additional_libdir/lib$name.$shlibext"
7535              if test -f "$additional_libdir/lib$name.la"; then
7536                found_la="$additional_libdir/lib$name.la"
7537              fi
7538            else
7539              if test -f "$additional_libdir/lib$name.$libext"; then
7540                found_dir="$additional_libdir"
7541                found_a="$additional_libdir/lib$name.$libext"
7542                if test -f "$additional_libdir/lib$name.la"; then
7543                  found_la="$additional_libdir/lib$name.la"
7544                fi
7545              fi
7546            fi
7547          fi
7548          if test "X$found_dir" = "X"; then
7549            for x in $LDFLAGS $LTLIBICONV; do
7550
7551  acl_save_prefix="$prefix"
7552  prefix="$acl_final_prefix"
7553  acl_save_exec_prefix="$exec_prefix"
7554  exec_prefix="$acl_final_exec_prefix"
7555  eval x=\"$x\"
7556  exec_prefix="$acl_save_exec_prefix"
7557  prefix="$acl_save_prefix"
7558
7559              case "$x" in
7560                -L*)
7561                  dir=`echo "X$x" | sed -e 's/^X-L//'`
7562                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7563                    found_dir="$dir"
7564                    found_so="$dir/lib$name.$shlibext"
7565                    if test -f "$dir/lib$name.la"; then
7566                      found_la="$dir/lib$name.la"
7567                    fi
7568                  else
7569                    if test -f "$dir/lib$name.$libext"; then
7570                      found_dir="$dir"
7571                      found_a="$dir/lib$name.$libext"
7572                      if test -f "$dir/lib$name.la"; then
7573                        found_la="$dir/lib$name.la"
7574                      fi
7575                    fi
7576                  fi
7577                  ;;
7578              esac
7579              if test "X$found_dir" != "X"; then
7580                break
7581              fi
7582            done
7583          fi
7584          if test "X$found_dir" != "X"; then
7585                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7586            if test "X$found_so" != "X"; then
7587                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7588                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7589              else
7590                                                                                haveit=
7591                for x in $ltrpathdirs; do
7592                  if test "X$x" = "X$found_dir"; then
7593                    haveit=yes
7594                    break
7595                  fi
7596                done
7597                if test -z "$haveit"; then
7598                  ltrpathdirs="$ltrpathdirs $found_dir"
7599                fi
7600                                if test "$hardcode_direct" = yes; then
7601                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7602                else
7603                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7604                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7605                                                            haveit=
7606                    for x in $rpathdirs; do
7607                      if test "X$x" = "X$found_dir"; then
7608                        haveit=yes
7609                        break
7610                      fi
7611                    done
7612                    if test -z "$haveit"; then
7613                      rpathdirs="$rpathdirs $found_dir"
7614                    fi
7615                  else
7616                                                                                haveit=
7617                    for x in $LDFLAGS $LIBICONV; do
7618
7619  acl_save_prefix="$prefix"
7620  prefix="$acl_final_prefix"
7621  acl_save_exec_prefix="$exec_prefix"
7622  exec_prefix="$acl_final_exec_prefix"
7623  eval x=\"$x\"
7624  exec_prefix="$acl_save_exec_prefix"
7625  prefix="$acl_save_prefix"
7626
7627                      if test "X$x" = "X-L$found_dir"; then
7628                        haveit=yes
7629                        break
7630                      fi
7631                    done
7632                    if test -z "$haveit"; then
7633                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7634                    fi
7635                    if test "$hardcode_minus_L" != no; then
7636                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7637                    else
7638                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7639                    fi
7640                  fi
7641                fi
7642              fi
7643            else
7644              if test "X$found_a" != "X"; then
7645                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7646              else
7647                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7648              fi
7649            fi
7650                        additional_includedir=
7651            case "$found_dir" in
7652              */lib | */lib/)
7653                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7654                additional_includedir="$basedir/include"
7655                ;;
7656            esac
7657            if test "X$additional_includedir" != "X"; then
7658                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
7659                haveit=
7660                if test "X$additional_includedir" = "X/usr/local/include"; then
7661                  if test -n "$GCC"; then
7662                    case $host_os in
7663                      linux*) haveit=yes;;
7664                    esac
7665                  fi
7666                fi
7667                if test -z "$haveit"; then
7668                  for x in $CPPFLAGS $INCICONV; do
7669
7670  acl_save_prefix="$prefix"
7671  prefix="$acl_final_prefix"
7672  acl_save_exec_prefix="$exec_prefix"
7673  exec_prefix="$acl_final_exec_prefix"
7674  eval x=\"$x\"
7675  exec_prefix="$acl_save_exec_prefix"
7676  prefix="$acl_save_prefix"
7677
7678                    if test "X$x" = "X-I$additional_includedir"; then
7679                      haveit=yes
7680                      break
7681                    fi
7682                  done
7683                  if test -z "$haveit"; then
7684                    if test -d "$additional_includedir"; then
7685                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7686                    fi
7687                  fi
7688                fi
7689              fi
7690            fi
7691                        if test -n "$found_la"; then
7692                                                        save_libdir="$libdir"
7693              case "$found_la" in
7694                */* | *\\*) . "$found_la" ;;
7695                *) . "./$found_la" ;;
7696              esac
7697              libdir="$save_libdir"
7698                            for dep in $dependency_libs; do
7699                case "$dep" in
7700                  -L*)
7701                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7702                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
7703                      haveit=
7704                      if test "X$additional_libdir" = "X/usr/local/lib"; then
7705                        if test -n "$GCC"; then
7706                          case $host_os in
7707                            linux*) haveit=yes;;
7708                          esac
7709                        fi
7710                      fi
7711                      if test -z "$haveit"; then
7712                        haveit=
7713                        for x in $LDFLAGS $LIBICONV; do
7714
7715  acl_save_prefix="$prefix"
7716  prefix="$acl_final_prefix"
7717  acl_save_exec_prefix="$exec_prefix"
7718  exec_prefix="$acl_final_exec_prefix"
7719  eval x=\"$x\"
7720  exec_prefix="$acl_save_exec_prefix"
7721  prefix="$acl_save_prefix"
7722
7723                          if test "X$x" = "X-L$additional_libdir"; then
7724                            haveit=yes
7725                            break
7726                          fi
7727                        done
7728                        if test -z "$haveit"; then
7729                          if test -d "$additional_libdir"; then
7730                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7731                          fi
7732                        fi
7733                        haveit=
7734                        for x in $LDFLAGS $LTLIBICONV; do
7735
7736  acl_save_prefix="$prefix"
7737  prefix="$acl_final_prefix"
7738  acl_save_exec_prefix="$exec_prefix"
7739  exec_prefix="$acl_final_exec_prefix"
7740  eval x=\"$x\"
7741  exec_prefix="$acl_save_exec_prefix"
7742  prefix="$acl_save_prefix"
7743
7744                          if test "X$x" = "X-L$additional_libdir"; then
7745                            haveit=yes
7746                            break
7747                          fi
7748                        done
7749                        if test -z "$haveit"; then
7750                          if test -d "$additional_libdir"; then
7751                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7752                          fi
7753                        fi
7754                      fi
7755                    fi
7756                    ;;
7757                  -R*)
7758                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
7759                    if test "$enable_rpath" != no; then
7760                                                                  haveit=
7761                      for x in $rpathdirs; do
7762                        if test "X$x" = "X$dir"; then
7763                          haveit=yes
7764                          break
7765                        fi
7766                      done
7767                      if test -z "$haveit"; then
7768                        rpathdirs="$rpathdirs $dir"
7769                      fi
7770                                                                  haveit=
7771                      for x in $ltrpathdirs; do
7772                        if test "X$x" = "X$dir"; then
7773                          haveit=yes
7774                          break
7775                        fi
7776                      done
7777                      if test -z "$haveit"; then
7778                        ltrpathdirs="$ltrpathdirs $dir"
7779                      fi
7780                    fi
7781                    ;;
7782                  -l*)
7783                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7784                    ;;
7785                  *.la)
7786                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7787                    ;;
7788                  *)
7789                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7790                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7791                    ;;
7792                esac
7793              done
7794            fi
7795          else
7796                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7797            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7798          fi
7799        fi
7800      fi
7801    done
7802  done
7803  if test "X$rpathdirs" != "X"; then
7804    if test -n "$hardcode_libdir_separator"; then
7805                        alldirs=
7806      for found_dir in $rpathdirs; do
7807        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7808      done
7809            acl_save_libdir="$libdir"
7810      libdir="$alldirs"
7811      eval flag=\"$hardcode_libdir_flag_spec\"
7812      libdir="$acl_save_libdir"
7813      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7814    else
7815            for found_dir in $rpathdirs; do
7816        acl_save_libdir="$libdir"
7817        libdir="$found_dir"
7818        eval flag=\"$hardcode_libdir_flag_spec\"
7819        libdir="$acl_save_libdir"
7820        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7821      done
7822    fi
7823  fi
7824  if test "X$ltrpathdirs" != "X"; then
7825            for found_dir in $ltrpathdirs; do
7826      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7827    done
7828  fi
7829
7830
7831
7832
7833
7834
7835
7836
7837  ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
7838if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
7839
7840else
7841
7842$as_echo "#define ptrdiff_t long" >>confdefs.h
7843
7844
7845fi
7846
7847  for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7848stdlib.h string.h unistd.h sys/param.h
7849do :
7850  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7851ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7852eval as_val=\$$as_ac_Header
7853   if test "x$as_val" = x""yes; then :
7854  cat >>confdefs.h <<_ACEOF
7855#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7856_ACEOF
7857
7858fi
7859
7860done
7861
7862  for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
7863mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
7864strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
7865__fsetlocking
7866do :
7867  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7868ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7869eval as_val=\$$as_ac_var
7870   if test "x$as_val" = x""yes; then :
7871  cat >>confdefs.h <<_ACEOF
7872#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7873_ACEOF
7874
7875fi
7876done
7877
7878
7879
7880  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
7881$as_echo_n "checking whether _snprintf is declared... " >&6; }
7882if test "${ac_cv_have_decl__snprintf+set}" = set; then :
7883  $as_echo_n "(cached) " >&6
7884else
7885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886/* end confdefs.h.  */
7887#include <stdio.h>
7888int
7889main ()
7890{
7891
7892#ifndef _snprintf
7893  char *p = (char *) _snprintf;
7894#endif
7895
7896  ;
7897  return 0;
7898}
7899_ACEOF
7900if ac_fn_c_try_compile "$LINENO"; then :
7901  ac_cv_have_decl__snprintf=yes
7902else
7903  ac_cv_have_decl__snprintf=no
7904fi
7905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7906fi
7907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
7908$as_echo "$ac_cv_have_decl__snprintf" >&6; }
7909  if test $ac_cv_have_decl__snprintf = yes; then
7910    gt_value=1
7911  else
7912    gt_value=0
7913  fi
7914
7915cat >>confdefs.h <<_ACEOF
7916#define HAVE_DECL__SNPRINTF $gt_value
7917_ACEOF
7918
7919
7920
7921  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
7922$as_echo_n "checking whether _snwprintf is declared... " >&6; }
7923if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
7924  $as_echo_n "(cached) " >&6
7925else
7926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927/* end confdefs.h.  */
7928#include <stdio.h>
7929int
7930main ()
7931{
7932
7933#ifndef _snwprintf
7934  char *p = (char *) _snwprintf;
7935#endif
7936
7937  ;
7938  return 0;
7939}
7940_ACEOF
7941if ac_fn_c_try_compile "$LINENO"; then :
7942  ac_cv_have_decl__snwprintf=yes
7943else
7944  ac_cv_have_decl__snwprintf=no
7945fi
7946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7947fi
7948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
7949$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
7950  if test $ac_cv_have_decl__snwprintf = yes; then
7951    gt_value=1
7952  else
7953    gt_value=0
7954  fi
7955
7956cat >>confdefs.h <<_ACEOF
7957#define HAVE_DECL__SNWPRINTF $gt_value
7958_ACEOF
7959
7960
7961
7962
7963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
7964$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
7965if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
7966  $as_echo_n "(cached) " >&6
7967else
7968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969/* end confdefs.h.  */
7970#include <stdio.h>
7971int
7972main ()
7973{
7974
7975#ifndef feof_unlocked
7976  char *p = (char *) feof_unlocked;
7977#endif
7978
7979  ;
7980  return 0;
7981}
7982_ACEOF
7983if ac_fn_c_try_compile "$LINENO"; then :
7984  ac_cv_have_decl_feof_unlocked=yes
7985else
7986  ac_cv_have_decl_feof_unlocked=no
7987fi
7988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7989fi
7990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
7991$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
7992  if test $ac_cv_have_decl_feof_unlocked = yes; then
7993    gt_value=1
7994  else
7995    gt_value=0
7996  fi
7997
7998cat >>confdefs.h <<_ACEOF
7999#define HAVE_DECL_FEOF_UNLOCKED $gt_value
8000_ACEOF
8001
8002
8003
8004  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8005$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8006if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
8007  $as_echo_n "(cached) " >&6
8008else
8009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010/* end confdefs.h.  */
8011#include <stdio.h>
8012int
8013main ()
8014{
8015
8016#ifndef fgets_unlocked
8017  char *p = (char *) fgets_unlocked;
8018#endif
8019
8020  ;
8021  return 0;
8022}
8023_ACEOF
8024if ac_fn_c_try_compile "$LINENO"; then :
8025  ac_cv_have_decl_fgets_unlocked=yes
8026else
8027  ac_cv_have_decl_fgets_unlocked=no
8028fi
8029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8030fi
8031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8032$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8033  if test $ac_cv_have_decl_fgets_unlocked = yes; then
8034    gt_value=1
8035  else
8036    gt_value=0
8037  fi
8038
8039cat >>confdefs.h <<_ACEOF
8040#define HAVE_DECL_FGETS_UNLOCKED $gt_value
8041_ACEOF
8042
8043
8044
8045  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8046$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8047if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
8048  $as_echo_n "(cached) " >&6
8049else
8050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8051/* end confdefs.h.  */
8052#include <stdio.h>
8053int
8054main ()
8055{
8056
8057#ifndef getc_unlocked
8058  char *p = (char *) getc_unlocked;
8059#endif
8060
8061  ;
8062  return 0;
8063}
8064_ACEOF
8065if ac_fn_c_try_compile "$LINENO"; then :
8066  ac_cv_have_decl_getc_unlocked=yes
8067else
8068  ac_cv_have_decl_getc_unlocked=no
8069fi
8070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8071fi
8072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8073$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8074  if test $ac_cv_have_decl_getc_unlocked = yes; then
8075    gt_value=1
8076  else
8077    gt_value=0
8078  fi
8079
8080cat >>confdefs.h <<_ACEOF
8081#define HAVE_DECL_GETC_UNLOCKED $gt_value
8082_ACEOF
8083
8084
8085
8086  case $gt_cv_func_printf_posix in
8087    *yes) HAVE_POSIX_PRINTF=1 ;;
8088    *) HAVE_POSIX_PRINTF=0 ;;
8089  esac
8090
8091  if test "$ac_cv_func_asprintf" = yes; then
8092    HAVE_ASPRINTF=1
8093  else
8094    HAVE_ASPRINTF=0
8095  fi
8096
8097  if test "$ac_cv_func_snprintf" = yes; then
8098    HAVE_SNPRINTF=1
8099  else
8100    HAVE_SNPRINTF=0
8101  fi
8102
8103  if test "$ac_cv_func_wprintf" = yes; then
8104    HAVE_WPRINTF=1
8105  else
8106    HAVE_WPRINTF=0
8107  fi
8108
8109
8110
8111
8112
8113
8114
8115          am_save_CPPFLAGS="$CPPFLAGS"
8116
8117  for element in $INCICONV; do
8118    haveit=
8119    for x in $CPPFLAGS; do
8120
8121  acl_save_prefix="$prefix"
8122  prefix="$acl_final_prefix"
8123  acl_save_exec_prefix="$exec_prefix"
8124  exec_prefix="$acl_final_exec_prefix"
8125  eval x=\"$x\"
8126  exec_prefix="$acl_save_exec_prefix"
8127  prefix="$acl_save_prefix"
8128
8129      if test "X$x" = "X$element"; then
8130        haveit=yes
8131        break
8132      fi
8133    done
8134    if test -z "$haveit"; then
8135      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8136    fi
8137  done
8138
8139
8140  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8141$as_echo_n "checking for iconv... " >&6; }
8142if test "${am_cv_func_iconv+set}" = set; then :
8143  $as_echo_n "(cached) " >&6
8144else
8145
8146    am_cv_func_iconv="no, consider installing GNU libiconv"
8147    am_cv_lib_iconv=no
8148    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149/* end confdefs.h.  */
8150#include <stdlib.h>
8151#include <iconv.h>
8152int
8153main ()
8154{
8155iconv_t cd = iconv_open("","");
8156       iconv(cd,NULL,NULL,NULL,NULL);
8157       iconv_close(cd);
8158  ;
8159  return 0;
8160}
8161_ACEOF
8162if ac_fn_c_try_link "$LINENO"; then :
8163  am_cv_func_iconv=yes
8164fi
8165rm -f core conftest.err conftest.$ac_objext \
8166    conftest$ac_exeext conftest.$ac_ext
8167    if test "$am_cv_func_iconv" != yes; then
8168      am_save_LIBS="$LIBS"
8169      LIBS="$LIBS $LIBICONV"
8170      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8171/* end confdefs.h.  */
8172#include <stdlib.h>
8173#include <iconv.h>
8174int
8175main ()
8176{
8177iconv_t cd = iconv_open("","");
8178         iconv(cd,NULL,NULL,NULL,NULL);
8179         iconv_close(cd);
8180  ;
8181  return 0;
8182}
8183_ACEOF
8184if ac_fn_c_try_link "$LINENO"; then :
8185  am_cv_lib_iconv=yes
8186        am_cv_func_iconv=yes
8187fi
8188rm -f core conftest.err conftest.$ac_objext \
8189    conftest$ac_exeext conftest.$ac_ext
8190      LIBS="$am_save_LIBS"
8191    fi
8192
8193fi
8194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8195$as_echo "$am_cv_func_iconv" >&6; }
8196  if test "$am_cv_func_iconv" = yes; then
8197
8198$as_echo "#define HAVE_ICONV 1" >>confdefs.h
8199
8200  fi
8201  if test "$am_cv_lib_iconv" = yes; then
8202    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8203$as_echo_n "checking how to link with libiconv... " >&6; }
8204    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8205$as_echo "$LIBICONV" >&6; }
8206  else
8207            CPPFLAGS="$am_save_CPPFLAGS"
8208    LIBICONV=
8209    LTLIBICONV=
8210  fi
8211
8212
8213
8214  if test "$am_cv_func_iconv" = yes; then
8215    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8216$as_echo_n "checking for iconv declaration... " >&6; }
8217    if test "${am_cv_proto_iconv+set}" = set; then :
8218  $as_echo_n "(cached) " >&6
8219else
8220
8221      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222/* end confdefs.h.  */
8223
8224#include <stdlib.h>
8225#include <iconv.h>
8226extern
8227#ifdef __cplusplus
8228"C"
8229#endif
8230#if defined(__STDC__) || defined(__cplusplus)
8231size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8232#else
8233size_t iconv();
8234#endif
8235
8236int
8237main ()
8238{
8239
8240  ;
8241  return 0;
8242}
8243_ACEOF
8244if ac_fn_c_try_compile "$LINENO"; then :
8245  am_cv_proto_iconv_arg1=""
8246else
8247  am_cv_proto_iconv_arg1="const"
8248fi
8249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8250      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);"
8251fi
8252
8253    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8254    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8255         }$am_cv_proto_iconv" >&5
8256$as_echo "${ac_t:-
8257         }$am_cv_proto_iconv" >&6; }
8258
8259cat >>confdefs.h <<_ACEOF
8260#define ICONV_CONST $am_cv_proto_iconv_arg1
8261_ACEOF
8262
8263  fi
8264
8265
8266  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8267$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8268if test "${am_cv_langinfo_codeset+set}" = set; then :
8269  $as_echo_n "(cached) " >&6
8270else
8271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272/* end confdefs.h.  */
8273#include <langinfo.h>
8274int
8275main ()
8276{
8277char* cs = nl_langinfo(CODESET);
8278  ;
8279  return 0;
8280}
8281_ACEOF
8282if ac_fn_c_try_link "$LINENO"; then :
8283  am_cv_langinfo_codeset=yes
8284else
8285  am_cv_langinfo_codeset=no
8286fi
8287rm -f core conftest.err conftest.$ac_objext \
8288    conftest$ac_exeext conftest.$ac_ext
8289
8290fi
8291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8292$as_echo "$am_cv_langinfo_codeset" >&6; }
8293  if test $am_cv_langinfo_codeset = yes; then
8294
8295$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8296
8297  fi
8298
8299  if test $ac_cv_header_locale_h = yes; then
8300
8301  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8302$as_echo_n "checking for LC_MESSAGES... " >&6; }
8303if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
8304  $as_echo_n "(cached) " >&6
8305else
8306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307/* end confdefs.h.  */
8308#include <locale.h>
8309int
8310main ()
8311{
8312return LC_MESSAGES
8313  ;
8314  return 0;
8315}
8316_ACEOF
8317if ac_fn_c_try_link "$LINENO"; then :
8318  am_cv_val_LC_MESSAGES=yes
8319else
8320  am_cv_val_LC_MESSAGES=no
8321fi
8322rm -f core conftest.err conftest.$ac_objext \
8323    conftest$ac_exeext conftest.$ac_ext
8324fi
8325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8326$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8327  if test $am_cv_val_LC_MESSAGES = yes; then
8328
8329$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8330
8331  fi
8332
8333  fi
8334
8335                      for ac_prog in bison
8336do
8337  # Extract the first word of "$ac_prog", so it can be a program name with args.
8338set dummy $ac_prog; ac_word=$2
8339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8340$as_echo_n "checking for $ac_word... " >&6; }
8341if test "${ac_cv_prog_INTLBISON+set}" = set; then :
8342  $as_echo_n "(cached) " >&6
8343else
8344  if test -n "$INTLBISON"; then
8345  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8346else
8347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348for as_dir in $PATH
8349do
8350  IFS=$as_save_IFS
8351  test -z "$as_dir" && as_dir=.
8352    for ac_exec_ext in '' $ac_executable_extensions; do
8353  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8354    ac_cv_prog_INTLBISON="$ac_prog"
8355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8356    break 2
8357  fi
8358done
8359  done
8360IFS=$as_save_IFS
8361
8362fi
8363fi
8364INTLBISON=$ac_cv_prog_INTLBISON
8365if test -n "$INTLBISON"; then
8366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8367$as_echo "$INTLBISON" >&6; }
8368else
8369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8370$as_echo "no" >&6; }
8371fi
8372
8373
8374  test -n "$INTLBISON" && break
8375done
8376
8377  if test -z "$INTLBISON"; then
8378    ac_verc_fail=yes
8379  else
8380        { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8381$as_echo_n "checking version of bison... " >&6; }
8382    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8383    case $ac_prog_version in
8384      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8385      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8386         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8387      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8388    esac
8389    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8390$as_echo "$ac_prog_version" >&6; }
8391  fi
8392  if test $ac_verc_fail = yes; then
8393    INTLBISON=:
8394  fi
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8412$as_echo_n "checking whether NLS is requested... " >&6; }
8413    # Check whether --enable-nls was given.
8414if test "${enable_nls+set}" = set; then :
8415  enableval=$enable_nls; USE_NLS=$enableval
8416else
8417  USE_NLS=yes
8418fi
8419
8420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8421$as_echo "$USE_NLS" >&6; }
8422
8423
8424
8425
8426    BUILD_INCLUDED_LIBINTL=no
8427    USE_INCLUDED_LIBINTL=no
8428
8429  LIBINTL=
8430  LTLIBINTL=
8431  POSUB=
8432
8433    if test "$USE_NLS" = "yes"; then
8434    gt_use_preinstalled_gnugettext=no
8435
8436      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8437$as_echo_n "checking whether included gettext is requested... " >&6; }
8438
8439# Check whether --with-included-gettext was given.
8440if test "${with_included_gettext+set}" = set; then :
8441  withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8442else
8443  nls_cv_force_use_gnu_gettext=no
8444fi
8445
8446      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8447$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8448
8449      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8450      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8451
8452
8453
8454
8455
8456
8457        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8458$as_echo_n "checking for GNU gettext in libc... " >&6; }
8459if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
8460  $as_echo_n "(cached) " >&6
8461else
8462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8463/* end confdefs.h.  */
8464#include <libintl.h>
8465extern int _nl_msg_cat_cntr;
8466extern int *_nl_domain_bindings;
8467int
8468main ()
8469{
8470bindtextdomain ("", "");
8471return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8472  ;
8473  return 0;
8474}
8475_ACEOF
8476if ac_fn_c_try_link "$LINENO"; then :
8477  gt_cv_func_gnugettext1_libc=yes
8478else
8479  gt_cv_func_gnugettext1_libc=no
8480fi
8481rm -f core conftest.err conftest.$ac_objext \
8482    conftest$ac_exeext conftest.$ac_ext
8483fi
8484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8485$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8486
8487        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8488
8489
8490
8491    use_additional=yes
8492
8493  acl_save_prefix="$prefix"
8494  prefix="$acl_final_prefix"
8495  acl_save_exec_prefix="$exec_prefix"
8496  exec_prefix="$acl_final_exec_prefix"
8497
8498    eval additional_includedir=\"$includedir\"
8499    eval additional_libdir=\"$libdir\"
8500
8501  exec_prefix="$acl_save_exec_prefix"
8502  prefix="$acl_save_prefix"
8503
8504
8505# Check whether --with-libintl-prefix was given.
8506if test "${with_libintl_prefix+set}" = set; then :
8507  withval=$with_libintl_prefix;
8508    if test "X$withval" = "Xno"; then
8509      use_additional=no
8510    else
8511      if test "X$withval" = "X"; then
8512
8513  acl_save_prefix="$prefix"
8514  prefix="$acl_final_prefix"
8515  acl_save_exec_prefix="$exec_prefix"
8516  exec_prefix="$acl_final_exec_prefix"
8517
8518          eval additional_includedir=\"$includedir\"
8519          eval additional_libdir=\"$libdir\"
8520
8521  exec_prefix="$acl_save_exec_prefix"
8522  prefix="$acl_save_prefix"
8523
8524      else
8525        additional_includedir="$withval/include"
8526        additional_libdir="$withval/lib"
8527      fi
8528    fi
8529
8530fi
8531
8532      LIBINTL=
8533  LTLIBINTL=
8534  INCINTL=
8535  rpathdirs=
8536  ltrpathdirs=
8537  names_already_handled=
8538  names_next_round='intl '
8539  while test -n "$names_next_round"; do
8540    names_this_round="$names_next_round"
8541    names_next_round=
8542    for name in $names_this_round; do
8543      already_handled=
8544      for n in $names_already_handled; do
8545        if test "$n" = "$name"; then
8546          already_handled=yes
8547          break
8548        fi
8549      done
8550      if test -z "$already_handled"; then
8551        names_already_handled="$names_already_handled $name"
8552                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8553        eval value=\"\$HAVE_LIB$uppername\"
8554        if test -n "$value"; then
8555          if test "$value" = yes; then
8556            eval value=\"\$LIB$uppername\"
8557            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8558            eval value=\"\$LTLIB$uppername\"
8559            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8560          else
8561                                    :
8562          fi
8563        else
8564                              found_dir=
8565          found_la=
8566          found_so=
8567          found_a=
8568          if test $use_additional = yes; then
8569            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8570              found_dir="$additional_libdir"
8571              found_so="$additional_libdir/lib$name.$shlibext"
8572              if test -f "$additional_libdir/lib$name.la"; then
8573                found_la="$additional_libdir/lib$name.la"
8574              fi
8575            else
8576              if test -f "$additional_libdir/lib$name.$libext"; then
8577                found_dir="$additional_libdir"
8578                found_a="$additional_libdir/lib$name.$libext"
8579                if test -f "$additional_libdir/lib$name.la"; then
8580                  found_la="$additional_libdir/lib$name.la"
8581                fi
8582              fi
8583            fi
8584          fi
8585          if test "X$found_dir" = "X"; then
8586            for x in $LDFLAGS $LTLIBINTL; do
8587
8588  acl_save_prefix="$prefix"
8589  prefix="$acl_final_prefix"
8590  acl_save_exec_prefix="$exec_prefix"
8591  exec_prefix="$acl_final_exec_prefix"
8592  eval x=\"$x\"
8593  exec_prefix="$acl_save_exec_prefix"
8594  prefix="$acl_save_prefix"
8595
8596              case "$x" in
8597                -L*)
8598                  dir=`echo "X$x" | sed -e 's/^X-L//'`
8599                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8600                    found_dir="$dir"
8601                    found_so="$dir/lib$name.$shlibext"
8602                    if test -f "$dir/lib$name.la"; then
8603                      found_la="$dir/lib$name.la"
8604                    fi
8605                  else
8606                    if test -f "$dir/lib$name.$libext"; then
8607                      found_dir="$dir"
8608                      found_a="$dir/lib$name.$libext"
8609                      if test -f "$dir/lib$name.la"; then
8610                        found_la="$dir/lib$name.la"
8611                      fi
8612                    fi
8613                  fi
8614                  ;;
8615              esac
8616              if test "X$found_dir" != "X"; then
8617                break
8618              fi
8619            done
8620          fi
8621          if test "X$found_dir" != "X"; then
8622                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8623            if test "X$found_so" != "X"; then
8624                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8625                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8626              else
8627                                                                                haveit=
8628                for x in $ltrpathdirs; do
8629                  if test "X$x" = "X$found_dir"; then
8630                    haveit=yes
8631                    break
8632                  fi
8633                done
8634                if test -z "$haveit"; then
8635                  ltrpathdirs="$ltrpathdirs $found_dir"
8636                fi
8637                                if test "$hardcode_direct" = yes; then
8638                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8639                else
8640                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8641                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8642                                                            haveit=
8643                    for x in $rpathdirs; do
8644                      if test "X$x" = "X$found_dir"; then
8645                        haveit=yes
8646                        break
8647                      fi
8648                    done
8649                    if test -z "$haveit"; then
8650                      rpathdirs="$rpathdirs $found_dir"
8651                    fi
8652                  else
8653                                                                                haveit=
8654                    for x in $LDFLAGS $LIBINTL; do
8655
8656  acl_save_prefix="$prefix"
8657  prefix="$acl_final_prefix"
8658  acl_save_exec_prefix="$exec_prefix"
8659  exec_prefix="$acl_final_exec_prefix"
8660  eval x=\"$x\"
8661  exec_prefix="$acl_save_exec_prefix"
8662  prefix="$acl_save_prefix"
8663
8664                      if test "X$x" = "X-L$found_dir"; then
8665                        haveit=yes
8666                        break
8667                      fi
8668                    done
8669                    if test -z "$haveit"; then
8670                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8671                    fi
8672                    if test "$hardcode_minus_L" != no; then
8673                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8674                    else
8675                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8676                    fi
8677                  fi
8678                fi
8679              fi
8680            else
8681              if test "X$found_a" != "X"; then
8682                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8683              else
8684                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8685              fi
8686            fi
8687                        additional_includedir=
8688            case "$found_dir" in
8689              */lib | */lib/)
8690                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8691                additional_includedir="$basedir/include"
8692                ;;
8693            esac
8694            if test "X$additional_includedir" != "X"; then
8695                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
8696                haveit=
8697                if test "X$additional_includedir" = "X/usr/local/include"; then
8698                  if test -n "$GCC"; then
8699                    case $host_os in
8700                      linux*) haveit=yes;;
8701                    esac
8702                  fi
8703                fi
8704                if test -z "$haveit"; then
8705                  for x in $CPPFLAGS $INCINTL; do
8706
8707  acl_save_prefix="$prefix"
8708  prefix="$acl_final_prefix"
8709  acl_save_exec_prefix="$exec_prefix"
8710  exec_prefix="$acl_final_exec_prefix"
8711  eval x=\"$x\"
8712  exec_prefix="$acl_save_exec_prefix"
8713  prefix="$acl_save_prefix"
8714
8715                    if test "X$x" = "X-I$additional_includedir"; then
8716                      haveit=yes
8717                      break
8718                    fi
8719                  done
8720                  if test -z "$haveit"; then
8721                    if test -d "$additional_includedir"; then
8722                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8723                    fi
8724                  fi
8725                fi
8726              fi
8727            fi
8728                        if test -n "$found_la"; then
8729                                                        save_libdir="$libdir"
8730              case "$found_la" in
8731                */* | *\\*) . "$found_la" ;;
8732                *) . "./$found_la" ;;
8733              esac
8734              libdir="$save_libdir"
8735                            for dep in $dependency_libs; do
8736                case "$dep" in
8737                  -L*)
8738                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8739                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
8740                      haveit=
8741                      if test "X$additional_libdir" = "X/usr/local/lib"; then
8742                        if test -n "$GCC"; then
8743                          case $host_os in
8744                            linux*) haveit=yes;;
8745                          esac
8746                        fi
8747                      fi
8748                      if test -z "$haveit"; then
8749                        haveit=
8750                        for x in $LDFLAGS $LIBINTL; do
8751
8752  acl_save_prefix="$prefix"
8753  prefix="$acl_final_prefix"
8754  acl_save_exec_prefix="$exec_prefix"
8755  exec_prefix="$acl_final_exec_prefix"
8756  eval x=\"$x\"
8757  exec_prefix="$acl_save_exec_prefix"
8758  prefix="$acl_save_prefix"
8759
8760                          if test "X$x" = "X-L$additional_libdir"; then
8761                            haveit=yes
8762                            break
8763                          fi
8764                        done
8765                        if test -z "$haveit"; then
8766                          if test -d "$additional_libdir"; then
8767                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8768                          fi
8769                        fi
8770                        haveit=
8771                        for x in $LDFLAGS $LTLIBINTL; do
8772
8773  acl_save_prefix="$prefix"
8774  prefix="$acl_final_prefix"
8775  acl_save_exec_prefix="$exec_prefix"
8776  exec_prefix="$acl_final_exec_prefix"
8777  eval x=\"$x\"
8778  exec_prefix="$acl_save_exec_prefix"
8779  prefix="$acl_save_prefix"
8780
8781                          if test "X$x" = "X-L$additional_libdir"; then
8782                            haveit=yes
8783                            break
8784                          fi
8785                        done
8786                        if test -z "$haveit"; then
8787                          if test -d "$additional_libdir"; then
8788                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8789                          fi
8790                        fi
8791                      fi
8792                    fi
8793                    ;;
8794                  -R*)
8795                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
8796                    if test "$enable_rpath" != no; then
8797                                                                  haveit=
8798                      for x in $rpathdirs; do
8799                        if test "X$x" = "X$dir"; then
8800                          haveit=yes
8801                          break
8802                        fi
8803                      done
8804                      if test -z "$haveit"; then
8805                        rpathdirs="$rpathdirs $dir"
8806                      fi
8807                                                                  haveit=
8808                      for x in $ltrpathdirs; do
8809                        if test "X$x" = "X$dir"; then
8810                          haveit=yes
8811                          break
8812                        fi
8813                      done
8814                      if test -z "$haveit"; then
8815                        ltrpathdirs="$ltrpathdirs $dir"
8816                      fi
8817                    fi
8818                    ;;
8819                  -l*)
8820                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8821                    ;;
8822                  *.la)
8823                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8824                    ;;
8825                  *)
8826                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8827                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8828                    ;;
8829                esac
8830              done
8831            fi
8832          else
8833                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8834            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8835          fi
8836        fi
8837      fi
8838    done
8839  done
8840  if test "X$rpathdirs" != "X"; then
8841    if test -n "$hardcode_libdir_separator"; then
8842                        alldirs=
8843      for found_dir in $rpathdirs; do
8844        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8845      done
8846            acl_save_libdir="$libdir"
8847      libdir="$alldirs"
8848      eval flag=\"$hardcode_libdir_flag_spec\"
8849      libdir="$acl_save_libdir"
8850      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8851    else
8852            for found_dir in $rpathdirs; do
8853        acl_save_libdir="$libdir"
8854        libdir="$found_dir"
8855        eval flag=\"$hardcode_libdir_flag_spec\"
8856        libdir="$acl_save_libdir"
8857        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8858      done
8859    fi
8860  fi
8861  if test "X$ltrpathdirs" != "X"; then
8862            for found_dir in $ltrpathdirs; do
8863      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8864    done
8865  fi
8866
8867          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8868$as_echo_n "checking for GNU gettext in libintl... " >&6; }
8869if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
8870  $as_echo_n "(cached) " >&6
8871else
8872  gt_save_CPPFLAGS="$CPPFLAGS"
8873            CPPFLAGS="$CPPFLAGS $INCINTL"
8874            gt_save_LIBS="$LIBS"
8875            LIBS="$LIBS $LIBINTL"
8876                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877/* end confdefs.h.  */
8878#include <libintl.h>
8879extern int _nl_msg_cat_cntr;
8880extern
8881#ifdef __cplusplus
8882"C"
8883#endif
8884const char *_nl_expand_alias ();
8885int
8886main ()
8887{
8888bindtextdomain ("", "");
8889return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8890  ;
8891  return 0;
8892}
8893_ACEOF
8894if ac_fn_c_try_link "$LINENO"; then :
8895  gt_cv_func_gnugettext1_libintl=yes
8896else
8897  gt_cv_func_gnugettext1_libintl=no
8898fi
8899rm -f core conftest.err conftest.$ac_objext \
8900    conftest$ac_exeext conftest.$ac_ext
8901                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
8902              LIBS="$LIBS $LIBICONV"
8903              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904/* end confdefs.h.  */
8905#include <libintl.h>
8906extern int _nl_msg_cat_cntr;
8907extern
8908#ifdef __cplusplus
8909"C"
8910#endif
8911const char *_nl_expand_alias ();
8912int
8913main ()
8914{
8915bindtextdomain ("", "");
8916return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8917  ;
8918  return 0;
8919}
8920_ACEOF
8921if ac_fn_c_try_link "$LINENO"; then :
8922  LIBINTL="$LIBINTL $LIBICONV"
8923                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8924                gt_cv_func_gnugettext1_libintl=yes
8925
8926fi
8927rm -f core conftest.err conftest.$ac_objext \
8928    conftest$ac_exeext conftest.$ac_ext
8929            fi
8930            CPPFLAGS="$gt_save_CPPFLAGS"
8931            LIBS="$gt_save_LIBS"
8932fi
8933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
8934$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
8935        fi
8936
8937                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
8938           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
8939                && test "$PACKAGE" != gettext-runtime \
8940                && test "$PACKAGE" != gettext-tools; }; then
8941          gt_use_preinstalled_gnugettext=yes
8942        else
8943                    LIBINTL=
8944          LTLIBINTL=
8945          INCINTL=
8946        fi
8947
8948
8949        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
8950                              nls_cv_use_gnu_gettext=yes
8951        fi
8952      fi
8953
8954      if test "$nls_cv_use_gnu_gettext" = "yes"; then
8955                BUILD_INCLUDED_LIBINTL=yes
8956        USE_INCLUDED_LIBINTL=yes
8957        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
8958        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
8959        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8960      fi
8961
8962      if test "$gt_use_preinstalled_gnugettext" = "yes" \
8963         || test "$nls_cv_use_gnu_gettext" = "yes"; then
8964                CATOBJEXT=.gmo
8965      fi
8966
8967
8968    if test "$gt_use_preinstalled_gnugettext" = "yes" \
8969       || test "$nls_cv_use_gnu_gettext" = "yes"; then
8970
8971$as_echo "#define ENABLE_NLS 1" >>confdefs.h
8972
8973    else
8974      USE_NLS=no
8975    fi
8976  fi
8977
8978  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8979$as_echo_n "checking whether to use NLS... " >&6; }
8980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8981$as_echo "$USE_NLS" >&6; }
8982  if test "$USE_NLS" = "yes"; then
8983    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8984$as_echo_n "checking where the gettext function comes from... " >&6; }
8985    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8986      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
8987        gt_source="external libintl"
8988      else
8989        gt_source="libc"
8990      fi
8991    else
8992      gt_source="included intl directory"
8993    fi
8994    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8995$as_echo "$gt_source" >&6; }
8996  fi
8997
8998  if test "$USE_NLS" = "yes"; then
8999
9000    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9001      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9002        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9003$as_echo_n "checking how to link with libintl... " >&6; }
9004        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9005$as_echo "$LIBINTL" >&6; }
9006
9007  for element in $INCINTL; do
9008    haveit=
9009    for x in $CPPFLAGS; do
9010
9011  acl_save_prefix="$prefix"
9012  prefix="$acl_final_prefix"
9013  acl_save_exec_prefix="$exec_prefix"
9014  exec_prefix="$acl_final_exec_prefix"
9015  eval x=\"$x\"
9016  exec_prefix="$acl_save_exec_prefix"
9017  prefix="$acl_save_prefix"
9018
9019      if test "X$x" = "X$element"; then
9020        haveit=yes
9021        break
9022      fi
9023    done
9024    if test -z "$haveit"; then
9025      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9026    fi
9027  done
9028
9029      fi
9030
9031
9032$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9033
9034
9035$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9036
9037    fi
9038
9039        POSUB=po
9040  fi
9041
9042
9043            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9044      BUILD_INCLUDED_LIBINTL=yes
9045    fi
9046
9047
9048
9049
9050
9051        nls_cv_header_intl=
9052    nls_cv_header_libgt=
9053
9054        DATADIRNAME=share
9055
9056
9057        INSTOBJEXT=.mo
9058
9059
9060        GENCAT=gencat
9061
9062
9063        if test "$USE_INCLUDED_LIBINTL" = yes; then
9064      INTLOBJS="\$(GETTOBJS)"
9065    fi
9066
9067
9068        INTL_LIBTOOL_SUFFIX_PREFIX=
9069
9070
9071
9072    INTLLIBS="$LIBINTL"
9073
9074
9075
9076
9077
9078
9079
9080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9081$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9082set x ${MAKE-make}
9083ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9084if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9085  $as_echo_n "(cached) " >&6
9086else
9087  cat >conftest.make <<\_ACEOF
9088SHELL = /bin/sh
9089all:
9090	@echo '@@@%%%=$(MAKE)=@@@%%%'
9091_ACEOF
9092# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9093case `${MAKE-make} -f conftest.make 2>/dev/null` in
9094  *@@@%%%=?*=@@@%%%*)
9095    eval ac_cv_prog_make_${ac_make}_set=yes;;
9096  *)
9097    eval ac_cv_prog_make_${ac_make}_set=no;;
9098esac
9099rm -f conftest.make
9100fi
9101if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9103$as_echo "yes" >&6; }
9104  SET_MAKE=
9105else
9106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9107$as_echo "no" >&6; }
9108  SET_MAKE="MAKE=${MAKE-make}"
9109fi
9110
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9112$as_echo_n "checking for GNU make... " >&6; }
9113if test "${_cv_gnu_make_command+set}" = set; then :
9114  $as_echo_n "(cached) " >&6
9115else
9116  _cv_gnu_make_command='' ;
9117                for a in "$MAKE" make gmake gnumake ; do
9118                        if test -z "$a" ; then continue ; fi ;
9119                        if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
9120                                _cv_gnu_make_command=$a ;
9121                                break;
9122                        fi
9123                done ;
9124
9125fi
9126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9127$as_echo "$_cv_gnu_make_command" >&6; } ;
9128        if test  "x$_cv_gnu_make_command" != "x"  ; then
9129                ifGNUmake='' ;
9130                ifNotGNUmake='#' ;
9131        else
9132                ifGNUmake='#' ;
9133                ifNotGNUmake='' ;
9134                { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9135$as_echo "\"Not found\"" >&6; };
9136        fi
9137
9138
9139
9140# Extract the first word of "ln", so it can be a program name with args.
9141set dummy ln; ac_word=$2
9142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9143$as_echo_n "checking for $ac_word... " >&6; }
9144if test "${ac_cv_path_LN+set}" = set; then :
9145  $as_echo_n "(cached) " >&6
9146else
9147  case $LN in
9148  [\\/]* | ?:[\\/]*)
9149  ac_cv_path_LN="$LN" # Let the user override the test with a path.
9150  ;;
9151  *)
9152  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9153for as_dir in $PATH
9154do
9155  IFS=$as_save_IFS
9156  test -z "$as_dir" && as_dir=.
9157    for ac_exec_ext in '' $ac_executable_extensions; do
9158  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9159    ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9160    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9161    break 2
9162  fi
9163done
9164  done
9165IFS=$as_save_IFS
9166
9167  test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9168  ;;
9169esac
9170fi
9171LN=$ac_cv_path_LN
9172if test -n "$LN"; then
9173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9174$as_echo "$LN" >&6; }
9175else
9176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9177$as_echo "no" >&6; }
9178fi
9179
9180
9181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9182$as_echo_n "checking whether ln -s works... " >&6; }
9183LN_S=$as_ln_s
9184if test "$LN_S" = "ln -s"; then
9185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9186$as_echo "yes" >&6; }
9187else
9188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9189$as_echo "no, using $LN_S" >&6; }
9190fi
9191
9192# Extract the first word of "mv", so it can be a program name with args.
9193set dummy mv; ac_word=$2
9194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9195$as_echo_n "checking for $ac_word... " >&6; }
9196if test "${ac_cv_path_MV+set}" = set; then :
9197  $as_echo_n "(cached) " >&6
9198else
9199  case $MV in
9200  [\\/]* | ?:[\\/]*)
9201  ac_cv_path_MV="$MV" # Let the user override the test with a path.
9202  ;;
9203  *)
9204  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9205for as_dir in $PATH
9206do
9207  IFS=$as_save_IFS
9208  test -z "$as_dir" && as_dir=.
9209    for ac_exec_ext in '' $ac_executable_extensions; do
9210  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9211    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9212    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9213    break 2
9214  fi
9215done
9216  done
9217IFS=$as_save_IFS
9218
9219  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9220  ;;
9221esac
9222fi
9223MV=$ac_cv_path_MV
9224if test -n "$MV"; then
9225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9226$as_echo "$MV" >&6; }
9227else
9228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9229$as_echo "no" >&6; }
9230fi
9231
9232
9233# Extract the first word of "cp", so it can be a program name with args.
9234set dummy cp; ac_word=$2
9235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9236$as_echo_n "checking for $ac_word... " >&6; }
9237if test "${ac_cv_path_CP+set}" = set; then :
9238  $as_echo_n "(cached) " >&6
9239else
9240  case $CP in
9241  [\\/]* | ?:[\\/]*)
9242  ac_cv_path_CP="$CP" # Let the user override the test with a path.
9243  ;;
9244  *)
9245  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9246for as_dir in $PATH
9247do
9248  IFS=$as_save_IFS
9249  test -z "$as_dir" && as_dir=.
9250    for ac_exec_ext in '' $ac_executable_extensions; do
9251  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9252    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9253    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9254    break 2
9255  fi
9256done
9257  done
9258IFS=$as_save_IFS
9259
9260  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9261  ;;
9262esac
9263fi
9264CP=$ac_cv_path_CP
9265if test -n "$CP"; then
9266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9267$as_echo "$CP" >&6; }
9268else
9269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9270$as_echo "no" >&6; }
9271fi
9272
9273
9274# Extract the first word of "rm", so it can be a program name with args.
9275set dummy rm; ac_word=$2
9276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9277$as_echo_n "checking for $ac_word... " >&6; }
9278if test "${ac_cv_path_RM+set}" = set; then :
9279  $as_echo_n "(cached) " >&6
9280else
9281  case $RM in
9282  [\\/]* | ?:[\\/]*)
9283  ac_cv_path_RM="$RM" # Let the user override the test with a path.
9284  ;;
9285  *)
9286  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9287for as_dir in $PATH
9288do
9289  IFS=$as_save_IFS
9290  test -z "$as_dir" && as_dir=.
9291    for ac_exec_ext in '' $ac_executable_extensions; do
9292  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9293    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9294    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9295    break 2
9296  fi
9297done
9298  done
9299IFS=$as_save_IFS
9300
9301  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9302  ;;
9303esac
9304fi
9305RM=$ac_cv_path_RM
9306if test -n "$RM"; then
9307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9308$as_echo "$RM" >&6; }
9309else
9310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9311$as_echo "no" >&6; }
9312fi
9313
9314
9315# Extract the first word of "chmod", so it can be a program name with args.
9316set dummy chmod; ac_word=$2
9317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9318$as_echo_n "checking for $ac_word... " >&6; }
9319if test "${ac_cv_path_CHMOD+set}" = set; then :
9320  $as_echo_n "(cached) " >&6
9321else
9322  case $CHMOD in
9323  [\\/]* | ?:[\\/]*)
9324  ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9325  ;;
9326  *)
9327  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9328for as_dir in $PATH
9329do
9330  IFS=$as_save_IFS
9331  test -z "$as_dir" && as_dir=.
9332    for ac_exec_ext in '' $ac_executable_extensions; do
9333  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9334    ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9335    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9336    break 2
9337  fi
9338done
9339  done
9340IFS=$as_save_IFS
9341
9342  test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9343  ;;
9344esac
9345fi
9346CHMOD=$ac_cv_path_CHMOD
9347if test -n "$CHMOD"; then
9348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9349$as_echo "$CHMOD" >&6; }
9350else
9351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9352$as_echo "no" >&6; }
9353fi
9354
9355
9356for ac_prog in gawk mawk nawk awk
9357do
9358  # Extract the first word of "$ac_prog", so it can be a program name with args.
9359set dummy $ac_prog; ac_word=$2
9360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9361$as_echo_n "checking for $ac_word... " >&6; }
9362if test "${ac_cv_prog_AWK+set}" = set; then :
9363  $as_echo_n "(cached) " >&6
9364else
9365  if test -n "$AWK"; then
9366  ac_cv_prog_AWK="$AWK" # Let the user override the test.
9367else
9368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9369for as_dir in $PATH
9370do
9371  IFS=$as_save_IFS
9372  test -z "$as_dir" && as_dir=.
9373    for ac_exec_ext in '' $ac_executable_extensions; do
9374  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9375    ac_cv_prog_AWK="$ac_prog"
9376    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9377    break 2
9378  fi
9379done
9380  done
9381IFS=$as_save_IFS
9382
9383fi
9384fi
9385AWK=$ac_cv_prog_AWK
9386if test -n "$AWK"; then
9387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9388$as_echo "$AWK" >&6; }
9389else
9390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9391$as_echo "no" >&6; }
9392fi
9393
9394
9395  test -n "$AWK" && break
9396done
9397
9398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9399$as_echo_n "checking for egrep... " >&6; }
9400if test "${ac_cv_path_EGREP+set}" = set; then :
9401  $as_echo_n "(cached) " >&6
9402else
9403  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9404   then ac_cv_path_EGREP="$GREP -E"
9405   else
9406     if test -z "$EGREP"; then
9407  ac_path_EGREP_found=false
9408  # Loop through the user's path and test for each of PROGNAME-LIST
9409  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9410for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9411do
9412  IFS=$as_save_IFS
9413  test -z "$as_dir" && as_dir=.
9414    for ac_prog in egrep; do
9415    for ac_exec_ext in '' $ac_executable_extensions; do
9416      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9417      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
9418# Check for GNU ac_path_EGREP and select it if it is found.
9419  # Check for GNU $ac_path_EGREP
9420case `"$ac_path_EGREP" --version 2>&1` in
9421*GNU*)
9422  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9423*)
9424  ac_count=0
9425  $as_echo_n 0123456789 >"conftest.in"
9426  while :
9427  do
9428    cat "conftest.in" "conftest.in" >"conftest.tmp"
9429    mv "conftest.tmp" "conftest.in"
9430    cp "conftest.in" "conftest.nl"
9431    $as_echo 'EGREP' >> "conftest.nl"
9432    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9433    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9434    as_fn_arith $ac_count + 1 && ac_count=$as_val
9435    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9436      # Best one so far, save it but keep looking for a better one
9437      ac_cv_path_EGREP="$ac_path_EGREP"
9438      ac_path_EGREP_max=$ac_count
9439    fi
9440    # 10*(2^10) chars as input seems more than enough
9441    test $ac_count -gt 10 && break
9442  done
9443  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9444esac
9445
9446      $ac_path_EGREP_found && break 3
9447    done
9448  done
9449  done
9450IFS=$as_save_IFS
9451  if test -z "$ac_cv_path_EGREP"; then
9452    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9453  fi
9454else
9455  ac_cv_path_EGREP=$EGREP
9456fi
9457
9458   fi
9459fi
9460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9461$as_echo "$ac_cv_path_EGREP" >&6; }
9462 EGREP="$ac_cv_path_EGREP"
9463
9464
9465# Extract the first word of "sed", so it can be a program name with args.
9466set dummy sed; ac_word=$2
9467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9468$as_echo_n "checking for $ac_word... " >&6; }
9469if test "${ac_cv_path_SED+set}" = set; then :
9470  $as_echo_n "(cached) " >&6
9471else
9472  case $SED in
9473  [\\/]* | ?:[\\/]*)
9474  ac_cv_path_SED="$SED" # Let the user override the test with a path.
9475  ;;
9476  *)
9477  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9478for as_dir in $PATH
9479do
9480  IFS=$as_save_IFS
9481  test -z "$as_dir" && as_dir=.
9482    for ac_exec_ext in '' $ac_executable_extensions; do
9483  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9484    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9485    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9486    break 2
9487  fi
9488done
9489  done
9490IFS=$as_save_IFS
9491
9492  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9493  ;;
9494esac
9495fi
9496SED=$ac_cv_path_SED
9497if test -n "$SED"; then
9498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9499$as_echo "$SED" >&6; }
9500else
9501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9502$as_echo "no" >&6; }
9503fi
9504
9505
9506# Extract the first word of "perl", so it can be a program name with args.
9507set dummy perl; ac_word=$2
9508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9509$as_echo_n "checking for $ac_word... " >&6; }
9510if test "${ac_cv_path_PERL+set}" = set; then :
9511  $as_echo_n "(cached) " >&6
9512else
9513  case $PERL in
9514  [\\/]* | ?:[\\/]*)
9515  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9516  ;;
9517  *)
9518  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9519for as_dir in $PATH
9520do
9521  IFS=$as_save_IFS
9522  test -z "$as_dir" && as_dir=.
9523    for ac_exec_ext in '' $ac_executable_extensions; do
9524  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9525    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9526    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9527    break 2
9528  fi
9529done
9530  done
9531IFS=$as_save_IFS
9532
9533  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9534  ;;
9535esac
9536fi
9537PERL=$ac_cv_path_PERL
9538if test -n "$PERL"; then
9539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9540$as_echo "$PERL" >&6; }
9541else
9542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9543$as_echo "no" >&6; }
9544fi
9545
9546
9547# Extract the first word of "ldconfig", so it can be a program name with args.
9548set dummy ldconfig; ac_word=$2
9549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9550$as_echo_n "checking for $ac_word... " >&6; }
9551if test "${ac_cv_path_LDCONFIG+set}" = set; then :
9552  $as_echo_n "(cached) " >&6
9553else
9554  case $LDCONFIG in
9555  [\\/]* | ?:[\\/]*)
9556  ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9557  ;;
9558  *)
9559  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9560for as_dir in $PATH
9561do
9562  IFS=$as_save_IFS
9563  test -z "$as_dir" && as_dir=.
9564    for ac_exec_ext in '' $ac_executable_extensions; do
9565  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9566    ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
9567    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9568    break 2
9569  fi
9570done
9571  done
9572IFS=$as_save_IFS
9573
9574  test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9575  ;;
9576esac
9577fi
9578LDCONFIG=$ac_cv_path_LDCONFIG
9579if test -n "$LDCONFIG"; then
9580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
9581$as_echo "$LDCONFIG" >&6; }
9582else
9583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9584$as_echo "no" >&6; }
9585fi
9586
9587
9588if test -n "$ac_tool_prefix"; then
9589  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9590set dummy ${ac_tool_prefix}ar; ac_word=$2
9591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9592$as_echo_n "checking for $ac_word... " >&6; }
9593if test "${ac_cv_prog_AR+set}" = set; then :
9594  $as_echo_n "(cached) " >&6
9595else
9596  if test -n "$AR"; then
9597  ac_cv_prog_AR="$AR" # Let the user override the test.
9598else
9599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9600for as_dir in $PATH
9601do
9602  IFS=$as_save_IFS
9603  test -z "$as_dir" && as_dir=.
9604    for ac_exec_ext in '' $ac_executable_extensions; do
9605  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9606    ac_cv_prog_AR="${ac_tool_prefix}ar"
9607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9608    break 2
9609  fi
9610done
9611  done
9612IFS=$as_save_IFS
9613
9614fi
9615fi
9616AR=$ac_cv_prog_AR
9617if test -n "$AR"; then
9618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9619$as_echo "$AR" >&6; }
9620else
9621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9622$as_echo "no" >&6; }
9623fi
9624
9625
9626fi
9627if test -z "$ac_cv_prog_AR"; then
9628  ac_ct_AR=$AR
9629  # Extract the first word of "ar", so it can be a program name with args.
9630set dummy ar; ac_word=$2
9631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9632$as_echo_n "checking for $ac_word... " >&6; }
9633if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
9634  $as_echo_n "(cached) " >&6
9635else
9636  if test -n "$ac_ct_AR"; then
9637  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9638else
9639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9640for as_dir in $PATH
9641do
9642  IFS=$as_save_IFS
9643  test -z "$as_dir" && as_dir=.
9644    for ac_exec_ext in '' $ac_executable_extensions; do
9645  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9646    ac_cv_prog_ac_ct_AR="ar"
9647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9648    break 2
9649  fi
9650done
9651  done
9652IFS=$as_save_IFS
9653
9654fi
9655fi
9656ac_ct_AR=$ac_cv_prog_ac_ct_AR
9657if test -n "$ac_ct_AR"; then
9658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9659$as_echo "$ac_ct_AR" >&6; }
9660else
9661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9662$as_echo "no" >&6; }
9663fi
9664
9665  if test "x$ac_ct_AR" = x; then
9666    AR="ar"
9667  else
9668    case $cross_compiling:$ac_tool_warned in
9669yes:)
9670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9672ac_tool_warned=yes ;;
9673esac
9674    AR=$ac_ct_AR
9675  fi
9676else
9677  AR="$ac_cv_prog_AR"
9678fi
9679
9680if test -n "$ac_tool_prefix"; then
9681  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9682set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9684$as_echo_n "checking for $ac_word... " >&6; }
9685if test "${ac_cv_prog_RANLIB+set}" = set; then :
9686  $as_echo_n "(cached) " >&6
9687else
9688  if test -n "$RANLIB"; then
9689  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9690else
9691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9692for as_dir in $PATH
9693do
9694  IFS=$as_save_IFS
9695  test -z "$as_dir" && as_dir=.
9696    for ac_exec_ext in '' $ac_executable_extensions; do
9697  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9698    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9699    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9700    break 2
9701  fi
9702done
9703  done
9704IFS=$as_save_IFS
9705
9706fi
9707fi
9708RANLIB=$ac_cv_prog_RANLIB
9709if test -n "$RANLIB"; then
9710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9711$as_echo "$RANLIB" >&6; }
9712else
9713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9714$as_echo "no" >&6; }
9715fi
9716
9717
9718fi
9719if test -z "$ac_cv_prog_RANLIB"; then
9720  ac_ct_RANLIB=$RANLIB
9721  # Extract the first word of "ranlib", so it can be a program name with args.
9722set dummy ranlib; ac_word=$2
9723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9724$as_echo_n "checking for $ac_word... " >&6; }
9725if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
9726  $as_echo_n "(cached) " >&6
9727else
9728  if test -n "$ac_ct_RANLIB"; then
9729  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9730else
9731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732for as_dir in $PATH
9733do
9734  IFS=$as_save_IFS
9735  test -z "$as_dir" && as_dir=.
9736    for ac_exec_ext in '' $ac_executable_extensions; do
9737  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9738    ac_cv_prog_ac_ct_RANLIB="ranlib"
9739    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9740    break 2
9741  fi
9742done
9743  done
9744IFS=$as_save_IFS
9745
9746fi
9747fi
9748ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9749if test -n "$ac_ct_RANLIB"; then
9750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9751$as_echo "$ac_ct_RANLIB" >&6; }
9752else
9753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9754$as_echo "no" >&6; }
9755fi
9756
9757  if test "x$ac_ct_RANLIB" = x; then
9758    RANLIB=":"
9759  else
9760    case $cross_compiling:$ac_tool_warned in
9761yes:)
9762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9764ac_tool_warned=yes ;;
9765esac
9766    RANLIB=$ac_ct_RANLIB
9767  fi
9768else
9769  RANLIB="$ac_cv_prog_RANLIB"
9770fi
9771
9772if test -n "$ac_tool_prefix"; then
9773  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9774set dummy ${ac_tool_prefix}strip; ac_word=$2
9775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9776$as_echo_n "checking for $ac_word... " >&6; }
9777if test "${ac_cv_prog_STRIP+set}" = set; then :
9778  $as_echo_n "(cached) " >&6
9779else
9780  if test -n "$STRIP"; then
9781  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9782else
9783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9784for as_dir in $PATH
9785do
9786  IFS=$as_save_IFS
9787  test -z "$as_dir" && as_dir=.
9788    for ac_exec_ext in '' $ac_executable_extensions; do
9789  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9790    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9791    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9792    break 2
9793  fi
9794done
9795  done
9796IFS=$as_save_IFS
9797
9798fi
9799fi
9800STRIP=$ac_cv_prog_STRIP
9801if test -n "$STRIP"; then
9802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9803$as_echo "$STRIP" >&6; }
9804else
9805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9806$as_echo "no" >&6; }
9807fi
9808
9809
9810fi
9811if test -z "$ac_cv_prog_STRIP"; then
9812  ac_ct_STRIP=$STRIP
9813  # Extract the first word of "strip", so it can be a program name with args.
9814set dummy strip; ac_word=$2
9815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9816$as_echo_n "checking for $ac_word... " >&6; }
9817if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
9818  $as_echo_n "(cached) " >&6
9819else
9820  if test -n "$ac_ct_STRIP"; then
9821  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9822else
9823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9824for as_dir in $PATH
9825do
9826  IFS=$as_save_IFS
9827  test -z "$as_dir" && as_dir=.
9828    for ac_exec_ext in '' $ac_executable_extensions; do
9829  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9830    ac_cv_prog_ac_ct_STRIP="strip"
9831    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9832    break 2
9833  fi
9834done
9835  done
9836IFS=$as_save_IFS
9837
9838fi
9839fi
9840ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9841if test -n "$ac_ct_STRIP"; then
9842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9843$as_echo "$ac_ct_STRIP" >&6; }
9844else
9845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9846$as_echo "no" >&6; }
9847fi
9848
9849  if test "x$ac_ct_STRIP" = x; then
9850    STRIP=":"
9851  else
9852    case $cross_compiling:$ac_tool_warned in
9853yes:)
9854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9856ac_tool_warned=yes ;;
9857esac
9858    STRIP=$ac_ct_STRIP
9859  fi
9860else
9861  STRIP="$ac_cv_prog_STRIP"
9862fi
9863
9864# Extract the first word of "makeinfo", so it can be a program name with args.
9865set dummy makeinfo; ac_word=$2
9866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9867$as_echo_n "checking for $ac_word... " >&6; }
9868if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
9869  $as_echo_n "(cached) " >&6
9870else
9871  if test -n "$MAKEINFO"; then
9872  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
9873else
9874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9875for as_dir in $PATH
9876do
9877  IFS=$as_save_IFS
9878  test -z "$as_dir" && as_dir=.
9879    for ac_exec_ext in '' $ac_executable_extensions; do
9880  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9881    ac_cv_prog_MAKEINFO="makeinfo"
9882    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9883    break 2
9884  fi
9885done
9886  done
9887IFS=$as_save_IFS
9888
9889fi
9890fi
9891MAKEINFO=$ac_cv_prog_MAKEINFO
9892if test -n "$MAKEINFO"; then
9893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
9894$as_echo "$MAKEINFO" >&6; }
9895else
9896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9897$as_echo "no" >&6; }
9898fi
9899
9900
9901if test "_$MAKEINFO" = "_"; then
9902    MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
9903else
9904    case "$MAKEINFO" in
9905      */missing.*)
9906        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9907*** Makeinfo is missing. Info documentation will not be built." >&5
9908$as_echo "$as_me: WARNING:
9909*** Makeinfo is missing. Info documentation will not be built." >&2;}
9910        ;;
9911      *)
9912        ;;
9913    esac
9914fi
9915
9916
9917# See if we need a separate native compiler.
9918if test $cross_compiling = no; then
9919  BUILD_CC="$CC"
9920
9921else
9922  for ac_prog in gcc cc
9923do
9924  # Extract the first word of "$ac_prog", so it can be a program name with args.
9925set dummy $ac_prog; ac_word=$2
9926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9927$as_echo_n "checking for $ac_word... " >&6; }
9928if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
9929  $as_echo_n "(cached) " >&6
9930else
9931  if test -n "$BUILD_CC"; then
9932  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
9933else
9934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9935for as_dir in $PATH
9936do
9937  IFS=$as_save_IFS
9938  test -z "$as_dir" && as_dir=.
9939    for ac_exec_ext in '' $ac_executable_extensions; do
9940  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9941    ac_cv_prog_BUILD_CC="$ac_prog"
9942    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9943    break 2
9944  fi
9945done
9946  done
9947IFS=$as_save_IFS
9948
9949fi
9950fi
9951BUILD_CC=$ac_cv_prog_BUILD_CC
9952if test -n "$BUILD_CC"; then
9953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
9954$as_echo "$BUILD_CC" >&6; }
9955else
9956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9957$as_echo "no" >&6; }
9958fi
9959
9960
9961  test -n "$BUILD_CC" && break
9962done
9963
9964fi
9965for 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
9966do :
9967  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9968ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9969eval as_val=\$$as_ac_Header
9970   if test "x$as_val" = x""yes; then :
9971  cat >>confdefs.h <<_ACEOF
9972#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9973_ACEOF
9974
9975fi
9976
9977done
9978
9979for ac_header in sys/disk.h sys/mount.h
9980do :
9981  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9982ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
9983#if HAVE_SYS_QUEUE_H
9984#include <sys/queue.h>
9985#endif
9986
9987"
9988eval as_val=\$$as_ac_Header
9989   if test "x$as_val" = x""yes; then :
9990  cat >>confdefs.h <<_ACEOF
9991#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9992_ACEOF
9993
9994fi
9995
9996done
9997
9998for ac_header in net/if.h
9999do :
10000  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10001#if HAVE_SYS_TYPES_H
10002#include <sys/types.h>
10003#endif
10004#if HAVE_SYS_SOCKET
10005#include <sys/socket.h>
10006#endif
10007
10008"
10009if test "x$ac_cv_header_net_if_h" = x""yes; then :
10010  cat >>confdefs.h <<_ACEOF
10011#define HAVE_NET_IF_H 1
10012_ACEOF
10013
10014fi
10015
10016done
10017
10018for ac_func in vprintf
10019do :
10020  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10021if test "x$ac_cv_func_vprintf" = x""yes; then :
10022  cat >>confdefs.h <<_ACEOF
10023#define HAVE_VPRINTF 1
10024_ACEOF
10025
10026ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10027if test "x$ac_cv_func__doprnt" = x""yes; then :
10028
10029$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10030
10031fi
10032
10033fi
10034done
10035
10036
10037ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10038"
10039if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then :
10040  $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10041
10042fi
10043
10044ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10045"
10046if test "x$ac_cv_type_ssize_t" = x""yes; then :
10047  $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10048
10049fi
10050
10051ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10052"
10053if test "x$ac_cv_have_decl_llseek" = x""yes; then :
10054  $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10055
10056fi
10057
10058ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10059		 #define _LARGEFILE64_SOURCE
10060		 #include <unistd.h>
10061"
10062if test "x$ac_cv_have_decl_lseek64" = x""yes; then :
10063  $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10064
10065fi
10066
10067# The cast to long int works around a bug in the HP C Compiler
10068# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10069# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10070# This bug is HP SR number 8606223364.
10071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10072$as_echo_n "checking size of short... " >&6; }
10073if test "${ac_cv_sizeof_short+set}" = set; then :
10074  $as_echo_n "(cached) " >&6
10075else
10076  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
10077
10078else
10079  if test "$ac_cv_type_short" = yes; then
10080     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10082{ as_fn_set_status 77
10083as_fn_error "cannot compute sizeof (short)
10084See \`config.log' for more details." "$LINENO" 5; }; }
10085   else
10086     ac_cv_sizeof_short=0
10087   fi
10088fi
10089
10090fi
10091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10092$as_echo "$ac_cv_sizeof_short" >&6; }
10093
10094
10095
10096cat >>confdefs.h <<_ACEOF
10097#define SIZEOF_SHORT $ac_cv_sizeof_short
10098_ACEOF
10099
10100
10101# The cast to long int works around a bug in the HP C Compiler
10102# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10103# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10104# This bug is HP SR number 8606223364.
10105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10106$as_echo_n "checking size of int... " >&6; }
10107if test "${ac_cv_sizeof_int+set}" = set; then :
10108  $as_echo_n "(cached) " >&6
10109else
10110  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
10111
10112else
10113  if test "$ac_cv_type_int" = yes; then
10114     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10115$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10116{ as_fn_set_status 77
10117as_fn_error "cannot compute sizeof (int)
10118See \`config.log' for more details." "$LINENO" 5; }; }
10119   else
10120     ac_cv_sizeof_int=0
10121   fi
10122fi
10123
10124fi
10125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10126$as_echo "$ac_cv_sizeof_int" >&6; }
10127
10128
10129
10130cat >>confdefs.h <<_ACEOF
10131#define SIZEOF_INT $ac_cv_sizeof_int
10132_ACEOF
10133
10134
10135# The cast to long int works around a bug in the HP C Compiler
10136# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10137# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10138# This bug is HP SR number 8606223364.
10139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10140$as_echo_n "checking size of long... " >&6; }
10141if test "${ac_cv_sizeof_long+set}" = set; then :
10142  $as_echo_n "(cached) " >&6
10143else
10144  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
10145
10146else
10147  if test "$ac_cv_type_long" = yes; then
10148     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10149$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10150{ as_fn_set_status 77
10151as_fn_error "cannot compute sizeof (long)
10152See \`config.log' for more details." "$LINENO" 5; }; }
10153   else
10154     ac_cv_sizeof_long=0
10155   fi
10156fi
10157
10158fi
10159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10160$as_echo "$ac_cv_sizeof_long" >&6; }
10161
10162
10163
10164cat >>confdefs.h <<_ACEOF
10165#define SIZEOF_LONG $ac_cv_sizeof_long
10166_ACEOF
10167
10168
10169# The cast to long int works around a bug in the HP C Compiler
10170# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10171# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10172# This bug is HP SR number 8606223364.
10173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10174$as_echo_n "checking size of long long... " >&6; }
10175if test "${ac_cv_sizeof_long_long+set}" = set; then :
10176  $as_echo_n "(cached) " >&6
10177else
10178  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
10179
10180else
10181  if test "$ac_cv_type_long_long" = yes; then
10182     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10184{ as_fn_set_status 77
10185as_fn_error "cannot compute sizeof (long long)
10186See \`config.log' for more details." "$LINENO" 5; }; }
10187   else
10188     ac_cv_sizeof_long_long=0
10189   fi
10190fi
10191
10192fi
10193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10194$as_echo "$ac_cv_sizeof_long_long" >&6; }
10195
10196
10197
10198cat >>confdefs.h <<_ACEOF
10199#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10200_ACEOF
10201
10202
10203SIZEOF_SHORT=$ac_cv_sizeof_short
10204SIZEOF_INT=$ac_cv_sizeof_int
10205SIZEOF_LONG=$ac_cv_sizeof_long
10206SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10207
10208
10209
10210
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10212$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10213if test "${ac_cv_c_bigendian+set}" = set; then :
10214  $as_echo_n "(cached) " >&6
10215else
10216  ac_cv_c_bigendian=unknown
10217    # See if we're dealing with a universal compiler.
10218    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10219/* end confdefs.h.  */
10220#ifndef __APPLE_CC__
10221	       not a universal capable compiler
10222	     #endif
10223	     typedef int dummy;
10224
10225_ACEOF
10226if ac_fn_c_try_compile "$LINENO"; then :
10227
10228	# Check for potential -arch flags.  It is not universal unless
10229	# there are at least two -arch flags with different values.
10230	ac_arch=
10231	ac_prev=
10232	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10233	 if test -n "$ac_prev"; then
10234	   case $ac_word in
10235	     i?86 | x86_64 | ppc | ppc64)
10236	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10237		 ac_arch=$ac_word
10238	       else
10239		 ac_cv_c_bigendian=universal
10240		 break
10241	       fi
10242	       ;;
10243	   esac
10244	   ac_prev=
10245	 elif test "x$ac_word" = "x-arch"; then
10246	   ac_prev=arch
10247	 fi
10248       done
10249fi
10250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10251    if test $ac_cv_c_bigendian = unknown; then
10252      # See if sys/param.h defines the BYTE_ORDER macro.
10253      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10254/* end confdefs.h.  */
10255#include <sys/types.h>
10256	     #include <sys/param.h>
10257
10258int
10259main ()
10260{
10261#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10262		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10263		     && LITTLE_ENDIAN)
10264	      bogus endian macros
10265	     #endif
10266
10267  ;
10268  return 0;
10269}
10270_ACEOF
10271if ac_fn_c_try_compile "$LINENO"; then :
10272  # It does; now see whether it defined to BIG_ENDIAN or not.
10273	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274/* end confdefs.h.  */
10275#include <sys/types.h>
10276		#include <sys/param.h>
10277
10278int
10279main ()
10280{
10281#if BYTE_ORDER != BIG_ENDIAN
10282		 not big endian
10283		#endif
10284
10285  ;
10286  return 0;
10287}
10288_ACEOF
10289if ac_fn_c_try_compile "$LINENO"; then :
10290  ac_cv_c_bigendian=yes
10291else
10292  ac_cv_c_bigendian=no
10293fi
10294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10295fi
10296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10297    fi
10298    if test $ac_cv_c_bigendian = unknown; then
10299      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10300      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10301/* end confdefs.h.  */
10302#include <limits.h>
10303
10304int
10305main ()
10306{
10307#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10308	      bogus endian macros
10309	     #endif
10310
10311  ;
10312  return 0;
10313}
10314_ACEOF
10315if ac_fn_c_try_compile "$LINENO"; then :
10316  # It does; now see whether it defined to _BIG_ENDIAN or not.
10317	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10318/* end confdefs.h.  */
10319#include <limits.h>
10320
10321int
10322main ()
10323{
10324#ifndef _BIG_ENDIAN
10325		 not big endian
10326		#endif
10327
10328  ;
10329  return 0;
10330}
10331_ACEOF
10332if ac_fn_c_try_compile "$LINENO"; then :
10333  ac_cv_c_bigendian=yes
10334else
10335  ac_cv_c_bigendian=no
10336fi
10337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10338fi
10339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10340    fi
10341    if test $ac_cv_c_bigendian = unknown; then
10342      # Compile a test program.
10343      if test "$cross_compiling" = yes; then :
10344  # Try to guess by grepping values from an object file.
10345	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10346/* end confdefs.h.  */
10347short int ascii_mm[] =
10348		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10349		short int ascii_ii[] =
10350		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10351		int use_ascii (int i) {
10352		  return ascii_mm[i] + ascii_ii[i];
10353		}
10354		short int ebcdic_ii[] =
10355		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10356		short int ebcdic_mm[] =
10357		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10358		int use_ebcdic (int i) {
10359		  return ebcdic_mm[i] + ebcdic_ii[i];
10360		}
10361		extern int foo;
10362
10363int
10364main ()
10365{
10366return use_ascii (foo) == use_ebcdic (foo);
10367  ;
10368  return 0;
10369}
10370_ACEOF
10371if ac_fn_c_try_compile "$LINENO"; then :
10372  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10373	      ac_cv_c_bigendian=yes
10374	    fi
10375	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10376	      if test "$ac_cv_c_bigendian" = unknown; then
10377		ac_cv_c_bigendian=no
10378	      else
10379		# finding both strings is unlikely to happen, but who knows?
10380		ac_cv_c_bigendian=unknown
10381	      fi
10382	    fi
10383fi
10384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10385else
10386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387/* end confdefs.h.  */
10388$ac_includes_default
10389int
10390main ()
10391{
10392
10393	     /* Are we little or big endian?  From Harbison&Steele.  */
10394	     union
10395	     {
10396	       long int l;
10397	       char c[sizeof (long int)];
10398	     } u;
10399	     u.l = 1;
10400	     return u.c[sizeof (long int) - 1] == 1;
10401
10402  ;
10403  return 0;
10404}
10405_ACEOF
10406if ac_fn_c_try_run "$LINENO"; then :
10407  ac_cv_c_bigendian=no
10408else
10409  ac_cv_c_bigendian=yes
10410fi
10411rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10412  conftest.$ac_objext conftest.beam conftest.$ac_ext
10413fi
10414
10415    fi
10416fi
10417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10418$as_echo "$ac_cv_c_bigendian" >&6; }
10419 case $ac_cv_c_bigendian in #(
10420   yes)
10421     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10422;; #(
10423   no)
10424      ;; #(
10425   universal)
10426
10427$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10428
10429     ;; #(
10430   *)
10431     as_fn_error "unknown endianness
10432 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10433 esac
10434
10435BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10436ASM_TYPES_HEADER=./asm_types.h
10437
10438echo "/* These defines are needed for the public ext2fs.h header file */" \
10439     > public_config.h
10440if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10441  uniq tmp_config.$$ >> public_config.h
10442else
10443  echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10444fi
10445if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10446  uniq tmp_config.$$ >> public_config.h
10447else
10448  echo "#undef WORDS_BIGENDIAN" >> public_config.h
10449fi
10450rm -f tmp_config.$$
10451PUBLIC_CONFIG_HEADER=./public_config.h
10452
10453for ac_header in inttypes.h
10454do :
10455  ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10456if test "x$ac_cv_header_inttypes_h" = x""yes; then :
10457  cat >>confdefs.h <<_ACEOF
10458#define HAVE_INTTYPES_H 1
10459_ACEOF
10460
10461fi
10462
10463done
10464
10465ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10466if test "x$ac_cv_type_intptr_t" = x""yes; then :
10467
10468cat >>confdefs.h <<_ACEOF
10469#define HAVE_INTPTR_T 1
10470_ACEOF
10471
10472
10473fi
10474
10475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10476$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10477if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then :
10478  $as_echo_n "(cached) " >&6
10479else
10480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10481/* end confdefs.h.  */
10482#include <sys/stat.h>
10483int
10484main ()
10485{
10486struct stat stat; stat.st_flags = 0;
10487  ;
10488  return 0;
10489}
10490_ACEOF
10491if ac_fn_c_try_compile "$LINENO"; then :
10492  e2fsprogs_cv_struct_st_flags=yes
10493else
10494  e2fsprogs_cv_struct_st_flags=no
10495fi
10496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10497fi
10498
10499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10500$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10501if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10502  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10503$as_echo_n "checking whether st_flags field is useful... " >&6; }
10504  if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then :
10505  $as_echo_n "(cached) " >&6
10506else
10507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10508/* end confdefs.h.  */
10509#include <sys/stat.h>
10510int
10511main ()
10512{
10513struct stat stat; stat.st_flags |= UF_IMMUTABLE;
10514  ;
10515  return 0;
10516}
10517_ACEOF
10518if ac_fn_c_try_compile "$LINENO"; then :
10519  e2fsprogs_cv_struct_st_flags_immut=yes
10520else
10521  e2fsprogs_cv_struct_st_flags_immut=no
10522fi
10523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10524fi
10525
10526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
10527$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
10528  if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
10529	  $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
10530
10531  fi
10532fi
10533ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10534	 #include <sys/socket.h>
10535"
10536if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
10537
10538cat >>confdefs.h <<_ACEOF
10539#define HAVE_SA_LEN 1
10540_ACEOF
10541
10542fi
10543
10544if test -n "$BLKID_CMT"; then
10545  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
10546$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
10547if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10548  $as_echo_n "(cached) " >&6
10549else
10550  ac_func_search_save_LIBS=$LIBS
10551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10552/* end confdefs.h.  */
10553
10554/* Override any GCC internal prototype to avoid an error.
10555   Use char because int might match the return type of a GCC
10556   builtin and then its argument prototype would still apply.  */
10557#ifdef __cplusplus
10558extern "C"
10559#endif
10560char blkid_probe_all ();
10561int
10562main ()
10563{
10564return blkid_probe_all ();
10565  ;
10566  return 0;
10567}
10568_ACEOF
10569for ac_lib in '' blkid; do
10570  if test -z "$ac_lib"; then
10571    ac_res="none required"
10572  else
10573    ac_res=-l$ac_lib
10574    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10575  fi
10576  if ac_fn_c_try_link "$LINENO"; then :
10577  ac_cv_search_blkid_probe_all=$ac_res
10578fi
10579rm -f core conftest.err conftest.$ac_objext \
10580    conftest$ac_exeext
10581  if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10582  break
10583fi
10584done
10585if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10586
10587else
10588  ac_cv_search_blkid_probe_all=no
10589fi
10590rm conftest.$ac_ext
10591LIBS=$ac_func_search_save_LIBS
10592fi
10593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
10594$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
10595ac_res=$ac_cv_search_blkid_probe_all
10596if test "$ac_res" != no; then :
10597  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10598
10599fi
10600
10601fi
10602for 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 sync_file_range posix_fadvise fallocate blkid_probe_get_topology
10603do :
10604  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10605ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10606eval as_val=\$$as_ac_var
10607   if test "x$as_val" = x""yes; then :
10608  cat >>confdefs.h <<_ACEOF
10609#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10610_ACEOF
10611
10612fi
10613done
10614
10615SOCKET_LIB=''
10616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10617$as_echo_n "checking for socket in -lsocket... " >&6; }
10618if test "${ac_cv_lib_socket_socket+set}" = set; then :
10619  $as_echo_n "(cached) " >&6
10620else
10621  ac_check_lib_save_LIBS=$LIBS
10622LIBS="-lsocket  $LIBS"
10623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10624/* end confdefs.h.  */
10625
10626/* Override any GCC internal prototype to avoid an error.
10627   Use char because int might match the return type of a GCC
10628   builtin and then its argument prototype would still apply.  */
10629#ifdef __cplusplus
10630extern "C"
10631#endif
10632char socket ();
10633int
10634main ()
10635{
10636return socket ();
10637  ;
10638  return 0;
10639}
10640_ACEOF
10641if ac_fn_c_try_link "$LINENO"; then :
10642  ac_cv_lib_socket_socket=yes
10643else
10644  ac_cv_lib_socket_socket=no
10645fi
10646rm -f core conftest.err conftest.$ac_objext \
10647    conftest$ac_exeext conftest.$ac_ext
10648LIBS=$ac_check_lib_save_LIBS
10649fi
10650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10651$as_echo "$ac_cv_lib_socket_socket" >&6; }
10652if test "x$ac_cv_lib_socket_socket" = x""yes; then :
10653  SOCKET_LIB=-lsocket
10654fi
10655
10656
10657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
10658$as_echo_n "checking for optreset... " >&6; }
10659if test "${ac_cv_have_optreset+set}" = set; then :
10660  $as_echo_n "(cached) " >&6
10661else
10662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10663/* end confdefs.h.  */
10664#include <unistd.h>
10665
10666_ACEOF
10667if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10668  $EGREP "optreset" >/dev/null 2>&1; then :
10669  ac_cv_have_optreset=yes
10670else
10671  ac_cv_have_optreset=no
10672fi
10673rm -f conftest*
10674
10675fi
10676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
10677$as_echo "$ac_cv_have_optreset" >&6; }
10678if test $ac_cv_have_optreset = yes; then
10679  $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
10680
10681fi
10682SEM_INIT_LIB=''
10683ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
10684if test "x$ac_cv_func_sem_init" = x""yes; then :
10685
10686else
10687  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
10688$as_echo_n "checking for sem_init in -lpthread... " >&6; }
10689if test "${ac_cv_lib_pthread_sem_init+set}" = set; then :
10690  $as_echo_n "(cached) " >&6
10691else
10692  ac_check_lib_save_LIBS=$LIBS
10693LIBS="-lpthread  $LIBS"
10694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10695/* end confdefs.h.  */
10696
10697/* Override any GCC internal prototype to avoid an error.
10698   Use char because int might match the return type of a GCC
10699   builtin and then its argument prototype would still apply.  */
10700#ifdef __cplusplus
10701extern "C"
10702#endif
10703char sem_init ();
10704int
10705main ()
10706{
10707return sem_init ();
10708  ;
10709  return 0;
10710}
10711_ACEOF
10712if ac_fn_c_try_link "$LINENO"; then :
10713  ac_cv_lib_pthread_sem_init=yes
10714else
10715  ac_cv_lib_pthread_sem_init=no
10716fi
10717rm -f core conftest.err conftest.$ac_objext \
10718    conftest$ac_exeext conftest.$ac_ext
10719LIBS=$ac_check_lib_save_LIBS
10720fi
10721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
10722$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
10723if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then :
10724  $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
10725
10726  	SEM_INIT_LIB=-lpthread
10727else
10728  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
10729$as_echo_n "checking for sem_init in -lrt... " >&6; }
10730if test "${ac_cv_lib_rt_sem_init+set}" = set; then :
10731  $as_echo_n "(cached) " >&6
10732else
10733  ac_check_lib_save_LIBS=$LIBS
10734LIBS="-lrt  $LIBS"
10735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736/* end confdefs.h.  */
10737
10738/* Override any GCC internal prototype to avoid an error.
10739   Use char because int might match the return type of a GCC
10740   builtin and then its argument prototype would still apply.  */
10741#ifdef __cplusplus
10742extern "C"
10743#endif
10744char sem_init ();
10745int
10746main ()
10747{
10748return sem_init ();
10749  ;
10750  return 0;
10751}
10752_ACEOF
10753if ac_fn_c_try_link "$LINENO"; then :
10754  ac_cv_lib_rt_sem_init=yes
10755else
10756  ac_cv_lib_rt_sem_init=no
10757fi
10758rm -f core conftest.err conftest.$ac_objext \
10759    conftest$ac_exeext conftest.$ac_ext
10760LIBS=$ac_check_lib_save_LIBS
10761fi
10762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
10763$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
10764if test "x$ac_cv_lib_rt_sem_init" = x""yes; then :
10765  $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
10766
10767  	SEM_INIT_LIB=-lrt
10768else
10769  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
10770$as_echo_n "checking for sem_init in -lposix4... " >&6; }
10771if test "${ac_cv_lib_posix4_sem_init+set}" = set; then :
10772  $as_echo_n "(cached) " >&6
10773else
10774  ac_check_lib_save_LIBS=$LIBS
10775LIBS="-lposix4  $LIBS"
10776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777/* end confdefs.h.  */
10778
10779/* Override any GCC internal prototype to avoid an error.
10780   Use char because int might match the return type of a GCC
10781   builtin and then its argument prototype would still apply.  */
10782#ifdef __cplusplus
10783extern "C"
10784#endif
10785char sem_init ();
10786int
10787main ()
10788{
10789return sem_init ();
10790  ;
10791  return 0;
10792}
10793_ACEOF
10794if ac_fn_c_try_link "$LINENO"; then :
10795  ac_cv_lib_posix4_sem_init=yes
10796else
10797  ac_cv_lib_posix4_sem_init=no
10798fi
10799rm -f core conftest.err conftest.$ac_objext \
10800    conftest$ac_exeext conftest.$ac_ext
10801LIBS=$ac_check_lib_save_LIBS
10802fi
10803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
10804$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
10805if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then :
10806  $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
10807
10808  	SEM_INIT_LIB=-lposix4
10809fi
10810
10811fi
10812
10813fi
10814
10815fi
10816
10817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
10818$as_echo_n "checking for unified diff option... " >&6; }
10819if diff -u $0 $0 > /dev/null 2>&1 ; then
10820   UNI_DIFF_OPTS=-u
10821else
10822   UNI_DIFF_OPTS=-c
10823fi
10824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
10825$as_echo "$UNI_DIFF_OPTS" >&6; }
10826
10827case "$host_os" in
10828linux*)
10829	$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
10830
10831	;;
10832esac
10833LINUX_CMT="#"
10834CYGWIN_CMT="#"
10835UNIX_CMT=
10836case "$host_os" in
10837linux*)
10838	LINUX_CMT=
10839	;;
10840cygwin)
10841	CYGWIN_CMT=
10842	UNIX_CMT="#"
10843	;;
10844esac
10845
10846
10847
10848case "$host_os" in
10849linux* | gnu* | k*bsd*-gnu)
10850	if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
10851		root_prefix="";
10852		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
10853$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
10854	fi
10855	;;
10856esac
10857case "$host_os" in
10858linux* | gnu* | k*bsd*-gnu)
10859	if test "$prefix" = NONE ; then
10860		prefix="/usr";
10861		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
10862$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
10863		if test "$mandir" = '${prefix}/man' ; then
10864			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
10865$as_echo "...and mandir defaults to /usr/share/man" >&6; }
10866			mandir=/usr/share/man
10867		fi
10868	fi
10869;;
10870esac
10871if test "$root_prefix" = NONE ; then
10872	if test "$prefix" = NONE ; then
10873		root_prefix="$ac_default_prefix"
10874	else
10875		root_prefix="$prefix"
10876	fi
10877	root_bindir=$bindir
10878	root_sbindir=$sbindir
10879	root_libdir=$libdir
10880	root_sysconfdir=$sysconfdir
10881else
10882	root_bindir='${root_prefix}/bin'
10883	root_sbindir='${root_prefix}/sbin'
10884	root_libdir='${root_prefix}/lib'
10885	root_sysconfdir='${root_prefix}/etc'
10886fi
10887if test "$bindir" != '${exec_prefix}/bin'; then
10888    root_bindir=$bindir
10889    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
10890$as_echo "Setting root_bindir to $root_bindir" >&6; }
10891fi
10892if test "$sbindir" != '${exec_prefix}/sbin'; then
10893    root_sbindir=$sbindir
10894    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
10895$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
10896fi
10897if test "$libdir" != '${exec_prefix}/lib'; then
10898    root_libdir=$libdir
10899    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
10900$as_echo "Setting root_libdir to $root_libdir" >&6; }
10901fi
10902if test "$sysconfdir" != '${prefix}/etc'; then
10903    root_sysconfdir=$sysconfdir
10904    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
10905$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
10906fi
10907
10908
10909
10910
10911
10912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5
10913$as_echo_n "checking whether linker accepts -static... " >&6; }
10914if test "${ac_cv_e2fsprogs_use_static+set}" = set; then :
10915  $as_echo_n "(cached) " >&6
10916else
10917  SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
10918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10919/* end confdefs.h.  */
10920#include <stdio.h>
10921int
10922main ()
10923{
10924fflush(stdout);
10925  ;
10926  return 0;
10927}
10928_ACEOF
10929if ac_fn_c_try_link "$LINENO"; then :
10930  ac_cv_e2fsprogs_use_static=yes
10931else
10932  ac_cv_e2fsprogs_use_static=no
10933fi
10934rm -f core conftest.err conftest.$ac_objext \
10935    conftest$ac_exeext conftest.$ac_ext
10936LDFLAGS=$SAVE_LDFLAGS
10937fi
10938
10939case "$host_os" in
10940solaris2.*)
10941	ac_cv_e2fsprogs_use_static=no
10942;;
10943esac
10944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
10945$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
10946LDFLAG_STATIC=
10947if test $ac_cv_e2fsprogs_use_static = yes; then
10948	LDFLAG_STATIC=-static
10949fi
10950
10951case "$host_os" in
10952darwin*)
10953	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
10954$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
10955	$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
10956
10957	;;
10958esac
10959SS_DIR=`cd ${srcdir}/lib/ss; pwd`
10960ET_DIR=`cd ${srcdir}/lib/et; pwd`
10961
10962
10963if test "$cross_compiling" = yes ; then
10964  DO_TEST_SUITE=
10965else
10966  DO_TEST_SUITE=check
10967fi
10968
10969INTL_FLAGS=
10970if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
10971	INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
10972fi
10973
10974if test $cross_compiling = no; then
10975   BUILD_CFLAGS="$CFLAGS"
10976   BUILD_LDFLAGS="$LDFLAGS"
10977else
10978   BUILD_CFLAGS=
10979   BUILD_LDFLAGS=
10980fi
10981
10982
10983test -d lib || mkdir lib
10984test -d include || mkdir include
10985test -d include/linux || mkdir include/linux
10986test -d include/asm || mkdir include/asm
10987for i in MCONFIG Makefile e2fsprogs.spec \
10988	util/Makefile util/subst.conf util/gen-tarball \
10989	lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
10990	lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
10991	lib/uuid/Makefile lib/uuid/uuid_types.h \
10992	lib/blkid/Makefile lib/blkid/blkid_types.h \
10993	lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
10994	lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
10995	misc/Makefile ext2ed/Makefile e2fsck/Makefile \
10996	debugfs/Makefile tests/Makefile tests/progs/Makefile \
10997	resize/Makefile doc/Makefile intl/Makefile \
10998	intl/libgnuintl.h po/Makefile.in ; do
10999	if test -d `dirname ${srcdir}/$i` ; then
11000		outlist="$outlist $i"
11001	fi
11002done
11003ac_config_files="$ac_config_files $outlist"
11004
11005cat >confcache <<\_ACEOF
11006# This file is a shell script that caches the results of configure
11007# tests run on this system so they can be shared between configure
11008# scripts and configure runs, see configure's option --config-cache.
11009# It is not useful on other systems.  If it contains results you don't
11010# want to keep, you may remove or edit it.
11011#
11012# config.status only pays attention to the cache file if you give it
11013# the --recheck option to rerun configure.
11014#
11015# `ac_cv_env_foo' variables (set or unset) will be overridden when
11016# loading this file, other *unset* `ac_cv_foo' will be assigned the
11017# following values.
11018
11019_ACEOF
11020
11021# The following way of writing the cache mishandles newlines in values,
11022# but we know of no workaround that is simple, portable, and efficient.
11023# So, we kill variables containing newlines.
11024# Ultrix sh set writes to stderr and can't be redirected directly,
11025# and sets the high bit in the cache file unless we assign to the vars.
11026(
11027  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11028    eval ac_val=\$$ac_var
11029    case $ac_val in #(
11030    *${as_nl}*)
11031      case $ac_var in #(
11032      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11033$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11034      esac
11035      case $ac_var in #(
11036      _ | IFS | as_nl) ;; #(
11037      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11038      *) { eval $ac_var=; unset $ac_var;} ;;
11039      esac ;;
11040    esac
11041  done
11042
11043  (set) 2>&1 |
11044    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11045    *${as_nl}ac_space=\ *)
11046      # `set' does not quote correctly, so add quotes: double-quote
11047      # substitution turns \\\\ into \\, and sed turns \\ into \.
11048      sed -n \
11049	"s/'/'\\\\''/g;
11050	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11051      ;; #(
11052    *)
11053      # `set' quotes correctly as required by POSIX, so do not add quotes.
11054      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11055      ;;
11056    esac |
11057    sort
11058) |
11059  sed '
11060     /^ac_cv_env_/b end
11061     t clear
11062     :clear
11063     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11064     t end
11065     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11066     :end' >>confcache
11067if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11068  if test -w "$cache_file"; then
11069    test "x$cache_file" != "x/dev/null" &&
11070      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11071$as_echo "$as_me: updating cache $cache_file" >&6;}
11072    cat confcache >$cache_file
11073  else
11074    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11075$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11076  fi
11077fi
11078rm -f confcache
11079
11080test "x$prefix" = xNONE && prefix=$ac_default_prefix
11081# Let make expand exec_prefix.
11082test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11083
11084# Transform confdefs.h into DEFS.
11085# Protect against shell expansion while executing Makefile rules.
11086# Protect against Makefile macro expansion.
11087#
11088# If the first sed substitution is executed (which looks for macros that
11089# take arguments), then branch to the quote section.  Otherwise,
11090# look for a macro that doesn't take arguments.
11091ac_script='
11092:mline
11093/\\$/{
11094 N
11095 s,\\\n,,
11096 b mline
11097}
11098t clear
11099:clear
11100s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
11101t quote
11102s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
11103t quote
11104b any
11105:quote
11106s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11107s/\[/\\&/g
11108s/\]/\\&/g
11109s/\$/$$/g
11110H
11111:any
11112${
11113	g
11114	s/^\n//
11115	s/\n/ /g
11116	p
11117}
11118'
11119DEFS=`sed -n "$ac_script" confdefs.h`
11120
11121
11122ac_libobjs=
11123ac_ltlibobjs=
11124for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11125  # 1. Remove the extension, and $U if already installed.
11126  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11127  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11128  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11129  #    will be set to the directory where LIBOBJS objects are built.
11130  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11131  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11132done
11133LIBOBJS=$ac_libobjs
11134
11135LTLIBOBJS=$ac_ltlibobjs
11136
11137
11138
11139
11140: ${CONFIG_STATUS=./config.status}
11141ac_write_fail=0
11142ac_clean_files_save=$ac_clean_files
11143ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11144{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11145$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11146as_write_fail=0
11147cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11148#! $SHELL
11149# Generated by $as_me.
11150# Run this file to recreate the current configuration.
11151# Compiler output produced by configure, useful for debugging
11152# configure, is in config.log if it exists.
11153
11154debug=false
11155ac_cs_recheck=false
11156ac_cs_silent=false
11157
11158SHELL=\${CONFIG_SHELL-$SHELL}
11159export SHELL
11160_ASEOF
11161cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11162## -------------------- ##
11163## M4sh Initialization. ##
11164## -------------------- ##
11165
11166# Be more Bourne compatible
11167DUALCASE=1; export DUALCASE # for MKS sh
11168if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11169  emulate sh
11170  NULLCMD=:
11171  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11172  # is contrary to our usage.  Disable this feature.
11173  alias -g '${1+"$@"}'='"$@"'
11174  setopt NO_GLOB_SUBST
11175else
11176  case `(set -o) 2>/dev/null` in #(
11177  *posix*) :
11178    set -o posix ;; #(
11179  *) :
11180     ;;
11181esac
11182fi
11183
11184
11185as_nl='
11186'
11187export as_nl
11188# Printing a long string crashes Solaris 7 /usr/bin/printf.
11189as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11190as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11191as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11192# Prefer a ksh shell builtin over an external printf program on Solaris,
11193# but without wasting forks for bash or zsh.
11194if test -z "$BASH_VERSION$ZSH_VERSION" \
11195    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11196  as_echo='print -r --'
11197  as_echo_n='print -rn --'
11198elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11199  as_echo='printf %s\n'
11200  as_echo_n='printf %s'
11201else
11202  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11203    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11204    as_echo_n='/usr/ucb/echo -n'
11205  else
11206    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11207    as_echo_n_body='eval
11208      arg=$1;
11209      case $arg in #(
11210      *"$as_nl"*)
11211	expr "X$arg" : "X\\(.*\\)$as_nl";
11212	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11213      esac;
11214      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11215    '
11216    export as_echo_n_body
11217    as_echo_n='sh -c $as_echo_n_body as_echo'
11218  fi
11219  export as_echo_body
11220  as_echo='sh -c $as_echo_body as_echo'
11221fi
11222
11223# The user is always right.
11224if test "${PATH_SEPARATOR+set}" != set; then
11225  PATH_SEPARATOR=:
11226  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11227    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11228      PATH_SEPARATOR=';'
11229  }
11230fi
11231
11232
11233# IFS
11234# We need space, tab and new line, in precisely that order.  Quoting is
11235# there to prevent editors from complaining about space-tab.
11236# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11237# splitting by setting IFS to empty value.)
11238IFS=" ""	$as_nl"
11239
11240# Find who we are.  Look in the path if we contain no directory separator.
11241case $0 in #((
11242  *[\\/]* ) as_myself=$0 ;;
11243  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11244for as_dir in $PATH
11245do
11246  IFS=$as_save_IFS
11247  test -z "$as_dir" && as_dir=.
11248    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11249  done
11250IFS=$as_save_IFS
11251
11252     ;;
11253esac
11254# We did not find ourselves, most probably we were run as `sh COMMAND'
11255# in which case we are not to be found in the path.
11256if test "x$as_myself" = x; then
11257  as_myself=$0
11258fi
11259if test ! -f "$as_myself"; then
11260  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11261  exit 1
11262fi
11263
11264# Unset variables that we do not need and which cause bugs (e.g. in
11265# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11266# suppresses any "Segmentation fault" message there.  '((' could
11267# trigger a bug in pdksh 5.2.14.
11268for as_var in BASH_ENV ENV MAIL MAILPATH
11269do eval test x\${$as_var+set} = xset \
11270  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11271done
11272PS1='$ '
11273PS2='> '
11274PS4='+ '
11275
11276# NLS nuisances.
11277LC_ALL=C
11278export LC_ALL
11279LANGUAGE=C
11280export LANGUAGE
11281
11282# CDPATH.
11283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11284
11285
11286# as_fn_error ERROR [LINENO LOG_FD]
11287# ---------------------------------
11288# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11289# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11290# script with status $?, using 1 if that was 0.
11291as_fn_error ()
11292{
11293  as_status=$?; test $as_status -eq 0 && as_status=1
11294  if test "$3"; then
11295    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11296    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11297  fi
11298  $as_echo "$as_me: error: $1" >&2
11299  as_fn_exit $as_status
11300} # as_fn_error
11301
11302
11303# as_fn_set_status STATUS
11304# -----------------------
11305# Set $? to STATUS, without forking.
11306as_fn_set_status ()
11307{
11308  return $1
11309} # as_fn_set_status
11310
11311# as_fn_exit STATUS
11312# -----------------
11313# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11314as_fn_exit ()
11315{
11316  set +e
11317  as_fn_set_status $1
11318  exit $1
11319} # as_fn_exit
11320
11321# as_fn_unset VAR
11322# ---------------
11323# Portably unset VAR.
11324as_fn_unset ()
11325{
11326  { eval $1=; unset $1;}
11327}
11328as_unset=as_fn_unset
11329# as_fn_append VAR VALUE
11330# ----------------------
11331# Append the text in VALUE to the end of the definition contained in VAR. Take
11332# advantage of any shell optimizations that allow amortized linear growth over
11333# repeated appends, instead of the typical quadratic growth present in naive
11334# implementations.
11335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11336  eval 'as_fn_append ()
11337  {
11338    eval $1+=\$2
11339  }'
11340else
11341  as_fn_append ()
11342  {
11343    eval $1=\$$1\$2
11344  }
11345fi # as_fn_append
11346
11347# as_fn_arith ARG...
11348# ------------------
11349# Perform arithmetic evaluation on the ARGs, and store the result in the
11350# global $as_val. Take advantage of shells that can avoid forks. The arguments
11351# must be portable across $(()) and expr.
11352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11353  eval 'as_fn_arith ()
11354  {
11355    as_val=$(( $* ))
11356  }'
11357else
11358  as_fn_arith ()
11359  {
11360    as_val=`expr "$@" || test $? -eq 1`
11361  }
11362fi # as_fn_arith
11363
11364
11365if expr a : '\(a\)' >/dev/null 2>&1 &&
11366   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11367  as_expr=expr
11368else
11369  as_expr=false
11370fi
11371
11372if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11373  as_basename=basename
11374else
11375  as_basename=false
11376fi
11377
11378if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11379  as_dirname=dirname
11380else
11381  as_dirname=false
11382fi
11383
11384as_me=`$as_basename -- "$0" ||
11385$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11386	 X"$0" : 'X\(//\)$' \| \
11387	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11388$as_echo X/"$0" |
11389    sed '/^.*\/\([^/][^/]*\)\/*$/{
11390	    s//\1/
11391	    q
11392	  }
11393	  /^X\/\(\/\/\)$/{
11394	    s//\1/
11395	    q
11396	  }
11397	  /^X\/\(\/\).*/{
11398	    s//\1/
11399	    q
11400	  }
11401	  s/.*/./; q'`
11402
11403# Avoid depending upon Character Ranges.
11404as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11405as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11406as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11407as_cr_digits='0123456789'
11408as_cr_alnum=$as_cr_Letters$as_cr_digits
11409
11410ECHO_C= ECHO_N= ECHO_T=
11411case `echo -n x` in #(((((
11412-n*)
11413  case `echo 'xy\c'` in
11414  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11415  xy)  ECHO_C='\c';;
11416  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11417       ECHO_T='	';;
11418  esac;;
11419*)
11420  ECHO_N='-n';;
11421esac
11422
11423rm -f conf$$ conf$$.exe conf$$.file
11424if test -d conf$$.dir; then
11425  rm -f conf$$.dir/conf$$.file
11426else
11427  rm -f conf$$.dir
11428  mkdir conf$$.dir 2>/dev/null
11429fi
11430if (echo >conf$$.file) 2>/dev/null; then
11431  if ln -s conf$$.file conf$$ 2>/dev/null; then
11432    as_ln_s='ln -s'
11433    # ... but there are two gotchas:
11434    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11435    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11436    # In both cases, we have to default to `cp -p'.
11437    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11438      as_ln_s='cp -p'
11439  elif ln conf$$.file conf$$ 2>/dev/null; then
11440    as_ln_s=ln
11441  else
11442    as_ln_s='cp -p'
11443  fi
11444else
11445  as_ln_s='cp -p'
11446fi
11447rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11448rmdir conf$$.dir 2>/dev/null
11449
11450
11451# as_fn_mkdir_p
11452# -------------
11453# Create "$as_dir" as a directory, including parents if necessary.
11454as_fn_mkdir_p ()
11455{
11456
11457  case $as_dir in #(
11458  -*) as_dir=./$as_dir;;
11459  esac
11460  test -d "$as_dir" || eval $as_mkdir_p || {
11461    as_dirs=
11462    while :; do
11463      case $as_dir in #(
11464      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11465      *) as_qdir=$as_dir;;
11466      esac
11467      as_dirs="'$as_qdir' $as_dirs"
11468      as_dir=`$as_dirname -- "$as_dir" ||
11469$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11470	 X"$as_dir" : 'X\(//\)[^/]' \| \
11471	 X"$as_dir" : 'X\(//\)$' \| \
11472	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11473$as_echo X"$as_dir" |
11474    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11475	    s//\1/
11476	    q
11477	  }
11478	  /^X\(\/\/\)[^/].*/{
11479	    s//\1/
11480	    q
11481	  }
11482	  /^X\(\/\/\)$/{
11483	    s//\1/
11484	    q
11485	  }
11486	  /^X\(\/\).*/{
11487	    s//\1/
11488	    q
11489	  }
11490	  s/.*/./; q'`
11491      test -d "$as_dir" && break
11492    done
11493    test -z "$as_dirs" || eval "mkdir $as_dirs"
11494  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11495
11496
11497} # as_fn_mkdir_p
11498if mkdir -p . 2>/dev/null; then
11499  as_mkdir_p='mkdir -p "$as_dir"'
11500else
11501  test -d ./-p && rmdir ./-p
11502  as_mkdir_p=false
11503fi
11504
11505if test -x / >/dev/null 2>&1; then
11506  as_test_x='test -x'
11507else
11508  if ls -dL / >/dev/null 2>&1; then
11509    as_ls_L_option=L
11510  else
11511    as_ls_L_option=
11512  fi
11513  as_test_x='
11514    eval sh -c '\''
11515      if test -d "$1"; then
11516	test -d "$1/.";
11517      else
11518	case $1 in #(
11519	-*)set "./$1";;
11520	esac;
11521	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11522	???[sx]*):;;*)false;;esac;fi
11523    '\'' sh
11524  '
11525fi
11526as_executable_p=$as_test_x
11527
11528# Sed expression to map a string onto a valid CPP name.
11529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11530
11531# Sed expression to map a string onto a valid variable name.
11532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11533
11534
11535exec 6>&1
11536## ----------------------------------- ##
11537## Main body of $CONFIG_STATUS script. ##
11538## ----------------------------------- ##
11539_ASEOF
11540test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11541
11542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11543# Save the log message, to keep $0 and so on meaningful, and to
11544# report actual input values of CONFIG_FILES etc. instead of their
11545# values after options handling.
11546ac_log="
11547This file was extended by $as_me, which was
11548generated by GNU Autoconf 2.64.  Invocation command line was
11549
11550  CONFIG_FILES    = $CONFIG_FILES
11551  CONFIG_HEADERS  = $CONFIG_HEADERS
11552  CONFIG_LINKS    = $CONFIG_LINKS
11553  CONFIG_COMMANDS = $CONFIG_COMMANDS
11554  $ $0 $@
11555
11556on `(hostname || uname -n) 2>/dev/null | sed 1q`
11557"
11558
11559_ACEOF
11560
11561case $ac_config_files in *"
11562"*) set x $ac_config_files; shift; ac_config_files=$*;;
11563esac
11564
11565
11566
11567cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11568# Files that config.status was made for.
11569config_files="$ac_config_files"
11570config_commands="$ac_config_commands"
11571
11572_ACEOF
11573
11574cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11575ac_cs_usage="\
11576\`$as_me' instantiates files and other configuration actions
11577from templates according to the current configuration.  Unless the files
11578and actions are specified as TAGs, all are instantiated by default.
11579
11580Usage: $0 [OPTION]... [TAG]...
11581
11582  -h, --help       print this help, then exit
11583  -V, --version    print version number and configuration settings, then exit
11584  -q, --quiet, --silent
11585                   do not print progress messages
11586  -d, --debug      don't remove temporary files
11587      --recheck    update $as_me by reconfiguring in the same conditions
11588      --file=FILE[:TEMPLATE]
11589                   instantiate the configuration file FILE
11590
11591Configuration files:
11592$config_files
11593
11594Configuration commands:
11595$config_commands
11596
11597Report bugs to the package provider."
11598
11599_ACEOF
11600cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11601ac_cs_version="\\
11602config.status
11603configured by $0, generated by GNU Autoconf 2.64,
11604  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11605
11606Copyright (C) 2009 Free Software Foundation, Inc.
11607This config.status script is free software; the Free Software Foundation
11608gives unlimited permission to copy, distribute and modify it."
11609
11610ac_pwd='$ac_pwd'
11611srcdir='$srcdir'
11612INSTALL='$INSTALL'
11613AWK='$AWK'
11614test -n "\$AWK" || AWK=awk
11615_ACEOF
11616
11617cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11618# The default lists apply if the user does not specify any file.
11619ac_need_defaults=:
11620while test $# != 0
11621do
11622  case $1 in
11623  --*=*)
11624    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11625    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11626    ac_shift=:
11627    ;;
11628  *)
11629    ac_option=$1
11630    ac_optarg=$2
11631    ac_shift=shift
11632    ;;
11633  esac
11634
11635  case $ac_option in
11636  # Handling of the options.
11637  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11638    ac_cs_recheck=: ;;
11639  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11640    $as_echo "$ac_cs_version"; exit ;;
11641  --debug | --debu | --deb | --de | --d | -d )
11642    debug=: ;;
11643  --file | --fil | --fi | --f )
11644    $ac_shift
11645    case $ac_optarg in
11646    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11647    esac
11648    as_fn_append CONFIG_FILES " '$ac_optarg'"
11649    ac_need_defaults=false;;
11650  --he | --h |  --help | --hel | -h )
11651    $as_echo "$ac_cs_usage"; exit ;;
11652  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11653  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11654    ac_cs_silent=: ;;
11655
11656  # This is an error.
11657  -*) as_fn_error "unrecognized option: \`$1'
11658Try \`$0 --help' for more information." ;;
11659
11660  *) as_fn_append ac_config_targets " $1"
11661     ac_need_defaults=false ;;
11662
11663  esac
11664  shift
11665done
11666
11667ac_configure_extra_args=
11668
11669if $ac_cs_silent; then
11670  exec 6>/dev/null
11671  ac_configure_extra_args="$ac_configure_extra_args --silent"
11672fi
11673
11674_ACEOF
11675cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11676if \$ac_cs_recheck; then
11677  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11678  shift
11679  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11680  CONFIG_SHELL='$SHELL'
11681  export CONFIG_SHELL
11682  exec "\$@"
11683fi
11684
11685_ACEOF
11686cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11687exec 5>>config.log
11688{
11689  echo
11690  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11691## Running $as_me. ##
11692_ASBOX
11693  $as_echo "$ac_log"
11694} >&5
11695
11696_ACEOF
11697cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11698#
11699# INIT-COMMANDS
11700#
11701# Capture the value of obsolete ALL_LINGUAS because we need it to compute
11702    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
11703    # from automake.
11704    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11705    # Capture the value of LINGUAS because we need it to compute CATALOGS.
11706    LINGUAS="${LINGUAS-%UNSET%}"
11707
11708
11709_ACEOF
11710
11711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11712
11713# Handling of arguments.
11714for ac_config_target in $ac_config_targets
11715do
11716  case $ac_config_target in
11717    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11718    "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
11719
11720  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11721  esac
11722done
11723
11724
11725# If the user did not use the arguments to specify the items to instantiate,
11726# then the envvar interface is used.  Set only those that are not.
11727# We use the long form for the default assignment because of an extremely
11728# bizarre bug on SunOS 4.1.3.
11729if $ac_need_defaults; then
11730  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11731  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11732fi
11733
11734# Have a temporary directory for convenience.  Make it in the build tree
11735# simply because there is no reason against having it here, and in addition,
11736# creating and moving files from /tmp can sometimes cause problems.
11737# Hook for its removal unless debugging.
11738# Note that there is a small window in which the directory will not be cleaned:
11739# after its creation but before its name has been assigned to `$tmp'.
11740$debug ||
11741{
11742  tmp=
11743  trap 'exit_status=$?
11744  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11745' 0
11746  trap 'as_fn_exit 1' 1 2 13 15
11747}
11748# Create a (secure) tmp directory for tmp files.
11749
11750{
11751  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11752  test -n "$tmp" && test -d "$tmp"
11753}  ||
11754{
11755  tmp=./conf$$-$RANDOM
11756  (umask 077 && mkdir "$tmp")
11757} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11758
11759# Set up the scripts for CONFIG_FILES section.
11760# No need to generate them if there are no CONFIG_FILES.
11761# This happens for instance with `./config.status config.h'.
11762if test -n "$CONFIG_FILES"; then
11763
11764if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
11765  ac_cs_awk_getline=:
11766  ac_cs_awk_pipe_init=
11767  ac_cs_awk_read_file='
11768      while ((getline aline < (F[key])) > 0)
11769	print(aline)
11770      close(F[key])'
11771  ac_cs_awk_pipe_fini=
11772else
11773  ac_cs_awk_getline=false
11774  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
11775  ac_cs_awk_read_file='
11776      print "|#_!!_#|"
11777      print "cat " F[key] " &&"
11778      '$ac_cs_awk_pipe_init
11779  # The final `:' finishes the AND list.
11780  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
11781fi
11782ac_cr=`echo X | tr X '\015'`
11783# On cygwin, bash can eat \r inside `` if the user requested igncr.
11784# But we know of no other shell where ac_cr would be empty at this
11785# point, so we can use a bashism as a fallback.
11786if test "x$ac_cr" = x; then
11787  eval ac_cr=\$\'\\r\'
11788fi
11789ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11790if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11791  ac_cs_awk_cr='\r'
11792else
11793  ac_cs_awk_cr=$ac_cr
11794fi
11795
11796echo 'BEGIN {' >"$tmp/subs1.awk" &&
11797_ACEOF
11798
11799# Create commands to substitute file output variables.
11800{
11801  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
11802  echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
11803  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
11804  echo "_ACAWK" &&
11805  echo "_ACEOF"
11806} >conf$$files.sh &&
11807. ./conf$$files.sh ||
11808  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11809rm -f conf$$files.sh
11810
11811{
11812  echo "cat >conf$$subs.awk <<_ACEOF" &&
11813  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11814  echo "_ACEOF"
11815} >conf$$subs.sh ||
11816  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11817ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11818ac_delim='%!_!# '
11819for ac_last_try in false false false false false :; do
11820  . ./conf$$subs.sh ||
11821    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11822
11823  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11824  if test $ac_delim_n = $ac_delim_num; then
11825    break
11826  elif $ac_last_try; then
11827    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11828  else
11829    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11830  fi
11831done
11832rm -f conf$$subs.sh
11833
11834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11835cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11836_ACEOF
11837sed -n '
11838h
11839s/^/S["/; s/!.*/"]=/
11840p
11841g
11842s/^[^!]*!//
11843:repl
11844t repl
11845s/'"$ac_delim"'$//
11846t delim
11847:nl
11848h
11849s/\(.\{148\}\).*/\1/
11850t more1
11851s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11852p
11853n
11854b repl
11855:more1
11856s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11857p
11858g
11859s/.\{148\}//
11860t nl
11861:delim
11862h
11863s/\(.\{148\}\).*/\1/
11864t more2
11865s/["\\]/\\&/g; s/^/"/; s/$/"/
11866p
11867b
11868:more2
11869s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11870p
11871g
11872s/.\{148\}//
11873t delim
11874' <conf$$subs.awk | sed '
11875/^[^""]/{
11876  N
11877  s/\n//
11878}
11879' >>$CONFIG_STATUS || ac_write_fail=1
11880rm -f conf$$subs.awk
11881cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11882_ACAWK
11883cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11884  for (key in S) S_is_set[key] = 1
11885  FS = ""
11886  \$ac_cs_awk_pipe_init
11887}
11888{
11889  line = $ 0
11890  nfields = split(line, field, "@")
11891  substed = 0
11892  len = length(field[1])
11893  for (i = 2; i < nfields; i++) {
11894    key = field[i]
11895    keylen = length(key)
11896    if (S_is_set[key]) {
11897      value = S[key]
11898      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11899      len += length(value) + length(field[++i])
11900      substed = 1
11901    } else
11902      len += 1 + keylen
11903  }
11904  if (nfields == 3 && !substed) {
11905    key = field[2]
11906    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
11907      \$ac_cs_awk_read_file
11908      next
11909    }
11910  }
11911  print line
11912}
11913\$ac_cs_awk_pipe_fini
11914_ACAWK
11915_ACEOF
11916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11917if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11918  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11919else
11920  cat
11921fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11922  || as_fn_error "could not setup config files machinery" "$LINENO" 5
11923_ACEOF
11924
11925# VPATH may cause trouble with some makes, so we remove $(srcdir),
11926# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11927# trailing colons and then remove the whole line if VPATH becomes empty
11928# (actually we leave an empty line to preserve line numbers).
11929if test "x$srcdir" = x.; then
11930  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
11931s/:*\$(srcdir):*/:/
11932s/:*\${srcdir}:*/:/
11933s/:*@srcdir@:*/:/
11934s/^\([^=]*=[	 ]*\):*/\1/
11935s/:*$//
11936s/^[^=]*=[	 ]*$//
11937}'
11938fi
11939
11940cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11941fi # test -n "$CONFIG_FILES"
11942
11943
11944eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
11945shift
11946for ac_tag
11947do
11948  case $ac_tag in
11949  :[FHLC]) ac_mode=$ac_tag; continue;;
11950  esac
11951  case $ac_mode$ac_tag in
11952  :[FHL]*:*);;
11953  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
11954  :[FH]-) ac_tag=-:-;;
11955  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11956  esac
11957  ac_save_IFS=$IFS
11958  IFS=:
11959  set x $ac_tag
11960  IFS=$ac_save_IFS
11961  shift
11962  ac_file=$1
11963  shift
11964
11965  case $ac_mode in
11966  :L) ac_source=$1;;
11967  :[FH])
11968    ac_file_inputs=
11969    for ac_f
11970    do
11971      case $ac_f in
11972      -) ac_f="$tmp/stdin";;
11973      *) # Look for the file first in the build tree, then in the source tree
11974	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11975	 # because $ac_f cannot contain `:'.
11976	 test -f "$ac_f" ||
11977	   case $ac_f in
11978	   [\\/$]*) false;;
11979	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11980	   esac ||
11981	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11982      esac
11983      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11984      as_fn_append ac_file_inputs " '$ac_f'"
11985    done
11986
11987    # Let's still pretend it is `configure' which instantiates (i.e., don't
11988    # use $as_me), people would be surprised to read:
11989    #    /* config.h.  Generated by config.status.  */
11990    configure_input='Generated from '`
11991	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11992	`' by configure.'
11993    if test x"$ac_file" != x-; then
11994      configure_input="$ac_file.  $configure_input"
11995      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11996$as_echo "$as_me: creating $ac_file" >&6;}
11997    fi
11998    # Neutralize special characters interpreted by sed in replacement strings.
11999    case $configure_input in #(
12000    *\&* | *\|* | *\\* )
12001       ac_sed_conf_input=`$as_echo "$configure_input" |
12002       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12003    *) ac_sed_conf_input=$configure_input;;
12004    esac
12005
12006    case $ac_tag in
12007    *:-:* | *:-) cat >"$tmp/stdin" \
12008      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12009    esac
12010    ;;
12011  esac
12012
12013  ac_dir=`$as_dirname -- "$ac_file" ||
12014$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12015	 X"$ac_file" : 'X\(//\)[^/]' \| \
12016	 X"$ac_file" : 'X\(//\)$' \| \
12017	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12018$as_echo X"$ac_file" |
12019    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12020	    s//\1/
12021	    q
12022	  }
12023	  /^X\(\/\/\)[^/].*/{
12024	    s//\1/
12025	    q
12026	  }
12027	  /^X\(\/\/\)$/{
12028	    s//\1/
12029	    q
12030	  }
12031	  /^X\(\/\).*/{
12032	    s//\1/
12033	    q
12034	  }
12035	  s/.*/./; q'`
12036  as_dir="$ac_dir"; as_fn_mkdir_p
12037  ac_builddir=.
12038
12039case "$ac_dir" in
12040.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12041*)
12042  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12043  # A ".." for each directory in $ac_dir_suffix.
12044  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12045  case $ac_top_builddir_sub in
12046  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12047  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12048  esac ;;
12049esac
12050ac_abs_top_builddir=$ac_pwd
12051ac_abs_builddir=$ac_pwd$ac_dir_suffix
12052# for backward compatibility:
12053ac_top_builddir=$ac_top_build_prefix
12054
12055case $srcdir in
12056  .)  # We are building in place.
12057    ac_srcdir=.
12058    ac_top_srcdir=$ac_top_builddir_sub
12059    ac_abs_top_srcdir=$ac_pwd ;;
12060  [\\/]* | ?:[\\/]* )  # Absolute name.
12061    ac_srcdir=$srcdir$ac_dir_suffix;
12062    ac_top_srcdir=$srcdir
12063    ac_abs_top_srcdir=$srcdir ;;
12064  *) # Relative name.
12065    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12066    ac_top_srcdir=$ac_top_build_prefix$srcdir
12067    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12068esac
12069ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12070
12071
12072  case $ac_mode in
12073  :F)
12074  #
12075  # CONFIG_FILE
12076  #
12077
12078  case $INSTALL in
12079  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12080  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12081  esac
12082_ACEOF
12083
12084cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12085# If the template does not know about datarootdir, expand it.
12086# FIXME: This hack should be removed a few years after 2.60.
12087ac_datarootdir_hack=; ac_datarootdir_seen=
12088ac_sed_dataroot='
12089/datarootdir/ {
12090  p
12091  q
12092}
12093/@datadir@/p
12094/@docdir@/p
12095/@infodir@/p
12096/@localedir@/p
12097/@mandir@/p'
12098case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12099*datarootdir*) ac_datarootdir_seen=yes;;
12100*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12101  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12102$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12103_ACEOF
12104cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12105  ac_datarootdir_hack='
12106  s&@datadir@&$datadir&g
12107  s&@docdir@&$docdir&g
12108  s&@infodir@&$infodir&g
12109  s&@localedir@&$localedir&g
12110  s&@mandir@&$mandir&g
12111  s&\\\${datarootdir}&$datarootdir&g' ;;
12112esac
12113_ACEOF
12114
12115# Neutralize VPATH when `$srcdir' = `.'.
12116# Shell code in configure.ac might set extrasub.
12117# FIXME: do we really want to maintain this feature?
12118cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12119ac_sed_extra="$ac_vpsub
12120$extrasub
12121_ACEOF
12122cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12123:t
12124/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12125s|@configure_input@|$ac_sed_conf_input|;t t
12126s&@top_builddir@&$ac_top_builddir_sub&;t t
12127s&@top_build_prefix@&$ac_top_build_prefix&;t t
12128s&@srcdir@&$ac_srcdir&;t t
12129s&@abs_srcdir@&$ac_abs_srcdir&;t t
12130s&@top_srcdir@&$ac_top_srcdir&;t t
12131s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12132s&@builddir@&$ac_builddir&;t t
12133s&@abs_builddir@&$ac_abs_builddir&;t t
12134s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12135s&@INSTALL@&$ac_INSTALL&;t t
12136$ac_datarootdir_hack
12137"
12138eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12139if $ac_cs_awk_getline; then
12140  $AWK -f "$tmp/subs.awk"
12141else
12142  $AWK -f "$tmp/subs.awk" | $SHELL
12143fi >$tmp/out \
12144  || as_fn_error "could not create $ac_file" "$LINENO" 5
12145
12146test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12147  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12148  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12149  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12150which seems to be undefined.  Please make sure it is defined." >&5
12151$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12152which seems to be undefined.  Please make sure it is defined." >&2;}
12153
12154  rm -f "$tmp/stdin"
12155  case $ac_file in
12156  -) cat "$tmp/out" && rm -f "$tmp/out";;
12157  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12158  esac \
12159  || as_fn_error "could not create $ac_file" "$LINENO" 5
12160 ;;
12161
12162
12163  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12164$as_echo "$as_me: executing $ac_file commands" >&6;}
12165 ;;
12166  esac
12167
12168
12169  case $ac_file$ac_mode in
12170    "default-1":C)
12171    for ac_file in $CONFIG_FILES; do
12172      # Support "outfile[:infile[:infile...]]"
12173      case "$ac_file" in
12174        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12175      esac
12176      # PO directories have a Makefile.in generated from Makefile.in.in.
12177      case "$ac_file" in */Makefile.in)
12178        # Adjust a relative srcdir.
12179        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12180        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12181        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12182        # In autoconf-2.13 it is called $ac_given_srcdir.
12183        # In autoconf-2.50 it is called $srcdir.
12184        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12185        case "$ac_given_srcdir" in
12186          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12187          /*) top_srcdir="$ac_given_srcdir" ;;
12188          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
12189        esac
12190        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12191          rm -f "$ac_dir/POTFILES"
12192          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12193          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12194          POMAKEFILEDEPS="POTFILES.in"
12195          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12196          # on $ac_dir but don't depend on user-specified configuration
12197          # parameters.
12198          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12199            # The LINGUAS file contains the set of available languages.
12200            if test -n "$OBSOLETE_ALL_LINGUAS"; then
12201              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12202            fi
12203            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12204            # Hide the ALL_LINGUAS assigment from automake.
12205            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12206            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12207          else
12208            # The set of available languages was given in configure.in.
12209            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12210          fi
12211          # Compute POFILES
12212          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12213          # Compute UPDATEPOFILES
12214          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12215          # Compute DUMMYPOFILES
12216          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12217          # Compute GMOFILES
12218          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12219          case "$ac_given_srcdir" in
12220            .) srcdirpre= ;;
12221            *) srcdirpre='$(srcdir)/' ;;
12222          esac
12223          POFILES=
12224          UPDATEPOFILES=
12225          DUMMYPOFILES=
12226          GMOFILES=
12227          for lang in $ALL_LINGUAS; do
12228            POFILES="$POFILES $srcdirpre$lang.po"
12229            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12230            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12231            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12232          done
12233          # CATALOGS depends on both $ac_dir and the user's LINGUAS
12234          # environment variable.
12235          INST_LINGUAS=
12236          if test -n "$ALL_LINGUAS"; then
12237            for presentlang in $ALL_LINGUAS; do
12238              useit=no
12239              if test "%UNSET%" != "$LINGUAS"; then
12240                desiredlanguages="$LINGUAS"
12241              else
12242                desiredlanguages="$ALL_LINGUAS"
12243              fi
12244              for desiredlang in $desiredlanguages; do
12245                # Use the presentlang catalog if desiredlang is
12246                #   a. equal to presentlang, or
12247                #   b. a variant of presentlang (because in this case,
12248                #      presentlang can be used as a fallback for messages
12249                #      which are not translated in the desiredlang catalog).
12250                case "$desiredlang" in
12251                  "$presentlang"*) useit=yes;;
12252                esac
12253              done
12254              if test $useit = yes; then
12255                INST_LINGUAS="$INST_LINGUAS $presentlang"
12256              fi
12257            done
12258          fi
12259          CATALOGS=
12260          if test -n "$INST_LINGUAS"; then
12261            for lang in $INST_LINGUAS; do
12262              CATALOGS="$CATALOGS $lang.gmo"
12263            done
12264          fi
12265          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12266          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"
12267          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12268            if test -f "$f"; then
12269              case "$f" in
12270                *.orig | *.bak | *~) ;;
12271                *) cat "$f" >> "$ac_dir/Makefile" ;;
12272              esac
12273            fi
12274          done
12275        fi
12276        ;;
12277      esac
12278    done ;;
12279
12280  esac
12281done # for ac_tag
12282
12283
12284as_fn_exit 0
12285_ACEOF
12286ac_clean_files=$ac_clean_files_save
12287
12288test $ac_write_fail = 0 ||
12289  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12290
12291
12292# configure is writing to config.log, and then calls config.status.
12293# config.status does its own redirection, appending to config.log.
12294# Unfortunately, on DOS this fails, as config.log is still kept open
12295# by configure, so config.status won't be able to write to it; its
12296# output is simply discarded.  So we exec the FD to /dev/null,
12297# effectively closing config.log, so it can be properly (re)opened and
12298# appended to by config.status.  When coming back to configure, we
12299# need to make the FD available again.
12300if test "$no_create" != yes; then
12301  ac_cs_success=:
12302  ac_config_status_args=
12303  test "$silent" = yes &&
12304    ac_config_status_args="$ac_config_status_args --quiet"
12305  exec 5>/dev/null
12306  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12307  exec 5>>config.log
12308  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12309  # would make configure fail if this is the last instruction.
12310  $ac_cs_success || as_fn_exit $?
12311fi
12312if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12313  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12314$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12315fi
12316
12317if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
12318