Whamcloud - gitweb
e2fsck: add support for dir_data feature
[tools/e2fsprogs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175   if (eval "$as_required") 2>/dev/null; then :
176   as_have_required=yes
177 else
178   as_have_required=no
179 fi
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187   IFS=$as_save_IFS
188   test -z "$as_dir" && as_dir=.
189   as_found=:
190   case $as_dir in #(
191          /*)
192            for as_base in sh bash ksh sh5; do
193              # Try only shells that exist, to save several forks.
194              as_shell=$as_dir/$as_base
195              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   CONFIG_SHELL=$as_shell as_have_required=yes
198                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   break 2
200 fi
201 fi
202            done;;
203        esac
204   as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208   CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213       if test "x$CONFIG_SHELL" != x; then :
214   # We cannot yet assume a decent shell, so we have to provide a
215         # neutralization value for shells without unset; and this also
216         # works around shells that cannot unset nonexistent variables.
217         BASH_ENV=/dev/null
218         ENV=/dev/null
219         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220         export CONFIG_SHELL
221         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224     if test x$as_have_required = xno; then :
225   $as_echo "$0: This script requires a shell more modern than all"
226   $as_echo "$0: the shells that I found on your system."
227   if test x${ZSH_VERSION+set} = xset ; then
228     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230   else
231     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235   fi
236   exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254   { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263   return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271   set +e
272   as_fn_set_status $1
273   exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282   case $as_dir in #(
283   -*) as_dir=./$as_dir;;
284   esac
285   test -d "$as_dir" || eval $as_mkdir_p || {
286     as_dirs=
287     while :; do
288       case $as_dir in #(
289       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290       *) as_qdir=$as_dir;;
291       esac
292       as_dirs="'$as_qdir' $as_dirs"
293       as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295          X"$as_dir" : 'X\(//\)[^/]' \| \
296          X"$as_dir" : 'X\(//\)$' \| \
297          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300             s//\1/
301             q
302           }
303           /^X\(\/\/\)[^/].*/{
304             s//\1/
305             q
306           }
307           /^X\(\/\/\)$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\).*/{
312             s//\1/
313             q
314           }
315           s/.*/./; q'`
316       test -d "$as_dir" && break
317     done
318     test -z "$as_dirs" || eval "mkdir $as_dirs"
319   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330   eval 'as_fn_append ()
331   {
332     eval $1+=\$2
333   }'
334 else
335   as_fn_append ()
336   {
337     eval $1=\$$1\$2
338   }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347   eval 'as_fn_arith ()
348   {
349     as_val=$(( $* ))
350   }'
351 else
352   as_fn_arith ()
353   {
354     as_val=`expr "$@" || test $? -eq 1`
355   }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366   as_status=$?; test $as_status -eq 0 && as_status=1
367   if test "$3"; then
368     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370   fi
371   $as_echo "$as_me: error: $1" >&2
372   as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376    test "X`expr 00001 : '.*\(...\)'`" = X001; then
377   as_expr=expr
378 else
379   as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383   as_basename=basename
384 else
385   as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389   as_dirname=dirname
390 else
391   as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396          X"$0" : 'X\(//\)$' \| \
397          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399     sed '/^.*\/\([^/][^/]*\)\/*$/{
400             s//\1/
401             q
402           }
403           /^X\/\(\/\/\)$/{
404             s//\1/
405             q
406           }
407           /^X\/\(\/\).*/{
408             s//\1/
409             q
410           }
411           s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421   as_lineno_1=$LINENO as_lineno_1a=$LINENO
422   as_lineno_2=$LINENO as_lineno_2a=$LINENO
423   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426   sed -n '
427     p
428     /[$]LINENO/=
429   ' <$as_myself |
430     sed '
431       s/[$]LINENO.*/&-/
432       t lineno
433       b
434       :lineno
435       N
436       :loop
437       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438       t loop
439       s/-\n.*//
440     ' >$as_me.lineno &&
441   chmod +x "$as_me.lineno" ||
442     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444   # Don't try to exec as it changes $[0], causing all sort of problems
445   # (the dirname of $[0] is not the place where we might find the
446   # original and so on.  Autoconf is especially sensitive to this).
447   . "./$as_me.lineno"
448   # Exit status is that of the last command.
449   exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455   case `echo 'xy\c'` in
456   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
457   xy)  ECHO_C='\c';;
458   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459        ECHO_T=' ';;
460   esac;;
461 *)
462   ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467   rm -f conf$$.dir/conf$$.file
468 else
469   rm -f conf$$.dir
470   mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473   if ln -s conf$$.file conf$$ 2>/dev/null; then
474     as_ln_s='ln -s'
475     # ... but there are two gotchas:
476     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478     # In both cases, we have to default to `cp -p'.
479     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480       as_ln_s='cp -p'
481   elif ln conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s=ln
483   else
484     as_ln_s='cp -p'
485   fi
486 else
487   as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493   as_mkdir_p='mkdir -p "$as_dir"'
494 else
495   test -d ./-p && rmdir ./-p
496   as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500   as_test_x='test -x'
501 else
502   if ls -dL / >/dev/null 2>&1; then
503     as_ls_L_option=L
504   else
505     as_ls_L_option=
506   fi
507   as_test_x='
508     eval sh -c '\''
509       if test -d "$1"; then
510         test -d "$1/.";
511       else
512         case $1 in #(
513         -*)set "./$1";;
514         esac;
515         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516         ???[sx]*):;;*)false;;esac;fi
517     '\'' sh
518   '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME=
551 PACKAGE_TARNAME=
552 PACKAGE_VERSION=
553 PACKAGE_STRING=
554 PACKAGE_BUGREPORT=
555 PACKAGE_URL=
556
557 ac_unique_file="version.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 #  include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 #  include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_header_list=
595 ac_subst_vars='LTLIBOBJS
596 LIBOBJS
597 BUILD_LDFLAGS
598 BUILD_CFLAGS
599 INCLUDES
600 DO_TEST_SUITE
601 ET_DIR
602 SS_DIR
603 LDFLAG_STATIC
604 root_sysconfdir
605 root_libdir
606 root_sbindir
607 root_bindir
608 root_prefix
609 UNIX_CMT
610 CYGWIN_CMT
611 LINUX_CMT
612 UNI_DIFF_OPTS
613 SEM_INIT_LIB
614 DB4VERSION
615 SOCKET_LIB
616 SIZEOF_LONG_LONG
617 SIZEOF_LONG
618 SIZEOF_INT
619 SIZEOF_SHORT
620 BUILD_CC
621 MAKEINFO
622 STRIP
623 AR
624 LDCONFIG
625 PERL
626 SED
627 AWK
628 CHMOD
629 RM
630 CP
631 MV
632 LN_S
633 LN
634 ifNotGNUmake
635 ifGNUmake
636 BINARY_TYPE
637 POSUB
638 LTLIBINTL
639 LIBINTL
640 INTLLIBS
641 INTL_LIBTOOL_SUFFIX_PREFIX
642 INTLOBJS
643 GENCAT
644 INSTOBJEXT
645 DATADIRNAME
646 CATOBJEXT
647 USE_INCLUDED_LIBINTL
648 BUILD_INCLUDED_LIBINTL
649 INTLBISON
650 LTLIBICONV
651 LIBICONV
652 HAVE_WPRINTF
653 HAVE_SNPRINTF
654 HAVE_ASPRINTF
655 HAVE_POSIX_PRINTF
656 GLIBC21
657 ALLOCA
658 EGREP
659 GREP
660 RANLIB
661 MSGMERGE
662 XGETTEXT
663 GMSGFMT
664 MSGFMT
665 USE_NLS
666 MKINSTALLDIRS
667 INSTALL_DATA
668 INSTALL_SCRIPT
669 INSTALL_PROGRAM
670 SET_MAKE
671 VERSION
672 PACKAGE
673 GETTEXT_PACKAGE
674 UUIDD_CMT
675 E2INITRD_MAN
676 E2INITRD_PROG
677 FSCK_MAN
678 FSCK_PROG
679 DEFRAG_CMT
680 RESIZER_CMT
681 IMAGER_CMT
682 DEBUGFS_CMT
683 QUOTA_CMT
684 DEPPROFILED_LIBQUOTA
685 PROFILED_LIBQUOTA
686 DEPSTATIC_LIBQUOTA
687 STATIC_LIBQUOTA
688 DEPLIBQUOTA
689 LIBQUOTA
690 BLKID_CMT
691 DEPPROFILED_LIBBLKID
692 PROFILED_LIBBLKID
693 DEPSTATIC_LIBBLKID
694 STATIC_LIBBLKID
695 DEPLIBBLKID
696 LIBBLKID
697 UUID_CMT
698 DEPPROFILED_LIBUUID
699 PROFILED_LIBUUID
700 DEPSTATIC_LIBUUID
701 STATIC_LIBUUID
702 DEPLIBUUID
703 LIBUUID
704 PKG_CONFIG
705 TEST_IO_CMT
706 PRIVATE_LIBS_CMT
707 LDFLAG_DYNAMIC
708 PROFILED_LIB_EXT
709 STATIC_LIB_EXT
710 LIB_EXT
711 CHECKER_CMT
712 PROFILE_CMT
713 BSDLIB_CMT
714 ELF_CMT
715 HTREE_CMT
716 WITH_LUSTRE
717 LUSTRE
718 ENABLE_LFSCK
719 LFSCK_MAN
720 LFSCK_CMT
721 Q
722 E
723 LINK_BUILD_FLAGS
724 SYMLINK_RELATIVE
725 LINK_INSTALL_FLAGS
726 MAINTAINER_CMT
727 CPP
728 RDYNAMIC
729 DLOPEN_LIB
730 OBJEXT
731 EXEEXT
732 ac_ct_CC
733 CPPFLAGS
734 LDFLAGS
735 CFLAGS
736 CC
737 host_os
738 host_vendor
739 host_cpu
740 host
741 build_os
742 build_vendor
743 build_cpu
744 build
745 E2FSPROGS_PKGVER
746 E2FSPROGS_VERSION
747 E2FSPROGS_DAY
748 E2FSPROGS_MONTH
749 E2FSPROGS_YEAR
750 target_alias
751 host_alias
752 build_alias
753 LIBS
754 ECHO_T
755 ECHO_N
756 ECHO_C
757 DEFS
758 mandir
759 localedir
760 libdir
761 psdir
762 pdfdir
763 dvidir
764 htmldir
765 infodir
766 docdir
767 oldincludedir
768 includedir
769 localstatedir
770 sharedstatedir
771 sysconfdir
772 datadir
773 datarootdir
774 libexecdir
775 sbindir
776 bindir
777 program_transform_name
778 prefix
779 exec_prefix
780 PACKAGE_URL
781 PACKAGE_BUGREPORT
782 PACKAGE_STRING
783 PACKAGE_VERSION
784 PACKAGE_TARNAME
785 PACKAGE_NAME
786 PATH_SEPARATOR
787 SHELL'
788 ac_subst_files='MCONFIG
789 MAKEFILE_ELF
790 MAKEFILE_BSDLIB
791 MAKEFILE_PROFILE
792 MAKEFILE_CHECKER
793 MAKEFILE_LIBRARY
794 ASM_TYPES_HEADER
795 PUBLIC_CONFIG_HEADER'
796 ac_user_opts='
797 enable_option_checking
798 with_diet_libc
799 with_cc
800 with_ccopts
801 with_ldopts
802 with_root_prefix
803 enable_maintainer_mode
804 enable_symlink_install
805 enable_symlink_relative_symlinks
806 enable_symlink_build
807 enable_verbose_makecmds
808 enable_lfsck
809 with_lustre
810 enable_compression
811 enable_htree
812 enable_elf_shlibs
813 enable_bsd_shlibs
814 enable_profile
815 enable_checker
816 enable_jbd_debug
817 enable_blkid_debug
818 enable_testio_debug
819 enable_libuuid
820 enable_libblkid
821 enable_quota
822 enable_debugfs
823 enable_imager
824 enable_resizer
825 enable_defrag
826 enable_fsck
827 enable_e2initrd_helper
828 enable_tls
829 enable_uuidd
830 enable_nls
831 with_gnu_ld
832 enable_rpath
833 with_libiconv_prefix
834 with_included_gettext
835 with_libintl_prefix
836 with_multiarch
837 '
838       ac_precious_vars='build_alias
839 host_alias
840 target_alias
841 CC
842 CFLAGS
843 LDFLAGS
844 LIBS
845 CPPFLAGS
846 CPP
847 PKG_CONFIG'
848
849
850 # Initialize some variables set by options.
851 ac_init_help=
852 ac_init_version=false
853 ac_unrecognized_opts=
854 ac_unrecognized_sep=
855 # The variables have the same names as the options, with
856 # dashes changed to underlines.
857 cache_file=/dev/null
858 exec_prefix=NONE
859 no_create=
860 no_recursion=
861 prefix=NONE
862 program_prefix=NONE
863 program_suffix=NONE
864 program_transform_name=s,x,x,
865 silent=
866 site=
867 srcdir=
868 verbose=
869 x_includes=NONE
870 x_libraries=NONE
871
872 # Installation directory options.
873 # These are left unexpanded so users can "make install exec_prefix=/foo"
874 # and all the variables that are supposed to be based on exec_prefix
875 # by default will actually change.
876 # Use braces instead of parens because sh, perl, etc. also accept them.
877 # (The list follows the same order as the GNU Coding Standards.)
878 bindir='${exec_prefix}/bin'
879 sbindir='${exec_prefix}/sbin'
880 libexecdir='${exec_prefix}/libexec'
881 datarootdir='${prefix}/share'
882 datadir='${datarootdir}'
883 sysconfdir='${prefix}/etc'
884 sharedstatedir='${prefix}/com'
885 localstatedir='${prefix}/var'
886 includedir='${prefix}/include'
887 oldincludedir='/usr/include'
888 docdir='${datarootdir}/doc/${PACKAGE}'
889 infodir='${datarootdir}/info'
890 htmldir='${docdir}'
891 dvidir='${docdir}'
892 pdfdir='${docdir}'
893 psdir='${docdir}'
894 libdir='${exec_prefix}/lib'
895 localedir='${datarootdir}/locale'
896 mandir='${datarootdir}/man'
897
898 ac_prev=
899 ac_dashdash=
900 for ac_option
901 do
902   # If the previous option needs an argument, assign it.
903   if test -n "$ac_prev"; then
904     eval $ac_prev=\$ac_option
905     ac_prev=
906     continue
907   fi
908
909   case $ac_option in
910   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
911   *)    ac_optarg=yes ;;
912   esac
913
914   # Accept the important Cygnus configure options, so we can diagnose typos.
915
916   case $ac_dashdash$ac_option in
917   --)
918     ac_dashdash=yes ;;
919
920   -bindir | --bindir | --bindi | --bind | --bin | --bi)
921     ac_prev=bindir ;;
922   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
923     bindir=$ac_optarg ;;
924
925   -build | --build | --buil | --bui | --bu)
926     ac_prev=build_alias ;;
927   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
928     build_alias=$ac_optarg ;;
929
930   -cache-file | --cache-file | --cache-fil | --cache-fi \
931   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
932     ac_prev=cache_file ;;
933   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
934   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
935     cache_file=$ac_optarg ;;
936
937   --config-cache | -C)
938     cache_file=config.cache ;;
939
940   -datadir | --datadir | --datadi | --datad)
941     ac_prev=datadir ;;
942   -datadir=* | --datadir=* | --datadi=* | --datad=*)
943     datadir=$ac_optarg ;;
944
945   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
946   | --dataroo | --dataro | --datar)
947     ac_prev=datarootdir ;;
948   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
949   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
950     datarootdir=$ac_optarg ;;
951
952   -disable-* | --disable-*)
953     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
954     # Reject names that are not valid shell variable names.
955     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956       as_fn_error "invalid feature name: $ac_useropt"
957     ac_useropt_orig=$ac_useropt
958     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959     case $ac_user_opts in
960       *"
961 "enable_$ac_useropt"
962 "*) ;;
963       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
964          ac_unrecognized_sep=', ';;
965     esac
966     eval enable_$ac_useropt=no ;;
967
968   -docdir | --docdir | --docdi | --doc | --do)
969     ac_prev=docdir ;;
970   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
971     docdir=$ac_optarg ;;
972
973   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
974     ac_prev=dvidir ;;
975   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
976     dvidir=$ac_optarg ;;
977
978   -enable-* | --enable-*)
979     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
980     # Reject names that are not valid shell variable names.
981     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
982       as_fn_error "invalid feature name: $ac_useropt"
983     ac_useropt_orig=$ac_useropt
984     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985     case $ac_user_opts in
986       *"
987 "enable_$ac_useropt"
988 "*) ;;
989       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
990          ac_unrecognized_sep=', ';;
991     esac
992     eval enable_$ac_useropt=\$ac_optarg ;;
993
994   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
995   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
996   | --exec | --exe | --ex)
997     ac_prev=exec_prefix ;;
998   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
999   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1000   | --exec=* | --exe=* | --ex=*)
1001     exec_prefix=$ac_optarg ;;
1002
1003   -gas | --gas | --ga | --g)
1004     # Obsolete; use --with-gas.
1005     with_gas=yes ;;
1006
1007   -help | --help | --hel | --he | -h)
1008     ac_init_help=long ;;
1009   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1010     ac_init_help=recursive ;;
1011   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1012     ac_init_help=short ;;
1013
1014   -host | --host | --hos | --ho)
1015     ac_prev=host_alias ;;
1016   -host=* | --host=* | --hos=* | --ho=*)
1017     host_alias=$ac_optarg ;;
1018
1019   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1020     ac_prev=htmldir ;;
1021   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1022   | --ht=*)
1023     htmldir=$ac_optarg ;;
1024
1025   -includedir | --includedir | --includedi | --included | --include \
1026   | --includ | --inclu | --incl | --inc)
1027     ac_prev=includedir ;;
1028   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1029   | --includ=* | --inclu=* | --incl=* | --inc=*)
1030     includedir=$ac_optarg ;;
1031
1032   -infodir | --infodir | --infodi | --infod | --info | --inf)
1033     ac_prev=infodir ;;
1034   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1035     infodir=$ac_optarg ;;
1036
1037   -libdir | --libdir | --libdi | --libd)
1038     ac_prev=libdir ;;
1039   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1040     libdir=$ac_optarg ;;
1041
1042   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1043   | --libexe | --libex | --libe)
1044     ac_prev=libexecdir ;;
1045   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1046   | --libexe=* | --libex=* | --libe=*)
1047     libexecdir=$ac_optarg ;;
1048
1049   -localedir | --localedir | --localedi | --localed | --locale)
1050     ac_prev=localedir ;;
1051   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1052     localedir=$ac_optarg ;;
1053
1054   -localstatedir | --localstatedir | --localstatedi | --localstated \
1055   | --localstate | --localstat | --localsta | --localst | --locals)
1056     ac_prev=localstatedir ;;
1057   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1058   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1059     localstatedir=$ac_optarg ;;
1060
1061   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1062     ac_prev=mandir ;;
1063   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1064     mandir=$ac_optarg ;;
1065
1066   -nfp | --nfp | --nf)
1067     # Obsolete; use --without-fp.
1068     with_fp=no ;;
1069
1070   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1071   | --no-cr | --no-c | -n)
1072     no_create=yes ;;
1073
1074   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1075   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1076     no_recursion=yes ;;
1077
1078   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1079   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1080   | --oldin | --oldi | --old | --ol | --o)
1081     ac_prev=oldincludedir ;;
1082   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1083   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1084   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1085     oldincludedir=$ac_optarg ;;
1086
1087   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1088     ac_prev=prefix ;;
1089   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1090     prefix=$ac_optarg ;;
1091
1092   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1093   | --program-pre | --program-pr | --program-p)
1094     ac_prev=program_prefix ;;
1095   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1096   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1097     program_prefix=$ac_optarg ;;
1098
1099   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1100   | --program-suf | --program-su | --program-s)
1101     ac_prev=program_suffix ;;
1102   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1103   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1104     program_suffix=$ac_optarg ;;
1105
1106   -program-transform-name | --program-transform-name \
1107   | --program-transform-nam | --program-transform-na \
1108   | --program-transform-n | --program-transform- \
1109   | --program-transform | --program-transfor \
1110   | --program-transfo | --program-transf \
1111   | --program-trans | --program-tran \
1112   | --progr-tra | --program-tr | --program-t)
1113     ac_prev=program_transform_name ;;
1114   -program-transform-name=* | --program-transform-name=* \
1115   | --program-transform-nam=* | --program-transform-na=* \
1116   | --program-transform-n=* | --program-transform-=* \
1117   | --program-transform=* | --program-transfor=* \
1118   | --program-transfo=* | --program-transf=* \
1119   | --program-trans=* | --program-tran=* \
1120   | --progr-tra=* | --program-tr=* | --program-t=*)
1121     program_transform_name=$ac_optarg ;;
1122
1123   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1124     ac_prev=pdfdir ;;
1125   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1126     pdfdir=$ac_optarg ;;
1127
1128   -psdir | --psdir | --psdi | --psd | --ps)
1129     ac_prev=psdir ;;
1130   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1131     psdir=$ac_optarg ;;
1132
1133   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1134   | -silent | --silent | --silen | --sile | --sil)
1135     silent=yes ;;
1136
1137   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1138     ac_prev=sbindir ;;
1139   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1140   | --sbi=* | --sb=*)
1141     sbindir=$ac_optarg ;;
1142
1143   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1144   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1145   | --sharedst | --shareds | --shared | --share | --shar \
1146   | --sha | --sh)
1147     ac_prev=sharedstatedir ;;
1148   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1149   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1150   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1151   | --sha=* | --sh=*)
1152     sharedstatedir=$ac_optarg ;;
1153
1154   -site | --site | --sit)
1155     ac_prev=site ;;
1156   -site=* | --site=* | --sit=*)
1157     site=$ac_optarg ;;
1158
1159   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1160     ac_prev=srcdir ;;
1161   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1162     srcdir=$ac_optarg ;;
1163
1164   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1165   | --syscon | --sysco | --sysc | --sys | --sy)
1166     ac_prev=sysconfdir ;;
1167   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1168   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1169     sysconfdir=$ac_optarg ;;
1170
1171   -target | --target | --targe | --targ | --tar | --ta | --t)
1172     ac_prev=target_alias ;;
1173   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1174     target_alias=$ac_optarg ;;
1175
1176   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1177     verbose=yes ;;
1178
1179   -version | --version | --versio | --versi | --vers | -V)
1180     ac_init_version=: ;;
1181
1182   -with-* | --with-*)
1183     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1184     # Reject names that are not valid shell variable names.
1185     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186       as_fn_error "invalid package name: $ac_useropt"
1187     ac_useropt_orig=$ac_useropt
1188     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189     case $ac_user_opts in
1190       *"
1191 "with_$ac_useropt"
1192 "*) ;;
1193       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1194          ac_unrecognized_sep=', ';;
1195     esac
1196     eval with_$ac_useropt=\$ac_optarg ;;
1197
1198   -without-* | --without-*)
1199     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200     # Reject names that are not valid shell variable names.
1201     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202       as_fn_error "invalid package name: $ac_useropt"
1203     ac_useropt_orig=$ac_useropt
1204     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205     case $ac_user_opts in
1206       *"
1207 "with_$ac_useropt"
1208 "*) ;;
1209       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1210          ac_unrecognized_sep=', ';;
1211     esac
1212     eval with_$ac_useropt=no ;;
1213
1214   --x)
1215     # Obsolete; use --with-x.
1216     with_x=yes ;;
1217
1218   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219   | --x-incl | --x-inc | --x-in | --x-i)
1220     ac_prev=x_includes ;;
1221   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1223     x_includes=$ac_optarg ;;
1224
1225   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227     ac_prev=x_libraries ;;
1228   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1230     x_libraries=$ac_optarg ;;
1231
1232   -*) as_fn_error "unrecognized option: \`$ac_option'
1233 Try \`$0 --help' for more information."
1234     ;;
1235
1236   *=*)
1237     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238     # Reject names that are not valid shell variable names.
1239     case $ac_envvar in #(
1240       '' | [0-9]* | *[!_$as_cr_alnum]* )
1241       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1242     esac
1243     eval $ac_envvar=\$ac_optarg
1244     export $ac_envvar ;;
1245
1246   *)
1247     # FIXME: should be removed in autoconf 3.0.
1248     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1249     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1251     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1252     ;;
1253
1254   esac
1255 done
1256
1257 if test -n "$ac_prev"; then
1258   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259   as_fn_error "missing argument to $ac_option"
1260 fi
1261
1262 if test -n "$ac_unrecognized_opts"; then
1263   case $enable_option_checking in
1264     no) ;;
1265     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1266     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1267   esac
1268 fi
1269
1270 # Check all directory arguments for consistency.
1271 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272                 datadir sysconfdir sharedstatedir localstatedir includedir \
1273                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274                 libdir localedir mandir
1275 do
1276   eval ac_val=\$$ac_var
1277   # Remove trailing slashes.
1278   case $ac_val in
1279     */ )
1280       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1281       eval $ac_var=\$ac_val;;
1282   esac
1283   # Be sure to have absolute directory names.
1284   case $ac_val in
1285     [\\/$]* | ?:[\\/]* )  continue;;
1286     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287   esac
1288   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1289 done
1290
1291 # There might be people who depend on the old broken behavior: `$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1294 build=$build_alias
1295 host=$host_alias
1296 target=$target_alias
1297
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x; then
1300   if test "x$build_alias" = x; then
1301     cross_compiling=maybe
1302     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1303     If a cross compiler is detected then cross compile mode will be used." >&2
1304   elif test "x$build_alias" != "x$host_alias"; then
1305     cross_compiling=yes
1306   fi
1307 fi
1308
1309 ac_tool_prefix=
1310 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1311
1312 test "$silent" = yes && exec 6>/dev/null
1313
1314
1315 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1316 ac_ls_di=`ls -di .` &&
1317 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1318   as_fn_error "working directory cannot be determined"
1319 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320   as_fn_error "pwd does not report name of working directory"
1321
1322
1323 # Find the source files, if location was not specified.
1324 if test -z "$srcdir"; then
1325   ac_srcdir_defaulted=yes
1326   # Try the directory containing this script, then the parent directory.
1327   ac_confdir=`$as_dirname -- "$as_myself" ||
1328 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329          X"$as_myself" : 'X\(//\)[^/]' \| \
1330          X"$as_myself" : 'X\(//\)$' \| \
1331          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1332 $as_echo X"$as_myself" |
1333     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1334             s//\1/
1335             q
1336           }
1337           /^X\(\/\/\)[^/].*/{
1338             s//\1/
1339             q
1340           }
1341           /^X\(\/\/\)$/{
1342             s//\1/
1343             q
1344           }
1345           /^X\(\/\).*/{
1346             s//\1/
1347             q
1348           }
1349           s/.*/./; q'`
1350   srcdir=$ac_confdir
1351   if test ! -r "$srcdir/$ac_unique_file"; then
1352     srcdir=..
1353   fi
1354 else
1355   ac_srcdir_defaulted=no
1356 fi
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1359   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1360 fi
1361 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1362 ac_abs_confdir=`(
1363         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1364         pwd)`
1365 # When building in place, set srcdir=.
1366 if test "$ac_abs_confdir" = "$ac_pwd"; then
1367   srcdir=.
1368 fi
1369 # Remove unnecessary trailing slashes from srcdir.
1370 # Double slashes in file names in object file debugging info
1371 # mess up M-x gdb in Emacs.
1372 case $srcdir in
1373 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1374 esac
1375 for ac_var in $ac_precious_vars; do
1376   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1377   eval ac_env_${ac_var}_value=\$${ac_var}
1378   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1379   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1380 done
1381
1382 #
1383 # Report the --help message.
1384 #
1385 if test "$ac_init_help" = "long"; then
1386   # Omit some internal or obsolete options to make the list less imposing.
1387   # This message is too long to be a string in the A/UX 3.1 sh.
1388   cat <<_ACEOF
1389 \`configure' configures this package to adapt to many kinds of systems.
1390
1391 Usage: $0 [OPTION]... [VAR=VALUE]...
1392
1393 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394 VAR=VALUE.  See below for descriptions of some of the useful variables.
1395
1396 Defaults for the options are specified in brackets.
1397
1398 Configuration:
1399   -h, --help              display this help and exit
1400       --help=short        display options specific to this package
1401       --help=recursive    display the short help of all the included packages
1402   -V, --version           display version information and exit
1403   -q, --quiet, --silent   do not print \`checking...' messages
1404       --cache-file=FILE   cache test results in FILE [disabled]
1405   -C, --config-cache      alias for \`--cache-file=config.cache'
1406   -n, --no-create         do not create output files
1407       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1408
1409 Installation directories:
1410   --prefix=PREFIX         install architecture-independent files in PREFIX
1411                           [$ac_default_prefix]
1412   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1413                           [PREFIX]
1414
1415 By default, \`make install' will install all the files in
1416 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1417 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418 for instance \`--prefix=\$HOME'.
1419
1420 For better control, use the options below.
1421
1422 Fine tuning of the installation directories:
1423   --bindir=DIR            user executables [EPREFIX/bin]
1424   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1425   --libexecdir=DIR        program executables [EPREFIX/libexec]
1426   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1427   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1428   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1429   --libdir=DIR            object code libraries [EPREFIX/lib]
1430   --includedir=DIR        C header files [PREFIX/include]
1431   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1432   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1433   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1434   --infodir=DIR           info documentation [DATAROOTDIR/info]
1435   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1436   --mandir=DIR            man documentation [DATAROOTDIR/man]
1437   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1438   --htmldir=DIR           html documentation [DOCDIR]
1439   --dvidir=DIR            dvi documentation [DOCDIR]
1440   --pdfdir=DIR            pdf documentation [DOCDIR]
1441   --psdir=DIR             ps documentation [DOCDIR]
1442 _ACEOF
1443
1444   cat <<\_ACEOF
1445
1446 System types:
1447   --build=BUILD     configure for building on BUILD [guessed]
1448   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1449 _ACEOF
1450 fi
1451
1452 if test -n "$ac_init_help"; then
1453
1454   cat <<\_ACEOF
1455
1456 Optional Features:
1457   --disable-option-checking  ignore unrecognized --enable/--with options
1458   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1459   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1460   --enable-maintainer-mode enable makefile rules useful for maintainers
1461   --enable-symlink-install use symlinks when installing instead of hard links
1462   --enable-relative-symlinks use relative symlinks when installing
1463   --enable-symlink-build  use symlinks while building instead of hard links
1464   --enable-verbose-makecmds enable verbose make command output
1465   --disable-lfsck         disable EXPERIMENTAL Lustre lfsck support
1466   --enable-compression    enable EXPERIMENTAL compression support
1467   --enable-htree          enable EXPERIMENTAL htree directory support
1468   --enable-elf-shlibs     select ELF shared libraries
1469   --enable-bsd-shlibs     select BSD shared libraries
1470   --enable-profile        build profiling libraries
1471   --enable-checker        build checker libraries
1472   --enable-jbd-debug      enable journal debugging
1473   --enable-blkid-debug    enable blkid debugging
1474   --disable-testio-debug  disable the use of the test I/O manager for debugging
1475   --disable-libuuid       do not build private uuid library
1476   --disable-libblkid      do not build private blkid library
1477   --enable-libquota       enable quota support
1478   --disable-debugfs       disable support of debugfs program
1479   --disable-imager        disable support of e2image program
1480   --disable-resizer       disable support of e2resize program
1481   --disable-defrag        disable support of e4defrag program
1482   --enable-fsck           build fsck wrapper program
1483   --enable-e2initrd-helper build e2initrd-helper program
1484   --disable-tls           disable use of thread local support
1485   --disable-uuidd         disable building the uuid daemon
1486   --disable-nls           do not use Native Language Support
1487   --disable-rpath         do not hardcode runtime library paths
1488
1489 Optional Packages:
1490   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1491   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1492   --with-diet-libc        use diet libc
1493   --with-cc               no longer supported, use CC= instead
1494   --with-ccopts           no longer supported, use CFLAGS= instead
1495   --with-ldopts           no longer supported, use LDFLAGS= instead
1496   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1497   --with-lustre=LUSTRE path to Lustre sources for lfsck (default=/usr for RPM)
1498   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1499   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1500   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1501   --with-included-gettext use the GNU gettext library included here
1502   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1503   --without-libintl-prefix     don't search for libintl in includedir and libdir
1504   --with-multiarch=ARCH specify the multiarch triplet
1505
1506 Some influential environment variables:
1507   CC          C compiler command
1508   CFLAGS      C compiler flags
1509   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1510               nonstandard directory <lib dir>
1511   LIBS        libraries to pass to the linker, e.g. -l<library>
1512   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1513               you have headers in a nonstandard directory <include dir>
1514   CPP         C preprocessor
1515   PKG_CONFIG  path to pkg-config utility
1516
1517 Use these variables to override the choices made by `configure' or to help
1518 it to find libraries and programs with nonstandard names/locations.
1519
1520 Report bugs to the package provider.
1521 _ACEOF
1522 ac_status=$?
1523 fi
1524
1525 if test "$ac_init_help" = "recursive"; then
1526   # If there are subdirs, report their specific --help.
1527   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528     test -d "$ac_dir" ||
1529       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1530       continue
1531     ac_builddir=.
1532
1533 case "$ac_dir" in
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *)
1536   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1537   # A ".." for each directory in $ac_dir_suffix.
1538   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1539   case $ac_top_builddir_sub in
1540   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542   esac ;;
1543 esac
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1548
1549 case $srcdir in
1550   .)  # We are building in place.
1551     ac_srcdir=.
1552     ac_top_srcdir=$ac_top_builddir_sub
1553     ac_abs_top_srcdir=$ac_pwd ;;
1554   [\\/]* | ?:[\\/]* )  # Absolute name.
1555     ac_srcdir=$srcdir$ac_dir_suffix;
1556     ac_top_srcdir=$srcdir
1557     ac_abs_top_srcdir=$srcdir ;;
1558   *) # Relative name.
1559     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560     ac_top_srcdir=$ac_top_build_prefix$srcdir
1561     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562 esac
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564
1565     cd "$ac_dir" || { ac_status=$?; continue; }
1566     # Check for guested configure.
1567     if test -f "$ac_srcdir/configure.gnu"; then
1568       echo &&
1569       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570     elif test -f "$ac_srcdir/configure"; then
1571       echo &&
1572       $SHELL "$ac_srcdir/configure" --help=recursive
1573     else
1574       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575     fi || ac_status=$?
1576     cd "$ac_pwd" || { ac_status=$?; break; }
1577   done
1578 fi
1579
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1582   cat <<\_ACEOF
1583 configure
1584 generated by GNU Autoconf 2.65
1585
1586 Copyright (C) 2009 Free Software Foundation, Inc.
1587 This configure script is free software; the Free Software Foundation
1588 gives unlimited permission to copy, distribute and modify it.
1589 _ACEOF
1590   exit
1591 fi
1592
1593 ## ------------------------ ##
1594 ## Autoconf initialization. ##
1595 ## ------------------------ ##
1596
1597 # ac_fn_c_try_compile LINENO
1598 # --------------------------
1599 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1600 ac_fn_c_try_compile ()
1601 {
1602   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603   rm -f conftest.$ac_objext
1604   if { { ac_try="$ac_compile"
1605 case "(($ac_try" in
1606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607   *) ac_try_echo=$ac_try;;
1608 esac
1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610 $as_echo "$ac_try_echo"; } >&5
1611   (eval "$ac_compile") 2>conftest.err
1612   ac_status=$?
1613   if test -s conftest.err; then
1614     grep -v '^ *+' conftest.err >conftest.er1
1615     cat conftest.er1 >&5
1616     mv -f conftest.er1 conftest.err
1617   fi
1618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619   test $ac_status = 0; } && {
1620          test -z "$ac_c_werror_flag" ||
1621          test ! -s conftest.err
1622        } && test -s conftest.$ac_objext; then :
1623   ac_retval=0
1624 else
1625   $as_echo "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1627
1628         ac_retval=1
1629 fi
1630   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1631   as_fn_set_status $ac_retval
1632
1633 } # ac_fn_c_try_compile
1634
1635 # ac_fn_c_try_link LINENO
1636 # -----------------------
1637 # Try to link conftest.$ac_ext, and return whether this succeeded.
1638 ac_fn_c_try_link ()
1639 {
1640   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641   rm -f conftest.$ac_objext conftest$ac_exeext
1642   if { { ac_try="$ac_link"
1643 case "(($ac_try" in
1644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645   *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649   (eval "$ac_link") 2>conftest.err
1650   ac_status=$?
1651   if test -s conftest.err; then
1652     grep -v '^ *+' conftest.err >conftest.er1
1653     cat conftest.er1 >&5
1654     mv -f conftest.er1 conftest.err
1655   fi
1656   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657   test $ac_status = 0; } && {
1658          test -z "$ac_c_werror_flag" ||
1659          test ! -s conftest.err
1660        } && test -s conftest$ac_exeext && {
1661          test "$cross_compiling" = yes ||
1662          $as_test_x conftest$ac_exeext
1663        }; then :
1664   ac_retval=0
1665 else
1666   $as_echo "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1668
1669         ac_retval=1
1670 fi
1671   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1672   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1673   # interfere with the next link command; also delete a directory that is
1674   # left behind by Apple's compiler.  We do this before executing the actions.
1675   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1676   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1677   as_fn_set_status $ac_retval
1678
1679 } # ac_fn_c_try_link
1680
1681 # ac_fn_c_try_cpp LINENO
1682 # ----------------------
1683 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1684 ac_fn_c_try_cpp ()
1685 {
1686   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687   if { { ac_try="$ac_cpp conftest.$ac_ext"
1688 case "(($ac_try" in
1689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690   *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1695   ac_status=$?
1696   if test -s conftest.err; then
1697     grep -v '^ *+' conftest.err >conftest.er1
1698     cat conftest.er1 >&5
1699     mv -f conftest.er1 conftest.err
1700   fi
1701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702   test $ac_status = 0; } >/dev/null && {
1703          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1704          test ! -s conftest.err
1705        }; then :
1706   ac_retval=0
1707 else
1708   $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1710
1711     ac_retval=1
1712 fi
1713   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1714   as_fn_set_status $ac_retval
1715
1716 } # ac_fn_c_try_cpp
1717
1718 # ac_fn_c_try_run LINENO
1719 # ----------------------
1720 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1721 # that executables *can* be run.
1722 ac_fn_c_try_run ()
1723 {
1724   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725   if { { ac_try="$ac_link"
1726 case "(($ac_try" in
1727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728   *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732   (eval "$ac_link") 2>&5
1733   ac_status=$?
1734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1736   { { case "(($ac_try" in
1737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738   *) ac_try_echo=$ac_try;;
1739 esac
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742   (eval "$ac_try") 2>&5
1743   ac_status=$?
1744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745   test $ac_status = 0; }; }; then :
1746   ac_retval=0
1747 else
1748   $as_echo "$as_me: program exited with status $ac_status" >&5
1749        $as_echo "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1751
1752        ac_retval=$ac_status
1753 fi
1754   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1755   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1756   as_fn_set_status $ac_retval
1757
1758 } # ac_fn_c_try_run
1759
1760 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1761 # -------------------------------------------
1762 # Tests whether TYPE exists after having included INCLUDES, setting cache
1763 # variable VAR accordingly.
1764 ac_fn_c_check_type ()
1765 {
1766   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768 $as_echo_n "checking for $2... " >&6; }
1769 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1770   $as_echo_n "(cached) " >&6
1771 else
1772   eval "$3=no"
1773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h.  */
1775 $4
1776 int
1777 main ()
1778 {
1779 if (sizeof ($2))
1780          return 0;
1781   ;
1782   return 0;
1783 }
1784 _ACEOF
1785 if ac_fn_c_try_compile "$LINENO"; then :
1786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h.  */
1788 $4
1789 int
1790 main ()
1791 {
1792 if (sizeof (($2)))
1793             return 0;
1794   ;
1795   return 0;
1796 }
1797 _ACEOF
1798 if ac_fn_c_try_compile "$LINENO"; then :
1799
1800 else
1801   eval "$3=yes"
1802 fi
1803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804 fi
1805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806 fi
1807 eval ac_res=\$$3
1808                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1810   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811
1812 } # ac_fn_c_check_type
1813
1814 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1815 # -------------------------------------------------------
1816 # Tests whether HEADER exists and can be compiled using the include files in
1817 # INCLUDES, setting the cache variable VAR accordingly.
1818 ac_fn_c_check_header_compile ()
1819 {
1820   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1824   $as_echo_n "(cached) " >&6
1825 else
1826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h.  */
1828 $4
1829 #include <$2>
1830 _ACEOF
1831 if ac_fn_c_try_compile "$LINENO"; then :
1832   eval "$3=yes"
1833 else
1834   eval "$3=no"
1835 fi
1836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1837 fi
1838 eval ac_res=\$$3
1839                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 $as_echo "$ac_res" >&6; }
1841   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842
1843 } # ac_fn_c_check_header_compile
1844
1845 # ac_fn_c_check_func LINENO FUNC VAR
1846 # ----------------------------------
1847 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1848 ac_fn_c_check_func ()
1849 {
1850   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1854   $as_echo_n "(cached) " >&6
1855 else
1856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h.  */
1858 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1859    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1860 #define $2 innocuous_$2
1861
1862 /* System header to define __stub macros and hopefully few prototypes,
1863     which can conflict with char $2 (); below.
1864     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1865     <limits.h> exists even on freestanding compilers.  */
1866
1867 #ifdef __STDC__
1868 # include <limits.h>
1869 #else
1870 # include <assert.h>
1871 #endif
1872
1873 #undef $2
1874
1875 /* Override any GCC internal prototype to avoid an error.
1876    Use char because int might match the return type of a GCC
1877    builtin and then its argument prototype would still apply.  */
1878 #ifdef __cplusplus
1879 extern "C"
1880 #endif
1881 char $2 ();
1882 /* The GNU C library defines this for functions which it implements
1883     to always fail with ENOSYS.  Some functions are actually named
1884     something starting with __ and the normal name is an alias.  */
1885 #if defined __stub_$2 || defined __stub___$2
1886 choke me
1887 #endif
1888
1889 int
1890 main ()
1891 {
1892 return $2 ();
1893   ;
1894   return 0;
1895 }
1896 _ACEOF
1897 if ac_fn_c_try_link "$LINENO"; then :
1898   eval "$3=yes"
1899 else
1900   eval "$3=no"
1901 fi
1902 rm -f core conftest.err conftest.$ac_objext \
1903     conftest$ac_exeext conftest.$ac_ext
1904 fi
1905 eval ac_res=\$$3
1906                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907 $as_echo "$ac_res" >&6; }
1908   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1909
1910 } # ac_fn_c_check_func
1911
1912 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1913 # -------------------------------------------------------
1914 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1915 # the include files in INCLUDES and setting the cache variable VAR
1916 # accordingly.
1917 ac_fn_c_check_header_mongrel ()
1918 {
1919   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922 $as_echo_n "checking for $2... " >&6; }
1923 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1924   $as_echo_n "(cached) " >&6
1925 fi
1926 eval ac_res=\$$3
1927                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1929 else
1930   # Is the header compilable?
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1932 $as_echo_n "checking $2 usability... " >&6; }
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h.  */
1935 $4
1936 #include <$2>
1937 _ACEOF
1938 if ac_fn_c_try_compile "$LINENO"; then :
1939   ac_header_compiler=yes
1940 else
1941   ac_header_compiler=no
1942 fi
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1945 $as_echo "$ac_header_compiler" >&6; }
1946
1947 # Is the header present?
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1949 $as_echo_n "checking $2 presence... " >&6; }
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h.  */
1952 #include <$2>
1953 _ACEOF
1954 if ac_fn_c_try_cpp "$LINENO"; then :
1955   ac_header_preproc=yes
1956 else
1957   ac_header_preproc=no
1958 fi
1959 rm -f conftest.err conftest.$ac_ext
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1961 $as_echo "$ac_header_preproc" >&6; }
1962
1963 # So?  What about this header?
1964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1965   yes:no: )
1966     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1967 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1968     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1969 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1970     ;;
1971   no:yes:* )
1972     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1973 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1974     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1975 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1976     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1977 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1978     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1979 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1980     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1981 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1982     ;;
1983 esac
1984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1987   $as_echo_n "(cached) " >&6
1988 else
1989   eval "$3=\$ac_header_compiler"
1990 fi
1991 eval ac_res=\$$3
1992                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1994 fi
1995   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1996
1997 } # ac_fn_c_check_header_mongrel
1998
1999 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2000 # --------------------------------------------
2001 # Tries to find the compile-time value of EXPR in a program that includes
2002 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2003 # computed
2004 ac_fn_c_compute_int ()
2005 {
2006   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007   if test "$cross_compiling" = yes; then
2008     # Depending upon the size, compute the lo and hi bounds.
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h.  */
2011 $4
2012 int
2013 main ()
2014 {
2015 static int test_array [1 - 2 * !(($2) >= 0)];
2016 test_array [0] = 0
2017
2018   ;
2019   return 0;
2020 }
2021 _ACEOF
2022 if ac_fn_c_try_compile "$LINENO"; then :
2023   ac_lo=0 ac_mid=0
2024   while :; do
2025     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h.  */
2027 $4
2028 int
2029 main ()
2030 {
2031 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2032 test_array [0] = 0
2033
2034   ;
2035   return 0;
2036 }
2037 _ACEOF
2038 if ac_fn_c_try_compile "$LINENO"; then :
2039   ac_hi=$ac_mid; break
2040 else
2041   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2042                         if test $ac_lo -le $ac_mid; then
2043                           ac_lo= ac_hi=
2044                           break
2045                         fi
2046                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2047 fi
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049   done
2050 else
2051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h.  */
2053 $4
2054 int
2055 main ()
2056 {
2057 static int test_array [1 - 2 * !(($2) < 0)];
2058 test_array [0] = 0
2059
2060   ;
2061   return 0;
2062 }
2063 _ACEOF
2064 if ac_fn_c_try_compile "$LINENO"; then :
2065   ac_hi=-1 ac_mid=-1
2066   while :; do
2067     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h.  */
2069 $4
2070 int
2071 main ()
2072 {
2073 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2074 test_array [0] = 0
2075
2076   ;
2077   return 0;
2078 }
2079 _ACEOF
2080 if ac_fn_c_try_compile "$LINENO"; then :
2081   ac_lo=$ac_mid; break
2082 else
2083   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2084                         if test $ac_mid -le $ac_hi; then
2085                           ac_lo= ac_hi=
2086                           break
2087                         fi
2088                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2089 fi
2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091   done
2092 else
2093   ac_lo= ac_hi=
2094 fi
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 fi
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 # Binary search between lo and hi bounds.
2099 while test "x$ac_lo" != "x$ac_hi"; do
2100   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h.  */
2103 $4
2104 int
2105 main ()
2106 {
2107 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2108 test_array [0] = 0
2109
2110   ;
2111   return 0;
2112 }
2113 _ACEOF
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115   ac_hi=$ac_mid
2116 else
2117   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2118 fi
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 done
2121 case $ac_lo in #((
2122 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2123 '') ac_retval=1 ;;
2124 esac
2125   else
2126     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h.  */
2128 $4
2129 static long int longval () { return $2; }
2130 static unsigned long int ulongval () { return $2; }
2131 #include <stdio.h>
2132 #include <stdlib.h>
2133 int
2134 main ()
2135 {
2136
2137   FILE *f = fopen ("conftest.val", "w");
2138   if (! f)
2139     return 1;
2140   if (($2) < 0)
2141     {
2142       long int i = longval ();
2143       if (i != ($2))
2144         return 1;
2145       fprintf (f, "%ld", i);
2146     }
2147   else
2148     {
2149       unsigned long int i = ulongval ();
2150       if (i != ($2))
2151         return 1;
2152       fprintf (f, "%lu", i);
2153     }
2154   /* Do not output a trailing newline, as this causes \r\n confusion
2155      on some platforms.  */
2156   return ferror (f) || fclose (f) != 0;
2157
2158   ;
2159   return 0;
2160 }
2161 _ACEOF
2162 if ac_fn_c_try_run "$LINENO"; then :
2163   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2164 else
2165   ac_retval=1
2166 fi
2167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2168   conftest.$ac_objext conftest.beam conftest.$ac_ext
2169 rm -f conftest.val
2170
2171   fi
2172   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2173   as_fn_set_status $ac_retval
2174
2175 } # ac_fn_c_compute_int
2176
2177 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2178 # ----------------------------------------------------
2179 # Tries to find if the field MEMBER exists in type AGGR, after including
2180 # INCLUDES, setting cache variable VAR accordingly.
2181 ac_fn_c_check_member ()
2182 {
2183   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2185 $as_echo_n "checking for $2.$3... " >&6; }
2186 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2187   $as_echo_n "(cached) " >&6
2188 else
2189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h.  */
2191 $5
2192 int
2193 main ()
2194 {
2195 static $2 ac_aggr;
2196 if (ac_aggr.$3)
2197 return 0;
2198   ;
2199   return 0;
2200 }
2201 _ACEOF
2202 if ac_fn_c_try_compile "$LINENO"; then :
2203   eval "$4=yes"
2204 else
2205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h.  */
2207 $5
2208 int
2209 main ()
2210 {
2211 static $2 ac_aggr;
2212 if (sizeof ac_aggr.$3)
2213 return 0;
2214   ;
2215   return 0;
2216 }
2217 _ACEOF
2218 if ac_fn_c_try_compile "$LINENO"; then :
2219   eval "$4=yes"
2220 else
2221   eval "$4=no"
2222 fi
2223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2224 fi
2225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226 fi
2227 eval ac_res=\$$4
2228                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2229 $as_echo "$ac_res" >&6; }
2230   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2231
2232 } # ac_fn_c_check_member
2233
2234 # ac_fn_c_check_decl LINENO SYMBOL VAR
2235 # ------------------------------------
2236 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2237 ac_fn_c_check_decl ()
2238 {
2239   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2241 $as_echo_n "checking whether $2 is declared... " >&6; }
2242 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2243   $as_echo_n "(cached) " >&6
2244 else
2245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h.  */
2247 $4
2248 int
2249 main ()
2250 {
2251 #ifndef $2
2252   (void) $2;
2253 #endif
2254
2255   ;
2256   return 0;
2257 }
2258 _ACEOF
2259 if ac_fn_c_try_compile "$LINENO"; then :
2260   eval "$3=yes"
2261 else
2262   eval "$3=no"
2263 fi
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 fi
2266 eval ac_res=\$$3
2267                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2268 $as_echo "$ac_res" >&6; }
2269   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2270
2271 } # ac_fn_c_check_decl
2272 cat >config.log <<_ACEOF
2273 This file contains any messages produced by compilers while
2274 running configure, to aid debugging if configure makes a mistake.
2275
2276 It was created by $as_me, which was
2277 generated by GNU Autoconf 2.65.  Invocation command line was
2278
2279   $ $0 $@
2280
2281 _ACEOF
2282 exec 5>>config.log
2283 {
2284 cat <<_ASUNAME
2285 ## --------- ##
2286 ## Platform. ##
2287 ## --------- ##
2288
2289 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2290 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2291 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2292 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2293 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2294
2295 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2296 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2297
2298 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2299 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2300 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2301 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2302 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2303 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2304 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2305
2306 _ASUNAME
2307
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 for as_dir in $PATH
2310 do
2311   IFS=$as_save_IFS
2312   test -z "$as_dir" && as_dir=.
2313     $as_echo "PATH: $as_dir"
2314   done
2315 IFS=$as_save_IFS
2316
2317 } >&5
2318
2319 cat >&5 <<_ACEOF
2320
2321
2322 ## ----------- ##
2323 ## Core tests. ##
2324 ## ----------- ##
2325
2326 _ACEOF
2327
2328
2329 # Keep a trace of the command line.
2330 # Strip out --no-create and --no-recursion so they do not pile up.
2331 # Strip out --silent because we don't want to record it for future runs.
2332 # Also quote any args containing shell meta-characters.
2333 # Make two passes to allow for proper duplicate-argument suppression.
2334 ac_configure_args=
2335 ac_configure_args0=
2336 ac_configure_args1=
2337 ac_must_keep_next=false
2338 for ac_pass in 1 2
2339 do
2340   for ac_arg
2341   do
2342     case $ac_arg in
2343     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2344     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2345     | -silent | --silent | --silen | --sile | --sil)
2346       continue ;;
2347     *\'*)
2348       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2349     esac
2350     case $ac_pass in
2351     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2352     2)
2353       as_fn_append ac_configure_args1 " '$ac_arg'"
2354       if test $ac_must_keep_next = true; then
2355         ac_must_keep_next=false # Got value, back to normal.
2356       else
2357         case $ac_arg in
2358           *=* | --config-cache | -C | -disable-* | --disable-* \
2359           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2360           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2361           | -with-* | --with-* | -without-* | --without-* | --x)
2362             case "$ac_configure_args0 " in
2363               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2364             esac
2365             ;;
2366           -* ) ac_must_keep_next=true ;;
2367         esac
2368       fi
2369       as_fn_append ac_configure_args " '$ac_arg'"
2370       ;;
2371     esac
2372   done
2373 done
2374 { ac_configure_args0=; unset ac_configure_args0;}
2375 { ac_configure_args1=; unset ac_configure_args1;}
2376
2377 # When interrupted or exit'd, cleanup temporary files, and complete
2378 # config.log.  We remove comments because anyway the quotes in there
2379 # would cause problems or look ugly.
2380 # WARNING: Use '\'' to represent an apostrophe within the trap.
2381 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2382 trap 'exit_status=$?
2383   # Save into config.log some information that might help in debugging.
2384   {
2385     echo
2386
2387     cat <<\_ASBOX
2388 ## ---------------- ##
2389 ## Cache variables. ##
2390 ## ---------------- ##
2391 _ASBOX
2392     echo
2393     # The following way of writing the cache mishandles newlines in values,
2394 (
2395   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2396     eval ac_val=\$$ac_var
2397     case $ac_val in #(
2398     *${as_nl}*)
2399       case $ac_var in #(
2400       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2401 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2402       esac
2403       case $ac_var in #(
2404       _ | IFS | as_nl) ;; #(
2405       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2406       *) { eval $ac_var=; unset $ac_var;} ;;
2407       esac ;;
2408     esac
2409   done
2410   (set) 2>&1 |
2411     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2412     *${as_nl}ac_space=\ *)
2413       sed -n \
2414         "s/'\''/'\''\\\\'\'''\''/g;
2415           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2416       ;; #(
2417     *)
2418       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2419       ;;
2420     esac |
2421     sort
2422 )
2423     echo
2424
2425     cat <<\_ASBOX
2426 ## ----------------- ##
2427 ## Output variables. ##
2428 ## ----------------- ##
2429 _ASBOX
2430     echo
2431     for ac_var in $ac_subst_vars
2432     do
2433       eval ac_val=\$$ac_var
2434       case $ac_val in
2435       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2436       esac
2437       $as_echo "$ac_var='\''$ac_val'\''"
2438     done | sort
2439     echo
2440
2441     if test -n "$ac_subst_files"; then
2442       cat <<\_ASBOX
2443 ## ------------------- ##
2444 ## File substitutions. ##
2445 ## ------------------- ##
2446 _ASBOX
2447       echo
2448       for ac_var in $ac_subst_files
2449       do
2450         eval ac_val=\$$ac_var
2451         case $ac_val in
2452         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2453         esac
2454         $as_echo "$ac_var='\''$ac_val'\''"
2455       done | sort
2456       echo
2457     fi
2458
2459     if test -s confdefs.h; then
2460       cat <<\_ASBOX
2461 ## ----------- ##
2462 ## confdefs.h. ##
2463 ## ----------- ##
2464 _ASBOX
2465       echo
2466       cat confdefs.h
2467       echo
2468     fi
2469     test "$ac_signal" != 0 &&
2470       $as_echo "$as_me: caught signal $ac_signal"
2471     $as_echo "$as_me: exit $exit_status"
2472   } >&5
2473   rm -f core *.core core.conftest.* &&
2474     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2475     exit $exit_status
2476 ' 0
2477 for ac_signal in 1 2 13 15; do
2478   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2479 done
2480 ac_signal=0
2481
2482 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2483 rm -f -r conftest* confdefs.h
2484
2485 $as_echo "/* confdefs.h */" > confdefs.h
2486
2487 # Predefined preprocessor variables.
2488
2489 cat >>confdefs.h <<_ACEOF
2490 #define PACKAGE_NAME "$PACKAGE_NAME"
2491 _ACEOF
2492
2493 cat >>confdefs.h <<_ACEOF
2494 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2495 _ACEOF
2496
2497 cat >>confdefs.h <<_ACEOF
2498 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2499 _ACEOF
2500
2501 cat >>confdefs.h <<_ACEOF
2502 #define PACKAGE_STRING "$PACKAGE_STRING"
2503 _ACEOF
2504
2505 cat >>confdefs.h <<_ACEOF
2506 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2507 _ACEOF
2508
2509 cat >>confdefs.h <<_ACEOF
2510 #define PACKAGE_URL "$PACKAGE_URL"
2511 _ACEOF
2512
2513
2514 # Let the site file select an alternate cache file if it wants to.
2515 # Prefer an explicitly selected file to automatically selected ones.
2516 ac_site_file1=NONE
2517 ac_site_file2=NONE
2518 if test -n "$CONFIG_SITE"; then
2519   ac_site_file1=$CONFIG_SITE
2520 elif test "x$prefix" != xNONE; then
2521   ac_site_file1=$prefix/share/config.site
2522   ac_site_file2=$prefix/etc/config.site
2523 else
2524   ac_site_file1=$ac_default_prefix/share/config.site
2525   ac_site_file2=$ac_default_prefix/etc/config.site
2526 fi
2527 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2528 do
2529   test "x$ac_site_file" = xNONE && continue
2530   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2531     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2532 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2533     sed 's/^/| /' "$ac_site_file" >&5
2534     . "$ac_site_file"
2535   fi
2536 done
2537
2538 if test -r "$cache_file"; then
2539   # Some versions of bash will fail to source /dev/null (special files
2540   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2541   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2542     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2543 $as_echo "$as_me: loading cache $cache_file" >&6;}
2544     case $cache_file in
2545       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2546       *)                      . "./$cache_file";;
2547     esac
2548   fi
2549 else
2550   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2551 $as_echo "$as_me: creating cache $cache_file" >&6;}
2552   >$cache_file
2553 fi
2554
2555 as_fn_append ac_header_list " stdlib.h"
2556 as_fn_append ac_header_list " unistd.h"
2557 as_fn_append ac_header_list " sys/param.h"
2558 # Check that the precious variables saved in the cache have kept the same
2559 # value.
2560 ac_cache_corrupted=false
2561 for ac_var in $ac_precious_vars; do
2562   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2563   eval ac_new_set=\$ac_env_${ac_var}_set
2564   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2565   eval ac_new_val=\$ac_env_${ac_var}_value
2566   case $ac_old_set,$ac_new_set in
2567     set,)
2568       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2569 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2570       ac_cache_corrupted=: ;;
2571     ,set)
2572       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2573 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2574       ac_cache_corrupted=: ;;
2575     ,);;
2576     *)
2577       if test "x$ac_old_val" != "x$ac_new_val"; then
2578         # differences in whitespace do not lead to failure.
2579         ac_old_val_w=`echo x $ac_old_val`
2580         ac_new_val_w=`echo x $ac_new_val`
2581         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2582           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2583 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2584           ac_cache_corrupted=:
2585         else
2586           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2587 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2588           eval $ac_var=\$ac_old_val
2589         fi
2590         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2591 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2592         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2593 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2594       fi;;
2595   esac
2596   # Pass precious variables to config.status.
2597   if test "$ac_new_set" = set; then
2598     case $ac_new_val in
2599     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2600     *) ac_arg=$ac_var=$ac_new_val ;;
2601     esac
2602     case " $ac_configure_args " in
2603       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2604       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2605     esac
2606   fi
2607 done
2608 if $ac_cache_corrupted; then
2609   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2611   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2612 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2613   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2614 fi
2615 ## -------------------- ##
2616 ## Main body of script. ##
2617 ## -------------------- ##
2618
2619 ac_ext=c
2620 ac_cpp='$CPP $CPPFLAGS'
2621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2624
2625
2626
2627 ac_aux_dir=
2628 for ac_dir in config "$srcdir"/config; do
2629   for ac_t in install-sh install.sh shtool; do
2630     if test -f "$ac_dir/$ac_t"; then
2631       ac_aux_dir=$ac_dir
2632       ac_install_sh="$ac_aux_dir/$ac_t -c"
2633       break 2
2634     fi
2635   done
2636 done
2637 if test -z "$ac_aux_dir"; then
2638   as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2639 fi
2640
2641 # These three variables are undocumented and unsupported,
2642 # and are intended to be withdrawn in a future Autoconf release.
2643 # They can cause serious problems if a builder's source tree is in a directory
2644 # whose full name contains unusual characters.
2645 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2646 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2647 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2648
2649
2650 ac_config_headers="$ac_config_headers lib/config.h"
2651
2652
2653 MCONFIG=./MCONFIG
2654
2655 BINARY_TYPE=bin
2656 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2657         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2658 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2659         | tr \" " "`
2660 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2661 MONTH=`echo $DATE | awk -F- '{print $2}'`
2662 YEAR=`echo $DATE | awk -F- '{print $3}'`
2663
2664 if expr $YEAR ">" 1900 > /dev/null ; then
2665         E2FSPROGS_YEAR=$YEAR
2666 elif expr $YEAR ">" 90 >/dev/null ; then
2667         E2FSPROGS_YEAR=19$YEAR
2668 else
2669         E2FSPROGS_YEAR=20$YEAR
2670 fi
2671
2672 case $MONTH in
2673 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2674 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2675 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2676 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2677 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2678 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2679 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2680 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2681 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2682 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2683 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2684 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2685 *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2686 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2687 esac
2688
2689 base_ver=`echo $E2FSPROGS_VERSION | \
2690                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2691
2692 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2693
2694 case $E2FSPROGS_VERSION in
2695 *-WIP|pre-*)
2696         E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2697         ;;
2698 *)
2699         E2FSPROGS_PKGVER="$base_ver"
2700         ;;
2701 esac
2702
2703 unset DATE MONTH YEAR base_ver pre_vers date_spec
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2705 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2707 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2708
2709
2710
2711
2712
2713 # Make sure we can run config.sub.
2714 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2715   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2716
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2718 $as_echo_n "checking build system type... " >&6; }
2719 if test "${ac_cv_build+set}" = set; then :
2720   $as_echo_n "(cached) " >&6
2721 else
2722   ac_build_alias=$build_alias
2723 test "x$ac_build_alias" = x &&
2724   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2725 test "x$ac_build_alias" = x &&
2726   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2727 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2728   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2729
2730 fi
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2732 $as_echo "$ac_cv_build" >&6; }
2733 case $ac_cv_build in
2734 *-*-*) ;;
2735 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2736 esac
2737 build=$ac_cv_build
2738 ac_save_IFS=$IFS; IFS='-'
2739 set x $ac_cv_build
2740 shift
2741 build_cpu=$1
2742 build_vendor=$2
2743 shift; shift
2744 # Remember, the first character of IFS is used to create $*,
2745 # except with old shells:
2746 build_os=$*
2747 IFS=$ac_save_IFS
2748 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2749
2750
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2752 $as_echo_n "checking host system type... " >&6; }
2753 if test "${ac_cv_host+set}" = set; then :
2754   $as_echo_n "(cached) " >&6
2755 else
2756   if test "x$host_alias" = x; then
2757   ac_cv_host=$ac_cv_build
2758 else
2759   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2760     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2761 fi
2762
2763 fi
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2765 $as_echo "$ac_cv_host" >&6; }
2766 case $ac_cv_host in
2767 *-*-*) ;;
2768 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2769 esac
2770 host=$ac_cv_host
2771 ac_save_IFS=$IFS; IFS='-'
2772 set x $ac_cv_host
2773 shift
2774 host_cpu=$1
2775 host_vendor=$2
2776 shift; shift
2777 # Remember, the first character of IFS is used to create $*,
2778 # except with old shells:
2779 host_os=$*
2780 IFS=$ac_save_IFS
2781 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2782
2783
2784 DLOPEN_LIB=''
2785 ac_ext=c
2786 ac_cpp='$CPP $CPPFLAGS'
2787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2790 if test -n "$ac_tool_prefix"; then
2791   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2792 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794 $as_echo_n "checking for $ac_word... " >&6; }
2795 if test "${ac_cv_prog_CC+set}" = set; then :
2796   $as_echo_n "(cached) " >&6
2797 else
2798   if test -n "$CC"; then
2799   ac_cv_prog_CC="$CC" # Let the user override the test.
2800 else
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2803 do
2804   IFS=$as_save_IFS
2805   test -z "$as_dir" && as_dir=.
2806     for ac_exec_ext in '' $ac_executable_extensions; do
2807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810     break 2
2811   fi
2812 done
2813   done
2814 IFS=$as_save_IFS
2815
2816 fi
2817 fi
2818 CC=$ac_cv_prog_CC
2819 if test -n "$CC"; then
2820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2821 $as_echo "$CC" >&6; }
2822 else
2823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824 $as_echo "no" >&6; }
2825 fi
2826
2827
2828 fi
2829 if test -z "$ac_cv_prog_CC"; then
2830   ac_ct_CC=$CC
2831   # Extract the first word of "gcc", so it can be a program name with args.
2832 set dummy gcc; ac_word=$2
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834 $as_echo_n "checking for $ac_word... " >&6; }
2835 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2836   $as_echo_n "(cached) " >&6
2837 else
2838   if test -n "$ac_ct_CC"; then
2839   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2840 else
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2843 do
2844   IFS=$as_save_IFS
2845   test -z "$as_dir" && as_dir=.
2846     for ac_exec_ext in '' $ac_executable_extensions; do
2847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2848     ac_cv_prog_ac_ct_CC="gcc"
2849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850     break 2
2851   fi
2852 done
2853   done
2854 IFS=$as_save_IFS
2855
2856 fi
2857 fi
2858 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2859 if test -n "$ac_ct_CC"; then
2860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2861 $as_echo "$ac_ct_CC" >&6; }
2862 else
2863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864 $as_echo "no" >&6; }
2865 fi
2866
2867   if test "x$ac_ct_CC" = x; then
2868     CC=""
2869   else
2870     case $cross_compiling:$ac_tool_warned in
2871 yes:)
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2874 ac_tool_warned=yes ;;
2875 esac
2876     CC=$ac_ct_CC
2877   fi
2878 else
2879   CC="$ac_cv_prog_CC"
2880 fi
2881
2882 if test -z "$CC"; then
2883           if test -n "$ac_tool_prefix"; then
2884     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2885 set dummy ${ac_tool_prefix}cc; ac_word=$2
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887 $as_echo_n "checking for $ac_word... " >&6; }
2888 if test "${ac_cv_prog_CC+set}" = set; then :
2889   $as_echo_n "(cached) " >&6
2890 else
2891   if test -n "$CC"; then
2892   ac_cv_prog_CC="$CC" # Let the user override the test.
2893 else
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2896 do
2897   IFS=$as_save_IFS
2898   test -z "$as_dir" && as_dir=.
2899     for ac_exec_ext in '' $ac_executable_extensions; do
2900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2901     ac_cv_prog_CC="${ac_tool_prefix}cc"
2902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903     break 2
2904   fi
2905 done
2906   done
2907 IFS=$as_save_IFS
2908
2909 fi
2910 fi
2911 CC=$ac_cv_prog_CC
2912 if test -n "$CC"; then
2913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2914 $as_echo "$CC" >&6; }
2915 else
2916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917 $as_echo "no" >&6; }
2918 fi
2919
2920
2921   fi
2922 fi
2923 if test -z "$CC"; then
2924   # Extract the first word of "cc", so it can be a program name with args.
2925 set dummy cc; ac_word=$2
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927 $as_echo_n "checking for $ac_word... " >&6; }
2928 if test "${ac_cv_prog_CC+set}" = set; then :
2929   $as_echo_n "(cached) " >&6
2930 else
2931   if test -n "$CC"; then
2932   ac_cv_prog_CC="$CC" # Let the user override the test.
2933 else
2934   ac_prog_rejected=no
2935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 for as_dir in $PATH
2937 do
2938   IFS=$as_save_IFS
2939   test -z "$as_dir" && as_dir=.
2940     for ac_exec_ext in '' $ac_executable_extensions; do
2941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2942     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2943        ac_prog_rejected=yes
2944        continue
2945      fi
2946     ac_cv_prog_CC="cc"
2947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948     break 2
2949   fi
2950 done
2951   done
2952 IFS=$as_save_IFS
2953
2954 if test $ac_prog_rejected = yes; then
2955   # We found a bogon in the path, so make sure we never use it.
2956   set dummy $ac_cv_prog_CC
2957   shift
2958   if test $# != 0; then
2959     # We chose a different compiler from the bogus one.
2960     # However, it has the same basename, so the bogon will be chosen
2961     # first if we set CC to just the basename; use the full file name.
2962     shift
2963     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2964   fi
2965 fi
2966 fi
2967 fi
2968 CC=$ac_cv_prog_CC
2969 if test -n "$CC"; then
2970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2971 $as_echo "$CC" >&6; }
2972 else
2973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974 $as_echo "no" >&6; }
2975 fi
2976
2977
2978 fi
2979 if test -z "$CC"; then
2980   if test -n "$ac_tool_prefix"; then
2981   for ac_prog in cl.exe
2982   do
2983     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2984 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2986 $as_echo_n "checking for $ac_word... " >&6; }
2987 if test "${ac_cv_prog_CC+set}" = set; then :
2988   $as_echo_n "(cached) " >&6
2989 else
2990   if test -n "$CC"; then
2991   ac_cv_prog_CC="$CC" # Let the user override the test.
2992 else
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 for as_dir in $PATH
2995 do
2996   IFS=$as_save_IFS
2997   test -z "$as_dir" && as_dir=.
2998     for ac_exec_ext in '' $ac_executable_extensions; do
2999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3000     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002     break 2
3003   fi
3004 done
3005   done
3006 IFS=$as_save_IFS
3007
3008 fi
3009 fi
3010 CC=$ac_cv_prog_CC
3011 if test -n "$CC"; then
3012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3013 $as_echo "$CC" >&6; }
3014 else
3015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 $as_echo "no" >&6; }
3017 fi
3018
3019
3020     test -n "$CC" && break
3021   done
3022 fi
3023 if test -z "$CC"; then
3024   ac_ct_CC=$CC
3025   for ac_prog in cl.exe
3026 do
3027   # Extract the first word of "$ac_prog", so it can be a program name with args.
3028 set dummy $ac_prog; ac_word=$2
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030 $as_echo_n "checking for $ac_word... " >&6; }
3031 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3032   $as_echo_n "(cached) " >&6
3033 else
3034   if test -n "$ac_ct_CC"; then
3035   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3036 else
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 for as_dir in $PATH
3039 do
3040   IFS=$as_save_IFS
3041   test -z "$as_dir" && as_dir=.
3042     for ac_exec_ext in '' $ac_executable_extensions; do
3043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3044     ac_cv_prog_ac_ct_CC="$ac_prog"
3045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046     break 2
3047   fi
3048 done
3049   done
3050 IFS=$as_save_IFS
3051
3052 fi
3053 fi
3054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3055 if test -n "$ac_ct_CC"; then
3056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3057 $as_echo "$ac_ct_CC" >&6; }
3058 else
3059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060 $as_echo "no" >&6; }
3061 fi
3062
3063
3064   test -n "$ac_ct_CC" && break
3065 done
3066
3067   if test "x$ac_ct_CC" = x; then
3068     CC=""
3069   else
3070     case $cross_compiling:$ac_tool_warned in
3071 yes:)
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3074 ac_tool_warned=yes ;;
3075 esac
3076     CC=$ac_ct_CC
3077   fi
3078 fi
3079
3080 fi
3081
3082
3083 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3085 as_fn_error "no acceptable C compiler found in \$PATH
3086 See \`config.log' for more details." "$LINENO" 5; }
3087
3088 # Provide some information about the compiler.
3089 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3090 set X $ac_compile
3091 ac_compiler=$2
3092 for ac_option in --version -v -V -qversion; do
3093   { { ac_try="$ac_compiler $ac_option >&5"
3094 case "(($ac_try" in
3095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096   *) ac_try_echo=$ac_try;;
3097 esac
3098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3099 $as_echo "$ac_try_echo"; } >&5
3100   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3101   ac_status=$?
3102   if test -s conftest.err; then
3103     sed '10a\
3104 ... rest of stderr output deleted ...
3105          10q' conftest.err >conftest.er1
3106     cat conftest.er1 >&5
3107   fi
3108   rm -f conftest.er1 conftest.err
3109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3110   test $ac_status = 0; }
3111 done
3112
3113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3114 /* end confdefs.h.  */
3115
3116 int
3117 main ()
3118 {
3119
3120   ;
3121   return 0;
3122 }
3123 _ACEOF
3124 ac_clean_files_save=$ac_clean_files
3125 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3126 # Try to create an executable without -o first, disregard a.out.
3127 # It will help us diagnose broken compilers, and finding out an intuition
3128 # of exeext.
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3130 $as_echo_n "checking whether the C compiler works... " >&6; }
3131 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3132
3133 # The possible output files:
3134 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3135
3136 ac_rmfiles=
3137 for ac_file in $ac_files
3138 do
3139   case $ac_file in
3140     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3141     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3142   esac
3143 done
3144 rm -f $ac_rmfiles
3145
3146 if { { ac_try="$ac_link_default"
3147 case "(($ac_try" in
3148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149   *) ac_try_echo=$ac_try;;
3150 esac
3151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3152 $as_echo "$ac_try_echo"; } >&5
3153   (eval "$ac_link_default") 2>&5
3154   ac_status=$?
3155   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3156   test $ac_status = 0; }; then :
3157   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3158 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3159 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3160 # so that the user can short-circuit this test for compilers unknown to
3161 # Autoconf.
3162 for ac_file in $ac_files ''
3163 do
3164   test -f "$ac_file" || continue
3165   case $ac_file in
3166     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3167         ;;
3168     [ab].out )
3169         # We found the default executable, but exeext='' is most
3170         # certainly right.
3171         break;;
3172     *.* )
3173         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3174         then :; else
3175            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3176         fi
3177         # We set ac_cv_exeext here because the later test for it is not
3178         # safe: cross compilers may not add the suffix if given an `-o'
3179         # argument, so we may need to know it at that point already.
3180         # Even if this section looks crufty: it has the advantage of
3181         # actually working.
3182         break;;
3183     * )
3184         break;;
3185   esac
3186 done
3187 test "$ac_cv_exeext" = no && ac_cv_exeext=
3188
3189 else
3190   ac_file=''
3191 fi
3192 if test -z "$ac_file"; then :
3193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194 $as_echo "no" >&6; }
3195 $as_echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3197
3198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3200 { as_fn_set_status 77
3201 as_fn_error "C compiler cannot create executables
3202 See \`config.log' for more details." "$LINENO" 5; }; }
3203 else
3204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3205 $as_echo "yes" >&6; }
3206 fi
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3208 $as_echo_n "checking for C compiler default output file name... " >&6; }
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3210 $as_echo "$ac_file" >&6; }
3211 ac_exeext=$ac_cv_exeext
3212
3213 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3214 ac_clean_files=$ac_clean_files_save
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3216 $as_echo_n "checking for suffix of executables... " >&6; }
3217 if { { ac_try="$ac_link"
3218 case "(($ac_try" in
3219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220   *) ac_try_echo=$ac_try;;
3221 esac
3222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3223 $as_echo "$ac_try_echo"; } >&5
3224   (eval "$ac_link") 2>&5
3225   ac_status=$?
3226   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3227   test $ac_status = 0; }; then :
3228   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3229 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3230 # work properly (i.e., refer to `conftest.exe'), while it won't with
3231 # `rm'.
3232 for ac_file in conftest.exe conftest conftest.*; do
3233   test -f "$ac_file" || continue
3234   case $ac_file in
3235     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3236     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3237           break;;
3238     * ) break;;
3239   esac
3240 done
3241 else
3242   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3244 as_fn_error "cannot compute suffix of executables: cannot compile and link
3245 See \`config.log' for more details." "$LINENO" 5; }
3246 fi
3247 rm -f conftest conftest$ac_cv_exeext
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3249 $as_echo "$ac_cv_exeext" >&6; }
3250
3251 rm -f conftest.$ac_ext
3252 EXEEXT=$ac_cv_exeext
3253 ac_exeext=$EXEEXT
3254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3255 /* end confdefs.h.  */
3256 #include <stdio.h>
3257 int
3258 main ()
3259 {
3260 FILE *f = fopen ("conftest.out", "w");
3261  return ferror (f) || fclose (f) != 0;
3262
3263   ;
3264   return 0;
3265 }
3266 _ACEOF
3267 ac_clean_files="$ac_clean_files conftest.out"
3268 # Check that the compiler produces executables we can run.  If not, either
3269 # the compiler is broken, or we cross compile.
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3271 $as_echo_n "checking whether we are cross compiling... " >&6; }
3272 if test "$cross_compiling" != yes; then
3273   { { ac_try="$ac_link"
3274 case "(($ac_try" in
3275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276   *) ac_try_echo=$ac_try;;
3277 esac
3278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3279 $as_echo "$ac_try_echo"; } >&5
3280   (eval "$ac_link") 2>&5
3281   ac_status=$?
3282   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3283   test $ac_status = 0; }
3284   if { ac_try='./conftest$ac_cv_exeext'
3285   { { case "(($ac_try" in
3286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287   *) ac_try_echo=$ac_try;;
3288 esac
3289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290 $as_echo "$ac_try_echo"; } >&5
3291   (eval "$ac_try") 2>&5
3292   ac_status=$?
3293   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294   test $ac_status = 0; }; }; then
3295     cross_compiling=no
3296   else
3297     if test "$cross_compiling" = maybe; then
3298         cross_compiling=yes
3299     else
3300         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3302 as_fn_error "cannot run C compiled programs.
3303 If you meant to cross compile, use \`--host'.
3304 See \`config.log' for more details." "$LINENO" 5; }
3305     fi
3306   fi
3307 fi
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3309 $as_echo "$cross_compiling" >&6; }
3310
3311 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3312 ac_clean_files=$ac_clean_files_save
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3314 $as_echo_n "checking for suffix of object files... " >&6; }
3315 if test "${ac_cv_objext+set}" = set; then :
3316   $as_echo_n "(cached) " >&6
3317 else
3318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319 /* end confdefs.h.  */
3320
3321 int
3322 main ()
3323 {
3324
3325   ;
3326   return 0;
3327 }
3328 _ACEOF
3329 rm -f conftest.o conftest.obj
3330 if { { ac_try="$ac_compile"
3331 case "(($ac_try" in
3332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333   *) ac_try_echo=$ac_try;;
3334 esac
3335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336 $as_echo "$ac_try_echo"; } >&5
3337   (eval "$ac_compile") 2>&5
3338   ac_status=$?
3339   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340   test $ac_status = 0; }; then :
3341   for ac_file in conftest.o conftest.obj conftest.*; do
3342   test -f "$ac_file" || continue;
3343   case $ac_file in
3344     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3345     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3346        break;;
3347   esac
3348 done
3349 else
3350   $as_echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3352
3353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355 as_fn_error "cannot compute suffix of object files: cannot compile
3356 See \`config.log' for more details." "$LINENO" 5; }
3357 fi
3358 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3359 fi
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3361 $as_echo "$ac_cv_objext" >&6; }
3362 OBJEXT=$ac_cv_objext
3363 ac_objext=$OBJEXT
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3365 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3366 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3367   $as_echo_n "(cached) " >&6
3368 else
3369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h.  */
3371
3372 int
3373 main ()
3374 {
3375 #ifndef __GNUC__
3376        choke me
3377 #endif
3378
3379   ;
3380   return 0;
3381 }
3382 _ACEOF
3383 if ac_fn_c_try_compile "$LINENO"; then :
3384   ac_compiler_gnu=yes
3385 else
3386   ac_compiler_gnu=no
3387 fi
3388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3390
3391 fi
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3393 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3394 if test $ac_compiler_gnu = yes; then
3395   GCC=yes
3396 else
3397   GCC=
3398 fi
3399 ac_test_CFLAGS=${CFLAGS+set}
3400 ac_save_CFLAGS=$CFLAGS
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3402 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3403 if test "${ac_cv_prog_cc_g+set}" = set; then :
3404   $as_echo_n "(cached) " >&6
3405 else
3406   ac_save_c_werror_flag=$ac_c_werror_flag
3407    ac_c_werror_flag=yes
3408    ac_cv_prog_cc_g=no
3409    CFLAGS="-g"
3410    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h.  */
3412
3413 int
3414 main ()
3415 {
3416
3417   ;
3418   return 0;
3419 }
3420 _ACEOF
3421 if ac_fn_c_try_compile "$LINENO"; then :
3422   ac_cv_prog_cc_g=yes
3423 else
3424   CFLAGS=""
3425       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426 /* end confdefs.h.  */
3427
3428 int
3429 main ()
3430 {
3431
3432   ;
3433   return 0;
3434 }
3435 _ACEOF
3436 if ac_fn_c_try_compile "$LINENO"; then :
3437
3438 else
3439   ac_c_werror_flag=$ac_save_c_werror_flag
3440          CFLAGS="-g"
3441          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442 /* end confdefs.h.  */
3443
3444 int
3445 main ()
3446 {
3447
3448   ;
3449   return 0;
3450 }
3451 _ACEOF
3452 if ac_fn_c_try_compile "$LINENO"; then :
3453   ac_cv_prog_cc_g=yes
3454 fi
3455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3456 fi
3457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3458 fi
3459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3460    ac_c_werror_flag=$ac_save_c_werror_flag
3461 fi
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3463 $as_echo "$ac_cv_prog_cc_g" >&6; }
3464 if test "$ac_test_CFLAGS" = set; then
3465   CFLAGS=$ac_save_CFLAGS
3466 elif test $ac_cv_prog_cc_g = yes; then
3467   if test "$GCC" = yes; then
3468     CFLAGS="-g -O2"
3469   else
3470     CFLAGS="-g"
3471   fi
3472 else
3473   if test "$GCC" = yes; then
3474     CFLAGS="-O2"
3475   else
3476     CFLAGS=
3477   fi
3478 fi
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3480 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3481 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3482   $as_echo_n "(cached) " >&6
3483 else
3484   ac_cv_prog_cc_c89=no
3485 ac_save_CC=$CC
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h.  */
3488 #include <stdarg.h>
3489 #include <stdio.h>
3490 #include <sys/types.h>
3491 #include <sys/stat.h>
3492 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3493 struct buf { int x; };
3494 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3495 static char *e (p, i)
3496      char **p;
3497      int i;
3498 {
3499   return p[i];
3500 }
3501 static char *f (char * (*g) (char **, int), char **p, ...)
3502 {
3503   char *s;
3504   va_list v;
3505   va_start (v,p);
3506   s = g (p, va_arg (v,int));
3507   va_end (v);
3508   return s;
3509 }
3510
3511 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3512    function prototypes and stuff, but not '\xHH' hex character constants.
3513    These don't provoke an error unfortunately, instead are silently treated
3514    as 'x'.  The following induces an error, until -std is added to get
3515    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3516    array size at least.  It's necessary to write '\x00'==0 to get something
3517    that's true only with -std.  */
3518 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3519
3520 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3521    inside strings and character constants.  */
3522 #define FOO(x) 'x'
3523 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3524
3525 int test (int i, double x);
3526 struct s1 {int (*f) (int a);};
3527 struct s2 {int (*f) (double a);};
3528 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3529 int argc;
3530 char **argv;
3531 int
3532 main ()
3533 {
3534 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3535   ;
3536   return 0;
3537 }
3538 _ACEOF
3539 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3540         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3541 do
3542   CC="$ac_save_CC $ac_arg"
3543   if ac_fn_c_try_compile "$LINENO"; then :
3544   ac_cv_prog_cc_c89=$ac_arg
3545 fi
3546 rm -f core conftest.err conftest.$ac_objext
3547   test "x$ac_cv_prog_cc_c89" != "xno" && break
3548 done
3549 rm -f conftest.$ac_ext
3550 CC=$ac_save_CC
3551
3552 fi
3553 # AC_CACHE_VAL
3554 case "x$ac_cv_prog_cc_c89" in
3555   x)
3556     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3557 $as_echo "none needed" >&6; } ;;
3558   xno)
3559     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3560 $as_echo "unsupported" >&6; } ;;
3561   *)
3562     CC="$CC $ac_cv_prog_cc_c89"
3563     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3564 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3565 esac
3566 if test "x$ac_cv_prog_cc_c89" != xno; then :
3567
3568 fi
3569
3570 ac_ext=c
3571 ac_cpp='$CPP $CPPFLAGS'
3572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3575
3576
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3578 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3579 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
3580   $as_echo_n "(cached) " >&6
3581 else
3582   ac_check_lib_save_LIBS=$LIBS
3583 LIBS="-ldl  $LIBS"
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h.  */
3586
3587 /* Override any GCC internal prototype to avoid an error.
3588    Use char because int might match the return type of a GCC
3589    builtin and then its argument prototype would still apply.  */
3590 #ifdef __cplusplus
3591 extern "C"
3592 #endif
3593 char dlopen ();
3594 int
3595 main ()
3596 {
3597 return dlopen ();
3598   ;
3599   return 0;
3600 }
3601 _ACEOF
3602 if ac_fn_c_try_link "$LINENO"; then :
3603   ac_cv_lib_dl_dlopen=yes
3604 else
3605   ac_cv_lib_dl_dlopen=no
3606 fi
3607 rm -f core conftest.err conftest.$ac_objext \
3608     conftest$ac_exeext conftest.$ac_ext
3609 LIBS=$ac_check_lib_save_LIBS
3610 fi
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3612 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3613 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
3614   DLOPEN_LIB=-ldl
3615
3616 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3617
3618 fi
3619
3620
3621 WITH_DIET_LIBC=
3622
3623 # Check whether --with-diet-libc was given.
3624 if test "${with_diet_libc+set}" = set; then :
3625   withval=$with_diet_libc; CC="diet cc -nostdinc"
3626 WITH_DIET_LIBC=yes
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3628 $as_echo "CC=$CC" >&6; }
3629 fi
3630
3631 # Check whether --with-cc was given.
3632 if test "${with_cc+set}" = set; then :
3633   withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3634 fi
3635
3636
3637 # Check whether --with-ccopts was given.
3638 if test "${with_ccopts+set}" = set; then :
3639   withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3640 fi
3641
3642
3643 # Check whether --with-ldopts was given.
3644 if test "${with_ldopts+set}" = set; then :
3645   withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3646 fi
3647
3648 ac_ext=c
3649 ac_cpp='$CPP $CPPFLAGS'
3650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3653 if test -n "$ac_tool_prefix"; then
3654   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3655 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3657 $as_echo_n "checking for $ac_word... " >&6; }
3658 if test "${ac_cv_prog_CC+set}" = set; then :
3659   $as_echo_n "(cached) " >&6
3660 else
3661   if test -n "$CC"; then
3662   ac_cv_prog_CC="$CC" # Let the user override the test.
3663 else
3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 for as_dir in $PATH
3666 do
3667   IFS=$as_save_IFS
3668   test -z "$as_dir" && as_dir=.
3669     for ac_exec_ext in '' $ac_executable_extensions; do
3670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3671     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3673     break 2
3674   fi
3675 done
3676   done
3677 IFS=$as_save_IFS
3678
3679 fi
3680 fi
3681 CC=$ac_cv_prog_CC
3682 if test -n "$CC"; then
3683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3684 $as_echo "$CC" >&6; }
3685 else
3686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3687 $as_echo "no" >&6; }
3688 fi
3689
3690
3691 fi
3692 if test -z "$ac_cv_prog_CC"; then
3693   ac_ct_CC=$CC
3694   # Extract the first word of "gcc", so it can be a program name with args.
3695 set dummy gcc; ac_word=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3699   $as_echo_n "(cached) " >&6
3700 else
3701   if test -n "$ac_ct_CC"; then
3702   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3703 else
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 for as_dir in $PATH
3706 do
3707   IFS=$as_save_IFS
3708   test -z "$as_dir" && as_dir=.
3709     for ac_exec_ext in '' $ac_executable_extensions; do
3710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3711     ac_cv_prog_ac_ct_CC="gcc"
3712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713     break 2
3714   fi
3715 done
3716   done
3717 IFS=$as_save_IFS
3718
3719 fi
3720 fi
3721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3722 if test -n "$ac_ct_CC"; then
3723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3724 $as_echo "$ac_ct_CC" >&6; }
3725 else
3726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3728 fi
3729
3730   if test "x$ac_ct_CC" = x; then
3731     CC=""
3732   else
3733     case $cross_compiling:$ac_tool_warned in
3734 yes:)
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3737 ac_tool_warned=yes ;;
3738 esac
3739     CC=$ac_ct_CC
3740   fi
3741 else
3742   CC="$ac_cv_prog_CC"
3743 fi
3744
3745 if test -z "$CC"; then
3746           if test -n "$ac_tool_prefix"; then
3747     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3748 set dummy ${ac_tool_prefix}cc; ac_word=$2
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3750 $as_echo_n "checking for $ac_word... " >&6; }
3751 if test "${ac_cv_prog_CC+set}" = set; then :
3752   $as_echo_n "(cached) " >&6
3753 else
3754   if test -n "$CC"; then
3755   ac_cv_prog_CC="$CC" # Let the user override the test.
3756 else
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 for as_dir in $PATH
3759 do
3760   IFS=$as_save_IFS
3761   test -z "$as_dir" && as_dir=.
3762     for ac_exec_ext in '' $ac_executable_extensions; do
3763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3764     ac_cv_prog_CC="${ac_tool_prefix}cc"
3765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3766     break 2
3767   fi
3768 done
3769   done
3770 IFS=$as_save_IFS
3771
3772 fi
3773 fi
3774 CC=$ac_cv_prog_CC
3775 if test -n "$CC"; then
3776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3777 $as_echo "$CC" >&6; }
3778 else
3779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780 $as_echo "no" >&6; }
3781 fi
3782
3783
3784   fi
3785 fi
3786 if test -z "$CC"; then
3787   # Extract the first word of "cc", so it can be a program name with args.
3788 set dummy cc; ac_word=$2
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790 $as_echo_n "checking for $ac_word... " >&6; }
3791 if test "${ac_cv_prog_CC+set}" = set; then :
3792   $as_echo_n "(cached) " >&6
3793 else
3794   if test -n "$CC"; then
3795   ac_cv_prog_CC="$CC" # Let the user override the test.
3796 else
3797   ac_prog_rejected=no
3798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 for as_dir in $PATH
3800 do
3801   IFS=$as_save_IFS
3802   test -z "$as_dir" && as_dir=.
3803     for ac_exec_ext in '' $ac_executable_extensions; do
3804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3805     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3806        ac_prog_rejected=yes
3807        continue
3808      fi
3809     ac_cv_prog_CC="cc"
3810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3811     break 2
3812   fi
3813 done
3814   done
3815 IFS=$as_save_IFS
3816
3817 if test $ac_prog_rejected = yes; then
3818   # We found a bogon in the path, so make sure we never use it.
3819   set dummy $ac_cv_prog_CC
3820   shift
3821   if test $# != 0; then
3822     # We chose a different compiler from the bogus one.
3823     # However, it has the same basename, so the bogon will be chosen
3824     # first if we set CC to just the basename; use the full file name.
3825     shift
3826     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3827   fi
3828 fi
3829 fi
3830 fi
3831 CC=$ac_cv_prog_CC
3832 if test -n "$CC"; then
3833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3834 $as_echo "$CC" >&6; }
3835 else
3836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3837 $as_echo "no" >&6; }
3838 fi
3839
3840
3841 fi
3842 if test -z "$CC"; then
3843   if test -n "$ac_tool_prefix"; then
3844   for ac_prog in cl.exe
3845   do
3846     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3847 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3849 $as_echo_n "checking for $ac_word... " >&6; }
3850 if test "${ac_cv_prog_CC+set}" = set; then :
3851   $as_echo_n "(cached) " >&6
3852 else
3853   if test -n "$CC"; then
3854   ac_cv_prog_CC="$CC" # Let the user override the test.
3855 else
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 for as_dir in $PATH
3858 do
3859   IFS=$as_save_IFS
3860   test -z "$as_dir" && as_dir=.
3861     for ac_exec_ext in '' $ac_executable_extensions; do
3862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3863     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3865     break 2
3866   fi
3867 done
3868   done
3869 IFS=$as_save_IFS
3870
3871 fi
3872 fi
3873 CC=$ac_cv_prog_CC
3874 if test -n "$CC"; then
3875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3876 $as_echo "$CC" >&6; }
3877 else
3878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3879 $as_echo "no" >&6; }
3880 fi
3881
3882
3883     test -n "$CC" && break
3884   done
3885 fi
3886 if test -z "$CC"; then
3887   ac_ct_CC=$CC
3888   for ac_prog in cl.exe
3889 do
3890   # Extract the first word of "$ac_prog", so it can be a program name with args.
3891 set dummy $ac_prog; ac_word=$2
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3893 $as_echo_n "checking for $ac_word... " >&6; }
3894 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3895   $as_echo_n "(cached) " >&6
3896 else
3897   if test -n "$ac_ct_CC"; then
3898   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3899 else
3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 for as_dir in $PATH
3902 do
3903   IFS=$as_save_IFS
3904   test -z "$as_dir" && as_dir=.
3905     for ac_exec_ext in '' $ac_executable_extensions; do
3906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3907     ac_cv_prog_ac_ct_CC="$ac_prog"
3908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3909     break 2
3910   fi
3911 done
3912   done
3913 IFS=$as_save_IFS
3914
3915 fi
3916 fi
3917 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3918 if test -n "$ac_ct_CC"; then
3919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3920 $as_echo "$ac_ct_CC" >&6; }
3921 else
3922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923 $as_echo "no" >&6; }
3924 fi
3925
3926
3927   test -n "$ac_ct_CC" && break
3928 done
3929
3930   if test "x$ac_ct_CC" = x; then
3931     CC=""
3932   else
3933     case $cross_compiling:$ac_tool_warned in
3934 yes:)
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3937 ac_tool_warned=yes ;;
3938 esac
3939     CC=$ac_ct_CC
3940   fi
3941 fi
3942
3943 fi
3944
3945
3946 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3948 as_fn_error "no acceptable C compiler found in \$PATH
3949 See \`config.log' for more details." "$LINENO" 5; }
3950
3951 # Provide some information about the compiler.
3952 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3953 set X $ac_compile
3954 ac_compiler=$2
3955 for ac_option in --version -v -V -qversion; do
3956   { { ac_try="$ac_compiler $ac_option >&5"
3957 case "(($ac_try" in
3958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959   *) ac_try_echo=$ac_try;;
3960 esac
3961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3962 $as_echo "$ac_try_echo"; } >&5
3963   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3964   ac_status=$?
3965   if test -s conftest.err; then
3966     sed '10a\
3967 ... rest of stderr output deleted ...
3968          10q' conftest.err >conftest.er1
3969     cat conftest.er1 >&5
3970   fi
3971   rm -f conftest.er1 conftest.err
3972   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973   test $ac_status = 0; }
3974 done
3975
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3977 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3978 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3979   $as_echo_n "(cached) " >&6
3980 else
3981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982 /* end confdefs.h.  */
3983
3984 int
3985 main ()
3986 {
3987 #ifndef __GNUC__
3988        choke me
3989 #endif
3990
3991   ;
3992   return 0;
3993 }
3994 _ACEOF
3995 if ac_fn_c_try_compile "$LINENO"; then :
3996   ac_compiler_gnu=yes
3997 else
3998   ac_compiler_gnu=no
3999 fi
4000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4001 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4002
4003 fi
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4005 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4006 if test $ac_compiler_gnu = yes; then
4007   GCC=yes
4008 else
4009   GCC=
4010 fi
4011 ac_test_CFLAGS=${CFLAGS+set}
4012 ac_save_CFLAGS=$CFLAGS
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4014 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4015 if test "${ac_cv_prog_cc_g+set}" = set; then :
4016   $as_echo_n "(cached) " >&6
4017 else
4018   ac_save_c_werror_flag=$ac_c_werror_flag
4019    ac_c_werror_flag=yes
4020    ac_cv_prog_cc_g=no
4021    CFLAGS="-g"
4022    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h.  */
4024
4025 int
4026 main ()
4027 {
4028
4029   ;
4030   return 0;
4031 }
4032 _ACEOF
4033 if ac_fn_c_try_compile "$LINENO"; then :
4034   ac_cv_prog_cc_g=yes
4035 else
4036   CFLAGS=""
4037       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h.  */
4039
4040 int
4041 main ()
4042 {
4043
4044   ;
4045   return 0;
4046 }
4047 _ACEOF
4048 if ac_fn_c_try_compile "$LINENO"; then :
4049
4050 else
4051   ac_c_werror_flag=$ac_save_c_werror_flag
4052          CFLAGS="-g"
4053          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h.  */
4055
4056 int
4057 main ()
4058 {
4059
4060   ;
4061   return 0;
4062 }
4063 _ACEOF
4064 if ac_fn_c_try_compile "$LINENO"; then :
4065   ac_cv_prog_cc_g=yes
4066 fi
4067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4068 fi
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 fi
4071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072    ac_c_werror_flag=$ac_save_c_werror_flag
4073 fi
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4075 $as_echo "$ac_cv_prog_cc_g" >&6; }
4076 if test "$ac_test_CFLAGS" = set; then
4077   CFLAGS=$ac_save_CFLAGS
4078 elif test $ac_cv_prog_cc_g = yes; then
4079   if test "$GCC" = yes; then
4080     CFLAGS="-g -O2"
4081   else
4082     CFLAGS="-g"
4083   fi
4084 else
4085   if test "$GCC" = yes; then
4086     CFLAGS="-O2"
4087   else
4088     CFLAGS=
4089   fi
4090 fi
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4092 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4093 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4094   $as_echo_n "(cached) " >&6
4095 else
4096   ac_cv_prog_cc_c89=no
4097 ac_save_CC=$CC
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h.  */
4100 #include <stdarg.h>
4101 #include <stdio.h>
4102 #include <sys/types.h>
4103 #include <sys/stat.h>
4104 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4105 struct buf { int x; };
4106 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4107 static char *e (p, i)
4108      char **p;
4109      int i;
4110 {
4111   return p[i];
4112 }
4113 static char *f (char * (*g) (char **, int), char **p, ...)
4114 {
4115   char *s;
4116   va_list v;
4117   va_start (v,p);
4118   s = g (p, va_arg (v,int));
4119   va_end (v);
4120   return s;
4121 }
4122
4123 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4124    function prototypes and stuff, but not '\xHH' hex character constants.
4125    These don't provoke an error unfortunately, instead are silently treated
4126    as 'x'.  The following induces an error, until -std is added to get
4127    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4128    array size at least.  It's necessary to write '\x00'==0 to get something
4129    that's true only with -std.  */
4130 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4131
4132 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4133    inside strings and character constants.  */
4134 #define FOO(x) 'x'
4135 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4136
4137 int test (int i, double x);
4138 struct s1 {int (*f) (int a);};
4139 struct s2 {int (*f) (double a);};
4140 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4141 int argc;
4142 char **argv;
4143 int
4144 main ()
4145 {
4146 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4147   ;
4148   return 0;
4149 }
4150 _ACEOF
4151 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4152         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4153 do
4154   CC="$ac_save_CC $ac_arg"
4155   if ac_fn_c_try_compile "$LINENO"; then :
4156   ac_cv_prog_cc_c89=$ac_arg
4157 fi
4158 rm -f core conftest.err conftest.$ac_objext
4159   test "x$ac_cv_prog_cc_c89" != "xno" && break
4160 done
4161 rm -f conftest.$ac_ext
4162 CC=$ac_save_CC
4163
4164 fi
4165 # AC_CACHE_VAL
4166 case "x$ac_cv_prog_cc_c89" in
4167   x)
4168     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4169 $as_echo "none needed" >&6; } ;;
4170   xno)
4171     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4172 $as_echo "unsupported" >&6; } ;;
4173   *)
4174     CC="$CC $ac_cv_prog_cc_c89"
4175     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4176 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4177 esac
4178 if test "x$ac_cv_prog_cc_c89" != xno; then :
4179
4180 fi
4181
4182 ac_ext=c
4183 ac_cpp='$CPP $CPPFLAGS'
4184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4187
4188 if test "$GCC" = yes; then
4189    RDYNAMIC="-rdynamic"
4190
4191 fi
4192 ac_ext=c
4193 ac_cpp='$CPP $CPPFLAGS'
4194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4198 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4199 # On Suns, sometimes $CPP names a directory.
4200 if test -n "$CPP" && test -d "$CPP"; then
4201   CPP=
4202 fi
4203 if test -z "$CPP"; then
4204   if test "${ac_cv_prog_CPP+set}" = set; then :
4205   $as_echo_n "(cached) " >&6
4206 else
4207       # Double quotes because CPP needs to be expanded
4208     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4209     do
4210       ac_preproc_ok=false
4211 for ac_c_preproc_warn_flag in '' yes
4212 do
4213   # Use a header file that comes with gcc, so configuring glibc
4214   # with a fresh cross-compiler works.
4215   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4216   # <limits.h> exists even on freestanding compilers.
4217   # On the NeXT, cc -E runs the code through the compiler's parser,
4218   # not just through cpp. "Syntax error" is here to catch this case.
4219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220 /* end confdefs.h.  */
4221 #ifdef __STDC__
4222 # include <limits.h>
4223 #else
4224 # include <assert.h>
4225 #endif
4226                      Syntax error
4227 _ACEOF
4228 if ac_fn_c_try_cpp "$LINENO"; then :
4229
4230 else
4231   # Broken: fails on valid input.
4232 continue
4233 fi
4234 rm -f conftest.err conftest.$ac_ext
4235
4236   # OK, works on sane cases.  Now check whether nonexistent headers
4237   # can be detected and how.
4238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h.  */
4240 #include <ac_nonexistent.h>
4241 _ACEOF
4242 if ac_fn_c_try_cpp "$LINENO"; then :
4243   # Broken: success on invalid input.
4244 continue
4245 else
4246   # Passes both tests.
4247 ac_preproc_ok=:
4248 break
4249 fi
4250 rm -f conftest.err conftest.$ac_ext
4251
4252 done
4253 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4254 rm -f conftest.err conftest.$ac_ext
4255 if $ac_preproc_ok; then :
4256   break
4257 fi
4258
4259     done
4260     ac_cv_prog_CPP=$CPP
4261
4262 fi
4263   CPP=$ac_cv_prog_CPP
4264 else
4265   ac_cv_prog_CPP=$CPP
4266 fi
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4268 $as_echo "$CPP" >&6; }
4269 ac_preproc_ok=false
4270 for ac_c_preproc_warn_flag in '' yes
4271 do
4272   # Use a header file that comes with gcc, so configuring glibc
4273   # with a fresh cross-compiler works.
4274   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4275   # <limits.h> exists even on freestanding compilers.
4276   # On the NeXT, cc -E runs the code through the compiler's parser,
4277   # not just through cpp. "Syntax error" is here to catch this case.
4278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h.  */
4280 #ifdef __STDC__
4281 # include <limits.h>
4282 #else
4283 # include <assert.h>
4284 #endif
4285                      Syntax error
4286 _ACEOF
4287 if ac_fn_c_try_cpp "$LINENO"; then :
4288
4289 else
4290   # Broken: fails on valid input.
4291 continue
4292 fi
4293 rm -f conftest.err conftest.$ac_ext
4294
4295   # OK, works on sane cases.  Now check whether nonexistent headers
4296   # can be detected and how.
4297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298 /* end confdefs.h.  */
4299 #include <ac_nonexistent.h>
4300 _ACEOF
4301 if ac_fn_c_try_cpp "$LINENO"; then :
4302   # Broken: success on invalid input.
4303 continue
4304 else
4305   # Passes both tests.
4306 ac_preproc_ok=:
4307 break
4308 fi
4309 rm -f conftest.err conftest.$ac_ext
4310
4311 done
4312 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4313 rm -f conftest.err conftest.$ac_ext
4314 if $ac_preproc_ok; then :
4315
4316 else
4317   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4319 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4320 See \`config.log' for more details." "$LINENO" 5; }
4321 fi
4322
4323 ac_ext=c
4324 ac_cpp='$CPP $CPPFLAGS'
4325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4328
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4330 $as_echo_n "checking for additional special compiler flags... " >&6; }
4331 if test "$GCC" = yes
4332 then
4333     case "$host_cpu" in
4334         alpha)          addcflags="-mieee" ;;
4335     esac
4336 fi
4337 if test "x$addcflags" != x
4338 then
4339     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4340 $as_echo "$addcflags" >&6; }
4341     CFLAGS="$addcflags $CFLAGS"
4342 else
4343     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4344 $as_echo "(none)" >&6; }
4345 fi
4346 LIB_EXT=.a
4347 STATIC_LIB_EXT=.a
4348 PROFILED_LIB_EXT=.a
4349
4350 # Check whether --with-root-prefix was given.
4351 if test "${with_root_prefix+set}" = set; then :
4352   withval=$with_root_prefix; root_prefix=$withval
4353 else
4354   root_prefix=NONE
4355 fi
4356 # Check whether --enable-maintainer-mode was given.
4357 if test "${enable_maintainer_mode+set}" = set; then :
4358   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4359 then
4360         MAINTAINER_CMT=#
4361         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4362 $as_echo "Disabling maintainer mode" >&6; }
4363 else
4364         MAINTAINER_CMT=
4365         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4366 $as_echo "Enabling maintainer mode" >&6; }
4367 fi
4368
4369 else
4370   MAINTAINER_CMT=#
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4372 $as_echo "Disabling maintainer mode by default" >&6; }
4373
4374 fi
4375
4376
4377 # Check whether --enable-symlink-install was given.
4378 if test "${enable_symlink_install+set}" = set; then :
4379   enableval=$enable_symlink_install; if test "$enableval" = "no"
4380 then
4381         LINK_INSTALL_FLAGS=-f
4382         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4383 $as_echo "Disabling symlinks for install" >&6; }
4384 else
4385         LINK_INSTALL_FLAGS=-sf
4386         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4387 $as_echo "Enabling symlinks for install" >&6; }
4388 fi
4389
4390 else
4391   LINK_INSTALL_FLAGS=-f
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4393 $as_echo "Disabling symlinks for install by default" >&6; }
4394
4395 fi
4396
4397
4398 # Check whether --enable-symlink-relative-symlinks was given.
4399 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4400   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4401 then
4402         SYMLINK_RELATIVE=
4403         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4404 $as_echo "Disabling relative symlinks for install" >&6; }
4405 else
4406         SYMLINK_RELATIVE=--relative
4407         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4408 $as_echo "Enabling symlinks for install" >&6; }
4409 fi
4410
4411 else
4412   SYMLINK_RELATIVE=
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4414 $as_echo "Disabling relative symlinks for install by default" >&6; }
4415
4416 fi
4417
4418
4419 # Check whether --enable-symlink-build was given.
4420 if test "${enable_symlink_build+set}" = set; then :
4421   enableval=$enable_symlink_build; if test "$enableval" = "no"
4422 then
4423         LINK_BUILD_FLAGS=
4424         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4425 $as_echo "Disabling symlinks for build" >&6; }
4426 else
4427         LINK_BUILD_FLAGS=-s
4428         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4429 $as_echo "Enabling symlinks for build" >&6; }
4430 fi
4431
4432 else
4433   LINK_BUILD_FLAGS=
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4435 $as_echo "Disabling symlinks for build by default" >&6; }
4436
4437 fi
4438
4439
4440 # Check whether --enable-verbose-makecmds was given.
4441 if test "${enable_verbose_makecmds+set}" = set; then :
4442   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4443 then
4444         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4445 $as_echo "Disabling verbose make commands" >&6; }
4446         E=@echo
4447         Q=@
4448 else
4449         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4450 $as_echo "Enabling verbose make commands" >&6; }
4451         E=@\\#
4452         Q=
4453 fi
4454
4455 else
4456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4457 $as_echo "Disabling verbose make commands" >&6; }
4458 E=@echo
4459 Q=@
4460
4461 fi
4462
4463
4464
4465 # Check whether --enable-lfsck was given.
4466 if test "${enable_lfsck+set}" = set; then :
4467   enableval=$enable_lfsck; if test "$enableval" = "no"
4468 then
4469         LFSCK_CMT=#
4470         LFSCK_MAN=.\"
4471         ENABLE_LFSCK="--disable-lfsck"
4472         echo "Disabling Lustre lfsck support"
4473 else
4474         LFSCK_CMT=
4475         LFSCK_MAN=
4476         ENABLE_LFSCK="--enable-lfsck"
4477
4478 $as_echo "#define HAVE_LFSCK 1" >>confdefs.h
4479
4480         echo "Enabling Lustre lfsck support"
4481 fi
4482
4483 else
4484   LFSCK_CMT=
4485 LFSCK_MAN=
4486 ENABLE_LFSCK=
4487
4488 $as_echo "#define HAVE_LFSCK 1" >>confdefs.h
4489
4490 echo "Enabling Lustre lfsck support by default"
4491
4492 fi
4493
4494
4495
4496
4497
4498 # Check whether --with-lustre was given.
4499 if test "${with_lustre+set}" = set; then :
4500   withval=$with_lustre; { $as_echo "$as_me:${as_lineno-$LINENO}: result: LUSTRE is in $withval" >&5
4501 $as_echo "LUSTRE is in $withval" >&6; }
4502         LUSTRE="$withval"
4503         WITH_LUSTRE="--with-lustre=$withval"
4504 else
4505   LUSTRE="/usr"
4506         WITH_LUSTRE=
4507
4508 fi
4509
4510
4511 if test "x$enable_lfsck" != "xno"; then :
4512
4513         as_ac_File=`$as_echo "ac_cv_file_$LUSTRE/include/lustre/liblustreapi.h" | $as_tr_sh`
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LUSTRE/include/lustre/liblustreapi.h" >&5
4515 $as_echo_n "checking for $LUSTRE/include/lustre/liblustreapi.h... " >&6; }
4516 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
4517   $as_echo_n "(cached) " >&6
4518 else
4519   test "$cross_compiling" = yes &&
4520   as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
4521 if test -r "$LUSTRE/include/lustre/liblustreapi.h"; then
4522   eval "$as_ac_File=yes"
4523 else
4524   eval "$as_ac_File=no"
4525 fi
4526 fi
4527 eval ac_res=\$$as_ac_File
4528                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4529 $as_echo "$ac_res" >&6; }
4530 eval as_val=\$$as_ac_File
4531    if test "x$as_val" = x""yes; then :
4532
4533 else
4534   as_ac_File=`$as_echo "ac_cv_file_$LUSTRE/lustre/include/lustre/liblustreapi.h" | $as_tr_sh`
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LUSTRE/lustre/include/lustre/liblustreapi.h" >&5
4536 $as_echo_n "checking for $LUSTRE/lustre/include/lustre/liblustreapi.h... " >&6; }
4537 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
4538   $as_echo_n "(cached) " >&6
4539 else
4540   test "$cross_compiling" = yes &&
4541   as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
4542 if test -r "$LUSTRE/lustre/include/lustre/liblustreapi.h"; then
4543   eval "$as_ac_File=yes"
4544 else
4545   eval "$as_ac_File=no"
4546 fi
4547 fi
4548 eval ac_res=\$$as_ac_File
4549                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4550 $as_echo "$ac_res" >&6; }
4551 eval as_val=\$$as_ac_File
4552    if test "x$as_val" = x""yes; then :
4553
4554 else
4555   as_fn_error "No lustre includes found." "$LINENO" 5
4556 fi
4557
4558
4559 fi
4560
4561
4562 fi
4563 # Check whether --enable-compression was given.
4564 if test "${enable_compression+set}" = set; then :
4565   enableval=$enable_compression; if test "$enableval" = "no"
4566 then
4567         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4568 $as_echo "Disabling compression support" >&6; }
4569 else
4570
4571 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4572
4573         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4574 $as_echo "Enabling compression support" >&6; }
4575         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4576 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4577 fi
4578
4579 else
4580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4581 $as_echo "Disabling compression support by default" >&6; }
4582
4583 fi
4584
4585
4586 # Check whether --enable-htree was given.
4587 if test "${enable_htree+set}" = set; then :
4588   enableval=$enable_htree; if test "$enableval" = "no"
4589 then
4590         HTREE_CMT=#
4591         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4592 $as_echo "Disabling htree directory support" >&6; }
4593 else
4594         HTREE_CMT=
4595         $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4596
4597         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4598 $as_echo "Enabling htree directory support" >&6; }
4599 fi
4600
4601 else
4602   HTREE_CMT=
4603 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4604
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4606 $as_echo "Enabling htree directory support by default" >&6; }
4607
4608 fi
4609
4610
4611 E2_PKG_CONFIG_STATIC=--static
4612 LDFLAG_DYNAMIC=
4613 PRIVATE_LIBS_CMT=
4614 # Check whether --enable-elf-shlibs was given.
4615 if test "${enable_elf_shlibs+set}" = set; then :
4616   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4617 then
4618         ELF_CMT=#
4619         MAKEFILE_ELF=/dev/null
4620         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4621 $as_echo "Disabling ELF shared libraries" >&6; }
4622 else
4623         E2_PKG_CONFIG_STATIC=
4624         ELF_CMT=
4625         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4626         case "$host_os" in
4627         solaris2.*)
4628                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4629         ;;
4630         esac
4631         BINARY_TYPE=elfbin
4632         LIB_EXT=.so
4633         PRIVATE_LIBS_CMT=#
4634         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4635         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4636 $as_echo "Enabling ELF shared libraries" >&6; }
4637 fi
4638
4639 else
4640   MAKEFILE_ELF=/dev/null
4641 ELF_CMT=#
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4643 $as_echo "Disabling ELF shared libraries by default" >&6; }
4644
4645 fi
4646
4647
4648
4649 # Check whether --enable-bsd-shlibs was given.
4650 if test "${enable_bsd_shlibs+set}" = set; then :
4651   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4652 then
4653         BSDLIB_CMT=#
4654         MAKEFILE_BSDLIB=/dev/null
4655         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4656 $as_echo "Disabling BSD shared libraries" >&6; }
4657 else
4658         E2_PKG_CONFIG_STATIC=
4659         BSDLIB_CMT=
4660         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4661         LIB_EXT=.so
4662         case "$host_os" in
4663         darwin*)
4664                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4665                 LIB_EXT=.dylib
4666         ;;
4667         esac
4668         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4669 $as_echo "Enabling BSD shared libraries" >&6; }
4670 fi
4671
4672 else
4673   MAKEFILE_BSDLIB=/dev/null
4674 BSDLIB_CMT=#
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4676 $as_echo "Disabling BSD shared libraries by default" >&6; }
4677
4678 fi
4679
4680
4681
4682 # Check whether --enable-profile was given.
4683 if test "${enable_profile+set}" = set; then :
4684   enableval=$enable_profile; if test "$enableval" = "no"
4685 then
4686         PROFILE_CMT=#
4687         MAKEFILE_PROFILE=/dev/null
4688         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4689 $as_echo "Disabling profiling libraries" >&6; }
4690 else
4691         PROFILE_CMT=
4692         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4693         PROFILED_LIB_EXT=_p.a
4694         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4695 $as_echo "Building profiling libraries" >&6; }
4696 fi
4697
4698 else
4699   PROFILE_CMT=#
4700 MAKEFILE_PROFILE=/dev/null
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4702 $as_echo "Disabling profiling libraries by default" >&6; }
4703
4704 fi
4705
4706
4707
4708 # Check whether --enable-checker was given.
4709 if test "${enable_checker+set}" = set; then :
4710   enableval=$enable_checker; if test "$enableval" = "no"
4711 then
4712         CHECKER_CMT=#
4713         MAKEFILE_CHECKER=/dev/null
4714         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4715 $as_echo "Disabling checker libraries" >&6; }
4716 else
4717         CHECKER_CMT=
4718         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4719         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4720 $as_echo "Building checker libraries" >&6; }
4721 fi
4722
4723 else
4724   CHECKER_CMT=#
4725 MAKEFILE_CHECKER=/dev/null
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4727 $as_echo "Disabling checker libraries by default" >&6; }
4728
4729 fi
4730
4731
4732
4733
4734
4735
4736
4737
4738 # Check whether --enable-jbd-debug was given.
4739 if test "${enable_jbd_debug+set}" = set; then :
4740   enableval=$enable_jbd_debug; if test "$enableval" = "no"
4741 then
4742         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4743 $as_echo "Disabling journal debugging" >&6; }
4744 else
4745
4746 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4747
4748         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4749 $as_echo "Enabling journal debugging" >&6; }
4750 fi
4751
4752 else
4753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4754 $as_echo "Disabling journal debugging by default" >&6; }
4755
4756 fi
4757
4758 # Check whether --enable-blkid-debug was given.
4759 if test "${enable_blkid_debug+set}" = set; then :
4760   enableval=$enable_blkid_debug; if test "$enableval" = "no"
4761 then
4762         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4763 $as_echo "Disabling blkid debugging" >&6; }
4764 else
4765
4766 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4767
4768         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4769 $as_echo "Enabling blkid debugging" >&6; }
4770 fi
4771
4772 else
4773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4774 $as_echo "Disabling blkid debugging by default" >&6; }
4775
4776 fi
4777
4778 # Check whether --enable-testio-debug was given.
4779 if test "${enable_testio_debug+set}" = set; then :
4780   enableval=$enable_testio_debug;
4781 if test "$enableval" = "no"
4782 then
4783         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4784 $as_echo "Disabling testio debugging" >&6; }
4785         TEST_IO_CMT="#"
4786 else
4787         TEST_IO_CMT=
4788         $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4789
4790         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4791 $as_echo "Enabling testio debugging" >&6; }
4792 fi
4793
4794 else
4795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4796 $as_echo "Enabling testio debugging by default" >&6; }
4797 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4798
4799 TEST_IO_CMT=
4800
4801 fi
4802
4803
4804
4805
4806 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4807         if test -n "$ac_tool_prefix"; then
4808   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4809 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811 $as_echo_n "checking for $ac_word... " >&6; }
4812 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4813   $as_echo_n "(cached) " >&6
4814 else
4815   case $PKG_CONFIG in
4816   [\\/]* | ?:[\\/]*)
4817   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4818   ;;
4819   *)
4820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4822 do
4823   IFS=$as_save_IFS
4824   test -z "$as_dir" && as_dir=.
4825     for ac_exec_ext in '' $ac_executable_extensions; do
4826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4827     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4829     break 2
4830   fi
4831 done
4832   done
4833 IFS=$as_save_IFS
4834
4835   ;;
4836 esac
4837 fi
4838 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4839 if test -n "$PKG_CONFIG"; then
4840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4841 $as_echo "$PKG_CONFIG" >&6; }
4842 else
4843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844 $as_echo "no" >&6; }
4845 fi
4846
4847
4848 fi
4849 if test -z "$ac_cv_path_PKG_CONFIG"; then
4850   ac_pt_PKG_CONFIG=$PKG_CONFIG
4851   # Extract the first word of "pkg-config", so it can be a program name with args.
4852 set dummy pkg-config; ac_word=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4856   $as_echo_n "(cached) " >&6
4857 else
4858   case $ac_pt_PKG_CONFIG in
4859   [\\/]* | ?:[\\/]*)
4860   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4861   ;;
4862   *)
4863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH
4865 do
4866   IFS=$as_save_IFS
4867   test -z "$as_dir" && as_dir=.
4868     for ac_exec_ext in '' $ac_executable_extensions; do
4869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4870     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4872     break 2
4873   fi
4874 done
4875   done
4876 IFS=$as_save_IFS
4877
4878   ;;
4879 esac
4880 fi
4881 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4882 if test -n "$ac_pt_PKG_CONFIG"; then
4883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4884 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4885 else
4886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4888 fi
4889
4890   if test "x$ac_pt_PKG_CONFIG" = x; then
4891     PKG_CONFIG=""
4892   else
4893     case $cross_compiling:$ac_tool_warned in
4894 yes:)
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4897 ac_tool_warned=yes ;;
4898 esac
4899     PKG_CONFIG=$ac_pt_PKG_CONFIG
4900   fi
4901 else
4902   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4903 fi
4904
4905 fi
4906 if test -n "$PKG_CONFIG"; then
4907         _pkg_min_version=0.9.0
4908         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4909 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4910         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4911                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4912 $as_echo "yes" >&6; }
4913         else
4914                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915 $as_echo "no" >&6; }
4916                 PKG_CONFIG=""
4917         fi
4918
4919 fi
4920 LIBUUID=
4921 DEPLIBUUID=
4922 STATIC_LIBUUID=
4923 DEPSTATIC_LIBUUID=
4924 PROFILED_LIBUUID=
4925 DEPPROFILED_LIBUUID=
4926 UUID_CMT=
4927 # Check whether --enable-libuuid was given.
4928 if test "${enable_libuuid+set}" = set; then :
4929   enableval=$enable_libuuid; if test "$enableval" = "no"
4930 then
4931         if test -z "$PKG_CONFIG"; then
4932                 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
4933         fi
4934
4935         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4936 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4937 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
4938   $as_echo_n "(cached) " >&6
4939 else
4940   ac_check_lib_save_LIBS=$LIBS
4941 LIBS="-luuid $LIBUUID $LIBS"
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h.  */
4944
4945 /* Override any GCC internal prototype to avoid an error.
4946    Use char because int might match the return type of a GCC
4947    builtin and then its argument prototype would still apply.  */
4948 #ifdef __cplusplus
4949 extern "C"
4950 #endif
4951 char uuid_generate ();
4952 int
4953 main ()
4954 {
4955 return uuid_generate ();
4956   ;
4957   return 0;
4958 }
4959 _ACEOF
4960 if ac_fn_c_try_link "$LINENO"; then :
4961   ac_cv_lib_uuid_uuid_generate=yes
4962 else
4963   ac_cv_lib_uuid_uuid_generate=no
4964 fi
4965 rm -f core conftest.err conftest.$ac_objext \
4966     conftest$ac_exeext conftest.$ac_ext
4967 LIBS=$ac_check_lib_save_LIBS
4968 fi
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4970 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4971 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
4972   LIBUUID=`$PKG_CONFIG --libs uuid`;
4973                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4974 else
4975   as_fn_error "external uuid library not found" "$LINENO" 5
4976 fi
4977
4978         UUID_CMT=#
4979         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4980 $as_echo "Disabling private uuid library" >&6; }
4981 else
4982         LIBUUID='$(LIB)/libuuid'$LIB_EXT
4983         DEPLIBUUID=$LIBUUID
4984         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4985         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4986         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4987         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4988         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4989 $as_echo "Enabling private uuid library" >&6; }
4990 fi
4991
4992 else
4993   LIBUUID='$(LIB)/libuuid'$LIB_EXT
4994 DEPLIBUUID=$LIBUUID
4995 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4996 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4997 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4998 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5000 $as_echo "Enabling private uuid library by default" >&6; }
5001
5002 fi
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5014         if test -n "$ac_tool_prefix"; then
5015   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5016 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018 $as_echo_n "checking for $ac_word... " >&6; }
5019 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5020   $as_echo_n "(cached) " >&6
5021 else
5022   case $PKG_CONFIG in
5023   [\\/]* | ?:[\\/]*)
5024   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5025   ;;
5026   *)
5027   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 for as_dir in $PATH
5029 do
5030   IFS=$as_save_IFS
5031   test -z "$as_dir" && as_dir=.
5032     for ac_exec_ext in '' $ac_executable_extensions; do
5033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5034     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5036     break 2
5037   fi
5038 done
5039   done
5040 IFS=$as_save_IFS
5041
5042   ;;
5043 esac
5044 fi
5045 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5046 if test -n "$PKG_CONFIG"; then
5047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5048 $as_echo "$PKG_CONFIG" >&6; }
5049 else
5050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051 $as_echo "no" >&6; }
5052 fi
5053
5054
5055 fi
5056 if test -z "$ac_cv_path_PKG_CONFIG"; then
5057   ac_pt_PKG_CONFIG=$PKG_CONFIG
5058   # Extract the first word of "pkg-config", so it can be a program name with args.
5059 set dummy pkg-config; ac_word=$2
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061 $as_echo_n "checking for $ac_word... " >&6; }
5062 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5063   $as_echo_n "(cached) " >&6
5064 else
5065   case $ac_pt_PKG_CONFIG in
5066   [\\/]* | ?:[\\/]*)
5067   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5068   ;;
5069   *)
5070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5072 do
5073   IFS=$as_save_IFS
5074   test -z "$as_dir" && as_dir=.
5075     for ac_exec_ext in '' $ac_executable_extensions; do
5076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5077     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5079     break 2
5080   fi
5081 done
5082   done
5083 IFS=$as_save_IFS
5084
5085   ;;
5086 esac
5087 fi
5088 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5089 if test -n "$ac_pt_PKG_CONFIG"; then
5090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5091 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5092 else
5093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5095 fi
5096
5097   if test "x$ac_pt_PKG_CONFIG" = x; then
5098     PKG_CONFIG=""
5099   else
5100     case $cross_compiling:$ac_tool_warned in
5101 yes:)
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5104 ac_tool_warned=yes ;;
5105 esac
5106     PKG_CONFIG=$ac_pt_PKG_CONFIG
5107   fi
5108 else
5109   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5110 fi
5111
5112 fi
5113 if test -n "$PKG_CONFIG"; then
5114         _pkg_min_version=0.9.0
5115         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5116 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5117         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5118                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5119 $as_echo "yes" >&6; }
5120         else
5121                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 $as_echo "no" >&6; }
5123                 PKG_CONFIG=""
5124         fi
5125
5126 fi
5127 LIBBLKID=
5128 DEPLIBBLKID=
5129 STATIC_LIBBLKID=
5130 DEPSTATIC_LIBBLKID=
5131 PROFILED_LIBBLKID=
5132 DEPPROFILED_LIBBLKID=
5133 BLKID_CMT=
5134
5135 # Check whether --enable-libblkid was given.
5136 if test "${enable_libblkid+set}" = set; then :
5137   enableval=$enable_libblkid; if test "$enableval" = "no"
5138 then
5139         if test -z "$PKG_CONFIG"; then
5140                 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
5141         fi
5142
5143         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5144 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5145 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
5146   $as_echo_n "(cached) " >&6
5147 else
5148   ac_check_lib_save_LIBS=$LIBS
5149 LIBS="-lblkid $LIBBLKID $LIBS"
5150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151 /* end confdefs.h.  */
5152
5153 /* Override any GCC internal prototype to avoid an error.
5154    Use char because int might match the return type of a GCC
5155    builtin and then its argument prototype would still apply.  */
5156 #ifdef __cplusplus
5157 extern "C"
5158 #endif
5159 char blkid_get_cache ();
5160 int
5161 main ()
5162 {
5163 return blkid_get_cache ();
5164   ;
5165   return 0;
5166 }
5167 _ACEOF
5168 if ac_fn_c_try_link "$LINENO"; then :
5169   ac_cv_lib_blkid_blkid_get_cache=yes
5170 else
5171   ac_cv_lib_blkid_blkid_get_cache=no
5172 fi
5173 rm -f core conftest.err conftest.$ac_objext \
5174     conftest$ac_exeext conftest.$ac_ext
5175 LIBS=$ac_check_lib_save_LIBS
5176 fi
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5178 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5179 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then :
5180   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5181                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5182 else
5183   as_fn_error "external blkid library not found" "$LINENO" 5
5184 fi
5185
5186         BLKID_CMT=#
5187         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5188 $as_echo "Disabling private blkid library" >&6; }
5189 else
5190         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5191         DEPLIBBLKID=$LIBBLKID
5192         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5193         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5194         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5195         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5196         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5197
5198         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5199 $as_echo "Enabling private blkid library" >&6; }
5200 fi
5201
5202 else
5203   LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5204 DEPLIBBLKID=$LIBBLKID
5205 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5206 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5207 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5208 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5209 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5210
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5212 $as_echo "Enabling private blkid library by default" >&6; }
5213
5214 fi
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5226         if test -n "$ac_tool_prefix"; then
5227   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5228 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230 $as_echo_n "checking for $ac_word... " >&6; }
5231 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5232   $as_echo_n "(cached) " >&6
5233 else
5234   case $PKG_CONFIG in
5235   [\\/]* | ?:[\\/]*)
5236   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5237   ;;
5238   *)
5239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH
5241 do
5242   IFS=$as_save_IFS
5243   test -z "$as_dir" && as_dir=.
5244     for ac_exec_ext in '' $ac_executable_extensions; do
5245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5246     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5248     break 2
5249   fi
5250 done
5251   done
5252 IFS=$as_save_IFS
5253
5254   ;;
5255 esac
5256 fi
5257 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5258 if test -n "$PKG_CONFIG"; then
5259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5260 $as_echo "$PKG_CONFIG" >&6; }
5261 else
5262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5263 $as_echo "no" >&6; }
5264 fi
5265
5266
5267 fi
5268 if test -z "$ac_cv_path_PKG_CONFIG"; then
5269   ac_pt_PKG_CONFIG=$PKG_CONFIG
5270   # Extract the first word of "pkg-config", so it can be a program name with args.
5271 set dummy pkg-config; ac_word=$2
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5273 $as_echo_n "checking for $ac_word... " >&6; }
5274 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5275   $as_echo_n "(cached) " >&6
5276 else
5277   case $ac_pt_PKG_CONFIG in
5278   [\\/]* | ?:[\\/]*)
5279   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5280   ;;
5281   *)
5282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283 for as_dir in $PATH
5284 do
5285   IFS=$as_save_IFS
5286   test -z "$as_dir" && as_dir=.
5287     for ac_exec_ext in '' $ac_executable_extensions; do
5288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5289     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5291     break 2
5292   fi
5293 done
5294   done
5295 IFS=$as_save_IFS
5296
5297   ;;
5298 esac
5299 fi
5300 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5301 if test -n "$ac_pt_PKG_CONFIG"; then
5302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5303 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5304 else
5305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 $as_echo "no" >&6; }
5307 fi
5308
5309   if test "x$ac_pt_PKG_CONFIG" = x; then
5310     PKG_CONFIG=""
5311   else
5312     case $cross_compiling:$ac_tool_warned in
5313 yes:)
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5316 ac_tool_warned=yes ;;
5317 esac
5318     PKG_CONFIG=$ac_pt_PKG_CONFIG
5319   fi
5320 else
5321   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5322 fi
5323
5324 fi
5325 if test -n "$PKG_CONFIG"; then
5326         _pkg_min_version=0.9.0
5327         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5328 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5329         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5330                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5331 $as_echo "yes" >&6; }
5332         else
5333                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5334 $as_echo "no" >&6; }
5335                 PKG_CONFIG=""
5336         fi
5337
5338 fi
5339
5340 # Check whether --enable-quota was given.
5341 if test "${enable_quota+set}" = set; then :
5342   enableval=$enable_quota; if test "$enableval" = "no"
5343 then
5344         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5345 $as_echo "Disabling quota support" >&6; }
5346 else
5347         $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5348
5349         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5350 $as_echo "Enabling quota support" >&6; }
5351 fi
5352
5353 else
5354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5355 $as_echo "Disabling quota support by default" >&6; }
5356
5357 fi
5358
5359 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5360 DEPLIBQUOTA=$LIBQUOTA
5361 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5362 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5363 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5364 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5365
5366
5367
5368
5369
5370
5371
5372 # Check whether --enable-debugfs was given.
5373 if test "${enable_debugfs+set}" = set; then :
5374   enableval=$enable_debugfs; if test "$enableval" = "no"
5375 then
5376         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5377 $as_echo "Disabling debugfs support" >&6; }
5378         DEBUGFS_CMT="#"
5379 else
5380         DEBUGFS_CMT=
5381         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5382 $as_echo "Enabling debugfs support" >&6; }
5383 fi
5384
5385 else
5386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5387 $as_echo "Enabling debugfs support by default" >&6; }
5388 DEBUGFS_CMT=
5389
5390 fi
5391
5392
5393 # Check whether --enable-imager was given.
5394 if test "${enable_imager+set}" = set; then :
5395   enableval=$enable_imager; if test "$enableval" = "no"
5396 then
5397         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5398 $as_echo "Disabling e2image support" >&6; }
5399         IMAGER_CMT="#"
5400 else
5401         IMAGER_CMT=
5402         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5403 $as_echo "Enabling e2image support" >&6; }
5404 fi
5405
5406 else
5407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5408 $as_echo "Enabling e2image support by default" >&6; }
5409 IMAGER_CMT=
5410
5411 fi
5412
5413
5414 # Check whether --enable-resizer was given.
5415 if test "${enable_resizer+set}" = set; then :
5416   enableval=$enable_resizer; if test "$enableval" = "no"
5417 then
5418         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5419 $as_echo "Disabling e2resize support" >&6; }
5420         RESIZER_CMT="#"
5421 else
5422         RESIZER_CMT=
5423         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5424 $as_echo "Enabling e2resize support" >&6; }
5425 fi
5426
5427 else
5428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5429 $as_echo "Enabling e2resize support by default" >&6; }
5430 RESIZER_CMT=
5431
5432 fi
5433
5434
5435 # Check whether --enable-defrag was given.
5436 if test "${enable_defrag+set}" = set; then :
5437   enableval=$enable_defrag; if test "$enableval" = "no"
5438 then
5439         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5440 $as_echo "Disabling e4defrag support" >&6; }
5441         DEFRAG_CMT="#"
5442 else
5443         DEFRAG_CMT=
5444         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5445 $as_echo "Enabling e4defrag support" >&6; }
5446 fi
5447
5448 else
5449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5450 $as_echo "Enabling e4defrag support by default" >&6; }
5451 DEFRAG_CMT=
5452
5453 fi
5454
5455
5456 # Check whether --enable-fsck was given.
5457 if test "${enable_fsck+set}" = set; then :
5458   enableval=$enable_fsck; if test "$enableval" = "no"
5459 then
5460         FSCK_PROG='' FSCK_MAN=''
5461         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5462 $as_echo "Not building fsck wrapper" >&6; }
5463 else
5464         FSCK_PROG=fsck FSCK_MAN=fsck.8
5465         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5466 $as_echo "Building fsck wrapper" >&6; }
5467 fi
5468
5469 else
5470   case "$host_os" in
5471   gnu*)
5472     FSCK_PROG='' FSCK_MAN=''
5473     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5474 $as_echo "Not building fsck wrapper by default" >&6; }
5475     ;;
5476   *)
5477     FSCK_PROG=fsck FSCK_MAN=fsck.8
5478     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5479 $as_echo "Building fsck wrapper by default" >&6; }
5480 esac
5481
5482 fi
5483
5484
5485
5486 # Check whether --enable-e2initrd-helper was given.
5487 if test "${enable_e2initrd_helper+set}" = set; then :
5488   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5489 then
5490         E2INITRD_PROG='' E2INITRD_MAN=''
5491         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5492 $as_echo "Not building e2initrd helper" >&6; }
5493 else
5494         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5495         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5496 $as_echo "Building e2initrd helper" >&6; }
5497 fi
5498
5499 else
5500   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5502 $as_echo "Building e2initrd helper by default" >&6; }
5503
5504 fi
5505
5506
5507
5508 # Check whether --enable-tls was given.
5509 if test "${enable_tls+set}" = set; then :
5510   enableval=$enable_tls; if test "$enableval" = "no"
5511 then
5512         try_tls=""
5513         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5514 $as_echo "Disabling thread local support" >&6; }
5515 else
5516         try_tls="yes"
5517         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5518 $as_echo "Enabling thread local support" >&6; }
5519 fi
5520
5521 else
5522   if test -n "$WITH_DIET_LIBC"
5523 then
5524         try_tls=""
5525         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5526 $as_echo "Diet libc does not support thread local support" >&6; }
5527 else
5528         try_tls="yes"
5529         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5530 $as_echo "Try using thread local support by default" >&6; }
5531 fi
5532
5533 fi
5534
5535 if test "$try_tls" = "yes"
5536 then
5537
5538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5539 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5540   if test "${ac_cv_tls+set}" = set; then :
5541   $as_echo_n "(cached) " >&6
5542 else
5543
5544     ax_tls_keywords="__thread __declspec(thread) none"
5545     for ax_tls_keyword in $ax_tls_keywords; do
5546        case $ax_tls_keyword in
5547           none) ac_cv_tls=none ; break ;;
5548           *)
5549              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h.  */
5551 #include <stdlib.h>
5552                  static void
5553                  foo(void) {
5554                  static  $ax_tls_keyword  int bar;
5555                  exit(1);
5556                  }
5557 int
5558 main ()
5559 {
5560
5561   ;
5562   return 0;
5563 }
5564 _ACEOF
5565 if ac_fn_c_try_compile "$LINENO"; then :
5566   ac_cv_tls=$ax_tls_keyword ; break
5567 else
5568   ac_cv_tls=none
5569
5570 fi
5571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572           esac
5573     done
5574
5575 fi
5576
5577
5578   if test "$ac_cv_tls" != "none"; then
5579
5580 cat >>confdefs.h <<_ACEOF
5581 #define TLS $ac_cv_tls
5582 _ACEOF
5583
5584   fi
5585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5586 $as_echo "$ac_cv_tls" >&6; }
5587
5588 fi
5589
5590 # Check whether --enable-uuidd was given.
5591 if test "${enable_uuidd+set}" = set; then :
5592   enableval=$enable_uuidd; if test "$enableval" = "no"
5593 then
5594         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5595 $as_echo "Not building uuidd" >&6; }
5596         UUIDD_CMT="#"
5597 else
5598         $as_echo "#define USE_UUIDD 1" >>confdefs.h
5599
5600         UUIDD_CMT=""
5601         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5602 $as_echo "Building uuidd" >&6; }
5603 fi
5604
5605 else
5606   $as_echo "#define USE_UUIDD 1" >>confdefs.h
5607
5608 UUIDD_CMT=""
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5610 $as_echo "Building uuidd by default" >&6; }
5611
5612 fi
5613
5614
5615 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5616
5617 GETTEXT_PACKAGE=e2fsprogs
5618 PACKAGE=e2fsprogs
5619 VERSION="$E2FSPROGS_VERSION"
5620 VERSION=0.14.1
5621
5622 cat >>confdefs.h <<_ACEOF
5623 #define PACKAGE "$PACKAGE"
5624 _ACEOF
5625
5626
5627 cat >>confdefs.h <<_ACEOF
5628 #define VERSION "$VERSION"
5629 _ACEOF
5630
5631
5632
5633
5634
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5636 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5637 set x ${MAKE-make}
5638 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5639 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5640   $as_echo_n "(cached) " >&6
5641 else
5642   cat >conftest.make <<\_ACEOF
5643 SHELL = /bin/sh
5644 all:
5645         @echo '@@@%%%=$(MAKE)=@@@%%%'
5646 _ACEOF
5647 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5648 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5649   *@@@%%%=?*=@@@%%%*)
5650     eval ac_cv_prog_make_${ac_make}_set=yes;;
5651   *)
5652     eval ac_cv_prog_make_${ac_make}_set=no;;
5653 esac
5654 rm -f conftest.make
5655 fi
5656 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5658 $as_echo "yes" >&6; }
5659   SET_MAKE=
5660 else
5661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662 $as_echo "no" >&6; }
5663   SET_MAKE="MAKE=${MAKE-make}"
5664 fi
5665
5666 # Find a good install program.  We prefer a C program (faster),
5667 # so one script is as good as another.  But avoid the broken or
5668 # incompatible versions:
5669 # SysV /etc/install, /usr/sbin/install
5670 # SunOS /usr/etc/install
5671 # IRIX /sbin/install
5672 # AIX /bin/install
5673 # AmigaOS /C/install, which installs bootblocks on floppy discs
5674 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5675 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5676 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5677 # OS/2's system install, which has a completely different semantic
5678 # ./install, which can be erroneously created by make from ./install.sh.
5679 # Reject install programs that cannot install multiple files.
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5681 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5682 if test -z "$INSTALL"; then
5683 if test "${ac_cv_path_install+set}" = set; then :
5684   $as_echo_n "(cached) " >&6
5685 else
5686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687 for as_dir in $PATH
5688 do
5689   IFS=$as_save_IFS
5690   test -z "$as_dir" && as_dir=.
5691     # Account for people who put trailing slashes in PATH elements.
5692 case $as_dir/ in #((
5693   ./ | .// | /[cC]/* | \
5694   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5695   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5696   /usr/ucb/* ) ;;
5697   *)
5698     # OSF1 and SCO ODT 3.0 have their own names for install.
5699     # Don't use installbsd from OSF since it installs stuff as root
5700     # by default.
5701     for ac_prog in ginstall scoinst install; do
5702       for ac_exec_ext in '' $ac_executable_extensions; do
5703         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5704           if test $ac_prog = install &&
5705             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5706             # AIX install.  It has an incompatible calling convention.
5707             :
5708           elif test $ac_prog = install &&
5709             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5710             # program-specific install script used by HP pwplus--don't use.
5711             :
5712           else
5713             rm -rf conftest.one conftest.two conftest.dir
5714             echo one > conftest.one
5715             echo two > conftest.two
5716             mkdir conftest.dir
5717             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5718               test -s conftest.one && test -s conftest.two &&
5719               test -s conftest.dir/conftest.one &&
5720               test -s conftest.dir/conftest.two
5721             then
5722               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5723               break 3
5724             fi
5725           fi
5726         fi
5727       done
5728     done
5729     ;;
5730 esac
5731
5732   done
5733 IFS=$as_save_IFS
5734
5735 rm -rf conftest.one conftest.two conftest.dir
5736
5737 fi
5738   if test "${ac_cv_path_install+set}" = set; then
5739     INSTALL=$ac_cv_path_install
5740   else
5741     # As a last resort, use the slow shell script.  Don't cache a
5742     # value for INSTALL within a source directory, because that will
5743     # break other packages using the cache if that directory is
5744     # removed, or if the value is a relative name.
5745     INSTALL=$ac_install_sh
5746   fi
5747 fi
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5749 $as_echo "$INSTALL" >&6; }
5750
5751 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5752 # It thinks the first close brace ends the variable substitution.
5753 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5754
5755 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5756
5757 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5758
5759
5760         MKINSTALLDIRS=
5761   if test -n "$ac_aux_dir"; then
5762     case "$ac_aux_dir" in
5763       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5764       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5765     esac
5766   fi
5767   if test -z "$MKINSTALLDIRS"; then
5768     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5769   fi
5770
5771
5772
5773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5774 $as_echo_n "checking whether NLS is requested... " >&6; }
5775     # Check whether --enable-nls was given.
5776 if test "${enable_nls+set}" = set; then :
5777   enableval=$enable_nls; USE_NLS=$enableval
5778 else
5779   USE_NLS=yes
5780 fi
5781
5782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5783 $as_echo "$USE_NLS" >&6; }
5784
5785
5786
5787
5788
5789
5790 # Prepare PATH_SEPARATOR.
5791 # The user is always right.
5792 if test "${PATH_SEPARATOR+set}" != set; then
5793   echo "#! /bin/sh" >conf$$.sh
5794   echo  "exit 0"   >>conf$$.sh
5795   chmod +x conf$$.sh
5796   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5797     PATH_SEPARATOR=';'
5798   else
5799     PATH_SEPARATOR=:
5800   fi
5801   rm -f conf$$.sh
5802 fi
5803
5804 # Find out how to test for executable files. Don't use a zero-byte file,
5805 # as systems may use methods other than mode bits to determine executability.
5806 cat >conf$$.file <<_ASEOF
5807 #! /bin/sh
5808 exit 0
5809 _ASEOF
5810 chmod +x conf$$.file
5811 if test -x conf$$.file >/dev/null 2>&1; then
5812   ac_executable_p="test -x"
5813 else
5814   ac_executable_p="test -f"
5815 fi
5816 rm -f conf$$.file
5817
5818 # Extract the first word of "msgfmt", so it can be a program name with args.
5819 set dummy msgfmt; ac_word=$2
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5821 $as_echo_n "checking for $ac_word... " >&6; }
5822 if test "${ac_cv_path_MSGFMT+set}" = set; then :
5823   $as_echo_n "(cached) " >&6
5824 else
5825   case "$MSGFMT" in
5826   [\\/]* | ?:[\\/]*)
5827     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5828     ;;
5829   *)
5830     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5831     for ac_dir in $PATH; do
5832       IFS="$ac_save_IFS"
5833       test -z "$ac_dir" && ac_dir=.
5834       for ac_exec_ext in '' $ac_executable_extensions; do
5835         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5836           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5837      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5838             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5839             break 2
5840           fi
5841         fi
5842       done
5843     done
5844     IFS="$ac_save_IFS"
5845   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5846     ;;
5847 esac
5848 fi
5849 MSGFMT="$ac_cv_path_MSGFMT"
5850 if test "$MSGFMT" != ":"; then
5851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5852 $as_echo "$MSGFMT" >&6; }
5853 else
5854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5855 $as_echo "no" >&6; }
5856 fi
5857
5858   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5859 set dummy gmsgfmt; ac_word=$2
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5861 $as_echo_n "checking for $ac_word... " >&6; }
5862 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5863   $as_echo_n "(cached) " >&6
5864 else
5865   case $GMSGFMT in
5866   [\\/]* | ?:[\\/]*)
5867   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5868   ;;
5869   *)
5870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 for as_dir in $PATH
5872 do
5873   IFS=$as_save_IFS
5874   test -z "$as_dir" && as_dir=.
5875     for ac_exec_ext in '' $ac_executable_extensions; do
5876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5877     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5879     break 2
5880   fi
5881 done
5882   done
5883 IFS=$as_save_IFS
5884
5885   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5886   ;;
5887 esac
5888 fi
5889 GMSGFMT=$ac_cv_path_GMSGFMT
5890 if test -n "$GMSGFMT"; then
5891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5892 $as_echo "$GMSGFMT" >&6; }
5893 else
5894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895 $as_echo "no" >&6; }
5896 fi
5897
5898
5899
5900
5901 # Prepare PATH_SEPARATOR.
5902 # The user is always right.
5903 if test "${PATH_SEPARATOR+set}" != set; then
5904   echo "#! /bin/sh" >conf$$.sh
5905   echo  "exit 0"   >>conf$$.sh
5906   chmod +x conf$$.sh
5907   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5908     PATH_SEPARATOR=';'
5909   else
5910     PATH_SEPARATOR=:
5911   fi
5912   rm -f conf$$.sh
5913 fi
5914
5915 # Find out how to test for executable files. Don't use a zero-byte file,
5916 # as systems may use methods other than mode bits to determine executability.
5917 cat >conf$$.file <<_ASEOF
5918 #! /bin/sh
5919 exit 0
5920 _ASEOF
5921 chmod +x conf$$.file
5922 if test -x conf$$.file >/dev/null 2>&1; then
5923   ac_executable_p="test -x"
5924 else
5925   ac_executable_p="test -f"
5926 fi
5927 rm -f conf$$.file
5928
5929 # Extract the first word of "xgettext", so it can be a program name with args.
5930 set dummy xgettext; ac_word=$2
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5932 $as_echo_n "checking for $ac_word... " >&6; }
5933 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5934   $as_echo_n "(cached) " >&6
5935 else
5936   case "$XGETTEXT" in
5937   [\\/]* | ?:[\\/]*)
5938     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5939     ;;
5940   *)
5941     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5942     for ac_dir in $PATH; do
5943       IFS="$ac_save_IFS"
5944       test -z "$ac_dir" && ac_dir=.
5945       for ac_exec_ext in '' $ac_executable_extensions; do
5946         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5947           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5948      (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
5949             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5950             break 2
5951           fi
5952         fi
5953       done
5954     done
5955     IFS="$ac_save_IFS"
5956   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5957     ;;
5958 esac
5959 fi
5960 XGETTEXT="$ac_cv_path_XGETTEXT"
5961 if test "$XGETTEXT" != ":"; then
5962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5963 $as_echo "$XGETTEXT" >&6; }
5964 else
5965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966 $as_echo "no" >&6; }
5967 fi
5968
5969     rm -f messages.po
5970
5971
5972 # Prepare PATH_SEPARATOR.
5973 # The user is always right.
5974 if test "${PATH_SEPARATOR+set}" != set; then
5975   echo "#! /bin/sh" >conf$$.sh
5976   echo  "exit 0"   >>conf$$.sh
5977   chmod +x conf$$.sh
5978   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5979     PATH_SEPARATOR=';'
5980   else
5981     PATH_SEPARATOR=:
5982   fi
5983   rm -f conf$$.sh
5984 fi
5985
5986 # Find out how to test for executable files. Don't use a zero-byte file,
5987 # as systems may use methods other than mode bits to determine executability.
5988 cat >conf$$.file <<_ASEOF
5989 #! /bin/sh
5990 exit 0
5991 _ASEOF
5992 chmod +x conf$$.file
5993 if test -x conf$$.file >/dev/null 2>&1; then
5994   ac_executable_p="test -x"
5995 else
5996   ac_executable_p="test -f"
5997 fi
5998 rm -f conf$$.file
5999
6000 # Extract the first word of "msgmerge", so it can be a program name with args.
6001 set dummy msgmerge; ac_word=$2
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003 $as_echo_n "checking for $ac_word... " >&6; }
6004 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
6005   $as_echo_n "(cached) " >&6
6006 else
6007   case "$MSGMERGE" in
6008   [\\/]* | ?:[\\/]*)
6009     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6010     ;;
6011   *)
6012     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6013     for ac_dir in $PATH; do
6014       IFS="$ac_save_IFS"
6015       test -z "$ac_dir" && ac_dir=.
6016       for ac_exec_ext in '' $ac_executable_extensions; do
6017         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6018           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6019             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6020             break 2
6021           fi
6022         fi
6023       done
6024     done
6025     IFS="$ac_save_IFS"
6026   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6027     ;;
6028 esac
6029 fi
6030 MSGMERGE="$ac_cv_path_MSGMERGE"
6031 if test "$MSGMERGE" != ":"; then
6032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6033 $as_echo "$MSGMERGE" >&6; }
6034 else
6035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036 $as_echo "no" >&6; }
6037 fi
6038
6039
6040       if test "$GMSGFMT" != ":"; then
6041             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6042        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6043       : ;
6044     else
6045       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6046       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6047 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6048       GMSGFMT=":"
6049     fi
6050   fi
6051
6052       if test "$XGETTEXT" != ":"; then
6053             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6054        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6055       : ;
6056     else
6057       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6058 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6059       XGETTEXT=":"
6060     fi
6061         rm -f messages.po
6062   fi
6063
6064   ac_config_commands="$ac_config_commands default-1"
6065
6066
6067 if test -n "$ac_tool_prefix"; then
6068   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6069 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6071 $as_echo_n "checking for $ac_word... " >&6; }
6072 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6073   $as_echo_n "(cached) " >&6
6074 else
6075   if test -n "$RANLIB"; then
6076   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6077 else
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 for as_dir in $PATH
6080 do
6081   IFS=$as_save_IFS
6082   test -z "$as_dir" && as_dir=.
6083     for ac_exec_ext in '' $ac_executable_extensions; do
6084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6085     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6087     break 2
6088   fi
6089 done
6090   done
6091 IFS=$as_save_IFS
6092
6093 fi
6094 fi
6095 RANLIB=$ac_cv_prog_RANLIB
6096 if test -n "$RANLIB"; then
6097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6098 $as_echo "$RANLIB" >&6; }
6099 else
6100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101 $as_echo "no" >&6; }
6102 fi
6103
6104
6105 fi
6106 if test -z "$ac_cv_prog_RANLIB"; then
6107   ac_ct_RANLIB=$RANLIB
6108   # Extract the first word of "ranlib", so it can be a program name with args.
6109 set dummy ranlib; ac_word=$2
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6111 $as_echo_n "checking for $ac_word... " >&6; }
6112 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6113   $as_echo_n "(cached) " >&6
6114 else
6115   if test -n "$ac_ct_RANLIB"; then
6116   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6117 else
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 for as_dir in $PATH
6120 do
6121   IFS=$as_save_IFS
6122   test -z "$as_dir" && as_dir=.
6123     for ac_exec_ext in '' $ac_executable_extensions; do
6124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6125     ac_cv_prog_ac_ct_RANLIB="ranlib"
6126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6127     break 2
6128   fi
6129 done
6130   done
6131 IFS=$as_save_IFS
6132
6133 fi
6134 fi
6135 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6136 if test -n "$ac_ct_RANLIB"; then
6137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6138 $as_echo "$ac_ct_RANLIB" >&6; }
6139 else
6140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141 $as_echo "no" >&6; }
6142 fi
6143
6144   if test "x$ac_ct_RANLIB" = x; then
6145     RANLIB=":"
6146   else
6147     case $cross_compiling:$ac_tool_warned in
6148 yes:)
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6151 ac_tool_warned=yes ;;
6152 esac
6153     RANLIB=$ac_ct_RANLIB
6154   fi
6155 else
6156   RANLIB="$ac_cv_prog_RANLIB"
6157 fi
6158
6159
6160         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6161 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6162 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
6163   $as_echo_n "(cached) " >&6
6164 else
6165   ac_check_lib_save_LIBS=$LIBS
6166 LIBS="-lcposix  $LIBS"
6167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168 /* end confdefs.h.  */
6169
6170 /* Override any GCC internal prototype to avoid an error.
6171    Use char because int might match the return type of a GCC
6172    builtin and then its argument prototype would still apply.  */
6173 #ifdef __cplusplus
6174 extern "C"
6175 #endif
6176 char strerror ();
6177 int
6178 main ()
6179 {
6180 return strerror ();
6181   ;
6182   return 0;
6183 }
6184 _ACEOF
6185 if ac_fn_c_try_link "$LINENO"; then :
6186   ac_cv_lib_cposix_strerror=yes
6187 else
6188   ac_cv_lib_cposix_strerror=no
6189 fi
6190 rm -f core conftest.err conftest.$ac_objext \
6191     conftest$ac_exeext conftest.$ac_ext
6192 LIBS=$ac_check_lib_save_LIBS
6193 fi
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6195 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6196 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
6197   LIBS="$LIBS -lcposix"
6198 fi
6199
6200
6201
6202
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6204 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6205 if test "${ac_cv_path_GREP+set}" = set; then :
6206   $as_echo_n "(cached) " >&6
6207 else
6208   if test -z "$GREP"; then
6209   ac_path_GREP_found=false
6210   # Loop through the user's path and test for each of PROGNAME-LIST
6211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6213 do
6214   IFS=$as_save_IFS
6215   test -z "$as_dir" && as_dir=.
6216     for ac_prog in grep ggrep; do
6217     for ac_exec_ext in '' $ac_executable_extensions; do
6218       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6219       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6220 # Check for GNU ac_path_GREP and select it if it is found.
6221   # Check for GNU $ac_path_GREP
6222 case `"$ac_path_GREP" --version 2>&1` in
6223 *GNU*)
6224   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6225 *)
6226   ac_count=0
6227   $as_echo_n 0123456789 >"conftest.in"
6228   while :
6229   do
6230     cat "conftest.in" "conftest.in" >"conftest.tmp"
6231     mv "conftest.tmp" "conftest.in"
6232     cp "conftest.in" "conftest.nl"
6233     $as_echo 'GREP' >> "conftest.nl"
6234     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6235     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6236     as_fn_arith $ac_count + 1 && ac_count=$as_val
6237     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6238       # Best one so far, save it but keep looking for a better one
6239       ac_cv_path_GREP="$ac_path_GREP"
6240       ac_path_GREP_max=$ac_count
6241     fi
6242     # 10*(2^10) chars as input seems more than enough
6243     test $ac_count -gt 10 && break
6244   done
6245   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6246 esac
6247
6248       $ac_path_GREP_found && break 3
6249     done
6250   done
6251   done
6252 IFS=$as_save_IFS
6253   if test -z "$ac_cv_path_GREP"; then
6254     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6255   fi
6256 else
6257   ac_cv_path_GREP=$GREP
6258 fi
6259
6260 fi
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6262 $as_echo "$ac_cv_path_GREP" >&6; }
6263  GREP="$ac_cv_path_GREP"
6264
6265
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6267 $as_echo_n "checking for egrep... " >&6; }
6268 if test "${ac_cv_path_EGREP+set}" = set; then :
6269   $as_echo_n "(cached) " >&6
6270 else
6271   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6272    then ac_cv_path_EGREP="$GREP -E"
6273    else
6274      if test -z "$EGREP"; then
6275   ac_path_EGREP_found=false
6276   # Loop through the user's path and test for each of PROGNAME-LIST
6277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6279 do
6280   IFS=$as_save_IFS
6281   test -z "$as_dir" && as_dir=.
6282     for ac_prog in egrep; do
6283     for ac_exec_ext in '' $ac_executable_extensions; do
6284       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6285       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6286 # Check for GNU ac_path_EGREP and select it if it is found.
6287   # Check for GNU $ac_path_EGREP
6288 case `"$ac_path_EGREP" --version 2>&1` in
6289 *GNU*)
6290   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6291 *)
6292   ac_count=0
6293   $as_echo_n 0123456789 >"conftest.in"
6294   while :
6295   do
6296     cat "conftest.in" "conftest.in" >"conftest.tmp"
6297     mv "conftest.tmp" "conftest.in"
6298     cp "conftest.in" "conftest.nl"
6299     $as_echo 'EGREP' >> "conftest.nl"
6300     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6301     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6302     as_fn_arith $ac_count + 1 && ac_count=$as_val
6303     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6304       # Best one so far, save it but keep looking for a better one
6305       ac_cv_path_EGREP="$ac_path_EGREP"
6306       ac_path_EGREP_max=$ac_count
6307     fi
6308     # 10*(2^10) chars as input seems more than enough
6309     test $ac_count -gt 10 && break
6310   done
6311   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6312 esac
6313
6314       $ac_path_EGREP_found && break 3
6315     done
6316   done
6317   done
6318 IFS=$as_save_IFS
6319   if test -z "$ac_cv_path_EGREP"; then
6320     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6321   fi
6322 else
6323   ac_cv_path_EGREP=$EGREP
6324 fi
6325
6326    fi
6327 fi
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6329 $as_echo "$ac_cv_path_EGREP" >&6; }
6330  EGREP="$ac_cv_path_EGREP"
6331
6332
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6334 $as_echo_n "checking for ANSI C header files... " >&6; }
6335 if test "${ac_cv_header_stdc+set}" = set; then :
6336   $as_echo_n "(cached) " >&6
6337 else
6338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h.  */
6340 #include <stdlib.h>
6341 #include <stdarg.h>
6342 #include <string.h>
6343 #include <float.h>
6344
6345 int
6346 main ()
6347 {
6348
6349   ;
6350   return 0;
6351 }
6352 _ACEOF
6353 if ac_fn_c_try_compile "$LINENO"; then :
6354   ac_cv_header_stdc=yes
6355 else
6356   ac_cv_header_stdc=no
6357 fi
6358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6359
6360 if test $ac_cv_header_stdc = yes; then
6361   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363 /* end confdefs.h.  */
6364 #include <string.h>
6365
6366 _ACEOF
6367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6368   $EGREP "memchr" >/dev/null 2>&1; then :
6369
6370 else
6371   ac_cv_header_stdc=no
6372 fi
6373 rm -f conftest*
6374
6375 fi
6376
6377 if test $ac_cv_header_stdc = yes; then
6378   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6380 /* end confdefs.h.  */
6381 #include <stdlib.h>
6382
6383 _ACEOF
6384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6385   $EGREP "free" >/dev/null 2>&1; then :
6386
6387 else
6388   ac_cv_header_stdc=no
6389 fi
6390 rm -f conftest*
6391
6392 fi
6393
6394 if test $ac_cv_header_stdc = yes; then
6395   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6396   if test "$cross_compiling" = yes; then :
6397   :
6398 else
6399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h.  */
6401 #include <ctype.h>
6402 #include <stdlib.h>
6403 #if ((' ' & 0x0FF) == 0x020)
6404 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6405 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6406 #else
6407 # define ISLOWER(c) \
6408                    (('a' <= (c) && (c) <= 'i') \
6409                      || ('j' <= (c) && (c) <= 'r') \
6410                      || ('s' <= (c) && (c) <= 'z'))
6411 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6412 #endif
6413
6414 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6415 int
6416 main ()
6417 {
6418   int i;
6419   for (i = 0; i < 256; i++)
6420     if (XOR (islower (i), ISLOWER (i))
6421         || toupper (i) != TOUPPER (i))
6422       return 2;
6423   return 0;
6424 }
6425 _ACEOF
6426 if ac_fn_c_try_run "$LINENO"; then :
6427
6428 else
6429   ac_cv_header_stdc=no
6430 fi
6431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6432   conftest.$ac_objext conftest.beam conftest.$ac_ext
6433 fi
6434
6435 fi
6436 fi
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6438 $as_echo "$ac_cv_header_stdc" >&6; }
6439 if test $ac_cv_header_stdc = yes; then
6440
6441 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6442
6443 fi
6444
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6446 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6447 if test "${ac_cv_c_const+set}" = set; then :
6448   $as_echo_n "(cached) " >&6
6449 else
6450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h.  */
6452
6453 int
6454 main ()
6455 {
6456 /* FIXME: Include the comments suggested by Paul. */
6457 #ifndef __cplusplus
6458   /* Ultrix mips cc rejects this.  */
6459   typedef int charset[2];
6460   const charset cs;
6461   /* SunOS 4.1.1 cc rejects this.  */
6462   char const *const *pcpcc;
6463   char **ppc;
6464   /* NEC SVR4.0.2 mips cc rejects this.  */
6465   struct point {int x, y;};
6466   static struct point const zero = {0,0};
6467   /* AIX XL C 1.02.0.0 rejects this.
6468      It does not let you subtract one const X* pointer from another in
6469      an arm of an if-expression whose if-part is not a constant
6470      expression */
6471   const char *g = "string";
6472   pcpcc = &g + (g ? g-g : 0);
6473   /* HPUX 7.0 cc rejects these. */
6474   ++pcpcc;
6475   ppc = (char**) pcpcc;
6476   pcpcc = (char const *const *) ppc;
6477   { /* SCO 3.2v4 cc rejects this.  */
6478     char *t;
6479     char const *s = 0 ? (char *) 0 : (char const *) 0;
6480
6481     *t++ = 0;
6482     if (s) return 0;
6483   }
6484   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6485     int x[] = {25, 17};
6486     const int *foo = &x[0];
6487     ++foo;
6488   }
6489   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6490     typedef const int *iptr;
6491     iptr p = 0;
6492     ++p;
6493   }
6494   { /* AIX XL C 1.02.0.0 rejects this saying
6495        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6496     struct s { int j; const int *ap[3]; };
6497     struct s *b; b->j = 5;
6498   }
6499   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6500     const int foo = 10;
6501     if (!foo) return 0;
6502   }
6503   return !cs[0] && !zero.x;
6504 #endif
6505
6506   ;
6507   return 0;
6508 }
6509 _ACEOF
6510 if ac_fn_c_try_compile "$LINENO"; then :
6511   ac_cv_c_const=yes
6512 else
6513   ac_cv_c_const=no
6514 fi
6515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6516 fi
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6518 $as_echo "$ac_cv_c_const" >&6; }
6519 if test $ac_cv_c_const = no; then
6520
6521 $as_echo "#define const /**/" >>confdefs.h
6522
6523 fi
6524
6525
6526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6527 $as_echo_n "checking for signed... " >&6; }
6528 if test "${bh_cv_c_signed+set}" = set; then :
6529   $as_echo_n "(cached) " >&6
6530 else
6531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6532 /* end confdefs.h.  */
6533
6534 int
6535 main ()
6536 {
6537 signed char x;
6538   ;
6539   return 0;
6540 }
6541 _ACEOF
6542 if ac_fn_c_try_compile "$LINENO"; then :
6543   bh_cv_c_signed=yes
6544 else
6545   bh_cv_c_signed=no
6546 fi
6547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548 fi
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6550 $as_echo "$bh_cv_c_signed" >&6; }
6551   if test $bh_cv_c_signed = no; then
6552
6553 $as_echo "#define signed /**/" >>confdefs.h
6554
6555   fi
6556
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6558 $as_echo_n "checking for inline... " >&6; }
6559 if test "${ac_cv_c_inline+set}" = set; then :
6560   $as_echo_n "(cached) " >&6
6561 else
6562   ac_cv_c_inline=no
6563 for ac_kw in inline __inline__ __inline; do
6564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565 /* end confdefs.h.  */
6566 #ifndef __cplusplus
6567 typedef int foo_t;
6568 static $ac_kw foo_t static_foo () {return 0; }
6569 $ac_kw foo_t foo () {return 0; }
6570 #endif
6571
6572 _ACEOF
6573 if ac_fn_c_try_compile "$LINENO"; then :
6574   ac_cv_c_inline=$ac_kw
6575 fi
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577   test "$ac_cv_c_inline" != no && break
6578 done
6579
6580 fi
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6582 $as_echo "$ac_cv_c_inline" >&6; }
6583
6584 case $ac_cv_c_inline in
6585   inline | yes) ;;
6586   *)
6587     case $ac_cv_c_inline in
6588       no) ac_val=;;
6589       *) ac_val=$ac_cv_c_inline;;
6590     esac
6591     cat >>confdefs.h <<_ACEOF
6592 #ifndef __cplusplus
6593 #define inline $ac_val
6594 #endif
6595 _ACEOF
6596     ;;
6597 esac
6598
6599 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6600 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6601                   inttypes.h stdint.h unistd.h
6602 do :
6603   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6604 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6605 "
6606 eval as_val=\$$as_ac_Header
6607    if test "x$as_val" = x""yes; then :
6608   cat >>confdefs.h <<_ACEOF
6609 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6610 _ACEOF
6611
6612 fi
6613
6614 done
6615
6616
6617 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6618 if test "x$ac_cv_type_off_t" = x""yes; then :
6619
6620 else
6621
6622 cat >>confdefs.h <<_ACEOF
6623 #define off_t long int
6624 _ACEOF
6625
6626 fi
6627
6628 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6629 if test "x$ac_cv_type_size_t" = x""yes; then :
6630
6631 else
6632
6633 cat >>confdefs.h <<_ACEOF
6634 #define size_t unsigned int
6635 _ACEOF
6636
6637 fi
6638
6639
6640   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6641 $as_echo_n "checking for long long... " >&6; }
6642 if test "${ac_cv_type_long_long+set}" = set; then :
6643   $as_echo_n "(cached) " >&6
6644 else
6645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646 /* end confdefs.h.  */
6647 long long ll = 1LL; int i = 63;
6648 int
6649 main ()
6650 {
6651 long long llmax = (long long) -1;
6652      return ll << i | ll >> i | llmax / ll | llmax % ll;
6653   ;
6654   return 0;
6655 }
6656 _ACEOF
6657 if ac_fn_c_try_link "$LINENO"; then :
6658   ac_cv_type_long_long=yes
6659 else
6660   ac_cv_type_long_long=no
6661 fi
6662 rm -f core conftest.err conftest.$ac_objext \
6663     conftest$ac_exeext conftest.$ac_ext
6664 fi
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6666 $as_echo "$ac_cv_type_long_long" >&6; }
6667   if test $ac_cv_type_long_long = yes; then
6668
6669 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6670
6671   fi
6672
6673
6674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6675 $as_echo_n "checking for long double... " >&6; }
6676 if test "${gt_cv_c_long_double+set}" = set; then :
6677   $as_echo_n "(cached) " >&6
6678 else
6679   if test "$GCC" = yes; then
6680        gt_cv_c_long_double=yes
6681      else
6682        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h.  */
6684
6685          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
6686          long double foo = 0.0;
6687          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
6688          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6689
6690 int
6691 main ()
6692 {
6693
6694   ;
6695   return 0;
6696 }
6697 _ACEOF
6698 if ac_fn_c_try_compile "$LINENO"; then :
6699   gt_cv_c_long_double=yes
6700 else
6701   gt_cv_c_long_double=no
6702 fi
6703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6704      fi
6705 fi
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6707 $as_echo "$gt_cv_c_long_double" >&6; }
6708   if test $gt_cv_c_long_double = yes; then
6709
6710 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6711
6712   fi
6713
6714
6715   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6716 $as_echo_n "checking for wchar_t... " >&6; }
6717 if test "${gt_cv_c_wchar_t+set}" = set; then :
6718   $as_echo_n "(cached) " >&6
6719 else
6720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721 /* end confdefs.h.  */
6722 #include <stddef.h>
6723        wchar_t foo = (wchar_t)'\0';
6724 int
6725 main ()
6726 {
6727
6728   ;
6729   return 0;
6730 }
6731 _ACEOF
6732 if ac_fn_c_try_compile "$LINENO"; then :
6733   gt_cv_c_wchar_t=yes
6734 else
6735   gt_cv_c_wchar_t=no
6736 fi
6737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6738 fi
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6740 $as_echo "$gt_cv_c_wchar_t" >&6; }
6741   if test $gt_cv_c_wchar_t = yes; then
6742
6743 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6744
6745   fi
6746
6747
6748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6749 $as_echo_n "checking for wint_t... " >&6; }
6750 if test "${gt_cv_c_wint_t+set}" = set; then :
6751   $as_echo_n "(cached) " >&6
6752 else
6753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h.  */
6755 #include <wchar.h>
6756        wint_t foo = (wchar_t)'\0';
6757 int
6758 main ()
6759 {
6760
6761   ;
6762   return 0;
6763 }
6764 _ACEOF
6765 if ac_fn_c_try_compile "$LINENO"; then :
6766   gt_cv_c_wint_t=yes
6767 else
6768   gt_cv_c_wint_t=no
6769 fi
6770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6771 fi
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6773 $as_echo "$gt_cv_c_wint_t" >&6; }
6774   if test $gt_cv_c_wint_t = yes; then
6775
6776 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6777
6778   fi
6779
6780
6781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6782 $as_echo_n "checking for inttypes.h... " >&6; }
6783 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
6784   $as_echo_n "(cached) " >&6
6785 else
6786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787 /* end confdefs.h.  */
6788 #include <sys/types.h>
6789 #include <inttypes.h>
6790 int
6791 main ()
6792 {
6793 uintmax_t i = (uintmax_t) -1;
6794   ;
6795   return 0;
6796 }
6797 _ACEOF
6798 if ac_fn_c_try_compile "$LINENO"; then :
6799   jm_ac_cv_header_inttypes_h=yes
6800 else
6801   jm_ac_cv_header_inttypes_h=no
6802 fi
6803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6804 fi
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6806 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6807   if test $jm_ac_cv_header_inttypes_h = yes; then
6808
6809 cat >>confdefs.h <<_ACEOF
6810 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6811 _ACEOF
6812
6813   fi
6814
6815
6816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6817 $as_echo_n "checking for stdint.h... " >&6; }
6818 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
6819   $as_echo_n "(cached) " >&6
6820 else
6821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h.  */
6823 #include <sys/types.h>
6824 #include <stdint.h>
6825 int
6826 main ()
6827 {
6828 uintmax_t i = (uintmax_t) -1;
6829   ;
6830   return 0;
6831 }
6832 _ACEOF
6833 if ac_fn_c_try_compile "$LINENO"; then :
6834   jm_ac_cv_header_stdint_h=yes
6835 else
6836   jm_ac_cv_header_stdint_h=no
6837 fi
6838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6839 fi
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6841 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6842   if test $jm_ac_cv_header_stdint_h = yes; then
6843
6844 cat >>confdefs.h <<_ACEOF
6845 #define HAVE_STDINT_H_WITH_UINTMAX 1
6846 _ACEOF
6847
6848   fi
6849
6850
6851
6852
6853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6854 $as_echo_n "checking for intmax_t... " >&6; }
6855 if test "${gt_cv_c_intmax_t+set}" = set; then :
6856   $as_echo_n "(cached) " >&6
6857 else
6858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h.  */
6860
6861 #include <stddef.h>
6862 #include <stdlib.h>
6863 #if HAVE_STDINT_H_WITH_UINTMAX
6864 #include <stdint.h>
6865 #endif
6866 #if HAVE_INTTYPES_H_WITH_UINTMAX
6867 #include <inttypes.h>
6868 #endif
6869
6870 int
6871 main ()
6872 {
6873 intmax_t x = -1;
6874   ;
6875   return 0;
6876 }
6877 _ACEOF
6878 if ac_fn_c_try_compile "$LINENO"; then :
6879   gt_cv_c_intmax_t=yes
6880 else
6881   gt_cv_c_intmax_t=no
6882 fi
6883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6884 fi
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6886 $as_echo "$gt_cv_c_intmax_t" >&6; }
6887   if test $gt_cv_c_intmax_t = yes; then
6888
6889 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6890
6891   fi
6892
6893
6894
6895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6896 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6897 if test "${gt_cv_func_printf_posix+set}" = set; then :
6898   $as_echo_n "(cached) " >&6
6899 else
6900
6901       if test "$cross_compiling" = yes; then :
6902
6903         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h.  */
6905
6906 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6907   notposix
6908 #endif
6909
6910 _ACEOF
6911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6912   $EGREP "notposix" >/dev/null 2>&1; then :
6913   gt_cv_func_printf_posix="guessing no"
6914 else
6915   gt_cv_func_printf_posix="guessing yes"
6916 fi
6917 rm -f conftest*
6918
6919
6920 else
6921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922 /* end confdefs.h.  */
6923
6924 #include <stdio.h>
6925 #include <string.h>
6926 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6927    dollar expansion (possibly an autoconf bug).  */
6928 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6929 static char buf[100];
6930 int main ()
6931 {
6932   sprintf (buf, format, 33, 55);
6933   return (strcmp (buf, "55 33") != 0);
6934 }
6935 _ACEOF
6936 if ac_fn_c_try_run "$LINENO"; then :
6937   gt_cv_func_printf_posix=yes
6938 else
6939   gt_cv_func_printf_posix=no
6940 fi
6941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6942   conftest.$ac_objext conftest.beam conftest.$ac_ext
6943 fi
6944
6945
6946 fi
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6948 $as_echo "$gt_cv_func_printf_posix" >&6; }
6949   case $gt_cv_func_printf_posix in
6950     *yes)
6951
6952 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6953
6954       ;;
6955   esac
6956
6957 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6958 # for constant arguments.  Useless!
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6960 $as_echo_n "checking for working alloca.h... " >&6; }
6961 if test "${ac_cv_working_alloca_h+set}" = set; then :
6962   $as_echo_n "(cached) " >&6
6963 else
6964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h.  */
6966 #include <alloca.h>
6967 int
6968 main ()
6969 {
6970 char *p = (char *) alloca (2 * sizeof (int));
6971                           if (p) return 0;
6972   ;
6973   return 0;
6974 }
6975 _ACEOF
6976 if ac_fn_c_try_link "$LINENO"; then :
6977   ac_cv_working_alloca_h=yes
6978 else
6979   ac_cv_working_alloca_h=no
6980 fi
6981 rm -f core conftest.err conftest.$ac_objext \
6982     conftest$ac_exeext conftest.$ac_ext
6983 fi
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6985 $as_echo "$ac_cv_working_alloca_h" >&6; }
6986 if test $ac_cv_working_alloca_h = yes; then
6987
6988 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6989
6990 fi
6991
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6993 $as_echo_n "checking for alloca... " >&6; }
6994 if test "${ac_cv_func_alloca_works+set}" = set; then :
6995   $as_echo_n "(cached) " >&6
6996 else
6997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h.  */
6999 #ifdef __GNUC__
7000 # define alloca __builtin_alloca
7001 #else
7002 # ifdef _MSC_VER
7003 #  include <malloc.h>
7004 #  define alloca _alloca
7005 # else
7006 #  ifdef HAVE_ALLOCA_H
7007 #   include <alloca.h>
7008 #  else
7009 #   ifdef _AIX
7010  #pragma alloca
7011 #   else
7012 #    ifndef alloca /* predefined by HP cc +Olibcalls */
7013 char *alloca ();
7014 #    endif
7015 #   endif
7016 #  endif
7017 # endif
7018 #endif
7019
7020 int
7021 main ()
7022 {
7023 char *p = (char *) alloca (1);
7024                                     if (p) return 0;
7025   ;
7026   return 0;
7027 }
7028 _ACEOF
7029 if ac_fn_c_try_link "$LINENO"; then :
7030   ac_cv_func_alloca_works=yes
7031 else
7032   ac_cv_func_alloca_works=no
7033 fi
7034 rm -f core conftest.err conftest.$ac_objext \
7035     conftest$ac_exeext conftest.$ac_ext
7036 fi
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7038 $as_echo "$ac_cv_func_alloca_works" >&6; }
7039
7040 if test $ac_cv_func_alloca_works = yes; then
7041
7042 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7043
7044 else
7045   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7046 # that cause trouble.  Some versions do not even contain alloca or
7047 # contain a buggy version.  If you still want to use their alloca,
7048 # use ar to extract alloca.o from them instead of compiling alloca.c.
7049
7050 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7051
7052 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7053
7054
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7056 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7057 if test "${ac_cv_os_cray+set}" = set; then :
7058   $as_echo_n "(cached) " >&6
7059 else
7060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061 /* end confdefs.h.  */
7062 #if defined CRAY && ! defined CRAY2
7063 webecray
7064 #else
7065 wenotbecray
7066 #endif
7067
7068 _ACEOF
7069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7070   $EGREP "webecray" >/dev/null 2>&1; then :
7071   ac_cv_os_cray=yes
7072 else
7073   ac_cv_os_cray=no
7074 fi
7075 rm -f conftest*
7076
7077 fi
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7079 $as_echo "$ac_cv_os_cray" >&6; }
7080 if test $ac_cv_os_cray = yes; then
7081   for ac_func in _getb67 GETB67 getb67; do
7082     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7083 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7084 eval as_val=\$$as_ac_var
7085    if test "x$as_val" = x""yes; then :
7086
7087 cat >>confdefs.h <<_ACEOF
7088 #define CRAY_STACKSEG_END $ac_func
7089 _ACEOF
7090
7091     break
7092 fi
7093
7094   done
7095 fi
7096
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7098 $as_echo_n "checking stack direction for C alloca... " >&6; }
7099 if test "${ac_cv_c_stack_direction+set}" = set; then :
7100   $as_echo_n "(cached) " >&6
7101 else
7102   if test "$cross_compiling" = yes; then :
7103   ac_cv_c_stack_direction=0
7104 else
7105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106 /* end confdefs.h.  */
7107 $ac_includes_default
7108 int
7109 find_stack_direction ()
7110 {
7111   static char *addr = 0;
7112   auto char dummy;
7113   if (addr == 0)
7114     {
7115       addr = &dummy;
7116       return find_stack_direction ();
7117     }
7118   else
7119     return (&dummy > addr) ? 1 : -1;
7120 }
7121
7122 int
7123 main ()
7124 {
7125   return find_stack_direction () < 0;
7126 }
7127 _ACEOF
7128 if ac_fn_c_try_run "$LINENO"; then :
7129   ac_cv_c_stack_direction=1
7130 else
7131   ac_cv_c_stack_direction=-1
7132 fi
7133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7134   conftest.$ac_objext conftest.beam conftest.$ac_ext
7135 fi
7136
7137 fi
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7139 $as_echo "$ac_cv_c_stack_direction" >&6; }
7140 cat >>confdefs.h <<_ACEOF
7141 #define STACK_DIRECTION $ac_cv_c_stack_direction
7142 _ACEOF
7143
7144
7145 fi
7146
7147
7148
7149
7150   for ac_header in $ac_header_list
7151 do :
7152   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7153 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7154 "
7155 eval as_val=\$$as_ac_Header
7156    if test "x$as_val" = x""yes; then :
7157   cat >>confdefs.h <<_ACEOF
7158 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7159 _ACEOF
7160
7161 fi
7162
7163 done
7164
7165
7166
7167
7168
7169
7170
7171
7172 for ac_func in getpagesize
7173 do :
7174   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7175 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7176   cat >>confdefs.h <<_ACEOF
7177 #define HAVE_GETPAGESIZE 1
7178 _ACEOF
7179
7180 fi
7181 done
7182
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7184 $as_echo_n "checking for working mmap... " >&6; }
7185 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7186   $as_echo_n "(cached) " >&6
7187 else
7188   if test "$cross_compiling" = yes; then :
7189   ac_cv_func_mmap_fixed_mapped=no
7190 else
7191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h.  */
7193 $ac_includes_default
7194 /* malloc might have been renamed as rpl_malloc. */
7195 #undef malloc
7196
7197 /* Thanks to Mike Haertel and Jim Avera for this test.
7198    Here is a matrix of mmap possibilities:
7199         mmap private not fixed
7200         mmap private fixed at somewhere currently unmapped
7201         mmap private fixed at somewhere already mapped
7202         mmap shared not fixed
7203         mmap shared fixed at somewhere currently unmapped
7204         mmap shared fixed at somewhere already mapped
7205    For private mappings, we should verify that changes cannot be read()
7206    back from the file, nor mmap's back from the file at a different
7207    address.  (There have been systems where private was not correctly
7208    implemented like the infamous i386 svr4.0, and systems where the
7209    VM page cache was not coherent with the file system buffer cache
7210    like early versions of FreeBSD and possibly contemporary NetBSD.)
7211    For shared mappings, we should conversely verify that changes get
7212    propagated back to all the places they're supposed to be.
7213
7214    Grep wants private fixed already mapped.
7215    The main things grep needs to know about mmap are:
7216    * does it exist and is it safe to write into the mmap'd area
7217    * how to use it (BSD variants)  */
7218
7219 #include <fcntl.h>
7220 #include <sys/mman.h>
7221
7222 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7223 char *malloc ();
7224 #endif
7225
7226 /* This mess was copied from the GNU getpagesize.h.  */
7227 #ifndef HAVE_GETPAGESIZE
7228 # ifdef _SC_PAGESIZE
7229 #  define getpagesize() sysconf(_SC_PAGESIZE)
7230 # else /* no _SC_PAGESIZE */
7231 #  ifdef HAVE_SYS_PARAM_H
7232 #   include <sys/param.h>
7233 #   ifdef EXEC_PAGESIZE
7234 #    define getpagesize() EXEC_PAGESIZE
7235 #   else /* no EXEC_PAGESIZE */
7236 #    ifdef NBPG
7237 #     define getpagesize() NBPG * CLSIZE
7238 #     ifndef CLSIZE
7239 #      define CLSIZE 1
7240 #     endif /* no CLSIZE */
7241 #    else /* no NBPG */
7242 #     ifdef NBPC
7243 #      define getpagesize() NBPC
7244 #     else /* no NBPC */
7245 #      ifdef PAGESIZE
7246 #       define getpagesize() PAGESIZE
7247 #      endif /* PAGESIZE */
7248 #     endif /* no NBPC */
7249 #    endif /* no NBPG */
7250 #   endif /* no EXEC_PAGESIZE */
7251 #  else /* no HAVE_SYS_PARAM_H */
7252 #   define getpagesize() 8192   /* punt totally */
7253 #  endif /* no HAVE_SYS_PARAM_H */
7254 # endif /* no _SC_PAGESIZE */
7255
7256 #endif /* no HAVE_GETPAGESIZE */
7257
7258 int
7259 main ()
7260 {
7261   char *data, *data2, *data3;
7262   const char *cdata2;
7263   int i, pagesize;
7264   int fd, fd2;
7265
7266   pagesize = getpagesize ();
7267
7268   /* First, make a file with some known garbage in it. */
7269   data = (char *) malloc (pagesize);
7270   if (!data)
7271     return 1;
7272   for (i = 0; i < pagesize; ++i)
7273     *(data + i) = rand ();
7274   umask (0);
7275   fd = creat ("conftest.mmap", 0600);
7276   if (fd < 0)
7277     return 2;
7278   if (write (fd, data, pagesize) != pagesize)
7279     return 3;
7280   close (fd);
7281
7282   /* Next, check that the tail of a page is zero-filled.  File must have
7283      non-zero length, otherwise we risk SIGBUS for entire page.  */
7284   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7285   if (fd2 < 0)
7286     return 4;
7287   cdata2 = "";
7288   if (write (fd2, cdata2, 1) != 1)
7289     return 5;
7290   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7291   if (data2 == MAP_FAILED)
7292     return 6;
7293   for (i = 0; i < pagesize; ++i)
7294     if (*(data2 + i))
7295       return 7;
7296   close (fd2);
7297   if (munmap (data2, pagesize))
7298     return 8;
7299
7300   /* Next, try to mmap the file at a fixed address which already has
7301      something else allocated at it.  If we can, also make sure that
7302      we see the same garbage.  */
7303   fd = open ("conftest.mmap", O_RDWR);
7304   if (fd < 0)
7305     return 9;
7306   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7307                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7308     return 10;
7309   for (i = 0; i < pagesize; ++i)
7310     if (*(data + i) != *(data2 + i))
7311       return 11;
7312
7313   /* Finally, make sure that changes to the mapped area do not
7314      percolate back to the file as seen by read().  (This is a bug on
7315      some variants of i386 svr4.0.)  */
7316   for (i = 0; i < pagesize; ++i)
7317     *(data2 + i) = *(data2 + i) + 1;
7318   data3 = (char *) malloc (pagesize);
7319   if (!data3)
7320     return 12;
7321   if (read (fd, data3, pagesize) != pagesize)
7322     return 13;
7323   for (i = 0; i < pagesize; ++i)
7324     if (*(data + i) != *(data3 + i))
7325       return 14;
7326   close (fd);
7327   return 0;
7328 }
7329 _ACEOF
7330 if ac_fn_c_try_run "$LINENO"; then :
7331   ac_cv_func_mmap_fixed_mapped=yes
7332 else
7333   ac_cv_func_mmap_fixed_mapped=no
7334 fi
7335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7336   conftest.$ac_objext conftest.beam conftest.$ac_ext
7337 fi
7338
7339 fi
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7341 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7342 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7343
7344 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7345
7346 fi
7347 rm -f conftest.mmap conftest.txt
7348
7349
7350     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7351 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7352 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7353   $as_echo_n "(cached) " >&6
7354 else
7355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356 /* end confdefs.h.  */
7357
7358 #include <features.h>
7359 #ifdef __GNU_LIBRARY__
7360  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7361   Lucky GNU user
7362  #endif
7363 #endif
7364
7365 _ACEOF
7366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7367   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7368   ac_cv_gnu_library_2_1=yes
7369 else
7370   ac_cv_gnu_library_2_1=no
7371 fi
7372 rm -f conftest*
7373
7374
7375
7376 fi
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7378 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7379
7380     GLIBC21="$ac_cv_gnu_library_2_1"
7381
7382
7383
7384
7385   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7386 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7387 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
7388   $as_echo_n "(cached) " >&6
7389 else
7390
7391       if test "$cross_compiling" = yes; then :
7392
7393           # Guess based on the CPU.
7394           case "$host_cpu" in
7395             alpha* | i3456786 | m68k | s390*)
7396               gt_cv_int_divbyzero_sigfpe="guessing yes";;
7397             *)
7398               gt_cv_int_divbyzero_sigfpe="guessing no";;
7399           esac
7400
7401 else
7402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403 /* end confdefs.h.  */
7404
7405 #include <stdlib.h>
7406 #include <signal.h>
7407
7408 static void
7409 #ifdef __cplusplus
7410 sigfpe_handler (int sig)
7411 #else
7412 sigfpe_handler (sig) int sig;
7413 #endif
7414 {
7415   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7416   exit (sig != SIGFPE);
7417 }
7418
7419 int x = 1;
7420 int y = 0;
7421 int z;
7422 int nan;
7423
7424 int main ()
7425 {
7426   signal (SIGFPE, sigfpe_handler);
7427 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7428 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7429   signal (SIGTRAP, sigfpe_handler);
7430 #endif
7431 /* Linux/SPARC yields signal SIGILL.  */
7432 #if defined (__sparc__) && defined (__linux__)
7433   signal (SIGILL, sigfpe_handler);
7434 #endif
7435
7436   z = x / y;
7437   nan = y / y;
7438   exit (1);
7439 }
7440
7441 _ACEOF
7442 if ac_fn_c_try_run "$LINENO"; then :
7443   gt_cv_int_divbyzero_sigfpe=yes
7444 else
7445   gt_cv_int_divbyzero_sigfpe=no
7446 fi
7447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7448   conftest.$ac_objext conftest.beam conftest.$ac_ext
7449 fi
7450
7451
7452 fi
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7454 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7455   case "$gt_cv_int_divbyzero_sigfpe" in
7456     *yes) value=1;;
7457     *) value=0;;
7458   esac
7459
7460 cat >>confdefs.h <<_ACEOF
7461 #define INTDIV0_RAISES_SIGFPE $value
7462 _ACEOF
7463
7464
7465
7466   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7467 $as_echo_n "checking for unsigned long long... " >&6; }
7468 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
7469   $as_echo_n "(cached) " >&6
7470 else
7471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472 /* end confdefs.h.  */
7473 unsigned long long ull = 1ULL; int i = 63;
7474 int
7475 main ()
7476 {
7477 unsigned long long ullmax = (unsigned long long) -1;
7478      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7479   ;
7480   return 0;
7481 }
7482 _ACEOF
7483 if ac_fn_c_try_link "$LINENO"; then :
7484   ac_cv_type_unsigned_long_long=yes
7485 else
7486   ac_cv_type_unsigned_long_long=no
7487 fi
7488 rm -f core conftest.err conftest.$ac_objext \
7489     conftest$ac_exeext conftest.$ac_ext
7490 fi
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7492 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7493   if test $ac_cv_type_unsigned_long_long = yes; then
7494
7495 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7496
7497   fi
7498
7499
7500
7501
7502   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7503
7504     test $ac_cv_type_unsigned_long_long = yes \
7505       && ac_type='unsigned long long' \
7506       || ac_type='unsigned long'
7507
7508 cat >>confdefs.h <<_ACEOF
7509 #define uintmax_t $ac_type
7510 _ACEOF
7511
7512   else
7513
7514 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7515
7516   fi
7517
7518
7519   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7520 $as_echo_n "checking for inttypes.h... " >&6; }
7521 if test "${gt_cv_header_inttypes_h+set}" = set; then :
7522   $as_echo_n "(cached) " >&6
7523 else
7524
7525     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526 /* end confdefs.h.  */
7527 #include <sys/types.h>
7528 #include <inttypes.h>
7529 int
7530 main ()
7531 {
7532
7533   ;
7534   return 0;
7535 }
7536 _ACEOF
7537 if ac_fn_c_try_compile "$LINENO"; then :
7538   gt_cv_header_inttypes_h=yes
7539 else
7540   gt_cv_header_inttypes_h=no
7541 fi
7542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7543
7544 fi
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7546 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7547   if test $gt_cv_header_inttypes_h = yes; then
7548
7549 cat >>confdefs.h <<_ACEOF
7550 #define HAVE_INTTYPES_H 1
7551 _ACEOF
7552
7553   fi
7554
7555
7556
7557   if test $gt_cv_header_inttypes_h = yes; then
7558     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7559 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7560 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7561   $as_echo_n "(cached) " >&6
7562 else
7563
7564         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h.  */
7566 #include <inttypes.h>
7567 #ifdef PRId32
7568 char *p = PRId32;
7569 #endif
7570
7571 int
7572 main ()
7573 {
7574
7575   ;
7576   return 0;
7577 }
7578 _ACEOF
7579 if ac_fn_c_try_compile "$LINENO"; then :
7580   gt_cv_inttypes_pri_broken=no
7581 else
7582   gt_cv_inttypes_pri_broken=yes
7583 fi
7584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7585
7586 fi
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7588 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7589   fi
7590   if test "$gt_cv_inttypes_pri_broken" = yes; then
7591
7592 cat >>confdefs.h <<_ACEOF
7593 #define PRI_MACROS_BROKEN 1
7594 _ACEOF
7595
7596   fi
7597
7598
7599   for ac_header in stdint.h
7600 do :
7601   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7602 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7603   cat >>confdefs.h <<_ACEOF
7604 #define HAVE_STDINT_H 1
7605 _ACEOF
7606
7607 fi
7608
7609 done
7610
7611     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7612 $as_echo_n "checking for SIZE_MAX... " >&6; }
7613   result=
7614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615 /* end confdefs.h.  */
7616
7617 #include <limits.h>
7618 #if HAVE_STDINT_H
7619 #include <stdint.h>
7620 #endif
7621 #ifdef SIZE_MAX
7622 Found it
7623 #endif
7624
7625 _ACEOF
7626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7627   $EGREP "Found it" >/dev/null 2>&1; then :
7628   result=yes
7629 fi
7630 rm -f conftest*
7631
7632   if test -z "$result"; then
7633                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
7634
7635 else
7636   result=?
7637 fi
7638
7639
7640     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
7641
7642 else
7643   result=?
7644 fi
7645
7646
7647     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
7648
7649 else
7650   result=?
7651 fi
7652
7653
7654     if test "$fits_in_uint" = 1; then
7655                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h.  */
7657 #include <stddef.h>
7658         extern size_t foo;
7659         extern unsigned long foo;
7660
7661 int
7662 main ()
7663 {
7664
7665   ;
7666   return 0;
7667 }
7668 _ACEOF
7669 if ac_fn_c_try_compile "$LINENO"; then :
7670   fits_in_uint=0
7671 fi
7672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7673     fi
7674     if test -z "$result"; then
7675       if test "$fits_in_uint" = 1; then
7676         result="$res_hi$res_lo"U
7677       else
7678         result="$res_hi$res_lo"UL
7679       fi
7680     else
7681             result='~(size_t)0'
7682     fi
7683   fi
7684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7685 $as_echo "$result" >&6; }
7686   if test "$result" != yes; then
7687
7688 cat >>confdefs.h <<_ACEOF
7689 #define SIZE_MAX $result
7690 _ACEOF
7691
7692   fi
7693
7694
7695
7696   for ac_header in stdint.h
7697 do :
7698   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7699 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7700   cat >>confdefs.h <<_ACEOF
7701 #define HAVE_STDINT_H 1
7702 _ACEOF
7703
7704 fi
7705
7706 done
7707
7708
7709
7710       if test "X$prefix" = "XNONE"; then
7711     acl_final_prefix="$ac_default_prefix"
7712   else
7713     acl_final_prefix="$prefix"
7714   fi
7715   if test "X$exec_prefix" = "XNONE"; then
7716     acl_final_exec_prefix='${prefix}'
7717   else
7718     acl_final_exec_prefix="$exec_prefix"
7719   fi
7720   acl_save_prefix="$prefix"
7721   prefix="$acl_final_prefix"
7722   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7723   prefix="$acl_save_prefix"
7724
7725
7726 # Check whether --with-gnu-ld was given.
7727 if test "${with_gnu_ld+set}" = set; then :
7728   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7729 else
7730   with_gnu_ld=no
7731 fi
7732
7733 # Prepare PATH_SEPARATOR.
7734 # The user is always right.
7735 if test "${PATH_SEPARATOR+set}" != set; then
7736   echo "#! /bin/sh" >conf$$.sh
7737   echo  "exit 0"   >>conf$$.sh
7738   chmod +x conf$$.sh
7739   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7740     PATH_SEPARATOR=';'
7741   else
7742     PATH_SEPARATOR=:
7743   fi
7744   rm -f conf$$.sh
7745 fi
7746 ac_prog=ld
7747 if test "$GCC" = yes; then
7748   # Check if gcc -print-prog-name=ld gives a path.
7749   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7750 $as_echo_n "checking for ld used by GCC... " >&6; }
7751   case $host in
7752   *-*-mingw*)
7753     # gcc leaves a trailing carriage return which upsets mingw
7754     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7755   *)
7756     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7757   esac
7758   case $ac_prog in
7759     # Accept absolute paths.
7760     [\\/]* | [A-Za-z]:[\\/]*)
7761       re_direlt='/[^/][^/]*/\.\./'
7762       # Canonicalize the path of ld
7763       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7764       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7765         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7766       done
7767       test -z "$LD" && LD="$ac_prog"
7768       ;;
7769   "")
7770     # If it fails, then pretend we aren't using GCC.
7771     ac_prog=ld
7772     ;;
7773   *)
7774     # If it is relative, then search for the first ld in PATH.
7775     with_gnu_ld=unknown
7776     ;;
7777   esac
7778 elif test "$with_gnu_ld" = yes; then
7779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7780 $as_echo_n "checking for GNU ld... " >&6; }
7781 else
7782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7783 $as_echo_n "checking for non-GNU ld... " >&6; }
7784 fi
7785 if test "${acl_cv_path_LD+set}" = set; then :
7786   $as_echo_n "(cached) " >&6
7787 else
7788   if test -z "$LD"; then
7789   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7790   for ac_dir in $PATH; do
7791     test -z "$ac_dir" && ac_dir=.
7792     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7793       acl_cv_path_LD="$ac_dir/$ac_prog"
7794       # Check to see if the program is GNU ld.  I'd rather use --version,
7795       # but apparently some GNU ld's only accept -v.
7796       # Break only if it was the GNU/non-GNU ld that we prefer.
7797       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7798       *GNU* | *'with BFD'*)
7799         test "$with_gnu_ld" != no && break ;;
7800       *)
7801         test "$with_gnu_ld" != yes && break ;;
7802       esac
7803     fi
7804   done
7805   IFS="$ac_save_ifs"
7806 else
7807   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7808 fi
7809 fi
7810
7811 LD="$acl_cv_path_LD"
7812 if test -n "$LD"; then
7813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7814 $as_echo "$LD" >&6; }
7815 else
7816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7817 $as_echo "no" >&6; }
7818 fi
7819 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7821 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7822 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7823   $as_echo_n "(cached) " >&6
7824 else
7825   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7826 case `$LD -v 2>&1 </dev/null` in
7827 *GNU* | *'with BFD'*)
7828   acl_cv_prog_gnu_ld=yes ;;
7829 *)
7830   acl_cv_prog_gnu_ld=no ;;
7831 esac
7832 fi
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7834 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7835 with_gnu_ld=$acl_cv_prog_gnu_ld
7836
7837
7838
7839                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7840 $as_echo_n "checking for shared library run path origin... " >&6; }
7841 if test "${acl_cv_rpath+set}" = set; then :
7842   $as_echo_n "(cached) " >&6
7843 else
7844
7845     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7846     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7847     . ./conftest.sh
7848     rm -f ./conftest.sh
7849     acl_cv_rpath=done
7850
7851 fi
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7853 $as_echo "$acl_cv_rpath" >&6; }
7854   wl="$acl_cv_wl"
7855   libext="$acl_cv_libext"
7856   shlibext="$acl_cv_shlibext"
7857   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7858   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7859   hardcode_direct="$acl_cv_hardcode_direct"
7860   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7861     # Check whether --enable-rpath was given.
7862 if test "${enable_rpath+set}" = set; then :
7863   enableval=$enable_rpath; :
7864 else
7865   enable_rpath=yes
7866 fi
7867
7868
7869
7870
7871
7872
7873
7874
7875     use_additional=yes
7876
7877   acl_save_prefix="$prefix"
7878   prefix="$acl_final_prefix"
7879   acl_save_exec_prefix="$exec_prefix"
7880   exec_prefix="$acl_final_exec_prefix"
7881
7882     eval additional_includedir=\"$includedir\"
7883     eval additional_libdir=\"$libdir\"
7884
7885   exec_prefix="$acl_save_exec_prefix"
7886   prefix="$acl_save_prefix"
7887
7888
7889 # Check whether --with-libiconv-prefix was given.
7890 if test "${with_libiconv_prefix+set}" = set; then :
7891   withval=$with_libiconv_prefix;
7892     if test "X$withval" = "Xno"; then
7893       use_additional=no
7894     else
7895       if test "X$withval" = "X"; then
7896
7897   acl_save_prefix="$prefix"
7898   prefix="$acl_final_prefix"
7899   acl_save_exec_prefix="$exec_prefix"
7900   exec_prefix="$acl_final_exec_prefix"
7901
7902           eval additional_includedir=\"$includedir\"
7903           eval additional_libdir=\"$libdir\"
7904
7905   exec_prefix="$acl_save_exec_prefix"
7906   prefix="$acl_save_prefix"
7907
7908       else
7909         additional_includedir="$withval/include"
7910         additional_libdir="$withval/lib"
7911       fi
7912     fi
7913
7914 fi
7915
7916       LIBICONV=
7917   LTLIBICONV=
7918   INCICONV=
7919   rpathdirs=
7920   ltrpathdirs=
7921   names_already_handled=
7922   names_next_round='iconv '
7923   while test -n "$names_next_round"; do
7924     names_this_round="$names_next_round"
7925     names_next_round=
7926     for name in $names_this_round; do
7927       already_handled=
7928       for n in $names_already_handled; do
7929         if test "$n" = "$name"; then
7930           already_handled=yes
7931           break
7932         fi
7933       done
7934       if test -z "$already_handled"; then
7935         names_already_handled="$names_already_handled $name"
7936                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7937         eval value=\"\$HAVE_LIB$uppername\"
7938         if test -n "$value"; then
7939           if test "$value" = yes; then
7940             eval value=\"\$LIB$uppername\"
7941             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7942             eval value=\"\$LTLIB$uppername\"
7943             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7944           else
7945                                     :
7946           fi
7947         else
7948                               found_dir=
7949           found_la=
7950           found_so=
7951           found_a=
7952           if test $use_additional = yes; then
7953             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7954               found_dir="$additional_libdir"
7955               found_so="$additional_libdir/lib$name.$shlibext"
7956               if test -f "$additional_libdir/lib$name.la"; then
7957                 found_la="$additional_libdir/lib$name.la"
7958               fi
7959             else
7960               if test -f "$additional_libdir/lib$name.$libext"; then
7961                 found_dir="$additional_libdir"
7962                 found_a="$additional_libdir/lib$name.$libext"
7963                 if test -f "$additional_libdir/lib$name.la"; then
7964                   found_la="$additional_libdir/lib$name.la"
7965                 fi
7966               fi
7967             fi
7968           fi
7969           if test "X$found_dir" = "X"; then
7970             for x in $LDFLAGS $LTLIBICONV; do
7971
7972   acl_save_prefix="$prefix"
7973   prefix="$acl_final_prefix"
7974   acl_save_exec_prefix="$exec_prefix"
7975   exec_prefix="$acl_final_exec_prefix"
7976   eval x=\"$x\"
7977   exec_prefix="$acl_save_exec_prefix"
7978   prefix="$acl_save_prefix"
7979
7980               case "$x" in
7981                 -L*)
7982                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7983                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7984                     found_dir="$dir"
7985                     found_so="$dir/lib$name.$shlibext"
7986                     if test -f "$dir/lib$name.la"; then
7987                       found_la="$dir/lib$name.la"
7988                     fi
7989                   else
7990                     if test -f "$dir/lib$name.$libext"; then
7991                       found_dir="$dir"
7992                       found_a="$dir/lib$name.$libext"
7993                       if test -f "$dir/lib$name.la"; then
7994                         found_la="$dir/lib$name.la"
7995                       fi
7996                     fi
7997                   fi
7998                   ;;
7999               esac
8000               if test "X$found_dir" != "X"; then
8001                 break
8002               fi
8003             done
8004           fi
8005           if test "X$found_dir" != "X"; then
8006                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8007             if test "X$found_so" != "X"; then
8008                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8009                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8010               else
8011                                                                                 haveit=
8012                 for x in $ltrpathdirs; do
8013                   if test "X$x" = "X$found_dir"; then
8014                     haveit=yes
8015                     break
8016                   fi
8017                 done
8018                 if test -z "$haveit"; then
8019                   ltrpathdirs="$ltrpathdirs $found_dir"
8020                 fi
8021                                 if test "$hardcode_direct" = yes; then
8022                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8023                 else
8024                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8025                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8026                                                             haveit=
8027                     for x in $rpathdirs; do
8028                       if test "X$x" = "X$found_dir"; then
8029                         haveit=yes
8030                         break
8031                       fi
8032                     done
8033                     if test -z "$haveit"; then
8034                       rpathdirs="$rpathdirs $found_dir"
8035                     fi
8036                   else
8037                                                                                 haveit=
8038                     for x in $LDFLAGS $LIBICONV; do
8039
8040   acl_save_prefix="$prefix"
8041   prefix="$acl_final_prefix"
8042   acl_save_exec_prefix="$exec_prefix"
8043   exec_prefix="$acl_final_exec_prefix"
8044   eval x=\"$x\"
8045   exec_prefix="$acl_save_exec_prefix"
8046   prefix="$acl_save_prefix"
8047
8048                       if test "X$x" = "X-L$found_dir"; then
8049                         haveit=yes
8050                         break
8051                       fi
8052                     done
8053                     if test -z "$haveit"; then
8054                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8055                     fi
8056                     if test "$hardcode_minus_L" != no; then
8057                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8058                     else
8059                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8060                     fi
8061                   fi
8062                 fi
8063               fi
8064             else
8065               if test "X$found_a" != "X"; then
8066                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8067               else
8068                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8069               fi
8070             fi
8071                         additional_includedir=
8072             case "$found_dir" in
8073               */lib | */lib/)
8074                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8075                 additional_includedir="$basedir/include"
8076                 ;;
8077             esac
8078             if test "X$additional_includedir" != "X"; then
8079                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8080                 haveit=
8081                 if test "X$additional_includedir" = "X/usr/local/include"; then
8082                   if test -n "$GCC"; then
8083                     case $host_os in
8084                       linux*) haveit=yes;;
8085                     esac
8086                   fi
8087                 fi
8088                 if test -z "$haveit"; then
8089                   for x in $CPPFLAGS $INCICONV; do
8090
8091   acl_save_prefix="$prefix"
8092   prefix="$acl_final_prefix"
8093   acl_save_exec_prefix="$exec_prefix"
8094   exec_prefix="$acl_final_exec_prefix"
8095   eval x=\"$x\"
8096   exec_prefix="$acl_save_exec_prefix"
8097   prefix="$acl_save_prefix"
8098
8099                     if test "X$x" = "X-I$additional_includedir"; then
8100                       haveit=yes
8101                       break
8102                     fi
8103                   done
8104                   if test -z "$haveit"; then
8105                     if test -d "$additional_includedir"; then
8106                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8107                     fi
8108                   fi
8109                 fi
8110               fi
8111             fi
8112                         if test -n "$found_la"; then
8113                                                         save_libdir="$libdir"
8114               case "$found_la" in
8115                 */* | *\\*) . "$found_la" ;;
8116                 *) . "./$found_la" ;;
8117               esac
8118               libdir="$save_libdir"
8119                             for dep in $dependency_libs; do
8120                 case "$dep" in
8121                   -L*)
8122                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8123                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8124                       haveit=
8125                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8126                         if test -n "$GCC"; then
8127                           case $host_os in
8128                             linux*) haveit=yes;;
8129                           esac
8130                         fi
8131                       fi
8132                       if test -z "$haveit"; then
8133                         haveit=
8134                         for x in $LDFLAGS $LIBICONV; do
8135
8136   acl_save_prefix="$prefix"
8137   prefix="$acl_final_prefix"
8138   acl_save_exec_prefix="$exec_prefix"
8139   exec_prefix="$acl_final_exec_prefix"
8140   eval x=\"$x\"
8141   exec_prefix="$acl_save_exec_prefix"
8142   prefix="$acl_save_prefix"
8143
8144                           if test "X$x" = "X-L$additional_libdir"; then
8145                             haveit=yes
8146                             break
8147                           fi
8148                         done
8149                         if test -z "$haveit"; then
8150                           if test -d "$additional_libdir"; then
8151                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8152                           fi
8153                         fi
8154                         haveit=
8155                         for x in $LDFLAGS $LTLIBICONV; do
8156
8157   acl_save_prefix="$prefix"
8158   prefix="$acl_final_prefix"
8159   acl_save_exec_prefix="$exec_prefix"
8160   exec_prefix="$acl_final_exec_prefix"
8161   eval x=\"$x\"
8162   exec_prefix="$acl_save_exec_prefix"
8163   prefix="$acl_save_prefix"
8164
8165                           if test "X$x" = "X-L$additional_libdir"; then
8166                             haveit=yes
8167                             break
8168                           fi
8169                         done
8170                         if test -z "$haveit"; then
8171                           if test -d "$additional_libdir"; then
8172                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8173                           fi
8174                         fi
8175                       fi
8176                     fi
8177                     ;;
8178                   -R*)
8179                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8180                     if test "$enable_rpath" != no; then
8181                                                                   haveit=
8182                       for x in $rpathdirs; do
8183                         if test "X$x" = "X$dir"; then
8184                           haveit=yes
8185                           break
8186                         fi
8187                       done
8188                       if test -z "$haveit"; then
8189                         rpathdirs="$rpathdirs $dir"
8190                       fi
8191                                                                   haveit=
8192                       for x in $ltrpathdirs; do
8193                         if test "X$x" = "X$dir"; then
8194                           haveit=yes
8195                           break
8196                         fi
8197                       done
8198                       if test -z "$haveit"; then
8199                         ltrpathdirs="$ltrpathdirs $dir"
8200                       fi
8201                     fi
8202                     ;;
8203                   -l*)
8204                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8205                     ;;
8206                   *.la)
8207                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8208                     ;;
8209                   *)
8210                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8211                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8212                     ;;
8213                 esac
8214               done
8215             fi
8216           else
8217                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8218             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8219           fi
8220         fi
8221       fi
8222     done
8223   done
8224   if test "X$rpathdirs" != "X"; then
8225     if test -n "$hardcode_libdir_separator"; then
8226                         alldirs=
8227       for found_dir in $rpathdirs; do
8228         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8229       done
8230             acl_save_libdir="$libdir"
8231       libdir="$alldirs"
8232       eval flag=\"$hardcode_libdir_flag_spec\"
8233       libdir="$acl_save_libdir"
8234       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8235     else
8236             for found_dir in $rpathdirs; do
8237         acl_save_libdir="$libdir"
8238         libdir="$found_dir"
8239         eval flag=\"$hardcode_libdir_flag_spec\"
8240         libdir="$acl_save_libdir"
8241         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8242       done
8243     fi
8244   fi
8245   if test "X$ltrpathdirs" != "X"; then
8246             for found_dir in $ltrpathdirs; do
8247       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8248     done
8249   fi
8250
8251
8252
8253
8254
8255
8256
8257
8258   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8259 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
8260
8261 else
8262
8263 $as_echo "#define ptrdiff_t long" >>confdefs.h
8264
8265
8266 fi
8267
8268   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8269 stdlib.h string.h unistd.h sys/param.h
8270 do :
8271   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8272 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8273 eval as_val=\$$as_ac_Header
8274    if test "x$as_val" = x""yes; then :
8275   cat >>confdefs.h <<_ACEOF
8276 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8277 _ACEOF
8278
8279 fi
8280
8281 done
8282
8283   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8284 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8285 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8286 __fsetlocking
8287 do :
8288   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8289 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8290 eval as_val=\$$as_ac_var
8291    if test "x$as_val" = x""yes; then :
8292   cat >>confdefs.h <<_ACEOF
8293 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8294 _ACEOF
8295
8296 fi
8297 done
8298
8299
8300
8301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8302 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8303 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
8304   $as_echo_n "(cached) " >&6
8305 else
8306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h.  */
8308 #include <stdio.h>
8309 int
8310 main ()
8311 {
8312
8313 #ifndef _snprintf
8314   char *p = (char *) _snprintf;
8315 #endif
8316
8317   ;
8318   return 0;
8319 }
8320 _ACEOF
8321 if ac_fn_c_try_compile "$LINENO"; then :
8322   ac_cv_have_decl__snprintf=yes
8323 else
8324   ac_cv_have_decl__snprintf=no
8325 fi
8326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8327 fi
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8329 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8330   if test $ac_cv_have_decl__snprintf = yes; then
8331     gt_value=1
8332   else
8333     gt_value=0
8334   fi
8335
8336 cat >>confdefs.h <<_ACEOF
8337 #define HAVE_DECL__SNPRINTF $gt_value
8338 _ACEOF
8339
8340
8341
8342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8343 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8344 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
8345   $as_echo_n "(cached) " >&6
8346 else
8347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348 /* end confdefs.h.  */
8349 #include <stdio.h>
8350 int
8351 main ()
8352 {
8353
8354 #ifndef _snwprintf
8355   char *p = (char *) _snwprintf;
8356 #endif
8357
8358   ;
8359   return 0;
8360 }
8361 _ACEOF
8362 if ac_fn_c_try_compile "$LINENO"; then :
8363   ac_cv_have_decl__snwprintf=yes
8364 else
8365   ac_cv_have_decl__snwprintf=no
8366 fi
8367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8368 fi
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8370 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8371   if test $ac_cv_have_decl__snwprintf = yes; then
8372     gt_value=1
8373   else
8374     gt_value=0
8375   fi
8376
8377 cat >>confdefs.h <<_ACEOF
8378 #define HAVE_DECL__SNWPRINTF $gt_value
8379 _ACEOF
8380
8381
8382
8383
8384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8385 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8386 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
8387   $as_echo_n "(cached) " >&6
8388 else
8389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390 /* end confdefs.h.  */
8391 #include <stdio.h>
8392 int
8393 main ()
8394 {
8395
8396 #ifndef feof_unlocked
8397   char *p = (char *) feof_unlocked;
8398 #endif
8399
8400   ;
8401   return 0;
8402 }
8403 _ACEOF
8404 if ac_fn_c_try_compile "$LINENO"; then :
8405   ac_cv_have_decl_feof_unlocked=yes
8406 else
8407   ac_cv_have_decl_feof_unlocked=no
8408 fi
8409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8410 fi
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8412 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8413   if test $ac_cv_have_decl_feof_unlocked = yes; then
8414     gt_value=1
8415   else
8416     gt_value=0
8417   fi
8418
8419 cat >>confdefs.h <<_ACEOF
8420 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8421 _ACEOF
8422
8423
8424
8425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8426 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8427 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
8428   $as_echo_n "(cached) " >&6
8429 else
8430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h.  */
8432 #include <stdio.h>
8433 int
8434 main ()
8435 {
8436
8437 #ifndef fgets_unlocked
8438   char *p = (char *) fgets_unlocked;
8439 #endif
8440
8441   ;
8442   return 0;
8443 }
8444 _ACEOF
8445 if ac_fn_c_try_compile "$LINENO"; then :
8446   ac_cv_have_decl_fgets_unlocked=yes
8447 else
8448   ac_cv_have_decl_fgets_unlocked=no
8449 fi
8450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8451 fi
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8453 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8454   if test $ac_cv_have_decl_fgets_unlocked = yes; then
8455     gt_value=1
8456   else
8457     gt_value=0
8458   fi
8459
8460 cat >>confdefs.h <<_ACEOF
8461 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8462 _ACEOF
8463
8464
8465
8466   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8467 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8468 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
8469   $as_echo_n "(cached) " >&6
8470 else
8471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472 /* end confdefs.h.  */
8473 #include <stdio.h>
8474 int
8475 main ()
8476 {
8477
8478 #ifndef getc_unlocked
8479   char *p = (char *) getc_unlocked;
8480 #endif
8481
8482   ;
8483   return 0;
8484 }
8485 _ACEOF
8486 if ac_fn_c_try_compile "$LINENO"; then :
8487   ac_cv_have_decl_getc_unlocked=yes
8488 else
8489   ac_cv_have_decl_getc_unlocked=no
8490 fi
8491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8492 fi
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8494 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8495   if test $ac_cv_have_decl_getc_unlocked = yes; then
8496     gt_value=1
8497   else
8498     gt_value=0
8499   fi
8500
8501 cat >>confdefs.h <<_ACEOF
8502 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8503 _ACEOF
8504
8505
8506
8507   case $gt_cv_func_printf_posix in
8508     *yes) HAVE_POSIX_PRINTF=1 ;;
8509     *) HAVE_POSIX_PRINTF=0 ;;
8510   esac
8511
8512   if test "$ac_cv_func_asprintf" = yes; then
8513     HAVE_ASPRINTF=1
8514   else
8515     HAVE_ASPRINTF=0
8516   fi
8517
8518   if test "$ac_cv_func_snprintf" = yes; then
8519     HAVE_SNPRINTF=1
8520   else
8521     HAVE_SNPRINTF=0
8522   fi
8523
8524   if test "$ac_cv_func_wprintf" = yes; then
8525     HAVE_WPRINTF=1
8526   else
8527     HAVE_WPRINTF=0
8528   fi
8529
8530
8531
8532
8533
8534
8535
8536           am_save_CPPFLAGS="$CPPFLAGS"
8537
8538   for element in $INCICONV; do
8539     haveit=
8540     for x in $CPPFLAGS; do
8541
8542   acl_save_prefix="$prefix"
8543   prefix="$acl_final_prefix"
8544   acl_save_exec_prefix="$exec_prefix"
8545   exec_prefix="$acl_final_exec_prefix"
8546   eval x=\"$x\"
8547   exec_prefix="$acl_save_exec_prefix"
8548   prefix="$acl_save_prefix"
8549
8550       if test "X$x" = "X$element"; then
8551         haveit=yes
8552         break
8553       fi
8554     done
8555     if test -z "$haveit"; then
8556       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8557     fi
8558   done
8559
8560
8561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8562 $as_echo_n "checking for iconv... " >&6; }
8563 if test "${am_cv_func_iconv+set}" = set; then :
8564   $as_echo_n "(cached) " >&6
8565 else
8566
8567     am_cv_func_iconv="no, consider installing GNU libiconv"
8568     am_cv_lib_iconv=no
8569     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570 /* end confdefs.h.  */
8571 #include <stdlib.h>
8572 #include <iconv.h>
8573 int
8574 main ()
8575 {
8576 iconv_t cd = iconv_open("","");
8577        iconv(cd,NULL,NULL,NULL,NULL);
8578        iconv_close(cd);
8579   ;
8580   return 0;
8581 }
8582 _ACEOF
8583 if ac_fn_c_try_link "$LINENO"; then :
8584   am_cv_func_iconv=yes
8585 fi
8586 rm -f core conftest.err conftest.$ac_objext \
8587     conftest$ac_exeext conftest.$ac_ext
8588     if test "$am_cv_func_iconv" != yes; then
8589       am_save_LIBS="$LIBS"
8590       LIBS="$LIBS $LIBICONV"
8591       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8592 /* end confdefs.h.  */
8593 #include <stdlib.h>
8594 #include <iconv.h>
8595 int
8596 main ()
8597 {
8598 iconv_t cd = iconv_open("","");
8599          iconv(cd,NULL,NULL,NULL,NULL);
8600          iconv_close(cd);
8601   ;
8602   return 0;
8603 }
8604 _ACEOF
8605 if ac_fn_c_try_link "$LINENO"; then :
8606   am_cv_lib_iconv=yes
8607         am_cv_func_iconv=yes
8608 fi
8609 rm -f core conftest.err conftest.$ac_objext \
8610     conftest$ac_exeext conftest.$ac_ext
8611       LIBS="$am_save_LIBS"
8612     fi
8613
8614 fi
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8616 $as_echo "$am_cv_func_iconv" >&6; }
8617   if test "$am_cv_func_iconv" = yes; then
8618
8619 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8620
8621   fi
8622   if test "$am_cv_lib_iconv" = yes; then
8623     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8624 $as_echo_n "checking how to link with libiconv... " >&6; }
8625     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8626 $as_echo "$LIBICONV" >&6; }
8627   else
8628             CPPFLAGS="$am_save_CPPFLAGS"
8629     LIBICONV=
8630     LTLIBICONV=
8631   fi
8632
8633
8634
8635   if test "$am_cv_func_iconv" = yes; then
8636     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8637 $as_echo_n "checking for iconv declaration... " >&6; }
8638     if test "${am_cv_proto_iconv+set}" = set; then :
8639   $as_echo_n "(cached) " >&6
8640 else
8641
8642       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643 /* end confdefs.h.  */
8644
8645 #include <stdlib.h>
8646 #include <iconv.h>
8647 extern
8648 #ifdef __cplusplus
8649 "C"
8650 #endif
8651 #if defined(__STDC__) || defined(__cplusplus)
8652 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8653 #else
8654 size_t iconv();
8655 #endif
8656
8657 int
8658 main ()
8659 {
8660
8661   ;
8662   return 0;
8663 }
8664 _ACEOF
8665 if ac_fn_c_try_compile "$LINENO"; then :
8666   am_cv_proto_iconv_arg1=""
8667 else
8668   am_cv_proto_iconv_arg1="const"
8669 fi
8670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8671       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8672 fi
8673
8674     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8675     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8676          }$am_cv_proto_iconv" >&5
8677 $as_echo "${ac_t:-
8678          }$am_cv_proto_iconv" >&6; }
8679
8680 cat >>confdefs.h <<_ACEOF
8681 #define ICONV_CONST $am_cv_proto_iconv_arg1
8682 _ACEOF
8683
8684   fi
8685
8686
8687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8688 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8689 if test "${am_cv_langinfo_codeset+set}" = set; then :
8690   $as_echo_n "(cached) " >&6
8691 else
8692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8693 /* end confdefs.h.  */
8694 #include <langinfo.h>
8695 int
8696 main ()
8697 {
8698 char* cs = nl_langinfo(CODESET);
8699   ;
8700   return 0;
8701 }
8702 _ACEOF
8703 if ac_fn_c_try_link "$LINENO"; then :
8704   am_cv_langinfo_codeset=yes
8705 else
8706   am_cv_langinfo_codeset=no
8707 fi
8708 rm -f core conftest.err conftest.$ac_objext \
8709     conftest$ac_exeext conftest.$ac_ext
8710
8711 fi
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8713 $as_echo "$am_cv_langinfo_codeset" >&6; }
8714   if test $am_cv_langinfo_codeset = yes; then
8715
8716 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8717
8718   fi
8719
8720   if test $ac_cv_header_locale_h = yes; then
8721
8722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8723 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8724 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
8725   $as_echo_n "(cached) " >&6
8726 else
8727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h.  */
8729 #include <locale.h>
8730 int
8731 main ()
8732 {
8733 return LC_MESSAGES
8734   ;
8735   return 0;
8736 }
8737 _ACEOF
8738 if ac_fn_c_try_link "$LINENO"; then :
8739   am_cv_val_LC_MESSAGES=yes
8740 else
8741   am_cv_val_LC_MESSAGES=no
8742 fi
8743 rm -f core conftest.err conftest.$ac_objext \
8744     conftest$ac_exeext conftest.$ac_ext
8745 fi
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8747 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8748   if test $am_cv_val_LC_MESSAGES = yes; then
8749
8750 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8751
8752   fi
8753
8754   fi
8755
8756                       for ac_prog in bison
8757 do
8758   # Extract the first word of "$ac_prog", so it can be a program name with args.
8759 set dummy $ac_prog; ac_word=$2
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8761 $as_echo_n "checking for $ac_word... " >&6; }
8762 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
8763   $as_echo_n "(cached) " >&6
8764 else
8765   if test -n "$INTLBISON"; then
8766   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8767 else
8768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8769 for as_dir in $PATH
8770 do
8771   IFS=$as_save_IFS
8772   test -z "$as_dir" && as_dir=.
8773     for ac_exec_ext in '' $ac_executable_extensions; do
8774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8775     ac_cv_prog_INTLBISON="$ac_prog"
8776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8777     break 2
8778   fi
8779 done
8780   done
8781 IFS=$as_save_IFS
8782
8783 fi
8784 fi
8785 INTLBISON=$ac_cv_prog_INTLBISON
8786 if test -n "$INTLBISON"; then
8787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8788 $as_echo "$INTLBISON" >&6; }
8789 else
8790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8791 $as_echo "no" >&6; }
8792 fi
8793
8794
8795   test -n "$INTLBISON" && break
8796 done
8797
8798   if test -z "$INTLBISON"; then
8799     ac_verc_fail=yes
8800   else
8801         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8802 $as_echo_n "checking version of bison... " >&6; }
8803     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8804     case $ac_prog_version in
8805       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8806       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8807          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8808       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8809     esac
8810     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8811 $as_echo "$ac_prog_version" >&6; }
8812   fi
8813   if test $ac_verc_fail = yes; then
8814     INTLBISON=:
8815   fi
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8833 $as_echo_n "checking whether NLS is requested... " >&6; }
8834     # Check whether --enable-nls was given.
8835 if test "${enable_nls+set}" = set; then :
8836   enableval=$enable_nls; USE_NLS=$enableval
8837 else
8838   USE_NLS=yes
8839 fi
8840
8841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8842 $as_echo "$USE_NLS" >&6; }
8843
8844
8845
8846
8847     BUILD_INCLUDED_LIBINTL=no
8848     USE_INCLUDED_LIBINTL=no
8849
8850   LIBINTL=
8851   LTLIBINTL=
8852   POSUB=
8853
8854     if test "$USE_NLS" = "yes"; then
8855     gt_use_preinstalled_gnugettext=no
8856
8857       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8858 $as_echo_n "checking whether included gettext is requested... " >&6; }
8859
8860 # Check whether --with-included-gettext was given.
8861 if test "${with_included_gettext+set}" = set; then :
8862   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8863 else
8864   nls_cv_force_use_gnu_gettext=no
8865 fi
8866
8867       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8868 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8869
8870       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8871       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8872
8873
8874
8875
8876
8877
8878         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8879 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8880 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
8881   $as_echo_n "(cached) " >&6
8882 else
8883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8884 /* end confdefs.h.  */
8885 #include <libintl.h>
8886 extern int _nl_msg_cat_cntr;
8887 extern int *_nl_domain_bindings;
8888 int
8889 main ()
8890 {
8891 bindtextdomain ("", "");
8892 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8893   ;
8894   return 0;
8895 }
8896 _ACEOF
8897 if ac_fn_c_try_link "$LINENO"; then :
8898   gt_cv_func_gnugettext1_libc=yes
8899 else
8900   gt_cv_func_gnugettext1_libc=no
8901 fi
8902 rm -f core conftest.err conftest.$ac_objext \
8903     conftest$ac_exeext conftest.$ac_ext
8904 fi
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8906 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8907
8908         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8909
8910
8911
8912     use_additional=yes
8913
8914   acl_save_prefix="$prefix"
8915   prefix="$acl_final_prefix"
8916   acl_save_exec_prefix="$exec_prefix"
8917   exec_prefix="$acl_final_exec_prefix"
8918
8919     eval additional_includedir=\"$includedir\"
8920     eval additional_libdir=\"$libdir\"
8921
8922   exec_prefix="$acl_save_exec_prefix"
8923   prefix="$acl_save_prefix"
8924
8925
8926 # Check whether --with-libintl-prefix was given.
8927 if test "${with_libintl_prefix+set}" = set; then :
8928   withval=$with_libintl_prefix;
8929     if test "X$withval" = "Xno"; then
8930       use_additional=no
8931     else
8932       if test "X$withval" = "X"; then
8933
8934   acl_save_prefix="$prefix"
8935   prefix="$acl_final_prefix"
8936   acl_save_exec_prefix="$exec_prefix"
8937   exec_prefix="$acl_final_exec_prefix"
8938
8939           eval additional_includedir=\"$includedir\"
8940           eval additional_libdir=\"$libdir\"
8941
8942   exec_prefix="$acl_save_exec_prefix"
8943   prefix="$acl_save_prefix"
8944
8945       else
8946         additional_includedir="$withval/include"
8947         additional_libdir="$withval/lib"
8948       fi
8949     fi
8950
8951 fi
8952
8953       LIBINTL=
8954   LTLIBINTL=
8955   INCINTL=
8956   rpathdirs=
8957   ltrpathdirs=
8958   names_already_handled=
8959   names_next_round='intl '
8960   while test -n "$names_next_round"; do
8961     names_this_round="$names_next_round"
8962     names_next_round=
8963     for name in $names_this_round; do
8964       already_handled=
8965       for n in $names_already_handled; do
8966         if test "$n" = "$name"; then
8967           already_handled=yes
8968           break
8969         fi
8970       done
8971       if test -z "$already_handled"; then
8972         names_already_handled="$names_already_handled $name"
8973                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8974         eval value=\"\$HAVE_LIB$uppername\"
8975         if test -n "$value"; then
8976           if test "$value" = yes; then
8977             eval value=\"\$LIB$uppername\"
8978             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8979             eval value=\"\$LTLIB$uppername\"
8980             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8981           else
8982                                     :
8983           fi
8984         else
8985                               found_dir=
8986           found_la=
8987           found_so=
8988           found_a=
8989           if test $use_additional = yes; then
8990             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8991               found_dir="$additional_libdir"
8992               found_so="$additional_libdir/lib$name.$shlibext"
8993               if test -f "$additional_libdir/lib$name.la"; then
8994                 found_la="$additional_libdir/lib$name.la"
8995               fi
8996             else
8997               if test -f "$additional_libdir/lib$name.$libext"; then
8998                 found_dir="$additional_libdir"
8999                 found_a="$additional_libdir/lib$name.$libext"
9000                 if test -f "$additional_libdir/lib$name.la"; then
9001                   found_la="$additional_libdir/lib$name.la"
9002                 fi
9003               fi
9004             fi
9005           fi
9006           if test "X$found_dir" = "X"; then
9007             for x in $LDFLAGS $LTLIBINTL; do
9008
9009   acl_save_prefix="$prefix"
9010   prefix="$acl_final_prefix"
9011   acl_save_exec_prefix="$exec_prefix"
9012   exec_prefix="$acl_final_exec_prefix"
9013   eval x=\"$x\"
9014   exec_prefix="$acl_save_exec_prefix"
9015   prefix="$acl_save_prefix"
9016
9017               case "$x" in
9018                 -L*)
9019                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9020                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9021                     found_dir="$dir"
9022                     found_so="$dir/lib$name.$shlibext"
9023                     if test -f "$dir/lib$name.la"; then
9024                       found_la="$dir/lib$name.la"
9025                     fi
9026                   else
9027                     if test -f "$dir/lib$name.$libext"; then
9028                       found_dir="$dir"
9029                       found_a="$dir/lib$name.$libext"
9030                       if test -f "$dir/lib$name.la"; then
9031                         found_la="$dir/lib$name.la"
9032                       fi
9033                     fi
9034                   fi
9035                   ;;
9036               esac
9037               if test "X$found_dir" != "X"; then
9038                 break
9039               fi
9040             done
9041           fi
9042           if test "X$found_dir" != "X"; then
9043                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9044             if test "X$found_so" != "X"; then
9045                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9046                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9047               else
9048                                                                                 haveit=
9049                 for x in $ltrpathdirs; do
9050                   if test "X$x" = "X$found_dir"; then
9051                     haveit=yes
9052                     break
9053                   fi
9054                 done
9055                 if test -z "$haveit"; then
9056                   ltrpathdirs="$ltrpathdirs $found_dir"
9057                 fi
9058                                 if test "$hardcode_direct" = yes; then
9059                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9060                 else
9061                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9062                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9063                                                             haveit=
9064                     for x in $rpathdirs; do
9065                       if test "X$x" = "X$found_dir"; then
9066                         haveit=yes
9067                         break
9068                       fi
9069                     done
9070                     if test -z "$haveit"; then
9071                       rpathdirs="$rpathdirs $found_dir"
9072                     fi
9073                   else
9074                                                                                 haveit=
9075                     for x in $LDFLAGS $LIBINTL; do
9076
9077   acl_save_prefix="$prefix"
9078   prefix="$acl_final_prefix"
9079   acl_save_exec_prefix="$exec_prefix"
9080   exec_prefix="$acl_final_exec_prefix"
9081   eval x=\"$x\"
9082   exec_prefix="$acl_save_exec_prefix"
9083   prefix="$acl_save_prefix"
9084
9085                       if test "X$x" = "X-L$found_dir"; then
9086                         haveit=yes
9087                         break
9088                       fi
9089                     done
9090                     if test -z "$haveit"; then
9091                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9092                     fi
9093                     if test "$hardcode_minus_L" != no; then
9094                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9095                     else
9096                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9097                     fi
9098                   fi
9099                 fi
9100               fi
9101             else
9102               if test "X$found_a" != "X"; then
9103                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9104               else
9105                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9106               fi
9107             fi
9108                         additional_includedir=
9109             case "$found_dir" in
9110               */lib | */lib/)
9111                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9112                 additional_includedir="$basedir/include"
9113                 ;;
9114             esac
9115             if test "X$additional_includedir" != "X"; then
9116                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9117                 haveit=
9118                 if test "X$additional_includedir" = "X/usr/local/include"; then
9119                   if test -n "$GCC"; then
9120                     case $host_os in
9121                       linux*) haveit=yes;;
9122                     esac
9123                   fi
9124                 fi
9125                 if test -z "$haveit"; then
9126                   for x in $CPPFLAGS $INCINTL; do
9127
9128   acl_save_prefix="$prefix"
9129   prefix="$acl_final_prefix"
9130   acl_save_exec_prefix="$exec_prefix"
9131   exec_prefix="$acl_final_exec_prefix"
9132   eval x=\"$x\"
9133   exec_prefix="$acl_save_exec_prefix"
9134   prefix="$acl_save_prefix"
9135
9136                     if test "X$x" = "X-I$additional_includedir"; then
9137                       haveit=yes
9138                       break
9139                     fi
9140                   done
9141                   if test -z "$haveit"; then
9142                     if test -d "$additional_includedir"; then
9143                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9144                     fi
9145                   fi
9146                 fi
9147               fi
9148             fi
9149                         if test -n "$found_la"; then
9150                                                         save_libdir="$libdir"
9151               case "$found_la" in
9152                 */* | *\\*) . "$found_la" ;;
9153                 *) . "./$found_la" ;;
9154               esac
9155               libdir="$save_libdir"
9156                             for dep in $dependency_libs; do
9157                 case "$dep" in
9158                   -L*)
9159                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9160                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9161                       haveit=
9162                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9163                         if test -n "$GCC"; then
9164                           case $host_os in
9165                             linux*) haveit=yes;;
9166                           esac
9167                         fi
9168                       fi
9169                       if test -z "$haveit"; then
9170                         haveit=
9171                         for x in $LDFLAGS $LIBINTL; do
9172
9173   acl_save_prefix="$prefix"
9174   prefix="$acl_final_prefix"
9175   acl_save_exec_prefix="$exec_prefix"
9176   exec_prefix="$acl_final_exec_prefix"
9177   eval x=\"$x\"
9178   exec_prefix="$acl_save_exec_prefix"
9179   prefix="$acl_save_prefix"
9180
9181                           if test "X$x" = "X-L$additional_libdir"; then
9182                             haveit=yes
9183                             break
9184                           fi
9185                         done
9186                         if test -z "$haveit"; then
9187                           if test -d "$additional_libdir"; then
9188                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9189                           fi
9190                         fi
9191                         haveit=
9192                         for x in $LDFLAGS $LTLIBINTL; do
9193
9194   acl_save_prefix="$prefix"
9195   prefix="$acl_final_prefix"
9196   acl_save_exec_prefix="$exec_prefix"
9197   exec_prefix="$acl_final_exec_prefix"
9198   eval x=\"$x\"
9199   exec_prefix="$acl_save_exec_prefix"
9200   prefix="$acl_save_prefix"
9201
9202                           if test "X$x" = "X-L$additional_libdir"; then
9203                             haveit=yes
9204                             break
9205                           fi
9206                         done
9207                         if test -z "$haveit"; then
9208                           if test -d "$additional_libdir"; then
9209                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9210                           fi
9211                         fi
9212                       fi
9213                     fi
9214                     ;;
9215                   -R*)
9216                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9217                     if test "$enable_rpath" != no; then
9218                                                                   haveit=
9219                       for x in $rpathdirs; do
9220                         if test "X$x" = "X$dir"; then
9221                           haveit=yes
9222                           break
9223                         fi
9224                       done
9225                       if test -z "$haveit"; then
9226                         rpathdirs="$rpathdirs $dir"
9227                       fi
9228                                                                   haveit=
9229                       for x in $ltrpathdirs; do
9230                         if test "X$x" = "X$dir"; then
9231                           haveit=yes
9232                           break
9233                         fi
9234                       done
9235                       if test -z "$haveit"; then
9236                         ltrpathdirs="$ltrpathdirs $dir"
9237                       fi
9238                     fi
9239                     ;;
9240                   -l*)
9241                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9242                     ;;
9243                   *.la)
9244                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9245                     ;;
9246                   *)
9247                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9248                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9249                     ;;
9250                 esac
9251               done
9252             fi
9253           else
9254                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9255             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9256           fi
9257         fi
9258       fi
9259     done
9260   done
9261   if test "X$rpathdirs" != "X"; then
9262     if test -n "$hardcode_libdir_separator"; then
9263                         alldirs=
9264       for found_dir in $rpathdirs; do
9265         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9266       done
9267             acl_save_libdir="$libdir"
9268       libdir="$alldirs"
9269       eval flag=\"$hardcode_libdir_flag_spec\"
9270       libdir="$acl_save_libdir"
9271       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9272     else
9273             for found_dir in $rpathdirs; do
9274         acl_save_libdir="$libdir"
9275         libdir="$found_dir"
9276         eval flag=\"$hardcode_libdir_flag_spec\"
9277         libdir="$acl_save_libdir"
9278         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9279       done
9280     fi
9281   fi
9282   if test "X$ltrpathdirs" != "X"; then
9283             for found_dir in $ltrpathdirs; do
9284       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9285     done
9286   fi
9287
9288           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9289 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9290 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
9291   $as_echo_n "(cached) " >&6
9292 else
9293   gt_save_CPPFLAGS="$CPPFLAGS"
9294             CPPFLAGS="$CPPFLAGS $INCINTL"
9295             gt_save_LIBS="$LIBS"
9296             LIBS="$LIBS $LIBINTL"
9297                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h.  */
9299 #include <libintl.h>
9300 extern int _nl_msg_cat_cntr;
9301 extern
9302 #ifdef __cplusplus
9303 "C"
9304 #endif
9305 const char *_nl_expand_alias ();
9306 int
9307 main ()
9308 {
9309 bindtextdomain ("", "");
9310 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9311   ;
9312   return 0;
9313 }
9314 _ACEOF
9315 if ac_fn_c_try_link "$LINENO"; then :
9316   gt_cv_func_gnugettext1_libintl=yes
9317 else
9318   gt_cv_func_gnugettext1_libintl=no
9319 fi
9320 rm -f core conftest.err conftest.$ac_objext \
9321     conftest$ac_exeext conftest.$ac_ext
9322                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9323               LIBS="$LIBS $LIBICONV"
9324               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9325 /* end confdefs.h.  */
9326 #include <libintl.h>
9327 extern int _nl_msg_cat_cntr;
9328 extern
9329 #ifdef __cplusplus
9330 "C"
9331 #endif
9332 const char *_nl_expand_alias ();
9333 int
9334 main ()
9335 {
9336 bindtextdomain ("", "");
9337 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9338   ;
9339   return 0;
9340 }
9341 _ACEOF
9342 if ac_fn_c_try_link "$LINENO"; then :
9343   LIBINTL="$LIBINTL $LIBICONV"
9344                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9345                 gt_cv_func_gnugettext1_libintl=yes
9346
9347 fi
9348 rm -f core conftest.err conftest.$ac_objext \
9349     conftest$ac_exeext conftest.$ac_ext
9350             fi
9351             CPPFLAGS="$gt_save_CPPFLAGS"
9352             LIBS="$gt_save_LIBS"
9353 fi
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9355 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9356         fi
9357
9358                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9359            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9360                 && test "$PACKAGE" != gettext-runtime \
9361                 && test "$PACKAGE" != gettext-tools; }; then
9362           gt_use_preinstalled_gnugettext=yes
9363         else
9364                     LIBINTL=
9365           LTLIBINTL=
9366           INCINTL=
9367         fi
9368
9369
9370         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9371                               nls_cv_use_gnu_gettext=yes
9372         fi
9373       fi
9374
9375       if test "$nls_cv_use_gnu_gettext" = "yes"; then
9376                 BUILD_INCLUDED_LIBINTL=yes
9377         USE_INCLUDED_LIBINTL=yes
9378         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9379         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9380         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9381       fi
9382
9383       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9384          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9385                 CATOBJEXT=.gmo
9386       fi
9387
9388
9389     if test "$gt_use_preinstalled_gnugettext" = "yes" \
9390        || test "$nls_cv_use_gnu_gettext" = "yes"; then
9391
9392 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9393
9394     else
9395       USE_NLS=no
9396     fi
9397   fi
9398
9399   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9400 $as_echo_n "checking whether to use NLS... " >&6; }
9401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9402 $as_echo "$USE_NLS" >&6; }
9403   if test "$USE_NLS" = "yes"; then
9404     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9405 $as_echo_n "checking where the gettext function comes from... " >&6; }
9406     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9407       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9408         gt_source="external libintl"
9409       else
9410         gt_source="libc"
9411       fi
9412     else
9413       gt_source="included intl directory"
9414     fi
9415     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9416 $as_echo "$gt_source" >&6; }
9417   fi
9418
9419   if test "$USE_NLS" = "yes"; then
9420
9421     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9422       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9423         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9424 $as_echo_n "checking how to link with libintl... " >&6; }
9425         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9426 $as_echo "$LIBINTL" >&6; }
9427
9428   for element in $INCINTL; do
9429     haveit=
9430     for x in $CPPFLAGS; do
9431
9432   acl_save_prefix="$prefix"
9433   prefix="$acl_final_prefix"
9434   acl_save_exec_prefix="$exec_prefix"
9435   exec_prefix="$acl_final_exec_prefix"
9436   eval x=\"$x\"
9437   exec_prefix="$acl_save_exec_prefix"
9438   prefix="$acl_save_prefix"
9439
9440       if test "X$x" = "X$element"; then
9441         haveit=yes
9442         break
9443       fi
9444     done
9445     if test -z "$haveit"; then
9446       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9447     fi
9448   done
9449
9450       fi
9451
9452
9453 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9454
9455
9456 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9457
9458     fi
9459
9460         POSUB=po
9461   fi
9462
9463
9464             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9465       BUILD_INCLUDED_LIBINTL=yes
9466     fi
9467
9468
9469
9470
9471
9472         nls_cv_header_intl=
9473     nls_cv_header_libgt=
9474
9475         DATADIRNAME=share
9476
9477
9478         INSTOBJEXT=.mo
9479
9480
9481         GENCAT=gencat
9482
9483
9484         if test "$USE_INCLUDED_LIBINTL" = yes; then
9485       INTLOBJS="\$(GETTOBJS)"
9486     fi
9487
9488
9489         INTL_LIBTOOL_SUFFIX_PREFIX=
9490
9491
9492
9493     INTLLIBS="$LIBINTL"
9494
9495
9496
9497
9498
9499
9500
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9502 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9503 set x ${MAKE-make}
9504 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9505 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9506   $as_echo_n "(cached) " >&6
9507 else
9508   cat >conftest.make <<\_ACEOF
9509 SHELL = /bin/sh
9510 all:
9511         @echo '@@@%%%=$(MAKE)=@@@%%%'
9512 _ACEOF
9513 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9514 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9515   *@@@%%%=?*=@@@%%%*)
9516     eval ac_cv_prog_make_${ac_make}_set=yes;;
9517   *)
9518     eval ac_cv_prog_make_${ac_make}_set=no;;
9519 esac
9520 rm -f conftest.make
9521 fi
9522 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9524 $as_echo "yes" >&6; }
9525   SET_MAKE=
9526 else
9527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9528 $as_echo "no" >&6; }
9529   SET_MAKE="MAKE=${MAKE-make}"
9530 fi
9531
9532  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9533 $as_echo_n "checking for GNU make... " >&6; }
9534 if test "${_cv_gnu_make_command+set}" = set; then :
9535   $as_echo_n "(cached) " >&6
9536 else
9537   _cv_gnu_make_command='' ;
9538                 for a in "$MAKE" make gmake gnumake ; do
9539                         if test -z "$a" ; then continue ; fi ;
9540                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
9541                                 _cv_gnu_make_command=$a ;
9542                                 break;
9543                         fi
9544                 done ;
9545
9546 fi
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9548 $as_echo "$_cv_gnu_make_command" >&6; } ;
9549         if test  "x$_cv_gnu_make_command" != "x"  ; then
9550                 ifGNUmake='' ;
9551                 ifNotGNUmake='#' ;
9552         else
9553                 ifGNUmake='#' ;
9554                 ifNotGNUmake='' ;
9555                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9556 $as_echo "\"Not found\"" >&6; };
9557         fi
9558
9559
9560
9561 # Extract the first word of "ln", so it can be a program name with args.
9562 set dummy ln; ac_word=$2
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9564 $as_echo_n "checking for $ac_word... " >&6; }
9565 if test "${ac_cv_path_LN+set}" = set; then :
9566   $as_echo_n "(cached) " >&6
9567 else
9568   case $LN in
9569   [\\/]* | ?:[\\/]*)
9570   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9571   ;;
9572   *)
9573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9574 for as_dir in $PATH
9575 do
9576   IFS=$as_save_IFS
9577   test -z "$as_dir" && as_dir=.
9578     for ac_exec_ext in '' $ac_executable_extensions; do
9579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9580     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9582     break 2
9583   fi
9584 done
9585   done
9586 IFS=$as_save_IFS
9587
9588   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9589   ;;
9590 esac
9591 fi
9592 LN=$ac_cv_path_LN
9593 if test -n "$LN"; then
9594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9595 $as_echo "$LN" >&6; }
9596 else
9597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9598 $as_echo "no" >&6; }
9599 fi
9600
9601
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9603 $as_echo_n "checking whether ln -s works... " >&6; }
9604 LN_S=$as_ln_s
9605 if test "$LN_S" = "ln -s"; then
9606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9607 $as_echo "yes" >&6; }
9608 else
9609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9610 $as_echo "no, using $LN_S" >&6; }
9611 fi
9612
9613 # Extract the first word of "mv", so it can be a program name with args.
9614 set dummy mv; ac_word=$2
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9616 $as_echo_n "checking for $ac_word... " >&6; }
9617 if test "${ac_cv_path_MV+set}" = set; then :
9618   $as_echo_n "(cached) " >&6
9619 else
9620   case $MV in
9621   [\\/]* | ?:[\\/]*)
9622   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9623   ;;
9624   *)
9625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9626 for as_dir in $PATH
9627 do
9628   IFS=$as_save_IFS
9629   test -z "$as_dir" && as_dir=.
9630     for ac_exec_ext in '' $ac_executable_extensions; do
9631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9632     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9634     break 2
9635   fi
9636 done
9637   done
9638 IFS=$as_save_IFS
9639
9640   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9641   ;;
9642 esac
9643 fi
9644 MV=$ac_cv_path_MV
9645 if test -n "$MV"; then
9646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9647 $as_echo "$MV" >&6; }
9648 else
9649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9650 $as_echo "no" >&6; }
9651 fi
9652
9653
9654 # Extract the first word of "cp", so it can be a program name with args.
9655 set dummy cp; ac_word=$2
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9657 $as_echo_n "checking for $ac_word... " >&6; }
9658 if test "${ac_cv_path_CP+set}" = set; then :
9659   $as_echo_n "(cached) " >&6
9660 else
9661   case $CP in
9662   [\\/]* | ?:[\\/]*)
9663   ac_cv_path_CP="$CP" # Let the user override the test with a path.
9664   ;;
9665   *)
9666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9667 for as_dir in $PATH
9668 do
9669   IFS=$as_save_IFS
9670   test -z "$as_dir" && as_dir=.
9671     for ac_exec_ext in '' $ac_executable_extensions; do
9672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9673     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9675     break 2
9676   fi
9677 done
9678   done
9679 IFS=$as_save_IFS
9680
9681   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9682   ;;
9683 esac
9684 fi
9685 CP=$ac_cv_path_CP
9686 if test -n "$CP"; then
9687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9688 $as_echo "$CP" >&6; }
9689 else
9690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9691 $as_echo "no" >&6; }
9692 fi
9693
9694
9695 # Extract the first word of "rm", so it can be a program name with args.
9696 set dummy rm; ac_word=$2
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9698 $as_echo_n "checking for $ac_word... " >&6; }
9699 if test "${ac_cv_path_RM+set}" = set; then :
9700   $as_echo_n "(cached) " >&6
9701 else
9702   case $RM in
9703   [\\/]* | ?:[\\/]*)
9704   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9705   ;;
9706   *)
9707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9708 for as_dir in $PATH
9709 do
9710   IFS=$as_save_IFS
9711   test -z "$as_dir" && as_dir=.
9712     for ac_exec_ext in '' $ac_executable_extensions; do
9713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9714     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9716     break 2
9717   fi
9718 done
9719   done
9720 IFS=$as_save_IFS
9721
9722   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9723   ;;
9724 esac
9725 fi
9726 RM=$ac_cv_path_RM
9727 if test -n "$RM"; then
9728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9729 $as_echo "$RM" >&6; }
9730 else
9731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9732 $as_echo "no" >&6; }
9733 fi
9734
9735
9736 # Extract the first word of "chmod", so it can be a program name with args.
9737 set dummy chmod; ac_word=$2
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9739 $as_echo_n "checking for $ac_word... " >&6; }
9740 if test "${ac_cv_path_CHMOD+set}" = set; then :
9741   $as_echo_n "(cached) " >&6
9742 else
9743   case $CHMOD in
9744   [\\/]* | ?:[\\/]*)
9745   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9746   ;;
9747   *)
9748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9749 for as_dir in $PATH
9750 do
9751   IFS=$as_save_IFS
9752   test -z "$as_dir" && as_dir=.
9753     for ac_exec_ext in '' $ac_executable_extensions; do
9754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9755     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9757     break 2
9758   fi
9759 done
9760   done
9761 IFS=$as_save_IFS
9762
9763   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9764   ;;
9765 esac
9766 fi
9767 CHMOD=$ac_cv_path_CHMOD
9768 if test -n "$CHMOD"; then
9769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9770 $as_echo "$CHMOD" >&6; }
9771 else
9772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9773 $as_echo "no" >&6; }
9774 fi
9775
9776
9777 for ac_prog in gawk mawk nawk awk
9778 do
9779   # Extract the first word of "$ac_prog", so it can be a program name with args.
9780 set dummy $ac_prog; ac_word=$2
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9782 $as_echo_n "checking for $ac_word... " >&6; }
9783 if test "${ac_cv_prog_AWK+set}" = set; then :
9784   $as_echo_n "(cached) " >&6
9785 else
9786   if test -n "$AWK"; then
9787   ac_cv_prog_AWK="$AWK" # Let the user override the test.
9788 else
9789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9790 for as_dir in $PATH
9791 do
9792   IFS=$as_save_IFS
9793   test -z "$as_dir" && as_dir=.
9794     for ac_exec_ext in '' $ac_executable_extensions; do
9795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9796     ac_cv_prog_AWK="$ac_prog"
9797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9798     break 2
9799   fi
9800 done
9801   done
9802 IFS=$as_save_IFS
9803
9804 fi
9805 fi
9806 AWK=$ac_cv_prog_AWK
9807 if test -n "$AWK"; then
9808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9809 $as_echo "$AWK" >&6; }
9810 else
9811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9812 $as_echo "no" >&6; }
9813 fi
9814
9815
9816   test -n "$AWK" && break
9817 done
9818
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9820 $as_echo_n "checking for egrep... " >&6; }
9821 if test "${ac_cv_path_EGREP+set}" = set; then :
9822   $as_echo_n "(cached) " >&6
9823 else
9824   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9825    then ac_cv_path_EGREP="$GREP -E"
9826    else
9827      if test -z "$EGREP"; then
9828   ac_path_EGREP_found=false
9829   # Loop through the user's path and test for each of PROGNAME-LIST
9830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9831 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9832 do
9833   IFS=$as_save_IFS
9834   test -z "$as_dir" && as_dir=.
9835     for ac_prog in egrep; do
9836     for ac_exec_ext in '' $ac_executable_extensions; do
9837       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9838       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
9839 # Check for GNU ac_path_EGREP and select it if it is found.
9840   # Check for GNU $ac_path_EGREP
9841 case `"$ac_path_EGREP" --version 2>&1` in
9842 *GNU*)
9843   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9844 *)
9845   ac_count=0
9846   $as_echo_n 0123456789 >"conftest.in"
9847   while :
9848   do
9849     cat "conftest.in" "conftest.in" >"conftest.tmp"
9850     mv "conftest.tmp" "conftest.in"
9851     cp "conftest.in" "conftest.nl"
9852     $as_echo 'EGREP' >> "conftest.nl"
9853     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9854     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9855     as_fn_arith $ac_count + 1 && ac_count=$as_val
9856     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9857       # Best one so far, save it but keep looking for a better one
9858       ac_cv_path_EGREP="$ac_path_EGREP"
9859       ac_path_EGREP_max=$ac_count
9860     fi
9861     # 10*(2^10) chars as input seems more than enough
9862     test $ac_count -gt 10 && break
9863   done
9864   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9865 esac
9866
9867       $ac_path_EGREP_found && break 3
9868     done
9869   done
9870   done
9871 IFS=$as_save_IFS
9872   if test -z "$ac_cv_path_EGREP"; then
9873     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9874   fi
9875 else
9876   ac_cv_path_EGREP=$EGREP
9877 fi
9878
9879    fi
9880 fi
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9882 $as_echo "$ac_cv_path_EGREP" >&6; }
9883  EGREP="$ac_cv_path_EGREP"
9884
9885
9886 # Extract the first word of "sed", so it can be a program name with args.
9887 set dummy sed; ac_word=$2
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9889 $as_echo_n "checking for $ac_word... " >&6; }
9890 if test "${ac_cv_path_SED+set}" = set; then :
9891   $as_echo_n "(cached) " >&6
9892 else
9893   case $SED in
9894   [\\/]* | ?:[\\/]*)
9895   ac_cv_path_SED="$SED" # Let the user override the test with a path.
9896   ;;
9897   *)
9898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9899 for as_dir in $PATH
9900 do
9901   IFS=$as_save_IFS
9902   test -z "$as_dir" && as_dir=.
9903     for ac_exec_ext in '' $ac_executable_extensions; do
9904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9905     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9907     break 2
9908   fi
9909 done
9910   done
9911 IFS=$as_save_IFS
9912
9913   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9914   ;;
9915 esac
9916 fi
9917 SED=$ac_cv_path_SED
9918 if test -n "$SED"; then
9919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9920 $as_echo "$SED" >&6; }
9921 else
9922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9923 $as_echo "no" >&6; }
9924 fi
9925
9926
9927 # Extract the first word of "perl", so it can be a program name with args.
9928 set dummy perl; ac_word=$2
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9930 $as_echo_n "checking for $ac_word... " >&6; }
9931 if test "${ac_cv_path_PERL+set}" = set; then :
9932   $as_echo_n "(cached) " >&6
9933 else
9934   case $PERL in
9935   [\\/]* | ?:[\\/]*)
9936   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9937   ;;
9938   *)
9939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9940 for as_dir in $PATH
9941 do
9942   IFS=$as_save_IFS
9943   test -z "$as_dir" && as_dir=.
9944     for ac_exec_ext in '' $ac_executable_extensions; do
9945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9946     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9948     break 2
9949   fi
9950 done
9951   done
9952 IFS=$as_save_IFS
9953
9954   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9955   ;;
9956 esac
9957 fi
9958 PERL=$ac_cv_path_PERL
9959 if test -n "$PERL"; then
9960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9961 $as_echo "$PERL" >&6; }
9962 else
9963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9964 $as_echo "no" >&6; }
9965 fi
9966
9967
9968 # Extract the first word of "ldconfig", so it can be a program name with args.
9969 set dummy ldconfig; ac_word=$2
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9971 $as_echo_n "checking for $ac_word... " >&6; }
9972 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
9973   $as_echo_n "(cached) " >&6
9974 else
9975   case $LDCONFIG in
9976   [\\/]* | ?:[\\/]*)
9977   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9978   ;;
9979   *)
9980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9981 for as_dir in $PATH
9982 do
9983   IFS=$as_save_IFS
9984   test -z "$as_dir" && as_dir=.
9985     for ac_exec_ext in '' $ac_executable_extensions; do
9986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9987     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
9988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9989     break 2
9990   fi
9991 done
9992   done
9993 IFS=$as_save_IFS
9994
9995   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9996   ;;
9997 esac
9998 fi
9999 LDCONFIG=$ac_cv_path_LDCONFIG
10000 if test -n "$LDCONFIG"; then
10001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
10002 $as_echo "$LDCONFIG" >&6; }
10003 else
10004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10005 $as_echo "no" >&6; }
10006 fi
10007
10008
10009 if test -n "$ac_tool_prefix"; then
10010   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10011 set dummy ${ac_tool_prefix}ar; ac_word=$2
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10013 $as_echo_n "checking for $ac_word... " >&6; }
10014 if test "${ac_cv_prog_AR+set}" = set; then :
10015   $as_echo_n "(cached) " >&6
10016 else
10017   if test -n "$AR"; then
10018   ac_cv_prog_AR="$AR" # Let the user override the test.
10019 else
10020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10021 for as_dir in $PATH
10022 do
10023   IFS=$as_save_IFS
10024   test -z "$as_dir" && as_dir=.
10025     for ac_exec_ext in '' $ac_executable_extensions; do
10026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10027     ac_cv_prog_AR="${ac_tool_prefix}ar"
10028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10029     break 2
10030   fi
10031 done
10032   done
10033 IFS=$as_save_IFS
10034
10035 fi
10036 fi
10037 AR=$ac_cv_prog_AR
10038 if test -n "$AR"; then
10039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10040 $as_echo "$AR" >&6; }
10041 else
10042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10043 $as_echo "no" >&6; }
10044 fi
10045
10046
10047 fi
10048 if test -z "$ac_cv_prog_AR"; then
10049   ac_ct_AR=$AR
10050   # Extract the first word of "ar", so it can be a program name with args.
10051 set dummy ar; ac_word=$2
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10053 $as_echo_n "checking for $ac_word... " >&6; }
10054 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10055   $as_echo_n "(cached) " >&6
10056 else
10057   if test -n "$ac_ct_AR"; then
10058   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10059 else
10060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10061 for as_dir in $PATH
10062 do
10063   IFS=$as_save_IFS
10064   test -z "$as_dir" && as_dir=.
10065     for ac_exec_ext in '' $ac_executable_extensions; do
10066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10067     ac_cv_prog_ac_ct_AR="ar"
10068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10069     break 2
10070   fi
10071 done
10072   done
10073 IFS=$as_save_IFS
10074
10075 fi
10076 fi
10077 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10078 if test -n "$ac_ct_AR"; then
10079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10080 $as_echo "$ac_ct_AR" >&6; }
10081 else
10082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10083 $as_echo "no" >&6; }
10084 fi
10085
10086   if test "x$ac_ct_AR" = x; then
10087     AR="ar"
10088   else
10089     case $cross_compiling:$ac_tool_warned in
10090 yes:)
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10093 ac_tool_warned=yes ;;
10094 esac
10095     AR=$ac_ct_AR
10096   fi
10097 else
10098   AR="$ac_cv_prog_AR"
10099 fi
10100
10101 if test -n "$ac_tool_prefix"; then
10102   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10103 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10105 $as_echo_n "checking for $ac_word... " >&6; }
10106 if test "${ac_cv_prog_RANLIB+set}" = set; then :
10107   $as_echo_n "(cached) " >&6
10108 else
10109   if test -n "$RANLIB"; then
10110   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10111 else
10112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10113 for as_dir in $PATH
10114 do
10115   IFS=$as_save_IFS
10116   test -z "$as_dir" && as_dir=.
10117     for ac_exec_ext in '' $ac_executable_extensions; do
10118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10119     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10121     break 2
10122   fi
10123 done
10124   done
10125 IFS=$as_save_IFS
10126
10127 fi
10128 fi
10129 RANLIB=$ac_cv_prog_RANLIB
10130 if test -n "$RANLIB"; then
10131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10132 $as_echo "$RANLIB" >&6; }
10133 else
10134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10135 $as_echo "no" >&6; }
10136 fi
10137
10138
10139 fi
10140 if test -z "$ac_cv_prog_RANLIB"; then
10141   ac_ct_RANLIB=$RANLIB
10142   # Extract the first word of "ranlib", so it can be a program name with args.
10143 set dummy ranlib; ac_word=$2
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10145 $as_echo_n "checking for $ac_word... " >&6; }
10146 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10147   $as_echo_n "(cached) " >&6
10148 else
10149   if test -n "$ac_ct_RANLIB"; then
10150   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10151 else
10152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153 for as_dir in $PATH
10154 do
10155   IFS=$as_save_IFS
10156   test -z "$as_dir" && as_dir=.
10157     for ac_exec_ext in '' $ac_executable_extensions; do
10158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10159     ac_cv_prog_ac_ct_RANLIB="ranlib"
10160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10161     break 2
10162   fi
10163 done
10164   done
10165 IFS=$as_save_IFS
10166
10167 fi
10168 fi
10169 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10170 if test -n "$ac_ct_RANLIB"; then
10171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10172 $as_echo "$ac_ct_RANLIB" >&6; }
10173 else
10174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10175 $as_echo "no" >&6; }
10176 fi
10177
10178   if test "x$ac_ct_RANLIB" = x; then
10179     RANLIB=":"
10180   else
10181     case $cross_compiling:$ac_tool_warned in
10182 yes:)
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10185 ac_tool_warned=yes ;;
10186 esac
10187     RANLIB=$ac_ct_RANLIB
10188   fi
10189 else
10190   RANLIB="$ac_cv_prog_RANLIB"
10191 fi
10192
10193 if test -n "$ac_tool_prefix"; then
10194   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10195 set dummy ${ac_tool_prefix}strip; ac_word=$2
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10197 $as_echo_n "checking for $ac_word... " >&6; }
10198 if test "${ac_cv_prog_STRIP+set}" = set; then :
10199   $as_echo_n "(cached) " >&6
10200 else
10201   if test -n "$STRIP"; then
10202   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10203 else
10204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10205 for as_dir in $PATH
10206 do
10207   IFS=$as_save_IFS
10208   test -z "$as_dir" && as_dir=.
10209     for ac_exec_ext in '' $ac_executable_extensions; do
10210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10211     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10213     break 2
10214   fi
10215 done
10216   done
10217 IFS=$as_save_IFS
10218
10219 fi
10220 fi
10221 STRIP=$ac_cv_prog_STRIP
10222 if test -n "$STRIP"; then
10223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10224 $as_echo "$STRIP" >&6; }
10225 else
10226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10227 $as_echo "no" >&6; }
10228 fi
10229
10230
10231 fi
10232 if test -z "$ac_cv_prog_STRIP"; then
10233   ac_ct_STRIP=$STRIP
10234   # Extract the first word of "strip", so it can be a program name with args.
10235 set dummy strip; ac_word=$2
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10237 $as_echo_n "checking for $ac_word... " >&6; }
10238 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10239   $as_echo_n "(cached) " >&6
10240 else
10241   if test -n "$ac_ct_STRIP"; then
10242   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10243 else
10244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10245 for as_dir in $PATH
10246 do
10247   IFS=$as_save_IFS
10248   test -z "$as_dir" && as_dir=.
10249     for ac_exec_ext in '' $ac_executable_extensions; do
10250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10251     ac_cv_prog_ac_ct_STRIP="strip"
10252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10253     break 2
10254   fi
10255 done
10256   done
10257 IFS=$as_save_IFS
10258
10259 fi
10260 fi
10261 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10262 if test -n "$ac_ct_STRIP"; then
10263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10264 $as_echo "$ac_ct_STRIP" >&6; }
10265 else
10266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10267 $as_echo "no" >&6; }
10268 fi
10269
10270   if test "x$ac_ct_STRIP" = x; then
10271     STRIP=":"
10272   else
10273     case $cross_compiling:$ac_tool_warned in
10274 yes:)
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10277 ac_tool_warned=yes ;;
10278 esac
10279     STRIP=$ac_ct_STRIP
10280   fi
10281 else
10282   STRIP="$ac_cv_prog_STRIP"
10283 fi
10284
10285 # Extract the first word of "makeinfo", so it can be a program name with args.
10286 set dummy makeinfo; ac_word=$2
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10288 $as_echo_n "checking for $ac_word... " >&6; }
10289 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
10290   $as_echo_n "(cached) " >&6
10291 else
10292   if test -n "$MAKEINFO"; then
10293   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10294 else
10295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296 for as_dir in $PATH
10297 do
10298   IFS=$as_save_IFS
10299   test -z "$as_dir" && as_dir=.
10300     for ac_exec_ext in '' $ac_executable_extensions; do
10301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10302     ac_cv_prog_MAKEINFO="makeinfo"
10303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10304     break 2
10305   fi
10306 done
10307   done
10308 IFS=$as_save_IFS
10309
10310 fi
10311 fi
10312 MAKEINFO=$ac_cv_prog_MAKEINFO
10313 if test -n "$MAKEINFO"; then
10314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10315 $as_echo "$MAKEINFO" >&6; }
10316 else
10317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318 $as_echo "no" >&6; }
10319 fi
10320
10321
10322 if test "_$MAKEINFO" = "_"; then
10323     MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10324 else
10325     case "$MAKEINFO" in
10326       */missing.*)
10327         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10328 *** Makeinfo is missing. Info documentation will not be built." >&5
10329 $as_echo "$as_me: WARNING:
10330 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10331         ;;
10332       *)
10333         ;;
10334     esac
10335 fi
10336
10337
10338 # See if we need a separate native compiler.
10339 if test $cross_compiling = no; then
10340   BUILD_CC="$CC"
10341
10342 else
10343   for ac_prog in gcc cc
10344 do
10345   # Extract the first word of "$ac_prog", so it can be a program name with args.
10346 set dummy $ac_prog; ac_word=$2
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10348 $as_echo_n "checking for $ac_word... " >&6; }
10349 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
10350   $as_echo_n "(cached) " >&6
10351 else
10352   if test -n "$BUILD_CC"; then
10353   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10354 else
10355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10356 for as_dir in $PATH
10357 do
10358   IFS=$as_save_IFS
10359   test -z "$as_dir" && as_dir=.
10360     for ac_exec_ext in '' $ac_executable_extensions; do
10361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10362     ac_cv_prog_BUILD_CC="$ac_prog"
10363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10364     break 2
10365   fi
10366 done
10367   done
10368 IFS=$as_save_IFS
10369
10370 fi
10371 fi
10372 BUILD_CC=$ac_cv_prog_BUILD_CC
10373 if test -n "$BUILD_CC"; then
10374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10375 $as_echo "$BUILD_CC" >&6; }
10376 else
10377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10378 $as_echo "no" >&6; }
10379 fi
10380
10381
10382   test -n "$BUILD_CC" && break
10383 done
10384
10385 fi
10386 for ac_header in        attr/xattr.h    dirent.h        errno.h         execinfo.h      getopt.h        malloc.h        mntent.h        paths.h         semaphore.h     setjmp.h        signal.h        stdarg.h        stdint.h        stdlib.h        termios.h       termio.h        unistd.h        utime.h         linux/falloc.h  linux/fd.h      linux/major.h   net/if_dl.h     netinet/in.h    sys/disklabel.h         sys/file.h      sys/ioctl.h     sys/mkdev.h     sys/mman.h      sys/prctl.h     sys/queue.h     sys/resource.h  sys/select.h    sys/socket.h    sys/sockio.h    sys/stat.h      sys/syscall.h   sys/sysmacros.h         sys/time.h      sys/types.h     sys/un.h        sys/wait.h      sys/xattr.h
10387 do :
10388   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10389 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10390 eval as_val=\$$as_ac_Header
10391    if test "x$as_val" = x""yes; then :
10392   cat >>confdefs.h <<_ACEOF
10393 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10394 _ACEOF
10395
10396 fi
10397
10398 done
10399
10400 for ac_header in sys/disk.h sys/mount.h
10401 do :
10402   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10403 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10404 #if HAVE_SYS_QUEUE_H
10405 #include <sys/queue.h>
10406 #endif
10407
10408 "
10409 eval as_val=\$$as_ac_Header
10410    if test "x$as_val" = x""yes; then :
10411   cat >>confdefs.h <<_ACEOF
10412 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10413 _ACEOF
10414
10415 fi
10416
10417 done
10418
10419 for ac_header in net/if.h
10420 do :
10421   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10422 #if HAVE_SYS_TYPES_H
10423 #include <sys/types.h>
10424 #endif
10425 #if HAVE_SYS_SOCKET
10426 #include <sys/socket.h>
10427 #endif
10428
10429 "
10430 if test "x$ac_cv_header_net_if_h" = x""yes; then :
10431   cat >>confdefs.h <<_ACEOF
10432 #define HAVE_NET_IF_H 1
10433 _ACEOF
10434
10435 fi
10436
10437 done
10438
10439 for ac_header in db.h
10440 do :
10441   ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
10442 if test "x$ac_cv_header_db_h" = x""yes; then :
10443   cat >>confdefs.h <<_ACEOF
10444 #define HAVE_DB_H 1
10445 _ACEOF
10446
10447 fi
10448
10449 done
10450
10451 for ac_func in vprintf
10452 do :
10453   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10454 if test "x$ac_cv_func_vprintf" = x""yes; then :
10455   cat >>confdefs.h <<_ACEOF
10456 #define HAVE_VPRINTF 1
10457 _ACEOF
10458
10459 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10460 if test "x$ac_cv_func__doprnt" = x""yes; then :
10461
10462 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10463
10464 fi
10465
10466 fi
10467 done
10468
10469
10470 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10471 "
10472 if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then :
10473
10474 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10475
10476 fi
10477
10478 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10479 "
10480 if test "x$ac_cv_type_ssize_t" = x""yes; then :
10481
10482 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10483
10484 fi
10485
10486 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10487 "
10488 if test "x$ac_cv_have_decl_llseek" = x""yes; then :
10489
10490 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10491
10492 fi
10493
10494 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10495                  #define _LARGEFILE64_SOURCE
10496                  #include <unistd.h>
10497 "
10498 if test "x$ac_cv_have_decl_lseek64" = x""yes; then :
10499
10500 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10501
10502 fi
10503
10504 # The cast to long int works around a bug in the HP C Compiler
10505 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10506 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10507 # This bug is HP SR number 8606223364.
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10509 $as_echo_n "checking size of short... " >&6; }
10510 if test "${ac_cv_sizeof_short+set}" = set; then :
10511   $as_echo_n "(cached) " >&6
10512 else
10513   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
10514
10515 else
10516   if test "$ac_cv_type_short" = yes; then
10517      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10519 { as_fn_set_status 77
10520 as_fn_error "cannot compute sizeof (short)
10521 See \`config.log' for more details." "$LINENO" 5; }; }
10522    else
10523      ac_cv_sizeof_short=0
10524    fi
10525 fi
10526
10527 fi
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10529 $as_echo "$ac_cv_sizeof_short" >&6; }
10530
10531
10532
10533 cat >>confdefs.h <<_ACEOF
10534 #define SIZEOF_SHORT $ac_cv_sizeof_short
10535 _ACEOF
10536
10537
10538 # The cast to long int works around a bug in the HP C Compiler
10539 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10540 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10541 # This bug is HP SR number 8606223364.
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10543 $as_echo_n "checking size of int... " >&6; }
10544 if test "${ac_cv_sizeof_int+set}" = set; then :
10545   $as_echo_n "(cached) " >&6
10546 else
10547   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
10548
10549 else
10550   if test "$ac_cv_type_int" = yes; then
10551      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10553 { as_fn_set_status 77
10554 as_fn_error "cannot compute sizeof (int)
10555 See \`config.log' for more details." "$LINENO" 5; }; }
10556    else
10557      ac_cv_sizeof_int=0
10558    fi
10559 fi
10560
10561 fi
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10563 $as_echo "$ac_cv_sizeof_int" >&6; }
10564
10565
10566
10567 cat >>confdefs.h <<_ACEOF
10568 #define SIZEOF_INT $ac_cv_sizeof_int
10569 _ACEOF
10570
10571
10572 # The cast to long int works around a bug in the HP C Compiler
10573 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10574 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10575 # This bug is HP SR number 8606223364.
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10577 $as_echo_n "checking size of long... " >&6; }
10578 if test "${ac_cv_sizeof_long+set}" = set; then :
10579   $as_echo_n "(cached) " >&6
10580 else
10581   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
10582
10583 else
10584   if test "$ac_cv_type_long" = yes; then
10585      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10587 { as_fn_set_status 77
10588 as_fn_error "cannot compute sizeof (long)
10589 See \`config.log' for more details." "$LINENO" 5; }; }
10590    else
10591      ac_cv_sizeof_long=0
10592    fi
10593 fi
10594
10595 fi
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10597 $as_echo "$ac_cv_sizeof_long" >&6; }
10598
10599
10600
10601 cat >>confdefs.h <<_ACEOF
10602 #define SIZEOF_LONG $ac_cv_sizeof_long
10603 _ACEOF
10604
10605
10606 # The cast to long int works around a bug in the HP C Compiler
10607 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10608 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10609 # This bug is HP SR number 8606223364.
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10611 $as_echo_n "checking size of long long... " >&6; }
10612 if test "${ac_cv_sizeof_long_long+set}" = set; then :
10613   $as_echo_n "(cached) " >&6
10614 else
10615   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
10616
10617 else
10618   if test "$ac_cv_type_long_long" = yes; then
10619      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10621 { as_fn_set_status 77
10622 as_fn_error "cannot compute sizeof (long long)
10623 See \`config.log' for more details." "$LINENO" 5; }; }
10624    else
10625      ac_cv_sizeof_long_long=0
10626    fi
10627 fi
10628
10629 fi
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10631 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10632
10633
10634
10635 cat >>confdefs.h <<_ACEOF
10636 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10637 _ACEOF
10638
10639
10640 SIZEOF_SHORT=$ac_cv_sizeof_short
10641 SIZEOF_INT=$ac_cv_sizeof_int
10642 SIZEOF_LONG=$ac_cv_sizeof_long
10643 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10644
10645
10646
10647
10648  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10649 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10650 if test "${ac_cv_c_bigendian+set}" = set; then :
10651   $as_echo_n "(cached) " >&6
10652 else
10653   ac_cv_c_bigendian=unknown
10654     # See if we're dealing with a universal compiler.
10655     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10656 /* end confdefs.h.  */
10657 #ifndef __APPLE_CC__
10658                not a universal capable compiler
10659              #endif
10660              typedef int dummy;
10661
10662 _ACEOF
10663 if ac_fn_c_try_compile "$LINENO"; then :
10664
10665         # Check for potential -arch flags.  It is not universal unless
10666         # there are at least two -arch flags with different values.
10667         ac_arch=
10668         ac_prev=
10669         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10670          if test -n "$ac_prev"; then
10671            case $ac_word in
10672              i?86 | x86_64 | ppc | ppc64)
10673                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10674                  ac_arch=$ac_word
10675                else
10676                  ac_cv_c_bigendian=universal
10677                  break
10678                fi
10679                ;;
10680            esac
10681            ac_prev=
10682          elif test "x$ac_word" = "x-arch"; then
10683            ac_prev=arch
10684          fi
10685        done
10686 fi
10687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10688     if test $ac_cv_c_bigendian = unknown; then
10689       # See if sys/param.h defines the BYTE_ORDER macro.
10690       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10691 /* end confdefs.h.  */
10692 #include <sys/types.h>
10693              #include <sys/param.h>
10694
10695 int
10696 main ()
10697 {
10698 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10699                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10700                      && LITTLE_ENDIAN)
10701               bogus endian macros
10702              #endif
10703
10704   ;
10705   return 0;
10706 }
10707 _ACEOF
10708 if ac_fn_c_try_compile "$LINENO"; then :
10709   # It does; now see whether it defined to BIG_ENDIAN or not.
10710          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10711 /* end confdefs.h.  */
10712 #include <sys/types.h>
10713                 #include <sys/param.h>
10714
10715 int
10716 main ()
10717 {
10718 #if BYTE_ORDER != BIG_ENDIAN
10719                  not big endian
10720                 #endif
10721
10722   ;
10723   return 0;
10724 }
10725 _ACEOF
10726 if ac_fn_c_try_compile "$LINENO"; then :
10727   ac_cv_c_bigendian=yes
10728 else
10729   ac_cv_c_bigendian=no
10730 fi
10731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10732 fi
10733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10734     fi
10735     if test $ac_cv_c_bigendian = unknown; then
10736       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10737       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738 /* end confdefs.h.  */
10739 #include <limits.h>
10740
10741 int
10742 main ()
10743 {
10744 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10745               bogus endian macros
10746              #endif
10747
10748   ;
10749   return 0;
10750 }
10751 _ACEOF
10752 if ac_fn_c_try_compile "$LINENO"; then :
10753   # It does; now see whether it defined to _BIG_ENDIAN or not.
10754          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h.  */
10756 #include <limits.h>
10757
10758 int
10759 main ()
10760 {
10761 #ifndef _BIG_ENDIAN
10762                  not big endian
10763                 #endif
10764
10765   ;
10766   return 0;
10767 }
10768 _ACEOF
10769 if ac_fn_c_try_compile "$LINENO"; then :
10770   ac_cv_c_bigendian=yes
10771 else
10772   ac_cv_c_bigendian=no
10773 fi
10774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10775 fi
10776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10777     fi
10778     if test $ac_cv_c_bigendian = unknown; then
10779       # Compile a test program.
10780       if test "$cross_compiling" = yes; then :
10781   # Try to guess by grepping values from an object file.
10782          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10783 /* end confdefs.h.  */
10784 short int ascii_mm[] =
10785                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10786                 short int ascii_ii[] =
10787                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10788                 int use_ascii (int i) {
10789                   return ascii_mm[i] + ascii_ii[i];
10790                 }
10791                 short int ebcdic_ii[] =
10792                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10793                 short int ebcdic_mm[] =
10794                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10795                 int use_ebcdic (int i) {
10796                   return ebcdic_mm[i] + ebcdic_ii[i];
10797                 }
10798                 extern int foo;
10799
10800 int
10801 main ()
10802 {
10803 return use_ascii (foo) == use_ebcdic (foo);
10804   ;
10805   return 0;
10806 }
10807 _ACEOF
10808 if ac_fn_c_try_compile "$LINENO"; then :
10809   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10810               ac_cv_c_bigendian=yes
10811             fi
10812             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10813               if test "$ac_cv_c_bigendian" = unknown; then
10814                 ac_cv_c_bigendian=no
10815               else
10816                 # finding both strings is unlikely to happen, but who knows?
10817                 ac_cv_c_bigendian=unknown
10818               fi
10819             fi
10820 fi
10821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10822 else
10823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10824 /* end confdefs.h.  */
10825 $ac_includes_default
10826 int
10827 main ()
10828 {
10829
10830              /* Are we little or big endian?  From Harbison&Steele.  */
10831              union
10832              {
10833                long int l;
10834                char c[sizeof (long int)];
10835              } u;
10836              u.l = 1;
10837              return u.c[sizeof (long int) - 1] == 1;
10838
10839   ;
10840   return 0;
10841 }
10842 _ACEOF
10843 if ac_fn_c_try_run "$LINENO"; then :
10844   ac_cv_c_bigendian=no
10845 else
10846   ac_cv_c_bigendian=yes
10847 fi
10848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10849   conftest.$ac_objext conftest.beam conftest.$ac_ext
10850 fi
10851
10852     fi
10853 fi
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10855 $as_echo "$ac_cv_c_bigendian" >&6; }
10856  case $ac_cv_c_bigendian in #(
10857    yes)
10858      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10859 ;; #(
10860    no)
10861       ;; #(
10862    universal)
10863
10864 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10865
10866      ;; #(
10867    *)
10868      as_fn_error "unknown endianness
10869  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10870  esac
10871
10872 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10873 ASM_TYPES_HEADER=./asm_types.h
10874
10875 echo "/* These defines are needed for the public ext2fs.h header file */" \
10876      > public_config.h
10877 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10878   uniq tmp_config.$$ >> public_config.h
10879 else
10880   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10881 fi
10882 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10883   uniq tmp_config.$$ >> public_config.h
10884 else
10885   echo "#undef WORDS_BIGENDIAN" >> public_config.h
10886 fi
10887 rm -f tmp_config.$$
10888 PUBLIC_CONFIG_HEADER=./public_config.h
10889
10890 for ac_header in inttypes.h
10891 do :
10892   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10893 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
10894   cat >>confdefs.h <<_ACEOF
10895 #define HAVE_INTTYPES_H 1
10896 _ACEOF
10897
10898 fi
10899
10900 done
10901
10902 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10903 if test "x$ac_cv_type_intptr_t" = x""yes; then :
10904
10905 cat >>confdefs.h <<_ACEOF
10906 #define HAVE_INTPTR_T 1
10907 _ACEOF
10908
10909
10910 fi
10911
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10913 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10914 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then :
10915   $as_echo_n "(cached) " >&6
10916 else
10917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10918 /* end confdefs.h.  */
10919 #include <sys/stat.h>
10920 int
10921 main ()
10922 {
10923 struct stat stat; stat.st_flags = 0;
10924   ;
10925   return 0;
10926 }
10927 _ACEOF
10928 if ac_fn_c_try_compile "$LINENO"; then :
10929   e2fsprogs_cv_struct_st_flags=yes
10930 else
10931   e2fsprogs_cv_struct_st_flags=no
10932 fi
10933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10934 fi
10935
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10937 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10938 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10940 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10941   if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then :
10942   $as_echo_n "(cached) " >&6
10943 else
10944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10945 /* end confdefs.h.  */
10946 #include <sys/stat.h>
10947 int
10948 main ()
10949 {
10950 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
10951   ;
10952   return 0;
10953 }
10954 _ACEOF
10955 if ac_fn_c_try_compile "$LINENO"; then :
10956   e2fsprogs_cv_struct_st_flags_immut=yes
10957 else
10958   e2fsprogs_cv_struct_st_flags_immut=no
10959 fi
10960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10961 fi
10962
10963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
10964 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
10965   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
10966
10967 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
10968
10969   fi
10970 fi
10971 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10972          #include <sys/socket.h>
10973 "
10974 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
10975
10976 cat >>confdefs.h <<_ACEOF
10977 #define HAVE_SA_LEN 1
10978 _ACEOF
10979
10980 fi
10981
10982 if test -n "$BLKID_CMT"; then
10983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
10984 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
10985 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10986   $as_echo_n "(cached) " >&6
10987 else
10988   ac_func_search_save_LIBS=$LIBS
10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h.  */
10991
10992 /* Override any GCC internal prototype to avoid an error.
10993    Use char because int might match the return type of a GCC
10994    builtin and then its argument prototype would still apply.  */
10995 #ifdef __cplusplus
10996 extern "C"
10997 #endif
10998 char blkid_probe_all ();
10999 int
11000 main ()
11001 {
11002 return blkid_probe_all ();
11003   ;
11004   return 0;
11005 }
11006 _ACEOF
11007 for ac_lib in '' blkid; do
11008   if test -z "$ac_lib"; then
11009     ac_res="none required"
11010   else
11011     ac_res=-l$ac_lib
11012     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11013   fi
11014   if ac_fn_c_try_link "$LINENO"; then :
11015   ac_cv_search_blkid_probe_all=$ac_res
11016 fi
11017 rm -f core conftest.err conftest.$ac_objext \
11018     conftest$ac_exeext
11019   if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
11020   break
11021 fi
11022 done
11023 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
11024
11025 else
11026   ac_cv_search_blkid_probe_all=no
11027 fi
11028 rm conftest.$ac_ext
11029 LIBS=$ac_func_search_save_LIBS
11030 fi
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
11032 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11033 ac_res=$ac_cv_search_blkid_probe_all
11034 if test "$ac_res" != no; then :
11035   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11036
11037 fi
11038
11039 fi
11040 for ac_func in          __secure_getenv         backtrace       blkid_probe_get_topology        chflags         fallocate       fallocate64     fchown  fdatasync       fstat64         ftruncate64     getdtablesize   getmntinfo      getpwuid_r      getrlimit       getrusage       jrand48         llseek  lseek64         mallinfo        mbstowcs        memalign        mmap    msync   nanosleep       open64  pathconf        posix_fadvise   posix_memalign  prctl   setmntent       setresgid       setresuid       srandom         strcasecmp      strdup  strnlen         strptime        strtoull        sync_file_range         sysconf         usleep  utime   valloc
11041 do :
11042   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11043 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11044 eval as_val=\$$as_ac_var
11045    if test "x$as_val" = x""yes; then :
11046   cat >>confdefs.h <<_ACEOF
11047 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11048 _ACEOF
11049
11050 fi
11051 done
11052
11053 SOCKET_LIB=''
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11055 $as_echo_n "checking for socket in -lsocket... " >&6; }
11056 if test "${ac_cv_lib_socket_socket+set}" = set; then :
11057   $as_echo_n "(cached) " >&6
11058 else
11059   ac_check_lib_save_LIBS=$LIBS
11060 LIBS="-lsocket  $LIBS"
11061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11062 /* end confdefs.h.  */
11063
11064 /* Override any GCC internal prototype to avoid an error.
11065    Use char because int might match the return type of a GCC
11066    builtin and then its argument prototype would still apply.  */
11067 #ifdef __cplusplus
11068 extern "C"
11069 #endif
11070 char socket ();
11071 int
11072 main ()
11073 {
11074 return socket ();
11075   ;
11076   return 0;
11077 }
11078 _ACEOF
11079 if ac_fn_c_try_link "$LINENO"; then :
11080   ac_cv_lib_socket_socket=yes
11081 else
11082   ac_cv_lib_socket_socket=no
11083 fi
11084 rm -f core conftest.err conftest.$ac_objext \
11085     conftest$ac_exeext conftest.$ac_ext
11086 LIBS=$ac_check_lib_save_LIBS
11087 fi
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11089 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11090 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
11091   SOCKET_LIB=-lsocket
11092 fi
11093
11094
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb-4.1" >&5
11096 $as_echo_n "checking for db_env_create in -ldb-4.1... " >&6; }
11097 if test "${ac_cv_lib_db_4_1_db_env_create+set}" = set; then :
11098   $as_echo_n "(cached) " >&6
11099 else
11100   ac_check_lib_save_LIBS=$LIBS
11101 LIBS="-ldb-4.1  $LIBS"
11102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11103 /* end confdefs.h.  */
11104
11105 /* Override any GCC internal prototype to avoid an error.
11106    Use char because int might match the return type of a GCC
11107    builtin and then its argument prototype would still apply.  */
11108 #ifdef __cplusplus
11109 extern "C"
11110 #endif
11111 char db_env_create ();
11112 int
11113 main ()
11114 {
11115 return db_env_create ();
11116   ;
11117   return 0;
11118 }
11119 _ACEOF
11120 if ac_fn_c_try_link "$LINENO"; then :
11121   ac_cv_lib_db_4_1_db_env_create=yes
11122 else
11123   ac_cv_lib_db_4_1_db_env_create=no
11124 fi
11125 rm -f core conftest.err conftest.$ac_objext \
11126     conftest$ac_exeext conftest.$ac_ext
11127 LIBS=$ac_check_lib_save_LIBS
11128 fi
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_4_1_db_env_create" >&5
11130 $as_echo "$ac_cv_lib_db_4_1_db_env_create" >&6; }
11131 if test "x$ac_cv_lib_db_4_1_db_env_create" = x""yes; then :
11132   DB4VERSION=4.1
11133
11134 $as_echo "#define HAVE_DB4 1" >>confdefs.h
11135
11136
11137 fi
11138
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb-4.2" >&5
11140 $as_echo_n "checking for db_env_create in -ldb-4.2... " >&6; }
11141 if test "${ac_cv_lib_db_4_2_db_env_create+set}" = set; then :
11142   $as_echo_n "(cached) " >&6
11143 else
11144   ac_check_lib_save_LIBS=$LIBS
11145 LIBS="-ldb-4.2  $LIBS"
11146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11147 /* end confdefs.h.  */
11148
11149 /* Override any GCC internal prototype to avoid an error.
11150    Use char because int might match the return type of a GCC
11151    builtin and then its argument prototype would still apply.  */
11152 #ifdef __cplusplus
11153 extern "C"
11154 #endif
11155 char db_env_create ();
11156 int
11157 main ()
11158 {
11159 return db_env_create ();
11160   ;
11161   return 0;
11162 }
11163 _ACEOF
11164 if ac_fn_c_try_link "$LINENO"; then :
11165   ac_cv_lib_db_4_2_db_env_create=yes
11166 else
11167   ac_cv_lib_db_4_2_db_env_create=no
11168 fi
11169 rm -f core conftest.err conftest.$ac_objext \
11170     conftest$ac_exeext conftest.$ac_ext
11171 LIBS=$ac_check_lib_save_LIBS
11172 fi
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_4_2_db_env_create" >&5
11174 $as_echo "$ac_cv_lib_db_4_2_db_env_create" >&6; }
11175 if test "x$ac_cv_lib_db_4_2_db_env_create" = x""yes; then :
11176   DB4VERSION=4.2
11177
11178 $as_echo "#define HAVE_DB4 1" >>confdefs.h
11179
11180
11181 fi
11182
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb-4.3" >&5
11184 $as_echo_n "checking for db_env_create in -ldb-4.3... " >&6; }
11185 if test "${ac_cv_lib_db_4_3_db_env_create+set}" = set; then :
11186   $as_echo_n "(cached) " >&6
11187 else
11188   ac_check_lib_save_LIBS=$LIBS
11189 LIBS="-ldb-4.3  $LIBS"
11190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11191 /* end confdefs.h.  */
11192
11193 /* Override any GCC internal prototype to avoid an error.
11194    Use char because int might match the return type of a GCC
11195    builtin and then its argument prototype would still apply.  */
11196 #ifdef __cplusplus
11197 extern "C"
11198 #endif
11199 char db_env_create ();
11200 int
11201 main ()
11202 {
11203 return db_env_create ();
11204   ;
11205   return 0;
11206 }
11207 _ACEOF
11208 if ac_fn_c_try_link "$LINENO"; then :
11209   ac_cv_lib_db_4_3_db_env_create=yes
11210 else
11211   ac_cv_lib_db_4_3_db_env_create=no
11212 fi
11213 rm -f core conftest.err conftest.$ac_objext \
11214     conftest$ac_exeext conftest.$ac_ext
11215 LIBS=$ac_check_lib_save_LIBS
11216 fi
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_4_3_db_env_create" >&5
11218 $as_echo "$ac_cv_lib_db_4_3_db_env_create" >&6; }
11219 if test "x$ac_cv_lib_db_4_3_db_env_create" = x""yes; then :
11220   DB4VERSION=4.3
11221
11222 $as_echo "#define HAVE_DB4 1" >>confdefs.h
11223
11224
11225 fi
11226
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb-4.5" >&5
11228 $as_echo_n "checking for db_env_create in -ldb-4.5... " >&6; }
11229 if test "${ac_cv_lib_db_4_5_db_env_create+set}" = set; then :
11230   $as_echo_n "(cached) " >&6
11231 else
11232   ac_check_lib_save_LIBS=$LIBS
11233 LIBS="-ldb-4.5  $LIBS"
11234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11235 /* end confdefs.h.  */
11236
11237 /* Override any GCC internal prototype to avoid an error.
11238    Use char because int might match the return type of a GCC
11239    builtin and then its argument prototype would still apply.  */
11240 #ifdef __cplusplus
11241 extern "C"
11242 #endif
11243 char db_env_create ();
11244 int
11245 main ()
11246 {
11247 return db_env_create ();
11248   ;
11249   return 0;
11250 }
11251 _ACEOF
11252 if ac_fn_c_try_link "$LINENO"; then :
11253   ac_cv_lib_db_4_5_db_env_create=yes
11254 else
11255   ac_cv_lib_db_4_5_db_env_create=no
11256 fi
11257 rm -f core conftest.err conftest.$ac_objext \
11258     conftest$ac_exeext conftest.$ac_ext
11259 LIBS=$ac_check_lib_save_LIBS
11260 fi
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_4_5_db_env_create" >&5
11262 $as_echo "$ac_cv_lib_db_4_5_db_env_create" >&6; }
11263 if test "x$ac_cv_lib_db_4_5_db_env_create" = x""yes; then :
11264   DB4VERSION=4.5
11265
11266 $as_echo "#define HAVE_DB4 1" >>confdefs.h
11267
11268
11269 fi
11270
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb-4.6" >&5
11272 $as_echo_n "checking for db_env_create in -ldb-4.6... " >&6; }
11273 if test "${ac_cv_lib_db_4_6_db_env_create+set}" = set; then :
11274   $as_echo_n "(cached) " >&6
11275 else
11276   ac_check_lib_save_LIBS=$LIBS
11277 LIBS="-ldb-4.6  $LIBS"
11278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11279 /* end confdefs.h.  */
11280
11281 /* Override any GCC internal prototype to avoid an error.
11282    Use char because int might match the return type of a GCC
11283    builtin and then its argument prototype would still apply.  */
11284 #ifdef __cplusplus
11285 extern "C"
11286 #endif
11287 char db_env_create ();
11288 int
11289 main ()
11290 {
11291 return db_env_create ();
11292   ;
11293   return 0;
11294 }
11295 _ACEOF
11296 if ac_fn_c_try_link "$LINENO"; then :
11297   ac_cv_lib_db_4_6_db_env_create=yes
11298 else
11299   ac_cv_lib_db_4_6_db_env_create=no
11300 fi
11301 rm -f core conftest.err conftest.$ac_objext \
11302     conftest$ac_exeext conftest.$ac_ext
11303 LIBS=$ac_check_lib_save_LIBS
11304 fi
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_4_6_db_env_create" >&5
11306 $as_echo "$ac_cv_lib_db_4_6_db_env_create" >&6; }
11307 if test "x$ac_cv_lib_db_4_6_db_env_create" = x""yes; then :
11308   DB4VERSION=4.6
11309
11310 $as_echo "#define HAVE_DB4 1" >>confdefs.h
11311
11312
11313 fi
11314
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb-4.7" >&5
11316 $as_echo_n "checking for db_env_create in -ldb-4.7... " >&6; }
11317 if test "${ac_cv_lib_db_4_7_db_env_create+set}" = set; then :
11318   $as_echo_n "(cached) " >&6
11319 else
11320   ac_check_lib_save_LIBS=$LIBS
11321 LIBS="-ldb-4.7  $LIBS"
11322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11323 /* end confdefs.h.  */
11324
11325 /* Override any GCC internal prototype to avoid an error.
11326    Use char because int might match the return type of a GCC
11327    builtin and then its argument prototype would still apply.  */
11328 #ifdef __cplusplus
11329 extern "C"
11330 #endif
11331 char db_env_create ();
11332 int
11333 main ()
11334 {
11335 return db_env_create ();
11336   ;
11337   return 0;
11338 }
11339 _ACEOF
11340 if ac_fn_c_try_link "$LINENO"; then :
11341   ac_cv_lib_db_4_7_db_env_create=yes
11342 else
11343   ac_cv_lib_db_4_7_db_env_create=no
11344 fi
11345 rm -f core conftest.err conftest.$ac_objext \
11346     conftest$ac_exeext conftest.$ac_ext
11347 LIBS=$ac_check_lib_save_LIBS
11348 fi
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_4_7_db_env_create" >&5
11350 $as_echo "$ac_cv_lib_db_4_7_db_env_create" >&6; }
11351 if test "x$ac_cv_lib_db_4_7_db_env_create" = x""yes; then :
11352   DB4VERSION=4.7
11353
11354 $as_echo "#define HAVE_DB4 1" >>confdefs.h
11355
11356
11357 fi
11358
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb-4.8" >&5
11360 $as_echo_n "checking for db_env_create in -ldb-4.8... " >&6; }
11361 if test "${ac_cv_lib_db_4_8_db_env_create+set}" = set; then :
11362   $as_echo_n "(cached) " >&6
11363 else
11364   ac_check_lib_save_LIBS=$LIBS
11365 LIBS="-ldb-4.8  $LIBS"
11366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11367 /* end confdefs.h.  */
11368
11369 /* Override any GCC internal prototype to avoid an error.
11370    Use char because int might match the return type of a GCC
11371    builtin and then its argument prototype would still apply.  */
11372 #ifdef __cplusplus
11373 extern "C"
11374 #endif
11375 char db_env_create ();
11376 int
11377 main ()
11378 {
11379 return db_env_create ();
11380   ;
11381   return 0;
11382 }
11383 _ACEOF
11384 if ac_fn_c_try_link "$LINENO"; then :
11385   ac_cv_lib_db_4_8_db_env_create=yes
11386 else
11387   ac_cv_lib_db_4_8_db_env_create=no
11388 fi
11389 rm -f core conftest.err conftest.$ac_objext \
11390     conftest$ac_exeext conftest.$ac_ext
11391 LIBS=$ac_check_lib_save_LIBS
11392 fi
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_4_8_db_env_create" >&5
11394 $as_echo "$ac_cv_lib_db_4_8_db_env_create" >&6; }
11395 if test "x$ac_cv_lib_db_4_8_db_env_create" = x""yes; then :
11396   DB4VERSION=4.8
11397
11398 $as_echo "#define HAVE_DB4 1" >>confdefs.h
11399
11400
11401 fi
11402
11403
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11405 $as_echo_n "checking for optreset... " >&6; }
11406 if test "${ac_cv_have_optreset+set}" = set; then :
11407   $as_echo_n "(cached) " >&6
11408 else
11409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11410 /* end confdefs.h.  */
11411 #include <unistd.h>
11412
11413 _ACEOF
11414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11415   $EGREP "optreset" >/dev/null 2>&1; then :
11416   ac_cv_have_optreset=yes
11417 else
11418   ac_cv_have_optreset=no
11419 fi
11420 rm -f conftest*
11421
11422 fi
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11424 $as_echo "$ac_cv_have_optreset" >&6; }
11425 if test $ac_cv_have_optreset = yes; then
11426
11427 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11428
11429 fi
11430
11431 SEM_INIT_LIB=''
11432 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11433 if test "x$ac_cv_func_sem_init" = x""yes; then :
11434
11435 else
11436   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11437 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11438 if test "${ac_cv_lib_pthread_sem_init+set}" = set; then :
11439   $as_echo_n "(cached) " >&6
11440 else
11441   ac_check_lib_save_LIBS=$LIBS
11442 LIBS="-lpthread  $LIBS"
11443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11444 /* end confdefs.h.  */
11445
11446 /* Override any GCC internal prototype to avoid an error.
11447    Use char because int might match the return type of a GCC
11448    builtin and then its argument prototype would still apply.  */
11449 #ifdef __cplusplus
11450 extern "C"
11451 #endif
11452 char sem_init ();
11453 int
11454 main ()
11455 {
11456 return sem_init ();
11457   ;
11458   return 0;
11459 }
11460 _ACEOF
11461 if ac_fn_c_try_link "$LINENO"; then :
11462   ac_cv_lib_pthread_sem_init=yes
11463 else
11464   ac_cv_lib_pthread_sem_init=no
11465 fi
11466 rm -f core conftest.err conftest.$ac_objext \
11467     conftest$ac_exeext conftest.$ac_ext
11468 LIBS=$ac_check_lib_save_LIBS
11469 fi
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11471 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11472 if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then :
11473   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11474
11475         SEM_INIT_LIB=-lpthread
11476 else
11477   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11478 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11479 if test "${ac_cv_lib_rt_sem_init+set}" = set; then :
11480   $as_echo_n "(cached) " >&6
11481 else
11482   ac_check_lib_save_LIBS=$LIBS
11483 LIBS="-lrt  $LIBS"
11484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11485 /* end confdefs.h.  */
11486
11487 /* Override any GCC internal prototype to avoid an error.
11488    Use char because int might match the return type of a GCC
11489    builtin and then its argument prototype would still apply.  */
11490 #ifdef __cplusplus
11491 extern "C"
11492 #endif
11493 char sem_init ();
11494 int
11495 main ()
11496 {
11497 return sem_init ();
11498   ;
11499   return 0;
11500 }
11501 _ACEOF
11502 if ac_fn_c_try_link "$LINENO"; then :
11503   ac_cv_lib_rt_sem_init=yes
11504 else
11505   ac_cv_lib_rt_sem_init=no
11506 fi
11507 rm -f core conftest.err conftest.$ac_objext \
11508     conftest$ac_exeext conftest.$ac_ext
11509 LIBS=$ac_check_lib_save_LIBS
11510 fi
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11512 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11513 if test "x$ac_cv_lib_rt_sem_init" = x""yes; then :
11514   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11515
11516         SEM_INIT_LIB=-lrt
11517 else
11518   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11519 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11520 if test "${ac_cv_lib_posix4_sem_init+set}" = set; then :
11521   $as_echo_n "(cached) " >&6
11522 else
11523   ac_check_lib_save_LIBS=$LIBS
11524 LIBS="-lposix4  $LIBS"
11525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11526 /* end confdefs.h.  */
11527
11528 /* Override any GCC internal prototype to avoid an error.
11529    Use char because int might match the return type of a GCC
11530    builtin and then its argument prototype would still apply.  */
11531 #ifdef __cplusplus
11532 extern "C"
11533 #endif
11534 char sem_init ();
11535 int
11536 main ()
11537 {
11538 return sem_init ();
11539   ;
11540   return 0;
11541 }
11542 _ACEOF
11543 if ac_fn_c_try_link "$LINENO"; then :
11544   ac_cv_lib_posix4_sem_init=yes
11545 else
11546   ac_cv_lib_posix4_sem_init=no
11547 fi
11548 rm -f core conftest.err conftest.$ac_objext \
11549     conftest$ac_exeext conftest.$ac_ext
11550 LIBS=$ac_check_lib_save_LIBS
11551 fi
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11553 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11554 if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then :
11555   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11556
11557         SEM_INIT_LIB=-lposix4
11558 fi
11559
11560 fi
11561
11562 fi
11563
11564 fi
11565
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11567 $as_echo_n "checking for unified diff option... " >&6; }
11568 if diff -u $0 $0 > /dev/null 2>&1 ; then
11569    UNI_DIFF_OPTS=-u
11570 else
11571    UNI_DIFF_OPTS=-c
11572 fi
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11574 $as_echo "$UNI_DIFF_OPTS" >&6; }
11575
11576 case "$host_os" in
11577 linux*)
11578
11579 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11580
11581         ;;
11582 esac
11583 LINUX_CMT="#"
11584 CYGWIN_CMT="#"
11585 UNIX_CMT=
11586 case "$host_os" in
11587 linux*)
11588         LINUX_CMT=
11589         ;;
11590 cygwin)
11591         CYGWIN_CMT=
11592         UNIX_CMT="#"
11593         ;;
11594 esac
11595
11596
11597
11598 case "$host_os" in
11599 linux* | gnu* | k*bsd*-gnu)
11600         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11601                 root_prefix="";
11602                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11603 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11604         fi
11605         ;;
11606 esac
11607 case "$host_os" in
11608 linux* | gnu* | k*bsd*-gnu)
11609         if test "$prefix" = NONE ; then
11610                 prefix="/usr";
11611                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11612 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11613                 if test "$mandir" = '${prefix}/man' ; then
11614                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11615 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11616                         mandir=/usr/share/man
11617                 fi
11618         fi
11619 ;;
11620 esac
11621 if test "$root_prefix" = NONE ; then
11622         if test "$prefix" = NONE ; then
11623                 root_prefix="$ac_default_prefix"
11624         else
11625                 root_prefix="$prefix"
11626         fi
11627         root_bindir=$bindir
11628         root_sbindir=$sbindir
11629         root_libdir=$libdir
11630         root_sysconfdir=$sysconfdir
11631 else
11632         root_bindir='${root_prefix}/bin'
11633         root_sbindir='${root_prefix}/sbin'
11634         root_libdir='${root_prefix}/lib'
11635         root_sysconfdir='${root_prefix}/etc'
11636 fi
11637 if test "$bindir" != '${exec_prefix}/bin'; then
11638     root_bindir=$bindir
11639     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11640 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11641 fi
11642 if test "$sbindir" != '${exec_prefix}/sbin'; then
11643     root_sbindir=$sbindir
11644     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11645 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11646 fi
11647 if test "$libdir" != '${exec_prefix}/lib'; then
11648     root_libdir=$libdir
11649     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11650 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11651 fi
11652 if test "$sysconfdir" != '${prefix}/etc'; then
11653     root_sysconfdir=$sysconfdir
11654     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11655 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11656 fi
11657
11658
11659
11660
11661
11662
11663 # Check whether --with-multiarch was given.
11664 if test "${with_multiarch+set}" = set; then :
11665   withval=$with_multiarch; libdir=$libdir/$withval
11666 root_libdir=$root_libdir/$withval
11667
11668 fi
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5
11670 $as_echo_n "checking whether linker accepts -static... " >&6; }
11671 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then :
11672   $as_echo_n "(cached) " >&6
11673 else
11674   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11676 /* end confdefs.h.  */
11677 #include <stdio.h>
11678 int
11679 main ()
11680 {
11681 fflush(stdout);
11682   ;
11683   return 0;
11684 }
11685 _ACEOF
11686 if ac_fn_c_try_link "$LINENO"; then :
11687   ac_cv_e2fsprogs_use_static=yes
11688 else
11689   ac_cv_e2fsprogs_use_static=no
11690 fi
11691 rm -f core conftest.err conftest.$ac_objext \
11692     conftest$ac_exeext conftest.$ac_ext
11693 LDFLAGS=$SAVE_LDFLAGS
11694 fi
11695
11696 case "$host_os" in
11697 solaris2.*)
11698         ac_cv_e2fsprogs_use_static=no
11699 ;;
11700 esac
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11702 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11703 LDFLAG_STATIC=
11704 if test $ac_cv_e2fsprogs_use_static = yes; then
11705         LDFLAG_STATIC=-static
11706 fi
11707
11708 case "$host_os" in
11709 darwin*)
11710         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11711 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11712
11713 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11714
11715         ;;
11716 esac
11717 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11718 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11719
11720
11721 if test "$cross_compiling" = yes ; then
11722   DO_TEST_SUITE=
11723 else
11724   DO_TEST_SUITE=check
11725 fi
11726
11727 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11728 if test -n "$CPPFLAGS" ; then
11729         INCLUDES="$INCLUDES $CPPFLAGS"
11730 fi
11731 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11732         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11733 fi
11734
11735 if test $cross_compiling = no; then
11736    BUILD_CFLAGS="$CFLAGS"
11737    BUILD_LDFLAGS="$LDFLAGS"
11738 else
11739    BUILD_CFLAGS=
11740    BUILD_LDFLAGS=
11741 fi
11742
11743
11744 test -d lib || mkdir lib
11745 test -d include || mkdir include
11746 test -d include/linux || mkdir include/linux
11747 test -d include/asm || mkdir include/asm
11748 for i in MCONFIG Makefile e2fsprogs.spec \
11749         e2fsprogs-RHEL-6.spec \
11750         e2fsprogs-SUSE_LINUX-11.spec \
11751         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11752         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11753         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11754         lib/uuid/Makefile lib/uuid/uuid_types.h \
11755         lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11756         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11757         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11758         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11759         debugfs/Makefile tests/Makefile tests/progs/Makefile \
11760         resize/Makefile doc/Makefile intl/Makefile \
11761         intl/libgnuintl.h po/Makefile.in ; do
11762         if test -d `dirname ${srcdir}/$i` ; then
11763                 outlist="$outlist $i"
11764         fi
11765 done
11766 ac_config_files="$ac_config_files $outlist"
11767
11768 cat >confcache <<\_ACEOF
11769 # This file is a shell script that caches the results of configure
11770 # tests run on this system so they can be shared between configure
11771 # scripts and configure runs, see configure's option --config-cache.
11772 # It is not useful on other systems.  If it contains results you don't
11773 # want to keep, you may remove or edit it.
11774 #
11775 # config.status only pays attention to the cache file if you give it
11776 # the --recheck option to rerun configure.
11777 #
11778 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11779 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11780 # following values.
11781
11782 _ACEOF
11783
11784 # The following way of writing the cache mishandles newlines in values,
11785 # but we know of no workaround that is simple, portable, and efficient.
11786 # So, we kill variables containing newlines.
11787 # Ultrix sh set writes to stderr and can't be redirected directly,
11788 # and sets the high bit in the cache file unless we assign to the vars.
11789 (
11790   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11791     eval ac_val=\$$ac_var
11792     case $ac_val in #(
11793     *${as_nl}*)
11794       case $ac_var in #(
11795       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11796 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11797       esac
11798       case $ac_var in #(
11799       _ | IFS | as_nl) ;; #(
11800       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11801       *) { eval $ac_var=; unset $ac_var;} ;;
11802       esac ;;
11803     esac
11804   done
11805
11806   (set) 2>&1 |
11807     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11808     *${as_nl}ac_space=\ *)
11809       # `set' does not quote correctly, so add quotes: double-quote
11810       # substitution turns \\\\ into \\, and sed turns \\ into \.
11811       sed -n \
11812         "s/'/'\\\\''/g;
11813           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11814       ;; #(
11815     *)
11816       # `set' quotes correctly as required by POSIX, so do not add quotes.
11817       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11818       ;;
11819     esac |
11820     sort
11821 ) |
11822   sed '
11823      /^ac_cv_env_/b end
11824      t clear
11825      :clear
11826      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11827      t end
11828      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11829      :end' >>confcache
11830 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11831   if test -w "$cache_file"; then
11832     test "x$cache_file" != "x/dev/null" &&
11833       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11834 $as_echo "$as_me: updating cache $cache_file" >&6;}
11835     cat confcache >$cache_file
11836   else
11837     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11838 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11839   fi
11840 fi
11841 rm -f confcache
11842
11843 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11844 # Let make expand exec_prefix.
11845 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11846
11847 DEFS=-DHAVE_CONFIG_H
11848
11849 ac_libobjs=
11850 ac_ltlibobjs=
11851 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11852   # 1. Remove the extension, and $U if already installed.
11853   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11854   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11855   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11856   #    will be set to the directory where LIBOBJS objects are built.
11857   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11858   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11859 done
11860 LIBOBJS=$ac_libobjs
11861
11862 LTLIBOBJS=$ac_ltlibobjs
11863
11864
11865
11866
11867 : ${CONFIG_STATUS=./config.status}
11868 ac_write_fail=0
11869 ac_clean_files_save=$ac_clean_files
11870 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11872 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11873 as_write_fail=0
11874 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11875 #! $SHELL
11876 # Generated by $as_me.
11877 # Run this file to recreate the current configuration.
11878 # Compiler output produced by configure, useful for debugging
11879 # configure, is in config.log if it exists.
11880
11881 debug=false
11882 ac_cs_recheck=false
11883 ac_cs_silent=false
11884
11885 SHELL=\${CONFIG_SHELL-$SHELL}
11886 export SHELL
11887 _ASEOF
11888 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11889 ## -------------------- ##
11890 ## M4sh Initialization. ##
11891 ## -------------------- ##
11892
11893 # Be more Bourne compatible
11894 DUALCASE=1; export DUALCASE # for MKS sh
11895 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11896   emulate sh
11897   NULLCMD=:
11898   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11899   # is contrary to our usage.  Disable this feature.
11900   alias -g '${1+"$@"}'='"$@"'
11901   setopt NO_GLOB_SUBST
11902 else
11903   case `(set -o) 2>/dev/null` in #(
11904   *posix*) :
11905     set -o posix ;; #(
11906   *) :
11907      ;;
11908 esac
11909 fi
11910
11911
11912 as_nl='
11913 '
11914 export as_nl
11915 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11916 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11917 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11918 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11919 # Prefer a ksh shell builtin over an external printf program on Solaris,
11920 # but without wasting forks for bash or zsh.
11921 if test -z "$BASH_VERSION$ZSH_VERSION" \
11922     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11923   as_echo='print -r --'
11924   as_echo_n='print -rn --'
11925 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11926   as_echo='printf %s\n'
11927   as_echo_n='printf %s'
11928 else
11929   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11930     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11931     as_echo_n='/usr/ucb/echo -n'
11932   else
11933     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11934     as_echo_n_body='eval
11935       arg=$1;
11936       case $arg in #(
11937       *"$as_nl"*)
11938         expr "X$arg" : "X\\(.*\\)$as_nl";
11939         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11940       esac;
11941       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11942     '
11943     export as_echo_n_body
11944     as_echo_n='sh -c $as_echo_n_body as_echo'
11945   fi
11946   export as_echo_body
11947   as_echo='sh -c $as_echo_body as_echo'
11948 fi
11949
11950 # The user is always right.
11951 if test "${PATH_SEPARATOR+set}" != set; then
11952   PATH_SEPARATOR=:
11953   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11954     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11955       PATH_SEPARATOR=';'
11956   }
11957 fi
11958
11959
11960 # IFS
11961 # We need space, tab and new line, in precisely that order.  Quoting is
11962 # there to prevent editors from complaining about space-tab.
11963 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11964 # splitting by setting IFS to empty value.)
11965 IFS=" ""        $as_nl"
11966
11967 # Find who we are.  Look in the path if we contain no directory separator.
11968 case $0 in #((
11969   *[\\/]* ) as_myself=$0 ;;
11970   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11971 for as_dir in $PATH
11972 do
11973   IFS=$as_save_IFS
11974   test -z "$as_dir" && as_dir=.
11975     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11976   done
11977 IFS=$as_save_IFS
11978
11979      ;;
11980 esac
11981 # We did not find ourselves, most probably we were run as `sh COMMAND'
11982 # in which case we are not to be found in the path.
11983 if test "x$as_myself" = x; then
11984   as_myself=$0
11985 fi
11986 if test ! -f "$as_myself"; then
11987   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11988   exit 1
11989 fi
11990
11991 # Unset variables that we do not need and which cause bugs (e.g. in
11992 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11993 # suppresses any "Segmentation fault" message there.  '((' could
11994 # trigger a bug in pdksh 5.2.14.
11995 for as_var in BASH_ENV ENV MAIL MAILPATH
11996 do eval test x\${$as_var+set} = xset \
11997   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11998 done
11999 PS1='$ '
12000 PS2='> '
12001 PS4='+ '
12002
12003 # NLS nuisances.
12004 LC_ALL=C
12005 export LC_ALL
12006 LANGUAGE=C
12007 export LANGUAGE
12008
12009 # CDPATH.
12010 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12011
12012
12013 # as_fn_error ERROR [LINENO LOG_FD]
12014 # ---------------------------------
12015 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12016 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12017 # script with status $?, using 1 if that was 0.
12018 as_fn_error ()
12019 {
12020   as_status=$?; test $as_status -eq 0 && as_status=1
12021   if test "$3"; then
12022     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12023     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12024   fi
12025   $as_echo "$as_me: error: $1" >&2
12026   as_fn_exit $as_status
12027 } # as_fn_error
12028
12029
12030 # as_fn_set_status STATUS
12031 # -----------------------
12032 # Set $? to STATUS, without forking.
12033 as_fn_set_status ()
12034 {
12035   return $1
12036 } # as_fn_set_status
12037
12038 # as_fn_exit STATUS
12039 # -----------------
12040 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12041 as_fn_exit ()
12042 {
12043   set +e
12044   as_fn_set_status $1
12045   exit $1
12046 } # as_fn_exit
12047
12048 # as_fn_unset VAR
12049 # ---------------
12050 # Portably unset VAR.
12051 as_fn_unset ()
12052 {
12053   { eval $1=; unset $1;}
12054 }
12055 as_unset=as_fn_unset
12056 # as_fn_append VAR VALUE
12057 # ----------------------
12058 # Append the text in VALUE to the end of the definition contained in VAR. Take
12059 # advantage of any shell optimizations that allow amortized linear growth over
12060 # repeated appends, instead of the typical quadratic growth present in naive
12061 # implementations.
12062 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12063   eval 'as_fn_append ()
12064   {
12065     eval $1+=\$2
12066   }'
12067 else
12068   as_fn_append ()
12069   {
12070     eval $1=\$$1\$2
12071   }
12072 fi # as_fn_append
12073
12074 # as_fn_arith ARG...
12075 # ------------------
12076 # Perform arithmetic evaluation on the ARGs, and store the result in the
12077 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12078 # must be portable across $(()) and expr.
12079 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12080   eval 'as_fn_arith ()
12081   {
12082     as_val=$(( $* ))
12083   }'
12084 else
12085   as_fn_arith ()
12086   {
12087     as_val=`expr "$@" || test $? -eq 1`
12088   }
12089 fi # as_fn_arith
12090
12091
12092 if expr a : '\(a\)' >/dev/null 2>&1 &&
12093    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12094   as_expr=expr
12095 else
12096   as_expr=false
12097 fi
12098
12099 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12100   as_basename=basename
12101 else
12102   as_basename=false
12103 fi
12104
12105 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12106   as_dirname=dirname
12107 else
12108   as_dirname=false
12109 fi
12110
12111 as_me=`$as_basename -- "$0" ||
12112 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12113          X"$0" : 'X\(//\)$' \| \
12114          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12115 $as_echo X/"$0" |
12116     sed '/^.*\/\([^/][^/]*\)\/*$/{
12117             s//\1/
12118             q
12119           }
12120           /^X\/\(\/\/\)$/{
12121             s//\1/
12122             q
12123           }
12124           /^X\/\(\/\).*/{
12125             s//\1/
12126             q
12127           }
12128           s/.*/./; q'`
12129
12130 # Avoid depending upon Character Ranges.
12131 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12132 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12133 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12134 as_cr_digits='0123456789'
12135 as_cr_alnum=$as_cr_Letters$as_cr_digits
12136
12137 ECHO_C= ECHO_N= ECHO_T=
12138 case `echo -n x` in #(((((
12139 -n*)
12140   case `echo 'xy\c'` in
12141   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12142   xy)  ECHO_C='\c';;
12143   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12144        ECHO_T=' ';;
12145   esac;;
12146 *)
12147   ECHO_N='-n';;
12148 esac
12149
12150 rm -f conf$$ conf$$.exe conf$$.file
12151 if test -d conf$$.dir; then
12152   rm -f conf$$.dir/conf$$.file
12153 else
12154   rm -f conf$$.dir
12155   mkdir conf$$.dir 2>/dev/null
12156 fi
12157 if (echo >conf$$.file) 2>/dev/null; then
12158   if ln -s conf$$.file conf$$ 2>/dev/null; then
12159     as_ln_s='ln -s'
12160     # ... but there are two gotchas:
12161     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12162     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12163     # In both cases, we have to default to `cp -p'.
12164     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12165       as_ln_s='cp -p'
12166   elif ln conf$$.file conf$$ 2>/dev/null; then
12167     as_ln_s=ln
12168   else
12169     as_ln_s='cp -p'
12170   fi
12171 else
12172   as_ln_s='cp -p'
12173 fi
12174 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12175 rmdir conf$$.dir 2>/dev/null
12176
12177
12178 # as_fn_mkdir_p
12179 # -------------
12180 # Create "$as_dir" as a directory, including parents if necessary.
12181 as_fn_mkdir_p ()
12182 {
12183
12184   case $as_dir in #(
12185   -*) as_dir=./$as_dir;;
12186   esac
12187   test -d "$as_dir" || eval $as_mkdir_p || {
12188     as_dirs=
12189     while :; do
12190       case $as_dir in #(
12191       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12192       *) as_qdir=$as_dir;;
12193       esac
12194       as_dirs="'$as_qdir' $as_dirs"
12195       as_dir=`$as_dirname -- "$as_dir" ||
12196 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12197          X"$as_dir" : 'X\(//\)[^/]' \| \
12198          X"$as_dir" : 'X\(//\)$' \| \
12199          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12200 $as_echo X"$as_dir" |
12201     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12202             s//\1/
12203             q
12204           }
12205           /^X\(\/\/\)[^/].*/{
12206             s//\1/
12207             q
12208           }
12209           /^X\(\/\/\)$/{
12210             s//\1/
12211             q
12212           }
12213           /^X\(\/\).*/{
12214             s//\1/
12215             q
12216           }
12217           s/.*/./; q'`
12218       test -d "$as_dir" && break
12219     done
12220     test -z "$as_dirs" || eval "mkdir $as_dirs"
12221   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12222
12223
12224 } # as_fn_mkdir_p
12225 if mkdir -p . 2>/dev/null; then
12226   as_mkdir_p='mkdir -p "$as_dir"'
12227 else
12228   test -d ./-p && rmdir ./-p
12229   as_mkdir_p=false
12230 fi
12231
12232 if test -x / >/dev/null 2>&1; then
12233   as_test_x='test -x'
12234 else
12235   if ls -dL / >/dev/null 2>&1; then
12236     as_ls_L_option=L
12237   else
12238     as_ls_L_option=
12239   fi
12240   as_test_x='
12241     eval sh -c '\''
12242       if test -d "$1"; then
12243         test -d "$1/.";
12244       else
12245         case $1 in #(
12246         -*)set "./$1";;
12247         esac;
12248         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12249         ???[sx]*):;;*)false;;esac;fi
12250     '\'' sh
12251   '
12252 fi
12253 as_executable_p=$as_test_x
12254
12255 # Sed expression to map a string onto a valid CPP name.
12256 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12257
12258 # Sed expression to map a string onto a valid variable name.
12259 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12260
12261
12262 exec 6>&1
12263 ## ----------------------------------- ##
12264 ## Main body of $CONFIG_STATUS script. ##
12265 ## ----------------------------------- ##
12266 _ASEOF
12267 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12268
12269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12270 # Save the log message, to keep $0 and so on meaningful, and to
12271 # report actual input values of CONFIG_FILES etc. instead of their
12272 # values after options handling.
12273 ac_log="
12274 This file was extended by $as_me, which was
12275 generated by GNU Autoconf 2.65.  Invocation command line was
12276
12277   CONFIG_FILES    = $CONFIG_FILES
12278   CONFIG_HEADERS  = $CONFIG_HEADERS
12279   CONFIG_LINKS    = $CONFIG_LINKS
12280   CONFIG_COMMANDS = $CONFIG_COMMANDS
12281   $ $0 $@
12282
12283 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12284 "
12285
12286 _ACEOF
12287
12288 case $ac_config_files in *"
12289 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12290 esac
12291
12292 case $ac_config_headers in *"
12293 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12294 esac
12295
12296
12297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12298 # Files that config.status was made for.
12299 config_files="$ac_config_files"
12300 config_headers="$ac_config_headers"
12301 config_commands="$ac_config_commands"
12302
12303 _ACEOF
12304
12305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12306 ac_cs_usage="\
12307 \`$as_me' instantiates files and other configuration actions
12308 from templates according to the current configuration.  Unless the files
12309 and actions are specified as TAGs, all are instantiated by default.
12310
12311 Usage: $0 [OPTION]... [TAG]...
12312
12313   -h, --help       print this help, then exit
12314   -V, --version    print version number and configuration settings, then exit
12315       --config     print configuration, then exit
12316   -q, --quiet, --silent
12317                    do not print progress messages
12318   -d, --debug      don't remove temporary files
12319       --recheck    update $as_me by reconfiguring in the same conditions
12320       --file=FILE[:TEMPLATE]
12321                    instantiate the configuration file FILE
12322       --header=FILE[:TEMPLATE]
12323                    instantiate the configuration header FILE
12324
12325 Configuration files:
12326 $config_files
12327
12328 Configuration headers:
12329 $config_headers
12330
12331 Configuration commands:
12332 $config_commands
12333
12334 Report bugs to the package provider."
12335
12336 _ACEOF
12337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12338 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12339 ac_cs_version="\\
12340 config.status
12341 configured by $0, generated by GNU Autoconf 2.65,
12342   with options \\"\$ac_cs_config\\"
12343
12344 Copyright (C) 2009 Free Software Foundation, Inc.
12345 This config.status script is free software; the Free Software Foundation
12346 gives unlimited permission to copy, distribute and modify it."
12347
12348 ac_pwd='$ac_pwd'
12349 srcdir='$srcdir'
12350 INSTALL='$INSTALL'
12351 AWK='$AWK'
12352 test -n "\$AWK" || AWK=awk
12353 _ACEOF
12354
12355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12356 # The default lists apply if the user does not specify any file.
12357 ac_need_defaults=:
12358 while test $# != 0
12359 do
12360   case $1 in
12361   --*=*)
12362     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12363     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12364     ac_shift=:
12365     ;;
12366   *)
12367     ac_option=$1
12368     ac_optarg=$2
12369     ac_shift=shift
12370     ;;
12371   esac
12372
12373   case $ac_option in
12374   # Handling of the options.
12375   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12376     ac_cs_recheck=: ;;
12377   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12378     $as_echo "$ac_cs_version"; exit ;;
12379   --config | --confi | --conf | --con | --co | --c )
12380     $as_echo "$ac_cs_config"; exit ;;
12381   --debug | --debu | --deb | --de | --d | -d )
12382     debug=: ;;
12383   --file | --fil | --fi | --f )
12384     $ac_shift
12385     case $ac_optarg in
12386     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12387     esac
12388     as_fn_append CONFIG_FILES " '$ac_optarg'"
12389     ac_need_defaults=false;;
12390   --header | --heade | --head | --hea )
12391     $ac_shift
12392     case $ac_optarg in
12393     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12394     esac
12395     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12396     ac_need_defaults=false;;
12397   --he | --h)
12398     # Conflict between --help and --header
12399     as_fn_error "ambiguous option: \`$1'
12400 Try \`$0 --help' for more information.";;
12401   --help | --hel | -h )
12402     $as_echo "$ac_cs_usage"; exit ;;
12403   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12404   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12405     ac_cs_silent=: ;;
12406
12407   # This is an error.
12408   -*) as_fn_error "unrecognized option: \`$1'
12409 Try \`$0 --help' for more information." ;;
12410
12411   *) as_fn_append ac_config_targets " $1"
12412      ac_need_defaults=false ;;
12413
12414   esac
12415   shift
12416 done
12417
12418 ac_configure_extra_args=
12419
12420 if $ac_cs_silent; then
12421   exec 6>/dev/null
12422   ac_configure_extra_args="$ac_configure_extra_args --silent"
12423 fi
12424
12425 _ACEOF
12426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12427 if \$ac_cs_recheck; then
12428   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12429   shift
12430   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12431   CONFIG_SHELL='$SHELL'
12432   export CONFIG_SHELL
12433   exec "\$@"
12434 fi
12435
12436 _ACEOF
12437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12438 exec 5>>config.log
12439 {
12440   echo
12441   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12442 ## Running $as_me. ##
12443 _ASBOX
12444   $as_echo "$ac_log"
12445 } >&5
12446
12447 _ACEOF
12448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12449 #
12450 # INIT-COMMANDS
12451 #
12452 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12453     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12454     # from automake.
12455     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12456     # Capture the value of LINGUAS because we need it to compute CATALOGS.
12457     LINGUAS="${LINGUAS-%UNSET%}"
12458
12459
12460 _ACEOF
12461
12462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12463
12464 # Handling of arguments.
12465 for ac_config_target in $ac_config_targets
12466 do
12467   case $ac_config_target in
12468     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12469     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12470     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12471
12472   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12473   esac
12474 done
12475
12476
12477 # If the user did not use the arguments to specify the items to instantiate,
12478 # then the envvar interface is used.  Set only those that are not.
12479 # We use the long form for the default assignment because of an extremely
12480 # bizarre bug on SunOS 4.1.3.
12481 if $ac_need_defaults; then
12482   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12483   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12484   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12485 fi
12486
12487 # Have a temporary directory for convenience.  Make it in the build tree
12488 # simply because there is no reason against having it here, and in addition,
12489 # creating and moving files from /tmp can sometimes cause problems.
12490 # Hook for its removal unless debugging.
12491 # Note that there is a small window in which the directory will not be cleaned:
12492 # after its creation but before its name has been assigned to `$tmp'.
12493 $debug ||
12494 {
12495   tmp=
12496   trap 'exit_status=$?
12497   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12498 ' 0
12499   trap 'as_fn_exit 1' 1 2 13 15
12500 }
12501 # Create a (secure) tmp directory for tmp files.
12502
12503 {
12504   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12505   test -n "$tmp" && test -d "$tmp"
12506 }  ||
12507 {
12508   tmp=./conf$$-$RANDOM
12509   (umask 077 && mkdir "$tmp")
12510 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12511
12512 # Set up the scripts for CONFIG_FILES section.
12513 # No need to generate them if there are no CONFIG_FILES.
12514 # This happens for instance with `./config.status config.h'.
12515 if test -n "$CONFIG_FILES"; then
12516
12517 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12518   ac_cs_awk_getline=:
12519   ac_cs_awk_pipe_init=
12520   ac_cs_awk_read_file='
12521       while ((getline aline < (F[key])) > 0)
12522         print(aline)
12523       close(F[key])'
12524   ac_cs_awk_pipe_fini=
12525 else
12526   ac_cs_awk_getline=false
12527   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12528   ac_cs_awk_read_file='
12529       print "|#_!!_#|"
12530       print "cat " F[key] " &&"
12531       '$ac_cs_awk_pipe_init
12532   # The final `:' finishes the AND list.
12533   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12534 fi
12535 ac_cr=`echo X | tr X '\015'`
12536 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12537 # But we know of no other shell where ac_cr would be empty at this
12538 # point, so we can use a bashism as a fallback.
12539 if test "x$ac_cr" = x; then
12540   eval ac_cr=\$\'\\r\'
12541 fi
12542 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12543 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12544   ac_cs_awk_cr='\r'
12545 else
12546   ac_cs_awk_cr=$ac_cr
12547 fi
12548
12549 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12550 _ACEOF
12551
12552 # Create commands to substitute file output variables.
12553 {
12554   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12555   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
12556   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12557   echo "_ACAWK" &&
12558   echo "_ACEOF"
12559 } >conf$$files.sh &&
12560 . ./conf$$files.sh ||
12561   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12562 rm -f conf$$files.sh
12563
12564 {
12565   echo "cat >conf$$subs.awk <<_ACEOF" &&
12566   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12567   echo "_ACEOF"
12568 } >conf$$subs.sh ||
12569   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12570 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12571 ac_delim='%!_!# '
12572 for ac_last_try in false false false false false :; do
12573   . ./conf$$subs.sh ||
12574     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12575
12576   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12577   if test $ac_delim_n = $ac_delim_num; then
12578     break
12579   elif $ac_last_try; then
12580     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12581   else
12582     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12583   fi
12584 done
12585 rm -f conf$$subs.sh
12586
12587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12588 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12589 _ACEOF
12590 sed -n '
12591 h
12592 s/^/S["/; s/!.*/"]=/
12593 p
12594 g
12595 s/^[^!]*!//
12596 :repl
12597 t repl
12598 s/'"$ac_delim"'$//
12599 t delim
12600 :nl
12601 h
12602 s/\(.\{148\}\)..*/\1/
12603 t more1
12604 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12605 p
12606 n
12607 b repl
12608 :more1
12609 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12610 p
12611 g
12612 s/.\{148\}//
12613 t nl
12614 :delim
12615 h
12616 s/\(.\{148\}\)..*/\1/
12617 t more2
12618 s/["\\]/\\&/g; s/^/"/; s/$/"/
12619 p
12620 b
12621 :more2
12622 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12623 p
12624 g
12625 s/.\{148\}//
12626 t delim
12627 ' <conf$$subs.awk | sed '
12628 /^[^""]/{
12629   N
12630   s/\n//
12631 }
12632 ' >>$CONFIG_STATUS || ac_write_fail=1
12633 rm -f conf$$subs.awk
12634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12635 _ACAWK
12636 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12637   for (key in S) S_is_set[key] = 1
12638   FS = "\a"
12639   \$ac_cs_awk_pipe_init
12640 }
12641 {
12642   line = $ 0
12643   nfields = split(line, field, "@")
12644   substed = 0
12645   len = length(field[1])
12646   for (i = 2; i < nfields; i++) {
12647     key = field[i]
12648     keylen = length(key)
12649     if (S_is_set[key]) {
12650       value = S[key]
12651       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12652       len += length(value) + length(field[++i])
12653       substed = 1
12654     } else
12655       len += 1 + keylen
12656   }
12657   if (nfields == 3 && !substed) {
12658     key = field[2]
12659     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
12660       \$ac_cs_awk_read_file
12661       next
12662     }
12663   }
12664   print line
12665 }
12666 \$ac_cs_awk_pipe_fini
12667 _ACAWK
12668 _ACEOF
12669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12670 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12671   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12672 else
12673   cat
12674 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12675   || as_fn_error "could not setup config files machinery" "$LINENO" 5
12676 _ACEOF
12677
12678 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12679 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12680 # trailing colons and then remove the whole line if VPATH becomes empty
12681 # (actually we leave an empty line to preserve line numbers).
12682 if test "x$srcdir" = x.; then
12683   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12684 s/:*\$(srcdir):*/:/
12685 s/:*\${srcdir}:*/:/
12686 s/:*@srcdir@:*/:/
12687 s/^\([^=]*=[     ]*\):*/\1/
12688 s/:*$//
12689 s/^[^=]*=[       ]*$//
12690 }'
12691 fi
12692
12693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12694 fi # test -n "$CONFIG_FILES"
12695
12696 # Set up the scripts for CONFIG_HEADERS section.
12697 # No need to generate them if there are no CONFIG_HEADERS.
12698 # This happens for instance with `./config.status Makefile'.
12699 if test -n "$CONFIG_HEADERS"; then
12700 cat >"$tmp/defines.awk" <<\_ACAWK ||
12701 BEGIN {
12702 _ACEOF
12703
12704 # Transform confdefs.h into an awk script `defines.awk', embedded as
12705 # here-document in config.status, that substitutes the proper values into
12706 # config.h.in to produce config.h.
12707
12708 # Create a delimiter string that does not exist in confdefs.h, to ease
12709 # handling of long lines.
12710 ac_delim='%!_!# '
12711 for ac_last_try in false false :; do
12712   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12713   if test -z "$ac_t"; then
12714     break
12715   elif $ac_last_try; then
12716     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12717   else
12718     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12719   fi
12720 done
12721
12722 # For the awk script, D is an array of macro values keyed by name,
12723 # likewise P contains macro parameters if any.  Preserve backslash
12724 # newline sequences.
12725
12726 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12727 sed -n '
12728 s/.\{148\}/&'"$ac_delim"'/g
12729 t rset
12730 :rset
12731 s/^[     ]*#[    ]*define[       ][      ]*/ /
12732 t def
12733 d
12734 :def
12735 s/\\$//
12736 t bsnl
12737 s/["\\]/\\&/g
12738 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12739 D["\1"]=" \3"/p
12740 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12741 d
12742 :bsnl
12743 s/["\\]/\\&/g
12744 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12745 D["\1"]=" \3\\\\\\n"\\/p
12746 t cont
12747 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12748 t cont
12749 d
12750 :cont
12751 n
12752 s/.\{148\}/&'"$ac_delim"'/g
12753 t clear
12754 :clear
12755 s/\\$//
12756 t bsnlc
12757 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12758 d
12759 :bsnlc
12760 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12761 b cont
12762 ' <confdefs.h | sed '
12763 s/'"$ac_delim"'/"\\\
12764 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12765
12766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12767   for (key in D) D_is_set[key] = 1
12768   FS = "\a"
12769 }
12770 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12771   line = \$ 0
12772   split(line, arg, " ")
12773   if (arg[1] == "#") {
12774     defundef = arg[2]
12775     mac1 = arg[3]
12776   } else {
12777     defundef = substr(arg[1], 2)
12778     mac1 = arg[2]
12779   }
12780   split(mac1, mac2, "(") #)
12781   macro = mac2[1]
12782   prefix = substr(line, 1, index(line, defundef) - 1)
12783   if (D_is_set[macro]) {
12784     # Preserve the white space surrounding the "#".
12785     print prefix "define", macro P[macro] D[macro]
12786     next
12787   } else {
12788     # Replace #undef with comments.  This is necessary, for example,
12789     # in the case of _POSIX_SOURCE, which is predefined and required
12790     # on some systems where configure will not decide to define it.
12791     if (defundef == "undef") {
12792       print "/*", prefix defundef, macro, "*/"
12793       next
12794     }
12795   }
12796 }
12797 { print }
12798 _ACAWK
12799 _ACEOF
12800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12801   as_fn_error "could not setup config headers machinery" "$LINENO" 5
12802 fi # test -n "$CONFIG_HEADERS"
12803
12804
12805 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12806 shift
12807 for ac_tag
12808 do
12809   case $ac_tag in
12810   :[FHLC]) ac_mode=$ac_tag; continue;;
12811   esac
12812   case $ac_mode$ac_tag in
12813   :[FHL]*:*);;
12814   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12815   :[FH]-) ac_tag=-:-;;
12816   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12817   esac
12818   ac_save_IFS=$IFS
12819   IFS=:
12820   set x $ac_tag
12821   IFS=$ac_save_IFS
12822   shift
12823   ac_file=$1
12824   shift
12825
12826   case $ac_mode in
12827   :L) ac_source=$1;;
12828   :[FH])
12829     ac_file_inputs=
12830     for ac_f
12831     do
12832       case $ac_f in
12833       -) ac_f="$tmp/stdin";;
12834       *) # Look for the file first in the build tree, then in the source tree
12835          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12836          # because $ac_f cannot contain `:'.
12837          test -f "$ac_f" ||
12838            case $ac_f in
12839            [\\/$]*) false;;
12840            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12841            esac ||
12842            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12843       esac
12844       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12845       as_fn_append ac_file_inputs " '$ac_f'"
12846     done
12847
12848     # Let's still pretend it is `configure' which instantiates (i.e., don't
12849     # use $as_me), people would be surprised to read:
12850     #    /* config.h.  Generated by config.status.  */
12851     configure_input='Generated from '`
12852           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12853         `' by configure.'
12854     if test x"$ac_file" != x-; then
12855       configure_input="$ac_file.  $configure_input"
12856       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12857 $as_echo "$as_me: creating $ac_file" >&6;}
12858     fi
12859     # Neutralize special characters interpreted by sed in replacement strings.
12860     case $configure_input in #(
12861     *\&* | *\|* | *\\* )
12862        ac_sed_conf_input=`$as_echo "$configure_input" |
12863        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12864     *) ac_sed_conf_input=$configure_input;;
12865     esac
12866
12867     case $ac_tag in
12868     *:-:* | *:-) cat >"$tmp/stdin" \
12869       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12870     esac
12871     ;;
12872   esac
12873
12874   ac_dir=`$as_dirname -- "$ac_file" ||
12875 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12876          X"$ac_file" : 'X\(//\)[^/]' \| \
12877          X"$ac_file" : 'X\(//\)$' \| \
12878          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12879 $as_echo X"$ac_file" |
12880     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12881             s//\1/
12882             q
12883           }
12884           /^X\(\/\/\)[^/].*/{
12885             s//\1/
12886             q
12887           }
12888           /^X\(\/\/\)$/{
12889             s//\1/
12890             q
12891           }
12892           /^X\(\/\).*/{
12893             s//\1/
12894             q
12895           }
12896           s/.*/./; q'`
12897   as_dir="$ac_dir"; as_fn_mkdir_p
12898   ac_builddir=.
12899
12900 case "$ac_dir" in
12901 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12902 *)
12903   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12904   # A ".." for each directory in $ac_dir_suffix.
12905   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12906   case $ac_top_builddir_sub in
12907   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12908   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12909   esac ;;
12910 esac
12911 ac_abs_top_builddir=$ac_pwd
12912 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12913 # for backward compatibility:
12914 ac_top_builddir=$ac_top_build_prefix
12915
12916 case $srcdir in
12917   .)  # We are building in place.
12918     ac_srcdir=.
12919     ac_top_srcdir=$ac_top_builddir_sub
12920     ac_abs_top_srcdir=$ac_pwd ;;
12921   [\\/]* | ?:[\\/]* )  # Absolute name.
12922     ac_srcdir=$srcdir$ac_dir_suffix;
12923     ac_top_srcdir=$srcdir
12924     ac_abs_top_srcdir=$srcdir ;;
12925   *) # Relative name.
12926     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12927     ac_top_srcdir=$ac_top_build_prefix$srcdir
12928     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12929 esac
12930 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12931
12932
12933   case $ac_mode in
12934   :F)
12935   #
12936   # CONFIG_FILE
12937   #
12938
12939   case $INSTALL in
12940   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12941   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12942   esac
12943 _ACEOF
12944
12945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12946 # If the template does not know about datarootdir, expand it.
12947 # FIXME: This hack should be removed a few years after 2.60.
12948 ac_datarootdir_hack=; ac_datarootdir_seen=
12949 ac_sed_dataroot='
12950 /datarootdir/ {
12951   p
12952   q
12953 }
12954 /@datadir@/p
12955 /@docdir@/p
12956 /@infodir@/p
12957 /@localedir@/p
12958 /@mandir@/p'
12959 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12960 *datarootdir*) ac_datarootdir_seen=yes;;
12961 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12962   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12963 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12964 _ACEOF
12965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12966   ac_datarootdir_hack='
12967   s&@datadir@&$datadir&g
12968   s&@docdir@&$docdir&g
12969   s&@infodir@&$infodir&g
12970   s&@localedir@&$localedir&g
12971   s&@mandir@&$mandir&g
12972   s&\\\${datarootdir}&$datarootdir&g' ;;
12973 esac
12974 _ACEOF
12975
12976 # Neutralize VPATH when `$srcdir' = `.'.
12977 # Shell code in configure.ac might set extrasub.
12978 # FIXME: do we really want to maintain this feature?
12979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12980 ac_sed_extra="$ac_vpsub
12981 $extrasub
12982 _ACEOF
12983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12984 :t
12985 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12986 s|@configure_input@|$ac_sed_conf_input|;t t
12987 s&@top_builddir@&$ac_top_builddir_sub&;t t
12988 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12989 s&@srcdir@&$ac_srcdir&;t t
12990 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12991 s&@top_srcdir@&$ac_top_srcdir&;t t
12992 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12993 s&@builddir@&$ac_builddir&;t t
12994 s&@abs_builddir@&$ac_abs_builddir&;t t
12995 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12996 s&@INSTALL@&$ac_INSTALL&;t t
12997 $ac_datarootdir_hack
12998 "
12999 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
13000 if $ac_cs_awk_getline; then
13001   $AWK -f "$tmp/subs.awk"
13002 else
13003   $AWK -f "$tmp/subs.awk" | $SHELL
13004 fi >$tmp/out \
13005   || as_fn_error "could not create $ac_file" "$LINENO" 5
13006
13007 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13008   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13009   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13010   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13011 which seems to be undefined.  Please make sure it is defined." >&5
13012 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13013 which seems to be undefined.  Please make sure it is defined." >&2;}
13014
13015   rm -f "$tmp/stdin"
13016   case $ac_file in
13017   -) cat "$tmp/out" && rm -f "$tmp/out";;
13018   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13019   esac \
13020   || as_fn_error "could not create $ac_file" "$LINENO" 5
13021  ;;
13022   :H)
13023   #
13024   # CONFIG_HEADER
13025   #
13026   if test x"$ac_file" != x-; then
13027     {
13028       $as_echo "/* $configure_input  */" \
13029       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13030     } >"$tmp/config.h" \
13031       || as_fn_error "could not create $ac_file" "$LINENO" 5
13032     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13033       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13034 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13035     else
13036       rm -f "$ac_file"
13037       mv "$tmp/config.h" "$ac_file" \
13038         || as_fn_error "could not create $ac_file" "$LINENO" 5
13039     fi
13040   else
13041     $as_echo "/* $configure_input  */" \
13042       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13043       || as_fn_error "could not create -" "$LINENO" 5
13044   fi
13045  ;;
13046
13047   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13048 $as_echo "$as_me: executing $ac_file commands" >&6;}
13049  ;;
13050   esac
13051
13052
13053   case $ac_file$ac_mode in
13054     "default-1":C)
13055     for ac_file in $CONFIG_FILES; do
13056       # Support "outfile[:infile[:infile...]]"
13057       case "$ac_file" in
13058         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13059       esac
13060       # PO directories have a Makefile.in generated from Makefile.in.in.
13061       case "$ac_file" in */Makefile.in)
13062         # Adjust a relative srcdir.
13063         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13064         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13065         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13066         # In autoconf-2.13 it is called $ac_given_srcdir.
13067         # In autoconf-2.50 it is called $srcdir.
13068         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13069         case "$ac_given_srcdir" in
13070           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13071           /*) top_srcdir="$ac_given_srcdir" ;;
13072           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
13073         esac
13074         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13075           rm -f "$ac_dir/POTFILES"
13076           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13077           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13078           POMAKEFILEDEPS="POTFILES.in"
13079           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
13080           # on $ac_dir but don't depend on user-specified configuration
13081           # parameters.
13082           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13083             # The LINGUAS file contains the set of available languages.
13084             if test -n "$OBSOLETE_ALL_LINGUAS"; then
13085               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13086             fi
13087             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13088             # Hide the ALL_LINGUAS assigment from automake.
13089             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13090             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13091           else
13092             # The set of available languages was given in configure.in.
13093             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13094           fi
13095           # Compute POFILES
13096           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
13097           # Compute UPDATEPOFILES
13098           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
13099           # Compute DUMMYPOFILES
13100           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
13101           # Compute GMOFILES
13102           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
13103           case "$ac_given_srcdir" in
13104             .) srcdirpre= ;;
13105             *) srcdirpre='$(srcdir)/' ;;
13106           esac
13107           POFILES=
13108           UPDATEPOFILES=
13109           DUMMYPOFILES=
13110           GMOFILES=
13111           for lang in $ALL_LINGUAS; do
13112             POFILES="$POFILES $srcdirpre$lang.po"
13113             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13114             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13115             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13116           done
13117           # CATALOGS depends on both $ac_dir and the user's LINGUAS
13118           # environment variable.
13119           INST_LINGUAS=
13120           if test -n "$ALL_LINGUAS"; then
13121             for presentlang in $ALL_LINGUAS; do
13122               useit=no
13123               if test "%UNSET%" != "$LINGUAS"; then
13124                 desiredlanguages="$LINGUAS"
13125               else
13126                 desiredlanguages="$ALL_LINGUAS"
13127               fi
13128               for desiredlang in $desiredlanguages; do
13129                 # Use the presentlang catalog if desiredlang is
13130                 #   a. equal to presentlang, or
13131                 #   b. a variant of presentlang (because in this case,
13132                 #      presentlang can be used as a fallback for messages
13133                 #      which are not translated in the desiredlang catalog).
13134                 case "$desiredlang" in
13135                   "$presentlang"*) useit=yes;;
13136                 esac
13137               done
13138               if test $useit = yes; then
13139                 INST_LINGUAS="$INST_LINGUAS $presentlang"
13140               fi
13141             done
13142           fi
13143           CATALOGS=
13144           if test -n "$INST_LINGUAS"; then
13145             for lang in $INST_LINGUAS; do
13146               CATALOGS="$CATALOGS $lang.gmo"
13147             done
13148           fi
13149           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13150           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"
13151           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13152             if test -f "$f"; then
13153               case "$f" in
13154                 *.orig | *.bak | *~) ;;
13155                 *) cat "$f" >> "$ac_dir/Makefile" ;;
13156               esac
13157             fi
13158           done
13159         fi
13160         ;;
13161       esac
13162     done ;;
13163
13164   esac
13165 done # for ac_tag
13166
13167
13168 as_fn_exit 0
13169 _ACEOF
13170 ac_clean_files=$ac_clean_files_save
13171
13172 test $ac_write_fail = 0 ||
13173   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13174
13175
13176 # configure is writing to config.log, and then calls config.status.
13177 # config.status does its own redirection, appending to config.log.
13178 # Unfortunately, on DOS this fails, as config.log is still kept open
13179 # by configure, so config.status won't be able to write to it; its
13180 # output is simply discarded.  So we exec the FD to /dev/null,
13181 # effectively closing config.log, so it can be properly (re)opened and
13182 # appended to by config.status.  When coming back to configure, we
13183 # need to make the FD available again.
13184 if test "$no_create" != yes; then
13185   ac_cs_success=:
13186   ac_config_status_args=
13187   test "$silent" = yes &&
13188     ac_config_status_args="$ac_config_status_args --quiet"
13189   exec 5>/dev/null
13190   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13191   exec 5>>config.log
13192   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13193   # would make configure fail if this is the last instruction.
13194   $ac_cs_success || as_fn_exit $?
13195 fi
13196 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13197   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13198 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13199 fi
13200
13201 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi