Whamcloud - gitweb
tests: add basic test case for e2scan
[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 SQLITE3_LIB
615 DB4VERSION
616 SOCKET_LIB
617 SIZEOF_LONG_LONG
618 SIZEOF_LONG
619 SIZEOF_INT
620 SIZEOF_SHORT
621 BUILD_CC
622 MAKEINFO
623 STRIP
624 AR
625 LDCONFIG
626 PERL
627 SED
628 AWK
629 CHMOD
630 RM
631 CP
632 MV
633 LN_S
634 LN
635 ifNotGNUmake
636 ifGNUmake
637 BINARY_TYPE
638 POSUB
639 LTLIBINTL
640 LIBINTL
641 INTLLIBS
642 INTL_LIBTOOL_SUFFIX_PREFIX
643 INTLOBJS
644 GENCAT
645 INSTOBJEXT
646 DATADIRNAME
647 CATOBJEXT
648 USE_INCLUDED_LIBINTL
649 BUILD_INCLUDED_LIBINTL
650 INTLBISON
651 LTLIBICONV
652 LIBICONV
653 HAVE_WPRINTF
654 HAVE_SNPRINTF
655 HAVE_ASPRINTF
656 HAVE_POSIX_PRINTF
657 GLIBC21
658 ALLOCA
659 EGREP
660 GREP
661 RANLIB
662 MSGMERGE
663 XGETTEXT
664 GMSGFMT
665 MSGFMT
666 USE_NLS
667 MKINSTALLDIRS
668 INSTALL_DATA
669 INSTALL_SCRIPT
670 INSTALL_PROGRAM
671 SET_MAKE
672 VERSION
673 PACKAGE
674 GETTEXT_PACKAGE
675 UUIDD_CMT
676 E2INITRD_MAN
677 E2INITRD_PROG
678 FSCK_MAN
679 FSCK_PROG
680 DEFRAG_CMT
681 RESIZER_CMT
682 IMAGER_CMT
683 E2SCAN_MAN
684 E2SCAN_CMT
685 DEBUGFS_CMT
686 QUOTA_CMT
687 DEPPROFILED_LIBQUOTA
688 PROFILED_LIBQUOTA
689 DEPSTATIC_LIBQUOTA
690 STATIC_LIBQUOTA
691 DEPLIBQUOTA
692 LIBQUOTA
693 BLKID_CMT
694 DEPPROFILED_LIBBLKID
695 PROFILED_LIBBLKID
696 DEPSTATIC_LIBBLKID
697 STATIC_LIBBLKID
698 DEPLIBBLKID
699 LIBBLKID
700 UUID_CMT
701 DEPPROFILED_LIBUUID
702 PROFILED_LIBUUID
703 DEPSTATIC_LIBUUID
704 STATIC_LIBUUID
705 DEPLIBUUID
706 LIBUUID
707 PKG_CONFIG
708 TEST_IO_CMT
709 PRIVATE_LIBS_CMT
710 LDFLAG_DYNAMIC
711 PROFILED_LIB_EXT
712 STATIC_LIB_EXT
713 LIB_EXT
714 CHECKER_CMT
715 PROFILE_CMT
716 BSDLIB_CMT
717 ELF_CMT
718 HTREE_CMT
719 WITH_LUSTRE
720 LUSTRE
721 ENABLE_LFSCK
722 LFSCK_MAN
723 LFSCK_CMT
724 Q
725 E
726 LINK_BUILD_FLAGS
727 SYMLINK_RELATIVE
728 LINK_INSTALL_FLAGS
729 MAINTAINER_CMT
730 CPP
731 RDYNAMIC
732 DLOPEN_LIB
733 OBJEXT
734 EXEEXT
735 ac_ct_CC
736 CPPFLAGS
737 LDFLAGS
738 CFLAGS
739 CC
740 host_os
741 host_vendor
742 host_cpu
743 host
744 build_os
745 build_vendor
746 build_cpu
747 build
748 E2FSPROGS_PKGVER
749 E2FSPROGS_VERSION
750 E2FSPROGS_DAY
751 E2FSPROGS_MONTH
752 E2FSPROGS_YEAR
753 target_alias
754 host_alias
755 build_alias
756 LIBS
757 ECHO_T
758 ECHO_N
759 ECHO_C
760 DEFS
761 mandir
762 localedir
763 libdir
764 psdir
765 pdfdir
766 dvidir
767 htmldir
768 infodir
769 docdir
770 oldincludedir
771 includedir
772 localstatedir
773 sharedstatedir
774 sysconfdir
775 datadir
776 datarootdir
777 libexecdir
778 sbindir
779 bindir
780 program_transform_name
781 prefix
782 exec_prefix
783 PACKAGE_URL
784 PACKAGE_BUGREPORT
785 PACKAGE_STRING
786 PACKAGE_VERSION
787 PACKAGE_TARNAME
788 PACKAGE_NAME
789 PATH_SEPARATOR
790 SHELL'
791 ac_subst_files='MCONFIG
792 MAKEFILE_ELF
793 MAKEFILE_BSDLIB
794 MAKEFILE_PROFILE
795 MAKEFILE_CHECKER
796 MAKEFILE_LIBRARY
797 ASM_TYPES_HEADER
798 PUBLIC_CONFIG_HEADER'
799 ac_user_opts='
800 enable_option_checking
801 with_diet_libc
802 with_cc
803 with_ccopts
804 with_ldopts
805 with_root_prefix
806 enable_maintainer_mode
807 enable_symlink_install
808 enable_symlink_relative_symlinks
809 enable_symlink_build
810 enable_verbose_makecmds
811 enable_lfsck
812 with_lustre
813 enable_compression
814 enable_htree
815 enable_elf_shlibs
816 enable_bsd_shlibs
817 enable_profile
818 enable_checker
819 enable_jbd_debug
820 enable_blkid_debug
821 enable_testio_debug
822 enable_libuuid
823 enable_libblkid
824 enable_quota
825 enable_debugfs
826 enable_e2scan
827 enable_imager
828 enable_resizer
829 enable_defrag
830 enable_fsck
831 enable_e2initrd_helper
832 enable_tls
833 enable_uuidd
834 enable_nls
835 with_gnu_ld
836 enable_rpath
837 with_libiconv_prefix
838 with_included_gettext
839 with_libintl_prefix
840 with_sqlite3
841 with_multiarch
842 '
843       ac_precious_vars='build_alias
844 host_alias
845 target_alias
846 CC
847 CFLAGS
848 LDFLAGS
849 LIBS
850 CPPFLAGS
851 CPP
852 PKG_CONFIG'
853
854
855 # Initialize some variables set by options.
856 ac_init_help=
857 ac_init_version=false
858 ac_unrecognized_opts=
859 ac_unrecognized_sep=
860 # The variables have the same names as the options, with
861 # dashes changed to underlines.
862 cache_file=/dev/null
863 exec_prefix=NONE
864 no_create=
865 no_recursion=
866 prefix=NONE
867 program_prefix=NONE
868 program_suffix=NONE
869 program_transform_name=s,x,x,
870 silent=
871 site=
872 srcdir=
873 verbose=
874 x_includes=NONE
875 x_libraries=NONE
876
877 # Installation directory options.
878 # These are left unexpanded so users can "make install exec_prefix=/foo"
879 # and all the variables that are supposed to be based on exec_prefix
880 # by default will actually change.
881 # Use braces instead of parens because sh, perl, etc. also accept them.
882 # (The list follows the same order as the GNU Coding Standards.)
883 bindir='${exec_prefix}/bin'
884 sbindir='${exec_prefix}/sbin'
885 libexecdir='${exec_prefix}/libexec'
886 datarootdir='${prefix}/share'
887 datadir='${datarootdir}'
888 sysconfdir='${prefix}/etc'
889 sharedstatedir='${prefix}/com'
890 localstatedir='${prefix}/var'
891 includedir='${prefix}/include'
892 oldincludedir='/usr/include'
893 docdir='${datarootdir}/doc/${PACKAGE}'
894 infodir='${datarootdir}/info'
895 htmldir='${docdir}'
896 dvidir='${docdir}'
897 pdfdir='${docdir}'
898 psdir='${docdir}'
899 libdir='${exec_prefix}/lib'
900 localedir='${datarootdir}/locale'
901 mandir='${datarootdir}/man'
902
903 ac_prev=
904 ac_dashdash=
905 for ac_option
906 do
907   # If the previous option needs an argument, assign it.
908   if test -n "$ac_prev"; then
909     eval $ac_prev=\$ac_option
910     ac_prev=
911     continue
912   fi
913
914   case $ac_option in
915   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
916   *)    ac_optarg=yes ;;
917   esac
918
919   # Accept the important Cygnus configure options, so we can diagnose typos.
920
921   case $ac_dashdash$ac_option in
922   --)
923     ac_dashdash=yes ;;
924
925   -bindir | --bindir | --bindi | --bind | --bin | --bi)
926     ac_prev=bindir ;;
927   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
928     bindir=$ac_optarg ;;
929
930   -build | --build | --buil | --bui | --bu)
931     ac_prev=build_alias ;;
932   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
933     build_alias=$ac_optarg ;;
934
935   -cache-file | --cache-file | --cache-fil | --cache-fi \
936   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
937     ac_prev=cache_file ;;
938   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
939   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
940     cache_file=$ac_optarg ;;
941
942   --config-cache | -C)
943     cache_file=config.cache ;;
944
945   -datadir | --datadir | --datadi | --datad)
946     ac_prev=datadir ;;
947   -datadir=* | --datadir=* | --datadi=* | --datad=*)
948     datadir=$ac_optarg ;;
949
950   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
951   | --dataroo | --dataro | --datar)
952     ac_prev=datarootdir ;;
953   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
954   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
955     datarootdir=$ac_optarg ;;
956
957   -disable-* | --disable-*)
958     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
959     # Reject names that are not valid shell variable names.
960     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961       as_fn_error "invalid feature name: $ac_useropt"
962     ac_useropt_orig=$ac_useropt
963     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964     case $ac_user_opts in
965       *"
966 "enable_$ac_useropt"
967 "*) ;;
968       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
969          ac_unrecognized_sep=', ';;
970     esac
971     eval enable_$ac_useropt=no ;;
972
973   -docdir | --docdir | --docdi | --doc | --do)
974     ac_prev=docdir ;;
975   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
976     docdir=$ac_optarg ;;
977
978   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
979     ac_prev=dvidir ;;
980   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
981     dvidir=$ac_optarg ;;
982
983   -enable-* | --enable-*)
984     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
985     # Reject names that are not valid shell variable names.
986     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987       as_fn_error "invalid feature name: $ac_useropt"
988     ac_useropt_orig=$ac_useropt
989     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990     case $ac_user_opts in
991       *"
992 "enable_$ac_useropt"
993 "*) ;;
994       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
995          ac_unrecognized_sep=', ';;
996     esac
997     eval enable_$ac_useropt=\$ac_optarg ;;
998
999   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1000   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1001   | --exec | --exe | --ex)
1002     ac_prev=exec_prefix ;;
1003   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1004   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1005   | --exec=* | --exe=* | --ex=*)
1006     exec_prefix=$ac_optarg ;;
1007
1008   -gas | --gas | --ga | --g)
1009     # Obsolete; use --with-gas.
1010     with_gas=yes ;;
1011
1012   -help | --help | --hel | --he | -h)
1013     ac_init_help=long ;;
1014   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1015     ac_init_help=recursive ;;
1016   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1017     ac_init_help=short ;;
1018
1019   -host | --host | --hos | --ho)
1020     ac_prev=host_alias ;;
1021   -host=* | --host=* | --hos=* | --ho=*)
1022     host_alias=$ac_optarg ;;
1023
1024   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1025     ac_prev=htmldir ;;
1026   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1027   | --ht=*)
1028     htmldir=$ac_optarg ;;
1029
1030   -includedir | --includedir | --includedi | --included | --include \
1031   | --includ | --inclu | --incl | --inc)
1032     ac_prev=includedir ;;
1033   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1034   | --includ=* | --inclu=* | --incl=* | --inc=*)
1035     includedir=$ac_optarg ;;
1036
1037   -infodir | --infodir | --infodi | --infod | --info | --inf)
1038     ac_prev=infodir ;;
1039   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1040     infodir=$ac_optarg ;;
1041
1042   -libdir | --libdir | --libdi | --libd)
1043     ac_prev=libdir ;;
1044   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1045     libdir=$ac_optarg ;;
1046
1047   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1048   | --libexe | --libex | --libe)
1049     ac_prev=libexecdir ;;
1050   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1051   | --libexe=* | --libex=* | --libe=*)
1052     libexecdir=$ac_optarg ;;
1053
1054   -localedir | --localedir | --localedi | --localed | --locale)
1055     ac_prev=localedir ;;
1056   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1057     localedir=$ac_optarg ;;
1058
1059   -localstatedir | --localstatedir | --localstatedi | --localstated \
1060   | --localstate | --localstat | --localsta | --localst | --locals)
1061     ac_prev=localstatedir ;;
1062   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1063   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1064     localstatedir=$ac_optarg ;;
1065
1066   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1067     ac_prev=mandir ;;
1068   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1069     mandir=$ac_optarg ;;
1070
1071   -nfp | --nfp | --nf)
1072     # Obsolete; use --without-fp.
1073     with_fp=no ;;
1074
1075   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1076   | --no-cr | --no-c | -n)
1077     no_create=yes ;;
1078
1079   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1080   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1081     no_recursion=yes ;;
1082
1083   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1084   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1085   | --oldin | --oldi | --old | --ol | --o)
1086     ac_prev=oldincludedir ;;
1087   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1088   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1089   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1090     oldincludedir=$ac_optarg ;;
1091
1092   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1093     ac_prev=prefix ;;
1094   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1095     prefix=$ac_optarg ;;
1096
1097   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1098   | --program-pre | --program-pr | --program-p)
1099     ac_prev=program_prefix ;;
1100   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1101   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1102     program_prefix=$ac_optarg ;;
1103
1104   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1105   | --program-suf | --program-su | --program-s)
1106     ac_prev=program_suffix ;;
1107   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1108   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1109     program_suffix=$ac_optarg ;;
1110
1111   -program-transform-name | --program-transform-name \
1112   | --program-transform-nam | --program-transform-na \
1113   | --program-transform-n | --program-transform- \
1114   | --program-transform | --program-transfor \
1115   | --program-transfo | --program-transf \
1116   | --program-trans | --program-tran \
1117   | --progr-tra | --program-tr | --program-t)
1118     ac_prev=program_transform_name ;;
1119   -program-transform-name=* | --program-transform-name=* \
1120   | --program-transform-nam=* | --program-transform-na=* \
1121   | --program-transform-n=* | --program-transform-=* \
1122   | --program-transform=* | --program-transfor=* \
1123   | --program-transfo=* | --program-transf=* \
1124   | --program-trans=* | --program-tran=* \
1125   | --progr-tra=* | --program-tr=* | --program-t=*)
1126     program_transform_name=$ac_optarg ;;
1127
1128   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1129     ac_prev=pdfdir ;;
1130   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1131     pdfdir=$ac_optarg ;;
1132
1133   -psdir | --psdir | --psdi | --psd | --ps)
1134     ac_prev=psdir ;;
1135   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1136     psdir=$ac_optarg ;;
1137
1138   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1139   | -silent | --silent | --silen | --sile | --sil)
1140     silent=yes ;;
1141
1142   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1143     ac_prev=sbindir ;;
1144   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1145   | --sbi=* | --sb=*)
1146     sbindir=$ac_optarg ;;
1147
1148   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1149   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1150   | --sharedst | --shareds | --shared | --share | --shar \
1151   | --sha | --sh)
1152     ac_prev=sharedstatedir ;;
1153   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1154   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1155   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1156   | --sha=* | --sh=*)
1157     sharedstatedir=$ac_optarg ;;
1158
1159   -site | --site | --sit)
1160     ac_prev=site ;;
1161   -site=* | --site=* | --sit=*)
1162     site=$ac_optarg ;;
1163
1164   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1165     ac_prev=srcdir ;;
1166   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1167     srcdir=$ac_optarg ;;
1168
1169   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1170   | --syscon | --sysco | --sysc | --sys | --sy)
1171     ac_prev=sysconfdir ;;
1172   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1173   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1174     sysconfdir=$ac_optarg ;;
1175
1176   -target | --target | --targe | --targ | --tar | --ta | --t)
1177     ac_prev=target_alias ;;
1178   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1179     target_alias=$ac_optarg ;;
1180
1181   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1182     verbose=yes ;;
1183
1184   -version | --version | --versio | --versi | --vers | -V)
1185     ac_init_version=: ;;
1186
1187   -with-* | --with-*)
1188     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1189     # Reject names that are not valid shell variable names.
1190     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191       as_fn_error "invalid package name: $ac_useropt"
1192     ac_useropt_orig=$ac_useropt
1193     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194     case $ac_user_opts in
1195       *"
1196 "with_$ac_useropt"
1197 "*) ;;
1198       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1199          ac_unrecognized_sep=', ';;
1200     esac
1201     eval with_$ac_useropt=\$ac_optarg ;;
1202
1203   -without-* | --without-*)
1204     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205     # Reject names that are not valid shell variable names.
1206     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207       as_fn_error "invalid package name: $ac_useropt"
1208     ac_useropt_orig=$ac_useropt
1209     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210     case $ac_user_opts in
1211       *"
1212 "with_$ac_useropt"
1213 "*) ;;
1214       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1215          ac_unrecognized_sep=', ';;
1216     esac
1217     eval with_$ac_useropt=no ;;
1218
1219   --x)
1220     # Obsolete; use --with-x.
1221     with_x=yes ;;
1222
1223   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1224   | --x-incl | --x-inc | --x-in | --x-i)
1225     ac_prev=x_includes ;;
1226   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1227   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1228     x_includes=$ac_optarg ;;
1229
1230   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1231   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1232     ac_prev=x_libraries ;;
1233   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1234   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1235     x_libraries=$ac_optarg ;;
1236
1237   -*) as_fn_error "unrecognized option: \`$ac_option'
1238 Try \`$0 --help' for more information."
1239     ;;
1240
1241   *=*)
1242     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1243     # Reject names that are not valid shell variable names.
1244     case $ac_envvar in #(
1245       '' | [0-9]* | *[!_$as_cr_alnum]* )
1246       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1247     esac
1248     eval $ac_envvar=\$ac_optarg
1249     export $ac_envvar ;;
1250
1251   *)
1252     # FIXME: should be removed in autoconf 3.0.
1253     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1254     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1255       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1256     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1257     ;;
1258
1259   esac
1260 done
1261
1262 if test -n "$ac_prev"; then
1263   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1264   as_fn_error "missing argument to $ac_option"
1265 fi
1266
1267 if test -n "$ac_unrecognized_opts"; then
1268   case $enable_option_checking in
1269     no) ;;
1270     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1271     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1272   esac
1273 fi
1274
1275 # Check all directory arguments for consistency.
1276 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277                 datadir sysconfdir sharedstatedir localstatedir includedir \
1278                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279                 libdir localedir mandir
1280 do
1281   eval ac_val=\$$ac_var
1282   # Remove trailing slashes.
1283   case $ac_val in
1284     */ )
1285       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1286       eval $ac_var=\$ac_val;;
1287   esac
1288   # Be sure to have absolute directory names.
1289   case $ac_val in
1290     [\\/$]* | ?:[\\/]* )  continue;;
1291     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1292   esac
1293   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1294 done
1295
1296 # There might be people who depend on the old broken behavior: `$host'
1297 # used to hold the argument of --host etc.
1298 # FIXME: To remove some day.
1299 build=$build_alias
1300 host=$host_alias
1301 target=$target_alias
1302
1303 # FIXME: To remove some day.
1304 if test "x$host_alias" != x; then
1305   if test "x$build_alias" = x; then
1306     cross_compiling=maybe
1307     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1308     If a cross compiler is detected then cross compile mode will be used." >&2
1309   elif test "x$build_alias" != "x$host_alias"; then
1310     cross_compiling=yes
1311   fi
1312 fi
1313
1314 ac_tool_prefix=
1315 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1316
1317 test "$silent" = yes && exec 6>/dev/null
1318
1319
1320 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321 ac_ls_di=`ls -di .` &&
1322 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323   as_fn_error "working directory cannot be determined"
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325   as_fn_error "pwd does not report name of working directory"
1326
1327
1328 # Find the source files, if location was not specified.
1329 if test -z "$srcdir"; then
1330   ac_srcdir_defaulted=yes
1331   # Try the directory containing this script, then the parent directory.
1332   ac_confdir=`$as_dirname -- "$as_myself" ||
1333 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334          X"$as_myself" : 'X\(//\)[^/]' \| \
1335          X"$as_myself" : 'X\(//\)$' \| \
1336          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1337 $as_echo X"$as_myself" |
1338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339             s//\1/
1340             q
1341           }
1342           /^X\(\/\/\)[^/].*/{
1343             s//\1/
1344             q
1345           }
1346           /^X\(\/\/\)$/{
1347             s//\1/
1348             q
1349           }
1350           /^X\(\/\).*/{
1351             s//\1/
1352             q
1353           }
1354           s/.*/./; q'`
1355   srcdir=$ac_confdir
1356   if test ! -r "$srcdir/$ac_unique_file"; then
1357     srcdir=..
1358   fi
1359 else
1360   ac_srcdir_defaulted=no
1361 fi
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1365 fi
1366 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367 ac_abs_confdir=`(
1368         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1369         pwd)`
1370 # When building in place, set srcdir=.
1371 if test "$ac_abs_confdir" = "$ac_pwd"; then
1372   srcdir=.
1373 fi
1374 # Remove unnecessary trailing slashes from srcdir.
1375 # Double slashes in file names in object file debugging info
1376 # mess up M-x gdb in Emacs.
1377 case $srcdir in
1378 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379 esac
1380 for ac_var in $ac_precious_vars; do
1381   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382   eval ac_env_${ac_var}_value=\$${ac_var}
1383   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385 done
1386
1387 #
1388 # Report the --help message.
1389 #
1390 if test "$ac_init_help" = "long"; then
1391   # Omit some internal or obsolete options to make the list less imposing.
1392   # This message is too long to be a string in the A/UX 3.1 sh.
1393   cat <<_ACEOF
1394 \`configure' configures this package to adapt to many kinds of systems.
1395
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1397
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE.  See below for descriptions of some of the useful variables.
1400
1401 Defaults for the options are specified in brackets.
1402
1403 Configuration:
1404   -h, --help              display this help and exit
1405       --help=short        display options specific to this package
1406       --help=recursive    display the short help of all the included packages
1407   -V, --version           display version information and exit
1408   -q, --quiet, --silent   do not print \`checking...' messages
1409       --cache-file=FILE   cache test results in FILE [disabled]
1410   -C, --config-cache      alias for \`--cache-file=config.cache'
1411   -n, --no-create         do not create output files
1412       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1413
1414 Installation directories:
1415   --prefix=PREFIX         install architecture-independent files in PREFIX
1416                           [$ac_default_prefix]
1417   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1418                           [PREFIX]
1419
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1424
1425 For better control, use the options below.
1426
1427 Fine tuning of the installation directories:
1428   --bindir=DIR            user executables [EPREFIX/bin]
1429   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1430   --libexecdir=DIR        program executables [EPREFIX/libexec]
1431   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1432   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1433   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1434   --libdir=DIR            object code libraries [EPREFIX/lib]
1435   --includedir=DIR        C header files [PREFIX/include]
1436   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1437   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1438   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1439   --infodir=DIR           info documentation [DATAROOTDIR/info]
1440   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1441   --mandir=DIR            man documentation [DATAROOTDIR/man]
1442   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1443   --htmldir=DIR           html documentation [DOCDIR]
1444   --dvidir=DIR            dvi documentation [DOCDIR]
1445   --pdfdir=DIR            pdf documentation [DOCDIR]
1446   --psdir=DIR             ps documentation [DOCDIR]
1447 _ACEOF
1448
1449   cat <<\_ACEOF
1450
1451 System types:
1452   --build=BUILD     configure for building on BUILD [guessed]
1453   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1454 _ACEOF
1455 fi
1456
1457 if test -n "$ac_init_help"; then
1458
1459   cat <<\_ACEOF
1460
1461 Optional Features:
1462   --disable-option-checking  ignore unrecognized --enable/--with options
1463   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1464   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1465   --enable-maintainer-mode enable makefile rules useful for maintainers
1466   --enable-symlink-install use symlinks when installing instead of hard links
1467   --enable-relative-symlinks use relative symlinks when installing
1468   --enable-symlink-build  use symlinks while building instead of hard links
1469   --enable-verbose-makecmds enable verbose make command output
1470   --disable-lfsck         disable EXPERIMENTAL Lustre lfsck support
1471   --enable-compression    enable EXPERIMENTAL compression support
1472   --enable-htree          enable EXPERIMENTAL htree directory support
1473   --enable-elf-shlibs     select ELF shared libraries
1474   --enable-bsd-shlibs     select BSD shared libraries
1475   --enable-profile        build profiling libraries
1476   --enable-checker        build checker libraries
1477   --enable-jbd-debug      enable journal debugging
1478   --enable-blkid-debug    enable blkid debugging
1479   --disable-testio-debug  disable the use of the test I/O manager for debugging
1480   --disable-libuuid       do not build private uuid library
1481   --disable-libblkid      do not build private blkid library
1482   --enable-libquota       enable quota support
1483   --disable-debugfs       disable support of debugfs program
1484   --disable-e2scan        disable support of e2scan program
1485   --disable-imager        disable support of e2image program
1486   --disable-resizer       disable support of e2resize program
1487   --disable-defrag        disable support of e4defrag program
1488   --enable-fsck           build fsck wrapper program
1489   --enable-e2initrd-helper build e2initrd-helper program
1490   --disable-tls           disable use of thread local support
1491   --disable-uuidd         disable building the uuid daemon
1492   --disable-nls           do not use Native Language Support
1493   --disable-rpath         do not hardcode runtime library paths
1494
1495 Optional Packages:
1496   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1497   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1498   --with-diet-libc        use diet libc
1499   --with-cc               no longer supported, use CC= instead
1500   --with-ccopts           no longer supported, use CFLAGS= instead
1501   --with-ldopts           no longer supported, use LDFLAGS= instead
1502   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1503   --with-lustre=LUSTRE path to Lustre sources for lfsck (default=/usr for RPM)
1504   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1505   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1506   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1507   --with-included-gettext use the GNU gettext library included here
1508   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1509   --without-libintl-prefix     don't search for libintl in includedir and libdir
1510   --with-sqlite3=DIR      location of sqlite3 library (default /usr/lib)
1511   --with-multiarch=ARCH specify the multiarch triplet
1512
1513 Some influential environment variables:
1514   CC          C compiler command
1515   CFLAGS      C compiler flags
1516   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1517               nonstandard directory <lib dir>
1518   LIBS        libraries to pass to the linker, e.g. -l<library>
1519   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1520               you have headers in a nonstandard directory <include dir>
1521   CPP         C preprocessor
1522   PKG_CONFIG  path to pkg-config utility
1523
1524 Use these variables to override the choices made by `configure' or to help
1525 it to find libraries and programs with nonstandard names/locations.
1526
1527 Report bugs to the package provider.
1528 _ACEOF
1529 ac_status=$?
1530 fi
1531
1532 if test "$ac_init_help" = "recursive"; then
1533   # If there are subdirs, report their specific --help.
1534   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1535     test -d "$ac_dir" ||
1536       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1537       continue
1538     ac_builddir=.
1539
1540 case "$ac_dir" in
1541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 *)
1543   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1544   # A ".." for each directory in $ac_dir_suffix.
1545   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1546   case $ac_top_builddir_sub in
1547   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1549   esac ;;
1550 esac
1551 ac_abs_top_builddir=$ac_pwd
1552 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1553 # for backward compatibility:
1554 ac_top_builddir=$ac_top_build_prefix
1555
1556 case $srcdir in
1557   .)  # We are building in place.
1558     ac_srcdir=.
1559     ac_top_srcdir=$ac_top_builddir_sub
1560     ac_abs_top_srcdir=$ac_pwd ;;
1561   [\\/]* | ?:[\\/]* )  # Absolute name.
1562     ac_srcdir=$srcdir$ac_dir_suffix;
1563     ac_top_srcdir=$srcdir
1564     ac_abs_top_srcdir=$srcdir ;;
1565   *) # Relative name.
1566     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1567     ac_top_srcdir=$ac_top_build_prefix$srcdir
1568     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1569 esac
1570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1571
1572     cd "$ac_dir" || { ac_status=$?; continue; }
1573     # Check for guested configure.
1574     if test -f "$ac_srcdir/configure.gnu"; then
1575       echo &&
1576       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1577     elif test -f "$ac_srcdir/configure"; then
1578       echo &&
1579       $SHELL "$ac_srcdir/configure" --help=recursive
1580     else
1581       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1582     fi || ac_status=$?
1583     cd "$ac_pwd" || { ac_status=$?; break; }
1584   done
1585 fi
1586
1587 test -n "$ac_init_help" && exit $ac_status
1588 if $ac_init_version; then
1589   cat <<\_ACEOF
1590 configure
1591 generated by GNU Autoconf 2.65
1592
1593 Copyright (C) 2009 Free Software Foundation, Inc.
1594 This configure script is free software; the Free Software Foundation
1595 gives unlimited permission to copy, distribute and modify it.
1596 _ACEOF
1597   exit
1598 fi
1599
1600 ## ------------------------ ##
1601 ## Autoconf initialization. ##
1602 ## ------------------------ ##
1603
1604 # ac_fn_c_try_compile LINENO
1605 # --------------------------
1606 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1607 ac_fn_c_try_compile ()
1608 {
1609   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610   rm -f conftest.$ac_objext
1611   if { { ac_try="$ac_compile"
1612 case "(($ac_try" in
1613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614   *) ac_try_echo=$ac_try;;
1615 esac
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618   (eval "$ac_compile") 2>conftest.err
1619   ac_status=$?
1620   if test -s conftest.err; then
1621     grep -v '^ *+' conftest.err >conftest.er1
1622     cat conftest.er1 >&5
1623     mv -f conftest.er1 conftest.err
1624   fi
1625   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626   test $ac_status = 0; } && {
1627          test -z "$ac_c_werror_flag" ||
1628          test ! -s conftest.err
1629        } && test -s conftest.$ac_objext; then :
1630   ac_retval=0
1631 else
1632   $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1634
1635         ac_retval=1
1636 fi
1637   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1638   as_fn_set_status $ac_retval
1639
1640 } # ac_fn_c_try_compile
1641
1642 # ac_fn_c_try_link LINENO
1643 # -----------------------
1644 # Try to link conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_c_try_link ()
1646 {
1647   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648   rm -f conftest.$ac_objext conftest$ac_exeext
1649   if { { ac_try="$ac_link"
1650 case "(($ac_try" in
1651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652   *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656   (eval "$ac_link") 2>conftest.err
1657   ac_status=$?
1658   if test -s conftest.err; then
1659     grep -v '^ *+' conftest.err >conftest.er1
1660     cat conftest.er1 >&5
1661     mv -f conftest.er1 conftest.err
1662   fi
1663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664   test $ac_status = 0; } && {
1665          test -z "$ac_c_werror_flag" ||
1666          test ! -s conftest.err
1667        } && test -s conftest$ac_exeext && {
1668          test "$cross_compiling" = yes ||
1669          $as_test_x conftest$ac_exeext
1670        }; then :
1671   ac_retval=0
1672 else
1673   $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1675
1676         ac_retval=1
1677 fi
1678   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1679   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1680   # interfere with the next link command; also delete a directory that is
1681   # left behind by Apple's compiler.  We do this before executing the actions.
1682   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1683   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1684   as_fn_set_status $ac_retval
1685
1686 } # ac_fn_c_try_link
1687
1688 # ac_fn_c_try_cpp LINENO
1689 # ----------------------
1690 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_cpp ()
1692 {
1693   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694   if { { ac_try="$ac_cpp conftest.$ac_ext"
1695 case "(($ac_try" in
1696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697   *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1702   ac_status=$?
1703   if test -s conftest.err; then
1704     grep -v '^ *+' conftest.err >conftest.er1
1705     cat conftest.er1 >&5
1706     mv -f conftest.er1 conftest.err
1707   fi
1708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709   test $ac_status = 0; } >/dev/null && {
1710          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1711          test ! -s conftest.err
1712        }; then :
1713   ac_retval=0
1714 else
1715   $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1717
1718     ac_retval=1
1719 fi
1720   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721   as_fn_set_status $ac_retval
1722
1723 } # ac_fn_c_try_cpp
1724
1725 # ac_fn_c_try_run LINENO
1726 # ----------------------
1727 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1728 # that executables *can* be run.
1729 ac_fn_c_try_run ()
1730 {
1731   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732   if { { ac_try="$ac_link"
1733 case "(($ac_try" in
1734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735   *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739   (eval "$ac_link") 2>&5
1740   ac_status=$?
1741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1743   { { case "(($ac_try" in
1744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745   *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749   (eval "$ac_try") 2>&5
1750   ac_status=$?
1751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752   test $ac_status = 0; }; }; then :
1753   ac_retval=0
1754 else
1755   $as_echo "$as_me: program exited with status $ac_status" >&5
1756        $as_echo "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.$ac_ext >&5
1758
1759        ac_retval=$ac_status
1760 fi
1761   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1762   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1763   as_fn_set_status $ac_retval
1764
1765 } # ac_fn_c_try_run
1766
1767 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1768 # -------------------------------------------
1769 # Tests whether TYPE exists after having included INCLUDES, setting cache
1770 # variable VAR accordingly.
1771 ac_fn_c_check_type ()
1772 {
1773   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1777   $as_echo_n "(cached) " >&6
1778 else
1779   eval "$3=no"
1780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h.  */
1782 $4
1783 int
1784 main ()
1785 {
1786 if (sizeof ($2))
1787          return 0;
1788   ;
1789   return 0;
1790 }
1791 _ACEOF
1792 if ac_fn_c_try_compile "$LINENO"; then :
1793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794 /* end confdefs.h.  */
1795 $4
1796 int
1797 main ()
1798 {
1799 if (sizeof (($2)))
1800             return 0;
1801   ;
1802   return 0;
1803 }
1804 _ACEOF
1805 if ac_fn_c_try_compile "$LINENO"; then :
1806
1807 else
1808   eval "$3=yes"
1809 fi
1810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811 fi
1812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813 fi
1814 eval ac_res=\$$3
1815                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1817   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1818
1819 } # ac_fn_c_check_type
1820
1821 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1822 # -------------------------------------------------------
1823 # Tests whether HEADER exists and can be compiled using the include files in
1824 # INCLUDES, setting the cache variable VAR accordingly.
1825 ac_fn_c_check_header_compile ()
1826 {
1827   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829 $as_echo_n "checking for $2... " >&6; }
1830 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1831   $as_echo_n "(cached) " >&6
1832 else
1833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h.  */
1835 $4
1836 #include <$2>
1837 _ACEOF
1838 if ac_fn_c_try_compile "$LINENO"; then :
1839   eval "$3=yes"
1840 else
1841   eval "$3=no"
1842 fi
1843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1844 fi
1845 eval ac_res=\$$3
1846                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847 $as_echo "$ac_res" >&6; }
1848   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1849
1850 } # ac_fn_c_check_header_compile
1851
1852 # ac_fn_c_check_func LINENO FUNC VAR
1853 # ----------------------------------
1854 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1855 ac_fn_c_check_func ()
1856 {
1857   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1861   $as_echo_n "(cached) " >&6
1862 else
1863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h.  */
1865 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1866    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1867 #define $2 innocuous_$2
1868
1869 /* System header to define __stub macros and hopefully few prototypes,
1870     which can conflict with char $2 (); below.
1871     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1872     <limits.h> exists even on freestanding compilers.  */
1873
1874 #ifdef __STDC__
1875 # include <limits.h>
1876 #else
1877 # include <assert.h>
1878 #endif
1879
1880 #undef $2
1881
1882 /* Override any GCC internal prototype to avoid an error.
1883    Use char because int might match the return type of a GCC
1884    builtin and then its argument prototype would still apply.  */
1885 #ifdef __cplusplus
1886 extern "C"
1887 #endif
1888 char $2 ();
1889 /* The GNU C library defines this for functions which it implements
1890     to always fail with ENOSYS.  Some functions are actually named
1891     something starting with __ and the normal name is an alias.  */
1892 #if defined __stub_$2 || defined __stub___$2
1893 choke me
1894 #endif
1895
1896 int
1897 main ()
1898 {
1899 return $2 ();
1900   ;
1901   return 0;
1902 }
1903 _ACEOF
1904 if ac_fn_c_try_link "$LINENO"; then :
1905   eval "$3=yes"
1906 else
1907   eval "$3=no"
1908 fi
1909 rm -f core conftest.err conftest.$ac_objext \
1910     conftest$ac_exeext conftest.$ac_ext
1911 fi
1912 eval ac_res=\$$3
1913                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1915   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1916
1917 } # ac_fn_c_check_func
1918
1919 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1920 # -------------------------------------------------------
1921 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1922 # the include files in INCLUDES and setting the cache variable VAR
1923 # accordingly.
1924 ac_fn_c_check_header_mongrel ()
1925 {
1926   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1931   $as_echo_n "(cached) " >&6
1932 fi
1933 eval ac_res=\$$3
1934                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1936 else
1937   # Is the header compilable?
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1939 $as_echo_n "checking $2 usability... " >&6; }
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h.  */
1942 $4
1943 #include <$2>
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946   ac_header_compiler=yes
1947 else
1948   ac_header_compiler=no
1949 fi
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1952 $as_echo "$ac_header_compiler" >&6; }
1953
1954 # Is the header present?
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1956 $as_echo_n "checking $2 presence... " >&6; }
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h.  */
1959 #include <$2>
1960 _ACEOF
1961 if ac_fn_c_try_cpp "$LINENO"; then :
1962   ac_header_preproc=yes
1963 else
1964   ac_header_preproc=no
1965 fi
1966 rm -f conftest.err conftest.$ac_ext
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1968 $as_echo "$ac_header_preproc" >&6; }
1969
1970 # So?  What about this header?
1971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1972   yes:no: )
1973     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1974 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1975     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1976 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1977     ;;
1978   no:yes:* )
1979     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1980 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1981     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1982 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1983     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1984 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1985     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1986 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1987     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1988 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1989     ;;
1990 esac
1991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1994   $as_echo_n "(cached) " >&6
1995 else
1996   eval "$3=\$ac_header_compiler"
1997 fi
1998 eval ac_res=\$$3
1999                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2001 fi
2002   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2003
2004 } # ac_fn_c_check_header_mongrel
2005
2006 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2007 # --------------------------------------------
2008 # Tries to find the compile-time value of EXPR in a program that includes
2009 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2010 # computed
2011 ac_fn_c_compute_int ()
2012 {
2013   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014   if test "$cross_compiling" = yes; then
2015     # Depending upon the size, compute the lo and hi bounds.
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h.  */
2018 $4
2019 int
2020 main ()
2021 {
2022 static int test_array [1 - 2 * !(($2) >= 0)];
2023 test_array [0] = 0
2024
2025   ;
2026   return 0;
2027 }
2028 _ACEOF
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030   ac_lo=0 ac_mid=0
2031   while :; do
2032     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h.  */
2034 $4
2035 int
2036 main ()
2037 {
2038 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2039 test_array [0] = 0
2040
2041   ;
2042   return 0;
2043 }
2044 _ACEOF
2045 if ac_fn_c_try_compile "$LINENO"; then :
2046   ac_hi=$ac_mid; break
2047 else
2048   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2049                         if test $ac_lo -le $ac_mid; then
2050                           ac_lo= ac_hi=
2051                           break
2052                         fi
2053                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2054 fi
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056   done
2057 else
2058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h.  */
2060 $4
2061 int
2062 main ()
2063 {
2064 static int test_array [1 - 2 * !(($2) < 0)];
2065 test_array [0] = 0
2066
2067   ;
2068   return 0;
2069 }
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072   ac_hi=-1 ac_mid=-1
2073   while :; do
2074     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h.  */
2076 $4
2077 int
2078 main ()
2079 {
2080 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2081 test_array [0] = 0
2082
2083   ;
2084   return 0;
2085 }
2086 _ACEOF
2087 if ac_fn_c_try_compile "$LINENO"; then :
2088   ac_lo=$ac_mid; break
2089 else
2090   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2091                         if test $ac_mid -le $ac_hi; then
2092                           ac_lo= ac_hi=
2093                           break
2094                         fi
2095                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2096 fi
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098   done
2099 else
2100   ac_lo= ac_hi=
2101 fi
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 fi
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 # Binary search between lo and hi bounds.
2106 while test "x$ac_lo" != "x$ac_hi"; do
2107   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h.  */
2110 $4
2111 int
2112 main ()
2113 {
2114 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2115 test_array [0] = 0
2116
2117   ;
2118   return 0;
2119 }
2120 _ACEOF
2121 if ac_fn_c_try_compile "$LINENO"; then :
2122   ac_hi=$ac_mid
2123 else
2124   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2125 fi
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 done
2128 case $ac_lo in #((
2129 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2130 '') ac_retval=1 ;;
2131 esac
2132   else
2133     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h.  */
2135 $4
2136 static long int longval () { return $2; }
2137 static unsigned long int ulongval () { return $2; }
2138 #include <stdio.h>
2139 #include <stdlib.h>
2140 int
2141 main ()
2142 {
2143
2144   FILE *f = fopen ("conftest.val", "w");
2145   if (! f)
2146     return 1;
2147   if (($2) < 0)
2148     {
2149       long int i = longval ();
2150       if (i != ($2))
2151         return 1;
2152       fprintf (f, "%ld", i);
2153     }
2154   else
2155     {
2156       unsigned long int i = ulongval ();
2157       if (i != ($2))
2158         return 1;
2159       fprintf (f, "%lu", i);
2160     }
2161   /* Do not output a trailing newline, as this causes \r\n confusion
2162      on some platforms.  */
2163   return ferror (f) || fclose (f) != 0;
2164
2165   ;
2166   return 0;
2167 }
2168 _ACEOF
2169 if ac_fn_c_try_run "$LINENO"; then :
2170   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2171 else
2172   ac_retval=1
2173 fi
2174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2175   conftest.$ac_objext conftest.beam conftest.$ac_ext
2176 rm -f conftest.val
2177
2178   fi
2179   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2180   as_fn_set_status $ac_retval
2181
2182 } # ac_fn_c_compute_int
2183
2184 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2185 # ----------------------------------------------------
2186 # Tries to find if the field MEMBER exists in type AGGR, after including
2187 # INCLUDES, setting cache variable VAR accordingly.
2188 ac_fn_c_check_member ()
2189 {
2190   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2192 $as_echo_n "checking for $2.$3... " >&6; }
2193 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2194   $as_echo_n "(cached) " >&6
2195 else
2196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h.  */
2198 $5
2199 int
2200 main ()
2201 {
2202 static $2 ac_aggr;
2203 if (ac_aggr.$3)
2204 return 0;
2205   ;
2206   return 0;
2207 }
2208 _ACEOF
2209 if ac_fn_c_try_compile "$LINENO"; then :
2210   eval "$4=yes"
2211 else
2212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h.  */
2214 $5
2215 int
2216 main ()
2217 {
2218 static $2 ac_aggr;
2219 if (sizeof ac_aggr.$3)
2220 return 0;
2221   ;
2222   return 0;
2223 }
2224 _ACEOF
2225 if ac_fn_c_try_compile "$LINENO"; then :
2226   eval "$4=yes"
2227 else
2228   eval "$4=no"
2229 fi
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231 fi
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2233 fi
2234 eval ac_res=\$$4
2235                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2236 $as_echo "$ac_res" >&6; }
2237   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2238
2239 } # ac_fn_c_check_member
2240
2241 # ac_fn_c_check_decl LINENO SYMBOL VAR
2242 # ------------------------------------
2243 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2244 ac_fn_c_check_decl ()
2245 {
2246   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2248 $as_echo_n "checking whether $2 is declared... " >&6; }
2249 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2250   $as_echo_n "(cached) " >&6
2251 else
2252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h.  */
2254 $4
2255 int
2256 main ()
2257 {
2258 #ifndef $2
2259   (void) $2;
2260 #endif
2261
2262   ;
2263   return 0;
2264 }
2265 _ACEOF
2266 if ac_fn_c_try_compile "$LINENO"; then :
2267   eval "$3=yes"
2268 else
2269   eval "$3=no"
2270 fi
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 fi
2273 eval ac_res=\$$3
2274                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2275 $as_echo "$ac_res" >&6; }
2276   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2277
2278 } # ac_fn_c_check_decl
2279 cat >config.log <<_ACEOF
2280 This file contains any messages produced by compilers while
2281 running configure, to aid debugging if configure makes a mistake.
2282
2283 It was created by $as_me, which was
2284 generated by GNU Autoconf 2.65.  Invocation command line was
2285
2286   $ $0 $@
2287
2288 _ACEOF
2289 exec 5>>config.log
2290 {
2291 cat <<_ASUNAME
2292 ## --------- ##
2293 ## Platform. ##
2294 ## --------- ##
2295
2296 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2297 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2298 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2299 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2300 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2301
2302 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2303 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2304
2305 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2306 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2307 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2308 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2309 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2310 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2311 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2312
2313 _ASUNAME
2314
2315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316 for as_dir in $PATH
2317 do
2318   IFS=$as_save_IFS
2319   test -z "$as_dir" && as_dir=.
2320     $as_echo "PATH: $as_dir"
2321   done
2322 IFS=$as_save_IFS
2323
2324 } >&5
2325
2326 cat >&5 <<_ACEOF
2327
2328
2329 ## ----------- ##
2330 ## Core tests. ##
2331 ## ----------- ##
2332
2333 _ACEOF
2334
2335
2336 # Keep a trace of the command line.
2337 # Strip out --no-create and --no-recursion so they do not pile up.
2338 # Strip out --silent because we don't want to record it for future runs.
2339 # Also quote any args containing shell meta-characters.
2340 # Make two passes to allow for proper duplicate-argument suppression.
2341 ac_configure_args=
2342 ac_configure_args0=
2343 ac_configure_args1=
2344 ac_must_keep_next=false
2345 for ac_pass in 1 2
2346 do
2347   for ac_arg
2348   do
2349     case $ac_arg in
2350     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2351     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2352     | -silent | --silent | --silen | --sile | --sil)
2353       continue ;;
2354     *\'*)
2355       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2356     esac
2357     case $ac_pass in
2358     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2359     2)
2360       as_fn_append ac_configure_args1 " '$ac_arg'"
2361       if test $ac_must_keep_next = true; then
2362         ac_must_keep_next=false # Got value, back to normal.
2363       else
2364         case $ac_arg in
2365           *=* | --config-cache | -C | -disable-* | --disable-* \
2366           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2367           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2368           | -with-* | --with-* | -without-* | --without-* | --x)
2369             case "$ac_configure_args0 " in
2370               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2371             esac
2372             ;;
2373           -* ) ac_must_keep_next=true ;;
2374         esac
2375       fi
2376       as_fn_append ac_configure_args " '$ac_arg'"
2377       ;;
2378     esac
2379   done
2380 done
2381 { ac_configure_args0=; unset ac_configure_args0;}
2382 { ac_configure_args1=; unset ac_configure_args1;}
2383
2384 # When interrupted or exit'd, cleanup temporary files, and complete
2385 # config.log.  We remove comments because anyway the quotes in there
2386 # would cause problems or look ugly.
2387 # WARNING: Use '\'' to represent an apostrophe within the trap.
2388 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2389 trap 'exit_status=$?
2390   # Save into config.log some information that might help in debugging.
2391   {
2392     echo
2393
2394     cat <<\_ASBOX
2395 ## ---------------- ##
2396 ## Cache variables. ##
2397 ## ---------------- ##
2398 _ASBOX
2399     echo
2400     # The following way of writing the cache mishandles newlines in values,
2401 (
2402   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2403     eval ac_val=\$$ac_var
2404     case $ac_val in #(
2405     *${as_nl}*)
2406       case $ac_var in #(
2407       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2408 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2409       esac
2410       case $ac_var in #(
2411       _ | IFS | as_nl) ;; #(
2412       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2413       *) { eval $ac_var=; unset $ac_var;} ;;
2414       esac ;;
2415     esac
2416   done
2417   (set) 2>&1 |
2418     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2419     *${as_nl}ac_space=\ *)
2420       sed -n \
2421         "s/'\''/'\''\\\\'\'''\''/g;
2422           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2423       ;; #(
2424     *)
2425       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2426       ;;
2427     esac |
2428     sort
2429 )
2430     echo
2431
2432     cat <<\_ASBOX
2433 ## ----------------- ##
2434 ## Output variables. ##
2435 ## ----------------- ##
2436 _ASBOX
2437     echo
2438     for ac_var in $ac_subst_vars
2439     do
2440       eval ac_val=\$$ac_var
2441       case $ac_val in
2442       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2443       esac
2444       $as_echo "$ac_var='\''$ac_val'\''"
2445     done | sort
2446     echo
2447
2448     if test -n "$ac_subst_files"; then
2449       cat <<\_ASBOX
2450 ## ------------------- ##
2451 ## File substitutions. ##
2452 ## ------------------- ##
2453 _ASBOX
2454       echo
2455       for ac_var in $ac_subst_files
2456       do
2457         eval ac_val=\$$ac_var
2458         case $ac_val in
2459         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2460         esac
2461         $as_echo "$ac_var='\''$ac_val'\''"
2462       done | sort
2463       echo
2464     fi
2465
2466     if test -s confdefs.h; then
2467       cat <<\_ASBOX
2468 ## ----------- ##
2469 ## confdefs.h. ##
2470 ## ----------- ##
2471 _ASBOX
2472       echo
2473       cat confdefs.h
2474       echo
2475     fi
2476     test "$ac_signal" != 0 &&
2477       $as_echo "$as_me: caught signal $ac_signal"
2478     $as_echo "$as_me: exit $exit_status"
2479   } >&5
2480   rm -f core *.core core.conftest.* &&
2481     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2482     exit $exit_status
2483 ' 0
2484 for ac_signal in 1 2 13 15; do
2485   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2486 done
2487 ac_signal=0
2488
2489 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2490 rm -f -r conftest* confdefs.h
2491
2492 $as_echo "/* confdefs.h */" > confdefs.h
2493
2494 # Predefined preprocessor variables.
2495
2496 cat >>confdefs.h <<_ACEOF
2497 #define PACKAGE_NAME "$PACKAGE_NAME"
2498 _ACEOF
2499
2500 cat >>confdefs.h <<_ACEOF
2501 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2502 _ACEOF
2503
2504 cat >>confdefs.h <<_ACEOF
2505 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2506 _ACEOF
2507
2508 cat >>confdefs.h <<_ACEOF
2509 #define PACKAGE_STRING "$PACKAGE_STRING"
2510 _ACEOF
2511
2512 cat >>confdefs.h <<_ACEOF
2513 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2514 _ACEOF
2515
2516 cat >>confdefs.h <<_ACEOF
2517 #define PACKAGE_URL "$PACKAGE_URL"
2518 _ACEOF
2519
2520
2521 # Let the site file select an alternate cache file if it wants to.
2522 # Prefer an explicitly selected file to automatically selected ones.
2523 ac_site_file1=NONE
2524 ac_site_file2=NONE
2525 if test -n "$CONFIG_SITE"; then
2526   ac_site_file1=$CONFIG_SITE
2527 elif test "x$prefix" != xNONE; then
2528   ac_site_file1=$prefix/share/config.site
2529   ac_site_file2=$prefix/etc/config.site
2530 else
2531   ac_site_file1=$ac_default_prefix/share/config.site
2532   ac_site_file2=$ac_default_prefix/etc/config.site
2533 fi
2534 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2535 do
2536   test "x$ac_site_file" = xNONE && continue
2537   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2538     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2539 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2540     sed 's/^/| /' "$ac_site_file" >&5
2541     . "$ac_site_file"
2542   fi
2543 done
2544
2545 if test -r "$cache_file"; then
2546   # Some versions of bash will fail to source /dev/null (special files
2547   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2548   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2549     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2550 $as_echo "$as_me: loading cache $cache_file" >&6;}
2551     case $cache_file in
2552       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2553       *)                      . "./$cache_file";;
2554     esac
2555   fi
2556 else
2557   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2558 $as_echo "$as_me: creating cache $cache_file" >&6;}
2559   >$cache_file
2560 fi
2561
2562 as_fn_append ac_header_list " stdlib.h"
2563 as_fn_append ac_header_list " unistd.h"
2564 as_fn_append ac_header_list " sys/param.h"
2565 # Check that the precious variables saved in the cache have kept the same
2566 # value.
2567 ac_cache_corrupted=false
2568 for ac_var in $ac_precious_vars; do
2569   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2570   eval ac_new_set=\$ac_env_${ac_var}_set
2571   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2572   eval ac_new_val=\$ac_env_${ac_var}_value
2573   case $ac_old_set,$ac_new_set in
2574     set,)
2575       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2576 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2577       ac_cache_corrupted=: ;;
2578     ,set)
2579       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2580 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2581       ac_cache_corrupted=: ;;
2582     ,);;
2583     *)
2584       if test "x$ac_old_val" != "x$ac_new_val"; then
2585         # differences in whitespace do not lead to failure.
2586         ac_old_val_w=`echo x $ac_old_val`
2587         ac_new_val_w=`echo x $ac_new_val`
2588         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2589           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2590 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2591           ac_cache_corrupted=:
2592         else
2593           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2594 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2595           eval $ac_var=\$ac_old_val
2596         fi
2597         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2598 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2599         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2600 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2601       fi;;
2602   esac
2603   # Pass precious variables to config.status.
2604   if test "$ac_new_set" = set; then
2605     case $ac_new_val in
2606     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2607     *) ac_arg=$ac_var=$ac_new_val ;;
2608     esac
2609     case " $ac_configure_args " in
2610       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2611       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2612     esac
2613   fi
2614 done
2615 if $ac_cache_corrupted; then
2616   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2618   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2619 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2620   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2621 fi
2622 ## -------------------- ##
2623 ## Main body of script. ##
2624 ## -------------------- ##
2625
2626 ac_ext=c
2627 ac_cpp='$CPP $CPPFLAGS'
2628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2631
2632
2633
2634 ac_aux_dir=
2635 for ac_dir in config "$srcdir"/config; do
2636   for ac_t in install-sh install.sh shtool; do
2637     if test -f "$ac_dir/$ac_t"; then
2638       ac_aux_dir=$ac_dir
2639       ac_install_sh="$ac_aux_dir/$ac_t -c"
2640       break 2
2641     fi
2642   done
2643 done
2644 if test -z "$ac_aux_dir"; then
2645   as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2646 fi
2647
2648 # These three variables are undocumented and unsupported,
2649 # and are intended to be withdrawn in a future Autoconf release.
2650 # They can cause serious problems if a builder's source tree is in a directory
2651 # whose full name contains unusual characters.
2652 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2653 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2654 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2655
2656
2657 ac_config_headers="$ac_config_headers lib/config.h"
2658
2659
2660 MCONFIG=./MCONFIG
2661
2662 BINARY_TYPE=bin
2663 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2664         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2665 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2666         | tr \" " "`
2667 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2668 MONTH=`echo $DATE | awk -F- '{print $2}'`
2669 YEAR=`echo $DATE | awk -F- '{print $3}'`
2670
2671 if expr $YEAR ">" 1900 > /dev/null ; then
2672         E2FSPROGS_YEAR=$YEAR
2673 elif expr $YEAR ">" 90 >/dev/null ; then
2674         E2FSPROGS_YEAR=19$YEAR
2675 else
2676         E2FSPROGS_YEAR=20$YEAR
2677 fi
2678
2679 case $MONTH in
2680 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2681 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2682 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2683 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2684 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2685 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2686 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2687 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2688 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2689 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2690 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2691 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2692 *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2693 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2694 esac
2695
2696 base_ver=`echo $E2FSPROGS_VERSION | \
2697                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2698
2699 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2700
2701 case $E2FSPROGS_VERSION in
2702 *-WIP|pre-*)
2703         E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2704         ;;
2705 *)
2706         E2FSPROGS_PKGVER="$base_ver"
2707         ;;
2708 esac
2709
2710 unset DATE MONTH YEAR base_ver pre_vers date_spec
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2712 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2714 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2715
2716
2717
2718
2719
2720 # Make sure we can run config.sub.
2721 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2722   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2723
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2725 $as_echo_n "checking build system type... " >&6; }
2726 if test "${ac_cv_build+set}" = set; then :
2727   $as_echo_n "(cached) " >&6
2728 else
2729   ac_build_alias=$build_alias
2730 test "x$ac_build_alias" = x &&
2731   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2732 test "x$ac_build_alias" = x &&
2733   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2734 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2735   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2736
2737 fi
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2739 $as_echo "$ac_cv_build" >&6; }
2740 case $ac_cv_build in
2741 *-*-*) ;;
2742 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2743 esac
2744 build=$ac_cv_build
2745 ac_save_IFS=$IFS; IFS='-'
2746 set x $ac_cv_build
2747 shift
2748 build_cpu=$1
2749 build_vendor=$2
2750 shift; shift
2751 # Remember, the first character of IFS is used to create $*,
2752 # except with old shells:
2753 build_os=$*
2754 IFS=$ac_save_IFS
2755 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2756
2757
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2759 $as_echo_n "checking host system type... " >&6; }
2760 if test "${ac_cv_host+set}" = set; then :
2761   $as_echo_n "(cached) " >&6
2762 else
2763   if test "x$host_alias" = x; then
2764   ac_cv_host=$ac_cv_build
2765 else
2766   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2767     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2768 fi
2769
2770 fi
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2772 $as_echo "$ac_cv_host" >&6; }
2773 case $ac_cv_host in
2774 *-*-*) ;;
2775 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2776 esac
2777 host=$ac_cv_host
2778 ac_save_IFS=$IFS; IFS='-'
2779 set x $ac_cv_host
2780 shift
2781 host_cpu=$1
2782 host_vendor=$2
2783 shift; shift
2784 # Remember, the first character of IFS is used to create $*,
2785 # except with old shells:
2786 host_os=$*
2787 IFS=$ac_save_IFS
2788 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2789
2790
2791 DLOPEN_LIB=''
2792 ac_ext=c
2793 ac_cpp='$CPP $CPPFLAGS'
2794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2797 if test -n "$ac_tool_prefix"; then
2798   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2799 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801 $as_echo_n "checking for $ac_word... " >&6; }
2802 if test "${ac_cv_prog_CC+set}" = set; then :
2803   $as_echo_n "(cached) " >&6
2804 else
2805   if test -n "$CC"; then
2806   ac_cv_prog_CC="$CC" # Let the user override the test.
2807 else
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 for as_dir in $PATH
2810 do
2811   IFS=$as_save_IFS
2812   test -z "$as_dir" && as_dir=.
2813     for ac_exec_ext in '' $ac_executable_extensions; do
2814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2817     break 2
2818   fi
2819 done
2820   done
2821 IFS=$as_save_IFS
2822
2823 fi
2824 fi
2825 CC=$ac_cv_prog_CC
2826 if test -n "$CC"; then
2827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2828 $as_echo "$CC" >&6; }
2829 else
2830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831 $as_echo "no" >&6; }
2832 fi
2833
2834
2835 fi
2836 if test -z "$ac_cv_prog_CC"; then
2837   ac_ct_CC=$CC
2838   # Extract the first word of "gcc", so it can be a program name with args.
2839 set dummy gcc; ac_word=$2
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841 $as_echo_n "checking for $ac_word... " >&6; }
2842 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2843   $as_echo_n "(cached) " >&6
2844 else
2845   if test -n "$ac_ct_CC"; then
2846   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2847 else
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 for as_dir in $PATH
2850 do
2851   IFS=$as_save_IFS
2852   test -z "$as_dir" && as_dir=.
2853     for ac_exec_ext in '' $ac_executable_extensions; do
2854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2855     ac_cv_prog_ac_ct_CC="gcc"
2856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857     break 2
2858   fi
2859 done
2860   done
2861 IFS=$as_save_IFS
2862
2863 fi
2864 fi
2865 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2866 if test -n "$ac_ct_CC"; then
2867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2868 $as_echo "$ac_ct_CC" >&6; }
2869 else
2870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 $as_echo "no" >&6; }
2872 fi
2873
2874   if test "x$ac_ct_CC" = x; then
2875     CC=""
2876   else
2877     case $cross_compiling:$ac_tool_warned in
2878 yes:)
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2881 ac_tool_warned=yes ;;
2882 esac
2883     CC=$ac_ct_CC
2884   fi
2885 else
2886   CC="$ac_cv_prog_CC"
2887 fi
2888
2889 if test -z "$CC"; then
2890           if test -n "$ac_tool_prefix"; then
2891     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2892 set dummy ${ac_tool_prefix}cc; ac_word=$2
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894 $as_echo_n "checking for $ac_word... " >&6; }
2895 if test "${ac_cv_prog_CC+set}" = set; then :
2896   $as_echo_n "(cached) " >&6
2897 else
2898   if test -n "$CC"; then
2899   ac_cv_prog_CC="$CC" # Let the user override the test.
2900 else
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 for as_dir in $PATH
2903 do
2904   IFS=$as_save_IFS
2905   test -z "$as_dir" && as_dir=.
2906     for ac_exec_ext in '' $ac_executable_extensions; do
2907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2908     ac_cv_prog_CC="${ac_tool_prefix}cc"
2909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2910     break 2
2911   fi
2912 done
2913   done
2914 IFS=$as_save_IFS
2915
2916 fi
2917 fi
2918 CC=$ac_cv_prog_CC
2919 if test -n "$CC"; then
2920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2921 $as_echo "$CC" >&6; }
2922 else
2923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924 $as_echo "no" >&6; }
2925 fi
2926
2927
2928   fi
2929 fi
2930 if test -z "$CC"; then
2931   # Extract the first word of "cc", so it can be a program name with args.
2932 set dummy cc; ac_word=$2
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if test "${ac_cv_prog_CC+set}" = set; then :
2936   $as_echo_n "(cached) " >&6
2937 else
2938   if test -n "$CC"; then
2939   ac_cv_prog_CC="$CC" # Let the user override the test.
2940 else
2941   ac_prog_rejected=no
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2944 do
2945   IFS=$as_save_IFS
2946   test -z "$as_dir" && as_dir=.
2947     for ac_exec_ext in '' $ac_executable_extensions; do
2948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2950        ac_prog_rejected=yes
2951        continue
2952      fi
2953     ac_cv_prog_CC="cc"
2954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2955     break 2
2956   fi
2957 done
2958   done
2959 IFS=$as_save_IFS
2960
2961 if test $ac_prog_rejected = yes; then
2962   # We found a bogon in the path, so make sure we never use it.
2963   set dummy $ac_cv_prog_CC
2964   shift
2965   if test $# != 0; then
2966     # We chose a different compiler from the bogus one.
2967     # However, it has the same basename, so the bogon will be chosen
2968     # first if we set CC to just the basename; use the full file name.
2969     shift
2970     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2971   fi
2972 fi
2973 fi
2974 fi
2975 CC=$ac_cv_prog_CC
2976 if test -n "$CC"; then
2977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2978 $as_echo "$CC" >&6; }
2979 else
2980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2982 fi
2983
2984
2985 fi
2986 if test -z "$CC"; then
2987   if test -n "$ac_tool_prefix"; then
2988   for ac_prog in cl.exe
2989   do
2990     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2991 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993 $as_echo_n "checking for $ac_word... " >&6; }
2994 if test "${ac_cv_prog_CC+set}" = set; then :
2995   $as_echo_n "(cached) " >&6
2996 else
2997   if test -n "$CC"; then
2998   ac_cv_prog_CC="$CC" # Let the user override the test.
2999 else
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 for as_dir in $PATH
3002 do
3003   IFS=$as_save_IFS
3004   test -z "$as_dir" && as_dir=.
3005     for ac_exec_ext in '' $ac_executable_extensions; do
3006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3007     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009     break 2
3010   fi
3011 done
3012   done
3013 IFS=$as_save_IFS
3014
3015 fi
3016 fi
3017 CC=$ac_cv_prog_CC
3018 if test -n "$CC"; then
3019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3020 $as_echo "$CC" >&6; }
3021 else
3022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 $as_echo "no" >&6; }
3024 fi
3025
3026
3027     test -n "$CC" && break
3028   done
3029 fi
3030 if test -z "$CC"; then
3031   ac_ct_CC=$CC
3032   for ac_prog in cl.exe
3033 do
3034   # Extract the first word of "$ac_prog", so it can be a program name with args.
3035 set dummy $ac_prog; ac_word=$2
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037 $as_echo_n "checking for $ac_word... " >&6; }
3038 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3039   $as_echo_n "(cached) " >&6
3040 else
3041   if test -n "$ac_ct_CC"; then
3042   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3043 else
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 for as_dir in $PATH
3046 do
3047   IFS=$as_save_IFS
3048   test -z "$as_dir" && as_dir=.
3049     for ac_exec_ext in '' $ac_executable_extensions; do
3050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3051     ac_cv_prog_ac_ct_CC="$ac_prog"
3052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053     break 2
3054   fi
3055 done
3056   done
3057 IFS=$as_save_IFS
3058
3059 fi
3060 fi
3061 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3062 if test -n "$ac_ct_CC"; then
3063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3064 $as_echo "$ac_ct_CC" >&6; }
3065 else
3066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 $as_echo "no" >&6; }
3068 fi
3069
3070
3071   test -n "$ac_ct_CC" && break
3072 done
3073
3074   if test "x$ac_ct_CC" = x; then
3075     CC=""
3076   else
3077     case $cross_compiling:$ac_tool_warned in
3078 yes:)
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3081 ac_tool_warned=yes ;;
3082 esac
3083     CC=$ac_ct_CC
3084   fi
3085 fi
3086
3087 fi
3088
3089
3090 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3092 as_fn_error "no acceptable C compiler found in \$PATH
3093 See \`config.log' for more details." "$LINENO" 5; }
3094
3095 # Provide some information about the compiler.
3096 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3097 set X $ac_compile
3098 ac_compiler=$2
3099 for ac_option in --version -v -V -qversion; do
3100   { { ac_try="$ac_compiler $ac_option >&5"
3101 case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3106 $as_echo "$ac_try_echo"; } >&5
3107   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3108   ac_status=$?
3109   if test -s conftest.err; then
3110     sed '10a\
3111 ... rest of stderr output deleted ...
3112          10q' conftest.err >conftest.er1
3113     cat conftest.er1 >&5
3114   fi
3115   rm -f conftest.er1 conftest.err
3116   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3117   test $ac_status = 0; }
3118 done
3119
3120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3121 /* end confdefs.h.  */
3122
3123 int
3124 main ()
3125 {
3126
3127   ;
3128   return 0;
3129 }
3130 _ACEOF
3131 ac_clean_files_save=$ac_clean_files
3132 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3133 # Try to create an executable without -o first, disregard a.out.
3134 # It will help us diagnose broken compilers, and finding out an intuition
3135 # of exeext.
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3137 $as_echo_n "checking whether the C compiler works... " >&6; }
3138 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3139
3140 # The possible output files:
3141 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3142
3143 ac_rmfiles=
3144 for ac_file in $ac_files
3145 do
3146   case $ac_file in
3147     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3148     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3149   esac
3150 done
3151 rm -f $ac_rmfiles
3152
3153 if { { ac_try="$ac_link_default"
3154 case "(($ac_try" in
3155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156   *) ac_try_echo=$ac_try;;
3157 esac
3158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3159 $as_echo "$ac_try_echo"; } >&5
3160   (eval "$ac_link_default") 2>&5
3161   ac_status=$?
3162   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3163   test $ac_status = 0; }; then :
3164   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3165 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3166 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3167 # so that the user can short-circuit this test for compilers unknown to
3168 # Autoconf.
3169 for ac_file in $ac_files ''
3170 do
3171   test -f "$ac_file" || continue
3172   case $ac_file in
3173     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3174         ;;
3175     [ab].out )
3176         # We found the default executable, but exeext='' is most
3177         # certainly right.
3178         break;;
3179     *.* )
3180         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3181         then :; else
3182            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3183         fi
3184         # We set ac_cv_exeext here because the later test for it is not
3185         # safe: cross compilers may not add the suffix if given an `-o'
3186         # argument, so we may need to know it at that point already.
3187         # Even if this section looks crufty: it has the advantage of
3188         # actually working.
3189         break;;
3190     * )
3191         break;;
3192   esac
3193 done
3194 test "$ac_cv_exeext" = no && ac_cv_exeext=
3195
3196 else
3197   ac_file=''
3198 fi
3199 if test -z "$ac_file"; then :
3200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3202 $as_echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3204
3205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3207 { as_fn_set_status 77
3208 as_fn_error "C compiler cannot create executables
3209 See \`config.log' for more details." "$LINENO" 5; }; }
3210 else
3211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3212 $as_echo "yes" >&6; }
3213 fi
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3215 $as_echo_n "checking for C compiler default output file name... " >&6; }
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3217 $as_echo "$ac_file" >&6; }
3218 ac_exeext=$ac_cv_exeext
3219
3220 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3221 ac_clean_files=$ac_clean_files_save
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3223 $as_echo_n "checking for suffix of executables... " >&6; }
3224 if { { ac_try="$ac_link"
3225 case "(($ac_try" in
3226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227   *) ac_try_echo=$ac_try;;
3228 esac
3229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230 $as_echo "$ac_try_echo"; } >&5
3231   (eval "$ac_link") 2>&5
3232   ac_status=$?
3233   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234   test $ac_status = 0; }; then :
3235   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3236 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3237 # work properly (i.e., refer to `conftest.exe'), while it won't with
3238 # `rm'.
3239 for ac_file in conftest.exe conftest conftest.*; do
3240   test -f "$ac_file" || continue
3241   case $ac_file in
3242     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3243     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3244           break;;
3245     * ) break;;
3246   esac
3247 done
3248 else
3249   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3251 as_fn_error "cannot compute suffix of executables: cannot compile and link
3252 See \`config.log' for more details." "$LINENO" 5; }
3253 fi
3254 rm -f conftest conftest$ac_cv_exeext
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3256 $as_echo "$ac_cv_exeext" >&6; }
3257
3258 rm -f conftest.$ac_ext
3259 EXEEXT=$ac_cv_exeext
3260 ac_exeext=$EXEEXT
3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h.  */
3263 #include <stdio.h>
3264 int
3265 main ()
3266 {
3267 FILE *f = fopen ("conftest.out", "w");
3268  return ferror (f) || fclose (f) != 0;
3269
3270   ;
3271   return 0;
3272 }
3273 _ACEOF
3274 ac_clean_files="$ac_clean_files conftest.out"
3275 # Check that the compiler produces executables we can run.  If not, either
3276 # the compiler is broken, or we cross compile.
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3278 $as_echo_n "checking whether we are cross compiling... " >&6; }
3279 if test "$cross_compiling" != yes; then
3280   { { ac_try="$ac_link"
3281 case "(($ac_try" in
3282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283   *) ac_try_echo=$ac_try;;
3284 esac
3285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286 $as_echo "$ac_try_echo"; } >&5
3287   (eval "$ac_link") 2>&5
3288   ac_status=$?
3289   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290   test $ac_status = 0; }
3291   if { ac_try='./conftest$ac_cv_exeext'
3292   { { case "(($ac_try" in
3293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294   *) ac_try_echo=$ac_try;;
3295 esac
3296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3297 $as_echo "$ac_try_echo"; } >&5
3298   (eval "$ac_try") 2>&5
3299   ac_status=$?
3300   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3301   test $ac_status = 0; }; }; then
3302     cross_compiling=no
3303   else
3304     if test "$cross_compiling" = maybe; then
3305         cross_compiling=yes
3306     else
3307         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3309 as_fn_error "cannot run C compiled programs.
3310 If you meant to cross compile, use \`--host'.
3311 See \`config.log' for more details." "$LINENO" 5; }
3312     fi
3313   fi
3314 fi
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3316 $as_echo "$cross_compiling" >&6; }
3317
3318 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3319 ac_clean_files=$ac_clean_files_save
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3321 $as_echo_n "checking for suffix of object files... " >&6; }
3322 if test "${ac_cv_objext+set}" = set; then :
3323   $as_echo_n "(cached) " >&6
3324 else
3325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326 /* end confdefs.h.  */
3327
3328 int
3329 main ()
3330 {
3331
3332   ;
3333   return 0;
3334 }
3335 _ACEOF
3336 rm -f conftest.o conftest.obj
3337 if { { ac_try="$ac_compile"
3338 case "(($ac_try" in
3339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340   *) ac_try_echo=$ac_try;;
3341 esac
3342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3343 $as_echo "$ac_try_echo"; } >&5
3344   (eval "$ac_compile") 2>&5
3345   ac_status=$?
3346   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3347   test $ac_status = 0; }; then :
3348   for ac_file in conftest.o conftest.obj conftest.*; do
3349   test -f "$ac_file" || continue;
3350   case $ac_file in
3351     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3352     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3353        break;;
3354   esac
3355 done
3356 else
3357   $as_echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3359
3360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3362 as_fn_error "cannot compute suffix of object files: cannot compile
3363 See \`config.log' for more details." "$LINENO" 5; }
3364 fi
3365 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3366 fi
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3368 $as_echo "$ac_cv_objext" >&6; }
3369 OBJEXT=$ac_cv_objext
3370 ac_objext=$OBJEXT
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3372 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3373 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3374   $as_echo_n "(cached) " >&6
3375 else
3376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h.  */
3378
3379 int
3380 main ()
3381 {
3382 #ifndef __GNUC__
3383        choke me
3384 #endif
3385
3386   ;
3387   return 0;
3388 }
3389 _ACEOF
3390 if ac_fn_c_try_compile "$LINENO"; then :
3391   ac_compiler_gnu=yes
3392 else
3393   ac_compiler_gnu=no
3394 fi
3395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3397
3398 fi
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3400 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3401 if test $ac_compiler_gnu = yes; then
3402   GCC=yes
3403 else
3404   GCC=
3405 fi
3406 ac_test_CFLAGS=${CFLAGS+set}
3407 ac_save_CFLAGS=$CFLAGS
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3409 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3410 if test "${ac_cv_prog_cc_g+set}" = set; then :
3411   $as_echo_n "(cached) " >&6
3412 else
3413   ac_save_c_werror_flag=$ac_c_werror_flag
3414    ac_c_werror_flag=yes
3415    ac_cv_prog_cc_g=no
3416    CFLAGS="-g"
3417    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h.  */
3419
3420 int
3421 main ()
3422 {
3423
3424   ;
3425   return 0;
3426 }
3427 _ACEOF
3428 if ac_fn_c_try_compile "$LINENO"; then :
3429   ac_cv_prog_cc_g=yes
3430 else
3431   CFLAGS=""
3432       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h.  */
3434
3435 int
3436 main ()
3437 {
3438
3439   ;
3440   return 0;
3441 }
3442 _ACEOF
3443 if ac_fn_c_try_compile "$LINENO"; then :
3444
3445 else
3446   ac_c_werror_flag=$ac_save_c_werror_flag
3447          CFLAGS="-g"
3448          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h.  */
3450
3451 int
3452 main ()
3453 {
3454
3455   ;
3456   return 0;
3457 }
3458 _ACEOF
3459 if ac_fn_c_try_compile "$LINENO"; then :
3460   ac_cv_prog_cc_g=yes
3461 fi
3462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3463 fi
3464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3465 fi
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467    ac_c_werror_flag=$ac_save_c_werror_flag
3468 fi
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3470 $as_echo "$ac_cv_prog_cc_g" >&6; }
3471 if test "$ac_test_CFLAGS" = set; then
3472   CFLAGS=$ac_save_CFLAGS
3473 elif test $ac_cv_prog_cc_g = yes; then
3474   if test "$GCC" = yes; then
3475     CFLAGS="-g -O2"
3476   else
3477     CFLAGS="-g"
3478   fi
3479 else
3480   if test "$GCC" = yes; then
3481     CFLAGS="-O2"
3482   else
3483     CFLAGS=
3484   fi
3485 fi
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3487 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3488 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3489   $as_echo_n "(cached) " >&6
3490 else
3491   ac_cv_prog_cc_c89=no
3492 ac_save_CC=$CC
3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h.  */
3495 #include <stdarg.h>
3496 #include <stdio.h>
3497 #include <sys/types.h>
3498 #include <sys/stat.h>
3499 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3500 struct buf { int x; };
3501 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3502 static char *e (p, i)
3503      char **p;
3504      int i;
3505 {
3506   return p[i];
3507 }
3508 static char *f (char * (*g) (char **, int), char **p, ...)
3509 {
3510   char *s;
3511   va_list v;
3512   va_start (v,p);
3513   s = g (p, va_arg (v,int));
3514   va_end (v);
3515   return s;
3516 }
3517
3518 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3519    function prototypes and stuff, but not '\xHH' hex character constants.
3520    These don't provoke an error unfortunately, instead are silently treated
3521    as 'x'.  The following induces an error, until -std is added to get
3522    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3523    array size at least.  It's necessary to write '\x00'==0 to get something
3524    that's true only with -std.  */
3525 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3526
3527 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3528    inside strings and character constants.  */
3529 #define FOO(x) 'x'
3530 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3531
3532 int test (int i, double x);
3533 struct s1 {int (*f) (int a);};
3534 struct s2 {int (*f) (double a);};
3535 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3536 int argc;
3537 char **argv;
3538 int
3539 main ()
3540 {
3541 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3542   ;
3543   return 0;
3544 }
3545 _ACEOF
3546 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3547         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3548 do
3549   CC="$ac_save_CC $ac_arg"
3550   if ac_fn_c_try_compile "$LINENO"; then :
3551   ac_cv_prog_cc_c89=$ac_arg
3552 fi
3553 rm -f core conftest.err conftest.$ac_objext
3554   test "x$ac_cv_prog_cc_c89" != "xno" && break
3555 done
3556 rm -f conftest.$ac_ext
3557 CC=$ac_save_CC
3558
3559 fi
3560 # AC_CACHE_VAL
3561 case "x$ac_cv_prog_cc_c89" in
3562   x)
3563     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3564 $as_echo "none needed" >&6; } ;;
3565   xno)
3566     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3567 $as_echo "unsupported" >&6; } ;;
3568   *)
3569     CC="$CC $ac_cv_prog_cc_c89"
3570     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3571 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3572 esac
3573 if test "x$ac_cv_prog_cc_c89" != xno; then :
3574
3575 fi
3576
3577 ac_ext=c
3578 ac_cpp='$CPP $CPPFLAGS'
3579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3582
3583
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3585 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3586 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
3587   $as_echo_n "(cached) " >&6
3588 else
3589   ac_check_lib_save_LIBS=$LIBS
3590 LIBS="-ldl  $LIBS"
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h.  */
3593
3594 /* Override any GCC internal prototype to avoid an error.
3595    Use char because int might match the return type of a GCC
3596    builtin and then its argument prototype would still apply.  */
3597 #ifdef __cplusplus
3598 extern "C"
3599 #endif
3600 char dlopen ();
3601 int
3602 main ()
3603 {
3604 return dlopen ();
3605   ;
3606   return 0;
3607 }
3608 _ACEOF
3609 if ac_fn_c_try_link "$LINENO"; then :
3610   ac_cv_lib_dl_dlopen=yes
3611 else
3612   ac_cv_lib_dl_dlopen=no
3613 fi
3614 rm -f core conftest.err conftest.$ac_objext \
3615     conftest$ac_exeext conftest.$ac_ext
3616 LIBS=$ac_check_lib_save_LIBS
3617 fi
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3619 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3620 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
3621   DLOPEN_LIB=-ldl
3622
3623 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3624
3625 fi
3626
3627
3628 WITH_DIET_LIBC=
3629
3630 # Check whether --with-diet-libc was given.
3631 if test "${with_diet_libc+set}" = set; then :
3632   withval=$with_diet_libc; CC="diet cc -nostdinc"
3633 WITH_DIET_LIBC=yes
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3635 $as_echo "CC=$CC" >&6; }
3636 fi
3637
3638 # Check whether --with-cc was given.
3639 if test "${with_cc+set}" = set; then :
3640   withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3641 fi
3642
3643
3644 # Check whether --with-ccopts was given.
3645 if test "${with_ccopts+set}" = set; then :
3646   withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3647 fi
3648
3649
3650 # Check whether --with-ldopts was given.
3651 if test "${with_ldopts+set}" = set; then :
3652   withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3653 fi
3654
3655 ac_ext=c
3656 ac_cpp='$CPP $CPPFLAGS'
3657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3660 if test -n "$ac_tool_prefix"; then
3661   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3662 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3664 $as_echo_n "checking for $ac_word... " >&6; }
3665 if test "${ac_cv_prog_CC+set}" = set; then :
3666   $as_echo_n "(cached) " >&6
3667 else
3668   if test -n "$CC"; then
3669   ac_cv_prog_CC="$CC" # Let the user override the test.
3670 else
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 for as_dir in $PATH
3673 do
3674   IFS=$as_save_IFS
3675   test -z "$as_dir" && as_dir=.
3676     for ac_exec_ext in '' $ac_executable_extensions; do
3677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3678     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3680     break 2
3681   fi
3682 done
3683   done
3684 IFS=$as_save_IFS
3685
3686 fi
3687 fi
3688 CC=$ac_cv_prog_CC
3689 if test -n "$CC"; then
3690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3691 $as_echo "$CC" >&6; }
3692 else
3693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694 $as_echo "no" >&6; }
3695 fi
3696
3697
3698 fi
3699 if test -z "$ac_cv_prog_CC"; then
3700   ac_ct_CC=$CC
3701   # Extract the first word of "gcc", so it can be a program name with args.
3702 set dummy gcc; ac_word=$2
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704 $as_echo_n "checking for $ac_word... " >&6; }
3705 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3706   $as_echo_n "(cached) " >&6
3707 else
3708   if test -n "$ac_ct_CC"; then
3709   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3710 else
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH
3713 do
3714   IFS=$as_save_IFS
3715   test -z "$as_dir" && as_dir=.
3716     for ac_exec_ext in '' $ac_executable_extensions; do
3717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3718     ac_cv_prog_ac_ct_CC="gcc"
3719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3720     break 2
3721   fi
3722 done
3723   done
3724 IFS=$as_save_IFS
3725
3726 fi
3727 fi
3728 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3729 if test -n "$ac_ct_CC"; then
3730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3731 $as_echo "$ac_ct_CC" >&6; }
3732 else
3733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 $as_echo "no" >&6; }
3735 fi
3736
3737   if test "x$ac_ct_CC" = x; then
3738     CC=""
3739   else
3740     case $cross_compiling:$ac_tool_warned in
3741 yes:)
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3744 ac_tool_warned=yes ;;
3745 esac
3746     CC=$ac_ct_CC
3747   fi
3748 else
3749   CC="$ac_cv_prog_CC"
3750 fi
3751
3752 if test -z "$CC"; then
3753           if test -n "$ac_tool_prefix"; then
3754     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3755 set dummy ${ac_tool_prefix}cc; ac_word=$2
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if test "${ac_cv_prog_CC+set}" = set; then :
3759   $as_echo_n "(cached) " >&6
3760 else
3761   if test -n "$CC"; then
3762   ac_cv_prog_CC="$CC" # Let the user override the test.
3763 else
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH
3766 do
3767   IFS=$as_save_IFS
3768   test -z "$as_dir" && as_dir=.
3769     for ac_exec_ext in '' $ac_executable_extensions; do
3770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771     ac_cv_prog_CC="${ac_tool_prefix}cc"
3772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773     break 2
3774   fi
3775 done
3776   done
3777 IFS=$as_save_IFS
3778
3779 fi
3780 fi
3781 CC=$ac_cv_prog_CC
3782 if test -n "$CC"; then
3783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3784 $as_echo "$CC" >&6; }
3785 else
3786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3788 fi
3789
3790
3791   fi
3792 fi
3793 if test -z "$CC"; then
3794   # Extract the first word of "cc", so it can be a program name with args.
3795 set dummy cc; ac_word=$2
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if test "${ac_cv_prog_CC+set}" = set; then :
3799   $as_echo_n "(cached) " >&6
3800 else
3801   if test -n "$CC"; then
3802   ac_cv_prog_CC="$CC" # Let the user override the test.
3803 else
3804   ac_prog_rejected=no
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3807 do
3808   IFS=$as_save_IFS
3809   test -z "$as_dir" && as_dir=.
3810     for ac_exec_ext in '' $ac_executable_extensions; do
3811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3812     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3813        ac_prog_rejected=yes
3814        continue
3815      fi
3816     ac_cv_prog_CC="cc"
3817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3818     break 2
3819   fi
3820 done
3821   done
3822 IFS=$as_save_IFS
3823
3824 if test $ac_prog_rejected = yes; then
3825   # We found a bogon in the path, so make sure we never use it.
3826   set dummy $ac_cv_prog_CC
3827   shift
3828   if test $# != 0; then
3829     # We chose a different compiler from the bogus one.
3830     # However, it has the same basename, so the bogon will be chosen
3831     # first if we set CC to just the basename; use the full file name.
3832     shift
3833     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3834   fi
3835 fi
3836 fi
3837 fi
3838 CC=$ac_cv_prog_CC
3839 if test -n "$CC"; then
3840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3841 $as_echo "$CC" >&6; }
3842 else
3843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844 $as_echo "no" >&6; }
3845 fi
3846
3847
3848 fi
3849 if test -z "$CC"; then
3850   if test -n "$ac_tool_prefix"; then
3851   for ac_prog in cl.exe
3852   do
3853     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3856 $as_echo_n "checking for $ac_word... " >&6; }
3857 if test "${ac_cv_prog_CC+set}" = set; then :
3858   $as_echo_n "(cached) " >&6
3859 else
3860   if test -n "$CC"; then
3861   ac_cv_prog_CC="$CC" # Let the user override the test.
3862 else
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 for as_dir in $PATH
3865 do
3866   IFS=$as_save_IFS
3867   test -z "$as_dir" && as_dir=.
3868     for ac_exec_ext in '' $ac_executable_extensions; do
3869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3870     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3872     break 2
3873   fi
3874 done
3875   done
3876 IFS=$as_save_IFS
3877
3878 fi
3879 fi
3880 CC=$ac_cv_prog_CC
3881 if test -n "$CC"; then
3882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3883 $as_echo "$CC" >&6; }
3884 else
3885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 $as_echo "no" >&6; }
3887 fi
3888
3889
3890     test -n "$CC" && break
3891   done
3892 fi
3893 if test -z "$CC"; then
3894   ac_ct_CC=$CC
3895   for ac_prog in cl.exe
3896 do
3897   # Extract the first word of "$ac_prog", so it can be a program name with args.
3898 set dummy $ac_prog; ac_word=$2
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3900 $as_echo_n "checking for $ac_word... " >&6; }
3901 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3902   $as_echo_n "(cached) " >&6
3903 else
3904   if test -n "$ac_ct_CC"; then
3905   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3906 else
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 for as_dir in $PATH
3909 do
3910   IFS=$as_save_IFS
3911   test -z "$as_dir" && as_dir=.
3912     for ac_exec_ext in '' $ac_executable_extensions; do
3913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3914     ac_cv_prog_ac_ct_CC="$ac_prog"
3915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3916     break 2
3917   fi
3918 done
3919   done
3920 IFS=$as_save_IFS
3921
3922 fi
3923 fi
3924 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3925 if test -n "$ac_ct_CC"; then
3926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3927 $as_echo "$ac_ct_CC" >&6; }
3928 else
3929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930 $as_echo "no" >&6; }
3931 fi
3932
3933
3934   test -n "$ac_ct_CC" && break
3935 done
3936
3937   if test "x$ac_ct_CC" = x; then
3938     CC=""
3939   else
3940     case $cross_compiling:$ac_tool_warned in
3941 yes:)
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3944 ac_tool_warned=yes ;;
3945 esac
3946     CC=$ac_ct_CC
3947   fi
3948 fi
3949
3950 fi
3951
3952
3953 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3955 as_fn_error "no acceptable C compiler found in \$PATH
3956 See \`config.log' for more details." "$LINENO" 5; }
3957
3958 # Provide some information about the compiler.
3959 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3960 set X $ac_compile
3961 ac_compiler=$2
3962 for ac_option in --version -v -V -qversion; do
3963   { { ac_try="$ac_compiler $ac_option >&5"
3964 case "(($ac_try" in
3965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966   *) ac_try_echo=$ac_try;;
3967 esac
3968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969 $as_echo "$ac_try_echo"; } >&5
3970   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3971   ac_status=$?
3972   if test -s conftest.err; then
3973     sed '10a\
3974 ... rest of stderr output deleted ...
3975          10q' conftest.err >conftest.er1
3976     cat conftest.er1 >&5
3977   fi
3978   rm -f conftest.er1 conftest.err
3979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3980   test $ac_status = 0; }
3981 done
3982
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3984 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3985 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3986   $as_echo_n "(cached) " >&6
3987 else
3988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h.  */
3990
3991 int
3992 main ()
3993 {
3994 #ifndef __GNUC__
3995        choke me
3996 #endif
3997
3998   ;
3999   return 0;
4000 }
4001 _ACEOF
4002 if ac_fn_c_try_compile "$LINENO"; then :
4003   ac_compiler_gnu=yes
4004 else
4005   ac_compiler_gnu=no
4006 fi
4007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4008 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4009
4010 fi
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4012 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4013 if test $ac_compiler_gnu = yes; then
4014   GCC=yes
4015 else
4016   GCC=
4017 fi
4018 ac_test_CFLAGS=${CFLAGS+set}
4019 ac_save_CFLAGS=$CFLAGS
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4021 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4022 if test "${ac_cv_prog_cc_g+set}" = set; then :
4023   $as_echo_n "(cached) " >&6
4024 else
4025   ac_save_c_werror_flag=$ac_c_werror_flag
4026    ac_c_werror_flag=yes
4027    ac_cv_prog_cc_g=no
4028    CFLAGS="-g"
4029    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h.  */
4031
4032 int
4033 main ()
4034 {
4035
4036   ;
4037   return 0;
4038 }
4039 _ACEOF
4040 if ac_fn_c_try_compile "$LINENO"; then :
4041   ac_cv_prog_cc_g=yes
4042 else
4043   CFLAGS=""
4044       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h.  */
4046
4047 int
4048 main ()
4049 {
4050
4051   ;
4052   return 0;
4053 }
4054 _ACEOF
4055 if ac_fn_c_try_compile "$LINENO"; then :
4056
4057 else
4058   ac_c_werror_flag=$ac_save_c_werror_flag
4059          CFLAGS="-g"
4060          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h.  */
4062
4063 int
4064 main ()
4065 {
4066
4067   ;
4068   return 0;
4069 }
4070 _ACEOF
4071 if ac_fn_c_try_compile "$LINENO"; then :
4072   ac_cv_prog_cc_g=yes
4073 fi
4074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 fi
4076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4077 fi
4078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4079    ac_c_werror_flag=$ac_save_c_werror_flag
4080 fi
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4082 $as_echo "$ac_cv_prog_cc_g" >&6; }
4083 if test "$ac_test_CFLAGS" = set; then
4084   CFLAGS=$ac_save_CFLAGS
4085 elif test $ac_cv_prog_cc_g = yes; then
4086   if test "$GCC" = yes; then
4087     CFLAGS="-g -O2"
4088   else
4089     CFLAGS="-g"
4090   fi
4091 else
4092   if test "$GCC" = yes; then
4093     CFLAGS="-O2"
4094   else
4095     CFLAGS=
4096   fi
4097 fi
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4099 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4100 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4101   $as_echo_n "(cached) " >&6
4102 else
4103   ac_cv_prog_cc_c89=no
4104 ac_save_CC=$CC
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h.  */
4107 #include <stdarg.h>
4108 #include <stdio.h>
4109 #include <sys/types.h>
4110 #include <sys/stat.h>
4111 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4112 struct buf { int x; };
4113 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4114 static char *e (p, i)
4115      char **p;
4116      int i;
4117 {
4118   return p[i];
4119 }
4120 static char *f (char * (*g) (char **, int), char **p, ...)
4121 {
4122   char *s;
4123   va_list v;
4124   va_start (v,p);
4125   s = g (p, va_arg (v,int));
4126   va_end (v);
4127   return s;
4128 }
4129
4130 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4131    function prototypes and stuff, but not '\xHH' hex character constants.
4132    These don't provoke an error unfortunately, instead are silently treated
4133    as 'x'.  The following induces an error, until -std is added to get
4134    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4135    array size at least.  It's necessary to write '\x00'==0 to get something
4136    that's true only with -std.  */
4137 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4138
4139 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4140    inside strings and character constants.  */
4141 #define FOO(x) 'x'
4142 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4143
4144 int test (int i, double x);
4145 struct s1 {int (*f) (int a);};
4146 struct s2 {int (*f) (double a);};
4147 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4148 int argc;
4149 char **argv;
4150 int
4151 main ()
4152 {
4153 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4154   ;
4155   return 0;
4156 }
4157 _ACEOF
4158 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4159         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4160 do
4161   CC="$ac_save_CC $ac_arg"
4162   if ac_fn_c_try_compile "$LINENO"; then :
4163   ac_cv_prog_cc_c89=$ac_arg
4164 fi
4165 rm -f core conftest.err conftest.$ac_objext
4166   test "x$ac_cv_prog_cc_c89" != "xno" && break
4167 done
4168 rm -f conftest.$ac_ext
4169 CC=$ac_save_CC
4170
4171 fi
4172 # AC_CACHE_VAL
4173 case "x$ac_cv_prog_cc_c89" in
4174   x)
4175     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4176 $as_echo "none needed" >&6; } ;;
4177   xno)
4178     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4179 $as_echo "unsupported" >&6; } ;;
4180   *)
4181     CC="$CC $ac_cv_prog_cc_c89"
4182     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4183 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4184 esac
4185 if test "x$ac_cv_prog_cc_c89" != xno; then :
4186
4187 fi
4188
4189 ac_ext=c
4190 ac_cpp='$CPP $CPPFLAGS'
4191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194
4195 if test "$GCC" = yes; then
4196    RDYNAMIC="-rdynamic"
4197
4198 fi
4199 ac_ext=c
4200 ac_cpp='$CPP $CPPFLAGS'
4201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4205 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4206 # On Suns, sometimes $CPP names a directory.
4207 if test -n "$CPP" && test -d "$CPP"; then
4208   CPP=
4209 fi
4210 if test -z "$CPP"; then
4211   if test "${ac_cv_prog_CPP+set}" = set; then :
4212   $as_echo_n "(cached) " >&6
4213 else
4214       # Double quotes because CPP needs to be expanded
4215     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4216     do
4217       ac_preproc_ok=false
4218 for ac_c_preproc_warn_flag in '' yes
4219 do
4220   # Use a header file that comes with gcc, so configuring glibc
4221   # with a fresh cross-compiler works.
4222   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4223   # <limits.h> exists even on freestanding compilers.
4224   # On the NeXT, cc -E runs the code through the compiler's parser,
4225   # not just through cpp. "Syntax error" is here to catch this case.
4226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h.  */
4228 #ifdef __STDC__
4229 # include <limits.h>
4230 #else
4231 # include <assert.h>
4232 #endif
4233                      Syntax error
4234 _ACEOF
4235 if ac_fn_c_try_cpp "$LINENO"; then :
4236
4237 else
4238   # Broken: fails on valid input.
4239 continue
4240 fi
4241 rm -f conftest.err conftest.$ac_ext
4242
4243   # OK, works on sane cases.  Now check whether nonexistent headers
4244   # can be detected and how.
4245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h.  */
4247 #include <ac_nonexistent.h>
4248 _ACEOF
4249 if ac_fn_c_try_cpp "$LINENO"; then :
4250   # Broken: success on invalid input.
4251 continue
4252 else
4253   # Passes both tests.
4254 ac_preproc_ok=:
4255 break
4256 fi
4257 rm -f conftest.err conftest.$ac_ext
4258
4259 done
4260 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4261 rm -f conftest.err conftest.$ac_ext
4262 if $ac_preproc_ok; then :
4263   break
4264 fi
4265
4266     done
4267     ac_cv_prog_CPP=$CPP
4268
4269 fi
4270   CPP=$ac_cv_prog_CPP
4271 else
4272   ac_cv_prog_CPP=$CPP
4273 fi
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4275 $as_echo "$CPP" >&6; }
4276 ac_preproc_ok=false
4277 for ac_c_preproc_warn_flag in '' yes
4278 do
4279   # Use a header file that comes with gcc, so configuring glibc
4280   # with a fresh cross-compiler works.
4281   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4282   # <limits.h> exists even on freestanding compilers.
4283   # On the NeXT, cc -E runs the code through the compiler's parser,
4284   # not just through cpp. "Syntax error" is here to catch this case.
4285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h.  */
4287 #ifdef __STDC__
4288 # include <limits.h>
4289 #else
4290 # include <assert.h>
4291 #endif
4292                      Syntax error
4293 _ACEOF
4294 if ac_fn_c_try_cpp "$LINENO"; then :
4295
4296 else
4297   # Broken: fails on valid input.
4298 continue
4299 fi
4300 rm -f conftest.err conftest.$ac_ext
4301
4302   # OK, works on sane cases.  Now check whether nonexistent headers
4303   # can be detected and how.
4304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h.  */
4306 #include <ac_nonexistent.h>
4307 _ACEOF
4308 if ac_fn_c_try_cpp "$LINENO"; then :
4309   # Broken: success on invalid input.
4310 continue
4311 else
4312   # Passes both tests.
4313 ac_preproc_ok=:
4314 break
4315 fi
4316 rm -f conftest.err conftest.$ac_ext
4317
4318 done
4319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4320 rm -f conftest.err conftest.$ac_ext
4321 if $ac_preproc_ok; then :
4322
4323 else
4324   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4326 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4327 See \`config.log' for more details." "$LINENO" 5; }
4328 fi
4329
4330 ac_ext=c
4331 ac_cpp='$CPP $CPPFLAGS'
4332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4335
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4337 $as_echo_n "checking for additional special compiler flags... " >&6; }
4338 if test "$GCC" = yes
4339 then
4340     case "$host_cpu" in
4341         alpha)          addcflags="-mieee" ;;
4342     esac
4343 fi
4344 if test "x$addcflags" != x
4345 then
4346     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4347 $as_echo "$addcflags" >&6; }
4348     CFLAGS="$addcflags $CFLAGS"
4349 else
4350     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4351 $as_echo "(none)" >&6; }
4352 fi
4353 LIB_EXT=.a
4354 STATIC_LIB_EXT=.a
4355 PROFILED_LIB_EXT=.a
4356
4357 # Check whether --with-root-prefix was given.
4358 if test "${with_root_prefix+set}" = set; then :
4359   withval=$with_root_prefix; root_prefix=$withval
4360 else
4361   root_prefix=NONE
4362 fi
4363 # Check whether --enable-maintainer-mode was given.
4364 if test "${enable_maintainer_mode+set}" = set; then :
4365   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4366 then
4367         MAINTAINER_CMT=#
4368         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4369 $as_echo "Disabling maintainer mode" >&6; }
4370 else
4371         MAINTAINER_CMT=
4372         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4373 $as_echo "Enabling maintainer mode" >&6; }
4374 fi
4375
4376 else
4377   MAINTAINER_CMT=#
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4379 $as_echo "Disabling maintainer mode by default" >&6; }
4380
4381 fi
4382
4383
4384 # Check whether --enable-symlink-install was given.
4385 if test "${enable_symlink_install+set}" = set; then :
4386   enableval=$enable_symlink_install; if test "$enableval" = "no"
4387 then
4388         LINK_INSTALL_FLAGS=-f
4389         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4390 $as_echo "Disabling symlinks for install" >&6; }
4391 else
4392         LINK_INSTALL_FLAGS=-sf
4393         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4394 $as_echo "Enabling symlinks for install" >&6; }
4395 fi
4396
4397 else
4398   LINK_INSTALL_FLAGS=-f
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4400 $as_echo "Disabling symlinks for install by default" >&6; }
4401
4402 fi
4403
4404
4405 # Check whether --enable-symlink-relative-symlinks was given.
4406 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4407   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4408 then
4409         SYMLINK_RELATIVE=
4410         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4411 $as_echo "Disabling relative symlinks for install" >&6; }
4412 else
4413         SYMLINK_RELATIVE=--relative
4414         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4415 $as_echo "Enabling symlinks for install" >&6; }
4416 fi
4417
4418 else
4419   SYMLINK_RELATIVE=
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4421 $as_echo "Disabling relative symlinks for install by default" >&6; }
4422
4423 fi
4424
4425
4426 # Check whether --enable-symlink-build was given.
4427 if test "${enable_symlink_build+set}" = set; then :
4428   enableval=$enable_symlink_build; if test "$enableval" = "no"
4429 then
4430         LINK_BUILD_FLAGS=
4431         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4432 $as_echo "Disabling symlinks for build" >&6; }
4433 else
4434         LINK_BUILD_FLAGS=-s
4435         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4436 $as_echo "Enabling symlinks for build" >&6; }
4437 fi
4438
4439 else
4440   LINK_BUILD_FLAGS=
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4442 $as_echo "Disabling symlinks for build by default" >&6; }
4443
4444 fi
4445
4446
4447 # Check whether --enable-verbose-makecmds was given.
4448 if test "${enable_verbose_makecmds+set}" = set; then :
4449   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4450 then
4451         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4452 $as_echo "Disabling verbose make commands" >&6; }
4453         E=@echo
4454         Q=@
4455 else
4456         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4457 $as_echo "Enabling verbose make commands" >&6; }
4458         E=@\\#
4459         Q=
4460 fi
4461
4462 else
4463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4464 $as_echo "Disabling verbose make commands" >&6; }
4465 E=@echo
4466 Q=@
4467
4468 fi
4469
4470
4471
4472 # Check whether --enable-lfsck was given.
4473 if test "${enable_lfsck+set}" = set; then :
4474   enableval=$enable_lfsck; if test "$enableval" = "no"
4475 then
4476         LFSCK_CMT=#
4477         LFSCK_MAN=.\"
4478         ENABLE_LFSCK="--disable-lfsck"
4479         echo "Disabling Lustre lfsck support"
4480 else
4481         LFSCK_CMT=
4482         LFSCK_MAN=
4483         ENABLE_LFSCK="--enable-lfsck"
4484
4485 $as_echo "#define HAVE_LFSCK 1" >>confdefs.h
4486
4487         echo "Enabling Lustre lfsck support"
4488 fi
4489
4490 else
4491   LFSCK_CMT=
4492 LFSCK_MAN=
4493 ENABLE_LFSCK=
4494
4495 $as_echo "#define HAVE_LFSCK 1" >>confdefs.h
4496
4497 echo "Enabling Lustre lfsck support by default"
4498
4499 fi
4500
4501
4502
4503
4504
4505 # Check whether --with-lustre was given.
4506 if test "${with_lustre+set}" = set; then :
4507   withval=$with_lustre; { $as_echo "$as_me:${as_lineno-$LINENO}: result: LUSTRE is in $withval" >&5
4508 $as_echo "LUSTRE is in $withval" >&6; }
4509         LUSTRE="$withval"
4510         WITH_LUSTRE="--with-lustre=$withval"
4511 else
4512   LUSTRE="/usr"
4513         WITH_LUSTRE=
4514
4515 fi
4516
4517
4518 if test "x$enable_lfsck" != "xno"; then :
4519
4520         as_ac_File=`$as_echo "ac_cv_file_$LUSTRE/include/lustre/liblustreapi.h" | $as_tr_sh`
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LUSTRE/include/lustre/liblustreapi.h" >&5
4522 $as_echo_n "checking for $LUSTRE/include/lustre/liblustreapi.h... " >&6; }
4523 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
4524   $as_echo_n "(cached) " >&6
4525 else
4526   test "$cross_compiling" = yes &&
4527   as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
4528 if test -r "$LUSTRE/include/lustre/liblustreapi.h"; then
4529   eval "$as_ac_File=yes"
4530 else
4531   eval "$as_ac_File=no"
4532 fi
4533 fi
4534 eval ac_res=\$$as_ac_File
4535                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4536 $as_echo "$ac_res" >&6; }
4537 eval as_val=\$$as_ac_File
4538    if test "x$as_val" = x""yes; then :
4539
4540 else
4541   as_ac_File=`$as_echo "ac_cv_file_$LUSTRE/lustre/include/lustre/liblustreapi.h" | $as_tr_sh`
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LUSTRE/lustre/include/lustre/liblustreapi.h" >&5
4543 $as_echo_n "checking for $LUSTRE/lustre/include/lustre/liblustreapi.h... " >&6; }
4544 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
4545   $as_echo_n "(cached) " >&6
4546 else
4547   test "$cross_compiling" = yes &&
4548   as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
4549 if test -r "$LUSTRE/lustre/include/lustre/liblustreapi.h"; then
4550   eval "$as_ac_File=yes"
4551 else
4552   eval "$as_ac_File=no"
4553 fi
4554 fi
4555 eval ac_res=\$$as_ac_File
4556                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4557 $as_echo "$ac_res" >&6; }
4558 eval as_val=\$$as_ac_File
4559    if test "x$as_val" = x""yes; then :
4560
4561 else
4562   as_fn_error "No lustre includes found." "$LINENO" 5
4563 fi
4564
4565
4566 fi
4567
4568
4569 fi
4570 # Check whether --enable-compression was given.
4571 if test "${enable_compression+set}" = set; then :
4572   enableval=$enable_compression; if test "$enableval" = "no"
4573 then
4574         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4575 $as_echo "Disabling compression support" >&6; }
4576 else
4577
4578 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4579
4580         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4581 $as_echo "Enabling compression support" >&6; }
4582         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4583 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4584 fi
4585
4586 else
4587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4588 $as_echo "Disabling compression support by default" >&6; }
4589
4590 fi
4591
4592
4593 # Check whether --enable-htree was given.
4594 if test "${enable_htree+set}" = set; then :
4595   enableval=$enable_htree; if test "$enableval" = "no"
4596 then
4597         HTREE_CMT=#
4598         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4599 $as_echo "Disabling htree directory support" >&6; }
4600 else
4601         HTREE_CMT=
4602         $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4603
4604         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4605 $as_echo "Enabling htree directory support" >&6; }
4606 fi
4607
4608 else
4609   HTREE_CMT=
4610 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4611
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4613 $as_echo "Enabling htree directory support by default" >&6; }
4614
4615 fi
4616
4617
4618 E2_PKG_CONFIG_STATIC=--static
4619 LDFLAG_DYNAMIC=
4620 PRIVATE_LIBS_CMT=
4621 # Check whether --enable-elf-shlibs was given.
4622 if test "${enable_elf_shlibs+set}" = set; then :
4623   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4624 then
4625         ELF_CMT=#
4626         MAKEFILE_ELF=/dev/null
4627         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4628 $as_echo "Disabling ELF shared libraries" >&6; }
4629 else
4630         E2_PKG_CONFIG_STATIC=
4631         ELF_CMT=
4632         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4633         case "$host_os" in
4634         solaris2.*)
4635                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4636         ;;
4637         esac
4638         BINARY_TYPE=elfbin
4639         LIB_EXT=.so
4640         PRIVATE_LIBS_CMT=#
4641         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4642         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4643 $as_echo "Enabling ELF shared libraries" >&6; }
4644 fi
4645
4646 else
4647   MAKEFILE_ELF=/dev/null
4648 ELF_CMT=#
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4650 $as_echo "Disabling ELF shared libraries by default" >&6; }
4651
4652 fi
4653
4654
4655
4656 # Check whether --enable-bsd-shlibs was given.
4657 if test "${enable_bsd_shlibs+set}" = set; then :
4658   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4659 then
4660         BSDLIB_CMT=#
4661         MAKEFILE_BSDLIB=/dev/null
4662         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4663 $as_echo "Disabling BSD shared libraries" >&6; }
4664 else
4665         E2_PKG_CONFIG_STATIC=
4666         BSDLIB_CMT=
4667         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4668         LIB_EXT=.so
4669         case "$host_os" in
4670         darwin*)
4671                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4672                 LIB_EXT=.dylib
4673         ;;
4674         esac
4675         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4676 $as_echo "Enabling BSD shared libraries" >&6; }
4677 fi
4678
4679 else
4680   MAKEFILE_BSDLIB=/dev/null
4681 BSDLIB_CMT=#
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4683 $as_echo "Disabling BSD shared libraries by default" >&6; }
4684
4685 fi
4686
4687
4688
4689 # Check whether --enable-profile was given.
4690 if test "${enable_profile+set}" = set; then :
4691   enableval=$enable_profile; if test "$enableval" = "no"
4692 then
4693         PROFILE_CMT=#
4694         MAKEFILE_PROFILE=/dev/null
4695         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4696 $as_echo "Disabling profiling libraries" >&6; }
4697 else
4698         PROFILE_CMT=
4699         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4700         PROFILED_LIB_EXT=_p.a
4701         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4702 $as_echo "Building profiling libraries" >&6; }
4703 fi
4704
4705 else
4706   PROFILE_CMT=#
4707 MAKEFILE_PROFILE=/dev/null
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4709 $as_echo "Disabling profiling libraries by default" >&6; }
4710
4711 fi
4712
4713
4714
4715 # Check whether --enable-checker was given.
4716 if test "${enable_checker+set}" = set; then :
4717   enableval=$enable_checker; if test "$enableval" = "no"
4718 then
4719         CHECKER_CMT=#
4720         MAKEFILE_CHECKER=/dev/null
4721         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4722 $as_echo "Disabling checker libraries" >&6; }
4723 else
4724         CHECKER_CMT=
4725         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4726         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4727 $as_echo "Building checker libraries" >&6; }
4728 fi
4729
4730 else
4731   CHECKER_CMT=#
4732 MAKEFILE_CHECKER=/dev/null
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4734 $as_echo "Disabling checker libraries by default" >&6; }
4735
4736 fi
4737
4738
4739
4740
4741
4742
4743
4744
4745 # Check whether --enable-jbd-debug was given.
4746 if test "${enable_jbd_debug+set}" = set; then :
4747   enableval=$enable_jbd_debug; if test "$enableval" = "no"
4748 then
4749         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4750 $as_echo "Disabling journal debugging" >&6; }
4751 else
4752
4753 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4754
4755         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4756 $as_echo "Enabling journal debugging" >&6; }
4757 fi
4758
4759 else
4760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4761 $as_echo "Disabling journal debugging by default" >&6; }
4762
4763 fi
4764
4765 # Check whether --enable-blkid-debug was given.
4766 if test "${enable_blkid_debug+set}" = set; then :
4767   enableval=$enable_blkid_debug; if test "$enableval" = "no"
4768 then
4769         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4770 $as_echo "Disabling blkid debugging" >&6; }
4771 else
4772
4773 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4774
4775         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4776 $as_echo "Enabling blkid debugging" >&6; }
4777 fi
4778
4779 else
4780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4781 $as_echo "Disabling blkid debugging by default" >&6; }
4782
4783 fi
4784
4785 # Check whether --enable-testio-debug was given.
4786 if test "${enable_testio_debug+set}" = set; then :
4787   enableval=$enable_testio_debug;
4788 if test "$enableval" = "no"
4789 then
4790         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4791 $as_echo "Disabling testio debugging" >&6; }
4792         TEST_IO_CMT="#"
4793 else
4794         TEST_IO_CMT=
4795         $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4796
4797         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4798 $as_echo "Enabling testio debugging" >&6; }
4799 fi
4800
4801 else
4802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4803 $as_echo "Enabling testio debugging by default" >&6; }
4804 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4805
4806 TEST_IO_CMT=
4807
4808 fi
4809
4810
4811
4812
4813 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4814         if test -n "$ac_tool_prefix"; then
4815   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4816 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4820   $as_echo_n "(cached) " >&6
4821 else
4822   case $PKG_CONFIG in
4823   [\\/]* | ?:[\\/]*)
4824   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4825   ;;
4826   *)
4827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH
4829 do
4830   IFS=$as_save_IFS
4831   test -z "$as_dir" && as_dir=.
4832     for ac_exec_ext in '' $ac_executable_extensions; do
4833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4834     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4836     break 2
4837   fi
4838 done
4839   done
4840 IFS=$as_save_IFS
4841
4842   ;;
4843 esac
4844 fi
4845 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4846 if test -n "$PKG_CONFIG"; then
4847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4848 $as_echo "$PKG_CONFIG" >&6; }
4849 else
4850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851 $as_echo "no" >&6; }
4852 fi
4853
4854
4855 fi
4856 if test -z "$ac_cv_path_PKG_CONFIG"; then
4857   ac_pt_PKG_CONFIG=$PKG_CONFIG
4858   # Extract the first word of "pkg-config", so it can be a program name with args.
4859 set dummy pkg-config; ac_word=$2
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861 $as_echo_n "checking for $ac_word... " >&6; }
4862 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4863   $as_echo_n "(cached) " >&6
4864 else
4865   case $ac_pt_PKG_CONFIG in
4866   [\\/]* | ?:[\\/]*)
4867   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4868   ;;
4869   *)
4870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4872 do
4873   IFS=$as_save_IFS
4874   test -z "$as_dir" && as_dir=.
4875     for ac_exec_ext in '' $ac_executable_extensions; do
4876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4879     break 2
4880   fi
4881 done
4882   done
4883 IFS=$as_save_IFS
4884
4885   ;;
4886 esac
4887 fi
4888 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4889 if test -n "$ac_pt_PKG_CONFIG"; then
4890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4891 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4892 else
4893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4894 $as_echo "no" >&6; }
4895 fi
4896
4897   if test "x$ac_pt_PKG_CONFIG" = x; then
4898     PKG_CONFIG=""
4899   else
4900     case $cross_compiling:$ac_tool_warned in
4901 yes:)
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4904 ac_tool_warned=yes ;;
4905 esac
4906     PKG_CONFIG=$ac_pt_PKG_CONFIG
4907   fi
4908 else
4909   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4910 fi
4911
4912 fi
4913 if test -n "$PKG_CONFIG"; then
4914         _pkg_min_version=0.9.0
4915         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4916 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4917         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4918                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4919 $as_echo "yes" >&6; }
4920         else
4921                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; }
4923                 PKG_CONFIG=""
4924         fi
4925
4926 fi
4927 LIBUUID=
4928 DEPLIBUUID=
4929 STATIC_LIBUUID=
4930 DEPSTATIC_LIBUUID=
4931 PROFILED_LIBUUID=
4932 DEPPROFILED_LIBUUID=
4933 UUID_CMT=
4934 # Check whether --enable-libuuid was given.
4935 if test "${enable_libuuid+set}" = set; then :
4936   enableval=$enable_libuuid; if test "$enableval" = "no"
4937 then
4938         if test -z "$PKG_CONFIG"; then
4939                 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
4940         fi
4941
4942         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4943 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4944 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
4945   $as_echo_n "(cached) " >&6
4946 else
4947   ac_check_lib_save_LIBS=$LIBS
4948 LIBS="-luuid $LIBUUID $LIBS"
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h.  */
4951
4952 /* Override any GCC internal prototype to avoid an error.
4953    Use char because int might match the return type of a GCC
4954    builtin and then its argument prototype would still apply.  */
4955 #ifdef __cplusplus
4956 extern "C"
4957 #endif
4958 char uuid_generate ();
4959 int
4960 main ()
4961 {
4962 return uuid_generate ();
4963   ;
4964   return 0;
4965 }
4966 _ACEOF
4967 if ac_fn_c_try_link "$LINENO"; then :
4968   ac_cv_lib_uuid_uuid_generate=yes
4969 else
4970   ac_cv_lib_uuid_uuid_generate=no
4971 fi
4972 rm -f core conftest.err conftest.$ac_objext \
4973     conftest$ac_exeext conftest.$ac_ext
4974 LIBS=$ac_check_lib_save_LIBS
4975 fi
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4977 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4978 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
4979   LIBUUID=`$PKG_CONFIG --libs uuid`;
4980                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4981 else
4982   as_fn_error "external uuid library not found" "$LINENO" 5
4983 fi
4984
4985         UUID_CMT=#
4986         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4987 $as_echo "Disabling private uuid library" >&6; }
4988 else
4989         LIBUUID='$(LIB)/libuuid'$LIB_EXT
4990         DEPLIBUUID=$LIBUUID
4991         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4992         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4993         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4994         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4995         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4996 $as_echo "Enabling private uuid library" >&6; }
4997 fi
4998
4999 else
5000   LIBUUID='$(LIB)/libuuid'$LIB_EXT
5001 DEPLIBUUID=$LIBUUID
5002 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5003 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5004 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5005 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5007 $as_echo "Enabling private uuid library by default" >&6; }
5008
5009 fi
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5021         if test -n "$ac_tool_prefix"; then
5022   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5023 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025 $as_echo_n "checking for $ac_word... " >&6; }
5026 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5027   $as_echo_n "(cached) " >&6
5028 else
5029   case $PKG_CONFIG in
5030   [\\/]* | ?:[\\/]*)
5031   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5032   ;;
5033   *)
5034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 for as_dir in $PATH
5036 do
5037   IFS=$as_save_IFS
5038   test -z "$as_dir" && as_dir=.
5039     for ac_exec_ext in '' $ac_executable_extensions; do
5040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5041     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5043     break 2
5044   fi
5045 done
5046   done
5047 IFS=$as_save_IFS
5048
5049   ;;
5050 esac
5051 fi
5052 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5053 if test -n "$PKG_CONFIG"; then
5054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5055 $as_echo "$PKG_CONFIG" >&6; }
5056 else
5057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058 $as_echo "no" >&6; }
5059 fi
5060
5061
5062 fi
5063 if test -z "$ac_cv_path_PKG_CONFIG"; then
5064   ac_pt_PKG_CONFIG=$PKG_CONFIG
5065   # Extract the first word of "pkg-config", so it can be a program name with args.
5066 set dummy pkg-config; ac_word=$2
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5068 $as_echo_n "checking for $ac_word... " >&6; }
5069 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5070   $as_echo_n "(cached) " >&6
5071 else
5072   case $ac_pt_PKG_CONFIG in
5073   [\\/]* | ?:[\\/]*)
5074   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5075   ;;
5076   *)
5077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 for as_dir in $PATH
5079 do
5080   IFS=$as_save_IFS
5081   test -z "$as_dir" && as_dir=.
5082     for ac_exec_ext in '' $ac_executable_extensions; do
5083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5086     break 2
5087   fi
5088 done
5089   done
5090 IFS=$as_save_IFS
5091
5092   ;;
5093 esac
5094 fi
5095 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5096 if test -n "$ac_pt_PKG_CONFIG"; then
5097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5098 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5099 else
5100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5101 $as_echo "no" >&6; }
5102 fi
5103
5104   if test "x$ac_pt_PKG_CONFIG" = x; then
5105     PKG_CONFIG=""
5106   else
5107     case $cross_compiling:$ac_tool_warned in
5108 yes:)
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5111 ac_tool_warned=yes ;;
5112 esac
5113     PKG_CONFIG=$ac_pt_PKG_CONFIG
5114   fi
5115 else
5116   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5117 fi
5118
5119 fi
5120 if test -n "$PKG_CONFIG"; then
5121         _pkg_min_version=0.9.0
5122         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5123 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5124         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5125                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5126 $as_echo "yes" >&6; }
5127         else
5128                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129 $as_echo "no" >&6; }
5130                 PKG_CONFIG=""
5131         fi
5132
5133 fi
5134 LIBBLKID=
5135 DEPLIBBLKID=
5136 STATIC_LIBBLKID=
5137 DEPSTATIC_LIBBLKID=
5138 PROFILED_LIBBLKID=
5139 DEPPROFILED_LIBBLKID=
5140 BLKID_CMT=
5141
5142 # Check whether --enable-libblkid was given.
5143 if test "${enable_libblkid+set}" = set; then :
5144   enableval=$enable_libblkid; if test "$enableval" = "no"
5145 then
5146         if test -z "$PKG_CONFIG"; then
5147                 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
5148         fi
5149
5150         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5151 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5152 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
5153   $as_echo_n "(cached) " >&6
5154 else
5155   ac_check_lib_save_LIBS=$LIBS
5156 LIBS="-lblkid $LIBBLKID $LIBS"
5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158 /* end confdefs.h.  */
5159
5160 /* Override any GCC internal prototype to avoid an error.
5161    Use char because int might match the return type of a GCC
5162    builtin and then its argument prototype would still apply.  */
5163 #ifdef __cplusplus
5164 extern "C"
5165 #endif
5166 char blkid_get_cache ();
5167 int
5168 main ()
5169 {
5170 return blkid_get_cache ();
5171   ;
5172   return 0;
5173 }
5174 _ACEOF
5175 if ac_fn_c_try_link "$LINENO"; then :
5176   ac_cv_lib_blkid_blkid_get_cache=yes
5177 else
5178   ac_cv_lib_blkid_blkid_get_cache=no
5179 fi
5180 rm -f core conftest.err conftest.$ac_objext \
5181     conftest$ac_exeext conftest.$ac_ext
5182 LIBS=$ac_check_lib_save_LIBS
5183 fi
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5185 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5186 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then :
5187   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5188                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5189 else
5190   as_fn_error "external blkid library not found" "$LINENO" 5
5191 fi
5192
5193         BLKID_CMT=#
5194         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5195 $as_echo "Disabling private blkid library" >&6; }
5196 else
5197         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5198         DEPLIBBLKID=$LIBBLKID
5199         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5200         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5201         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5202         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5203         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5204
5205         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5206 $as_echo "Enabling private blkid library" >&6; }
5207 fi
5208
5209 else
5210   LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5211 DEPLIBBLKID=$LIBBLKID
5212 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5213 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5214 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5215 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5216 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5217
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5219 $as_echo "Enabling private blkid library by default" >&6; }
5220
5221 fi
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5233         if test -n "$ac_tool_prefix"; then
5234   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5235 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5239   $as_echo_n "(cached) " >&6
5240 else
5241   case $PKG_CONFIG in
5242   [\\/]* | ?:[\\/]*)
5243   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5244   ;;
5245   *)
5246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5248 do
5249   IFS=$as_save_IFS
5250   test -z "$as_dir" && as_dir=.
5251     for ac_exec_ext in '' $ac_executable_extensions; do
5252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5253     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5255     break 2
5256   fi
5257 done
5258   done
5259 IFS=$as_save_IFS
5260
5261   ;;
5262 esac
5263 fi
5264 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5265 if test -n "$PKG_CONFIG"; then
5266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5267 $as_echo "$PKG_CONFIG" >&6; }
5268 else
5269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5270 $as_echo "no" >&6; }
5271 fi
5272
5273
5274 fi
5275 if test -z "$ac_cv_path_PKG_CONFIG"; then
5276   ac_pt_PKG_CONFIG=$PKG_CONFIG
5277   # Extract the first word of "pkg-config", so it can be a program name with args.
5278 set dummy pkg-config; ac_word=$2
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5280 $as_echo_n "checking for $ac_word... " >&6; }
5281 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5282   $as_echo_n "(cached) " >&6
5283 else
5284   case $ac_pt_PKG_CONFIG in
5285   [\\/]* | ?:[\\/]*)
5286   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5287   ;;
5288   *)
5289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290 for as_dir in $PATH
5291 do
5292   IFS=$as_save_IFS
5293   test -z "$as_dir" && as_dir=.
5294     for ac_exec_ext in '' $ac_executable_extensions; do
5295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5296     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5298     break 2
5299   fi
5300 done
5301   done
5302 IFS=$as_save_IFS
5303
5304   ;;
5305 esac
5306 fi
5307 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5308 if test -n "$ac_pt_PKG_CONFIG"; then
5309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5310 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5311 else
5312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313 $as_echo "no" >&6; }
5314 fi
5315
5316   if test "x$ac_pt_PKG_CONFIG" = x; then
5317     PKG_CONFIG=""
5318   else
5319     case $cross_compiling:$ac_tool_warned in
5320 yes:)
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5323 ac_tool_warned=yes ;;
5324 esac
5325     PKG_CONFIG=$ac_pt_PKG_CONFIG
5326   fi
5327 else
5328   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5329 fi
5330
5331 fi
5332 if test -n "$PKG_CONFIG"; then
5333         _pkg_min_version=0.9.0
5334         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5335 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5336         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5337                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5338 $as_echo "yes" >&6; }
5339         else
5340                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 $as_echo "no" >&6; }
5342                 PKG_CONFIG=""
5343         fi
5344
5345 fi
5346
5347 # Check whether --enable-quota was given.
5348 if test "${enable_quota+set}" = set; then :
5349   enableval=$enable_quota; if test "$enableval" = "no"
5350 then
5351         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5352 $as_echo "Disabling quota support" >&6; }
5353 else
5354         $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5355
5356         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5357 $as_echo "Enabling quota support" >&6; }
5358 fi
5359
5360 else
5361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5362 $as_echo "Disabling quota support by default" >&6; }
5363
5364 fi
5365
5366 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5367 DEPLIBQUOTA=$LIBQUOTA
5368 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5369 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5370 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5371 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5372
5373
5374
5375
5376
5377
5378
5379 # Check whether --enable-debugfs was given.
5380 if test "${enable_debugfs+set}" = set; then :
5381   enableval=$enable_debugfs; if test "$enableval" = "no"
5382 then
5383         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5384 $as_echo "Disabling debugfs support" >&6; }
5385         DEBUGFS_CMT="#"
5386 else
5387         DEBUGFS_CMT=
5388         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5389 $as_echo "Enabling debugfs support" >&6; }
5390 fi
5391
5392 else
5393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5394 $as_echo "Enabling debugfs support by default" >&6; }
5395 DEBUGFS_CMT=
5396
5397 fi
5398
5399
5400 # Check whether --enable-e2scan was given.
5401 if test "${enable_e2scan+set}" = set; then :
5402   enableval=$enable_e2scan; if test "$enableval" = "no"
5403 then
5404         echo "Disabling e2scan support"
5405         E2SCAN_CMT="#"
5406         E2SCAN_MAN=.\"
5407 else
5408         E2SCAN_CMT=
5409         E2SCAN_MAN=
5410         echo "Enabling e2scan support"
5411 fi
5412
5413 else
5414   echo "Enabling e2scan support by default"
5415 E2SCAN_CMT=
5416 E2SCAN_MAN=
5417
5418 fi
5419
5420
5421
5422 # Check whether --enable-imager was given.
5423 if test "${enable_imager+set}" = set; then :
5424   enableval=$enable_imager; if test "$enableval" = "no"
5425 then
5426         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5427 $as_echo "Disabling e2image support" >&6; }
5428         IMAGER_CMT="#"
5429 else
5430         IMAGER_CMT=
5431         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5432 $as_echo "Enabling e2image support" >&6; }
5433 fi
5434
5435 else
5436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5437 $as_echo "Enabling e2image support by default" >&6; }
5438 IMAGER_CMT=
5439
5440 fi
5441
5442
5443 # Check whether --enable-resizer was given.
5444 if test "${enable_resizer+set}" = set; then :
5445   enableval=$enable_resizer; if test "$enableval" = "no"
5446 then
5447         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5448 $as_echo "Disabling e2resize support" >&6; }
5449         RESIZER_CMT="#"
5450 else
5451         RESIZER_CMT=
5452         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5453 $as_echo "Enabling e2resize support" >&6; }
5454 fi
5455
5456 else
5457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5458 $as_echo "Enabling e2resize support by default" >&6; }
5459 RESIZER_CMT=
5460
5461 fi
5462
5463
5464 # Check whether --enable-defrag was given.
5465 if test "${enable_defrag+set}" = set; then :
5466   enableval=$enable_defrag; if test "$enableval" = "no"
5467 then
5468         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5469 $as_echo "Disabling e4defrag support" >&6; }
5470         DEFRAG_CMT="#"
5471 else
5472         DEFRAG_CMT=
5473         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5474 $as_echo "Enabling e4defrag support" >&6; }
5475 fi
5476
5477 else
5478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5479 $as_echo "Enabling e4defrag support by default" >&6; }
5480 DEFRAG_CMT=
5481
5482 fi
5483
5484
5485 # Check whether --enable-fsck was given.
5486 if test "${enable_fsck+set}" = set; then :
5487   enableval=$enable_fsck; if test "$enableval" = "no"
5488 then
5489         FSCK_PROG='' FSCK_MAN=''
5490         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5491 $as_echo "Not building fsck wrapper" >&6; }
5492 else
5493         FSCK_PROG=fsck FSCK_MAN=fsck.8
5494         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5495 $as_echo "Building fsck wrapper" >&6; }
5496 fi
5497
5498 else
5499   case "$host_os" in
5500   gnu*)
5501     FSCK_PROG='' FSCK_MAN=''
5502     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5503 $as_echo "Not building fsck wrapper by default" >&6; }
5504     ;;
5505   *)
5506     FSCK_PROG=fsck FSCK_MAN=fsck.8
5507     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5508 $as_echo "Building fsck wrapper by default" >&6; }
5509 esac
5510
5511 fi
5512
5513
5514
5515 # Check whether --enable-e2initrd-helper was given.
5516 if test "${enable_e2initrd_helper+set}" = set; then :
5517   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5518 then
5519         E2INITRD_PROG='' E2INITRD_MAN=''
5520         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5521 $as_echo "Not building e2initrd helper" >&6; }
5522 else
5523         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5524         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5525 $as_echo "Building e2initrd helper" >&6; }
5526 fi
5527
5528 else
5529   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5531 $as_echo "Building e2initrd helper by default" >&6; }
5532
5533 fi
5534
5535
5536
5537 # Check whether --enable-tls was given.
5538 if test "${enable_tls+set}" = set; then :
5539   enableval=$enable_tls; if test "$enableval" = "no"
5540 then
5541         try_tls=""
5542         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5543 $as_echo "Disabling thread local support" >&6; }
5544 else
5545         try_tls="yes"
5546         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5547 $as_echo "Enabling thread local support" >&6; }
5548 fi
5549
5550 else
5551   if test -n "$WITH_DIET_LIBC"
5552 then
5553         try_tls=""
5554         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5555 $as_echo "Diet libc does not support thread local support" >&6; }
5556 else
5557         try_tls="yes"
5558         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5559 $as_echo "Try using thread local support by default" >&6; }
5560 fi
5561
5562 fi
5563
5564 if test "$try_tls" = "yes"
5565 then
5566
5567   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5568 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5569   if test "${ac_cv_tls+set}" = set; then :
5570   $as_echo_n "(cached) " >&6
5571 else
5572
5573     ax_tls_keywords="__thread __declspec(thread) none"
5574     for ax_tls_keyword in $ax_tls_keywords; do
5575        case $ax_tls_keyword in
5576           none) ac_cv_tls=none ; break ;;
5577           *)
5578              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579 /* end confdefs.h.  */
5580 #include <stdlib.h>
5581                  static void
5582                  foo(void) {
5583                  static  $ax_tls_keyword  int bar;
5584                  exit(1);
5585                  }
5586 int
5587 main ()
5588 {
5589
5590   ;
5591   return 0;
5592 }
5593 _ACEOF
5594 if ac_fn_c_try_compile "$LINENO"; then :
5595   ac_cv_tls=$ax_tls_keyword ; break
5596 else
5597   ac_cv_tls=none
5598
5599 fi
5600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5601           esac
5602     done
5603
5604 fi
5605
5606
5607   if test "$ac_cv_tls" != "none"; then
5608
5609 cat >>confdefs.h <<_ACEOF
5610 #define TLS $ac_cv_tls
5611 _ACEOF
5612
5613   fi
5614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5615 $as_echo "$ac_cv_tls" >&6; }
5616
5617 fi
5618
5619 # Check whether --enable-uuidd was given.
5620 if test "${enable_uuidd+set}" = set; then :
5621   enableval=$enable_uuidd; if test "$enableval" = "no"
5622 then
5623         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5624 $as_echo "Not building uuidd" >&6; }
5625         UUIDD_CMT="#"
5626 else
5627         $as_echo "#define USE_UUIDD 1" >>confdefs.h
5628
5629         UUIDD_CMT=""
5630         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5631 $as_echo "Building uuidd" >&6; }
5632 fi
5633
5634 else
5635   $as_echo "#define USE_UUIDD 1" >>confdefs.h
5636
5637 UUIDD_CMT=""
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5639 $as_echo "Building uuidd by default" >&6; }
5640
5641 fi
5642
5643
5644 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5645
5646 GETTEXT_PACKAGE=e2fsprogs
5647 PACKAGE=e2fsprogs
5648 VERSION="$E2FSPROGS_VERSION"
5649 VERSION=0.14.1
5650
5651 cat >>confdefs.h <<_ACEOF
5652 #define PACKAGE "$PACKAGE"
5653 _ACEOF
5654
5655
5656 cat >>confdefs.h <<_ACEOF
5657 #define VERSION "$VERSION"
5658 _ACEOF
5659
5660
5661
5662
5663
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5665 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5666 set x ${MAKE-make}
5667 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5668 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5669   $as_echo_n "(cached) " >&6
5670 else
5671   cat >conftest.make <<\_ACEOF
5672 SHELL = /bin/sh
5673 all:
5674         @echo '@@@%%%=$(MAKE)=@@@%%%'
5675 _ACEOF
5676 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5677 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5678   *@@@%%%=?*=@@@%%%*)
5679     eval ac_cv_prog_make_${ac_make}_set=yes;;
5680   *)
5681     eval ac_cv_prog_make_${ac_make}_set=no;;
5682 esac
5683 rm -f conftest.make
5684 fi
5685 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5687 $as_echo "yes" >&6; }
5688   SET_MAKE=
5689 else
5690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691 $as_echo "no" >&6; }
5692   SET_MAKE="MAKE=${MAKE-make}"
5693 fi
5694
5695 # Find a good install program.  We prefer a C program (faster),
5696 # so one script is as good as another.  But avoid the broken or
5697 # incompatible versions:
5698 # SysV /etc/install, /usr/sbin/install
5699 # SunOS /usr/etc/install
5700 # IRIX /sbin/install
5701 # AIX /bin/install
5702 # AmigaOS /C/install, which installs bootblocks on floppy discs
5703 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5704 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5705 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5706 # OS/2's system install, which has a completely different semantic
5707 # ./install, which can be erroneously created by make from ./install.sh.
5708 # Reject install programs that cannot install multiple files.
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5710 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5711 if test -z "$INSTALL"; then
5712 if test "${ac_cv_path_install+set}" = set; then :
5713   $as_echo_n "(cached) " >&6
5714 else
5715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 for as_dir in $PATH
5717 do
5718   IFS=$as_save_IFS
5719   test -z "$as_dir" && as_dir=.
5720     # Account for people who put trailing slashes in PATH elements.
5721 case $as_dir/ in #((
5722   ./ | .// | /[cC]/* | \
5723   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5724   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5725   /usr/ucb/* ) ;;
5726   *)
5727     # OSF1 and SCO ODT 3.0 have their own names for install.
5728     # Don't use installbsd from OSF since it installs stuff as root
5729     # by default.
5730     for ac_prog in ginstall scoinst install; do
5731       for ac_exec_ext in '' $ac_executable_extensions; do
5732         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5733           if test $ac_prog = install &&
5734             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5735             # AIX install.  It has an incompatible calling convention.
5736             :
5737           elif test $ac_prog = install &&
5738             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5739             # program-specific install script used by HP pwplus--don't use.
5740             :
5741           else
5742             rm -rf conftest.one conftest.two conftest.dir
5743             echo one > conftest.one
5744             echo two > conftest.two
5745             mkdir conftest.dir
5746             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5747               test -s conftest.one && test -s conftest.two &&
5748               test -s conftest.dir/conftest.one &&
5749               test -s conftest.dir/conftest.two
5750             then
5751               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5752               break 3
5753             fi
5754           fi
5755         fi
5756       done
5757     done
5758     ;;
5759 esac
5760
5761   done
5762 IFS=$as_save_IFS
5763
5764 rm -rf conftest.one conftest.two conftest.dir
5765
5766 fi
5767   if test "${ac_cv_path_install+set}" = set; then
5768     INSTALL=$ac_cv_path_install
5769   else
5770     # As a last resort, use the slow shell script.  Don't cache a
5771     # value for INSTALL within a source directory, because that will
5772     # break other packages using the cache if that directory is
5773     # removed, or if the value is a relative name.
5774     INSTALL=$ac_install_sh
5775   fi
5776 fi
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5778 $as_echo "$INSTALL" >&6; }
5779
5780 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5781 # It thinks the first close brace ends the variable substitution.
5782 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5783
5784 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5785
5786 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5787
5788
5789         MKINSTALLDIRS=
5790   if test -n "$ac_aux_dir"; then
5791     case "$ac_aux_dir" in
5792       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5793       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5794     esac
5795   fi
5796   if test -z "$MKINSTALLDIRS"; then
5797     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5798   fi
5799
5800
5801
5802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5803 $as_echo_n "checking whether NLS is requested... " >&6; }
5804     # Check whether --enable-nls was given.
5805 if test "${enable_nls+set}" = set; then :
5806   enableval=$enable_nls; USE_NLS=$enableval
5807 else
5808   USE_NLS=yes
5809 fi
5810
5811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5812 $as_echo "$USE_NLS" >&6; }
5813
5814
5815
5816
5817
5818
5819 # Prepare PATH_SEPARATOR.
5820 # The user is always right.
5821 if test "${PATH_SEPARATOR+set}" != set; then
5822   echo "#! /bin/sh" >conf$$.sh
5823   echo  "exit 0"   >>conf$$.sh
5824   chmod +x conf$$.sh
5825   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5826     PATH_SEPARATOR=';'
5827   else
5828     PATH_SEPARATOR=:
5829   fi
5830   rm -f conf$$.sh
5831 fi
5832
5833 # Find out how to test for executable files. Don't use a zero-byte file,
5834 # as systems may use methods other than mode bits to determine executability.
5835 cat >conf$$.file <<_ASEOF
5836 #! /bin/sh
5837 exit 0
5838 _ASEOF
5839 chmod +x conf$$.file
5840 if test -x conf$$.file >/dev/null 2>&1; then
5841   ac_executable_p="test -x"
5842 else
5843   ac_executable_p="test -f"
5844 fi
5845 rm -f conf$$.file
5846
5847 # Extract the first word of "msgfmt", so it can be a program name with args.
5848 set dummy msgfmt; ac_word=$2
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if test "${ac_cv_path_MSGFMT+set}" = set; then :
5852   $as_echo_n "(cached) " >&6
5853 else
5854   case "$MSGFMT" in
5855   [\\/]* | ?:[\\/]*)
5856     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5857     ;;
5858   *)
5859     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5860     for ac_dir in $PATH; do
5861       IFS="$ac_save_IFS"
5862       test -z "$ac_dir" && ac_dir=.
5863       for ac_exec_ext in '' $ac_executable_extensions; do
5864         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5865           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5866      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5867             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5868             break 2
5869           fi
5870         fi
5871       done
5872     done
5873     IFS="$ac_save_IFS"
5874   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5875     ;;
5876 esac
5877 fi
5878 MSGFMT="$ac_cv_path_MSGFMT"
5879 if test "$MSGFMT" != ":"; then
5880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5881 $as_echo "$MSGFMT" >&6; }
5882 else
5883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 $as_echo "no" >&6; }
5885 fi
5886
5887   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5888 set dummy gmsgfmt; ac_word=$2
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890 $as_echo_n "checking for $ac_word... " >&6; }
5891 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5892   $as_echo_n "(cached) " >&6
5893 else
5894   case $GMSGFMT in
5895   [\\/]* | ?:[\\/]*)
5896   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5897   ;;
5898   *)
5899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 for as_dir in $PATH
5901 do
5902   IFS=$as_save_IFS
5903   test -z "$as_dir" && as_dir=.
5904     for ac_exec_ext in '' $ac_executable_extensions; do
5905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5906     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5908     break 2
5909   fi
5910 done
5911   done
5912 IFS=$as_save_IFS
5913
5914   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5915   ;;
5916 esac
5917 fi
5918 GMSGFMT=$ac_cv_path_GMSGFMT
5919 if test -n "$GMSGFMT"; then
5920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5921 $as_echo "$GMSGFMT" >&6; }
5922 else
5923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924 $as_echo "no" >&6; }
5925 fi
5926
5927
5928
5929
5930 # Prepare PATH_SEPARATOR.
5931 # The user is always right.
5932 if test "${PATH_SEPARATOR+set}" != set; then
5933   echo "#! /bin/sh" >conf$$.sh
5934   echo  "exit 0"   >>conf$$.sh
5935   chmod +x conf$$.sh
5936   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5937     PATH_SEPARATOR=';'
5938   else
5939     PATH_SEPARATOR=:
5940   fi
5941   rm -f conf$$.sh
5942 fi
5943
5944 # Find out how to test for executable files. Don't use a zero-byte file,
5945 # as systems may use methods other than mode bits to determine executability.
5946 cat >conf$$.file <<_ASEOF
5947 #! /bin/sh
5948 exit 0
5949 _ASEOF
5950 chmod +x conf$$.file
5951 if test -x conf$$.file >/dev/null 2>&1; then
5952   ac_executable_p="test -x"
5953 else
5954   ac_executable_p="test -f"
5955 fi
5956 rm -f conf$$.file
5957
5958 # Extract the first word of "xgettext", so it can be a program name with args.
5959 set dummy xgettext; ac_word=$2
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5961 $as_echo_n "checking for $ac_word... " >&6; }
5962 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5963   $as_echo_n "(cached) " >&6
5964 else
5965   case "$XGETTEXT" in
5966   [\\/]* | ?:[\\/]*)
5967     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5968     ;;
5969   *)
5970     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5971     for ac_dir in $PATH; do
5972       IFS="$ac_save_IFS"
5973       test -z "$ac_dir" && ac_dir=.
5974       for ac_exec_ext in '' $ac_executable_extensions; do
5975         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5976           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5977      (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
5978             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5979             break 2
5980           fi
5981         fi
5982       done
5983     done
5984     IFS="$ac_save_IFS"
5985   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5986     ;;
5987 esac
5988 fi
5989 XGETTEXT="$ac_cv_path_XGETTEXT"
5990 if test "$XGETTEXT" != ":"; then
5991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5992 $as_echo "$XGETTEXT" >&6; }
5993 else
5994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995 $as_echo "no" >&6; }
5996 fi
5997
5998     rm -f messages.po
5999
6000
6001 # Prepare PATH_SEPARATOR.
6002 # The user is always right.
6003 if test "${PATH_SEPARATOR+set}" != set; then
6004   echo "#! /bin/sh" >conf$$.sh
6005   echo  "exit 0"   >>conf$$.sh
6006   chmod +x conf$$.sh
6007   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6008     PATH_SEPARATOR=';'
6009   else
6010     PATH_SEPARATOR=:
6011   fi
6012   rm -f conf$$.sh
6013 fi
6014
6015 # Find out how to test for executable files. Don't use a zero-byte file,
6016 # as systems may use methods other than mode bits to determine executability.
6017 cat >conf$$.file <<_ASEOF
6018 #! /bin/sh
6019 exit 0
6020 _ASEOF
6021 chmod +x conf$$.file
6022 if test -x conf$$.file >/dev/null 2>&1; then
6023   ac_executable_p="test -x"
6024 else
6025   ac_executable_p="test -f"
6026 fi
6027 rm -f conf$$.file
6028
6029 # Extract the first word of "msgmerge", so it can be a program name with args.
6030 set dummy msgmerge; ac_word=$2
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032 $as_echo_n "checking for $ac_word... " >&6; }
6033 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
6034   $as_echo_n "(cached) " >&6
6035 else
6036   case "$MSGMERGE" in
6037   [\\/]* | ?:[\\/]*)
6038     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6039     ;;
6040   *)
6041     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6042     for ac_dir in $PATH; do
6043       IFS="$ac_save_IFS"
6044       test -z "$ac_dir" && ac_dir=.
6045       for ac_exec_ext in '' $ac_executable_extensions; do
6046         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6047           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6048             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6049             break 2
6050           fi
6051         fi
6052       done
6053     done
6054     IFS="$ac_save_IFS"
6055   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6056     ;;
6057 esac
6058 fi
6059 MSGMERGE="$ac_cv_path_MSGMERGE"
6060 if test "$MSGMERGE" != ":"; then
6061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6062 $as_echo "$MSGMERGE" >&6; }
6063 else
6064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065 $as_echo "no" >&6; }
6066 fi
6067
6068
6069       if test "$GMSGFMT" != ":"; then
6070             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6071        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6072       : ;
6073     else
6074       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6075       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6076 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6077       GMSGFMT=":"
6078     fi
6079   fi
6080
6081       if test "$XGETTEXT" != ":"; then
6082             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6083        (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
6084       : ;
6085     else
6086       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6087 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6088       XGETTEXT=":"
6089     fi
6090         rm -f messages.po
6091   fi
6092
6093   ac_config_commands="$ac_config_commands default-1"
6094
6095
6096 if test -n "$ac_tool_prefix"; then
6097   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6098 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6100 $as_echo_n "checking for $ac_word... " >&6; }
6101 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6102   $as_echo_n "(cached) " >&6
6103 else
6104   if test -n "$RANLIB"; then
6105   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6106 else
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108 for as_dir in $PATH
6109 do
6110   IFS=$as_save_IFS
6111   test -z "$as_dir" && as_dir=.
6112     for ac_exec_ext in '' $ac_executable_extensions; do
6113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6114     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6116     break 2
6117   fi
6118 done
6119   done
6120 IFS=$as_save_IFS
6121
6122 fi
6123 fi
6124 RANLIB=$ac_cv_prog_RANLIB
6125 if test -n "$RANLIB"; then
6126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6127 $as_echo "$RANLIB" >&6; }
6128 else
6129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6130 $as_echo "no" >&6; }
6131 fi
6132
6133
6134 fi
6135 if test -z "$ac_cv_prog_RANLIB"; then
6136   ac_ct_RANLIB=$RANLIB
6137   # Extract the first word of "ranlib", so it can be a program name with args.
6138 set dummy ranlib; ac_word=$2
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140 $as_echo_n "checking for $ac_word... " >&6; }
6141 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6142   $as_echo_n "(cached) " >&6
6143 else
6144   if test -n "$ac_ct_RANLIB"; then
6145   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6146 else
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 for as_dir in $PATH
6149 do
6150   IFS=$as_save_IFS
6151   test -z "$as_dir" && as_dir=.
6152     for ac_exec_ext in '' $ac_executable_extensions; do
6153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6154     ac_cv_prog_ac_ct_RANLIB="ranlib"
6155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6156     break 2
6157   fi
6158 done
6159   done
6160 IFS=$as_save_IFS
6161
6162 fi
6163 fi
6164 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6165 if test -n "$ac_ct_RANLIB"; then
6166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6167 $as_echo "$ac_ct_RANLIB" >&6; }
6168 else
6169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170 $as_echo "no" >&6; }
6171 fi
6172
6173   if test "x$ac_ct_RANLIB" = x; then
6174     RANLIB=":"
6175   else
6176     case $cross_compiling:$ac_tool_warned in
6177 yes:)
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6180 ac_tool_warned=yes ;;
6181 esac
6182     RANLIB=$ac_ct_RANLIB
6183   fi
6184 else
6185   RANLIB="$ac_cv_prog_RANLIB"
6186 fi
6187
6188
6189         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6190 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6191 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
6192   $as_echo_n "(cached) " >&6
6193 else
6194   ac_check_lib_save_LIBS=$LIBS
6195 LIBS="-lcposix  $LIBS"
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h.  */
6198
6199 /* Override any GCC internal prototype to avoid an error.
6200    Use char because int might match the return type of a GCC
6201    builtin and then its argument prototype would still apply.  */
6202 #ifdef __cplusplus
6203 extern "C"
6204 #endif
6205 char strerror ();
6206 int
6207 main ()
6208 {
6209 return strerror ();
6210   ;
6211   return 0;
6212 }
6213 _ACEOF
6214 if ac_fn_c_try_link "$LINENO"; then :
6215   ac_cv_lib_cposix_strerror=yes
6216 else
6217   ac_cv_lib_cposix_strerror=no
6218 fi
6219 rm -f core conftest.err conftest.$ac_objext \
6220     conftest$ac_exeext conftest.$ac_ext
6221 LIBS=$ac_check_lib_save_LIBS
6222 fi
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6224 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6225 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
6226   LIBS="$LIBS -lcposix"
6227 fi
6228
6229
6230
6231
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6233 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6234 if test "${ac_cv_path_GREP+set}" = set; then :
6235   $as_echo_n "(cached) " >&6
6236 else
6237   if test -z "$GREP"; then
6238   ac_path_GREP_found=false
6239   # Loop through the user's path and test for each of PROGNAME-LIST
6240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6242 do
6243   IFS=$as_save_IFS
6244   test -z "$as_dir" && as_dir=.
6245     for ac_prog in grep ggrep; do
6246     for ac_exec_ext in '' $ac_executable_extensions; do
6247       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6248       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6249 # Check for GNU ac_path_GREP and select it if it is found.
6250   # Check for GNU $ac_path_GREP
6251 case `"$ac_path_GREP" --version 2>&1` in
6252 *GNU*)
6253   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6254 *)
6255   ac_count=0
6256   $as_echo_n 0123456789 >"conftest.in"
6257   while :
6258   do
6259     cat "conftest.in" "conftest.in" >"conftest.tmp"
6260     mv "conftest.tmp" "conftest.in"
6261     cp "conftest.in" "conftest.nl"
6262     $as_echo 'GREP' >> "conftest.nl"
6263     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6264     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6265     as_fn_arith $ac_count + 1 && ac_count=$as_val
6266     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6267       # Best one so far, save it but keep looking for a better one
6268       ac_cv_path_GREP="$ac_path_GREP"
6269       ac_path_GREP_max=$ac_count
6270     fi
6271     # 10*(2^10) chars as input seems more than enough
6272     test $ac_count -gt 10 && break
6273   done
6274   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6275 esac
6276
6277       $ac_path_GREP_found && break 3
6278     done
6279   done
6280   done
6281 IFS=$as_save_IFS
6282   if test -z "$ac_cv_path_GREP"; then
6283     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6284   fi
6285 else
6286   ac_cv_path_GREP=$GREP
6287 fi
6288
6289 fi
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6291 $as_echo "$ac_cv_path_GREP" >&6; }
6292  GREP="$ac_cv_path_GREP"
6293
6294
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6296 $as_echo_n "checking for egrep... " >&6; }
6297 if test "${ac_cv_path_EGREP+set}" = set; then :
6298   $as_echo_n "(cached) " >&6
6299 else
6300   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6301    then ac_cv_path_EGREP="$GREP -E"
6302    else
6303      if test -z "$EGREP"; then
6304   ac_path_EGREP_found=false
6305   # Loop through the user's path and test for each of PROGNAME-LIST
6306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6308 do
6309   IFS=$as_save_IFS
6310   test -z "$as_dir" && as_dir=.
6311     for ac_prog in egrep; do
6312     for ac_exec_ext in '' $ac_executable_extensions; do
6313       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6314       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6315 # Check for GNU ac_path_EGREP and select it if it is found.
6316   # Check for GNU $ac_path_EGREP
6317 case `"$ac_path_EGREP" --version 2>&1` in
6318 *GNU*)
6319   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6320 *)
6321   ac_count=0
6322   $as_echo_n 0123456789 >"conftest.in"
6323   while :
6324   do
6325     cat "conftest.in" "conftest.in" >"conftest.tmp"
6326     mv "conftest.tmp" "conftest.in"
6327     cp "conftest.in" "conftest.nl"
6328     $as_echo 'EGREP' >> "conftest.nl"
6329     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6330     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6331     as_fn_arith $ac_count + 1 && ac_count=$as_val
6332     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6333       # Best one so far, save it but keep looking for a better one
6334       ac_cv_path_EGREP="$ac_path_EGREP"
6335       ac_path_EGREP_max=$ac_count
6336     fi
6337     # 10*(2^10) chars as input seems more than enough
6338     test $ac_count -gt 10 && break
6339   done
6340   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6341 esac
6342
6343       $ac_path_EGREP_found && break 3
6344     done
6345   done
6346   done
6347 IFS=$as_save_IFS
6348   if test -z "$ac_cv_path_EGREP"; then
6349     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6350   fi
6351 else
6352   ac_cv_path_EGREP=$EGREP
6353 fi
6354
6355    fi
6356 fi
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6358 $as_echo "$ac_cv_path_EGREP" >&6; }
6359  EGREP="$ac_cv_path_EGREP"
6360
6361
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6363 $as_echo_n "checking for ANSI C header files... " >&6; }
6364 if test "${ac_cv_header_stdc+set}" = set; then :
6365   $as_echo_n "(cached) " >&6
6366 else
6367   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368 /* end confdefs.h.  */
6369 #include <stdlib.h>
6370 #include <stdarg.h>
6371 #include <string.h>
6372 #include <float.h>
6373
6374 int
6375 main ()
6376 {
6377
6378   ;
6379   return 0;
6380 }
6381 _ACEOF
6382 if ac_fn_c_try_compile "$LINENO"; then :
6383   ac_cv_header_stdc=yes
6384 else
6385   ac_cv_header_stdc=no
6386 fi
6387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6388
6389 if test $ac_cv_header_stdc = yes; then
6390   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392 /* end confdefs.h.  */
6393 #include <string.h>
6394
6395 _ACEOF
6396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6397   $EGREP "memchr" >/dev/null 2>&1; then :
6398
6399 else
6400   ac_cv_header_stdc=no
6401 fi
6402 rm -f conftest*
6403
6404 fi
6405
6406 if test $ac_cv_header_stdc = yes; then
6407   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409 /* end confdefs.h.  */
6410 #include <stdlib.h>
6411
6412 _ACEOF
6413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6414   $EGREP "free" >/dev/null 2>&1; then :
6415
6416 else
6417   ac_cv_header_stdc=no
6418 fi
6419 rm -f conftest*
6420
6421 fi
6422
6423 if test $ac_cv_header_stdc = yes; then
6424   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6425   if test "$cross_compiling" = yes; then :
6426   :
6427 else
6428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429 /* end confdefs.h.  */
6430 #include <ctype.h>
6431 #include <stdlib.h>
6432 #if ((' ' & 0x0FF) == 0x020)
6433 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6434 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6435 #else
6436 # define ISLOWER(c) \
6437                    (('a' <= (c) && (c) <= 'i') \
6438                      || ('j' <= (c) && (c) <= 'r') \
6439                      || ('s' <= (c) && (c) <= 'z'))
6440 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6441 #endif
6442
6443 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6444 int
6445 main ()
6446 {
6447   int i;
6448   for (i = 0; i < 256; i++)
6449     if (XOR (islower (i), ISLOWER (i))
6450         || toupper (i) != TOUPPER (i))
6451       return 2;
6452   return 0;
6453 }
6454 _ACEOF
6455 if ac_fn_c_try_run "$LINENO"; then :
6456
6457 else
6458   ac_cv_header_stdc=no
6459 fi
6460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6461   conftest.$ac_objext conftest.beam conftest.$ac_ext
6462 fi
6463
6464 fi
6465 fi
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6467 $as_echo "$ac_cv_header_stdc" >&6; }
6468 if test $ac_cv_header_stdc = yes; then
6469
6470 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6471
6472 fi
6473
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6475 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6476 if test "${ac_cv_c_const+set}" = set; then :
6477   $as_echo_n "(cached) " >&6
6478 else
6479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6480 /* end confdefs.h.  */
6481
6482 int
6483 main ()
6484 {
6485 /* FIXME: Include the comments suggested by Paul. */
6486 #ifndef __cplusplus
6487   /* Ultrix mips cc rejects this.  */
6488   typedef int charset[2];
6489   const charset cs;
6490   /* SunOS 4.1.1 cc rejects this.  */
6491   char const *const *pcpcc;
6492   char **ppc;
6493   /* NEC SVR4.0.2 mips cc rejects this.  */
6494   struct point {int x, y;};
6495   static struct point const zero = {0,0};
6496   /* AIX XL C 1.02.0.0 rejects this.
6497      It does not let you subtract one const X* pointer from another in
6498      an arm of an if-expression whose if-part is not a constant
6499      expression */
6500   const char *g = "string";
6501   pcpcc = &g + (g ? g-g : 0);
6502   /* HPUX 7.0 cc rejects these. */
6503   ++pcpcc;
6504   ppc = (char**) pcpcc;
6505   pcpcc = (char const *const *) ppc;
6506   { /* SCO 3.2v4 cc rejects this.  */
6507     char *t;
6508     char const *s = 0 ? (char *) 0 : (char const *) 0;
6509
6510     *t++ = 0;
6511     if (s) return 0;
6512   }
6513   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6514     int x[] = {25, 17};
6515     const int *foo = &x[0];
6516     ++foo;
6517   }
6518   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6519     typedef const int *iptr;
6520     iptr p = 0;
6521     ++p;
6522   }
6523   { /* AIX XL C 1.02.0.0 rejects this saying
6524        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6525     struct s { int j; const int *ap[3]; };
6526     struct s *b; b->j = 5;
6527   }
6528   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6529     const int foo = 10;
6530     if (!foo) return 0;
6531   }
6532   return !cs[0] && !zero.x;
6533 #endif
6534
6535   ;
6536   return 0;
6537 }
6538 _ACEOF
6539 if ac_fn_c_try_compile "$LINENO"; then :
6540   ac_cv_c_const=yes
6541 else
6542   ac_cv_c_const=no
6543 fi
6544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6545 fi
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6547 $as_echo "$ac_cv_c_const" >&6; }
6548 if test $ac_cv_c_const = no; then
6549
6550 $as_echo "#define const /**/" >>confdefs.h
6551
6552 fi
6553
6554
6555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6556 $as_echo_n "checking for signed... " >&6; }
6557 if test "${bh_cv_c_signed+set}" = set; then :
6558   $as_echo_n "(cached) " >&6
6559 else
6560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561 /* end confdefs.h.  */
6562
6563 int
6564 main ()
6565 {
6566 signed char x;
6567   ;
6568   return 0;
6569 }
6570 _ACEOF
6571 if ac_fn_c_try_compile "$LINENO"; then :
6572   bh_cv_c_signed=yes
6573 else
6574   bh_cv_c_signed=no
6575 fi
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577 fi
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6579 $as_echo "$bh_cv_c_signed" >&6; }
6580   if test $bh_cv_c_signed = no; then
6581
6582 $as_echo "#define signed /**/" >>confdefs.h
6583
6584   fi
6585
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6587 $as_echo_n "checking for inline... " >&6; }
6588 if test "${ac_cv_c_inline+set}" = set; then :
6589   $as_echo_n "(cached) " >&6
6590 else
6591   ac_cv_c_inline=no
6592 for ac_kw in inline __inline__ __inline; do
6593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6594 /* end confdefs.h.  */
6595 #ifndef __cplusplus
6596 typedef int foo_t;
6597 static $ac_kw foo_t static_foo () {return 0; }
6598 $ac_kw foo_t foo () {return 0; }
6599 #endif
6600
6601 _ACEOF
6602 if ac_fn_c_try_compile "$LINENO"; then :
6603   ac_cv_c_inline=$ac_kw
6604 fi
6605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606   test "$ac_cv_c_inline" != no && break
6607 done
6608
6609 fi
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6611 $as_echo "$ac_cv_c_inline" >&6; }
6612
6613 case $ac_cv_c_inline in
6614   inline | yes) ;;
6615   *)
6616     case $ac_cv_c_inline in
6617       no) ac_val=;;
6618       *) ac_val=$ac_cv_c_inline;;
6619     esac
6620     cat >>confdefs.h <<_ACEOF
6621 #ifndef __cplusplus
6622 #define inline $ac_val
6623 #endif
6624 _ACEOF
6625     ;;
6626 esac
6627
6628 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6629 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6630                   inttypes.h stdint.h unistd.h
6631 do :
6632   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6633 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6634 "
6635 eval as_val=\$$as_ac_Header
6636    if test "x$as_val" = x""yes; then :
6637   cat >>confdefs.h <<_ACEOF
6638 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6639 _ACEOF
6640
6641 fi
6642
6643 done
6644
6645
6646 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6647 if test "x$ac_cv_type_off_t" = x""yes; then :
6648
6649 else
6650
6651 cat >>confdefs.h <<_ACEOF
6652 #define off_t long int
6653 _ACEOF
6654
6655 fi
6656
6657 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6658 if test "x$ac_cv_type_size_t" = x""yes; then :
6659
6660 else
6661
6662 cat >>confdefs.h <<_ACEOF
6663 #define size_t unsigned int
6664 _ACEOF
6665
6666 fi
6667
6668
6669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6670 $as_echo_n "checking for long long... " >&6; }
6671 if test "${ac_cv_type_long_long+set}" = set; then :
6672   $as_echo_n "(cached) " >&6
6673 else
6674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6675 /* end confdefs.h.  */
6676 long long ll = 1LL; int i = 63;
6677 int
6678 main ()
6679 {
6680 long long llmax = (long long) -1;
6681      return ll << i | ll >> i | llmax / ll | llmax % ll;
6682   ;
6683   return 0;
6684 }
6685 _ACEOF
6686 if ac_fn_c_try_link "$LINENO"; then :
6687   ac_cv_type_long_long=yes
6688 else
6689   ac_cv_type_long_long=no
6690 fi
6691 rm -f core conftest.err conftest.$ac_objext \
6692     conftest$ac_exeext conftest.$ac_ext
6693 fi
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6695 $as_echo "$ac_cv_type_long_long" >&6; }
6696   if test $ac_cv_type_long_long = yes; then
6697
6698 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6699
6700   fi
6701
6702
6703   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6704 $as_echo_n "checking for long double... " >&6; }
6705 if test "${gt_cv_c_long_double+set}" = set; then :
6706   $as_echo_n "(cached) " >&6
6707 else
6708   if test "$GCC" = yes; then
6709        gt_cv_c_long_double=yes
6710      else
6711        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712 /* end confdefs.h.  */
6713
6714          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
6715          long double foo = 0.0;
6716          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
6717          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6718
6719 int
6720 main ()
6721 {
6722
6723   ;
6724   return 0;
6725 }
6726 _ACEOF
6727 if ac_fn_c_try_compile "$LINENO"; then :
6728   gt_cv_c_long_double=yes
6729 else
6730   gt_cv_c_long_double=no
6731 fi
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733      fi
6734 fi
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6736 $as_echo "$gt_cv_c_long_double" >&6; }
6737   if test $gt_cv_c_long_double = yes; then
6738
6739 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6740
6741   fi
6742
6743
6744   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6745 $as_echo_n "checking for wchar_t... " >&6; }
6746 if test "${gt_cv_c_wchar_t+set}" = set; then :
6747   $as_echo_n "(cached) " >&6
6748 else
6749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h.  */
6751 #include <stddef.h>
6752        wchar_t foo = (wchar_t)'\0';
6753 int
6754 main ()
6755 {
6756
6757   ;
6758   return 0;
6759 }
6760 _ACEOF
6761 if ac_fn_c_try_compile "$LINENO"; then :
6762   gt_cv_c_wchar_t=yes
6763 else
6764   gt_cv_c_wchar_t=no
6765 fi
6766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6767 fi
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6769 $as_echo "$gt_cv_c_wchar_t" >&6; }
6770   if test $gt_cv_c_wchar_t = yes; then
6771
6772 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6773
6774   fi
6775
6776
6777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6778 $as_echo_n "checking for wint_t... " >&6; }
6779 if test "${gt_cv_c_wint_t+set}" = set; then :
6780   $as_echo_n "(cached) " >&6
6781 else
6782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h.  */
6784 #include <wchar.h>
6785        wint_t foo = (wchar_t)'\0';
6786 int
6787 main ()
6788 {
6789
6790   ;
6791   return 0;
6792 }
6793 _ACEOF
6794 if ac_fn_c_try_compile "$LINENO"; then :
6795   gt_cv_c_wint_t=yes
6796 else
6797   gt_cv_c_wint_t=no
6798 fi
6799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6800 fi
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6802 $as_echo "$gt_cv_c_wint_t" >&6; }
6803   if test $gt_cv_c_wint_t = yes; then
6804
6805 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6806
6807   fi
6808
6809
6810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6811 $as_echo_n "checking for inttypes.h... " >&6; }
6812 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
6813   $as_echo_n "(cached) " >&6
6814 else
6815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6816 /* end confdefs.h.  */
6817 #include <sys/types.h>
6818 #include <inttypes.h>
6819 int
6820 main ()
6821 {
6822 uintmax_t i = (uintmax_t) -1;
6823   ;
6824   return 0;
6825 }
6826 _ACEOF
6827 if ac_fn_c_try_compile "$LINENO"; then :
6828   jm_ac_cv_header_inttypes_h=yes
6829 else
6830   jm_ac_cv_header_inttypes_h=no
6831 fi
6832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6833 fi
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6835 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6836   if test $jm_ac_cv_header_inttypes_h = yes; then
6837
6838 cat >>confdefs.h <<_ACEOF
6839 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6840 _ACEOF
6841
6842   fi
6843
6844
6845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6846 $as_echo_n "checking for stdint.h... " >&6; }
6847 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
6848   $as_echo_n "(cached) " >&6
6849 else
6850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h.  */
6852 #include <sys/types.h>
6853 #include <stdint.h>
6854 int
6855 main ()
6856 {
6857 uintmax_t i = (uintmax_t) -1;
6858   ;
6859   return 0;
6860 }
6861 _ACEOF
6862 if ac_fn_c_try_compile "$LINENO"; then :
6863   jm_ac_cv_header_stdint_h=yes
6864 else
6865   jm_ac_cv_header_stdint_h=no
6866 fi
6867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6868 fi
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6870 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6871   if test $jm_ac_cv_header_stdint_h = yes; then
6872
6873 cat >>confdefs.h <<_ACEOF
6874 #define HAVE_STDINT_H_WITH_UINTMAX 1
6875 _ACEOF
6876
6877   fi
6878
6879
6880
6881
6882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6883 $as_echo_n "checking for intmax_t... " >&6; }
6884 if test "${gt_cv_c_intmax_t+set}" = set; then :
6885   $as_echo_n "(cached) " >&6
6886 else
6887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6888 /* end confdefs.h.  */
6889
6890 #include <stddef.h>
6891 #include <stdlib.h>
6892 #if HAVE_STDINT_H_WITH_UINTMAX
6893 #include <stdint.h>
6894 #endif
6895 #if HAVE_INTTYPES_H_WITH_UINTMAX
6896 #include <inttypes.h>
6897 #endif
6898
6899 int
6900 main ()
6901 {
6902 intmax_t x = -1;
6903   ;
6904   return 0;
6905 }
6906 _ACEOF
6907 if ac_fn_c_try_compile "$LINENO"; then :
6908   gt_cv_c_intmax_t=yes
6909 else
6910   gt_cv_c_intmax_t=no
6911 fi
6912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6913 fi
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6915 $as_echo "$gt_cv_c_intmax_t" >&6; }
6916   if test $gt_cv_c_intmax_t = yes; then
6917
6918 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6919
6920   fi
6921
6922
6923
6924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6925 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6926 if test "${gt_cv_func_printf_posix+set}" = set; then :
6927   $as_echo_n "(cached) " >&6
6928 else
6929
6930       if test "$cross_compiling" = yes; then :
6931
6932         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6933 /* end confdefs.h.  */
6934
6935 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6936   notposix
6937 #endif
6938
6939 _ACEOF
6940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6941   $EGREP "notposix" >/dev/null 2>&1; then :
6942   gt_cv_func_printf_posix="guessing no"
6943 else
6944   gt_cv_func_printf_posix="guessing yes"
6945 fi
6946 rm -f conftest*
6947
6948
6949 else
6950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6951 /* end confdefs.h.  */
6952
6953 #include <stdio.h>
6954 #include <string.h>
6955 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6956    dollar expansion (possibly an autoconf bug).  */
6957 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6958 static char buf[100];
6959 int main ()
6960 {
6961   sprintf (buf, format, 33, 55);
6962   return (strcmp (buf, "55 33") != 0);
6963 }
6964 _ACEOF
6965 if ac_fn_c_try_run "$LINENO"; then :
6966   gt_cv_func_printf_posix=yes
6967 else
6968   gt_cv_func_printf_posix=no
6969 fi
6970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6971   conftest.$ac_objext conftest.beam conftest.$ac_ext
6972 fi
6973
6974
6975 fi
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6977 $as_echo "$gt_cv_func_printf_posix" >&6; }
6978   case $gt_cv_func_printf_posix in
6979     *yes)
6980
6981 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6982
6983       ;;
6984   esac
6985
6986 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6987 # for constant arguments.  Useless!
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6989 $as_echo_n "checking for working alloca.h... " >&6; }
6990 if test "${ac_cv_working_alloca_h+set}" = set; then :
6991   $as_echo_n "(cached) " >&6
6992 else
6993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994 /* end confdefs.h.  */
6995 #include <alloca.h>
6996 int
6997 main ()
6998 {
6999 char *p = (char *) alloca (2 * sizeof (int));
7000                           if (p) return 0;
7001   ;
7002   return 0;
7003 }
7004 _ACEOF
7005 if ac_fn_c_try_link "$LINENO"; then :
7006   ac_cv_working_alloca_h=yes
7007 else
7008   ac_cv_working_alloca_h=no
7009 fi
7010 rm -f core conftest.err conftest.$ac_objext \
7011     conftest$ac_exeext conftest.$ac_ext
7012 fi
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7014 $as_echo "$ac_cv_working_alloca_h" >&6; }
7015 if test $ac_cv_working_alloca_h = yes; then
7016
7017 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7018
7019 fi
7020
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7022 $as_echo_n "checking for alloca... " >&6; }
7023 if test "${ac_cv_func_alloca_works+set}" = set; then :
7024   $as_echo_n "(cached) " >&6
7025 else
7026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h.  */
7028 #ifdef __GNUC__
7029 # define alloca __builtin_alloca
7030 #else
7031 # ifdef _MSC_VER
7032 #  include <malloc.h>
7033 #  define alloca _alloca
7034 # else
7035 #  ifdef HAVE_ALLOCA_H
7036 #   include <alloca.h>
7037 #  else
7038 #   ifdef _AIX
7039  #pragma alloca
7040 #   else
7041 #    ifndef alloca /* predefined by HP cc +Olibcalls */
7042 char *alloca ();
7043 #    endif
7044 #   endif
7045 #  endif
7046 # endif
7047 #endif
7048
7049 int
7050 main ()
7051 {
7052 char *p = (char *) alloca (1);
7053                                     if (p) return 0;
7054   ;
7055   return 0;
7056 }
7057 _ACEOF
7058 if ac_fn_c_try_link "$LINENO"; then :
7059   ac_cv_func_alloca_works=yes
7060 else
7061   ac_cv_func_alloca_works=no
7062 fi
7063 rm -f core conftest.err conftest.$ac_objext \
7064     conftest$ac_exeext conftest.$ac_ext
7065 fi
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7067 $as_echo "$ac_cv_func_alloca_works" >&6; }
7068
7069 if test $ac_cv_func_alloca_works = yes; then
7070
7071 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7072
7073 else
7074   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7075 # that cause trouble.  Some versions do not even contain alloca or
7076 # contain a buggy version.  If you still want to use their alloca,
7077 # use ar to extract alloca.o from them instead of compiling alloca.c.
7078
7079 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7080
7081 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7082
7083
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7085 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7086 if test "${ac_cv_os_cray+set}" = set; then :
7087   $as_echo_n "(cached) " >&6
7088 else
7089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7090 /* end confdefs.h.  */
7091 #if defined CRAY && ! defined CRAY2
7092 webecray
7093 #else
7094 wenotbecray
7095 #endif
7096
7097 _ACEOF
7098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7099   $EGREP "webecray" >/dev/null 2>&1; then :
7100   ac_cv_os_cray=yes
7101 else
7102   ac_cv_os_cray=no
7103 fi
7104 rm -f conftest*
7105
7106 fi
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7108 $as_echo "$ac_cv_os_cray" >&6; }
7109 if test $ac_cv_os_cray = yes; then
7110   for ac_func in _getb67 GETB67 getb67; do
7111     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7112 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7113 eval as_val=\$$as_ac_var
7114    if test "x$as_val" = x""yes; then :
7115
7116 cat >>confdefs.h <<_ACEOF
7117 #define CRAY_STACKSEG_END $ac_func
7118 _ACEOF
7119
7120     break
7121 fi
7122
7123   done
7124 fi
7125
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7127 $as_echo_n "checking stack direction for C alloca... " >&6; }
7128 if test "${ac_cv_c_stack_direction+set}" = set; then :
7129   $as_echo_n "(cached) " >&6
7130 else
7131   if test "$cross_compiling" = yes; then :
7132   ac_cv_c_stack_direction=0
7133 else
7134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135 /* end confdefs.h.  */
7136 $ac_includes_default
7137 int
7138 find_stack_direction ()
7139 {
7140   static char *addr = 0;
7141   auto char dummy;
7142   if (addr == 0)
7143     {
7144       addr = &dummy;
7145       return find_stack_direction ();
7146     }
7147   else
7148     return (&dummy > addr) ? 1 : -1;
7149 }
7150
7151 int
7152 main ()
7153 {
7154   return find_stack_direction () < 0;
7155 }
7156 _ACEOF
7157 if ac_fn_c_try_run "$LINENO"; then :
7158   ac_cv_c_stack_direction=1
7159 else
7160   ac_cv_c_stack_direction=-1
7161 fi
7162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7163   conftest.$ac_objext conftest.beam conftest.$ac_ext
7164 fi
7165
7166 fi
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7168 $as_echo "$ac_cv_c_stack_direction" >&6; }
7169 cat >>confdefs.h <<_ACEOF
7170 #define STACK_DIRECTION $ac_cv_c_stack_direction
7171 _ACEOF
7172
7173
7174 fi
7175
7176
7177
7178
7179   for ac_header in $ac_header_list
7180 do :
7181   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7182 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7183 "
7184 eval as_val=\$$as_ac_Header
7185    if test "x$as_val" = x""yes; then :
7186   cat >>confdefs.h <<_ACEOF
7187 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7188 _ACEOF
7189
7190 fi
7191
7192 done
7193
7194
7195
7196
7197
7198
7199
7200
7201 for ac_func in getpagesize
7202 do :
7203   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7204 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7205   cat >>confdefs.h <<_ACEOF
7206 #define HAVE_GETPAGESIZE 1
7207 _ACEOF
7208
7209 fi
7210 done
7211
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7213 $as_echo_n "checking for working mmap... " >&6; }
7214 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7215   $as_echo_n "(cached) " >&6
7216 else
7217   if test "$cross_compiling" = yes; then :
7218   ac_cv_func_mmap_fixed_mapped=no
7219 else
7220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h.  */
7222 $ac_includes_default
7223 /* malloc might have been renamed as rpl_malloc. */
7224 #undef malloc
7225
7226 /* Thanks to Mike Haertel and Jim Avera for this test.
7227    Here is a matrix of mmap possibilities:
7228         mmap private not fixed
7229         mmap private fixed at somewhere currently unmapped
7230         mmap private fixed at somewhere already mapped
7231         mmap shared not fixed
7232         mmap shared fixed at somewhere currently unmapped
7233         mmap shared fixed at somewhere already mapped
7234    For private mappings, we should verify that changes cannot be read()
7235    back from the file, nor mmap's back from the file at a different
7236    address.  (There have been systems where private was not correctly
7237    implemented like the infamous i386 svr4.0, and systems where the
7238    VM page cache was not coherent with the file system buffer cache
7239    like early versions of FreeBSD and possibly contemporary NetBSD.)
7240    For shared mappings, we should conversely verify that changes get
7241    propagated back to all the places they're supposed to be.
7242
7243    Grep wants private fixed already mapped.
7244    The main things grep needs to know about mmap are:
7245    * does it exist and is it safe to write into the mmap'd area
7246    * how to use it (BSD variants)  */
7247
7248 #include <fcntl.h>
7249 #include <sys/mman.h>
7250
7251 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7252 char *malloc ();
7253 #endif
7254
7255 /* This mess was copied from the GNU getpagesize.h.  */
7256 #ifndef HAVE_GETPAGESIZE
7257 # ifdef _SC_PAGESIZE
7258 #  define getpagesize() sysconf(_SC_PAGESIZE)
7259 # else /* no _SC_PAGESIZE */
7260 #  ifdef HAVE_SYS_PARAM_H
7261 #   include <sys/param.h>
7262 #   ifdef EXEC_PAGESIZE
7263 #    define getpagesize() EXEC_PAGESIZE
7264 #   else /* no EXEC_PAGESIZE */
7265 #    ifdef NBPG
7266 #     define getpagesize() NBPG * CLSIZE
7267 #     ifndef CLSIZE
7268 #      define CLSIZE 1
7269 #     endif /* no CLSIZE */
7270 #    else /* no NBPG */
7271 #     ifdef NBPC
7272 #      define getpagesize() NBPC
7273 #     else /* no NBPC */
7274 #      ifdef PAGESIZE
7275 #       define getpagesize() PAGESIZE
7276 #      endif /* PAGESIZE */
7277 #     endif /* no NBPC */
7278 #    endif /* no NBPG */
7279 #   endif /* no EXEC_PAGESIZE */
7280 #  else /* no HAVE_SYS_PARAM_H */
7281 #   define getpagesize() 8192   /* punt totally */
7282 #  endif /* no HAVE_SYS_PARAM_H */
7283 # endif /* no _SC_PAGESIZE */
7284
7285 #endif /* no HAVE_GETPAGESIZE */
7286
7287 int
7288 main ()
7289 {
7290   char *data, *data2, *data3;
7291   const char *cdata2;
7292   int i, pagesize;
7293   int fd, fd2;
7294
7295   pagesize = getpagesize ();
7296
7297   /* First, make a file with some known garbage in it. */
7298   data = (char *) malloc (pagesize);
7299   if (!data)
7300     return 1;
7301   for (i = 0; i < pagesize; ++i)
7302     *(data + i) = rand ();
7303   umask (0);
7304   fd = creat ("conftest.mmap", 0600);
7305   if (fd < 0)
7306     return 2;
7307   if (write (fd, data, pagesize) != pagesize)
7308     return 3;
7309   close (fd);
7310
7311   /* Next, check that the tail of a page is zero-filled.  File must have
7312      non-zero length, otherwise we risk SIGBUS for entire page.  */
7313   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7314   if (fd2 < 0)
7315     return 4;
7316   cdata2 = "";
7317   if (write (fd2, cdata2, 1) != 1)
7318     return 5;
7319   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7320   if (data2 == MAP_FAILED)
7321     return 6;
7322   for (i = 0; i < pagesize; ++i)
7323     if (*(data2 + i))
7324       return 7;
7325   close (fd2);
7326   if (munmap (data2, pagesize))
7327     return 8;
7328
7329   /* Next, try to mmap the file at a fixed address which already has
7330      something else allocated at it.  If we can, also make sure that
7331      we see the same garbage.  */
7332   fd = open ("conftest.mmap", O_RDWR);
7333   if (fd < 0)
7334     return 9;
7335   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7336                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7337     return 10;
7338   for (i = 0; i < pagesize; ++i)
7339     if (*(data + i) != *(data2 + i))
7340       return 11;
7341
7342   /* Finally, make sure that changes to the mapped area do not
7343      percolate back to the file as seen by read().  (This is a bug on
7344      some variants of i386 svr4.0.)  */
7345   for (i = 0; i < pagesize; ++i)
7346     *(data2 + i) = *(data2 + i) + 1;
7347   data3 = (char *) malloc (pagesize);
7348   if (!data3)
7349     return 12;
7350   if (read (fd, data3, pagesize) != pagesize)
7351     return 13;
7352   for (i = 0; i < pagesize; ++i)
7353     if (*(data + i) != *(data3 + i))
7354       return 14;
7355   close (fd);
7356   return 0;
7357 }
7358 _ACEOF
7359 if ac_fn_c_try_run "$LINENO"; then :
7360   ac_cv_func_mmap_fixed_mapped=yes
7361 else
7362   ac_cv_func_mmap_fixed_mapped=no
7363 fi
7364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7365   conftest.$ac_objext conftest.beam conftest.$ac_ext
7366 fi
7367
7368 fi
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7370 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7371 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7372
7373 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7374
7375 fi
7376 rm -f conftest.mmap conftest.txt
7377
7378
7379     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7380 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7381 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7382   $as_echo_n "(cached) " >&6
7383 else
7384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h.  */
7386
7387 #include <features.h>
7388 #ifdef __GNU_LIBRARY__
7389  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7390   Lucky GNU user
7391  #endif
7392 #endif
7393
7394 _ACEOF
7395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7396   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7397   ac_cv_gnu_library_2_1=yes
7398 else
7399   ac_cv_gnu_library_2_1=no
7400 fi
7401 rm -f conftest*
7402
7403
7404
7405 fi
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7407 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7408
7409     GLIBC21="$ac_cv_gnu_library_2_1"
7410
7411
7412
7413
7414   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7415 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7416 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
7417   $as_echo_n "(cached) " >&6
7418 else
7419
7420       if test "$cross_compiling" = yes; then :
7421
7422           # Guess based on the CPU.
7423           case "$host_cpu" in
7424             alpha* | i3456786 | m68k | s390*)
7425               gt_cv_int_divbyzero_sigfpe="guessing yes";;
7426             *)
7427               gt_cv_int_divbyzero_sigfpe="guessing no";;
7428           esac
7429
7430 else
7431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h.  */
7433
7434 #include <stdlib.h>
7435 #include <signal.h>
7436
7437 static void
7438 #ifdef __cplusplus
7439 sigfpe_handler (int sig)
7440 #else
7441 sigfpe_handler (sig) int sig;
7442 #endif
7443 {
7444   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7445   exit (sig != SIGFPE);
7446 }
7447
7448 int x = 1;
7449 int y = 0;
7450 int z;
7451 int nan;
7452
7453 int main ()
7454 {
7455   signal (SIGFPE, sigfpe_handler);
7456 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7457 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7458   signal (SIGTRAP, sigfpe_handler);
7459 #endif
7460 /* Linux/SPARC yields signal SIGILL.  */
7461 #if defined (__sparc__) && defined (__linux__)
7462   signal (SIGILL, sigfpe_handler);
7463 #endif
7464
7465   z = x / y;
7466   nan = y / y;
7467   exit (1);
7468 }
7469
7470 _ACEOF
7471 if ac_fn_c_try_run "$LINENO"; then :
7472   gt_cv_int_divbyzero_sigfpe=yes
7473 else
7474   gt_cv_int_divbyzero_sigfpe=no
7475 fi
7476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7477   conftest.$ac_objext conftest.beam conftest.$ac_ext
7478 fi
7479
7480
7481 fi
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7483 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7484   case "$gt_cv_int_divbyzero_sigfpe" in
7485     *yes) value=1;;
7486     *) value=0;;
7487   esac
7488
7489 cat >>confdefs.h <<_ACEOF
7490 #define INTDIV0_RAISES_SIGFPE $value
7491 _ACEOF
7492
7493
7494
7495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7496 $as_echo_n "checking for unsigned long long... " >&6; }
7497 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
7498   $as_echo_n "(cached) " >&6
7499 else
7500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7501 /* end confdefs.h.  */
7502 unsigned long long ull = 1ULL; int i = 63;
7503 int
7504 main ()
7505 {
7506 unsigned long long ullmax = (unsigned long long) -1;
7507      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7508   ;
7509   return 0;
7510 }
7511 _ACEOF
7512 if ac_fn_c_try_link "$LINENO"; then :
7513   ac_cv_type_unsigned_long_long=yes
7514 else
7515   ac_cv_type_unsigned_long_long=no
7516 fi
7517 rm -f core conftest.err conftest.$ac_objext \
7518     conftest$ac_exeext conftest.$ac_ext
7519 fi
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7521 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7522   if test $ac_cv_type_unsigned_long_long = yes; then
7523
7524 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7525
7526   fi
7527
7528
7529
7530
7531   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7532
7533     test $ac_cv_type_unsigned_long_long = yes \
7534       && ac_type='unsigned long long' \
7535       || ac_type='unsigned long'
7536
7537 cat >>confdefs.h <<_ACEOF
7538 #define uintmax_t $ac_type
7539 _ACEOF
7540
7541   else
7542
7543 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7544
7545   fi
7546
7547
7548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7549 $as_echo_n "checking for inttypes.h... " >&6; }
7550 if test "${gt_cv_header_inttypes_h+set}" = set; then :
7551   $as_echo_n "(cached) " >&6
7552 else
7553
7554     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h.  */
7556 #include <sys/types.h>
7557 #include <inttypes.h>
7558 int
7559 main ()
7560 {
7561
7562   ;
7563   return 0;
7564 }
7565 _ACEOF
7566 if ac_fn_c_try_compile "$LINENO"; then :
7567   gt_cv_header_inttypes_h=yes
7568 else
7569   gt_cv_header_inttypes_h=no
7570 fi
7571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7572
7573 fi
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7575 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7576   if test $gt_cv_header_inttypes_h = yes; then
7577
7578 cat >>confdefs.h <<_ACEOF
7579 #define HAVE_INTTYPES_H 1
7580 _ACEOF
7581
7582   fi
7583
7584
7585
7586   if test $gt_cv_header_inttypes_h = yes; then
7587     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7588 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7589 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7590   $as_echo_n "(cached) " >&6
7591 else
7592
7593         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h.  */
7595 #include <inttypes.h>
7596 #ifdef PRId32
7597 char *p = PRId32;
7598 #endif
7599
7600 int
7601 main ()
7602 {
7603
7604   ;
7605   return 0;
7606 }
7607 _ACEOF
7608 if ac_fn_c_try_compile "$LINENO"; then :
7609   gt_cv_inttypes_pri_broken=no
7610 else
7611   gt_cv_inttypes_pri_broken=yes
7612 fi
7613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7614
7615 fi
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7617 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7618   fi
7619   if test "$gt_cv_inttypes_pri_broken" = yes; then
7620
7621 cat >>confdefs.h <<_ACEOF
7622 #define PRI_MACROS_BROKEN 1
7623 _ACEOF
7624
7625   fi
7626
7627
7628   for ac_header in stdint.h
7629 do :
7630   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7631 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7632   cat >>confdefs.h <<_ACEOF
7633 #define HAVE_STDINT_H 1
7634 _ACEOF
7635
7636 fi
7637
7638 done
7639
7640     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7641 $as_echo_n "checking for SIZE_MAX... " >&6; }
7642   result=
7643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h.  */
7645
7646 #include <limits.h>
7647 #if HAVE_STDINT_H
7648 #include <stdint.h>
7649 #endif
7650 #ifdef SIZE_MAX
7651 Found it
7652 #endif
7653
7654 _ACEOF
7655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7656   $EGREP "Found it" >/dev/null 2>&1; then :
7657   result=yes
7658 fi
7659 rm -f conftest*
7660
7661   if test -z "$result"; then
7662                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
7663
7664 else
7665   result=?
7666 fi
7667
7668
7669     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
7670
7671 else
7672   result=?
7673 fi
7674
7675
7676     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
7677
7678 else
7679   result=?
7680 fi
7681
7682
7683     if test "$fits_in_uint" = 1; then
7684                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7685 /* end confdefs.h.  */
7686 #include <stddef.h>
7687         extern size_t foo;
7688         extern unsigned long foo;
7689
7690 int
7691 main ()
7692 {
7693
7694   ;
7695   return 0;
7696 }
7697 _ACEOF
7698 if ac_fn_c_try_compile "$LINENO"; then :
7699   fits_in_uint=0
7700 fi
7701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7702     fi
7703     if test -z "$result"; then
7704       if test "$fits_in_uint" = 1; then
7705         result="$res_hi$res_lo"U
7706       else
7707         result="$res_hi$res_lo"UL
7708       fi
7709     else
7710             result='~(size_t)0'
7711     fi
7712   fi
7713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7714 $as_echo "$result" >&6; }
7715   if test "$result" != yes; then
7716
7717 cat >>confdefs.h <<_ACEOF
7718 #define SIZE_MAX $result
7719 _ACEOF
7720
7721   fi
7722
7723
7724
7725   for ac_header in stdint.h
7726 do :
7727   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7728 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7729   cat >>confdefs.h <<_ACEOF
7730 #define HAVE_STDINT_H 1
7731 _ACEOF
7732
7733 fi
7734
7735 done
7736
7737
7738
7739       if test "X$prefix" = "XNONE"; then
7740     acl_final_prefix="$ac_default_prefix"
7741   else
7742     acl_final_prefix="$prefix"
7743   fi
7744   if test "X$exec_prefix" = "XNONE"; then
7745     acl_final_exec_prefix='${prefix}'
7746   else
7747     acl_final_exec_prefix="$exec_prefix"
7748   fi
7749   acl_save_prefix="$prefix"
7750   prefix="$acl_final_prefix"
7751   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7752   prefix="$acl_save_prefix"
7753
7754
7755 # Check whether --with-gnu-ld was given.
7756 if test "${with_gnu_ld+set}" = set; then :
7757   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7758 else
7759   with_gnu_ld=no
7760 fi
7761
7762 # Prepare PATH_SEPARATOR.
7763 # The user is always right.
7764 if test "${PATH_SEPARATOR+set}" != set; then
7765   echo "#! /bin/sh" >conf$$.sh
7766   echo  "exit 0"   >>conf$$.sh
7767   chmod +x conf$$.sh
7768   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7769     PATH_SEPARATOR=';'
7770   else
7771     PATH_SEPARATOR=:
7772   fi
7773   rm -f conf$$.sh
7774 fi
7775 ac_prog=ld
7776 if test "$GCC" = yes; then
7777   # Check if gcc -print-prog-name=ld gives a path.
7778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7779 $as_echo_n "checking for ld used by GCC... " >&6; }
7780   case $host in
7781   *-*-mingw*)
7782     # gcc leaves a trailing carriage return which upsets mingw
7783     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7784   *)
7785     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7786   esac
7787   case $ac_prog in
7788     # Accept absolute paths.
7789     [\\/]* | [A-Za-z]:[\\/]*)
7790       re_direlt='/[^/][^/]*/\.\./'
7791       # Canonicalize the path of ld
7792       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7793       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7794         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7795       done
7796       test -z "$LD" && LD="$ac_prog"
7797       ;;
7798   "")
7799     # If it fails, then pretend we aren't using GCC.
7800     ac_prog=ld
7801     ;;
7802   *)
7803     # If it is relative, then search for the first ld in PATH.
7804     with_gnu_ld=unknown
7805     ;;
7806   esac
7807 elif test "$with_gnu_ld" = yes; then
7808   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7809 $as_echo_n "checking for GNU ld... " >&6; }
7810 else
7811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7812 $as_echo_n "checking for non-GNU ld... " >&6; }
7813 fi
7814 if test "${acl_cv_path_LD+set}" = set; then :
7815   $as_echo_n "(cached) " >&6
7816 else
7817   if test -z "$LD"; then
7818   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7819   for ac_dir in $PATH; do
7820     test -z "$ac_dir" && ac_dir=.
7821     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7822       acl_cv_path_LD="$ac_dir/$ac_prog"
7823       # Check to see if the program is GNU ld.  I'd rather use --version,
7824       # but apparently some GNU ld's only accept -v.
7825       # Break only if it was the GNU/non-GNU ld that we prefer.
7826       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7827       *GNU* | *'with BFD'*)
7828         test "$with_gnu_ld" != no && break ;;
7829       *)
7830         test "$with_gnu_ld" != yes && break ;;
7831       esac
7832     fi
7833   done
7834   IFS="$ac_save_ifs"
7835 else
7836   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7837 fi
7838 fi
7839
7840 LD="$acl_cv_path_LD"
7841 if test -n "$LD"; then
7842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7843 $as_echo "$LD" >&6; }
7844 else
7845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7846 $as_echo "no" >&6; }
7847 fi
7848 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7850 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7851 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7852   $as_echo_n "(cached) " >&6
7853 else
7854   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7855 case `$LD -v 2>&1 </dev/null` in
7856 *GNU* | *'with BFD'*)
7857   acl_cv_prog_gnu_ld=yes ;;
7858 *)
7859   acl_cv_prog_gnu_ld=no ;;
7860 esac
7861 fi
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7863 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7864 with_gnu_ld=$acl_cv_prog_gnu_ld
7865
7866
7867
7868                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7869 $as_echo_n "checking for shared library run path origin... " >&6; }
7870 if test "${acl_cv_rpath+set}" = set; then :
7871   $as_echo_n "(cached) " >&6
7872 else
7873
7874     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7875     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7876     . ./conftest.sh
7877     rm -f ./conftest.sh
7878     acl_cv_rpath=done
7879
7880 fi
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7882 $as_echo "$acl_cv_rpath" >&6; }
7883   wl="$acl_cv_wl"
7884   libext="$acl_cv_libext"
7885   shlibext="$acl_cv_shlibext"
7886   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7887   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7888   hardcode_direct="$acl_cv_hardcode_direct"
7889   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7890     # Check whether --enable-rpath was given.
7891 if test "${enable_rpath+set}" = set; then :
7892   enableval=$enable_rpath; :
7893 else
7894   enable_rpath=yes
7895 fi
7896
7897
7898
7899
7900
7901
7902
7903
7904     use_additional=yes
7905
7906   acl_save_prefix="$prefix"
7907   prefix="$acl_final_prefix"
7908   acl_save_exec_prefix="$exec_prefix"
7909   exec_prefix="$acl_final_exec_prefix"
7910
7911     eval additional_includedir=\"$includedir\"
7912     eval additional_libdir=\"$libdir\"
7913
7914   exec_prefix="$acl_save_exec_prefix"
7915   prefix="$acl_save_prefix"
7916
7917
7918 # Check whether --with-libiconv-prefix was given.
7919 if test "${with_libiconv_prefix+set}" = set; then :
7920   withval=$with_libiconv_prefix;
7921     if test "X$withval" = "Xno"; then
7922       use_additional=no
7923     else
7924       if test "X$withval" = "X"; then
7925
7926   acl_save_prefix="$prefix"
7927   prefix="$acl_final_prefix"
7928   acl_save_exec_prefix="$exec_prefix"
7929   exec_prefix="$acl_final_exec_prefix"
7930
7931           eval additional_includedir=\"$includedir\"
7932           eval additional_libdir=\"$libdir\"
7933
7934   exec_prefix="$acl_save_exec_prefix"
7935   prefix="$acl_save_prefix"
7936
7937       else
7938         additional_includedir="$withval/include"
7939         additional_libdir="$withval/lib"
7940       fi
7941     fi
7942
7943 fi
7944
7945       LIBICONV=
7946   LTLIBICONV=
7947   INCICONV=
7948   rpathdirs=
7949   ltrpathdirs=
7950   names_already_handled=
7951   names_next_round='iconv '
7952   while test -n "$names_next_round"; do
7953     names_this_round="$names_next_round"
7954     names_next_round=
7955     for name in $names_this_round; do
7956       already_handled=
7957       for n in $names_already_handled; do
7958         if test "$n" = "$name"; then
7959           already_handled=yes
7960           break
7961         fi
7962       done
7963       if test -z "$already_handled"; then
7964         names_already_handled="$names_already_handled $name"
7965                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7966         eval value=\"\$HAVE_LIB$uppername\"
7967         if test -n "$value"; then
7968           if test "$value" = yes; then
7969             eval value=\"\$LIB$uppername\"
7970             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7971             eval value=\"\$LTLIB$uppername\"
7972             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7973           else
7974                                     :
7975           fi
7976         else
7977                               found_dir=
7978           found_la=
7979           found_so=
7980           found_a=
7981           if test $use_additional = yes; then
7982             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7983               found_dir="$additional_libdir"
7984               found_so="$additional_libdir/lib$name.$shlibext"
7985               if test -f "$additional_libdir/lib$name.la"; then
7986                 found_la="$additional_libdir/lib$name.la"
7987               fi
7988             else
7989               if test -f "$additional_libdir/lib$name.$libext"; then
7990                 found_dir="$additional_libdir"
7991                 found_a="$additional_libdir/lib$name.$libext"
7992                 if test -f "$additional_libdir/lib$name.la"; then
7993                   found_la="$additional_libdir/lib$name.la"
7994                 fi
7995               fi
7996             fi
7997           fi
7998           if test "X$found_dir" = "X"; then
7999             for x in $LDFLAGS $LTLIBICONV; do
8000
8001   acl_save_prefix="$prefix"
8002   prefix="$acl_final_prefix"
8003   acl_save_exec_prefix="$exec_prefix"
8004   exec_prefix="$acl_final_exec_prefix"
8005   eval x=\"$x\"
8006   exec_prefix="$acl_save_exec_prefix"
8007   prefix="$acl_save_prefix"
8008
8009               case "$x" in
8010                 -L*)
8011                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8012                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8013                     found_dir="$dir"
8014                     found_so="$dir/lib$name.$shlibext"
8015                     if test -f "$dir/lib$name.la"; then
8016                       found_la="$dir/lib$name.la"
8017                     fi
8018                   else
8019                     if test -f "$dir/lib$name.$libext"; then
8020                       found_dir="$dir"
8021                       found_a="$dir/lib$name.$libext"
8022                       if test -f "$dir/lib$name.la"; then
8023                         found_la="$dir/lib$name.la"
8024                       fi
8025                     fi
8026                   fi
8027                   ;;
8028               esac
8029               if test "X$found_dir" != "X"; then
8030                 break
8031               fi
8032             done
8033           fi
8034           if test "X$found_dir" != "X"; then
8035                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8036             if test "X$found_so" != "X"; then
8037                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8038                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8039               else
8040                                                                                 haveit=
8041                 for x in $ltrpathdirs; do
8042                   if test "X$x" = "X$found_dir"; then
8043                     haveit=yes
8044                     break
8045                   fi
8046                 done
8047                 if test -z "$haveit"; then
8048                   ltrpathdirs="$ltrpathdirs $found_dir"
8049                 fi
8050                                 if test "$hardcode_direct" = yes; then
8051                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8052                 else
8053                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8054                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8055                                                             haveit=
8056                     for x in $rpathdirs; do
8057                       if test "X$x" = "X$found_dir"; then
8058                         haveit=yes
8059                         break
8060                       fi
8061                     done
8062                     if test -z "$haveit"; then
8063                       rpathdirs="$rpathdirs $found_dir"
8064                     fi
8065                   else
8066                                                                                 haveit=
8067                     for x in $LDFLAGS $LIBICONV; do
8068
8069   acl_save_prefix="$prefix"
8070   prefix="$acl_final_prefix"
8071   acl_save_exec_prefix="$exec_prefix"
8072   exec_prefix="$acl_final_exec_prefix"
8073   eval x=\"$x\"
8074   exec_prefix="$acl_save_exec_prefix"
8075   prefix="$acl_save_prefix"
8076
8077                       if test "X$x" = "X-L$found_dir"; then
8078                         haveit=yes
8079                         break
8080                       fi
8081                     done
8082                     if test -z "$haveit"; then
8083                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8084                     fi
8085                     if test "$hardcode_minus_L" != no; then
8086                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8087                     else
8088                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8089                     fi
8090                   fi
8091                 fi
8092               fi
8093             else
8094               if test "X$found_a" != "X"; then
8095                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8096               else
8097                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8098               fi
8099             fi
8100                         additional_includedir=
8101             case "$found_dir" in
8102               */lib | */lib/)
8103                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8104                 additional_includedir="$basedir/include"
8105                 ;;
8106             esac
8107             if test "X$additional_includedir" != "X"; then
8108                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8109                 haveit=
8110                 if test "X$additional_includedir" = "X/usr/local/include"; then
8111                   if test -n "$GCC"; then
8112                     case $host_os in
8113                       linux*) haveit=yes;;
8114                     esac
8115                   fi
8116                 fi
8117                 if test -z "$haveit"; then
8118                   for x in $CPPFLAGS $INCICONV; do
8119
8120   acl_save_prefix="$prefix"
8121   prefix="$acl_final_prefix"
8122   acl_save_exec_prefix="$exec_prefix"
8123   exec_prefix="$acl_final_exec_prefix"
8124   eval x=\"$x\"
8125   exec_prefix="$acl_save_exec_prefix"
8126   prefix="$acl_save_prefix"
8127
8128                     if test "X$x" = "X-I$additional_includedir"; then
8129                       haveit=yes
8130                       break
8131                     fi
8132                   done
8133                   if test -z "$haveit"; then
8134                     if test -d "$additional_includedir"; then
8135                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8136                     fi
8137                   fi
8138                 fi
8139               fi
8140             fi
8141                         if test -n "$found_la"; then
8142                                                         save_libdir="$libdir"
8143               case "$found_la" in
8144                 */* | *\\*) . "$found_la" ;;
8145                 *) . "./$found_la" ;;
8146               esac
8147               libdir="$save_libdir"
8148                             for dep in $dependency_libs; do
8149                 case "$dep" in
8150                   -L*)
8151                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8152                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8153                       haveit=
8154                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8155                         if test -n "$GCC"; then
8156                           case $host_os in
8157                             linux*) haveit=yes;;
8158                           esac
8159                         fi
8160                       fi
8161                       if test -z "$haveit"; then
8162                         haveit=
8163                         for x in $LDFLAGS $LIBICONV; do
8164
8165   acl_save_prefix="$prefix"
8166   prefix="$acl_final_prefix"
8167   acl_save_exec_prefix="$exec_prefix"
8168   exec_prefix="$acl_final_exec_prefix"
8169   eval x=\"$x\"
8170   exec_prefix="$acl_save_exec_prefix"
8171   prefix="$acl_save_prefix"
8172
8173                           if test "X$x" = "X-L$additional_libdir"; then
8174                             haveit=yes
8175                             break
8176                           fi
8177                         done
8178                         if test -z "$haveit"; then
8179                           if test -d "$additional_libdir"; then
8180                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8181                           fi
8182                         fi
8183                         haveit=
8184                         for x in $LDFLAGS $LTLIBICONV; do
8185
8186   acl_save_prefix="$prefix"
8187   prefix="$acl_final_prefix"
8188   acl_save_exec_prefix="$exec_prefix"
8189   exec_prefix="$acl_final_exec_prefix"
8190   eval x=\"$x\"
8191   exec_prefix="$acl_save_exec_prefix"
8192   prefix="$acl_save_prefix"
8193
8194                           if test "X$x" = "X-L$additional_libdir"; then
8195                             haveit=yes
8196                             break
8197                           fi
8198                         done
8199                         if test -z "$haveit"; then
8200                           if test -d "$additional_libdir"; then
8201                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8202                           fi
8203                         fi
8204                       fi
8205                     fi
8206                     ;;
8207                   -R*)
8208                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8209                     if test "$enable_rpath" != no; then
8210                                                                   haveit=
8211                       for x in $rpathdirs; do
8212                         if test "X$x" = "X$dir"; then
8213                           haveit=yes
8214                           break
8215                         fi
8216                       done
8217                       if test -z "$haveit"; then
8218                         rpathdirs="$rpathdirs $dir"
8219                       fi
8220                                                                   haveit=
8221                       for x in $ltrpathdirs; do
8222                         if test "X$x" = "X$dir"; then
8223                           haveit=yes
8224                           break
8225                         fi
8226                       done
8227                       if test -z "$haveit"; then
8228                         ltrpathdirs="$ltrpathdirs $dir"
8229                       fi
8230                     fi
8231                     ;;
8232                   -l*)
8233                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8234                     ;;
8235                   *.la)
8236                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8237                     ;;
8238                   *)
8239                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8240                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8241                     ;;
8242                 esac
8243               done
8244             fi
8245           else
8246                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8247             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8248           fi
8249         fi
8250       fi
8251     done
8252   done
8253   if test "X$rpathdirs" != "X"; then
8254     if test -n "$hardcode_libdir_separator"; then
8255                         alldirs=
8256       for found_dir in $rpathdirs; do
8257         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8258       done
8259             acl_save_libdir="$libdir"
8260       libdir="$alldirs"
8261       eval flag=\"$hardcode_libdir_flag_spec\"
8262       libdir="$acl_save_libdir"
8263       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8264     else
8265             for found_dir in $rpathdirs; do
8266         acl_save_libdir="$libdir"
8267         libdir="$found_dir"
8268         eval flag=\"$hardcode_libdir_flag_spec\"
8269         libdir="$acl_save_libdir"
8270         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8271       done
8272     fi
8273   fi
8274   if test "X$ltrpathdirs" != "X"; then
8275             for found_dir in $ltrpathdirs; do
8276       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8277     done
8278   fi
8279
8280
8281
8282
8283
8284
8285
8286
8287   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8288 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
8289
8290 else
8291
8292 $as_echo "#define ptrdiff_t long" >>confdefs.h
8293
8294
8295 fi
8296
8297   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8298 stdlib.h string.h unistd.h sys/param.h
8299 do :
8300   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8301 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8302 eval as_val=\$$as_ac_Header
8303    if test "x$as_val" = x""yes; then :
8304   cat >>confdefs.h <<_ACEOF
8305 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8306 _ACEOF
8307
8308 fi
8309
8310 done
8311
8312   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8313 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8314 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8315 __fsetlocking
8316 do :
8317   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8318 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8319 eval as_val=\$$as_ac_var
8320    if test "x$as_val" = x""yes; then :
8321   cat >>confdefs.h <<_ACEOF
8322 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8323 _ACEOF
8324
8325 fi
8326 done
8327
8328
8329
8330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8331 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8332 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
8333   $as_echo_n "(cached) " >&6
8334 else
8335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h.  */
8337 #include <stdio.h>
8338 int
8339 main ()
8340 {
8341
8342 #ifndef _snprintf
8343   char *p = (char *) _snprintf;
8344 #endif
8345
8346   ;
8347   return 0;
8348 }
8349 _ACEOF
8350 if ac_fn_c_try_compile "$LINENO"; then :
8351   ac_cv_have_decl__snprintf=yes
8352 else
8353   ac_cv_have_decl__snprintf=no
8354 fi
8355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8356 fi
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8358 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8359   if test $ac_cv_have_decl__snprintf = yes; then
8360     gt_value=1
8361   else
8362     gt_value=0
8363   fi
8364
8365 cat >>confdefs.h <<_ACEOF
8366 #define HAVE_DECL__SNPRINTF $gt_value
8367 _ACEOF
8368
8369
8370
8371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8372 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8373 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
8374   $as_echo_n "(cached) " >&6
8375 else
8376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377 /* end confdefs.h.  */
8378 #include <stdio.h>
8379 int
8380 main ()
8381 {
8382
8383 #ifndef _snwprintf
8384   char *p = (char *) _snwprintf;
8385 #endif
8386
8387   ;
8388   return 0;
8389 }
8390 _ACEOF
8391 if ac_fn_c_try_compile "$LINENO"; then :
8392   ac_cv_have_decl__snwprintf=yes
8393 else
8394   ac_cv_have_decl__snwprintf=no
8395 fi
8396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8397 fi
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8399 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8400   if test $ac_cv_have_decl__snwprintf = yes; then
8401     gt_value=1
8402   else
8403     gt_value=0
8404   fi
8405
8406 cat >>confdefs.h <<_ACEOF
8407 #define HAVE_DECL__SNWPRINTF $gt_value
8408 _ACEOF
8409
8410
8411
8412
8413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8414 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8415 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
8416   $as_echo_n "(cached) " >&6
8417 else
8418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8419 /* end confdefs.h.  */
8420 #include <stdio.h>
8421 int
8422 main ()
8423 {
8424
8425 #ifndef feof_unlocked
8426   char *p = (char *) feof_unlocked;
8427 #endif
8428
8429   ;
8430   return 0;
8431 }
8432 _ACEOF
8433 if ac_fn_c_try_compile "$LINENO"; then :
8434   ac_cv_have_decl_feof_unlocked=yes
8435 else
8436   ac_cv_have_decl_feof_unlocked=no
8437 fi
8438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8439 fi
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8441 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8442   if test $ac_cv_have_decl_feof_unlocked = yes; then
8443     gt_value=1
8444   else
8445     gt_value=0
8446   fi
8447
8448 cat >>confdefs.h <<_ACEOF
8449 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8450 _ACEOF
8451
8452
8453
8454   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8455 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8456 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
8457   $as_echo_n "(cached) " >&6
8458 else
8459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h.  */
8461 #include <stdio.h>
8462 int
8463 main ()
8464 {
8465
8466 #ifndef fgets_unlocked
8467   char *p = (char *) fgets_unlocked;
8468 #endif
8469
8470   ;
8471   return 0;
8472 }
8473 _ACEOF
8474 if ac_fn_c_try_compile "$LINENO"; then :
8475   ac_cv_have_decl_fgets_unlocked=yes
8476 else
8477   ac_cv_have_decl_fgets_unlocked=no
8478 fi
8479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8480 fi
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8482 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8483   if test $ac_cv_have_decl_fgets_unlocked = yes; then
8484     gt_value=1
8485   else
8486     gt_value=0
8487   fi
8488
8489 cat >>confdefs.h <<_ACEOF
8490 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8491 _ACEOF
8492
8493
8494
8495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8496 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8497 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
8498   $as_echo_n "(cached) " >&6
8499 else
8500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h.  */
8502 #include <stdio.h>
8503 int
8504 main ()
8505 {
8506
8507 #ifndef getc_unlocked
8508   char *p = (char *) getc_unlocked;
8509 #endif
8510
8511   ;
8512   return 0;
8513 }
8514 _ACEOF
8515 if ac_fn_c_try_compile "$LINENO"; then :
8516   ac_cv_have_decl_getc_unlocked=yes
8517 else
8518   ac_cv_have_decl_getc_unlocked=no
8519 fi
8520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8521 fi
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8523 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8524   if test $ac_cv_have_decl_getc_unlocked = yes; then
8525     gt_value=1
8526   else
8527     gt_value=0
8528   fi
8529
8530 cat >>confdefs.h <<_ACEOF
8531 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8532 _ACEOF
8533
8534
8535
8536   case $gt_cv_func_printf_posix in
8537     *yes) HAVE_POSIX_PRINTF=1 ;;
8538     *) HAVE_POSIX_PRINTF=0 ;;
8539   esac
8540
8541   if test "$ac_cv_func_asprintf" = yes; then
8542     HAVE_ASPRINTF=1
8543   else
8544     HAVE_ASPRINTF=0
8545   fi
8546
8547   if test "$ac_cv_func_snprintf" = yes; then
8548     HAVE_SNPRINTF=1
8549   else
8550     HAVE_SNPRINTF=0
8551   fi
8552
8553   if test "$ac_cv_func_wprintf" = yes; then
8554     HAVE_WPRINTF=1
8555   else
8556     HAVE_WPRINTF=0
8557   fi
8558
8559
8560
8561
8562
8563
8564
8565           am_save_CPPFLAGS="$CPPFLAGS"
8566
8567   for element in $INCICONV; do
8568     haveit=
8569     for x in $CPPFLAGS; do
8570
8571   acl_save_prefix="$prefix"
8572   prefix="$acl_final_prefix"
8573   acl_save_exec_prefix="$exec_prefix"
8574   exec_prefix="$acl_final_exec_prefix"
8575   eval x=\"$x\"
8576   exec_prefix="$acl_save_exec_prefix"
8577   prefix="$acl_save_prefix"
8578
8579       if test "X$x" = "X$element"; then
8580         haveit=yes
8581         break
8582       fi
8583     done
8584     if test -z "$haveit"; then
8585       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8586     fi
8587   done
8588
8589
8590   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8591 $as_echo_n "checking for iconv... " >&6; }
8592 if test "${am_cv_func_iconv+set}" = set; then :
8593   $as_echo_n "(cached) " >&6
8594 else
8595
8596     am_cv_func_iconv="no, consider installing GNU libiconv"
8597     am_cv_lib_iconv=no
8598     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h.  */
8600 #include <stdlib.h>
8601 #include <iconv.h>
8602 int
8603 main ()
8604 {
8605 iconv_t cd = iconv_open("","");
8606        iconv(cd,NULL,NULL,NULL,NULL);
8607        iconv_close(cd);
8608   ;
8609   return 0;
8610 }
8611 _ACEOF
8612 if ac_fn_c_try_link "$LINENO"; then :
8613   am_cv_func_iconv=yes
8614 fi
8615 rm -f core conftest.err conftest.$ac_objext \
8616     conftest$ac_exeext conftest.$ac_ext
8617     if test "$am_cv_func_iconv" != yes; then
8618       am_save_LIBS="$LIBS"
8619       LIBS="$LIBS $LIBICONV"
8620       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8621 /* end confdefs.h.  */
8622 #include <stdlib.h>
8623 #include <iconv.h>
8624 int
8625 main ()
8626 {
8627 iconv_t cd = iconv_open("","");
8628          iconv(cd,NULL,NULL,NULL,NULL);
8629          iconv_close(cd);
8630   ;
8631   return 0;
8632 }
8633 _ACEOF
8634 if ac_fn_c_try_link "$LINENO"; then :
8635   am_cv_lib_iconv=yes
8636         am_cv_func_iconv=yes
8637 fi
8638 rm -f core conftest.err conftest.$ac_objext \
8639     conftest$ac_exeext conftest.$ac_ext
8640       LIBS="$am_save_LIBS"
8641     fi
8642
8643 fi
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8645 $as_echo "$am_cv_func_iconv" >&6; }
8646   if test "$am_cv_func_iconv" = yes; then
8647
8648 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8649
8650   fi
8651   if test "$am_cv_lib_iconv" = yes; then
8652     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8653 $as_echo_n "checking how to link with libiconv... " >&6; }
8654     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8655 $as_echo "$LIBICONV" >&6; }
8656   else
8657             CPPFLAGS="$am_save_CPPFLAGS"
8658     LIBICONV=
8659     LTLIBICONV=
8660   fi
8661
8662
8663
8664   if test "$am_cv_func_iconv" = yes; then
8665     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8666 $as_echo_n "checking for iconv declaration... " >&6; }
8667     if test "${am_cv_proto_iconv+set}" = set; then :
8668   $as_echo_n "(cached) " >&6
8669 else
8670
8671       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h.  */
8673
8674 #include <stdlib.h>
8675 #include <iconv.h>
8676 extern
8677 #ifdef __cplusplus
8678 "C"
8679 #endif
8680 #if defined(__STDC__) || defined(__cplusplus)
8681 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8682 #else
8683 size_t iconv();
8684 #endif
8685
8686 int
8687 main ()
8688 {
8689
8690   ;
8691   return 0;
8692 }
8693 _ACEOF
8694 if ac_fn_c_try_compile "$LINENO"; then :
8695   am_cv_proto_iconv_arg1=""
8696 else
8697   am_cv_proto_iconv_arg1="const"
8698 fi
8699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8700       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);"
8701 fi
8702
8703     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8704     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8705          }$am_cv_proto_iconv" >&5
8706 $as_echo "${ac_t:-
8707          }$am_cv_proto_iconv" >&6; }
8708
8709 cat >>confdefs.h <<_ACEOF
8710 #define ICONV_CONST $am_cv_proto_iconv_arg1
8711 _ACEOF
8712
8713   fi
8714
8715
8716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8717 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8718 if test "${am_cv_langinfo_codeset+set}" = set; then :
8719   $as_echo_n "(cached) " >&6
8720 else
8721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8722 /* end confdefs.h.  */
8723 #include <langinfo.h>
8724 int
8725 main ()
8726 {
8727 char* cs = nl_langinfo(CODESET);
8728   ;
8729   return 0;
8730 }
8731 _ACEOF
8732 if ac_fn_c_try_link "$LINENO"; then :
8733   am_cv_langinfo_codeset=yes
8734 else
8735   am_cv_langinfo_codeset=no
8736 fi
8737 rm -f core conftest.err conftest.$ac_objext \
8738     conftest$ac_exeext conftest.$ac_ext
8739
8740 fi
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8742 $as_echo "$am_cv_langinfo_codeset" >&6; }
8743   if test $am_cv_langinfo_codeset = yes; then
8744
8745 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8746
8747   fi
8748
8749   if test $ac_cv_header_locale_h = yes; then
8750
8751   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8752 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8753 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
8754   $as_echo_n "(cached) " >&6
8755 else
8756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8757 /* end confdefs.h.  */
8758 #include <locale.h>
8759 int
8760 main ()
8761 {
8762 return LC_MESSAGES
8763   ;
8764   return 0;
8765 }
8766 _ACEOF
8767 if ac_fn_c_try_link "$LINENO"; then :
8768   am_cv_val_LC_MESSAGES=yes
8769 else
8770   am_cv_val_LC_MESSAGES=no
8771 fi
8772 rm -f core conftest.err conftest.$ac_objext \
8773     conftest$ac_exeext conftest.$ac_ext
8774 fi
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8776 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8777   if test $am_cv_val_LC_MESSAGES = yes; then
8778
8779 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8780
8781   fi
8782
8783   fi
8784
8785                       for ac_prog in bison
8786 do
8787   # Extract the first word of "$ac_prog", so it can be a program name with args.
8788 set dummy $ac_prog; ac_word=$2
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8790 $as_echo_n "checking for $ac_word... " >&6; }
8791 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
8792   $as_echo_n "(cached) " >&6
8793 else
8794   if test -n "$INTLBISON"; then
8795   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8796 else
8797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8798 for as_dir in $PATH
8799 do
8800   IFS=$as_save_IFS
8801   test -z "$as_dir" && as_dir=.
8802     for ac_exec_ext in '' $ac_executable_extensions; do
8803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8804     ac_cv_prog_INTLBISON="$ac_prog"
8805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8806     break 2
8807   fi
8808 done
8809   done
8810 IFS=$as_save_IFS
8811
8812 fi
8813 fi
8814 INTLBISON=$ac_cv_prog_INTLBISON
8815 if test -n "$INTLBISON"; then
8816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8817 $as_echo "$INTLBISON" >&6; }
8818 else
8819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8820 $as_echo "no" >&6; }
8821 fi
8822
8823
8824   test -n "$INTLBISON" && break
8825 done
8826
8827   if test -z "$INTLBISON"; then
8828     ac_verc_fail=yes
8829   else
8830         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8831 $as_echo_n "checking version of bison... " >&6; }
8832     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8833     case $ac_prog_version in
8834       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8835       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8836          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8837       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8838     esac
8839     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8840 $as_echo "$ac_prog_version" >&6; }
8841   fi
8842   if test $ac_verc_fail = yes; then
8843     INTLBISON=:
8844   fi
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8862 $as_echo_n "checking whether NLS is requested... " >&6; }
8863     # Check whether --enable-nls was given.
8864 if test "${enable_nls+set}" = set; then :
8865   enableval=$enable_nls; USE_NLS=$enableval
8866 else
8867   USE_NLS=yes
8868 fi
8869
8870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8871 $as_echo "$USE_NLS" >&6; }
8872
8873
8874
8875
8876     BUILD_INCLUDED_LIBINTL=no
8877     USE_INCLUDED_LIBINTL=no
8878
8879   LIBINTL=
8880   LTLIBINTL=
8881   POSUB=
8882
8883     if test "$USE_NLS" = "yes"; then
8884     gt_use_preinstalled_gnugettext=no
8885
8886       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8887 $as_echo_n "checking whether included gettext is requested... " >&6; }
8888
8889 # Check whether --with-included-gettext was given.
8890 if test "${with_included_gettext+set}" = set; then :
8891   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8892 else
8893   nls_cv_force_use_gnu_gettext=no
8894 fi
8895
8896       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8897 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8898
8899       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8900       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8901
8902
8903
8904
8905
8906
8907         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8908 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8909 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
8910   $as_echo_n "(cached) " >&6
8911 else
8912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h.  */
8914 #include <libintl.h>
8915 extern int _nl_msg_cat_cntr;
8916 extern int *_nl_domain_bindings;
8917 int
8918 main ()
8919 {
8920 bindtextdomain ("", "");
8921 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8922   ;
8923   return 0;
8924 }
8925 _ACEOF
8926 if ac_fn_c_try_link "$LINENO"; then :
8927   gt_cv_func_gnugettext1_libc=yes
8928 else
8929   gt_cv_func_gnugettext1_libc=no
8930 fi
8931 rm -f core conftest.err conftest.$ac_objext \
8932     conftest$ac_exeext conftest.$ac_ext
8933 fi
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8935 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8936
8937         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8938
8939
8940
8941     use_additional=yes
8942
8943   acl_save_prefix="$prefix"
8944   prefix="$acl_final_prefix"
8945   acl_save_exec_prefix="$exec_prefix"
8946   exec_prefix="$acl_final_exec_prefix"
8947
8948     eval additional_includedir=\"$includedir\"
8949     eval additional_libdir=\"$libdir\"
8950
8951   exec_prefix="$acl_save_exec_prefix"
8952   prefix="$acl_save_prefix"
8953
8954
8955 # Check whether --with-libintl-prefix was given.
8956 if test "${with_libintl_prefix+set}" = set; then :
8957   withval=$with_libintl_prefix;
8958     if test "X$withval" = "Xno"; then
8959       use_additional=no
8960     else
8961       if test "X$withval" = "X"; then
8962
8963   acl_save_prefix="$prefix"
8964   prefix="$acl_final_prefix"
8965   acl_save_exec_prefix="$exec_prefix"
8966   exec_prefix="$acl_final_exec_prefix"
8967
8968           eval additional_includedir=\"$includedir\"
8969           eval additional_libdir=\"$libdir\"
8970
8971   exec_prefix="$acl_save_exec_prefix"
8972   prefix="$acl_save_prefix"
8973
8974       else
8975         additional_includedir="$withval/include"
8976         additional_libdir="$withval/lib"
8977       fi
8978     fi
8979
8980 fi
8981
8982       LIBINTL=
8983   LTLIBINTL=
8984   INCINTL=
8985   rpathdirs=
8986   ltrpathdirs=
8987   names_already_handled=
8988   names_next_round='intl '
8989   while test -n "$names_next_round"; do
8990     names_this_round="$names_next_round"
8991     names_next_round=
8992     for name in $names_this_round; do
8993       already_handled=
8994       for n in $names_already_handled; do
8995         if test "$n" = "$name"; then
8996           already_handled=yes
8997           break
8998         fi
8999       done
9000       if test -z "$already_handled"; then
9001         names_already_handled="$names_already_handled $name"
9002                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9003         eval value=\"\$HAVE_LIB$uppername\"
9004         if test -n "$value"; then
9005           if test "$value" = yes; then
9006             eval value=\"\$LIB$uppername\"
9007             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9008             eval value=\"\$LTLIB$uppername\"
9009             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9010           else
9011                                     :
9012           fi
9013         else
9014                               found_dir=
9015           found_la=
9016           found_so=
9017           found_a=
9018           if test $use_additional = yes; then
9019             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9020               found_dir="$additional_libdir"
9021               found_so="$additional_libdir/lib$name.$shlibext"
9022               if test -f "$additional_libdir/lib$name.la"; then
9023                 found_la="$additional_libdir/lib$name.la"
9024               fi
9025             else
9026               if test -f "$additional_libdir/lib$name.$libext"; then
9027                 found_dir="$additional_libdir"
9028                 found_a="$additional_libdir/lib$name.$libext"
9029                 if test -f "$additional_libdir/lib$name.la"; then
9030                   found_la="$additional_libdir/lib$name.la"
9031                 fi
9032               fi
9033             fi
9034           fi
9035           if test "X$found_dir" = "X"; then
9036             for x in $LDFLAGS $LTLIBINTL; do
9037
9038   acl_save_prefix="$prefix"
9039   prefix="$acl_final_prefix"
9040   acl_save_exec_prefix="$exec_prefix"
9041   exec_prefix="$acl_final_exec_prefix"
9042   eval x=\"$x\"
9043   exec_prefix="$acl_save_exec_prefix"
9044   prefix="$acl_save_prefix"
9045
9046               case "$x" in
9047                 -L*)
9048                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9049                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9050                     found_dir="$dir"
9051                     found_so="$dir/lib$name.$shlibext"
9052                     if test -f "$dir/lib$name.la"; then
9053                       found_la="$dir/lib$name.la"
9054                     fi
9055                   else
9056                     if test -f "$dir/lib$name.$libext"; then
9057                       found_dir="$dir"
9058                       found_a="$dir/lib$name.$libext"
9059                       if test -f "$dir/lib$name.la"; then
9060                         found_la="$dir/lib$name.la"
9061                       fi
9062                     fi
9063                   fi
9064                   ;;
9065               esac
9066               if test "X$found_dir" != "X"; then
9067                 break
9068               fi
9069             done
9070           fi
9071           if test "X$found_dir" != "X"; then
9072                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9073             if test "X$found_so" != "X"; then
9074                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9075                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9076               else
9077                                                                                 haveit=
9078                 for x in $ltrpathdirs; do
9079                   if test "X$x" = "X$found_dir"; then
9080                     haveit=yes
9081                     break
9082                   fi
9083                 done
9084                 if test -z "$haveit"; then
9085                   ltrpathdirs="$ltrpathdirs $found_dir"
9086                 fi
9087                                 if test "$hardcode_direct" = yes; then
9088                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9089                 else
9090                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9091                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9092                                                             haveit=
9093                     for x in $rpathdirs; do
9094                       if test "X$x" = "X$found_dir"; then
9095                         haveit=yes
9096                         break
9097                       fi
9098                     done
9099                     if test -z "$haveit"; then
9100                       rpathdirs="$rpathdirs $found_dir"
9101                     fi
9102                   else
9103                                                                                 haveit=
9104                     for x in $LDFLAGS $LIBINTL; do
9105
9106   acl_save_prefix="$prefix"
9107   prefix="$acl_final_prefix"
9108   acl_save_exec_prefix="$exec_prefix"
9109   exec_prefix="$acl_final_exec_prefix"
9110   eval x=\"$x\"
9111   exec_prefix="$acl_save_exec_prefix"
9112   prefix="$acl_save_prefix"
9113
9114                       if test "X$x" = "X-L$found_dir"; then
9115                         haveit=yes
9116                         break
9117                       fi
9118                     done
9119                     if test -z "$haveit"; then
9120                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9121                     fi
9122                     if test "$hardcode_minus_L" != no; then
9123                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9124                     else
9125                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9126                     fi
9127                   fi
9128                 fi
9129               fi
9130             else
9131               if test "X$found_a" != "X"; then
9132                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9133               else
9134                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9135               fi
9136             fi
9137                         additional_includedir=
9138             case "$found_dir" in
9139               */lib | */lib/)
9140                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9141                 additional_includedir="$basedir/include"
9142                 ;;
9143             esac
9144             if test "X$additional_includedir" != "X"; then
9145                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9146                 haveit=
9147                 if test "X$additional_includedir" = "X/usr/local/include"; then
9148                   if test -n "$GCC"; then
9149                     case $host_os in
9150                       linux*) haveit=yes;;
9151                     esac
9152                   fi
9153                 fi
9154                 if test -z "$haveit"; then
9155                   for x in $CPPFLAGS $INCINTL; do
9156
9157   acl_save_prefix="$prefix"
9158   prefix="$acl_final_prefix"
9159   acl_save_exec_prefix="$exec_prefix"
9160   exec_prefix="$acl_final_exec_prefix"
9161   eval x=\"$x\"
9162   exec_prefix="$acl_save_exec_prefix"
9163   prefix="$acl_save_prefix"
9164
9165                     if test "X$x" = "X-I$additional_includedir"; then
9166                       haveit=yes
9167                       break
9168                     fi
9169                   done
9170                   if test -z "$haveit"; then
9171                     if test -d "$additional_includedir"; then
9172                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9173                     fi
9174                   fi
9175                 fi
9176               fi
9177             fi
9178                         if test -n "$found_la"; then
9179                                                         save_libdir="$libdir"
9180               case "$found_la" in
9181                 */* | *\\*) . "$found_la" ;;
9182                 *) . "./$found_la" ;;
9183               esac
9184               libdir="$save_libdir"
9185                             for dep in $dependency_libs; do
9186                 case "$dep" in
9187                   -L*)
9188                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9189                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9190                       haveit=
9191                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9192                         if test -n "$GCC"; then
9193                           case $host_os in
9194                             linux*) haveit=yes;;
9195                           esac
9196                         fi
9197                       fi
9198                       if test -z "$haveit"; then
9199                         haveit=
9200                         for x in $LDFLAGS $LIBINTL; do
9201
9202   acl_save_prefix="$prefix"
9203   prefix="$acl_final_prefix"
9204   acl_save_exec_prefix="$exec_prefix"
9205   exec_prefix="$acl_final_exec_prefix"
9206   eval x=\"$x\"
9207   exec_prefix="$acl_save_exec_prefix"
9208   prefix="$acl_save_prefix"
9209
9210                           if test "X$x" = "X-L$additional_libdir"; then
9211                             haveit=yes
9212                             break
9213                           fi
9214                         done
9215                         if test -z "$haveit"; then
9216                           if test -d "$additional_libdir"; then
9217                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9218                           fi
9219                         fi
9220                         haveit=
9221                         for x in $LDFLAGS $LTLIBINTL; do
9222
9223   acl_save_prefix="$prefix"
9224   prefix="$acl_final_prefix"
9225   acl_save_exec_prefix="$exec_prefix"
9226   exec_prefix="$acl_final_exec_prefix"
9227   eval x=\"$x\"
9228   exec_prefix="$acl_save_exec_prefix"
9229   prefix="$acl_save_prefix"
9230
9231                           if test "X$x" = "X-L$additional_libdir"; then
9232                             haveit=yes
9233                             break
9234                           fi
9235                         done
9236                         if test -z "$haveit"; then
9237                           if test -d "$additional_libdir"; then
9238                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9239                           fi
9240                         fi
9241                       fi
9242                     fi
9243                     ;;
9244                   -R*)
9245                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9246                     if test "$enable_rpath" != no; then
9247                                                                   haveit=
9248                       for x in $rpathdirs; do
9249                         if test "X$x" = "X$dir"; then
9250                           haveit=yes
9251                           break
9252                         fi
9253                       done
9254                       if test -z "$haveit"; then
9255                         rpathdirs="$rpathdirs $dir"
9256                       fi
9257                                                                   haveit=
9258                       for x in $ltrpathdirs; do
9259                         if test "X$x" = "X$dir"; then
9260                           haveit=yes
9261                           break
9262                         fi
9263                       done
9264                       if test -z "$haveit"; then
9265                         ltrpathdirs="$ltrpathdirs $dir"
9266                       fi
9267                     fi
9268                     ;;
9269                   -l*)
9270                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9271                     ;;
9272                   *.la)
9273                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9274                     ;;
9275                   *)
9276                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9277                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9278                     ;;
9279                 esac
9280               done
9281             fi
9282           else
9283                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9284             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9285           fi
9286         fi
9287       fi
9288     done
9289   done
9290   if test "X$rpathdirs" != "X"; then
9291     if test -n "$hardcode_libdir_separator"; then
9292                         alldirs=
9293       for found_dir in $rpathdirs; do
9294         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9295       done
9296             acl_save_libdir="$libdir"
9297       libdir="$alldirs"
9298       eval flag=\"$hardcode_libdir_flag_spec\"
9299       libdir="$acl_save_libdir"
9300       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9301     else
9302             for found_dir in $rpathdirs; do
9303         acl_save_libdir="$libdir"
9304         libdir="$found_dir"
9305         eval flag=\"$hardcode_libdir_flag_spec\"
9306         libdir="$acl_save_libdir"
9307         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9308       done
9309     fi
9310   fi
9311   if test "X$ltrpathdirs" != "X"; then
9312             for found_dir in $ltrpathdirs; do
9313       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9314     done
9315   fi
9316
9317           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9318 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9319 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
9320   $as_echo_n "(cached) " >&6
9321 else
9322   gt_save_CPPFLAGS="$CPPFLAGS"
9323             CPPFLAGS="$CPPFLAGS $INCINTL"
9324             gt_save_LIBS="$LIBS"
9325             LIBS="$LIBS $LIBINTL"
9326                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9327 /* end confdefs.h.  */
9328 #include <libintl.h>
9329 extern int _nl_msg_cat_cntr;
9330 extern
9331 #ifdef __cplusplus
9332 "C"
9333 #endif
9334 const char *_nl_expand_alias ();
9335 int
9336 main ()
9337 {
9338 bindtextdomain ("", "");
9339 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9340   ;
9341   return 0;
9342 }
9343 _ACEOF
9344 if ac_fn_c_try_link "$LINENO"; then :
9345   gt_cv_func_gnugettext1_libintl=yes
9346 else
9347   gt_cv_func_gnugettext1_libintl=no
9348 fi
9349 rm -f core conftest.err conftest.$ac_objext \
9350     conftest$ac_exeext conftest.$ac_ext
9351                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9352               LIBS="$LIBS $LIBICONV"
9353               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9354 /* end confdefs.h.  */
9355 #include <libintl.h>
9356 extern int _nl_msg_cat_cntr;
9357 extern
9358 #ifdef __cplusplus
9359 "C"
9360 #endif
9361 const char *_nl_expand_alias ();
9362 int
9363 main ()
9364 {
9365 bindtextdomain ("", "");
9366 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9367   ;
9368   return 0;
9369 }
9370 _ACEOF
9371 if ac_fn_c_try_link "$LINENO"; then :
9372   LIBINTL="$LIBINTL $LIBICONV"
9373                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9374                 gt_cv_func_gnugettext1_libintl=yes
9375
9376 fi
9377 rm -f core conftest.err conftest.$ac_objext \
9378     conftest$ac_exeext conftest.$ac_ext
9379             fi
9380             CPPFLAGS="$gt_save_CPPFLAGS"
9381             LIBS="$gt_save_LIBS"
9382 fi
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9384 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9385         fi
9386
9387                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9388            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9389                 && test "$PACKAGE" != gettext-runtime \
9390                 && test "$PACKAGE" != gettext-tools; }; then
9391           gt_use_preinstalled_gnugettext=yes
9392         else
9393                     LIBINTL=
9394           LTLIBINTL=
9395           INCINTL=
9396         fi
9397
9398
9399         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9400                               nls_cv_use_gnu_gettext=yes
9401         fi
9402       fi
9403
9404       if test "$nls_cv_use_gnu_gettext" = "yes"; then
9405                 BUILD_INCLUDED_LIBINTL=yes
9406         USE_INCLUDED_LIBINTL=yes
9407         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9408         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9409         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9410       fi
9411
9412       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9413          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9414                 CATOBJEXT=.gmo
9415       fi
9416
9417
9418     if test "$gt_use_preinstalled_gnugettext" = "yes" \
9419        || test "$nls_cv_use_gnu_gettext" = "yes"; then
9420
9421 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9422
9423     else
9424       USE_NLS=no
9425     fi
9426   fi
9427
9428   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9429 $as_echo_n "checking whether to use NLS... " >&6; }
9430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9431 $as_echo "$USE_NLS" >&6; }
9432   if test "$USE_NLS" = "yes"; then
9433     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9434 $as_echo_n "checking where the gettext function comes from... " >&6; }
9435     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9436       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9437         gt_source="external libintl"
9438       else
9439         gt_source="libc"
9440       fi
9441     else
9442       gt_source="included intl directory"
9443     fi
9444     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9445 $as_echo "$gt_source" >&6; }
9446   fi
9447
9448   if test "$USE_NLS" = "yes"; then
9449
9450     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9451       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9452         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9453 $as_echo_n "checking how to link with libintl... " >&6; }
9454         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9455 $as_echo "$LIBINTL" >&6; }
9456
9457   for element in $INCINTL; do
9458     haveit=
9459     for x in $CPPFLAGS; do
9460
9461   acl_save_prefix="$prefix"
9462   prefix="$acl_final_prefix"
9463   acl_save_exec_prefix="$exec_prefix"
9464   exec_prefix="$acl_final_exec_prefix"
9465   eval x=\"$x\"
9466   exec_prefix="$acl_save_exec_prefix"
9467   prefix="$acl_save_prefix"
9468
9469       if test "X$x" = "X$element"; then
9470         haveit=yes
9471         break
9472       fi
9473     done
9474     if test -z "$haveit"; then
9475       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9476     fi
9477   done
9478
9479       fi
9480
9481
9482 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9483
9484
9485 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9486
9487     fi
9488
9489         POSUB=po
9490   fi
9491
9492
9493             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9494       BUILD_INCLUDED_LIBINTL=yes
9495     fi
9496
9497
9498
9499
9500
9501         nls_cv_header_intl=
9502     nls_cv_header_libgt=
9503
9504         DATADIRNAME=share
9505
9506
9507         INSTOBJEXT=.mo
9508
9509
9510         GENCAT=gencat
9511
9512
9513         if test "$USE_INCLUDED_LIBINTL" = yes; then
9514       INTLOBJS="\$(GETTOBJS)"
9515     fi
9516
9517
9518         INTL_LIBTOOL_SUFFIX_PREFIX=
9519
9520
9521
9522     INTLLIBS="$LIBINTL"
9523
9524
9525
9526
9527
9528
9529
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9531 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9532 set x ${MAKE-make}
9533 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9534 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9535   $as_echo_n "(cached) " >&6
9536 else
9537   cat >conftest.make <<\_ACEOF
9538 SHELL = /bin/sh
9539 all:
9540         @echo '@@@%%%=$(MAKE)=@@@%%%'
9541 _ACEOF
9542 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9543 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9544   *@@@%%%=?*=@@@%%%*)
9545     eval ac_cv_prog_make_${ac_make}_set=yes;;
9546   *)
9547     eval ac_cv_prog_make_${ac_make}_set=no;;
9548 esac
9549 rm -f conftest.make
9550 fi
9551 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9553 $as_echo "yes" >&6; }
9554   SET_MAKE=
9555 else
9556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9557 $as_echo "no" >&6; }
9558   SET_MAKE="MAKE=${MAKE-make}"
9559 fi
9560
9561  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9562 $as_echo_n "checking for GNU make... " >&6; }
9563 if test "${_cv_gnu_make_command+set}" = set; then :
9564   $as_echo_n "(cached) " >&6
9565 else
9566   _cv_gnu_make_command='' ;
9567                 for a in "$MAKE" make gmake gnumake ; do
9568                         if test -z "$a" ; then continue ; fi ;
9569                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
9570                                 _cv_gnu_make_command=$a ;
9571                                 break;
9572                         fi
9573                 done ;
9574
9575 fi
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9577 $as_echo "$_cv_gnu_make_command" >&6; } ;
9578         if test  "x$_cv_gnu_make_command" != "x"  ; then
9579                 ifGNUmake='' ;
9580                 ifNotGNUmake='#' ;
9581         else
9582                 ifGNUmake='#' ;
9583                 ifNotGNUmake='' ;
9584                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9585 $as_echo "\"Not found\"" >&6; };
9586         fi
9587
9588
9589
9590 # Extract the first word of "ln", so it can be a program name with args.
9591 set dummy ln; ac_word=$2
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9593 $as_echo_n "checking for $ac_word... " >&6; }
9594 if test "${ac_cv_path_LN+set}" = set; then :
9595   $as_echo_n "(cached) " >&6
9596 else
9597   case $LN in
9598   [\\/]* | ?:[\\/]*)
9599   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9600   ;;
9601   *)
9602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9603 for as_dir in $PATH
9604 do
9605   IFS=$as_save_IFS
9606   test -z "$as_dir" && as_dir=.
9607     for ac_exec_ext in '' $ac_executable_extensions; do
9608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9609     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9611     break 2
9612   fi
9613 done
9614   done
9615 IFS=$as_save_IFS
9616
9617   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9618   ;;
9619 esac
9620 fi
9621 LN=$ac_cv_path_LN
9622 if test -n "$LN"; then
9623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9624 $as_echo "$LN" >&6; }
9625 else
9626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9627 $as_echo "no" >&6; }
9628 fi
9629
9630
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9632 $as_echo_n "checking whether ln -s works... " >&6; }
9633 LN_S=$as_ln_s
9634 if test "$LN_S" = "ln -s"; then
9635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9636 $as_echo "yes" >&6; }
9637 else
9638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9639 $as_echo "no, using $LN_S" >&6; }
9640 fi
9641
9642 # Extract the first word of "mv", so it can be a program name with args.
9643 set dummy mv; ac_word=$2
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9645 $as_echo_n "checking for $ac_word... " >&6; }
9646 if test "${ac_cv_path_MV+set}" = set; then :
9647   $as_echo_n "(cached) " >&6
9648 else
9649   case $MV in
9650   [\\/]* | ?:[\\/]*)
9651   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9652   ;;
9653   *)
9654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9655 for as_dir in $PATH
9656 do
9657   IFS=$as_save_IFS
9658   test -z "$as_dir" && as_dir=.
9659     for ac_exec_ext in '' $ac_executable_extensions; do
9660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9661     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9663     break 2
9664   fi
9665 done
9666   done
9667 IFS=$as_save_IFS
9668
9669   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9670   ;;
9671 esac
9672 fi
9673 MV=$ac_cv_path_MV
9674 if test -n "$MV"; then
9675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9676 $as_echo "$MV" >&6; }
9677 else
9678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9679 $as_echo "no" >&6; }
9680 fi
9681
9682
9683 # Extract the first word of "cp", so it can be a program name with args.
9684 set dummy cp; ac_word=$2
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9686 $as_echo_n "checking for $ac_word... " >&6; }
9687 if test "${ac_cv_path_CP+set}" = set; then :
9688   $as_echo_n "(cached) " >&6
9689 else
9690   case $CP in
9691   [\\/]* | ?:[\\/]*)
9692   ac_cv_path_CP="$CP" # Let the user override the test with a path.
9693   ;;
9694   *)
9695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9696 for as_dir in $PATH
9697 do
9698   IFS=$as_save_IFS
9699   test -z "$as_dir" && as_dir=.
9700     for ac_exec_ext in '' $ac_executable_extensions; do
9701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9702     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9704     break 2
9705   fi
9706 done
9707   done
9708 IFS=$as_save_IFS
9709
9710   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9711   ;;
9712 esac
9713 fi
9714 CP=$ac_cv_path_CP
9715 if test -n "$CP"; then
9716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9717 $as_echo "$CP" >&6; }
9718 else
9719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9720 $as_echo "no" >&6; }
9721 fi
9722
9723
9724 # Extract the first word of "rm", so it can be a program name with args.
9725 set dummy rm; ac_word=$2
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9727 $as_echo_n "checking for $ac_word... " >&6; }
9728 if test "${ac_cv_path_RM+set}" = set; then :
9729   $as_echo_n "(cached) " >&6
9730 else
9731   case $RM in
9732   [\\/]* | ?:[\\/]*)
9733   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9734   ;;
9735   *)
9736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9737 for as_dir in $PATH
9738 do
9739   IFS=$as_save_IFS
9740   test -z "$as_dir" && as_dir=.
9741     for ac_exec_ext in '' $ac_executable_extensions; do
9742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9743     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9745     break 2
9746   fi
9747 done
9748   done
9749 IFS=$as_save_IFS
9750
9751   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9752   ;;
9753 esac
9754 fi
9755 RM=$ac_cv_path_RM
9756 if test -n "$RM"; then
9757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9758 $as_echo "$RM" >&6; }
9759 else
9760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9761 $as_echo "no" >&6; }
9762 fi
9763
9764
9765 # Extract the first word of "chmod", so it can be a program name with args.
9766 set dummy chmod; ac_word=$2
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9768 $as_echo_n "checking for $ac_word... " >&6; }
9769 if test "${ac_cv_path_CHMOD+set}" = set; then :
9770   $as_echo_n "(cached) " >&6
9771 else
9772   case $CHMOD in
9773   [\\/]* | ?:[\\/]*)
9774   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9775   ;;
9776   *)
9777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9778 for as_dir in $PATH
9779 do
9780   IFS=$as_save_IFS
9781   test -z "$as_dir" && as_dir=.
9782     for ac_exec_ext in '' $ac_executable_extensions; do
9783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9784     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9786     break 2
9787   fi
9788 done
9789   done
9790 IFS=$as_save_IFS
9791
9792   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9793   ;;
9794 esac
9795 fi
9796 CHMOD=$ac_cv_path_CHMOD
9797 if test -n "$CHMOD"; then
9798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9799 $as_echo "$CHMOD" >&6; }
9800 else
9801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9802 $as_echo "no" >&6; }
9803 fi
9804
9805
9806 for ac_prog in gawk mawk nawk awk
9807 do
9808   # Extract the first word of "$ac_prog", so it can be a program name with args.
9809 set dummy $ac_prog; ac_word=$2
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9811 $as_echo_n "checking for $ac_word... " >&6; }
9812 if test "${ac_cv_prog_AWK+set}" = set; then :
9813   $as_echo_n "(cached) " >&6
9814 else
9815   if test -n "$AWK"; then
9816   ac_cv_prog_AWK="$AWK" # Let the user override the test.
9817 else
9818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9819 for as_dir in $PATH
9820 do
9821   IFS=$as_save_IFS
9822   test -z "$as_dir" && as_dir=.
9823     for ac_exec_ext in '' $ac_executable_extensions; do
9824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9825     ac_cv_prog_AWK="$ac_prog"
9826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9827     break 2
9828   fi
9829 done
9830   done
9831 IFS=$as_save_IFS
9832
9833 fi
9834 fi
9835 AWK=$ac_cv_prog_AWK
9836 if test -n "$AWK"; then
9837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9838 $as_echo "$AWK" >&6; }
9839 else
9840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9841 $as_echo "no" >&6; }
9842 fi
9843
9844
9845   test -n "$AWK" && break
9846 done
9847
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9849 $as_echo_n "checking for egrep... " >&6; }
9850 if test "${ac_cv_path_EGREP+set}" = set; then :
9851   $as_echo_n "(cached) " >&6
9852 else
9853   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9854    then ac_cv_path_EGREP="$GREP -E"
9855    else
9856      if test -z "$EGREP"; then
9857   ac_path_EGREP_found=false
9858   # Loop through the user's path and test for each of PROGNAME-LIST
9859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9860 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9861 do
9862   IFS=$as_save_IFS
9863   test -z "$as_dir" && as_dir=.
9864     for ac_prog in egrep; do
9865     for ac_exec_ext in '' $ac_executable_extensions; do
9866       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9867       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
9868 # Check for GNU ac_path_EGREP and select it if it is found.
9869   # Check for GNU $ac_path_EGREP
9870 case `"$ac_path_EGREP" --version 2>&1` in
9871 *GNU*)
9872   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9873 *)
9874   ac_count=0
9875   $as_echo_n 0123456789 >"conftest.in"
9876   while :
9877   do
9878     cat "conftest.in" "conftest.in" >"conftest.tmp"
9879     mv "conftest.tmp" "conftest.in"
9880     cp "conftest.in" "conftest.nl"
9881     $as_echo 'EGREP' >> "conftest.nl"
9882     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9883     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9884     as_fn_arith $ac_count + 1 && ac_count=$as_val
9885     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9886       # Best one so far, save it but keep looking for a better one
9887       ac_cv_path_EGREP="$ac_path_EGREP"
9888       ac_path_EGREP_max=$ac_count
9889     fi
9890     # 10*(2^10) chars as input seems more than enough
9891     test $ac_count -gt 10 && break
9892   done
9893   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9894 esac
9895
9896       $ac_path_EGREP_found && break 3
9897     done
9898   done
9899   done
9900 IFS=$as_save_IFS
9901   if test -z "$ac_cv_path_EGREP"; then
9902     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9903   fi
9904 else
9905   ac_cv_path_EGREP=$EGREP
9906 fi
9907
9908    fi
9909 fi
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9911 $as_echo "$ac_cv_path_EGREP" >&6; }
9912  EGREP="$ac_cv_path_EGREP"
9913
9914
9915 # Extract the first word of "sed", so it can be a program name with args.
9916 set dummy sed; ac_word=$2
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9918 $as_echo_n "checking for $ac_word... " >&6; }
9919 if test "${ac_cv_path_SED+set}" = set; then :
9920   $as_echo_n "(cached) " >&6
9921 else
9922   case $SED in
9923   [\\/]* | ?:[\\/]*)
9924   ac_cv_path_SED="$SED" # Let the user override the test with a path.
9925   ;;
9926   *)
9927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9928 for as_dir in $PATH
9929 do
9930   IFS=$as_save_IFS
9931   test -z "$as_dir" && as_dir=.
9932     for ac_exec_ext in '' $ac_executable_extensions; do
9933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9934     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9936     break 2
9937   fi
9938 done
9939   done
9940 IFS=$as_save_IFS
9941
9942   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9943   ;;
9944 esac
9945 fi
9946 SED=$ac_cv_path_SED
9947 if test -n "$SED"; then
9948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9949 $as_echo "$SED" >&6; }
9950 else
9951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9952 $as_echo "no" >&6; }
9953 fi
9954
9955
9956 # Extract the first word of "perl", so it can be a program name with args.
9957 set dummy perl; ac_word=$2
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9959 $as_echo_n "checking for $ac_word... " >&6; }
9960 if test "${ac_cv_path_PERL+set}" = set; then :
9961   $as_echo_n "(cached) " >&6
9962 else
9963   case $PERL in
9964   [\\/]* | ?:[\\/]*)
9965   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9966   ;;
9967   *)
9968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9969 for as_dir in $PATH
9970 do
9971   IFS=$as_save_IFS
9972   test -z "$as_dir" && as_dir=.
9973     for ac_exec_ext in '' $ac_executable_extensions; do
9974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9975     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9977     break 2
9978   fi
9979 done
9980   done
9981 IFS=$as_save_IFS
9982
9983   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9984   ;;
9985 esac
9986 fi
9987 PERL=$ac_cv_path_PERL
9988 if test -n "$PERL"; then
9989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9990 $as_echo "$PERL" >&6; }
9991 else
9992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9993 $as_echo "no" >&6; }
9994 fi
9995
9996
9997 # Extract the first word of "ldconfig", so it can be a program name with args.
9998 set dummy ldconfig; ac_word=$2
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10000 $as_echo_n "checking for $ac_word... " >&6; }
10001 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
10002   $as_echo_n "(cached) " >&6
10003 else
10004   case $LDCONFIG in
10005   [\\/]* | ?:[\\/]*)
10006   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10007   ;;
10008   *)
10009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10010 for as_dir in $PATH
10011 do
10012   IFS=$as_save_IFS
10013   test -z "$as_dir" && as_dir=.
10014     for ac_exec_ext in '' $ac_executable_extensions; do
10015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10016     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10018     break 2
10019   fi
10020 done
10021   done
10022 IFS=$as_save_IFS
10023
10024   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10025   ;;
10026 esac
10027 fi
10028 LDCONFIG=$ac_cv_path_LDCONFIG
10029 if test -n "$LDCONFIG"; then
10030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
10031 $as_echo "$LDCONFIG" >&6; }
10032 else
10033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10034 $as_echo "no" >&6; }
10035 fi
10036
10037
10038 if test -n "$ac_tool_prefix"; then
10039   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10040 set dummy ${ac_tool_prefix}ar; ac_word=$2
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10042 $as_echo_n "checking for $ac_word... " >&6; }
10043 if test "${ac_cv_prog_AR+set}" = set; then :
10044   $as_echo_n "(cached) " >&6
10045 else
10046   if test -n "$AR"; then
10047   ac_cv_prog_AR="$AR" # Let the user override the test.
10048 else
10049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10050 for as_dir in $PATH
10051 do
10052   IFS=$as_save_IFS
10053   test -z "$as_dir" && as_dir=.
10054     for ac_exec_ext in '' $ac_executable_extensions; do
10055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10056     ac_cv_prog_AR="${ac_tool_prefix}ar"
10057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10058     break 2
10059   fi
10060 done
10061   done
10062 IFS=$as_save_IFS
10063
10064 fi
10065 fi
10066 AR=$ac_cv_prog_AR
10067 if test -n "$AR"; then
10068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10069 $as_echo "$AR" >&6; }
10070 else
10071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10072 $as_echo "no" >&6; }
10073 fi
10074
10075
10076 fi
10077 if test -z "$ac_cv_prog_AR"; then
10078   ac_ct_AR=$AR
10079   # Extract the first word of "ar", so it can be a program name with args.
10080 set dummy ar; ac_word=$2
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10082 $as_echo_n "checking for $ac_word... " >&6; }
10083 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10084   $as_echo_n "(cached) " >&6
10085 else
10086   if test -n "$ac_ct_AR"; then
10087   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10088 else
10089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10090 for as_dir in $PATH
10091 do
10092   IFS=$as_save_IFS
10093   test -z "$as_dir" && as_dir=.
10094     for ac_exec_ext in '' $ac_executable_extensions; do
10095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10096     ac_cv_prog_ac_ct_AR="ar"
10097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10098     break 2
10099   fi
10100 done
10101   done
10102 IFS=$as_save_IFS
10103
10104 fi
10105 fi
10106 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10107 if test -n "$ac_ct_AR"; then
10108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10109 $as_echo "$ac_ct_AR" >&6; }
10110 else
10111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10112 $as_echo "no" >&6; }
10113 fi
10114
10115   if test "x$ac_ct_AR" = x; then
10116     AR="ar"
10117   else
10118     case $cross_compiling:$ac_tool_warned in
10119 yes:)
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10122 ac_tool_warned=yes ;;
10123 esac
10124     AR=$ac_ct_AR
10125   fi
10126 else
10127   AR="$ac_cv_prog_AR"
10128 fi
10129
10130 if test -n "$ac_tool_prefix"; then
10131   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10132 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10134 $as_echo_n "checking for $ac_word... " >&6; }
10135 if test "${ac_cv_prog_RANLIB+set}" = set; then :
10136   $as_echo_n "(cached) " >&6
10137 else
10138   if test -n "$RANLIB"; then
10139   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10140 else
10141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10142 for as_dir in $PATH
10143 do
10144   IFS=$as_save_IFS
10145   test -z "$as_dir" && as_dir=.
10146     for ac_exec_ext in '' $ac_executable_extensions; do
10147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10148     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10150     break 2
10151   fi
10152 done
10153   done
10154 IFS=$as_save_IFS
10155
10156 fi
10157 fi
10158 RANLIB=$ac_cv_prog_RANLIB
10159 if test -n "$RANLIB"; then
10160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10161 $as_echo "$RANLIB" >&6; }
10162 else
10163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10164 $as_echo "no" >&6; }
10165 fi
10166
10167
10168 fi
10169 if test -z "$ac_cv_prog_RANLIB"; then
10170   ac_ct_RANLIB=$RANLIB
10171   # Extract the first word of "ranlib", so it can be a program name with args.
10172 set dummy ranlib; ac_word=$2
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10174 $as_echo_n "checking for $ac_word... " >&6; }
10175 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10176   $as_echo_n "(cached) " >&6
10177 else
10178   if test -n "$ac_ct_RANLIB"; then
10179   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10180 else
10181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10182 for as_dir in $PATH
10183 do
10184   IFS=$as_save_IFS
10185   test -z "$as_dir" && as_dir=.
10186     for ac_exec_ext in '' $ac_executable_extensions; do
10187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10188     ac_cv_prog_ac_ct_RANLIB="ranlib"
10189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10190     break 2
10191   fi
10192 done
10193   done
10194 IFS=$as_save_IFS
10195
10196 fi
10197 fi
10198 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10199 if test -n "$ac_ct_RANLIB"; then
10200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10201 $as_echo "$ac_ct_RANLIB" >&6; }
10202 else
10203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10204 $as_echo "no" >&6; }
10205 fi
10206
10207   if test "x$ac_ct_RANLIB" = x; then
10208     RANLIB=":"
10209   else
10210     case $cross_compiling:$ac_tool_warned in
10211 yes:)
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10214 ac_tool_warned=yes ;;
10215 esac
10216     RANLIB=$ac_ct_RANLIB
10217   fi
10218 else
10219   RANLIB="$ac_cv_prog_RANLIB"
10220 fi
10221
10222 if test -n "$ac_tool_prefix"; then
10223   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10224 set dummy ${ac_tool_prefix}strip; ac_word=$2
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10226 $as_echo_n "checking for $ac_word... " >&6; }
10227 if test "${ac_cv_prog_STRIP+set}" = set; then :
10228   $as_echo_n "(cached) " >&6
10229 else
10230   if test -n "$STRIP"; then
10231   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10232 else
10233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10234 for as_dir in $PATH
10235 do
10236   IFS=$as_save_IFS
10237   test -z "$as_dir" && as_dir=.
10238     for ac_exec_ext in '' $ac_executable_extensions; do
10239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10240     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10242     break 2
10243   fi
10244 done
10245   done
10246 IFS=$as_save_IFS
10247
10248 fi
10249 fi
10250 STRIP=$ac_cv_prog_STRIP
10251 if test -n "$STRIP"; then
10252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10253 $as_echo "$STRIP" >&6; }
10254 else
10255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10256 $as_echo "no" >&6; }
10257 fi
10258
10259
10260 fi
10261 if test -z "$ac_cv_prog_STRIP"; then
10262   ac_ct_STRIP=$STRIP
10263   # Extract the first word of "strip", so it can be a program name with args.
10264 set dummy strip; ac_word=$2
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10266 $as_echo_n "checking for $ac_word... " >&6; }
10267 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10268   $as_echo_n "(cached) " >&6
10269 else
10270   if test -n "$ac_ct_STRIP"; then
10271   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10272 else
10273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10274 for as_dir in $PATH
10275 do
10276   IFS=$as_save_IFS
10277   test -z "$as_dir" && as_dir=.
10278     for ac_exec_ext in '' $ac_executable_extensions; do
10279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10280     ac_cv_prog_ac_ct_STRIP="strip"
10281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10282     break 2
10283   fi
10284 done
10285   done
10286 IFS=$as_save_IFS
10287
10288 fi
10289 fi
10290 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10291 if test -n "$ac_ct_STRIP"; then
10292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10293 $as_echo "$ac_ct_STRIP" >&6; }
10294 else
10295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10296 $as_echo "no" >&6; }
10297 fi
10298
10299   if test "x$ac_ct_STRIP" = x; then
10300     STRIP=":"
10301   else
10302     case $cross_compiling:$ac_tool_warned in
10303 yes:)
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10306 ac_tool_warned=yes ;;
10307 esac
10308     STRIP=$ac_ct_STRIP
10309   fi
10310 else
10311   STRIP="$ac_cv_prog_STRIP"
10312 fi
10313
10314 # Extract the first word of "makeinfo", so it can be a program name with args.
10315 set dummy makeinfo; ac_word=$2
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10317 $as_echo_n "checking for $ac_word... " >&6; }
10318 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
10319   $as_echo_n "(cached) " >&6
10320 else
10321   if test -n "$MAKEINFO"; then
10322   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10323 else
10324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10325 for as_dir in $PATH
10326 do
10327   IFS=$as_save_IFS
10328   test -z "$as_dir" && as_dir=.
10329     for ac_exec_ext in '' $ac_executable_extensions; do
10330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10331     ac_cv_prog_MAKEINFO="makeinfo"
10332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10333     break 2
10334   fi
10335 done
10336   done
10337 IFS=$as_save_IFS
10338
10339 fi
10340 fi
10341 MAKEINFO=$ac_cv_prog_MAKEINFO
10342 if test -n "$MAKEINFO"; then
10343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10344 $as_echo "$MAKEINFO" >&6; }
10345 else
10346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10347 $as_echo "no" >&6; }
10348 fi
10349
10350
10351 if test "_$MAKEINFO" = "_"; then
10352     MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10353 else
10354     case "$MAKEINFO" in
10355       */missing.*)
10356         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10357 *** Makeinfo is missing. Info documentation will not be built." >&5
10358 $as_echo "$as_me: WARNING:
10359 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10360         ;;
10361       *)
10362         ;;
10363     esac
10364 fi
10365
10366
10367 # See if we need a separate native compiler.
10368 if test $cross_compiling = no; then
10369   BUILD_CC="$CC"
10370
10371 else
10372   for ac_prog in gcc cc
10373 do
10374   # Extract the first word of "$ac_prog", so it can be a program name with args.
10375 set dummy $ac_prog; ac_word=$2
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10377 $as_echo_n "checking for $ac_word... " >&6; }
10378 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
10379   $as_echo_n "(cached) " >&6
10380 else
10381   if test -n "$BUILD_CC"; then
10382   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10383 else
10384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10385 for as_dir in $PATH
10386 do
10387   IFS=$as_save_IFS
10388   test -z "$as_dir" && as_dir=.
10389     for ac_exec_ext in '' $ac_executable_extensions; do
10390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10391     ac_cv_prog_BUILD_CC="$ac_prog"
10392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10393     break 2
10394   fi
10395 done
10396   done
10397 IFS=$as_save_IFS
10398
10399 fi
10400 fi
10401 BUILD_CC=$ac_cv_prog_BUILD_CC
10402 if test -n "$BUILD_CC"; then
10403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10404 $as_echo "$BUILD_CC" >&6; }
10405 else
10406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10407 $as_echo "no" >&6; }
10408 fi
10409
10410
10411   test -n "$BUILD_CC" && break
10412 done
10413
10414 fi
10415 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
10416 do :
10417   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10418 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10419 eval as_val=\$$as_ac_Header
10420    if test "x$as_val" = x""yes; then :
10421   cat >>confdefs.h <<_ACEOF
10422 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10423 _ACEOF
10424
10425 fi
10426
10427 done
10428
10429 for ac_header in sys/disk.h sys/mount.h
10430 do :
10431   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10432 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10433 #if HAVE_SYS_QUEUE_H
10434 #include <sys/queue.h>
10435 #endif
10436
10437 "
10438 eval as_val=\$$as_ac_Header
10439    if test "x$as_val" = x""yes; then :
10440   cat >>confdefs.h <<_ACEOF
10441 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10442 _ACEOF
10443
10444 fi
10445
10446 done
10447
10448 for ac_header in net/if.h
10449 do :
10450   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10451 #if HAVE_SYS_TYPES_H
10452 #include <sys/types.h>
10453 #endif
10454 #if HAVE_SYS_SOCKET
10455 #include <sys/socket.h>
10456 #endif
10457
10458 "
10459 if test "x$ac_cv_header_net_if_h" = x""yes; then :
10460   cat >>confdefs.h <<_ACEOF
10461 #define HAVE_NET_IF_H 1
10462 _ACEOF
10463
10464 fi
10465
10466 done
10467
10468 for ac_header in db.h
10469 do :
10470   ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
10471 if test "x$ac_cv_header_db_h" = x""yes; then :
10472   cat >>confdefs.h <<_ACEOF
10473 #define HAVE_DB_H 1
10474 _ACEOF
10475
10476 fi
10477
10478 done
10479
10480 if test x"$E2SCAN_CMT" == x; then
10481 for ac_header in sqlite3.h
10482 do :
10483   ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
10484 if test "x$ac_cv_header_sqlite3_h" = x""yes; then :
10485   cat >>confdefs.h <<_ACEOF
10486 #define HAVE_SQLITE3_H 1
10487 _ACEOF
10488
10489 fi
10490
10491 done
10492
10493 fi
10494 for ac_func in vprintf
10495 do :
10496   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10497 if test "x$ac_cv_func_vprintf" = x""yes; then :
10498   cat >>confdefs.h <<_ACEOF
10499 #define HAVE_VPRINTF 1
10500 _ACEOF
10501
10502 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10503 if test "x$ac_cv_func__doprnt" = x""yes; then :
10504
10505 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10506
10507 fi
10508
10509 fi
10510 done
10511
10512
10513 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10514 "
10515 if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then :
10516
10517 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10518
10519 fi
10520
10521 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10522 "
10523 if test "x$ac_cv_type_ssize_t" = x""yes; then :
10524
10525 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10526
10527 fi
10528
10529 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10530 "
10531 if test "x$ac_cv_have_decl_llseek" = x""yes; then :
10532
10533 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10534
10535 fi
10536
10537 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10538                  #define _LARGEFILE64_SOURCE
10539                  #include <unistd.h>
10540 "
10541 if test "x$ac_cv_have_decl_lseek64" = x""yes; then :
10542
10543 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10544
10545 fi
10546
10547 # The cast to long int works around a bug in the HP C Compiler
10548 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10549 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10550 # This bug is HP SR number 8606223364.
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10552 $as_echo_n "checking size of short... " >&6; }
10553 if test "${ac_cv_sizeof_short+set}" = set; then :
10554   $as_echo_n "(cached) " >&6
10555 else
10556   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
10557
10558 else
10559   if test "$ac_cv_type_short" = yes; then
10560      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10562 { as_fn_set_status 77
10563 as_fn_error "cannot compute sizeof (short)
10564 See \`config.log' for more details." "$LINENO" 5; }; }
10565    else
10566      ac_cv_sizeof_short=0
10567    fi
10568 fi
10569
10570 fi
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10572 $as_echo "$ac_cv_sizeof_short" >&6; }
10573
10574
10575
10576 cat >>confdefs.h <<_ACEOF
10577 #define SIZEOF_SHORT $ac_cv_sizeof_short
10578 _ACEOF
10579
10580
10581 # The cast to long int works around a bug in the HP C Compiler
10582 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10583 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10584 # This bug is HP SR number 8606223364.
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10586 $as_echo_n "checking size of int... " >&6; }
10587 if test "${ac_cv_sizeof_int+set}" = set; then :
10588   $as_echo_n "(cached) " >&6
10589 else
10590   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
10591
10592 else
10593   if test "$ac_cv_type_int" = yes; then
10594      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10596 { as_fn_set_status 77
10597 as_fn_error "cannot compute sizeof (int)
10598 See \`config.log' for more details." "$LINENO" 5; }; }
10599    else
10600      ac_cv_sizeof_int=0
10601    fi
10602 fi
10603
10604 fi
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10606 $as_echo "$ac_cv_sizeof_int" >&6; }
10607
10608
10609
10610 cat >>confdefs.h <<_ACEOF
10611 #define SIZEOF_INT $ac_cv_sizeof_int
10612 _ACEOF
10613
10614
10615 # The cast to long int works around a bug in the HP C Compiler
10616 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10617 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10618 # This bug is HP SR number 8606223364.
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10620 $as_echo_n "checking size of long... " >&6; }
10621 if test "${ac_cv_sizeof_long+set}" = set; then :
10622   $as_echo_n "(cached) " >&6
10623 else
10624   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
10625
10626 else
10627   if test "$ac_cv_type_long" = yes; then
10628      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10630 { as_fn_set_status 77
10631 as_fn_error "cannot compute sizeof (long)
10632 See \`config.log' for more details." "$LINENO" 5; }; }
10633    else
10634      ac_cv_sizeof_long=0
10635    fi
10636 fi
10637
10638 fi
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10640 $as_echo "$ac_cv_sizeof_long" >&6; }
10641
10642
10643
10644 cat >>confdefs.h <<_ACEOF
10645 #define SIZEOF_LONG $ac_cv_sizeof_long
10646 _ACEOF
10647
10648
10649 # The cast to long int works around a bug in the HP C Compiler
10650 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10651 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10652 # This bug is HP SR number 8606223364.
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10654 $as_echo_n "checking size of long long... " >&6; }
10655 if test "${ac_cv_sizeof_long_long+set}" = set; then :
10656   $as_echo_n "(cached) " >&6
10657 else
10658   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
10659
10660 else
10661   if test "$ac_cv_type_long_long" = yes; then
10662      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10664 { as_fn_set_status 77
10665 as_fn_error "cannot compute sizeof (long long)
10666 See \`config.log' for more details." "$LINENO" 5; }; }
10667    else
10668      ac_cv_sizeof_long_long=0
10669    fi
10670 fi
10671
10672 fi
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10674 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10675
10676
10677
10678 cat >>confdefs.h <<_ACEOF
10679 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10680 _ACEOF
10681
10682
10683 SIZEOF_SHORT=$ac_cv_sizeof_short
10684 SIZEOF_INT=$ac_cv_sizeof_int
10685 SIZEOF_LONG=$ac_cv_sizeof_long
10686 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10687
10688
10689
10690
10691  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10692 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10693 if test "${ac_cv_c_bigendian+set}" = set; then :
10694   $as_echo_n "(cached) " >&6
10695 else
10696   ac_cv_c_bigendian=unknown
10697     # See if we're dealing with a universal compiler.
10698     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10699 /* end confdefs.h.  */
10700 #ifndef __APPLE_CC__
10701                not a universal capable compiler
10702              #endif
10703              typedef int dummy;
10704
10705 _ACEOF
10706 if ac_fn_c_try_compile "$LINENO"; then :
10707
10708         # Check for potential -arch flags.  It is not universal unless
10709         # there are at least two -arch flags with different values.
10710         ac_arch=
10711         ac_prev=
10712         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10713          if test -n "$ac_prev"; then
10714            case $ac_word in
10715              i?86 | x86_64 | ppc | ppc64)
10716                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10717                  ac_arch=$ac_word
10718                else
10719                  ac_cv_c_bigendian=universal
10720                  break
10721                fi
10722                ;;
10723            esac
10724            ac_prev=
10725          elif test "x$ac_word" = "x-arch"; then
10726            ac_prev=arch
10727          fi
10728        done
10729 fi
10730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10731     if test $ac_cv_c_bigendian = unknown; then
10732       # See if sys/param.h defines the BYTE_ORDER macro.
10733       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h.  */
10735 #include <sys/types.h>
10736              #include <sys/param.h>
10737
10738 int
10739 main ()
10740 {
10741 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10742                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10743                      && LITTLE_ENDIAN)
10744               bogus endian macros
10745              #endif
10746
10747   ;
10748   return 0;
10749 }
10750 _ACEOF
10751 if ac_fn_c_try_compile "$LINENO"; then :
10752   # It does; now see whether it defined to BIG_ENDIAN or not.
10753          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10754 /* end confdefs.h.  */
10755 #include <sys/types.h>
10756                 #include <sys/param.h>
10757
10758 int
10759 main ()
10760 {
10761 #if BYTE_ORDER != 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       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10780       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10781 /* end confdefs.h.  */
10782 #include <limits.h>
10783
10784 int
10785 main ()
10786 {
10787 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10788               bogus endian macros
10789              #endif
10790
10791   ;
10792   return 0;
10793 }
10794 _ACEOF
10795 if ac_fn_c_try_compile "$LINENO"; then :
10796   # It does; now see whether it defined to _BIG_ENDIAN or not.
10797          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10798 /* end confdefs.h.  */
10799 #include <limits.h>
10800
10801 int
10802 main ()
10803 {
10804 #ifndef _BIG_ENDIAN
10805                  not big endian
10806                 #endif
10807
10808   ;
10809   return 0;
10810 }
10811 _ACEOF
10812 if ac_fn_c_try_compile "$LINENO"; then :
10813   ac_cv_c_bigendian=yes
10814 else
10815   ac_cv_c_bigendian=no
10816 fi
10817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10818 fi
10819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10820     fi
10821     if test $ac_cv_c_bigendian = unknown; then
10822       # Compile a test program.
10823       if test "$cross_compiling" = yes; then :
10824   # Try to guess by grepping values from an object file.
10825          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10826 /* end confdefs.h.  */
10827 short int ascii_mm[] =
10828                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10829                 short int ascii_ii[] =
10830                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10831                 int use_ascii (int i) {
10832                   return ascii_mm[i] + ascii_ii[i];
10833                 }
10834                 short int ebcdic_ii[] =
10835                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10836                 short int ebcdic_mm[] =
10837                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10838                 int use_ebcdic (int i) {
10839                   return ebcdic_mm[i] + ebcdic_ii[i];
10840                 }
10841                 extern int foo;
10842
10843 int
10844 main ()
10845 {
10846 return use_ascii (foo) == use_ebcdic (foo);
10847   ;
10848   return 0;
10849 }
10850 _ACEOF
10851 if ac_fn_c_try_compile "$LINENO"; then :
10852   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10853               ac_cv_c_bigendian=yes
10854             fi
10855             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10856               if test "$ac_cv_c_bigendian" = unknown; then
10857                 ac_cv_c_bigendian=no
10858               else
10859                 # finding both strings is unlikely to happen, but who knows?
10860                 ac_cv_c_bigendian=unknown
10861               fi
10862             fi
10863 fi
10864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10865 else
10866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10867 /* end confdefs.h.  */
10868 $ac_includes_default
10869 int
10870 main ()
10871 {
10872
10873              /* Are we little or big endian?  From Harbison&Steele.  */
10874              union
10875              {
10876                long int l;
10877                char c[sizeof (long int)];
10878              } u;
10879              u.l = 1;
10880              return u.c[sizeof (long int) - 1] == 1;
10881
10882   ;
10883   return 0;
10884 }
10885 _ACEOF
10886 if ac_fn_c_try_run "$LINENO"; then :
10887   ac_cv_c_bigendian=no
10888 else
10889   ac_cv_c_bigendian=yes
10890 fi
10891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10892   conftest.$ac_objext conftest.beam conftest.$ac_ext
10893 fi
10894
10895     fi
10896 fi
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10898 $as_echo "$ac_cv_c_bigendian" >&6; }
10899  case $ac_cv_c_bigendian in #(
10900    yes)
10901      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10902 ;; #(
10903    no)
10904       ;; #(
10905    universal)
10906
10907 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10908
10909      ;; #(
10910    *)
10911      as_fn_error "unknown endianness
10912  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10913  esac
10914
10915 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10916 ASM_TYPES_HEADER=./asm_types.h
10917
10918 echo "/* These defines are needed for the public ext2fs.h header file */" \
10919      > public_config.h
10920 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10921   uniq tmp_config.$$ >> public_config.h
10922 else
10923   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10924 fi
10925 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10926   uniq tmp_config.$$ >> public_config.h
10927 else
10928   echo "#undef WORDS_BIGENDIAN" >> public_config.h
10929 fi
10930 rm -f tmp_config.$$
10931 PUBLIC_CONFIG_HEADER=./public_config.h
10932
10933 for ac_header in inttypes.h
10934 do :
10935   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10936 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
10937   cat >>confdefs.h <<_ACEOF
10938 #define HAVE_INTTYPES_H 1
10939 _ACEOF
10940
10941 fi
10942
10943 done
10944
10945 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10946 if test "x$ac_cv_type_intptr_t" = x""yes; then :
10947
10948 cat >>confdefs.h <<_ACEOF
10949 #define HAVE_INTPTR_T 1
10950 _ACEOF
10951
10952
10953 fi
10954
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10956 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10957 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then :
10958   $as_echo_n "(cached) " >&6
10959 else
10960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10961 /* end confdefs.h.  */
10962 #include <sys/stat.h>
10963 int
10964 main ()
10965 {
10966 struct stat stat; stat.st_flags = 0;
10967   ;
10968   return 0;
10969 }
10970 _ACEOF
10971 if ac_fn_c_try_compile "$LINENO"; then :
10972   e2fsprogs_cv_struct_st_flags=yes
10973 else
10974   e2fsprogs_cv_struct_st_flags=no
10975 fi
10976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10977 fi
10978
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10980 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10981 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10983 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10984   if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then :
10985   $as_echo_n "(cached) " >&6
10986 else
10987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988 /* end confdefs.h.  */
10989 #include <sys/stat.h>
10990 int
10991 main ()
10992 {
10993 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
10994   ;
10995   return 0;
10996 }
10997 _ACEOF
10998 if ac_fn_c_try_compile "$LINENO"; then :
10999   e2fsprogs_cv_struct_st_flags_immut=yes
11000 else
11001   e2fsprogs_cv_struct_st_flags_immut=no
11002 fi
11003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11004 fi
11005
11006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
11007 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
11008   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
11009
11010 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
11011
11012   fi
11013 fi
11014 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
11015          #include <sys/socket.h>
11016 "
11017 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
11018
11019 cat >>confdefs.h <<_ACEOF
11020 #define HAVE_SA_LEN 1
11021 _ACEOF
11022
11023 fi
11024
11025 if test -n "$BLKID_CMT"; then
11026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
11027 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
11028 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
11029   $as_echo_n "(cached) " >&6
11030 else
11031   ac_func_search_save_LIBS=$LIBS
11032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11033 /* end confdefs.h.  */
11034
11035 /* Override any GCC internal prototype to avoid an error.
11036    Use char because int might match the return type of a GCC
11037    builtin and then its argument prototype would still apply.  */
11038 #ifdef __cplusplus
11039 extern "C"
11040 #endif
11041 char blkid_probe_all ();
11042 int
11043 main ()
11044 {
11045 return blkid_probe_all ();
11046   ;
11047   return 0;
11048 }
11049 _ACEOF
11050 for ac_lib in '' blkid; do
11051   if test -z "$ac_lib"; then
11052     ac_res="none required"
11053   else
11054     ac_res=-l$ac_lib
11055     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11056   fi
11057   if ac_fn_c_try_link "$LINENO"; then :
11058   ac_cv_search_blkid_probe_all=$ac_res
11059 fi
11060 rm -f core conftest.err conftest.$ac_objext \
11061     conftest$ac_exeext
11062   if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
11063   break
11064 fi
11065 done
11066 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
11067
11068 else
11069   ac_cv_search_blkid_probe_all=no
11070 fi
11071 rm conftest.$ac_ext
11072 LIBS=$ac_func_search_save_LIBS
11073 fi
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
11075 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11076 ac_res=$ac_cv_search_blkid_probe_all
11077 if test "$ac_res" != no; then :
11078   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11079
11080 fi
11081
11082 fi
11083 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
11084 do :
11085   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11086 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11087 eval as_val=\$$as_ac_var
11088    if test "x$as_val" = x""yes; then :
11089   cat >>confdefs.h <<_ACEOF
11090 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11091 _ACEOF
11092
11093 fi
11094 done
11095
11096 SOCKET_LIB=''
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11098 $as_echo_n "checking for socket in -lsocket... " >&6; }
11099 if test "${ac_cv_lib_socket_socket+set}" = set; then :
11100   $as_echo_n "(cached) " >&6
11101 else
11102   ac_check_lib_save_LIBS=$LIBS
11103 LIBS="-lsocket  $LIBS"
11104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11105 /* end confdefs.h.  */
11106
11107 /* Override any GCC internal prototype to avoid an error.
11108    Use char because int might match the return type of a GCC
11109    builtin and then its argument prototype would still apply.  */
11110 #ifdef __cplusplus
11111 extern "C"
11112 #endif
11113 char socket ();
11114 int
11115 main ()
11116 {
11117 return socket ();
11118   ;
11119   return 0;
11120 }
11121 _ACEOF
11122 if ac_fn_c_try_link "$LINENO"; then :
11123   ac_cv_lib_socket_socket=yes
11124 else
11125   ac_cv_lib_socket_socket=no
11126 fi
11127 rm -f core conftest.err conftest.$ac_objext \
11128     conftest$ac_exeext conftest.$ac_ext
11129 LIBS=$ac_check_lib_save_LIBS
11130 fi
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11132 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11133 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
11134   SOCKET_LIB=-lsocket
11135 fi
11136
11137
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb-4.1" >&5
11139 $as_echo_n "checking for db_env_create in -ldb-4.1... " >&6; }
11140 if test "${ac_cv_lib_db_4_1_db_env_create+set}" = set; then :
11141   $as_echo_n "(cached) " >&6
11142 else
11143   ac_check_lib_save_LIBS=$LIBS
11144 LIBS="-ldb-4.1  $LIBS"
11145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11146 /* end confdefs.h.  */
11147
11148 /* Override any GCC internal prototype to avoid an error.
11149    Use char because int might match the return type of a GCC
11150    builtin and then its argument prototype would still apply.  */
11151 #ifdef __cplusplus
11152 extern "C"
11153 #endif
11154 char db_env_create ();
11155 int
11156 main ()
11157 {
11158 return db_env_create ();
11159   ;
11160   return 0;
11161 }
11162 _ACEOF
11163 if ac_fn_c_try_link "$LINENO"; then :
11164   ac_cv_lib_db_4_1_db_env_create=yes
11165 else
11166   ac_cv_lib_db_4_1_db_env_create=no
11167 fi
11168 rm -f core conftest.err conftest.$ac_objext \
11169     conftest$ac_exeext conftest.$ac_ext
11170 LIBS=$ac_check_lib_save_LIBS
11171 fi
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_4_1_db_env_create" >&5
11173 $as_echo "$ac_cv_lib_db_4_1_db_env_create" >&6; }
11174 if test "x$ac_cv_lib_db_4_1_db_env_create" = x""yes; then :
11175   DB4VERSION=4.1
11176
11177 $as_echo "#define HAVE_DB4 1" >>confdefs.h
11178
11179
11180 fi
11181
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb-4.2" >&5
11183 $as_echo_n "checking for db_env_create in -ldb-4.2... " >&6; }
11184 if test "${ac_cv_lib_db_4_2_db_env_create+set}" = set; then :
11185   $as_echo_n "(cached) " >&6
11186 else
11187   ac_check_lib_save_LIBS=$LIBS
11188 LIBS="-ldb-4.2  $LIBS"
11189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11190 /* end confdefs.h.  */
11191
11192 /* Override any GCC internal prototype to avoid an error.
11193    Use char because int might match the return type of a GCC
11194    builtin and then its argument prototype would still apply.  */
11195 #ifdef __cplusplus
11196 extern "C"
11197 #endif
11198 char db_env_create ();
11199 int
11200 main ()
11201 {
11202 return db_env_create ();
11203   ;
11204   return 0;
11205 }
11206 _ACEOF
11207 if ac_fn_c_try_link "$LINENO"; then :
11208   ac_cv_lib_db_4_2_db_env_create=yes
11209 else
11210   ac_cv_lib_db_4_2_db_env_create=no
11211 fi
11212 rm -f core conftest.err conftest.$ac_objext \
11213     conftest$ac_exeext conftest.$ac_ext
11214 LIBS=$ac_check_lib_save_LIBS
11215 fi
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_4_2_db_env_create" >&5
11217 $as_echo "$ac_cv_lib_db_4_2_db_env_create" >&6; }
11218 if test "x$ac_cv_lib_db_4_2_db_env_create" = x""yes; then :
11219   DB4VERSION=4.2
11220
11221 $as_echo "#define HAVE_DB4 1" >>confdefs.h
11222
11223
11224 fi
11225
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb-4.3" >&5
11227 $as_echo_n "checking for db_env_create in -ldb-4.3... " >&6; }
11228 if test "${ac_cv_lib_db_4_3_db_env_create+set}" = set; then :
11229   $as_echo_n "(cached) " >&6
11230 else
11231   ac_check_lib_save_LIBS=$LIBS
11232 LIBS="-ldb-4.3  $LIBS"
11233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11234 /* end confdefs.h.  */
11235
11236 /* Override any GCC internal prototype to avoid an error.
11237    Use char because int might match the return type of a GCC
11238    builtin and then its argument prototype would still apply.  */
11239 #ifdef __cplusplus
11240 extern "C"
11241 #endif
11242 char db_env_create ();
11243 int
11244 main ()
11245 {
11246 return db_env_create ();
11247   ;
11248   return 0;
11249 }
11250 _ACEOF
11251 if ac_fn_c_try_link "$LINENO"; then :
11252   ac_cv_lib_db_4_3_db_env_create=yes
11253 else
11254   ac_cv_lib_db_4_3_db_env_create=no
11255 fi
11256 rm -f core conftest.err conftest.$ac_objext \
11257     conftest$ac_exeext conftest.$ac_ext
11258 LIBS=$ac_check_lib_save_LIBS
11259 fi
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_4_3_db_env_create" >&5
11261 $as_echo "$ac_cv_lib_db_4_3_db_env_create" >&6; }
11262 if test "x$ac_cv_lib_db_4_3_db_env_create" = x""yes; then :
11263   DB4VERSION=4.3
11264
11265 $as_echo "#define HAVE_DB4 1" >>confdefs.h
11266
11267
11268 fi
11269
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb-4.5" >&5
11271 $as_echo_n "checking for db_env_create in -ldb-4.5... " >&6; }
11272 if test "${ac_cv_lib_db_4_5_db_env_create+set}" = set; then :
11273   $as_echo_n "(cached) " >&6
11274 else
11275   ac_check_lib_save_LIBS=$LIBS
11276 LIBS="-ldb-4.5  $LIBS"
11277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11278 /* end confdefs.h.  */
11279
11280 /* Override any GCC internal prototype to avoid an error.
11281    Use char because int might match the return type of a GCC
11282    builtin and then its argument prototype would still apply.  */
11283 #ifdef __cplusplus
11284 extern "C"
11285 #endif
11286 char db_env_create ();
11287 int
11288 main ()
11289 {
11290 return db_env_create ();
11291   ;
11292   return 0;
11293 }
11294 _ACEOF
11295 if ac_fn_c_try_link "$LINENO"; then :
11296   ac_cv_lib_db_4_5_db_env_create=yes
11297 else
11298   ac_cv_lib_db_4_5_db_env_create=no
11299 fi
11300 rm -f core conftest.err conftest.$ac_objext \
11301     conftest$ac_exeext conftest.$ac_ext
11302 LIBS=$ac_check_lib_save_LIBS
11303 fi
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_4_5_db_env_create" >&5
11305 $as_echo "$ac_cv_lib_db_4_5_db_env_create" >&6; }
11306 if test "x$ac_cv_lib_db_4_5_db_env_create" = x""yes; then :
11307   DB4VERSION=4.5
11308
11309 $as_echo "#define HAVE_DB4 1" >>confdefs.h
11310
11311
11312 fi
11313
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb-4.6" >&5
11315 $as_echo_n "checking for db_env_create in -ldb-4.6... " >&6; }
11316 if test "${ac_cv_lib_db_4_6_db_env_create+set}" = set; then :
11317   $as_echo_n "(cached) " >&6
11318 else
11319   ac_check_lib_save_LIBS=$LIBS
11320 LIBS="-ldb-4.6  $LIBS"
11321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322 /* end confdefs.h.  */
11323
11324 /* Override any GCC internal prototype to avoid an error.
11325    Use char because int might match the return type of a GCC
11326    builtin and then its argument prototype would still apply.  */
11327 #ifdef __cplusplus
11328 extern "C"
11329 #endif
11330 char db_env_create ();
11331 int
11332 main ()
11333 {
11334 return db_env_create ();
11335   ;
11336   return 0;
11337 }
11338 _ACEOF
11339 if ac_fn_c_try_link "$LINENO"; then :
11340   ac_cv_lib_db_4_6_db_env_create=yes
11341 else
11342   ac_cv_lib_db_4_6_db_env_create=no
11343 fi
11344 rm -f core conftest.err conftest.$ac_objext \
11345     conftest$ac_exeext conftest.$ac_ext
11346 LIBS=$ac_check_lib_save_LIBS
11347 fi
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_4_6_db_env_create" >&5
11349 $as_echo "$ac_cv_lib_db_4_6_db_env_create" >&6; }
11350 if test "x$ac_cv_lib_db_4_6_db_env_create" = x""yes; then :
11351   DB4VERSION=4.6
11352
11353 $as_echo "#define HAVE_DB4 1" >>confdefs.h
11354
11355
11356 fi
11357
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb-4.7" >&5
11359 $as_echo_n "checking for db_env_create in -ldb-4.7... " >&6; }
11360 if test "${ac_cv_lib_db_4_7_db_env_create+set}" = set; then :
11361   $as_echo_n "(cached) " >&6
11362 else
11363   ac_check_lib_save_LIBS=$LIBS
11364 LIBS="-ldb-4.7  $LIBS"
11365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366 /* end confdefs.h.  */
11367
11368 /* Override any GCC internal prototype to avoid an error.
11369    Use char because int might match the return type of a GCC
11370    builtin and then its argument prototype would still apply.  */
11371 #ifdef __cplusplus
11372 extern "C"
11373 #endif
11374 char db_env_create ();
11375 int
11376 main ()
11377 {
11378 return db_env_create ();
11379   ;
11380   return 0;
11381 }
11382 _ACEOF
11383 if ac_fn_c_try_link "$LINENO"; then :
11384   ac_cv_lib_db_4_7_db_env_create=yes
11385 else
11386   ac_cv_lib_db_4_7_db_env_create=no
11387 fi
11388 rm -f core conftest.err conftest.$ac_objext \
11389     conftest$ac_exeext conftest.$ac_ext
11390 LIBS=$ac_check_lib_save_LIBS
11391 fi
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_4_7_db_env_create" >&5
11393 $as_echo "$ac_cv_lib_db_4_7_db_env_create" >&6; }
11394 if test "x$ac_cv_lib_db_4_7_db_env_create" = x""yes; then :
11395   DB4VERSION=4.7
11396
11397 $as_echo "#define HAVE_DB4 1" >>confdefs.h
11398
11399
11400 fi
11401
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb-4.8" >&5
11403 $as_echo_n "checking for db_env_create in -ldb-4.8... " >&6; }
11404 if test "${ac_cv_lib_db_4_8_db_env_create+set}" = set; then :
11405   $as_echo_n "(cached) " >&6
11406 else
11407   ac_check_lib_save_LIBS=$LIBS
11408 LIBS="-ldb-4.8  $LIBS"
11409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11410 /* end confdefs.h.  */
11411
11412 /* Override any GCC internal prototype to avoid an error.
11413    Use char because int might match the return type of a GCC
11414    builtin and then its argument prototype would still apply.  */
11415 #ifdef __cplusplus
11416 extern "C"
11417 #endif
11418 char db_env_create ();
11419 int
11420 main ()
11421 {
11422 return db_env_create ();
11423   ;
11424   return 0;
11425 }
11426 _ACEOF
11427 if ac_fn_c_try_link "$LINENO"; then :
11428   ac_cv_lib_db_4_8_db_env_create=yes
11429 else
11430   ac_cv_lib_db_4_8_db_env_create=no
11431 fi
11432 rm -f core conftest.err conftest.$ac_objext \
11433     conftest$ac_exeext conftest.$ac_ext
11434 LIBS=$ac_check_lib_save_LIBS
11435 fi
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_4_8_db_env_create" >&5
11437 $as_echo "$ac_cv_lib_db_4_8_db_env_create" >&6; }
11438 if test "x$ac_cv_lib_db_4_8_db_env_create" = x""yes; then :
11439   DB4VERSION=4.8
11440
11441 $as_echo "#define HAVE_DB4 1" >>confdefs.h
11442
11443
11444 fi
11445
11446
11447
11448 # Check whether --with-sqlite3 was given.
11449 if test "${with_sqlite3+set}" = set; then :
11450   withval=$with_sqlite3; SQLITE3_LIBS="-L$with_sqlite3"
11451 fi
11452
11453
11454 if test x"$E2SCAN_CMT" == x; then
11455
11456 CFLAGS_OLD=$CFLAGS
11457 SQLITE3_LIB=''
11458 CFLAGS="$CFLAGS_OLD $SQLITE3_LIBS -static -pthread"
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
11460 $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
11461 if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then :
11462   $as_echo_n "(cached) " >&6
11463 else
11464   ac_check_lib_save_LIBS=$LIBS
11465 LIBS="-lsqlite3  $LIBS"
11466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11467 /* end confdefs.h.  */
11468
11469 /* Override any GCC internal prototype to avoid an error.
11470    Use char because int might match the return type of a GCC
11471    builtin and then its argument prototype would still apply.  */
11472 #ifdef __cplusplus
11473 extern "C"
11474 #endif
11475 char sqlite3_open ();
11476 int
11477 main ()
11478 {
11479 return sqlite3_open ();
11480   ;
11481   return 0;
11482 }
11483 _ACEOF
11484 if ac_fn_c_try_link "$LINENO"; then :
11485   ac_cv_lib_sqlite3_sqlite3_open=yes
11486 else
11487   ac_cv_lib_sqlite3_sqlite3_open=no
11488 fi
11489 rm -f core conftest.err conftest.$ac_objext \
11490     conftest$ac_exeext conftest.$ac_ext
11491 LIBS=$ac_check_lib_save_LIBS
11492 fi
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
11494 $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
11495 if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then :
11496
11497         SQLITE3_LIB="$SQLITE3_LIBS -static -pthread -lsqlite3"
11498
11499 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
11500
11501
11502 fi
11503
11504
11505 if test x"$SQLITE3_LIB" == x; then
11506         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no static sqlite3 - looking for dynamic one" >&5
11507 $as_echo "$as_me: WARNING: no static sqlite3 - looking for dynamic one" >&2;}
11508         CFLAGS="$CFLAGS_OLD $SQLITE3_LIBS -pthread"
11509         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5
11510 $as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; }
11511 if test "${ac_cv_lib_sqlite3_sqlite3_close+set}" = set; then :
11512   $as_echo_n "(cached) " >&6
11513 else
11514   ac_check_lib_save_LIBS=$LIBS
11515 LIBS="-lsqlite3  $LIBS"
11516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11517 /* end confdefs.h.  */
11518
11519 /* Override any GCC internal prototype to avoid an error.
11520    Use char because int might match the return type of a GCC
11521    builtin and then its argument prototype would still apply.  */
11522 #ifdef __cplusplus
11523 extern "C"
11524 #endif
11525 char sqlite3_close ();
11526 int
11527 main ()
11528 {
11529 return sqlite3_close ();
11530   ;
11531   return 0;
11532 }
11533 _ACEOF
11534 if ac_fn_c_try_link "$LINENO"; then :
11535   ac_cv_lib_sqlite3_sqlite3_close=yes
11536 else
11537   ac_cv_lib_sqlite3_sqlite3_close=no
11538 fi
11539 rm -f core conftest.err conftest.$ac_objext \
11540     conftest$ac_exeext conftest.$ac_ext
11541 LIBS=$ac_check_lib_save_LIBS
11542 fi
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5
11544 $as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; }
11545 if test "x$ac_cv_lib_sqlite3_sqlite3_close" = x""yes; then :
11546
11547                 SQLITE3_LIB="$SQLITE3_LIBS -pthread -lsqlite3"
11548
11549 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
11550
11551
11552 fi
11553
11554 fi
11555
11556
11557 CFLAGS=$CFLAGS_OLD
11558
11559 if test x"$SQLITE3_LIB" == x; then
11560         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no sqlite3 - e2scan will not support database based scanning" >&5
11561 $as_echo "$as_me: WARNING: no sqlite3 - e2scan will not support database based scanning" >&2;}
11562 fi
11563
11564 fi
11565
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11567 $as_echo_n "checking for optreset... " >&6; }
11568 if test "${ac_cv_have_optreset+set}" = set; then :
11569   $as_echo_n "(cached) " >&6
11570 else
11571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11572 /* end confdefs.h.  */
11573 #include <unistd.h>
11574
11575 _ACEOF
11576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11577   $EGREP "optreset" >/dev/null 2>&1; then :
11578   ac_cv_have_optreset=yes
11579 else
11580   ac_cv_have_optreset=no
11581 fi
11582 rm -f conftest*
11583
11584 fi
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11586 $as_echo "$ac_cv_have_optreset" >&6; }
11587 if test $ac_cv_have_optreset = yes; then
11588
11589 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11590
11591 fi
11592
11593 SEM_INIT_LIB=''
11594 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11595 if test "x$ac_cv_func_sem_init" = x""yes; then :
11596
11597 else
11598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11599 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11600 if test "${ac_cv_lib_pthread_sem_init+set}" = set; then :
11601   $as_echo_n "(cached) " >&6
11602 else
11603   ac_check_lib_save_LIBS=$LIBS
11604 LIBS="-lpthread  $LIBS"
11605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h.  */
11607
11608 /* Override any GCC internal prototype to avoid an error.
11609    Use char because int might match the return type of a GCC
11610    builtin and then its argument prototype would still apply.  */
11611 #ifdef __cplusplus
11612 extern "C"
11613 #endif
11614 char sem_init ();
11615 int
11616 main ()
11617 {
11618 return sem_init ();
11619   ;
11620   return 0;
11621 }
11622 _ACEOF
11623 if ac_fn_c_try_link "$LINENO"; then :
11624   ac_cv_lib_pthread_sem_init=yes
11625 else
11626   ac_cv_lib_pthread_sem_init=no
11627 fi
11628 rm -f core conftest.err conftest.$ac_objext \
11629     conftest$ac_exeext conftest.$ac_ext
11630 LIBS=$ac_check_lib_save_LIBS
11631 fi
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11633 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11634 if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then :
11635   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11636
11637         SEM_INIT_LIB=-lpthread
11638 else
11639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11640 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11641 if test "${ac_cv_lib_rt_sem_init+set}" = set; then :
11642   $as_echo_n "(cached) " >&6
11643 else
11644   ac_check_lib_save_LIBS=$LIBS
11645 LIBS="-lrt  $LIBS"
11646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11647 /* end confdefs.h.  */
11648
11649 /* Override any GCC internal prototype to avoid an error.
11650    Use char because int might match the return type of a GCC
11651    builtin and then its argument prototype would still apply.  */
11652 #ifdef __cplusplus
11653 extern "C"
11654 #endif
11655 char sem_init ();
11656 int
11657 main ()
11658 {
11659 return sem_init ();
11660   ;
11661   return 0;
11662 }
11663 _ACEOF
11664 if ac_fn_c_try_link "$LINENO"; then :
11665   ac_cv_lib_rt_sem_init=yes
11666 else
11667   ac_cv_lib_rt_sem_init=no
11668 fi
11669 rm -f core conftest.err conftest.$ac_objext \
11670     conftest$ac_exeext conftest.$ac_ext
11671 LIBS=$ac_check_lib_save_LIBS
11672 fi
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11674 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11675 if test "x$ac_cv_lib_rt_sem_init" = x""yes; then :
11676   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11677
11678         SEM_INIT_LIB=-lrt
11679 else
11680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11681 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11682 if test "${ac_cv_lib_posix4_sem_init+set}" = set; then :
11683   $as_echo_n "(cached) " >&6
11684 else
11685   ac_check_lib_save_LIBS=$LIBS
11686 LIBS="-lposix4  $LIBS"
11687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h.  */
11689
11690 /* Override any GCC internal prototype to avoid an error.
11691    Use char because int might match the return type of a GCC
11692    builtin and then its argument prototype would still apply.  */
11693 #ifdef __cplusplus
11694 extern "C"
11695 #endif
11696 char sem_init ();
11697 int
11698 main ()
11699 {
11700 return sem_init ();
11701   ;
11702   return 0;
11703 }
11704 _ACEOF
11705 if ac_fn_c_try_link "$LINENO"; then :
11706   ac_cv_lib_posix4_sem_init=yes
11707 else
11708   ac_cv_lib_posix4_sem_init=no
11709 fi
11710 rm -f core conftest.err conftest.$ac_objext \
11711     conftest$ac_exeext conftest.$ac_ext
11712 LIBS=$ac_check_lib_save_LIBS
11713 fi
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11715 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11716 if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then :
11717   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11718
11719         SEM_INIT_LIB=-lposix4
11720 fi
11721
11722 fi
11723
11724 fi
11725
11726 fi
11727
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11729 $as_echo_n "checking for unified diff option... " >&6; }
11730 if diff -u $0 $0 > /dev/null 2>&1 ; then
11731    UNI_DIFF_OPTS=-u
11732 else
11733    UNI_DIFF_OPTS=-c
11734 fi
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11736 $as_echo "$UNI_DIFF_OPTS" >&6; }
11737
11738 case "$host_os" in
11739 linux*)
11740
11741 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11742
11743         ;;
11744 esac
11745 LINUX_CMT="#"
11746 CYGWIN_CMT="#"
11747 UNIX_CMT=
11748 case "$host_os" in
11749 linux*)
11750         LINUX_CMT=
11751         ;;
11752 cygwin)
11753         CYGWIN_CMT=
11754         UNIX_CMT="#"
11755         ;;
11756 esac
11757
11758
11759
11760 case "$host_os" in
11761 linux* | gnu* | k*bsd*-gnu)
11762         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11763                 root_prefix="";
11764                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11765 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11766         fi
11767         ;;
11768 esac
11769 case "$host_os" in
11770 linux* | gnu* | k*bsd*-gnu)
11771         if test "$prefix" = NONE ; then
11772                 prefix="/usr";
11773                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11774 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11775                 if test "$mandir" = '${prefix}/man' ; then
11776                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11777 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11778                         mandir=/usr/share/man
11779                 fi
11780         fi
11781 ;;
11782 esac
11783 if test "$root_prefix" = NONE ; then
11784         if test "$prefix" = NONE ; then
11785                 root_prefix="$ac_default_prefix"
11786         else
11787                 root_prefix="$prefix"
11788         fi
11789         root_bindir=$bindir
11790         root_sbindir=$sbindir
11791         root_libdir=$libdir
11792         root_sysconfdir=$sysconfdir
11793 else
11794         root_bindir='${root_prefix}/bin'
11795         root_sbindir='${root_prefix}/sbin'
11796         root_libdir='${root_prefix}/lib'
11797         root_sysconfdir='${root_prefix}/etc'
11798 fi
11799 if test "$bindir" != '${exec_prefix}/bin'; then
11800     root_bindir=$bindir
11801     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11802 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11803 fi
11804 if test "$sbindir" != '${exec_prefix}/sbin'; then
11805     root_sbindir=$sbindir
11806     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11807 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11808 fi
11809 if test "$libdir" != '${exec_prefix}/lib'; then
11810     root_libdir=$libdir
11811     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11812 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11813 fi
11814 if test "$sysconfdir" != '${prefix}/etc'; then
11815     root_sysconfdir=$sysconfdir
11816     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11817 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11818 fi
11819
11820
11821
11822
11823
11824
11825 # Check whether --with-multiarch was given.
11826 if test "${with_multiarch+set}" = set; then :
11827   withval=$with_multiarch; libdir=$libdir/$withval
11828 root_libdir=$root_libdir/$withval
11829
11830 fi
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5
11832 $as_echo_n "checking whether linker accepts -static... " >&6; }
11833 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then :
11834   $as_echo_n "(cached) " >&6
11835 else
11836   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11838 /* end confdefs.h.  */
11839 #include <stdio.h>
11840 int
11841 main ()
11842 {
11843 fflush(stdout);
11844   ;
11845   return 0;
11846 }
11847 _ACEOF
11848 if ac_fn_c_try_link "$LINENO"; then :
11849   ac_cv_e2fsprogs_use_static=yes
11850 else
11851   ac_cv_e2fsprogs_use_static=no
11852 fi
11853 rm -f core conftest.err conftest.$ac_objext \
11854     conftest$ac_exeext conftest.$ac_ext
11855 LDFLAGS=$SAVE_LDFLAGS
11856 fi
11857
11858 case "$host_os" in
11859 solaris2.*)
11860         ac_cv_e2fsprogs_use_static=no
11861 ;;
11862 esac
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11864 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11865 LDFLAG_STATIC=
11866 if test $ac_cv_e2fsprogs_use_static = yes; then
11867         LDFLAG_STATIC=-static
11868 fi
11869
11870 case "$host_os" in
11871 darwin*)
11872         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11873 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11874
11875 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11876
11877         ;;
11878 esac
11879 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11880 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11881
11882
11883 if test "$cross_compiling" = yes ; then
11884   DO_TEST_SUITE=
11885 else
11886   DO_TEST_SUITE=check
11887 fi
11888
11889 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11890 if test -n "$CPPFLAGS" ; then
11891         INCLUDES="$INCLUDES $CPPFLAGS"
11892 fi
11893 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11894         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11895 fi
11896
11897 if test $cross_compiling = no; then
11898    BUILD_CFLAGS="$CFLAGS"
11899    BUILD_LDFLAGS="$LDFLAGS"
11900 else
11901    BUILD_CFLAGS=
11902    BUILD_LDFLAGS=
11903 fi
11904
11905
11906 test -d lib || mkdir lib
11907 test -d include || mkdir include
11908 test -d include/linux || mkdir include/linux
11909 test -d include/asm || mkdir include/asm
11910 for i in MCONFIG Makefile e2fsprogs.spec \
11911         e2fsprogs-RHEL-6.spec \
11912         e2fsprogs-SUSE_LINUX-11.spec \
11913         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11914         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11915         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11916         lib/uuid/Makefile lib/uuid/uuid_types.h \
11917         lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11918         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11919         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11920         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11921         debugfs/Makefile e2scan/Makefile tests/Makefile tests/progs/Makefile \
11922         resize/Makefile doc/Makefile intl/Makefile \
11923         intl/libgnuintl.h po/Makefile.in ; do
11924         if test -d `dirname ${srcdir}/$i` ; then
11925                 outlist="$outlist $i"
11926         fi
11927 done
11928 ac_config_files="$ac_config_files $outlist"
11929
11930 cat >confcache <<\_ACEOF
11931 # This file is a shell script that caches the results of configure
11932 # tests run on this system so they can be shared between configure
11933 # scripts and configure runs, see configure's option --config-cache.
11934 # It is not useful on other systems.  If it contains results you don't
11935 # want to keep, you may remove or edit it.
11936 #
11937 # config.status only pays attention to the cache file if you give it
11938 # the --recheck option to rerun configure.
11939 #
11940 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11941 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11942 # following values.
11943
11944 _ACEOF
11945
11946 # The following way of writing the cache mishandles newlines in values,
11947 # but we know of no workaround that is simple, portable, and efficient.
11948 # So, we kill variables containing newlines.
11949 # Ultrix sh set writes to stderr and can't be redirected directly,
11950 # and sets the high bit in the cache file unless we assign to the vars.
11951 (
11952   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11953     eval ac_val=\$$ac_var
11954     case $ac_val in #(
11955     *${as_nl}*)
11956       case $ac_var in #(
11957       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11958 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11959       esac
11960       case $ac_var in #(
11961       _ | IFS | as_nl) ;; #(
11962       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11963       *) { eval $ac_var=; unset $ac_var;} ;;
11964       esac ;;
11965     esac
11966   done
11967
11968   (set) 2>&1 |
11969     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11970     *${as_nl}ac_space=\ *)
11971       # `set' does not quote correctly, so add quotes: double-quote
11972       # substitution turns \\\\ into \\, and sed turns \\ into \.
11973       sed -n \
11974         "s/'/'\\\\''/g;
11975           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11976       ;; #(
11977     *)
11978       # `set' quotes correctly as required by POSIX, so do not add quotes.
11979       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11980       ;;
11981     esac |
11982     sort
11983 ) |
11984   sed '
11985      /^ac_cv_env_/b end
11986      t clear
11987      :clear
11988      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11989      t end
11990      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11991      :end' >>confcache
11992 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11993   if test -w "$cache_file"; then
11994     test "x$cache_file" != "x/dev/null" &&
11995       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11996 $as_echo "$as_me: updating cache $cache_file" >&6;}
11997     cat confcache >$cache_file
11998   else
11999     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12000 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12001   fi
12002 fi
12003 rm -f confcache
12004
12005 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12006 # Let make expand exec_prefix.
12007 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12008
12009 DEFS=-DHAVE_CONFIG_H
12010
12011 ac_libobjs=
12012 ac_ltlibobjs=
12013 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12014   # 1. Remove the extension, and $U if already installed.
12015   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12016   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12017   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12018   #    will be set to the directory where LIBOBJS objects are built.
12019   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12020   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12021 done
12022 LIBOBJS=$ac_libobjs
12023
12024 LTLIBOBJS=$ac_ltlibobjs
12025
12026
12027
12028
12029 : ${CONFIG_STATUS=./config.status}
12030 ac_write_fail=0
12031 ac_clean_files_save=$ac_clean_files
12032 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12034 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12035 as_write_fail=0
12036 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12037 #! $SHELL
12038 # Generated by $as_me.
12039 # Run this file to recreate the current configuration.
12040 # Compiler output produced by configure, useful for debugging
12041 # configure, is in config.log if it exists.
12042
12043 debug=false
12044 ac_cs_recheck=false
12045 ac_cs_silent=false
12046
12047 SHELL=\${CONFIG_SHELL-$SHELL}
12048 export SHELL
12049 _ASEOF
12050 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12051 ## -------------------- ##
12052 ## M4sh Initialization. ##
12053 ## -------------------- ##
12054
12055 # Be more Bourne compatible
12056 DUALCASE=1; export DUALCASE # for MKS sh
12057 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12058   emulate sh
12059   NULLCMD=:
12060   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12061   # is contrary to our usage.  Disable this feature.
12062   alias -g '${1+"$@"}'='"$@"'
12063   setopt NO_GLOB_SUBST
12064 else
12065   case `(set -o) 2>/dev/null` in #(
12066   *posix*) :
12067     set -o posix ;; #(
12068   *) :
12069      ;;
12070 esac
12071 fi
12072
12073
12074 as_nl='
12075 '
12076 export as_nl
12077 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12078 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12079 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12080 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12081 # Prefer a ksh shell builtin over an external printf program on Solaris,
12082 # but without wasting forks for bash or zsh.
12083 if test -z "$BASH_VERSION$ZSH_VERSION" \
12084     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12085   as_echo='print -r --'
12086   as_echo_n='print -rn --'
12087 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12088   as_echo='printf %s\n'
12089   as_echo_n='printf %s'
12090 else
12091   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12092     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12093     as_echo_n='/usr/ucb/echo -n'
12094   else
12095     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12096     as_echo_n_body='eval
12097       arg=$1;
12098       case $arg in #(
12099       *"$as_nl"*)
12100         expr "X$arg" : "X\\(.*\\)$as_nl";
12101         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12102       esac;
12103       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12104     '
12105     export as_echo_n_body
12106     as_echo_n='sh -c $as_echo_n_body as_echo'
12107   fi
12108   export as_echo_body
12109   as_echo='sh -c $as_echo_body as_echo'
12110 fi
12111
12112 # The user is always right.
12113 if test "${PATH_SEPARATOR+set}" != set; then
12114   PATH_SEPARATOR=:
12115   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12116     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12117       PATH_SEPARATOR=';'
12118   }
12119 fi
12120
12121
12122 # IFS
12123 # We need space, tab and new line, in precisely that order.  Quoting is
12124 # there to prevent editors from complaining about space-tab.
12125 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12126 # splitting by setting IFS to empty value.)
12127 IFS=" ""        $as_nl"
12128
12129 # Find who we are.  Look in the path if we contain no directory separator.
12130 case $0 in #((
12131   *[\\/]* ) as_myself=$0 ;;
12132   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12133 for as_dir in $PATH
12134 do
12135   IFS=$as_save_IFS
12136   test -z "$as_dir" && as_dir=.
12137     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12138   done
12139 IFS=$as_save_IFS
12140
12141      ;;
12142 esac
12143 # We did not find ourselves, most probably we were run as `sh COMMAND'
12144 # in which case we are not to be found in the path.
12145 if test "x$as_myself" = x; then
12146   as_myself=$0
12147 fi
12148 if test ! -f "$as_myself"; then
12149   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12150   exit 1
12151 fi
12152
12153 # Unset variables that we do not need and which cause bugs (e.g. in
12154 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12155 # suppresses any "Segmentation fault" message there.  '((' could
12156 # trigger a bug in pdksh 5.2.14.
12157 for as_var in BASH_ENV ENV MAIL MAILPATH
12158 do eval test x\${$as_var+set} = xset \
12159   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12160 done
12161 PS1='$ '
12162 PS2='> '
12163 PS4='+ '
12164
12165 # NLS nuisances.
12166 LC_ALL=C
12167 export LC_ALL
12168 LANGUAGE=C
12169 export LANGUAGE
12170
12171 # CDPATH.
12172 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12173
12174
12175 # as_fn_error ERROR [LINENO LOG_FD]
12176 # ---------------------------------
12177 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12178 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12179 # script with status $?, using 1 if that was 0.
12180 as_fn_error ()
12181 {
12182   as_status=$?; test $as_status -eq 0 && as_status=1
12183   if test "$3"; then
12184     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12185     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12186   fi
12187   $as_echo "$as_me: error: $1" >&2
12188   as_fn_exit $as_status
12189 } # as_fn_error
12190
12191
12192 # as_fn_set_status STATUS
12193 # -----------------------
12194 # Set $? to STATUS, without forking.
12195 as_fn_set_status ()
12196 {
12197   return $1
12198 } # as_fn_set_status
12199
12200 # as_fn_exit STATUS
12201 # -----------------
12202 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12203 as_fn_exit ()
12204 {
12205   set +e
12206   as_fn_set_status $1
12207   exit $1
12208 } # as_fn_exit
12209
12210 # as_fn_unset VAR
12211 # ---------------
12212 # Portably unset VAR.
12213 as_fn_unset ()
12214 {
12215   { eval $1=; unset $1;}
12216 }
12217 as_unset=as_fn_unset
12218 # as_fn_append VAR VALUE
12219 # ----------------------
12220 # Append the text in VALUE to the end of the definition contained in VAR. Take
12221 # advantage of any shell optimizations that allow amortized linear growth over
12222 # repeated appends, instead of the typical quadratic growth present in naive
12223 # implementations.
12224 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12225   eval 'as_fn_append ()
12226   {
12227     eval $1+=\$2
12228   }'
12229 else
12230   as_fn_append ()
12231   {
12232     eval $1=\$$1\$2
12233   }
12234 fi # as_fn_append
12235
12236 # as_fn_arith ARG...
12237 # ------------------
12238 # Perform arithmetic evaluation on the ARGs, and store the result in the
12239 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12240 # must be portable across $(()) and expr.
12241 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12242   eval 'as_fn_arith ()
12243   {
12244     as_val=$(( $* ))
12245   }'
12246 else
12247   as_fn_arith ()
12248   {
12249     as_val=`expr "$@" || test $? -eq 1`
12250   }
12251 fi # as_fn_arith
12252
12253
12254 if expr a : '\(a\)' >/dev/null 2>&1 &&
12255    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12256   as_expr=expr
12257 else
12258   as_expr=false
12259 fi
12260
12261 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12262   as_basename=basename
12263 else
12264   as_basename=false
12265 fi
12266
12267 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12268   as_dirname=dirname
12269 else
12270   as_dirname=false
12271 fi
12272
12273 as_me=`$as_basename -- "$0" ||
12274 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12275          X"$0" : 'X\(//\)$' \| \
12276          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12277 $as_echo X/"$0" |
12278     sed '/^.*\/\([^/][^/]*\)\/*$/{
12279             s//\1/
12280             q
12281           }
12282           /^X\/\(\/\/\)$/{
12283             s//\1/
12284             q
12285           }
12286           /^X\/\(\/\).*/{
12287             s//\1/
12288             q
12289           }
12290           s/.*/./; q'`
12291
12292 # Avoid depending upon Character Ranges.
12293 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12294 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12295 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12296 as_cr_digits='0123456789'
12297 as_cr_alnum=$as_cr_Letters$as_cr_digits
12298
12299 ECHO_C= ECHO_N= ECHO_T=
12300 case `echo -n x` in #(((((
12301 -n*)
12302   case `echo 'xy\c'` in
12303   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12304   xy)  ECHO_C='\c';;
12305   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12306        ECHO_T=' ';;
12307   esac;;
12308 *)
12309   ECHO_N='-n';;
12310 esac
12311
12312 rm -f conf$$ conf$$.exe conf$$.file
12313 if test -d conf$$.dir; then
12314   rm -f conf$$.dir/conf$$.file
12315 else
12316   rm -f conf$$.dir
12317   mkdir conf$$.dir 2>/dev/null
12318 fi
12319 if (echo >conf$$.file) 2>/dev/null; then
12320   if ln -s conf$$.file conf$$ 2>/dev/null; then
12321     as_ln_s='ln -s'
12322     # ... but there are two gotchas:
12323     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12324     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12325     # In both cases, we have to default to `cp -p'.
12326     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12327       as_ln_s='cp -p'
12328   elif ln conf$$.file conf$$ 2>/dev/null; then
12329     as_ln_s=ln
12330   else
12331     as_ln_s='cp -p'
12332   fi
12333 else
12334   as_ln_s='cp -p'
12335 fi
12336 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12337 rmdir conf$$.dir 2>/dev/null
12338
12339
12340 # as_fn_mkdir_p
12341 # -------------
12342 # Create "$as_dir" as a directory, including parents if necessary.
12343 as_fn_mkdir_p ()
12344 {
12345
12346   case $as_dir in #(
12347   -*) as_dir=./$as_dir;;
12348   esac
12349   test -d "$as_dir" || eval $as_mkdir_p || {
12350     as_dirs=
12351     while :; do
12352       case $as_dir in #(
12353       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12354       *) as_qdir=$as_dir;;
12355       esac
12356       as_dirs="'$as_qdir' $as_dirs"
12357       as_dir=`$as_dirname -- "$as_dir" ||
12358 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12359          X"$as_dir" : 'X\(//\)[^/]' \| \
12360          X"$as_dir" : 'X\(//\)$' \| \
12361          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12362 $as_echo X"$as_dir" |
12363     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12364             s//\1/
12365             q
12366           }
12367           /^X\(\/\/\)[^/].*/{
12368             s//\1/
12369             q
12370           }
12371           /^X\(\/\/\)$/{
12372             s//\1/
12373             q
12374           }
12375           /^X\(\/\).*/{
12376             s//\1/
12377             q
12378           }
12379           s/.*/./; q'`
12380       test -d "$as_dir" && break
12381     done
12382     test -z "$as_dirs" || eval "mkdir $as_dirs"
12383   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12384
12385
12386 } # as_fn_mkdir_p
12387 if mkdir -p . 2>/dev/null; then
12388   as_mkdir_p='mkdir -p "$as_dir"'
12389 else
12390   test -d ./-p && rmdir ./-p
12391   as_mkdir_p=false
12392 fi
12393
12394 if test -x / >/dev/null 2>&1; then
12395   as_test_x='test -x'
12396 else
12397   if ls -dL / >/dev/null 2>&1; then
12398     as_ls_L_option=L
12399   else
12400     as_ls_L_option=
12401   fi
12402   as_test_x='
12403     eval sh -c '\''
12404       if test -d "$1"; then
12405         test -d "$1/.";
12406       else
12407         case $1 in #(
12408         -*)set "./$1";;
12409         esac;
12410         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12411         ???[sx]*):;;*)false;;esac;fi
12412     '\'' sh
12413   '
12414 fi
12415 as_executable_p=$as_test_x
12416
12417 # Sed expression to map a string onto a valid CPP name.
12418 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12419
12420 # Sed expression to map a string onto a valid variable name.
12421 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12422
12423
12424 exec 6>&1
12425 ## ----------------------------------- ##
12426 ## Main body of $CONFIG_STATUS script. ##
12427 ## ----------------------------------- ##
12428 _ASEOF
12429 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12430
12431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12432 # Save the log message, to keep $0 and so on meaningful, and to
12433 # report actual input values of CONFIG_FILES etc. instead of their
12434 # values after options handling.
12435 ac_log="
12436 This file was extended by $as_me, which was
12437 generated by GNU Autoconf 2.65.  Invocation command line was
12438
12439   CONFIG_FILES    = $CONFIG_FILES
12440   CONFIG_HEADERS  = $CONFIG_HEADERS
12441   CONFIG_LINKS    = $CONFIG_LINKS
12442   CONFIG_COMMANDS = $CONFIG_COMMANDS
12443   $ $0 $@
12444
12445 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12446 "
12447
12448 _ACEOF
12449
12450 case $ac_config_files in *"
12451 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12452 esac
12453
12454 case $ac_config_headers in *"
12455 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12456 esac
12457
12458
12459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12460 # Files that config.status was made for.
12461 config_files="$ac_config_files"
12462 config_headers="$ac_config_headers"
12463 config_commands="$ac_config_commands"
12464
12465 _ACEOF
12466
12467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12468 ac_cs_usage="\
12469 \`$as_me' instantiates files and other configuration actions
12470 from templates according to the current configuration.  Unless the files
12471 and actions are specified as TAGs, all are instantiated by default.
12472
12473 Usage: $0 [OPTION]... [TAG]...
12474
12475   -h, --help       print this help, then exit
12476   -V, --version    print version number and configuration settings, then exit
12477       --config     print configuration, then exit
12478   -q, --quiet, --silent
12479                    do not print progress messages
12480   -d, --debug      don't remove temporary files
12481       --recheck    update $as_me by reconfiguring in the same conditions
12482       --file=FILE[:TEMPLATE]
12483                    instantiate the configuration file FILE
12484       --header=FILE[:TEMPLATE]
12485                    instantiate the configuration header FILE
12486
12487 Configuration files:
12488 $config_files
12489
12490 Configuration headers:
12491 $config_headers
12492
12493 Configuration commands:
12494 $config_commands
12495
12496 Report bugs to the package provider."
12497
12498 _ACEOF
12499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12500 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12501 ac_cs_version="\\
12502 config.status
12503 configured by $0, generated by GNU Autoconf 2.65,
12504   with options \\"\$ac_cs_config\\"
12505
12506 Copyright (C) 2009 Free Software Foundation, Inc.
12507 This config.status script is free software; the Free Software Foundation
12508 gives unlimited permission to copy, distribute and modify it."
12509
12510 ac_pwd='$ac_pwd'
12511 srcdir='$srcdir'
12512 INSTALL='$INSTALL'
12513 AWK='$AWK'
12514 test -n "\$AWK" || AWK=awk
12515 _ACEOF
12516
12517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12518 # The default lists apply if the user does not specify any file.
12519 ac_need_defaults=:
12520 while test $# != 0
12521 do
12522   case $1 in
12523   --*=*)
12524     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12525     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12526     ac_shift=:
12527     ;;
12528   *)
12529     ac_option=$1
12530     ac_optarg=$2
12531     ac_shift=shift
12532     ;;
12533   esac
12534
12535   case $ac_option in
12536   # Handling of the options.
12537   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12538     ac_cs_recheck=: ;;
12539   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12540     $as_echo "$ac_cs_version"; exit ;;
12541   --config | --confi | --conf | --con | --co | --c )
12542     $as_echo "$ac_cs_config"; exit ;;
12543   --debug | --debu | --deb | --de | --d | -d )
12544     debug=: ;;
12545   --file | --fil | --fi | --f )
12546     $ac_shift
12547     case $ac_optarg in
12548     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12549     esac
12550     as_fn_append CONFIG_FILES " '$ac_optarg'"
12551     ac_need_defaults=false;;
12552   --header | --heade | --head | --hea )
12553     $ac_shift
12554     case $ac_optarg in
12555     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12556     esac
12557     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12558     ac_need_defaults=false;;
12559   --he | --h)
12560     # Conflict between --help and --header
12561     as_fn_error "ambiguous option: \`$1'
12562 Try \`$0 --help' for more information.";;
12563   --help | --hel | -h )
12564     $as_echo "$ac_cs_usage"; exit ;;
12565   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12566   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12567     ac_cs_silent=: ;;
12568
12569   # This is an error.
12570   -*) as_fn_error "unrecognized option: \`$1'
12571 Try \`$0 --help' for more information." ;;
12572
12573   *) as_fn_append ac_config_targets " $1"
12574      ac_need_defaults=false ;;
12575
12576   esac
12577   shift
12578 done
12579
12580 ac_configure_extra_args=
12581
12582 if $ac_cs_silent; then
12583   exec 6>/dev/null
12584   ac_configure_extra_args="$ac_configure_extra_args --silent"
12585 fi
12586
12587 _ACEOF
12588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12589 if \$ac_cs_recheck; then
12590   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12591   shift
12592   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12593   CONFIG_SHELL='$SHELL'
12594   export CONFIG_SHELL
12595   exec "\$@"
12596 fi
12597
12598 _ACEOF
12599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12600 exec 5>>config.log
12601 {
12602   echo
12603   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12604 ## Running $as_me. ##
12605 _ASBOX
12606   $as_echo "$ac_log"
12607 } >&5
12608
12609 _ACEOF
12610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12611 #
12612 # INIT-COMMANDS
12613 #
12614 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12615     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12616     # from automake.
12617     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12618     # Capture the value of LINGUAS because we need it to compute CATALOGS.
12619     LINGUAS="${LINGUAS-%UNSET%}"
12620
12621
12622 _ACEOF
12623
12624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12625
12626 # Handling of arguments.
12627 for ac_config_target in $ac_config_targets
12628 do
12629   case $ac_config_target in
12630     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12631     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12632     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12633
12634   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12635   esac
12636 done
12637
12638
12639 # If the user did not use the arguments to specify the items to instantiate,
12640 # then the envvar interface is used.  Set only those that are not.
12641 # We use the long form for the default assignment because of an extremely
12642 # bizarre bug on SunOS 4.1.3.
12643 if $ac_need_defaults; then
12644   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12645   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12646   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12647 fi
12648
12649 # Have a temporary directory for convenience.  Make it in the build tree
12650 # simply because there is no reason against having it here, and in addition,
12651 # creating and moving files from /tmp can sometimes cause problems.
12652 # Hook for its removal unless debugging.
12653 # Note that there is a small window in which the directory will not be cleaned:
12654 # after its creation but before its name has been assigned to `$tmp'.
12655 $debug ||
12656 {
12657   tmp=
12658   trap 'exit_status=$?
12659   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12660 ' 0
12661   trap 'as_fn_exit 1' 1 2 13 15
12662 }
12663 # Create a (secure) tmp directory for tmp files.
12664
12665 {
12666   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12667   test -n "$tmp" && test -d "$tmp"
12668 }  ||
12669 {
12670   tmp=./conf$$-$RANDOM
12671   (umask 077 && mkdir "$tmp")
12672 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12673
12674 # Set up the scripts for CONFIG_FILES section.
12675 # No need to generate them if there are no CONFIG_FILES.
12676 # This happens for instance with `./config.status config.h'.
12677 if test -n "$CONFIG_FILES"; then
12678
12679 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12680   ac_cs_awk_getline=:
12681   ac_cs_awk_pipe_init=
12682   ac_cs_awk_read_file='
12683       while ((getline aline < (F[key])) > 0)
12684         print(aline)
12685       close(F[key])'
12686   ac_cs_awk_pipe_fini=
12687 else
12688   ac_cs_awk_getline=false
12689   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12690   ac_cs_awk_read_file='
12691       print "|#_!!_#|"
12692       print "cat " F[key] " &&"
12693       '$ac_cs_awk_pipe_init
12694   # The final `:' finishes the AND list.
12695   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12696 fi
12697 ac_cr=`echo X | tr X '\015'`
12698 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12699 # But we know of no other shell where ac_cr would be empty at this
12700 # point, so we can use a bashism as a fallback.
12701 if test "x$ac_cr" = x; then
12702   eval ac_cr=\$\'\\r\'
12703 fi
12704 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12705 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12706   ac_cs_awk_cr='\r'
12707 else
12708   ac_cs_awk_cr=$ac_cr
12709 fi
12710
12711 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12712 _ACEOF
12713
12714 # Create commands to substitute file output variables.
12715 {
12716   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12717   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
12718   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12719   echo "_ACAWK" &&
12720   echo "_ACEOF"
12721 } >conf$$files.sh &&
12722 . ./conf$$files.sh ||
12723   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12724 rm -f conf$$files.sh
12725
12726 {
12727   echo "cat >conf$$subs.awk <<_ACEOF" &&
12728   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12729   echo "_ACEOF"
12730 } >conf$$subs.sh ||
12731   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12732 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12733 ac_delim='%!_!# '
12734 for ac_last_try in false false false false false :; do
12735   . ./conf$$subs.sh ||
12736     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12737
12738   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12739   if test $ac_delim_n = $ac_delim_num; then
12740     break
12741   elif $ac_last_try; then
12742     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12743   else
12744     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12745   fi
12746 done
12747 rm -f conf$$subs.sh
12748
12749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12750 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12751 _ACEOF
12752 sed -n '
12753 h
12754 s/^/S["/; s/!.*/"]=/
12755 p
12756 g
12757 s/^[^!]*!//
12758 :repl
12759 t repl
12760 s/'"$ac_delim"'$//
12761 t delim
12762 :nl
12763 h
12764 s/\(.\{148\}\)..*/\1/
12765 t more1
12766 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12767 p
12768 n
12769 b repl
12770 :more1
12771 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12772 p
12773 g
12774 s/.\{148\}//
12775 t nl
12776 :delim
12777 h
12778 s/\(.\{148\}\)..*/\1/
12779 t more2
12780 s/["\\]/\\&/g; s/^/"/; s/$/"/
12781 p
12782 b
12783 :more2
12784 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12785 p
12786 g
12787 s/.\{148\}//
12788 t delim
12789 ' <conf$$subs.awk | sed '
12790 /^[^""]/{
12791   N
12792   s/\n//
12793 }
12794 ' >>$CONFIG_STATUS || ac_write_fail=1
12795 rm -f conf$$subs.awk
12796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12797 _ACAWK
12798 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12799   for (key in S) S_is_set[key] = 1
12800   FS = "\a"
12801   \$ac_cs_awk_pipe_init
12802 }
12803 {
12804   line = $ 0
12805   nfields = split(line, field, "@")
12806   substed = 0
12807   len = length(field[1])
12808   for (i = 2; i < nfields; i++) {
12809     key = field[i]
12810     keylen = length(key)
12811     if (S_is_set[key]) {
12812       value = S[key]
12813       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12814       len += length(value) + length(field[++i])
12815       substed = 1
12816     } else
12817       len += 1 + keylen
12818   }
12819   if (nfields == 3 && !substed) {
12820     key = field[2]
12821     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
12822       \$ac_cs_awk_read_file
12823       next
12824     }
12825   }
12826   print line
12827 }
12828 \$ac_cs_awk_pipe_fini
12829 _ACAWK
12830 _ACEOF
12831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12832 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12833   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12834 else
12835   cat
12836 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12837   || as_fn_error "could not setup config files machinery" "$LINENO" 5
12838 _ACEOF
12839
12840 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12841 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12842 # trailing colons and then remove the whole line if VPATH becomes empty
12843 # (actually we leave an empty line to preserve line numbers).
12844 if test "x$srcdir" = x.; then
12845   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12846 s/:*\$(srcdir):*/:/
12847 s/:*\${srcdir}:*/:/
12848 s/:*@srcdir@:*/:/
12849 s/^\([^=]*=[     ]*\):*/\1/
12850 s/:*$//
12851 s/^[^=]*=[       ]*$//
12852 }'
12853 fi
12854
12855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12856 fi # test -n "$CONFIG_FILES"
12857
12858 # Set up the scripts for CONFIG_HEADERS section.
12859 # No need to generate them if there are no CONFIG_HEADERS.
12860 # This happens for instance with `./config.status Makefile'.
12861 if test -n "$CONFIG_HEADERS"; then
12862 cat >"$tmp/defines.awk" <<\_ACAWK ||
12863 BEGIN {
12864 _ACEOF
12865
12866 # Transform confdefs.h into an awk script `defines.awk', embedded as
12867 # here-document in config.status, that substitutes the proper values into
12868 # config.h.in to produce config.h.
12869
12870 # Create a delimiter string that does not exist in confdefs.h, to ease
12871 # handling of long lines.
12872 ac_delim='%!_!# '
12873 for ac_last_try in false false :; do
12874   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12875   if test -z "$ac_t"; then
12876     break
12877   elif $ac_last_try; then
12878     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12879   else
12880     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12881   fi
12882 done
12883
12884 # For the awk script, D is an array of macro values keyed by name,
12885 # likewise P contains macro parameters if any.  Preserve backslash
12886 # newline sequences.
12887
12888 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12889 sed -n '
12890 s/.\{148\}/&'"$ac_delim"'/g
12891 t rset
12892 :rset
12893 s/^[     ]*#[    ]*define[       ][      ]*/ /
12894 t def
12895 d
12896 :def
12897 s/\\$//
12898 t bsnl
12899 s/["\\]/\\&/g
12900 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12901 D["\1"]=" \3"/p
12902 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12903 d
12904 :bsnl
12905 s/["\\]/\\&/g
12906 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12907 D["\1"]=" \3\\\\\\n"\\/p
12908 t cont
12909 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12910 t cont
12911 d
12912 :cont
12913 n
12914 s/.\{148\}/&'"$ac_delim"'/g
12915 t clear
12916 :clear
12917 s/\\$//
12918 t bsnlc
12919 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12920 d
12921 :bsnlc
12922 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12923 b cont
12924 ' <confdefs.h | sed '
12925 s/'"$ac_delim"'/"\\\
12926 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12927
12928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12929   for (key in D) D_is_set[key] = 1
12930   FS = "\a"
12931 }
12932 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12933   line = \$ 0
12934   split(line, arg, " ")
12935   if (arg[1] == "#") {
12936     defundef = arg[2]
12937     mac1 = arg[3]
12938   } else {
12939     defundef = substr(arg[1], 2)
12940     mac1 = arg[2]
12941   }
12942   split(mac1, mac2, "(") #)
12943   macro = mac2[1]
12944   prefix = substr(line, 1, index(line, defundef) - 1)
12945   if (D_is_set[macro]) {
12946     # Preserve the white space surrounding the "#".
12947     print prefix "define", macro P[macro] D[macro]
12948     next
12949   } else {
12950     # Replace #undef with comments.  This is necessary, for example,
12951     # in the case of _POSIX_SOURCE, which is predefined and required
12952     # on some systems where configure will not decide to define it.
12953     if (defundef == "undef") {
12954       print "/*", prefix defundef, macro, "*/"
12955       next
12956     }
12957   }
12958 }
12959 { print }
12960 _ACAWK
12961 _ACEOF
12962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12963   as_fn_error "could not setup config headers machinery" "$LINENO" 5
12964 fi # test -n "$CONFIG_HEADERS"
12965
12966
12967 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12968 shift
12969 for ac_tag
12970 do
12971   case $ac_tag in
12972   :[FHLC]) ac_mode=$ac_tag; continue;;
12973   esac
12974   case $ac_mode$ac_tag in
12975   :[FHL]*:*);;
12976   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12977   :[FH]-) ac_tag=-:-;;
12978   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12979   esac
12980   ac_save_IFS=$IFS
12981   IFS=:
12982   set x $ac_tag
12983   IFS=$ac_save_IFS
12984   shift
12985   ac_file=$1
12986   shift
12987
12988   case $ac_mode in
12989   :L) ac_source=$1;;
12990   :[FH])
12991     ac_file_inputs=
12992     for ac_f
12993     do
12994       case $ac_f in
12995       -) ac_f="$tmp/stdin";;
12996       *) # Look for the file first in the build tree, then in the source tree
12997          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12998          # because $ac_f cannot contain `:'.
12999          test -f "$ac_f" ||
13000            case $ac_f in
13001            [\\/$]*) false;;
13002            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13003            esac ||
13004            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13005       esac
13006       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13007       as_fn_append ac_file_inputs " '$ac_f'"
13008     done
13009
13010     # Let's still pretend it is `configure' which instantiates (i.e., don't
13011     # use $as_me), people would be surprised to read:
13012     #    /* config.h.  Generated by config.status.  */
13013     configure_input='Generated from '`
13014           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13015         `' by configure.'
13016     if test x"$ac_file" != x-; then
13017       configure_input="$ac_file.  $configure_input"
13018       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13019 $as_echo "$as_me: creating $ac_file" >&6;}
13020     fi
13021     # Neutralize special characters interpreted by sed in replacement strings.
13022     case $configure_input in #(
13023     *\&* | *\|* | *\\* )
13024        ac_sed_conf_input=`$as_echo "$configure_input" |
13025        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13026     *) ac_sed_conf_input=$configure_input;;
13027     esac
13028
13029     case $ac_tag in
13030     *:-:* | *:-) cat >"$tmp/stdin" \
13031       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13032     esac
13033     ;;
13034   esac
13035
13036   ac_dir=`$as_dirname -- "$ac_file" ||
13037 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13038          X"$ac_file" : 'X\(//\)[^/]' \| \
13039          X"$ac_file" : 'X\(//\)$' \| \
13040          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13041 $as_echo X"$ac_file" |
13042     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13043             s//\1/
13044             q
13045           }
13046           /^X\(\/\/\)[^/].*/{
13047             s//\1/
13048             q
13049           }
13050           /^X\(\/\/\)$/{
13051             s//\1/
13052             q
13053           }
13054           /^X\(\/\).*/{
13055             s//\1/
13056             q
13057           }
13058           s/.*/./; q'`
13059   as_dir="$ac_dir"; as_fn_mkdir_p
13060   ac_builddir=.
13061
13062 case "$ac_dir" in
13063 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13064 *)
13065   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13066   # A ".." for each directory in $ac_dir_suffix.
13067   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13068   case $ac_top_builddir_sub in
13069   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13070   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13071   esac ;;
13072 esac
13073 ac_abs_top_builddir=$ac_pwd
13074 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13075 # for backward compatibility:
13076 ac_top_builddir=$ac_top_build_prefix
13077
13078 case $srcdir in
13079   .)  # We are building in place.
13080     ac_srcdir=.
13081     ac_top_srcdir=$ac_top_builddir_sub
13082     ac_abs_top_srcdir=$ac_pwd ;;
13083   [\\/]* | ?:[\\/]* )  # Absolute name.
13084     ac_srcdir=$srcdir$ac_dir_suffix;
13085     ac_top_srcdir=$srcdir
13086     ac_abs_top_srcdir=$srcdir ;;
13087   *) # Relative name.
13088     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13089     ac_top_srcdir=$ac_top_build_prefix$srcdir
13090     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13091 esac
13092 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13093
13094
13095   case $ac_mode in
13096   :F)
13097   #
13098   # CONFIG_FILE
13099   #
13100
13101   case $INSTALL in
13102   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13103   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13104   esac
13105 _ACEOF
13106
13107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13108 # If the template does not know about datarootdir, expand it.
13109 # FIXME: This hack should be removed a few years after 2.60.
13110 ac_datarootdir_hack=; ac_datarootdir_seen=
13111 ac_sed_dataroot='
13112 /datarootdir/ {
13113   p
13114   q
13115 }
13116 /@datadir@/p
13117 /@docdir@/p
13118 /@infodir@/p
13119 /@localedir@/p
13120 /@mandir@/p'
13121 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13122 *datarootdir*) ac_datarootdir_seen=yes;;
13123 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13124   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13125 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13126 _ACEOF
13127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13128   ac_datarootdir_hack='
13129   s&@datadir@&$datadir&g
13130   s&@docdir@&$docdir&g
13131   s&@infodir@&$infodir&g
13132   s&@localedir@&$localedir&g
13133   s&@mandir@&$mandir&g
13134   s&\\\${datarootdir}&$datarootdir&g' ;;
13135 esac
13136 _ACEOF
13137
13138 # Neutralize VPATH when `$srcdir' = `.'.
13139 # Shell code in configure.ac might set extrasub.
13140 # FIXME: do we really want to maintain this feature?
13141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13142 ac_sed_extra="$ac_vpsub
13143 $extrasub
13144 _ACEOF
13145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13146 :t
13147 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13148 s|@configure_input@|$ac_sed_conf_input|;t t
13149 s&@top_builddir@&$ac_top_builddir_sub&;t t
13150 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13151 s&@srcdir@&$ac_srcdir&;t t
13152 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13153 s&@top_srcdir@&$ac_top_srcdir&;t t
13154 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13155 s&@builddir@&$ac_builddir&;t t
13156 s&@abs_builddir@&$ac_abs_builddir&;t t
13157 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13158 s&@INSTALL@&$ac_INSTALL&;t t
13159 $ac_datarootdir_hack
13160 "
13161 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
13162 if $ac_cs_awk_getline; then
13163   $AWK -f "$tmp/subs.awk"
13164 else
13165   $AWK -f "$tmp/subs.awk" | $SHELL
13166 fi >$tmp/out \
13167   || as_fn_error "could not create $ac_file" "$LINENO" 5
13168
13169 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13170   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13171   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13172   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13173 which seems to be undefined.  Please make sure it is defined." >&5
13174 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13175 which seems to be undefined.  Please make sure it is defined." >&2;}
13176
13177   rm -f "$tmp/stdin"
13178   case $ac_file in
13179   -) cat "$tmp/out" && rm -f "$tmp/out";;
13180   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13181   esac \
13182   || as_fn_error "could not create $ac_file" "$LINENO" 5
13183  ;;
13184   :H)
13185   #
13186   # CONFIG_HEADER
13187   #
13188   if test x"$ac_file" != x-; then
13189     {
13190       $as_echo "/* $configure_input  */" \
13191       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13192     } >"$tmp/config.h" \
13193       || as_fn_error "could not create $ac_file" "$LINENO" 5
13194     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13195       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13196 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13197     else
13198       rm -f "$ac_file"
13199       mv "$tmp/config.h" "$ac_file" \
13200         || as_fn_error "could not create $ac_file" "$LINENO" 5
13201     fi
13202   else
13203     $as_echo "/* $configure_input  */" \
13204       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13205       || as_fn_error "could not create -" "$LINENO" 5
13206   fi
13207  ;;
13208
13209   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13210 $as_echo "$as_me: executing $ac_file commands" >&6;}
13211  ;;
13212   esac
13213
13214
13215   case $ac_file$ac_mode in
13216     "default-1":C)
13217     for ac_file in $CONFIG_FILES; do
13218       # Support "outfile[:infile[:infile...]]"
13219       case "$ac_file" in
13220         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13221       esac
13222       # PO directories have a Makefile.in generated from Makefile.in.in.
13223       case "$ac_file" in */Makefile.in)
13224         # Adjust a relative srcdir.
13225         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13226         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13227         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13228         # In autoconf-2.13 it is called $ac_given_srcdir.
13229         # In autoconf-2.50 it is called $srcdir.
13230         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13231         case "$ac_given_srcdir" in
13232           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13233           /*) top_srcdir="$ac_given_srcdir" ;;
13234           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
13235         esac
13236         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13237           rm -f "$ac_dir/POTFILES"
13238           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13239           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13240           POMAKEFILEDEPS="POTFILES.in"
13241           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
13242           # on $ac_dir but don't depend on user-specified configuration
13243           # parameters.
13244           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13245             # The LINGUAS file contains the set of available languages.
13246             if test -n "$OBSOLETE_ALL_LINGUAS"; then
13247               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13248             fi
13249             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13250             # Hide the ALL_LINGUAS assigment from automake.
13251             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13252             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13253           else
13254             # The set of available languages was given in configure.in.
13255             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13256           fi
13257           # Compute POFILES
13258           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
13259           # Compute UPDATEPOFILES
13260           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
13261           # Compute DUMMYPOFILES
13262           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
13263           # Compute GMOFILES
13264           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
13265           case "$ac_given_srcdir" in
13266             .) srcdirpre= ;;
13267             *) srcdirpre='$(srcdir)/' ;;
13268           esac
13269           POFILES=
13270           UPDATEPOFILES=
13271           DUMMYPOFILES=
13272           GMOFILES=
13273           for lang in $ALL_LINGUAS; do
13274             POFILES="$POFILES $srcdirpre$lang.po"
13275             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13276             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13277             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13278           done
13279           # CATALOGS depends on both $ac_dir and the user's LINGUAS
13280           # environment variable.
13281           INST_LINGUAS=
13282           if test -n "$ALL_LINGUAS"; then
13283             for presentlang in $ALL_LINGUAS; do
13284               useit=no
13285               if test "%UNSET%" != "$LINGUAS"; then
13286                 desiredlanguages="$LINGUAS"
13287               else
13288                 desiredlanguages="$ALL_LINGUAS"
13289               fi
13290               for desiredlang in $desiredlanguages; do
13291                 # Use the presentlang catalog if desiredlang is
13292                 #   a. equal to presentlang, or
13293                 #   b. a variant of presentlang (because in this case,
13294                 #      presentlang can be used as a fallback for messages
13295                 #      which are not translated in the desiredlang catalog).
13296                 case "$desiredlang" in
13297                   "$presentlang"*) useit=yes;;
13298                 esac
13299               done
13300               if test $useit = yes; then
13301                 INST_LINGUAS="$INST_LINGUAS $presentlang"
13302               fi
13303             done
13304           fi
13305           CATALOGS=
13306           if test -n "$INST_LINGUAS"; then
13307             for lang in $INST_LINGUAS; do
13308               CATALOGS="$CATALOGS $lang.gmo"
13309             done
13310           fi
13311           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13312           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"
13313           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13314             if test -f "$f"; then
13315               case "$f" in
13316                 *.orig | *.bak | *~) ;;
13317                 *) cat "$f" >> "$ac_dir/Makefile" ;;
13318               esac
13319             fi
13320           done
13321         fi
13322         ;;
13323       esac
13324     done ;;
13325
13326   esac
13327 done # for ac_tag
13328
13329
13330 as_fn_exit 0
13331 _ACEOF
13332 ac_clean_files=$ac_clean_files_save
13333
13334 test $ac_write_fail = 0 ||
13335   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13336
13337
13338 # configure is writing to config.log, and then calls config.status.
13339 # config.status does its own redirection, appending to config.log.
13340 # Unfortunately, on DOS this fails, as config.log is still kept open
13341 # by configure, so config.status won't be able to write to it; its
13342 # output is simply discarded.  So we exec the FD to /dev/null,
13343 # effectively closing config.log, so it can be properly (re)opened and
13344 # appended to by config.status.  When coming back to configure, we
13345 # need to make the FD available again.
13346 if test "$no_create" != yes; then
13347   ac_cs_success=:
13348   ac_config_status_args=
13349   test "$silent" = yes &&
13350     ac_config_status_args="$ac_config_status_args --quiet"
13351   exec 5>/dev/null
13352   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13353   exec 5>>config.log
13354   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13355   # would make configure fail if this is the last instruction.
13356   $ac_cs_success || as_fn_exit $?
13357 fi
13358 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13359   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13360 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13361 fi
13362
13363 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi