1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
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.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585ac_unique_file="version.h"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif
592#ifdef HAVE_SYS_STAT_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600#  include <stdlib.h>
601# endif
602#endif
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605#  include <memory.h>
606# endif
607# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif
612#ifdef HAVE_INTTYPES_H
613# include <inttypes.h>
614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
619# include <unistd.h>
620#endif"
621
622gt_needs=
623ac_subst_vars='LTLIBOBJS
624LIBOBJS
625OS_IO_FILE
626systemd_system_unit_dir
627have_systemd
628systemd_LIBS
629systemd_CFLAGS
630crond_dir
631have_crond
632pkg_udev_rules_dir
633have_udev
634udev_LIBS
635udev_CFLAGS
636LDFLAGS_SHLIB
637CFLAGS_STLIB
638CFLAGS_SHLIB
639BUILD_LDFLAGS
640BUILD_CFLAGS
641INCLUDES
642DO_TEST_SUITE
643LDFLAGS_STATIC
644root_sysconfdir
645root_libdir
646root_sbindir
647root_bindir
648root_prefix
649E2SCRUB_CMT
650UNIX_CMT
651CYGWIN_CMT
652LINUX_CMT
653threadsan_ldflags
654threadsan_cflags
655have_threadsan
656addrsan_ldflags
657addrsan_cflags
658have_addrsan
659ubsan_ldflags
660ubsan_cflags
661have_ubsan
662lto_ldflags
663lto_cflags
664have_lto
665gcc_ranlib
666gcc_ar
667UNI_DIFF_OPTS
668SEM_INIT_LIB
669FUSE_CMT
670FUSE_LIB
671CLOCK_GETTIME_LIB
672MAGIC_LIB
673SOCKET_LIB
674SIZEOF_TIME_T
675SIZEOF_OFF_T
676SIZEOF_LONG_LONG
677SIZEOF_LONG
678SIZEOF_INT
679SIZEOF_SHORT
680DD
681BUILD_CC
682MAKEINFO
683STRIP
684RANLIB
685AR
686LDCONFIG
687PERL
688AWK
689CHMOD
690RM
691CP
692MV
693LN_S
694mkdir_p
695LN
696ifNotGNUmake
697ifGNUmake
698BINARY_TYPE
699POSUB
700LTLIBINTL
701LIBINTL
702INTLLIBS
703LTLIBICONV
704LIBICONV
705INTL_MACOSX_LIBS
706XGETTEXT_EXTRA_OPTIONS
707MSGMERGE_FOR_MSGFMT_OPTION
708MSGMERGE
709XGETTEXT_015
710XGETTEXT
711GMSGFMT_015
712GMSGFMT
713MSGFMT
714GETTEXT_MACRO_VERSION
715USE_NLS
716MKDIR_P
717INSTALL_DATA
718INSTALL_SCRIPT
719INSTALL_PROGRAM
720SET_MAKE
721VERSION
722PACKAGE
723GETTEXT_PACKAGE
724TDB_MAN_COMMENT
725TDB_CMT
726UUIDD_CMT
727PTHREAD_CFLAGS
728PTHREAD_LIBS
729PTHREAD_CC
730ax_pthread_config
731SED
732E2INITRD_MAN
733E2INITRD_PROG
734FSCK_MAN
735FSCK_PROG
736DEFRAG_CMT
737RESIZER_CMT
738IMAGER_CMT
739DEBUGFS_CMT
740SUBSET_CMT
741ALL_CMT
742BLKID_CMT
743DEPPROFILED_LIBBLKID
744PROFILED_LIBBLKID
745DEPSTATIC_LIBBLKID
746STATIC_LIBBLKID
747DEPLIBBLKID
748LIBBLKID
749UUID_CMT
750DEPPROFILED_LIBUUID
751PROFILED_LIBUUID
752DEPSTATIC_LIBUUID
753STATIC_LIBUUID
754DEPLIBUUID
755LIBUUID
756PKG_CONFIG_LIBDIR
757PKG_CONFIG_PATH
758PKG_CONFIG
759DEV_FEATURES_CMT
760TEST_IO_CMT
761PRIVATE_LIBS_CMT
762LDFLAG_DYNAMIC
763PROFILED_LIB_EXT
764STATIC_LIB_EXT
765LIB_EXT
766PROFILE_CMT
767BSDLIB_CMT
768ELF_CMT
769Q
770ES
771E
772LINK_BUILD_FLAGS
773SYMLINK_RELATIVE
774LINK_INSTALL_FLAGS
775MAINTAINER_CMT
776EGREP
777GREP
778CPP
779RDYNAMIC
780DLOPEN_LIB
781OBJEXT
782EXEEXT
783ac_ct_CC
784CPPFLAGS
785LDFLAGS
786CFLAGS
787CC
788host_os
789host_vendor
790host_cpu
791host
792build_os
793build_vendor
794build_cpu
795build
796E2FSPROGS_DATE
797E2FSPROGS_PKGVER
798E2FSPROGS_VERSION
799E2FSPROGS_DAY
800E2FSPROGS_MONTH
801E2FSPROGS_YEAR
802target_alias
803host_alias
804build_alias
805LIBS
806ECHO_T
807ECHO_N
808ECHO_C
809DEFS
810mandir
811localedir
812libdir
813psdir
814pdfdir
815dvidir
816htmldir
817infodir
818docdir
819oldincludedir
820includedir
821runstatedir
822localstatedir
823sharedstatedir
824sysconfdir
825datadir
826datarootdir
827libexecdir
828sbindir
829bindir
830program_transform_name
831prefix
832exec_prefix
833PACKAGE_URL
834PACKAGE_BUGREPORT
835PACKAGE_STRING
836PACKAGE_VERSION
837PACKAGE_TARNAME
838PACKAGE_NAME
839PATH_SEPARATOR
840SHELL'
841ac_subst_files='MCONFIG
842MAKEFILE_ELF
843MAKEFILE_BSDLIB
844MAKEFILE_PROFILE
845MAKEFILE_LIBRARY
846ASM_TYPES_HEADER
847PUBLIC_CONFIG_HEADER'
848ac_user_opts='
849enable_option_checking
850with_diet_libc
851with_cc
852with_ccopts
853with_ldopts
854with_root_prefix
855enable_maintainer_mode
856enable_symlink_install
857enable_relative_symlinks
858enable_symlink_relative_symlinks
859enable_symlink_build
860enable_verbose_makecmds
861enable_elf_shlibs
862enable_bsd_shlibs
863enable_profile
864enable_gcov
865enable_hardening
866enable_jbd_debug
867enable_blkid_debug
868enable_testio_debug
869enable_developer_features
870enable_libuuid
871enable_libblkid
872enable_subset
873enable_backtrace
874enable_debugfs
875enable_imager
876enable_resizer
877enable_defrag
878enable_fsck
879enable_e2initrd_helper
880enable_tls
881with_pthread
882enable_uuidd
883enable_mmp
884enable_tdb
885enable_bmap_stats
886enable_bmap_stats_ops
887enable_nls
888with_gnu_ld
889enable_rpath
890with_libiconv_prefix
891with_libintl_prefix
892enable_fuse2fs
893enable_lto
894enable_ubsan
895enable_addrsan
896enable_threadsan
897with_multiarch
898with_udev_rules_dir
899with_crond_dir
900with_systemd_unit_dir
901'
902      ac_precious_vars='build_alias
903host_alias
904target_alias
905CC
906CFLAGS
907LDFLAGS
908LIBS
909CPPFLAGS
910CPP
911PKG_CONFIG
912PKG_CONFIG_PATH
913PKG_CONFIG_LIBDIR
914udev_CFLAGS
915udev_LIBS
916systemd_CFLAGS
917systemd_LIBS'
918
919
920# Initialize some variables set by options.
921ac_init_help=
922ac_init_version=false
923ac_unrecognized_opts=
924ac_unrecognized_sep=
925# The variables have the same names as the options, with
926# dashes changed to underlines.
927cache_file=/dev/null
928exec_prefix=NONE
929no_create=
930no_recursion=
931prefix=NONE
932program_prefix=NONE
933program_suffix=NONE
934program_transform_name=s,x,x,
935silent=
936site=
937srcdir=
938verbose=
939x_includes=NONE
940x_libraries=NONE
941
942# Installation directory options.
943# These are left unexpanded so users can "make install exec_prefix=/foo"
944# and all the variables that are supposed to be based on exec_prefix
945# by default will actually change.
946# Use braces instead of parens because sh, perl, etc. also accept them.
947# (The list follows the same order as the GNU Coding Standards.)
948bindir='${exec_prefix}/bin'
949sbindir='${exec_prefix}/sbin'
950libexecdir='${exec_prefix}/libexec'
951datarootdir='${prefix}/share'
952datadir='${datarootdir}'
953sysconfdir='${prefix}/etc'
954sharedstatedir='${prefix}/com'
955localstatedir='${prefix}/var'
956runstatedir='${localstatedir}/run'
957includedir='${prefix}/include'
958oldincludedir='/usr/include'
959docdir='${datarootdir}/doc/${PACKAGE}'
960infodir='${datarootdir}/info'
961htmldir='${docdir}'
962dvidir='${docdir}'
963pdfdir='${docdir}'
964psdir='${docdir}'
965libdir='${exec_prefix}/lib'
966localedir='${datarootdir}/locale'
967mandir='${datarootdir}/man'
968
969ac_prev=
970ac_dashdash=
971for ac_option
972do
973  # If the previous option needs an argument, assign it.
974  if test -n "$ac_prev"; then
975    eval $ac_prev=\$ac_option
976    ac_prev=
977    continue
978  fi
979
980  case $ac_option in
981  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
982  *=)   ac_optarg= ;;
983  *)    ac_optarg=yes ;;
984  esac
985
986  # Accept the important Cygnus configure options, so we can diagnose typos.
987
988  case $ac_dashdash$ac_option in
989  --)
990    ac_dashdash=yes ;;
991
992  -bindir | --bindir | --bindi | --bind | --bin | --bi)
993    ac_prev=bindir ;;
994  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
995    bindir=$ac_optarg ;;
996
997  -build | --build | --buil | --bui | --bu)
998    ac_prev=build_alias ;;
999  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1000    build_alias=$ac_optarg ;;
1001
1002  -cache-file | --cache-file | --cache-fil | --cache-fi \
1003  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1004    ac_prev=cache_file ;;
1005  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1006  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1007    cache_file=$ac_optarg ;;
1008
1009  --config-cache | -C)
1010    cache_file=config.cache ;;
1011
1012  -datadir | --datadir | --datadi | --datad)
1013    ac_prev=datadir ;;
1014  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1015    datadir=$ac_optarg ;;
1016
1017  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1018  | --dataroo | --dataro | --datar)
1019    ac_prev=datarootdir ;;
1020  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1021  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1022    datarootdir=$ac_optarg ;;
1023
1024  -disable-* | --disable-*)
1025    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1026    # Reject names that are not valid shell variable names.
1027    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028      as_fn_error $? "invalid feature name: $ac_useropt"
1029    ac_useropt_orig=$ac_useropt
1030    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031    case $ac_user_opts in
1032      *"
1033"enable_$ac_useropt"
1034"*) ;;
1035      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1036	 ac_unrecognized_sep=', ';;
1037    esac
1038    eval enable_$ac_useropt=no ;;
1039
1040  -docdir | --docdir | --docdi | --doc | --do)
1041    ac_prev=docdir ;;
1042  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1043    docdir=$ac_optarg ;;
1044
1045  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1046    ac_prev=dvidir ;;
1047  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1048    dvidir=$ac_optarg ;;
1049
1050  -enable-* | --enable-*)
1051    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1052    # Reject names that are not valid shell variable names.
1053    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054      as_fn_error $? "invalid feature name: $ac_useropt"
1055    ac_useropt_orig=$ac_useropt
1056    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057    case $ac_user_opts in
1058      *"
1059"enable_$ac_useropt"
1060"*) ;;
1061      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1062	 ac_unrecognized_sep=', ';;
1063    esac
1064    eval enable_$ac_useropt=\$ac_optarg ;;
1065
1066  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1067  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1068  | --exec | --exe | --ex)
1069    ac_prev=exec_prefix ;;
1070  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1071  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1072  | --exec=* | --exe=* | --ex=*)
1073    exec_prefix=$ac_optarg ;;
1074
1075  -gas | --gas | --ga | --g)
1076    # Obsolete; use --with-gas.
1077    with_gas=yes ;;
1078
1079  -help | --help | --hel | --he | -h)
1080    ac_init_help=long ;;
1081  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1082    ac_init_help=recursive ;;
1083  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1084    ac_init_help=short ;;
1085
1086  -host | --host | --hos | --ho)
1087    ac_prev=host_alias ;;
1088  -host=* | --host=* | --hos=* | --ho=*)
1089    host_alias=$ac_optarg ;;
1090
1091  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1092    ac_prev=htmldir ;;
1093  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1094  | --ht=*)
1095    htmldir=$ac_optarg ;;
1096
1097  -includedir | --includedir | --includedi | --included | --include \
1098  | --includ | --inclu | --incl | --inc)
1099    ac_prev=includedir ;;
1100  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1101  | --includ=* | --inclu=* | --incl=* | --inc=*)
1102    includedir=$ac_optarg ;;
1103
1104  -infodir | --infodir | --infodi | --infod | --info | --inf)
1105    ac_prev=infodir ;;
1106  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1107    infodir=$ac_optarg ;;
1108
1109  -libdir | --libdir | --libdi | --libd)
1110    ac_prev=libdir ;;
1111  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1112    libdir=$ac_optarg ;;
1113
1114  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1115  | --libexe | --libex | --libe)
1116    ac_prev=libexecdir ;;
1117  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1118  | --libexe=* | --libex=* | --libe=*)
1119    libexecdir=$ac_optarg ;;
1120
1121  -localedir | --localedir | --localedi | --localed | --locale)
1122    ac_prev=localedir ;;
1123  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1124    localedir=$ac_optarg ;;
1125
1126  -localstatedir | --localstatedir | --localstatedi | --localstated \
1127  | --localstate | --localstat | --localsta | --localst | --locals)
1128    ac_prev=localstatedir ;;
1129  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1130  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1131    localstatedir=$ac_optarg ;;
1132
1133  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1134    ac_prev=mandir ;;
1135  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1136    mandir=$ac_optarg ;;
1137
1138  -nfp | --nfp | --nf)
1139    # Obsolete; use --without-fp.
1140    with_fp=no ;;
1141
1142  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1143  | --no-cr | --no-c | -n)
1144    no_create=yes ;;
1145
1146  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1147  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1148    no_recursion=yes ;;
1149
1150  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1151  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1152  | --oldin | --oldi | --old | --ol | --o)
1153    ac_prev=oldincludedir ;;
1154  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1155  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1156  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1157    oldincludedir=$ac_optarg ;;
1158
1159  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1160    ac_prev=prefix ;;
1161  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1162    prefix=$ac_optarg ;;
1163
1164  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1165  | --program-pre | --program-pr | --program-p)
1166    ac_prev=program_prefix ;;
1167  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1168  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1169    program_prefix=$ac_optarg ;;
1170
1171  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1172  | --program-suf | --program-su | --program-s)
1173    ac_prev=program_suffix ;;
1174  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1175  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1176    program_suffix=$ac_optarg ;;
1177
1178  -program-transform-name | --program-transform-name \
1179  | --program-transform-nam | --program-transform-na \
1180  | --program-transform-n | --program-transform- \
1181  | --program-transform | --program-transfor \
1182  | --program-transfo | --program-transf \
1183  | --program-trans | --program-tran \
1184  | --progr-tra | --program-tr | --program-t)
1185    ac_prev=program_transform_name ;;
1186  -program-transform-name=* | --program-transform-name=* \
1187  | --program-transform-nam=* | --program-transform-na=* \
1188  | --program-transform-n=* | --program-transform-=* \
1189  | --program-transform=* | --program-transfor=* \
1190  | --program-transfo=* | --program-transf=* \
1191  | --program-trans=* | --program-tran=* \
1192  | --progr-tra=* | --program-tr=* | --program-t=*)
1193    program_transform_name=$ac_optarg ;;
1194
1195  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1196    ac_prev=pdfdir ;;
1197  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1198    pdfdir=$ac_optarg ;;
1199
1200  -psdir | --psdir | --psdi | --psd | --ps)
1201    ac_prev=psdir ;;
1202  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1203    psdir=$ac_optarg ;;
1204
1205  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1206  | -silent | --silent | --silen | --sile | --sil)
1207    silent=yes ;;
1208
1209  -runstatedir | --runstatedir | --runstatedi | --runstated \
1210  | --runstate | --runstat | --runsta | --runst | --runs \
1211  | --run | --ru | --r)
1212    ac_prev=runstatedir ;;
1213  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1214  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1215  | --run=* | --ru=* | --r=*)
1216    runstatedir=$ac_optarg ;;
1217
1218  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1219    ac_prev=sbindir ;;
1220  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1221  | --sbi=* | --sb=*)
1222    sbindir=$ac_optarg ;;
1223
1224  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1225  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1226  | --sharedst | --shareds | --shared | --share | --shar \
1227  | --sha | --sh)
1228    ac_prev=sharedstatedir ;;
1229  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1230  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1231  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1232  | --sha=* | --sh=*)
1233    sharedstatedir=$ac_optarg ;;
1234
1235  -site | --site | --sit)
1236    ac_prev=site ;;
1237  -site=* | --site=* | --sit=*)
1238    site=$ac_optarg ;;
1239
1240  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1241    ac_prev=srcdir ;;
1242  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1243    srcdir=$ac_optarg ;;
1244
1245  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1246  | --syscon | --sysco | --sysc | --sys | --sy)
1247    ac_prev=sysconfdir ;;
1248  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1249  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1250    sysconfdir=$ac_optarg ;;
1251
1252  -target | --target | --targe | --targ | --tar | --ta | --t)
1253    ac_prev=target_alias ;;
1254  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1255    target_alias=$ac_optarg ;;
1256
1257  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1258    verbose=yes ;;
1259
1260  -version | --version | --versio | --versi | --vers | -V)
1261    ac_init_version=: ;;
1262
1263  -with-* | --with-*)
1264    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1265    # Reject names that are not valid shell variable names.
1266    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267      as_fn_error $? "invalid package name: $ac_useropt"
1268    ac_useropt_orig=$ac_useropt
1269    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270    case $ac_user_opts in
1271      *"
1272"with_$ac_useropt"
1273"*) ;;
1274      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1275	 ac_unrecognized_sep=', ';;
1276    esac
1277    eval with_$ac_useropt=\$ac_optarg ;;
1278
1279  -without-* | --without-*)
1280    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1281    # Reject names that are not valid shell variable names.
1282    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283      as_fn_error $? "invalid package name: $ac_useropt"
1284    ac_useropt_orig=$ac_useropt
1285    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286    case $ac_user_opts in
1287      *"
1288"with_$ac_useropt"
1289"*) ;;
1290      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1291	 ac_unrecognized_sep=', ';;
1292    esac
1293    eval with_$ac_useropt=no ;;
1294
1295  --x)
1296    # Obsolete; use --with-x.
1297    with_x=yes ;;
1298
1299  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300  | --x-incl | --x-inc | --x-in | --x-i)
1301    ac_prev=x_includes ;;
1302  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304    x_includes=$ac_optarg ;;
1305
1306  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308    ac_prev=x_libraries ;;
1309  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311    x_libraries=$ac_optarg ;;
1312
1313  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1314Try \`$0 --help' for more information"
1315    ;;
1316
1317  *=*)
1318    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1319    # Reject names that are not valid shell variable names.
1320    case $ac_envvar in #(
1321      '' | [0-9]* | *[!_$as_cr_alnum]* )
1322      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1323    esac
1324    eval $ac_envvar=\$ac_optarg
1325    export $ac_envvar ;;
1326
1327  *)
1328    # FIXME: should be removed in autoconf 3.0.
1329    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1333    ;;
1334
1335  esac
1336done
1337
1338if test -n "$ac_prev"; then
1339  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1340  as_fn_error $? "missing argument to $ac_option"
1341fi
1342
1343if test -n "$ac_unrecognized_opts"; then
1344  case $enable_option_checking in
1345    no) ;;
1346    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1347    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1348  esac
1349fi
1350
1351# Check all directory arguments for consistency.
1352for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1353		datadir sysconfdir sharedstatedir localstatedir includedir \
1354		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1355		libdir localedir mandir runstatedir
1356do
1357  eval ac_val=\$$ac_var
1358  # Remove trailing slashes.
1359  case $ac_val in
1360    */ )
1361      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1362      eval $ac_var=\$ac_val;;
1363  esac
1364  # Be sure to have absolute directory names.
1365  case $ac_val in
1366    [\\/$]* | ?:[\\/]* )  continue;;
1367    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1368  esac
1369  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1370done
1371
1372# There might be people who depend on the old broken behavior: `$host'
1373# used to hold the argument of --host etc.
1374# FIXME: To remove some day.
1375build=$build_alias
1376host=$host_alias
1377target=$target_alias
1378
1379# FIXME: To remove some day.
1380if test "x$host_alias" != x; then
1381  if test "x$build_alias" = x; then
1382    cross_compiling=maybe
1383  elif test "x$build_alias" != "x$host_alias"; then
1384    cross_compiling=yes
1385  fi
1386fi
1387
1388ac_tool_prefix=
1389test -n "$host_alias" && ac_tool_prefix=$host_alias-
1390
1391test "$silent" = yes && exec 6>/dev/null
1392
1393
1394ac_pwd=`pwd` && test -n "$ac_pwd" &&
1395ac_ls_di=`ls -di .` &&
1396ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1397  as_fn_error $? "working directory cannot be determined"
1398test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1399  as_fn_error $? "pwd does not report name of working directory"
1400
1401
1402# Find the source files, if location was not specified.
1403if test -z "$srcdir"; then
1404  ac_srcdir_defaulted=yes
1405  # Try the directory containing this script, then the parent directory.
1406  ac_confdir=`$as_dirname -- "$as_myself" ||
1407$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1408	 X"$as_myself" : 'X\(//\)[^/]' \| \
1409	 X"$as_myself" : 'X\(//\)$' \| \
1410	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1411$as_echo X"$as_myself" |
1412    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1413	    s//\1/
1414	    q
1415	  }
1416	  /^X\(\/\/\)[^/].*/{
1417	    s//\1/
1418	    q
1419	  }
1420	  /^X\(\/\/\)$/{
1421	    s//\1/
1422	    q
1423	  }
1424	  /^X\(\/\).*/{
1425	    s//\1/
1426	    q
1427	  }
1428	  s/.*/./; q'`
1429  srcdir=$ac_confdir
1430  if test ! -r "$srcdir/$ac_unique_file"; then
1431    srcdir=..
1432  fi
1433else
1434  ac_srcdir_defaulted=no
1435fi
1436if test ! -r "$srcdir/$ac_unique_file"; then
1437  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1438  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1439fi
1440ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1441ac_abs_confdir=`(
1442	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1443	pwd)`
1444# When building in place, set srcdir=.
1445if test "$ac_abs_confdir" = "$ac_pwd"; then
1446  srcdir=.
1447fi
1448# Remove unnecessary trailing slashes from srcdir.
1449# Double slashes in file names in object file debugging info
1450# mess up M-x gdb in Emacs.
1451case $srcdir in
1452*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1453esac
1454for ac_var in $ac_precious_vars; do
1455  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1456  eval ac_env_${ac_var}_value=\$${ac_var}
1457  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1458  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1459done
1460
1461#
1462# Report the --help message.
1463#
1464if test "$ac_init_help" = "long"; then
1465  # Omit some internal or obsolete options to make the list less imposing.
1466  # This message is too long to be a string in the A/UX 3.1 sh.
1467  cat <<_ACEOF
1468\`configure' configures this package to adapt to many kinds of systems.
1469
1470Usage: $0 [OPTION]... [VAR=VALUE]...
1471
1472To assign environment variables (e.g., CC, CFLAGS...), specify them as
1473VAR=VALUE.  See below for descriptions of some of the useful variables.
1474
1475Defaults for the options are specified in brackets.
1476
1477Configuration:
1478  -h, --help              display this help and exit
1479      --help=short        display options specific to this package
1480      --help=recursive    display the short help of all the included packages
1481  -V, --version           display version information and exit
1482  -q, --quiet, --silent   do not print \`checking ...' messages
1483      --cache-file=FILE   cache test results in FILE [disabled]
1484  -C, --config-cache      alias for \`--cache-file=config.cache'
1485  -n, --no-create         do not create output files
1486      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1487
1488Installation directories:
1489  --prefix=PREFIX         install architecture-independent files in PREFIX
1490                          [$ac_default_prefix]
1491  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1492                          [PREFIX]
1493
1494By default, \`make install' will install all the files in
1495\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1496an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1497for instance \`--prefix=\$HOME'.
1498
1499For better control, use the options below.
1500
1501Fine tuning of the installation directories:
1502  --bindir=DIR            user executables [EPREFIX/bin]
1503  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1504  --libexecdir=DIR        program executables [EPREFIX/libexec]
1505  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1506  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1507  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1508  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1509  --libdir=DIR            object code libraries [EPREFIX/lib]
1510  --includedir=DIR        C header files [PREFIX/include]
1511  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1512  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1513  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1514  --infodir=DIR           info documentation [DATAROOTDIR/info]
1515  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1516  --mandir=DIR            man documentation [DATAROOTDIR/man]
1517  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1518  --htmldir=DIR           html documentation [DOCDIR]
1519  --dvidir=DIR            dvi documentation [DOCDIR]
1520  --pdfdir=DIR            pdf documentation [DOCDIR]
1521  --psdir=DIR             ps documentation [DOCDIR]
1522_ACEOF
1523
1524  cat <<\_ACEOF
1525
1526System types:
1527  --build=BUILD     configure for building on BUILD [guessed]
1528  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1529_ACEOF
1530fi
1531
1532if test -n "$ac_init_help"; then
1533
1534  cat <<\_ACEOF
1535
1536Optional Features:
1537  --disable-option-checking  ignore unrecognized --enable/--with options
1538  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1539  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1540  --enable-maintainer-mode
1541                          enable makefile rules useful for maintainers
1542  --enable-symlink-install
1543                          use symlinks when installing instead of hard links
1544  --enable-relative-symlinks
1545                          use relative symlinks when installing
1546
1547  --enable-symlink-build  use symlinks while building instead of hard links
1548  --enable-verbose-makecmds
1549                          enable verbose make command output
1550  --enable-elf-shlibs     select ELF shared libraries
1551  --enable-bsd-shlibs     select BSD shared libraries
1552  --enable-profile        build profiling libraries
1553  --enable-gcov           build for coverage testing using gcov
1554  --enable-hardening      build for coverage testing using gcov
1555  --enable-jbd-debug      enable journal debugging
1556  --enable-blkid-debug    enable blkid debugging
1557  --disable-testio-debug  disable the use of the test I/O manager for
1558                          debugging
1559  --enable-developer-features
1560                          enable features for use by ext4 developers
1561  --enable-libuuid        build and use private uuid library
1562  --enable-libblkid       build and use private blkid library
1563  --enable-subset         enable subset-only build
1564  --disable-backtrace     disable use backtrace
1565  --disable-debugfs       disable support of debugfs program
1566  --disable-imager        disable support of e2image program
1567  --disable-resizer       disable support of e2resize program
1568  --disable-defrag        disable support of e4defrag program
1569  --enable-fsck           build fsck wrapper program
1570  --enable-e2initrd-helper
1571                          build e2initrd-helper program
1572  --disable-tls           disable use of thread local support
1573  --disable-uuidd         disable building the uuid daemon
1574  --disable-mmp           disable support mmp, Multi Mount Protection
1575  --disable-tdb           disable tdb support
1576  --disable-bmap-stats    disable collection of bitmap stats
1577  --enable-bmap-stats-ops enable collection of additional bitmap stats
1578  --disable-nls           do not use Native Language Support
1579  --disable-rpath         do not hardcode runtime library paths
1580  --disable-fuse2fs       do not build fuse2fs
1581  --enable-lto            enable link time optimization
1582  --enable-ubsan          enable undefined behavior sanitizer
1583  --enable-addrsan        enable address sanitizer
1584  --enable-threadsan      enable thread sanitizer
1585
1586Optional Packages:
1587  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1588  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1589  --with-diet-libc        use diet libc
1590  --with-cc               no longer supported, use CC= instead
1591  --with-ccopts           no longer supported, use CFLAGS= instead
1592  --with-ldopts           no longer supported, use LDFLAGS= instead
1593  --with-root-prefix=PREFIX
1594                          override prefix variable for files to be placed in
1595                          the root
1596  --without-pthread       disable use of pthread support
1597  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1598  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1599  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1600  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1601  --without-libintl-prefix     don't search for libintl in includedir and libdir
1602  --with-multiarch=ARCH   specify the multiarch triplet
1603  --with-udev-rules-dir[=DIR]
1604                          Install udev rules into DIR.
1605  --with-crond-dir[=DIR]  Install system crontabs into DIR.
1606  --with-systemd-unit-dir[=DIR]
1607                          Install systemd system units into DIR.
1608
1609Some influential environment variables:
1610  CC          C compiler command
1611  CFLAGS      C compiler flags
1612  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1613              nonstandard directory <lib dir>
1614  LIBS        libraries to pass to the linker, e.g. -l<library>
1615  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1616              you have headers in a nonstandard directory <include dir>
1617  CPP         C preprocessor
1618  PKG_CONFIG  path to pkg-config utility
1619  PKG_CONFIG_PATH
1620              directories to add to pkg-config's search path
1621  PKG_CONFIG_LIBDIR
1622              path overriding pkg-config's built-in search path
1623  udev_CFLAGS C compiler flags for udev, overriding pkg-config
1624  udev_LIBS   linker flags for udev, overriding pkg-config
1625  systemd_CFLAGS
1626              C compiler flags for systemd, overriding pkg-config
1627  systemd_LIBS
1628              linker flags for systemd, overriding pkg-config
1629
1630Use these variables to override the choices made by `configure' or to help
1631it to find libraries and programs with nonstandard names/locations.
1632
1633Report bugs to the package provider.
1634_ACEOF
1635ac_status=$?
1636fi
1637
1638if test "$ac_init_help" = "recursive"; then
1639  # If there are subdirs, report their specific --help.
1640  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1641    test -d "$ac_dir" ||
1642      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1643      continue
1644    ac_builddir=.
1645
1646case "$ac_dir" in
1647.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648*)
1649  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1650  # A ".." for each directory in $ac_dir_suffix.
1651  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1652  case $ac_top_builddir_sub in
1653  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1655  esac ;;
1656esac
1657ac_abs_top_builddir=$ac_pwd
1658ac_abs_builddir=$ac_pwd$ac_dir_suffix
1659# for backward compatibility:
1660ac_top_builddir=$ac_top_build_prefix
1661
1662case $srcdir in
1663  .)  # We are building in place.
1664    ac_srcdir=.
1665    ac_top_srcdir=$ac_top_builddir_sub
1666    ac_abs_top_srcdir=$ac_pwd ;;
1667  [\\/]* | ?:[\\/]* )  # Absolute name.
1668    ac_srcdir=$srcdir$ac_dir_suffix;
1669    ac_top_srcdir=$srcdir
1670    ac_abs_top_srcdir=$srcdir ;;
1671  *) # Relative name.
1672    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1673    ac_top_srcdir=$ac_top_build_prefix$srcdir
1674    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1675esac
1676ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1677
1678    cd "$ac_dir" || { ac_status=$?; continue; }
1679    # Check for guested configure.
1680    if test -f "$ac_srcdir/configure.gnu"; then
1681      echo &&
1682      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1683    elif test -f "$ac_srcdir/configure"; then
1684      echo &&
1685      $SHELL "$ac_srcdir/configure" --help=recursive
1686    else
1687      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1688    fi || ac_status=$?
1689    cd "$ac_pwd" || { ac_status=$?; break; }
1690  done
1691fi
1692
1693test -n "$ac_init_help" && exit $ac_status
1694if $ac_init_version; then
1695  cat <<\_ACEOF
1696configure
1697generated by GNU Autoconf 2.69
1698
1699Copyright (C) 2012 Free Software Foundation, Inc.
1700This configure script is free software; the Free Software Foundation
1701gives unlimited permission to copy, distribute and modify it.
1702_ACEOF
1703  exit
1704fi
1705
1706## ------------------------ ##
1707## Autoconf initialization. ##
1708## ------------------------ ##
1709
1710# ac_fn_c_try_compile LINENO
1711# --------------------------
1712# Try to compile conftest.$ac_ext, and return whether this succeeded.
1713ac_fn_c_try_compile ()
1714{
1715  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716  rm -f conftest.$ac_objext
1717  if { { ac_try="$ac_compile"
1718case "(($ac_try" in
1719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720  *) ac_try_echo=$ac_try;;
1721esac
1722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723$as_echo "$ac_try_echo"; } >&5
1724  (eval "$ac_compile") 2>conftest.err
1725  ac_status=$?
1726  if test -s conftest.err; then
1727    grep -v '^ *+' conftest.err >conftest.er1
1728    cat conftest.er1 >&5
1729    mv -f conftest.er1 conftest.err
1730  fi
1731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732  test $ac_status = 0; } && {
1733	 test -z "$ac_c_werror_flag" ||
1734	 test ! -s conftest.err
1735       } && test -s conftest.$ac_objext; then :
1736  ac_retval=0
1737else
1738  $as_echo "$as_me: failed program was:" >&5
1739sed 's/^/| /' conftest.$ac_ext >&5
1740
1741	ac_retval=1
1742fi
1743  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744  as_fn_set_status $ac_retval
1745
1746} # ac_fn_c_try_compile
1747
1748# ac_fn_c_try_link LINENO
1749# -----------------------
1750# Try to link conftest.$ac_ext, and return whether this succeeded.
1751ac_fn_c_try_link ()
1752{
1753  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754  rm -f conftest.$ac_objext conftest$ac_exeext
1755  if { { ac_try="$ac_link"
1756case "(($ac_try" in
1757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758  *) ac_try_echo=$ac_try;;
1759esac
1760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761$as_echo "$ac_try_echo"; } >&5
1762  (eval "$ac_link") 2>conftest.err
1763  ac_status=$?
1764  if test -s conftest.err; then
1765    grep -v '^ *+' conftest.err >conftest.er1
1766    cat conftest.er1 >&5
1767    mv -f conftest.er1 conftest.err
1768  fi
1769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770  test $ac_status = 0; } && {
1771	 test -z "$ac_c_werror_flag" ||
1772	 test ! -s conftest.err
1773       } && test -s conftest$ac_exeext && {
1774	 test "$cross_compiling" = yes ||
1775	 test -x conftest$ac_exeext
1776       }; then :
1777  ac_retval=0
1778else
1779  $as_echo "$as_me: failed program was:" >&5
1780sed 's/^/| /' conftest.$ac_ext >&5
1781
1782	ac_retval=1
1783fi
1784  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1785  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1786  # interfere with the next link command; also delete a directory that is
1787  # left behind by Apple's compiler.  We do this before executing the actions.
1788  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1789  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790  as_fn_set_status $ac_retval
1791
1792} # ac_fn_c_try_link
1793
1794# ac_fn_c_try_cpp LINENO
1795# ----------------------
1796# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1797ac_fn_c_try_cpp ()
1798{
1799  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800  if { { ac_try="$ac_cpp conftest.$ac_ext"
1801case "(($ac_try" in
1802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803  *) ac_try_echo=$ac_try;;
1804esac
1805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806$as_echo "$ac_try_echo"; } >&5
1807  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1808  ac_status=$?
1809  if test -s conftest.err; then
1810    grep -v '^ *+' conftest.err >conftest.er1
1811    cat conftest.er1 >&5
1812    mv -f conftest.er1 conftest.err
1813  fi
1814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815  test $ac_status = 0; } > conftest.i && {
1816	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1817	 test ! -s conftest.err
1818       }; then :
1819  ac_retval=0
1820else
1821  $as_echo "$as_me: failed program was:" >&5
1822sed 's/^/| /' conftest.$ac_ext >&5
1823
1824    ac_retval=1
1825fi
1826  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827  as_fn_set_status $ac_retval
1828
1829} # ac_fn_c_try_cpp
1830
1831# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1832# -------------------------------------------------------
1833# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1834# the include files in INCLUDES and setting the cache variable VAR
1835# accordingly.
1836ac_fn_c_check_header_mongrel ()
1837{
1838  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839  if eval \${$3+:} false; then :
1840  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841$as_echo_n "checking for $2... " >&6; }
1842if eval \${$3+:} false; then :
1843  $as_echo_n "(cached) " >&6
1844fi
1845eval ac_res=\$$3
1846	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847$as_echo "$ac_res" >&6; }
1848else
1849  # Is the header compilable?
1850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1851$as_echo_n "checking $2 usability... " >&6; }
1852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853/* end confdefs.h.  */
1854$4
1855#include <$2>
1856_ACEOF
1857if ac_fn_c_try_compile "$LINENO"; then :
1858  ac_header_compiler=yes
1859else
1860  ac_header_compiler=no
1861fi
1862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1864$as_echo "$ac_header_compiler" >&6; }
1865
1866# Is the header present?
1867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1868$as_echo_n "checking $2 presence... " >&6; }
1869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870/* end confdefs.h.  */
1871#include <$2>
1872_ACEOF
1873if ac_fn_c_try_cpp "$LINENO"; then :
1874  ac_header_preproc=yes
1875else
1876  ac_header_preproc=no
1877fi
1878rm -f conftest.err conftest.i conftest.$ac_ext
1879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1880$as_echo "$ac_header_preproc" >&6; }
1881
1882# So?  What about this header?
1883case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1884  yes:no: )
1885    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1886$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1887    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1888$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1889    ;;
1890  no:yes:* )
1891    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1892$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1893    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1894$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1895    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1896$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1897    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1898$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1899    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1900$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1901    ;;
1902esac
1903  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904$as_echo_n "checking for $2... " >&6; }
1905if eval \${$3+:} false; then :
1906  $as_echo_n "(cached) " >&6
1907else
1908  eval "$3=\$ac_header_compiler"
1909fi
1910eval ac_res=\$$3
1911	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912$as_echo "$ac_res" >&6; }
1913fi
1914  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915
1916} # ac_fn_c_check_header_mongrel
1917
1918# ac_fn_c_try_run LINENO
1919# ----------------------
1920# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1921# that executables *can* be run.
1922ac_fn_c_try_run ()
1923{
1924  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925  if { { ac_try="$ac_link"
1926case "(($ac_try" in
1927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928  *) ac_try_echo=$ac_try;;
1929esac
1930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931$as_echo "$ac_try_echo"; } >&5
1932  (eval "$ac_link") 2>&5
1933  ac_status=$?
1934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1936  { { case "(($ac_try" in
1937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938  *) ac_try_echo=$ac_try;;
1939esac
1940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941$as_echo "$ac_try_echo"; } >&5
1942  (eval "$ac_try") 2>&5
1943  ac_status=$?
1944  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945  test $ac_status = 0; }; }; then :
1946  ac_retval=0
1947else
1948  $as_echo "$as_me: program exited with status $ac_status" >&5
1949       $as_echo "$as_me: failed program was:" >&5
1950sed 's/^/| /' conftest.$ac_ext >&5
1951
1952       ac_retval=$ac_status
1953fi
1954  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1955  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956  as_fn_set_status $ac_retval
1957
1958} # ac_fn_c_try_run
1959
1960# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1961# -------------------------------------------------------
1962# Tests whether HEADER exists and can be compiled using the include files in
1963# INCLUDES, setting the cache variable VAR accordingly.
1964ac_fn_c_check_header_compile ()
1965{
1966  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1968$as_echo_n "checking for $2... " >&6; }
1969if eval \${$3+:} false; then :
1970  $as_echo_n "(cached) " >&6
1971else
1972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973/* end confdefs.h.  */
1974$4
1975#include <$2>
1976_ACEOF
1977if ac_fn_c_try_compile "$LINENO"; then :
1978  eval "$3=yes"
1979else
1980  eval "$3=no"
1981fi
1982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1983fi
1984eval ac_res=\$$3
1985	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986$as_echo "$ac_res" >&6; }
1987  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988
1989} # ac_fn_c_check_header_compile
1990
1991# ac_fn_c_check_func LINENO FUNC VAR
1992# ----------------------------------
1993# Tests whether FUNC exists, setting the cache variable VAR accordingly
1994ac_fn_c_check_func ()
1995{
1996  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998$as_echo_n "checking for $2... " >&6; }
1999if eval \${$3+:} false; then :
2000  $as_echo_n "(cached) " >&6
2001else
2002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003/* end confdefs.h.  */
2004/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2005   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2006#define $2 innocuous_$2
2007
2008/* System header to define __stub macros and hopefully few prototypes,
2009    which can conflict with char $2 (); below.
2010    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2011    <limits.h> exists even on freestanding compilers.  */
2012
2013#ifdef __STDC__
2014# include <limits.h>
2015#else
2016# include <assert.h>
2017#endif
2018
2019#undef $2
2020
2021/* Override any GCC internal prototype to avoid an error.
2022   Use char because int might match the return type of a GCC
2023   builtin and then its argument prototype would still apply.  */
2024#ifdef __cplusplus
2025extern "C"
2026#endif
2027char $2 ();
2028/* The GNU C library defines this for functions which it implements
2029    to always fail with ENOSYS.  Some functions are actually named
2030    something starting with __ and the normal name is an alias.  */
2031#if defined __stub_$2 || defined __stub___$2
2032choke me
2033#endif
2034
2035int
2036main ()
2037{
2038return $2 ();
2039  ;
2040  return 0;
2041}
2042_ACEOF
2043if ac_fn_c_try_link "$LINENO"; then :
2044  eval "$3=yes"
2045else
2046  eval "$3=no"
2047fi
2048rm -f core conftest.err conftest.$ac_objext \
2049    conftest$ac_exeext conftest.$ac_ext
2050fi
2051eval ac_res=\$$3
2052	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053$as_echo "$ac_res" >&6; }
2054  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055
2056} # ac_fn_c_check_func
2057
2058# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2059# ----------------------------------------------------
2060# Tries to find if the field MEMBER exists in type AGGR, after including
2061# INCLUDES, setting cache variable VAR accordingly.
2062ac_fn_c_check_member ()
2063{
2064  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2066$as_echo_n "checking for $2.$3... " >&6; }
2067if eval \${$4+:} false; then :
2068  $as_echo_n "(cached) " >&6
2069else
2070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071/* end confdefs.h.  */
2072$5
2073int
2074main ()
2075{
2076static $2 ac_aggr;
2077if (ac_aggr.$3)
2078return 0;
2079  ;
2080  return 0;
2081}
2082_ACEOF
2083if ac_fn_c_try_compile "$LINENO"; then :
2084  eval "$4=yes"
2085else
2086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087/* end confdefs.h.  */
2088$5
2089int
2090main ()
2091{
2092static $2 ac_aggr;
2093if (sizeof ac_aggr.$3)
2094return 0;
2095  ;
2096  return 0;
2097}
2098_ACEOF
2099if ac_fn_c_try_compile "$LINENO"; then :
2100  eval "$4=yes"
2101else
2102  eval "$4=no"
2103fi
2104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105fi
2106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107fi
2108eval ac_res=\$$4
2109	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110$as_echo "$ac_res" >&6; }
2111  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2112
2113} # ac_fn_c_check_member
2114
2115# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2116# -------------------------------------------
2117# Tests whether TYPE exists after having included INCLUDES, setting cache
2118# variable VAR accordingly.
2119ac_fn_c_check_type ()
2120{
2121  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2123$as_echo_n "checking for $2... " >&6; }
2124if eval \${$3+:} false; then :
2125  $as_echo_n "(cached) " >&6
2126else
2127  eval "$3=no"
2128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129/* end confdefs.h.  */
2130$4
2131int
2132main ()
2133{
2134if (sizeof ($2))
2135	 return 0;
2136  ;
2137  return 0;
2138}
2139_ACEOF
2140if ac_fn_c_try_compile "$LINENO"; then :
2141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142/* end confdefs.h.  */
2143$4
2144int
2145main ()
2146{
2147if (sizeof (($2)))
2148	    return 0;
2149  ;
2150  return 0;
2151}
2152_ACEOF
2153if ac_fn_c_try_compile "$LINENO"; then :
2154
2155else
2156  eval "$3=yes"
2157fi
2158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159fi
2160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161fi
2162eval ac_res=\$$3
2163	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164$as_echo "$ac_res" >&6; }
2165  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166
2167} # ac_fn_c_check_type
2168
2169# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2170# ---------------------------------------------
2171# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2172# accordingly.
2173ac_fn_c_check_decl ()
2174{
2175  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176  as_decl_name=`echo $2|sed 's/ *(.*//'`
2177  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2178  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2179$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2180if eval \${$3+:} false; then :
2181  $as_echo_n "(cached) " >&6
2182else
2183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184/* end confdefs.h.  */
2185$4
2186int
2187main ()
2188{
2189#ifndef $as_decl_name
2190#ifdef __cplusplus
2191  (void) $as_decl_use;
2192#else
2193  (void) $as_decl_name;
2194#endif
2195#endif
2196
2197  ;
2198  return 0;
2199}
2200_ACEOF
2201if ac_fn_c_try_compile "$LINENO"; then :
2202  eval "$3=yes"
2203else
2204  eval "$3=no"
2205fi
2206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207fi
2208eval ac_res=\$$3
2209	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2210$as_echo "$ac_res" >&6; }
2211  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2212
2213} # ac_fn_c_check_decl
2214
2215# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2216# --------------------------------------------
2217# Tries to find the compile-time value of EXPR in a program that includes
2218# INCLUDES, setting VAR accordingly. Returns whether the value could be
2219# computed
2220ac_fn_c_compute_int ()
2221{
2222  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2223  if test "$cross_compiling" = yes; then
2224    # Depending upon the size, compute the lo and hi bounds.
2225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226/* end confdefs.h.  */
2227$4
2228int
2229main ()
2230{
2231static int test_array [1 - 2 * !(($2) >= 0)];
2232test_array [0] = 0;
2233return test_array [0];
2234
2235  ;
2236  return 0;
2237}
2238_ACEOF
2239if ac_fn_c_try_compile "$LINENO"; then :
2240  ac_lo=0 ac_mid=0
2241  while :; do
2242    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243/* end confdefs.h.  */
2244$4
2245int
2246main ()
2247{
2248static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2249test_array [0] = 0;
2250return test_array [0];
2251
2252  ;
2253  return 0;
2254}
2255_ACEOF
2256if ac_fn_c_try_compile "$LINENO"; then :
2257  ac_hi=$ac_mid; break
2258else
2259  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2260			if test $ac_lo -le $ac_mid; then
2261			  ac_lo= ac_hi=
2262			  break
2263			fi
2264			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2265fi
2266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267  done
2268else
2269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270/* end confdefs.h.  */
2271$4
2272int
2273main ()
2274{
2275static int test_array [1 - 2 * !(($2) < 0)];
2276test_array [0] = 0;
2277return test_array [0];
2278
2279  ;
2280  return 0;
2281}
2282_ACEOF
2283if ac_fn_c_try_compile "$LINENO"; then :
2284  ac_hi=-1 ac_mid=-1
2285  while :; do
2286    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287/* end confdefs.h.  */
2288$4
2289int
2290main ()
2291{
2292static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2293test_array [0] = 0;
2294return test_array [0];
2295
2296  ;
2297  return 0;
2298}
2299_ACEOF
2300if ac_fn_c_try_compile "$LINENO"; then :
2301  ac_lo=$ac_mid; break
2302else
2303  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2304			if test $ac_mid -le $ac_hi; then
2305			  ac_lo= ac_hi=
2306			  break
2307			fi
2308			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2309fi
2310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311  done
2312else
2313  ac_lo= ac_hi=
2314fi
2315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2316fi
2317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2318# Binary search between lo and hi bounds.
2319while test "x$ac_lo" != "x$ac_hi"; do
2320  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322/* end confdefs.h.  */
2323$4
2324int
2325main ()
2326{
2327static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2328test_array [0] = 0;
2329return test_array [0];
2330
2331  ;
2332  return 0;
2333}
2334_ACEOF
2335if ac_fn_c_try_compile "$LINENO"; then :
2336  ac_hi=$ac_mid
2337else
2338  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2339fi
2340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2341done
2342case $ac_lo in #((
2343?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2344'') ac_retval=1 ;;
2345esac
2346  else
2347    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348/* end confdefs.h.  */
2349$4
2350static long int longval () { return $2; }
2351static unsigned long int ulongval () { return $2; }
2352#include <stdio.h>
2353#include <stdlib.h>
2354int
2355main ()
2356{
2357
2358  FILE *f = fopen ("conftest.val", "w");
2359  if (! f)
2360    return 1;
2361  if (($2) < 0)
2362    {
2363      long int i = longval ();
2364      if (i != ($2))
2365	return 1;
2366      fprintf (f, "%ld", i);
2367    }
2368  else
2369    {
2370      unsigned long int i = ulongval ();
2371      if (i != ($2))
2372	return 1;
2373      fprintf (f, "%lu", i);
2374    }
2375  /* Do not output a trailing newline, as this causes \r\n confusion
2376     on some platforms.  */
2377  return ferror (f) || fclose (f) != 0;
2378
2379  ;
2380  return 0;
2381}
2382_ACEOF
2383if ac_fn_c_try_run "$LINENO"; then :
2384  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2385else
2386  ac_retval=1
2387fi
2388rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2389  conftest.$ac_objext conftest.beam conftest.$ac_ext
2390rm -f conftest.val
2391
2392  fi
2393  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2394  as_fn_set_status $ac_retval
2395
2396} # ac_fn_c_compute_int
2397cat >config.log <<_ACEOF
2398This file contains any messages produced by compilers while
2399running configure, to aid debugging if configure makes a mistake.
2400
2401It was created by $as_me, which was
2402generated by GNU Autoconf 2.69.  Invocation command line was
2403
2404  $ $0 $@
2405
2406_ACEOF
2407exec 5>>config.log
2408{
2409cat <<_ASUNAME
2410## --------- ##
2411## Platform. ##
2412## --------- ##
2413
2414hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2415uname -m = `(uname -m) 2>/dev/null || echo unknown`
2416uname -r = `(uname -r) 2>/dev/null || echo unknown`
2417uname -s = `(uname -s) 2>/dev/null || echo unknown`
2418uname -v = `(uname -v) 2>/dev/null || echo unknown`
2419
2420/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2421/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2422
2423/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2424/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2425/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2426/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2427/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2428/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2429/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2430
2431_ASUNAME
2432
2433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434for as_dir in $PATH
2435do
2436  IFS=$as_save_IFS
2437  test -z "$as_dir" && as_dir=.
2438    $as_echo "PATH: $as_dir"
2439  done
2440IFS=$as_save_IFS
2441
2442} >&5
2443
2444cat >&5 <<_ACEOF
2445
2446
2447## ----------- ##
2448## Core tests. ##
2449## ----------- ##
2450
2451_ACEOF
2452
2453
2454# Keep a trace of the command line.
2455# Strip out --no-create and --no-recursion so they do not pile up.
2456# Strip out --silent because we don't want to record it for future runs.
2457# Also quote any args containing shell meta-characters.
2458# Make two passes to allow for proper duplicate-argument suppression.
2459ac_configure_args=
2460ac_configure_args0=
2461ac_configure_args1=
2462ac_must_keep_next=false
2463for ac_pass in 1 2
2464do
2465  for ac_arg
2466  do
2467    case $ac_arg in
2468    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2469    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2470    | -silent | --silent | --silen | --sile | --sil)
2471      continue ;;
2472    *\'*)
2473      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2474    esac
2475    case $ac_pass in
2476    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2477    2)
2478      as_fn_append ac_configure_args1 " '$ac_arg'"
2479      if test $ac_must_keep_next = true; then
2480	ac_must_keep_next=false # Got value, back to normal.
2481      else
2482	case $ac_arg in
2483	  *=* | --config-cache | -C | -disable-* | --disable-* \
2484	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2485	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2486	  | -with-* | --with-* | -without-* | --without-* | --x)
2487	    case "$ac_configure_args0 " in
2488	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2489	    esac
2490	    ;;
2491	  -* ) ac_must_keep_next=true ;;
2492	esac
2493      fi
2494      as_fn_append ac_configure_args " '$ac_arg'"
2495      ;;
2496    esac
2497  done
2498done
2499{ ac_configure_args0=; unset ac_configure_args0;}
2500{ ac_configure_args1=; unset ac_configure_args1;}
2501
2502# When interrupted or exit'd, cleanup temporary files, and complete
2503# config.log.  We remove comments because anyway the quotes in there
2504# would cause problems or look ugly.
2505# WARNING: Use '\'' to represent an apostrophe within the trap.
2506# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2507trap 'exit_status=$?
2508  # Save into config.log some information that might help in debugging.
2509  {
2510    echo
2511
2512    $as_echo "## ---------------- ##
2513## Cache variables. ##
2514## ---------------- ##"
2515    echo
2516    # The following way of writing the cache mishandles newlines in values,
2517(
2518  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2519    eval ac_val=\$$ac_var
2520    case $ac_val in #(
2521    *${as_nl}*)
2522      case $ac_var in #(
2523      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2524$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2525      esac
2526      case $ac_var in #(
2527      _ | IFS | as_nl) ;; #(
2528      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2529      *) { eval $ac_var=; unset $ac_var;} ;;
2530      esac ;;
2531    esac
2532  done
2533  (set) 2>&1 |
2534    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2535    *${as_nl}ac_space=\ *)
2536      sed -n \
2537	"s/'\''/'\''\\\\'\'''\''/g;
2538	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2539      ;; #(
2540    *)
2541      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2542      ;;
2543    esac |
2544    sort
2545)
2546    echo
2547
2548    $as_echo "## ----------------- ##
2549## Output variables. ##
2550## ----------------- ##"
2551    echo
2552    for ac_var in $ac_subst_vars
2553    do
2554      eval ac_val=\$$ac_var
2555      case $ac_val in
2556      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2557      esac
2558      $as_echo "$ac_var='\''$ac_val'\''"
2559    done | sort
2560    echo
2561
2562    if test -n "$ac_subst_files"; then
2563      $as_echo "## ------------------- ##
2564## File substitutions. ##
2565## ------------------- ##"
2566      echo
2567      for ac_var in $ac_subst_files
2568      do
2569	eval ac_val=\$$ac_var
2570	case $ac_val in
2571	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2572	esac
2573	$as_echo "$ac_var='\''$ac_val'\''"
2574      done | sort
2575      echo
2576    fi
2577
2578    if test -s confdefs.h; then
2579      $as_echo "## ----------- ##
2580## confdefs.h. ##
2581## ----------- ##"
2582      echo
2583      cat confdefs.h
2584      echo
2585    fi
2586    test "$ac_signal" != 0 &&
2587      $as_echo "$as_me: caught signal $ac_signal"
2588    $as_echo "$as_me: exit $exit_status"
2589  } >&5
2590  rm -f core *.core core.conftest.* &&
2591    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2592    exit $exit_status
2593' 0
2594for ac_signal in 1 2 13 15; do
2595  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2596done
2597ac_signal=0
2598
2599# confdefs.h avoids OS command line length limits that DEFS can exceed.
2600rm -f -r conftest* confdefs.h
2601
2602$as_echo "/* confdefs.h */" > confdefs.h
2603
2604# Predefined preprocessor variables.
2605
2606cat >>confdefs.h <<_ACEOF
2607#define PACKAGE_NAME "$PACKAGE_NAME"
2608_ACEOF
2609
2610cat >>confdefs.h <<_ACEOF
2611#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2612_ACEOF
2613
2614cat >>confdefs.h <<_ACEOF
2615#define PACKAGE_VERSION "$PACKAGE_VERSION"
2616_ACEOF
2617
2618cat >>confdefs.h <<_ACEOF
2619#define PACKAGE_STRING "$PACKAGE_STRING"
2620_ACEOF
2621
2622cat >>confdefs.h <<_ACEOF
2623#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2624_ACEOF
2625
2626cat >>confdefs.h <<_ACEOF
2627#define PACKAGE_URL "$PACKAGE_URL"
2628_ACEOF
2629
2630
2631# Let the site file select an alternate cache file if it wants to.
2632# Prefer an explicitly selected file to automatically selected ones.
2633ac_site_file1=NONE
2634ac_site_file2=NONE
2635if test -n "$CONFIG_SITE"; then
2636  # We do not want a PATH search for config.site.
2637  case $CONFIG_SITE in #((
2638    -*)  ac_site_file1=./$CONFIG_SITE;;
2639    */*) ac_site_file1=$CONFIG_SITE;;
2640    *)   ac_site_file1=./$CONFIG_SITE;;
2641  esac
2642elif test "x$prefix" != xNONE; then
2643  ac_site_file1=$prefix/share/config.site
2644  ac_site_file2=$prefix/etc/config.site
2645else
2646  ac_site_file1=$ac_default_prefix/share/config.site
2647  ac_site_file2=$ac_default_prefix/etc/config.site
2648fi
2649for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2650do
2651  test "x$ac_site_file" = xNONE && continue
2652  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2653    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2654$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2655    sed 's/^/| /' "$ac_site_file" >&5
2656    . "$ac_site_file" \
2657      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2658$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2659as_fn_error $? "failed to load site script $ac_site_file
2660See \`config.log' for more details" "$LINENO" 5; }
2661  fi
2662done
2663
2664if test -r "$cache_file"; then
2665  # Some versions of bash will fail to source /dev/null (special files
2666  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2667  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2668    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2669$as_echo "$as_me: loading cache $cache_file" >&6;}
2670    case $cache_file in
2671      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2672      *)                      . "./$cache_file";;
2673    esac
2674  fi
2675else
2676  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2677$as_echo "$as_me: creating cache $cache_file" >&6;}
2678  >$cache_file
2679fi
2680
2681gt_needs="$gt_needs "
2682# Check that the precious variables saved in the cache have kept the same
2683# value.
2684ac_cache_corrupted=false
2685for ac_var in $ac_precious_vars; do
2686  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2687  eval ac_new_set=\$ac_env_${ac_var}_set
2688  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2689  eval ac_new_val=\$ac_env_${ac_var}_value
2690  case $ac_old_set,$ac_new_set in
2691    set,)
2692      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2693$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2694      ac_cache_corrupted=: ;;
2695    ,set)
2696      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2697$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2698      ac_cache_corrupted=: ;;
2699    ,);;
2700    *)
2701      if test "x$ac_old_val" != "x$ac_new_val"; then
2702	# differences in whitespace do not lead to failure.
2703	ac_old_val_w=`echo x $ac_old_val`
2704	ac_new_val_w=`echo x $ac_new_val`
2705	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2706	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2707$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2708	  ac_cache_corrupted=:
2709	else
2710	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2711$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2712	  eval $ac_var=\$ac_old_val
2713	fi
2714	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2715$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2716	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2717$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2718      fi;;
2719  esac
2720  # Pass precious variables to config.status.
2721  if test "$ac_new_set" = set; then
2722    case $ac_new_val in
2723    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2724    *) ac_arg=$ac_var=$ac_new_val ;;
2725    esac
2726    case " $ac_configure_args " in
2727      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2728      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2729    esac
2730  fi
2731done
2732if $ac_cache_corrupted; then
2733  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2734$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2735  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2736$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2737  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2738fi
2739## -------------------- ##
2740## Main body of script. ##
2741## -------------------- ##
2742
2743ac_ext=c
2744ac_cpp='$CPP $CPPFLAGS'
2745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747ac_compiler_gnu=$ac_cv_c_compiler_gnu
2748
2749
2750
2751ac_aux_dir=
2752for ac_dir in config "$srcdir"/config; do
2753  if test -f "$ac_dir/install-sh"; then
2754    ac_aux_dir=$ac_dir
2755    ac_install_sh="$ac_aux_dir/install-sh -c"
2756    break
2757  elif test -f "$ac_dir/install.sh"; then
2758    ac_aux_dir=$ac_dir
2759    ac_install_sh="$ac_aux_dir/install.sh -c"
2760    break
2761  elif test -f "$ac_dir/shtool"; then
2762    ac_aux_dir=$ac_dir
2763    ac_install_sh="$ac_aux_dir/shtool install -c"
2764    break
2765  fi
2766done
2767if test -z "$ac_aux_dir"; then
2768  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2769fi
2770
2771# These three variables are undocumented and unsupported,
2772# and are intended to be withdrawn in a future Autoconf release.
2773# They can cause serious problems if a builder's source tree is in a directory
2774# whose full name contains unusual characters.
2775ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2776ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2777ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2778
2779
2780ac_config_headers="$ac_config_headers lib/config.h"
2781
2782
2783MCONFIG=./MCONFIG
2784
2785BINARY_TYPE=bin
2786E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2787	| awk '{print $3}' | tr \" " " | awk '{print $1}'`
2788E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2789	| tr \" " " | awk '{print $1}'`
2790E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2791MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
2792YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
2793
2794if expr $YEAR ">" 1900 > /dev/null ; then
2795	E2FSPROGS_YEAR=$YEAR
2796elif expr $YEAR ">" 90 >/dev/null ; then
2797	E2FSPROGS_YEAR=19$YEAR
2798else
2799	E2FSPROGS_YEAR=20$YEAR
2800fi
2801
2802case $MONTH in
2803Jan)	MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2804Feb)	MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2805Mar)	MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2806Apr)	MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2807May)	MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2808Jun)	MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2809Jul)	MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2810Aug)	MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2811Sep)	MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2812Oct)	MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2813Nov)	MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2814Dec)	MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2815*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2816$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2817esac
2818
2819base_ver=`echo $E2FSPROGS_VERSION | \
2820	       sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2821
2822date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2823
2824case $E2FSPROGS_VERSION in
2825*-WIP|pre-*)
2826	E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2827	;;
2828*)
2829	E2FSPROGS_PKGVER="$base_ver"
2830	;;
2831esac
2832
2833unset DATE MONTH YEAR base_ver pre_vers date_spec
2834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2835$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2837$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2838
2839
2840
2841
2842
2843
2844WITH_DIET_LIBC=
2845
2846# Check whether --with-diet-libc was given.
2847if test "${with_diet_libc+set}" = set; then :
2848  withval=$with_diet_libc; CC="diet cc -nostdinc"
2849WITH_DIET_LIBC=yes
2850if test -z "$LIBS"
2851then
2852	LIBS="-lcompat"
2853else
2854	LIBS="$LIBS -lcompat"
2855fi
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2857$as_echo "CC=$CC" >&6; }
2858fi
2859# Make sure we can run config.sub.
2860$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2861  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2862
2863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2864$as_echo_n "checking build system type... " >&6; }
2865if ${ac_cv_build+:} false; then :
2866  $as_echo_n "(cached) " >&6
2867else
2868  ac_build_alias=$build_alias
2869test "x$ac_build_alias" = x &&
2870  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2871test "x$ac_build_alias" = x &&
2872  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2873ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2874  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2875
2876fi
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2878$as_echo "$ac_cv_build" >&6; }
2879case $ac_cv_build in
2880*-*-*) ;;
2881*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2882esac
2883build=$ac_cv_build
2884ac_save_IFS=$IFS; IFS='-'
2885set x $ac_cv_build
2886shift
2887build_cpu=$1
2888build_vendor=$2
2889shift; shift
2890# Remember, the first character of IFS is used to create $*,
2891# except with old shells:
2892build_os=$*
2893IFS=$ac_save_IFS
2894case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2895
2896
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2898$as_echo_n "checking host system type... " >&6; }
2899if ${ac_cv_host+:} false; then :
2900  $as_echo_n "(cached) " >&6
2901else
2902  if test "x$host_alias" = x; then
2903  ac_cv_host=$ac_cv_build
2904else
2905  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2906    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2907fi
2908
2909fi
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2911$as_echo "$ac_cv_host" >&6; }
2912case $ac_cv_host in
2913*-*-*) ;;
2914*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2915esac
2916host=$ac_cv_host
2917ac_save_IFS=$IFS; IFS='-'
2918set x $ac_cv_host
2919shift
2920host_cpu=$1
2921host_vendor=$2
2922shift; shift
2923# Remember, the first character of IFS is used to create $*,
2924# except with old shells:
2925host_os=$*
2926IFS=$ac_save_IFS
2927case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2928
2929
2930DLOPEN_LIB=''
2931ac_ext=c
2932ac_cpp='$CPP $CPPFLAGS'
2933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2935ac_compiler_gnu=$ac_cv_c_compiler_gnu
2936if test -n "$ac_tool_prefix"; then
2937  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2938set dummy ${ac_tool_prefix}gcc; ac_word=$2
2939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940$as_echo_n "checking for $ac_word... " >&6; }
2941if ${ac_cv_prog_CC+:} false; then :
2942  $as_echo_n "(cached) " >&6
2943else
2944  if test -n "$CC"; then
2945  ac_cv_prog_CC="$CC" # Let the user override the test.
2946else
2947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948for as_dir in $PATH
2949do
2950  IFS=$as_save_IFS
2951  test -z "$as_dir" && as_dir=.
2952    for ac_exec_ext in '' $ac_executable_extensions; do
2953  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2955    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956    break 2
2957  fi
2958done
2959  done
2960IFS=$as_save_IFS
2961
2962fi
2963fi
2964CC=$ac_cv_prog_CC
2965if test -n "$CC"; then
2966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2967$as_echo "$CC" >&6; }
2968else
2969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970$as_echo "no" >&6; }
2971fi
2972
2973
2974fi
2975if test -z "$ac_cv_prog_CC"; then
2976  ac_ct_CC=$CC
2977  # Extract the first word of "gcc", so it can be a program name with args.
2978set dummy gcc; ac_word=$2
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980$as_echo_n "checking for $ac_word... " >&6; }
2981if ${ac_cv_prog_ac_ct_CC+:} false; then :
2982  $as_echo_n "(cached) " >&6
2983else
2984  if test -n "$ac_ct_CC"; then
2985  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2986else
2987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988for as_dir in $PATH
2989do
2990  IFS=$as_save_IFS
2991  test -z "$as_dir" && as_dir=.
2992    for ac_exec_ext in '' $ac_executable_extensions; do
2993  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2994    ac_cv_prog_ac_ct_CC="gcc"
2995    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996    break 2
2997  fi
2998done
2999  done
3000IFS=$as_save_IFS
3001
3002fi
3003fi
3004ac_ct_CC=$ac_cv_prog_ac_ct_CC
3005if test -n "$ac_ct_CC"; then
3006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3007$as_echo "$ac_ct_CC" >&6; }
3008else
3009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010$as_echo "no" >&6; }
3011fi
3012
3013  if test "x$ac_ct_CC" = x; then
3014    CC=""
3015  else
3016    case $cross_compiling:$ac_tool_warned in
3017yes:)
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3020ac_tool_warned=yes ;;
3021esac
3022    CC=$ac_ct_CC
3023  fi
3024else
3025  CC="$ac_cv_prog_CC"
3026fi
3027
3028if test -z "$CC"; then
3029          if test -n "$ac_tool_prefix"; then
3030    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3031set dummy ${ac_tool_prefix}cc; ac_word=$2
3032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033$as_echo_n "checking for $ac_word... " >&6; }
3034if ${ac_cv_prog_CC+:} false; then :
3035  $as_echo_n "(cached) " >&6
3036else
3037  if test -n "$CC"; then
3038  ac_cv_prog_CC="$CC" # Let the user override the test.
3039else
3040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041for as_dir in $PATH
3042do
3043  IFS=$as_save_IFS
3044  test -z "$as_dir" && as_dir=.
3045    for ac_exec_ext in '' $ac_executable_extensions; do
3046  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047    ac_cv_prog_CC="${ac_tool_prefix}cc"
3048    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049    break 2
3050  fi
3051done
3052  done
3053IFS=$as_save_IFS
3054
3055fi
3056fi
3057CC=$ac_cv_prog_CC
3058if test -n "$CC"; then
3059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3060$as_echo "$CC" >&6; }
3061else
3062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063$as_echo "no" >&6; }
3064fi
3065
3066
3067  fi
3068fi
3069if test -z "$CC"; then
3070  # Extract the first word of "cc", so it can be a program name with args.
3071set dummy cc; ac_word=$2
3072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3073$as_echo_n "checking for $ac_word... " >&6; }
3074if ${ac_cv_prog_CC+:} false; then :
3075  $as_echo_n "(cached) " >&6
3076else
3077  if test -n "$CC"; then
3078  ac_cv_prog_CC="$CC" # Let the user override the test.
3079else
3080  ac_prog_rejected=no
3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082for as_dir in $PATH
3083do
3084  IFS=$as_save_IFS
3085  test -z "$as_dir" && as_dir=.
3086    for ac_exec_ext in '' $ac_executable_extensions; do
3087  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3089       ac_prog_rejected=yes
3090       continue
3091     fi
3092    ac_cv_prog_CC="cc"
3093    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094    break 2
3095  fi
3096done
3097  done
3098IFS=$as_save_IFS
3099
3100if test $ac_prog_rejected = yes; then
3101  # We found a bogon in the path, so make sure we never use it.
3102  set dummy $ac_cv_prog_CC
3103  shift
3104  if test $# != 0; then
3105    # We chose a different compiler from the bogus one.
3106    # However, it has the same basename, so the bogon will be chosen
3107    # first if we set CC to just the basename; use the full file name.
3108    shift
3109    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3110  fi
3111fi
3112fi
3113fi
3114CC=$ac_cv_prog_CC
3115if test -n "$CC"; then
3116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3117$as_echo "$CC" >&6; }
3118else
3119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120$as_echo "no" >&6; }
3121fi
3122
3123
3124fi
3125if test -z "$CC"; then
3126  if test -n "$ac_tool_prefix"; then
3127  for ac_prog in cl.exe
3128  do
3129    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3130set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132$as_echo_n "checking for $ac_word... " >&6; }
3133if ${ac_cv_prog_CC+:} false; then :
3134  $as_echo_n "(cached) " >&6
3135else
3136  if test -n "$CC"; then
3137  ac_cv_prog_CC="$CC" # Let the user override the test.
3138else
3139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140for as_dir in $PATH
3141do
3142  IFS=$as_save_IFS
3143  test -z "$as_dir" && as_dir=.
3144    for ac_exec_ext in '' $ac_executable_extensions; do
3145  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3146    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3147    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148    break 2
3149  fi
3150done
3151  done
3152IFS=$as_save_IFS
3153
3154fi
3155fi
3156CC=$ac_cv_prog_CC
3157if test -n "$CC"; then
3158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3159$as_echo "$CC" >&6; }
3160else
3161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162$as_echo "no" >&6; }
3163fi
3164
3165
3166    test -n "$CC" && break
3167  done
3168fi
3169if test -z "$CC"; then
3170  ac_ct_CC=$CC
3171  for ac_prog in cl.exe
3172do
3173  # Extract the first word of "$ac_prog", so it can be a program name with args.
3174set dummy $ac_prog; ac_word=$2
3175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176$as_echo_n "checking for $ac_word... " >&6; }
3177if ${ac_cv_prog_ac_ct_CC+:} false; then :
3178  $as_echo_n "(cached) " >&6
3179else
3180  if test -n "$ac_ct_CC"; then
3181  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3182else
3183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184for as_dir in $PATH
3185do
3186  IFS=$as_save_IFS
3187  test -z "$as_dir" && as_dir=.
3188    for ac_exec_ext in '' $ac_executable_extensions; do
3189  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190    ac_cv_prog_ac_ct_CC="$ac_prog"
3191    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192    break 2
3193  fi
3194done
3195  done
3196IFS=$as_save_IFS
3197
3198fi
3199fi
3200ac_ct_CC=$ac_cv_prog_ac_ct_CC
3201if test -n "$ac_ct_CC"; then
3202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3203$as_echo "$ac_ct_CC" >&6; }
3204else
3205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206$as_echo "no" >&6; }
3207fi
3208
3209
3210  test -n "$ac_ct_CC" && break
3211done
3212
3213  if test "x$ac_ct_CC" = x; then
3214    CC=""
3215  else
3216    case $cross_compiling:$ac_tool_warned in
3217yes:)
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3220ac_tool_warned=yes ;;
3221esac
3222    CC=$ac_ct_CC
3223  fi
3224fi
3225
3226fi
3227
3228
3229test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3230$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3231as_fn_error $? "no acceptable C compiler found in \$PATH
3232See \`config.log' for more details" "$LINENO" 5; }
3233
3234# Provide some information about the compiler.
3235$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3236set X $ac_compile
3237ac_compiler=$2
3238for ac_option in --version -v -V -qversion; do
3239  { { ac_try="$ac_compiler $ac_option >&5"
3240case "(($ac_try" in
3241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242  *) ac_try_echo=$ac_try;;
3243esac
3244eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245$as_echo "$ac_try_echo"; } >&5
3246  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3247  ac_status=$?
3248  if test -s conftest.err; then
3249    sed '10a\
3250... rest of stderr output deleted ...
3251         10q' conftest.err >conftest.er1
3252    cat conftest.er1 >&5
3253  fi
3254  rm -f conftest.er1 conftest.err
3255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256  test $ac_status = 0; }
3257done
3258
3259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3260/* end confdefs.h.  */
3261
3262int
3263main ()
3264{
3265
3266  ;
3267  return 0;
3268}
3269_ACEOF
3270ac_clean_files_save=$ac_clean_files
3271ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3272# Try to create an executable without -o first, disregard a.out.
3273# It will help us diagnose broken compilers, and finding out an intuition
3274# of exeext.
3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3276$as_echo_n "checking whether the C compiler works... " >&6; }
3277ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3278
3279# The possible output files:
3280ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3281
3282ac_rmfiles=
3283for ac_file in $ac_files
3284do
3285  case $ac_file in
3286    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3287    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3288  esac
3289done
3290rm -f $ac_rmfiles
3291
3292if { { ac_try="$ac_link_default"
3293case "(($ac_try" in
3294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295  *) ac_try_echo=$ac_try;;
3296esac
3297eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298$as_echo "$ac_try_echo"; } >&5
3299  (eval "$ac_link_default") 2>&5
3300  ac_status=$?
3301  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3302  test $ac_status = 0; }; then :
3303  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3304# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3305# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3306# so that the user can short-circuit this test for compilers unknown to
3307# Autoconf.
3308for ac_file in $ac_files ''
3309do
3310  test -f "$ac_file" || continue
3311  case $ac_file in
3312    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3313	;;
3314    [ab].out )
3315	# We found the default executable, but exeext='' is most
3316	# certainly right.
3317	break;;
3318    *.* )
3319	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3320	then :; else
3321	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3322	fi
3323	# We set ac_cv_exeext here because the later test for it is not
3324	# safe: cross compilers may not add the suffix if given an `-o'
3325	# argument, so we may need to know it at that point already.
3326	# Even if this section looks crufty: it has the advantage of
3327	# actually working.
3328	break;;
3329    * )
3330	break;;
3331  esac
3332done
3333test "$ac_cv_exeext" = no && ac_cv_exeext=
3334
3335else
3336  ac_file=''
3337fi
3338if test -z "$ac_file"; then :
3339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340$as_echo "no" >&6; }
3341$as_echo "$as_me: failed program was:" >&5
3342sed 's/^/| /' conftest.$ac_ext >&5
3343
3344{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3346as_fn_error 77 "C compiler cannot create executables
3347See \`config.log' for more details" "$LINENO" 5; }
3348else
3349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3350$as_echo "yes" >&6; }
3351fi
3352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3353$as_echo_n "checking for C compiler default output file name... " >&6; }
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3355$as_echo "$ac_file" >&6; }
3356ac_exeext=$ac_cv_exeext
3357
3358rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3359ac_clean_files=$ac_clean_files_save
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3361$as_echo_n "checking for suffix of executables... " >&6; }
3362if { { ac_try="$ac_link"
3363case "(($ac_try" in
3364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365  *) ac_try_echo=$ac_try;;
3366esac
3367eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368$as_echo "$ac_try_echo"; } >&5
3369  (eval "$ac_link") 2>&5
3370  ac_status=$?
3371  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372  test $ac_status = 0; }; then :
3373  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3374# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3375# work properly (i.e., refer to `conftest.exe'), while it won't with
3376# `rm'.
3377for ac_file in conftest.exe conftest conftest.*; do
3378  test -f "$ac_file" || continue
3379  case $ac_file in
3380    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3381    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3382	  break;;
3383    * ) break;;
3384  esac
3385done
3386else
3387  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3388$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3389as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3390See \`config.log' for more details" "$LINENO" 5; }
3391fi
3392rm -f conftest conftest$ac_cv_exeext
3393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3394$as_echo "$ac_cv_exeext" >&6; }
3395
3396rm -f conftest.$ac_ext
3397EXEEXT=$ac_cv_exeext
3398ac_exeext=$EXEEXT
3399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400/* end confdefs.h.  */
3401#include <stdio.h>
3402int
3403main ()
3404{
3405FILE *f = fopen ("conftest.out", "w");
3406 return ferror (f) || fclose (f) != 0;
3407
3408  ;
3409  return 0;
3410}
3411_ACEOF
3412ac_clean_files="$ac_clean_files conftest.out"
3413# Check that the compiler produces executables we can run.  If not, either
3414# the compiler is broken, or we cross compile.
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3416$as_echo_n "checking whether we are cross compiling... " >&6; }
3417if test "$cross_compiling" != yes; then
3418  { { ac_try="$ac_link"
3419case "(($ac_try" in
3420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421  *) ac_try_echo=$ac_try;;
3422esac
3423eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3424$as_echo "$ac_try_echo"; } >&5
3425  (eval "$ac_link") 2>&5
3426  ac_status=$?
3427  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428  test $ac_status = 0; }
3429  if { ac_try='./conftest$ac_cv_exeext'
3430  { { case "(($ac_try" in
3431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432  *) ac_try_echo=$ac_try;;
3433esac
3434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435$as_echo "$ac_try_echo"; } >&5
3436  (eval "$ac_try") 2>&5
3437  ac_status=$?
3438  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439  test $ac_status = 0; }; }; then
3440    cross_compiling=no
3441  else
3442    if test "$cross_compiling" = maybe; then
3443	cross_compiling=yes
3444    else
3445	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3447as_fn_error $? "cannot run C compiled programs.
3448If you meant to cross compile, use \`--host'.
3449See \`config.log' for more details" "$LINENO" 5; }
3450    fi
3451  fi
3452fi
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3454$as_echo "$cross_compiling" >&6; }
3455
3456rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3457ac_clean_files=$ac_clean_files_save
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3459$as_echo_n "checking for suffix of object files... " >&6; }
3460if ${ac_cv_objext+:} false; then :
3461  $as_echo_n "(cached) " >&6
3462else
3463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464/* end confdefs.h.  */
3465
3466int
3467main ()
3468{
3469
3470  ;
3471  return 0;
3472}
3473_ACEOF
3474rm -f conftest.o conftest.obj
3475if { { ac_try="$ac_compile"
3476case "(($ac_try" in
3477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478  *) ac_try_echo=$ac_try;;
3479esac
3480eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3481$as_echo "$ac_try_echo"; } >&5
3482  (eval "$ac_compile") 2>&5
3483  ac_status=$?
3484  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485  test $ac_status = 0; }; then :
3486  for ac_file in conftest.o conftest.obj conftest.*; do
3487  test -f "$ac_file" || continue;
3488  case $ac_file in
3489    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3490    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3491       break;;
3492  esac
3493done
3494else
3495  $as_echo "$as_me: failed program was:" >&5
3496sed 's/^/| /' conftest.$ac_ext >&5
3497
3498{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500as_fn_error $? "cannot compute suffix of object files: cannot compile
3501See \`config.log' for more details" "$LINENO" 5; }
3502fi
3503rm -f conftest.$ac_cv_objext conftest.$ac_ext
3504fi
3505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3506$as_echo "$ac_cv_objext" >&6; }
3507OBJEXT=$ac_cv_objext
3508ac_objext=$OBJEXT
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3510$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3511if ${ac_cv_c_compiler_gnu+:} false; then :
3512  $as_echo_n "(cached) " >&6
3513else
3514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515/* end confdefs.h.  */
3516
3517int
3518main ()
3519{
3520#ifndef __GNUC__
3521       choke me
3522#endif
3523
3524  ;
3525  return 0;
3526}
3527_ACEOF
3528if ac_fn_c_try_compile "$LINENO"; then :
3529  ac_compiler_gnu=yes
3530else
3531  ac_compiler_gnu=no
3532fi
3533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534ac_cv_c_compiler_gnu=$ac_compiler_gnu
3535
3536fi
3537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3538$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3539if test $ac_compiler_gnu = yes; then
3540  GCC=yes
3541else
3542  GCC=
3543fi
3544ac_test_CFLAGS=${CFLAGS+set}
3545ac_save_CFLAGS=$CFLAGS
3546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3547$as_echo_n "checking whether $CC accepts -g... " >&6; }
3548if ${ac_cv_prog_cc_g+:} false; then :
3549  $as_echo_n "(cached) " >&6
3550else
3551  ac_save_c_werror_flag=$ac_c_werror_flag
3552   ac_c_werror_flag=yes
3553   ac_cv_prog_cc_g=no
3554   CFLAGS="-g"
3555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556/* end confdefs.h.  */
3557
3558int
3559main ()
3560{
3561
3562  ;
3563  return 0;
3564}
3565_ACEOF
3566if ac_fn_c_try_compile "$LINENO"; then :
3567  ac_cv_prog_cc_g=yes
3568else
3569  CFLAGS=""
3570      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571/* end confdefs.h.  */
3572
3573int
3574main ()
3575{
3576
3577  ;
3578  return 0;
3579}
3580_ACEOF
3581if ac_fn_c_try_compile "$LINENO"; then :
3582
3583else
3584  ac_c_werror_flag=$ac_save_c_werror_flag
3585	 CFLAGS="-g"
3586	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587/* end confdefs.h.  */
3588
3589int
3590main ()
3591{
3592
3593  ;
3594  return 0;
3595}
3596_ACEOF
3597if ac_fn_c_try_compile "$LINENO"; then :
3598  ac_cv_prog_cc_g=yes
3599fi
3600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601fi
3602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603fi
3604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605   ac_c_werror_flag=$ac_save_c_werror_flag
3606fi
3607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3608$as_echo "$ac_cv_prog_cc_g" >&6; }
3609if test "$ac_test_CFLAGS" = set; then
3610  CFLAGS=$ac_save_CFLAGS
3611elif test $ac_cv_prog_cc_g = yes; then
3612  if test "$GCC" = yes; then
3613    CFLAGS="-g -O2"
3614  else
3615    CFLAGS="-g"
3616  fi
3617else
3618  if test "$GCC" = yes; then
3619    CFLAGS="-O2"
3620  else
3621    CFLAGS=
3622  fi
3623fi
3624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3625$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3626if ${ac_cv_prog_cc_c89+:} false; then :
3627  $as_echo_n "(cached) " >&6
3628else
3629  ac_cv_prog_cc_c89=no
3630ac_save_CC=$CC
3631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632/* end confdefs.h.  */
3633#include <stdarg.h>
3634#include <stdio.h>
3635struct stat;
3636/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3637struct buf { int x; };
3638FILE * (*rcsopen) (struct buf *, struct stat *, int);
3639static char *e (p, i)
3640     char **p;
3641     int i;
3642{
3643  return p[i];
3644}
3645static char *f (char * (*g) (char **, int), char **p, ...)
3646{
3647  char *s;
3648  va_list v;
3649  va_start (v,p);
3650  s = g (p, va_arg (v,int));
3651  va_end (v);
3652  return s;
3653}
3654
3655/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3656   function prototypes and stuff, but not '\xHH' hex character constants.
3657   These don't provoke an error unfortunately, instead are silently treated
3658   as 'x'.  The following induces an error, until -std is added to get
3659   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3660   array size at least.  It's necessary to write '\x00'==0 to get something
3661   that's true only with -std.  */
3662int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3663
3664/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3665   inside strings and character constants.  */
3666#define FOO(x) 'x'
3667int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3668
3669int test (int i, double x);
3670struct s1 {int (*f) (int a);};
3671struct s2 {int (*f) (double a);};
3672int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3673int argc;
3674char **argv;
3675int
3676main ()
3677{
3678return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3679  ;
3680  return 0;
3681}
3682_ACEOF
3683for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3684	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3685do
3686  CC="$ac_save_CC $ac_arg"
3687  if ac_fn_c_try_compile "$LINENO"; then :
3688  ac_cv_prog_cc_c89=$ac_arg
3689fi
3690rm -f core conftest.err conftest.$ac_objext
3691  test "x$ac_cv_prog_cc_c89" != "xno" && break
3692done
3693rm -f conftest.$ac_ext
3694CC=$ac_save_CC
3695
3696fi
3697# AC_CACHE_VAL
3698case "x$ac_cv_prog_cc_c89" in
3699  x)
3700    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3701$as_echo "none needed" >&6; } ;;
3702  xno)
3703    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3704$as_echo "unsupported" >&6; } ;;
3705  *)
3706    CC="$CC $ac_cv_prog_cc_c89"
3707    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3708$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3709esac
3710if test "x$ac_cv_prog_cc_c89" != xno; then :
3711
3712fi
3713
3714ac_ext=c
3715ac_cpp='$CPP $CPPFLAGS'
3716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719
3720
3721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3722$as_echo_n "checking for dlopen in -ldl... " >&6; }
3723if ${ac_cv_lib_dl_dlopen+:} false; then :
3724  $as_echo_n "(cached) " >&6
3725else
3726  ac_check_lib_save_LIBS=$LIBS
3727LIBS="-ldl  $LIBS"
3728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729/* end confdefs.h.  */
3730
3731/* Override any GCC internal prototype to avoid an error.
3732   Use char because int might match the return type of a GCC
3733   builtin and then its argument prototype would still apply.  */
3734#ifdef __cplusplus
3735extern "C"
3736#endif
3737char dlopen ();
3738int
3739main ()
3740{
3741return dlopen ();
3742  ;
3743  return 0;
3744}
3745_ACEOF
3746if ac_fn_c_try_link "$LINENO"; then :
3747  ac_cv_lib_dl_dlopen=yes
3748else
3749  ac_cv_lib_dl_dlopen=no
3750fi
3751rm -f core conftest.err conftest.$ac_objext \
3752    conftest$ac_exeext conftest.$ac_ext
3753LIBS=$ac_check_lib_save_LIBS
3754fi
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3756$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3757if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3758  DLOPEN_LIB=-ldl
3759fi
3760
3761
3762
3763# Check whether --with-cc was given.
3764if test "${with_cc+set}" = set; then :
3765  withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3766fi
3767
3768
3769# Check whether --with-ccopts was given.
3770if test "${with_ccopts+set}" = set; then :
3771  withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3772fi
3773
3774
3775# Check whether --with-ldopts was given.
3776if test "${with_ldopts+set}" = set; then :
3777  withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3778fi
3779
3780ac_ext=c
3781ac_cpp='$CPP $CPPFLAGS'
3782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3784ac_compiler_gnu=$ac_cv_c_compiler_gnu
3785if test -n "$ac_tool_prefix"; then
3786  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3787set dummy ${ac_tool_prefix}gcc; ac_word=$2
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3789$as_echo_n "checking for $ac_word... " >&6; }
3790if ${ac_cv_prog_CC+:} false; then :
3791  $as_echo_n "(cached) " >&6
3792else
3793  if test -n "$CC"; then
3794  ac_cv_prog_CC="$CC" # Let the user override the test.
3795else
3796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797for as_dir in $PATH
3798do
3799  IFS=$as_save_IFS
3800  test -z "$as_dir" && as_dir=.
3801    for ac_exec_ext in '' $ac_executable_extensions; do
3802  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3803    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3805    break 2
3806  fi
3807done
3808  done
3809IFS=$as_save_IFS
3810
3811fi
3812fi
3813CC=$ac_cv_prog_CC
3814if test -n "$CC"; then
3815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3816$as_echo "$CC" >&6; }
3817else
3818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3819$as_echo "no" >&6; }
3820fi
3821
3822
3823fi
3824if test -z "$ac_cv_prog_CC"; then
3825  ac_ct_CC=$CC
3826  # Extract the first word of "gcc", so it can be a program name with args.
3827set dummy gcc; ac_word=$2
3828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3829$as_echo_n "checking for $ac_word... " >&6; }
3830if ${ac_cv_prog_ac_ct_CC+:} false; then :
3831  $as_echo_n "(cached) " >&6
3832else
3833  if test -n "$ac_ct_CC"; then
3834  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3835else
3836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837for as_dir in $PATH
3838do
3839  IFS=$as_save_IFS
3840  test -z "$as_dir" && as_dir=.
3841    for ac_exec_ext in '' $ac_executable_extensions; do
3842  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3843    ac_cv_prog_ac_ct_CC="gcc"
3844    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3845    break 2
3846  fi
3847done
3848  done
3849IFS=$as_save_IFS
3850
3851fi
3852fi
3853ac_ct_CC=$ac_cv_prog_ac_ct_CC
3854if test -n "$ac_ct_CC"; then
3855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3856$as_echo "$ac_ct_CC" >&6; }
3857else
3858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3859$as_echo "no" >&6; }
3860fi
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
3873else
3874  CC="$ac_cv_prog_CC"
3875fi
3876
3877if test -z "$CC"; then
3878          if test -n "$ac_tool_prefix"; then
3879    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3880set dummy ${ac_tool_prefix}cc; ac_word=$2
3881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3882$as_echo_n "checking for $ac_word... " >&6; }
3883if ${ac_cv_prog_CC+:} false; then :
3884  $as_echo_n "(cached) " >&6
3885else
3886  if test -n "$CC"; then
3887  ac_cv_prog_CC="$CC" # Let the user override the test.
3888else
3889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890for as_dir in $PATH
3891do
3892  IFS=$as_save_IFS
3893  test -z "$as_dir" && as_dir=.
3894    for ac_exec_ext in '' $ac_executable_extensions; do
3895  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896    ac_cv_prog_CC="${ac_tool_prefix}cc"
3897    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3898    break 2
3899  fi
3900done
3901  done
3902IFS=$as_save_IFS
3903
3904fi
3905fi
3906CC=$ac_cv_prog_CC
3907if test -n "$CC"; then
3908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3909$as_echo "$CC" >&6; }
3910else
3911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3912$as_echo "no" >&6; }
3913fi
3914
3915
3916  fi
3917fi
3918if test -z "$CC"; then
3919  # Extract the first word of "cc", so it can be a program name with args.
3920set dummy cc; ac_word=$2
3921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3922$as_echo_n "checking for $ac_word... " >&6; }
3923if ${ac_cv_prog_CC+:} false; then :
3924  $as_echo_n "(cached) " >&6
3925else
3926  if test -n "$CC"; then
3927  ac_cv_prog_CC="$CC" # Let the user override the test.
3928else
3929  ac_prog_rejected=no
3930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931for as_dir in $PATH
3932do
3933  IFS=$as_save_IFS
3934  test -z "$as_dir" && as_dir=.
3935    for ac_exec_ext in '' $ac_executable_extensions; do
3936  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3938       ac_prog_rejected=yes
3939       continue
3940     fi
3941    ac_cv_prog_CC="cc"
3942    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3943    break 2
3944  fi
3945done
3946  done
3947IFS=$as_save_IFS
3948
3949if test $ac_prog_rejected = yes; then
3950  # We found a bogon in the path, so make sure we never use it.
3951  set dummy $ac_cv_prog_CC
3952  shift
3953  if test $# != 0; then
3954    # We chose a different compiler from the bogus one.
3955    # However, it has the same basename, so the bogon will be chosen
3956    # first if we set CC to just the basename; use the full file name.
3957    shift
3958    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3959  fi
3960fi
3961fi
3962fi
3963CC=$ac_cv_prog_CC
3964if test -n "$CC"; then
3965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3966$as_echo "$CC" >&6; }
3967else
3968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969$as_echo "no" >&6; }
3970fi
3971
3972
3973fi
3974if test -z "$CC"; then
3975  if test -n "$ac_tool_prefix"; then
3976  for ac_prog in cl.exe
3977  do
3978    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3979set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981$as_echo_n "checking for $ac_word... " >&6; }
3982if ${ac_cv_prog_CC+:} false; then :
3983  $as_echo_n "(cached) " >&6
3984else
3985  if test -n "$CC"; then
3986  ac_cv_prog_CC="$CC" # Let the user override the test.
3987else
3988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989for as_dir in $PATH
3990do
3991  IFS=$as_save_IFS
3992  test -z "$as_dir" && as_dir=.
3993    for ac_exec_ext in '' $ac_executable_extensions; do
3994  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3995    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3996    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3997    break 2
3998  fi
3999done
4000  done
4001IFS=$as_save_IFS
4002
4003fi
4004fi
4005CC=$ac_cv_prog_CC
4006if test -n "$CC"; then
4007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4008$as_echo "$CC" >&6; }
4009else
4010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011$as_echo "no" >&6; }
4012fi
4013
4014
4015    test -n "$CC" && break
4016  done
4017fi
4018if test -z "$CC"; then
4019  ac_ct_CC=$CC
4020  for ac_prog in cl.exe
4021do
4022  # Extract the first word of "$ac_prog", so it can be a program name with args.
4023set dummy $ac_prog; ac_word=$2
4024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4025$as_echo_n "checking for $ac_word... " >&6; }
4026if ${ac_cv_prog_ac_ct_CC+:} false; then :
4027  $as_echo_n "(cached) " >&6
4028else
4029  if test -n "$ac_ct_CC"; then
4030  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4031else
4032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033for as_dir in $PATH
4034do
4035  IFS=$as_save_IFS
4036  test -z "$as_dir" && as_dir=.
4037    for ac_exec_ext in '' $ac_executable_extensions; do
4038  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4039    ac_cv_prog_ac_ct_CC="$ac_prog"
4040    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4041    break 2
4042  fi
4043done
4044  done
4045IFS=$as_save_IFS
4046
4047fi
4048fi
4049ac_ct_CC=$ac_cv_prog_ac_ct_CC
4050if test -n "$ac_ct_CC"; then
4051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4052$as_echo "$ac_ct_CC" >&6; }
4053else
4054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055$as_echo "no" >&6; }
4056fi
4057
4058
4059  test -n "$ac_ct_CC" && break
4060done
4061
4062  if test "x$ac_ct_CC" = x; then
4063    CC=""
4064  else
4065    case $cross_compiling:$ac_tool_warned in
4066yes:)
4067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4069ac_tool_warned=yes ;;
4070esac
4071    CC=$ac_ct_CC
4072  fi
4073fi
4074
4075fi
4076
4077
4078test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4079$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4080as_fn_error $? "no acceptable C compiler found in \$PATH
4081See \`config.log' for more details" "$LINENO" 5; }
4082
4083# Provide some information about the compiler.
4084$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4085set X $ac_compile
4086ac_compiler=$2
4087for ac_option in --version -v -V -qversion; do
4088  { { ac_try="$ac_compiler $ac_option >&5"
4089case "(($ac_try" in
4090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091  *) ac_try_echo=$ac_try;;
4092esac
4093eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4094$as_echo "$ac_try_echo"; } >&5
4095  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4096  ac_status=$?
4097  if test -s conftest.err; then
4098    sed '10a\
4099... rest of stderr output deleted ...
4100         10q' conftest.err >conftest.er1
4101    cat conftest.er1 >&5
4102  fi
4103  rm -f conftest.er1 conftest.err
4104  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4105  test $ac_status = 0; }
4106done
4107
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4109$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4110if ${ac_cv_c_compiler_gnu+:} false; then :
4111  $as_echo_n "(cached) " >&6
4112else
4113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114/* end confdefs.h.  */
4115
4116int
4117main ()
4118{
4119#ifndef __GNUC__
4120       choke me
4121#endif
4122
4123  ;
4124  return 0;
4125}
4126_ACEOF
4127if ac_fn_c_try_compile "$LINENO"; then :
4128  ac_compiler_gnu=yes
4129else
4130  ac_compiler_gnu=no
4131fi
4132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133ac_cv_c_compiler_gnu=$ac_compiler_gnu
4134
4135fi
4136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4137$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4138if test $ac_compiler_gnu = yes; then
4139  GCC=yes
4140else
4141  GCC=
4142fi
4143ac_test_CFLAGS=${CFLAGS+set}
4144ac_save_CFLAGS=$CFLAGS
4145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4146$as_echo_n "checking whether $CC accepts -g... " >&6; }
4147if ${ac_cv_prog_cc_g+:} false; then :
4148  $as_echo_n "(cached) " >&6
4149else
4150  ac_save_c_werror_flag=$ac_c_werror_flag
4151   ac_c_werror_flag=yes
4152   ac_cv_prog_cc_g=no
4153   CFLAGS="-g"
4154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155/* end confdefs.h.  */
4156
4157int
4158main ()
4159{
4160
4161  ;
4162  return 0;
4163}
4164_ACEOF
4165if ac_fn_c_try_compile "$LINENO"; then :
4166  ac_cv_prog_cc_g=yes
4167else
4168  CFLAGS=""
4169      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170/* end confdefs.h.  */
4171
4172int
4173main ()
4174{
4175
4176  ;
4177  return 0;
4178}
4179_ACEOF
4180if ac_fn_c_try_compile "$LINENO"; then :
4181
4182else
4183  ac_c_werror_flag=$ac_save_c_werror_flag
4184	 CFLAGS="-g"
4185	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186/* end confdefs.h.  */
4187
4188int
4189main ()
4190{
4191
4192  ;
4193  return 0;
4194}
4195_ACEOF
4196if ac_fn_c_try_compile "$LINENO"; then :
4197  ac_cv_prog_cc_g=yes
4198fi
4199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200fi
4201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202fi
4203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204   ac_c_werror_flag=$ac_save_c_werror_flag
4205fi
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4207$as_echo "$ac_cv_prog_cc_g" >&6; }
4208if test "$ac_test_CFLAGS" = set; then
4209  CFLAGS=$ac_save_CFLAGS
4210elif test $ac_cv_prog_cc_g = yes; then
4211  if test "$GCC" = yes; then
4212    CFLAGS="-g -O2"
4213  else
4214    CFLAGS="-g"
4215  fi
4216else
4217  if test "$GCC" = yes; then
4218    CFLAGS="-O2"
4219  else
4220    CFLAGS=
4221  fi
4222fi
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4224$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4225if ${ac_cv_prog_cc_c89+:} false; then :
4226  $as_echo_n "(cached) " >&6
4227else
4228  ac_cv_prog_cc_c89=no
4229ac_save_CC=$CC
4230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231/* end confdefs.h.  */
4232#include <stdarg.h>
4233#include <stdio.h>
4234struct stat;
4235/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4236struct buf { int x; };
4237FILE * (*rcsopen) (struct buf *, struct stat *, int);
4238static char *e (p, i)
4239     char **p;
4240     int i;
4241{
4242  return p[i];
4243}
4244static char *f (char * (*g) (char **, int), char **p, ...)
4245{
4246  char *s;
4247  va_list v;
4248  va_start (v,p);
4249  s = g (p, va_arg (v,int));
4250  va_end (v);
4251  return s;
4252}
4253
4254/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4255   function prototypes and stuff, but not '\xHH' hex character constants.
4256   These don't provoke an error unfortunately, instead are silently treated
4257   as 'x'.  The following induces an error, until -std is added to get
4258   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4259   array size at least.  It's necessary to write '\x00'==0 to get something
4260   that's true only with -std.  */
4261int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4262
4263/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4264   inside strings and character constants.  */
4265#define FOO(x) 'x'
4266int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4267
4268int test (int i, double x);
4269struct s1 {int (*f) (int a);};
4270struct s2 {int (*f) (double a);};
4271int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4272int argc;
4273char **argv;
4274int
4275main ()
4276{
4277return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4278  ;
4279  return 0;
4280}
4281_ACEOF
4282for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4283	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4284do
4285  CC="$ac_save_CC $ac_arg"
4286  if ac_fn_c_try_compile "$LINENO"; then :
4287  ac_cv_prog_cc_c89=$ac_arg
4288fi
4289rm -f core conftest.err conftest.$ac_objext
4290  test "x$ac_cv_prog_cc_c89" != "xno" && break
4291done
4292rm -f conftest.$ac_ext
4293CC=$ac_save_CC
4294
4295fi
4296# AC_CACHE_VAL
4297case "x$ac_cv_prog_cc_c89" in
4298  x)
4299    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4300$as_echo "none needed" >&6; } ;;
4301  xno)
4302    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4303$as_echo "unsupported" >&6; } ;;
4304  *)
4305    CC="$CC $ac_cv_prog_cc_c89"
4306    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4307$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4308esac
4309if test "x$ac_cv_prog_cc_c89" != xno; then :
4310
4311fi
4312
4313ac_ext=c
4314ac_cpp='$CPP $CPPFLAGS'
4315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317ac_compiler_gnu=$ac_cv_c_compiler_gnu
4318
4319if test "$GCC" = yes; then
4320   RDYNAMIC="-rdynamic"
4321
4322fi
4323ac_ext=c
4324ac_cpp='$CPP $CPPFLAGS'
4325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327ac_compiler_gnu=$ac_cv_c_compiler_gnu
4328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4329$as_echo_n "checking how to run the C preprocessor... " >&6; }
4330# On Suns, sometimes $CPP names a directory.
4331if test -n "$CPP" && test -d "$CPP"; then
4332  CPP=
4333fi
4334if test -z "$CPP"; then
4335  if ${ac_cv_prog_CPP+:} false; then :
4336  $as_echo_n "(cached) " >&6
4337else
4338      # Double quotes because CPP needs to be expanded
4339    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4340    do
4341      ac_preproc_ok=false
4342for ac_c_preproc_warn_flag in '' yes
4343do
4344  # Use a header file that comes with gcc, so configuring glibc
4345  # with a fresh cross-compiler works.
4346  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4347  # <limits.h> exists even on freestanding compilers.
4348  # On the NeXT, cc -E runs the code through the compiler's parser,
4349  # not just through cpp. "Syntax error" is here to catch this case.
4350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351/* end confdefs.h.  */
4352#ifdef __STDC__
4353# include <limits.h>
4354#else
4355# include <assert.h>
4356#endif
4357		     Syntax error
4358_ACEOF
4359if ac_fn_c_try_cpp "$LINENO"; then :
4360
4361else
4362  # Broken: fails on valid input.
4363continue
4364fi
4365rm -f conftest.err conftest.i conftest.$ac_ext
4366
4367  # OK, works on sane cases.  Now check whether nonexistent headers
4368  # can be detected and how.
4369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370/* end confdefs.h.  */
4371#include <ac_nonexistent.h>
4372_ACEOF
4373if ac_fn_c_try_cpp "$LINENO"; then :
4374  # Broken: success on invalid input.
4375continue
4376else
4377  # Passes both tests.
4378ac_preproc_ok=:
4379break
4380fi
4381rm -f conftest.err conftest.i conftest.$ac_ext
4382
4383done
4384# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4385rm -f conftest.i conftest.err conftest.$ac_ext
4386if $ac_preproc_ok; then :
4387  break
4388fi
4389
4390    done
4391    ac_cv_prog_CPP=$CPP
4392
4393fi
4394  CPP=$ac_cv_prog_CPP
4395else
4396  ac_cv_prog_CPP=$CPP
4397fi
4398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4399$as_echo "$CPP" >&6; }
4400ac_preproc_ok=false
4401for ac_c_preproc_warn_flag in '' yes
4402do
4403  # Use a header file that comes with gcc, so configuring glibc
4404  # with a fresh cross-compiler works.
4405  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4406  # <limits.h> exists even on freestanding compilers.
4407  # On the NeXT, cc -E runs the code through the compiler's parser,
4408  # not just through cpp. "Syntax error" is here to catch this case.
4409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410/* end confdefs.h.  */
4411#ifdef __STDC__
4412# include <limits.h>
4413#else
4414# include <assert.h>
4415#endif
4416		     Syntax error
4417_ACEOF
4418if ac_fn_c_try_cpp "$LINENO"; then :
4419
4420else
4421  # Broken: fails on valid input.
4422continue
4423fi
4424rm -f conftest.err conftest.i conftest.$ac_ext
4425
4426  # OK, works on sane cases.  Now check whether nonexistent headers
4427  # can be detected and how.
4428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429/* end confdefs.h.  */
4430#include <ac_nonexistent.h>
4431_ACEOF
4432if ac_fn_c_try_cpp "$LINENO"; then :
4433  # Broken: success on invalid input.
4434continue
4435else
4436  # Passes both tests.
4437ac_preproc_ok=:
4438break
4439fi
4440rm -f conftest.err conftest.i conftest.$ac_ext
4441
4442done
4443# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4444rm -f conftest.i conftest.err conftest.$ac_ext
4445if $ac_preproc_ok; then :
4446
4447else
4448  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4450as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4451See \`config.log' for more details" "$LINENO" 5; }
4452fi
4453
4454ac_ext=c
4455ac_cpp='$CPP $CPPFLAGS'
4456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4458ac_compiler_gnu=$ac_cv_c_compiler_gnu
4459
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4461$as_echo_n "checking for additional special compiler flags... " >&6; }
4462if test "$GCC" = yes
4463then
4464    case "$host_cpu" in
4465	alpha)		addcflags="-mieee" ;;
4466    esac
4467fi
4468if test "x$addcflags" != x
4469then
4470    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4471$as_echo "$addcflags" >&6; }
4472    CFLAGS="$addcflags $CFLAGS"
4473else
4474    { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4475$as_echo "(none)" >&6; }
4476fi
4477
4478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4479$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4480if ${ac_cv_path_GREP+:} false; then :
4481  $as_echo_n "(cached) " >&6
4482else
4483  if test -z "$GREP"; then
4484  ac_path_GREP_found=false
4485  # Loop through the user's path and test for each of PROGNAME-LIST
4486  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4488do
4489  IFS=$as_save_IFS
4490  test -z "$as_dir" && as_dir=.
4491    for ac_prog in grep ggrep; do
4492    for ac_exec_ext in '' $ac_executable_extensions; do
4493      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4494      as_fn_executable_p "$ac_path_GREP" || continue
4495# Check for GNU ac_path_GREP and select it if it is found.
4496  # Check for GNU $ac_path_GREP
4497case `"$ac_path_GREP" --version 2>&1` in
4498*GNU*)
4499  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4500*)
4501  ac_count=0
4502  $as_echo_n 0123456789 >"conftest.in"
4503  while :
4504  do
4505    cat "conftest.in" "conftest.in" >"conftest.tmp"
4506    mv "conftest.tmp" "conftest.in"
4507    cp "conftest.in" "conftest.nl"
4508    $as_echo 'GREP' >> "conftest.nl"
4509    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4510    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4511    as_fn_arith $ac_count + 1 && ac_count=$as_val
4512    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4513      # Best one so far, save it but keep looking for a better one
4514      ac_cv_path_GREP="$ac_path_GREP"
4515      ac_path_GREP_max=$ac_count
4516    fi
4517    # 10*(2^10) chars as input seems more than enough
4518    test $ac_count -gt 10 && break
4519  done
4520  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4521esac
4522
4523      $ac_path_GREP_found && break 3
4524    done
4525  done
4526  done
4527IFS=$as_save_IFS
4528  if test -z "$ac_cv_path_GREP"; then
4529    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4530  fi
4531else
4532  ac_cv_path_GREP=$GREP
4533fi
4534
4535fi
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4537$as_echo "$ac_cv_path_GREP" >&6; }
4538 GREP="$ac_cv_path_GREP"
4539
4540
4541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4542$as_echo_n "checking for egrep... " >&6; }
4543if ${ac_cv_path_EGREP+:} false; then :
4544  $as_echo_n "(cached) " >&6
4545else
4546  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4547   then ac_cv_path_EGREP="$GREP -E"
4548   else
4549     if test -z "$EGREP"; then
4550  ac_path_EGREP_found=false
4551  # Loop through the user's path and test for each of PROGNAME-LIST
4552  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4554do
4555  IFS=$as_save_IFS
4556  test -z "$as_dir" && as_dir=.
4557    for ac_prog in egrep; do
4558    for ac_exec_ext in '' $ac_executable_extensions; do
4559      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4560      as_fn_executable_p "$ac_path_EGREP" || continue
4561# Check for GNU ac_path_EGREP and select it if it is found.
4562  # Check for GNU $ac_path_EGREP
4563case `"$ac_path_EGREP" --version 2>&1` in
4564*GNU*)
4565  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4566*)
4567  ac_count=0
4568  $as_echo_n 0123456789 >"conftest.in"
4569  while :
4570  do
4571    cat "conftest.in" "conftest.in" >"conftest.tmp"
4572    mv "conftest.tmp" "conftest.in"
4573    cp "conftest.in" "conftest.nl"
4574    $as_echo 'EGREP' >> "conftest.nl"
4575    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4576    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4577    as_fn_arith $ac_count + 1 && ac_count=$as_val
4578    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4579      # Best one so far, save it but keep looking for a better one
4580      ac_cv_path_EGREP="$ac_path_EGREP"
4581      ac_path_EGREP_max=$ac_count
4582    fi
4583    # 10*(2^10) chars as input seems more than enough
4584    test $ac_count -gt 10 && break
4585  done
4586  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4587esac
4588
4589      $ac_path_EGREP_found && break 3
4590    done
4591  done
4592  done
4593IFS=$as_save_IFS
4594  if test -z "$ac_cv_path_EGREP"; then
4595    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4596  fi
4597else
4598  ac_cv_path_EGREP=$EGREP
4599fi
4600
4601   fi
4602fi
4603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4604$as_echo "$ac_cv_path_EGREP" >&6; }
4605 EGREP="$ac_cv_path_EGREP"
4606
4607
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4609$as_echo_n "checking for ANSI C header files... " >&6; }
4610if ${ac_cv_header_stdc+:} false; then :
4611  $as_echo_n "(cached) " >&6
4612else
4613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4614/* end confdefs.h.  */
4615#include <stdlib.h>
4616#include <stdarg.h>
4617#include <string.h>
4618#include <float.h>
4619
4620int
4621main ()
4622{
4623
4624  ;
4625  return 0;
4626}
4627_ACEOF
4628if ac_fn_c_try_compile "$LINENO"; then :
4629  ac_cv_header_stdc=yes
4630else
4631  ac_cv_header_stdc=no
4632fi
4633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634
4635if test $ac_cv_header_stdc = yes; then
4636  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638/* end confdefs.h.  */
4639#include <string.h>
4640
4641_ACEOF
4642if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4643  $EGREP "memchr" >/dev/null 2>&1; then :
4644
4645else
4646  ac_cv_header_stdc=no
4647fi
4648rm -f conftest*
4649
4650fi
4651
4652if test $ac_cv_header_stdc = yes; then
4653  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655/* end confdefs.h.  */
4656#include <stdlib.h>
4657
4658_ACEOF
4659if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4660  $EGREP "free" >/dev/null 2>&1; then :
4661
4662else
4663  ac_cv_header_stdc=no
4664fi
4665rm -f conftest*
4666
4667fi
4668
4669if test $ac_cv_header_stdc = yes; then
4670  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4671  if test "$cross_compiling" = yes; then :
4672  :
4673else
4674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675/* end confdefs.h.  */
4676#include <ctype.h>
4677#include <stdlib.h>
4678#if ((' ' & 0x0FF) == 0x020)
4679# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4680# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4681#else
4682# define ISLOWER(c) \
4683		   (('a' <= (c) && (c) <= 'i') \
4684		     || ('j' <= (c) && (c) <= 'r') \
4685		     || ('s' <= (c) && (c) <= 'z'))
4686# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4687#endif
4688
4689#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4690int
4691main ()
4692{
4693  int i;
4694  for (i = 0; i < 256; i++)
4695    if (XOR (islower (i), ISLOWER (i))
4696	|| toupper (i) != TOUPPER (i))
4697      return 2;
4698  return 0;
4699}
4700_ACEOF
4701if ac_fn_c_try_run "$LINENO"; then :
4702
4703else
4704  ac_cv_header_stdc=no
4705fi
4706rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4707  conftest.$ac_objext conftest.beam conftest.$ac_ext
4708fi
4709
4710fi
4711fi
4712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4713$as_echo "$ac_cv_header_stdc" >&6; }
4714if test $ac_cv_header_stdc = yes; then
4715
4716$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4717
4718fi
4719
4720# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4721for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4722		  inttypes.h stdint.h unistd.h
4723do :
4724  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4725ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4726"
4727if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4728  cat >>confdefs.h <<_ACEOF
4729#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4730_ACEOF
4731
4732fi
4733
4734done
4735
4736
4737
4738  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4739if test "x$ac_cv_header_minix_config_h" = xyes; then :
4740  MINIX=yes
4741else
4742  MINIX=
4743fi
4744
4745
4746  if test "$MINIX" = yes; then
4747
4748$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4749
4750
4751$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4752
4753
4754$as_echo "#define _MINIX 1" >>confdefs.h
4755
4756  fi
4757
4758
4759  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4760$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4761if ${ac_cv_safe_to_define___extensions__+:} false; then :
4762  $as_echo_n "(cached) " >&6
4763else
4764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765/* end confdefs.h.  */
4766
4767#         define __EXTENSIONS__ 1
4768          $ac_includes_default
4769int
4770main ()
4771{
4772
4773  ;
4774  return 0;
4775}
4776_ACEOF
4777if ac_fn_c_try_compile "$LINENO"; then :
4778  ac_cv_safe_to_define___extensions__=yes
4779else
4780  ac_cv_safe_to_define___extensions__=no
4781fi
4782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783fi
4784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4785$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4786  test $ac_cv_safe_to_define___extensions__ = yes &&
4787    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4788
4789  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4790
4791  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4792
4793  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4794
4795  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4796
4797
4798LIB_EXT=.a
4799STATIC_LIB_EXT=.a
4800PROFILED_LIB_EXT=.a
4801
4802# Check whether --with-root-prefix was given.
4803if test "${with_root_prefix+set}" = set; then :
4804  withval=$with_root_prefix; root_prefix=$withval
4805else
4806  root_prefix=NONE
4807fi
4808# Check whether --enable-maintainer-mode was given.
4809if test "${enable_maintainer_mode+set}" = set; then :
4810  enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4811then
4812	MAINTAINER_CMT=#
4813	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4814$as_echo "Disabling maintainer mode" >&6; }
4815else
4816	MAINTAINER_CMT=
4817	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4818$as_echo "Enabling maintainer mode" >&6; }
4819fi
4820
4821else
4822  MAINTAINER_CMT=#
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4824$as_echo "Disabling maintainer mode by default" >&6; }
4825
4826fi
4827
4828
4829# Check whether --enable-symlink-install was given.
4830if test "${enable_symlink_install+set}" = set; then :
4831  enableval=$enable_symlink_install; if test "$enableval" = "no"
4832then
4833	LINK_INSTALL_FLAGS=-f
4834	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4835$as_echo "Disabling symlinks for install" >&6; }
4836else
4837	LINK_INSTALL_FLAGS=-sf
4838	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4839$as_echo "Enabling symlinks for install" >&6; }
4840fi
4841
4842else
4843  LINK_INSTALL_FLAGS=-f
4844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4845$as_echo "Disabling symlinks for install by default" >&6; }
4846
4847fi
4848
4849
4850relative_symlink_defined=
4851# Check whether --enable-relative-symlinks was given.
4852if test "${enable_relative_symlinks+set}" = set; then :
4853  enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4854then
4855	SYMLINK_RELATIVE=
4856	relative_symlink_defined=yes
4857	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4858$as_echo "Disabling relative symlinks for install" >&6; }
4859else
4860	SYMLINK_RELATIVE=--relative
4861	relative_symlink_defined=yes
4862	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4863$as_echo "Enabling relative symlinks for install" >&6; }
4864fi
4865fi
4866
4867# Check whether --enable-symlink-relative-symlinks was given.
4868if test "${enable_symlink_relative_symlinks+set}" = set; then :
4869  enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4870then
4871	SYMLINK_RELATIVE=yes
4872	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4873$as_echo "Disabling relative symlinks for install" >&6; }
4874else
4875	SYMLINK_RELATIVE=--relative
4876	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4877$as_echo "Enabling relative symlinks for install" >&6; }
4878fi
4879
4880else
4881  if test -z "$relative_symlink_defined"
4882then
4883	SYMLINK_RELATIVE=
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4885$as_echo "Disabling relative symlinks for install by default" >&6; }
4886fi
4887
4888fi
4889
4890
4891# Check whether --enable-symlink-build was given.
4892if test "${enable_symlink_build+set}" = set; then :
4893  enableval=$enable_symlink_build; if test "$enableval" = "no"
4894then
4895	LINK_BUILD_FLAGS=
4896	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4897$as_echo "Disabling symlinks for build" >&6; }
4898else
4899	LINK_BUILD_FLAGS=-s
4900	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4901$as_echo "Enabling symlinks for build" >&6; }
4902fi
4903
4904else
4905  LINK_BUILD_FLAGS=
4906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4907$as_echo "Disabling symlinks for build by default" >&6; }
4908
4909fi
4910
4911
4912# Check whether --enable-verbose-makecmds was given.
4913if test "${enable_verbose_makecmds+set}" = set; then :
4914  enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4915then
4916	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4917$as_echo "Disabling verbose make commands" >&6; }
4918	E=@echo
4919	ES=echo
4920	Q=@
4921else
4922	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4923$as_echo "Enabling verbose make commands" >&6; }
4924	E=@\\#
4925	ES=\\#
4926	Q=
4927fi
4928
4929else
4930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4931$as_echo "Disabling verbose make commands" >&6; }
4932E=@echo
4933ES=echo
4934Q=@
4935
4936fi
4937
4938
4939
4940
4941E2_PKG_CONFIG_STATIC=--static
4942LDFLAG_DYNAMIC=
4943PRIVATE_LIBS_CMT=
4944# Check whether --enable-elf-shlibs was given.
4945if test "${enable_elf_shlibs+set}" = set; then :
4946  enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4947then
4948	ELF_CMT=#
4949	MAKEFILE_ELF=/dev/null
4950	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4951$as_echo "Disabling ELF shared libraries" >&6; }
4952else
4953	E2_PKG_CONFIG_STATIC=
4954	ELF_CMT=
4955	MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4956	case "$host_os" in
4957	solaris2.*)
4958		MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4959	;;
4960	esac
4961	BINARY_TYPE=elfbin
4962	LIB_EXT=.so
4963	PRIVATE_LIBS_CMT=#
4964	LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4965	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4966$as_echo "Enabling ELF shared libraries" >&6; }
4967fi
4968
4969else
4970  MAKEFILE_ELF=/dev/null
4971ELF_CMT=#
4972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4973$as_echo "Disabling ELF shared libraries by default" >&6; }
4974
4975fi
4976
4977
4978
4979# Check whether --enable-bsd-shlibs was given.
4980if test "${enable_bsd_shlibs+set}" = set; then :
4981  enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4982then
4983	BSDLIB_CMT=#
4984	MAKEFILE_BSDLIB=/dev/null
4985	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4986$as_echo "Disabling BSD shared libraries" >&6; }
4987else
4988	E2_PKG_CONFIG_STATIC=
4989	BSDLIB_CMT=
4990	MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4991	LIB_EXT=.so
4992	case "$host_os" in
4993	darwin*)
4994		MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4995		LIB_EXT=.dylib
4996	;;
4997	esac
4998	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4999$as_echo "Enabling BSD shared libraries" >&6; }
5000fi
5001
5002else
5003  MAKEFILE_BSDLIB=/dev/null
5004BSDLIB_CMT=#
5005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5006$as_echo "Disabling BSD shared libraries by default" >&6; }
5007
5008fi
5009
5010
5011
5012# Check whether --enable-profile was given.
5013if test "${enable_profile+set}" = set; then :
5014  enableval=$enable_profile; if test "$enableval" = "no"
5015then
5016	PROFILE_CMT=#
5017	MAKEFILE_PROFILE=/dev/null
5018	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5019$as_echo "Disabling profiling libraries" >&6; }
5020else
5021	PROFILE_CMT=
5022	MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5023	PROFILED_LIB_EXT=_p.a
5024	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5025$as_echo "Building profiling libraries" >&6; }
5026fi
5027
5028else
5029  PROFILE_CMT=#
5030MAKEFILE_PROFILE=/dev/null
5031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5032$as_echo "Disabling profiling libraries by default" >&6; }
5033
5034fi
5035
5036
5037
5038# Check whether --enable-gcov was given.
5039if test "${enable_gcov+set}" = set; then :
5040  enableval=$enable_gcov; if test "$enableval" = "yes"
5041then
5042	CFLAGS="-g -fprofile-arcs -ftest-coverage"
5043	LDFLAGS="-fprofile-arcs -ftest-coverage"
5044	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5045$as_echo "Enabling gcov support" >&6; }
5046fi
5047
5048fi
5049
5050CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5051CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5052LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5053LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5054# Check whether --enable-hardening was given.
5055if test "${enable_hardening+set}" = set; then :
5056  enableval=$enable_hardening; if test "$enableval" = "yes"
5057then
5058	HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5059	HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5060	CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5061	CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5062	CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5063	LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5064	LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5065	LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5066	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5067$as_echo "Enabling hardening support" >&6; }
5068fi
5069
5070fi
5071
5072
5073
5074
5075
5076
5077# Check whether --enable-jbd-debug was given.
5078if test "${enable_jbd_debug+set}" = set; then :
5079  enableval=$enable_jbd_debug; if test "$enableval" = "no"
5080then
5081	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5082$as_echo "Disabling journal debugging" >&6; }
5083else
5084
5085$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5086
5087	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5088$as_echo "Enabling journal debugging" >&6; }
5089fi
5090
5091else
5092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5093$as_echo "Disabling journal debugging by default" >&6; }
5094
5095fi
5096
5097# Check whether --enable-blkid-debug was given.
5098if test "${enable_blkid_debug+set}" = set; then :
5099  enableval=$enable_blkid_debug; if test "$enableval" = "no"
5100then
5101	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5102$as_echo "Disabling blkid debugging" >&6; }
5103else
5104
5105$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5106
5107	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5108$as_echo "Enabling blkid debugging" >&6; }
5109fi
5110
5111else
5112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5113$as_echo "Disabling blkid debugging by default" >&6; }
5114
5115fi
5116
5117# Check whether --enable-testio-debug was given.
5118if test "${enable_testio_debug+set}" = set; then :
5119  enableval=$enable_testio_debug;
5120if test "$enableval" = "no"
5121then
5122	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5123$as_echo "Disabling testio debugging" >&6; }
5124	TEST_IO_CMT="#"
5125else
5126	TEST_IO_CMT=
5127	$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5128
5129	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5130$as_echo "Enabling testio debugging" >&6; }
5131fi
5132
5133else
5134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5135$as_echo "Enabling testio debugging by default" >&6; }
5136$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5137
5138TEST_IO_CMT=
5139
5140fi
5141
5142
5143# Check whether --enable-developer-features was given.
5144if test "${enable_developer_features+set}" = set; then :
5145  enableval=$enable_developer_features;
5146if test "$enableval" = "yes"
5147then
5148	DEV_FEATURES_CMT=
5149	$as_echo "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h
5150
5151	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5
5152$as_echo "Enabling ext4 developer features" >&6; }
5153else
5154	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5
5155$as_echo "Disabling ext4 developer features" >&6; }
5156	DEV_FEATURES_CMT="#"
5157fi
5158
5159else
5160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5
5161$as_echo "Disabling ext4 developer features by default" >&6; }
5162DEV_FEATURES_CMT=
5163
5164fi
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5175	if test -n "$ac_tool_prefix"; then
5176  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5177set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5179$as_echo_n "checking for $ac_word... " >&6; }
5180if ${ac_cv_path_PKG_CONFIG+:} false; then :
5181  $as_echo_n "(cached) " >&6
5182else
5183  case $PKG_CONFIG in
5184  [\\/]* | ?:[\\/]*)
5185  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5186  ;;
5187  *)
5188  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189for as_dir in $PATH
5190do
5191  IFS=$as_save_IFS
5192  test -z "$as_dir" && as_dir=.
5193    for ac_exec_ext in '' $ac_executable_extensions; do
5194  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197    break 2
5198  fi
5199done
5200  done
5201IFS=$as_save_IFS
5202
5203  ;;
5204esac
5205fi
5206PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5207if test -n "$PKG_CONFIG"; then
5208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5209$as_echo "$PKG_CONFIG" >&6; }
5210else
5211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212$as_echo "no" >&6; }
5213fi
5214
5215
5216fi
5217if test -z "$ac_cv_path_PKG_CONFIG"; then
5218  ac_pt_PKG_CONFIG=$PKG_CONFIG
5219  # Extract the first word of "pkg-config", so it can be a program name with args.
5220set dummy pkg-config; ac_word=$2
5221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222$as_echo_n "checking for $ac_word... " >&6; }
5223if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5224  $as_echo_n "(cached) " >&6
5225else
5226  case $ac_pt_PKG_CONFIG in
5227  [\\/]* | ?:[\\/]*)
5228  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5229  ;;
5230  *)
5231  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232for as_dir in $PATH
5233do
5234  IFS=$as_save_IFS
5235  test -z "$as_dir" && as_dir=.
5236    for ac_exec_ext in '' $ac_executable_extensions; do
5237  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5239    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240    break 2
5241  fi
5242done
5243  done
5244IFS=$as_save_IFS
5245
5246  ;;
5247esac
5248fi
5249ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5250if test -n "$ac_pt_PKG_CONFIG"; then
5251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5252$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5253else
5254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5255$as_echo "no" >&6; }
5256fi
5257
5258  if test "x$ac_pt_PKG_CONFIG" = x; then
5259    PKG_CONFIG=""
5260  else
5261    case $cross_compiling:$ac_tool_warned in
5262yes:)
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5265ac_tool_warned=yes ;;
5266esac
5267    PKG_CONFIG=$ac_pt_PKG_CONFIG
5268  fi
5269else
5270  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5271fi
5272
5273fi
5274if test -n "$PKG_CONFIG"; then
5275	_pkg_min_version=0.9.0
5276	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5277$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5278	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5279		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5280$as_echo "yes" >&6; }
5281	else
5282		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283$as_echo "no" >&6; }
5284		PKG_CONFIG=""
5285	fi
5286fi
5287LIBUUID=
5288DEPLIBUUID=
5289STATIC_LIBUUID=
5290DEPSTATIC_LIBUUID=
5291PROFILED_LIBUUID=
5292DEPPROFILED_LIBUUID=
5293UUID_CMT=
5294# Check whether --enable-libuuid was given.
5295if test "${enable_libuuid+set}" = set; then :
5296  enableval=$enable_libuuid; if test "$enableval" = "no"
5297then
5298	if test -z "$PKG_CONFIG"; then
5299		as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5300	fi
5301
5302	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5303$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5304if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5305  $as_echo_n "(cached) " >&6
5306else
5307  ac_check_lib_save_LIBS=$LIBS
5308LIBS="-luuid  $LIBS"
5309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310/* end confdefs.h.  */
5311
5312/* Override any GCC internal prototype to avoid an error.
5313   Use char because int might match the return type of a GCC
5314   builtin and then its argument prototype would still apply.  */
5315#ifdef __cplusplus
5316extern "C"
5317#endif
5318char uuid_generate ();
5319int
5320main ()
5321{
5322return uuid_generate ();
5323  ;
5324  return 0;
5325}
5326_ACEOF
5327if ac_fn_c_try_link "$LINENO"; then :
5328  ac_cv_lib_uuid_uuid_generate=yes
5329else
5330  ac_cv_lib_uuid_uuid_generate=no
5331fi
5332rm -f core conftest.err conftest.$ac_objext \
5333    conftest$ac_exeext conftest.$ac_ext
5334LIBS=$ac_check_lib_save_LIBS
5335fi
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5337$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5338if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5339  LIBUUID=`$PKG_CONFIG --libs uuid`;
5340		 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5341else
5342  as_fn_error $? "external uuid library not found" "$LINENO" 5
5343fi
5344
5345	PROFILED_LIBUUID=$LIBUUID
5346	UUID_CMT=#
5347	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5348$as_echo "Disabling private uuid library" >&6; }
5349else
5350	LIBUUID='$(LIB)/libuuid'$LIB_EXT
5351	DEPLIBUUID=$LIBUUID
5352	STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5353	DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5354	PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5355	DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5356	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5357$as_echo "Enabling private uuid library" >&6; }
5358fi
5359
5360else
5361  if test -n "$PKG_CONFIG"; then
5362	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5363$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5364if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5365  $as_echo_n "(cached) " >&6
5366else
5367  ac_check_lib_save_LIBS=$LIBS
5368LIBS="-luuid  $LIBS"
5369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370/* end confdefs.h.  */
5371
5372/* Override any GCC internal prototype to avoid an error.
5373   Use char because int might match the return type of a GCC
5374   builtin and then its argument prototype would still apply.  */
5375#ifdef __cplusplus
5376extern "C"
5377#endif
5378char uuid_generate ();
5379int
5380main ()
5381{
5382return uuid_generate ();
5383  ;
5384  return 0;
5385}
5386_ACEOF
5387if ac_fn_c_try_link "$LINENO"; then :
5388  ac_cv_lib_uuid_uuid_generate=yes
5389else
5390  ac_cv_lib_uuid_uuid_generate=no
5391fi
5392rm -f core conftest.err conftest.$ac_objext \
5393    conftest$ac_exeext conftest.$ac_ext
5394LIBS=$ac_check_lib_save_LIBS
5395fi
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5397$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5398if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5399  LIBUUID=`$PKG_CONFIG --libs uuid`;
5400		 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5401fi
5402
5403fi
5404if test -n "$LIBUUID"; then
5405	PROFILED_LIBUUID=$LIBUUID
5406	UUID_CMT=#
5407	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5408$as_echo "Using system uuid by default" >&6; }
5409else
5410	LIBUUID='$(LIB)/libuuid'$LIB_EXT
5411	DEPLIBUUID=$LIBUUID
5412	STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5413	DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5414	PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5415	DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5416	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5417$as_echo "Enabling private uuid library by default" >&6; }
5418fi
5419
5420fi
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5437	if test -n "$ac_tool_prefix"; then
5438  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5439set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5441$as_echo_n "checking for $ac_word... " >&6; }
5442if ${ac_cv_path_PKG_CONFIG+:} false; then :
5443  $as_echo_n "(cached) " >&6
5444else
5445  case $PKG_CONFIG in
5446  [\\/]* | ?:[\\/]*)
5447  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5448  ;;
5449  *)
5450  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451for as_dir in $PATH
5452do
5453  IFS=$as_save_IFS
5454  test -z "$as_dir" && as_dir=.
5455    for ac_exec_ext in '' $ac_executable_extensions; do
5456  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5457    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5458    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459    break 2
5460  fi
5461done
5462  done
5463IFS=$as_save_IFS
5464
5465  ;;
5466esac
5467fi
5468PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5469if test -n "$PKG_CONFIG"; then
5470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5471$as_echo "$PKG_CONFIG" >&6; }
5472else
5473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474$as_echo "no" >&6; }
5475fi
5476
5477
5478fi
5479if test -z "$ac_cv_path_PKG_CONFIG"; then
5480  ac_pt_PKG_CONFIG=$PKG_CONFIG
5481  # Extract the first word of "pkg-config", so it can be a program name with args.
5482set dummy pkg-config; ac_word=$2
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484$as_echo_n "checking for $ac_word... " >&6; }
5485if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5486  $as_echo_n "(cached) " >&6
5487else
5488  case $ac_pt_PKG_CONFIG in
5489  [\\/]* | ?:[\\/]*)
5490  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5491  ;;
5492  *)
5493  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494for as_dir in $PATH
5495do
5496  IFS=$as_save_IFS
5497  test -z "$as_dir" && as_dir=.
5498    for ac_exec_ext in '' $ac_executable_extensions; do
5499  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5500    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5501    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502    break 2
5503  fi
5504done
5505  done
5506IFS=$as_save_IFS
5507
5508  ;;
5509esac
5510fi
5511ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5512if test -n "$ac_pt_PKG_CONFIG"; then
5513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5514$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5515else
5516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517$as_echo "no" >&6; }
5518fi
5519
5520  if test "x$ac_pt_PKG_CONFIG" = x; then
5521    PKG_CONFIG=""
5522  else
5523    case $cross_compiling:$ac_tool_warned in
5524yes:)
5525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5527ac_tool_warned=yes ;;
5528esac
5529    PKG_CONFIG=$ac_pt_PKG_CONFIG
5530  fi
5531else
5532  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5533fi
5534
5535fi
5536if test -n "$PKG_CONFIG"; then
5537	_pkg_min_version=0.9.0
5538	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5539$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5540	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5541		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5542$as_echo "yes" >&6; }
5543	else
5544		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545$as_echo "no" >&6; }
5546		PKG_CONFIG=""
5547	fi
5548fi
5549LIBBLKID=
5550DEPLIBBLKID=
5551STATIC_LIBBLKID=
5552DEPSTATIC_LIBBLKID=
5553PROFILED_LIBBLKID=
5554DEPPROFILED_LIBBLKID=
5555BLKID_CMT=
5556
5557# Check whether --enable-libblkid was given.
5558if test "${enable_libblkid+set}" = set; then :
5559  enableval=$enable_libblkid; if test "$enableval" = "no"
5560then
5561	if test -z "$PKG_CONFIG"; then
5562		as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5563	fi
5564
5565	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5566$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5567if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5568  $as_echo_n "(cached) " >&6
5569else
5570  ac_check_lib_save_LIBS=$LIBS
5571LIBS="-lblkid -luuid $LIBS"
5572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573/* end confdefs.h.  */
5574
5575/* Override any GCC internal prototype to avoid an error.
5576   Use char because int might match the return type of a GCC
5577   builtin and then its argument prototype would still apply.  */
5578#ifdef __cplusplus
5579extern "C"
5580#endif
5581char blkid_get_cache ();
5582int
5583main ()
5584{
5585return blkid_get_cache ();
5586  ;
5587  return 0;
5588}
5589_ACEOF
5590if ac_fn_c_try_link "$LINENO"; then :
5591  ac_cv_lib_blkid_blkid_get_cache=yes
5592else
5593  ac_cv_lib_blkid_blkid_get_cache=no
5594fi
5595rm -f core conftest.err conftest.$ac_objext \
5596    conftest$ac_exeext conftest.$ac_ext
5597LIBS=$ac_check_lib_save_LIBS
5598fi
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5600$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5601if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5602  LIBBLKID=`$PKG_CONFIG --libs blkid`;
5603		 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5604else
5605  as_fn_error $? "external blkid library not found" "$LINENO" 5
5606fi
5607
5608	BLKID_CMT=#
5609	PROFILED_LIBBLKID=$LIBBLKID
5610	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5611$as_echo "Disabling private blkid library" >&6; }
5612else
5613	LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5614	DEPLIBBLKID=$LIBBLKID
5615	STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5616	DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5617	PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5618	DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5619	$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5620
5621	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5622$as_echo "Enabling private blkid library" >&6; }
5623fi
5624
5625else
5626  if test -n "$PKG_CONFIG"; then
5627	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5628$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5629if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5630  $as_echo_n "(cached) " >&6
5631else
5632  ac_check_lib_save_LIBS=$LIBS
5633LIBS="-lblkid  $LIBS"
5634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635/* end confdefs.h.  */
5636
5637/* Override any GCC internal prototype to avoid an error.
5638   Use char because int might match the return type of a GCC
5639   builtin and then its argument prototype would still apply.  */
5640#ifdef __cplusplus
5641extern "C"
5642#endif
5643char blkid_get_cache ();
5644int
5645main ()
5646{
5647return blkid_get_cache ();
5648  ;
5649  return 0;
5650}
5651_ACEOF
5652if ac_fn_c_try_link "$LINENO"; then :
5653  ac_cv_lib_blkid_blkid_get_cache=yes
5654else
5655  ac_cv_lib_blkid_blkid_get_cache=no
5656fi
5657rm -f core conftest.err conftest.$ac_objext \
5658    conftest$ac_exeext conftest.$ac_ext
5659LIBS=$ac_check_lib_save_LIBS
5660fi
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5662$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5663if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5664  LIBBLKID=`$PKG_CONFIG --libs blkid`;
5665		 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5666fi
5667
5668fi
5669if test -n "$LIBBLKID"; then
5670	BLKID_CMT=#
5671	PROFILED_LIBBLKID=$LIBBLKID
5672	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5673$as_echo "Using system blkid library by default" >&6; }
5674else
5675	LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5676	DEPLIBBLKID=$LIBBLKID
5677	STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5678	DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5679	PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5680	DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5681	$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5682
5683	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5684$as_echo "Enabling private blkid library by default" >&6; }
5685fi
5686
5687fi
5688
5689
5690
5691
5692
5693
5694
5695
5696ALL_CMT=
5697SUBSET_CMT=
5698# Check whether --enable-subset was given.
5699if test "${enable_subset+set}" = set; then :
5700  enableval=$enable_subset; if test "$enableval" = "no"
5701then
5702	SUBSET_CMT=#
5703	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
5704$as_echo "Disabling subset-only build" >&6; }
5705else
5706	ALL_CMT=#
5707	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
5708$as_echo "Enabling subset-only-build" >&6; }
5709fi
5710
5711fi
5712
5713
5714
5715
5716# Check whether --enable-backtrace was given.
5717if test "${enable_backtrace+set}" = set; then :
5718  enableval=$enable_backtrace; if test "$enableval" = "no"
5719then
5720	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5721$as_echo "Disabling use of backtrace" >&6; }
5722	$as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5723
5724else
5725	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5726$as_echo "Enabling use of backtrace" >&6; }
5727fi
5728
5729else
5730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5731$as_echo "Enabling use of backtrace by default" >&6; }
5732
5733fi
5734
5735# Check whether --enable-debugfs was given.
5736if test "${enable_debugfs+set}" = set; then :
5737  enableval=$enable_debugfs; if test "$enableval" = "no"
5738then
5739	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5740$as_echo "Disabling debugfs support" >&6; }
5741	DEBUGFS_CMT="#"
5742else
5743	DEBUGFS_CMT=
5744	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5745$as_echo "Enabling debugfs support" >&6; }
5746fi
5747
5748else
5749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5750$as_echo "Enabling debugfs support by default" >&6; }
5751DEBUGFS_CMT=
5752
5753fi
5754
5755
5756# Check whether --enable-imager was given.
5757if test "${enable_imager+set}" = set; then :
5758  enableval=$enable_imager; if test "$enableval" = "no"
5759then
5760	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5761$as_echo "Disabling e2image support" >&6; }
5762	IMAGER_CMT="#"
5763else
5764	IMAGER_CMT=
5765	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5766$as_echo "Enabling e2image support" >&6; }
5767fi
5768
5769else
5770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5771$as_echo "Enabling e2image support by default" >&6; }
5772IMAGER_CMT=
5773
5774fi
5775
5776
5777# Check whether --enable-resizer was given.
5778if test "${enable_resizer+set}" = set; then :
5779  enableval=$enable_resizer; if test "$enableval" = "no"
5780then
5781	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5782$as_echo "Disabling e2resize support" >&6; }
5783	RESIZER_CMT="#"
5784else
5785	RESIZER_CMT=
5786	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5787$as_echo "Enabling e2resize support" >&6; }
5788fi
5789
5790else
5791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5792$as_echo "Enabling e2resize support by default" >&6; }
5793RESIZER_CMT=
5794
5795fi
5796
5797
5798# Check whether --enable-defrag was given.
5799if test "${enable_defrag+set}" = set; then :
5800  enableval=$enable_defrag; if test "$enableval" = "no"
5801then
5802	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5803$as_echo "Disabling e4defrag support" >&6; }
5804	DEFRAG_CMT="#"
5805else
5806	DEFRAG_CMT=
5807	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5808$as_echo "Enabling e4defrag support" >&6; }
5809fi
5810
5811else
5812  if test -z "$WITH_DIET_LIBC"
5813then
5814	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5815$as_echo "Enabling e4defrag support by default" >&6; }
5816	DEFRAG_CMT=
5817else
5818	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5819$as_echo "Disabling e4defrag support by default" >&6; }
5820	DEFRAG_CMT="#"
5821fi
5822
5823fi
5824
5825
5826# Check whether --enable-fsck was given.
5827if test "${enable_fsck+set}" = set; then :
5828  enableval=$enable_fsck; if test "$enableval" = "no"
5829then
5830	FSCK_PROG='' FSCK_MAN=''
5831	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5832$as_echo "Not building fsck wrapper" >&6; }
5833else
5834	FSCK_PROG=fsck FSCK_MAN=fsck.8
5835	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5836$as_echo "Building fsck wrapper" >&6; }
5837fi
5838
5839else
5840  case "$host_os" in
5841  gnu*)
5842    FSCK_PROG='' FSCK_MAN=''
5843    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5844$as_echo "Not building fsck wrapper by default" >&6; }
5845    ;;
5846  *)
5847    FSCK_PROG=fsck FSCK_MAN=fsck.8
5848    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5849$as_echo "Building fsck wrapper by default" >&6; }
5850esac
5851
5852fi
5853
5854
5855
5856# Check whether --enable-e2initrd-helper was given.
5857if test "${enable_e2initrd_helper+set}" = set; then :
5858  enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5859then
5860	E2INITRD_PROG='' E2INITRD_MAN=''
5861	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5862$as_echo "Not building e2initrd helper" >&6; }
5863else
5864	E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5865	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5866$as_echo "Building e2initrd helper" >&6; }
5867fi
5868
5869else
5870  E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5872$as_echo "Building e2initrd helper by default" >&6; }
5873
5874fi
5875
5876
5877
5878# Check whether --enable-tls was given.
5879if test "${enable_tls+set}" = set; then :
5880  enableval=$enable_tls; if test "$enableval" = "no"
5881then
5882	try_tls=""
5883	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5884$as_echo "Disabling thread local support" >&6; }
5885else
5886	try_tls="yes"
5887	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5888$as_echo "Enabling thread local support" >&6; }
5889fi
5890
5891else
5892  if test -n "$WITH_DIET_LIBC"
5893then
5894	try_tls=""
5895	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5896$as_echo "Diet libc does not support thread local support" >&6; }
5897else
5898	try_tls="yes"
5899	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5900$as_echo "Try using thread local support by default" >&6; }
5901fi
5902
5903fi
5904
5905if test "$try_tls" = "yes"
5906then
5907
5908  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5909$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5910  if ${ac_cv_tls+:} false; then :
5911  $as_echo_n "(cached) " >&6
5912else
5913
5914    ax_tls_keywords="__thread __declspec(thread) none"
5915    for ax_tls_keyword in $ax_tls_keywords; do
5916       case $ax_tls_keyword in
5917          none) ac_cv_tls=none ; break ;;
5918          *)
5919             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920/* end confdefs.h.  */
5921#include <stdlib.h>
5922                 static void
5923                 foo(void) {
5924                 static  $ax_tls_keyword  int bar;
5925                 exit(1);
5926                 }
5927int
5928main ()
5929{
5930
5931  ;
5932  return 0;
5933}
5934_ACEOF
5935if ac_fn_c_try_compile "$LINENO"; then :
5936  ac_cv_tls=$ax_tls_keyword ; break
5937else
5938  ac_cv_tls=none
5939
5940fi
5941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5942          esac
5943    done
5944
5945fi
5946
5947
5948  if test "$ac_cv_tls" != "none"; then
5949
5950cat >>confdefs.h <<_ACEOF
5951#define TLS $ac_cv_tls
5952_ACEOF
5953
5954  fi
5955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5956$as_echo "$ac_cv_tls" >&6; }
5957
5958fi
5959
5960# Check whether --with-pthread was given.
5961if test "${with_pthread+set}" = set; then :
5962  withval=$with_pthread; if test "$withval" = "no"
5963then
5964	try_pthread=""
5965	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling pthread support" >&5
5966$as_echo "Disabling pthread support" >&6; }
5967else
5968	try_pthread="yes"
5969	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Testing for pthread support" >&5
5970$as_echo "Testing for pthread support" >&6; }
5971fi
5972
5973else
5974  try_pthread="yes"
5975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Try testing for pthread support by default" >&5
5976$as_echo "Try testing for pthread support by default" >&6; }
5977
5978fi
5979
5980if test "$try_pthread" = "yes"
5981then
5982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5983$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5984if ${ac_cv_path_SED+:} false; then :
5985  $as_echo_n "(cached) " >&6
5986else
5987            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5988     for ac_i in 1 2 3 4 5 6 7; do
5989       ac_script="$ac_script$as_nl$ac_script"
5990     done
5991     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5992     { ac_script=; unset ac_script;}
5993     if test -z "$SED"; then
5994  ac_path_SED_found=false
5995  # Loop through the user's path and test for each of PROGNAME-LIST
5996  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997for as_dir in $PATH
5998do
5999  IFS=$as_save_IFS
6000  test -z "$as_dir" && as_dir=.
6001    for ac_prog in sed gsed; do
6002    for ac_exec_ext in '' $ac_executable_extensions; do
6003      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6004      as_fn_executable_p "$ac_path_SED" || continue
6005# Check for GNU ac_path_SED and select it if it is found.
6006  # Check for GNU $ac_path_SED
6007case `"$ac_path_SED" --version 2>&1` in
6008*GNU*)
6009  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6010*)
6011  ac_count=0
6012  $as_echo_n 0123456789 >"conftest.in"
6013  while :
6014  do
6015    cat "conftest.in" "conftest.in" >"conftest.tmp"
6016    mv "conftest.tmp" "conftest.in"
6017    cp "conftest.in" "conftest.nl"
6018    $as_echo '' >> "conftest.nl"
6019    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6020    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6021    as_fn_arith $ac_count + 1 && ac_count=$as_val
6022    if test $ac_count -gt ${ac_path_SED_max-0}; then
6023      # Best one so far, save it but keep looking for a better one
6024      ac_cv_path_SED="$ac_path_SED"
6025      ac_path_SED_max=$ac_count
6026    fi
6027    # 10*(2^10) chars as input seems more than enough
6028    test $ac_count -gt 10 && break
6029  done
6030  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6031esac
6032
6033      $ac_path_SED_found && break 3
6034    done
6035  done
6036  done
6037IFS=$as_save_IFS
6038  if test -z "$ac_cv_path_SED"; then
6039    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6040  fi
6041else
6042  ac_cv_path_SED=$SED
6043fi
6044
6045fi
6046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6047$as_echo "$ac_cv_path_SED" >&6; }
6048 SED="$ac_cv_path_SED"
6049  rm -f conftest.sed
6050
6051
6052
6053
6054
6055ac_ext=c
6056ac_cpp='$CPP $CPPFLAGS'
6057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6059ac_compiler_gnu=$ac_cv_c_compiler_gnu
6060
6061ax_pthread_ok=no
6062
6063# We used to check for pthread.h first, but this fails if pthread.h
6064# requires special compiler flags (e.g. on Tru64 or Sequent).
6065# It gets checked for in the link test anyway.
6066
6067# First of all, check if the user has set any of the PTHREAD_LIBS,
6068# etcetera environment variables, and if threads linking works using
6069# them:
6070if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
6071        ax_pthread_save_CC="$CC"
6072        ax_pthread_save_CFLAGS="$CFLAGS"
6073        ax_pthread_save_LIBS="$LIBS"
6074        if test "x$PTHREAD_CC" != "x"; then :
6075  CC="$PTHREAD_CC"
6076fi
6077        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6078        LIBS="$PTHREAD_LIBS $LIBS"
6079        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
6080$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
6081        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082/* end confdefs.h.  */
6083
6084/* Override any GCC internal prototype to avoid an error.
6085   Use char because int might match the return type of a GCC
6086   builtin and then its argument prototype would still apply.  */
6087#ifdef __cplusplus
6088extern "C"
6089#endif
6090char pthread_join ();
6091int
6092main ()
6093{
6094return pthread_join ();
6095  ;
6096  return 0;
6097}
6098_ACEOF
6099if ac_fn_c_try_link "$LINENO"; then :
6100  ax_pthread_ok=yes
6101fi
6102rm -f core conftest.err conftest.$ac_objext \
6103    conftest$ac_exeext conftest.$ac_ext
6104        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6105$as_echo "$ax_pthread_ok" >&6; }
6106        if test "x$ax_pthread_ok" = "xno"; then
6107                PTHREAD_LIBS=""
6108                PTHREAD_CFLAGS=""
6109        fi
6110        CC="$ax_pthread_save_CC"
6111        CFLAGS="$ax_pthread_save_CFLAGS"
6112        LIBS="$ax_pthread_save_LIBS"
6113fi
6114
6115# We must check for the threads library under a number of different
6116# names; the ordering is very important because some systems
6117# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
6118# libraries is broken (non-POSIX).
6119
6120# Create a list of thread flags to try.  Items starting with a "-" are
6121# C compiler flags, and other items are library names, except for "none"
6122# which indicates that we try without any flags at all, and "pthread-config"
6123# which is a program returning the flags for the Pth emulation library.
6124
6125ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
6126
6127# The ordering *is* (sometimes) important.  Some notes on the
6128# individual items follow:
6129
6130# pthreads: AIX (must check this before -lpthread)
6131# none: in case threads are in libc; should be tried before -Kthread and
6132#       other compiler flags to prevent continual compiler warnings
6133# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
6134# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
6135#           (Note: HP C rejects this with "bad form for `-t' option")
6136# -pthreads: Solaris/gcc (Note: HP C also rejects)
6137# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
6138#      doesn't hurt to check since this sometimes defines pthreads and
6139#      -D_REENTRANT too), HP C (must be checked before -lpthread, which
6140#      is present but should not be used directly; and before -mthreads,
6141#      because the compiler interprets this as "-mt" + "-hreads")
6142# -mthreads: Mingw32/gcc, Lynx/gcc
6143# pthread: Linux, etcetera
6144# --thread-safe: KAI C++
6145# pthread-config: use pthread-config program (for GNU Pth library)
6146
6147case $host_os in
6148
6149        freebsd*)
6150
6151        # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
6152        # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
6153
6154        ax_pthread_flags="-kthread lthread $ax_pthread_flags"
6155        ;;
6156
6157        hpux*)
6158
6159        # From the cc(1) man page: "[-mt] Sets various -D flags to enable
6160        # multi-threading and also sets -lpthread."
6161
6162        ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
6163        ;;
6164
6165        openedition*)
6166
6167        # IBM z/OS requires a feature-test macro to be defined in order to
6168        # enable POSIX threads at all, so give the user a hint if this is
6169        # not set. (We don't define these ourselves, as they can affect
6170        # other portions of the system API in unpredictable ways.)
6171
6172        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173/* end confdefs.h.  */
6174
6175#            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
6176             AX_PTHREAD_ZOS_MISSING
6177#            endif
6178
6179_ACEOF
6180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6181  $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
6182  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
6183$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
6184fi
6185rm -f conftest*
6186
6187        ;;
6188
6189        solaris*)
6190
6191        # On Solaris (at least, for some versions), libc contains stubbed
6192        # (non-functional) versions of the pthreads routines, so link-based
6193        # tests will erroneously succeed. (N.B.: The stubs are missing
6194        # pthread_cleanup_push, or rather a function called by this macro,
6195        # so we could check for that, but who knows whether they'll stub
6196        # that too in a future libc.)  So we'll check first for the
6197        # standard Solaris way of linking pthreads (-mt -lpthread).
6198
6199        ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
6200        ;;
6201esac
6202
6203# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
6204
6205if test "x$GCC" = "xyes"; then :
6206  ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
6207fi
6208
6209# The presence of a feature test macro requesting re-entrant function
6210# definitions is, on some systems, a strong hint that pthreads support is
6211# correctly enabled
6212
6213case $host_os in
6214        darwin* | hpux* | linux* | osf* | solaris*)
6215        ax_pthread_check_macro="_REENTRANT"
6216        ;;
6217
6218        aix*)
6219        ax_pthread_check_macro="_THREAD_SAFE"
6220        ;;
6221
6222        *)
6223        ax_pthread_check_macro="--"
6224        ;;
6225esac
6226if test "x$ax_pthread_check_macro" = "x--"; then :
6227  ax_pthread_check_cond=0
6228else
6229  ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
6230fi
6231
6232# Are we compiling with Clang?
6233
6234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
6235$as_echo_n "checking whether $CC is Clang... " >&6; }
6236if ${ax_cv_PTHREAD_CLANG+:} false; then :
6237  $as_echo_n "(cached) " >&6
6238else
6239  ax_cv_PTHREAD_CLANG=no
6240     # Note that Autoconf sets GCC=yes for Clang as well as GCC
6241     if test "x$GCC" = "xyes"; then
6242        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243/* end confdefs.h.  */
6244/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
6245#            if defined(__clang__) && defined(__llvm__)
6246             AX_PTHREAD_CC_IS_CLANG
6247#            endif
6248
6249_ACEOF
6250if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6251  $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
6252  ax_cv_PTHREAD_CLANG=yes
6253fi
6254rm -f conftest*
6255
6256     fi
6257
6258fi
6259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
6260$as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
6261ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
6262
6263ax_pthread_clang_warning=no
6264
6265# Clang needs special handling, because older versions handle the -pthread
6266# option in a rather... idiosyncratic way
6267
6268if test "x$ax_pthread_clang" = "xyes"; then
6269
6270        # Clang takes -pthread; it has never supported any other flag
6271
6272        # (Note 1: This will need to be revisited if a system that Clang
6273        # supports has POSIX threads in a separate library.  This tends not
6274        # to be the way of modern systems, but it's conceivable.)
6275
6276        # (Note 2: On some systems, notably Darwin, -pthread is not needed
6277        # to get POSIX threads support; the API is always present and
6278        # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
6279        # -pthread does define _REENTRANT, and while the Darwin headers
6280        # ignore this macro, third-party headers might not.)
6281
6282        PTHREAD_CFLAGS="-pthread"
6283        PTHREAD_LIBS=
6284
6285        ax_pthread_ok=yes
6286
6287        # However, older versions of Clang make a point of warning the user
6288        # that, in an invocation where only linking and no compilation is
6289        # taking place, the -pthread option has no effect ("argument unused
6290        # during compilation").  They expect -pthread to be passed in only
6291        # when source code is being compiled.
6292        #
6293        # Problem is, this is at odds with the way Automake and most other
6294        # C build frameworks function, which is that the same flags used in
6295        # compilation (CFLAGS) are also used in linking.  Many systems
6296        # supported by AX_PTHREAD require exactly this for POSIX threads
6297        # support, and in fact it is often not straightforward to specify a
6298        # flag that is used only in the compilation phase and not in
6299        # linking.  Such a scenario is extremely rare in practice.
6300        #
6301        # Even though use of the -pthread flag in linking would only print
6302        # a warning, this can be a nuisance for well-run software projects
6303        # that build with -Werror.  So if the active version of Clang has
6304        # this misfeature, we search for an option to squash it.
6305
6306        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
6307$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
6308if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
6309  $as_echo_n "(cached) " >&6
6310else
6311  ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
6312             # Create an alternate version of $ac_link that compiles and
6313             # links in two steps (.c -> .o, .o -> exe) instead of one
6314             # (.c -> exe), because the warning occurs only in the second
6315             # step
6316             ax_pthread_save_ac_link="$ac_link"
6317             ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
6318             ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
6319             ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
6320             ax_pthread_save_CFLAGS="$CFLAGS"
6321             for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
6322                if test "x$ax_pthread_try" = "xunknown"; then :
6323  break
6324fi
6325                CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
6326                ac_link="$ax_pthread_save_ac_link"
6327                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328/* end confdefs.h.  */
6329int main(void){return 0;}
6330_ACEOF
6331if ac_fn_c_try_link "$LINENO"; then :
6332  ac_link="$ax_pthread_2step_ac_link"
6333                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334/* end confdefs.h.  */
6335int main(void){return 0;}
6336_ACEOF
6337if ac_fn_c_try_link "$LINENO"; then :
6338  break
6339fi
6340rm -f core conftest.err conftest.$ac_objext \
6341    conftest$ac_exeext conftest.$ac_ext
6342
6343fi
6344rm -f core conftest.err conftest.$ac_objext \
6345    conftest$ac_exeext conftest.$ac_ext
6346             done
6347             ac_link="$ax_pthread_save_ac_link"
6348             CFLAGS="$ax_pthread_save_CFLAGS"
6349             if test "x$ax_pthread_try" = "x"; then :
6350  ax_pthread_try=no
6351fi
6352             ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
6353
6354fi
6355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
6356$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
6357
6358        case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
6359                no | unknown) ;;
6360                *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
6361        esac
6362
6363fi # $ax_pthread_clang = yes
6364
6365if test "x$ax_pthread_ok" = "xno"; then
6366for ax_pthread_try_flag in $ax_pthread_flags; do
6367
6368        case $ax_pthread_try_flag in
6369                none)
6370                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
6371$as_echo_n "checking whether pthreads work without any flags... " >&6; }
6372                ;;
6373
6374                -mt,pthread)
6375                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
6376$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
6377                PTHREAD_CFLAGS="-mt"
6378                PTHREAD_LIBS="-lpthread"
6379                ;;
6380
6381                -*)
6382                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
6383$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
6384                PTHREAD_CFLAGS="$ax_pthread_try_flag"
6385                ;;
6386
6387                pthread-config)
6388                # Extract the first word of "pthread-config", so it can be a program name with args.
6389set dummy pthread-config; ac_word=$2
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391$as_echo_n "checking for $ac_word... " >&6; }
6392if ${ac_cv_prog_ax_pthread_config+:} false; then :
6393  $as_echo_n "(cached) " >&6
6394else
6395  if test -n "$ax_pthread_config"; then
6396  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
6397else
6398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399for as_dir in $PATH
6400do
6401  IFS=$as_save_IFS
6402  test -z "$as_dir" && as_dir=.
6403    for ac_exec_ext in '' $ac_executable_extensions; do
6404  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6405    ac_cv_prog_ax_pthread_config="yes"
6406    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6407    break 2
6408  fi
6409done
6410  done
6411IFS=$as_save_IFS
6412
6413  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
6414fi
6415fi
6416ax_pthread_config=$ac_cv_prog_ax_pthread_config
6417if test -n "$ax_pthread_config"; then
6418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
6419$as_echo "$ax_pthread_config" >&6; }
6420else
6421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422$as_echo "no" >&6; }
6423fi
6424
6425
6426                if test "x$ax_pthread_config" = "xno"; then :
6427  continue
6428fi
6429                PTHREAD_CFLAGS="`pthread-config --cflags`"
6430                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
6431                ;;
6432
6433                *)
6434                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
6435$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
6436                PTHREAD_LIBS="-l$ax_pthread_try_flag"
6437                ;;
6438        esac
6439
6440        ax_pthread_save_CFLAGS="$CFLAGS"
6441        ax_pthread_save_LIBS="$LIBS"
6442        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6443        LIBS="$PTHREAD_LIBS $LIBS"
6444
6445        # Check for various functions.  We must include pthread.h,
6446        # since some functions may be macros.  (On the Sequent, we
6447        # need a special flag -Kthread to make this header compile.)
6448        # We check for pthread_join because it is in -lpthread on IRIX
6449        # while pthread_create is in libc.  We check for pthread_attr_init
6450        # due to DEC craziness with -lpthreads.  We check for
6451        # pthread_cleanup_push because it is one of the few pthread
6452        # functions on Solaris that doesn't have a non-functional libc stub.
6453        # We try pthread_create on general principles.
6454
6455        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6456/* end confdefs.h.  */
6457#include <pthread.h>
6458#                       if $ax_pthread_check_cond
6459#                        error "$ax_pthread_check_macro must be defined"
6460#                       endif
6461                        static void routine(void *a) { a = 0; }
6462                        static void *start_routine(void *a) { return a; }
6463int
6464main ()
6465{
6466pthread_t th; pthread_attr_t attr;
6467                        pthread_create(&th, 0, start_routine, 0);
6468                        pthread_join(th, 0);
6469                        pthread_attr_init(&attr);
6470                        pthread_cleanup_push(routine, 0);
6471                        pthread_cleanup_pop(0) /* ; */
6472  ;
6473  return 0;
6474}
6475_ACEOF
6476if ac_fn_c_try_link "$LINENO"; then :
6477  ax_pthread_ok=yes
6478fi
6479rm -f core conftest.err conftest.$ac_objext \
6480    conftest$ac_exeext conftest.$ac_ext
6481
6482        CFLAGS="$ax_pthread_save_CFLAGS"
6483        LIBS="$ax_pthread_save_LIBS"
6484
6485        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6486$as_echo "$ax_pthread_ok" >&6; }
6487        if test "x$ax_pthread_ok" = "xyes"; then :
6488  break
6489fi
6490
6491        PTHREAD_LIBS=""
6492        PTHREAD_CFLAGS=""
6493done
6494fi
6495
6496# Various other checks:
6497if test "x$ax_pthread_ok" = "xyes"; then
6498        ax_pthread_save_CFLAGS="$CFLAGS"
6499        ax_pthread_save_LIBS="$LIBS"
6500        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6501        LIBS="$PTHREAD_LIBS $LIBS"
6502
6503        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
6504        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
6505$as_echo_n "checking for joinable pthread attribute... " >&6; }
6506if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
6507  $as_echo_n "(cached) " >&6
6508else
6509  ax_cv_PTHREAD_JOINABLE_ATTR=unknown
6510             for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
6511                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512/* end confdefs.h.  */
6513#include <pthread.h>
6514int
6515main ()
6516{
6517int attr = $ax_pthread_attr; return attr /* ; */
6518  ;
6519  return 0;
6520}
6521_ACEOF
6522if ac_fn_c_try_link "$LINENO"; then :
6523  ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
6524fi
6525rm -f core conftest.err conftest.$ac_objext \
6526    conftest$ac_exeext conftest.$ac_ext
6527             done
6528
6529fi
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
6531$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
6532        if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
6533               test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
6534               test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
6535
6536cat >>confdefs.h <<_ACEOF
6537#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
6538_ACEOF
6539
6540               ax_pthread_joinable_attr_defined=yes
6541
6542fi
6543
6544        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
6545$as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
6546if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
6547  $as_echo_n "(cached) " >&6
6548else
6549  ax_cv_PTHREAD_SPECIAL_FLAGS=no
6550             case $host_os in
6551             solaris*)
6552             ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
6553             ;;
6554             esac
6555
6556fi
6557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
6558$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
6559        if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
6560               test "x$ax_pthread_special_flags_added" != "xyes"; then :
6561  PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
6562               ax_pthread_special_flags_added=yes
6563fi
6564
6565        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
6566$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
6567if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
6568  $as_echo_n "(cached) " >&6
6569else
6570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571/* end confdefs.h.  */
6572#include <pthread.h>
6573int
6574main ()
6575{
6576int i = PTHREAD_PRIO_INHERIT;
6577  ;
6578  return 0;
6579}
6580_ACEOF
6581if ac_fn_c_try_link "$LINENO"; then :
6582  ax_cv_PTHREAD_PRIO_INHERIT=yes
6583else
6584  ax_cv_PTHREAD_PRIO_INHERIT=no
6585fi
6586rm -f core conftest.err conftest.$ac_objext \
6587    conftest$ac_exeext conftest.$ac_ext
6588
6589fi
6590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
6591$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
6592        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
6593               test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
6594
6595$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
6596
6597               ax_pthread_prio_inherit_defined=yes
6598
6599fi
6600
6601        CFLAGS="$ax_pthread_save_CFLAGS"
6602        LIBS="$ax_pthread_save_LIBS"
6603
6604        # More AIX lossage: compile with *_r variant
6605        if test "x$GCC" != "xyes"; then
6606            case $host_os in
6607                aix*)
6608                case "x/$CC" in #(
6609  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
6610    #handle absolute path differently from PATH based program lookup
6611                     case "x$CC" in #(
6612  x/*) :
6613    if as_fn_executable_p ${CC}_r; then :
6614  PTHREAD_CC="${CC}_r"
6615fi ;; #(
6616  *) :
6617    for ac_prog in ${CC}_r
6618do
6619  # Extract the first word of "$ac_prog", so it can be a program name with args.
6620set dummy $ac_prog; ac_word=$2
6621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6622$as_echo_n "checking for $ac_word... " >&6; }
6623if ${ac_cv_prog_PTHREAD_CC+:} false; then :
6624  $as_echo_n "(cached) " >&6
6625else
6626  if test -n "$PTHREAD_CC"; then
6627  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
6628else
6629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630for as_dir in $PATH
6631do
6632  IFS=$as_save_IFS
6633  test -z "$as_dir" && as_dir=.
6634    for ac_exec_ext in '' $ac_executable_extensions; do
6635  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6636    ac_cv_prog_PTHREAD_CC="$ac_prog"
6637    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6638    break 2
6639  fi
6640done
6641  done
6642IFS=$as_save_IFS
6643
6644fi
6645fi
6646PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
6647if test -n "$PTHREAD_CC"; then
6648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
6649$as_echo "$PTHREAD_CC" >&6; }
6650else
6651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6652$as_echo "no" >&6; }
6653fi
6654
6655
6656  test -n "$PTHREAD_CC" && break
6657done
6658test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6659 ;;
6660esac ;; #(
6661  *) :
6662     ;;
6663esac
6664                ;;
6665            esac
6666        fi
6667fi
6668
6669test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6670
6671
6672
6673
6674
6675# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
6676if test "x$ax_pthread_ok" = "xyes"; then
6677
6678$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
6679
6680        :
6681else
6682        ax_pthread_ok=no
6683
6684fi
6685ac_ext=c
6686ac_cpp='$CPP $CPPFLAGS'
6687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6689ac_compiler_gnu=$ac_cv_c_compiler_gnu
6690
6691
6692else
6693test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6694
6695fi
6696
6697# Check whether --enable-uuidd was given.
6698if test "${enable_uuidd+set}" = set; then :
6699  enableval=$enable_uuidd; if test "$enableval" = "no"
6700then
6701	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
6702$as_echo "Not building uuidd" >&6; }
6703	UUIDD_CMT="#"
6704else
6705	$as_echo "#define USE_UUIDD 1" >>confdefs.h
6706
6707	UUIDD_CMT=""
6708	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
6709$as_echo "Building uuidd" >&6; }
6710fi
6711
6712else
6713  $as_echo "#define USE_UUIDD 1" >>confdefs.h
6714
6715if test -z "$UUID_CMT"
6716then
6717	UUIDD_CMT=""
6718	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
6719$as_echo "Building uuidd by default" >&6; }
6720else
6721	UUIDD_CMT="#"
6722	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
6723$as_echo "Disabling uuidd by default" >&6; }
6724fi
6725
6726fi
6727
6728
6729
6730# Check whether --enable-mmp was given.
6731if test "${enable_mmp+set}" = set; then :
6732  enableval=$enable_mmp; if test "$enableval" = "no"
6733then
6734	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
6735$as_echo "Disabling mmp support" >&6; }
6736else
6737	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
6738$as_echo "Enabling mmp support" >&6; }
6739	$as_echo "#define CONFIG_MMP 1" >>confdefs.h
6740
6741fi
6742
6743else
6744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6745$as_echo "Enabling mmp support by default" >&6; }
6746$as_echo "#define CONFIG_MMP 1" >>confdefs.h
6747
6748
6749fi
6750
6751
6752# Check whether --enable-tdb was given.
6753if test "${enable_tdb+set}" = set; then :
6754  enableval=$enable_tdb; if test "$enableval" = "no"
6755then
6756	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
6757$as_echo "Disabling tdb support" >&6; }
6758	TDB_CMT="#"
6759	TDB_MAN_COMMENT='.\"'
6760else
6761	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
6762$as_echo "Enabling tdb support" >&6; }
6763	$as_echo "#define CONFIG_TDB 1" >>confdefs.h
6764
6765	TDB_CMT=""
6766	TDB_MAN_COMMENT=""
6767fi
6768
6769else
6770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6771$as_echo "Enabling mmp support by default" >&6; }
6772$as_echo "#define CONFIG_TDB 1" >>confdefs.h
6773
6774TDB_CMT=""
6775TDB_MAN_COMMENT=""
6776
6777fi
6778
6779
6780
6781
6782# Check whether --enable-bmap-stats was given.
6783if test "${enable_bmap_stats+set}" = set; then :
6784  enableval=$enable_bmap_stats; if test "$enableval" = "no"
6785then
6786	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6787$as_echo "Disabling bitmap statistics support" >&6; }
6788else
6789	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6790$as_echo "Enabling bitmap statistics support" >&6; }
6791	$as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6792
6793fi
6794
6795else
6796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6797$as_echo "Enabling bitmap statistics support by default" >&6; }
6798$as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6799
6800
6801fi
6802
6803
6804# Check whether --enable-bmap-stats-ops was given.
6805if test "${enable_bmap_stats_ops+set}" = set; then :
6806  enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6807then
6808	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6809$as_echo "Disabling additional bitmap statistics" >&6; }
6810else
6811		if test "x${enable_bmap_stats}" = "xno"; then :
6812  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6814as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6815See \`config.log' for more details" "$LINENO" 5; }
6816fi
6817
6818	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6819$as_echo "Enabling additional bitmap statistics" >&6; }
6820	$as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6821
6822fi
6823
6824else
6825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6826$as_echo "Disabling additional bitmap statistics by default" >&6; }
6827
6828fi
6829
6830MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6831
6832GETTEXT_PACKAGE=e2fsprogs
6833PACKAGE=e2fsprogs
6834VERSION="$E2FSPROGS_VERSION"
6835VERSION=0.14.1
6836
6837cat >>confdefs.h <<_ACEOF
6838#define PACKAGE "$PACKAGE"
6839_ACEOF
6840
6841
6842cat >>confdefs.h <<_ACEOF
6843#define VERSION "$VERSION"
6844_ACEOF
6845
6846
6847
6848
6849
6850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6851$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6852set x ${MAKE-make}
6853ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6854if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6855  $as_echo_n "(cached) " >&6
6856else
6857  cat >conftest.make <<\_ACEOF
6858SHELL = /bin/sh
6859all:
6860	@echo '@@@%%%=$(MAKE)=@@@%%%'
6861_ACEOF
6862# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6863case `${MAKE-make} -f conftest.make 2>/dev/null` in
6864  *@@@%%%=?*=@@@%%%*)
6865    eval ac_cv_prog_make_${ac_make}_set=yes;;
6866  *)
6867    eval ac_cv_prog_make_${ac_make}_set=no;;
6868esac
6869rm -f conftest.make
6870fi
6871if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6873$as_echo "yes" >&6; }
6874  SET_MAKE=
6875else
6876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6877$as_echo "no" >&6; }
6878  SET_MAKE="MAKE=${MAKE-make}"
6879fi
6880
6881# Find a good install program.  We prefer a C program (faster),
6882# so one script is as good as another.  But avoid the broken or
6883# incompatible versions:
6884# SysV /etc/install, /usr/sbin/install
6885# SunOS /usr/etc/install
6886# IRIX /sbin/install
6887# AIX /bin/install
6888# AmigaOS /C/install, which installs bootblocks on floppy discs
6889# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6890# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6891# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6892# OS/2's system install, which has a completely different semantic
6893# ./install, which can be erroneously created by make from ./install.sh.
6894# Reject install programs that cannot install multiple files.
6895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6896$as_echo_n "checking for a BSD-compatible install... " >&6; }
6897if test -z "$INSTALL"; then
6898if ${ac_cv_path_install+:} false; then :
6899  $as_echo_n "(cached) " >&6
6900else
6901  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902for as_dir in $PATH
6903do
6904  IFS=$as_save_IFS
6905  test -z "$as_dir" && as_dir=.
6906    # Account for people who put trailing slashes in PATH elements.
6907case $as_dir/ in #((
6908  ./ | .// | /[cC]/* | \
6909  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6910  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6911  /usr/ucb/* ) ;;
6912  *)
6913    # OSF1 and SCO ODT 3.0 have their own names for install.
6914    # Don't use installbsd from OSF since it installs stuff as root
6915    # by default.
6916    for ac_prog in ginstall scoinst install; do
6917      for ac_exec_ext in '' $ac_executable_extensions; do
6918	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6919	  if test $ac_prog = install &&
6920	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6921	    # AIX install.  It has an incompatible calling convention.
6922	    :
6923	  elif test $ac_prog = install &&
6924	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6925	    # program-specific install script used by HP pwplus--don't use.
6926	    :
6927	  else
6928	    rm -rf conftest.one conftest.two conftest.dir
6929	    echo one > conftest.one
6930	    echo two > conftest.two
6931	    mkdir conftest.dir
6932	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6933	      test -s conftest.one && test -s conftest.two &&
6934	      test -s conftest.dir/conftest.one &&
6935	      test -s conftest.dir/conftest.two
6936	    then
6937	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6938	      break 3
6939	    fi
6940	  fi
6941	fi
6942      done
6943    done
6944    ;;
6945esac
6946
6947  done
6948IFS=$as_save_IFS
6949
6950rm -rf conftest.one conftest.two conftest.dir
6951
6952fi
6953  if test "${ac_cv_path_install+set}" = set; then
6954    INSTALL=$ac_cv_path_install
6955  else
6956    # As a last resort, use the slow shell script.  Don't cache a
6957    # value for INSTALL within a source directory, because that will
6958    # break other packages using the cache if that directory is
6959    # removed, or if the value is a relative name.
6960    INSTALL=$ac_install_sh
6961  fi
6962fi
6963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6964$as_echo "$INSTALL" >&6; }
6965
6966# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6967# It thinks the first close brace ends the variable substitution.
6968test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6969
6970test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6971
6972test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6973
6974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6975$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6976if test -z "$MKDIR_P"; then
6977  if ${ac_cv_path_mkdir+:} false; then :
6978  $as_echo_n "(cached) " >&6
6979else
6980  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6982do
6983  IFS=$as_save_IFS
6984  test -z "$as_dir" && as_dir=.
6985    for ac_prog in mkdir gmkdir; do
6986	 for ac_exec_ext in '' $ac_executable_extensions; do
6987	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6988	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6989	     'mkdir (GNU coreutils) '* | \
6990	     'mkdir (coreutils) '* | \
6991	     'mkdir (fileutils) '4.1*)
6992	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6993	       break 3;;
6994	   esac
6995	 done
6996       done
6997  done
6998IFS=$as_save_IFS
6999
7000fi
7001
7002  test -d ./--version && rmdir ./--version
7003  if test "${ac_cv_path_mkdir+set}" = set; then
7004    MKDIR_P="$ac_cv_path_mkdir -p"
7005  else
7006    # As a last resort, use the slow shell script.  Don't cache a
7007    # value for MKDIR_P within a source directory, because that will
7008    # break other packages using the cache if that directory is
7009    # removed, or if the value is a relative name.
7010    MKDIR_P="$ac_install_sh -d"
7011  fi
7012fi
7013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7014$as_echo "$MKDIR_P" >&6; }
7015
7016
7017  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7018$as_echo_n "checking whether NLS is requested... " >&6; }
7019    # Check whether --enable-nls was given.
7020if test "${enable_nls+set}" = set; then :
7021  enableval=$enable_nls; USE_NLS=$enableval
7022else
7023  USE_NLS=yes
7024fi
7025
7026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7027$as_echo "$USE_NLS" >&6; }
7028
7029
7030
7031
7032      GETTEXT_MACRO_VERSION=0.20
7033
7034
7035
7036
7037# Prepare PATH_SEPARATOR.
7038# The user is always right.
7039if test "${PATH_SEPARATOR+set}" != set; then
7040  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7041  # contains only /bin. Note that ksh looks also at the FPATH variable,
7042  # so we have to set that as well for the test.
7043  PATH_SEPARATOR=:
7044  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7045    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7046           || PATH_SEPARATOR=';'
7047       }
7048fi
7049
7050# Find out how to test for executable files. Don't use a zero-byte file,
7051# as systems may use methods other than mode bits to determine executability.
7052cat >conf$$.file <<_ASEOF
7053#! /bin/sh
7054exit 0
7055_ASEOF
7056chmod +x conf$$.file
7057if test -x conf$$.file >/dev/null 2>&1; then
7058  ac_executable_p="test -x"
7059else
7060  ac_executable_p="test -f"
7061fi
7062rm -f conf$$.file
7063
7064# Extract the first word of "msgfmt", so it can be a program name with args.
7065set dummy msgfmt; ac_word=$2
7066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067$as_echo_n "checking for $ac_word... " >&6; }
7068if ${ac_cv_path_MSGFMT+:} false; then :
7069  $as_echo_n "(cached) " >&6
7070else
7071  case "$MSGFMT" in
7072  [\\/]* | ?:[\\/]*)
7073    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7074    ;;
7075  *)
7076    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7077    for ac_dir in $PATH; do
7078      IFS="$ac_save_IFS"
7079      test -z "$ac_dir" && ac_dir=.
7080      for ac_exec_ext in '' $ac_executable_extensions; do
7081        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7082          echo "$as_me: trying $ac_dir/$ac_word..." >&5
7083          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
7084     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7085            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7086            break 2
7087          fi
7088        fi
7089      done
7090    done
7091    IFS="$ac_save_IFS"
7092  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7093    ;;
7094esac
7095fi
7096MSGFMT="$ac_cv_path_MSGFMT"
7097if test "$MSGFMT" != ":"; then
7098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7099$as_echo "$MSGFMT" >&6; }
7100else
7101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102$as_echo "no" >&6; }
7103fi
7104
7105  # Extract the first word of "gmsgfmt", so it can be a program name with args.
7106set dummy gmsgfmt; ac_word=$2
7107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7108$as_echo_n "checking for $ac_word... " >&6; }
7109if ${ac_cv_path_GMSGFMT+:} false; then :
7110  $as_echo_n "(cached) " >&6
7111else
7112  case $GMSGFMT in
7113  [\\/]* | ?:[\\/]*)
7114  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7115  ;;
7116  *)
7117  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118for as_dir in $PATH
7119do
7120  IFS=$as_save_IFS
7121  test -z "$as_dir" && as_dir=.
7122    for ac_exec_ext in '' $ac_executable_extensions; do
7123  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7124    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7125    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7126    break 2
7127  fi
7128done
7129  done
7130IFS=$as_save_IFS
7131
7132  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7133  ;;
7134esac
7135fi
7136GMSGFMT=$ac_cv_path_GMSGFMT
7137if test -n "$GMSGFMT"; then
7138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7139$as_echo "$GMSGFMT" >&6; }
7140else
7141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142$as_echo "no" >&6; }
7143fi
7144
7145
7146
7147    case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7148    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
7149    *) GMSGFMT_015=$GMSGFMT ;;
7150  esac
7151
7152
7153
7154# Prepare PATH_SEPARATOR.
7155# The user is always right.
7156if test "${PATH_SEPARATOR+set}" != set; then
7157  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7158  # contains only /bin. Note that ksh looks also at the FPATH variable,
7159  # so we have to set that as well for the test.
7160  PATH_SEPARATOR=:
7161  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7162    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7163           || PATH_SEPARATOR=';'
7164       }
7165fi
7166
7167# Find out how to test for executable files. Don't use a zero-byte file,
7168# as systems may use methods other than mode bits to determine executability.
7169cat >conf$$.file <<_ASEOF
7170#! /bin/sh
7171exit 0
7172_ASEOF
7173chmod +x conf$$.file
7174if test -x conf$$.file >/dev/null 2>&1; then
7175  ac_executable_p="test -x"
7176else
7177  ac_executable_p="test -f"
7178fi
7179rm -f conf$$.file
7180
7181# Extract the first word of "xgettext", so it can be a program name with args.
7182set dummy xgettext; ac_word=$2
7183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7184$as_echo_n "checking for $ac_word... " >&6; }
7185if ${ac_cv_path_XGETTEXT+:} false; then :
7186  $as_echo_n "(cached) " >&6
7187else
7188  case "$XGETTEXT" in
7189  [\\/]* | ?:[\\/]*)
7190    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7191    ;;
7192  *)
7193    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7194    for ac_dir in $PATH; do
7195      IFS="$ac_save_IFS"
7196      test -z "$ac_dir" && ac_dir=.
7197      for ac_exec_ext in '' $ac_executable_extensions; do
7198        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7199          echo "$as_me: trying $ac_dir/$ac_word..." >&5
7200          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
7201     (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
7202            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7203            break 2
7204          fi
7205        fi
7206      done
7207    done
7208    IFS="$ac_save_IFS"
7209  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7210    ;;
7211esac
7212fi
7213XGETTEXT="$ac_cv_path_XGETTEXT"
7214if test "$XGETTEXT" != ":"; then
7215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7216$as_echo "$XGETTEXT" >&6; }
7217else
7218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219$as_echo "no" >&6; }
7220fi
7221
7222    rm -f messages.po
7223
7224    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7225    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
7226    *) XGETTEXT_015=$XGETTEXT ;;
7227  esac
7228
7229
7230
7231# Prepare PATH_SEPARATOR.
7232# The user is always right.
7233if test "${PATH_SEPARATOR+set}" != set; then
7234  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7235  # contains only /bin. Note that ksh looks also at the FPATH variable,
7236  # so we have to set that as well for the test.
7237  PATH_SEPARATOR=:
7238  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7239    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7240           || PATH_SEPARATOR=';'
7241       }
7242fi
7243
7244# Find out how to test for executable files. Don't use a zero-byte file,
7245# as systems may use methods other than mode bits to determine executability.
7246cat >conf$$.file <<_ASEOF
7247#! /bin/sh
7248exit 0
7249_ASEOF
7250chmod +x conf$$.file
7251if test -x conf$$.file >/dev/null 2>&1; then
7252  ac_executable_p="test -x"
7253else
7254  ac_executable_p="test -f"
7255fi
7256rm -f conf$$.file
7257
7258# Extract the first word of "msgmerge", so it can be a program name with args.
7259set dummy msgmerge; ac_word=$2
7260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261$as_echo_n "checking for $ac_word... " >&6; }
7262if ${ac_cv_path_MSGMERGE+:} false; then :
7263  $as_echo_n "(cached) " >&6
7264else
7265  case "$MSGMERGE" in
7266  [\\/]* | ?:[\\/]*)
7267    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7268    ;;
7269  *)
7270    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7271    for ac_dir in $PATH; do
7272      IFS="$ac_save_IFS"
7273      test -z "$ac_dir" && ac_dir=.
7274      for ac_exec_ext in '' $ac_executable_extensions; do
7275        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7276          echo "$as_me: trying $ac_dir/$ac_word..." >&5
7277          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
7278            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7279            break 2
7280          fi
7281        fi
7282      done
7283    done
7284    IFS="$ac_save_IFS"
7285  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7286    ;;
7287esac
7288fi
7289MSGMERGE="$ac_cv_path_MSGMERGE"
7290if test "$MSGMERGE" != ":"; then
7291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7292$as_echo "$MSGMERGE" >&6; }
7293else
7294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295$as_echo "no" >&6; }
7296fi
7297
7298
7299    if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
7300    MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
7301  else
7302        if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
7303      MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
7304    else
7305                        MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
7306    fi
7307  fi
7308
7309
7310    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
7311
7312
7313  ac_config_commands="$ac_config_commands po-directories"
7314
7315
7316
7317      if test "X$prefix" = "XNONE"; then
7318    acl_final_prefix="$ac_default_prefix"
7319  else
7320    acl_final_prefix="$prefix"
7321  fi
7322  if test "X$exec_prefix" = "XNONE"; then
7323    acl_final_exec_prefix='${prefix}'
7324  else
7325    acl_final_exec_prefix="$exec_prefix"
7326  fi
7327  acl_save_prefix="$prefix"
7328  prefix="$acl_final_prefix"
7329  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7330  prefix="$acl_save_prefix"
7331
7332
7333
7334# Check whether --with-gnu-ld was given.
7335if test "${with_gnu_ld+set}" = set; then :
7336  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7337else
7338  with_gnu_ld=no
7339fi
7340
7341# Prepare PATH_SEPARATOR.
7342# The user is always right.
7343if test "${PATH_SEPARATOR+set}" != set; then
7344  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7345  # contains only /bin. Note that ksh looks also at the FPATH variable,
7346  # so we have to set that as well for the test.
7347  PATH_SEPARATOR=:
7348  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7349    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7350           || PATH_SEPARATOR=';'
7351       }
7352fi
7353
7354if test -n "$LD"; then
7355  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
7356$as_echo_n "checking for ld... " >&6; }
7357elif test "$GCC" = yes; then
7358  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7359$as_echo_n "checking for ld used by $CC... " >&6; }
7360elif test "$with_gnu_ld" = yes; then
7361  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7362$as_echo_n "checking for GNU ld... " >&6; }
7363else
7364  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7365$as_echo_n "checking for non-GNU ld... " >&6; }
7366fi
7367if test -n "$LD"; then
7368  # Let the user override the test with a path.
7369  :
7370else
7371  if ${acl_cv_path_LD+:} false; then :
7372  $as_echo_n "(cached) " >&6
7373else
7374
7375    acl_cv_path_LD= # Final result of this test
7376    ac_prog=ld # Program to search in $PATH
7377    if test "$GCC" = yes; then
7378      # Check if gcc -print-prog-name=ld gives a path.
7379      case $host in
7380        *-*-mingw*)
7381          # gcc leaves a trailing carriage return which upsets mingw
7382          acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7383        *)
7384          acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
7385      esac
7386      case $acl_output in
7387        # Accept absolute paths.
7388        [\\/]* | ?:[\\/]*)
7389          re_direlt='/[^/][^/]*/\.\./'
7390          # Canonicalize the pathname of ld
7391          acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
7392          while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
7393            acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
7394          done
7395          # Got the pathname. No search in PATH is needed.
7396          acl_cv_path_LD="$acl_output"
7397          ac_prog=
7398          ;;
7399        "")
7400          # If it fails, then pretend we aren't using GCC.
7401          ;;
7402        *)
7403          # If it is relative, then search for the first ld in PATH.
7404          with_gnu_ld=unknown
7405          ;;
7406      esac
7407    fi
7408    if test -n "$ac_prog"; then
7409      # Search for $ac_prog in $PATH.
7410      acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7411      for ac_dir in $PATH; do
7412        IFS="$acl_save_ifs"
7413        test -z "$ac_dir" && ac_dir=.
7414        if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7415          acl_cv_path_LD="$ac_dir/$ac_prog"
7416          # Check to see if the program is GNU ld.  I'd rather use --version,
7417          # but apparently some variants of GNU ld only accept -v.
7418          # Break only if it was the GNU/non-GNU ld that we prefer.
7419          case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7420            *GNU* | *'with BFD'*)
7421              test "$with_gnu_ld" != no && break
7422              ;;
7423            *)
7424              test "$with_gnu_ld" != yes && break
7425              ;;
7426          esac
7427        fi
7428      done
7429      IFS="$acl_save_ifs"
7430    fi
7431    case $host in
7432      *-*-aix*)
7433        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434/* end confdefs.h.  */
7435#if defined __powerpc64__ || defined _ARCH_PPC64
7436                int ok;
7437               #else
7438                error fail
7439               #endif
7440
7441_ACEOF
7442if ac_fn_c_try_compile "$LINENO"; then :
7443  # The compiler produces 64-bit code. Add option '-b64' so that the
7444           # linker groks 64-bit object files.
7445           case "$acl_cv_path_LD " in
7446             *" -b64 "*) ;;
7447             *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
7448           esac
7449
7450fi
7451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7452        ;;
7453      sparc64-*-netbsd*)
7454        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7455/* end confdefs.h.  */
7456#if defined __sparcv9 || defined __arch64__
7457                int ok;
7458               #else
7459                error fail
7460               #endif
7461
7462_ACEOF
7463if ac_fn_c_try_compile "$LINENO"; then :
7464
7465else
7466  # The compiler produces 32-bit code. Add option '-m elf32_sparc'
7467           # so that the linker groks 32-bit object files.
7468           case "$acl_cv_path_LD " in
7469             *" -m elf32_sparc "*) ;;
7470             *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
7471           esac
7472
7473fi
7474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7475        ;;
7476    esac
7477
7478fi
7479
7480  LD="$acl_cv_path_LD"
7481fi
7482if test -n "$LD"; then
7483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7484$as_echo "$LD" >&6; }
7485else
7486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487$as_echo "no" >&6; }
7488  as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7489fi
7490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7491$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7492if ${acl_cv_prog_gnu_ld+:} false; then :
7493  $as_echo_n "(cached) " >&6
7494else
7495  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7496case `$LD -v 2>&1 </dev/null` in
7497*GNU* | *'with BFD'*)
7498  acl_cv_prog_gnu_ld=yes
7499  ;;
7500*)
7501  acl_cv_prog_gnu_ld=no
7502  ;;
7503esac
7504fi
7505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7506$as_echo "$acl_cv_prog_gnu_ld" >&6; }
7507with_gnu_ld=$acl_cv_prog_gnu_ld
7508
7509
7510
7511
7512                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7513$as_echo_n "checking for shared library run path origin... " >&6; }
7514if ${acl_cv_rpath+:} false; then :
7515  $as_echo_n "(cached) " >&6
7516else
7517
7518    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7519    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7520    . ./conftest.sh
7521    rm -f ./conftest.sh
7522    acl_cv_rpath=done
7523
7524fi
7525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7526$as_echo "$acl_cv_rpath" >&6; }
7527  wl="$acl_cv_wl"
7528  acl_libext="$acl_cv_libext"
7529  acl_shlibext="$acl_cv_shlibext"
7530  acl_libname_spec="$acl_cv_libname_spec"
7531  acl_library_names_spec="$acl_cv_library_names_spec"
7532  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7533  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7534  acl_hardcode_direct="$acl_cv_hardcode_direct"
7535  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7536    # Check whether --enable-rpath was given.
7537if test "${enable_rpath+set}" = set; then :
7538  enableval=$enable_rpath; :
7539else
7540  enable_rpath=yes
7541fi
7542
7543
7544
7545
7546  { $as_echo "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
7547$as_echo_n "checking 32-bit host C ABI... " >&6; }
7548if ${gl_cv_host_cpu_c_abi_32bit+:} false; then :
7549  $as_echo_n "(cached) " >&6
7550else
7551  if test -n "$gl_cv_host_cpu_c_abi"; then
7552       case "$gl_cv_host_cpu_c_abi" in
7553         i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
7554           gl_cv_host_cpu_c_abi_32bit=yes ;;
7555         x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
7556           gl_cv_host_cpu_c_abi_32bit=no ;;
7557         *)
7558           gl_cv_host_cpu_c_abi_32bit=unknown ;;
7559       esac
7560     else
7561       case "$host_cpu" in
7562
7563         # CPUs that only support a 32-bit ABI.
7564         arc \
7565         | bfin \
7566         | cris* \
7567         | csky \
7568         | epiphany \
7569         | ft32 \
7570         | h8300 \
7571         | m68k \
7572         | microblaze | microblazeel \
7573         | nds32 | nds32le | nds32be \
7574         | nios2 | nios2eb | nios2el \
7575         | or1k* \
7576         | or32 \
7577         | sh | sh1234 | sh1234elb \
7578         | tic6x \
7579         | xtensa* )
7580           gl_cv_host_cpu_c_abi_32bit=yes
7581           ;;
7582
7583         # CPUs that only support a 64-bit ABI.
7584         alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
7585         | mmix )
7586           gl_cv_host_cpu_c_abi_32bit=no
7587           ;;
7588
7589         i[34567]86 )
7590           gl_cv_host_cpu_c_abi_32bit=yes
7591           ;;
7592
7593         x86_64 )
7594           # On x86_64 systems, the C compiler may be generating code in one of
7595           # these ABIs:
7596           # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
7597           # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
7598           #   with native Windows (mingw, MSVC).
7599           # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
7600           # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
7601           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602/* end confdefs.h.  */
7603#if (defined __x86_64__ || defined __amd64__ \
7604                       || defined _M_X64 || defined _M_AMD64) \
7605                      && !(defined __ILP32__ || defined _ILP32)
7606                   int ok;
7607                  #else
7608                   error fail
7609                  #endif
7610
7611_ACEOF
7612if ac_fn_c_try_compile "$LINENO"; then :
7613  gl_cv_host_cpu_c_abi_32bit=no
7614else
7615  gl_cv_host_cpu_c_abi_32bit=yes
7616fi
7617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7618           ;;
7619
7620         arm* | aarch64 )
7621           # Assume arm with EABI.
7622           # On arm64 systems, the C compiler may be generating code in one of
7623           # these ABIs:
7624           # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
7625           # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
7626           # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
7627           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628/* end confdefs.h.  */
7629#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
7630                   int ok;
7631                  #else
7632                   error fail
7633                  #endif
7634
7635_ACEOF
7636if ac_fn_c_try_compile "$LINENO"; then :
7637  gl_cv_host_cpu_c_abi_32bit=no
7638else
7639  gl_cv_host_cpu_c_abi_32bit=yes
7640fi
7641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7642           ;;
7643
7644         hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
7645           # On hppa, the C compiler may be generating 32-bit code or 64-bit
7646           # code. In the latter case, it defines _LP64 and __LP64__.
7647           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7648/* end confdefs.h.  */
7649#ifdef __LP64__
7650                   int ok;
7651                  #else
7652                   error fail
7653                  #endif
7654
7655_ACEOF
7656if ac_fn_c_try_compile "$LINENO"; then :
7657  gl_cv_host_cpu_c_abi_32bit=no
7658else
7659  gl_cv_host_cpu_c_abi_32bit=yes
7660fi
7661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7662           ;;
7663
7664         ia64* )
7665           # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
7666           # 32-bit code. In the latter case, it defines _ILP32.
7667           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668/* end confdefs.h.  */
7669#ifdef _ILP32
7670                   int ok;
7671                  #else
7672                   error fail
7673                  #endif
7674
7675_ACEOF
7676if ac_fn_c_try_compile "$LINENO"; then :
7677  gl_cv_host_cpu_c_abi_32bit=yes
7678else
7679  gl_cv_host_cpu_c_abi_32bit=no
7680fi
7681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7682           ;;
7683
7684         mips* )
7685           # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
7686           # at 32.
7687           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688/* end confdefs.h.  */
7689#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
7690                   int ok;
7691                  #else
7692                   error fail
7693                  #endif
7694
7695_ACEOF
7696if ac_fn_c_try_compile "$LINENO"; then :
7697  gl_cv_host_cpu_c_abi_32bit=no
7698else
7699  gl_cv_host_cpu_c_abi_32bit=yes
7700fi
7701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7702           ;;
7703
7704         powerpc* )
7705           # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
7706           # No need to distinguish them here; the caller may distinguish
7707           # them based on the OS.
7708           # On powerpc64 systems, the C compiler may still be generating
7709           # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
7710           # be generating 64-bit code.
7711           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712/* end confdefs.h.  */
7713#if defined __powerpc64__ || defined _ARCH_PPC64
7714                   int ok;
7715                  #else
7716                   error fail
7717                  #endif
7718
7719_ACEOF
7720if ac_fn_c_try_compile "$LINENO"; then :
7721  gl_cv_host_cpu_c_abi_32bit=no
7722else
7723  gl_cv_host_cpu_c_abi_32bit=yes
7724fi
7725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7726           ;;
7727
7728         rs6000 )
7729           gl_cv_host_cpu_c_abi_32bit=yes
7730           ;;
7731
7732         riscv32 | riscv64 )
7733           # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
7734           # Size of 'long' and 'void *':
7735           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736/* end confdefs.h.  */
7737#if defined __LP64__
7738                    int ok;
7739                  #else
7740                    error fail
7741                  #endif
7742
7743_ACEOF
7744if ac_fn_c_try_compile "$LINENO"; then :
7745  gl_cv_host_cpu_c_abi_32bit=no
7746else
7747  gl_cv_host_cpu_c_abi_32bit=yes
7748fi
7749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7750           ;;
7751
7752         s390* )
7753           # On s390x, the C compiler may be generating 64-bit (= s390x) code
7754           # or 31-bit (= s390) code.
7755           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756/* end confdefs.h.  */
7757#if defined __LP64__ || defined __s390x__
7758                    int ok;
7759                  #else
7760                    error fail
7761                  #endif
7762
7763_ACEOF
7764if ac_fn_c_try_compile "$LINENO"; then :
7765  gl_cv_host_cpu_c_abi_32bit=no
7766else
7767  gl_cv_host_cpu_c_abi_32bit=yes
7768fi
7769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7770           ;;
7771
7772         sparc | sparc64 )
7773           # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
7774           # C compiler still generates 32-bit code.
7775           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7776/* end confdefs.h.  */
7777#if defined __sparcv9 || defined __arch64__
7778                   int ok;
7779                  #else
7780                   error fail
7781                  #endif
7782
7783_ACEOF
7784if ac_fn_c_try_compile "$LINENO"; then :
7785  gl_cv_host_cpu_c_abi_32bit=no
7786else
7787  gl_cv_host_cpu_c_abi_32bit=yes
7788fi
7789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7790           ;;
7791
7792         *)
7793           gl_cv_host_cpu_c_abi_32bit=unknown
7794           ;;
7795       esac
7796     fi
7797
7798fi
7799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
7800$as_echo "$gl_cv_host_cpu_c_abi_32bit" >&6; }
7801
7802  HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
7803
7804
7805
7806
7807
7808  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
7809$as_echo_n "checking for ELF binary format... " >&6; }
7810if ${gl_cv_elf+:} false; then :
7811  $as_echo_n "(cached) " >&6
7812else
7813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814/* end confdefs.h.  */
7815#ifdef __ELF__
7816        Extensible Linking Format
7817        #endif
7818
7819_ACEOF
7820if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7821  $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7822  gl_cv_elf=yes
7823else
7824  gl_cv_elf=no
7825fi
7826rm -f conftest*
7827
7828
7829fi
7830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
7831$as_echo "$gl_cv_elf" >&6; }
7832  if test $gl_cv_elf; then
7833    # Extract the ELF class of a file (5th byte) in decimal.
7834    # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
7835    if od -A x < /dev/null >/dev/null 2>/dev/null; then
7836      # Use POSIX od.
7837      func_elfclass ()
7838      {
7839        od -A n -t d1 -j 4 -N 1
7840      }
7841    else
7842      # Use BSD hexdump.
7843      func_elfclass ()
7844      {
7845        dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
7846        echo
7847      }
7848    fi
7849    case $HOST_CPU_C_ABI_32BIT in
7850      yes)
7851        # 32-bit ABI.
7852        acl_is_expected_elfclass ()
7853        {
7854          test "`func_elfclass | sed -e 's/[ 	]//g'`" = 1
7855        }
7856        ;;
7857      no)
7858        # 64-bit ABI.
7859        acl_is_expected_elfclass ()
7860        {
7861          test "`func_elfclass | sed -e 's/[ 	]//g'`" = 2
7862        }
7863        ;;
7864      *)
7865        # Unknown.
7866        acl_is_expected_elfclass ()
7867        {
7868          :
7869        }
7870        ;;
7871    esac
7872  else
7873    acl_is_expected_elfclass ()
7874    {
7875      :
7876    }
7877  fi
7878
7879    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
7880$as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; }
7881if ${acl_cv_libdirstems+:} false; then :
7882  $as_echo_n "(cached) " >&6
7883else
7884            acl_libdirstem=lib
7885     acl_libdirstem2=
7886     acl_libdirstem3=
7887     case "$host_os" in
7888       solaris*)
7889                                                      if test $HOST_CPU_C_ABI_32BIT = no; then
7890           acl_libdirstem2=lib/64
7891           case "$host_cpu" in
7892             sparc*)        acl_libdirstem3=lib/sparcv9 ;;
7893             i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
7894           esac
7895         fi
7896         ;;
7897       *)
7898                                                                                 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
7899                     | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7900         if test $HOST_CPU_C_ABI_32BIT != no; then
7901           # 32-bit or unknown ABI.
7902           if test -d /usr/lib32; then
7903             acl_libdirstem2=lib32
7904           fi
7905         fi
7906         if test $HOST_CPU_C_ABI_32BIT != yes; then
7907           # 64-bit or unknown ABI.
7908           if test -d /usr/lib64; then
7909             acl_libdirstem3=lib64
7910           fi
7911         fi
7912         if test -n "$searchpath"; then
7913           acl_save_IFS="${IFS= 	}"; IFS=":"
7914           for searchdir in $searchpath; do
7915             if test -d "$searchdir"; then
7916               case "$searchdir" in
7917                 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
7918                 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
7919                 */../ | */.. )
7920                   # Better ignore directories of this form. They are misleading.
7921                   ;;
7922                 *) searchdir=`cd "$searchdir" && pwd`
7923                    case "$searchdir" in
7924                      */lib32 ) acl_libdirstem2=lib32 ;;
7925                      */lib64 ) acl_libdirstem3=lib64 ;;
7926                    esac ;;
7927               esac
7928             fi
7929           done
7930           IFS="$acl_save_IFS"
7931           if test $HOST_CPU_C_ABI_32BIT = yes; then
7932             # 32-bit ABI.
7933             acl_libdirstem3=
7934           fi
7935           if test $HOST_CPU_C_ABI_32BIT = no; then
7936             # 64-bit ABI.
7937             acl_libdirstem2=
7938           fi
7939         fi
7940         ;;
7941     esac
7942     test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7943     test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
7944     acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
7945
7946fi
7947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
7948$as_echo "$acl_cv_libdirstems" >&6; }
7949      acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
7950  acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
7951  acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963    use_additional=yes
7964
7965  acl_save_prefix="$prefix"
7966  prefix="$acl_final_prefix"
7967  acl_save_exec_prefix="$exec_prefix"
7968  exec_prefix="$acl_final_exec_prefix"
7969
7970    eval additional_includedir=\"$includedir\"
7971    eval additional_libdir=\"$libdir\"
7972    eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7973    eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
7974
7975  exec_prefix="$acl_save_exec_prefix"
7976  prefix="$acl_save_prefix"
7977
7978
7979# Check whether --with-libiconv-prefix was given.
7980if test "${with_libiconv_prefix+set}" = set; then :
7981  withval=$with_libiconv_prefix;
7982    if test "X$withval" = "Xno"; then
7983      use_additional=no
7984    else
7985      if test "X$withval" = "X"; then
7986
7987  acl_save_prefix="$prefix"
7988  prefix="$acl_final_prefix"
7989  acl_save_exec_prefix="$exec_prefix"
7990  exec_prefix="$acl_final_exec_prefix"
7991
7992          eval additional_includedir=\"$includedir\"
7993          eval additional_libdir=\"$libdir\"
7994          eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7995          eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
7996
7997  exec_prefix="$acl_save_exec_prefix"
7998  prefix="$acl_save_prefix"
7999
8000      else
8001        additional_includedir="$withval/include"
8002        additional_libdir="$withval/$acl_libdirstem"
8003        additional_libdir2="$withval/$acl_libdirstem2"
8004        additional_libdir3="$withval/$acl_libdirstem3"
8005      fi
8006    fi
8007
8008fi
8009
8010  if test "X$additional_libdir2" = "X$additional_libdir"; then
8011    additional_libdir2=
8012  fi
8013  if test "X$additional_libdir3" = "X$additional_libdir"; then
8014    additional_libdir3=
8015  fi
8016      LIBICONV=
8017  LTLIBICONV=
8018  INCICONV=
8019  LIBICONV_PREFIX=
8020      HAVE_LIBICONV=
8021  rpathdirs=
8022  ltrpathdirs=
8023  names_already_handled=
8024  names_next_round='iconv '
8025  while test -n "$names_next_round"; do
8026    names_this_round="$names_next_round"
8027    names_next_round=
8028    for name in $names_this_round; do
8029      already_handled=
8030      for n in $names_already_handled; do
8031        if test "$n" = "$name"; then
8032          already_handled=yes
8033          break
8034        fi
8035      done
8036      if test -z "$already_handled"; then
8037        names_already_handled="$names_already_handled $name"
8038                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8039        eval value=\"\$HAVE_LIB$uppername\"
8040        if test -n "$value"; then
8041          if test "$value" = yes; then
8042            eval value=\"\$LIB$uppername\"
8043            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8044            eval value=\"\$LTLIB$uppername\"
8045            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8046          else
8047                                    :
8048          fi
8049        else
8050                              found_dir=
8051          found_la=
8052          found_so=
8053          found_a=
8054          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8055          if test -n "$acl_shlibext"; then
8056            shrext=".$acl_shlibext"             # typically: shrext=.so
8057          else
8058            shrext=
8059          fi
8060          if test $use_additional = yes; then
8061            for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
8062              if test "X$found_dir" = "X"; then
8063                eval dir=\$$additional_libdir_variable
8064                if test -n "$dir"; then
8065                                                      if test -n "$acl_shlibext"; then
8066                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
8067                      found_dir="$dir"
8068                      found_so="$dir/$libname$shrext"
8069                    else
8070                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8071                        ver=`(cd "$dir" && \
8072                              for f in "$libname$shrext".*; do echo "$f"; done \
8073                              | sed -e "s,^$libname$shrext\\\\.,," \
8074                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8075                              | sed 1q ) 2>/dev/null`
8076                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
8077                          found_dir="$dir"
8078                          found_so="$dir/$libname$shrext.$ver"
8079                        fi
8080                      else
8081                        eval library_names=\"$acl_library_names_spec\"
8082                        for f in $library_names; do
8083                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
8084                            found_dir="$dir"
8085                            found_so="$dir/$f"
8086                            break
8087                          fi
8088                        done
8089                      fi
8090                    fi
8091                  fi
8092                                    if test "X$found_dir" = "X"; then
8093                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
8094                      found_dir="$dir"
8095                      found_a="$dir/$libname.$acl_libext"
8096                    fi
8097                  fi
8098                  if test "X$found_dir" != "X"; then
8099                    if test -f "$dir/$libname.la"; then
8100                      found_la="$dir/$libname.la"
8101                    fi
8102                  fi
8103                fi
8104              fi
8105            done
8106          fi
8107          if test "X$found_dir" = "X"; then
8108            for x in $LDFLAGS $LTLIBICONV; do
8109
8110  acl_save_prefix="$prefix"
8111  prefix="$acl_final_prefix"
8112  acl_save_exec_prefix="$exec_prefix"
8113  exec_prefix="$acl_final_exec_prefix"
8114  eval x=\"$x\"
8115  exec_prefix="$acl_save_exec_prefix"
8116  prefix="$acl_save_prefix"
8117
8118              case "$x" in
8119                -L*)
8120                  dir=`echo "X$x" | sed -e 's/^X-L//'`
8121                                    if test -n "$acl_shlibext"; then
8122                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
8123                      found_dir="$dir"
8124                      found_so="$dir/$libname$shrext"
8125                    else
8126                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8127                        ver=`(cd "$dir" && \
8128                              for f in "$libname$shrext".*; do echo "$f"; done \
8129                              | sed -e "s,^$libname$shrext\\\\.,," \
8130                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8131                              | sed 1q ) 2>/dev/null`
8132                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
8133                          found_dir="$dir"
8134                          found_so="$dir/$libname$shrext.$ver"
8135                        fi
8136                      else
8137                        eval library_names=\"$acl_library_names_spec\"
8138                        for f in $library_names; do
8139                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
8140                            found_dir="$dir"
8141                            found_so="$dir/$f"
8142                            break
8143                          fi
8144                        done
8145                      fi
8146                    fi
8147                  fi
8148                                    if test "X$found_dir" = "X"; then
8149                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
8150                      found_dir="$dir"
8151                      found_a="$dir/$libname.$acl_libext"
8152                    fi
8153                  fi
8154                  if test "X$found_dir" != "X"; then
8155                    if test -f "$dir/$libname.la"; then
8156                      found_la="$dir/$libname.la"
8157                    fi
8158                  fi
8159                  ;;
8160              esac
8161              if test "X$found_dir" != "X"; then
8162                break
8163              fi
8164            done
8165          fi
8166          if test "X$found_dir" != "X"; then
8167                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8168            if test "X$found_so" != "X"; then
8169                                                        if test "$enable_rpath" = no \
8170                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8171                 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
8172                 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
8173                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8174              else
8175                                                                                haveit=
8176                for x in $ltrpathdirs; do
8177                  if test "X$x" = "X$found_dir"; then
8178                    haveit=yes
8179                    break
8180                  fi
8181                done
8182                if test -z "$haveit"; then
8183                  ltrpathdirs="$ltrpathdirs $found_dir"
8184                fi
8185                                if test "$acl_hardcode_direct" = yes; then
8186                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8187                else
8188                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8189                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8190                                                            haveit=
8191                    for x in $rpathdirs; do
8192                      if test "X$x" = "X$found_dir"; then
8193                        haveit=yes
8194                        break
8195                      fi
8196                    done
8197                    if test -z "$haveit"; then
8198                      rpathdirs="$rpathdirs $found_dir"
8199                    fi
8200                  else
8201                                                                                haveit=
8202                    for x in $LDFLAGS $LIBICONV; do
8203
8204  acl_save_prefix="$prefix"
8205  prefix="$acl_final_prefix"
8206  acl_save_exec_prefix="$exec_prefix"
8207  exec_prefix="$acl_final_exec_prefix"
8208  eval x=\"$x\"
8209  exec_prefix="$acl_save_exec_prefix"
8210  prefix="$acl_save_prefix"
8211
8212                      if test "X$x" = "X-L$found_dir"; then
8213                        haveit=yes
8214                        break
8215                      fi
8216                    done
8217                    if test -z "$haveit"; then
8218                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8219                    fi
8220                    if test "$acl_hardcode_minus_L" != no; then
8221                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8222                    else
8223                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8224                    fi
8225                  fi
8226                fi
8227              fi
8228            else
8229              if test "X$found_a" != "X"; then
8230                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8231              else
8232                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8233              fi
8234            fi
8235                        additional_includedir=
8236            case "$found_dir" in
8237              */$acl_libdirstem | */$acl_libdirstem/)
8238                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8239                if test "$name" = 'iconv'; then
8240                  LIBICONV_PREFIX="$basedir"
8241                fi
8242                additional_includedir="$basedir/include"
8243                ;;
8244              */$acl_libdirstem2 | */$acl_libdirstem2/)
8245                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8246                if test "$name" = 'iconv'; then
8247                  LIBICONV_PREFIX="$basedir"
8248                fi
8249                additional_includedir="$basedir/include"
8250                ;;
8251              */$acl_libdirstem3 | */$acl_libdirstem3/)
8252                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
8253                if test "$name" = 'iconv'; then
8254                  LIBICONV_PREFIX="$basedir"
8255                fi
8256                additional_includedir="$basedir/include"
8257                ;;
8258            esac
8259            if test "X$additional_includedir" != "X"; then
8260                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
8261                haveit=
8262                if test "X$additional_includedir" = "X/usr/local/include"; then
8263                  if test -n "$GCC"; then
8264                    case $host_os in
8265                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8266                    esac
8267                  fi
8268                fi
8269                if test -z "$haveit"; then
8270                  for x in $CPPFLAGS $INCICONV; do
8271
8272  acl_save_prefix="$prefix"
8273  prefix="$acl_final_prefix"
8274  acl_save_exec_prefix="$exec_prefix"
8275  exec_prefix="$acl_final_exec_prefix"
8276  eval x=\"$x\"
8277  exec_prefix="$acl_save_exec_prefix"
8278  prefix="$acl_save_prefix"
8279
8280                    if test "X$x" = "X-I$additional_includedir"; then
8281                      haveit=yes
8282                      break
8283                    fi
8284                  done
8285                  if test -z "$haveit"; then
8286                    if test -d "$additional_includedir"; then
8287                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8288                    fi
8289                  fi
8290                fi
8291              fi
8292            fi
8293                        if test -n "$found_la"; then
8294                                                        save_libdir="$libdir"
8295              case "$found_la" in
8296                */* | *\\*) . "$found_la" ;;
8297                *) . "./$found_la" ;;
8298              esac
8299              libdir="$save_libdir"
8300                            for dep in $dependency_libs; do
8301                case "$dep" in
8302                  -L*)
8303                    dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8304                                                                                                                                                                if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
8305                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
8306                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
8307                      haveit=
8308                      if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
8309                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
8310                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
8311                        if test -n "$GCC"; then
8312                          case $host_os in
8313                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8314                          esac
8315                        fi
8316                      fi
8317                      if test -z "$haveit"; then
8318                        haveit=
8319                        for x in $LDFLAGS $LIBICONV; do
8320
8321  acl_save_prefix="$prefix"
8322  prefix="$acl_final_prefix"
8323  acl_save_exec_prefix="$exec_prefix"
8324  exec_prefix="$acl_final_exec_prefix"
8325  eval x=\"$x\"
8326  exec_prefix="$acl_save_exec_prefix"
8327  prefix="$acl_save_prefix"
8328
8329                          if test "X$x" = "X-L$dependency_libdir"; then
8330                            haveit=yes
8331                            break
8332                          fi
8333                        done
8334                        if test -z "$haveit"; then
8335                          if test -d "$dependency_libdir"; then
8336                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
8337                          fi
8338                        fi
8339                        haveit=
8340                        for x in $LDFLAGS $LTLIBICONV; do
8341
8342  acl_save_prefix="$prefix"
8343  prefix="$acl_final_prefix"
8344  acl_save_exec_prefix="$exec_prefix"
8345  exec_prefix="$acl_final_exec_prefix"
8346  eval x=\"$x\"
8347  exec_prefix="$acl_save_exec_prefix"
8348  prefix="$acl_save_prefix"
8349
8350                          if test "X$x" = "X-L$dependency_libdir"; then
8351                            haveit=yes
8352                            break
8353                          fi
8354                        done
8355                        if test -z "$haveit"; then
8356                          if test -d "$dependency_libdir"; then
8357                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
8358                          fi
8359                        fi
8360                      fi
8361                    fi
8362                    ;;
8363                  -R*)
8364                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
8365                    if test "$enable_rpath" != no; then
8366                                                                  haveit=
8367                      for x in $rpathdirs; do
8368                        if test "X$x" = "X$dir"; then
8369                          haveit=yes
8370                          break
8371                        fi
8372                      done
8373                      if test -z "$haveit"; then
8374                        rpathdirs="$rpathdirs $dir"
8375                      fi
8376                                                                  haveit=
8377                      for x in $ltrpathdirs; do
8378                        if test "X$x" = "X$dir"; then
8379                          haveit=yes
8380                          break
8381                        fi
8382                      done
8383                      if test -z "$haveit"; then
8384                        ltrpathdirs="$ltrpathdirs $dir"
8385                      fi
8386                    fi
8387                    ;;
8388                  -l*)
8389                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8390                    ;;
8391                  *.la)
8392                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8393                    ;;
8394                  *)
8395                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8396                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8397                    ;;
8398                esac
8399              done
8400            fi
8401          else
8402                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8403            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8404          fi
8405        fi
8406      fi
8407    done
8408  done
8409  if test "X$rpathdirs" != "X"; then
8410    if test -n "$acl_hardcode_libdir_separator"; then
8411                        alldirs=
8412      for found_dir in $rpathdirs; do
8413        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8414      done
8415            acl_save_libdir="$libdir"
8416      libdir="$alldirs"
8417      eval flag=\"$acl_hardcode_libdir_flag_spec\"
8418      libdir="$acl_save_libdir"
8419      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8420    else
8421            for found_dir in $rpathdirs; do
8422        acl_save_libdir="$libdir"
8423        libdir="$found_dir"
8424        eval flag=\"$acl_hardcode_libdir_flag_spec\"
8425        libdir="$acl_save_libdir"
8426        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8427      done
8428    fi
8429  fi
8430  if test "X$ltrpathdirs" != "X"; then
8431            for found_dir in $ltrpathdirs; do
8432      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8433    done
8434  fi
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8465$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8466if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
8467  $as_echo_n "(cached) " >&6
8468else
8469  gt_save_LIBS="$LIBS"
8470     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8471     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472/* end confdefs.h.  */
8473#include <CoreFoundation/CFPreferences.h>
8474int
8475main ()
8476{
8477CFPreferencesCopyAppValue(NULL, NULL)
8478  ;
8479  return 0;
8480}
8481_ACEOF
8482if ac_fn_c_try_link "$LINENO"; then :
8483  gt_cv_func_CFPreferencesCopyAppValue=yes
8484else
8485  gt_cv_func_CFPreferencesCopyAppValue=no
8486fi
8487rm -f core conftest.err conftest.$ac_objext \
8488    conftest$ac_exeext conftest.$ac_ext
8489     LIBS="$gt_save_LIBS"
8490fi
8491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8492$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8493  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8494
8495$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8496
8497  fi
8498                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
8499$as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
8500if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
8501  $as_echo_n "(cached) " >&6
8502else
8503  gt_save_LIBS="$LIBS"
8504     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8505     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8506/* end confdefs.h.  */
8507#include <CoreFoundation/CFLocale.h>
8508int
8509main ()
8510{
8511CFLocaleCopyPreferredLanguages();
8512  ;
8513  return 0;
8514}
8515_ACEOF
8516if ac_fn_c_try_link "$LINENO"; then :
8517  gt_cv_func_CFLocaleCopyPreferredLanguages=yes
8518else
8519  gt_cv_func_CFLocaleCopyPreferredLanguages=no
8520fi
8521rm -f core conftest.err conftest.$ac_objext \
8522    conftest$ac_exeext conftest.$ac_ext
8523     LIBS="$gt_save_LIBS"
8524fi
8525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
8526$as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
8527  if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
8528
8529$as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
8530
8531  fi
8532  INTL_MACOSX_LIBS=
8533  if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
8534     || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
8535    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8536  fi
8537
8538
8539
8540
8541
8542
8543  LIBINTL=
8544  LTLIBINTL=
8545  POSUB=
8546
8547    case " $gt_needs " in
8548    *" need-formatstring-macros "*) gt_api_version=3 ;;
8549    *" need-ngettext "*) gt_api_version=2 ;;
8550    *) gt_api_version=1 ;;
8551  esac
8552  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
8553  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
8554
8555    if test "$USE_NLS" = "yes"; then
8556    gt_use_preinstalled_gnugettext=no
8557
8558
8559        if test $gt_api_version -ge 3; then
8560          gt_revision_test_code='
8561#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8562#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
8563#endif
8564typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
8565'
8566        else
8567          gt_revision_test_code=
8568        fi
8569        if test $gt_api_version -ge 2; then
8570          gt_expression_test_code=' + * ngettext ("", "", 0)'
8571        else
8572          gt_expression_test_code=
8573        fi
8574
8575        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8576$as_echo_n "checking for GNU gettext in libc... " >&6; }
8577if eval \${$gt_func_gnugettext_libc+:} false; then :
8578  $as_echo_n "(cached) " >&6
8579else
8580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581/* end confdefs.h.  */
8582
8583#include <libintl.h>
8584#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8585extern int _nl_msg_cat_cntr;
8586extern int *_nl_domain_bindings;
8587#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
8588#else
8589#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8590#endif
8591$gt_revision_test_code
8592
8593int
8594main ()
8595{
8596
8597bindtextdomain ("", "");
8598return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8599
8600  ;
8601  return 0;
8602}
8603_ACEOF
8604if ac_fn_c_try_link "$LINENO"; then :
8605  eval "$gt_func_gnugettext_libc=yes"
8606else
8607  eval "$gt_func_gnugettext_libc=no"
8608fi
8609rm -f core conftest.err conftest.$ac_objext \
8610    conftest$ac_exeext conftest.$ac_ext
8611fi
8612eval ac_res=\$$gt_func_gnugettext_libc
8613	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8614$as_echo "$ac_res" >&6; }
8615
8616        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
8617
8618
8619
8620
8621
8622          am_save_CPPFLAGS="$CPPFLAGS"
8623
8624  for element in $INCICONV; do
8625    haveit=
8626    for x in $CPPFLAGS; do
8627
8628  acl_save_prefix="$prefix"
8629  prefix="$acl_final_prefix"
8630  acl_save_exec_prefix="$exec_prefix"
8631  exec_prefix="$acl_final_exec_prefix"
8632  eval x=\"$x\"
8633  exec_prefix="$acl_save_exec_prefix"
8634  prefix="$acl_save_prefix"
8635
8636      if test "X$x" = "X$element"; then
8637        haveit=yes
8638        break
8639      fi
8640    done
8641    if test -z "$haveit"; then
8642      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8643    fi
8644  done
8645
8646
8647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8648$as_echo_n "checking for iconv... " >&6; }
8649if ${am_cv_func_iconv+:} false; then :
8650  $as_echo_n "(cached) " >&6
8651else
8652
8653    am_cv_func_iconv="no, consider installing GNU libiconv"
8654    am_cv_lib_iconv=no
8655    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656/* end confdefs.h.  */
8657
8658#include <stdlib.h>
8659#include <iconv.h>
8660
8661int
8662main ()
8663{
8664iconv_t cd = iconv_open("","");
8665           iconv(cd,NULL,NULL,NULL,NULL);
8666           iconv_close(cd);
8667  ;
8668  return 0;
8669}
8670_ACEOF
8671if ac_fn_c_try_link "$LINENO"; then :
8672  am_cv_func_iconv=yes
8673fi
8674rm -f core conftest.err conftest.$ac_objext \
8675    conftest$ac_exeext conftest.$ac_ext
8676    if test "$am_cv_func_iconv" != yes; then
8677      am_save_LIBS="$LIBS"
8678      LIBS="$LIBS $LIBICONV"
8679      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680/* end confdefs.h.  */
8681
8682#include <stdlib.h>
8683#include <iconv.h>
8684
8685int
8686main ()
8687{
8688iconv_t cd = iconv_open("","");
8689             iconv(cd,NULL,NULL,NULL,NULL);
8690             iconv_close(cd);
8691  ;
8692  return 0;
8693}
8694_ACEOF
8695if ac_fn_c_try_link "$LINENO"; then :
8696  am_cv_lib_iconv=yes
8697        am_cv_func_iconv=yes
8698fi
8699rm -f core conftest.err conftest.$ac_objext \
8700    conftest$ac_exeext conftest.$ac_ext
8701      LIBS="$am_save_LIBS"
8702    fi
8703
8704fi
8705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8706$as_echo "$am_cv_func_iconv" >&6; }
8707  if test "$am_cv_func_iconv" = yes; then
8708    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
8709$as_echo_n "checking for working iconv... " >&6; }
8710if ${am_cv_func_iconv_works+:} false; then :
8711  $as_echo_n "(cached) " >&6
8712else
8713
8714                  am_save_LIBS="$LIBS"
8715      if test $am_cv_lib_iconv = yes; then
8716        LIBS="$LIBS $LIBICONV"
8717      fi
8718      am_cv_func_iconv_works=no
8719      for ac_iconv_const in '' 'const'; do
8720        if test "$cross_compiling" = yes; then :
8721  case "$host_os" in
8722             aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8723             *)            am_cv_func_iconv_works="guessing yes" ;;
8724           esac
8725else
8726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727/* end confdefs.h.  */
8728
8729#include <iconv.h>
8730#include <string.h>
8731
8732#ifndef ICONV_CONST
8733# define ICONV_CONST $ac_iconv_const
8734#endif
8735
8736int
8737main ()
8738{
8739int result = 0;
8740  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
8741     returns.  */
8742  {
8743    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8744    if (cd_utf8_to_88591 != (iconv_t)(-1))
8745      {
8746        static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
8747        char buf[10];
8748        ICONV_CONST char *inptr = input;
8749        size_t inbytesleft = strlen (input);
8750        char *outptr = buf;
8751        size_t outbytesleft = sizeof (buf);
8752        size_t res = iconv (cd_utf8_to_88591,
8753                            &inptr, &inbytesleft,
8754                            &outptr, &outbytesleft);
8755        if (res == 0)
8756          result |= 1;
8757        iconv_close (cd_utf8_to_88591);
8758      }
8759  }
8760  /* Test against Solaris 10 bug: Failures are not distinguishable from
8761     successful returns.  */
8762  {
8763    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8764    if (cd_ascii_to_88591 != (iconv_t)(-1))
8765      {
8766        static ICONV_CONST char input[] = "\263";
8767        char buf[10];
8768        ICONV_CONST char *inptr = input;
8769        size_t inbytesleft = strlen (input);
8770        char *outptr = buf;
8771        size_t outbytesleft = sizeof (buf);
8772        size_t res = iconv (cd_ascii_to_88591,
8773                            &inptr, &inbytesleft,
8774                            &outptr, &outbytesleft);
8775        if (res == 0)
8776          result |= 2;
8777        iconv_close (cd_ascii_to_88591);
8778      }
8779  }
8780  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
8781  {
8782    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8783    if (cd_88591_to_utf8 != (iconv_t)(-1))
8784      {
8785        static ICONV_CONST char input[] = "\304";
8786        static char buf[2] = { (char)0xDE, (char)0xAD };
8787        ICONV_CONST char *inptr = input;
8788        size_t inbytesleft = 1;
8789        char *outptr = buf;
8790        size_t outbytesleft = 1;
8791        size_t res = iconv (cd_88591_to_utf8,
8792                            &inptr, &inbytesleft,
8793                            &outptr, &outbytesleft);
8794        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8795          result |= 4;
8796        iconv_close (cd_88591_to_utf8);
8797      }
8798  }
8799#if 0 /* This bug could be worked around by the caller.  */
8800  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
8801  {
8802    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8803    if (cd_88591_to_utf8 != (iconv_t)(-1))
8804      {
8805        static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8806        char buf[50];
8807        ICONV_CONST char *inptr = input;
8808        size_t inbytesleft = strlen (input);
8809        char *outptr = buf;
8810        size_t outbytesleft = sizeof (buf);
8811        size_t res = iconv (cd_88591_to_utf8,
8812                            &inptr, &inbytesleft,
8813                            &outptr, &outbytesleft);
8814        if ((int)res > 0)
8815          result |= 8;
8816        iconv_close (cd_88591_to_utf8);
8817      }
8818  }
8819#endif
8820  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8821     provided.  */
8822  {
8823    /* Try standardized names.  */
8824    iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
8825    /* Try IRIX, OSF/1 names.  */
8826    iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
8827    /* Try AIX names.  */
8828    iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
8829    /* Try HP-UX names.  */
8830    iconv_t cd4 = iconv_open ("utf8", "eucJP");
8831    if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
8832        && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
8833      result |= 16;
8834    if (cd1 != (iconv_t)(-1))
8835      iconv_close (cd1);
8836    if (cd2 != (iconv_t)(-1))
8837      iconv_close (cd2);
8838    if (cd3 != (iconv_t)(-1))
8839      iconv_close (cd3);
8840    if (cd4 != (iconv_t)(-1))
8841      iconv_close (cd4);
8842  }
8843  return result;
8844
8845  ;
8846  return 0;
8847}
8848_ACEOF
8849if ac_fn_c_try_run "$LINENO"; then :
8850  am_cv_func_iconv_works=yes
8851fi
8852rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8853  conftest.$ac_objext conftest.beam conftest.$ac_ext
8854fi
8855
8856        test "$am_cv_func_iconv_works" = no || break
8857      done
8858      LIBS="$am_save_LIBS"
8859
8860fi
8861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8862$as_echo "$am_cv_func_iconv_works" >&6; }
8863    case "$am_cv_func_iconv_works" in
8864      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8865      *)   am_func_iconv=yes ;;
8866    esac
8867  else
8868    am_func_iconv=no am_cv_lib_iconv=no
8869  fi
8870  if test "$am_func_iconv" = yes; then
8871
8872$as_echo "#define HAVE_ICONV 1" >>confdefs.h
8873
8874  fi
8875  if test "$am_cv_lib_iconv" = yes; then
8876    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8877$as_echo_n "checking how to link with libiconv... " >&6; }
8878    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8879$as_echo "$LIBICONV" >&6; }
8880  else
8881            CPPFLAGS="$am_save_CPPFLAGS"
8882    LIBICONV=
8883    LTLIBICONV=
8884  fi
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895    use_additional=yes
8896
8897  acl_save_prefix="$prefix"
8898  prefix="$acl_final_prefix"
8899  acl_save_exec_prefix="$exec_prefix"
8900  exec_prefix="$acl_final_exec_prefix"
8901
8902    eval additional_includedir=\"$includedir\"
8903    eval additional_libdir=\"$libdir\"
8904    eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
8905    eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
8906
8907  exec_prefix="$acl_save_exec_prefix"
8908  prefix="$acl_save_prefix"
8909
8910
8911# Check whether --with-libintl-prefix was given.
8912if test "${with_libintl_prefix+set}" = set; then :
8913  withval=$with_libintl_prefix;
8914    if test "X$withval" = "Xno"; then
8915      use_additional=no
8916    else
8917      if test "X$withval" = "X"; then
8918
8919  acl_save_prefix="$prefix"
8920  prefix="$acl_final_prefix"
8921  acl_save_exec_prefix="$exec_prefix"
8922  exec_prefix="$acl_final_exec_prefix"
8923
8924          eval additional_includedir=\"$includedir\"
8925          eval additional_libdir=\"$libdir\"
8926          eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
8927          eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
8928
8929  exec_prefix="$acl_save_exec_prefix"
8930  prefix="$acl_save_prefix"
8931
8932      else
8933        additional_includedir="$withval/include"
8934        additional_libdir="$withval/$acl_libdirstem"
8935        additional_libdir2="$withval/$acl_libdirstem2"
8936        additional_libdir3="$withval/$acl_libdirstem3"
8937      fi
8938    fi
8939
8940fi
8941
8942  if test "X$additional_libdir2" = "X$additional_libdir"; then
8943    additional_libdir2=
8944  fi
8945  if test "X$additional_libdir3" = "X$additional_libdir"; then
8946    additional_libdir3=
8947  fi
8948      LIBINTL=
8949  LTLIBINTL=
8950  INCINTL=
8951  LIBINTL_PREFIX=
8952      HAVE_LIBINTL=
8953  rpathdirs=
8954  ltrpathdirs=
8955  names_already_handled=
8956  names_next_round='intl '
8957  while test -n "$names_next_round"; do
8958    names_this_round="$names_next_round"
8959    names_next_round=
8960    for name in $names_this_round; do
8961      already_handled=
8962      for n in $names_already_handled; do
8963        if test "$n" = "$name"; then
8964          already_handled=yes
8965          break
8966        fi
8967      done
8968      if test -z "$already_handled"; then
8969        names_already_handled="$names_already_handled $name"
8970                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8971        eval value=\"\$HAVE_LIB$uppername\"
8972        if test -n "$value"; then
8973          if test "$value" = yes; then
8974            eval value=\"\$LIB$uppername\"
8975            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8976            eval value=\"\$LTLIB$uppername\"
8977            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8978          else
8979                                    :
8980          fi
8981        else
8982                              found_dir=
8983          found_la=
8984          found_so=
8985          found_a=
8986          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8987          if test -n "$acl_shlibext"; then
8988            shrext=".$acl_shlibext"             # typically: shrext=.so
8989          else
8990            shrext=
8991          fi
8992          if test $use_additional = yes; then
8993            for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
8994              if test "X$found_dir" = "X"; then
8995                eval dir=\$$additional_libdir_variable
8996                if test -n "$dir"; then
8997                                                      if test -n "$acl_shlibext"; then
8998                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
8999                      found_dir="$dir"
9000                      found_so="$dir/$libname$shrext"
9001                    else
9002                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9003                        ver=`(cd "$dir" && \
9004                              for f in "$libname$shrext".*; do echo "$f"; done \
9005                              | sed -e "s,^$libname$shrext\\\\.,," \
9006                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9007                              | sed 1q ) 2>/dev/null`
9008                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9009                          found_dir="$dir"
9010                          found_so="$dir/$libname$shrext.$ver"
9011                        fi
9012                      else
9013                        eval library_names=\"$acl_library_names_spec\"
9014                        for f in $library_names; do
9015                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9016                            found_dir="$dir"
9017                            found_so="$dir/$f"
9018                            break
9019                          fi
9020                        done
9021                      fi
9022                    fi
9023                  fi
9024                                    if test "X$found_dir" = "X"; then
9025                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9026                      found_dir="$dir"
9027                      found_a="$dir/$libname.$acl_libext"
9028                    fi
9029                  fi
9030                  if test "X$found_dir" != "X"; then
9031                    if test -f "$dir/$libname.la"; then
9032                      found_la="$dir/$libname.la"
9033                    fi
9034                  fi
9035                fi
9036              fi
9037            done
9038          fi
9039          if test "X$found_dir" = "X"; then
9040            for x in $LDFLAGS $LTLIBINTL; do
9041
9042  acl_save_prefix="$prefix"
9043  prefix="$acl_final_prefix"
9044  acl_save_exec_prefix="$exec_prefix"
9045  exec_prefix="$acl_final_exec_prefix"
9046  eval x=\"$x\"
9047  exec_prefix="$acl_save_exec_prefix"
9048  prefix="$acl_save_prefix"
9049
9050              case "$x" in
9051                -L*)
9052                  dir=`echo "X$x" | sed -e 's/^X-L//'`
9053                                    if test -n "$acl_shlibext"; then
9054                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9055                      found_dir="$dir"
9056                      found_so="$dir/$libname$shrext"
9057                    else
9058                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9059                        ver=`(cd "$dir" && \
9060                              for f in "$libname$shrext".*; do echo "$f"; done \
9061                              | sed -e "s,^$libname$shrext\\\\.,," \
9062                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9063                              | sed 1q ) 2>/dev/null`
9064                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9065                          found_dir="$dir"
9066                          found_so="$dir/$libname$shrext.$ver"
9067                        fi
9068                      else
9069                        eval library_names=\"$acl_library_names_spec\"
9070                        for f in $library_names; do
9071                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9072                            found_dir="$dir"
9073                            found_so="$dir/$f"
9074                            break
9075                          fi
9076                        done
9077                      fi
9078                    fi
9079                  fi
9080                                    if test "X$found_dir" = "X"; then
9081                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9082                      found_dir="$dir"
9083                      found_a="$dir/$libname.$acl_libext"
9084                    fi
9085                  fi
9086                  if test "X$found_dir" != "X"; then
9087                    if test -f "$dir/$libname.la"; then
9088                      found_la="$dir/$libname.la"
9089                    fi
9090                  fi
9091                  ;;
9092              esac
9093              if test "X$found_dir" != "X"; then
9094                break
9095              fi
9096            done
9097          fi
9098          if test "X$found_dir" != "X"; then
9099                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9100            if test "X$found_so" != "X"; then
9101                                                        if test "$enable_rpath" = no \
9102                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9103                 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
9104                 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
9105                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9106              else
9107                                                                                haveit=
9108                for x in $ltrpathdirs; do
9109                  if test "X$x" = "X$found_dir"; then
9110                    haveit=yes
9111                    break
9112                  fi
9113                done
9114                if test -z "$haveit"; then
9115                  ltrpathdirs="$ltrpathdirs $found_dir"
9116                fi
9117                                if test "$acl_hardcode_direct" = yes; then
9118                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9119                else
9120                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9121                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9122                                                            haveit=
9123                    for x in $rpathdirs; do
9124                      if test "X$x" = "X$found_dir"; then
9125                        haveit=yes
9126                        break
9127                      fi
9128                    done
9129                    if test -z "$haveit"; then
9130                      rpathdirs="$rpathdirs $found_dir"
9131                    fi
9132                  else
9133                                                                                haveit=
9134                    for x in $LDFLAGS $LIBINTL; do
9135
9136  acl_save_prefix="$prefix"
9137  prefix="$acl_final_prefix"
9138  acl_save_exec_prefix="$exec_prefix"
9139  exec_prefix="$acl_final_exec_prefix"
9140  eval x=\"$x\"
9141  exec_prefix="$acl_save_exec_prefix"
9142  prefix="$acl_save_prefix"
9143
9144                      if test "X$x" = "X-L$found_dir"; then
9145                        haveit=yes
9146                        break
9147                      fi
9148                    done
9149                    if test -z "$haveit"; then
9150                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9151                    fi
9152                    if test "$acl_hardcode_minus_L" != no; then
9153                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9154                    else
9155                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9156                    fi
9157                  fi
9158                fi
9159              fi
9160            else
9161              if test "X$found_a" != "X"; then
9162                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9163              else
9164                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9165              fi
9166            fi
9167                        additional_includedir=
9168            case "$found_dir" in
9169              */$acl_libdirstem | */$acl_libdirstem/)
9170                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9171                if test "$name" = 'intl'; then
9172                  LIBINTL_PREFIX="$basedir"
9173                fi
9174                additional_includedir="$basedir/include"
9175                ;;
9176              */$acl_libdirstem2 | */$acl_libdirstem2/)
9177                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9178                if test "$name" = 'intl'; then
9179                  LIBINTL_PREFIX="$basedir"
9180                fi
9181                additional_includedir="$basedir/include"
9182                ;;
9183              */$acl_libdirstem3 | */$acl_libdirstem3/)
9184                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
9185                if test "$name" = 'intl'; then
9186                  LIBINTL_PREFIX="$basedir"
9187                fi
9188                additional_includedir="$basedir/include"
9189                ;;
9190            esac
9191            if test "X$additional_includedir" != "X"; then
9192                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
9193                haveit=
9194                if test "X$additional_includedir" = "X/usr/local/include"; then
9195                  if test -n "$GCC"; then
9196                    case $host_os in
9197                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9198                    esac
9199                  fi
9200                fi
9201                if test -z "$haveit"; then
9202                  for x in $CPPFLAGS $INCINTL; do
9203
9204  acl_save_prefix="$prefix"
9205  prefix="$acl_final_prefix"
9206  acl_save_exec_prefix="$exec_prefix"
9207  exec_prefix="$acl_final_exec_prefix"
9208  eval x=\"$x\"
9209  exec_prefix="$acl_save_exec_prefix"
9210  prefix="$acl_save_prefix"
9211
9212                    if test "X$x" = "X-I$additional_includedir"; then
9213                      haveit=yes
9214                      break
9215                    fi
9216                  done
9217                  if test -z "$haveit"; then
9218                    if test -d "$additional_includedir"; then
9219                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9220                    fi
9221                  fi
9222                fi
9223              fi
9224            fi
9225                        if test -n "$found_la"; then
9226                                                        save_libdir="$libdir"
9227              case "$found_la" in
9228                */* | *\\*) . "$found_la" ;;
9229                *) . "./$found_la" ;;
9230              esac
9231              libdir="$save_libdir"
9232                            for dep in $dependency_libs; do
9233                case "$dep" in
9234                  -L*)
9235                    dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9236                                                                                                                                                                if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
9237                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
9238                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
9239                      haveit=
9240                      if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
9241                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
9242                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
9243                        if test -n "$GCC"; then
9244                          case $host_os in
9245                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9246                          esac
9247                        fi
9248                      fi
9249                      if test -z "$haveit"; then
9250                        haveit=
9251                        for x in $LDFLAGS $LIBINTL; do
9252
9253  acl_save_prefix="$prefix"
9254  prefix="$acl_final_prefix"
9255  acl_save_exec_prefix="$exec_prefix"
9256  exec_prefix="$acl_final_exec_prefix"
9257  eval x=\"$x\"
9258  exec_prefix="$acl_save_exec_prefix"
9259  prefix="$acl_save_prefix"
9260
9261                          if test "X$x" = "X-L$dependency_libdir"; then
9262                            haveit=yes
9263                            break
9264                          fi
9265                        done
9266                        if test -z "$haveit"; then
9267                          if test -d "$dependency_libdir"; then
9268                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
9269                          fi
9270                        fi
9271                        haveit=
9272                        for x in $LDFLAGS $LTLIBINTL; do
9273
9274  acl_save_prefix="$prefix"
9275  prefix="$acl_final_prefix"
9276  acl_save_exec_prefix="$exec_prefix"
9277  exec_prefix="$acl_final_exec_prefix"
9278  eval x=\"$x\"
9279  exec_prefix="$acl_save_exec_prefix"
9280  prefix="$acl_save_prefix"
9281
9282                          if test "X$x" = "X-L$dependency_libdir"; then
9283                            haveit=yes
9284                            break
9285                          fi
9286                        done
9287                        if test -z "$haveit"; then
9288                          if test -d "$dependency_libdir"; then
9289                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
9290                          fi
9291                        fi
9292                      fi
9293                    fi
9294                    ;;
9295                  -R*)
9296                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
9297                    if test "$enable_rpath" != no; then
9298                                                                  haveit=
9299                      for x in $rpathdirs; do
9300                        if test "X$x" = "X$dir"; then
9301                          haveit=yes
9302                          break
9303                        fi
9304                      done
9305                      if test -z "$haveit"; then
9306                        rpathdirs="$rpathdirs $dir"
9307                      fi
9308                                                                  haveit=
9309                      for x in $ltrpathdirs; do
9310                        if test "X$x" = "X$dir"; then
9311                          haveit=yes
9312                          break
9313                        fi
9314                      done
9315                      if test -z "$haveit"; then
9316                        ltrpathdirs="$ltrpathdirs $dir"
9317                      fi
9318                    fi
9319                    ;;
9320                  -l*)
9321                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9322                    ;;
9323                  *.la)
9324                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9325                    ;;
9326                  *)
9327                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9328                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9329                    ;;
9330                esac
9331              done
9332            fi
9333          else
9334                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9335            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9336          fi
9337        fi
9338      fi
9339    done
9340  done
9341  if test "X$rpathdirs" != "X"; then
9342    if test -n "$acl_hardcode_libdir_separator"; then
9343                        alldirs=
9344      for found_dir in $rpathdirs; do
9345        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9346      done
9347            acl_save_libdir="$libdir"
9348      libdir="$alldirs"
9349      eval flag=\"$acl_hardcode_libdir_flag_spec\"
9350      libdir="$acl_save_libdir"
9351      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9352    else
9353            for found_dir in $rpathdirs; do
9354        acl_save_libdir="$libdir"
9355        libdir="$found_dir"
9356        eval flag=\"$acl_hardcode_libdir_flag_spec\"
9357        libdir="$acl_save_libdir"
9358        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9359      done
9360    fi
9361  fi
9362  if test "X$ltrpathdirs" != "X"; then
9363            for found_dir in $ltrpathdirs; do
9364      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9365    done
9366  fi
9367
9368
9369
9370
9371
9372          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9373$as_echo_n "checking for GNU gettext in libintl... " >&6; }
9374if eval \${$gt_func_gnugettext_libintl+:} false; then :
9375  $as_echo_n "(cached) " >&6
9376else
9377  gt_save_CPPFLAGS="$CPPFLAGS"
9378            CPPFLAGS="$CPPFLAGS $INCINTL"
9379            gt_save_LIBS="$LIBS"
9380            LIBS="$LIBS $LIBINTL"
9381                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9382/* end confdefs.h.  */
9383
9384#include <libintl.h>
9385#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9386extern int _nl_msg_cat_cntr;
9387extern
9388#ifdef __cplusplus
9389"C"
9390#endif
9391const char *_nl_expand_alias (const char *);
9392#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
9393#else
9394#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9395#endif
9396$gt_revision_test_code
9397
9398int
9399main ()
9400{
9401
9402bindtextdomain ("", "");
9403return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9404
9405  ;
9406  return 0;
9407}
9408_ACEOF
9409if ac_fn_c_try_link "$LINENO"; then :
9410  eval "$gt_func_gnugettext_libintl=yes"
9411else
9412  eval "$gt_func_gnugettext_libintl=no"
9413fi
9414rm -f core conftest.err conftest.$ac_objext \
9415    conftest$ac_exeext conftest.$ac_ext
9416                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
9417              LIBS="$LIBS $LIBICONV"
9418              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9419/* end confdefs.h.  */
9420
9421#include <libintl.h>
9422#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9423extern int _nl_msg_cat_cntr;
9424extern
9425#ifdef __cplusplus
9426"C"
9427#endif
9428const char *_nl_expand_alias (const char *);
9429#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
9430#else
9431#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9432#endif
9433$gt_revision_test_code
9434
9435int
9436main ()
9437{
9438
9439bindtextdomain ("", "");
9440return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9441
9442  ;
9443  return 0;
9444}
9445_ACEOF
9446if ac_fn_c_try_link "$LINENO"; then :
9447  LIBINTL="$LIBINTL $LIBICONV"
9448                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9449                 eval "$gt_func_gnugettext_libintl=yes"
9450
9451fi
9452rm -f core conftest.err conftest.$ac_objext \
9453    conftest$ac_exeext conftest.$ac_ext
9454            fi
9455            CPPFLAGS="$gt_save_CPPFLAGS"
9456            LIBS="$gt_save_LIBS"
9457fi
9458eval ac_res=\$$gt_func_gnugettext_libintl
9459	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9460$as_echo "$ac_res" >&6; }
9461        fi
9462
9463                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
9464           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
9465                && test "$PACKAGE" != gettext-runtime \
9466                && test "$PACKAGE" != gettext-tools; }; then
9467          gt_use_preinstalled_gnugettext=yes
9468        else
9469                    LIBINTL=
9470          LTLIBINTL=
9471          INCINTL=
9472        fi
9473
9474
9475
9476    if test -n "$INTL_MACOSX_LIBS"; then
9477      if test "$gt_use_preinstalled_gnugettext" = "yes" \
9478         || test "$nls_cv_use_gnu_gettext" = "yes"; then
9479                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
9480        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
9481      fi
9482    fi
9483
9484    if test "$gt_use_preinstalled_gnugettext" = "yes" \
9485       || test "$nls_cv_use_gnu_gettext" = "yes"; then
9486
9487$as_echo "#define ENABLE_NLS 1" >>confdefs.h
9488
9489    else
9490      USE_NLS=no
9491    fi
9492  fi
9493
9494  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9495$as_echo_n "checking whether to use NLS... " >&6; }
9496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9497$as_echo "$USE_NLS" >&6; }
9498  if test "$USE_NLS" = "yes"; then
9499    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9500$as_echo_n "checking where the gettext function comes from... " >&6; }
9501    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9502      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9503        gt_source="external libintl"
9504      else
9505        gt_source="libc"
9506      fi
9507    else
9508      gt_source="included intl directory"
9509    fi
9510    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9511$as_echo "$gt_source" >&6; }
9512  fi
9513
9514  if test "$USE_NLS" = "yes"; then
9515
9516    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9517      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9518        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9519$as_echo_n "checking how to link with libintl... " >&6; }
9520        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9521$as_echo "$LIBINTL" >&6; }
9522
9523  for element in $INCINTL; do
9524    haveit=
9525    for x in $CPPFLAGS; do
9526
9527  acl_save_prefix="$prefix"
9528  prefix="$acl_final_prefix"
9529  acl_save_exec_prefix="$exec_prefix"
9530  exec_prefix="$acl_final_exec_prefix"
9531  eval x=\"$x\"
9532  exec_prefix="$acl_save_exec_prefix"
9533  prefix="$acl_save_prefix"
9534
9535      if test "X$x" = "X$element"; then
9536        haveit=yes
9537        break
9538      fi
9539    done
9540    if test -z "$haveit"; then
9541      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9542    fi
9543  done
9544
9545      fi
9546
9547
9548$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9549
9550
9551$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9552
9553    fi
9554
9555        POSUB=po
9556  fi
9557
9558
9559
9560    INTLLIBS="$LIBINTL"
9561
9562
9563
9564
9565
9566
9567
9568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9569$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9570set x ${MAKE-make}
9571ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9572if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9573  $as_echo_n "(cached) " >&6
9574else
9575  cat >conftest.make <<\_ACEOF
9576SHELL = /bin/sh
9577all:
9578	@echo '@@@%%%=$(MAKE)=@@@%%%'
9579_ACEOF
9580# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9581case `${MAKE-make} -f conftest.make 2>/dev/null` in
9582  *@@@%%%=?*=@@@%%%*)
9583    eval ac_cv_prog_make_${ac_make}_set=yes;;
9584  *)
9585    eval ac_cv_prog_make_${ac_make}_set=no;;
9586esac
9587rm -f conftest.make
9588fi
9589if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9591$as_echo "yes" >&6; }
9592  SET_MAKE=
9593else
9594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9595$as_echo "no" >&6; }
9596  SET_MAKE="MAKE=${MAKE-make}"
9597fi
9598
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9600$as_echo_n "checking for GNU make... " >&6; }
9601if ${_cv_gnu_make_command+:} false; then :
9602  $as_echo_n "(cached) " >&6
9603else
9604  _cv_gnu_make_command='' ;
9605                if test -n "$FORCE_NATIVE_MAKE" ; then
9606                   MAKES="make"
9607                else
9608                   MAKES="make gmake gnumake"
9609                fi
9610                for a in "$MAKE" $MAKES ; do
9611                        if test -z "$a" ; then continue ; fi ;
9612                        if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
9613                                _cv_gnu_make_command=$a ;
9614                                break;
9615                        fi
9616                done ;
9617
9618fi
9619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9620$as_echo "$_cv_gnu_make_command" >&6; } ;
9621        if test  "x$_cv_gnu_make_command" != "x"  ; then
9622                ifGNUmake='' ;
9623                ifNotGNUmake='#' ;
9624        else
9625                ifGNUmake='#' ;
9626                ifNotGNUmake='' ;
9627                { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9628$as_echo "\"Not found\"" >&6; };
9629        fi
9630
9631
9632
9633# Extract the first word of "ln", so it can be a program name with args.
9634set dummy ln; ac_word=$2
9635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9636$as_echo_n "checking for $ac_word... " >&6; }
9637if ${ac_cv_path_LN+:} false; then :
9638  $as_echo_n "(cached) " >&6
9639else
9640  case $LN in
9641  [\\/]* | ?:[\\/]*)
9642  ac_cv_path_LN="$LN" # Let the user override the test with a path.
9643  ;;
9644  *)
9645  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9646for as_dir in $PATH
9647do
9648  IFS=$as_save_IFS
9649  test -z "$as_dir" && as_dir=.
9650    for ac_exec_ext in '' $ac_executable_extensions; do
9651  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9652    ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9653    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9654    break 2
9655  fi
9656done
9657  done
9658IFS=$as_save_IFS
9659
9660  test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9661  ;;
9662esac
9663fi
9664LN=$ac_cv_path_LN
9665if test -n "$LN"; then
9666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9667$as_echo "$LN" >&6; }
9668else
9669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9670$as_echo "no" >&6; }
9671fi
9672
9673
9674
9675mkdir_p=$MKDIR_P
9676
9677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9678$as_echo_n "checking whether ln -s works... " >&6; }
9679LN_S=$as_ln_s
9680if test "$LN_S" = "ln -s"; then
9681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9682$as_echo "yes" >&6; }
9683else
9684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9685$as_echo "no, using $LN_S" >&6; }
9686fi
9687
9688# Extract the first word of "mv", so it can be a program name with args.
9689set dummy mv; ac_word=$2
9690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9691$as_echo_n "checking for $ac_word... " >&6; }
9692if ${ac_cv_path_MV+:} false; then :
9693  $as_echo_n "(cached) " >&6
9694else
9695  case $MV in
9696  [\\/]* | ?:[\\/]*)
9697  ac_cv_path_MV="$MV" # Let the user override the test with a path.
9698  ;;
9699  *)
9700  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9701for as_dir in $PATH
9702do
9703  IFS=$as_save_IFS
9704  test -z "$as_dir" && as_dir=.
9705    for ac_exec_ext in '' $ac_executable_extensions; do
9706  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9707    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9708    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9709    break 2
9710  fi
9711done
9712  done
9713IFS=$as_save_IFS
9714
9715  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9716  ;;
9717esac
9718fi
9719MV=$ac_cv_path_MV
9720if test -n "$MV"; then
9721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9722$as_echo "$MV" >&6; }
9723else
9724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9725$as_echo "no" >&6; }
9726fi
9727
9728
9729# Extract the first word of "cp", so it can be a program name with args.
9730set dummy cp; ac_word=$2
9731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9732$as_echo_n "checking for $ac_word... " >&6; }
9733if ${ac_cv_path_CP+:} false; then :
9734  $as_echo_n "(cached) " >&6
9735else
9736  case $CP in
9737  [\\/]* | ?:[\\/]*)
9738  ac_cv_path_CP="$CP" # Let the user override the test with a path.
9739  ;;
9740  *)
9741  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9742for as_dir in $PATH
9743do
9744  IFS=$as_save_IFS
9745  test -z "$as_dir" && as_dir=.
9746    for ac_exec_ext in '' $ac_executable_extensions; do
9747  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9748    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9749    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9750    break 2
9751  fi
9752done
9753  done
9754IFS=$as_save_IFS
9755
9756  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9757  ;;
9758esac
9759fi
9760CP=$ac_cv_path_CP
9761if test -n "$CP"; then
9762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9763$as_echo "$CP" >&6; }
9764else
9765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9766$as_echo "no" >&6; }
9767fi
9768
9769
9770# Extract the first word of "rm", so it can be a program name with args.
9771set dummy rm; ac_word=$2
9772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9773$as_echo_n "checking for $ac_word... " >&6; }
9774if ${ac_cv_path_RM+:} false; then :
9775  $as_echo_n "(cached) " >&6
9776else
9777  case $RM in
9778  [\\/]* | ?:[\\/]*)
9779  ac_cv_path_RM="$RM" # Let the user override the test with a path.
9780  ;;
9781  *)
9782  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9783for as_dir in $PATH
9784do
9785  IFS=$as_save_IFS
9786  test -z "$as_dir" && as_dir=.
9787    for ac_exec_ext in '' $ac_executable_extensions; do
9788  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9789    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9790    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9791    break 2
9792  fi
9793done
9794  done
9795IFS=$as_save_IFS
9796
9797  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9798  ;;
9799esac
9800fi
9801RM=$ac_cv_path_RM
9802if test -n "$RM"; then
9803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9804$as_echo "$RM" >&6; }
9805else
9806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9807$as_echo "no" >&6; }
9808fi
9809
9810
9811# Extract the first word of "chmod", so it can be a program name with args.
9812set dummy chmod; ac_word=$2
9813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9814$as_echo_n "checking for $ac_word... " >&6; }
9815if ${ac_cv_path_CHMOD+:} false; then :
9816  $as_echo_n "(cached) " >&6
9817else
9818  case $CHMOD in
9819  [\\/]* | ?:[\\/]*)
9820  ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9821  ;;
9822  *)
9823  as_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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9830    ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
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
9838  test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9839  ;;
9840esac
9841fi
9842CHMOD=$ac_cv_path_CHMOD
9843if test -n "$CHMOD"; then
9844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9845$as_echo "$CHMOD" >&6; }
9846else
9847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9848$as_echo "no" >&6; }
9849fi
9850
9851
9852for ac_prog in gawk mawk nawk awk
9853do
9854  # Extract the first word of "$ac_prog", so it can be a program name with args.
9855set dummy $ac_prog; ac_word=$2
9856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9857$as_echo_n "checking for $ac_word... " >&6; }
9858if ${ac_cv_prog_AWK+:} false; then :
9859  $as_echo_n "(cached) " >&6
9860else
9861  if test -n "$AWK"; then
9862  ac_cv_prog_AWK="$AWK" # Let the user override the test.
9863else
9864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9865for as_dir in $PATH
9866do
9867  IFS=$as_save_IFS
9868  test -z "$as_dir" && as_dir=.
9869    for ac_exec_ext in '' $ac_executable_extensions; do
9870  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9871    ac_cv_prog_AWK="$ac_prog"
9872    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9873    break 2
9874  fi
9875done
9876  done
9877IFS=$as_save_IFS
9878
9879fi
9880fi
9881AWK=$ac_cv_prog_AWK
9882if test -n "$AWK"; then
9883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9884$as_echo "$AWK" >&6; }
9885else
9886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9887$as_echo "no" >&6; }
9888fi
9889
9890
9891  test -n "$AWK" && break
9892done
9893
9894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9895$as_echo_n "checking for egrep... " >&6; }
9896if ${ac_cv_path_EGREP+:} false; then :
9897  $as_echo_n "(cached) " >&6
9898else
9899  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9900   then ac_cv_path_EGREP="$GREP -E"
9901   else
9902     if test -z "$EGREP"; then
9903  ac_path_EGREP_found=false
9904  # Loop through the user's path and test for each of PROGNAME-LIST
9905  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9906for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9907do
9908  IFS=$as_save_IFS
9909  test -z "$as_dir" && as_dir=.
9910    for ac_prog in egrep; do
9911    for ac_exec_ext in '' $ac_executable_extensions; do
9912      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9913      as_fn_executable_p "$ac_path_EGREP" || continue
9914# Check for GNU ac_path_EGREP and select it if it is found.
9915  # Check for GNU $ac_path_EGREP
9916case `"$ac_path_EGREP" --version 2>&1` in
9917*GNU*)
9918  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9919*)
9920  ac_count=0
9921  $as_echo_n 0123456789 >"conftest.in"
9922  while :
9923  do
9924    cat "conftest.in" "conftest.in" >"conftest.tmp"
9925    mv "conftest.tmp" "conftest.in"
9926    cp "conftest.in" "conftest.nl"
9927    $as_echo 'EGREP' >> "conftest.nl"
9928    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9929    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9930    as_fn_arith $ac_count + 1 && ac_count=$as_val
9931    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9932      # Best one so far, save it but keep looking for a better one
9933      ac_cv_path_EGREP="$ac_path_EGREP"
9934      ac_path_EGREP_max=$ac_count
9935    fi
9936    # 10*(2^10) chars as input seems more than enough
9937    test $ac_count -gt 10 && break
9938  done
9939  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9940esac
9941
9942      $ac_path_EGREP_found && break 3
9943    done
9944  done
9945  done
9946IFS=$as_save_IFS
9947  if test -z "$ac_cv_path_EGREP"; then
9948    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9949  fi
9950else
9951  ac_cv_path_EGREP=$EGREP
9952fi
9953
9954   fi
9955fi
9956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9957$as_echo "$ac_cv_path_EGREP" >&6; }
9958 EGREP="$ac_cv_path_EGREP"
9959
9960
9961# Extract the first word of "sed", so it can be a program name with args.
9962set dummy sed; ac_word=$2
9963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9964$as_echo_n "checking for $ac_word... " >&6; }
9965if ${ac_cv_path_SED+:} false; then :
9966  $as_echo_n "(cached) " >&6
9967else
9968  case $SED in
9969  [\\/]* | ?:[\\/]*)
9970  ac_cv_path_SED="$SED" # Let the user override the test with a path.
9971  ;;
9972  *)
9973  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974for as_dir in $PATH
9975do
9976  IFS=$as_save_IFS
9977  test -z "$as_dir" && as_dir=.
9978    for ac_exec_ext in '' $ac_executable_extensions; do
9979  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9980    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9981    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9982    break 2
9983  fi
9984done
9985  done
9986IFS=$as_save_IFS
9987
9988  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9989  ;;
9990esac
9991fi
9992SED=$ac_cv_path_SED
9993if test -n "$SED"; then
9994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9995$as_echo "$SED" >&6; }
9996else
9997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9998$as_echo "no" >&6; }
9999fi
10000
10001
10002# Extract the first word of "perl", so it can be a program name with args.
10003set dummy perl; ac_word=$2
10004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10005$as_echo_n "checking for $ac_word... " >&6; }
10006if ${ac_cv_path_PERL+:} false; then :
10007  $as_echo_n "(cached) " >&6
10008else
10009  case $PERL in
10010  [\\/]* | ?:[\\/]*)
10011  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10012  ;;
10013  *)
10014  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10015for as_dir in $PATH
10016do
10017  IFS=$as_save_IFS
10018  test -z "$as_dir" && as_dir=.
10019    for ac_exec_ext in '' $ac_executable_extensions; do
10020  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10021    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10022    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10023    break 2
10024  fi
10025done
10026  done
10027IFS=$as_save_IFS
10028
10029  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10030  ;;
10031esac
10032fi
10033PERL=$ac_cv_path_PERL
10034if test -n "$PERL"; then
10035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10036$as_echo "$PERL" >&6; }
10037else
10038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10039$as_echo "no" >&6; }
10040fi
10041
10042
10043# Extract the first word of "ldconfig", so it can be a program name with args.
10044set dummy ldconfig; ac_word=$2
10045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10046$as_echo_n "checking for $ac_word... " >&6; }
10047if ${ac_cv_path_LDCONFIG+:} false; then :
10048  $as_echo_n "(cached) " >&6
10049else
10050  case $LDCONFIG in
10051  [\\/]* | ?:[\\/]*)
10052  ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10053  ;;
10054  *)
10055  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10056for as_dir in $PATH
10057do
10058  IFS=$as_save_IFS
10059  test -z "$as_dir" && as_dir=.
10060    for ac_exec_ext in '' $ac_executable_extensions; do
10061  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10062    ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10063    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10064    break 2
10065  fi
10066done
10067  done
10068IFS=$as_save_IFS
10069
10070  test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10071  ;;
10072esac
10073fi
10074LDCONFIG=$ac_cv_path_LDCONFIG
10075if test -n "$LDCONFIG"; then
10076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
10077$as_echo "$LDCONFIG" >&6; }
10078else
10079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10080$as_echo "no" >&6; }
10081fi
10082
10083
10084if test -n "$ac_tool_prefix"; then
10085  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10086set dummy ${ac_tool_prefix}ar; ac_word=$2
10087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10088$as_echo_n "checking for $ac_word... " >&6; }
10089if ${ac_cv_prog_AR+:} false; then :
10090  $as_echo_n "(cached) " >&6
10091else
10092  if test -n "$AR"; then
10093  ac_cv_prog_AR="$AR" # Let the user override the test.
10094else
10095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10096for as_dir in $PATH
10097do
10098  IFS=$as_save_IFS
10099  test -z "$as_dir" && as_dir=.
10100    for ac_exec_ext in '' $ac_executable_extensions; do
10101  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10102    ac_cv_prog_AR="${ac_tool_prefix}ar"
10103    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10104    break 2
10105  fi
10106done
10107  done
10108IFS=$as_save_IFS
10109
10110fi
10111fi
10112AR=$ac_cv_prog_AR
10113if test -n "$AR"; then
10114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10115$as_echo "$AR" >&6; }
10116else
10117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10118$as_echo "no" >&6; }
10119fi
10120
10121
10122fi
10123if test -z "$ac_cv_prog_AR"; then
10124  ac_ct_AR=$AR
10125  # Extract the first word of "ar", so it can be a program name with args.
10126set dummy ar; ac_word=$2
10127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10128$as_echo_n "checking for $ac_word... " >&6; }
10129if ${ac_cv_prog_ac_ct_AR+:} false; then :
10130  $as_echo_n "(cached) " >&6
10131else
10132  if test -n "$ac_ct_AR"; then
10133  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10134else
10135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10136for as_dir in $PATH
10137do
10138  IFS=$as_save_IFS
10139  test -z "$as_dir" && as_dir=.
10140    for ac_exec_ext in '' $ac_executable_extensions; do
10141  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10142    ac_cv_prog_ac_ct_AR="ar"
10143    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10144    break 2
10145  fi
10146done
10147  done
10148IFS=$as_save_IFS
10149
10150fi
10151fi
10152ac_ct_AR=$ac_cv_prog_ac_ct_AR
10153if test -n "$ac_ct_AR"; then
10154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10155$as_echo "$ac_ct_AR" >&6; }
10156else
10157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10158$as_echo "no" >&6; }
10159fi
10160
10161  if test "x$ac_ct_AR" = x; then
10162    AR="ar"
10163  else
10164    case $cross_compiling:$ac_tool_warned in
10165yes:)
10166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10168ac_tool_warned=yes ;;
10169esac
10170    AR=$ac_ct_AR
10171  fi
10172else
10173  AR="$ac_cv_prog_AR"
10174fi
10175
10176if test -n "$ac_tool_prefix"; then
10177  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10178set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10180$as_echo_n "checking for $ac_word... " >&6; }
10181if ${ac_cv_prog_RANLIB+:} false; then :
10182  $as_echo_n "(cached) " >&6
10183else
10184  if test -n "$RANLIB"; then
10185  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10186else
10187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188for as_dir in $PATH
10189do
10190  IFS=$as_save_IFS
10191  test -z "$as_dir" && as_dir=.
10192    for ac_exec_ext in '' $ac_executable_extensions; do
10193  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10194    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10195    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10196    break 2
10197  fi
10198done
10199  done
10200IFS=$as_save_IFS
10201
10202fi
10203fi
10204RANLIB=$ac_cv_prog_RANLIB
10205if test -n "$RANLIB"; then
10206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10207$as_echo "$RANLIB" >&6; }
10208else
10209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10210$as_echo "no" >&6; }
10211fi
10212
10213
10214fi
10215if test -z "$ac_cv_prog_RANLIB"; then
10216  ac_ct_RANLIB=$RANLIB
10217  # Extract the first word of "ranlib", so it can be a program name with args.
10218set dummy ranlib; ac_word=$2
10219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10220$as_echo_n "checking for $ac_word... " >&6; }
10221if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10222  $as_echo_n "(cached) " >&6
10223else
10224  if test -n "$ac_ct_RANLIB"; then
10225  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10226else
10227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10228for as_dir in $PATH
10229do
10230  IFS=$as_save_IFS
10231  test -z "$as_dir" && as_dir=.
10232    for ac_exec_ext in '' $ac_executable_extensions; do
10233  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10234    ac_cv_prog_ac_ct_RANLIB="ranlib"
10235    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10236    break 2
10237  fi
10238done
10239  done
10240IFS=$as_save_IFS
10241
10242fi
10243fi
10244ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10245if test -n "$ac_ct_RANLIB"; then
10246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10247$as_echo "$ac_ct_RANLIB" >&6; }
10248else
10249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10250$as_echo "no" >&6; }
10251fi
10252
10253  if test "x$ac_ct_RANLIB" = x; then
10254    RANLIB=":"
10255  else
10256    case $cross_compiling:$ac_tool_warned in
10257yes:)
10258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10260ac_tool_warned=yes ;;
10261esac
10262    RANLIB=$ac_ct_RANLIB
10263  fi
10264else
10265  RANLIB="$ac_cv_prog_RANLIB"
10266fi
10267
10268if test -n "$ac_tool_prefix"; then
10269  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10270set dummy ${ac_tool_prefix}strip; ac_word=$2
10271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10272$as_echo_n "checking for $ac_word... " >&6; }
10273if ${ac_cv_prog_STRIP+:} false; then :
10274  $as_echo_n "(cached) " >&6
10275else
10276  if test -n "$STRIP"; then
10277  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10278else
10279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10280for as_dir in $PATH
10281do
10282  IFS=$as_save_IFS
10283  test -z "$as_dir" && as_dir=.
10284    for ac_exec_ext in '' $ac_executable_extensions; do
10285  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10286    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10287    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10288    break 2
10289  fi
10290done
10291  done
10292IFS=$as_save_IFS
10293
10294fi
10295fi
10296STRIP=$ac_cv_prog_STRIP
10297if test -n "$STRIP"; then
10298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10299$as_echo "$STRIP" >&6; }
10300else
10301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10302$as_echo "no" >&6; }
10303fi
10304
10305
10306fi
10307if test -z "$ac_cv_prog_STRIP"; then
10308  ac_ct_STRIP=$STRIP
10309  # Extract the first word of "strip", so it can be a program name with args.
10310set dummy strip; ac_word=$2
10311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10312$as_echo_n "checking for $ac_word... " >&6; }
10313if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10314  $as_echo_n "(cached) " >&6
10315else
10316  if test -n "$ac_ct_STRIP"; then
10317  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10318else
10319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10320for as_dir in $PATH
10321do
10322  IFS=$as_save_IFS
10323  test -z "$as_dir" && as_dir=.
10324    for ac_exec_ext in '' $ac_executable_extensions; do
10325  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10326    ac_cv_prog_ac_ct_STRIP="strip"
10327    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10328    break 2
10329  fi
10330done
10331  done
10332IFS=$as_save_IFS
10333
10334fi
10335fi
10336ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10337if test -n "$ac_ct_STRIP"; then
10338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10339$as_echo "$ac_ct_STRIP" >&6; }
10340else
10341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10342$as_echo "no" >&6; }
10343fi
10344
10345  if test "x$ac_ct_STRIP" = x; then
10346    STRIP=":"
10347  else
10348    case $cross_compiling:$ac_tool_warned in
10349yes:)
10350{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10351$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10352ac_tool_warned=yes ;;
10353esac
10354    STRIP=$ac_ct_STRIP
10355  fi
10356else
10357  STRIP="$ac_cv_prog_STRIP"
10358fi
10359
10360# Extract the first word of "makeinfo", so it can be a program name with args.
10361set dummy makeinfo; ac_word=$2
10362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10363$as_echo_n "checking for $ac_word... " >&6; }
10364if ${ac_cv_prog_MAKEINFO+:} false; then :
10365  $as_echo_n "(cached) " >&6
10366else
10367  if test -n "$MAKEINFO"; then
10368  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10369else
10370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10371for as_dir in $PATH
10372do
10373  IFS=$as_save_IFS
10374  test -z "$as_dir" && as_dir=.
10375    for ac_exec_ext in '' $ac_executable_extensions; do
10376  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10377    ac_cv_prog_MAKEINFO="makeinfo"
10378    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10379    break 2
10380  fi
10381done
10382  done
10383IFS=$as_save_IFS
10384
10385fi
10386fi
10387MAKEINFO=$ac_cv_prog_MAKEINFO
10388if test -n "$MAKEINFO"; then
10389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10390$as_echo "$MAKEINFO" >&6; }
10391else
10392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10393$as_echo "no" >&6; }
10394fi
10395
10396
10397if test "_$MAKEINFO" = "_"; then
10398    MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
10399else
10400    case "$MAKEINFO" in
10401      */missing.*)
10402        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10403*** Makeinfo is missing. Info documentation will not be built." >&5
10404$as_echo "$as_me: WARNING:
10405*** Makeinfo is missing. Info documentation will not be built." >&2;}
10406        ;;
10407      *)
10408        ;;
10409    esac
10410fi
10411
10412
10413# See if we need a separate native compiler.
10414if test $cross_compiling = no; then
10415  BUILD_CC="$CC"
10416
10417else
10418  for ac_prog in gcc cc
10419do
10420  # Extract the first word of "$ac_prog", so it can be a program name with args.
10421set dummy $ac_prog; ac_word=$2
10422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10423$as_echo_n "checking for $ac_word... " >&6; }
10424if ${ac_cv_prog_BUILD_CC+:} false; then :
10425  $as_echo_n "(cached) " >&6
10426else
10427  if test -n "$BUILD_CC"; then
10428  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10429else
10430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10431for as_dir in $PATH
10432do
10433  IFS=$as_save_IFS
10434  test -z "$as_dir" && as_dir=.
10435    for ac_exec_ext in '' $ac_executable_extensions; do
10436  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10437    ac_cv_prog_BUILD_CC="$ac_prog"
10438    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10439    break 2
10440  fi
10441done
10442  done
10443IFS=$as_save_IFS
10444
10445fi
10446fi
10447BUILD_CC=$ac_cv_prog_BUILD_CC
10448if test -n "$BUILD_CC"; then
10449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10450$as_echo "$BUILD_CC" >&6; }
10451else
10452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10453$as_echo "no" >&6; }
10454fi
10455
10456
10457  test -n "$BUILD_CC" && break
10458done
10459
10460fi
10461for ac_header in  	dirent.h 	errno.h 	execinfo.h 	getopt.h 	malloc.h 	mntent.h 	paths.h 	pthread.h 	semaphore.h 	setjmp.h 	signal.h 	stdarg.h 	stdint.h 	stdlib.h 	termios.h 	termio.h 	unistd.h 	utime.h 	attr/xattr.h 	linux/falloc.h 	linux/fd.h 	linux/fsmap.h 	linux/major.h 	linux/loop.h 	linux/types.h 	net/if_dl.h 	netinet/in.h 	sys/acl.h 	sys/disklabel.h 	sys/disk.h 	sys/file.h 	sys/ioctl.h 	sys/key.h 	sys/mkdev.h 	sys/mman.h 	sys/mount.h 	sys/prctl.h 	sys/random.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 	sys/xattr.h
10462do :
10463  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10464ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10465if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10466  cat >>confdefs.h <<_ACEOF
10467#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10468_ACEOF
10469
10470fi
10471
10472done
10473
10474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
10475$as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
10476DD=
10477for i in dd gdd ; do
10478	if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
10479		DD=$i
10480		break
10481	fi
10482done
10483if test -n "$DD" ; then
10484	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
10485$as_echo "$DD" >&6; }
10486else
10487	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
10488$as_echo "not found, using dd" >&6; }
10489	DD=dd
10490	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
10491$as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
10492fi
10493
10494
10495for ac_header in net/if.h
10496do :
10497  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10498#if HAVE_SYS_TYPES_H
10499#include <sys/types.h>
10500#endif
10501#if HAVE_SYS_SOCKET
10502#include <sys/socket.h>
10503#endif
10504
10505"
10506if test "x$ac_cv_header_net_if_h" = xyes; then :
10507  cat >>confdefs.h <<_ACEOF
10508#define HAVE_NET_IF_H 1
10509_ACEOF
10510
10511fi
10512
10513done
10514
10515for ac_func in vprintf
10516do :
10517  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10518if test "x$ac_cv_func_vprintf" = xyes; then :
10519  cat >>confdefs.h <<_ACEOF
10520#define HAVE_VPRINTF 1
10521_ACEOF
10522
10523ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10524if test "x$ac_cv_func__doprnt" = xyes; then :
10525
10526$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10527
10528fi
10529
10530fi
10531done
10532
10533
10534ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10535"
10536if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
10537
10538$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10539
10540fi
10541
10542ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
10543if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
10544
10545cat >>confdefs.h <<_ACEOF
10546#define HAVE_STRUCT_STAT_ST_ATIM 1
10547_ACEOF
10548
10549
10550fi
10551
10552ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10553"
10554if test "x$ac_cv_type_ssize_t" = xyes; then :
10555
10556$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10557
10558fi
10559
10560ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10561"
10562if test "x$ac_cv_have_decl_llseek" = xyes; then :
10563
10564$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10565
10566fi
10567
10568ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10569		 #define _LARGEFILE64_SOURCE
10570		 #include <unistd.h>
10571"
10572if test "x$ac_cv_have_decl_lseek64" = xyes; then :
10573
10574$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10575
10576fi
10577
10578# The cast to long int works around a bug in the HP C Compiler
10579# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10580# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10581# This bug is HP SR number 8606223364.
10582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10583$as_echo_n "checking size of short... " >&6; }
10584if ${ac_cv_sizeof_short+:} false; then :
10585  $as_echo_n "(cached) " >&6
10586else
10587  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
10588
10589else
10590  if test "$ac_cv_type_short" = yes; then
10591     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10593as_fn_error 77 "cannot compute sizeof (short)
10594See \`config.log' for more details" "$LINENO" 5; }
10595   else
10596     ac_cv_sizeof_short=0
10597   fi
10598fi
10599
10600fi
10601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10602$as_echo "$ac_cv_sizeof_short" >&6; }
10603
10604
10605
10606cat >>confdefs.h <<_ACEOF
10607#define SIZEOF_SHORT $ac_cv_sizeof_short
10608_ACEOF
10609
10610
10611# The cast to long int works around a bug in the HP C Compiler
10612# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10613# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10614# This bug is HP SR number 8606223364.
10615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10616$as_echo_n "checking size of int... " >&6; }
10617if ${ac_cv_sizeof_int+:} false; then :
10618  $as_echo_n "(cached) " >&6
10619else
10620  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
10621
10622else
10623  if test "$ac_cv_type_int" = yes; then
10624     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10626as_fn_error 77 "cannot compute sizeof (int)
10627See \`config.log' for more details" "$LINENO" 5; }
10628   else
10629     ac_cv_sizeof_int=0
10630   fi
10631fi
10632
10633fi
10634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10635$as_echo "$ac_cv_sizeof_int" >&6; }
10636
10637
10638
10639cat >>confdefs.h <<_ACEOF
10640#define SIZEOF_INT $ac_cv_sizeof_int
10641_ACEOF
10642
10643
10644# The cast to long int works around a bug in the HP C Compiler
10645# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10646# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10647# This bug is HP SR number 8606223364.
10648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10649$as_echo_n "checking size of long... " >&6; }
10650if ${ac_cv_sizeof_long+:} false; then :
10651  $as_echo_n "(cached) " >&6
10652else
10653  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
10654
10655else
10656  if test "$ac_cv_type_long" = yes; then
10657     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10658$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10659as_fn_error 77 "cannot compute sizeof (long)
10660See \`config.log' for more details" "$LINENO" 5; }
10661   else
10662     ac_cv_sizeof_long=0
10663   fi
10664fi
10665
10666fi
10667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10668$as_echo "$ac_cv_sizeof_long" >&6; }
10669
10670
10671
10672cat >>confdefs.h <<_ACEOF
10673#define SIZEOF_LONG $ac_cv_sizeof_long
10674_ACEOF
10675
10676
10677# The cast to long int works around a bug in the HP C Compiler
10678# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10679# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10680# This bug is HP SR number 8606223364.
10681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10682$as_echo_n "checking size of long long... " >&6; }
10683if ${ac_cv_sizeof_long_long+:} false; then :
10684  $as_echo_n "(cached) " >&6
10685else
10686  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
10687
10688else
10689  if test "$ac_cv_type_long_long" = yes; then
10690     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10692as_fn_error 77 "cannot compute sizeof (long long)
10693See \`config.log' for more details" "$LINENO" 5; }
10694   else
10695     ac_cv_sizeof_long_long=0
10696   fi
10697fi
10698
10699fi
10700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10701$as_echo "$ac_cv_sizeof_long_long" >&6; }
10702
10703
10704
10705cat >>confdefs.h <<_ACEOF
10706#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10707_ACEOF
10708
10709
10710# The cast to long int works around a bug in the HP C Compiler
10711# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10712# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10713# This bug is HP SR number 8606223364.
10714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10715$as_echo_n "checking size of off_t... " >&6; }
10716if ${ac_cv_sizeof_off_t+:} false; then :
10717  $as_echo_n "(cached) " >&6
10718else
10719  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
10720
10721else
10722  if test "$ac_cv_type_off_t" = yes; then
10723     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10724$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10725as_fn_error 77 "cannot compute sizeof (off_t)
10726See \`config.log' for more details" "$LINENO" 5; }
10727   else
10728     ac_cv_sizeof_off_t=0
10729   fi
10730fi
10731
10732fi
10733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10734$as_echo "$ac_cv_sizeof_off_t" >&6; }
10735
10736
10737
10738cat >>confdefs.h <<_ACEOF
10739#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10740_ACEOF
10741
10742
10743# The cast to long int works around a bug in the HP C Compiler
10744# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10745# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10746# This bug is HP SR number 8606223364.
10747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
10748$as_echo_n "checking size of time_t... " >&6; }
10749if ${ac_cv_sizeof_time_t+:} false; then :
10750  $as_echo_n "(cached) " >&6
10751else
10752  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
10753
10754else
10755  if test "$ac_cv_type_time_t" = yes; then
10756     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10757$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10758as_fn_error 77 "cannot compute sizeof (time_t)
10759See \`config.log' for more details" "$LINENO" 5; }
10760   else
10761     ac_cv_sizeof_time_t=0
10762   fi
10763fi
10764
10765fi
10766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
10767$as_echo "$ac_cv_sizeof_time_t" >&6; }
10768
10769
10770
10771cat >>confdefs.h <<_ACEOF
10772#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10773_ACEOF
10774
10775
10776SIZEOF_SHORT=$ac_cv_sizeof_short
10777SIZEOF_INT=$ac_cv_sizeof_int
10778SIZEOF_LONG=$ac_cv_sizeof_long
10779SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10780SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10781SIZEOF_TIME_T=$ac_cv_sizeof_time_t
10782
10783
10784
10785
10786
10787
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10789$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10790if ${ac_cv_c_bigendian+:} false; then :
10791  $as_echo_n "(cached) " >&6
10792else
10793  ac_cv_c_bigendian=unknown
10794    # See if we're dealing with a universal compiler.
10795    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10796/* end confdefs.h.  */
10797#ifndef __APPLE_CC__
10798	       not a universal capable compiler
10799	     #endif
10800	     typedef int dummy;
10801
10802_ACEOF
10803if ac_fn_c_try_compile "$LINENO"; then :
10804
10805	# Check for potential -arch flags.  It is not universal unless
10806	# there are at least two -arch flags with different values.
10807	ac_arch=
10808	ac_prev=
10809	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10810	 if test -n "$ac_prev"; then
10811	   case $ac_word in
10812	     i?86 | x86_64 | ppc | ppc64)
10813	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10814		 ac_arch=$ac_word
10815	       else
10816		 ac_cv_c_bigendian=universal
10817		 break
10818	       fi
10819	       ;;
10820	   esac
10821	   ac_prev=
10822	 elif test "x$ac_word" = "x-arch"; then
10823	   ac_prev=arch
10824	 fi
10825       done
10826fi
10827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10828    if test $ac_cv_c_bigendian = unknown; then
10829      # See if sys/param.h defines the BYTE_ORDER macro.
10830      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831/* end confdefs.h.  */
10832#include <sys/types.h>
10833	     #include <sys/param.h>
10834
10835int
10836main ()
10837{
10838#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10839		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10840		     && LITTLE_ENDIAN)
10841	      bogus endian macros
10842	     #endif
10843
10844  ;
10845  return 0;
10846}
10847_ACEOF
10848if ac_fn_c_try_compile "$LINENO"; then :
10849  # It does; now see whether it defined to BIG_ENDIAN or not.
10850	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10851/* end confdefs.h.  */
10852#include <sys/types.h>
10853		#include <sys/param.h>
10854
10855int
10856main ()
10857{
10858#if BYTE_ORDER != BIG_ENDIAN
10859		 not big endian
10860		#endif
10861
10862  ;
10863  return 0;
10864}
10865_ACEOF
10866if ac_fn_c_try_compile "$LINENO"; then :
10867  ac_cv_c_bigendian=yes
10868else
10869  ac_cv_c_bigendian=no
10870fi
10871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10872fi
10873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10874    fi
10875    if test $ac_cv_c_bigendian = unknown; then
10876      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10877      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10878/* end confdefs.h.  */
10879#include <limits.h>
10880
10881int
10882main ()
10883{
10884#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10885	      bogus endian macros
10886	     #endif
10887
10888  ;
10889  return 0;
10890}
10891_ACEOF
10892if ac_fn_c_try_compile "$LINENO"; then :
10893  # It does; now see whether it defined to _BIG_ENDIAN or not.
10894	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895/* end confdefs.h.  */
10896#include <limits.h>
10897
10898int
10899main ()
10900{
10901#ifndef _BIG_ENDIAN
10902		 not big endian
10903		#endif
10904
10905  ;
10906  return 0;
10907}
10908_ACEOF
10909if ac_fn_c_try_compile "$LINENO"; then :
10910  ac_cv_c_bigendian=yes
10911else
10912  ac_cv_c_bigendian=no
10913fi
10914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10915fi
10916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10917    fi
10918    if test $ac_cv_c_bigendian = unknown; then
10919      # Compile a test program.
10920      if test "$cross_compiling" = yes; then :
10921  # Try to guess by grepping values from an object file.
10922	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10923/* end confdefs.h.  */
10924short int ascii_mm[] =
10925		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10926		short int ascii_ii[] =
10927		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10928		int use_ascii (int i) {
10929		  return ascii_mm[i] + ascii_ii[i];
10930		}
10931		short int ebcdic_ii[] =
10932		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10933		short int ebcdic_mm[] =
10934		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10935		int use_ebcdic (int i) {
10936		  return ebcdic_mm[i] + ebcdic_ii[i];
10937		}
10938		extern int foo;
10939
10940int
10941main ()
10942{
10943return use_ascii (foo) == use_ebcdic (foo);
10944  ;
10945  return 0;
10946}
10947_ACEOF
10948if ac_fn_c_try_compile "$LINENO"; then :
10949  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10950	      ac_cv_c_bigendian=yes
10951	    fi
10952	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10953	      if test "$ac_cv_c_bigendian" = unknown; then
10954		ac_cv_c_bigendian=no
10955	      else
10956		# finding both strings is unlikely to happen, but who knows?
10957		ac_cv_c_bigendian=unknown
10958	      fi
10959	    fi
10960fi
10961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10962else
10963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10964/* end confdefs.h.  */
10965$ac_includes_default
10966int
10967main ()
10968{
10969
10970	     /* Are we little or big endian?  From Harbison&Steele.  */
10971	     union
10972	     {
10973	       long int l;
10974	       char c[sizeof (long int)];
10975	     } u;
10976	     u.l = 1;
10977	     return u.c[sizeof (long int) - 1] == 1;
10978
10979  ;
10980  return 0;
10981}
10982_ACEOF
10983if ac_fn_c_try_run "$LINENO"; then :
10984  ac_cv_c_bigendian=no
10985else
10986  ac_cv_c_bigendian=yes
10987fi
10988rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10989  conftest.$ac_objext conftest.beam conftest.$ac_ext
10990fi
10991
10992    fi
10993fi
10994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10995$as_echo "$ac_cv_c_bigendian" >&6; }
10996 case $ac_cv_c_bigendian in #(
10997   yes)
10998     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10999;; #(
11000   no)
11001      ;; #(
11002   universal)
11003
11004$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11005
11006     ;; #(
11007   *)
11008     as_fn_error $? "unknown endianness
11009 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11010 esac
11011
11012if test $cross_compiling = no; then
11013  BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
11014else
11015  CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
11016fi
11017ASM_TYPES_HEADER=./asm_types.h
11018
11019echo "/* These defines are needed for the public ext2fs.h header file */" \
11020     > public_config.h
11021if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
11022  uniq tmp_config.$$ >> public_config.h
11023else
11024  echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
11025fi
11026if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
11027  uniq tmp_config.$$ >> public_config.h
11028else
11029  echo "#undef WORDS_BIGENDIAN" >> public_config.h
11030fi
11031rm -f tmp_config.$$
11032PUBLIC_CONFIG_HEADER=./public_config.h
11033
11034for ac_header in inttypes.h
11035do :
11036  ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
11037if test "x$ac_cv_header_inttypes_h" = xyes; then :
11038  cat >>confdefs.h <<_ACEOF
11039#define HAVE_INTTYPES_H 1
11040_ACEOF
11041
11042fi
11043
11044done
11045
11046ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
11047if test "x$ac_cv_type_intptr_t" = xyes; then :
11048
11049cat >>confdefs.h <<_ACEOF
11050#define HAVE_INTPTR_T 1
11051_ACEOF
11052
11053
11054fi
11055
11056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
11057$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
11058if ${e2fsprogs_cv_struct_st_flags+:} false; then :
11059  $as_echo_n "(cached) " >&6
11060else
11061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11062/* end confdefs.h.  */
11063#include <sys/stat.h>
11064int
11065main ()
11066{
11067struct stat stat; stat.st_flags = 0;
11068  ;
11069  return 0;
11070}
11071_ACEOF
11072if ac_fn_c_try_compile "$LINENO"; then :
11073  e2fsprogs_cv_struct_st_flags=yes
11074else
11075  e2fsprogs_cv_struct_st_flags=no
11076fi
11077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11078fi
11079
11080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
11081$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
11082if test "$e2fsprogs_cv_struct_st_flags" = yes; then
11083  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
11084$as_echo_n "checking whether st_flags field is useful... " >&6; }
11085  if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
11086  $as_echo_n "(cached) " >&6
11087else
11088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11089/* end confdefs.h.  */
11090#include <sys/stat.h>
11091int
11092main ()
11093{
11094struct stat stat; stat.st_flags |= UF_IMMUTABLE;
11095  ;
11096  return 0;
11097}
11098_ACEOF
11099if ac_fn_c_try_compile "$LINENO"; then :
11100  e2fsprogs_cv_struct_st_flags_immut=yes
11101else
11102  e2fsprogs_cv_struct_st_flags_immut=no
11103fi
11104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11105fi
11106
11107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
11108$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
11109  if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
11110
11111$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
11112
11113  fi
11114fi
11115ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
11116	 #include <sys/socket.h>
11117"
11118if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
11119
11120cat >>confdefs.h <<_ACEOF
11121#define HAVE_SA_LEN 1
11122_ACEOF
11123
11124fi
11125
11126if test -n "$BLKID_CMT"; then
11127  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5
11128$as_echo_n "checking for blkid_probe_get_topology in -lblkid... " >&6; }
11129if ${ac_cv_lib_blkid_blkid_probe_get_topology+:} false; then :
11130  $as_echo_n "(cached) " >&6
11131else
11132  ac_check_lib_save_LIBS=$LIBS
11133LIBS="-lblkid  $LIBS"
11134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11135/* end confdefs.h.  */
11136
11137/* Override any GCC internal prototype to avoid an error.
11138   Use char because int might match the return type of a GCC
11139   builtin and then its argument prototype would still apply.  */
11140#ifdef __cplusplus
11141extern "C"
11142#endif
11143char blkid_probe_get_topology ();
11144int
11145main ()
11146{
11147return blkid_probe_get_topology ();
11148  ;
11149  return 0;
11150}
11151_ACEOF
11152if ac_fn_c_try_link "$LINENO"; then :
11153  ac_cv_lib_blkid_blkid_probe_get_topology=yes
11154else
11155  ac_cv_lib_blkid_blkid_probe_get_topology=no
11156fi
11157rm -f core conftest.err conftest.$ac_objext \
11158    conftest$ac_exeext conftest.$ac_ext
11159LIBS=$ac_check_lib_save_LIBS
11160fi
11161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5
11162$as_echo "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; }
11163if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes; then :
11164
11165$as_echo "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
11166
11167fi
11168
11169  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_topology_get_dax in -lblkid" >&5
11170$as_echo_n "checking for blkid_topology_get_dax in -lblkid... " >&6; }
11171if ${ac_cv_lib_blkid_blkid_topology_get_dax+:} false; then :
11172  $as_echo_n "(cached) " >&6
11173else
11174  ac_check_lib_save_LIBS=$LIBS
11175LIBS="-lblkid  $LIBS"
11176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11177/* end confdefs.h.  */
11178
11179/* Override any GCC internal prototype to avoid an error.
11180   Use char because int might match the return type of a GCC
11181   builtin and then its argument prototype would still apply.  */
11182#ifdef __cplusplus
11183extern "C"
11184#endif
11185char blkid_topology_get_dax ();
11186int
11187main ()
11188{
11189return blkid_topology_get_dax ();
11190  ;
11191  return 0;
11192}
11193_ACEOF
11194if ac_fn_c_try_link "$LINENO"; then :
11195  ac_cv_lib_blkid_blkid_topology_get_dax=yes
11196else
11197  ac_cv_lib_blkid_blkid_topology_get_dax=no
11198fi
11199rm -f core conftest.err conftest.$ac_objext \
11200    conftest$ac_exeext conftest.$ac_ext
11201LIBS=$ac_check_lib_save_LIBS
11202fi
11203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_topology_get_dax" >&5
11204$as_echo "$ac_cv_lib_blkid_blkid_topology_get_dax" >&6; }
11205if test "x$ac_cv_lib_blkid_blkid_topology_get_dax" = xyes; then :
11206
11207$as_echo "#define HAVE_BLKID_TOPOLOGY_GET_DAX 1" >>confdefs.h
11208
11209fi
11210
11211  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5
11212$as_echo_n "checking for blkid_probe_enable_partitions in -lblkid... " >&6; }
11213if ${ac_cv_lib_blkid_blkid_probe_enable_partitions+:} false; then :
11214  $as_echo_n "(cached) " >&6
11215else
11216  ac_check_lib_save_LIBS=$LIBS
11217LIBS="-lblkid  $LIBS"
11218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11219/* end confdefs.h.  */
11220
11221/* Override any GCC internal prototype to avoid an error.
11222   Use char because int might match the return type of a GCC
11223   builtin and then its argument prototype would still apply.  */
11224#ifdef __cplusplus
11225extern "C"
11226#endif
11227char blkid_probe_enable_partitions ();
11228int
11229main ()
11230{
11231return blkid_probe_enable_partitions ();
11232  ;
11233  return 0;
11234}
11235_ACEOF
11236if ac_fn_c_try_link "$LINENO"; then :
11237  ac_cv_lib_blkid_blkid_probe_enable_partitions=yes
11238else
11239  ac_cv_lib_blkid_blkid_probe_enable_partitions=no
11240fi
11241rm -f core conftest.err conftest.$ac_objext \
11242    conftest$ac_exeext conftest.$ac_ext
11243LIBS=$ac_check_lib_save_LIBS
11244fi
11245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5
11246$as_echo "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; }
11247if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes; then :
11248
11249$as_echo "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
11250
11251fi
11252
11253fi
11254if test -n "$DLOPEN_LIB" ; then
11255   ac_cv_func_dlopen=yes
11256fi
11257for ac_func in  	__secure_getenv 	add_key 	backtrace 	chflags 	dlopen 	fadvise64 	fallocate 	fallocate64 	fchown 	fcntl 	fdatasync 	fstat64 	fsync 	ftruncate64 	futimes 	getcwd 	getdtablesize 	getentropy 	gethostname 	getmntinfo 	getpwuid_r 	getrandom 	getrlimit 	getrusage 	jrand48 	keyctl 	llistxattr 	llseek 	lseek64 	mallinfo 	mbstowcs 	memalign 	mempcpy 	mmap 	msync 	nanosleep 	open64 	pathconf 	posix_fadvise 	posix_fadvise64 	posix_memalign 	prctl 	pread 	pwrite 	pread64 	pwrite64 	secure_getenv 	setmntent 	setresgid 	setresuid 	snprintf 	srandom 	stpcpy 	strcasecmp 	strdup 	strnlen 	strptime 	strtoull 	sync_file_range 	sysconf 	usleep 	utime 	utimes 	valloc
11258do :
11259  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11260ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11261if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11262  cat >>confdefs.h <<_ACEOF
11263#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11264_ACEOF
11265
11266fi
11267done
11268
11269SOCKET_LIB=''
11270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11271$as_echo_n "checking for socket in -lsocket... " >&6; }
11272if ${ac_cv_lib_socket_socket+:} false; then :
11273  $as_echo_n "(cached) " >&6
11274else
11275  ac_check_lib_save_LIBS=$LIBS
11276LIBS="-lsocket  $LIBS"
11277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11278/* end confdefs.h.  */
11279
11280/* Override any GCC internal prototype to avoid an error.
11281   Use char because int might match the return type of a GCC
11282   builtin and then its argument prototype would still apply.  */
11283#ifdef __cplusplus
11284extern "C"
11285#endif
11286char socket ();
11287int
11288main ()
11289{
11290return socket ();
11291  ;
11292  return 0;
11293}
11294_ACEOF
11295if ac_fn_c_try_link "$LINENO"; then :
11296  ac_cv_lib_socket_socket=yes
11297else
11298  ac_cv_lib_socket_socket=no
11299fi
11300rm -f core conftest.err conftest.$ac_objext \
11301    conftest$ac_exeext conftest.$ac_ext
11302LIBS=$ac_check_lib_save_LIBS
11303fi
11304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11305$as_echo "$ac_cv_lib_socket_socket" >&6; }
11306if test "x$ac_cv_lib_socket_socket" = xyes; then :
11307  SOCKET_LIB=-lsocket
11308fi
11309
11310
11311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
11312$as_echo_n "checking for magic_file in -lmagic... " >&6; }
11313if ${ac_cv_lib_magic_magic_file+:} false; then :
11314  $as_echo_n "(cached) " >&6
11315else
11316  ac_check_lib_save_LIBS=$LIBS
11317LIBS="-lmagic  $LIBS"
11318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11319/* end confdefs.h.  */
11320
11321/* Override any GCC internal prototype to avoid an error.
11322   Use char because int might match the return type of a GCC
11323   builtin and then its argument prototype would still apply.  */
11324#ifdef __cplusplus
11325extern "C"
11326#endif
11327char magic_file ();
11328int
11329main ()
11330{
11331return magic_file ();
11332  ;
11333  return 0;
11334}
11335_ACEOF
11336if ac_fn_c_try_link "$LINENO"; then :
11337  ac_cv_lib_magic_magic_file=yes
11338else
11339  ac_cv_lib_magic_magic_file=no
11340fi
11341rm -f core conftest.err conftest.$ac_objext \
11342    conftest$ac_exeext conftest.$ac_ext
11343LIBS=$ac_check_lib_save_LIBS
11344fi
11345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
11346$as_echo "$ac_cv_lib_magic_magic_file" >&6; }
11347if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
11348  MAGIC_LIB=-lmagic
11349for ac_header in magic.h
11350do :
11351  ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
11352if test "x$ac_cv_header_magic_h" = xyes; then :
11353  cat >>confdefs.h <<_ACEOF
11354#define HAVE_MAGIC_H 1
11355_ACEOF
11356
11357fi
11358
11359done
11360
11361fi
11362
11363if test "$ac_cv_func_dlopen" = yes ; then
11364   MAGIC_LIB=$DLOPEN_LIB
11365fi
11366
11367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
11368$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
11369if ${ac_cv_lib_rt_clock_gettime+:} false; then :
11370  $as_echo_n "(cached) " >&6
11371else
11372  ac_check_lib_save_LIBS=$LIBS
11373LIBS="-lrt  $LIBS"
11374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11375/* end confdefs.h.  */
11376
11377/* Override any GCC internal prototype to avoid an error.
11378   Use char because int might match the return type of a GCC
11379   builtin and then its argument prototype would still apply.  */
11380#ifdef __cplusplus
11381extern "C"
11382#endif
11383char clock_gettime ();
11384int
11385main ()
11386{
11387return clock_gettime ();
11388  ;
11389  return 0;
11390}
11391_ACEOF
11392if ac_fn_c_try_link "$LINENO"; then :
11393  ac_cv_lib_rt_clock_gettime=yes
11394else
11395  ac_cv_lib_rt_clock_gettime=no
11396fi
11397rm -f core conftest.err conftest.$ac_objext \
11398    conftest$ac_exeext conftest.$ac_ext
11399LIBS=$ac_check_lib_save_LIBS
11400fi
11401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
11402$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
11403if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
11404  CLOCK_GETTIME_LIB=-lrt
11405fi
11406
11407
11408FUSE_CMT=
11409FUSE_LIB=
11410# Check whether --enable-fuse2fs was given.
11411if test "${enable_fuse2fs+set}" = set; then :
11412  enableval=$enable_fuse2fs; if test "$enableval" = "no"
11413then
11414	FUSE_CMT="#"
11415	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
11416$as_echo "Disabling fuse2fs" >&6; }
11417else
11418	for ac_header in pthread.h fuse.h
11419do :
11420  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11421ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS	64
11422#define FUSE_USE_VERSION 29
11423"
11424if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11425  cat >>confdefs.h <<_ACEOF
11426#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11427_ACEOF
11428
11429else
11430  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11432as_fn_error $? "Cannot find fuse2fs headers.
11433See \`config.log' for more details" "$LINENO" 5; }
11434fi
11435
11436done
11437
11438
11439	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440/* end confdefs.h.  */
11441#define FUSE_USE_VERSION 29
11442#ifdef __linux__
11443#include <linux/fs.h>
11444#include <linux/falloc.h>
11445#include <linux/xattr.h>
11446#endif
11447
11448int
11449main ()
11450{
11451
11452  ;
11453  return 0;
11454}
11455_ACEOF
11456if ac_fn_c_try_cpp "$LINENO"; then :
11457
11458else
11459  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11461as_fn_error $? "Cannot find fuse2fs Linux headers.
11462See \`config.log' for more details" "$LINENO" 5; }
11463fi
11464rm -f conftest.err conftest.i conftest.$ac_ext
11465
11466	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
11467$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
11468if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
11469  $as_echo_n "(cached) " >&6
11470else
11471  ac_check_lib_save_LIBS=$LIBS
11472LIBS="-losxfuse  $LIBS"
11473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11474/* end confdefs.h.  */
11475
11476/* Override any GCC internal prototype to avoid an error.
11477   Use char because int might match the return type of a GCC
11478   builtin and then its argument prototype would still apply.  */
11479#ifdef __cplusplus
11480extern "C"
11481#endif
11482char fuse_main ();
11483int
11484main ()
11485{
11486return fuse_main ();
11487  ;
11488  return 0;
11489}
11490_ACEOF
11491if ac_fn_c_try_link "$LINENO"; then :
11492  ac_cv_lib_osxfuse_fuse_main=yes
11493else
11494  ac_cv_lib_osxfuse_fuse_main=no
11495fi
11496rm -f core conftest.err conftest.$ac_objext \
11497    conftest$ac_exeext conftest.$ac_ext
11498LIBS=$ac_check_lib_save_LIBS
11499fi
11500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
11501$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
11502if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
11503  FUSE_LIB=-losxfuse
11504else
11505  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
11506$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
11507if ${ac_cv_lib_fuse_fuse_main+:} false; then :
11508  $as_echo_n "(cached) " >&6
11509else
11510  ac_check_lib_save_LIBS=$LIBS
11511LIBS="-lfuse  $LIBS"
11512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11513/* end confdefs.h.  */
11514
11515/* Override any GCC internal prototype to avoid an error.
11516   Use char because int might match the return type of a GCC
11517   builtin and then its argument prototype would still apply.  */
11518#ifdef __cplusplus
11519extern "C"
11520#endif
11521char fuse_main ();
11522int
11523main ()
11524{
11525return fuse_main ();
11526  ;
11527  return 0;
11528}
11529_ACEOF
11530if ac_fn_c_try_link "$LINENO"; then :
11531  ac_cv_lib_fuse_fuse_main=yes
11532else
11533  ac_cv_lib_fuse_fuse_main=no
11534fi
11535rm -f core conftest.err conftest.$ac_objext \
11536    conftest$ac_exeext conftest.$ac_ext
11537LIBS=$ac_check_lib_save_LIBS
11538fi
11539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
11540$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
11541if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
11542  FUSE_LIB=-lfuse
11543else
11544  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11546as_fn_error $? "Cannot find fuse library.
11547See \`config.log' for more details" "$LINENO" 5; }
11548fi
11549
11550fi
11551
11552	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
11553$as_echo "Enabling fuse2fs" >&6; }
11554fi
11555
11556else
11557  for ac_header in pthread.h fuse.h
11558do :
11559  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11560ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS	64
11561#define FUSE_USE_VERSION 29
11562#ifdef __linux__
11563# include <linux/fs.h>
11564# include <linux/falloc.h>
11565# include <linux/xattr.h>
11566#endif
11567"
11568if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11569  cat >>confdefs.h <<_ACEOF
11570#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11571_ACEOF
11572
11573else
11574  FUSE_CMT="#"
11575fi
11576
11577done
11578
11579if test -z "$FUSE_CMT"
11580then
11581	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
11582$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
11583if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
11584  $as_echo_n "(cached) " >&6
11585else
11586  ac_check_lib_save_LIBS=$LIBS
11587LIBS="-losxfuse  $LIBS"
11588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11589/* end confdefs.h.  */
11590
11591/* Override any GCC internal prototype to avoid an error.
11592   Use char because int might match the return type of a GCC
11593   builtin and then its argument prototype would still apply.  */
11594#ifdef __cplusplus
11595extern "C"
11596#endif
11597char fuse_main ();
11598int
11599main ()
11600{
11601return fuse_main ();
11602  ;
11603  return 0;
11604}
11605_ACEOF
11606if ac_fn_c_try_link "$LINENO"; then :
11607  ac_cv_lib_osxfuse_fuse_main=yes
11608else
11609  ac_cv_lib_osxfuse_fuse_main=no
11610fi
11611rm -f core conftest.err conftest.$ac_objext \
11612    conftest$ac_exeext conftest.$ac_ext
11613LIBS=$ac_check_lib_save_LIBS
11614fi
11615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
11616$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
11617if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
11618  FUSE_LIB=-losxfuse
11619else
11620  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
11621$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
11622if ${ac_cv_lib_fuse_fuse_main+:} false; then :
11623  $as_echo_n "(cached) " >&6
11624else
11625  ac_check_lib_save_LIBS=$LIBS
11626LIBS="-lfuse  $LIBS"
11627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11628/* end confdefs.h.  */
11629
11630/* Override any GCC internal prototype to avoid an error.
11631   Use char because int might match the return type of a GCC
11632   builtin and then its argument prototype would still apply.  */
11633#ifdef __cplusplus
11634extern "C"
11635#endif
11636char fuse_main ();
11637int
11638main ()
11639{
11640return fuse_main ();
11641  ;
11642  return 0;
11643}
11644_ACEOF
11645if ac_fn_c_try_link "$LINENO"; then :
11646  ac_cv_lib_fuse_fuse_main=yes
11647else
11648  ac_cv_lib_fuse_fuse_main=no
11649fi
11650rm -f core conftest.err conftest.$ac_objext \
11651    conftest$ac_exeext conftest.$ac_ext
11652LIBS=$ac_check_lib_save_LIBS
11653fi
11654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
11655$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
11656if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
11657  FUSE_LIB=-lfuse
11658else
11659  FUSE_CMT="#"
11660fi
11661
11662fi
11663
11664fi
11665if test -z "$FUSE_CMT"
11666then
11667	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
11668$as_echo "Enabling fuse2fs by default." >&6; }
11669fi
11670
11671fi
11672
11673
11674
11675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11676$as_echo_n "checking for optreset... " >&6; }
11677if ${ac_cv_have_optreset+:} false; then :
11678  $as_echo_n "(cached) " >&6
11679else
11680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11681/* end confdefs.h.  */
11682#include <unistd.h>
11683
11684_ACEOF
11685if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11686  $EGREP "optreset" >/dev/null 2>&1; then :
11687  ac_cv_have_optreset=yes
11688else
11689  ac_cv_have_optreset=no
11690fi
11691rm -f conftest*
11692
11693fi
11694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11695$as_echo "$ac_cv_have_optreset" >&6; }
11696if test $ac_cv_have_optreset = yes; then
11697
11698$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11699
11700fi
11701
11702SEM_INIT_LIB=''
11703echo GL_THREADS_API: ${gl_threads_api}
11704if test "${gl_threads_api}" != none
11705then
11706  ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11707if test "x$ac_cv_func_sem_init" = xyes; then :
11708
11709else
11710  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11711$as_echo_n "checking for sem_init in -lpthread... " >&6; }
11712if ${ac_cv_lib_pthread_sem_init+:} false; then :
11713  $as_echo_n "(cached) " >&6
11714else
11715  ac_check_lib_save_LIBS=$LIBS
11716LIBS="-lpthread  $LIBS"
11717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11718/* end confdefs.h.  */
11719
11720/* Override any GCC internal prototype to avoid an error.
11721   Use char because int might match the return type of a GCC
11722   builtin and then its argument prototype would still apply.  */
11723#ifdef __cplusplus
11724extern "C"
11725#endif
11726char sem_init ();
11727int
11728main ()
11729{
11730return sem_init ();
11731  ;
11732  return 0;
11733}
11734_ACEOF
11735if ac_fn_c_try_link "$LINENO"; then :
11736  ac_cv_lib_pthread_sem_init=yes
11737else
11738  ac_cv_lib_pthread_sem_init=no
11739fi
11740rm -f core conftest.err conftest.$ac_objext \
11741    conftest$ac_exeext conftest.$ac_ext
11742LIBS=$ac_check_lib_save_LIBS
11743fi
11744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11745$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11746if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
11747  $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11748
11749  	SEM_INIT_LIB=-lpthread
11750else
11751  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11752$as_echo_n "checking for sem_init in -lrt... " >&6; }
11753if ${ac_cv_lib_rt_sem_init+:} false; then :
11754  $as_echo_n "(cached) " >&6
11755else
11756  ac_check_lib_save_LIBS=$LIBS
11757LIBS="-lrt  $LIBS"
11758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11759/* end confdefs.h.  */
11760
11761/* Override any GCC internal prototype to avoid an error.
11762   Use char because int might match the return type of a GCC
11763   builtin and then its argument prototype would still apply.  */
11764#ifdef __cplusplus
11765extern "C"
11766#endif
11767char sem_init ();
11768int
11769main ()
11770{
11771return sem_init ();
11772  ;
11773  return 0;
11774}
11775_ACEOF
11776if ac_fn_c_try_link "$LINENO"; then :
11777  ac_cv_lib_rt_sem_init=yes
11778else
11779  ac_cv_lib_rt_sem_init=no
11780fi
11781rm -f core conftest.err conftest.$ac_objext \
11782    conftest$ac_exeext conftest.$ac_ext
11783LIBS=$ac_check_lib_save_LIBS
11784fi
11785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11786$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11787if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
11788  $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11789
11790  	SEM_INIT_LIB=-lrt
11791else
11792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11793$as_echo_n "checking for sem_init in -lposix4... " >&6; }
11794if ${ac_cv_lib_posix4_sem_init+:} false; then :
11795  $as_echo_n "(cached) " >&6
11796else
11797  ac_check_lib_save_LIBS=$LIBS
11798LIBS="-lposix4  $LIBS"
11799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11800/* end confdefs.h.  */
11801
11802/* Override any GCC internal prototype to avoid an error.
11803   Use char because int might match the return type of a GCC
11804   builtin and then its argument prototype would still apply.  */
11805#ifdef __cplusplus
11806extern "C"
11807#endif
11808char sem_init ();
11809int
11810main ()
11811{
11812return sem_init ();
11813  ;
11814  return 0;
11815}
11816_ACEOF
11817if ac_fn_c_try_link "$LINENO"; then :
11818  ac_cv_lib_posix4_sem_init=yes
11819else
11820  ac_cv_lib_posix4_sem_init=no
11821fi
11822rm -f core conftest.err conftest.$ac_objext \
11823    conftest$ac_exeext conftest.$ac_ext
11824LIBS=$ac_check_lib_save_LIBS
11825fi
11826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11827$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11828if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
11829  $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11830
11831  	SEM_INIT_LIB=-lposix4
11832fi
11833
11834fi
11835
11836fi
11837
11838fi
11839fi
11840
11841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11842$as_echo_n "checking for unified diff option... " >&6; }
11843if diff -u $0 $0 > /dev/null 2>&1 ; then
11844   UNI_DIFF_OPTS=-u
11845else
11846   UNI_DIFF_OPTS=-c
11847fi
11848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11849$as_echo "$UNI_DIFF_OPTS" >&6; }
11850
11851case "$host_os" in
11852linux*)
11853
11854$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11855
11856	;;
11857esac
11858
11859    $as_echo_n "checking for mount 'nosuid' option... "
11860    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11861/* end confdefs.h.  */
11862#include <sys/mount.h>
11863int
11864main ()
11865{
11866void *temp = (void *)(MS_NOSUID); (void) temp;
11867  ;
11868  return 0;
11869}
11870_ACEOF
11871if ac_fn_c_try_compile "$LINENO"; then :
11872
11873$as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
11874
11875         ac_cv_mount_nosuid=yes
11876         $as_echo "yes"
11877else
11878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11879/* end confdefs.h.  */
11880#include <sys/mount.h>
11881int
11882main ()
11883{
11884void *temp = (void *)(MNT_NOSUID); (void) temp;
11885  ;
11886  return 0;
11887}
11888_ACEOF
11889if ac_fn_c_try_compile "$LINENO"; then :
11890
11891$as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
11892
11893             ac_cv_mount_nosuid=yes
11894             $as_echo "yes"
11895else
11896  ac_cv_mount_nosuid=no
11897             $as_echo "no"
11898
11899fi
11900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11901
11902fi
11903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11904
11905
11906    $as_echo_n "checking for mount 'nodev' option... "
11907    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11908/* end confdefs.h.  */
11909#include <sys/mount.h>
11910int
11911main ()
11912{
11913void *temp = (void *)(MS_NODEV); (void) temp;
11914  ;
11915  return 0;
11916}
11917_ACEOF
11918if ac_fn_c_try_compile "$LINENO"; then :
11919
11920$as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
11921
11922         ac_cv_mount_nodev=yes
11923         $as_echo "yes"
11924else
11925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11926/* end confdefs.h.  */
11927#include <sys/mount.h>
11928int
11929main ()
11930{
11931void *temp = (void *)(MNT_NODEV); (void) temp;
11932  ;
11933  return 0;
11934}
11935_ACEOF
11936if ac_fn_c_try_compile "$LINENO"; then :
11937
11938$as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
11939
11940             ac_cv_mount_nodev=yes
11941             $as_echo "yes"
11942else
11943  ac_cv_mount_nodev=no
11944             $as_echo "no"
11945
11946fi
11947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11948
11949fi
11950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11951
11952# Check whether --enable-lto was given.
11953if test "${enable_lto+set}" = set; then :
11954  enableval=$enable_lto;
11955else
11956  enable_lto=no
11957fi
11958
11959if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
11960	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
11961$as_echo_n "checking if C compiler supports LTO... " >&6; }
11962	OLD_CFLAGS="$CFLAGS"
11963	OLD_LDFLAGS="$LDFLAGS"
11964	LTO_FLAGS="-g -flto -ffat-lto-objects"
11965	CFLAGS="$CFLAGS $LTO_FLAGS"
11966	LDFLAGS="$LDFLAGS $LTO_FLAGS"
11967	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968/* end confdefs.h.  */
11969
11970int
11971main ()
11972{
11973
11974  ;
11975  return 0;
11976}
11977_ACEOF
11978if ac_fn_c_try_link "$LINENO"; then :
11979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11980$as_echo "yes" >&6; }
11981		lto_cflags=$LTO_FLAGS
11982		lto_ldflags=$LTO_FLAGS
11983		# Extract the first word of "gcc-ar", so it can be a program name with args.
11984set dummy gcc-ar; ac_word=$2
11985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11986$as_echo_n "checking for $ac_word... " >&6; }
11987if ${ac_cv_path_gcc_ar+:} false; then :
11988  $as_echo_n "(cached) " >&6
11989else
11990  case $gcc_ar in
11991  [\\/]* | ?:[\\/]*)
11992  ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
11993  ;;
11994  *)
11995  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11996for as_dir in $PATH
11997do
11998  IFS=$as_save_IFS
11999  test -z "$as_dir" && as_dir=.
12000    for ac_exec_ext in '' $ac_executable_extensions; do
12001  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12002    ac_cv_path_gcc_ar="$as_dir/$ac_word$ac_exec_ext"
12003    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12004    break 2
12005  fi
12006done
12007  done
12008IFS=$as_save_IFS
12009
12010  ;;
12011esac
12012fi
12013gcc_ar=$ac_cv_path_gcc_ar
12014if test -n "$gcc_ar"; then
12015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
12016$as_echo "$gcc_ar" >&6; }
12017else
12018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12019$as_echo "no" >&6; }
12020fi
12021
12022
12023		# Extract the first word of "gcc-ranlib", so it can be a program name with args.
12024set dummy gcc-ranlib; ac_word=$2
12025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12026$as_echo_n "checking for $ac_word... " >&6; }
12027if ${ac_cv_path_gcc_ranlib+:} false; then :
12028  $as_echo_n "(cached) " >&6
12029else
12030  case $gcc_ranlib in
12031  [\\/]* | ?:[\\/]*)
12032  ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
12033  ;;
12034  *)
12035  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12036for as_dir in $PATH
12037do
12038  IFS=$as_save_IFS
12039  test -z "$as_dir" && as_dir=.
12040    for ac_exec_ext in '' $ac_executable_extensions; do
12041  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12042    ac_cv_path_gcc_ranlib="$as_dir/$ac_word$ac_exec_ext"
12043    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12044    break 2
12045  fi
12046done
12047  done
12048IFS=$as_save_IFS
12049
12050  ;;
12051esac
12052fi
12053gcc_ranlib=$ac_cv_path_gcc_ranlib
12054if test -n "$gcc_ranlib"; then
12055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
12056$as_echo "$gcc_ranlib" >&6; }
12057else
12058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12059$as_echo "no" >&6; }
12060fi
12061
12062
12063else
12064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12065$as_echo "no" >&6; }
12066fi
12067rm -f core conftest.err conftest.$ac_objext \
12068    conftest$ac_exeext conftest.$ac_ext
12069	if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
12070		have_lto=yes
12071		AR="${gcc_ar}"
12072		RANLIB="${gcc_ranlib}"
12073	fi
12074	CFLAGS="${OLD_CFLAGS}"
12075	LDFLAGS="${OLD_LDFLAGS}"
12076
12077
12078
12079fi
12080if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
12081	as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
12082fi
12083# Check whether --enable-ubsan was given.
12084if test "${enable_ubsan+set}" = set; then :
12085  enableval=$enable_ubsan;
12086else
12087  enable_ubsan=no
12088fi
12089
12090if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
12091	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
12092$as_echo_n "checking if C compiler supports UBSAN... " >&6; }
12093	OLD_CFLAGS="$CFLAGS"
12094	OLD_LDFLAGS="$LDFLAGS"
12095	UBSAN_FLAGS="-fsanitize=undefined"
12096	CFLAGS="$CFLAGS $UBSAN_FLAGS"
12097	LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
12098	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12099/* end confdefs.h.  */
12100
12101int
12102main ()
12103{
12104
12105  ;
12106  return 0;
12107}
12108_ACEOF
12109if ac_fn_c_try_link "$LINENO"; then :
12110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12111$as_echo "yes" >&6; }
12112		ubsan_cflags=$UBSAN_FLAGS
12113		ubsan_ldflags=$UBSAN_FLAGS
12114		have_ubsan=yes
12115else
12116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117$as_echo "no" >&6; }
12118fi
12119rm -f core conftest.err conftest.$ac_objext \
12120    conftest$ac_exeext conftest.$ac_ext
12121	CFLAGS="${OLD_CFLAGS}"
12122	LDFLAGS="${OLD_LDFLAGS}"
12123
12124
12125
12126fi
12127if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
12128	as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
12129fi
12130# Check whether --enable-addrsan was given.
12131if test "${enable_addrsan+set}" = set; then :
12132  enableval=$enable_addrsan;
12133else
12134  enable_addrsan=no
12135fi
12136
12137if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
12138	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
12139$as_echo_n "checking if C compiler supports ADDRSAN... " >&6; }
12140	OLD_CFLAGS="$CFLAGS"
12141	OLD_LDFLAGS="$LDFLAGS"
12142	ADDRSAN_FLAGS="-fsanitize=address"
12143	CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
12144	LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
12145	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12146/* end confdefs.h.  */
12147
12148int
12149main ()
12150{
12151
12152  ;
12153  return 0;
12154}
12155_ACEOF
12156if ac_fn_c_try_link "$LINENO"; then :
12157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12158$as_echo "yes" >&6; }
12159		addrsan_cflags=$ADDRSAN_FLAGS
12160		addrsan_ldflags=$ADDRSAN_FLAGS
12161		have_addrsan=yes
12162else
12163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12164$as_echo "no" >&6; }
12165fi
12166rm -f core conftest.err conftest.$ac_objext \
12167    conftest$ac_exeext conftest.$ac_ext
12168	CFLAGS="${OLD_CFLAGS}"
12169	LDFLAGS="${OLD_LDFLAGS}"
12170
12171
12172
12173fi
12174if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
12175	as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
12176fi
12177# Check whether --enable-threadsan was given.
12178if test "${enable_threadsan+set}" = set; then :
12179  enableval=$enable_threadsan;
12180else
12181  enable_threadsan=no
12182fi
12183
12184if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
12185	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
12186$as_echo_n "checking if C compiler supports THREADSAN... " >&6; }
12187	OLD_CFLAGS="$CFLAGS"
12188	OLD_LDFLAGS="$LDFLAGS"
12189	THREADSAN_FLAGS="-fsanitize=thread"
12190	CFLAGS="$CFLAGS $THREADSAN_FLAGS"
12191	LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
12192	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12193/* end confdefs.h.  */
12194
12195int
12196main ()
12197{
12198
12199  ;
12200  return 0;
12201}
12202_ACEOF
12203if ac_fn_c_try_link "$LINENO"; then :
12204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12205$as_echo "yes" >&6; }
12206		threadsan_cflags=$THREADSAN_FLAGS
12207		threadsan_ldflags=$THREADSAN_FLAGS
12208		have_threadsan=yes
12209else
12210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211$as_echo "no" >&6; }
12212fi
12213rm -f core conftest.err conftest.$ac_objext \
12214    conftest$ac_exeext conftest.$ac_ext
12215	CFLAGS="${OLD_CFLAGS}"
12216	LDFLAGS="${OLD_LDFLAGS}"
12217
12218
12219
12220fi
12221if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
12222	as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
12223fi
12224if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
12225	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
12226$as_echo "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
12227fi
12228LINUX_CMT="#"
12229CYGWIN_CMT="#"
12230UNIX_CMT=
12231case "$host_os" in
12232linux*)
12233	LINUX_CMT=
12234	;;
12235cygwin)
12236	CYGWIN_CMT=
12237	UNIX_CMT="#"
12238	;;
12239esac
12240
12241
12242
12243E2SCRUB_CMT="$LINUX_CMT"
12244
12245case "$host_os" in
12246linux* | gnu* | k*bsd*-gnu)
12247	if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
12248		root_prefix="";
12249		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
12250$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
12251	fi
12252	;;
12253esac
12254case "$host_os" in
12255linux* | gnu* | k*bsd*-gnu)
12256	if test "$prefix" = NONE ; then
12257		prefix="/usr";
12258		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
12259$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
12260		if test "$mandir" = '${prefix}/man' ; then
12261			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
12262$as_echo "...and mandir defaults to /usr/share/man" >&6; }
12263			mandir=/usr/share/man
12264		fi
12265	fi
12266;;
12267esac
12268if test "$root_prefix" = NONE ; then
12269	if test "$prefix" = NONE ; then
12270		root_prefix="$ac_default_prefix"
12271	else
12272		root_prefix="$prefix"
12273	fi
12274	root_bindir=$bindir
12275	root_sbindir=$sbindir
12276	root_libdir=$libdir
12277	root_sysconfdir=$sysconfdir
12278else
12279	root_bindir='${root_prefix}/bin'
12280	root_sbindir='${root_prefix}/sbin'
12281	root_libdir='${root_prefix}/lib'
12282	root_sysconfdir='${root_prefix}/etc'
12283fi
12284if test "$bindir" != '${exec_prefix}/bin'; then
12285    root_bindir=$bindir
12286    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
12287$as_echo "Setting root_bindir to $root_bindir" >&6; }
12288fi
12289if test "$sbindir" != '${exec_prefix}/sbin'; then
12290    root_sbindir=$sbindir
12291    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
12292$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
12293fi
12294if test "$libdir" != '${exec_prefix}/lib'; then
12295    root_libdir=$libdir
12296    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
12297$as_echo "Setting root_libdir to $root_libdir" >&6; }
12298fi
12299if test "$sysconfdir" != '${prefix}/etc'; then
12300    root_sysconfdir=$sysconfdir
12301    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
12302$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
12303fi
12304
12305
12306
12307
12308
12309
12310# Check whether --with-multiarch was given.
12311if test "${with_multiarch+set}" = set; then :
12312  withval=$with_multiarch; if test "$withval" = "lib64"; then
12313    libdir=/usr/lib64
12314    root_libdir=/lib64
12315else
12316    libdir=$libdir/$withval
12317    root_libdir=$root_libdir/$withval
12318fi
12319
12320fi
12321
12322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
12323$as_echo_n "checking whether we can link with -static... " >&6; }
12324if ${ac_cv_e2fsprogs_use_static+:} false; then :
12325  $as_echo_n "(cached) " >&6
12326else
12327  SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
12328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12329/* end confdefs.h.  */
12330#include <stdio.h>
12331int
12332main ()
12333{
12334fflush(stdout);
12335  ;
12336  return 0;
12337}
12338_ACEOF
12339if ac_fn_c_try_link "$LINENO"; then :
12340  ac_cv_e2fsprogs_use_static=yes
12341else
12342  ac_cv_e2fsprogs_use_static=no
12343fi
12344rm -f core conftest.err conftest.$ac_objext \
12345    conftest$ac_exeext conftest.$ac_ext
12346LDFLAGS=$SAVE_LDFLAGS
12347fi
12348
12349case "$host_os" in
12350solaris2.*)
12351	ac_cv_e2fsprogs_use_static=no
12352;;
12353esac
12354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
12355$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
12356if test $ac_cv_e2fsprogs_use_static = yes; then
12357	LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
12358fi
12359
12360case "$host_os" in
12361darwin*)
12362	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
12363$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
12364
12365$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
12366
12367	;;
12368esac
12369if test "$cross_compiling" = yes ; then
12370  DO_TEST_SUITE=
12371else
12372  DO_TEST_SUITE=check
12373fi
12374
12375INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
12376if test -n "$CPPFLAGS" ; then
12377	INCLUDES="$INCLUDES $CPPFLAGS"
12378fi
12379if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
12380	INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
12381fi
12382if test -n "$WITH_DIET_LIBC" ; then
12383	INCLUDES="$INCLUDES -D_REENTRANT"
12384fi
12385
12386if test $cross_compiling = no; then
12387   BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
12388   BUILD_LDFLAGS="$LDFLAGS"
12389fi
12390
12391
12392CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
12393CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
12394LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
12395
12396
12397
12398
12399
12400# Check whether --with-udev_rules_dir was given.
12401if test "${with_udev_rules_dir+set}" = set; then :
12402  withval=$with_udev_rules_dir;
12403else
12404  with_udev_rules_dir=yes
12405fi
12406
12407if test "x${with_udev_rules_dir}" != "xno"; then :
12408
12409	if test "x${with_udev_rules_dir}" = "xyes"; then :
12410
12411
12412pkg_failed=no
12413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
12414$as_echo_n "checking for udev... " >&6; }
12415
12416if test -n "$udev_CFLAGS"; then
12417    pkg_cv_udev_CFLAGS="$udev_CFLAGS"
12418 elif test -n "$PKG_CONFIG"; then
12419    if test -n "$PKG_CONFIG" && \
12420    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
12421  ($PKG_CONFIG --exists --print-errors "udev") 2>&5
12422  ac_status=$?
12423  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12424  test $ac_status = 0; }; then
12425  pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
12426		      test "x$?" != "x0" && pkg_failed=yes
12427else
12428  pkg_failed=yes
12429fi
12430 else
12431    pkg_failed=untried
12432fi
12433if test -n "$udev_LIBS"; then
12434    pkg_cv_udev_LIBS="$udev_LIBS"
12435 elif test -n "$PKG_CONFIG"; then
12436    if test -n "$PKG_CONFIG" && \
12437    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
12438  ($PKG_CONFIG --exists --print-errors "udev") 2>&5
12439  ac_status=$?
12440  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12441  test $ac_status = 0; }; then
12442  pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
12443		      test "x$?" != "x0" && pkg_failed=yes
12444else
12445  pkg_failed=yes
12446fi
12447 else
12448    pkg_failed=untried
12449fi
12450
12451
12452
12453if test $pkg_failed = yes; then
12454        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12455$as_echo "no" >&6; }
12456
12457if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12458        _pkg_short_errors_supported=yes
12459else
12460        _pkg_short_errors_supported=no
12461fi
12462        if test $_pkg_short_errors_supported = yes; then
12463	        udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
12464        else
12465	        udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
12466        fi
12467	# Put the nasty error message in config.log where it belongs
12468	echo "$udev_PKG_ERRORS" >&5
12469
12470
12471			with_udev_rules_dir=""
12472
12473elif test $pkg_failed = untried; then
12474        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12475$as_echo "no" >&6; }
12476
12477			with_udev_rules_dir=""
12478
12479else
12480	udev_CFLAGS=$pkg_cv_udev_CFLAGS
12481	udev_LIBS=$pkg_cv_udev_LIBS
12482        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12483$as_echo "yes" >&6; }
12484
12485			with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
12486
12487fi
12488
12489fi
12490	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
12491$as_echo_n "checking for udev rules dir... " >&6; }
12492	pkg_udev_rules_dir="${with_udev_rules_dir}"
12493	if test -n "${pkg_udev_rules_dir}"; then :
12494
12495		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
12496$as_echo "${pkg_udev_rules_dir}" >&6; }
12497		have_udev="yes"
12498
12499else
12500
12501		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12502$as_echo "no" >&6; }
12503		have_udev="no"
12504
12505fi
12506
12507else
12508
12509	have_udev="disabled"
12510
12511fi
12512
12513
12514
12515
12516# Check whether --with-crond_dir was given.
12517if test "${with_crond_dir+set}" = set; then :
12518  withval=$with_crond_dir;
12519else
12520  with_crond_dir=yes
12521fi
12522
12523if test "x${with_crond_dir}" != "xno"; then :
12524
12525	if test "x${with_crond_dir}" = "xyes"; then :
12526
12527		if test -d "/etc/cron.d"; then :
12528  with_crond_dir="/etc/cron.d"
12529else
12530  have_crond="no"; with_crond_dir=""
12531fi
12532
12533fi
12534	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
12535$as_echo_n "checking for system crontab dir... " >&6; }
12536	crond_dir="${with_crond_dir}"
12537	if test -n "${crond_dir}"; then :
12538
12539		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
12540$as_echo "${crond_dir}" >&6; }
12541		have_crond="yes"
12542
12543else
12544
12545		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546$as_echo "no" >&6; }
12547		have_crond="no"
12548
12549fi
12550
12551else
12552
12553	have_crond="disabled"
12554
12555fi
12556
12557
12558
12559
12560# Check whether --with-systemd_unit_dir was given.
12561if test "${with_systemd_unit_dir+set}" = set; then :
12562  withval=$with_systemd_unit_dir;
12563else
12564  with_systemd_unit_dir=yes
12565fi
12566
12567if test "x${with_systemd_unit_dir}" != "xno"; then :
12568
12569	if test "x${with_systemd_unit_dir}" = "xyes"; then :
12570
12571
12572pkg_failed=no
12573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
12574$as_echo_n "checking for systemd... " >&6; }
12575
12576if test -n "$systemd_CFLAGS"; then
12577    pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
12578 elif test -n "$PKG_CONFIG"; then
12579    if test -n "$PKG_CONFIG" && \
12580    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
12581  ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
12582  ac_status=$?
12583  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12584  test $ac_status = 0; }; then
12585  pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
12586		      test "x$?" != "x0" && pkg_failed=yes
12587else
12588  pkg_failed=yes
12589fi
12590 else
12591    pkg_failed=untried
12592fi
12593if test -n "$systemd_LIBS"; then
12594    pkg_cv_systemd_LIBS="$systemd_LIBS"
12595 elif test -n "$PKG_CONFIG"; then
12596    if test -n "$PKG_CONFIG" && \
12597    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
12598  ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
12599  ac_status=$?
12600  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12601  test $ac_status = 0; }; then
12602  pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
12603		      test "x$?" != "x0" && pkg_failed=yes
12604else
12605  pkg_failed=yes
12606fi
12607 else
12608    pkg_failed=untried
12609fi
12610
12611
12612
12613if test $pkg_failed = yes; then
12614        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12615$as_echo "no" >&6; }
12616
12617if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12618        _pkg_short_errors_supported=yes
12619else
12620        _pkg_short_errors_supported=no
12621fi
12622        if test $_pkg_short_errors_supported = yes; then
12623	        systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
12624        else
12625	        systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
12626        fi
12627	# Put the nasty error message in config.log where it belongs
12628	echo "$systemd_PKG_ERRORS" >&5
12629
12630
12631			with_systemd_unit_dir=""
12632
12633elif test $pkg_failed = untried; then
12634        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12635$as_echo "no" >&6; }
12636
12637			with_systemd_unit_dir=""
12638
12639else
12640	systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
12641	systemd_LIBS=$pkg_cv_systemd_LIBS
12642        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12643$as_echo "yes" >&6; }
12644
12645			with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
12646
12647fi
12648
12649
12650fi
12651	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
12652$as_echo_n "checking for systemd system unit dir... " >&6; }
12653	systemd_system_unit_dir="${with_systemd_unit_dir}"
12654	if test -n "${systemd_system_unit_dir}"; then :
12655
12656		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
12657$as_echo "${systemd_system_unit_dir}" >&6; }
12658		have_systemd="yes"
12659
12660else
12661
12662		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12663$as_echo "no" >&6; }
12664		have_systemd="no"
12665
12666fi
12667
12668else
12669
12670	have_systemd="disabled"
12671
12672fi
12673
12674
12675OS_IO_FILE=""
12676case "$host_os" in
12677  cigwin*|mingw*|msys*)
12678    OS_IO_FILE=windows_io
12679  ;;
12680  *)
12681    OS_IO_FILE=unix_io
12682  ;;
12683esac
12684
12685test -d lib || mkdir lib
12686test -d include || mkdir include
12687test -d include/linux || mkdir include/linux
12688test -d include/asm || mkdir include/asm
12689if test -z "$UUID_CMT" ; then
12690	uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
12691		lib/uuid/uuid_types.h"
12692fi
12693if test -z "$BLKID_CMT" ; then
12694	blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
12695		lib/blkid/blkid_types.h"
12696fi
12697for i in MCONFIG Makefile \
12698	util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
12699	lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
12700	lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
12701	$uuid_out_list $blkid_out_list lib/support/Makefile \
12702	lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
12703	misc/Makefile ext2ed/Makefile e2fsck/Makefile \
12704	debugfs/Makefile tests/Makefile tests/progs/Makefile \
12705	resize/Makefile doc/Makefile po/Makefile.in scrub/Makefile; do
12706	if test -d `dirname ${srcdir}/$i` ; then
12707		outlist="$outlist $i"
12708	fi
12709done
12710ac_config_files="$ac_config_files $outlist"
12711
12712cat >confcache <<\_ACEOF
12713# This file is a shell script that caches the results of configure
12714# tests run on this system so they can be shared between configure
12715# scripts and configure runs, see configure's option --config-cache.
12716# It is not useful on other systems.  If it contains results you don't
12717# want to keep, you may remove or edit it.
12718#
12719# config.status only pays attention to the cache file if you give it
12720# the --recheck option to rerun configure.
12721#
12722# `ac_cv_env_foo' variables (set or unset) will be overridden when
12723# loading this file, other *unset* `ac_cv_foo' will be assigned the
12724# following values.
12725
12726_ACEOF
12727
12728# The following way of writing the cache mishandles newlines in values,
12729# but we know of no workaround that is simple, portable, and efficient.
12730# So, we kill variables containing newlines.
12731# Ultrix sh set writes to stderr and can't be redirected directly,
12732# and sets the high bit in the cache file unless we assign to the vars.
12733(
12734  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12735    eval ac_val=\$$ac_var
12736    case $ac_val in #(
12737    *${as_nl}*)
12738      case $ac_var in #(
12739      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12740$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12741      esac
12742      case $ac_var in #(
12743      _ | IFS | as_nl) ;; #(
12744      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12745      *) { eval $ac_var=; unset $ac_var;} ;;
12746      esac ;;
12747    esac
12748  done
12749
12750  (set) 2>&1 |
12751    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12752    *${as_nl}ac_space=\ *)
12753      # `set' does not quote correctly, so add quotes: double-quote
12754      # substitution turns \\\\ into \\, and sed turns \\ into \.
12755      sed -n \
12756	"s/'/'\\\\''/g;
12757	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12758      ;; #(
12759    *)
12760      # `set' quotes correctly as required by POSIX, so do not add quotes.
12761      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12762      ;;
12763    esac |
12764    sort
12765) |
12766  sed '
12767     /^ac_cv_env_/b end
12768     t clear
12769     :clear
12770     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12771     t end
12772     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12773     :end' >>confcache
12774if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12775  if test -w "$cache_file"; then
12776    if test "x$cache_file" != "x/dev/null"; then
12777      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12778$as_echo "$as_me: updating cache $cache_file" >&6;}
12779      if test ! -f "$cache_file" || test -h "$cache_file"; then
12780	cat confcache >"$cache_file"
12781      else
12782        case $cache_file in #(
12783        */* | ?:*)
12784	  mv -f confcache "$cache_file"$$ &&
12785	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12786        *)
12787	  mv -f confcache "$cache_file" ;;
12788	esac
12789      fi
12790    fi
12791  else
12792    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12793$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12794  fi
12795fi
12796rm -f confcache
12797
12798test "x$prefix" = xNONE && prefix=$ac_default_prefix
12799# Let make expand exec_prefix.
12800test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12801
12802DEFS=-DHAVE_CONFIG_H
12803
12804ac_libobjs=
12805ac_ltlibobjs=
12806U=
12807for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12808  # 1. Remove the extension, and $U if already installed.
12809  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12810  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12811  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12812  #    will be set to the directory where LIBOBJS objects are built.
12813  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12814  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12815done
12816LIBOBJS=$ac_libobjs
12817
12818LTLIBOBJS=$ac_ltlibobjs
12819
12820
12821
12822
12823: "${CONFIG_STATUS=./config.status}"
12824ac_write_fail=0
12825ac_clean_files_save=$ac_clean_files
12826ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12827{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12828$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12829as_write_fail=0
12830cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12831#! $SHELL
12832# Generated by $as_me.
12833# Run this file to recreate the current configuration.
12834# Compiler output produced by configure, useful for debugging
12835# configure, is in config.log if it exists.
12836
12837debug=false
12838ac_cs_recheck=false
12839ac_cs_silent=false
12840
12841SHELL=\${CONFIG_SHELL-$SHELL}
12842export SHELL
12843_ASEOF
12844cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12845## -------------------- ##
12846## M4sh Initialization. ##
12847## -------------------- ##
12848
12849# Be more Bourne compatible
12850DUALCASE=1; export DUALCASE # for MKS sh
12851if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12852  emulate sh
12853  NULLCMD=:
12854  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12855  # is contrary to our usage.  Disable this feature.
12856  alias -g '${1+"$@"}'='"$@"'
12857  setopt NO_GLOB_SUBST
12858else
12859  case `(set -o) 2>/dev/null` in #(
12860  *posix*) :
12861    set -o posix ;; #(
12862  *) :
12863     ;;
12864esac
12865fi
12866
12867
12868as_nl='
12869'
12870export as_nl
12871# Printing a long string crashes Solaris 7 /usr/bin/printf.
12872as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12873as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12874as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12875# Prefer a ksh shell builtin over an external printf program on Solaris,
12876# but without wasting forks for bash or zsh.
12877if test -z "$BASH_VERSION$ZSH_VERSION" \
12878    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12879  as_echo='print -r --'
12880  as_echo_n='print -rn --'
12881elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12882  as_echo='printf %s\n'
12883  as_echo_n='printf %s'
12884else
12885  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12886    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12887    as_echo_n='/usr/ucb/echo -n'
12888  else
12889    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12890    as_echo_n_body='eval
12891      arg=$1;
12892      case $arg in #(
12893      *"$as_nl"*)
12894	expr "X$arg" : "X\\(.*\\)$as_nl";
12895	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12896      esac;
12897      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12898    '
12899    export as_echo_n_body
12900    as_echo_n='sh -c $as_echo_n_body as_echo'
12901  fi
12902  export as_echo_body
12903  as_echo='sh -c $as_echo_body as_echo'
12904fi
12905
12906# The user is always right.
12907if test "${PATH_SEPARATOR+set}" != set; then
12908  PATH_SEPARATOR=:
12909  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12910    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12911      PATH_SEPARATOR=';'
12912  }
12913fi
12914
12915
12916# IFS
12917# We need space, tab and new line, in precisely that order.  Quoting is
12918# there to prevent editors from complaining about space-tab.
12919# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12920# splitting by setting IFS to empty value.)
12921IFS=" ""	$as_nl"
12922
12923# Find who we are.  Look in the path if we contain no directory separator.
12924as_myself=
12925case $0 in #((
12926  *[\\/]* ) as_myself=$0 ;;
12927  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12928for as_dir in $PATH
12929do
12930  IFS=$as_save_IFS
12931  test -z "$as_dir" && as_dir=.
12932    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12933  done
12934IFS=$as_save_IFS
12935
12936     ;;
12937esac
12938# We did not find ourselves, most probably we were run as `sh COMMAND'
12939# in which case we are not to be found in the path.
12940if test "x$as_myself" = x; then
12941  as_myself=$0
12942fi
12943if test ! -f "$as_myself"; then
12944  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12945  exit 1
12946fi
12947
12948# Unset variables that we do not need and which cause bugs (e.g. in
12949# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12950# suppresses any "Segmentation fault" message there.  '((' could
12951# trigger a bug in pdksh 5.2.14.
12952for as_var in BASH_ENV ENV MAIL MAILPATH
12953do eval test x\${$as_var+set} = xset \
12954  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12955done
12956PS1='$ '
12957PS2='> '
12958PS4='+ '
12959
12960# NLS nuisances.
12961LC_ALL=C
12962export LC_ALL
12963LANGUAGE=C
12964export LANGUAGE
12965
12966# CDPATH.
12967(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12968
12969
12970# as_fn_error STATUS ERROR [LINENO LOG_FD]
12971# ----------------------------------------
12972# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12973# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12974# script with STATUS, using 1 if that was 0.
12975as_fn_error ()
12976{
12977  as_status=$1; test $as_status -eq 0 && as_status=1
12978  if test "$4"; then
12979    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12980    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12981  fi
12982  $as_echo "$as_me: error: $2" >&2
12983  as_fn_exit $as_status
12984} # as_fn_error
12985
12986
12987# as_fn_set_status STATUS
12988# -----------------------
12989# Set $? to STATUS, without forking.
12990as_fn_set_status ()
12991{
12992  return $1
12993} # as_fn_set_status
12994
12995# as_fn_exit STATUS
12996# -----------------
12997# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12998as_fn_exit ()
12999{
13000  set +e
13001  as_fn_set_status $1
13002  exit $1
13003} # as_fn_exit
13004
13005# as_fn_unset VAR
13006# ---------------
13007# Portably unset VAR.
13008as_fn_unset ()
13009{
13010  { eval $1=; unset $1;}
13011}
13012as_unset=as_fn_unset
13013# as_fn_append VAR VALUE
13014# ----------------------
13015# Append the text in VALUE to the end of the definition contained in VAR. Take
13016# advantage of any shell optimizations that allow amortized linear growth over
13017# repeated appends, instead of the typical quadratic growth present in naive
13018# implementations.
13019if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13020  eval 'as_fn_append ()
13021  {
13022    eval $1+=\$2
13023  }'
13024else
13025  as_fn_append ()
13026  {
13027    eval $1=\$$1\$2
13028  }
13029fi # as_fn_append
13030
13031# as_fn_arith ARG...
13032# ------------------
13033# Perform arithmetic evaluation on the ARGs, and store the result in the
13034# global $as_val. Take advantage of shells that can avoid forks. The arguments
13035# must be portable across $(()) and expr.
13036if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13037  eval 'as_fn_arith ()
13038  {
13039    as_val=$(( $* ))
13040  }'
13041else
13042  as_fn_arith ()
13043  {
13044    as_val=`expr "$@" || test $? -eq 1`
13045  }
13046fi # as_fn_arith
13047
13048
13049if expr a : '\(a\)' >/dev/null 2>&1 &&
13050   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13051  as_expr=expr
13052else
13053  as_expr=false
13054fi
13055
13056if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13057  as_basename=basename
13058else
13059  as_basename=false
13060fi
13061
13062if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13063  as_dirname=dirname
13064else
13065  as_dirname=false
13066fi
13067
13068as_me=`$as_basename -- "$0" ||
13069$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13070	 X"$0" : 'X\(//\)$' \| \
13071	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13072$as_echo X/"$0" |
13073    sed '/^.*\/\([^/][^/]*\)\/*$/{
13074	    s//\1/
13075	    q
13076	  }
13077	  /^X\/\(\/\/\)$/{
13078	    s//\1/
13079	    q
13080	  }
13081	  /^X\/\(\/\).*/{
13082	    s//\1/
13083	    q
13084	  }
13085	  s/.*/./; q'`
13086
13087# Avoid depending upon Character Ranges.
13088as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13089as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13090as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13091as_cr_digits='0123456789'
13092as_cr_alnum=$as_cr_Letters$as_cr_digits
13093
13094ECHO_C= ECHO_N= ECHO_T=
13095case `echo -n x` in #(((((
13096-n*)
13097  case `echo 'xy\c'` in
13098  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13099  xy)  ECHO_C='\c';;
13100  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13101       ECHO_T='	';;
13102  esac;;
13103*)
13104  ECHO_N='-n';;
13105esac
13106
13107rm -f conf$$ conf$$.exe conf$$.file
13108if test -d conf$$.dir; then
13109  rm -f conf$$.dir/conf$$.file
13110else
13111  rm -f conf$$.dir
13112  mkdir conf$$.dir 2>/dev/null
13113fi
13114if (echo >conf$$.file) 2>/dev/null; then
13115  if ln -s conf$$.file conf$$ 2>/dev/null; then
13116    as_ln_s='ln -s'
13117    # ... but there are two gotchas:
13118    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13119    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13120    # In both cases, we have to default to `cp -pR'.
13121    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13122      as_ln_s='cp -pR'
13123  elif ln conf$$.file conf$$ 2>/dev/null; then
13124    as_ln_s=ln
13125  else
13126    as_ln_s='cp -pR'
13127  fi
13128else
13129  as_ln_s='cp -pR'
13130fi
13131rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13132rmdir conf$$.dir 2>/dev/null
13133
13134
13135# as_fn_mkdir_p
13136# -------------
13137# Create "$as_dir" as a directory, including parents if necessary.
13138as_fn_mkdir_p ()
13139{
13140
13141  case $as_dir in #(
13142  -*) as_dir=./$as_dir;;
13143  esac
13144  test -d "$as_dir" || eval $as_mkdir_p || {
13145    as_dirs=
13146    while :; do
13147      case $as_dir in #(
13148      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13149      *) as_qdir=$as_dir;;
13150      esac
13151      as_dirs="'$as_qdir' $as_dirs"
13152      as_dir=`$as_dirname -- "$as_dir" ||
13153$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13154	 X"$as_dir" : 'X\(//\)[^/]' \| \
13155	 X"$as_dir" : 'X\(//\)$' \| \
13156	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13157$as_echo X"$as_dir" |
13158    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13159	    s//\1/
13160	    q
13161	  }
13162	  /^X\(\/\/\)[^/].*/{
13163	    s//\1/
13164	    q
13165	  }
13166	  /^X\(\/\/\)$/{
13167	    s//\1/
13168	    q
13169	  }
13170	  /^X\(\/\).*/{
13171	    s//\1/
13172	    q
13173	  }
13174	  s/.*/./; q'`
13175      test -d "$as_dir" && break
13176    done
13177    test -z "$as_dirs" || eval "mkdir $as_dirs"
13178  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13179
13180
13181} # as_fn_mkdir_p
13182if mkdir -p . 2>/dev/null; then
13183  as_mkdir_p='mkdir -p "$as_dir"'
13184else
13185  test -d ./-p && rmdir ./-p
13186  as_mkdir_p=false
13187fi
13188
13189
13190# as_fn_executable_p FILE
13191# -----------------------
13192# Test if FILE is an executable regular file.
13193as_fn_executable_p ()
13194{
13195  test -f "$1" && test -x "$1"
13196} # as_fn_executable_p
13197as_test_x='test -x'
13198as_executable_p=as_fn_executable_p
13199
13200# Sed expression to map a string onto a valid CPP name.
13201as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13202
13203# Sed expression to map a string onto a valid variable name.
13204as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13205
13206
13207exec 6>&1
13208## ----------------------------------- ##
13209## Main body of $CONFIG_STATUS script. ##
13210## ----------------------------------- ##
13211_ASEOF
13212test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13213
13214cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13215# Save the log message, to keep $0 and so on meaningful, and to
13216# report actual input values of CONFIG_FILES etc. instead of their
13217# values after options handling.
13218ac_log="
13219This file was extended by $as_me, which was
13220generated by GNU Autoconf 2.69.  Invocation command line was
13221
13222  CONFIG_FILES    = $CONFIG_FILES
13223  CONFIG_HEADERS  = $CONFIG_HEADERS
13224  CONFIG_LINKS    = $CONFIG_LINKS
13225  CONFIG_COMMANDS = $CONFIG_COMMANDS
13226  $ $0 $@
13227
13228on `(hostname || uname -n) 2>/dev/null | sed 1q`
13229"
13230
13231_ACEOF
13232
13233case $ac_config_files in *"
13234"*) set x $ac_config_files; shift; ac_config_files=$*;;
13235esac
13236
13237case $ac_config_headers in *"
13238"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13239esac
13240
13241
13242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13243# Files that config.status was made for.
13244config_files="$ac_config_files"
13245config_headers="$ac_config_headers"
13246config_commands="$ac_config_commands"
13247
13248_ACEOF
13249
13250cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13251ac_cs_usage="\
13252\`$as_me' instantiates files and other configuration actions
13253from templates according to the current configuration.  Unless the files
13254and actions are specified as TAGs, all are instantiated by default.
13255
13256Usage: $0 [OPTION]... [TAG]...
13257
13258  -h, --help       print this help, then exit
13259  -V, --version    print version number and configuration settings, then exit
13260      --config     print configuration, then exit
13261  -q, --quiet, --silent
13262                   do not print progress messages
13263  -d, --debug      don't remove temporary files
13264      --recheck    update $as_me by reconfiguring in the same conditions
13265      --file=FILE[:TEMPLATE]
13266                   instantiate the configuration file FILE
13267      --header=FILE[:TEMPLATE]
13268                   instantiate the configuration header FILE
13269
13270Configuration files:
13271$config_files
13272
13273Configuration headers:
13274$config_headers
13275
13276Configuration commands:
13277$config_commands
13278
13279Report bugs to the package provider."
13280
13281_ACEOF
13282cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13283ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13284ac_cs_version="\\
13285config.status
13286configured by $0, generated by GNU Autoconf 2.69,
13287  with options \\"\$ac_cs_config\\"
13288
13289Copyright (C) 2012 Free Software Foundation, Inc.
13290This config.status script is free software; the Free Software Foundation
13291gives unlimited permission to copy, distribute and modify it."
13292
13293ac_pwd='$ac_pwd'
13294srcdir='$srcdir'
13295INSTALL='$INSTALL'
13296MKDIR_P='$MKDIR_P'
13297AWK='$AWK'
13298test -n "\$AWK" || AWK=awk
13299_ACEOF
13300
13301cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13302# The default lists apply if the user does not specify any file.
13303ac_need_defaults=:
13304while test $# != 0
13305do
13306  case $1 in
13307  --*=?*)
13308    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13309    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13310    ac_shift=:
13311    ;;
13312  --*=)
13313    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13314    ac_optarg=
13315    ac_shift=:
13316    ;;
13317  *)
13318    ac_option=$1
13319    ac_optarg=$2
13320    ac_shift=shift
13321    ;;
13322  esac
13323
13324  case $ac_option in
13325  # Handling of the options.
13326  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13327    ac_cs_recheck=: ;;
13328  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13329    $as_echo "$ac_cs_version"; exit ;;
13330  --config | --confi | --conf | --con | --co | --c )
13331    $as_echo "$ac_cs_config"; exit ;;
13332  --debug | --debu | --deb | --de | --d | -d )
13333    debug=: ;;
13334  --file | --fil | --fi | --f )
13335    $ac_shift
13336    case $ac_optarg in
13337    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13338    '') as_fn_error $? "missing file argument" ;;
13339    esac
13340    as_fn_append CONFIG_FILES " '$ac_optarg'"
13341    ac_need_defaults=false;;
13342  --header | --heade | --head | --hea )
13343    $ac_shift
13344    case $ac_optarg in
13345    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13346    esac
13347    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13348    ac_need_defaults=false;;
13349  --he | --h)
13350    # Conflict between --help and --header
13351    as_fn_error $? "ambiguous option: \`$1'
13352Try \`$0 --help' for more information.";;
13353  --help | --hel | -h )
13354    $as_echo "$ac_cs_usage"; exit ;;
13355  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13356  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13357    ac_cs_silent=: ;;
13358
13359  # This is an error.
13360  -*) as_fn_error $? "unrecognized option: \`$1'
13361Try \`$0 --help' for more information." ;;
13362
13363  *) as_fn_append ac_config_targets " $1"
13364     ac_need_defaults=false ;;
13365
13366  esac
13367  shift
13368done
13369
13370ac_configure_extra_args=
13371
13372if $ac_cs_silent; then
13373  exec 6>/dev/null
13374  ac_configure_extra_args="$ac_configure_extra_args --silent"
13375fi
13376
13377_ACEOF
13378cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13379if \$ac_cs_recheck; then
13380  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13381  shift
13382  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13383  CONFIG_SHELL='$SHELL'
13384  export CONFIG_SHELL
13385  exec "\$@"
13386fi
13387
13388_ACEOF
13389cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13390exec 5>>config.log
13391{
13392  echo
13393  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13394## Running $as_me. ##
13395_ASBOX
13396  $as_echo "$ac_log"
13397} >&5
13398
13399_ACEOF
13400cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13401#
13402# INIT-COMMANDS
13403#
13404# Capture the value of obsolete ALL_LINGUAS because we need it to compute
13405    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
13406    OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
13407    # Capture the value of LINGUAS because we need it to compute CATALOGS.
13408    LINGUAS="${LINGUAS-%UNSET%}"
13409
13410
13411_ACEOF
13412
13413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13414
13415# Handling of arguments.
13416for ac_config_target in $ac_config_targets
13417do
13418  case $ac_config_target in
13419    "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
13420    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
13421    "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
13422
13423  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13424  esac
13425done
13426
13427
13428# If the user did not use the arguments to specify the items to instantiate,
13429# then the envvar interface is used.  Set only those that are not.
13430# We use the long form for the default assignment because of an extremely
13431# bizarre bug on SunOS 4.1.3.
13432if $ac_need_defaults; then
13433  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13434  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13435  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13436fi
13437
13438# Have a temporary directory for convenience.  Make it in the build tree
13439# simply because there is no reason against having it here, and in addition,
13440# creating and moving files from /tmp can sometimes cause problems.
13441# Hook for its removal unless debugging.
13442# Note that there is a small window in which the directory will not be cleaned:
13443# after its creation but before its name has been assigned to `$tmp'.
13444$debug ||
13445{
13446  tmp= ac_tmp=
13447  trap 'exit_status=$?
13448  : "${ac_tmp:=$tmp}"
13449  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13450' 0
13451  trap 'as_fn_exit 1' 1 2 13 15
13452}
13453# Create a (secure) tmp directory for tmp files.
13454
13455{
13456  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13457  test -d "$tmp"
13458}  ||
13459{
13460  tmp=./conf$$-$RANDOM
13461  (umask 077 && mkdir "$tmp")
13462} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13463ac_tmp=$tmp
13464
13465# Set up the scripts for CONFIG_FILES section.
13466# No need to generate them if there are no CONFIG_FILES.
13467# This happens for instance with `./config.status config.h'.
13468if test -n "$CONFIG_FILES"; then
13469
13470if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
13471  ac_cs_awk_getline=:
13472  ac_cs_awk_pipe_init=
13473  ac_cs_awk_read_file='
13474      while ((getline aline < (F[key])) > 0)
13475	print(aline)
13476      close(F[key])'
13477  ac_cs_awk_pipe_fini=
13478else
13479  ac_cs_awk_getline=false
13480  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
13481  ac_cs_awk_read_file='
13482      print "|#_!!_#|"
13483      print "cat " F[key] " &&"
13484      '$ac_cs_awk_pipe_init
13485  # The final `:' finishes the AND list.
13486  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
13487fi
13488ac_cr=`echo X | tr X '\015'`
13489# On cygwin, bash can eat \r inside `` if the user requested igncr.
13490# But we know of no other shell where ac_cr would be empty at this
13491# point, so we can use a bashism as a fallback.
13492if test "x$ac_cr" = x; then
13493  eval ac_cr=\$\'\\r\'
13494fi
13495ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13496if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13497  ac_cs_awk_cr='\\r'
13498else
13499  ac_cs_awk_cr=$ac_cr
13500fi
13501
13502echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13503_ACEOF
13504
13505# Create commands to substitute file output variables.
13506{
13507  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
13508  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
13509  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
13510  echo "_ACAWK" &&
13511  echo "_ACEOF"
13512} >conf$$files.sh &&
13513. ./conf$$files.sh ||
13514  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13515rm -f conf$$files.sh
13516
13517{
13518  echo "cat >conf$$subs.awk <<_ACEOF" &&
13519  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13520  echo "_ACEOF"
13521} >conf$$subs.sh ||
13522  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13523ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13524ac_delim='%!_!# '
13525for ac_last_try in false false false false false :; do
13526  . ./conf$$subs.sh ||
13527    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13528
13529  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13530  if test $ac_delim_n = $ac_delim_num; then
13531    break
13532  elif $ac_last_try; then
13533    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13534  else
13535    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13536  fi
13537done
13538rm -f conf$$subs.sh
13539
13540cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13541cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13542_ACEOF
13543sed -n '
13544h
13545s/^/S["/; s/!.*/"]=/
13546p
13547g
13548s/^[^!]*!//
13549:repl
13550t repl
13551s/'"$ac_delim"'$//
13552t delim
13553:nl
13554h
13555s/\(.\{148\}\)..*/\1/
13556t more1
13557s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13558p
13559n
13560b repl
13561:more1
13562s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13563p
13564g
13565s/.\{148\}//
13566t nl
13567:delim
13568h
13569s/\(.\{148\}\)..*/\1/
13570t more2
13571s/["\\]/\\&/g; s/^/"/; s/$/"/
13572p
13573b
13574:more2
13575s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13576p
13577g
13578s/.\{148\}//
13579t delim
13580' <conf$$subs.awk | sed '
13581/^[^""]/{
13582  N
13583  s/\n//
13584}
13585' >>$CONFIG_STATUS || ac_write_fail=1
13586rm -f conf$$subs.awk
13587cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13588_ACAWK
13589cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13590  for (key in S) S_is_set[key] = 1
13591  FS = ""
13592  \$ac_cs_awk_pipe_init
13593}
13594{
13595  line = $ 0
13596  nfields = split(line, field, "@")
13597  substed = 0
13598  len = length(field[1])
13599  for (i = 2; i < nfields; i++) {
13600    key = field[i]
13601    keylen = length(key)
13602    if (S_is_set[key]) {
13603      value = S[key]
13604      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13605      len += length(value) + length(field[++i])
13606      substed = 1
13607    } else
13608      len += 1 + keylen
13609  }
13610  if (nfields == 3 && !substed) {
13611    key = field[2]
13612    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
13613      \$ac_cs_awk_read_file
13614      next
13615    }
13616  }
13617  print line
13618}
13619\$ac_cs_awk_pipe_fini
13620_ACAWK
13621_ACEOF
13622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13623if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13624  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13625else
13626  cat
13627fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13628  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13629_ACEOF
13630
13631# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13632# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13633# trailing colons and then remove the whole line if VPATH becomes empty
13634# (actually we leave an empty line to preserve line numbers).
13635if test "x$srcdir" = x.; then
13636  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13637h
13638s///
13639s/^/:/
13640s/[	 ]*$/:/
13641s/:\$(srcdir):/:/g
13642s/:\${srcdir}:/:/g
13643s/:@srcdir@:/:/g
13644s/^:*//
13645s/:*$//
13646x
13647s/\(=[	 ]*\).*/\1/
13648G
13649s/\n//
13650s/^[^=]*=[	 ]*$//
13651}'
13652fi
13653
13654cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13655fi # test -n "$CONFIG_FILES"
13656
13657# Set up the scripts for CONFIG_HEADERS section.
13658# No need to generate them if there are no CONFIG_HEADERS.
13659# This happens for instance with `./config.status Makefile'.
13660if test -n "$CONFIG_HEADERS"; then
13661cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13662BEGIN {
13663_ACEOF
13664
13665# Transform confdefs.h into an awk script `defines.awk', embedded as
13666# here-document in config.status, that substitutes the proper values into
13667# config.h.in to produce config.h.
13668
13669# Create a delimiter string that does not exist in confdefs.h, to ease
13670# handling of long lines.
13671ac_delim='%!_!# '
13672for ac_last_try in false false :; do
13673  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13674  if test -z "$ac_tt"; then
13675    break
13676  elif $ac_last_try; then
13677    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13678  else
13679    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13680  fi
13681done
13682
13683# For the awk script, D is an array of macro values keyed by name,
13684# likewise P contains macro parameters if any.  Preserve backslash
13685# newline sequences.
13686
13687ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13688sed -n '
13689s/.\{148\}/&'"$ac_delim"'/g
13690t rset
13691:rset
13692s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13693t def
13694d
13695:def
13696s/\\$//
13697t bsnl
13698s/["\\]/\\&/g
13699s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13700D["\1"]=" \3"/p
13701s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13702d
13703:bsnl
13704s/["\\]/\\&/g
13705s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13706D["\1"]=" \3\\\\\\n"\\/p
13707t cont
13708s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13709t cont
13710d
13711:cont
13712n
13713s/.\{148\}/&'"$ac_delim"'/g
13714t clear
13715:clear
13716s/\\$//
13717t bsnlc
13718s/["\\]/\\&/g; s/^/"/; s/$/"/p
13719d
13720:bsnlc
13721s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13722b cont
13723' <confdefs.h | sed '
13724s/'"$ac_delim"'/"\\\
13725"/g' >>$CONFIG_STATUS || ac_write_fail=1
13726
13727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13728  for (key in D) D_is_set[key] = 1
13729  FS = ""
13730}
13731/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13732  line = \$ 0
13733  split(line, arg, " ")
13734  if (arg[1] == "#") {
13735    defundef = arg[2]
13736    mac1 = arg[3]
13737  } else {
13738    defundef = substr(arg[1], 2)
13739    mac1 = arg[2]
13740  }
13741  split(mac1, mac2, "(") #)
13742  macro = mac2[1]
13743  prefix = substr(line, 1, index(line, defundef) - 1)
13744  if (D_is_set[macro]) {
13745    # Preserve the white space surrounding the "#".
13746    print prefix "define", macro P[macro] D[macro]
13747    next
13748  } else {
13749    # Replace #undef with comments.  This is necessary, for example,
13750    # in the case of _POSIX_SOURCE, which is predefined and required
13751    # on some systems where configure will not decide to define it.
13752    if (defundef == "undef") {
13753      print "/*", prefix defundef, macro, "*/"
13754      next
13755    }
13756  }
13757}
13758{ print }
13759_ACAWK
13760_ACEOF
13761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13762  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13763fi # test -n "$CONFIG_HEADERS"
13764
13765
13766eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13767shift
13768for ac_tag
13769do
13770  case $ac_tag in
13771  :[FHLC]) ac_mode=$ac_tag; continue;;
13772  esac
13773  case $ac_mode$ac_tag in
13774  :[FHL]*:*);;
13775  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13776  :[FH]-) ac_tag=-:-;;
13777  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13778  esac
13779  ac_save_IFS=$IFS
13780  IFS=:
13781  set x $ac_tag
13782  IFS=$ac_save_IFS
13783  shift
13784  ac_file=$1
13785  shift
13786
13787  case $ac_mode in
13788  :L) ac_source=$1;;
13789  :[FH])
13790    ac_file_inputs=
13791    for ac_f
13792    do
13793      case $ac_f in
13794      -) ac_f="$ac_tmp/stdin";;
13795      *) # Look for the file first in the build tree, then in the source tree
13796	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13797	 # because $ac_f cannot contain `:'.
13798	 test -f "$ac_f" ||
13799	   case $ac_f in
13800	   [\\/$]*) false;;
13801	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13802	   esac ||
13803	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13804      esac
13805      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13806      as_fn_append ac_file_inputs " '$ac_f'"
13807    done
13808
13809    # Let's still pretend it is `configure' which instantiates (i.e., don't
13810    # use $as_me), people would be surprised to read:
13811    #    /* config.h.  Generated by config.status.  */
13812    configure_input='Generated from '`
13813	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13814	`' by configure.'
13815    if test x"$ac_file" != x-; then
13816      configure_input="$ac_file.  $configure_input"
13817      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13818$as_echo "$as_me: creating $ac_file" >&6;}
13819    fi
13820    # Neutralize special characters interpreted by sed in replacement strings.
13821    case $configure_input in #(
13822    *\&* | *\|* | *\\* )
13823       ac_sed_conf_input=`$as_echo "$configure_input" |
13824       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13825    *) ac_sed_conf_input=$configure_input;;
13826    esac
13827
13828    case $ac_tag in
13829    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13830      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13831    esac
13832    ;;
13833  esac
13834
13835  ac_dir=`$as_dirname -- "$ac_file" ||
13836$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13837	 X"$ac_file" : 'X\(//\)[^/]' \| \
13838	 X"$ac_file" : 'X\(//\)$' \| \
13839	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13840$as_echo X"$ac_file" |
13841    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13842	    s//\1/
13843	    q
13844	  }
13845	  /^X\(\/\/\)[^/].*/{
13846	    s//\1/
13847	    q
13848	  }
13849	  /^X\(\/\/\)$/{
13850	    s//\1/
13851	    q
13852	  }
13853	  /^X\(\/\).*/{
13854	    s//\1/
13855	    q
13856	  }
13857	  s/.*/./; q'`
13858  as_dir="$ac_dir"; as_fn_mkdir_p
13859  ac_builddir=.
13860
13861case "$ac_dir" in
13862.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13863*)
13864  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13865  # A ".." for each directory in $ac_dir_suffix.
13866  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13867  case $ac_top_builddir_sub in
13868  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13869  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13870  esac ;;
13871esac
13872ac_abs_top_builddir=$ac_pwd
13873ac_abs_builddir=$ac_pwd$ac_dir_suffix
13874# for backward compatibility:
13875ac_top_builddir=$ac_top_build_prefix
13876
13877case $srcdir in
13878  .)  # We are building in place.
13879    ac_srcdir=.
13880    ac_top_srcdir=$ac_top_builddir_sub
13881    ac_abs_top_srcdir=$ac_pwd ;;
13882  [\\/]* | ?:[\\/]* )  # Absolute name.
13883    ac_srcdir=$srcdir$ac_dir_suffix;
13884    ac_top_srcdir=$srcdir
13885    ac_abs_top_srcdir=$srcdir ;;
13886  *) # Relative name.
13887    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13888    ac_top_srcdir=$ac_top_build_prefix$srcdir
13889    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13890esac
13891ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13892
13893
13894  case $ac_mode in
13895  :F)
13896  #
13897  # CONFIG_FILE
13898  #
13899
13900  case $INSTALL in
13901  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13902  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13903  esac
13904  ac_MKDIR_P=$MKDIR_P
13905  case $MKDIR_P in
13906  [\\/$]* | ?:[\\/]* ) ;;
13907  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13908  esac
13909_ACEOF
13910
13911cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13912# If the template does not know about datarootdir, expand it.
13913# FIXME: This hack should be removed a few years after 2.60.
13914ac_datarootdir_hack=; ac_datarootdir_seen=
13915ac_sed_dataroot='
13916/datarootdir/ {
13917  p
13918  q
13919}
13920/@datadir@/p
13921/@docdir@/p
13922/@infodir@/p
13923/@localedir@/p
13924/@mandir@/p'
13925case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13926*datarootdir*) ac_datarootdir_seen=yes;;
13927*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13928  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13929$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13930_ACEOF
13931cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13932  ac_datarootdir_hack='
13933  s&@datadir@&$datadir&g
13934  s&@docdir@&$docdir&g
13935  s&@infodir@&$infodir&g
13936  s&@localedir@&$localedir&g
13937  s&@mandir@&$mandir&g
13938  s&\\\${datarootdir}&$datarootdir&g' ;;
13939esac
13940_ACEOF
13941
13942# Neutralize VPATH when `$srcdir' = `.'.
13943# Shell code in configure.ac might set extrasub.
13944# FIXME: do we really want to maintain this feature?
13945cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13946ac_sed_extra="$ac_vpsub
13947$extrasub
13948_ACEOF
13949cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13950:t
13951/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13952s|@configure_input@|$ac_sed_conf_input|;t t
13953s&@top_builddir@&$ac_top_builddir_sub&;t t
13954s&@top_build_prefix@&$ac_top_build_prefix&;t t
13955s&@srcdir@&$ac_srcdir&;t t
13956s&@abs_srcdir@&$ac_abs_srcdir&;t t
13957s&@top_srcdir@&$ac_top_srcdir&;t t
13958s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13959s&@builddir@&$ac_builddir&;t t
13960s&@abs_builddir@&$ac_abs_builddir&;t t
13961s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13962s&@INSTALL@&$ac_INSTALL&;t t
13963s&@MKDIR_P@&$ac_MKDIR_P&;t t
13964$ac_datarootdir_hack
13965"
13966eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
13967if $ac_cs_awk_getline; then
13968  $AWK -f "$ac_tmp/subs.awk"
13969else
13970  $AWK -f "$ac_tmp/subs.awk" | $SHELL
13971fi \
13972  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13973
13974test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13975  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13976  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13977      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13978  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13979which seems to be undefined.  Please make sure it is defined" >&5
13980$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13981which seems to be undefined.  Please make sure it is defined" >&2;}
13982
13983  rm -f "$ac_tmp/stdin"
13984  case $ac_file in
13985  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13986  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13987  esac \
13988  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13989 ;;
13990  :H)
13991  #
13992  # CONFIG_HEADER
13993  #
13994  if test x"$ac_file" != x-; then
13995    {
13996      $as_echo "/* $configure_input  */" \
13997      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13998    } >"$ac_tmp/config.h" \
13999      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14000    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14001      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14002$as_echo "$as_me: $ac_file is unchanged" >&6;}
14003    else
14004      rm -f "$ac_file"
14005      mv "$ac_tmp/config.h" "$ac_file" \
14006	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14007    fi
14008  else
14009    $as_echo "/* $configure_input  */" \
14010      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14011      || as_fn_error $? "could not create -" "$LINENO" 5
14012  fi
14013 ;;
14014
14015  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14016$as_echo "$as_me: executing $ac_file commands" >&6;}
14017 ;;
14018  esac
14019
14020
14021  case $ac_file$ac_mode in
14022    "po-directories":C)
14023    for ac_file in $CONFIG_FILES; do
14024      # Support "outfile[:infile[:infile...]]"
14025      case "$ac_file" in
14026        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14027      esac
14028      # PO directories have a Makefile.in generated from Makefile.in.in.
14029      case "$ac_file" in */Makefile.in)
14030        # Adjust a relative srcdir.
14031        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14032        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
14033        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14034        # In autoconf-2.13 it is called $ac_given_srcdir.
14035        # In autoconf-2.50 it is called $srcdir.
14036        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14037        case "$ac_given_srcdir" in
14038          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14039          /*) top_srcdir="$ac_given_srcdir" ;;
14040          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
14041        esac
14042        # Treat a directory as a PO directory if and only if it has a
14043        # POTFILES.in file. This allows packages to have multiple PO
14044        # directories under different names or in different locations.
14045        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14046          rm -f "$ac_dir/POTFILES"
14047          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14048          gt_tab=`printf '\t'`
14049          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14050          POMAKEFILEDEPS="POTFILES.in"
14051          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14052          # on $ac_dir but don't depend on user-specified configuration
14053          # parameters.
14054          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14055            # The LINGUAS file contains the set of available languages.
14056            if test -n "$OBSOLETE_ALL_LINGUAS"; then
14057              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14058            fi
14059            ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14060            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14061          else
14062            # The set of available languages was given in configure.in.
14063            ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
14064          fi
14065          # Compute POFILES
14066          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14067          # Compute UPDATEPOFILES
14068          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14069          # Compute DUMMYPOFILES
14070          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14071          # Compute GMOFILES
14072          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14073          case "$ac_given_srcdir" in
14074            .) srcdirpre= ;;
14075            *) srcdirpre='$(srcdir)/' ;;
14076          esac
14077          POFILES=
14078          UPDATEPOFILES=
14079          DUMMYPOFILES=
14080          GMOFILES=
14081          for lang in $ALL_LINGUAS; do
14082            POFILES="$POFILES $srcdirpre$lang.po"
14083            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14084            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14085            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14086          done
14087          # CATALOGS depends on both $ac_dir and the user's LINGUAS
14088          # environment variable.
14089          INST_LINGUAS=
14090          if test -n "$ALL_LINGUAS"; then
14091            for presentlang in $ALL_LINGUAS; do
14092              useit=no
14093              if test "%UNSET%" != "$LINGUAS"; then
14094                desiredlanguages="$LINGUAS"
14095              else
14096                desiredlanguages="$ALL_LINGUAS"
14097              fi
14098              for desiredlang in $desiredlanguages; do
14099                # Use the presentlang catalog if desiredlang is
14100                #   a. equal to presentlang, or
14101                #   b. a variant of presentlang (because in this case,
14102                #      presentlang can be used as a fallback for messages
14103                #      which are not translated in the desiredlang catalog).
14104                case "$desiredlang" in
14105                  "$presentlang"*) useit=yes;;
14106                esac
14107              done
14108              if test $useit = yes; then
14109                INST_LINGUAS="$INST_LINGUAS $presentlang"
14110              fi
14111            done
14112          fi
14113          CATALOGS=
14114          if test -n "$INST_LINGUAS"; then
14115            for lang in $INST_LINGUAS; do
14116              CATALOGS="$CATALOGS $lang.gmo"
14117            done
14118          fi
14119          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14120          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"
14121          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14122            if test -f "$f"; then
14123              case "$f" in
14124                *.orig | *.bak | *~) ;;
14125                *) cat "$f" >> "$ac_dir/Makefile" ;;
14126              esac
14127            fi
14128          done
14129        fi
14130        ;;
14131      esac
14132    done ;;
14133
14134  esac
14135done # for ac_tag
14136
14137
14138as_fn_exit 0
14139_ACEOF
14140ac_clean_files=$ac_clean_files_save
14141
14142test $ac_write_fail = 0 ||
14143  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14144
14145
14146# configure is writing to config.log, and then calls config.status.
14147# config.status does its own redirection, appending to config.log.
14148# Unfortunately, on DOS this fails, as config.log is still kept open
14149# by configure, so config.status won't be able to write to it; its
14150# output is simply discarded.  So we exec the FD to /dev/null,
14151# effectively closing config.log, so it can be properly (re)opened and
14152# appended to by config.status.  When coming back to configure, we
14153# need to make the FD available again.
14154if test "$no_create" != yes; then
14155  ac_cs_success=:
14156  ac_config_status_args=
14157  test "$silent" = yes &&
14158    ac_config_status_args="$ac_config_status_args --quiet"
14159  exec 5>/dev/null
14160  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14161  exec 5>>config.log
14162  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14163  # would make configure fail if this is the last instruction.
14164  $ac_cs_success || as_fn_exit 1
14165fi
14166if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14167  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14168$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14169fi
14170
14171if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
14172