Whamcloud - gitweb
e2fsck: ignore xattr feature in backup superblocks
[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 SOCKET_LIB
615 SIZEOF_LONG_LONG
616 SIZEOF_LONG
617 SIZEOF_INT
618 SIZEOF_SHORT
619 BUILD_CC
620 MAKEINFO
621 STRIP
622 AR
623 LDCONFIG
624 PERL
625 SED
626 AWK
627 CHMOD
628 RM
629 CP
630 MV
631 LN_S
632 LN
633 ifNotGNUmake
634 ifGNUmake
635 BINARY_TYPE
636 POSUB
637 LTLIBINTL
638 LIBINTL
639 INTLLIBS
640 INTL_LIBTOOL_SUFFIX_PREFIX
641 INTLOBJS
642 GENCAT
643 INSTOBJEXT
644 DATADIRNAME
645 CATOBJEXT
646 USE_INCLUDED_LIBINTL
647 BUILD_INCLUDED_LIBINTL
648 INTLBISON
649 LTLIBICONV
650 LIBICONV
651 HAVE_WPRINTF
652 HAVE_SNPRINTF
653 HAVE_ASPRINTF
654 HAVE_POSIX_PRINTF
655 GLIBC21
656 ALLOCA
657 EGREP
658 GREP
659 RANLIB
660 MSGMERGE
661 XGETTEXT
662 GMSGFMT
663 MSGFMT
664 USE_NLS
665 MKINSTALLDIRS
666 INSTALL_DATA
667 INSTALL_SCRIPT
668 INSTALL_PROGRAM
669 SET_MAKE
670 VERSION
671 PACKAGE
672 GETTEXT_PACKAGE
673 UUIDD_CMT
674 E2INITRD_MAN
675 E2INITRD_PROG
676 FSCK_MAN
677 FSCK_PROG
678 DEFRAG_CMT
679 RESIZER_CMT
680 IMAGER_CMT
681 DEBUGFS_CMT
682 QUOTA_CMT
683 DEPPROFILED_LIBQUOTA
684 PROFILED_LIBQUOTA
685 DEPSTATIC_LIBQUOTA
686 STATIC_LIBQUOTA
687 DEPLIBQUOTA
688 LIBQUOTA
689 BLKID_CMT
690 DEPPROFILED_LIBBLKID
691 PROFILED_LIBBLKID
692 DEPSTATIC_LIBBLKID
693 STATIC_LIBBLKID
694 DEPLIBBLKID
695 LIBBLKID
696 UUID_CMT
697 DEPPROFILED_LIBUUID
698 PROFILED_LIBUUID
699 DEPSTATIC_LIBUUID
700 STATIC_LIBUUID
701 DEPLIBUUID
702 LIBUUID
703 PKG_CONFIG
704 TEST_IO_CMT
705 PRIVATE_LIBS_CMT
706 LDFLAG_DYNAMIC
707 PROFILED_LIB_EXT
708 STATIC_LIB_EXT
709 LIB_EXT
710 CHECKER_CMT
711 PROFILE_CMT
712 BSDLIB_CMT
713 ELF_CMT
714 HTREE_CMT
715 Q
716 ES
717 E
718 LINK_BUILD_FLAGS
719 SYMLINK_RELATIVE
720 LINK_INSTALL_FLAGS
721 MAINTAINER_CMT
722 CPP
723 RDYNAMIC
724 DLOPEN_LIB
725 OBJEXT
726 EXEEXT
727 ac_ct_CC
728 CPPFLAGS
729 LDFLAGS
730 CFLAGS
731 CC
732 host_os
733 host_vendor
734 host_cpu
735 host
736 build_os
737 build_vendor
738 build_cpu
739 build
740 E2FSPROGS_PKGVER
741 E2FSPROGS_VERSION
742 E2FSPROGS_DAY
743 E2FSPROGS_MONTH
744 E2FSPROGS_YEAR
745 target_alias
746 host_alias
747 build_alias
748 LIBS
749 ECHO_T
750 ECHO_N
751 ECHO_C
752 DEFS
753 mandir
754 localedir
755 libdir
756 psdir
757 pdfdir
758 dvidir
759 htmldir
760 infodir
761 docdir
762 oldincludedir
763 includedir
764 localstatedir
765 sharedstatedir
766 sysconfdir
767 datadir
768 datarootdir
769 libexecdir
770 sbindir
771 bindir
772 program_transform_name
773 prefix
774 exec_prefix
775 PACKAGE_URL
776 PACKAGE_BUGREPORT
777 PACKAGE_STRING
778 PACKAGE_VERSION
779 PACKAGE_TARNAME
780 PACKAGE_NAME
781 PATH_SEPARATOR
782 SHELL'
783 ac_subst_files='MCONFIG
784 MAKEFILE_ELF
785 MAKEFILE_BSDLIB
786 MAKEFILE_PROFILE
787 MAKEFILE_CHECKER
788 MAKEFILE_LIBRARY
789 ASM_TYPES_HEADER
790 PUBLIC_CONFIG_HEADER'
791 ac_user_opts='
792 enable_option_checking
793 with_diet_libc
794 with_cc
795 with_ccopts
796 with_ldopts
797 with_root_prefix
798 enable_maintainer_mode
799 enable_symlink_install
800 enable_symlink_relative_symlinks
801 enable_symlink_build
802 enable_verbose_makecmds
803 enable_compression
804 enable_htree
805 enable_elf_shlibs
806 enable_bsd_shlibs
807 enable_profile
808 enable_checker
809 enable_jbd_debug
810 enable_blkid_debug
811 enable_testio_debug
812 enable_libuuid
813 enable_libblkid
814 enable_quota
815 enable_debugfs
816 enable_imager
817 enable_resizer
818 enable_defrag
819 enable_fsck
820 enable_e2initrd_helper
821 enable_tls
822 enable_uuidd
823 enable_nls
824 with_gnu_ld
825 enable_rpath
826 with_libiconv_prefix
827 with_included_gettext
828 with_libintl_prefix
829 with_multiarch
830 '
831       ac_precious_vars='build_alias
832 host_alias
833 target_alias
834 CC
835 CFLAGS
836 LDFLAGS
837 LIBS
838 CPPFLAGS
839 CPP
840 PKG_CONFIG'
841
842
843 # Initialize some variables set by options.
844 ac_init_help=
845 ac_init_version=false
846 ac_unrecognized_opts=
847 ac_unrecognized_sep=
848 # The variables have the same names as the options, with
849 # dashes changed to underlines.
850 cache_file=/dev/null
851 exec_prefix=NONE
852 no_create=
853 no_recursion=
854 prefix=NONE
855 program_prefix=NONE
856 program_suffix=NONE
857 program_transform_name=s,x,x,
858 silent=
859 site=
860 srcdir=
861 verbose=
862 x_includes=NONE
863 x_libraries=NONE
864
865 # Installation directory options.
866 # These are left unexpanded so users can "make install exec_prefix=/foo"
867 # and all the variables that are supposed to be based on exec_prefix
868 # by default will actually change.
869 # Use braces instead of parens because sh, perl, etc. also accept them.
870 # (The list follows the same order as the GNU Coding Standards.)
871 bindir='${exec_prefix}/bin'
872 sbindir='${exec_prefix}/sbin'
873 libexecdir='${exec_prefix}/libexec'
874 datarootdir='${prefix}/share'
875 datadir='${datarootdir}'
876 sysconfdir='${prefix}/etc'
877 sharedstatedir='${prefix}/com'
878 localstatedir='${prefix}/var'
879 includedir='${prefix}/include'
880 oldincludedir='/usr/include'
881 docdir='${datarootdir}/doc/${PACKAGE}'
882 infodir='${datarootdir}/info'
883 htmldir='${docdir}'
884 dvidir='${docdir}'
885 pdfdir='${docdir}'
886 psdir='${docdir}'
887 libdir='${exec_prefix}/lib'
888 localedir='${datarootdir}/locale'
889 mandir='${datarootdir}/man'
890
891 ac_prev=
892 ac_dashdash=
893 for ac_option
894 do
895   # If the previous option needs an argument, assign it.
896   if test -n "$ac_prev"; then
897     eval $ac_prev=\$ac_option
898     ac_prev=
899     continue
900   fi
901
902   case $ac_option in
903   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904   *)    ac_optarg=yes ;;
905   esac
906
907   # Accept the important Cygnus configure options, so we can diagnose typos.
908
909   case $ac_dashdash$ac_option in
910   --)
911     ac_dashdash=yes ;;
912
913   -bindir | --bindir | --bindi | --bind | --bin | --bi)
914     ac_prev=bindir ;;
915   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
916     bindir=$ac_optarg ;;
917
918   -build | --build | --buil | --bui | --bu)
919     ac_prev=build_alias ;;
920   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
921     build_alias=$ac_optarg ;;
922
923   -cache-file | --cache-file | --cache-fil | --cache-fi \
924   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925     ac_prev=cache_file ;;
926   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
928     cache_file=$ac_optarg ;;
929
930   --config-cache | -C)
931     cache_file=config.cache ;;
932
933   -datadir | --datadir | --datadi | --datad)
934     ac_prev=datadir ;;
935   -datadir=* | --datadir=* | --datadi=* | --datad=*)
936     datadir=$ac_optarg ;;
937
938   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939   | --dataroo | --dataro | --datar)
940     ac_prev=datarootdir ;;
941   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943     datarootdir=$ac_optarg ;;
944
945   -disable-* | --disable-*)
946     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947     # Reject names that are not valid shell variable names.
948     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949       as_fn_error "invalid feature name: $ac_useropt"
950     ac_useropt_orig=$ac_useropt
951     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952     case $ac_user_opts in
953       *"
954 "enable_$ac_useropt"
955 "*) ;;
956       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957          ac_unrecognized_sep=', ';;
958     esac
959     eval enable_$ac_useropt=no ;;
960
961   -docdir | --docdir | --docdi | --doc | --do)
962     ac_prev=docdir ;;
963   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964     docdir=$ac_optarg ;;
965
966   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967     ac_prev=dvidir ;;
968   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969     dvidir=$ac_optarg ;;
970
971   -enable-* | --enable-*)
972     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973     # Reject names that are not valid shell variable names.
974     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975       as_fn_error "invalid feature name: $ac_useropt"
976     ac_useropt_orig=$ac_useropt
977     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978     case $ac_user_opts in
979       *"
980 "enable_$ac_useropt"
981 "*) ;;
982       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983          ac_unrecognized_sep=', ';;
984     esac
985     eval enable_$ac_useropt=\$ac_optarg ;;
986
987   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989   | --exec | --exe | --ex)
990     ac_prev=exec_prefix ;;
991   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993   | --exec=* | --exe=* | --ex=*)
994     exec_prefix=$ac_optarg ;;
995
996   -gas | --gas | --ga | --g)
997     # Obsolete; use --with-gas.
998     with_gas=yes ;;
999
1000   -help | --help | --hel | --he | -h)
1001     ac_init_help=long ;;
1002   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003     ac_init_help=recursive ;;
1004   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005     ac_init_help=short ;;
1006
1007   -host | --host | --hos | --ho)
1008     ac_prev=host_alias ;;
1009   -host=* | --host=* | --hos=* | --ho=*)
1010     host_alias=$ac_optarg ;;
1011
1012   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013     ac_prev=htmldir ;;
1014   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015   | --ht=*)
1016     htmldir=$ac_optarg ;;
1017
1018   -includedir | --includedir | --includedi | --included | --include \
1019   | --includ | --inclu | --incl | --inc)
1020     ac_prev=includedir ;;
1021   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022   | --includ=* | --inclu=* | --incl=* | --inc=*)
1023     includedir=$ac_optarg ;;
1024
1025   -infodir | --infodir | --infodi | --infod | --info | --inf)
1026     ac_prev=infodir ;;
1027   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028     infodir=$ac_optarg ;;
1029
1030   -libdir | --libdir | --libdi | --libd)
1031     ac_prev=libdir ;;
1032   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033     libdir=$ac_optarg ;;
1034
1035   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036   | --libexe | --libex | --libe)
1037     ac_prev=libexecdir ;;
1038   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039   | --libexe=* | --libex=* | --libe=*)
1040     libexecdir=$ac_optarg ;;
1041
1042   -localedir | --localedir | --localedi | --localed | --locale)
1043     ac_prev=localedir ;;
1044   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045     localedir=$ac_optarg ;;
1046
1047   -localstatedir | --localstatedir | --localstatedi | --localstated \
1048   | --localstate | --localstat | --localsta | --localst | --locals)
1049     ac_prev=localstatedir ;;
1050   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052     localstatedir=$ac_optarg ;;
1053
1054   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055     ac_prev=mandir ;;
1056   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057     mandir=$ac_optarg ;;
1058
1059   -nfp | --nfp | --nf)
1060     # Obsolete; use --without-fp.
1061     with_fp=no ;;
1062
1063   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064   | --no-cr | --no-c | -n)
1065     no_create=yes ;;
1066
1067   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069     no_recursion=yes ;;
1070
1071   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073   | --oldin | --oldi | --old | --ol | --o)
1074     ac_prev=oldincludedir ;;
1075   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078     oldincludedir=$ac_optarg ;;
1079
1080   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081     ac_prev=prefix ;;
1082   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083     prefix=$ac_optarg ;;
1084
1085   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086   | --program-pre | --program-pr | --program-p)
1087     ac_prev=program_prefix ;;
1088   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090     program_prefix=$ac_optarg ;;
1091
1092   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093   | --program-suf | --program-su | --program-s)
1094     ac_prev=program_suffix ;;
1095   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097     program_suffix=$ac_optarg ;;
1098
1099   -program-transform-name | --program-transform-name \
1100   | --program-transform-nam | --program-transform-na \
1101   | --program-transform-n | --program-transform- \
1102   | --program-transform | --program-transfor \
1103   | --program-transfo | --program-transf \
1104   | --program-trans | --program-tran \
1105   | --progr-tra | --program-tr | --program-t)
1106     ac_prev=program_transform_name ;;
1107   -program-transform-name=* | --program-transform-name=* \
1108   | --program-transform-nam=* | --program-transform-na=* \
1109   | --program-transform-n=* | --program-transform-=* \
1110   | --program-transform=* | --program-transfor=* \
1111   | --program-transfo=* | --program-transf=* \
1112   | --program-trans=* | --program-tran=* \
1113   | --progr-tra=* | --program-tr=* | --program-t=*)
1114     program_transform_name=$ac_optarg ;;
1115
1116   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117     ac_prev=pdfdir ;;
1118   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119     pdfdir=$ac_optarg ;;
1120
1121   -psdir | --psdir | --psdi | --psd | --ps)
1122     ac_prev=psdir ;;
1123   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124     psdir=$ac_optarg ;;
1125
1126   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127   | -silent | --silent | --silen | --sile | --sil)
1128     silent=yes ;;
1129
1130   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131     ac_prev=sbindir ;;
1132   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133   | --sbi=* | --sb=*)
1134     sbindir=$ac_optarg ;;
1135
1136   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138   | --sharedst | --shareds | --shared | --share | --shar \
1139   | --sha | --sh)
1140     ac_prev=sharedstatedir ;;
1141   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144   | --sha=* | --sh=*)
1145     sharedstatedir=$ac_optarg ;;
1146
1147   -site | --site | --sit)
1148     ac_prev=site ;;
1149   -site=* | --site=* | --sit=*)
1150     site=$ac_optarg ;;
1151
1152   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153     ac_prev=srcdir ;;
1154   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155     srcdir=$ac_optarg ;;
1156
1157   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158   | --syscon | --sysco | --sysc | --sys | --sy)
1159     ac_prev=sysconfdir ;;
1160   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162     sysconfdir=$ac_optarg ;;
1163
1164   -target | --target | --targe | --targ | --tar | --ta | --t)
1165     ac_prev=target_alias ;;
1166   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167     target_alias=$ac_optarg ;;
1168
1169   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170     verbose=yes ;;
1171
1172   -version | --version | --versio | --versi | --vers | -V)
1173     ac_init_version=: ;;
1174
1175   -with-* | --with-*)
1176     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177     # Reject names that are not valid shell variable names.
1178     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179       as_fn_error "invalid package name: $ac_useropt"
1180     ac_useropt_orig=$ac_useropt
1181     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182     case $ac_user_opts in
1183       *"
1184 "with_$ac_useropt"
1185 "*) ;;
1186       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187          ac_unrecognized_sep=', ';;
1188     esac
1189     eval with_$ac_useropt=\$ac_optarg ;;
1190
1191   -without-* | --without-*)
1192     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1193     # Reject names that are not valid shell variable names.
1194     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195       as_fn_error "invalid package name: $ac_useropt"
1196     ac_useropt_orig=$ac_useropt
1197     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198     case $ac_user_opts in
1199       *"
1200 "with_$ac_useropt"
1201 "*) ;;
1202       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203          ac_unrecognized_sep=', ';;
1204     esac
1205     eval with_$ac_useropt=no ;;
1206
1207   --x)
1208     # Obsolete; use --with-x.
1209     with_x=yes ;;
1210
1211   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212   | --x-incl | --x-inc | --x-in | --x-i)
1213     ac_prev=x_includes ;;
1214   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1216     x_includes=$ac_optarg ;;
1217
1218   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220     ac_prev=x_libraries ;;
1221   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1223     x_libraries=$ac_optarg ;;
1224
1225   -*) as_fn_error "unrecognized option: \`$ac_option'
1226 Try \`$0 --help' for more information."
1227     ;;
1228
1229   *=*)
1230     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231     # Reject names that are not valid shell variable names.
1232     case $ac_envvar in #(
1233       '' | [0-9]* | *[!_$as_cr_alnum]* )
1234       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1235     esac
1236     eval $ac_envvar=\$ac_optarg
1237     export $ac_envvar ;;
1238
1239   *)
1240     # FIXME: should be removed in autoconf 3.0.
1241     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1242     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1244     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1245     ;;
1246
1247   esac
1248 done
1249
1250 if test -n "$ac_prev"; then
1251   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1252   as_fn_error "missing argument to $ac_option"
1253 fi
1254
1255 if test -n "$ac_unrecognized_opts"; then
1256   case $enable_option_checking in
1257     no) ;;
1258     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1259     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1260   esac
1261 fi
1262
1263 # Check all directory arguments for consistency.
1264 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265                 datadir sysconfdir sharedstatedir localstatedir includedir \
1266                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267                 libdir localedir mandir
1268 do
1269   eval ac_val=\$$ac_var
1270   # Remove trailing slashes.
1271   case $ac_val in
1272     */ )
1273       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1274       eval $ac_var=\$ac_val;;
1275   esac
1276   # Be sure to have absolute directory names.
1277   case $ac_val in
1278     [\\/$]* | ?:[\\/]* )  continue;;
1279     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1280   esac
1281   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1282 done
1283
1284 # There might be people who depend on the old broken behavior: `$host'
1285 # used to hold the argument of --host etc.
1286 # FIXME: To remove some day.
1287 build=$build_alias
1288 host=$host_alias
1289 target=$target_alias
1290
1291 # FIXME: To remove some day.
1292 if test "x$host_alias" != x; then
1293   if test "x$build_alias" = x; then
1294     cross_compiling=maybe
1295     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1296     If a cross compiler is detected then cross compile mode will be used." >&2
1297   elif test "x$build_alias" != "x$host_alias"; then
1298     cross_compiling=yes
1299   fi
1300 fi
1301
1302 ac_tool_prefix=
1303 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304
1305 test "$silent" = yes && exec 6>/dev/null
1306
1307
1308 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di=`ls -di .` &&
1310 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311   as_fn_error "working directory cannot be determined"
1312 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313   as_fn_error "pwd does not report name of working directory"
1314
1315
1316 # Find the source files, if location was not specified.
1317 if test -z "$srcdir"; then
1318   ac_srcdir_defaulted=yes
1319   # Try the directory containing this script, then the parent directory.
1320   ac_confdir=`$as_dirname -- "$as_myself" ||
1321 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322          X"$as_myself" : 'X\(//\)[^/]' \| \
1323          X"$as_myself" : 'X\(//\)$' \| \
1324          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325 $as_echo X"$as_myself" |
1326     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327             s//\1/
1328             q
1329           }
1330           /^X\(\/\/\)[^/].*/{
1331             s//\1/
1332             q
1333           }
1334           /^X\(\/\/\)$/{
1335             s//\1/
1336             q
1337           }
1338           /^X\(\/\).*/{
1339             s//\1/
1340             q
1341           }
1342           s/.*/./; q'`
1343   srcdir=$ac_confdir
1344   if test ! -r "$srcdir/$ac_unique_file"; then
1345     srcdir=..
1346   fi
1347 else
1348   ac_srcdir_defaulted=no
1349 fi
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1353 fi
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355 ac_abs_confdir=`(
1356         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1357         pwd)`
1358 # When building in place, set srcdir=.
1359 if test "$ac_abs_confdir" = "$ac_pwd"; then
1360   srcdir=.
1361 fi
1362 # Remove unnecessary trailing slashes from srcdir.
1363 # Double slashes in file names in object file debugging info
1364 # mess up M-x gdb in Emacs.
1365 case $srcdir in
1366 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367 esac
1368 for ac_var in $ac_precious_vars; do
1369   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370   eval ac_env_${ac_var}_value=\$${ac_var}
1371   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373 done
1374
1375 #
1376 # Report the --help message.
1377 #
1378 if test "$ac_init_help" = "long"; then
1379   # Omit some internal or obsolete options to make the list less imposing.
1380   # This message is too long to be a string in the A/UX 3.1 sh.
1381   cat <<_ACEOF
1382 \`configure' configures this package to adapt to many kinds of systems.
1383
1384 Usage: $0 [OPTION]... [VAR=VALUE]...
1385
1386 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387 VAR=VALUE.  See below for descriptions of some of the useful variables.
1388
1389 Defaults for the options are specified in brackets.
1390
1391 Configuration:
1392   -h, --help              display this help and exit
1393       --help=short        display options specific to this package
1394       --help=recursive    display the short help of all the included packages
1395   -V, --version           display version information and exit
1396   -q, --quiet, --silent   do not print \`checking...' messages
1397       --cache-file=FILE   cache test results in FILE [disabled]
1398   -C, --config-cache      alias for \`--cache-file=config.cache'
1399   -n, --no-create         do not create output files
1400       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1401
1402 Installation directories:
1403   --prefix=PREFIX         install architecture-independent files in PREFIX
1404                           [$ac_default_prefix]
1405   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1406                           [PREFIX]
1407
1408 By default, \`make install' will install all the files in
1409 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1410 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411 for instance \`--prefix=\$HOME'.
1412
1413 For better control, use the options below.
1414
1415 Fine tuning of the installation directories:
1416   --bindir=DIR            user executables [EPREFIX/bin]
1417   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1418   --libexecdir=DIR        program executables [EPREFIX/libexec]
1419   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1420   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1421   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1422   --libdir=DIR            object code libraries [EPREFIX/lib]
1423   --includedir=DIR        C header files [PREFIX/include]
1424   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1425   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1426   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1427   --infodir=DIR           info documentation [DATAROOTDIR/info]
1428   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1429   --mandir=DIR            man documentation [DATAROOTDIR/man]
1430   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1431   --htmldir=DIR           html documentation [DOCDIR]
1432   --dvidir=DIR            dvi documentation [DOCDIR]
1433   --pdfdir=DIR            pdf documentation [DOCDIR]
1434   --psdir=DIR             ps documentation [DOCDIR]
1435 _ACEOF
1436
1437   cat <<\_ACEOF
1438
1439 System types:
1440   --build=BUILD     configure for building on BUILD [guessed]
1441   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1442 _ACEOF
1443 fi
1444
1445 if test -n "$ac_init_help"; then
1446
1447   cat <<\_ACEOF
1448
1449 Optional Features:
1450   --disable-option-checking  ignore unrecognized --enable/--with options
1451   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1452   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1453   --enable-maintainer-mode enable makefile rules useful for maintainers
1454   --enable-symlink-install use symlinks when installing instead of hard links
1455   --enable-relative-symlinks use relative symlinks when installing
1456   --enable-symlink-build  use symlinks while building instead of hard links
1457   --enable-verbose-makecmds enable verbose make command output
1458   --enable-compression    enable EXPERIMENTAL compression support
1459   --enable-htree          enable EXPERIMENTAL htree directory support
1460   --enable-elf-shlibs     select ELF shared libraries
1461   --enable-bsd-shlibs     select BSD shared libraries
1462   --enable-profile        build profiling libraries
1463   --enable-checker        build checker libraries
1464   --enable-jbd-debug      enable journal debugging
1465   --enable-blkid-debug    enable blkid debugging
1466   --disable-testio-debug  disable the use of the test I/O manager for debugging
1467   --disable-libuuid       do not build private uuid library
1468   --disable-libblkid      do not build private blkid library
1469   --enable-libquota       enable quota support
1470   --disable-debugfs       disable support of debugfs program
1471   --disable-imager        disable support of e2image program
1472   --disable-resizer       disable support of e2resize program
1473   --disable-defrag        disable support of e4defrag program
1474   --enable-fsck           build fsck wrapper program
1475   --enable-e2initrd-helper build e2initrd-helper program
1476   --disable-tls           disable use of thread local support
1477   --disable-uuidd         disable building the uuid daemon
1478   --disable-nls           do not use Native Language Support
1479   --disable-rpath         do not hardcode runtime library paths
1480
1481 Optional Packages:
1482   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1483   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1484   --with-diet-libc        use diet libc
1485   --with-cc               no longer supported, use CC= instead
1486   --with-ccopts           no longer supported, use CFLAGS= instead
1487   --with-ldopts           no longer supported, use LDFLAGS= instead
1488   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1489   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1490   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1491   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1492   --with-included-gettext use the GNU gettext library included here
1493   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1494   --without-libintl-prefix     don't search for libintl in includedir and libdir
1495   --with-multiarch=ARCH specify the multiarch triplet
1496
1497 Some influential environment variables:
1498   CC          C compiler command
1499   CFLAGS      C compiler flags
1500   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1501               nonstandard directory <lib dir>
1502   LIBS        libraries to pass to the linker, e.g. -l<library>
1503   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1504               you have headers in a nonstandard directory <include dir>
1505   CPP         C preprocessor
1506   PKG_CONFIG  path to pkg-config utility
1507
1508 Use these variables to override the choices made by `configure' or to help
1509 it to find libraries and programs with nonstandard names/locations.
1510
1511 Report bugs to the package provider.
1512 _ACEOF
1513 ac_status=$?
1514 fi
1515
1516 if test "$ac_init_help" = "recursive"; then
1517   # If there are subdirs, report their specific --help.
1518   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1519     test -d "$ac_dir" ||
1520       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1521       continue
1522     ac_builddir=.
1523
1524 case "$ac_dir" in
1525 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 *)
1527   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1528   # A ".." for each directory in $ac_dir_suffix.
1529   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1530   case $ac_top_builddir_sub in
1531   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1533   esac ;;
1534 esac
1535 ac_abs_top_builddir=$ac_pwd
1536 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1537 # for backward compatibility:
1538 ac_top_builddir=$ac_top_build_prefix
1539
1540 case $srcdir in
1541   .)  # We are building in place.
1542     ac_srcdir=.
1543     ac_top_srcdir=$ac_top_builddir_sub
1544     ac_abs_top_srcdir=$ac_pwd ;;
1545   [\\/]* | ?:[\\/]* )  # Absolute name.
1546     ac_srcdir=$srcdir$ac_dir_suffix;
1547     ac_top_srcdir=$srcdir
1548     ac_abs_top_srcdir=$srcdir ;;
1549   *) # Relative name.
1550     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1551     ac_top_srcdir=$ac_top_build_prefix$srcdir
1552     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1553 esac
1554 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1555
1556     cd "$ac_dir" || { ac_status=$?; continue; }
1557     # Check for guested configure.
1558     if test -f "$ac_srcdir/configure.gnu"; then
1559       echo &&
1560       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1561     elif test -f "$ac_srcdir/configure"; then
1562       echo &&
1563       $SHELL "$ac_srcdir/configure" --help=recursive
1564     else
1565       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1566     fi || ac_status=$?
1567     cd "$ac_pwd" || { ac_status=$?; break; }
1568   done
1569 fi
1570
1571 test -n "$ac_init_help" && exit $ac_status
1572 if $ac_init_version; then
1573   cat <<\_ACEOF
1574 configure
1575 generated by GNU Autoconf 2.65
1576
1577 Copyright (C) 2009 Free Software Foundation, Inc.
1578 This configure script is free software; the Free Software Foundation
1579 gives unlimited permission to copy, distribute and modify it.
1580 _ACEOF
1581   exit
1582 fi
1583
1584 ## ------------------------ ##
1585 ## Autoconf initialization. ##
1586 ## ------------------------ ##
1587
1588 # ac_fn_c_try_compile LINENO
1589 # --------------------------
1590 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1591 ac_fn_c_try_compile ()
1592 {
1593   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594   rm -f conftest.$ac_objext
1595   if { { ac_try="$ac_compile"
1596 case "(($ac_try" in
1597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598   *) ac_try_echo=$ac_try;;
1599 esac
1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601 $as_echo "$ac_try_echo"; } >&5
1602   (eval "$ac_compile") 2>conftest.err
1603   ac_status=$?
1604   if test -s conftest.err; then
1605     grep -v '^ *+' conftest.err >conftest.er1
1606     cat conftest.er1 >&5
1607     mv -f conftest.er1 conftest.err
1608   fi
1609   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610   test $ac_status = 0; } && {
1611          test -z "$ac_c_werror_flag" ||
1612          test ! -s conftest.err
1613        } && test -s conftest.$ac_objext; then :
1614   ac_retval=0
1615 else
1616   $as_echo "$as_me: failed program was:" >&5
1617 sed 's/^/| /' conftest.$ac_ext >&5
1618
1619         ac_retval=1
1620 fi
1621   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1622   as_fn_set_status $ac_retval
1623
1624 } # ac_fn_c_try_compile
1625
1626 # ac_fn_c_try_link LINENO
1627 # -----------------------
1628 # Try to link conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_c_try_link ()
1630 {
1631   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632   rm -f conftest.$ac_objext conftest$ac_exeext
1633   if { { ac_try="$ac_link"
1634 case "(($ac_try" in
1635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636   *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640   (eval "$ac_link") 2>conftest.err
1641   ac_status=$?
1642   if test -s conftest.err; then
1643     grep -v '^ *+' conftest.err >conftest.er1
1644     cat conftest.er1 >&5
1645     mv -f conftest.er1 conftest.err
1646   fi
1647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648   test $ac_status = 0; } && {
1649          test -z "$ac_c_werror_flag" ||
1650          test ! -s conftest.err
1651        } && test -s conftest$ac_exeext && {
1652          test "$cross_compiling" = yes ||
1653          $as_test_x conftest$ac_exeext
1654        }; then :
1655   ac_retval=0
1656 else
1657   $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1659
1660         ac_retval=1
1661 fi
1662   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1663   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1664   # interfere with the next link command; also delete a directory that is
1665   # left behind by Apple's compiler.  We do this before executing the actions.
1666   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1667   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1668   as_fn_set_status $ac_retval
1669
1670 } # ac_fn_c_try_link
1671
1672 # ac_fn_c_try_cpp LINENO
1673 # ----------------------
1674 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1675 ac_fn_c_try_cpp ()
1676 {
1677   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678   if { { ac_try="$ac_cpp conftest.$ac_ext"
1679 case "(($ac_try" in
1680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681   *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1686   ac_status=$?
1687   if test -s conftest.err; then
1688     grep -v '^ *+' conftest.err >conftest.er1
1689     cat conftest.er1 >&5
1690     mv -f conftest.er1 conftest.err
1691   fi
1692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693   test $ac_status = 0; } >/dev/null && {
1694          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1695          test ! -s conftest.err
1696        }; then :
1697   ac_retval=0
1698 else
1699   $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1701
1702     ac_retval=1
1703 fi
1704   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1705   as_fn_set_status $ac_retval
1706
1707 } # ac_fn_c_try_cpp
1708
1709 # ac_fn_c_try_run LINENO
1710 # ----------------------
1711 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1712 # that executables *can* be run.
1713 ac_fn_c_try_run ()
1714 {
1715   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716   if { { ac_try="$ac_link"
1717 case "(($ac_try" in
1718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719   *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723   (eval "$ac_link") 2>&5
1724   ac_status=$?
1725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1727   { { case "(($ac_try" in
1728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729   *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733   (eval "$ac_try") 2>&5
1734   ac_status=$?
1735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736   test $ac_status = 0; }; }; then :
1737   ac_retval=0
1738 else
1739   $as_echo "$as_me: program exited with status $ac_status" >&5
1740        $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743        ac_retval=$ac_status
1744 fi
1745   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1747   as_fn_set_status $ac_retval
1748
1749 } # ac_fn_c_try_run
1750
1751 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1752 # -------------------------------------------
1753 # Tests whether TYPE exists after having included INCLUDES, setting cache
1754 # variable VAR accordingly.
1755 ac_fn_c_check_type ()
1756 {
1757   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759 $as_echo_n "checking for $2... " >&6; }
1760 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1761   $as_echo_n "(cached) " >&6
1762 else
1763   eval "$3=no"
1764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765 /* end confdefs.h.  */
1766 $4
1767 int
1768 main ()
1769 {
1770 if (sizeof ($2))
1771          return 0;
1772   ;
1773   return 0;
1774 }
1775 _ACEOF
1776 if ac_fn_c_try_compile "$LINENO"; then :
1777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h.  */
1779 $4
1780 int
1781 main ()
1782 {
1783 if (sizeof (($2)))
1784             return 0;
1785   ;
1786   return 0;
1787 }
1788 _ACEOF
1789 if ac_fn_c_try_compile "$LINENO"; then :
1790
1791 else
1792   eval "$3=yes"
1793 fi
1794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795 fi
1796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1797 fi
1798 eval ac_res=\$$3
1799                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 $as_echo "$ac_res" >&6; }
1801   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1802
1803 } # ac_fn_c_check_type
1804
1805 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1806 # -------------------------------------------------------
1807 # Tests whether HEADER exists and can be compiled using the include files in
1808 # INCLUDES, setting the cache variable VAR accordingly.
1809 ac_fn_c_check_header_compile ()
1810 {
1811   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1813 $as_echo_n "checking for $2... " >&6; }
1814 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1815   $as_echo_n "(cached) " >&6
1816 else
1817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818 /* end confdefs.h.  */
1819 $4
1820 #include <$2>
1821 _ACEOF
1822 if ac_fn_c_try_compile "$LINENO"; then :
1823   eval "$3=yes"
1824 else
1825   eval "$3=no"
1826 fi
1827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1828 fi
1829 eval ac_res=\$$3
1830                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 $as_echo "$ac_res" >&6; }
1832   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1833
1834 } # ac_fn_c_check_header_compile
1835
1836 # ac_fn_c_check_func LINENO FUNC VAR
1837 # ----------------------------------
1838 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1839 ac_fn_c_check_func ()
1840 {
1841   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843 $as_echo_n "checking for $2... " >&6; }
1844 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1845   $as_echo_n "(cached) " >&6
1846 else
1847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h.  */
1849 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1850    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1851 #define $2 innocuous_$2
1852
1853 /* System header to define __stub macros and hopefully few prototypes,
1854     which can conflict with char $2 (); below.
1855     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1856     <limits.h> exists even on freestanding compilers.  */
1857
1858 #ifdef __STDC__
1859 # include <limits.h>
1860 #else
1861 # include <assert.h>
1862 #endif
1863
1864 #undef $2
1865
1866 /* Override any GCC internal prototype to avoid an error.
1867    Use char because int might match the return type of a GCC
1868    builtin and then its argument prototype would still apply.  */
1869 #ifdef __cplusplus
1870 extern "C"
1871 #endif
1872 char $2 ();
1873 /* The GNU C library defines this for functions which it implements
1874     to always fail with ENOSYS.  Some functions are actually named
1875     something starting with __ and the normal name is an alias.  */
1876 #if defined __stub_$2 || defined __stub___$2
1877 choke me
1878 #endif
1879
1880 int
1881 main ()
1882 {
1883 return $2 ();
1884   ;
1885   return 0;
1886 }
1887 _ACEOF
1888 if ac_fn_c_try_link "$LINENO"; then :
1889   eval "$3=yes"
1890 else
1891   eval "$3=no"
1892 fi
1893 rm -f core conftest.err conftest.$ac_objext \
1894     conftest$ac_exeext conftest.$ac_ext
1895 fi
1896 eval ac_res=\$$3
1897                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1899   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1900
1901 } # ac_fn_c_check_func
1902
1903 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1904 # -------------------------------------------------------
1905 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1906 # the include files in INCLUDES and setting the cache variable VAR
1907 # accordingly.
1908 ac_fn_c_check_header_mongrel ()
1909 {
1910   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1915   $as_echo_n "(cached) " >&6
1916 fi
1917 eval ac_res=\$$3
1918                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919 $as_echo "$ac_res" >&6; }
1920 else
1921   # Is the header compilable?
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1923 $as_echo_n "checking $2 usability... " >&6; }
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h.  */
1926 $4
1927 #include <$2>
1928 _ACEOF
1929 if ac_fn_c_try_compile "$LINENO"; then :
1930   ac_header_compiler=yes
1931 else
1932   ac_header_compiler=no
1933 fi
1934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1936 $as_echo "$ac_header_compiler" >&6; }
1937
1938 # Is the header present?
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1940 $as_echo_n "checking $2 presence... " >&6; }
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h.  */
1943 #include <$2>
1944 _ACEOF
1945 if ac_fn_c_try_cpp "$LINENO"; then :
1946   ac_header_preproc=yes
1947 else
1948   ac_header_preproc=no
1949 fi
1950 rm -f conftest.err conftest.$ac_ext
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1952 $as_echo "$ac_header_preproc" >&6; }
1953
1954 # So?  What about this header?
1955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1956   yes:no: )
1957     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1958 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1959     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1960 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1961     ;;
1962   no:yes:* )
1963     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1964 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1965     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1966 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1967     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1968 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1969     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1970 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1971     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1972 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1973     ;;
1974 esac
1975   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976 $as_echo_n "checking for $2... " >&6; }
1977 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1978   $as_echo_n "(cached) " >&6
1979 else
1980   eval "$3=\$ac_header_compiler"
1981 fi
1982 eval ac_res=\$$3
1983                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984 $as_echo "$ac_res" >&6; }
1985 fi
1986   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1987
1988 } # ac_fn_c_check_header_mongrel
1989
1990 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1991 # --------------------------------------------
1992 # Tries to find the compile-time value of EXPR in a program that includes
1993 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1994 # computed
1995 ac_fn_c_compute_int ()
1996 {
1997   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998   if test "$cross_compiling" = yes; then
1999     # Depending upon the size, compute the lo and hi bounds.
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h.  */
2002 $4
2003 int
2004 main ()
2005 {
2006 static int test_array [1 - 2 * !(($2) >= 0)];
2007 test_array [0] = 0
2008
2009   ;
2010   return 0;
2011 }
2012 _ACEOF
2013 if ac_fn_c_try_compile "$LINENO"; then :
2014   ac_lo=0 ac_mid=0
2015   while :; do
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) <= $ac_mid)];
2023 test_array [0] = 0
2024
2025   ;
2026   return 0;
2027 }
2028 _ACEOF
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030   ac_hi=$ac_mid; break
2031 else
2032   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2033                         if test $ac_lo -le $ac_mid; then
2034                           ac_lo= ac_hi=
2035                           break
2036                         fi
2037                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2038 fi
2039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040   done
2041 else
2042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h.  */
2044 $4
2045 int
2046 main ()
2047 {
2048 static int test_array [1 - 2 * !(($2) < 0)];
2049 test_array [0] = 0
2050
2051   ;
2052   return 0;
2053 }
2054 _ACEOF
2055 if ac_fn_c_try_compile "$LINENO"; then :
2056   ac_hi=-1 ac_mid=-1
2057   while :; do
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) >= $ac_mid)];
2065 test_array [0] = 0
2066
2067   ;
2068   return 0;
2069 }
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072   ac_lo=$ac_mid; break
2073 else
2074   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2075                         if test $ac_mid -le $ac_hi; then
2076                           ac_lo= ac_hi=
2077                           break
2078                         fi
2079                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2080 fi
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082   done
2083 else
2084   ac_lo= ac_hi=
2085 fi
2086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087 fi
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 # Binary search between lo and hi bounds.
2090 while test "x$ac_lo" != "x$ac_hi"; do
2091   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h.  */
2094 $4
2095 int
2096 main ()
2097 {
2098 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2099 test_array [0] = 0
2100
2101   ;
2102   return 0;
2103 }
2104 _ACEOF
2105 if ac_fn_c_try_compile "$LINENO"; then :
2106   ac_hi=$ac_mid
2107 else
2108   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2109 fi
2110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111 done
2112 case $ac_lo in #((
2113 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2114 '') ac_retval=1 ;;
2115 esac
2116   else
2117     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h.  */
2119 $4
2120 static long int longval () { return $2; }
2121 static unsigned long int ulongval () { return $2; }
2122 #include <stdio.h>
2123 #include <stdlib.h>
2124 int
2125 main ()
2126 {
2127
2128   FILE *f = fopen ("conftest.val", "w");
2129   if (! f)
2130     return 1;
2131   if (($2) < 0)
2132     {
2133       long int i = longval ();
2134       if (i != ($2))
2135         return 1;
2136       fprintf (f, "%ld", i);
2137     }
2138   else
2139     {
2140       unsigned long int i = ulongval ();
2141       if (i != ($2))
2142         return 1;
2143       fprintf (f, "%lu", i);
2144     }
2145   /* Do not output a trailing newline, as this causes \r\n confusion
2146      on some platforms.  */
2147   return ferror (f) || fclose (f) != 0;
2148
2149   ;
2150   return 0;
2151 }
2152 _ACEOF
2153 if ac_fn_c_try_run "$LINENO"; then :
2154   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2155 else
2156   ac_retval=1
2157 fi
2158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2159   conftest.$ac_objext conftest.beam conftest.$ac_ext
2160 rm -f conftest.val
2161
2162   fi
2163   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2164   as_fn_set_status $ac_retval
2165
2166 } # ac_fn_c_compute_int
2167
2168 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2169 # ----------------------------------------------------
2170 # Tries to find if the field MEMBER exists in type AGGR, after including
2171 # INCLUDES, setting cache variable VAR accordingly.
2172 ac_fn_c_check_member ()
2173 {
2174   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2176 $as_echo_n "checking for $2.$3... " >&6; }
2177 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2178   $as_echo_n "(cached) " >&6
2179 else
2180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h.  */
2182 $5
2183 int
2184 main ()
2185 {
2186 static $2 ac_aggr;
2187 if (ac_aggr.$3)
2188 return 0;
2189   ;
2190   return 0;
2191 }
2192 _ACEOF
2193 if ac_fn_c_try_compile "$LINENO"; then :
2194   eval "$4=yes"
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 (sizeof 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   eval "$4=no"
2213 fi
2214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215 fi
2216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2217 fi
2218 eval ac_res=\$$4
2219                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2220 $as_echo "$ac_res" >&6; }
2221   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2222
2223 } # ac_fn_c_check_member
2224
2225 # ac_fn_c_check_decl LINENO SYMBOL VAR
2226 # ------------------------------------
2227 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2228 ac_fn_c_check_decl ()
2229 {
2230   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2231   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2232 $as_echo_n "checking whether $2 is declared... " >&6; }
2233 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2234   $as_echo_n "(cached) " >&6
2235 else
2236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h.  */
2238 $4
2239 int
2240 main ()
2241 {
2242 #ifndef $2
2243   (void) $2;
2244 #endif
2245
2246   ;
2247   return 0;
2248 }
2249 _ACEOF
2250 if ac_fn_c_try_compile "$LINENO"; then :
2251   eval "$3=yes"
2252 else
2253   eval "$3=no"
2254 fi
2255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 fi
2257 eval ac_res=\$$3
2258                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2259 $as_echo "$ac_res" >&6; }
2260   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2261
2262 } # ac_fn_c_check_decl
2263 cat >config.log <<_ACEOF
2264 This file contains any messages produced by compilers while
2265 running configure, to aid debugging if configure makes a mistake.
2266
2267 It was created by $as_me, which was
2268 generated by GNU Autoconf 2.65.  Invocation command line was
2269
2270   $ $0 $@
2271
2272 _ACEOF
2273 exec 5>>config.log
2274 {
2275 cat <<_ASUNAME
2276 ## --------- ##
2277 ## Platform. ##
2278 ## --------- ##
2279
2280 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2281 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2282 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2283 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2284 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2285
2286 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2287 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2288
2289 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2290 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2291 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2292 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2293 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2294 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2295 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2296
2297 _ASUNAME
2298
2299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 for as_dir in $PATH
2301 do
2302   IFS=$as_save_IFS
2303   test -z "$as_dir" && as_dir=.
2304     $as_echo "PATH: $as_dir"
2305   done
2306 IFS=$as_save_IFS
2307
2308 } >&5
2309
2310 cat >&5 <<_ACEOF
2311
2312
2313 ## ----------- ##
2314 ## Core tests. ##
2315 ## ----------- ##
2316
2317 _ACEOF
2318
2319
2320 # Keep a trace of the command line.
2321 # Strip out --no-create and --no-recursion so they do not pile up.
2322 # Strip out --silent because we don't want to record it for future runs.
2323 # Also quote any args containing shell meta-characters.
2324 # Make two passes to allow for proper duplicate-argument suppression.
2325 ac_configure_args=
2326 ac_configure_args0=
2327 ac_configure_args1=
2328 ac_must_keep_next=false
2329 for ac_pass in 1 2
2330 do
2331   for ac_arg
2332   do
2333     case $ac_arg in
2334     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2335     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2336     | -silent | --silent | --silen | --sile | --sil)
2337       continue ;;
2338     *\'*)
2339       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2340     esac
2341     case $ac_pass in
2342     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2343     2)
2344       as_fn_append ac_configure_args1 " '$ac_arg'"
2345       if test $ac_must_keep_next = true; then
2346         ac_must_keep_next=false # Got value, back to normal.
2347       else
2348         case $ac_arg in
2349           *=* | --config-cache | -C | -disable-* | --disable-* \
2350           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2351           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2352           | -with-* | --with-* | -without-* | --without-* | --x)
2353             case "$ac_configure_args0 " in
2354               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2355             esac
2356             ;;
2357           -* ) ac_must_keep_next=true ;;
2358         esac
2359       fi
2360       as_fn_append ac_configure_args " '$ac_arg'"
2361       ;;
2362     esac
2363   done
2364 done
2365 { ac_configure_args0=; unset ac_configure_args0;}
2366 { ac_configure_args1=; unset ac_configure_args1;}
2367
2368 # When interrupted or exit'd, cleanup temporary files, and complete
2369 # config.log.  We remove comments because anyway the quotes in there
2370 # would cause problems or look ugly.
2371 # WARNING: Use '\'' to represent an apostrophe within the trap.
2372 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2373 trap 'exit_status=$?
2374   # Save into config.log some information that might help in debugging.
2375   {
2376     echo
2377
2378     cat <<\_ASBOX
2379 ## ---------------- ##
2380 ## Cache variables. ##
2381 ## ---------------- ##
2382 _ASBOX
2383     echo
2384     # The following way of writing the cache mishandles newlines in values,
2385 (
2386   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2387     eval ac_val=\$$ac_var
2388     case $ac_val in #(
2389     *${as_nl}*)
2390       case $ac_var in #(
2391       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2392 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2393       esac
2394       case $ac_var in #(
2395       _ | IFS | as_nl) ;; #(
2396       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2397       *) { eval $ac_var=; unset $ac_var;} ;;
2398       esac ;;
2399     esac
2400   done
2401   (set) 2>&1 |
2402     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2403     *${as_nl}ac_space=\ *)
2404       sed -n \
2405         "s/'\''/'\''\\\\'\'''\''/g;
2406           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2407       ;; #(
2408     *)
2409       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2410       ;;
2411     esac |
2412     sort
2413 )
2414     echo
2415
2416     cat <<\_ASBOX
2417 ## ----------------- ##
2418 ## Output variables. ##
2419 ## ----------------- ##
2420 _ASBOX
2421     echo
2422     for ac_var in $ac_subst_vars
2423     do
2424       eval ac_val=\$$ac_var
2425       case $ac_val in
2426       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2427       esac
2428       $as_echo "$ac_var='\''$ac_val'\''"
2429     done | sort
2430     echo
2431
2432     if test -n "$ac_subst_files"; then
2433       cat <<\_ASBOX
2434 ## ------------------- ##
2435 ## File substitutions. ##
2436 ## ------------------- ##
2437 _ASBOX
2438       echo
2439       for ac_var in $ac_subst_files
2440       do
2441         eval ac_val=\$$ac_var
2442         case $ac_val in
2443         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2444         esac
2445         $as_echo "$ac_var='\''$ac_val'\''"
2446       done | sort
2447       echo
2448     fi
2449
2450     if test -s confdefs.h; then
2451       cat <<\_ASBOX
2452 ## ----------- ##
2453 ## confdefs.h. ##
2454 ## ----------- ##
2455 _ASBOX
2456       echo
2457       cat confdefs.h
2458       echo
2459     fi
2460     test "$ac_signal" != 0 &&
2461       $as_echo "$as_me: caught signal $ac_signal"
2462     $as_echo "$as_me: exit $exit_status"
2463   } >&5
2464   rm -f core *.core core.conftest.* &&
2465     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2466     exit $exit_status
2467 ' 0
2468 for ac_signal in 1 2 13 15; do
2469   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2470 done
2471 ac_signal=0
2472
2473 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2474 rm -f -r conftest* confdefs.h
2475
2476 $as_echo "/* confdefs.h */" > confdefs.h
2477
2478 # Predefined preprocessor variables.
2479
2480 cat >>confdefs.h <<_ACEOF
2481 #define PACKAGE_NAME "$PACKAGE_NAME"
2482 _ACEOF
2483
2484 cat >>confdefs.h <<_ACEOF
2485 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2486 _ACEOF
2487
2488 cat >>confdefs.h <<_ACEOF
2489 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2490 _ACEOF
2491
2492 cat >>confdefs.h <<_ACEOF
2493 #define PACKAGE_STRING "$PACKAGE_STRING"
2494 _ACEOF
2495
2496 cat >>confdefs.h <<_ACEOF
2497 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2498 _ACEOF
2499
2500 cat >>confdefs.h <<_ACEOF
2501 #define PACKAGE_URL "$PACKAGE_URL"
2502 _ACEOF
2503
2504
2505 # Let the site file select an alternate cache file if it wants to.
2506 # Prefer an explicitly selected file to automatically selected ones.
2507 ac_site_file1=NONE
2508 ac_site_file2=NONE
2509 if test -n "$CONFIG_SITE"; then
2510   ac_site_file1=$CONFIG_SITE
2511 elif test "x$prefix" != xNONE; then
2512   ac_site_file1=$prefix/share/config.site
2513   ac_site_file2=$prefix/etc/config.site
2514 else
2515   ac_site_file1=$ac_default_prefix/share/config.site
2516   ac_site_file2=$ac_default_prefix/etc/config.site
2517 fi
2518 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2519 do
2520   test "x$ac_site_file" = xNONE && continue
2521   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2522     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2523 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2524     sed 's/^/| /' "$ac_site_file" >&5
2525     . "$ac_site_file"
2526   fi
2527 done
2528
2529 if test -r "$cache_file"; then
2530   # Some versions of bash will fail to source /dev/null (special files
2531   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2532   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2533     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2534 $as_echo "$as_me: loading cache $cache_file" >&6;}
2535     case $cache_file in
2536       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2537       *)                      . "./$cache_file";;
2538     esac
2539   fi
2540 else
2541   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2542 $as_echo "$as_me: creating cache $cache_file" >&6;}
2543   >$cache_file
2544 fi
2545
2546 as_fn_append ac_header_list " stdlib.h"
2547 as_fn_append ac_header_list " unistd.h"
2548 as_fn_append ac_header_list " sys/param.h"
2549 # Check that the precious variables saved in the cache have kept the same
2550 # value.
2551 ac_cache_corrupted=false
2552 for ac_var in $ac_precious_vars; do
2553   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2554   eval ac_new_set=\$ac_env_${ac_var}_set
2555   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2556   eval ac_new_val=\$ac_env_${ac_var}_value
2557   case $ac_old_set,$ac_new_set in
2558     set,)
2559       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2560 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2561       ac_cache_corrupted=: ;;
2562     ,set)
2563       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2564 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2565       ac_cache_corrupted=: ;;
2566     ,);;
2567     *)
2568       if test "x$ac_old_val" != "x$ac_new_val"; then
2569         # differences in whitespace do not lead to failure.
2570         ac_old_val_w=`echo x $ac_old_val`
2571         ac_new_val_w=`echo x $ac_new_val`
2572         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2573           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2574 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2575           ac_cache_corrupted=:
2576         else
2577           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2578 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2579           eval $ac_var=\$ac_old_val
2580         fi
2581         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2582 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2583         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2584 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2585       fi;;
2586   esac
2587   # Pass precious variables to config.status.
2588   if test "$ac_new_set" = set; then
2589     case $ac_new_val in
2590     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2591     *) ac_arg=$ac_var=$ac_new_val ;;
2592     esac
2593     case " $ac_configure_args " in
2594       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2595       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2596     esac
2597   fi
2598 done
2599 if $ac_cache_corrupted; then
2600   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2602   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2603 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2604   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2605 fi
2606 ## -------------------- ##
2607 ## Main body of script. ##
2608 ## -------------------- ##
2609
2610 ac_ext=c
2611 ac_cpp='$CPP $CPPFLAGS'
2612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2615
2616
2617
2618 ac_aux_dir=
2619 for ac_dir in config "$srcdir"/config; do
2620   for ac_t in install-sh install.sh shtool; do
2621     if test -f "$ac_dir/$ac_t"; then
2622       ac_aux_dir=$ac_dir
2623       ac_install_sh="$ac_aux_dir/$ac_t -c"
2624       break 2
2625     fi
2626   done
2627 done
2628 if test -z "$ac_aux_dir"; then
2629   as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2630 fi
2631
2632 # These three variables are undocumented and unsupported,
2633 # and are intended to be withdrawn in a future Autoconf release.
2634 # They can cause serious problems if a builder's source tree is in a directory
2635 # whose full name contains unusual characters.
2636 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2637 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2638 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2639
2640
2641 ac_config_headers="$ac_config_headers lib/config.h"
2642
2643
2644 MCONFIG=./MCONFIG
2645
2646 BINARY_TYPE=bin
2647 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2648         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2649 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2650         | tr \" " "`
2651 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2652 MONTH=`echo $DATE | awk -F- '{print $2}'`
2653 YEAR=`echo $DATE | awk -F- '{print $3}'`
2654
2655 if expr $YEAR ">" 1900 > /dev/null ; then
2656         E2FSPROGS_YEAR=$YEAR
2657 elif expr $YEAR ">" 90 >/dev/null ; then
2658         E2FSPROGS_YEAR=19$YEAR
2659 else
2660         E2FSPROGS_YEAR=20$YEAR
2661 fi
2662
2663 case $MONTH in
2664 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2665 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2666 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2667 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2668 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2669 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2670 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2671 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2672 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2673 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2674 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2675 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2676 *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2677 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2678 esac
2679
2680 base_ver=`echo $E2FSPROGS_VERSION | \
2681                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2682
2683 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2684
2685 case $E2FSPROGS_VERSION in
2686 *-WIP|pre-*)
2687         E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2688         ;;
2689 *)
2690         E2FSPROGS_PKGVER="$base_ver"
2691         ;;
2692 esac
2693
2694 unset DATE MONTH YEAR base_ver pre_vers date_spec
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2696 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2698 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2699
2700
2701
2702
2703
2704 # Make sure we can run config.sub.
2705 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2706   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2707
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2709 $as_echo_n "checking build system type... " >&6; }
2710 if test "${ac_cv_build+set}" = set; then :
2711   $as_echo_n "(cached) " >&6
2712 else
2713   ac_build_alias=$build_alias
2714 test "x$ac_build_alias" = x &&
2715   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2716 test "x$ac_build_alias" = x &&
2717   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2718 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2719   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2720
2721 fi
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2723 $as_echo "$ac_cv_build" >&6; }
2724 case $ac_cv_build in
2725 *-*-*) ;;
2726 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2727 esac
2728 build=$ac_cv_build
2729 ac_save_IFS=$IFS; IFS='-'
2730 set x $ac_cv_build
2731 shift
2732 build_cpu=$1
2733 build_vendor=$2
2734 shift; shift
2735 # Remember, the first character of IFS is used to create $*,
2736 # except with old shells:
2737 build_os=$*
2738 IFS=$ac_save_IFS
2739 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2740
2741
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2743 $as_echo_n "checking host system type... " >&6; }
2744 if test "${ac_cv_host+set}" = set; then :
2745   $as_echo_n "(cached) " >&6
2746 else
2747   if test "x$host_alias" = x; then
2748   ac_cv_host=$ac_cv_build
2749 else
2750   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2751     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2752 fi
2753
2754 fi
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2756 $as_echo "$ac_cv_host" >&6; }
2757 case $ac_cv_host in
2758 *-*-*) ;;
2759 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2760 esac
2761 host=$ac_cv_host
2762 ac_save_IFS=$IFS; IFS='-'
2763 set x $ac_cv_host
2764 shift
2765 host_cpu=$1
2766 host_vendor=$2
2767 shift; shift
2768 # Remember, the first character of IFS is used to create $*,
2769 # except with old shells:
2770 host_os=$*
2771 IFS=$ac_save_IFS
2772 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2773
2774
2775 DLOPEN_LIB=''
2776 ac_ext=c
2777 ac_cpp='$CPP $CPPFLAGS'
2778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2781 if test -n "$ac_tool_prefix"; then
2782   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2783 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if test "${ac_cv_prog_CC+set}" = set; then :
2787   $as_echo_n "(cached) " >&6
2788 else
2789   if test -n "$CC"; then
2790   ac_cv_prog_CC="$CC" # Let the user override the test.
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2794 do
2795   IFS=$as_save_IFS
2796   test -z "$as_dir" && as_dir=.
2797     for ac_exec_ext in '' $ac_executable_extensions; do
2798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2799     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801     break 2
2802   fi
2803 done
2804   done
2805 IFS=$as_save_IFS
2806
2807 fi
2808 fi
2809 CC=$ac_cv_prog_CC
2810 if test -n "$CC"; then
2811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2812 $as_echo "$CC" >&6; }
2813 else
2814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815 $as_echo "no" >&6; }
2816 fi
2817
2818
2819 fi
2820 if test -z "$ac_cv_prog_CC"; then
2821   ac_ct_CC=$CC
2822   # Extract the first word of "gcc", so it can be a program name with args.
2823 set dummy gcc; ac_word=$2
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2827   $as_echo_n "(cached) " >&6
2828 else
2829   if test -n "$ac_ct_CC"; then
2830   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2834 do
2835   IFS=$as_save_IFS
2836   test -z "$as_dir" && as_dir=.
2837     for ac_exec_ext in '' $ac_executable_extensions; do
2838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839     ac_cv_prog_ac_ct_CC="gcc"
2840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2841     break 2
2842   fi
2843 done
2844   done
2845 IFS=$as_save_IFS
2846
2847 fi
2848 fi
2849 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2850 if test -n "$ac_ct_CC"; then
2851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2852 $as_echo "$ac_ct_CC" >&6; }
2853 else
2854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 $as_echo "no" >&6; }
2856 fi
2857
2858   if test "x$ac_ct_CC" = x; then
2859     CC=""
2860   else
2861     case $cross_compiling:$ac_tool_warned in
2862 yes:)
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2865 ac_tool_warned=yes ;;
2866 esac
2867     CC=$ac_ct_CC
2868   fi
2869 else
2870   CC="$ac_cv_prog_CC"
2871 fi
2872
2873 if test -z "$CC"; then
2874           if test -n "$ac_tool_prefix"; then
2875     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2876 set dummy ${ac_tool_prefix}cc; ac_word=$2
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878 $as_echo_n "checking for $ac_word... " >&6; }
2879 if test "${ac_cv_prog_CC+set}" = set; then :
2880   $as_echo_n "(cached) " >&6
2881 else
2882   if test -n "$CC"; then
2883   ac_cv_prog_CC="$CC" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888   IFS=$as_save_IFS
2889   test -z "$as_dir" && as_dir=.
2890     for ac_exec_ext in '' $ac_executable_extensions; do
2891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2892     ac_cv_prog_CC="${ac_tool_prefix}cc"
2893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894     break 2
2895   fi
2896 done
2897   done
2898 IFS=$as_save_IFS
2899
2900 fi
2901 fi
2902 CC=$ac_cv_prog_CC
2903 if test -n "$CC"; then
2904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2905 $as_echo "$CC" >&6; }
2906 else
2907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908 $as_echo "no" >&6; }
2909 fi
2910
2911
2912   fi
2913 fi
2914 if test -z "$CC"; then
2915   # Extract the first word of "cc", so it can be a program name with args.
2916 set dummy cc; ac_word=$2
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918 $as_echo_n "checking for $ac_word... " >&6; }
2919 if test "${ac_cv_prog_CC+set}" = set; then :
2920   $as_echo_n "(cached) " >&6
2921 else
2922   if test -n "$CC"; then
2923   ac_cv_prog_CC="$CC" # Let the user override the test.
2924 else
2925   ac_prog_rejected=no
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 for as_dir in $PATH
2928 do
2929   IFS=$as_save_IFS
2930   test -z "$as_dir" && as_dir=.
2931     for ac_exec_ext in '' $ac_executable_extensions; do
2932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2933     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2934        ac_prog_rejected=yes
2935        continue
2936      fi
2937     ac_cv_prog_CC="cc"
2938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939     break 2
2940   fi
2941 done
2942   done
2943 IFS=$as_save_IFS
2944
2945 if test $ac_prog_rejected = yes; then
2946   # We found a bogon in the path, so make sure we never use it.
2947   set dummy $ac_cv_prog_CC
2948   shift
2949   if test $# != 0; then
2950     # We chose a different compiler from the bogus one.
2951     # However, it has the same basename, so the bogon will be chosen
2952     # first if we set CC to just the basename; use the full file name.
2953     shift
2954     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2955   fi
2956 fi
2957 fi
2958 fi
2959 CC=$ac_cv_prog_CC
2960 if test -n "$CC"; then
2961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2962 $as_echo "$CC" >&6; }
2963 else
2964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2966 fi
2967
2968
2969 fi
2970 if test -z "$CC"; then
2971   if test -n "$ac_tool_prefix"; then
2972   for ac_prog in cl.exe
2973   do
2974     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977 $as_echo_n "checking for $ac_word... " >&6; }
2978 if test "${ac_cv_prog_CC+set}" = set; then :
2979   $as_echo_n "(cached) " >&6
2980 else
2981   if test -n "$CC"; then
2982   ac_cv_prog_CC="$CC" # Let the user override the test.
2983 else
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH
2986 do
2987   IFS=$as_save_IFS
2988   test -z "$as_dir" && as_dir=.
2989     for ac_exec_ext in '' $ac_executable_extensions; do
2990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2991     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993     break 2
2994   fi
2995 done
2996   done
2997 IFS=$as_save_IFS
2998
2999 fi
3000 fi
3001 CC=$ac_cv_prog_CC
3002 if test -n "$CC"; then
3003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3004 $as_echo "$CC" >&6; }
3005 else
3006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007 $as_echo "no" >&6; }
3008 fi
3009
3010
3011     test -n "$CC" && break
3012   done
3013 fi
3014 if test -z "$CC"; then
3015   ac_ct_CC=$CC
3016   for ac_prog in cl.exe
3017 do
3018   # Extract the first word of "$ac_prog", so it can be a program name with args.
3019 set dummy $ac_prog; ac_word=$2
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3023   $as_echo_n "(cached) " >&6
3024 else
3025   if test -n "$ac_ct_CC"; then
3026   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3027 else
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3030 do
3031   IFS=$as_save_IFS
3032   test -z "$as_dir" && as_dir=.
3033     for ac_exec_ext in '' $ac_executable_extensions; do
3034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3035     ac_cv_prog_ac_ct_CC="$ac_prog"
3036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3037     break 2
3038   fi
3039 done
3040   done
3041 IFS=$as_save_IFS
3042
3043 fi
3044 fi
3045 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3046 if test -n "$ac_ct_CC"; then
3047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3048 $as_echo "$ac_ct_CC" >&6; }
3049 else
3050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051 $as_echo "no" >&6; }
3052 fi
3053
3054
3055   test -n "$ac_ct_CC" && break
3056 done
3057
3058   if test "x$ac_ct_CC" = x; then
3059     CC=""
3060   else
3061     case $cross_compiling:$ac_tool_warned in
3062 yes:)
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3065 ac_tool_warned=yes ;;
3066 esac
3067     CC=$ac_ct_CC
3068   fi
3069 fi
3070
3071 fi
3072
3073
3074 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3076 as_fn_error "no acceptable C compiler found in \$PATH
3077 See \`config.log' for more details." "$LINENO" 5; }
3078
3079 # Provide some information about the compiler.
3080 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3081 set X $ac_compile
3082 ac_compiler=$2
3083 for ac_option in --version -v -V -qversion; do
3084   { { ac_try="$ac_compiler $ac_option >&5"
3085 case "(($ac_try" in
3086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087   *) ac_try_echo=$ac_try;;
3088 esac
3089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090 $as_echo "$ac_try_echo"; } >&5
3091   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3092   ac_status=$?
3093   if test -s conftest.err; then
3094     sed '10a\
3095 ... rest of stderr output deleted ...
3096          10q' conftest.err >conftest.er1
3097     cat conftest.er1 >&5
3098   fi
3099   rm -f conftest.er1 conftest.err
3100   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3101   test $ac_status = 0; }
3102 done
3103
3104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3105 /* end confdefs.h.  */
3106
3107 int
3108 main ()
3109 {
3110
3111   ;
3112   return 0;
3113 }
3114 _ACEOF
3115 ac_clean_files_save=$ac_clean_files
3116 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3117 # Try to create an executable without -o first, disregard a.out.
3118 # It will help us diagnose broken compilers, and finding out an intuition
3119 # of exeext.
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3121 $as_echo_n "checking whether the C compiler works... " >&6; }
3122 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3123
3124 # The possible output files:
3125 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3126
3127 ac_rmfiles=
3128 for ac_file in $ac_files
3129 do
3130   case $ac_file in
3131     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3132     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3133   esac
3134 done
3135 rm -f $ac_rmfiles
3136
3137 if { { ac_try="$ac_link_default"
3138 case "(($ac_try" in
3139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140   *) ac_try_echo=$ac_try;;
3141 esac
3142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143 $as_echo "$ac_try_echo"; } >&5
3144   (eval "$ac_link_default") 2>&5
3145   ac_status=$?
3146   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3147   test $ac_status = 0; }; then :
3148   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3149 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3150 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3151 # so that the user can short-circuit this test for compilers unknown to
3152 # Autoconf.
3153 for ac_file in $ac_files ''
3154 do
3155   test -f "$ac_file" || continue
3156   case $ac_file in
3157     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3158         ;;
3159     [ab].out )
3160         # We found the default executable, but exeext='' is most
3161         # certainly right.
3162         break;;
3163     *.* )
3164         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3165         then :; else
3166            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3167         fi
3168         # We set ac_cv_exeext here because the later test for it is not
3169         # safe: cross compilers may not add the suffix if given an `-o'
3170         # argument, so we may need to know it at that point already.
3171         # Even if this section looks crufty: it has the advantage of
3172         # actually working.
3173         break;;
3174     * )
3175         break;;
3176   esac
3177 done
3178 test "$ac_cv_exeext" = no && ac_cv_exeext=
3179
3180 else
3181   ac_file=''
3182 fi
3183 if test -z "$ac_file"; then :
3184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3186 $as_echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3188
3189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3191 { as_fn_set_status 77
3192 as_fn_error "C compiler cannot create executables
3193 See \`config.log' for more details." "$LINENO" 5; }; }
3194 else
3195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3196 $as_echo "yes" >&6; }
3197 fi
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3199 $as_echo_n "checking for C compiler default output file name... " >&6; }
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3201 $as_echo "$ac_file" >&6; }
3202 ac_exeext=$ac_cv_exeext
3203
3204 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3205 ac_clean_files=$ac_clean_files_save
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3207 $as_echo_n "checking for suffix of executables... " >&6; }
3208 if { { ac_try="$ac_link"
3209 case "(($ac_try" in
3210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211   *) ac_try_echo=$ac_try;;
3212 esac
3213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3214 $as_echo "$ac_try_echo"; } >&5
3215   (eval "$ac_link") 2>&5
3216   ac_status=$?
3217   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3218   test $ac_status = 0; }; then :
3219   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3220 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3221 # work properly (i.e., refer to `conftest.exe'), while it won't with
3222 # `rm'.
3223 for ac_file in conftest.exe conftest conftest.*; do
3224   test -f "$ac_file" || continue
3225   case $ac_file in
3226     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3227     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3228           break;;
3229     * ) break;;
3230   esac
3231 done
3232 else
3233   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3235 as_fn_error "cannot compute suffix of executables: cannot compile and link
3236 See \`config.log' for more details." "$LINENO" 5; }
3237 fi
3238 rm -f conftest conftest$ac_cv_exeext
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3240 $as_echo "$ac_cv_exeext" >&6; }
3241
3242 rm -f conftest.$ac_ext
3243 EXEEXT=$ac_cv_exeext
3244 ac_exeext=$EXEEXT
3245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3246 /* end confdefs.h.  */
3247 #include <stdio.h>
3248 int
3249 main ()
3250 {
3251 FILE *f = fopen ("conftest.out", "w");
3252  return ferror (f) || fclose (f) != 0;
3253
3254   ;
3255   return 0;
3256 }
3257 _ACEOF
3258 ac_clean_files="$ac_clean_files conftest.out"
3259 # Check that the compiler produces executables we can run.  If not, either
3260 # the compiler is broken, or we cross compile.
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3262 $as_echo_n "checking whether we are cross compiling... " >&6; }
3263 if test "$cross_compiling" != yes; then
3264   { { ac_try="$ac_link"
3265 case "(($ac_try" in
3266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267   *) ac_try_echo=$ac_try;;
3268 esac
3269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270 $as_echo "$ac_try_echo"; } >&5
3271   (eval "$ac_link") 2>&5
3272   ac_status=$?
3273   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274   test $ac_status = 0; }
3275   if { ac_try='./conftest$ac_cv_exeext'
3276   { { case "(($ac_try" in
3277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278   *) ac_try_echo=$ac_try;;
3279 esac
3280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281 $as_echo "$ac_try_echo"; } >&5
3282   (eval "$ac_try") 2>&5
3283   ac_status=$?
3284   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285   test $ac_status = 0; }; }; then
3286     cross_compiling=no
3287   else
3288     if test "$cross_compiling" = maybe; then
3289         cross_compiling=yes
3290     else
3291         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3293 as_fn_error "cannot run C compiled programs.
3294 If you meant to cross compile, use \`--host'.
3295 See \`config.log' for more details." "$LINENO" 5; }
3296     fi
3297   fi
3298 fi
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3300 $as_echo "$cross_compiling" >&6; }
3301
3302 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3303 ac_clean_files=$ac_clean_files_save
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3305 $as_echo_n "checking for suffix of object files... " >&6; }
3306 if test "${ac_cv_objext+set}" = set; then :
3307   $as_echo_n "(cached) " >&6
3308 else
3309   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310 /* end confdefs.h.  */
3311
3312 int
3313 main ()
3314 {
3315
3316   ;
3317   return 0;
3318 }
3319 _ACEOF
3320 rm -f conftest.o conftest.obj
3321 if { { ac_try="$ac_compile"
3322 case "(($ac_try" in
3323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324   *) ac_try_echo=$ac_try;;
3325 esac
3326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327 $as_echo "$ac_try_echo"; } >&5
3328   (eval "$ac_compile") 2>&5
3329   ac_status=$?
3330   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3331   test $ac_status = 0; }; then :
3332   for ac_file in conftest.o conftest.obj conftest.*; do
3333   test -f "$ac_file" || continue;
3334   case $ac_file in
3335     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3336     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3337        break;;
3338   esac
3339 done
3340 else
3341   $as_echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3343
3344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3346 as_fn_error "cannot compute suffix of object files: cannot compile
3347 See \`config.log' for more details." "$LINENO" 5; }
3348 fi
3349 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3350 fi
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3352 $as_echo "$ac_cv_objext" >&6; }
3353 OBJEXT=$ac_cv_objext
3354 ac_objext=$OBJEXT
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3356 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3357 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3358   $as_echo_n "(cached) " >&6
3359 else
3360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h.  */
3362
3363 int
3364 main ()
3365 {
3366 #ifndef __GNUC__
3367        choke me
3368 #endif
3369
3370   ;
3371   return 0;
3372 }
3373 _ACEOF
3374 if ac_fn_c_try_compile "$LINENO"; then :
3375   ac_compiler_gnu=yes
3376 else
3377   ac_compiler_gnu=no
3378 fi
3379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3381
3382 fi
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3384 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3385 if test $ac_compiler_gnu = yes; then
3386   GCC=yes
3387 else
3388   GCC=
3389 fi
3390 ac_test_CFLAGS=${CFLAGS+set}
3391 ac_save_CFLAGS=$CFLAGS
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3393 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3394 if test "${ac_cv_prog_cc_g+set}" = set; then :
3395   $as_echo_n "(cached) " >&6
3396 else
3397   ac_save_c_werror_flag=$ac_c_werror_flag
3398    ac_c_werror_flag=yes
3399    ac_cv_prog_cc_g=no
3400    CFLAGS="-g"
3401    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402 /* end confdefs.h.  */
3403
3404 int
3405 main ()
3406 {
3407
3408   ;
3409   return 0;
3410 }
3411 _ACEOF
3412 if ac_fn_c_try_compile "$LINENO"; then :
3413   ac_cv_prog_cc_g=yes
3414 else
3415   CFLAGS=""
3416       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h.  */
3418
3419 int
3420 main ()
3421 {
3422
3423   ;
3424   return 0;
3425 }
3426 _ACEOF
3427 if ac_fn_c_try_compile "$LINENO"; then :
3428
3429 else
3430   ac_c_werror_flag=$ac_save_c_werror_flag
3431          CFLAGS="-g"
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   ac_cv_prog_cc_g=yes
3445 fi
3446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3447 fi
3448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3449 fi
3450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3451    ac_c_werror_flag=$ac_save_c_werror_flag
3452 fi
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3454 $as_echo "$ac_cv_prog_cc_g" >&6; }
3455 if test "$ac_test_CFLAGS" = set; then
3456   CFLAGS=$ac_save_CFLAGS
3457 elif test $ac_cv_prog_cc_g = yes; then
3458   if test "$GCC" = yes; then
3459     CFLAGS="-g -O2"
3460   else
3461     CFLAGS="-g"
3462   fi
3463 else
3464   if test "$GCC" = yes; then
3465     CFLAGS="-O2"
3466   else
3467     CFLAGS=
3468   fi
3469 fi
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3471 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3472 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3473   $as_echo_n "(cached) " >&6
3474 else
3475   ac_cv_prog_cc_c89=no
3476 ac_save_CC=$CC
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h.  */
3479 #include <stdarg.h>
3480 #include <stdio.h>
3481 #include <sys/types.h>
3482 #include <sys/stat.h>
3483 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3484 struct buf { int x; };
3485 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3486 static char *e (p, i)
3487      char **p;
3488      int i;
3489 {
3490   return p[i];
3491 }
3492 static char *f (char * (*g) (char **, int), char **p, ...)
3493 {
3494   char *s;
3495   va_list v;
3496   va_start (v,p);
3497   s = g (p, va_arg (v,int));
3498   va_end (v);
3499   return s;
3500 }
3501
3502 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3503    function prototypes and stuff, but not '\xHH' hex character constants.
3504    These don't provoke an error unfortunately, instead are silently treated
3505    as 'x'.  The following induces an error, until -std is added to get
3506    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3507    array size at least.  It's necessary to write '\x00'==0 to get something
3508    that's true only with -std.  */
3509 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3510
3511 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3512    inside strings and character constants.  */
3513 #define FOO(x) 'x'
3514 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3515
3516 int test (int i, double x);
3517 struct s1 {int (*f) (int a);};
3518 struct s2 {int (*f) (double a);};
3519 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3520 int argc;
3521 char **argv;
3522 int
3523 main ()
3524 {
3525 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3526   ;
3527   return 0;
3528 }
3529 _ACEOF
3530 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3531         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3532 do
3533   CC="$ac_save_CC $ac_arg"
3534   if ac_fn_c_try_compile "$LINENO"; then :
3535   ac_cv_prog_cc_c89=$ac_arg
3536 fi
3537 rm -f core conftest.err conftest.$ac_objext
3538   test "x$ac_cv_prog_cc_c89" != "xno" && break
3539 done
3540 rm -f conftest.$ac_ext
3541 CC=$ac_save_CC
3542
3543 fi
3544 # AC_CACHE_VAL
3545 case "x$ac_cv_prog_cc_c89" in
3546   x)
3547     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3548 $as_echo "none needed" >&6; } ;;
3549   xno)
3550     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3551 $as_echo "unsupported" >&6; } ;;
3552   *)
3553     CC="$CC $ac_cv_prog_cc_c89"
3554     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3555 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3556 esac
3557 if test "x$ac_cv_prog_cc_c89" != xno; then :
3558
3559 fi
3560
3561 ac_ext=c
3562 ac_cpp='$CPP $CPPFLAGS'
3563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3566
3567
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3569 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3570 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
3571   $as_echo_n "(cached) " >&6
3572 else
3573   ac_check_lib_save_LIBS=$LIBS
3574 LIBS="-ldl  $LIBS"
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h.  */
3577
3578 /* Override any GCC internal prototype to avoid an error.
3579    Use char because int might match the return type of a GCC
3580    builtin and then its argument prototype would still apply.  */
3581 #ifdef __cplusplus
3582 extern "C"
3583 #endif
3584 char dlopen ();
3585 int
3586 main ()
3587 {
3588 return dlopen ();
3589   ;
3590   return 0;
3591 }
3592 _ACEOF
3593 if ac_fn_c_try_link "$LINENO"; then :
3594   ac_cv_lib_dl_dlopen=yes
3595 else
3596   ac_cv_lib_dl_dlopen=no
3597 fi
3598 rm -f core conftest.err conftest.$ac_objext \
3599     conftest$ac_exeext conftest.$ac_ext
3600 LIBS=$ac_check_lib_save_LIBS
3601 fi
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3603 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3604 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
3605   DLOPEN_LIB=-ldl
3606
3607 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3608
3609 fi
3610
3611
3612 WITH_DIET_LIBC=
3613
3614 # Check whether --with-diet-libc was given.
3615 if test "${with_diet_libc+set}" = set; then :
3616   withval=$with_diet_libc; CC="diet cc -nostdinc"
3617 WITH_DIET_LIBC=yes
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3619 $as_echo "CC=$CC" >&6; }
3620 fi
3621
3622 # Check whether --with-cc was given.
3623 if test "${with_cc+set}" = set; then :
3624   withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3625 fi
3626
3627
3628 # Check whether --with-ccopts was given.
3629 if test "${with_ccopts+set}" = set; then :
3630   withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3631 fi
3632
3633
3634 # Check whether --with-ldopts was given.
3635 if test "${with_ldopts+set}" = set; then :
3636   withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3637 fi
3638
3639 ac_ext=c
3640 ac_cpp='$CPP $CPPFLAGS'
3641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3644 if test -n "$ac_tool_prefix"; then
3645   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3646 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648 $as_echo_n "checking for $ac_word... " >&6; }
3649 if test "${ac_cv_prog_CC+set}" = set; then :
3650   $as_echo_n "(cached) " >&6
3651 else
3652   if test -n "$CC"; then
3653   ac_cv_prog_CC="$CC" # Let the user override the test.
3654 else
3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 for as_dir in $PATH
3657 do
3658   IFS=$as_save_IFS
3659   test -z "$as_dir" && as_dir=.
3660     for ac_exec_ext in '' $ac_executable_extensions; do
3661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3662     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3664     break 2
3665   fi
3666 done
3667   done
3668 IFS=$as_save_IFS
3669
3670 fi
3671 fi
3672 CC=$ac_cv_prog_CC
3673 if test -n "$CC"; then
3674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3675 $as_echo "$CC" >&6; }
3676 else
3677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3679 fi
3680
3681
3682 fi
3683 if test -z "$ac_cv_prog_CC"; then
3684   ac_ct_CC=$CC
3685   # Extract the first word of "gcc", so it can be a program name with args.
3686 set dummy gcc; ac_word=$2
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3688 $as_echo_n "checking for $ac_word... " >&6; }
3689 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3690   $as_echo_n "(cached) " >&6
3691 else
3692   if test -n "$ac_ct_CC"; then
3693   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3694 else
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 for as_dir in $PATH
3697 do
3698   IFS=$as_save_IFS
3699   test -z "$as_dir" && as_dir=.
3700     for ac_exec_ext in '' $ac_executable_extensions; do
3701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3702     ac_cv_prog_ac_ct_CC="gcc"
3703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3704     break 2
3705   fi
3706 done
3707   done
3708 IFS=$as_save_IFS
3709
3710 fi
3711 fi
3712 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3713 if test -n "$ac_ct_CC"; then
3714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3715 $as_echo "$ac_ct_CC" >&6; }
3716 else
3717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718 $as_echo "no" >&6; }
3719 fi
3720
3721   if test "x$ac_ct_CC" = x; then
3722     CC=""
3723   else
3724     case $cross_compiling:$ac_tool_warned in
3725 yes:)
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3728 ac_tool_warned=yes ;;
3729 esac
3730     CC=$ac_ct_CC
3731   fi
3732 else
3733   CC="$ac_cv_prog_CC"
3734 fi
3735
3736 if test -z "$CC"; then
3737           if test -n "$ac_tool_prefix"; then
3738     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3739 set dummy ${ac_tool_prefix}cc; ac_word=$2
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3741 $as_echo_n "checking for $ac_word... " >&6; }
3742 if test "${ac_cv_prog_CC+set}" = set; then :
3743   $as_echo_n "(cached) " >&6
3744 else
3745   if test -n "$CC"; then
3746   ac_cv_prog_CC="$CC" # Let the user override the test.
3747 else
3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749 for as_dir in $PATH
3750 do
3751   IFS=$as_save_IFS
3752   test -z "$as_dir" && as_dir=.
3753     for ac_exec_ext in '' $ac_executable_extensions; do
3754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3755     ac_cv_prog_CC="${ac_tool_prefix}cc"
3756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3757     break 2
3758   fi
3759 done
3760   done
3761 IFS=$as_save_IFS
3762
3763 fi
3764 fi
3765 CC=$ac_cv_prog_CC
3766 if test -n "$CC"; then
3767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3768 $as_echo "$CC" >&6; }
3769 else
3770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771 $as_echo "no" >&6; }
3772 fi
3773
3774
3775   fi
3776 fi
3777 if test -z "$CC"; then
3778   # Extract the first word of "cc", so it can be a program name with args.
3779 set dummy cc; ac_word=$2
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781 $as_echo_n "checking for $ac_word... " >&6; }
3782 if test "${ac_cv_prog_CC+set}" = set; then :
3783   $as_echo_n "(cached) " >&6
3784 else
3785   if test -n "$CC"; then
3786   ac_cv_prog_CC="$CC" # Let the user override the test.
3787 else
3788   ac_prog_rejected=no
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH
3791 do
3792   IFS=$as_save_IFS
3793   test -z "$as_dir" && as_dir=.
3794     for ac_exec_ext in '' $ac_executable_extensions; do
3795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3796     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3797        ac_prog_rejected=yes
3798        continue
3799      fi
3800     ac_cv_prog_CC="cc"
3801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3802     break 2
3803   fi
3804 done
3805   done
3806 IFS=$as_save_IFS
3807
3808 if test $ac_prog_rejected = yes; then
3809   # We found a bogon in the path, so make sure we never use it.
3810   set dummy $ac_cv_prog_CC
3811   shift
3812   if test $# != 0; then
3813     # We chose a different compiler from the bogus one.
3814     # However, it has the same basename, so the bogon will be chosen
3815     # first if we set CC to just the basename; use the full file name.
3816     shift
3817     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3818   fi
3819 fi
3820 fi
3821 fi
3822 CC=$ac_cv_prog_CC
3823 if test -n "$CC"; then
3824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3825 $as_echo "$CC" >&6; }
3826 else
3827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828 $as_echo "no" >&6; }
3829 fi
3830
3831
3832 fi
3833 if test -z "$CC"; then
3834   if test -n "$ac_tool_prefix"; then
3835   for ac_prog in cl.exe
3836   do
3837     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3838 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3840 $as_echo_n "checking for $ac_word... " >&6; }
3841 if test "${ac_cv_prog_CC+set}" = set; then :
3842   $as_echo_n "(cached) " >&6
3843 else
3844   if test -n "$CC"; then
3845   ac_cv_prog_CC="$CC" # Let the user override the test.
3846 else
3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848 for as_dir in $PATH
3849 do
3850   IFS=$as_save_IFS
3851   test -z "$as_dir" && as_dir=.
3852     for ac_exec_ext in '' $ac_executable_extensions; do
3853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3854     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3856     break 2
3857   fi
3858 done
3859   done
3860 IFS=$as_save_IFS
3861
3862 fi
3863 fi
3864 CC=$ac_cv_prog_CC
3865 if test -n "$CC"; then
3866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3867 $as_echo "$CC" >&6; }
3868 else
3869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3870 $as_echo "no" >&6; }
3871 fi
3872
3873
3874     test -n "$CC" && break
3875   done
3876 fi
3877 if test -z "$CC"; then
3878   ac_ct_CC=$CC
3879   for ac_prog in cl.exe
3880 do
3881   # Extract the first word of "$ac_prog", so it can be a program name with args.
3882 set dummy $ac_prog; ac_word=$2
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3884 $as_echo_n "checking for $ac_word... " >&6; }
3885 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3886   $as_echo_n "(cached) " >&6
3887 else
3888   if test -n "$ac_ct_CC"; then
3889   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3890 else
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3893 do
3894   IFS=$as_save_IFS
3895   test -z "$as_dir" && as_dir=.
3896     for ac_exec_ext in '' $ac_executable_extensions; do
3897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3898     ac_cv_prog_ac_ct_CC="$ac_prog"
3899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3900     break 2
3901   fi
3902 done
3903   done
3904 IFS=$as_save_IFS
3905
3906 fi
3907 fi
3908 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3909 if test -n "$ac_ct_CC"; then
3910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3911 $as_echo "$ac_ct_CC" >&6; }
3912 else
3913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914 $as_echo "no" >&6; }
3915 fi
3916
3917
3918   test -n "$ac_ct_CC" && break
3919 done
3920
3921   if test "x$ac_ct_CC" = x; then
3922     CC=""
3923   else
3924     case $cross_compiling:$ac_tool_warned in
3925 yes:)
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3928 ac_tool_warned=yes ;;
3929 esac
3930     CC=$ac_ct_CC
3931   fi
3932 fi
3933
3934 fi
3935
3936
3937 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3939 as_fn_error "no acceptable C compiler found in \$PATH
3940 See \`config.log' for more details." "$LINENO" 5; }
3941
3942 # Provide some information about the compiler.
3943 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3944 set X $ac_compile
3945 ac_compiler=$2
3946 for ac_option in --version -v -V -qversion; do
3947   { { ac_try="$ac_compiler $ac_option >&5"
3948 case "(($ac_try" in
3949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950   *) ac_try_echo=$ac_try;;
3951 esac
3952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3953 $as_echo "$ac_try_echo"; } >&5
3954   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3955   ac_status=$?
3956   if test -s conftest.err; then
3957     sed '10a\
3958 ... rest of stderr output deleted ...
3959          10q' conftest.err >conftest.er1
3960     cat conftest.er1 >&5
3961   fi
3962   rm -f conftest.er1 conftest.err
3963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964   test $ac_status = 0; }
3965 done
3966
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3968 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3969 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3970   $as_echo_n "(cached) " >&6
3971 else
3972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h.  */
3974
3975 int
3976 main ()
3977 {
3978 #ifndef __GNUC__
3979        choke me
3980 #endif
3981
3982   ;
3983   return 0;
3984 }
3985 _ACEOF
3986 if ac_fn_c_try_compile "$LINENO"; then :
3987   ac_compiler_gnu=yes
3988 else
3989   ac_compiler_gnu=no
3990 fi
3991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3992 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3993
3994 fi
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3996 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3997 if test $ac_compiler_gnu = yes; then
3998   GCC=yes
3999 else
4000   GCC=
4001 fi
4002 ac_test_CFLAGS=${CFLAGS+set}
4003 ac_save_CFLAGS=$CFLAGS
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4005 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4006 if test "${ac_cv_prog_cc_g+set}" = set; then :
4007   $as_echo_n "(cached) " >&6
4008 else
4009   ac_save_c_werror_flag=$ac_c_werror_flag
4010    ac_c_werror_flag=yes
4011    ac_cv_prog_cc_g=no
4012    CFLAGS="-g"
4013    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h.  */
4015
4016 int
4017 main ()
4018 {
4019
4020   ;
4021   return 0;
4022 }
4023 _ACEOF
4024 if ac_fn_c_try_compile "$LINENO"; then :
4025   ac_cv_prog_cc_g=yes
4026 else
4027   CFLAGS=""
4028       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h.  */
4030
4031 int
4032 main ()
4033 {
4034
4035   ;
4036   return 0;
4037 }
4038 _ACEOF
4039 if ac_fn_c_try_compile "$LINENO"; then :
4040
4041 else
4042   ac_c_werror_flag=$ac_save_c_werror_flag
4043          CFLAGS="-g"
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   ac_cv_prog_cc_g=yes
4057 fi
4058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059 fi
4060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061 fi
4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063    ac_c_werror_flag=$ac_save_c_werror_flag
4064 fi
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4066 $as_echo "$ac_cv_prog_cc_g" >&6; }
4067 if test "$ac_test_CFLAGS" = set; then
4068   CFLAGS=$ac_save_CFLAGS
4069 elif test $ac_cv_prog_cc_g = yes; then
4070   if test "$GCC" = yes; then
4071     CFLAGS="-g -O2"
4072   else
4073     CFLAGS="-g"
4074   fi
4075 else
4076   if test "$GCC" = yes; then
4077     CFLAGS="-O2"
4078   else
4079     CFLAGS=
4080   fi
4081 fi
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4083 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4084 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4085   $as_echo_n "(cached) " >&6
4086 else
4087   ac_cv_prog_cc_c89=no
4088 ac_save_CC=$CC
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h.  */
4091 #include <stdarg.h>
4092 #include <stdio.h>
4093 #include <sys/types.h>
4094 #include <sys/stat.h>
4095 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4096 struct buf { int x; };
4097 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4098 static char *e (p, i)
4099      char **p;
4100      int i;
4101 {
4102   return p[i];
4103 }
4104 static char *f (char * (*g) (char **, int), char **p, ...)
4105 {
4106   char *s;
4107   va_list v;
4108   va_start (v,p);
4109   s = g (p, va_arg (v,int));
4110   va_end (v);
4111   return s;
4112 }
4113
4114 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4115    function prototypes and stuff, but not '\xHH' hex character constants.
4116    These don't provoke an error unfortunately, instead are silently treated
4117    as 'x'.  The following induces an error, until -std is added to get
4118    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4119    array size at least.  It's necessary to write '\x00'==0 to get something
4120    that's true only with -std.  */
4121 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4122
4123 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4124    inside strings and character constants.  */
4125 #define FOO(x) 'x'
4126 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4127
4128 int test (int i, double x);
4129 struct s1 {int (*f) (int a);};
4130 struct s2 {int (*f) (double a);};
4131 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4132 int argc;
4133 char **argv;
4134 int
4135 main ()
4136 {
4137 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4138   ;
4139   return 0;
4140 }
4141 _ACEOF
4142 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4143         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4144 do
4145   CC="$ac_save_CC $ac_arg"
4146   if ac_fn_c_try_compile "$LINENO"; then :
4147   ac_cv_prog_cc_c89=$ac_arg
4148 fi
4149 rm -f core conftest.err conftest.$ac_objext
4150   test "x$ac_cv_prog_cc_c89" != "xno" && break
4151 done
4152 rm -f conftest.$ac_ext
4153 CC=$ac_save_CC
4154
4155 fi
4156 # AC_CACHE_VAL
4157 case "x$ac_cv_prog_cc_c89" in
4158   x)
4159     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4160 $as_echo "none needed" >&6; } ;;
4161   xno)
4162     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4163 $as_echo "unsupported" >&6; } ;;
4164   *)
4165     CC="$CC $ac_cv_prog_cc_c89"
4166     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4167 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4168 esac
4169 if test "x$ac_cv_prog_cc_c89" != xno; then :
4170
4171 fi
4172
4173 ac_ext=c
4174 ac_cpp='$CPP $CPPFLAGS'
4175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4178
4179 if test "$GCC" = yes; then
4180    RDYNAMIC="-rdynamic"
4181
4182 fi
4183 ac_ext=c
4184 ac_cpp='$CPP $CPPFLAGS'
4185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4189 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4190 # On Suns, sometimes $CPP names a directory.
4191 if test -n "$CPP" && test -d "$CPP"; then
4192   CPP=
4193 fi
4194 if test -z "$CPP"; then
4195   if test "${ac_cv_prog_CPP+set}" = set; then :
4196   $as_echo_n "(cached) " >&6
4197 else
4198       # Double quotes because CPP needs to be expanded
4199     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4200     do
4201       ac_preproc_ok=false
4202 for ac_c_preproc_warn_flag in '' yes
4203 do
4204   # Use a header file that comes with gcc, so configuring glibc
4205   # with a fresh cross-compiler works.
4206   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4207   # <limits.h> exists even on freestanding compilers.
4208   # On the NeXT, cc -E runs the code through the compiler's parser,
4209   # not just through cpp. "Syntax error" is here to catch this case.
4210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211 /* end confdefs.h.  */
4212 #ifdef __STDC__
4213 # include <limits.h>
4214 #else
4215 # include <assert.h>
4216 #endif
4217                      Syntax error
4218 _ACEOF
4219 if ac_fn_c_try_cpp "$LINENO"; then :
4220
4221 else
4222   # Broken: fails on valid input.
4223 continue
4224 fi
4225 rm -f conftest.err conftest.$ac_ext
4226
4227   # OK, works on sane cases.  Now check whether nonexistent headers
4228   # can be detected and how.
4229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h.  */
4231 #include <ac_nonexistent.h>
4232 _ACEOF
4233 if ac_fn_c_try_cpp "$LINENO"; then :
4234   # Broken: success on invalid input.
4235 continue
4236 else
4237   # Passes both tests.
4238 ac_preproc_ok=:
4239 break
4240 fi
4241 rm -f conftest.err conftest.$ac_ext
4242
4243 done
4244 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4245 rm -f conftest.err conftest.$ac_ext
4246 if $ac_preproc_ok; then :
4247   break
4248 fi
4249
4250     done
4251     ac_cv_prog_CPP=$CPP
4252
4253 fi
4254   CPP=$ac_cv_prog_CPP
4255 else
4256   ac_cv_prog_CPP=$CPP
4257 fi
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4259 $as_echo "$CPP" >&6; }
4260 ac_preproc_ok=false
4261 for ac_c_preproc_warn_flag in '' yes
4262 do
4263   # Use a header file that comes with gcc, so configuring glibc
4264   # with a fresh cross-compiler works.
4265   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4266   # <limits.h> exists even on freestanding compilers.
4267   # On the NeXT, cc -E runs the code through the compiler's parser,
4268   # not just through cpp. "Syntax error" is here to catch this case.
4269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h.  */
4271 #ifdef __STDC__
4272 # include <limits.h>
4273 #else
4274 # include <assert.h>
4275 #endif
4276                      Syntax error
4277 _ACEOF
4278 if ac_fn_c_try_cpp "$LINENO"; then :
4279
4280 else
4281   # Broken: fails on valid input.
4282 continue
4283 fi
4284 rm -f conftest.err conftest.$ac_ext
4285
4286   # OK, works on sane cases.  Now check whether nonexistent headers
4287   # can be detected and how.
4288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h.  */
4290 #include <ac_nonexistent.h>
4291 _ACEOF
4292 if ac_fn_c_try_cpp "$LINENO"; then :
4293   # Broken: success on invalid input.
4294 continue
4295 else
4296   # Passes both tests.
4297 ac_preproc_ok=:
4298 break
4299 fi
4300 rm -f conftest.err conftest.$ac_ext
4301
4302 done
4303 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4304 rm -f conftest.err conftest.$ac_ext
4305 if $ac_preproc_ok; then :
4306
4307 else
4308   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4310 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4311 See \`config.log' for more details." "$LINENO" 5; }
4312 fi
4313
4314 ac_ext=c
4315 ac_cpp='$CPP $CPPFLAGS'
4316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4319
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4321 $as_echo_n "checking for additional special compiler flags... " >&6; }
4322 if test "$GCC" = yes
4323 then
4324     case "$host_cpu" in
4325         alpha)          addcflags="-mieee" ;;
4326     esac
4327 fi
4328 if test "x$addcflags" != x
4329 then
4330     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4331 $as_echo "$addcflags" >&6; }
4332     CFLAGS="$addcflags $CFLAGS"
4333 else
4334     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4335 $as_echo "(none)" >&6; }
4336 fi
4337 LIB_EXT=.a
4338 STATIC_LIB_EXT=.a
4339 PROFILED_LIB_EXT=.a
4340
4341 # Check whether --with-root-prefix was given.
4342 if test "${with_root_prefix+set}" = set; then :
4343   withval=$with_root_prefix; root_prefix=$withval
4344 else
4345   root_prefix=NONE
4346 fi
4347 # Check whether --enable-maintainer-mode was given.
4348 if test "${enable_maintainer_mode+set}" = set; then :
4349   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4350 then
4351         MAINTAINER_CMT=#
4352         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4353 $as_echo "Disabling maintainer mode" >&6; }
4354 else
4355         MAINTAINER_CMT=
4356         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4357 $as_echo "Enabling maintainer mode" >&6; }
4358 fi
4359
4360 else
4361   MAINTAINER_CMT=#
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4363 $as_echo "Disabling maintainer mode by default" >&6; }
4364
4365 fi
4366
4367
4368 # Check whether --enable-symlink-install was given.
4369 if test "${enable_symlink_install+set}" = set; then :
4370   enableval=$enable_symlink_install; if test "$enableval" = "no"
4371 then
4372         LINK_INSTALL_FLAGS=-f
4373         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4374 $as_echo "Disabling symlinks for install" >&6; }
4375 else
4376         LINK_INSTALL_FLAGS=-sf
4377         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4378 $as_echo "Enabling symlinks for install" >&6; }
4379 fi
4380
4381 else
4382   LINK_INSTALL_FLAGS=-f
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4384 $as_echo "Disabling symlinks for install by default" >&6; }
4385
4386 fi
4387
4388
4389 # Check whether --enable-symlink-relative-symlinks was given.
4390 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4391   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4392 then
4393         SYMLINK_RELATIVE=
4394         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4395 $as_echo "Disabling relative symlinks for install" >&6; }
4396 else
4397         SYMLINK_RELATIVE=--relative
4398         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4399 $as_echo "Enabling symlinks for install" >&6; }
4400 fi
4401
4402 else
4403   SYMLINK_RELATIVE=
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4405 $as_echo "Disabling relative symlinks for install by default" >&6; }
4406
4407 fi
4408
4409
4410 # Check whether --enable-symlink-build was given.
4411 if test "${enable_symlink_build+set}" = set; then :
4412   enableval=$enable_symlink_build; if test "$enableval" = "no"
4413 then
4414         LINK_BUILD_FLAGS=
4415         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4416 $as_echo "Disabling symlinks for build" >&6; }
4417 else
4418         LINK_BUILD_FLAGS=-s
4419         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4420 $as_echo "Enabling symlinks for build" >&6; }
4421 fi
4422
4423 else
4424   LINK_BUILD_FLAGS=
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4426 $as_echo "Disabling symlinks for build by default" >&6; }
4427
4428 fi
4429
4430
4431 # Check whether --enable-verbose-makecmds was given.
4432 if test "${enable_verbose_makecmds+set}" = set; then :
4433   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4434 then
4435         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4436 $as_echo "Disabling verbose make commands" >&6; }
4437         E=@echo
4438         ES=echo
4439         Q=@
4440 else
4441         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4442 $as_echo "Enabling verbose make commands" >&6; }
4443         E=@\\#
4444         ES=\\#
4445         Q=
4446 fi
4447
4448 else
4449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4450 $as_echo "Disabling verbose make commands" >&6; }
4451 E=@echo
4452 ES=echo
4453 Q=@
4454
4455 fi
4456
4457
4458
4459
4460 # Check whether --enable-compression was given.
4461 if test "${enable_compression+set}" = set; then :
4462   enableval=$enable_compression; if test "$enableval" = "no"
4463 then
4464         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4465 $as_echo "Disabling compression support" >&6; }
4466 else
4467
4468 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4469
4470         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4471 $as_echo "Enabling compression support" >&6; }
4472         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4473 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4474 fi
4475
4476 else
4477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4478 $as_echo "Disabling compression support by default" >&6; }
4479
4480 fi
4481
4482
4483 # Check whether --enable-htree was given.
4484 if test "${enable_htree+set}" = set; then :
4485   enableval=$enable_htree; if test "$enableval" = "no"
4486 then
4487         HTREE_CMT=#
4488         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4489 $as_echo "Disabling htree directory support" >&6; }
4490 else
4491         HTREE_CMT=
4492         $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4493
4494         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4495 $as_echo "Enabling htree directory support" >&6; }
4496 fi
4497
4498 else
4499   HTREE_CMT=
4500 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4501
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4503 $as_echo "Enabling htree directory support by default" >&6; }
4504
4505 fi
4506
4507
4508 E2_PKG_CONFIG_STATIC=--static
4509 LDFLAG_DYNAMIC=
4510 PRIVATE_LIBS_CMT=
4511 # Check whether --enable-elf-shlibs was given.
4512 if test "${enable_elf_shlibs+set}" = set; then :
4513   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4514 then
4515         ELF_CMT=#
4516         MAKEFILE_ELF=/dev/null
4517         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4518 $as_echo "Disabling ELF shared libraries" >&6; }
4519 else
4520         E2_PKG_CONFIG_STATIC=
4521         ELF_CMT=
4522         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4523         case "$host_os" in
4524         solaris2.*)
4525                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4526         ;;
4527         esac
4528         BINARY_TYPE=elfbin
4529         LIB_EXT=.so
4530         PRIVATE_LIBS_CMT=#
4531         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4532         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4533 $as_echo "Enabling ELF shared libraries" >&6; }
4534 fi
4535
4536 else
4537   MAKEFILE_ELF=/dev/null
4538 ELF_CMT=#
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4540 $as_echo "Disabling ELF shared libraries by default" >&6; }
4541
4542 fi
4543
4544
4545
4546 # Check whether --enable-bsd-shlibs was given.
4547 if test "${enable_bsd_shlibs+set}" = set; then :
4548   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4549 then
4550         BSDLIB_CMT=#
4551         MAKEFILE_BSDLIB=/dev/null
4552         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4553 $as_echo "Disabling BSD shared libraries" >&6; }
4554 else
4555         E2_PKG_CONFIG_STATIC=
4556         BSDLIB_CMT=
4557         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4558         LIB_EXT=.so
4559         case "$host_os" in
4560         darwin*)
4561                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4562                 LIB_EXT=.dylib
4563         ;;
4564         esac
4565         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4566 $as_echo "Enabling BSD shared libraries" >&6; }
4567 fi
4568
4569 else
4570   MAKEFILE_BSDLIB=/dev/null
4571 BSDLIB_CMT=#
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4573 $as_echo "Disabling BSD shared libraries by default" >&6; }
4574
4575 fi
4576
4577
4578
4579 # Check whether --enable-profile was given.
4580 if test "${enable_profile+set}" = set; then :
4581   enableval=$enable_profile; if test "$enableval" = "no"
4582 then
4583         PROFILE_CMT=#
4584         MAKEFILE_PROFILE=/dev/null
4585         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4586 $as_echo "Disabling profiling libraries" >&6; }
4587 else
4588         PROFILE_CMT=
4589         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4590         PROFILED_LIB_EXT=_p.a
4591         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4592 $as_echo "Building profiling libraries" >&6; }
4593 fi
4594
4595 else
4596   PROFILE_CMT=#
4597 MAKEFILE_PROFILE=/dev/null
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4599 $as_echo "Disabling profiling libraries by default" >&6; }
4600
4601 fi
4602
4603
4604
4605 # Check whether --enable-checker was given.
4606 if test "${enable_checker+set}" = set; then :
4607   enableval=$enable_checker; if test "$enableval" = "no"
4608 then
4609         CHECKER_CMT=#
4610         MAKEFILE_CHECKER=/dev/null
4611         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4612 $as_echo "Disabling checker libraries" >&6; }
4613 else
4614         CHECKER_CMT=
4615         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4616         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4617 $as_echo "Building checker libraries" >&6; }
4618 fi
4619
4620 else
4621   CHECKER_CMT=#
4622 MAKEFILE_CHECKER=/dev/null
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4624 $as_echo "Disabling checker libraries by default" >&6; }
4625
4626 fi
4627
4628
4629
4630
4631
4632
4633
4634
4635 # Check whether --enable-jbd-debug was given.
4636 if test "${enable_jbd_debug+set}" = set; then :
4637   enableval=$enable_jbd_debug; if test "$enableval" = "no"
4638 then
4639         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4640 $as_echo "Disabling journal debugging" >&6; }
4641 else
4642
4643 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4644
4645         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4646 $as_echo "Enabling journal debugging" >&6; }
4647 fi
4648
4649 else
4650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4651 $as_echo "Disabling journal debugging by default" >&6; }
4652
4653 fi
4654
4655 # Check whether --enable-blkid-debug was given.
4656 if test "${enable_blkid_debug+set}" = set; then :
4657   enableval=$enable_blkid_debug; if test "$enableval" = "no"
4658 then
4659         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4660 $as_echo "Disabling blkid debugging" >&6; }
4661 else
4662
4663 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4664
4665         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4666 $as_echo "Enabling blkid debugging" >&6; }
4667 fi
4668
4669 else
4670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4671 $as_echo "Disabling blkid debugging by default" >&6; }
4672
4673 fi
4674
4675 # Check whether --enable-testio-debug was given.
4676 if test "${enable_testio_debug+set}" = set; then :
4677   enableval=$enable_testio_debug;
4678 if test "$enableval" = "no"
4679 then
4680         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4681 $as_echo "Disabling testio debugging" >&6; }
4682         TEST_IO_CMT="#"
4683 else
4684         TEST_IO_CMT=
4685         $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4686
4687         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4688 $as_echo "Enabling testio debugging" >&6; }
4689 fi
4690
4691 else
4692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4693 $as_echo "Enabling testio debugging by default" >&6; }
4694 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4695
4696 TEST_IO_CMT=
4697
4698 fi
4699
4700
4701
4702
4703 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4704         if test -n "$ac_tool_prefix"; then
4705   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4706 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4708 $as_echo_n "checking for $ac_word... " >&6; }
4709 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4710   $as_echo_n "(cached) " >&6
4711 else
4712   case $PKG_CONFIG in
4713   [\\/]* | ?:[\\/]*)
4714   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4715   ;;
4716   *)
4717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 for as_dir in $PATH
4719 do
4720   IFS=$as_save_IFS
4721   test -z "$as_dir" && as_dir=.
4722     for ac_exec_ext in '' $ac_executable_extensions; do
4723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4724     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4726     break 2
4727   fi
4728 done
4729   done
4730 IFS=$as_save_IFS
4731
4732   ;;
4733 esac
4734 fi
4735 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4736 if test -n "$PKG_CONFIG"; then
4737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4738 $as_echo "$PKG_CONFIG" >&6; }
4739 else
4740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4741 $as_echo "no" >&6; }
4742 fi
4743
4744
4745 fi
4746 if test -z "$ac_cv_path_PKG_CONFIG"; then
4747   ac_pt_PKG_CONFIG=$PKG_CONFIG
4748   # Extract the first word of "pkg-config", so it can be a program name with args.
4749 set dummy pkg-config; ac_word=$2
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4751 $as_echo_n "checking for $ac_word... " >&6; }
4752 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4753   $as_echo_n "(cached) " >&6
4754 else
4755   case $ac_pt_PKG_CONFIG in
4756   [\\/]* | ?:[\\/]*)
4757   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4758   ;;
4759   *)
4760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4762 do
4763   IFS=$as_save_IFS
4764   test -z "$as_dir" && as_dir=.
4765     for ac_exec_ext in '' $ac_executable_extensions; do
4766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4767     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769     break 2
4770   fi
4771 done
4772   done
4773 IFS=$as_save_IFS
4774
4775   ;;
4776 esac
4777 fi
4778 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4779 if test -n "$ac_pt_PKG_CONFIG"; then
4780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4781 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4782 else
4783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784 $as_echo "no" >&6; }
4785 fi
4786
4787   if test "x$ac_pt_PKG_CONFIG" = x; then
4788     PKG_CONFIG=""
4789   else
4790     case $cross_compiling:$ac_tool_warned in
4791 yes:)
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4794 ac_tool_warned=yes ;;
4795 esac
4796     PKG_CONFIG=$ac_pt_PKG_CONFIG
4797   fi
4798 else
4799   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4800 fi
4801
4802 fi
4803 if test -n "$PKG_CONFIG"; then
4804         _pkg_min_version=0.9.0
4805         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4806 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4807         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4808                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4809 $as_echo "yes" >&6; }
4810         else
4811                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 $as_echo "no" >&6; }
4813                 PKG_CONFIG=""
4814         fi
4815
4816 fi
4817 LIBUUID=
4818 DEPLIBUUID=
4819 STATIC_LIBUUID=
4820 DEPSTATIC_LIBUUID=
4821 PROFILED_LIBUUID=
4822 DEPPROFILED_LIBUUID=
4823 UUID_CMT=
4824 # Check whether --enable-libuuid was given.
4825 if test "${enable_libuuid+set}" = set; then :
4826   enableval=$enable_libuuid; if test "$enableval" = "no"
4827 then
4828         if test -z "$PKG_CONFIG"; then
4829                 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
4830         fi
4831
4832         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4833 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4834 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
4835   $as_echo_n "(cached) " >&6
4836 else
4837   ac_check_lib_save_LIBS=$LIBS
4838 LIBS="-luuid $LIBUUID $LIBS"
4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4840 /* end confdefs.h.  */
4841
4842 /* Override any GCC internal prototype to avoid an error.
4843    Use char because int might match the return type of a GCC
4844    builtin and then its argument prototype would still apply.  */
4845 #ifdef __cplusplus
4846 extern "C"
4847 #endif
4848 char uuid_generate ();
4849 int
4850 main ()
4851 {
4852 return uuid_generate ();
4853   ;
4854   return 0;
4855 }
4856 _ACEOF
4857 if ac_fn_c_try_link "$LINENO"; then :
4858   ac_cv_lib_uuid_uuid_generate=yes
4859 else
4860   ac_cv_lib_uuid_uuid_generate=no
4861 fi
4862 rm -f core conftest.err conftest.$ac_objext \
4863     conftest$ac_exeext conftest.$ac_ext
4864 LIBS=$ac_check_lib_save_LIBS
4865 fi
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4867 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4868 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
4869   LIBUUID=`$PKG_CONFIG --libs uuid`;
4870                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4871 else
4872   as_fn_error "external uuid library not found" "$LINENO" 5
4873 fi
4874
4875         UUID_CMT=#
4876         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4877 $as_echo "Disabling private uuid library" >&6; }
4878 else
4879         LIBUUID='$(LIB)/libuuid'$LIB_EXT
4880         DEPLIBUUID=$LIBUUID
4881         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4882         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4883         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4884         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4885         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4886 $as_echo "Enabling private uuid library" >&6; }
4887 fi
4888
4889 else
4890   LIBUUID='$(LIB)/libuuid'$LIB_EXT
4891 DEPLIBUUID=$LIBUUID
4892 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4893 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4894 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4895 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
4897 $as_echo "Enabling private uuid library by default" >&6; }
4898
4899 fi
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4911         if test -n "$ac_tool_prefix"; then
4912   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4913 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915 $as_echo_n "checking for $ac_word... " >&6; }
4916 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4917   $as_echo_n "(cached) " >&6
4918 else
4919   case $PKG_CONFIG in
4920   [\\/]* | ?:[\\/]*)
4921   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4922   ;;
4923   *)
4924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 for as_dir in $PATH
4926 do
4927   IFS=$as_save_IFS
4928   test -z "$as_dir" && as_dir=.
4929     for ac_exec_ext in '' $ac_executable_extensions; do
4930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4931     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933     break 2
4934   fi
4935 done
4936   done
4937 IFS=$as_save_IFS
4938
4939   ;;
4940 esac
4941 fi
4942 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4943 if test -n "$PKG_CONFIG"; then
4944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4945 $as_echo "$PKG_CONFIG" >&6; }
4946 else
4947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948 $as_echo "no" >&6; }
4949 fi
4950
4951
4952 fi
4953 if test -z "$ac_cv_path_PKG_CONFIG"; then
4954   ac_pt_PKG_CONFIG=$PKG_CONFIG
4955   # Extract the first word of "pkg-config", so it can be a program name with args.
4956 set dummy pkg-config; ac_word=$2
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4958 $as_echo_n "checking for $ac_word... " >&6; }
4959 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4960   $as_echo_n "(cached) " >&6
4961 else
4962   case $ac_pt_PKG_CONFIG in
4963   [\\/]* | ?:[\\/]*)
4964   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4965   ;;
4966   *)
4967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968 for as_dir in $PATH
4969 do
4970   IFS=$as_save_IFS
4971   test -z "$as_dir" && as_dir=.
4972     for ac_exec_ext in '' $ac_executable_extensions; do
4973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4974     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4976     break 2
4977   fi
4978 done
4979   done
4980 IFS=$as_save_IFS
4981
4982   ;;
4983 esac
4984 fi
4985 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4986 if test -n "$ac_pt_PKG_CONFIG"; then
4987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4988 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4989 else
4990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4991 $as_echo "no" >&6; }
4992 fi
4993
4994   if test "x$ac_pt_PKG_CONFIG" = x; then
4995     PKG_CONFIG=""
4996   else
4997     case $cross_compiling:$ac_tool_warned in
4998 yes:)
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5001 ac_tool_warned=yes ;;
5002 esac
5003     PKG_CONFIG=$ac_pt_PKG_CONFIG
5004   fi
5005 else
5006   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5007 fi
5008
5009 fi
5010 if test -n "$PKG_CONFIG"; then
5011         _pkg_min_version=0.9.0
5012         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5013 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5014         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5015                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5016 $as_echo "yes" >&6; }
5017         else
5018                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019 $as_echo "no" >&6; }
5020                 PKG_CONFIG=""
5021         fi
5022
5023 fi
5024 LIBBLKID=
5025 DEPLIBBLKID=
5026 STATIC_LIBBLKID=
5027 DEPSTATIC_LIBBLKID=
5028 PROFILED_LIBBLKID=
5029 DEPPROFILED_LIBBLKID=
5030 BLKID_CMT=
5031
5032 # Check whether --enable-libblkid was given.
5033 if test "${enable_libblkid+set}" = set; then :
5034   enableval=$enable_libblkid; if test "$enableval" = "no"
5035 then
5036         if test -z "$PKG_CONFIG"; then
5037                 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
5038         fi
5039
5040         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5041 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5042 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
5043   $as_echo_n "(cached) " >&6
5044 else
5045   ac_check_lib_save_LIBS=$LIBS
5046 LIBS="-lblkid $LIBBLKID $LIBS"
5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h.  */
5049
5050 /* Override any GCC internal prototype to avoid an error.
5051    Use char because int might match the return type of a GCC
5052    builtin and then its argument prototype would still apply.  */
5053 #ifdef __cplusplus
5054 extern "C"
5055 #endif
5056 char blkid_get_cache ();
5057 int
5058 main ()
5059 {
5060 return blkid_get_cache ();
5061   ;
5062   return 0;
5063 }
5064 _ACEOF
5065 if ac_fn_c_try_link "$LINENO"; then :
5066   ac_cv_lib_blkid_blkid_get_cache=yes
5067 else
5068   ac_cv_lib_blkid_blkid_get_cache=no
5069 fi
5070 rm -f core conftest.err conftest.$ac_objext \
5071     conftest$ac_exeext conftest.$ac_ext
5072 LIBS=$ac_check_lib_save_LIBS
5073 fi
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5075 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5076 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then :
5077   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5078                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5079 else
5080   as_fn_error "external blkid library not found" "$LINENO" 5
5081 fi
5082
5083         BLKID_CMT=#
5084         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5085 $as_echo "Disabling private blkid library" >&6; }
5086 else
5087         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5088         DEPLIBBLKID=$LIBBLKID
5089         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5090         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5091         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5092         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5093         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5094
5095         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5096 $as_echo "Enabling private blkid library" >&6; }
5097 fi
5098
5099 else
5100   LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5101 DEPLIBBLKID=$LIBBLKID
5102 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5103 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5104 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5105 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5106 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5107
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5109 $as_echo "Enabling private blkid library by default" >&6; }
5110
5111 fi
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5123         if test -n "$ac_tool_prefix"; then
5124   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5125 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5129   $as_echo_n "(cached) " >&6
5130 else
5131   case $PKG_CONFIG in
5132   [\\/]* | ?:[\\/]*)
5133   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5134   ;;
5135   *)
5136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in $PATH
5138 do
5139   IFS=$as_save_IFS
5140   test -z "$as_dir" && as_dir=.
5141     for ac_exec_ext in '' $ac_executable_extensions; do
5142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5143     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5145     break 2
5146   fi
5147 done
5148   done
5149 IFS=$as_save_IFS
5150
5151   ;;
5152 esac
5153 fi
5154 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5155 if test -n "$PKG_CONFIG"; then
5156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5157 $as_echo "$PKG_CONFIG" >&6; }
5158 else
5159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5161 fi
5162
5163
5164 fi
5165 if test -z "$ac_cv_path_PKG_CONFIG"; then
5166   ac_pt_PKG_CONFIG=$PKG_CONFIG
5167   # Extract the first word of "pkg-config", so it can be a program name with args.
5168 set dummy pkg-config; ac_word=$2
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170 $as_echo_n "checking for $ac_word... " >&6; }
5171 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5172   $as_echo_n "(cached) " >&6
5173 else
5174   case $ac_pt_PKG_CONFIG in
5175   [\\/]* | ?:[\\/]*)
5176   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5177   ;;
5178   *)
5179   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 for as_dir in $PATH
5181 do
5182   IFS=$as_save_IFS
5183   test -z "$as_dir" && as_dir=.
5184     for ac_exec_ext in '' $ac_executable_extensions; do
5185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5186     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5188     break 2
5189   fi
5190 done
5191   done
5192 IFS=$as_save_IFS
5193
5194   ;;
5195 esac
5196 fi
5197 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5198 if test -n "$ac_pt_PKG_CONFIG"; then
5199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5200 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5201 else
5202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203 $as_echo "no" >&6; }
5204 fi
5205
5206   if test "x$ac_pt_PKG_CONFIG" = x; then
5207     PKG_CONFIG=""
5208   else
5209     case $cross_compiling:$ac_tool_warned in
5210 yes:)
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5213 ac_tool_warned=yes ;;
5214 esac
5215     PKG_CONFIG=$ac_pt_PKG_CONFIG
5216   fi
5217 else
5218   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5219 fi
5220
5221 fi
5222 if test -n "$PKG_CONFIG"; then
5223         _pkg_min_version=0.9.0
5224         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5225 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5226         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5227                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5228 $as_echo "yes" >&6; }
5229         else
5230                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5232                 PKG_CONFIG=""
5233         fi
5234
5235 fi
5236
5237 # Check whether --enable-quota was given.
5238 if test "${enable_quota+set}" = set; then :
5239   enableval=$enable_quota; if test "$enableval" = "no"
5240 then
5241         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5242 $as_echo "Disabling quota support" >&6; }
5243 else
5244         $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5245
5246         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5247 $as_echo "Enabling quota support" >&6; }
5248 fi
5249
5250 else
5251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5252 $as_echo "Disabling quota support by default" >&6; }
5253
5254 fi
5255
5256 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5257 DEPLIBQUOTA=$LIBQUOTA
5258 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5259 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5260 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5261 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5262
5263
5264
5265
5266
5267
5268
5269 # Check whether --enable-debugfs was given.
5270 if test "${enable_debugfs+set}" = set; then :
5271   enableval=$enable_debugfs; if test "$enableval" = "no"
5272 then
5273         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5274 $as_echo "Disabling debugfs support" >&6; }
5275         DEBUGFS_CMT="#"
5276 else
5277         DEBUGFS_CMT=
5278         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5279 $as_echo "Enabling debugfs support" >&6; }
5280 fi
5281
5282 else
5283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5284 $as_echo "Enabling debugfs support by default" >&6; }
5285 DEBUGFS_CMT=
5286
5287 fi
5288
5289
5290 # Check whether --enable-imager was given.
5291 if test "${enable_imager+set}" = set; then :
5292   enableval=$enable_imager; if test "$enableval" = "no"
5293 then
5294         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5295 $as_echo "Disabling e2image support" >&6; }
5296         IMAGER_CMT="#"
5297 else
5298         IMAGER_CMT=
5299         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5300 $as_echo "Enabling e2image support" >&6; }
5301 fi
5302
5303 else
5304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5305 $as_echo "Enabling e2image support by default" >&6; }
5306 IMAGER_CMT=
5307
5308 fi
5309
5310
5311 # Check whether --enable-resizer was given.
5312 if test "${enable_resizer+set}" = set; then :
5313   enableval=$enable_resizer; if test "$enableval" = "no"
5314 then
5315         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5316 $as_echo "Disabling e2resize support" >&6; }
5317         RESIZER_CMT="#"
5318 else
5319         RESIZER_CMT=
5320         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5321 $as_echo "Enabling e2resize support" >&6; }
5322 fi
5323
5324 else
5325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5326 $as_echo "Enabling e2resize support by default" >&6; }
5327 RESIZER_CMT=
5328
5329 fi
5330
5331
5332 # Check whether --enable-defrag was given.
5333 if test "${enable_defrag+set}" = set; then :
5334   enableval=$enable_defrag; if test "$enableval" = "no"
5335 then
5336         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5337 $as_echo "Disabling e4defrag support" >&6; }
5338         DEFRAG_CMT="#"
5339 else
5340         DEFRAG_CMT=
5341         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5342 $as_echo "Enabling e4defrag support" >&6; }
5343 fi
5344
5345 else
5346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5347 $as_echo "Enabling e4defrag support by default" >&6; }
5348 DEFRAG_CMT=
5349
5350 fi
5351
5352
5353 # Check whether --enable-fsck was given.
5354 if test "${enable_fsck+set}" = set; then :
5355   enableval=$enable_fsck; if test "$enableval" = "no"
5356 then
5357         FSCK_PROG='' FSCK_MAN=''
5358         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5359 $as_echo "Not building fsck wrapper" >&6; }
5360 else
5361         FSCK_PROG=fsck FSCK_MAN=fsck.8
5362         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5363 $as_echo "Building fsck wrapper" >&6; }
5364 fi
5365
5366 else
5367   case "$host_os" in
5368   gnu*)
5369     FSCK_PROG='' FSCK_MAN=''
5370     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5371 $as_echo "Not building fsck wrapper by default" >&6; }
5372     ;;
5373   *)
5374     FSCK_PROG=fsck FSCK_MAN=fsck.8
5375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5376 $as_echo "Building fsck wrapper by default" >&6; }
5377 esac
5378
5379 fi
5380
5381
5382
5383 # Check whether --enable-e2initrd-helper was given.
5384 if test "${enable_e2initrd_helper+set}" = set; then :
5385   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5386 then
5387         E2INITRD_PROG='' E2INITRD_MAN=''
5388         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5389 $as_echo "Not building e2initrd helper" >&6; }
5390 else
5391         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5392         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5393 $as_echo "Building e2initrd helper" >&6; }
5394 fi
5395
5396 else
5397   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5399 $as_echo "Building e2initrd helper by default" >&6; }
5400
5401 fi
5402
5403
5404
5405 # Check whether --enable-tls was given.
5406 if test "${enable_tls+set}" = set; then :
5407   enableval=$enable_tls; if test "$enableval" = "no"
5408 then
5409         try_tls=""
5410         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5411 $as_echo "Disabling thread local support" >&6; }
5412 else
5413         try_tls="yes"
5414         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5415 $as_echo "Enabling thread local support" >&6; }
5416 fi
5417
5418 else
5419   if test -n "$WITH_DIET_LIBC"
5420 then
5421         try_tls=""
5422         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5423 $as_echo "Diet libc does not support thread local support" >&6; }
5424 else
5425         try_tls="yes"
5426         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5427 $as_echo "Try using thread local support by default" >&6; }
5428 fi
5429
5430 fi
5431
5432 if test "$try_tls" = "yes"
5433 then
5434
5435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5436 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5437   if test "${ac_cv_tls+set}" = set; then :
5438   $as_echo_n "(cached) " >&6
5439 else
5440
5441     ax_tls_keywords="__thread __declspec(thread) none"
5442     for ax_tls_keyword in $ax_tls_keywords; do
5443        case $ax_tls_keyword in
5444           none) ac_cv_tls=none ; break ;;
5445           *)
5446              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h.  */
5448 #include <stdlib.h>
5449                  static void
5450                  foo(void) {
5451                  static  $ax_tls_keyword  int bar;
5452                  exit(1);
5453                  }
5454 int
5455 main ()
5456 {
5457
5458   ;
5459   return 0;
5460 }
5461 _ACEOF
5462 if ac_fn_c_try_compile "$LINENO"; then :
5463   ac_cv_tls=$ax_tls_keyword ; break
5464 else
5465   ac_cv_tls=none
5466
5467 fi
5468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5469           esac
5470     done
5471
5472 fi
5473
5474
5475   if test "$ac_cv_tls" != "none"; then
5476
5477 cat >>confdefs.h <<_ACEOF
5478 #define TLS $ac_cv_tls
5479 _ACEOF
5480
5481   fi
5482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5483 $as_echo "$ac_cv_tls" >&6; }
5484
5485 fi
5486
5487 # Check whether --enable-uuidd was given.
5488 if test "${enable_uuidd+set}" = set; then :
5489   enableval=$enable_uuidd; if test "$enableval" = "no"
5490 then
5491         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5492 $as_echo "Not building uuidd" >&6; }
5493         UUIDD_CMT="#"
5494 else
5495         $as_echo "#define USE_UUIDD 1" >>confdefs.h
5496
5497         UUIDD_CMT=""
5498         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5499 $as_echo "Building uuidd" >&6; }
5500 fi
5501
5502 else
5503   $as_echo "#define USE_UUIDD 1" >>confdefs.h
5504
5505 UUIDD_CMT=""
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5507 $as_echo "Building uuidd by default" >&6; }
5508
5509 fi
5510
5511
5512 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5513
5514 GETTEXT_PACKAGE=e2fsprogs
5515 PACKAGE=e2fsprogs
5516 VERSION="$E2FSPROGS_VERSION"
5517 VERSION=0.14.1
5518
5519 cat >>confdefs.h <<_ACEOF
5520 #define PACKAGE "$PACKAGE"
5521 _ACEOF
5522
5523
5524 cat >>confdefs.h <<_ACEOF
5525 #define VERSION "$VERSION"
5526 _ACEOF
5527
5528
5529
5530
5531
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5533 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5534 set x ${MAKE-make}
5535 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5536 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5537   $as_echo_n "(cached) " >&6
5538 else
5539   cat >conftest.make <<\_ACEOF
5540 SHELL = /bin/sh
5541 all:
5542         @echo '@@@%%%=$(MAKE)=@@@%%%'
5543 _ACEOF
5544 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5545 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5546   *@@@%%%=?*=@@@%%%*)
5547     eval ac_cv_prog_make_${ac_make}_set=yes;;
5548   *)
5549     eval ac_cv_prog_make_${ac_make}_set=no;;
5550 esac
5551 rm -f conftest.make
5552 fi
5553 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5555 $as_echo "yes" >&6; }
5556   SET_MAKE=
5557 else
5558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 $as_echo "no" >&6; }
5560   SET_MAKE="MAKE=${MAKE-make}"
5561 fi
5562
5563 # Find a good install program.  We prefer a C program (faster),
5564 # so one script is as good as another.  But avoid the broken or
5565 # incompatible versions:
5566 # SysV /etc/install, /usr/sbin/install
5567 # SunOS /usr/etc/install
5568 # IRIX /sbin/install
5569 # AIX /bin/install
5570 # AmigaOS /C/install, which installs bootblocks on floppy discs
5571 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5572 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5573 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5574 # OS/2's system install, which has a completely different semantic
5575 # ./install, which can be erroneously created by make from ./install.sh.
5576 # Reject install programs that cannot install multiple files.
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5578 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5579 if test -z "$INSTALL"; then
5580 if test "${ac_cv_path_install+set}" = set; then :
5581   $as_echo_n "(cached) " >&6
5582 else
5583   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584 for as_dir in $PATH
5585 do
5586   IFS=$as_save_IFS
5587   test -z "$as_dir" && as_dir=.
5588     # Account for people who put trailing slashes in PATH elements.
5589 case $as_dir/ in #((
5590   ./ | .// | /[cC]/* | \
5591   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5592   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5593   /usr/ucb/* ) ;;
5594   *)
5595     # OSF1 and SCO ODT 3.0 have their own names for install.
5596     # Don't use installbsd from OSF since it installs stuff as root
5597     # by default.
5598     for ac_prog in ginstall scoinst install; do
5599       for ac_exec_ext in '' $ac_executable_extensions; do
5600         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5601           if test $ac_prog = install &&
5602             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5603             # AIX install.  It has an incompatible calling convention.
5604             :
5605           elif test $ac_prog = install &&
5606             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5607             # program-specific install script used by HP pwplus--don't use.
5608             :
5609           else
5610             rm -rf conftest.one conftest.two conftest.dir
5611             echo one > conftest.one
5612             echo two > conftest.two
5613             mkdir conftest.dir
5614             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5615               test -s conftest.one && test -s conftest.two &&
5616               test -s conftest.dir/conftest.one &&
5617               test -s conftest.dir/conftest.two
5618             then
5619               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5620               break 3
5621             fi
5622           fi
5623         fi
5624       done
5625     done
5626     ;;
5627 esac
5628
5629   done
5630 IFS=$as_save_IFS
5631
5632 rm -rf conftest.one conftest.two conftest.dir
5633
5634 fi
5635   if test "${ac_cv_path_install+set}" = set; then
5636     INSTALL=$ac_cv_path_install
5637   else
5638     # As a last resort, use the slow shell script.  Don't cache a
5639     # value for INSTALL within a source directory, because that will
5640     # break other packages using the cache if that directory is
5641     # removed, or if the value is a relative name.
5642     INSTALL=$ac_install_sh
5643   fi
5644 fi
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5646 $as_echo "$INSTALL" >&6; }
5647
5648 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5649 # It thinks the first close brace ends the variable substitution.
5650 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5651
5652 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5653
5654 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5655
5656
5657         MKINSTALLDIRS=
5658   if test -n "$ac_aux_dir"; then
5659     case "$ac_aux_dir" in
5660       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5661       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5662     esac
5663   fi
5664   if test -z "$MKINSTALLDIRS"; then
5665     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5666   fi
5667
5668
5669
5670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5671 $as_echo_n "checking whether NLS is requested... " >&6; }
5672     # Check whether --enable-nls was given.
5673 if test "${enable_nls+set}" = set; then :
5674   enableval=$enable_nls; USE_NLS=$enableval
5675 else
5676   USE_NLS=yes
5677 fi
5678
5679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5680 $as_echo "$USE_NLS" >&6; }
5681
5682
5683
5684
5685
5686
5687 # Prepare PATH_SEPARATOR.
5688 # The user is always right.
5689 if test "${PATH_SEPARATOR+set}" != set; then
5690   echo "#! /bin/sh" >conf$$.sh
5691   echo  "exit 0"   >>conf$$.sh
5692   chmod +x conf$$.sh
5693   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5694     PATH_SEPARATOR=';'
5695   else
5696     PATH_SEPARATOR=:
5697   fi
5698   rm -f conf$$.sh
5699 fi
5700
5701 # Find out how to test for executable files. Don't use a zero-byte file,
5702 # as systems may use methods other than mode bits to determine executability.
5703 cat >conf$$.file <<_ASEOF
5704 #! /bin/sh
5705 exit 0
5706 _ASEOF
5707 chmod +x conf$$.file
5708 if test -x conf$$.file >/dev/null 2>&1; then
5709   ac_executable_p="test -x"
5710 else
5711   ac_executable_p="test -f"
5712 fi
5713 rm -f conf$$.file
5714
5715 # Extract the first word of "msgfmt", so it can be a program name with args.
5716 set dummy msgfmt; ac_word=$2
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718 $as_echo_n "checking for $ac_word... " >&6; }
5719 if test "${ac_cv_path_MSGFMT+set}" = set; then :
5720   $as_echo_n "(cached) " >&6
5721 else
5722   case "$MSGFMT" in
5723   [\\/]* | ?:[\\/]*)
5724     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5725     ;;
5726   *)
5727     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5728     for ac_dir in $PATH; do
5729       IFS="$ac_save_IFS"
5730       test -z "$ac_dir" && ac_dir=.
5731       for ac_exec_ext in '' $ac_executable_extensions; do
5732         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5733           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5734      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5735             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5736             break 2
5737           fi
5738         fi
5739       done
5740     done
5741     IFS="$ac_save_IFS"
5742   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5743     ;;
5744 esac
5745 fi
5746 MSGFMT="$ac_cv_path_MSGFMT"
5747 if test "$MSGFMT" != ":"; then
5748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5749 $as_echo "$MSGFMT" >&6; }
5750 else
5751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752 $as_echo "no" >&6; }
5753 fi
5754
5755   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5756 set dummy gmsgfmt; ac_word=$2
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758 $as_echo_n "checking for $ac_word... " >&6; }
5759 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5760   $as_echo_n "(cached) " >&6
5761 else
5762   case $GMSGFMT in
5763   [\\/]* | ?:[\\/]*)
5764   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5765   ;;
5766   *)
5767   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 for as_dir in $PATH
5769 do
5770   IFS=$as_save_IFS
5771   test -z "$as_dir" && as_dir=.
5772     for ac_exec_ext in '' $ac_executable_extensions; do
5773   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5774     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5776     break 2
5777   fi
5778 done
5779   done
5780 IFS=$as_save_IFS
5781
5782   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5783   ;;
5784 esac
5785 fi
5786 GMSGFMT=$ac_cv_path_GMSGFMT
5787 if test -n "$GMSGFMT"; then
5788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5789 $as_echo "$GMSGFMT" >&6; }
5790 else
5791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }
5793 fi
5794
5795
5796
5797
5798 # Prepare PATH_SEPARATOR.
5799 # The user is always right.
5800 if test "${PATH_SEPARATOR+set}" != set; then
5801   echo "#! /bin/sh" >conf$$.sh
5802   echo  "exit 0"   >>conf$$.sh
5803   chmod +x conf$$.sh
5804   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5805     PATH_SEPARATOR=';'
5806   else
5807     PATH_SEPARATOR=:
5808   fi
5809   rm -f conf$$.sh
5810 fi
5811
5812 # Find out how to test for executable files. Don't use a zero-byte file,
5813 # as systems may use methods other than mode bits to determine executability.
5814 cat >conf$$.file <<_ASEOF
5815 #! /bin/sh
5816 exit 0
5817 _ASEOF
5818 chmod +x conf$$.file
5819 if test -x conf$$.file >/dev/null 2>&1; then
5820   ac_executable_p="test -x"
5821 else
5822   ac_executable_p="test -f"
5823 fi
5824 rm -f conf$$.file
5825
5826 # Extract the first word of "xgettext", so it can be a program name with args.
5827 set dummy xgettext; ac_word=$2
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5829 $as_echo_n "checking for $ac_word... " >&6; }
5830 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5831   $as_echo_n "(cached) " >&6
5832 else
5833   case "$XGETTEXT" in
5834   [\\/]* | ?:[\\/]*)
5835     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5836     ;;
5837   *)
5838     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5839     for ac_dir in $PATH; do
5840       IFS="$ac_save_IFS"
5841       test -z "$ac_dir" && ac_dir=.
5842       for ac_exec_ext in '' $ac_executable_extensions; do
5843         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5844           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5845      (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
5846             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5847             break 2
5848           fi
5849         fi
5850       done
5851     done
5852     IFS="$ac_save_IFS"
5853   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5854     ;;
5855 esac
5856 fi
5857 XGETTEXT="$ac_cv_path_XGETTEXT"
5858 if test "$XGETTEXT" != ":"; then
5859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5860 $as_echo "$XGETTEXT" >&6; }
5861 else
5862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863 $as_echo "no" >&6; }
5864 fi
5865
5866     rm -f messages.po
5867
5868
5869 # Prepare PATH_SEPARATOR.
5870 # The user is always right.
5871 if test "${PATH_SEPARATOR+set}" != set; then
5872   echo "#! /bin/sh" >conf$$.sh
5873   echo  "exit 0"   >>conf$$.sh
5874   chmod +x conf$$.sh
5875   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5876     PATH_SEPARATOR=';'
5877   else
5878     PATH_SEPARATOR=:
5879   fi
5880   rm -f conf$$.sh
5881 fi
5882
5883 # Find out how to test for executable files. Don't use a zero-byte file,
5884 # as systems may use methods other than mode bits to determine executability.
5885 cat >conf$$.file <<_ASEOF
5886 #! /bin/sh
5887 exit 0
5888 _ASEOF
5889 chmod +x conf$$.file
5890 if test -x conf$$.file >/dev/null 2>&1; then
5891   ac_executable_p="test -x"
5892 else
5893   ac_executable_p="test -f"
5894 fi
5895 rm -f conf$$.file
5896
5897 # Extract the first word of "msgmerge", so it can be a program name with args.
5898 set dummy msgmerge; ac_word=$2
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900 $as_echo_n "checking for $ac_word... " >&6; }
5901 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
5902   $as_echo_n "(cached) " >&6
5903 else
5904   case "$MSGMERGE" in
5905   [\\/]* | ?:[\\/]*)
5906     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5907     ;;
5908   *)
5909     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5910     for ac_dir in $PATH; do
5911       IFS="$ac_save_IFS"
5912       test -z "$ac_dir" && ac_dir=.
5913       for ac_exec_ext in '' $ac_executable_extensions; do
5914         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5915           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5916             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5917             break 2
5918           fi
5919         fi
5920       done
5921     done
5922     IFS="$ac_save_IFS"
5923   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5924     ;;
5925 esac
5926 fi
5927 MSGMERGE="$ac_cv_path_MSGMERGE"
5928 if test "$MSGMERGE" != ":"; then
5929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5930 $as_echo "$MSGMERGE" >&6; }
5931 else
5932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5933 $as_echo "no" >&6; }
5934 fi
5935
5936
5937       if test "$GMSGFMT" != ":"; then
5938             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5939        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5940       : ;
5941     else
5942       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5943       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5944 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
5945       GMSGFMT=":"
5946     fi
5947   fi
5948
5949       if test "$XGETTEXT" != ":"; then
5950             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5951        (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
5952       : ;
5953     else
5954       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
5955 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
5956       XGETTEXT=":"
5957     fi
5958         rm -f messages.po
5959   fi
5960
5961   ac_config_commands="$ac_config_commands default-1"
5962
5963
5964 if test -n "$ac_tool_prefix"; then
5965   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5966 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5968 $as_echo_n "checking for $ac_word... " >&6; }
5969 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5970   $as_echo_n "(cached) " >&6
5971 else
5972   if test -n "$RANLIB"; then
5973   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5974 else
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 for as_dir in $PATH
5977 do
5978   IFS=$as_save_IFS
5979   test -z "$as_dir" && as_dir=.
5980     for ac_exec_ext in '' $ac_executable_extensions; do
5981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5982     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5984     break 2
5985   fi
5986 done
5987   done
5988 IFS=$as_save_IFS
5989
5990 fi
5991 fi
5992 RANLIB=$ac_cv_prog_RANLIB
5993 if test -n "$RANLIB"; then
5994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5995 $as_echo "$RANLIB" >&6; }
5996 else
5997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5998 $as_echo "no" >&6; }
5999 fi
6000
6001
6002 fi
6003 if test -z "$ac_cv_prog_RANLIB"; then
6004   ac_ct_RANLIB=$RANLIB
6005   # Extract the first word of "ranlib", so it can be a program name with args.
6006 set dummy ranlib; ac_word=$2
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6008 $as_echo_n "checking for $ac_word... " >&6; }
6009 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6010   $as_echo_n "(cached) " >&6
6011 else
6012   if test -n "$ac_ct_RANLIB"; then
6013   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6014 else
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 for as_dir in $PATH
6017 do
6018   IFS=$as_save_IFS
6019   test -z "$as_dir" && as_dir=.
6020     for ac_exec_ext in '' $ac_executable_extensions; do
6021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6022     ac_cv_prog_ac_ct_RANLIB="ranlib"
6023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6024     break 2
6025   fi
6026 done
6027   done
6028 IFS=$as_save_IFS
6029
6030 fi
6031 fi
6032 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6033 if test -n "$ac_ct_RANLIB"; then
6034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6035 $as_echo "$ac_ct_RANLIB" >&6; }
6036 else
6037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6038 $as_echo "no" >&6; }
6039 fi
6040
6041   if test "x$ac_ct_RANLIB" = x; then
6042     RANLIB=":"
6043   else
6044     case $cross_compiling:$ac_tool_warned in
6045 yes:)
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6048 ac_tool_warned=yes ;;
6049 esac
6050     RANLIB=$ac_ct_RANLIB
6051   fi
6052 else
6053   RANLIB="$ac_cv_prog_RANLIB"
6054 fi
6055
6056
6057         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6058 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6059 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
6060   $as_echo_n "(cached) " >&6
6061 else
6062   ac_check_lib_save_LIBS=$LIBS
6063 LIBS="-lcposix  $LIBS"
6064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065 /* end confdefs.h.  */
6066
6067 /* Override any GCC internal prototype to avoid an error.
6068    Use char because int might match the return type of a GCC
6069    builtin and then its argument prototype would still apply.  */
6070 #ifdef __cplusplus
6071 extern "C"
6072 #endif
6073 char strerror ();
6074 int
6075 main ()
6076 {
6077 return strerror ();
6078   ;
6079   return 0;
6080 }
6081 _ACEOF
6082 if ac_fn_c_try_link "$LINENO"; then :
6083   ac_cv_lib_cposix_strerror=yes
6084 else
6085   ac_cv_lib_cposix_strerror=no
6086 fi
6087 rm -f core conftest.err conftest.$ac_objext \
6088     conftest$ac_exeext conftest.$ac_ext
6089 LIBS=$ac_check_lib_save_LIBS
6090 fi
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6092 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6093 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
6094   LIBS="$LIBS -lcposix"
6095 fi
6096
6097
6098
6099
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6101 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6102 if test "${ac_cv_path_GREP+set}" = set; then :
6103   $as_echo_n "(cached) " >&6
6104 else
6105   if test -z "$GREP"; then
6106   ac_path_GREP_found=false
6107   # Loop through the user's path and test for each of PROGNAME-LIST
6108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6110 do
6111   IFS=$as_save_IFS
6112   test -z "$as_dir" && as_dir=.
6113     for ac_prog in grep ggrep; do
6114     for ac_exec_ext in '' $ac_executable_extensions; do
6115       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6116       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6117 # Check for GNU ac_path_GREP and select it if it is found.
6118   # Check for GNU $ac_path_GREP
6119 case `"$ac_path_GREP" --version 2>&1` in
6120 *GNU*)
6121   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6122 *)
6123   ac_count=0
6124   $as_echo_n 0123456789 >"conftest.in"
6125   while :
6126   do
6127     cat "conftest.in" "conftest.in" >"conftest.tmp"
6128     mv "conftest.tmp" "conftest.in"
6129     cp "conftest.in" "conftest.nl"
6130     $as_echo 'GREP' >> "conftest.nl"
6131     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6132     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6133     as_fn_arith $ac_count + 1 && ac_count=$as_val
6134     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6135       # Best one so far, save it but keep looking for a better one
6136       ac_cv_path_GREP="$ac_path_GREP"
6137       ac_path_GREP_max=$ac_count
6138     fi
6139     # 10*(2^10) chars as input seems more than enough
6140     test $ac_count -gt 10 && break
6141   done
6142   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6143 esac
6144
6145       $ac_path_GREP_found && break 3
6146     done
6147   done
6148   done
6149 IFS=$as_save_IFS
6150   if test -z "$ac_cv_path_GREP"; then
6151     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6152   fi
6153 else
6154   ac_cv_path_GREP=$GREP
6155 fi
6156
6157 fi
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6159 $as_echo "$ac_cv_path_GREP" >&6; }
6160  GREP="$ac_cv_path_GREP"
6161
6162
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6164 $as_echo_n "checking for egrep... " >&6; }
6165 if test "${ac_cv_path_EGREP+set}" = set; then :
6166   $as_echo_n "(cached) " >&6
6167 else
6168   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6169    then ac_cv_path_EGREP="$GREP -E"
6170    else
6171      if test -z "$EGREP"; then
6172   ac_path_EGREP_found=false
6173   # Loop through the user's path and test for each of PROGNAME-LIST
6174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6176 do
6177   IFS=$as_save_IFS
6178   test -z "$as_dir" && as_dir=.
6179     for ac_prog in egrep; do
6180     for ac_exec_ext in '' $ac_executable_extensions; do
6181       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6182       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6183 # Check for GNU ac_path_EGREP and select it if it is found.
6184   # Check for GNU $ac_path_EGREP
6185 case `"$ac_path_EGREP" --version 2>&1` in
6186 *GNU*)
6187   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6188 *)
6189   ac_count=0
6190   $as_echo_n 0123456789 >"conftest.in"
6191   while :
6192   do
6193     cat "conftest.in" "conftest.in" >"conftest.tmp"
6194     mv "conftest.tmp" "conftest.in"
6195     cp "conftest.in" "conftest.nl"
6196     $as_echo 'EGREP' >> "conftest.nl"
6197     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6198     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6199     as_fn_arith $ac_count + 1 && ac_count=$as_val
6200     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6201       # Best one so far, save it but keep looking for a better one
6202       ac_cv_path_EGREP="$ac_path_EGREP"
6203       ac_path_EGREP_max=$ac_count
6204     fi
6205     # 10*(2^10) chars as input seems more than enough
6206     test $ac_count -gt 10 && break
6207   done
6208   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6209 esac
6210
6211       $ac_path_EGREP_found && break 3
6212     done
6213   done
6214   done
6215 IFS=$as_save_IFS
6216   if test -z "$ac_cv_path_EGREP"; then
6217     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6218   fi
6219 else
6220   ac_cv_path_EGREP=$EGREP
6221 fi
6222
6223    fi
6224 fi
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6226 $as_echo "$ac_cv_path_EGREP" >&6; }
6227  EGREP="$ac_cv_path_EGREP"
6228
6229
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6231 $as_echo_n "checking for ANSI C header files... " >&6; }
6232 if test "${ac_cv_header_stdc+set}" = set; then :
6233   $as_echo_n "(cached) " >&6
6234 else
6235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6236 /* end confdefs.h.  */
6237 #include <stdlib.h>
6238 #include <stdarg.h>
6239 #include <string.h>
6240 #include <float.h>
6241
6242 int
6243 main ()
6244 {
6245
6246   ;
6247   return 0;
6248 }
6249 _ACEOF
6250 if ac_fn_c_try_compile "$LINENO"; then :
6251   ac_cv_header_stdc=yes
6252 else
6253   ac_cv_header_stdc=no
6254 fi
6255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256
6257 if test $ac_cv_header_stdc = yes; then
6258   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h.  */
6261 #include <string.h>
6262
6263 _ACEOF
6264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6265   $EGREP "memchr" >/dev/null 2>&1; then :
6266
6267 else
6268   ac_cv_header_stdc=no
6269 fi
6270 rm -f conftest*
6271
6272 fi
6273
6274 if test $ac_cv_header_stdc = yes; then
6275   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6277 /* end confdefs.h.  */
6278 #include <stdlib.h>
6279
6280 _ACEOF
6281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6282   $EGREP "free" >/dev/null 2>&1; then :
6283
6284 else
6285   ac_cv_header_stdc=no
6286 fi
6287 rm -f conftest*
6288
6289 fi
6290
6291 if test $ac_cv_header_stdc = yes; then
6292   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6293   if test "$cross_compiling" = yes; then :
6294   :
6295 else
6296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h.  */
6298 #include <ctype.h>
6299 #include <stdlib.h>
6300 #if ((' ' & 0x0FF) == 0x020)
6301 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6302 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6303 #else
6304 # define ISLOWER(c) \
6305                    (('a' <= (c) && (c) <= 'i') \
6306                      || ('j' <= (c) && (c) <= 'r') \
6307                      || ('s' <= (c) && (c) <= 'z'))
6308 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6309 #endif
6310
6311 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6312 int
6313 main ()
6314 {
6315   int i;
6316   for (i = 0; i < 256; i++)
6317     if (XOR (islower (i), ISLOWER (i))
6318         || toupper (i) != TOUPPER (i))
6319       return 2;
6320   return 0;
6321 }
6322 _ACEOF
6323 if ac_fn_c_try_run "$LINENO"; then :
6324
6325 else
6326   ac_cv_header_stdc=no
6327 fi
6328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6329   conftest.$ac_objext conftest.beam conftest.$ac_ext
6330 fi
6331
6332 fi
6333 fi
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6335 $as_echo "$ac_cv_header_stdc" >&6; }
6336 if test $ac_cv_header_stdc = yes; then
6337
6338 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6339
6340 fi
6341
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6343 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6344 if test "${ac_cv_c_const+set}" = set; then :
6345   $as_echo_n "(cached) " >&6
6346 else
6347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6348 /* end confdefs.h.  */
6349
6350 int
6351 main ()
6352 {
6353 /* FIXME: Include the comments suggested by Paul. */
6354 #ifndef __cplusplus
6355   /* Ultrix mips cc rejects this.  */
6356   typedef int charset[2];
6357   const charset cs;
6358   /* SunOS 4.1.1 cc rejects this.  */
6359   char const *const *pcpcc;
6360   char **ppc;
6361   /* NEC SVR4.0.2 mips cc rejects this.  */
6362   struct point {int x, y;};
6363   static struct point const zero = {0,0};
6364   /* AIX XL C 1.02.0.0 rejects this.
6365      It does not let you subtract one const X* pointer from another in
6366      an arm of an if-expression whose if-part is not a constant
6367      expression */
6368   const char *g = "string";
6369   pcpcc = &g + (g ? g-g : 0);
6370   /* HPUX 7.0 cc rejects these. */
6371   ++pcpcc;
6372   ppc = (char**) pcpcc;
6373   pcpcc = (char const *const *) ppc;
6374   { /* SCO 3.2v4 cc rejects this.  */
6375     char *t;
6376     char const *s = 0 ? (char *) 0 : (char const *) 0;
6377
6378     *t++ = 0;
6379     if (s) return 0;
6380   }
6381   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6382     int x[] = {25, 17};
6383     const int *foo = &x[0];
6384     ++foo;
6385   }
6386   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6387     typedef const int *iptr;
6388     iptr p = 0;
6389     ++p;
6390   }
6391   { /* AIX XL C 1.02.0.0 rejects this saying
6392        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6393     struct s { int j; const int *ap[3]; };
6394     struct s *b; b->j = 5;
6395   }
6396   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6397     const int foo = 10;
6398     if (!foo) return 0;
6399   }
6400   return !cs[0] && !zero.x;
6401 #endif
6402
6403   ;
6404   return 0;
6405 }
6406 _ACEOF
6407 if ac_fn_c_try_compile "$LINENO"; then :
6408   ac_cv_c_const=yes
6409 else
6410   ac_cv_c_const=no
6411 fi
6412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6413 fi
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6415 $as_echo "$ac_cv_c_const" >&6; }
6416 if test $ac_cv_c_const = no; then
6417
6418 $as_echo "#define const /**/" >>confdefs.h
6419
6420 fi
6421
6422
6423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6424 $as_echo_n "checking for signed... " >&6; }
6425 if test "${bh_cv_c_signed+set}" = set; then :
6426   $as_echo_n "(cached) " >&6
6427 else
6428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429 /* end confdefs.h.  */
6430
6431 int
6432 main ()
6433 {
6434 signed char x;
6435   ;
6436   return 0;
6437 }
6438 _ACEOF
6439 if ac_fn_c_try_compile "$LINENO"; then :
6440   bh_cv_c_signed=yes
6441 else
6442   bh_cv_c_signed=no
6443 fi
6444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6445 fi
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6447 $as_echo "$bh_cv_c_signed" >&6; }
6448   if test $bh_cv_c_signed = no; then
6449
6450 $as_echo "#define signed /**/" >>confdefs.h
6451
6452   fi
6453
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6455 $as_echo_n "checking for inline... " >&6; }
6456 if test "${ac_cv_c_inline+set}" = set; then :
6457   $as_echo_n "(cached) " >&6
6458 else
6459   ac_cv_c_inline=no
6460 for ac_kw in inline __inline__ __inline; do
6461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h.  */
6463 #ifndef __cplusplus
6464 typedef int foo_t;
6465 static $ac_kw foo_t static_foo () {return 0; }
6466 $ac_kw foo_t foo () {return 0; }
6467 #endif
6468
6469 _ACEOF
6470 if ac_fn_c_try_compile "$LINENO"; then :
6471   ac_cv_c_inline=$ac_kw
6472 fi
6473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6474   test "$ac_cv_c_inline" != no && break
6475 done
6476
6477 fi
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6479 $as_echo "$ac_cv_c_inline" >&6; }
6480
6481 case $ac_cv_c_inline in
6482   inline | yes) ;;
6483   *)
6484     case $ac_cv_c_inline in
6485       no) ac_val=;;
6486       *) ac_val=$ac_cv_c_inline;;
6487     esac
6488     cat >>confdefs.h <<_ACEOF
6489 #ifndef __cplusplus
6490 #define inline $ac_val
6491 #endif
6492 _ACEOF
6493     ;;
6494 esac
6495
6496 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6497 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6498                   inttypes.h stdint.h unistd.h
6499 do :
6500   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6501 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6502 "
6503 eval as_val=\$$as_ac_Header
6504    if test "x$as_val" = x""yes; then :
6505   cat >>confdefs.h <<_ACEOF
6506 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6507 _ACEOF
6508
6509 fi
6510
6511 done
6512
6513
6514 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6515 if test "x$ac_cv_type_off_t" = x""yes; then :
6516
6517 else
6518
6519 cat >>confdefs.h <<_ACEOF
6520 #define off_t long int
6521 _ACEOF
6522
6523 fi
6524
6525 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6526 if test "x$ac_cv_type_size_t" = x""yes; then :
6527
6528 else
6529
6530 cat >>confdefs.h <<_ACEOF
6531 #define size_t unsigned int
6532 _ACEOF
6533
6534 fi
6535
6536
6537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6538 $as_echo_n "checking for long long... " >&6; }
6539 if test "${ac_cv_type_long_long+set}" = set; then :
6540   $as_echo_n "(cached) " >&6
6541 else
6542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6543 /* end confdefs.h.  */
6544 long long ll = 1LL; int i = 63;
6545 int
6546 main ()
6547 {
6548 long long llmax = (long long) -1;
6549      return ll << i | ll >> i | llmax / ll | llmax % ll;
6550   ;
6551   return 0;
6552 }
6553 _ACEOF
6554 if ac_fn_c_try_link "$LINENO"; then :
6555   ac_cv_type_long_long=yes
6556 else
6557   ac_cv_type_long_long=no
6558 fi
6559 rm -f core conftest.err conftest.$ac_objext \
6560     conftest$ac_exeext conftest.$ac_ext
6561 fi
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6563 $as_echo "$ac_cv_type_long_long" >&6; }
6564   if test $ac_cv_type_long_long = yes; then
6565
6566 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6567
6568   fi
6569
6570
6571   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6572 $as_echo_n "checking for long double... " >&6; }
6573 if test "${gt_cv_c_long_double+set}" = set; then :
6574   $as_echo_n "(cached) " >&6
6575 else
6576   if test "$GCC" = yes; then
6577        gt_cv_c_long_double=yes
6578      else
6579        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h.  */
6581
6582          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
6583          long double foo = 0.0;
6584          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
6585          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6586
6587 int
6588 main ()
6589 {
6590
6591   ;
6592   return 0;
6593 }
6594 _ACEOF
6595 if ac_fn_c_try_compile "$LINENO"; then :
6596   gt_cv_c_long_double=yes
6597 else
6598   gt_cv_c_long_double=no
6599 fi
6600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601      fi
6602 fi
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6604 $as_echo "$gt_cv_c_long_double" >&6; }
6605   if test $gt_cv_c_long_double = yes; then
6606
6607 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6608
6609   fi
6610
6611
6612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6613 $as_echo_n "checking for wchar_t... " >&6; }
6614 if test "${gt_cv_c_wchar_t+set}" = set; then :
6615   $as_echo_n "(cached) " >&6
6616 else
6617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h.  */
6619 #include <stddef.h>
6620        wchar_t foo = (wchar_t)'\0';
6621 int
6622 main ()
6623 {
6624
6625   ;
6626   return 0;
6627 }
6628 _ACEOF
6629 if ac_fn_c_try_compile "$LINENO"; then :
6630   gt_cv_c_wchar_t=yes
6631 else
6632   gt_cv_c_wchar_t=no
6633 fi
6634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6635 fi
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6637 $as_echo "$gt_cv_c_wchar_t" >&6; }
6638   if test $gt_cv_c_wchar_t = yes; then
6639
6640 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6641
6642   fi
6643
6644
6645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6646 $as_echo_n "checking for wint_t... " >&6; }
6647 if test "${gt_cv_c_wint_t+set}" = set; then :
6648   $as_echo_n "(cached) " >&6
6649 else
6650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6651 /* end confdefs.h.  */
6652 #include <wchar.h>
6653        wint_t foo = (wchar_t)'\0';
6654 int
6655 main ()
6656 {
6657
6658   ;
6659   return 0;
6660 }
6661 _ACEOF
6662 if ac_fn_c_try_compile "$LINENO"; then :
6663   gt_cv_c_wint_t=yes
6664 else
6665   gt_cv_c_wint_t=no
6666 fi
6667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6668 fi
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6670 $as_echo "$gt_cv_c_wint_t" >&6; }
6671   if test $gt_cv_c_wint_t = yes; then
6672
6673 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6674
6675   fi
6676
6677
6678   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6679 $as_echo_n "checking for inttypes.h... " >&6; }
6680 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
6681   $as_echo_n "(cached) " >&6
6682 else
6683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h.  */
6685 #include <sys/types.h>
6686 #include <inttypes.h>
6687 int
6688 main ()
6689 {
6690 uintmax_t i = (uintmax_t) -1;
6691   ;
6692   return 0;
6693 }
6694 _ACEOF
6695 if ac_fn_c_try_compile "$LINENO"; then :
6696   jm_ac_cv_header_inttypes_h=yes
6697 else
6698   jm_ac_cv_header_inttypes_h=no
6699 fi
6700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6701 fi
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6703 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6704   if test $jm_ac_cv_header_inttypes_h = yes; then
6705
6706 cat >>confdefs.h <<_ACEOF
6707 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6708 _ACEOF
6709
6710   fi
6711
6712
6713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6714 $as_echo_n "checking for stdint.h... " >&6; }
6715 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
6716   $as_echo_n "(cached) " >&6
6717 else
6718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6719 /* end confdefs.h.  */
6720 #include <sys/types.h>
6721 #include <stdint.h>
6722 int
6723 main ()
6724 {
6725 uintmax_t i = (uintmax_t) -1;
6726   ;
6727   return 0;
6728 }
6729 _ACEOF
6730 if ac_fn_c_try_compile "$LINENO"; then :
6731   jm_ac_cv_header_stdint_h=yes
6732 else
6733   jm_ac_cv_header_stdint_h=no
6734 fi
6735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736 fi
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6738 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6739   if test $jm_ac_cv_header_stdint_h = yes; then
6740
6741 cat >>confdefs.h <<_ACEOF
6742 #define HAVE_STDINT_H_WITH_UINTMAX 1
6743 _ACEOF
6744
6745   fi
6746
6747
6748
6749
6750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6751 $as_echo_n "checking for intmax_t... " >&6; }
6752 if test "${gt_cv_c_intmax_t+set}" = set; then :
6753   $as_echo_n "(cached) " >&6
6754 else
6755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756 /* end confdefs.h.  */
6757
6758 #include <stddef.h>
6759 #include <stdlib.h>
6760 #if HAVE_STDINT_H_WITH_UINTMAX
6761 #include <stdint.h>
6762 #endif
6763 #if HAVE_INTTYPES_H_WITH_UINTMAX
6764 #include <inttypes.h>
6765 #endif
6766
6767 int
6768 main ()
6769 {
6770 intmax_t x = -1;
6771   ;
6772   return 0;
6773 }
6774 _ACEOF
6775 if ac_fn_c_try_compile "$LINENO"; then :
6776   gt_cv_c_intmax_t=yes
6777 else
6778   gt_cv_c_intmax_t=no
6779 fi
6780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6781 fi
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6783 $as_echo "$gt_cv_c_intmax_t" >&6; }
6784   if test $gt_cv_c_intmax_t = yes; then
6785
6786 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6787
6788   fi
6789
6790
6791
6792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6793 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6794 if test "${gt_cv_func_printf_posix+set}" = set; then :
6795   $as_echo_n "(cached) " >&6
6796 else
6797
6798       if test "$cross_compiling" = yes; then :
6799
6800         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801 /* end confdefs.h.  */
6802
6803 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6804   notposix
6805 #endif
6806
6807 _ACEOF
6808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6809   $EGREP "notposix" >/dev/null 2>&1; then :
6810   gt_cv_func_printf_posix="guessing no"
6811 else
6812   gt_cv_func_printf_posix="guessing yes"
6813 fi
6814 rm -f conftest*
6815
6816
6817 else
6818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h.  */
6820
6821 #include <stdio.h>
6822 #include <string.h>
6823 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6824    dollar expansion (possibly an autoconf bug).  */
6825 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6826 static char buf[100];
6827 int main ()
6828 {
6829   sprintf (buf, format, 33, 55);
6830   return (strcmp (buf, "55 33") != 0);
6831 }
6832 _ACEOF
6833 if ac_fn_c_try_run "$LINENO"; then :
6834   gt_cv_func_printf_posix=yes
6835 else
6836   gt_cv_func_printf_posix=no
6837 fi
6838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6839   conftest.$ac_objext conftest.beam conftest.$ac_ext
6840 fi
6841
6842
6843 fi
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6845 $as_echo "$gt_cv_func_printf_posix" >&6; }
6846   case $gt_cv_func_printf_posix in
6847     *yes)
6848
6849 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6850
6851       ;;
6852   esac
6853
6854 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6855 # for constant arguments.  Useless!
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6857 $as_echo_n "checking for working alloca.h... " >&6; }
6858 if test "${ac_cv_working_alloca_h+set}" = set; then :
6859   $as_echo_n "(cached) " >&6
6860 else
6861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h.  */
6863 #include <alloca.h>
6864 int
6865 main ()
6866 {
6867 char *p = (char *) alloca (2 * sizeof (int));
6868                           if (p) return 0;
6869   ;
6870   return 0;
6871 }
6872 _ACEOF
6873 if ac_fn_c_try_link "$LINENO"; then :
6874   ac_cv_working_alloca_h=yes
6875 else
6876   ac_cv_working_alloca_h=no
6877 fi
6878 rm -f core conftest.err conftest.$ac_objext \
6879     conftest$ac_exeext conftest.$ac_ext
6880 fi
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6882 $as_echo "$ac_cv_working_alloca_h" >&6; }
6883 if test $ac_cv_working_alloca_h = yes; then
6884
6885 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6886
6887 fi
6888
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6890 $as_echo_n "checking for alloca... " >&6; }
6891 if test "${ac_cv_func_alloca_works+set}" = set; then :
6892   $as_echo_n "(cached) " >&6
6893 else
6894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h.  */
6896 #ifdef __GNUC__
6897 # define alloca __builtin_alloca
6898 #else
6899 # ifdef _MSC_VER
6900 #  include <malloc.h>
6901 #  define alloca _alloca
6902 # else
6903 #  ifdef HAVE_ALLOCA_H
6904 #   include <alloca.h>
6905 #  else
6906 #   ifdef _AIX
6907  #pragma alloca
6908 #   else
6909 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6910 char *alloca ();
6911 #    endif
6912 #   endif
6913 #  endif
6914 # endif
6915 #endif
6916
6917 int
6918 main ()
6919 {
6920 char *p = (char *) alloca (1);
6921                                     if (p) return 0;
6922   ;
6923   return 0;
6924 }
6925 _ACEOF
6926 if ac_fn_c_try_link "$LINENO"; then :
6927   ac_cv_func_alloca_works=yes
6928 else
6929   ac_cv_func_alloca_works=no
6930 fi
6931 rm -f core conftest.err conftest.$ac_objext \
6932     conftest$ac_exeext conftest.$ac_ext
6933 fi
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6935 $as_echo "$ac_cv_func_alloca_works" >&6; }
6936
6937 if test $ac_cv_func_alloca_works = yes; then
6938
6939 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6940
6941 else
6942   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6943 # that cause trouble.  Some versions do not even contain alloca or
6944 # contain a buggy version.  If you still want to use their alloca,
6945 # use ar to extract alloca.o from them instead of compiling alloca.c.
6946
6947 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6948
6949 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6950
6951
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6953 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6954 if test "${ac_cv_os_cray+set}" = set; then :
6955   $as_echo_n "(cached) " >&6
6956 else
6957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6958 /* end confdefs.h.  */
6959 #if defined CRAY && ! defined CRAY2
6960 webecray
6961 #else
6962 wenotbecray
6963 #endif
6964
6965 _ACEOF
6966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6967   $EGREP "webecray" >/dev/null 2>&1; then :
6968   ac_cv_os_cray=yes
6969 else
6970   ac_cv_os_cray=no
6971 fi
6972 rm -f conftest*
6973
6974 fi
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6976 $as_echo "$ac_cv_os_cray" >&6; }
6977 if test $ac_cv_os_cray = yes; then
6978   for ac_func in _getb67 GETB67 getb67; do
6979     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6980 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6981 eval as_val=\$$as_ac_var
6982    if test "x$as_val" = x""yes; then :
6983
6984 cat >>confdefs.h <<_ACEOF
6985 #define CRAY_STACKSEG_END $ac_func
6986 _ACEOF
6987
6988     break
6989 fi
6990
6991   done
6992 fi
6993
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6995 $as_echo_n "checking stack direction for C alloca... " >&6; }
6996 if test "${ac_cv_c_stack_direction+set}" = set; then :
6997   $as_echo_n "(cached) " >&6
6998 else
6999   if test "$cross_compiling" = yes; then :
7000   ac_cv_c_stack_direction=0
7001 else
7002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003 /* end confdefs.h.  */
7004 $ac_includes_default
7005 int
7006 find_stack_direction ()
7007 {
7008   static char *addr = 0;
7009   auto char dummy;
7010   if (addr == 0)
7011     {
7012       addr = &dummy;
7013       return find_stack_direction ();
7014     }
7015   else
7016     return (&dummy > addr) ? 1 : -1;
7017 }
7018
7019 int
7020 main ()
7021 {
7022   return find_stack_direction () < 0;
7023 }
7024 _ACEOF
7025 if ac_fn_c_try_run "$LINENO"; then :
7026   ac_cv_c_stack_direction=1
7027 else
7028   ac_cv_c_stack_direction=-1
7029 fi
7030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7031   conftest.$ac_objext conftest.beam conftest.$ac_ext
7032 fi
7033
7034 fi
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7036 $as_echo "$ac_cv_c_stack_direction" >&6; }
7037 cat >>confdefs.h <<_ACEOF
7038 #define STACK_DIRECTION $ac_cv_c_stack_direction
7039 _ACEOF
7040
7041
7042 fi
7043
7044
7045
7046
7047   for ac_header in $ac_header_list
7048 do :
7049   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7050 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7051 "
7052 eval as_val=\$$as_ac_Header
7053    if test "x$as_val" = x""yes; then :
7054   cat >>confdefs.h <<_ACEOF
7055 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7056 _ACEOF
7057
7058 fi
7059
7060 done
7061
7062
7063
7064
7065
7066
7067
7068
7069 for ac_func in getpagesize
7070 do :
7071   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7072 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7073   cat >>confdefs.h <<_ACEOF
7074 #define HAVE_GETPAGESIZE 1
7075 _ACEOF
7076
7077 fi
7078 done
7079
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7081 $as_echo_n "checking for working mmap... " >&6; }
7082 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7083   $as_echo_n "(cached) " >&6
7084 else
7085   if test "$cross_compiling" = yes; then :
7086   ac_cv_func_mmap_fixed_mapped=no
7087 else
7088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089 /* end confdefs.h.  */
7090 $ac_includes_default
7091 /* malloc might have been renamed as rpl_malloc. */
7092 #undef malloc
7093
7094 /* Thanks to Mike Haertel and Jim Avera for this test.
7095    Here is a matrix of mmap possibilities:
7096         mmap private not fixed
7097         mmap private fixed at somewhere currently unmapped
7098         mmap private fixed at somewhere already mapped
7099         mmap shared not fixed
7100         mmap shared fixed at somewhere currently unmapped
7101         mmap shared fixed at somewhere already mapped
7102    For private mappings, we should verify that changes cannot be read()
7103    back from the file, nor mmap's back from the file at a different
7104    address.  (There have been systems where private was not correctly
7105    implemented like the infamous i386 svr4.0, and systems where the
7106    VM page cache was not coherent with the file system buffer cache
7107    like early versions of FreeBSD and possibly contemporary NetBSD.)
7108    For shared mappings, we should conversely verify that changes get
7109    propagated back to all the places they're supposed to be.
7110
7111    Grep wants private fixed already mapped.
7112    The main things grep needs to know about mmap are:
7113    * does it exist and is it safe to write into the mmap'd area
7114    * how to use it (BSD variants)  */
7115
7116 #include <fcntl.h>
7117 #include <sys/mman.h>
7118
7119 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7120 char *malloc ();
7121 #endif
7122
7123 /* This mess was copied from the GNU getpagesize.h.  */
7124 #ifndef HAVE_GETPAGESIZE
7125 # ifdef _SC_PAGESIZE
7126 #  define getpagesize() sysconf(_SC_PAGESIZE)
7127 # else /* no _SC_PAGESIZE */
7128 #  ifdef HAVE_SYS_PARAM_H
7129 #   include <sys/param.h>
7130 #   ifdef EXEC_PAGESIZE
7131 #    define getpagesize() EXEC_PAGESIZE
7132 #   else /* no EXEC_PAGESIZE */
7133 #    ifdef NBPG
7134 #     define getpagesize() NBPG * CLSIZE
7135 #     ifndef CLSIZE
7136 #      define CLSIZE 1
7137 #     endif /* no CLSIZE */
7138 #    else /* no NBPG */
7139 #     ifdef NBPC
7140 #      define getpagesize() NBPC
7141 #     else /* no NBPC */
7142 #      ifdef PAGESIZE
7143 #       define getpagesize() PAGESIZE
7144 #      endif /* PAGESIZE */
7145 #     endif /* no NBPC */
7146 #    endif /* no NBPG */
7147 #   endif /* no EXEC_PAGESIZE */
7148 #  else /* no HAVE_SYS_PARAM_H */
7149 #   define getpagesize() 8192   /* punt totally */
7150 #  endif /* no HAVE_SYS_PARAM_H */
7151 # endif /* no _SC_PAGESIZE */
7152
7153 #endif /* no HAVE_GETPAGESIZE */
7154
7155 int
7156 main ()
7157 {
7158   char *data, *data2, *data3;
7159   const char *cdata2;
7160   int i, pagesize;
7161   int fd, fd2;
7162
7163   pagesize = getpagesize ();
7164
7165   /* First, make a file with some known garbage in it. */
7166   data = (char *) malloc (pagesize);
7167   if (!data)
7168     return 1;
7169   for (i = 0; i < pagesize; ++i)
7170     *(data + i) = rand ();
7171   umask (0);
7172   fd = creat ("conftest.mmap", 0600);
7173   if (fd < 0)
7174     return 2;
7175   if (write (fd, data, pagesize) != pagesize)
7176     return 3;
7177   close (fd);
7178
7179   /* Next, check that the tail of a page is zero-filled.  File must have
7180      non-zero length, otherwise we risk SIGBUS for entire page.  */
7181   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7182   if (fd2 < 0)
7183     return 4;
7184   cdata2 = "";
7185   if (write (fd2, cdata2, 1) != 1)
7186     return 5;
7187   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7188   if (data2 == MAP_FAILED)
7189     return 6;
7190   for (i = 0; i < pagesize; ++i)
7191     if (*(data2 + i))
7192       return 7;
7193   close (fd2);
7194   if (munmap (data2, pagesize))
7195     return 8;
7196
7197   /* Next, try to mmap the file at a fixed address which already has
7198      something else allocated at it.  If we can, also make sure that
7199      we see the same garbage.  */
7200   fd = open ("conftest.mmap", O_RDWR);
7201   if (fd < 0)
7202     return 9;
7203   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7204                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7205     return 10;
7206   for (i = 0; i < pagesize; ++i)
7207     if (*(data + i) != *(data2 + i))
7208       return 11;
7209
7210   /* Finally, make sure that changes to the mapped area do not
7211      percolate back to the file as seen by read().  (This is a bug on
7212      some variants of i386 svr4.0.)  */
7213   for (i = 0; i < pagesize; ++i)
7214     *(data2 + i) = *(data2 + i) + 1;
7215   data3 = (char *) malloc (pagesize);
7216   if (!data3)
7217     return 12;
7218   if (read (fd, data3, pagesize) != pagesize)
7219     return 13;
7220   for (i = 0; i < pagesize; ++i)
7221     if (*(data + i) != *(data3 + i))
7222       return 14;
7223   close (fd);
7224   return 0;
7225 }
7226 _ACEOF
7227 if ac_fn_c_try_run "$LINENO"; then :
7228   ac_cv_func_mmap_fixed_mapped=yes
7229 else
7230   ac_cv_func_mmap_fixed_mapped=no
7231 fi
7232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7233   conftest.$ac_objext conftest.beam conftest.$ac_ext
7234 fi
7235
7236 fi
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7238 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7239 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7240
7241 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7242
7243 fi
7244 rm -f conftest.mmap conftest.txt
7245
7246
7247     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7248 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7249 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7250   $as_echo_n "(cached) " >&6
7251 else
7252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253 /* end confdefs.h.  */
7254
7255 #include <features.h>
7256 #ifdef __GNU_LIBRARY__
7257  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7258   Lucky GNU user
7259  #endif
7260 #endif
7261
7262 _ACEOF
7263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7264   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7265   ac_cv_gnu_library_2_1=yes
7266 else
7267   ac_cv_gnu_library_2_1=no
7268 fi
7269 rm -f conftest*
7270
7271
7272
7273 fi
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7275 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7276
7277     GLIBC21="$ac_cv_gnu_library_2_1"
7278
7279
7280
7281
7282   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7283 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7284 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
7285   $as_echo_n "(cached) " >&6
7286 else
7287
7288       if test "$cross_compiling" = yes; then :
7289
7290           # Guess based on the CPU.
7291           case "$host_cpu" in
7292             alpha* | i3456786 | m68k | s390*)
7293               gt_cv_int_divbyzero_sigfpe="guessing yes";;
7294             *)
7295               gt_cv_int_divbyzero_sigfpe="guessing no";;
7296           esac
7297
7298 else
7299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h.  */
7301
7302 #include <stdlib.h>
7303 #include <signal.h>
7304
7305 static void
7306 #ifdef __cplusplus
7307 sigfpe_handler (int sig)
7308 #else
7309 sigfpe_handler (sig) int sig;
7310 #endif
7311 {
7312   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7313   exit (sig != SIGFPE);
7314 }
7315
7316 int x = 1;
7317 int y = 0;
7318 int z;
7319 int nan;
7320
7321 int main ()
7322 {
7323   signal (SIGFPE, sigfpe_handler);
7324 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7325 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7326   signal (SIGTRAP, sigfpe_handler);
7327 #endif
7328 /* Linux/SPARC yields signal SIGILL.  */
7329 #if defined (__sparc__) && defined (__linux__)
7330   signal (SIGILL, sigfpe_handler);
7331 #endif
7332
7333   z = x / y;
7334   nan = y / y;
7335   exit (1);
7336 }
7337
7338 _ACEOF
7339 if ac_fn_c_try_run "$LINENO"; then :
7340   gt_cv_int_divbyzero_sigfpe=yes
7341 else
7342   gt_cv_int_divbyzero_sigfpe=no
7343 fi
7344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7345   conftest.$ac_objext conftest.beam conftest.$ac_ext
7346 fi
7347
7348
7349 fi
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7351 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7352   case "$gt_cv_int_divbyzero_sigfpe" in
7353     *yes) value=1;;
7354     *) value=0;;
7355   esac
7356
7357 cat >>confdefs.h <<_ACEOF
7358 #define INTDIV0_RAISES_SIGFPE $value
7359 _ACEOF
7360
7361
7362
7363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7364 $as_echo_n "checking for unsigned long long... " >&6; }
7365 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
7366   $as_echo_n "(cached) " >&6
7367 else
7368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7369 /* end confdefs.h.  */
7370 unsigned long long ull = 1ULL; int i = 63;
7371 int
7372 main ()
7373 {
7374 unsigned long long ullmax = (unsigned long long) -1;
7375      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7376   ;
7377   return 0;
7378 }
7379 _ACEOF
7380 if ac_fn_c_try_link "$LINENO"; then :
7381   ac_cv_type_unsigned_long_long=yes
7382 else
7383   ac_cv_type_unsigned_long_long=no
7384 fi
7385 rm -f core conftest.err conftest.$ac_objext \
7386     conftest$ac_exeext conftest.$ac_ext
7387 fi
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7389 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7390   if test $ac_cv_type_unsigned_long_long = yes; then
7391
7392 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7393
7394   fi
7395
7396
7397
7398
7399   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7400
7401     test $ac_cv_type_unsigned_long_long = yes \
7402       && ac_type='unsigned long long' \
7403       || ac_type='unsigned long'
7404
7405 cat >>confdefs.h <<_ACEOF
7406 #define uintmax_t $ac_type
7407 _ACEOF
7408
7409   else
7410
7411 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7412
7413   fi
7414
7415
7416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7417 $as_echo_n "checking for inttypes.h... " >&6; }
7418 if test "${gt_cv_header_inttypes_h+set}" = set; then :
7419   $as_echo_n "(cached) " >&6
7420 else
7421
7422     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423 /* end confdefs.h.  */
7424 #include <sys/types.h>
7425 #include <inttypes.h>
7426 int
7427 main ()
7428 {
7429
7430   ;
7431   return 0;
7432 }
7433 _ACEOF
7434 if ac_fn_c_try_compile "$LINENO"; then :
7435   gt_cv_header_inttypes_h=yes
7436 else
7437   gt_cv_header_inttypes_h=no
7438 fi
7439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7440
7441 fi
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7443 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7444   if test $gt_cv_header_inttypes_h = yes; then
7445
7446 cat >>confdefs.h <<_ACEOF
7447 #define HAVE_INTTYPES_H 1
7448 _ACEOF
7449
7450   fi
7451
7452
7453
7454   if test $gt_cv_header_inttypes_h = yes; then
7455     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7456 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7457 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7458   $as_echo_n "(cached) " >&6
7459 else
7460
7461         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h.  */
7463 #include <inttypes.h>
7464 #ifdef PRId32
7465 char *p = PRId32;
7466 #endif
7467
7468 int
7469 main ()
7470 {
7471
7472   ;
7473   return 0;
7474 }
7475 _ACEOF
7476 if ac_fn_c_try_compile "$LINENO"; then :
7477   gt_cv_inttypes_pri_broken=no
7478 else
7479   gt_cv_inttypes_pri_broken=yes
7480 fi
7481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7482
7483 fi
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7485 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7486   fi
7487   if test "$gt_cv_inttypes_pri_broken" = yes; then
7488
7489 cat >>confdefs.h <<_ACEOF
7490 #define PRI_MACROS_BROKEN 1
7491 _ACEOF
7492
7493   fi
7494
7495
7496   for ac_header in stdint.h
7497 do :
7498   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7499 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7500   cat >>confdefs.h <<_ACEOF
7501 #define HAVE_STDINT_H 1
7502 _ACEOF
7503
7504 fi
7505
7506 done
7507
7508     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7509 $as_echo_n "checking for SIZE_MAX... " >&6; }
7510   result=
7511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h.  */
7513
7514 #include <limits.h>
7515 #if HAVE_STDINT_H
7516 #include <stdint.h>
7517 #endif
7518 #ifdef SIZE_MAX
7519 Found it
7520 #endif
7521
7522 _ACEOF
7523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7524   $EGREP "Found it" >/dev/null 2>&1; then :
7525   result=yes
7526 fi
7527 rm -f conftest*
7528
7529   if test -z "$result"; then
7530                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
7531
7532 else
7533   result=?
7534 fi
7535
7536
7537     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
7538
7539 else
7540   result=?
7541 fi
7542
7543
7544     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
7545
7546 else
7547   result=?
7548 fi
7549
7550
7551     if test "$fits_in_uint" = 1; then
7552                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553 /* end confdefs.h.  */
7554 #include <stddef.h>
7555         extern size_t foo;
7556         extern unsigned long foo;
7557
7558 int
7559 main ()
7560 {
7561
7562   ;
7563   return 0;
7564 }
7565 _ACEOF
7566 if ac_fn_c_try_compile "$LINENO"; then :
7567   fits_in_uint=0
7568 fi
7569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7570     fi
7571     if test -z "$result"; then
7572       if test "$fits_in_uint" = 1; then
7573         result="$res_hi$res_lo"U
7574       else
7575         result="$res_hi$res_lo"UL
7576       fi
7577     else
7578             result='~(size_t)0'
7579     fi
7580   fi
7581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7582 $as_echo "$result" >&6; }
7583   if test "$result" != yes; then
7584
7585 cat >>confdefs.h <<_ACEOF
7586 #define SIZE_MAX $result
7587 _ACEOF
7588
7589   fi
7590
7591
7592
7593   for ac_header in stdint.h
7594 do :
7595   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7596 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7597   cat >>confdefs.h <<_ACEOF
7598 #define HAVE_STDINT_H 1
7599 _ACEOF
7600
7601 fi
7602
7603 done
7604
7605
7606
7607       if test "X$prefix" = "XNONE"; then
7608     acl_final_prefix="$ac_default_prefix"
7609   else
7610     acl_final_prefix="$prefix"
7611   fi
7612   if test "X$exec_prefix" = "XNONE"; then
7613     acl_final_exec_prefix='${prefix}'
7614   else
7615     acl_final_exec_prefix="$exec_prefix"
7616   fi
7617   acl_save_prefix="$prefix"
7618   prefix="$acl_final_prefix"
7619   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7620   prefix="$acl_save_prefix"
7621
7622
7623 # Check whether --with-gnu-ld was given.
7624 if test "${with_gnu_ld+set}" = set; then :
7625   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7626 else
7627   with_gnu_ld=no
7628 fi
7629
7630 # Prepare PATH_SEPARATOR.
7631 # The user is always right.
7632 if test "${PATH_SEPARATOR+set}" != set; then
7633   echo "#! /bin/sh" >conf$$.sh
7634   echo  "exit 0"   >>conf$$.sh
7635   chmod +x conf$$.sh
7636   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7637     PATH_SEPARATOR=';'
7638   else
7639     PATH_SEPARATOR=:
7640   fi
7641   rm -f conf$$.sh
7642 fi
7643 ac_prog=ld
7644 if test "$GCC" = yes; then
7645   # Check if gcc -print-prog-name=ld gives a path.
7646   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7647 $as_echo_n "checking for ld used by GCC... " >&6; }
7648   case $host in
7649   *-*-mingw*)
7650     # gcc leaves a trailing carriage return which upsets mingw
7651     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7652   *)
7653     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7654   esac
7655   case $ac_prog in
7656     # Accept absolute paths.
7657     [\\/]* | [A-Za-z]:[\\/]*)
7658       re_direlt='/[^/][^/]*/\.\./'
7659       # Canonicalize the path of ld
7660       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7661       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7662         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7663       done
7664       test -z "$LD" && LD="$ac_prog"
7665       ;;
7666   "")
7667     # If it fails, then pretend we aren't using GCC.
7668     ac_prog=ld
7669     ;;
7670   *)
7671     # If it is relative, then search for the first ld in PATH.
7672     with_gnu_ld=unknown
7673     ;;
7674   esac
7675 elif test "$with_gnu_ld" = yes; then
7676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7677 $as_echo_n "checking for GNU ld... " >&6; }
7678 else
7679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7680 $as_echo_n "checking for non-GNU ld... " >&6; }
7681 fi
7682 if test "${acl_cv_path_LD+set}" = set; then :
7683   $as_echo_n "(cached) " >&6
7684 else
7685   if test -z "$LD"; then
7686   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7687   for ac_dir in $PATH; do
7688     test -z "$ac_dir" && ac_dir=.
7689     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7690       acl_cv_path_LD="$ac_dir/$ac_prog"
7691       # Check to see if the program is GNU ld.  I'd rather use --version,
7692       # but apparently some GNU ld's only accept -v.
7693       # Break only if it was the GNU/non-GNU ld that we prefer.
7694       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7695       *GNU* | *'with BFD'*)
7696         test "$with_gnu_ld" != no && break ;;
7697       *)
7698         test "$with_gnu_ld" != yes && break ;;
7699       esac
7700     fi
7701   done
7702   IFS="$ac_save_ifs"
7703 else
7704   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7705 fi
7706 fi
7707
7708 LD="$acl_cv_path_LD"
7709 if test -n "$LD"; then
7710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7711 $as_echo "$LD" >&6; }
7712 else
7713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7714 $as_echo "no" >&6; }
7715 fi
7716 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7718 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7719 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7720   $as_echo_n "(cached) " >&6
7721 else
7722   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7723 case `$LD -v 2>&1 </dev/null` in
7724 *GNU* | *'with BFD'*)
7725   acl_cv_prog_gnu_ld=yes ;;
7726 *)
7727   acl_cv_prog_gnu_ld=no ;;
7728 esac
7729 fi
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7731 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7732 with_gnu_ld=$acl_cv_prog_gnu_ld
7733
7734
7735
7736                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7737 $as_echo_n "checking for shared library run path origin... " >&6; }
7738 if test "${acl_cv_rpath+set}" = set; then :
7739   $as_echo_n "(cached) " >&6
7740 else
7741
7742     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7743     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7744     . ./conftest.sh
7745     rm -f ./conftest.sh
7746     acl_cv_rpath=done
7747
7748 fi
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7750 $as_echo "$acl_cv_rpath" >&6; }
7751   wl="$acl_cv_wl"
7752   libext="$acl_cv_libext"
7753   shlibext="$acl_cv_shlibext"
7754   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7755   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7756   hardcode_direct="$acl_cv_hardcode_direct"
7757   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7758     # Check whether --enable-rpath was given.
7759 if test "${enable_rpath+set}" = set; then :
7760   enableval=$enable_rpath; :
7761 else
7762   enable_rpath=yes
7763 fi
7764
7765
7766
7767
7768
7769
7770
7771
7772     use_additional=yes
7773
7774   acl_save_prefix="$prefix"
7775   prefix="$acl_final_prefix"
7776   acl_save_exec_prefix="$exec_prefix"
7777   exec_prefix="$acl_final_exec_prefix"
7778
7779     eval additional_includedir=\"$includedir\"
7780     eval additional_libdir=\"$libdir\"
7781
7782   exec_prefix="$acl_save_exec_prefix"
7783   prefix="$acl_save_prefix"
7784
7785
7786 # Check whether --with-libiconv-prefix was given.
7787 if test "${with_libiconv_prefix+set}" = set; then :
7788   withval=$with_libiconv_prefix;
7789     if test "X$withval" = "Xno"; then
7790       use_additional=no
7791     else
7792       if test "X$withval" = "X"; then
7793
7794   acl_save_prefix="$prefix"
7795   prefix="$acl_final_prefix"
7796   acl_save_exec_prefix="$exec_prefix"
7797   exec_prefix="$acl_final_exec_prefix"
7798
7799           eval additional_includedir=\"$includedir\"
7800           eval additional_libdir=\"$libdir\"
7801
7802   exec_prefix="$acl_save_exec_prefix"
7803   prefix="$acl_save_prefix"
7804
7805       else
7806         additional_includedir="$withval/include"
7807         additional_libdir="$withval/lib"
7808       fi
7809     fi
7810
7811 fi
7812
7813       LIBICONV=
7814   LTLIBICONV=
7815   INCICONV=
7816   rpathdirs=
7817   ltrpathdirs=
7818   names_already_handled=
7819   names_next_round='iconv '
7820   while test -n "$names_next_round"; do
7821     names_this_round="$names_next_round"
7822     names_next_round=
7823     for name in $names_this_round; do
7824       already_handled=
7825       for n in $names_already_handled; do
7826         if test "$n" = "$name"; then
7827           already_handled=yes
7828           break
7829         fi
7830       done
7831       if test -z "$already_handled"; then
7832         names_already_handled="$names_already_handled $name"
7833                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7834         eval value=\"\$HAVE_LIB$uppername\"
7835         if test -n "$value"; then
7836           if test "$value" = yes; then
7837             eval value=\"\$LIB$uppername\"
7838             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7839             eval value=\"\$LTLIB$uppername\"
7840             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7841           else
7842                                     :
7843           fi
7844         else
7845                               found_dir=
7846           found_la=
7847           found_so=
7848           found_a=
7849           if test $use_additional = yes; then
7850             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7851               found_dir="$additional_libdir"
7852               found_so="$additional_libdir/lib$name.$shlibext"
7853               if test -f "$additional_libdir/lib$name.la"; then
7854                 found_la="$additional_libdir/lib$name.la"
7855               fi
7856             else
7857               if test -f "$additional_libdir/lib$name.$libext"; then
7858                 found_dir="$additional_libdir"
7859                 found_a="$additional_libdir/lib$name.$libext"
7860                 if test -f "$additional_libdir/lib$name.la"; then
7861                   found_la="$additional_libdir/lib$name.la"
7862                 fi
7863               fi
7864             fi
7865           fi
7866           if test "X$found_dir" = "X"; then
7867             for x in $LDFLAGS $LTLIBICONV; do
7868
7869   acl_save_prefix="$prefix"
7870   prefix="$acl_final_prefix"
7871   acl_save_exec_prefix="$exec_prefix"
7872   exec_prefix="$acl_final_exec_prefix"
7873   eval x=\"$x\"
7874   exec_prefix="$acl_save_exec_prefix"
7875   prefix="$acl_save_prefix"
7876
7877               case "$x" in
7878                 -L*)
7879                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7880                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7881                     found_dir="$dir"
7882                     found_so="$dir/lib$name.$shlibext"
7883                     if test -f "$dir/lib$name.la"; then
7884                       found_la="$dir/lib$name.la"
7885                     fi
7886                   else
7887                     if test -f "$dir/lib$name.$libext"; then
7888                       found_dir="$dir"
7889                       found_a="$dir/lib$name.$libext"
7890                       if test -f "$dir/lib$name.la"; then
7891                         found_la="$dir/lib$name.la"
7892                       fi
7893                     fi
7894                   fi
7895                   ;;
7896               esac
7897               if test "X$found_dir" != "X"; then
7898                 break
7899               fi
7900             done
7901           fi
7902           if test "X$found_dir" != "X"; then
7903                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7904             if test "X$found_so" != "X"; then
7905                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7906                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7907               else
7908                                                                                 haveit=
7909                 for x in $ltrpathdirs; do
7910                   if test "X$x" = "X$found_dir"; then
7911                     haveit=yes
7912                     break
7913                   fi
7914                 done
7915                 if test -z "$haveit"; then
7916                   ltrpathdirs="$ltrpathdirs $found_dir"
7917                 fi
7918                                 if test "$hardcode_direct" = yes; then
7919                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7920                 else
7921                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7922                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7923                                                             haveit=
7924                     for x in $rpathdirs; do
7925                       if test "X$x" = "X$found_dir"; then
7926                         haveit=yes
7927                         break
7928                       fi
7929                     done
7930                     if test -z "$haveit"; then
7931                       rpathdirs="$rpathdirs $found_dir"
7932                     fi
7933                   else
7934                                                                                 haveit=
7935                     for x in $LDFLAGS $LIBICONV; do
7936
7937   acl_save_prefix="$prefix"
7938   prefix="$acl_final_prefix"
7939   acl_save_exec_prefix="$exec_prefix"
7940   exec_prefix="$acl_final_exec_prefix"
7941   eval x=\"$x\"
7942   exec_prefix="$acl_save_exec_prefix"
7943   prefix="$acl_save_prefix"
7944
7945                       if test "X$x" = "X-L$found_dir"; then
7946                         haveit=yes
7947                         break
7948                       fi
7949                     done
7950                     if test -z "$haveit"; then
7951                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7952                     fi
7953                     if test "$hardcode_minus_L" != no; then
7954                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7955                     else
7956                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7957                     fi
7958                   fi
7959                 fi
7960               fi
7961             else
7962               if test "X$found_a" != "X"; then
7963                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7964               else
7965                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7966               fi
7967             fi
7968                         additional_includedir=
7969             case "$found_dir" in
7970               */lib | */lib/)
7971                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7972                 additional_includedir="$basedir/include"
7973                 ;;
7974             esac
7975             if test "X$additional_includedir" != "X"; then
7976                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7977                 haveit=
7978                 if test "X$additional_includedir" = "X/usr/local/include"; then
7979                   if test -n "$GCC"; then
7980                     case $host_os in
7981                       linux*) haveit=yes;;
7982                     esac
7983                   fi
7984                 fi
7985                 if test -z "$haveit"; then
7986                   for x in $CPPFLAGS $INCICONV; do
7987
7988   acl_save_prefix="$prefix"
7989   prefix="$acl_final_prefix"
7990   acl_save_exec_prefix="$exec_prefix"
7991   exec_prefix="$acl_final_exec_prefix"
7992   eval x=\"$x\"
7993   exec_prefix="$acl_save_exec_prefix"
7994   prefix="$acl_save_prefix"
7995
7996                     if test "X$x" = "X-I$additional_includedir"; then
7997                       haveit=yes
7998                       break
7999                     fi
8000                   done
8001                   if test -z "$haveit"; then
8002                     if test -d "$additional_includedir"; then
8003                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8004                     fi
8005                   fi
8006                 fi
8007               fi
8008             fi
8009                         if test -n "$found_la"; then
8010                                                         save_libdir="$libdir"
8011               case "$found_la" in
8012                 */* | *\\*) . "$found_la" ;;
8013                 *) . "./$found_la" ;;
8014               esac
8015               libdir="$save_libdir"
8016                             for dep in $dependency_libs; do
8017                 case "$dep" in
8018                   -L*)
8019                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8020                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8021                       haveit=
8022                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8023                         if test -n "$GCC"; then
8024                           case $host_os in
8025                             linux*) haveit=yes;;
8026                           esac
8027                         fi
8028                       fi
8029                       if test -z "$haveit"; then
8030                         haveit=
8031                         for x in $LDFLAGS $LIBICONV; do
8032
8033   acl_save_prefix="$prefix"
8034   prefix="$acl_final_prefix"
8035   acl_save_exec_prefix="$exec_prefix"
8036   exec_prefix="$acl_final_exec_prefix"
8037   eval x=\"$x\"
8038   exec_prefix="$acl_save_exec_prefix"
8039   prefix="$acl_save_prefix"
8040
8041                           if test "X$x" = "X-L$additional_libdir"; then
8042                             haveit=yes
8043                             break
8044                           fi
8045                         done
8046                         if test -z "$haveit"; then
8047                           if test -d "$additional_libdir"; then
8048                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8049                           fi
8050                         fi
8051                         haveit=
8052                         for x in $LDFLAGS $LTLIBICONV; do
8053
8054   acl_save_prefix="$prefix"
8055   prefix="$acl_final_prefix"
8056   acl_save_exec_prefix="$exec_prefix"
8057   exec_prefix="$acl_final_exec_prefix"
8058   eval x=\"$x\"
8059   exec_prefix="$acl_save_exec_prefix"
8060   prefix="$acl_save_prefix"
8061
8062                           if test "X$x" = "X-L$additional_libdir"; then
8063                             haveit=yes
8064                             break
8065                           fi
8066                         done
8067                         if test -z "$haveit"; then
8068                           if test -d "$additional_libdir"; then
8069                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8070                           fi
8071                         fi
8072                       fi
8073                     fi
8074                     ;;
8075                   -R*)
8076                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8077                     if test "$enable_rpath" != no; then
8078                                                                   haveit=
8079                       for x in $rpathdirs; do
8080                         if test "X$x" = "X$dir"; then
8081                           haveit=yes
8082                           break
8083                         fi
8084                       done
8085                       if test -z "$haveit"; then
8086                         rpathdirs="$rpathdirs $dir"
8087                       fi
8088                                                                   haveit=
8089                       for x in $ltrpathdirs; do
8090                         if test "X$x" = "X$dir"; then
8091                           haveit=yes
8092                           break
8093                         fi
8094                       done
8095                       if test -z "$haveit"; then
8096                         ltrpathdirs="$ltrpathdirs $dir"
8097                       fi
8098                     fi
8099                     ;;
8100                   -l*)
8101                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8102                     ;;
8103                   *.la)
8104                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8105                     ;;
8106                   *)
8107                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8108                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8109                     ;;
8110                 esac
8111               done
8112             fi
8113           else
8114                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8115             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8116           fi
8117         fi
8118       fi
8119     done
8120   done
8121   if test "X$rpathdirs" != "X"; then
8122     if test -n "$hardcode_libdir_separator"; then
8123                         alldirs=
8124       for found_dir in $rpathdirs; do
8125         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8126       done
8127             acl_save_libdir="$libdir"
8128       libdir="$alldirs"
8129       eval flag=\"$hardcode_libdir_flag_spec\"
8130       libdir="$acl_save_libdir"
8131       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8132     else
8133             for found_dir in $rpathdirs; do
8134         acl_save_libdir="$libdir"
8135         libdir="$found_dir"
8136         eval flag=\"$hardcode_libdir_flag_spec\"
8137         libdir="$acl_save_libdir"
8138         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8139       done
8140     fi
8141   fi
8142   if test "X$ltrpathdirs" != "X"; then
8143             for found_dir in $ltrpathdirs; do
8144       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8145     done
8146   fi
8147
8148
8149
8150
8151
8152
8153
8154
8155   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8156 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
8157
8158 else
8159
8160 $as_echo "#define ptrdiff_t long" >>confdefs.h
8161
8162
8163 fi
8164
8165   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8166 stdlib.h string.h unistd.h sys/param.h
8167 do :
8168   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8169 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8170 eval as_val=\$$as_ac_Header
8171    if test "x$as_val" = x""yes; then :
8172   cat >>confdefs.h <<_ACEOF
8173 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8174 _ACEOF
8175
8176 fi
8177
8178 done
8179
8180   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8181 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8182 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8183 __fsetlocking
8184 do :
8185   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8186 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8187 eval as_val=\$$as_ac_var
8188    if test "x$as_val" = x""yes; then :
8189   cat >>confdefs.h <<_ACEOF
8190 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8191 _ACEOF
8192
8193 fi
8194 done
8195
8196
8197
8198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8199 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8200 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
8201   $as_echo_n "(cached) " >&6
8202 else
8203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204 /* end confdefs.h.  */
8205 #include <stdio.h>
8206 int
8207 main ()
8208 {
8209
8210 #ifndef _snprintf
8211   char *p = (char *) _snprintf;
8212 #endif
8213
8214   ;
8215   return 0;
8216 }
8217 _ACEOF
8218 if ac_fn_c_try_compile "$LINENO"; then :
8219   ac_cv_have_decl__snprintf=yes
8220 else
8221   ac_cv_have_decl__snprintf=no
8222 fi
8223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8224 fi
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8226 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8227   if test $ac_cv_have_decl__snprintf = yes; then
8228     gt_value=1
8229   else
8230     gt_value=0
8231   fi
8232
8233 cat >>confdefs.h <<_ACEOF
8234 #define HAVE_DECL__SNPRINTF $gt_value
8235 _ACEOF
8236
8237
8238
8239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8240 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8241 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
8242   $as_echo_n "(cached) " >&6
8243 else
8244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8245 /* end confdefs.h.  */
8246 #include <stdio.h>
8247 int
8248 main ()
8249 {
8250
8251 #ifndef _snwprintf
8252   char *p = (char *) _snwprintf;
8253 #endif
8254
8255   ;
8256   return 0;
8257 }
8258 _ACEOF
8259 if ac_fn_c_try_compile "$LINENO"; then :
8260   ac_cv_have_decl__snwprintf=yes
8261 else
8262   ac_cv_have_decl__snwprintf=no
8263 fi
8264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8265 fi
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8267 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8268   if test $ac_cv_have_decl__snwprintf = yes; then
8269     gt_value=1
8270   else
8271     gt_value=0
8272   fi
8273
8274 cat >>confdefs.h <<_ACEOF
8275 #define HAVE_DECL__SNWPRINTF $gt_value
8276 _ACEOF
8277
8278
8279
8280
8281   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8282 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8283 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
8284   $as_echo_n "(cached) " >&6
8285 else
8286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287 /* end confdefs.h.  */
8288 #include <stdio.h>
8289 int
8290 main ()
8291 {
8292
8293 #ifndef feof_unlocked
8294   char *p = (char *) feof_unlocked;
8295 #endif
8296
8297   ;
8298   return 0;
8299 }
8300 _ACEOF
8301 if ac_fn_c_try_compile "$LINENO"; then :
8302   ac_cv_have_decl_feof_unlocked=yes
8303 else
8304   ac_cv_have_decl_feof_unlocked=no
8305 fi
8306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8307 fi
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8309 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8310   if test $ac_cv_have_decl_feof_unlocked = yes; then
8311     gt_value=1
8312   else
8313     gt_value=0
8314   fi
8315
8316 cat >>confdefs.h <<_ACEOF
8317 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8318 _ACEOF
8319
8320
8321
8322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8323 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8324 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
8325   $as_echo_n "(cached) " >&6
8326 else
8327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h.  */
8329 #include <stdio.h>
8330 int
8331 main ()
8332 {
8333
8334 #ifndef fgets_unlocked
8335   char *p = (char *) fgets_unlocked;
8336 #endif
8337
8338   ;
8339   return 0;
8340 }
8341 _ACEOF
8342 if ac_fn_c_try_compile "$LINENO"; then :
8343   ac_cv_have_decl_fgets_unlocked=yes
8344 else
8345   ac_cv_have_decl_fgets_unlocked=no
8346 fi
8347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8348 fi
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8350 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8351   if test $ac_cv_have_decl_fgets_unlocked = yes; then
8352     gt_value=1
8353   else
8354     gt_value=0
8355   fi
8356
8357 cat >>confdefs.h <<_ACEOF
8358 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8359 _ACEOF
8360
8361
8362
8363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8364 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8365 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
8366   $as_echo_n "(cached) " >&6
8367 else
8368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8369 /* end confdefs.h.  */
8370 #include <stdio.h>
8371 int
8372 main ()
8373 {
8374
8375 #ifndef getc_unlocked
8376   char *p = (char *) getc_unlocked;
8377 #endif
8378
8379   ;
8380   return 0;
8381 }
8382 _ACEOF
8383 if ac_fn_c_try_compile "$LINENO"; then :
8384   ac_cv_have_decl_getc_unlocked=yes
8385 else
8386   ac_cv_have_decl_getc_unlocked=no
8387 fi
8388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8389 fi
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8391 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8392   if test $ac_cv_have_decl_getc_unlocked = yes; then
8393     gt_value=1
8394   else
8395     gt_value=0
8396   fi
8397
8398 cat >>confdefs.h <<_ACEOF
8399 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8400 _ACEOF
8401
8402
8403
8404   case $gt_cv_func_printf_posix in
8405     *yes) HAVE_POSIX_PRINTF=1 ;;
8406     *) HAVE_POSIX_PRINTF=0 ;;
8407   esac
8408
8409   if test "$ac_cv_func_asprintf" = yes; then
8410     HAVE_ASPRINTF=1
8411   else
8412     HAVE_ASPRINTF=0
8413   fi
8414
8415   if test "$ac_cv_func_snprintf" = yes; then
8416     HAVE_SNPRINTF=1
8417   else
8418     HAVE_SNPRINTF=0
8419   fi
8420
8421   if test "$ac_cv_func_wprintf" = yes; then
8422     HAVE_WPRINTF=1
8423   else
8424     HAVE_WPRINTF=0
8425   fi
8426
8427
8428
8429
8430
8431
8432
8433           am_save_CPPFLAGS="$CPPFLAGS"
8434
8435   for element in $INCICONV; do
8436     haveit=
8437     for x in $CPPFLAGS; do
8438
8439   acl_save_prefix="$prefix"
8440   prefix="$acl_final_prefix"
8441   acl_save_exec_prefix="$exec_prefix"
8442   exec_prefix="$acl_final_exec_prefix"
8443   eval x=\"$x\"
8444   exec_prefix="$acl_save_exec_prefix"
8445   prefix="$acl_save_prefix"
8446
8447       if test "X$x" = "X$element"; then
8448         haveit=yes
8449         break
8450       fi
8451     done
8452     if test -z "$haveit"; then
8453       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8454     fi
8455   done
8456
8457
8458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8459 $as_echo_n "checking for iconv... " >&6; }
8460 if test "${am_cv_func_iconv+set}" = set; then :
8461   $as_echo_n "(cached) " >&6
8462 else
8463
8464     am_cv_func_iconv="no, consider installing GNU libiconv"
8465     am_cv_lib_iconv=no
8466     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8467 /* end confdefs.h.  */
8468 #include <stdlib.h>
8469 #include <iconv.h>
8470 int
8471 main ()
8472 {
8473 iconv_t cd = iconv_open("","");
8474        iconv(cd,NULL,NULL,NULL,NULL);
8475        iconv_close(cd);
8476   ;
8477   return 0;
8478 }
8479 _ACEOF
8480 if ac_fn_c_try_link "$LINENO"; then :
8481   am_cv_func_iconv=yes
8482 fi
8483 rm -f core conftest.err conftest.$ac_objext \
8484     conftest$ac_exeext conftest.$ac_ext
8485     if test "$am_cv_func_iconv" != yes; then
8486       am_save_LIBS="$LIBS"
8487       LIBS="$LIBS $LIBICONV"
8488       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489 /* end confdefs.h.  */
8490 #include <stdlib.h>
8491 #include <iconv.h>
8492 int
8493 main ()
8494 {
8495 iconv_t cd = iconv_open("","");
8496          iconv(cd,NULL,NULL,NULL,NULL);
8497          iconv_close(cd);
8498   ;
8499   return 0;
8500 }
8501 _ACEOF
8502 if ac_fn_c_try_link "$LINENO"; then :
8503   am_cv_lib_iconv=yes
8504         am_cv_func_iconv=yes
8505 fi
8506 rm -f core conftest.err conftest.$ac_objext \
8507     conftest$ac_exeext conftest.$ac_ext
8508       LIBS="$am_save_LIBS"
8509     fi
8510
8511 fi
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8513 $as_echo "$am_cv_func_iconv" >&6; }
8514   if test "$am_cv_func_iconv" = yes; then
8515
8516 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8517
8518   fi
8519   if test "$am_cv_lib_iconv" = yes; then
8520     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8521 $as_echo_n "checking how to link with libiconv... " >&6; }
8522     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8523 $as_echo "$LIBICONV" >&6; }
8524   else
8525             CPPFLAGS="$am_save_CPPFLAGS"
8526     LIBICONV=
8527     LTLIBICONV=
8528   fi
8529
8530
8531
8532   if test "$am_cv_func_iconv" = yes; then
8533     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8534 $as_echo_n "checking for iconv declaration... " >&6; }
8535     if test "${am_cv_proto_iconv+set}" = set; then :
8536   $as_echo_n "(cached) " >&6
8537 else
8538
8539       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8540 /* end confdefs.h.  */
8541
8542 #include <stdlib.h>
8543 #include <iconv.h>
8544 extern
8545 #ifdef __cplusplus
8546 "C"
8547 #endif
8548 #if defined(__STDC__) || defined(__cplusplus)
8549 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8550 #else
8551 size_t iconv();
8552 #endif
8553
8554 int
8555 main ()
8556 {
8557
8558   ;
8559   return 0;
8560 }
8561 _ACEOF
8562 if ac_fn_c_try_compile "$LINENO"; then :
8563   am_cv_proto_iconv_arg1=""
8564 else
8565   am_cv_proto_iconv_arg1="const"
8566 fi
8567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8568       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);"
8569 fi
8570
8571     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8572     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8573          }$am_cv_proto_iconv" >&5
8574 $as_echo "${ac_t:-
8575          }$am_cv_proto_iconv" >&6; }
8576
8577 cat >>confdefs.h <<_ACEOF
8578 #define ICONV_CONST $am_cv_proto_iconv_arg1
8579 _ACEOF
8580
8581   fi
8582
8583
8584   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8585 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8586 if test "${am_cv_langinfo_codeset+set}" = set; then :
8587   $as_echo_n "(cached) " >&6
8588 else
8589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8590 /* end confdefs.h.  */
8591 #include <langinfo.h>
8592 int
8593 main ()
8594 {
8595 char* cs = nl_langinfo(CODESET);
8596   ;
8597   return 0;
8598 }
8599 _ACEOF
8600 if ac_fn_c_try_link "$LINENO"; then :
8601   am_cv_langinfo_codeset=yes
8602 else
8603   am_cv_langinfo_codeset=no
8604 fi
8605 rm -f core conftest.err conftest.$ac_objext \
8606     conftest$ac_exeext conftest.$ac_ext
8607
8608 fi
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8610 $as_echo "$am_cv_langinfo_codeset" >&6; }
8611   if test $am_cv_langinfo_codeset = yes; then
8612
8613 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8614
8615   fi
8616
8617   if test $ac_cv_header_locale_h = yes; then
8618
8619   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8620 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8621 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
8622   $as_echo_n "(cached) " >&6
8623 else
8624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h.  */
8626 #include <locale.h>
8627 int
8628 main ()
8629 {
8630 return LC_MESSAGES
8631   ;
8632   return 0;
8633 }
8634 _ACEOF
8635 if ac_fn_c_try_link "$LINENO"; then :
8636   am_cv_val_LC_MESSAGES=yes
8637 else
8638   am_cv_val_LC_MESSAGES=no
8639 fi
8640 rm -f core conftest.err conftest.$ac_objext \
8641     conftest$ac_exeext conftest.$ac_ext
8642 fi
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8644 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8645   if test $am_cv_val_LC_MESSAGES = yes; then
8646
8647 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8648
8649   fi
8650
8651   fi
8652
8653                       for ac_prog in bison
8654 do
8655   # Extract the first word of "$ac_prog", so it can be a program name with args.
8656 set dummy $ac_prog; ac_word=$2
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8658 $as_echo_n "checking for $ac_word... " >&6; }
8659 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
8660   $as_echo_n "(cached) " >&6
8661 else
8662   if test -n "$INTLBISON"; then
8663   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8664 else
8665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8666 for as_dir in $PATH
8667 do
8668   IFS=$as_save_IFS
8669   test -z "$as_dir" && as_dir=.
8670     for ac_exec_ext in '' $ac_executable_extensions; do
8671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8672     ac_cv_prog_INTLBISON="$ac_prog"
8673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8674     break 2
8675   fi
8676 done
8677   done
8678 IFS=$as_save_IFS
8679
8680 fi
8681 fi
8682 INTLBISON=$ac_cv_prog_INTLBISON
8683 if test -n "$INTLBISON"; then
8684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8685 $as_echo "$INTLBISON" >&6; }
8686 else
8687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8688 $as_echo "no" >&6; }
8689 fi
8690
8691
8692   test -n "$INTLBISON" && break
8693 done
8694
8695   if test -z "$INTLBISON"; then
8696     ac_verc_fail=yes
8697   else
8698         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8699 $as_echo_n "checking version of bison... " >&6; }
8700     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8701     case $ac_prog_version in
8702       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8703       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8704          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8705       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8706     esac
8707     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8708 $as_echo "$ac_prog_version" >&6; }
8709   fi
8710   if test $ac_verc_fail = yes; then
8711     INTLBISON=:
8712   fi
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8730 $as_echo_n "checking whether NLS is requested... " >&6; }
8731     # Check whether --enable-nls was given.
8732 if test "${enable_nls+set}" = set; then :
8733   enableval=$enable_nls; USE_NLS=$enableval
8734 else
8735   USE_NLS=yes
8736 fi
8737
8738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8739 $as_echo "$USE_NLS" >&6; }
8740
8741
8742
8743
8744     BUILD_INCLUDED_LIBINTL=no
8745     USE_INCLUDED_LIBINTL=no
8746
8747   LIBINTL=
8748   LTLIBINTL=
8749   POSUB=
8750
8751     if test "$USE_NLS" = "yes"; then
8752     gt_use_preinstalled_gnugettext=no
8753
8754       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8755 $as_echo_n "checking whether included gettext is requested... " >&6; }
8756
8757 # Check whether --with-included-gettext was given.
8758 if test "${with_included_gettext+set}" = set; then :
8759   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8760 else
8761   nls_cv_force_use_gnu_gettext=no
8762 fi
8763
8764       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8765 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8766
8767       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8768       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8769
8770
8771
8772
8773
8774
8775         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8776 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8777 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
8778   $as_echo_n "(cached) " >&6
8779 else
8780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8781 /* end confdefs.h.  */
8782 #include <libintl.h>
8783 extern int _nl_msg_cat_cntr;
8784 extern int *_nl_domain_bindings;
8785 int
8786 main ()
8787 {
8788 bindtextdomain ("", "");
8789 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8790   ;
8791   return 0;
8792 }
8793 _ACEOF
8794 if ac_fn_c_try_link "$LINENO"; then :
8795   gt_cv_func_gnugettext1_libc=yes
8796 else
8797   gt_cv_func_gnugettext1_libc=no
8798 fi
8799 rm -f core conftest.err conftest.$ac_objext \
8800     conftest$ac_exeext conftest.$ac_ext
8801 fi
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8803 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8804
8805         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8806
8807
8808
8809     use_additional=yes
8810
8811   acl_save_prefix="$prefix"
8812   prefix="$acl_final_prefix"
8813   acl_save_exec_prefix="$exec_prefix"
8814   exec_prefix="$acl_final_exec_prefix"
8815
8816     eval additional_includedir=\"$includedir\"
8817     eval additional_libdir=\"$libdir\"
8818
8819   exec_prefix="$acl_save_exec_prefix"
8820   prefix="$acl_save_prefix"
8821
8822
8823 # Check whether --with-libintl-prefix was given.
8824 if test "${with_libintl_prefix+set}" = set; then :
8825   withval=$with_libintl_prefix;
8826     if test "X$withval" = "Xno"; then
8827       use_additional=no
8828     else
8829       if test "X$withval" = "X"; then
8830
8831   acl_save_prefix="$prefix"
8832   prefix="$acl_final_prefix"
8833   acl_save_exec_prefix="$exec_prefix"
8834   exec_prefix="$acl_final_exec_prefix"
8835
8836           eval additional_includedir=\"$includedir\"
8837           eval additional_libdir=\"$libdir\"
8838
8839   exec_prefix="$acl_save_exec_prefix"
8840   prefix="$acl_save_prefix"
8841
8842       else
8843         additional_includedir="$withval/include"
8844         additional_libdir="$withval/lib"
8845       fi
8846     fi
8847
8848 fi
8849
8850       LIBINTL=
8851   LTLIBINTL=
8852   INCINTL=
8853   rpathdirs=
8854   ltrpathdirs=
8855   names_already_handled=
8856   names_next_round='intl '
8857   while test -n "$names_next_round"; do
8858     names_this_round="$names_next_round"
8859     names_next_round=
8860     for name in $names_this_round; do
8861       already_handled=
8862       for n in $names_already_handled; do
8863         if test "$n" = "$name"; then
8864           already_handled=yes
8865           break
8866         fi
8867       done
8868       if test -z "$already_handled"; then
8869         names_already_handled="$names_already_handled $name"
8870                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8871         eval value=\"\$HAVE_LIB$uppername\"
8872         if test -n "$value"; then
8873           if test "$value" = yes; then
8874             eval value=\"\$LIB$uppername\"
8875             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8876             eval value=\"\$LTLIB$uppername\"
8877             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8878           else
8879                                     :
8880           fi
8881         else
8882                               found_dir=
8883           found_la=
8884           found_so=
8885           found_a=
8886           if test $use_additional = yes; then
8887             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8888               found_dir="$additional_libdir"
8889               found_so="$additional_libdir/lib$name.$shlibext"
8890               if test -f "$additional_libdir/lib$name.la"; then
8891                 found_la="$additional_libdir/lib$name.la"
8892               fi
8893             else
8894               if test -f "$additional_libdir/lib$name.$libext"; then
8895                 found_dir="$additional_libdir"
8896                 found_a="$additional_libdir/lib$name.$libext"
8897                 if test -f "$additional_libdir/lib$name.la"; then
8898                   found_la="$additional_libdir/lib$name.la"
8899                 fi
8900               fi
8901             fi
8902           fi
8903           if test "X$found_dir" = "X"; then
8904             for x in $LDFLAGS $LTLIBINTL; do
8905
8906   acl_save_prefix="$prefix"
8907   prefix="$acl_final_prefix"
8908   acl_save_exec_prefix="$exec_prefix"
8909   exec_prefix="$acl_final_exec_prefix"
8910   eval x=\"$x\"
8911   exec_prefix="$acl_save_exec_prefix"
8912   prefix="$acl_save_prefix"
8913
8914               case "$x" in
8915                 -L*)
8916                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8917                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8918                     found_dir="$dir"
8919                     found_so="$dir/lib$name.$shlibext"
8920                     if test -f "$dir/lib$name.la"; then
8921                       found_la="$dir/lib$name.la"
8922                     fi
8923                   else
8924                     if test -f "$dir/lib$name.$libext"; then
8925                       found_dir="$dir"
8926                       found_a="$dir/lib$name.$libext"
8927                       if test -f "$dir/lib$name.la"; then
8928                         found_la="$dir/lib$name.la"
8929                       fi
8930                     fi
8931                   fi
8932                   ;;
8933               esac
8934               if test "X$found_dir" != "X"; then
8935                 break
8936               fi
8937             done
8938           fi
8939           if test "X$found_dir" != "X"; then
8940                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8941             if test "X$found_so" != "X"; then
8942                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8943                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8944               else
8945                                                                                 haveit=
8946                 for x in $ltrpathdirs; do
8947                   if test "X$x" = "X$found_dir"; then
8948                     haveit=yes
8949                     break
8950                   fi
8951                 done
8952                 if test -z "$haveit"; then
8953                   ltrpathdirs="$ltrpathdirs $found_dir"
8954                 fi
8955                                 if test "$hardcode_direct" = yes; then
8956                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8957                 else
8958                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8959                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8960                                                             haveit=
8961                     for x in $rpathdirs; do
8962                       if test "X$x" = "X$found_dir"; then
8963                         haveit=yes
8964                         break
8965                       fi
8966                     done
8967                     if test -z "$haveit"; then
8968                       rpathdirs="$rpathdirs $found_dir"
8969                     fi
8970                   else
8971                                                                                 haveit=
8972                     for x in $LDFLAGS $LIBINTL; do
8973
8974   acl_save_prefix="$prefix"
8975   prefix="$acl_final_prefix"
8976   acl_save_exec_prefix="$exec_prefix"
8977   exec_prefix="$acl_final_exec_prefix"
8978   eval x=\"$x\"
8979   exec_prefix="$acl_save_exec_prefix"
8980   prefix="$acl_save_prefix"
8981
8982                       if test "X$x" = "X-L$found_dir"; then
8983                         haveit=yes
8984                         break
8985                       fi
8986                     done
8987                     if test -z "$haveit"; then
8988                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8989                     fi
8990                     if test "$hardcode_minus_L" != no; then
8991                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8992                     else
8993                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8994                     fi
8995                   fi
8996                 fi
8997               fi
8998             else
8999               if test "X$found_a" != "X"; then
9000                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9001               else
9002                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9003               fi
9004             fi
9005                         additional_includedir=
9006             case "$found_dir" in
9007               */lib | */lib/)
9008                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9009                 additional_includedir="$basedir/include"
9010                 ;;
9011             esac
9012             if test "X$additional_includedir" != "X"; then
9013                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9014                 haveit=
9015                 if test "X$additional_includedir" = "X/usr/local/include"; then
9016                   if test -n "$GCC"; then
9017                     case $host_os in
9018                       linux*) haveit=yes;;
9019                     esac
9020                   fi
9021                 fi
9022                 if test -z "$haveit"; then
9023                   for x in $CPPFLAGS $INCINTL; do
9024
9025   acl_save_prefix="$prefix"
9026   prefix="$acl_final_prefix"
9027   acl_save_exec_prefix="$exec_prefix"
9028   exec_prefix="$acl_final_exec_prefix"
9029   eval x=\"$x\"
9030   exec_prefix="$acl_save_exec_prefix"
9031   prefix="$acl_save_prefix"
9032
9033                     if test "X$x" = "X-I$additional_includedir"; then
9034                       haveit=yes
9035                       break
9036                     fi
9037                   done
9038                   if test -z "$haveit"; then
9039                     if test -d "$additional_includedir"; then
9040                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9041                     fi
9042                   fi
9043                 fi
9044               fi
9045             fi
9046                         if test -n "$found_la"; then
9047                                                         save_libdir="$libdir"
9048               case "$found_la" in
9049                 */* | *\\*) . "$found_la" ;;
9050                 *) . "./$found_la" ;;
9051               esac
9052               libdir="$save_libdir"
9053                             for dep in $dependency_libs; do
9054                 case "$dep" in
9055                   -L*)
9056                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9057                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9058                       haveit=
9059                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9060                         if test -n "$GCC"; then
9061                           case $host_os in
9062                             linux*) haveit=yes;;
9063                           esac
9064                         fi
9065                       fi
9066                       if test -z "$haveit"; then
9067                         haveit=
9068                         for x in $LDFLAGS $LIBINTL; do
9069
9070   acl_save_prefix="$prefix"
9071   prefix="$acl_final_prefix"
9072   acl_save_exec_prefix="$exec_prefix"
9073   exec_prefix="$acl_final_exec_prefix"
9074   eval x=\"$x\"
9075   exec_prefix="$acl_save_exec_prefix"
9076   prefix="$acl_save_prefix"
9077
9078                           if test "X$x" = "X-L$additional_libdir"; then
9079                             haveit=yes
9080                             break
9081                           fi
9082                         done
9083                         if test -z "$haveit"; then
9084                           if test -d "$additional_libdir"; then
9085                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9086                           fi
9087                         fi
9088                         haveit=
9089                         for x in $LDFLAGS $LTLIBINTL; do
9090
9091   acl_save_prefix="$prefix"
9092   prefix="$acl_final_prefix"
9093   acl_save_exec_prefix="$exec_prefix"
9094   exec_prefix="$acl_final_exec_prefix"
9095   eval x=\"$x\"
9096   exec_prefix="$acl_save_exec_prefix"
9097   prefix="$acl_save_prefix"
9098
9099                           if test "X$x" = "X-L$additional_libdir"; then
9100                             haveit=yes
9101                             break
9102                           fi
9103                         done
9104                         if test -z "$haveit"; then
9105                           if test -d "$additional_libdir"; then
9106                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9107                           fi
9108                         fi
9109                       fi
9110                     fi
9111                     ;;
9112                   -R*)
9113                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9114                     if test "$enable_rpath" != no; then
9115                                                                   haveit=
9116                       for x in $rpathdirs; do
9117                         if test "X$x" = "X$dir"; then
9118                           haveit=yes
9119                           break
9120                         fi
9121                       done
9122                       if test -z "$haveit"; then
9123                         rpathdirs="$rpathdirs $dir"
9124                       fi
9125                                                                   haveit=
9126                       for x in $ltrpathdirs; do
9127                         if test "X$x" = "X$dir"; then
9128                           haveit=yes
9129                           break
9130                         fi
9131                       done
9132                       if test -z "$haveit"; then
9133                         ltrpathdirs="$ltrpathdirs $dir"
9134                       fi
9135                     fi
9136                     ;;
9137                   -l*)
9138                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9139                     ;;
9140                   *.la)
9141                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9142                     ;;
9143                   *)
9144                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9145                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9146                     ;;
9147                 esac
9148               done
9149             fi
9150           else
9151                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9152             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9153           fi
9154         fi
9155       fi
9156     done
9157   done
9158   if test "X$rpathdirs" != "X"; then
9159     if test -n "$hardcode_libdir_separator"; then
9160                         alldirs=
9161       for found_dir in $rpathdirs; do
9162         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9163       done
9164             acl_save_libdir="$libdir"
9165       libdir="$alldirs"
9166       eval flag=\"$hardcode_libdir_flag_spec\"
9167       libdir="$acl_save_libdir"
9168       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9169     else
9170             for found_dir in $rpathdirs; do
9171         acl_save_libdir="$libdir"
9172         libdir="$found_dir"
9173         eval flag=\"$hardcode_libdir_flag_spec\"
9174         libdir="$acl_save_libdir"
9175         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9176       done
9177     fi
9178   fi
9179   if test "X$ltrpathdirs" != "X"; then
9180             for found_dir in $ltrpathdirs; do
9181       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9182     done
9183   fi
9184
9185           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9186 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9187 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
9188   $as_echo_n "(cached) " >&6
9189 else
9190   gt_save_CPPFLAGS="$CPPFLAGS"
9191             CPPFLAGS="$CPPFLAGS $INCINTL"
9192             gt_save_LIBS="$LIBS"
9193             LIBS="$LIBS $LIBINTL"
9194                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9195 /* end confdefs.h.  */
9196 #include <libintl.h>
9197 extern int _nl_msg_cat_cntr;
9198 extern
9199 #ifdef __cplusplus
9200 "C"
9201 #endif
9202 const char *_nl_expand_alias ();
9203 int
9204 main ()
9205 {
9206 bindtextdomain ("", "");
9207 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9208   ;
9209   return 0;
9210 }
9211 _ACEOF
9212 if ac_fn_c_try_link "$LINENO"; then :
9213   gt_cv_func_gnugettext1_libintl=yes
9214 else
9215   gt_cv_func_gnugettext1_libintl=no
9216 fi
9217 rm -f core conftest.err conftest.$ac_objext \
9218     conftest$ac_exeext conftest.$ac_ext
9219                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9220               LIBS="$LIBS $LIBICONV"
9221               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9222 /* end confdefs.h.  */
9223 #include <libintl.h>
9224 extern int _nl_msg_cat_cntr;
9225 extern
9226 #ifdef __cplusplus
9227 "C"
9228 #endif
9229 const char *_nl_expand_alias ();
9230 int
9231 main ()
9232 {
9233 bindtextdomain ("", "");
9234 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9235   ;
9236   return 0;
9237 }
9238 _ACEOF
9239 if ac_fn_c_try_link "$LINENO"; then :
9240   LIBINTL="$LIBINTL $LIBICONV"
9241                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9242                 gt_cv_func_gnugettext1_libintl=yes
9243
9244 fi
9245 rm -f core conftest.err conftest.$ac_objext \
9246     conftest$ac_exeext conftest.$ac_ext
9247             fi
9248             CPPFLAGS="$gt_save_CPPFLAGS"
9249             LIBS="$gt_save_LIBS"
9250 fi
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9252 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9253         fi
9254
9255                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9256            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9257                 && test "$PACKAGE" != gettext-runtime \
9258                 && test "$PACKAGE" != gettext-tools; }; then
9259           gt_use_preinstalled_gnugettext=yes
9260         else
9261                     LIBINTL=
9262           LTLIBINTL=
9263           INCINTL=
9264         fi
9265
9266
9267         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9268                               nls_cv_use_gnu_gettext=yes
9269         fi
9270       fi
9271
9272       if test "$nls_cv_use_gnu_gettext" = "yes"; then
9273                 BUILD_INCLUDED_LIBINTL=yes
9274         USE_INCLUDED_LIBINTL=yes
9275         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9276         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9277         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9278       fi
9279
9280       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9281          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9282                 CATOBJEXT=.gmo
9283       fi
9284
9285
9286     if test "$gt_use_preinstalled_gnugettext" = "yes" \
9287        || test "$nls_cv_use_gnu_gettext" = "yes"; then
9288
9289 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9290
9291     else
9292       USE_NLS=no
9293     fi
9294   fi
9295
9296   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9297 $as_echo_n "checking whether to use NLS... " >&6; }
9298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9299 $as_echo "$USE_NLS" >&6; }
9300   if test "$USE_NLS" = "yes"; then
9301     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9302 $as_echo_n "checking where the gettext function comes from... " >&6; }
9303     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9304       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9305         gt_source="external libintl"
9306       else
9307         gt_source="libc"
9308       fi
9309     else
9310       gt_source="included intl directory"
9311     fi
9312     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9313 $as_echo "$gt_source" >&6; }
9314   fi
9315
9316   if test "$USE_NLS" = "yes"; then
9317
9318     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9319       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9320         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9321 $as_echo_n "checking how to link with libintl... " >&6; }
9322         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9323 $as_echo "$LIBINTL" >&6; }
9324
9325   for element in $INCINTL; do
9326     haveit=
9327     for x in $CPPFLAGS; do
9328
9329   acl_save_prefix="$prefix"
9330   prefix="$acl_final_prefix"
9331   acl_save_exec_prefix="$exec_prefix"
9332   exec_prefix="$acl_final_exec_prefix"
9333   eval x=\"$x\"
9334   exec_prefix="$acl_save_exec_prefix"
9335   prefix="$acl_save_prefix"
9336
9337       if test "X$x" = "X$element"; then
9338         haveit=yes
9339         break
9340       fi
9341     done
9342     if test -z "$haveit"; then
9343       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9344     fi
9345   done
9346
9347       fi
9348
9349
9350 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9351
9352
9353 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9354
9355     fi
9356
9357         POSUB=po
9358   fi
9359
9360
9361             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9362       BUILD_INCLUDED_LIBINTL=yes
9363     fi
9364
9365
9366
9367
9368
9369         nls_cv_header_intl=
9370     nls_cv_header_libgt=
9371
9372         DATADIRNAME=share
9373
9374
9375         INSTOBJEXT=.mo
9376
9377
9378         GENCAT=gencat
9379
9380
9381         if test "$USE_INCLUDED_LIBINTL" = yes; then
9382       INTLOBJS="\$(GETTOBJS)"
9383     fi
9384
9385
9386         INTL_LIBTOOL_SUFFIX_PREFIX=
9387
9388
9389
9390     INTLLIBS="$LIBINTL"
9391
9392
9393
9394
9395
9396
9397
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9399 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9400 set x ${MAKE-make}
9401 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9402 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9403   $as_echo_n "(cached) " >&6
9404 else
9405   cat >conftest.make <<\_ACEOF
9406 SHELL = /bin/sh
9407 all:
9408         @echo '@@@%%%=$(MAKE)=@@@%%%'
9409 _ACEOF
9410 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9411 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9412   *@@@%%%=?*=@@@%%%*)
9413     eval ac_cv_prog_make_${ac_make}_set=yes;;
9414   *)
9415     eval ac_cv_prog_make_${ac_make}_set=no;;
9416 esac
9417 rm -f conftest.make
9418 fi
9419 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9421 $as_echo "yes" >&6; }
9422   SET_MAKE=
9423 else
9424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9425 $as_echo "no" >&6; }
9426   SET_MAKE="MAKE=${MAKE-make}"
9427 fi
9428
9429  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9430 $as_echo_n "checking for GNU make... " >&6; }
9431 if test "${_cv_gnu_make_command+set}" = set; then :
9432   $as_echo_n "(cached) " >&6
9433 else
9434   _cv_gnu_make_command='' ;
9435                 for a in "$MAKE" make gmake gnumake ; do
9436                         if test -z "$a" ; then continue ; fi ;
9437                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
9438                                 _cv_gnu_make_command=$a ;
9439                                 break;
9440                         fi
9441                 done ;
9442
9443 fi
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9445 $as_echo "$_cv_gnu_make_command" >&6; } ;
9446         if test  "x$_cv_gnu_make_command" != "x"  ; then
9447                 ifGNUmake='' ;
9448                 ifNotGNUmake='#' ;
9449         else
9450                 ifGNUmake='#' ;
9451                 ifNotGNUmake='' ;
9452                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9453 $as_echo "\"Not found\"" >&6; };
9454         fi
9455
9456
9457
9458 # Extract the first word of "ln", so it can be a program name with args.
9459 set dummy ln; ac_word=$2
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9461 $as_echo_n "checking for $ac_word... " >&6; }
9462 if test "${ac_cv_path_LN+set}" = set; then :
9463   $as_echo_n "(cached) " >&6
9464 else
9465   case $LN in
9466   [\\/]* | ?:[\\/]*)
9467   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9468   ;;
9469   *)
9470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9471 for as_dir in $PATH
9472 do
9473   IFS=$as_save_IFS
9474   test -z "$as_dir" && as_dir=.
9475     for ac_exec_ext in '' $ac_executable_extensions; do
9476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9477     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9479     break 2
9480   fi
9481 done
9482   done
9483 IFS=$as_save_IFS
9484
9485   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9486   ;;
9487 esac
9488 fi
9489 LN=$ac_cv_path_LN
9490 if test -n "$LN"; then
9491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9492 $as_echo "$LN" >&6; }
9493 else
9494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9495 $as_echo "no" >&6; }
9496 fi
9497
9498
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9500 $as_echo_n "checking whether ln -s works... " >&6; }
9501 LN_S=$as_ln_s
9502 if test "$LN_S" = "ln -s"; then
9503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9504 $as_echo "yes" >&6; }
9505 else
9506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9507 $as_echo "no, using $LN_S" >&6; }
9508 fi
9509
9510 # Extract the first word of "mv", so it can be a program name with args.
9511 set dummy mv; ac_word=$2
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9513 $as_echo_n "checking for $ac_word... " >&6; }
9514 if test "${ac_cv_path_MV+set}" = set; then :
9515   $as_echo_n "(cached) " >&6
9516 else
9517   case $MV in
9518   [\\/]* | ?:[\\/]*)
9519   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9520   ;;
9521   *)
9522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9523 for as_dir in $PATH
9524 do
9525   IFS=$as_save_IFS
9526   test -z "$as_dir" && as_dir=.
9527     for ac_exec_ext in '' $ac_executable_extensions; do
9528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9529     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9531     break 2
9532   fi
9533 done
9534   done
9535 IFS=$as_save_IFS
9536
9537   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9538   ;;
9539 esac
9540 fi
9541 MV=$ac_cv_path_MV
9542 if test -n "$MV"; then
9543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9544 $as_echo "$MV" >&6; }
9545 else
9546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9547 $as_echo "no" >&6; }
9548 fi
9549
9550
9551 # Extract the first word of "cp", so it can be a program name with args.
9552 set dummy cp; ac_word=$2
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9554 $as_echo_n "checking for $ac_word... " >&6; }
9555 if test "${ac_cv_path_CP+set}" = set; then :
9556   $as_echo_n "(cached) " >&6
9557 else
9558   case $CP in
9559   [\\/]* | ?:[\\/]*)
9560   ac_cv_path_CP="$CP" # Let the user override the test with a path.
9561   ;;
9562   *)
9563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9564 for as_dir in $PATH
9565 do
9566   IFS=$as_save_IFS
9567   test -z "$as_dir" && as_dir=.
9568     for ac_exec_ext in '' $ac_executable_extensions; do
9569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9570     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9572     break 2
9573   fi
9574 done
9575   done
9576 IFS=$as_save_IFS
9577
9578   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9579   ;;
9580 esac
9581 fi
9582 CP=$ac_cv_path_CP
9583 if test -n "$CP"; then
9584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9585 $as_echo "$CP" >&6; }
9586 else
9587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9588 $as_echo "no" >&6; }
9589 fi
9590
9591
9592 # Extract the first word of "rm", so it can be a program name with args.
9593 set dummy rm; ac_word=$2
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9595 $as_echo_n "checking for $ac_word... " >&6; }
9596 if test "${ac_cv_path_RM+set}" = set; then :
9597   $as_echo_n "(cached) " >&6
9598 else
9599   case $RM in
9600   [\\/]* | ?:[\\/]*)
9601   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9602   ;;
9603   *)
9604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9605 for as_dir in $PATH
9606 do
9607   IFS=$as_save_IFS
9608   test -z "$as_dir" && as_dir=.
9609     for ac_exec_ext in '' $ac_executable_extensions; do
9610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9611     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9613     break 2
9614   fi
9615 done
9616   done
9617 IFS=$as_save_IFS
9618
9619   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9620   ;;
9621 esac
9622 fi
9623 RM=$ac_cv_path_RM
9624 if test -n "$RM"; then
9625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9626 $as_echo "$RM" >&6; }
9627 else
9628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9629 $as_echo "no" >&6; }
9630 fi
9631
9632
9633 # Extract the first word of "chmod", so it can be a program name with args.
9634 set dummy chmod; ac_word=$2
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9636 $as_echo_n "checking for $ac_word... " >&6; }
9637 if test "${ac_cv_path_CHMOD+set}" = set; then :
9638   $as_echo_n "(cached) " >&6
9639 else
9640   case $CHMOD in
9641   [\\/]* | ?:[\\/]*)
9642   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9643   ;;
9644   *)
9645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9646 for as_dir in $PATH
9647 do
9648   IFS=$as_save_IFS
9649   test -z "$as_dir" && as_dir=.
9650     for ac_exec_ext in '' $ac_executable_extensions; do
9651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9652     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9654     break 2
9655   fi
9656 done
9657   done
9658 IFS=$as_save_IFS
9659
9660   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9661   ;;
9662 esac
9663 fi
9664 CHMOD=$ac_cv_path_CHMOD
9665 if test -n "$CHMOD"; then
9666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9667 $as_echo "$CHMOD" >&6; }
9668 else
9669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9670 $as_echo "no" >&6; }
9671 fi
9672
9673
9674 for ac_prog in gawk mawk nawk awk
9675 do
9676   # Extract the first word of "$ac_prog", so it can be a program name with args.
9677 set dummy $ac_prog; ac_word=$2
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9679 $as_echo_n "checking for $ac_word... " >&6; }
9680 if test "${ac_cv_prog_AWK+set}" = set; then :
9681   $as_echo_n "(cached) " >&6
9682 else
9683   if test -n "$AWK"; then
9684   ac_cv_prog_AWK="$AWK" # Let the user override the test.
9685 else
9686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9687 for as_dir in $PATH
9688 do
9689   IFS=$as_save_IFS
9690   test -z "$as_dir" && as_dir=.
9691     for ac_exec_ext in '' $ac_executable_extensions; do
9692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9693     ac_cv_prog_AWK="$ac_prog"
9694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9695     break 2
9696   fi
9697 done
9698   done
9699 IFS=$as_save_IFS
9700
9701 fi
9702 fi
9703 AWK=$ac_cv_prog_AWK
9704 if test -n "$AWK"; then
9705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9706 $as_echo "$AWK" >&6; }
9707 else
9708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9709 $as_echo "no" >&6; }
9710 fi
9711
9712
9713   test -n "$AWK" && break
9714 done
9715
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9717 $as_echo_n "checking for egrep... " >&6; }
9718 if test "${ac_cv_path_EGREP+set}" = set; then :
9719   $as_echo_n "(cached) " >&6
9720 else
9721   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9722    then ac_cv_path_EGREP="$GREP -E"
9723    else
9724      if test -z "$EGREP"; then
9725   ac_path_EGREP_found=false
9726   # Loop through the user's path and test for each of PROGNAME-LIST
9727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9728 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9729 do
9730   IFS=$as_save_IFS
9731   test -z "$as_dir" && as_dir=.
9732     for ac_prog in egrep; do
9733     for ac_exec_ext in '' $ac_executable_extensions; do
9734       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9735       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
9736 # Check for GNU ac_path_EGREP and select it if it is found.
9737   # Check for GNU $ac_path_EGREP
9738 case `"$ac_path_EGREP" --version 2>&1` in
9739 *GNU*)
9740   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9741 *)
9742   ac_count=0
9743   $as_echo_n 0123456789 >"conftest.in"
9744   while :
9745   do
9746     cat "conftest.in" "conftest.in" >"conftest.tmp"
9747     mv "conftest.tmp" "conftest.in"
9748     cp "conftest.in" "conftest.nl"
9749     $as_echo 'EGREP' >> "conftest.nl"
9750     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9751     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9752     as_fn_arith $ac_count + 1 && ac_count=$as_val
9753     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9754       # Best one so far, save it but keep looking for a better one
9755       ac_cv_path_EGREP="$ac_path_EGREP"
9756       ac_path_EGREP_max=$ac_count
9757     fi
9758     # 10*(2^10) chars as input seems more than enough
9759     test $ac_count -gt 10 && break
9760   done
9761   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9762 esac
9763
9764       $ac_path_EGREP_found && break 3
9765     done
9766   done
9767   done
9768 IFS=$as_save_IFS
9769   if test -z "$ac_cv_path_EGREP"; then
9770     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9771   fi
9772 else
9773   ac_cv_path_EGREP=$EGREP
9774 fi
9775
9776    fi
9777 fi
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9779 $as_echo "$ac_cv_path_EGREP" >&6; }
9780  EGREP="$ac_cv_path_EGREP"
9781
9782
9783 # Extract the first word of "sed", so it can be a program name with args.
9784 set dummy sed; ac_word=$2
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9786 $as_echo_n "checking for $ac_word... " >&6; }
9787 if test "${ac_cv_path_SED+set}" = set; then :
9788   $as_echo_n "(cached) " >&6
9789 else
9790   case $SED in
9791   [\\/]* | ?:[\\/]*)
9792   ac_cv_path_SED="$SED" # Let the user override the test with a path.
9793   ;;
9794   *)
9795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9796 for as_dir in $PATH
9797 do
9798   IFS=$as_save_IFS
9799   test -z "$as_dir" && as_dir=.
9800     for ac_exec_ext in '' $ac_executable_extensions; do
9801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9802     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9804     break 2
9805   fi
9806 done
9807   done
9808 IFS=$as_save_IFS
9809
9810   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9811   ;;
9812 esac
9813 fi
9814 SED=$ac_cv_path_SED
9815 if test -n "$SED"; then
9816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9817 $as_echo "$SED" >&6; }
9818 else
9819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9820 $as_echo "no" >&6; }
9821 fi
9822
9823
9824 # Extract the first word of "perl", so it can be a program name with args.
9825 set dummy perl; ac_word=$2
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9827 $as_echo_n "checking for $ac_word... " >&6; }
9828 if test "${ac_cv_path_PERL+set}" = set; then :
9829   $as_echo_n "(cached) " >&6
9830 else
9831   case $PERL in
9832   [\\/]* | ?:[\\/]*)
9833   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9834   ;;
9835   *)
9836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9837 for as_dir in $PATH
9838 do
9839   IFS=$as_save_IFS
9840   test -z "$as_dir" && as_dir=.
9841     for ac_exec_ext in '' $ac_executable_extensions; do
9842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9843     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9845     break 2
9846   fi
9847 done
9848   done
9849 IFS=$as_save_IFS
9850
9851   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9852   ;;
9853 esac
9854 fi
9855 PERL=$ac_cv_path_PERL
9856 if test -n "$PERL"; then
9857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9858 $as_echo "$PERL" >&6; }
9859 else
9860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9861 $as_echo "no" >&6; }
9862 fi
9863
9864
9865 # Extract the first word of "ldconfig", so it can be a program name with args.
9866 set dummy ldconfig; ac_word=$2
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9868 $as_echo_n "checking for $ac_word... " >&6; }
9869 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
9870   $as_echo_n "(cached) " >&6
9871 else
9872   case $LDCONFIG in
9873   [\\/]* | ?:[\\/]*)
9874   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9875   ;;
9876   *)
9877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9878 for as_dir in $PATH
9879 do
9880   IFS=$as_save_IFS
9881   test -z "$as_dir" && as_dir=.
9882     for ac_exec_ext in '' $ac_executable_extensions; do
9883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9884     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
9885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9886     break 2
9887   fi
9888 done
9889   done
9890 IFS=$as_save_IFS
9891
9892   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9893   ;;
9894 esac
9895 fi
9896 LDCONFIG=$ac_cv_path_LDCONFIG
9897 if test -n "$LDCONFIG"; then
9898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
9899 $as_echo "$LDCONFIG" >&6; }
9900 else
9901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9902 $as_echo "no" >&6; }
9903 fi
9904
9905
9906 if test -n "$ac_tool_prefix"; then
9907   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9908 set dummy ${ac_tool_prefix}ar; ac_word=$2
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9910 $as_echo_n "checking for $ac_word... " >&6; }
9911 if test "${ac_cv_prog_AR+set}" = set; then :
9912   $as_echo_n "(cached) " >&6
9913 else
9914   if test -n "$AR"; then
9915   ac_cv_prog_AR="$AR" # Let the user override the test.
9916 else
9917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9918 for as_dir in $PATH
9919 do
9920   IFS=$as_save_IFS
9921   test -z "$as_dir" && as_dir=.
9922     for ac_exec_ext in '' $ac_executable_extensions; do
9923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9924     ac_cv_prog_AR="${ac_tool_prefix}ar"
9925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9926     break 2
9927   fi
9928 done
9929   done
9930 IFS=$as_save_IFS
9931
9932 fi
9933 fi
9934 AR=$ac_cv_prog_AR
9935 if test -n "$AR"; then
9936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9937 $as_echo "$AR" >&6; }
9938 else
9939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9940 $as_echo "no" >&6; }
9941 fi
9942
9943
9944 fi
9945 if test -z "$ac_cv_prog_AR"; then
9946   ac_ct_AR=$AR
9947   # Extract the first word of "ar", so it can be a program name with args.
9948 set dummy ar; ac_word=$2
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9950 $as_echo_n "checking for $ac_word... " >&6; }
9951 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
9952   $as_echo_n "(cached) " >&6
9953 else
9954   if test -n "$ac_ct_AR"; then
9955   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9956 else
9957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9958 for as_dir in $PATH
9959 do
9960   IFS=$as_save_IFS
9961   test -z "$as_dir" && as_dir=.
9962     for ac_exec_ext in '' $ac_executable_extensions; do
9963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9964     ac_cv_prog_ac_ct_AR="ar"
9965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9966     break 2
9967   fi
9968 done
9969   done
9970 IFS=$as_save_IFS
9971
9972 fi
9973 fi
9974 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9975 if test -n "$ac_ct_AR"; then
9976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9977 $as_echo "$ac_ct_AR" >&6; }
9978 else
9979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9980 $as_echo "no" >&6; }
9981 fi
9982
9983   if test "x$ac_ct_AR" = x; then
9984     AR="ar"
9985   else
9986     case $cross_compiling:$ac_tool_warned in
9987 yes:)
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9990 ac_tool_warned=yes ;;
9991 esac
9992     AR=$ac_ct_AR
9993   fi
9994 else
9995   AR="$ac_cv_prog_AR"
9996 fi
9997
9998 if test -n "$ac_tool_prefix"; then
9999   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10000 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10002 $as_echo_n "checking for $ac_word... " >&6; }
10003 if test "${ac_cv_prog_RANLIB+set}" = set; then :
10004   $as_echo_n "(cached) " >&6
10005 else
10006   if test -n "$RANLIB"; then
10007   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10008 else
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_prog_RANLIB="${ac_tool_prefix}ranlib"
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 fi
10025 fi
10026 RANLIB=$ac_cv_prog_RANLIB
10027 if test -n "$RANLIB"; then
10028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10029 $as_echo "$RANLIB" >&6; }
10030 else
10031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10032 $as_echo "no" >&6; }
10033 fi
10034
10035
10036 fi
10037 if test -z "$ac_cv_prog_RANLIB"; then
10038   ac_ct_RANLIB=$RANLIB
10039   # Extract the first word of "ranlib", so it can be a program name with args.
10040 set dummy ranlib; 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_ac_ct_RANLIB+set}" = set; then :
10044   $as_echo_n "(cached) " >&6
10045 else
10046   if test -n "$ac_ct_RANLIB"; then
10047   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_ac_ct_RANLIB="ranlib"
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 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10067 if test -n "$ac_ct_RANLIB"; then
10068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10069 $as_echo "$ac_ct_RANLIB" >&6; }
10070 else
10071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10072 $as_echo "no" >&6; }
10073 fi
10074
10075   if test "x$ac_ct_RANLIB" = x; then
10076     RANLIB=":"
10077   else
10078     case $cross_compiling:$ac_tool_warned in
10079 yes:)
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10082 ac_tool_warned=yes ;;
10083 esac
10084     RANLIB=$ac_ct_RANLIB
10085   fi
10086 else
10087   RANLIB="$ac_cv_prog_RANLIB"
10088 fi
10089
10090 if test -n "$ac_tool_prefix"; then
10091   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10092 set dummy ${ac_tool_prefix}strip; ac_word=$2
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10094 $as_echo_n "checking for $ac_word... " >&6; }
10095 if test "${ac_cv_prog_STRIP+set}" = set; then :
10096   $as_echo_n "(cached) " >&6
10097 else
10098   if test -n "$STRIP"; then
10099   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10100 else
10101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10102 for as_dir in $PATH
10103 do
10104   IFS=$as_save_IFS
10105   test -z "$as_dir" && as_dir=.
10106     for ac_exec_ext in '' $ac_executable_extensions; do
10107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10108     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10110     break 2
10111   fi
10112 done
10113   done
10114 IFS=$as_save_IFS
10115
10116 fi
10117 fi
10118 STRIP=$ac_cv_prog_STRIP
10119 if test -n "$STRIP"; then
10120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10121 $as_echo "$STRIP" >&6; }
10122 else
10123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10124 $as_echo "no" >&6; }
10125 fi
10126
10127
10128 fi
10129 if test -z "$ac_cv_prog_STRIP"; then
10130   ac_ct_STRIP=$STRIP
10131   # Extract the first word of "strip", so it can be a program name with args.
10132 set dummy strip; 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_ac_ct_STRIP+set}" = set; then :
10136   $as_echo_n "(cached) " >&6
10137 else
10138   if test -n "$ac_ct_STRIP"; then
10139   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_ac_ct_STRIP="strip"
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 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10159 if test -n "$ac_ct_STRIP"; then
10160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10161 $as_echo "$ac_ct_STRIP" >&6; }
10162 else
10163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10164 $as_echo "no" >&6; }
10165 fi
10166
10167   if test "x$ac_ct_STRIP" = x; then
10168     STRIP=":"
10169   else
10170     case $cross_compiling:$ac_tool_warned in
10171 yes:)
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10174 ac_tool_warned=yes ;;
10175 esac
10176     STRIP=$ac_ct_STRIP
10177   fi
10178 else
10179   STRIP="$ac_cv_prog_STRIP"
10180 fi
10181
10182 # Extract the first word of "makeinfo", so it can be a program name with args.
10183 set dummy makeinfo; ac_word=$2
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10185 $as_echo_n "checking for $ac_word... " >&6; }
10186 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
10187   $as_echo_n "(cached) " >&6
10188 else
10189   if test -n "$MAKEINFO"; then
10190   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10191 else
10192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10193 for as_dir in $PATH
10194 do
10195   IFS=$as_save_IFS
10196   test -z "$as_dir" && as_dir=.
10197     for ac_exec_ext in '' $ac_executable_extensions; do
10198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10199     ac_cv_prog_MAKEINFO="makeinfo"
10200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10201     break 2
10202   fi
10203 done
10204   done
10205 IFS=$as_save_IFS
10206
10207 fi
10208 fi
10209 MAKEINFO=$ac_cv_prog_MAKEINFO
10210 if test -n "$MAKEINFO"; then
10211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10212 $as_echo "$MAKEINFO" >&6; }
10213 else
10214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10215 $as_echo "no" >&6; }
10216 fi
10217
10218
10219 if test "_$MAKEINFO" = "_"; then
10220     MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10221 else
10222     case "$MAKEINFO" in
10223       */missing.*)
10224         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10225 *** Makeinfo is missing. Info documentation will not be built." >&5
10226 $as_echo "$as_me: WARNING:
10227 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10228         ;;
10229       *)
10230         ;;
10231     esac
10232 fi
10233
10234
10235 # See if we need a separate native compiler.
10236 if test $cross_compiling = no; then
10237   BUILD_CC="$CC"
10238
10239 else
10240   for ac_prog in gcc cc
10241 do
10242   # Extract the first word of "$ac_prog", so it can be a program name with args.
10243 set dummy $ac_prog; ac_word=$2
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10245 $as_echo_n "checking for $ac_word... " >&6; }
10246 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
10247   $as_echo_n "(cached) " >&6
10248 else
10249   if test -n "$BUILD_CC"; then
10250   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10251 else
10252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10253 for as_dir in $PATH
10254 do
10255   IFS=$as_save_IFS
10256   test -z "$as_dir" && as_dir=.
10257     for ac_exec_ext in '' $ac_executable_extensions; do
10258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10259     ac_cv_prog_BUILD_CC="$ac_prog"
10260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10261     break 2
10262   fi
10263 done
10264   done
10265 IFS=$as_save_IFS
10266
10267 fi
10268 fi
10269 BUILD_CC=$ac_cv_prog_BUILD_CC
10270 if test -n "$BUILD_CC"; then
10271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10272 $as_echo "$BUILD_CC" >&6; }
10273 else
10274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10275 $as_echo "no" >&6; }
10276 fi
10277
10278
10279   test -n "$BUILD_CC" && break
10280 done
10281
10282 fi
10283 for ac_header in        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
10284 do :
10285   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10286 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10287 eval as_val=\$$as_ac_Header
10288    if test "x$as_val" = x""yes; then :
10289   cat >>confdefs.h <<_ACEOF
10290 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10291 _ACEOF
10292
10293 fi
10294
10295 done
10296
10297 for ac_header in sys/disk.h sys/mount.h
10298 do :
10299   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10300 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10301 #if HAVE_SYS_QUEUE_H
10302 #include <sys/queue.h>
10303 #endif
10304
10305 "
10306 eval as_val=\$$as_ac_Header
10307    if test "x$as_val" = x""yes; then :
10308   cat >>confdefs.h <<_ACEOF
10309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10310 _ACEOF
10311
10312 fi
10313
10314 done
10315
10316 for ac_header in net/if.h
10317 do :
10318   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10319 #if HAVE_SYS_TYPES_H
10320 #include <sys/types.h>
10321 #endif
10322 #if HAVE_SYS_SOCKET
10323 #include <sys/socket.h>
10324 #endif
10325
10326 "
10327 if test "x$ac_cv_header_net_if_h" = x""yes; then :
10328   cat >>confdefs.h <<_ACEOF
10329 #define HAVE_NET_IF_H 1
10330 _ACEOF
10331
10332 fi
10333
10334 done
10335
10336 for ac_func in vprintf
10337 do :
10338   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10339 if test "x$ac_cv_func_vprintf" = x""yes; then :
10340   cat >>confdefs.h <<_ACEOF
10341 #define HAVE_VPRINTF 1
10342 _ACEOF
10343
10344 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10345 if test "x$ac_cv_func__doprnt" = x""yes; then :
10346
10347 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10348
10349 fi
10350
10351 fi
10352 done
10353
10354
10355 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10356 "
10357 if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then :
10358
10359 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10360
10361 fi
10362
10363 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10364 "
10365 if test "x$ac_cv_type_ssize_t" = x""yes; then :
10366
10367 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10368
10369 fi
10370
10371 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10372 "
10373 if test "x$ac_cv_have_decl_llseek" = x""yes; then :
10374
10375 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10376
10377 fi
10378
10379 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10380                  #define _LARGEFILE64_SOURCE
10381                  #include <unistd.h>
10382 "
10383 if test "x$ac_cv_have_decl_lseek64" = x""yes; then :
10384
10385 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10386
10387 fi
10388
10389 # The cast to long int works around a bug in the HP C Compiler
10390 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10391 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10392 # This bug is HP SR number 8606223364.
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10394 $as_echo_n "checking size of short... " >&6; }
10395 if test "${ac_cv_sizeof_short+set}" = set; then :
10396   $as_echo_n "(cached) " >&6
10397 else
10398   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
10399
10400 else
10401   if test "$ac_cv_type_short" = yes; then
10402      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10404 { as_fn_set_status 77
10405 as_fn_error "cannot compute sizeof (short)
10406 See \`config.log' for more details." "$LINENO" 5; }; }
10407    else
10408      ac_cv_sizeof_short=0
10409    fi
10410 fi
10411
10412 fi
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10414 $as_echo "$ac_cv_sizeof_short" >&6; }
10415
10416
10417
10418 cat >>confdefs.h <<_ACEOF
10419 #define SIZEOF_SHORT $ac_cv_sizeof_short
10420 _ACEOF
10421
10422
10423 # The cast to long int works around a bug in the HP C Compiler
10424 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10425 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10426 # This bug is HP SR number 8606223364.
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10428 $as_echo_n "checking size of int... " >&6; }
10429 if test "${ac_cv_sizeof_int+set}" = set; then :
10430   $as_echo_n "(cached) " >&6
10431 else
10432   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
10433
10434 else
10435   if test "$ac_cv_type_int" = yes; then
10436      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10438 { as_fn_set_status 77
10439 as_fn_error "cannot compute sizeof (int)
10440 See \`config.log' for more details." "$LINENO" 5; }; }
10441    else
10442      ac_cv_sizeof_int=0
10443    fi
10444 fi
10445
10446 fi
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10448 $as_echo "$ac_cv_sizeof_int" >&6; }
10449
10450
10451
10452 cat >>confdefs.h <<_ACEOF
10453 #define SIZEOF_INT $ac_cv_sizeof_int
10454 _ACEOF
10455
10456
10457 # The cast to long int works around a bug in the HP C Compiler
10458 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10459 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10460 # This bug is HP SR number 8606223364.
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10462 $as_echo_n "checking size of long... " >&6; }
10463 if test "${ac_cv_sizeof_long+set}" = set; then :
10464   $as_echo_n "(cached) " >&6
10465 else
10466   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
10467
10468 else
10469   if test "$ac_cv_type_long" = yes; then
10470      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10472 { as_fn_set_status 77
10473 as_fn_error "cannot compute sizeof (long)
10474 See \`config.log' for more details." "$LINENO" 5; }; }
10475    else
10476      ac_cv_sizeof_long=0
10477    fi
10478 fi
10479
10480 fi
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10482 $as_echo "$ac_cv_sizeof_long" >&6; }
10483
10484
10485
10486 cat >>confdefs.h <<_ACEOF
10487 #define SIZEOF_LONG $ac_cv_sizeof_long
10488 _ACEOF
10489
10490
10491 # The cast to long int works around a bug in the HP C Compiler
10492 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10493 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10494 # This bug is HP SR number 8606223364.
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10496 $as_echo_n "checking size of long long... " >&6; }
10497 if test "${ac_cv_sizeof_long_long+set}" = set; then :
10498   $as_echo_n "(cached) " >&6
10499 else
10500   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
10501
10502 else
10503   if test "$ac_cv_type_long_long" = yes; then
10504      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10506 { as_fn_set_status 77
10507 as_fn_error "cannot compute sizeof (long long)
10508 See \`config.log' for more details." "$LINENO" 5; }; }
10509    else
10510      ac_cv_sizeof_long_long=0
10511    fi
10512 fi
10513
10514 fi
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10516 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10517
10518
10519
10520 cat >>confdefs.h <<_ACEOF
10521 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10522 _ACEOF
10523
10524
10525 SIZEOF_SHORT=$ac_cv_sizeof_short
10526 SIZEOF_INT=$ac_cv_sizeof_int
10527 SIZEOF_LONG=$ac_cv_sizeof_long
10528 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10529
10530
10531
10532
10533  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10534 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10535 if test "${ac_cv_c_bigendian+set}" = set; then :
10536   $as_echo_n "(cached) " >&6
10537 else
10538   ac_cv_c_bigendian=unknown
10539     # See if we're dealing with a universal compiler.
10540     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10541 /* end confdefs.h.  */
10542 #ifndef __APPLE_CC__
10543                not a universal capable compiler
10544              #endif
10545              typedef int dummy;
10546
10547 _ACEOF
10548 if ac_fn_c_try_compile "$LINENO"; then :
10549
10550         # Check for potential -arch flags.  It is not universal unless
10551         # there are at least two -arch flags with different values.
10552         ac_arch=
10553         ac_prev=
10554         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10555          if test -n "$ac_prev"; then
10556            case $ac_word in
10557              i?86 | x86_64 | ppc | ppc64)
10558                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10559                  ac_arch=$ac_word
10560                else
10561                  ac_cv_c_bigendian=universal
10562                  break
10563                fi
10564                ;;
10565            esac
10566            ac_prev=
10567          elif test "x$ac_word" = "x-arch"; then
10568            ac_prev=arch
10569          fi
10570        done
10571 fi
10572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10573     if test $ac_cv_c_bigendian = unknown; then
10574       # See if sys/param.h defines the BYTE_ORDER macro.
10575       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10576 /* end confdefs.h.  */
10577 #include <sys/types.h>
10578              #include <sys/param.h>
10579
10580 int
10581 main ()
10582 {
10583 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10584                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10585                      && LITTLE_ENDIAN)
10586               bogus endian macros
10587              #endif
10588
10589   ;
10590   return 0;
10591 }
10592 _ACEOF
10593 if ac_fn_c_try_compile "$LINENO"; then :
10594   # It does; now see whether it defined to BIG_ENDIAN or not.
10595          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10596 /* end confdefs.h.  */
10597 #include <sys/types.h>
10598                 #include <sys/param.h>
10599
10600 int
10601 main ()
10602 {
10603 #if BYTE_ORDER != BIG_ENDIAN
10604                  not big endian
10605                 #endif
10606
10607   ;
10608   return 0;
10609 }
10610 _ACEOF
10611 if ac_fn_c_try_compile "$LINENO"; then :
10612   ac_cv_c_bigendian=yes
10613 else
10614   ac_cv_c_bigendian=no
10615 fi
10616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10617 fi
10618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10619     fi
10620     if test $ac_cv_c_bigendian = unknown; then
10621       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10622       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623 /* end confdefs.h.  */
10624 #include <limits.h>
10625
10626 int
10627 main ()
10628 {
10629 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10630               bogus endian macros
10631              #endif
10632
10633   ;
10634   return 0;
10635 }
10636 _ACEOF
10637 if ac_fn_c_try_compile "$LINENO"; then :
10638   # It does; now see whether it defined to _BIG_ENDIAN or not.
10639          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10640 /* end confdefs.h.  */
10641 #include <limits.h>
10642
10643 int
10644 main ()
10645 {
10646 #ifndef _BIG_ENDIAN
10647                  not big endian
10648                 #endif
10649
10650   ;
10651   return 0;
10652 }
10653 _ACEOF
10654 if ac_fn_c_try_compile "$LINENO"; then :
10655   ac_cv_c_bigendian=yes
10656 else
10657   ac_cv_c_bigendian=no
10658 fi
10659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10660 fi
10661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10662     fi
10663     if test $ac_cv_c_bigendian = unknown; then
10664       # Compile a test program.
10665       if test "$cross_compiling" = yes; then :
10666   # Try to guess by grepping values from an object file.
10667          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h.  */
10669 short int ascii_mm[] =
10670                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10671                 short int ascii_ii[] =
10672                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10673                 int use_ascii (int i) {
10674                   return ascii_mm[i] + ascii_ii[i];
10675                 }
10676                 short int ebcdic_ii[] =
10677                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10678                 short int ebcdic_mm[] =
10679                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10680                 int use_ebcdic (int i) {
10681                   return ebcdic_mm[i] + ebcdic_ii[i];
10682                 }
10683                 extern int foo;
10684
10685 int
10686 main ()
10687 {
10688 return use_ascii (foo) == use_ebcdic (foo);
10689   ;
10690   return 0;
10691 }
10692 _ACEOF
10693 if ac_fn_c_try_compile "$LINENO"; then :
10694   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10695               ac_cv_c_bigendian=yes
10696             fi
10697             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10698               if test "$ac_cv_c_bigendian" = unknown; then
10699                 ac_cv_c_bigendian=no
10700               else
10701                 # finding both strings is unlikely to happen, but who knows?
10702                 ac_cv_c_bigendian=unknown
10703               fi
10704             fi
10705 fi
10706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10707 else
10708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h.  */
10710 $ac_includes_default
10711 int
10712 main ()
10713 {
10714
10715              /* Are we little or big endian?  From Harbison&Steele.  */
10716              union
10717              {
10718                long int l;
10719                char c[sizeof (long int)];
10720              } u;
10721              u.l = 1;
10722              return u.c[sizeof (long int) - 1] == 1;
10723
10724   ;
10725   return 0;
10726 }
10727 _ACEOF
10728 if ac_fn_c_try_run "$LINENO"; then :
10729   ac_cv_c_bigendian=no
10730 else
10731   ac_cv_c_bigendian=yes
10732 fi
10733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10734   conftest.$ac_objext conftest.beam conftest.$ac_ext
10735 fi
10736
10737     fi
10738 fi
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10740 $as_echo "$ac_cv_c_bigendian" >&6; }
10741  case $ac_cv_c_bigendian in #(
10742    yes)
10743      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10744 ;; #(
10745    no)
10746       ;; #(
10747    universal)
10748
10749 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10750
10751      ;; #(
10752    *)
10753      as_fn_error "unknown endianness
10754  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10755  esac
10756
10757 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10758 ASM_TYPES_HEADER=./asm_types.h
10759
10760 echo "/* These defines are needed for the public ext2fs.h header file */" \
10761      > public_config.h
10762 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10763   uniq tmp_config.$$ >> public_config.h
10764 else
10765   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10766 fi
10767 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10768   uniq tmp_config.$$ >> public_config.h
10769 else
10770   echo "#undef WORDS_BIGENDIAN" >> public_config.h
10771 fi
10772 rm -f tmp_config.$$
10773 PUBLIC_CONFIG_HEADER=./public_config.h
10774
10775 for ac_header in inttypes.h
10776 do :
10777   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10778 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
10779   cat >>confdefs.h <<_ACEOF
10780 #define HAVE_INTTYPES_H 1
10781 _ACEOF
10782
10783 fi
10784
10785 done
10786
10787 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10788 if test "x$ac_cv_type_intptr_t" = x""yes; then :
10789
10790 cat >>confdefs.h <<_ACEOF
10791 #define HAVE_INTPTR_T 1
10792 _ACEOF
10793
10794
10795 fi
10796
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10798 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10799 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then :
10800   $as_echo_n "(cached) " >&6
10801 else
10802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10803 /* end confdefs.h.  */
10804 #include <sys/stat.h>
10805 int
10806 main ()
10807 {
10808 struct stat stat; stat.st_flags = 0;
10809   ;
10810   return 0;
10811 }
10812 _ACEOF
10813 if ac_fn_c_try_compile "$LINENO"; then :
10814   e2fsprogs_cv_struct_st_flags=yes
10815 else
10816   e2fsprogs_cv_struct_st_flags=no
10817 fi
10818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10819 fi
10820
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10822 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10823 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10825 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10826   if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then :
10827   $as_echo_n "(cached) " >&6
10828 else
10829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10830 /* end confdefs.h.  */
10831 #include <sys/stat.h>
10832 int
10833 main ()
10834 {
10835 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
10836   ;
10837   return 0;
10838 }
10839 _ACEOF
10840 if ac_fn_c_try_compile "$LINENO"; then :
10841   e2fsprogs_cv_struct_st_flags_immut=yes
10842 else
10843   e2fsprogs_cv_struct_st_flags_immut=no
10844 fi
10845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10846 fi
10847
10848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
10849 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
10850   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
10851
10852 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
10853
10854   fi
10855 fi
10856 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10857          #include <sys/socket.h>
10858 "
10859 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
10860
10861 cat >>confdefs.h <<_ACEOF
10862 #define HAVE_SA_LEN 1
10863 _ACEOF
10864
10865 fi
10866
10867 if test -n "$BLKID_CMT"; then
10868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
10869 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
10870 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10871   $as_echo_n "(cached) " >&6
10872 else
10873   ac_func_search_save_LIBS=$LIBS
10874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10875 /* end confdefs.h.  */
10876
10877 /* Override any GCC internal prototype to avoid an error.
10878    Use char because int might match the return type of a GCC
10879    builtin and then its argument prototype would still apply.  */
10880 #ifdef __cplusplus
10881 extern "C"
10882 #endif
10883 char blkid_probe_all ();
10884 int
10885 main ()
10886 {
10887 return blkid_probe_all ();
10888   ;
10889   return 0;
10890 }
10891 _ACEOF
10892 for ac_lib in '' blkid; do
10893   if test -z "$ac_lib"; then
10894     ac_res="none required"
10895   else
10896     ac_res=-l$ac_lib
10897     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10898   fi
10899   if ac_fn_c_try_link "$LINENO"; then :
10900   ac_cv_search_blkid_probe_all=$ac_res
10901 fi
10902 rm -f core conftest.err conftest.$ac_objext \
10903     conftest$ac_exeext
10904   if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10905   break
10906 fi
10907 done
10908 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10909
10910 else
10911   ac_cv_search_blkid_probe_all=no
10912 fi
10913 rm conftest.$ac_ext
10914 LIBS=$ac_func_search_save_LIBS
10915 fi
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
10917 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
10918 ac_res=$ac_cv_search_blkid_probe_all
10919 if test "$ac_res" != no; then :
10920   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10921
10922 fi
10923
10924 fi
10925 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
10926 do :
10927   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10928 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10929 eval as_val=\$$as_ac_var
10930    if test "x$as_val" = x""yes; then :
10931   cat >>confdefs.h <<_ACEOF
10932 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10933 _ACEOF
10934
10935 fi
10936 done
10937
10938 SOCKET_LIB=''
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10940 $as_echo_n "checking for socket in -lsocket... " >&6; }
10941 if test "${ac_cv_lib_socket_socket+set}" = set; then :
10942   $as_echo_n "(cached) " >&6
10943 else
10944   ac_check_lib_save_LIBS=$LIBS
10945 LIBS="-lsocket  $LIBS"
10946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h.  */
10948
10949 /* Override any GCC internal prototype to avoid an error.
10950    Use char because int might match the return type of a GCC
10951    builtin and then its argument prototype would still apply.  */
10952 #ifdef __cplusplus
10953 extern "C"
10954 #endif
10955 char socket ();
10956 int
10957 main ()
10958 {
10959 return socket ();
10960   ;
10961   return 0;
10962 }
10963 _ACEOF
10964 if ac_fn_c_try_link "$LINENO"; then :
10965   ac_cv_lib_socket_socket=yes
10966 else
10967   ac_cv_lib_socket_socket=no
10968 fi
10969 rm -f core conftest.err conftest.$ac_objext \
10970     conftest$ac_exeext conftest.$ac_ext
10971 LIBS=$ac_check_lib_save_LIBS
10972 fi
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10974 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10975 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
10976   SOCKET_LIB=-lsocket
10977 fi
10978
10979
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
10981 $as_echo_n "checking for optreset... " >&6; }
10982 if test "${ac_cv_have_optreset+set}" = set; then :
10983   $as_echo_n "(cached) " >&6
10984 else
10985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10986 /* end confdefs.h.  */
10987 #include <unistd.h>
10988
10989 _ACEOF
10990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10991   $EGREP "optreset" >/dev/null 2>&1; then :
10992   ac_cv_have_optreset=yes
10993 else
10994   ac_cv_have_optreset=no
10995 fi
10996 rm -f conftest*
10997
10998 fi
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11000 $as_echo "$ac_cv_have_optreset" >&6; }
11001 if test $ac_cv_have_optreset = yes; then
11002
11003 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11004
11005 fi
11006
11007 SEM_INIT_LIB=''
11008 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11009 if test "x$ac_cv_func_sem_init" = x""yes; then :
11010
11011 else
11012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11013 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11014 if test "${ac_cv_lib_pthread_sem_init+set}" = set; then :
11015   $as_echo_n "(cached) " >&6
11016 else
11017   ac_check_lib_save_LIBS=$LIBS
11018 LIBS="-lpthread  $LIBS"
11019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11020 /* end confdefs.h.  */
11021
11022 /* Override any GCC internal prototype to avoid an error.
11023    Use char because int might match the return type of a GCC
11024    builtin and then its argument prototype would still apply.  */
11025 #ifdef __cplusplus
11026 extern "C"
11027 #endif
11028 char sem_init ();
11029 int
11030 main ()
11031 {
11032 return sem_init ();
11033   ;
11034   return 0;
11035 }
11036 _ACEOF
11037 if ac_fn_c_try_link "$LINENO"; then :
11038   ac_cv_lib_pthread_sem_init=yes
11039 else
11040   ac_cv_lib_pthread_sem_init=no
11041 fi
11042 rm -f core conftest.err conftest.$ac_objext \
11043     conftest$ac_exeext conftest.$ac_ext
11044 LIBS=$ac_check_lib_save_LIBS
11045 fi
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11047 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11048 if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then :
11049   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11050
11051         SEM_INIT_LIB=-lpthread
11052 else
11053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11054 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11055 if test "${ac_cv_lib_rt_sem_init+set}" = set; then :
11056   $as_echo_n "(cached) " >&6
11057 else
11058   ac_check_lib_save_LIBS=$LIBS
11059 LIBS="-lrt  $LIBS"
11060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11061 /* end confdefs.h.  */
11062
11063 /* Override any GCC internal prototype to avoid an error.
11064    Use char because int might match the return type of a GCC
11065    builtin and then its argument prototype would still apply.  */
11066 #ifdef __cplusplus
11067 extern "C"
11068 #endif
11069 char sem_init ();
11070 int
11071 main ()
11072 {
11073 return sem_init ();
11074   ;
11075   return 0;
11076 }
11077 _ACEOF
11078 if ac_fn_c_try_link "$LINENO"; then :
11079   ac_cv_lib_rt_sem_init=yes
11080 else
11081   ac_cv_lib_rt_sem_init=no
11082 fi
11083 rm -f core conftest.err conftest.$ac_objext \
11084     conftest$ac_exeext conftest.$ac_ext
11085 LIBS=$ac_check_lib_save_LIBS
11086 fi
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11088 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11089 if test "x$ac_cv_lib_rt_sem_init" = x""yes; then :
11090   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11091
11092         SEM_INIT_LIB=-lrt
11093 else
11094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11095 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11096 if test "${ac_cv_lib_posix4_sem_init+set}" = set; then :
11097   $as_echo_n "(cached) " >&6
11098 else
11099   ac_check_lib_save_LIBS=$LIBS
11100 LIBS="-lposix4  $LIBS"
11101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11102 /* end confdefs.h.  */
11103
11104 /* Override any GCC internal prototype to avoid an error.
11105    Use char because int might match the return type of a GCC
11106    builtin and then its argument prototype would still apply.  */
11107 #ifdef __cplusplus
11108 extern "C"
11109 #endif
11110 char sem_init ();
11111 int
11112 main ()
11113 {
11114 return sem_init ();
11115   ;
11116   return 0;
11117 }
11118 _ACEOF
11119 if ac_fn_c_try_link "$LINENO"; then :
11120   ac_cv_lib_posix4_sem_init=yes
11121 else
11122   ac_cv_lib_posix4_sem_init=no
11123 fi
11124 rm -f core conftest.err conftest.$ac_objext \
11125     conftest$ac_exeext conftest.$ac_ext
11126 LIBS=$ac_check_lib_save_LIBS
11127 fi
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11129 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11130 if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then :
11131   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11132
11133         SEM_INIT_LIB=-lposix4
11134 fi
11135
11136 fi
11137
11138 fi
11139
11140 fi
11141
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11143 $as_echo_n "checking for unified diff option... " >&6; }
11144 if diff -u $0 $0 > /dev/null 2>&1 ; then
11145    UNI_DIFF_OPTS=-u
11146 else
11147    UNI_DIFF_OPTS=-c
11148 fi
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11150 $as_echo "$UNI_DIFF_OPTS" >&6; }
11151
11152 case "$host_os" in
11153 linux*)
11154
11155 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11156
11157         ;;
11158 esac
11159 LINUX_CMT="#"
11160 CYGWIN_CMT="#"
11161 UNIX_CMT=
11162 case "$host_os" in
11163 linux*)
11164         LINUX_CMT=
11165         ;;
11166 cygwin)
11167         CYGWIN_CMT=
11168         UNIX_CMT="#"
11169         ;;
11170 esac
11171
11172
11173
11174 case "$host_os" in
11175 linux* | gnu* | k*bsd*-gnu)
11176         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11177                 root_prefix="";
11178                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11179 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11180         fi
11181         ;;
11182 esac
11183 case "$host_os" in
11184 linux* | gnu* | k*bsd*-gnu)
11185         if test "$prefix" = NONE ; then
11186                 prefix="/usr";
11187                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11188 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11189                 if test "$mandir" = '${prefix}/man' ; then
11190                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11191 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11192                         mandir=/usr/share/man
11193                 fi
11194         fi
11195 ;;
11196 esac
11197 if test "$root_prefix" = NONE ; then
11198         if test "$prefix" = NONE ; then
11199                 root_prefix="$ac_default_prefix"
11200         else
11201                 root_prefix="$prefix"
11202         fi
11203         root_bindir=$bindir
11204         root_sbindir=$sbindir
11205         root_libdir=$libdir
11206         root_sysconfdir=$sysconfdir
11207 else
11208         root_bindir='${root_prefix}/bin'
11209         root_sbindir='${root_prefix}/sbin'
11210         root_libdir='${root_prefix}/lib'
11211         root_sysconfdir='${root_prefix}/etc'
11212 fi
11213 if test "$bindir" != '${exec_prefix}/bin'; then
11214     root_bindir=$bindir
11215     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11216 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11217 fi
11218 if test "$sbindir" != '${exec_prefix}/sbin'; then
11219     root_sbindir=$sbindir
11220     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11221 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11222 fi
11223 if test "$libdir" != '${exec_prefix}/lib'; then
11224     root_libdir=$libdir
11225     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11226 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11227 fi
11228 if test "$sysconfdir" != '${prefix}/etc'; then
11229     root_sysconfdir=$sysconfdir
11230     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11231 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11232 fi
11233
11234
11235
11236
11237
11238
11239 # Check whether --with-multiarch was given.
11240 if test "${with_multiarch+set}" = set; then :
11241   withval=$with_multiarch; libdir=$libdir/$withval
11242 root_libdir=$root_libdir/$withval
11243
11244 fi
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5
11246 $as_echo_n "checking whether linker accepts -static... " >&6; }
11247 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then :
11248   $as_echo_n "(cached) " >&6
11249 else
11250   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11252 /* end confdefs.h.  */
11253 #include <stdio.h>
11254 int
11255 main ()
11256 {
11257 fflush(stdout);
11258   ;
11259   return 0;
11260 }
11261 _ACEOF
11262 if ac_fn_c_try_link "$LINENO"; then :
11263   ac_cv_e2fsprogs_use_static=yes
11264 else
11265   ac_cv_e2fsprogs_use_static=no
11266 fi
11267 rm -f core conftest.err conftest.$ac_objext \
11268     conftest$ac_exeext conftest.$ac_ext
11269 LDFLAGS=$SAVE_LDFLAGS
11270 fi
11271
11272 case "$host_os" in
11273 solaris2.*)
11274         ac_cv_e2fsprogs_use_static=no
11275 ;;
11276 esac
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11278 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11279 LDFLAG_STATIC=
11280 if test $ac_cv_e2fsprogs_use_static = yes; then
11281         LDFLAG_STATIC=-static
11282 fi
11283
11284 case "$host_os" in
11285 darwin*)
11286         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11287 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11288
11289 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11290
11291         ;;
11292 esac
11293 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11294 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11295
11296
11297 if test "$cross_compiling" = yes ; then
11298   DO_TEST_SUITE=
11299 else
11300   DO_TEST_SUITE=check
11301 fi
11302
11303 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11304 if test -n "$CPPFLAGS" ; then
11305         INCLUDES="$INCLUDES $CPPFLAGS"
11306 fi
11307 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11308         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11309 fi
11310
11311 if test $cross_compiling = no; then
11312    BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
11313    BUILD_LDFLAGS="$LDFLAGS"
11314 else
11315    BUILD_CFLAGS=
11316    BUILD_LDFLAGS=
11317 fi
11318
11319
11320 test -d lib || mkdir lib
11321 test -d include || mkdir include
11322 test -d include/linux || mkdir include/linux
11323 test -d include/asm || mkdir include/asm
11324 for i in MCONFIG Makefile e2fsprogs.spec \
11325         e2fsprogs-RHEL-6.spec \
11326         e2fsprogs-SUSE_LINUX-11.spec \
11327         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11328         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11329         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11330         lib/uuid/Makefile lib/uuid/uuid_types.h \
11331         lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11332         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11333         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11334         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11335         debugfs/Makefile tests/Makefile tests/progs/Makefile \
11336         resize/Makefile doc/Makefile intl/Makefile \
11337         intl/libgnuintl.h po/Makefile.in ; do
11338         if test -d `dirname ${srcdir}/$i` ; then
11339                 outlist="$outlist $i"
11340         fi
11341 done
11342 ac_config_files="$ac_config_files $outlist"
11343
11344 cat >confcache <<\_ACEOF
11345 # This file is a shell script that caches the results of configure
11346 # tests run on this system so they can be shared between configure
11347 # scripts and configure runs, see configure's option --config-cache.
11348 # It is not useful on other systems.  If it contains results you don't
11349 # want to keep, you may remove or edit it.
11350 #
11351 # config.status only pays attention to the cache file if you give it
11352 # the --recheck option to rerun configure.
11353 #
11354 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11355 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11356 # following values.
11357
11358 _ACEOF
11359
11360 # The following way of writing the cache mishandles newlines in values,
11361 # but we know of no workaround that is simple, portable, and efficient.
11362 # So, we kill variables containing newlines.
11363 # Ultrix sh set writes to stderr and can't be redirected directly,
11364 # and sets the high bit in the cache file unless we assign to the vars.
11365 (
11366   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11367     eval ac_val=\$$ac_var
11368     case $ac_val in #(
11369     *${as_nl}*)
11370       case $ac_var in #(
11371       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11372 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11373       esac
11374       case $ac_var in #(
11375       _ | IFS | as_nl) ;; #(
11376       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11377       *) { eval $ac_var=; unset $ac_var;} ;;
11378       esac ;;
11379     esac
11380   done
11381
11382   (set) 2>&1 |
11383     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11384     *${as_nl}ac_space=\ *)
11385       # `set' does not quote correctly, so add quotes: double-quote
11386       # substitution turns \\\\ into \\, and sed turns \\ into \.
11387       sed -n \
11388         "s/'/'\\\\''/g;
11389           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11390       ;; #(
11391     *)
11392       # `set' quotes correctly as required by POSIX, so do not add quotes.
11393       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11394       ;;
11395     esac |
11396     sort
11397 ) |
11398   sed '
11399      /^ac_cv_env_/b end
11400      t clear
11401      :clear
11402      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11403      t end
11404      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11405      :end' >>confcache
11406 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11407   if test -w "$cache_file"; then
11408     test "x$cache_file" != "x/dev/null" &&
11409       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11410 $as_echo "$as_me: updating cache $cache_file" >&6;}
11411     cat confcache >$cache_file
11412   else
11413     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11414 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11415   fi
11416 fi
11417 rm -f confcache
11418
11419 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11420 # Let make expand exec_prefix.
11421 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11422
11423 DEFS=-DHAVE_CONFIG_H
11424
11425 ac_libobjs=
11426 ac_ltlibobjs=
11427 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11428   # 1. Remove the extension, and $U if already installed.
11429   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11430   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11431   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11432   #    will be set to the directory where LIBOBJS objects are built.
11433   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11434   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11435 done
11436 LIBOBJS=$ac_libobjs
11437
11438 LTLIBOBJS=$ac_ltlibobjs
11439
11440
11441
11442
11443 : ${CONFIG_STATUS=./config.status}
11444 ac_write_fail=0
11445 ac_clean_files_save=$ac_clean_files
11446 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11448 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11449 as_write_fail=0
11450 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11451 #! $SHELL
11452 # Generated by $as_me.
11453 # Run this file to recreate the current configuration.
11454 # Compiler output produced by configure, useful for debugging
11455 # configure, is in config.log if it exists.
11456
11457 debug=false
11458 ac_cs_recheck=false
11459 ac_cs_silent=false
11460
11461 SHELL=\${CONFIG_SHELL-$SHELL}
11462 export SHELL
11463 _ASEOF
11464 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11465 ## -------------------- ##
11466 ## M4sh Initialization. ##
11467 ## -------------------- ##
11468
11469 # Be more Bourne compatible
11470 DUALCASE=1; export DUALCASE # for MKS sh
11471 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11472   emulate sh
11473   NULLCMD=:
11474   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11475   # is contrary to our usage.  Disable this feature.
11476   alias -g '${1+"$@"}'='"$@"'
11477   setopt NO_GLOB_SUBST
11478 else
11479   case `(set -o) 2>/dev/null` in #(
11480   *posix*) :
11481     set -o posix ;; #(
11482   *) :
11483      ;;
11484 esac
11485 fi
11486
11487
11488 as_nl='
11489 '
11490 export as_nl
11491 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11492 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11493 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11494 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11495 # Prefer a ksh shell builtin over an external printf program on Solaris,
11496 # but without wasting forks for bash or zsh.
11497 if test -z "$BASH_VERSION$ZSH_VERSION" \
11498     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11499   as_echo='print -r --'
11500   as_echo_n='print -rn --'
11501 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11502   as_echo='printf %s\n'
11503   as_echo_n='printf %s'
11504 else
11505   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11506     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11507     as_echo_n='/usr/ucb/echo -n'
11508   else
11509     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11510     as_echo_n_body='eval
11511       arg=$1;
11512       case $arg in #(
11513       *"$as_nl"*)
11514         expr "X$arg" : "X\\(.*\\)$as_nl";
11515         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11516       esac;
11517       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11518     '
11519     export as_echo_n_body
11520     as_echo_n='sh -c $as_echo_n_body as_echo'
11521   fi
11522   export as_echo_body
11523   as_echo='sh -c $as_echo_body as_echo'
11524 fi
11525
11526 # The user is always right.
11527 if test "${PATH_SEPARATOR+set}" != set; then
11528   PATH_SEPARATOR=:
11529   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11530     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11531       PATH_SEPARATOR=';'
11532   }
11533 fi
11534
11535
11536 # IFS
11537 # We need space, tab and new line, in precisely that order.  Quoting is
11538 # there to prevent editors from complaining about space-tab.
11539 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11540 # splitting by setting IFS to empty value.)
11541 IFS=" ""        $as_nl"
11542
11543 # Find who we are.  Look in the path if we contain no directory separator.
11544 case $0 in #((
11545   *[\\/]* ) as_myself=$0 ;;
11546   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11547 for as_dir in $PATH
11548 do
11549   IFS=$as_save_IFS
11550   test -z "$as_dir" && as_dir=.
11551     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11552   done
11553 IFS=$as_save_IFS
11554
11555      ;;
11556 esac
11557 # We did not find ourselves, most probably we were run as `sh COMMAND'
11558 # in which case we are not to be found in the path.
11559 if test "x$as_myself" = x; then
11560   as_myself=$0
11561 fi
11562 if test ! -f "$as_myself"; then
11563   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11564   exit 1
11565 fi
11566
11567 # Unset variables that we do not need and which cause bugs (e.g. in
11568 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11569 # suppresses any "Segmentation fault" message there.  '((' could
11570 # trigger a bug in pdksh 5.2.14.
11571 for as_var in BASH_ENV ENV MAIL MAILPATH
11572 do eval test x\${$as_var+set} = xset \
11573   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11574 done
11575 PS1='$ '
11576 PS2='> '
11577 PS4='+ '
11578
11579 # NLS nuisances.
11580 LC_ALL=C
11581 export LC_ALL
11582 LANGUAGE=C
11583 export LANGUAGE
11584
11585 # CDPATH.
11586 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11587
11588
11589 # as_fn_error ERROR [LINENO LOG_FD]
11590 # ---------------------------------
11591 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11592 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11593 # script with status $?, using 1 if that was 0.
11594 as_fn_error ()
11595 {
11596   as_status=$?; test $as_status -eq 0 && as_status=1
11597   if test "$3"; then
11598     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11599     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11600   fi
11601   $as_echo "$as_me: error: $1" >&2
11602   as_fn_exit $as_status
11603 } # as_fn_error
11604
11605
11606 # as_fn_set_status STATUS
11607 # -----------------------
11608 # Set $? to STATUS, without forking.
11609 as_fn_set_status ()
11610 {
11611   return $1
11612 } # as_fn_set_status
11613
11614 # as_fn_exit STATUS
11615 # -----------------
11616 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11617 as_fn_exit ()
11618 {
11619   set +e
11620   as_fn_set_status $1
11621   exit $1
11622 } # as_fn_exit
11623
11624 # as_fn_unset VAR
11625 # ---------------
11626 # Portably unset VAR.
11627 as_fn_unset ()
11628 {
11629   { eval $1=; unset $1;}
11630 }
11631 as_unset=as_fn_unset
11632 # as_fn_append VAR VALUE
11633 # ----------------------
11634 # Append the text in VALUE to the end of the definition contained in VAR. Take
11635 # advantage of any shell optimizations that allow amortized linear growth over
11636 # repeated appends, instead of the typical quadratic growth present in naive
11637 # implementations.
11638 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11639   eval 'as_fn_append ()
11640   {
11641     eval $1+=\$2
11642   }'
11643 else
11644   as_fn_append ()
11645   {
11646     eval $1=\$$1\$2
11647   }
11648 fi # as_fn_append
11649
11650 # as_fn_arith ARG...
11651 # ------------------
11652 # Perform arithmetic evaluation on the ARGs, and store the result in the
11653 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11654 # must be portable across $(()) and expr.
11655 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11656   eval 'as_fn_arith ()
11657   {
11658     as_val=$(( $* ))
11659   }'
11660 else
11661   as_fn_arith ()
11662   {
11663     as_val=`expr "$@" || test $? -eq 1`
11664   }
11665 fi # as_fn_arith
11666
11667
11668 if expr a : '\(a\)' >/dev/null 2>&1 &&
11669    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11670   as_expr=expr
11671 else
11672   as_expr=false
11673 fi
11674
11675 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11676   as_basename=basename
11677 else
11678   as_basename=false
11679 fi
11680
11681 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11682   as_dirname=dirname
11683 else
11684   as_dirname=false
11685 fi
11686
11687 as_me=`$as_basename -- "$0" ||
11688 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11689          X"$0" : 'X\(//\)$' \| \
11690          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11691 $as_echo X/"$0" |
11692     sed '/^.*\/\([^/][^/]*\)\/*$/{
11693             s//\1/
11694             q
11695           }
11696           /^X\/\(\/\/\)$/{
11697             s//\1/
11698             q
11699           }
11700           /^X\/\(\/\).*/{
11701             s//\1/
11702             q
11703           }
11704           s/.*/./; q'`
11705
11706 # Avoid depending upon Character Ranges.
11707 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11708 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11709 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11710 as_cr_digits='0123456789'
11711 as_cr_alnum=$as_cr_Letters$as_cr_digits
11712
11713 ECHO_C= ECHO_N= ECHO_T=
11714 case `echo -n x` in #(((((
11715 -n*)
11716   case `echo 'xy\c'` in
11717   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11718   xy)  ECHO_C='\c';;
11719   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11720        ECHO_T=' ';;
11721   esac;;
11722 *)
11723   ECHO_N='-n';;
11724 esac
11725
11726 rm -f conf$$ conf$$.exe conf$$.file
11727 if test -d conf$$.dir; then
11728   rm -f conf$$.dir/conf$$.file
11729 else
11730   rm -f conf$$.dir
11731   mkdir conf$$.dir 2>/dev/null
11732 fi
11733 if (echo >conf$$.file) 2>/dev/null; then
11734   if ln -s conf$$.file conf$$ 2>/dev/null; then
11735     as_ln_s='ln -s'
11736     # ... but there are two gotchas:
11737     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11738     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11739     # In both cases, we have to default to `cp -p'.
11740     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11741       as_ln_s='cp -p'
11742   elif ln conf$$.file conf$$ 2>/dev/null; then
11743     as_ln_s=ln
11744   else
11745     as_ln_s='cp -p'
11746   fi
11747 else
11748   as_ln_s='cp -p'
11749 fi
11750 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11751 rmdir conf$$.dir 2>/dev/null
11752
11753
11754 # as_fn_mkdir_p
11755 # -------------
11756 # Create "$as_dir" as a directory, including parents if necessary.
11757 as_fn_mkdir_p ()
11758 {
11759
11760   case $as_dir in #(
11761   -*) as_dir=./$as_dir;;
11762   esac
11763   test -d "$as_dir" || eval $as_mkdir_p || {
11764     as_dirs=
11765     while :; do
11766       case $as_dir in #(
11767       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11768       *) as_qdir=$as_dir;;
11769       esac
11770       as_dirs="'$as_qdir' $as_dirs"
11771       as_dir=`$as_dirname -- "$as_dir" ||
11772 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11773          X"$as_dir" : 'X\(//\)[^/]' \| \
11774          X"$as_dir" : 'X\(//\)$' \| \
11775          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11776 $as_echo X"$as_dir" |
11777     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11778             s//\1/
11779             q
11780           }
11781           /^X\(\/\/\)[^/].*/{
11782             s//\1/
11783             q
11784           }
11785           /^X\(\/\/\)$/{
11786             s//\1/
11787             q
11788           }
11789           /^X\(\/\).*/{
11790             s//\1/
11791             q
11792           }
11793           s/.*/./; q'`
11794       test -d "$as_dir" && break
11795     done
11796     test -z "$as_dirs" || eval "mkdir $as_dirs"
11797   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11798
11799
11800 } # as_fn_mkdir_p
11801 if mkdir -p . 2>/dev/null; then
11802   as_mkdir_p='mkdir -p "$as_dir"'
11803 else
11804   test -d ./-p && rmdir ./-p
11805   as_mkdir_p=false
11806 fi
11807
11808 if test -x / >/dev/null 2>&1; then
11809   as_test_x='test -x'
11810 else
11811   if ls -dL / >/dev/null 2>&1; then
11812     as_ls_L_option=L
11813   else
11814     as_ls_L_option=
11815   fi
11816   as_test_x='
11817     eval sh -c '\''
11818       if test -d "$1"; then
11819         test -d "$1/.";
11820       else
11821         case $1 in #(
11822         -*)set "./$1";;
11823         esac;
11824         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11825         ???[sx]*):;;*)false;;esac;fi
11826     '\'' sh
11827   '
11828 fi
11829 as_executable_p=$as_test_x
11830
11831 # Sed expression to map a string onto a valid CPP name.
11832 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11833
11834 # Sed expression to map a string onto a valid variable name.
11835 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11836
11837
11838 exec 6>&1
11839 ## ----------------------------------- ##
11840 ## Main body of $CONFIG_STATUS script. ##
11841 ## ----------------------------------- ##
11842 _ASEOF
11843 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11844
11845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11846 # Save the log message, to keep $0 and so on meaningful, and to
11847 # report actual input values of CONFIG_FILES etc. instead of their
11848 # values after options handling.
11849 ac_log="
11850 This file was extended by $as_me, which was
11851 generated by GNU Autoconf 2.65.  Invocation command line was
11852
11853   CONFIG_FILES    = $CONFIG_FILES
11854   CONFIG_HEADERS  = $CONFIG_HEADERS
11855   CONFIG_LINKS    = $CONFIG_LINKS
11856   CONFIG_COMMANDS = $CONFIG_COMMANDS
11857   $ $0 $@
11858
11859 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11860 "
11861
11862 _ACEOF
11863
11864 case $ac_config_files in *"
11865 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11866 esac
11867
11868 case $ac_config_headers in *"
11869 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11870 esac
11871
11872
11873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11874 # Files that config.status was made for.
11875 config_files="$ac_config_files"
11876 config_headers="$ac_config_headers"
11877 config_commands="$ac_config_commands"
11878
11879 _ACEOF
11880
11881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11882 ac_cs_usage="\
11883 \`$as_me' instantiates files and other configuration actions
11884 from templates according to the current configuration.  Unless the files
11885 and actions are specified as TAGs, all are instantiated by default.
11886
11887 Usage: $0 [OPTION]... [TAG]...
11888
11889   -h, --help       print this help, then exit
11890   -V, --version    print version number and configuration settings, then exit
11891       --config     print configuration, then exit
11892   -q, --quiet, --silent
11893                    do not print progress messages
11894   -d, --debug      don't remove temporary files
11895       --recheck    update $as_me by reconfiguring in the same conditions
11896       --file=FILE[:TEMPLATE]
11897                    instantiate the configuration file FILE
11898       --header=FILE[:TEMPLATE]
11899                    instantiate the configuration header FILE
11900
11901 Configuration files:
11902 $config_files
11903
11904 Configuration headers:
11905 $config_headers
11906
11907 Configuration commands:
11908 $config_commands
11909
11910 Report bugs to the package provider."
11911
11912 _ACEOF
11913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11914 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11915 ac_cs_version="\\
11916 config.status
11917 configured by $0, generated by GNU Autoconf 2.65,
11918   with options \\"\$ac_cs_config\\"
11919
11920 Copyright (C) 2009 Free Software Foundation, Inc.
11921 This config.status script is free software; the Free Software Foundation
11922 gives unlimited permission to copy, distribute and modify it."
11923
11924 ac_pwd='$ac_pwd'
11925 srcdir='$srcdir'
11926 INSTALL='$INSTALL'
11927 AWK='$AWK'
11928 test -n "\$AWK" || AWK=awk
11929 _ACEOF
11930
11931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11932 # The default lists apply if the user does not specify any file.
11933 ac_need_defaults=:
11934 while test $# != 0
11935 do
11936   case $1 in
11937   --*=*)
11938     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11939     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11940     ac_shift=:
11941     ;;
11942   *)
11943     ac_option=$1
11944     ac_optarg=$2
11945     ac_shift=shift
11946     ;;
11947   esac
11948
11949   case $ac_option in
11950   # Handling of the options.
11951   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11952     ac_cs_recheck=: ;;
11953   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11954     $as_echo "$ac_cs_version"; exit ;;
11955   --config | --confi | --conf | --con | --co | --c )
11956     $as_echo "$ac_cs_config"; exit ;;
11957   --debug | --debu | --deb | --de | --d | -d )
11958     debug=: ;;
11959   --file | --fil | --fi | --f )
11960     $ac_shift
11961     case $ac_optarg in
11962     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11963     esac
11964     as_fn_append CONFIG_FILES " '$ac_optarg'"
11965     ac_need_defaults=false;;
11966   --header | --heade | --head | --hea )
11967     $ac_shift
11968     case $ac_optarg in
11969     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11970     esac
11971     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11972     ac_need_defaults=false;;
11973   --he | --h)
11974     # Conflict between --help and --header
11975     as_fn_error "ambiguous option: \`$1'
11976 Try \`$0 --help' for more information.";;
11977   --help | --hel | -h )
11978     $as_echo "$ac_cs_usage"; exit ;;
11979   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11980   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11981     ac_cs_silent=: ;;
11982
11983   # This is an error.
11984   -*) as_fn_error "unrecognized option: \`$1'
11985 Try \`$0 --help' for more information." ;;
11986
11987   *) as_fn_append ac_config_targets " $1"
11988      ac_need_defaults=false ;;
11989
11990   esac
11991   shift
11992 done
11993
11994 ac_configure_extra_args=
11995
11996 if $ac_cs_silent; then
11997   exec 6>/dev/null
11998   ac_configure_extra_args="$ac_configure_extra_args --silent"
11999 fi
12000
12001 _ACEOF
12002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12003 if \$ac_cs_recheck; then
12004   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12005   shift
12006   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12007   CONFIG_SHELL='$SHELL'
12008   export CONFIG_SHELL
12009   exec "\$@"
12010 fi
12011
12012 _ACEOF
12013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12014 exec 5>>config.log
12015 {
12016   echo
12017   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12018 ## Running $as_me. ##
12019 _ASBOX
12020   $as_echo "$ac_log"
12021 } >&5
12022
12023 _ACEOF
12024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12025 #
12026 # INIT-COMMANDS
12027 #
12028 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12029     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12030     # from automake.
12031     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12032     # Capture the value of LINGUAS because we need it to compute CATALOGS.
12033     LINGUAS="${LINGUAS-%UNSET%}"
12034
12035
12036 _ACEOF
12037
12038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12039
12040 # Handling of arguments.
12041 for ac_config_target in $ac_config_targets
12042 do
12043   case $ac_config_target in
12044     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12045     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12046     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12047
12048   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12049   esac
12050 done
12051
12052
12053 # If the user did not use the arguments to specify the items to instantiate,
12054 # then the envvar interface is used.  Set only those that are not.
12055 # We use the long form for the default assignment because of an extremely
12056 # bizarre bug on SunOS 4.1.3.
12057 if $ac_need_defaults; then
12058   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12059   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12060   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12061 fi
12062
12063 # Have a temporary directory for convenience.  Make it in the build tree
12064 # simply because there is no reason against having it here, and in addition,
12065 # creating and moving files from /tmp can sometimes cause problems.
12066 # Hook for its removal unless debugging.
12067 # Note that there is a small window in which the directory will not be cleaned:
12068 # after its creation but before its name has been assigned to `$tmp'.
12069 $debug ||
12070 {
12071   tmp=
12072   trap 'exit_status=$?
12073   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12074 ' 0
12075   trap 'as_fn_exit 1' 1 2 13 15
12076 }
12077 # Create a (secure) tmp directory for tmp files.
12078
12079 {
12080   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12081   test -n "$tmp" && test -d "$tmp"
12082 }  ||
12083 {
12084   tmp=./conf$$-$RANDOM
12085   (umask 077 && mkdir "$tmp")
12086 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12087
12088 # Set up the scripts for CONFIG_FILES section.
12089 # No need to generate them if there are no CONFIG_FILES.
12090 # This happens for instance with `./config.status config.h'.
12091 if test -n "$CONFIG_FILES"; then
12092
12093 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12094   ac_cs_awk_getline=:
12095   ac_cs_awk_pipe_init=
12096   ac_cs_awk_read_file='
12097       while ((getline aline < (F[key])) > 0)
12098         print(aline)
12099       close(F[key])'
12100   ac_cs_awk_pipe_fini=
12101 else
12102   ac_cs_awk_getline=false
12103   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12104   ac_cs_awk_read_file='
12105       print "|#_!!_#|"
12106       print "cat " F[key] " &&"
12107       '$ac_cs_awk_pipe_init
12108   # The final `:' finishes the AND list.
12109   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12110 fi
12111 ac_cr=`echo X | tr X '\015'`
12112 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12113 # But we know of no other shell where ac_cr would be empty at this
12114 # point, so we can use a bashism as a fallback.
12115 if test "x$ac_cr" = x; then
12116   eval ac_cr=\$\'\\r\'
12117 fi
12118 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12119 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12120   ac_cs_awk_cr='\r'
12121 else
12122   ac_cs_awk_cr=$ac_cr
12123 fi
12124
12125 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12126 _ACEOF
12127
12128 # Create commands to substitute file output variables.
12129 {
12130   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12131   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
12132   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12133   echo "_ACAWK" &&
12134   echo "_ACEOF"
12135 } >conf$$files.sh &&
12136 . ./conf$$files.sh ||
12137   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12138 rm -f conf$$files.sh
12139
12140 {
12141   echo "cat >conf$$subs.awk <<_ACEOF" &&
12142   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12143   echo "_ACEOF"
12144 } >conf$$subs.sh ||
12145   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12146 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12147 ac_delim='%!_!# '
12148 for ac_last_try in false false false false false :; do
12149   . ./conf$$subs.sh ||
12150     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12151
12152   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12153   if test $ac_delim_n = $ac_delim_num; then
12154     break
12155   elif $ac_last_try; then
12156     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12157   else
12158     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12159   fi
12160 done
12161 rm -f conf$$subs.sh
12162
12163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12164 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12165 _ACEOF
12166 sed -n '
12167 h
12168 s/^/S["/; s/!.*/"]=/
12169 p
12170 g
12171 s/^[^!]*!//
12172 :repl
12173 t repl
12174 s/'"$ac_delim"'$//
12175 t delim
12176 :nl
12177 h
12178 s/\(.\{148\}\)..*/\1/
12179 t more1
12180 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12181 p
12182 n
12183 b repl
12184 :more1
12185 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12186 p
12187 g
12188 s/.\{148\}//
12189 t nl
12190 :delim
12191 h
12192 s/\(.\{148\}\)..*/\1/
12193 t more2
12194 s/["\\]/\\&/g; s/^/"/; s/$/"/
12195 p
12196 b
12197 :more2
12198 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12199 p
12200 g
12201 s/.\{148\}//
12202 t delim
12203 ' <conf$$subs.awk | sed '
12204 /^[^""]/{
12205   N
12206   s/\n//
12207 }
12208 ' >>$CONFIG_STATUS || ac_write_fail=1
12209 rm -f conf$$subs.awk
12210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12211 _ACAWK
12212 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12213   for (key in S) S_is_set[key] = 1
12214   FS = "\a"
12215   \$ac_cs_awk_pipe_init
12216 }
12217 {
12218   line = $ 0
12219   nfields = split(line, field, "@")
12220   substed = 0
12221   len = length(field[1])
12222   for (i = 2; i < nfields; i++) {
12223     key = field[i]
12224     keylen = length(key)
12225     if (S_is_set[key]) {
12226       value = S[key]
12227       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12228       len += length(value) + length(field[++i])
12229       substed = 1
12230     } else
12231       len += 1 + keylen
12232   }
12233   if (nfields == 3 && !substed) {
12234     key = field[2]
12235     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
12236       \$ac_cs_awk_read_file
12237       next
12238     }
12239   }
12240   print line
12241 }
12242 \$ac_cs_awk_pipe_fini
12243 _ACAWK
12244 _ACEOF
12245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12246 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12247   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12248 else
12249   cat
12250 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12251   || as_fn_error "could not setup config files machinery" "$LINENO" 5
12252 _ACEOF
12253
12254 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12255 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12256 # trailing colons and then remove the whole line if VPATH becomes empty
12257 # (actually we leave an empty line to preserve line numbers).
12258 if test "x$srcdir" = x.; then
12259   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12260 s/:*\$(srcdir):*/:/
12261 s/:*\${srcdir}:*/:/
12262 s/:*@srcdir@:*/:/
12263 s/^\([^=]*=[     ]*\):*/\1/
12264 s/:*$//
12265 s/^[^=]*=[       ]*$//
12266 }'
12267 fi
12268
12269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12270 fi # test -n "$CONFIG_FILES"
12271
12272 # Set up the scripts for CONFIG_HEADERS section.
12273 # No need to generate them if there are no CONFIG_HEADERS.
12274 # This happens for instance with `./config.status Makefile'.
12275 if test -n "$CONFIG_HEADERS"; then
12276 cat >"$tmp/defines.awk" <<\_ACAWK ||
12277 BEGIN {
12278 _ACEOF
12279
12280 # Transform confdefs.h into an awk script `defines.awk', embedded as
12281 # here-document in config.status, that substitutes the proper values into
12282 # config.h.in to produce config.h.
12283
12284 # Create a delimiter string that does not exist in confdefs.h, to ease
12285 # handling of long lines.
12286 ac_delim='%!_!# '
12287 for ac_last_try in false false :; do
12288   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12289   if test -z "$ac_t"; then
12290     break
12291   elif $ac_last_try; then
12292     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12293   else
12294     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12295   fi
12296 done
12297
12298 # For the awk script, D is an array of macro values keyed by name,
12299 # likewise P contains macro parameters if any.  Preserve backslash
12300 # newline sequences.
12301
12302 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12303 sed -n '
12304 s/.\{148\}/&'"$ac_delim"'/g
12305 t rset
12306 :rset
12307 s/^[     ]*#[    ]*define[       ][      ]*/ /
12308 t def
12309 d
12310 :def
12311 s/\\$//
12312 t bsnl
12313 s/["\\]/\\&/g
12314 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12315 D["\1"]=" \3"/p
12316 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12317 d
12318 :bsnl
12319 s/["\\]/\\&/g
12320 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12321 D["\1"]=" \3\\\\\\n"\\/p
12322 t cont
12323 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12324 t cont
12325 d
12326 :cont
12327 n
12328 s/.\{148\}/&'"$ac_delim"'/g
12329 t clear
12330 :clear
12331 s/\\$//
12332 t bsnlc
12333 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12334 d
12335 :bsnlc
12336 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12337 b cont
12338 ' <confdefs.h | sed '
12339 s/'"$ac_delim"'/"\\\
12340 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12341
12342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12343   for (key in D) D_is_set[key] = 1
12344   FS = "\a"
12345 }
12346 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12347   line = \$ 0
12348   split(line, arg, " ")
12349   if (arg[1] == "#") {
12350     defundef = arg[2]
12351     mac1 = arg[3]
12352   } else {
12353     defundef = substr(arg[1], 2)
12354     mac1 = arg[2]
12355   }
12356   split(mac1, mac2, "(") #)
12357   macro = mac2[1]
12358   prefix = substr(line, 1, index(line, defundef) - 1)
12359   if (D_is_set[macro]) {
12360     # Preserve the white space surrounding the "#".
12361     print prefix "define", macro P[macro] D[macro]
12362     next
12363   } else {
12364     # Replace #undef with comments.  This is necessary, for example,
12365     # in the case of _POSIX_SOURCE, which is predefined and required
12366     # on some systems where configure will not decide to define it.
12367     if (defundef == "undef") {
12368       print "/*", prefix defundef, macro, "*/"
12369       next
12370     }
12371   }
12372 }
12373 { print }
12374 _ACAWK
12375 _ACEOF
12376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12377   as_fn_error "could not setup config headers machinery" "$LINENO" 5
12378 fi # test -n "$CONFIG_HEADERS"
12379
12380
12381 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12382 shift
12383 for ac_tag
12384 do
12385   case $ac_tag in
12386   :[FHLC]) ac_mode=$ac_tag; continue;;
12387   esac
12388   case $ac_mode$ac_tag in
12389   :[FHL]*:*);;
12390   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12391   :[FH]-) ac_tag=-:-;;
12392   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12393   esac
12394   ac_save_IFS=$IFS
12395   IFS=:
12396   set x $ac_tag
12397   IFS=$ac_save_IFS
12398   shift
12399   ac_file=$1
12400   shift
12401
12402   case $ac_mode in
12403   :L) ac_source=$1;;
12404   :[FH])
12405     ac_file_inputs=
12406     for ac_f
12407     do
12408       case $ac_f in
12409       -) ac_f="$tmp/stdin";;
12410       *) # Look for the file first in the build tree, then in the source tree
12411          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12412          # because $ac_f cannot contain `:'.
12413          test -f "$ac_f" ||
12414            case $ac_f in
12415            [\\/$]*) false;;
12416            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12417            esac ||
12418            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12419       esac
12420       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12421       as_fn_append ac_file_inputs " '$ac_f'"
12422     done
12423
12424     # Let's still pretend it is `configure' which instantiates (i.e., don't
12425     # use $as_me), people would be surprised to read:
12426     #    /* config.h.  Generated by config.status.  */
12427     configure_input='Generated from '`
12428           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12429         `' by configure.'
12430     if test x"$ac_file" != x-; then
12431       configure_input="$ac_file.  $configure_input"
12432       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12433 $as_echo "$as_me: creating $ac_file" >&6;}
12434     fi
12435     # Neutralize special characters interpreted by sed in replacement strings.
12436     case $configure_input in #(
12437     *\&* | *\|* | *\\* )
12438        ac_sed_conf_input=`$as_echo "$configure_input" |
12439        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12440     *) ac_sed_conf_input=$configure_input;;
12441     esac
12442
12443     case $ac_tag in
12444     *:-:* | *:-) cat >"$tmp/stdin" \
12445       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12446     esac
12447     ;;
12448   esac
12449
12450   ac_dir=`$as_dirname -- "$ac_file" ||
12451 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12452          X"$ac_file" : 'X\(//\)[^/]' \| \
12453          X"$ac_file" : 'X\(//\)$' \| \
12454          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12455 $as_echo X"$ac_file" |
12456     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12457             s//\1/
12458             q
12459           }
12460           /^X\(\/\/\)[^/].*/{
12461             s//\1/
12462             q
12463           }
12464           /^X\(\/\/\)$/{
12465             s//\1/
12466             q
12467           }
12468           /^X\(\/\).*/{
12469             s//\1/
12470             q
12471           }
12472           s/.*/./; q'`
12473   as_dir="$ac_dir"; as_fn_mkdir_p
12474   ac_builddir=.
12475
12476 case "$ac_dir" in
12477 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12478 *)
12479   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12480   # A ".." for each directory in $ac_dir_suffix.
12481   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12482   case $ac_top_builddir_sub in
12483   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12484   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12485   esac ;;
12486 esac
12487 ac_abs_top_builddir=$ac_pwd
12488 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12489 # for backward compatibility:
12490 ac_top_builddir=$ac_top_build_prefix
12491
12492 case $srcdir in
12493   .)  # We are building in place.
12494     ac_srcdir=.
12495     ac_top_srcdir=$ac_top_builddir_sub
12496     ac_abs_top_srcdir=$ac_pwd ;;
12497   [\\/]* | ?:[\\/]* )  # Absolute name.
12498     ac_srcdir=$srcdir$ac_dir_suffix;
12499     ac_top_srcdir=$srcdir
12500     ac_abs_top_srcdir=$srcdir ;;
12501   *) # Relative name.
12502     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12503     ac_top_srcdir=$ac_top_build_prefix$srcdir
12504     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12505 esac
12506 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12507
12508
12509   case $ac_mode in
12510   :F)
12511   #
12512   # CONFIG_FILE
12513   #
12514
12515   case $INSTALL in
12516   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12517   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12518   esac
12519 _ACEOF
12520
12521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12522 # If the template does not know about datarootdir, expand it.
12523 # FIXME: This hack should be removed a few years after 2.60.
12524 ac_datarootdir_hack=; ac_datarootdir_seen=
12525 ac_sed_dataroot='
12526 /datarootdir/ {
12527   p
12528   q
12529 }
12530 /@datadir@/p
12531 /@docdir@/p
12532 /@infodir@/p
12533 /@localedir@/p
12534 /@mandir@/p'
12535 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12536 *datarootdir*) ac_datarootdir_seen=yes;;
12537 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12538   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12539 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12540 _ACEOF
12541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12542   ac_datarootdir_hack='
12543   s&@datadir@&$datadir&g
12544   s&@docdir@&$docdir&g
12545   s&@infodir@&$infodir&g
12546   s&@localedir@&$localedir&g
12547   s&@mandir@&$mandir&g
12548   s&\\\${datarootdir}&$datarootdir&g' ;;
12549 esac
12550 _ACEOF
12551
12552 # Neutralize VPATH when `$srcdir' = `.'.
12553 # Shell code in configure.ac might set extrasub.
12554 # FIXME: do we really want to maintain this feature?
12555 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12556 ac_sed_extra="$ac_vpsub
12557 $extrasub
12558 _ACEOF
12559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12560 :t
12561 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12562 s|@configure_input@|$ac_sed_conf_input|;t t
12563 s&@top_builddir@&$ac_top_builddir_sub&;t t
12564 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12565 s&@srcdir@&$ac_srcdir&;t t
12566 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12567 s&@top_srcdir@&$ac_top_srcdir&;t t
12568 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12569 s&@builddir@&$ac_builddir&;t t
12570 s&@abs_builddir@&$ac_abs_builddir&;t t
12571 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12572 s&@INSTALL@&$ac_INSTALL&;t t
12573 $ac_datarootdir_hack
12574 "
12575 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12576 if $ac_cs_awk_getline; then
12577   $AWK -f "$tmp/subs.awk"
12578 else
12579   $AWK -f "$tmp/subs.awk" | $SHELL
12580 fi >$tmp/out \
12581   || as_fn_error "could not create $ac_file" "$LINENO" 5
12582
12583 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12584   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12585   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12586   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12587 which seems to be undefined.  Please make sure it is defined." >&5
12588 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12589 which seems to be undefined.  Please make sure it is defined." >&2;}
12590
12591   rm -f "$tmp/stdin"
12592   case $ac_file in
12593   -) cat "$tmp/out" && rm -f "$tmp/out";;
12594   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12595   esac \
12596   || as_fn_error "could not create $ac_file" "$LINENO" 5
12597  ;;
12598   :H)
12599   #
12600   # CONFIG_HEADER
12601   #
12602   if test x"$ac_file" != x-; then
12603     {
12604       $as_echo "/* $configure_input  */" \
12605       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12606     } >"$tmp/config.h" \
12607       || as_fn_error "could not create $ac_file" "$LINENO" 5
12608     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12609       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12610 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12611     else
12612       rm -f "$ac_file"
12613       mv "$tmp/config.h" "$ac_file" \
12614         || as_fn_error "could not create $ac_file" "$LINENO" 5
12615     fi
12616   else
12617     $as_echo "/* $configure_input  */" \
12618       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12619       || as_fn_error "could not create -" "$LINENO" 5
12620   fi
12621  ;;
12622
12623   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12624 $as_echo "$as_me: executing $ac_file commands" >&6;}
12625  ;;
12626   esac
12627
12628
12629   case $ac_file$ac_mode in
12630     "default-1":C)
12631     for ac_file in $CONFIG_FILES; do
12632       # Support "outfile[:infile[:infile...]]"
12633       case "$ac_file" in
12634         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12635       esac
12636       # PO directories have a Makefile.in generated from Makefile.in.in.
12637       case "$ac_file" in */Makefile.in)
12638         # Adjust a relative srcdir.
12639         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12640         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12641         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12642         # In autoconf-2.13 it is called $ac_given_srcdir.
12643         # In autoconf-2.50 it is called $srcdir.
12644         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12645         case "$ac_given_srcdir" in
12646           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12647           /*) top_srcdir="$ac_given_srcdir" ;;
12648           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
12649         esac
12650         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12651           rm -f "$ac_dir/POTFILES"
12652           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12653           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12654           POMAKEFILEDEPS="POTFILES.in"
12655           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12656           # on $ac_dir but don't depend on user-specified configuration
12657           # parameters.
12658           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12659             # The LINGUAS file contains the set of available languages.
12660             if test -n "$OBSOLETE_ALL_LINGUAS"; then
12661               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12662             fi
12663             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12664             # Hide the ALL_LINGUAS assigment from automake.
12665             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12666             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12667           else
12668             # The set of available languages was given in configure.in.
12669             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12670           fi
12671           # Compute POFILES
12672           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12673           # Compute UPDATEPOFILES
12674           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12675           # Compute DUMMYPOFILES
12676           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12677           # Compute GMOFILES
12678           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12679           case "$ac_given_srcdir" in
12680             .) srcdirpre= ;;
12681             *) srcdirpre='$(srcdir)/' ;;
12682           esac
12683           POFILES=
12684           UPDATEPOFILES=
12685           DUMMYPOFILES=
12686           GMOFILES=
12687           for lang in $ALL_LINGUAS; do
12688             POFILES="$POFILES $srcdirpre$lang.po"
12689             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12690             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12691             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12692           done
12693           # CATALOGS depends on both $ac_dir and the user's LINGUAS
12694           # environment variable.
12695           INST_LINGUAS=
12696           if test -n "$ALL_LINGUAS"; then
12697             for presentlang in $ALL_LINGUAS; do
12698               useit=no
12699               if test "%UNSET%" != "$LINGUAS"; then
12700                 desiredlanguages="$LINGUAS"
12701               else
12702                 desiredlanguages="$ALL_LINGUAS"
12703               fi
12704               for desiredlang in $desiredlanguages; do
12705                 # Use the presentlang catalog if desiredlang is
12706                 #   a. equal to presentlang, or
12707                 #   b. a variant of presentlang (because in this case,
12708                 #      presentlang can be used as a fallback for messages
12709                 #      which are not translated in the desiredlang catalog).
12710                 case "$desiredlang" in
12711                   "$presentlang"*) useit=yes;;
12712                 esac
12713               done
12714               if test $useit = yes; then
12715                 INST_LINGUAS="$INST_LINGUAS $presentlang"
12716               fi
12717             done
12718           fi
12719           CATALOGS=
12720           if test -n "$INST_LINGUAS"; then
12721             for lang in $INST_LINGUAS; do
12722               CATALOGS="$CATALOGS $lang.gmo"
12723             done
12724           fi
12725           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12726           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"
12727           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12728             if test -f "$f"; then
12729               case "$f" in
12730                 *.orig | *.bak | *~) ;;
12731                 *) cat "$f" >> "$ac_dir/Makefile" ;;
12732               esac
12733             fi
12734           done
12735         fi
12736         ;;
12737       esac
12738     done ;;
12739
12740   esac
12741 done # for ac_tag
12742
12743
12744 as_fn_exit 0
12745 _ACEOF
12746 ac_clean_files=$ac_clean_files_save
12747
12748 test $ac_write_fail = 0 ||
12749   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12750
12751
12752 # configure is writing to config.log, and then calls config.status.
12753 # config.status does its own redirection, appending to config.log.
12754 # Unfortunately, on DOS this fails, as config.log is still kept open
12755 # by configure, so config.status won't be able to write to it; its
12756 # output is simply discarded.  So we exec the FD to /dev/null,
12757 # effectively closing config.log, so it can be properly (re)opened and
12758 # appended to by config.status.  When coming back to configure, we
12759 # need to make the FD available again.
12760 if test "$no_create" != yes; then
12761   ac_cs_success=:
12762   ac_config_status_args=
12763   test "$silent" = yes &&
12764     ac_config_status_args="$ac_config_status_args --quiet"
12765   exec 5>/dev/null
12766   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12767   exec 5>>config.log
12768   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12769   # would make configure fail if this is the last instruction.
12770   $ac_cs_success || as_fn_exit $?
12771 fi
12772 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12773   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12774 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12775 fi
12776
12777 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi