OSDN Git Service

libquota: remove quota_is_on() which was the last user of quotactl()
[android-x86/external-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 E
717 LINK_BUILD_FLAGS
718 SYMLINK_RELATIVE
719 LINK_INSTALL_FLAGS
720 MAINTAINER_CMT
721 CPP
722 RDYNAMIC
723 DLOPEN_LIB
724 OBJEXT
725 EXEEXT
726 ac_ct_CC
727 CPPFLAGS
728 LDFLAGS
729 CFLAGS
730 CC
731 host_os
732 host_vendor
733 host_cpu
734 host
735 build_os
736 build_vendor
737 build_cpu
738 build
739 E2FSPROGS_PKGVER
740 E2FSPROGS_VERSION
741 E2FSPROGS_DAY
742 E2FSPROGS_MONTH
743 E2FSPROGS_YEAR
744 target_alias
745 host_alias
746 build_alias
747 LIBS
748 ECHO_T
749 ECHO_N
750 ECHO_C
751 DEFS
752 mandir
753 localedir
754 libdir
755 psdir
756 pdfdir
757 dvidir
758 htmldir
759 infodir
760 docdir
761 oldincludedir
762 includedir
763 localstatedir
764 sharedstatedir
765 sysconfdir
766 datadir
767 datarootdir
768 libexecdir
769 sbindir
770 bindir
771 program_transform_name
772 prefix
773 exec_prefix
774 PACKAGE_URL
775 PACKAGE_BUGREPORT
776 PACKAGE_STRING
777 PACKAGE_VERSION
778 PACKAGE_TARNAME
779 PACKAGE_NAME
780 PATH_SEPARATOR
781 SHELL'
782 ac_subst_files='MCONFIG
783 MAKEFILE_ELF
784 MAKEFILE_BSDLIB
785 MAKEFILE_PROFILE
786 MAKEFILE_CHECKER
787 MAKEFILE_LIBRARY
788 ASM_TYPES_HEADER
789 PUBLIC_CONFIG_HEADER'
790 ac_user_opts='
791 enable_option_checking
792 with_diet_libc
793 with_cc
794 with_ccopts
795 with_ldopts
796 with_root_prefix
797 enable_maintainer_mode
798 enable_symlink_install
799 enable_symlink_relative_symlinks
800 enable_symlink_build
801 enable_verbose_makecmds
802 enable_compression
803 enable_htree
804 enable_elf_shlibs
805 enable_bsd_shlibs
806 enable_profile
807 enable_checker
808 enable_jbd_debug
809 enable_blkid_debug
810 enable_testio_debug
811 enable_libuuid
812 enable_libblkid
813 enable_quota
814 enable_debugfs
815 enable_imager
816 enable_resizer
817 enable_defrag
818 enable_fsck
819 enable_e2initrd_helper
820 enable_tls
821 enable_uuidd
822 enable_nls
823 with_gnu_ld
824 enable_rpath
825 with_libiconv_prefix
826 with_included_gettext
827 with_libintl_prefix
828 with_multiarch
829 '
830       ac_precious_vars='build_alias
831 host_alias
832 target_alias
833 CC
834 CFLAGS
835 LDFLAGS
836 LIBS
837 CPPFLAGS
838 CPP
839 PKG_CONFIG'
840
841
842 # Initialize some variables set by options.
843 ac_init_help=
844 ac_init_version=false
845 ac_unrecognized_opts=
846 ac_unrecognized_sep=
847 # The variables have the same names as the options, with
848 # dashes changed to underlines.
849 cache_file=/dev/null
850 exec_prefix=NONE
851 no_create=
852 no_recursion=
853 prefix=NONE
854 program_prefix=NONE
855 program_suffix=NONE
856 program_transform_name=s,x,x,
857 silent=
858 site=
859 srcdir=
860 verbose=
861 x_includes=NONE
862 x_libraries=NONE
863
864 # Installation directory options.
865 # These are left unexpanded so users can "make install exec_prefix=/foo"
866 # and all the variables that are supposed to be based on exec_prefix
867 # by default will actually change.
868 # Use braces instead of parens because sh, perl, etc. also accept them.
869 # (The list follows the same order as the GNU Coding Standards.)
870 bindir='${exec_prefix}/bin'
871 sbindir='${exec_prefix}/sbin'
872 libexecdir='${exec_prefix}/libexec'
873 datarootdir='${prefix}/share'
874 datadir='${datarootdir}'
875 sysconfdir='${prefix}/etc'
876 sharedstatedir='${prefix}/com'
877 localstatedir='${prefix}/var'
878 includedir='${prefix}/include'
879 oldincludedir='/usr/include'
880 docdir='${datarootdir}/doc/${PACKAGE}'
881 infodir='${datarootdir}/info'
882 htmldir='${docdir}'
883 dvidir='${docdir}'
884 pdfdir='${docdir}'
885 psdir='${docdir}'
886 libdir='${exec_prefix}/lib'
887 localedir='${datarootdir}/locale'
888 mandir='${datarootdir}/man'
889
890 ac_prev=
891 ac_dashdash=
892 for ac_option
893 do
894   # If the previous option needs an argument, assign it.
895   if test -n "$ac_prev"; then
896     eval $ac_prev=\$ac_option
897     ac_prev=
898     continue
899   fi
900
901   case $ac_option in
902   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903   *)    ac_optarg=yes ;;
904   esac
905
906   # Accept the important Cygnus configure options, so we can diagnose typos.
907
908   case $ac_dashdash$ac_option in
909   --)
910     ac_dashdash=yes ;;
911
912   -bindir | --bindir | --bindi | --bind | --bin | --bi)
913     ac_prev=bindir ;;
914   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915     bindir=$ac_optarg ;;
916
917   -build | --build | --buil | --bui | --bu)
918     ac_prev=build_alias ;;
919   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
920     build_alias=$ac_optarg ;;
921
922   -cache-file | --cache-file | --cache-fil | --cache-fi \
923   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924     ac_prev=cache_file ;;
925   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
927     cache_file=$ac_optarg ;;
928
929   --config-cache | -C)
930     cache_file=config.cache ;;
931
932   -datadir | --datadir | --datadi | --datad)
933     ac_prev=datadir ;;
934   -datadir=* | --datadir=* | --datadi=* | --datad=*)
935     datadir=$ac_optarg ;;
936
937   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938   | --dataroo | --dataro | --datar)
939     ac_prev=datarootdir ;;
940   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942     datarootdir=$ac_optarg ;;
943
944   -disable-* | --disable-*)
945     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946     # Reject names that are not valid shell variable names.
947     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948       as_fn_error "invalid feature name: $ac_useropt"
949     ac_useropt_orig=$ac_useropt
950     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951     case $ac_user_opts in
952       *"
953 "enable_$ac_useropt"
954 "*) ;;
955       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956          ac_unrecognized_sep=', ';;
957     esac
958     eval enable_$ac_useropt=no ;;
959
960   -docdir | --docdir | --docdi | --doc | --do)
961     ac_prev=docdir ;;
962   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963     docdir=$ac_optarg ;;
964
965   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966     ac_prev=dvidir ;;
967   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968     dvidir=$ac_optarg ;;
969
970   -enable-* | --enable-*)
971     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972     # Reject names that are not valid shell variable names.
973     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974       as_fn_error "invalid feature name: $ac_useropt"
975     ac_useropt_orig=$ac_useropt
976     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977     case $ac_user_opts in
978       *"
979 "enable_$ac_useropt"
980 "*) ;;
981       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
982          ac_unrecognized_sep=', ';;
983     esac
984     eval enable_$ac_useropt=\$ac_optarg ;;
985
986   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988   | --exec | --exe | --ex)
989     ac_prev=exec_prefix ;;
990   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992   | --exec=* | --exe=* | --ex=*)
993     exec_prefix=$ac_optarg ;;
994
995   -gas | --gas | --ga | --g)
996     # Obsolete; use --with-gas.
997     with_gas=yes ;;
998
999   -help | --help | --hel | --he | -h)
1000     ac_init_help=long ;;
1001   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002     ac_init_help=recursive ;;
1003   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004     ac_init_help=short ;;
1005
1006   -host | --host | --hos | --ho)
1007     ac_prev=host_alias ;;
1008   -host=* | --host=* | --hos=* | --ho=*)
1009     host_alias=$ac_optarg ;;
1010
1011   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012     ac_prev=htmldir ;;
1013   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014   | --ht=*)
1015     htmldir=$ac_optarg ;;
1016
1017   -includedir | --includedir | --includedi | --included | --include \
1018   | --includ | --inclu | --incl | --inc)
1019     ac_prev=includedir ;;
1020   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021   | --includ=* | --inclu=* | --incl=* | --inc=*)
1022     includedir=$ac_optarg ;;
1023
1024   -infodir | --infodir | --infodi | --infod | --info | --inf)
1025     ac_prev=infodir ;;
1026   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1027     infodir=$ac_optarg ;;
1028
1029   -libdir | --libdir | --libdi | --libd)
1030     ac_prev=libdir ;;
1031   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1032     libdir=$ac_optarg ;;
1033
1034   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035   | --libexe | --libex | --libe)
1036     ac_prev=libexecdir ;;
1037   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038   | --libexe=* | --libex=* | --libe=*)
1039     libexecdir=$ac_optarg ;;
1040
1041   -localedir | --localedir | --localedi | --localed | --locale)
1042     ac_prev=localedir ;;
1043   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044     localedir=$ac_optarg ;;
1045
1046   -localstatedir | --localstatedir | --localstatedi | --localstated \
1047   | --localstate | --localstat | --localsta | --localst | --locals)
1048     ac_prev=localstatedir ;;
1049   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1050   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1051     localstatedir=$ac_optarg ;;
1052
1053   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054     ac_prev=mandir ;;
1055   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1056     mandir=$ac_optarg ;;
1057
1058   -nfp | --nfp | --nf)
1059     # Obsolete; use --without-fp.
1060     with_fp=no ;;
1061
1062   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1063   | --no-cr | --no-c | -n)
1064     no_create=yes ;;
1065
1066   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068     no_recursion=yes ;;
1069
1070   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072   | --oldin | --oldi | --old | --ol | --o)
1073     ac_prev=oldincludedir ;;
1074   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1077     oldincludedir=$ac_optarg ;;
1078
1079   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080     ac_prev=prefix ;;
1081   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1082     prefix=$ac_optarg ;;
1083
1084   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085   | --program-pre | --program-pr | --program-p)
1086     ac_prev=program_prefix ;;
1087   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1089     program_prefix=$ac_optarg ;;
1090
1091   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092   | --program-suf | --program-su | --program-s)
1093     ac_prev=program_suffix ;;
1094   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096     program_suffix=$ac_optarg ;;
1097
1098   -program-transform-name | --program-transform-name \
1099   | --program-transform-nam | --program-transform-na \
1100   | --program-transform-n | --program-transform- \
1101   | --program-transform | --program-transfor \
1102   | --program-transfo | --program-transf \
1103   | --program-trans | --program-tran \
1104   | --progr-tra | --program-tr | --program-t)
1105     ac_prev=program_transform_name ;;
1106   -program-transform-name=* | --program-transform-name=* \
1107   | --program-transform-nam=* | --program-transform-na=* \
1108   | --program-transform-n=* | --program-transform-=* \
1109   | --program-transform=* | --program-transfor=* \
1110   | --program-transfo=* | --program-transf=* \
1111   | --program-trans=* | --program-tran=* \
1112   | --progr-tra=* | --program-tr=* | --program-t=*)
1113     program_transform_name=$ac_optarg ;;
1114
1115   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116     ac_prev=pdfdir ;;
1117   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118     pdfdir=$ac_optarg ;;
1119
1120   -psdir | --psdir | --psdi | --psd | --ps)
1121     ac_prev=psdir ;;
1122   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123     psdir=$ac_optarg ;;
1124
1125   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126   | -silent | --silent | --silen | --sile | --sil)
1127     silent=yes ;;
1128
1129   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130     ac_prev=sbindir ;;
1131   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132   | --sbi=* | --sb=*)
1133     sbindir=$ac_optarg ;;
1134
1135   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137   | --sharedst | --shareds | --shared | --share | --shar \
1138   | --sha | --sh)
1139     ac_prev=sharedstatedir ;;
1140   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143   | --sha=* | --sh=*)
1144     sharedstatedir=$ac_optarg ;;
1145
1146   -site | --site | --sit)
1147     ac_prev=site ;;
1148   -site=* | --site=* | --sit=*)
1149     site=$ac_optarg ;;
1150
1151   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152     ac_prev=srcdir ;;
1153   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1154     srcdir=$ac_optarg ;;
1155
1156   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157   | --syscon | --sysco | --sysc | --sys | --sy)
1158     ac_prev=sysconfdir ;;
1159   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1161     sysconfdir=$ac_optarg ;;
1162
1163   -target | --target | --targe | --targ | --tar | --ta | --t)
1164     ac_prev=target_alias ;;
1165   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1166     target_alias=$ac_optarg ;;
1167
1168   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1169     verbose=yes ;;
1170
1171   -version | --version | --versio | --versi | --vers | -V)
1172     ac_init_version=: ;;
1173
1174   -with-* | --with-*)
1175     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176     # Reject names that are not valid shell variable names.
1177     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178       as_fn_error "invalid package name: $ac_useropt"
1179     ac_useropt_orig=$ac_useropt
1180     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181     case $ac_user_opts in
1182       *"
1183 "with_$ac_useropt"
1184 "*) ;;
1185       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186          ac_unrecognized_sep=', ';;
1187     esac
1188     eval with_$ac_useropt=\$ac_optarg ;;
1189
1190   -without-* | --without-*)
1191     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192     # Reject names that are not valid shell variable names.
1193     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194       as_fn_error "invalid package name: $ac_useropt"
1195     ac_useropt_orig=$ac_useropt
1196     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197     case $ac_user_opts in
1198       *"
1199 "with_$ac_useropt"
1200 "*) ;;
1201       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1202          ac_unrecognized_sep=', ';;
1203     esac
1204     eval with_$ac_useropt=no ;;
1205
1206   --x)
1207     # Obsolete; use --with-x.
1208     with_x=yes ;;
1209
1210   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211   | --x-incl | --x-inc | --x-in | --x-i)
1212     ac_prev=x_includes ;;
1213   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215     x_includes=$ac_optarg ;;
1216
1217   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219     ac_prev=x_libraries ;;
1220   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222     x_libraries=$ac_optarg ;;
1223
1224   -*) as_fn_error "unrecognized option: \`$ac_option'
1225 Try \`$0 --help' for more information."
1226     ;;
1227
1228   *=*)
1229     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1230     # Reject names that are not valid shell variable names.
1231     case $ac_envvar in #(
1232       '' | [0-9]* | *[!_$as_cr_alnum]* )
1233       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1234     esac
1235     eval $ac_envvar=\$ac_optarg
1236     export $ac_envvar ;;
1237
1238   *)
1239     # FIXME: should be removed in autoconf 3.0.
1240     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1244     ;;
1245
1246   esac
1247 done
1248
1249 if test -n "$ac_prev"; then
1250   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251   as_fn_error "missing argument to $ac_option"
1252 fi
1253
1254 if test -n "$ac_unrecognized_opts"; then
1255   case $enable_option_checking in
1256     no) ;;
1257     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1258     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259   esac
1260 fi
1261
1262 # Check all directory arguments for consistency.
1263 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264                 datadir sysconfdir sharedstatedir localstatedir includedir \
1265                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266                 libdir localedir mandir
1267 do
1268   eval ac_val=\$$ac_var
1269   # Remove trailing slashes.
1270   case $ac_val in
1271     */ )
1272       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273       eval $ac_var=\$ac_val;;
1274   esac
1275   # Be sure to have absolute directory names.
1276   case $ac_val in
1277     [\\/$]* | ?:[\\/]* )  continue;;
1278     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279   esac
1280   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1281 done
1282
1283 # There might be people who depend on the old broken behavior: `$host'
1284 # used to hold the argument of --host etc.
1285 # FIXME: To remove some day.
1286 build=$build_alias
1287 host=$host_alias
1288 target=$target_alias
1289
1290 # FIXME: To remove some day.
1291 if test "x$host_alias" != x; then
1292   if test "x$build_alias" = x; then
1293     cross_compiling=maybe
1294     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1295     If a cross compiler is detected then cross compile mode will be used." >&2
1296   elif test "x$build_alias" != "x$host_alias"; then
1297     cross_compiling=yes
1298   fi
1299 fi
1300
1301 ac_tool_prefix=
1302 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1303
1304 test "$silent" = yes && exec 6>/dev/null
1305
1306
1307 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1308 ac_ls_di=`ls -di .` &&
1309 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1310   as_fn_error "working directory cannot be determined"
1311 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1312   as_fn_error "pwd does not report name of working directory"
1313
1314
1315 # Find the source files, if location was not specified.
1316 if test -z "$srcdir"; then
1317   ac_srcdir_defaulted=yes
1318   # Try the directory containing this script, then the parent directory.
1319   ac_confdir=`$as_dirname -- "$as_myself" ||
1320 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321          X"$as_myself" : 'X\(//\)[^/]' \| \
1322          X"$as_myself" : 'X\(//\)$' \| \
1323          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1324 $as_echo X"$as_myself" |
1325     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1326             s//\1/
1327             q
1328           }
1329           /^X\(\/\/\)[^/].*/{
1330             s//\1/
1331             q
1332           }
1333           /^X\(\/\/\)$/{
1334             s//\1/
1335             q
1336           }
1337           /^X\(\/\).*/{
1338             s//\1/
1339             q
1340           }
1341           s/.*/./; q'`
1342   srcdir=$ac_confdir
1343   if test ! -r "$srcdir/$ac_unique_file"; then
1344     srcdir=..
1345   fi
1346 else
1347   ac_srcdir_defaulted=no
1348 fi
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1351   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1352 fi
1353 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1354 ac_abs_confdir=`(
1355         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1356         pwd)`
1357 # When building in place, set srcdir=.
1358 if test "$ac_abs_confdir" = "$ac_pwd"; then
1359   srcdir=.
1360 fi
1361 # Remove unnecessary trailing slashes from srcdir.
1362 # Double slashes in file names in object file debugging info
1363 # mess up M-x gdb in Emacs.
1364 case $srcdir in
1365 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1366 esac
1367 for ac_var in $ac_precious_vars; do
1368   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1369   eval ac_env_${ac_var}_value=\$${ac_var}
1370   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1371   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372 done
1373
1374 #
1375 # Report the --help message.
1376 #
1377 if test "$ac_init_help" = "long"; then
1378   # Omit some internal or obsolete options to make the list less imposing.
1379   # This message is too long to be a string in the A/UX 3.1 sh.
1380   cat <<_ACEOF
1381 \`configure' configures this package to adapt to many kinds of systems.
1382
1383 Usage: $0 [OPTION]... [VAR=VALUE]...
1384
1385 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1386 VAR=VALUE.  See below for descriptions of some of the useful variables.
1387
1388 Defaults for the options are specified in brackets.
1389
1390 Configuration:
1391   -h, --help              display this help and exit
1392       --help=short        display options specific to this package
1393       --help=recursive    display the short help of all the included packages
1394   -V, --version           display version information and exit
1395   -q, --quiet, --silent   do not print \`checking...' messages
1396       --cache-file=FILE   cache test results in FILE [disabled]
1397   -C, --config-cache      alias for \`--cache-file=config.cache'
1398   -n, --no-create         do not create output files
1399       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1400
1401 Installation directories:
1402   --prefix=PREFIX         install architecture-independent files in PREFIX
1403                           [$ac_default_prefix]
1404   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1405                           [PREFIX]
1406
1407 By default, \`make install' will install all the files in
1408 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1409 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1410 for instance \`--prefix=\$HOME'.
1411
1412 For better control, use the options below.
1413
1414 Fine tuning of the installation directories:
1415   --bindir=DIR            user executables [EPREFIX/bin]
1416   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1417   --libexecdir=DIR        program executables [EPREFIX/libexec]
1418   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1419   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1420   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1421   --libdir=DIR            object code libraries [EPREFIX/lib]
1422   --includedir=DIR        C header files [PREFIX/include]
1423   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1424   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1425   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1426   --infodir=DIR           info documentation [DATAROOTDIR/info]
1427   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1428   --mandir=DIR            man documentation [DATAROOTDIR/man]
1429   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1430   --htmldir=DIR           html documentation [DOCDIR]
1431   --dvidir=DIR            dvi documentation [DOCDIR]
1432   --pdfdir=DIR            pdf documentation [DOCDIR]
1433   --psdir=DIR             ps documentation [DOCDIR]
1434 _ACEOF
1435
1436   cat <<\_ACEOF
1437
1438 System types:
1439   --build=BUILD     configure for building on BUILD [guessed]
1440   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1441 _ACEOF
1442 fi
1443
1444 if test -n "$ac_init_help"; then
1445
1446   cat <<\_ACEOF
1447
1448 Optional Features:
1449   --disable-option-checking  ignore unrecognized --enable/--with options
1450   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1451   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1452   --enable-maintainer-mode enable makefile rules useful for maintainers
1453   --enable-symlink-install use symlinks when installing instead of hard links
1454   --enable-relative-symlinks use relative symlinks when installing
1455   --enable-symlink-build  use symlinks while building instead of hard links
1456   --enable-verbose-makecmds enable verbose make command output
1457   --enable-compression    enable EXPERIMENTAL compression support
1458   --enable-htree          enable EXPERIMENTAL htree directory support
1459   --enable-elf-shlibs     select ELF shared libraries
1460   --enable-bsd-shlibs     select BSD shared libraries
1461   --enable-profile        build profiling libraries
1462   --enable-checker        build checker libraries
1463   --enable-jbd-debug      enable journal debugging
1464   --enable-blkid-debug    enable blkid debugging
1465   --disable-testio-debug  disable the use of the test I/O manager for debugging
1466   --disable-libuuid       do not build private uuid library
1467   --disable-libblkid      do not build private blkid library
1468   --enable-libquota       enable quota support
1469   --disable-debugfs       disable support of debugfs program
1470   --disable-imager        disable support of e2image program
1471   --disable-resizer       disable support of e2resize program
1472   --disable-defrag        disable support of e4defrag program
1473   --enable-fsck           build fsck wrapper program
1474   --enable-e2initrd-helper build e2initrd-helper program
1475   --disable-tls           disable use of thread local support
1476   --disable-uuidd         disable building the uuid daemon
1477   --disable-nls           do not use Native Language Support
1478   --disable-rpath         do not hardcode runtime library paths
1479
1480 Optional Packages:
1481   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1482   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1483   --with-diet-libc        use diet libc
1484   --with-cc               no longer supported, use CC= instead
1485   --with-ccopts           no longer supported, use CFLAGS= instead
1486   --with-ldopts           no longer supported, use LDFLAGS= instead
1487   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1488   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1489   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1490   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1491   --with-included-gettext use the GNU gettext library included here
1492   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1493   --without-libintl-prefix     don't search for libintl in includedir and libdir
1494   --with-multiarch=ARCH specify the multiarch triplet
1495
1496 Some influential environment variables:
1497   CC          C compiler command
1498   CFLAGS      C compiler flags
1499   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1500               nonstandard directory <lib dir>
1501   LIBS        libraries to pass to the linker, e.g. -l<library>
1502   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1503               you have headers in a nonstandard directory <include dir>
1504   CPP         C preprocessor
1505   PKG_CONFIG  path to pkg-config utility
1506
1507 Use these variables to override the choices made by `configure' or to help
1508 it to find libraries and programs with nonstandard names/locations.
1509
1510 Report bugs to the package provider.
1511 _ACEOF
1512 ac_status=$?
1513 fi
1514
1515 if test "$ac_init_help" = "recursive"; then
1516   # If there are subdirs, report their specific --help.
1517   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1518     test -d "$ac_dir" ||
1519       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1520       continue
1521     ac_builddir=.
1522
1523 case "$ac_dir" in
1524 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *)
1526   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1527   # A ".." for each directory in $ac_dir_suffix.
1528   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1529   case $ac_top_builddir_sub in
1530   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1532   esac ;;
1533 esac
1534 ac_abs_top_builddir=$ac_pwd
1535 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1536 # for backward compatibility:
1537 ac_top_builddir=$ac_top_build_prefix
1538
1539 case $srcdir in
1540   .)  # We are building in place.
1541     ac_srcdir=.
1542     ac_top_srcdir=$ac_top_builddir_sub
1543     ac_abs_top_srcdir=$ac_pwd ;;
1544   [\\/]* | ?:[\\/]* )  # Absolute name.
1545     ac_srcdir=$srcdir$ac_dir_suffix;
1546     ac_top_srcdir=$srcdir
1547     ac_abs_top_srcdir=$srcdir ;;
1548   *) # Relative name.
1549     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1550     ac_top_srcdir=$ac_top_build_prefix$srcdir
1551     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1552 esac
1553 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1554
1555     cd "$ac_dir" || { ac_status=$?; continue; }
1556     # Check for guested configure.
1557     if test -f "$ac_srcdir/configure.gnu"; then
1558       echo &&
1559       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1560     elif test -f "$ac_srcdir/configure"; then
1561       echo &&
1562       $SHELL "$ac_srcdir/configure" --help=recursive
1563     else
1564       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1565     fi || ac_status=$?
1566     cd "$ac_pwd" || { ac_status=$?; break; }
1567   done
1568 fi
1569
1570 test -n "$ac_init_help" && exit $ac_status
1571 if $ac_init_version; then
1572   cat <<\_ACEOF
1573 configure
1574 generated by GNU Autoconf 2.65
1575
1576 Copyright (C) 2009 Free Software Foundation, Inc.
1577 This configure script is free software; the Free Software Foundation
1578 gives unlimited permission to copy, distribute and modify it.
1579 _ACEOF
1580   exit
1581 fi
1582
1583 ## ------------------------ ##
1584 ## Autoconf initialization. ##
1585 ## ------------------------ ##
1586
1587 # ac_fn_c_try_compile LINENO
1588 # --------------------------
1589 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1590 ac_fn_c_try_compile ()
1591 {
1592   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593   rm -f conftest.$ac_objext
1594   if { { ac_try="$ac_compile"
1595 case "(($ac_try" in
1596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597   *) ac_try_echo=$ac_try;;
1598 esac
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601   (eval "$ac_compile") 2>conftest.err
1602   ac_status=$?
1603   if test -s conftest.err; then
1604     grep -v '^ *+' conftest.err >conftest.er1
1605     cat conftest.er1 >&5
1606     mv -f conftest.er1 conftest.err
1607   fi
1608   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609   test $ac_status = 0; } && {
1610          test -z "$ac_c_werror_flag" ||
1611          test ! -s conftest.err
1612        } && test -s conftest.$ac_objext; then :
1613   ac_retval=0
1614 else
1615   $as_echo "$as_me: failed program was:" >&5
1616 sed 's/^/| /' conftest.$ac_ext >&5
1617
1618         ac_retval=1
1619 fi
1620   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1621   as_fn_set_status $ac_retval
1622
1623 } # ac_fn_c_try_compile
1624
1625 # ac_fn_c_try_link LINENO
1626 # -----------------------
1627 # Try to link conftest.$ac_ext, and return whether this succeeded.
1628 ac_fn_c_try_link ()
1629 {
1630   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631   rm -f conftest.$ac_objext conftest$ac_exeext
1632   if { { ac_try="$ac_link"
1633 case "(($ac_try" in
1634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635   *) ac_try_echo=$ac_try;;
1636 esac
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639   (eval "$ac_link") 2>conftest.err
1640   ac_status=$?
1641   if test -s conftest.err; then
1642     grep -v '^ *+' conftest.err >conftest.er1
1643     cat conftest.er1 >&5
1644     mv -f conftest.er1 conftest.err
1645   fi
1646   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647   test $ac_status = 0; } && {
1648          test -z "$ac_c_werror_flag" ||
1649          test ! -s conftest.err
1650        } && test -s conftest$ac_exeext && {
1651          test "$cross_compiling" = yes ||
1652          $as_test_x conftest$ac_exeext
1653        }; then :
1654   ac_retval=0
1655 else
1656   $as_echo "$as_me: failed program was:" >&5
1657 sed 's/^/| /' conftest.$ac_ext >&5
1658
1659         ac_retval=1
1660 fi
1661   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1662   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1663   # interfere with the next link command; also delete a directory that is
1664   # left behind by Apple's compiler.  We do this before executing the actions.
1665   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1666   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1667   as_fn_set_status $ac_retval
1668
1669 } # ac_fn_c_try_link
1670
1671 # ac_fn_c_try_cpp LINENO
1672 # ----------------------
1673 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1674 ac_fn_c_try_cpp ()
1675 {
1676   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677   if { { ac_try="$ac_cpp conftest.$ac_ext"
1678 case "(($ac_try" in
1679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680   *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1685   ac_status=$?
1686   if test -s conftest.err; then
1687     grep -v '^ *+' conftest.err >conftest.er1
1688     cat conftest.er1 >&5
1689     mv -f conftest.er1 conftest.err
1690   fi
1691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692   test $ac_status = 0; } >/dev/null && {
1693          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1694          test ! -s conftest.err
1695        }; then :
1696   ac_retval=0
1697 else
1698   $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1700
1701     ac_retval=1
1702 fi
1703   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1704   as_fn_set_status $ac_retval
1705
1706 } # ac_fn_c_try_cpp
1707
1708 # ac_fn_c_try_run LINENO
1709 # ----------------------
1710 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1711 # that executables *can* be run.
1712 ac_fn_c_try_run ()
1713 {
1714   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715   if { { ac_try="$ac_link"
1716 case "(($ac_try" in
1717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718   *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722   (eval "$ac_link") 2>&5
1723   ac_status=$?
1724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1726   { { case "(($ac_try" in
1727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728   *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732   (eval "$ac_try") 2>&5
1733   ac_status=$?
1734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735   test $ac_status = 0; }; }; then :
1736   ac_retval=0
1737 else
1738   $as_echo "$as_me: program exited with status $ac_status" >&5
1739        $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1741
1742        ac_retval=$ac_status
1743 fi
1744   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1745   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746   as_fn_set_status $ac_retval
1747
1748 } # ac_fn_c_try_run
1749
1750 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1751 # -------------------------------------------
1752 # Tests whether TYPE exists after having included INCLUDES, setting cache
1753 # variable VAR accordingly.
1754 ac_fn_c_check_type ()
1755 {
1756   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758 $as_echo_n "checking for $2... " >&6; }
1759 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1760   $as_echo_n "(cached) " >&6
1761 else
1762   eval "$3=no"
1763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h.  */
1765 $4
1766 int
1767 main ()
1768 {
1769 if (sizeof ($2))
1770          return 0;
1771   ;
1772   return 0;
1773 }
1774 _ACEOF
1775 if ac_fn_c_try_compile "$LINENO"; then :
1776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h.  */
1778 $4
1779 int
1780 main ()
1781 {
1782 if (sizeof (($2)))
1783             return 0;
1784   ;
1785   return 0;
1786 }
1787 _ACEOF
1788 if ac_fn_c_try_compile "$LINENO"; then :
1789
1790 else
1791   eval "$3=yes"
1792 fi
1793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794 fi
1795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796 fi
1797 eval ac_res=\$$3
1798                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799 $as_echo "$ac_res" >&6; }
1800   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1801
1802 } # ac_fn_c_check_type
1803
1804 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1805 # -------------------------------------------------------
1806 # Tests whether HEADER exists and can be compiled using the include files in
1807 # INCLUDES, setting the cache variable VAR accordingly.
1808 ac_fn_c_check_header_compile ()
1809 {
1810   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1814   $as_echo_n "(cached) " >&6
1815 else
1816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h.  */
1818 $4
1819 #include <$2>
1820 _ACEOF
1821 if ac_fn_c_try_compile "$LINENO"; then :
1822   eval "$3=yes"
1823 else
1824   eval "$3=no"
1825 fi
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827 fi
1828 eval ac_res=\$$3
1829                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1832
1833 } # ac_fn_c_check_header_compile
1834
1835 # ac_fn_c_check_func LINENO FUNC VAR
1836 # ----------------------------------
1837 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1838 ac_fn_c_check_func ()
1839 {
1840   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1844   $as_echo_n "(cached) " >&6
1845 else
1846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h.  */
1848 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1849    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1850 #define $2 innocuous_$2
1851
1852 /* System header to define __stub macros and hopefully few prototypes,
1853     which can conflict with char $2 (); below.
1854     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1855     <limits.h> exists even on freestanding compilers.  */
1856
1857 #ifdef __STDC__
1858 # include <limits.h>
1859 #else
1860 # include <assert.h>
1861 #endif
1862
1863 #undef $2
1864
1865 /* Override any GCC internal prototype to avoid an error.
1866    Use char because int might match the return type of a GCC
1867    builtin and then its argument prototype would still apply.  */
1868 #ifdef __cplusplus
1869 extern "C"
1870 #endif
1871 char $2 ();
1872 /* The GNU C library defines this for functions which it implements
1873     to always fail with ENOSYS.  Some functions are actually named
1874     something starting with __ and the normal name is an alias.  */
1875 #if defined __stub_$2 || defined __stub___$2
1876 choke me
1877 #endif
1878
1879 int
1880 main ()
1881 {
1882 return $2 ();
1883   ;
1884   return 0;
1885 }
1886 _ACEOF
1887 if ac_fn_c_try_link "$LINENO"; then :
1888   eval "$3=yes"
1889 else
1890   eval "$3=no"
1891 fi
1892 rm -f core conftest.err conftest.$ac_objext \
1893     conftest$ac_exeext conftest.$ac_ext
1894 fi
1895 eval ac_res=\$$3
1896                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 $as_echo "$ac_res" >&6; }
1898   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1899
1900 } # ac_fn_c_check_func
1901
1902 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1903 # -------------------------------------------------------
1904 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1905 # the include files in INCLUDES and setting the cache variable VAR
1906 # accordingly.
1907 ac_fn_c_check_header_mongrel ()
1908 {
1909   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1914   $as_echo_n "(cached) " >&6
1915 fi
1916 eval ac_res=\$$3
1917                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918 $as_echo "$ac_res" >&6; }
1919 else
1920   # Is the header compilable?
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1922 $as_echo_n "checking $2 usability... " >&6; }
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h.  */
1925 $4
1926 #include <$2>
1927 _ACEOF
1928 if ac_fn_c_try_compile "$LINENO"; then :
1929   ac_header_compiler=yes
1930 else
1931   ac_header_compiler=no
1932 fi
1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1935 $as_echo "$ac_header_compiler" >&6; }
1936
1937 # Is the header present?
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1939 $as_echo_n "checking $2 presence... " >&6; }
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h.  */
1942 #include <$2>
1943 _ACEOF
1944 if ac_fn_c_try_cpp "$LINENO"; then :
1945   ac_header_preproc=yes
1946 else
1947   ac_header_preproc=no
1948 fi
1949 rm -f conftest.err conftest.$ac_ext
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1951 $as_echo "$ac_header_preproc" >&6; }
1952
1953 # So?  What about this header?
1954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1955   yes:no: )
1956     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1957 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1958     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1959 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1960     ;;
1961   no:yes:* )
1962     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1963 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1964     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1965 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1966     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1967 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1968     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1969 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1970     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1971 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1972     ;;
1973 esac
1974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1977   $as_echo_n "(cached) " >&6
1978 else
1979   eval "$3=\$ac_header_compiler"
1980 fi
1981 eval ac_res=\$$3
1982                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1984 fi
1985   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1986
1987 } # ac_fn_c_check_header_mongrel
1988
1989 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1990 # --------------------------------------------
1991 # Tries to find the compile-time value of EXPR in a program that includes
1992 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1993 # computed
1994 ac_fn_c_compute_int ()
1995 {
1996   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997   if test "$cross_compiling" = yes; then
1998     # Depending upon the size, compute the lo and hi bounds.
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h.  */
2001 $4
2002 int
2003 main ()
2004 {
2005 static int test_array [1 - 2 * !(($2) >= 0)];
2006 test_array [0] = 0
2007
2008   ;
2009   return 0;
2010 }
2011 _ACEOF
2012 if ac_fn_c_try_compile "$LINENO"; then :
2013   ac_lo=0 ac_mid=0
2014   while :; do
2015     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h.  */
2017 $4
2018 int
2019 main ()
2020 {
2021 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2022 test_array [0] = 0
2023
2024   ;
2025   return 0;
2026 }
2027 _ACEOF
2028 if ac_fn_c_try_compile "$LINENO"; then :
2029   ac_hi=$ac_mid; break
2030 else
2031   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2032                         if test $ac_lo -le $ac_mid; then
2033                           ac_lo= ac_hi=
2034                           break
2035                         fi
2036                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2037 fi
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039   done
2040 else
2041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h.  */
2043 $4
2044 int
2045 main ()
2046 {
2047 static int test_array [1 - 2 * !(($2) < 0)];
2048 test_array [0] = 0
2049
2050   ;
2051   return 0;
2052 }
2053 _ACEOF
2054 if ac_fn_c_try_compile "$LINENO"; then :
2055   ac_hi=-1 ac_mid=-1
2056   while :; do
2057     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h.  */
2059 $4
2060 int
2061 main ()
2062 {
2063 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2064 test_array [0] = 0
2065
2066   ;
2067   return 0;
2068 }
2069 _ACEOF
2070 if ac_fn_c_try_compile "$LINENO"; then :
2071   ac_lo=$ac_mid; break
2072 else
2073   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2074                         if test $ac_mid -le $ac_hi; then
2075                           ac_lo= ac_hi=
2076                           break
2077                         fi
2078                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2079 fi
2080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081   done
2082 else
2083   ac_lo= ac_hi=
2084 fi
2085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086 fi
2087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088 # Binary search between lo and hi bounds.
2089 while test "x$ac_lo" != "x$ac_hi"; do
2090   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h.  */
2093 $4
2094 int
2095 main ()
2096 {
2097 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2098 test_array [0] = 0
2099
2100   ;
2101   return 0;
2102 }
2103 _ACEOF
2104 if ac_fn_c_try_compile "$LINENO"; then :
2105   ac_hi=$ac_mid
2106 else
2107   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2108 fi
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 done
2111 case $ac_lo in #((
2112 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2113 '') ac_retval=1 ;;
2114 esac
2115   else
2116     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h.  */
2118 $4
2119 static long int longval () { return $2; }
2120 static unsigned long int ulongval () { return $2; }
2121 #include <stdio.h>
2122 #include <stdlib.h>
2123 int
2124 main ()
2125 {
2126
2127   FILE *f = fopen ("conftest.val", "w");
2128   if (! f)
2129     return 1;
2130   if (($2) < 0)
2131     {
2132       long int i = longval ();
2133       if (i != ($2))
2134         return 1;
2135       fprintf (f, "%ld", i);
2136     }
2137   else
2138     {
2139       unsigned long int i = ulongval ();
2140       if (i != ($2))
2141         return 1;
2142       fprintf (f, "%lu", i);
2143     }
2144   /* Do not output a trailing newline, as this causes \r\n confusion
2145      on some platforms.  */
2146   return ferror (f) || fclose (f) != 0;
2147
2148   ;
2149   return 0;
2150 }
2151 _ACEOF
2152 if ac_fn_c_try_run "$LINENO"; then :
2153   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2154 else
2155   ac_retval=1
2156 fi
2157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2158   conftest.$ac_objext conftest.beam conftest.$ac_ext
2159 rm -f conftest.val
2160
2161   fi
2162   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2163   as_fn_set_status $ac_retval
2164
2165 } # ac_fn_c_compute_int
2166
2167 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2168 # ----------------------------------------------------
2169 # Tries to find if the field MEMBER exists in type AGGR, after including
2170 # INCLUDES, setting cache variable VAR accordingly.
2171 ac_fn_c_check_member ()
2172 {
2173   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2175 $as_echo_n "checking for $2.$3... " >&6; }
2176 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2177   $as_echo_n "(cached) " >&6
2178 else
2179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h.  */
2181 $5
2182 int
2183 main ()
2184 {
2185 static $2 ac_aggr;
2186 if (ac_aggr.$3)
2187 return 0;
2188   ;
2189   return 0;
2190 }
2191 _ACEOF
2192 if ac_fn_c_try_compile "$LINENO"; then :
2193   eval "$4=yes"
2194 else
2195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h.  */
2197 $5
2198 int
2199 main ()
2200 {
2201 static $2 ac_aggr;
2202 if (sizeof ac_aggr.$3)
2203 return 0;
2204   ;
2205   return 0;
2206 }
2207 _ACEOF
2208 if ac_fn_c_try_compile "$LINENO"; then :
2209   eval "$4=yes"
2210 else
2211   eval "$4=no"
2212 fi
2213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214 fi
2215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216 fi
2217 eval ac_res=\$$4
2218                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2219 $as_echo "$ac_res" >&6; }
2220   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2221
2222 } # ac_fn_c_check_member
2223
2224 # ac_fn_c_check_decl LINENO SYMBOL VAR
2225 # ------------------------------------
2226 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2227 ac_fn_c_check_decl ()
2228 {
2229   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2231 $as_echo_n "checking whether $2 is declared... " >&6; }
2232 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2233   $as_echo_n "(cached) " >&6
2234 else
2235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h.  */
2237 $4
2238 int
2239 main ()
2240 {
2241 #ifndef $2
2242   (void) $2;
2243 #endif
2244
2245   ;
2246   return 0;
2247 }
2248 _ACEOF
2249 if ac_fn_c_try_compile "$LINENO"; then :
2250   eval "$3=yes"
2251 else
2252   eval "$3=no"
2253 fi
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255 fi
2256 eval ac_res=\$$3
2257                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258 $as_echo "$ac_res" >&6; }
2259   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2260
2261 } # ac_fn_c_check_decl
2262 cat >config.log <<_ACEOF
2263 This file contains any messages produced by compilers while
2264 running configure, to aid debugging if configure makes a mistake.
2265
2266 It was created by $as_me, which was
2267 generated by GNU Autoconf 2.65.  Invocation command line was
2268
2269   $ $0 $@
2270
2271 _ACEOF
2272 exec 5>>config.log
2273 {
2274 cat <<_ASUNAME
2275 ## --------- ##
2276 ## Platform. ##
2277 ## --------- ##
2278
2279 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2280 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2281 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2282 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2283 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2284
2285 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2286 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2287
2288 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2289 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2290 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2291 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2292 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2293 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2294 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2295
2296 _ASUNAME
2297
2298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 for as_dir in $PATH
2300 do
2301   IFS=$as_save_IFS
2302   test -z "$as_dir" && as_dir=.
2303     $as_echo "PATH: $as_dir"
2304   done
2305 IFS=$as_save_IFS
2306
2307 } >&5
2308
2309 cat >&5 <<_ACEOF
2310
2311
2312 ## ----------- ##
2313 ## Core tests. ##
2314 ## ----------- ##
2315
2316 _ACEOF
2317
2318
2319 # Keep a trace of the command line.
2320 # Strip out --no-create and --no-recursion so they do not pile up.
2321 # Strip out --silent because we don't want to record it for future runs.
2322 # Also quote any args containing shell meta-characters.
2323 # Make two passes to allow for proper duplicate-argument suppression.
2324 ac_configure_args=
2325 ac_configure_args0=
2326 ac_configure_args1=
2327 ac_must_keep_next=false
2328 for ac_pass in 1 2
2329 do
2330   for ac_arg
2331   do
2332     case $ac_arg in
2333     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2334     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2335     | -silent | --silent | --silen | --sile | --sil)
2336       continue ;;
2337     *\'*)
2338       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2339     esac
2340     case $ac_pass in
2341     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2342     2)
2343       as_fn_append ac_configure_args1 " '$ac_arg'"
2344       if test $ac_must_keep_next = true; then
2345         ac_must_keep_next=false # Got value, back to normal.
2346       else
2347         case $ac_arg in
2348           *=* | --config-cache | -C | -disable-* | --disable-* \
2349           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2350           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2351           | -with-* | --with-* | -without-* | --without-* | --x)
2352             case "$ac_configure_args0 " in
2353               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2354             esac
2355             ;;
2356           -* ) ac_must_keep_next=true ;;
2357         esac
2358       fi
2359       as_fn_append ac_configure_args " '$ac_arg'"
2360       ;;
2361     esac
2362   done
2363 done
2364 { ac_configure_args0=; unset ac_configure_args0;}
2365 { ac_configure_args1=; unset ac_configure_args1;}
2366
2367 # When interrupted or exit'd, cleanup temporary files, and complete
2368 # config.log.  We remove comments because anyway the quotes in there
2369 # would cause problems or look ugly.
2370 # WARNING: Use '\'' to represent an apostrophe within the trap.
2371 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2372 trap 'exit_status=$?
2373   # Save into config.log some information that might help in debugging.
2374   {
2375     echo
2376
2377     cat <<\_ASBOX
2378 ## ---------------- ##
2379 ## Cache variables. ##
2380 ## ---------------- ##
2381 _ASBOX
2382     echo
2383     # The following way of writing the cache mishandles newlines in values,
2384 (
2385   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2386     eval ac_val=\$$ac_var
2387     case $ac_val in #(
2388     *${as_nl}*)
2389       case $ac_var in #(
2390       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2391 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2392       esac
2393       case $ac_var in #(
2394       _ | IFS | as_nl) ;; #(
2395       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2396       *) { eval $ac_var=; unset $ac_var;} ;;
2397       esac ;;
2398     esac
2399   done
2400   (set) 2>&1 |
2401     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2402     *${as_nl}ac_space=\ *)
2403       sed -n \
2404         "s/'\''/'\''\\\\'\'''\''/g;
2405           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2406       ;; #(
2407     *)
2408       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2409       ;;
2410     esac |
2411     sort
2412 )
2413     echo
2414
2415     cat <<\_ASBOX
2416 ## ----------------- ##
2417 ## Output variables. ##
2418 ## ----------------- ##
2419 _ASBOX
2420     echo
2421     for ac_var in $ac_subst_vars
2422     do
2423       eval ac_val=\$$ac_var
2424       case $ac_val in
2425       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2426       esac
2427       $as_echo "$ac_var='\''$ac_val'\''"
2428     done | sort
2429     echo
2430
2431     if test -n "$ac_subst_files"; then
2432       cat <<\_ASBOX
2433 ## ------------------- ##
2434 ## File substitutions. ##
2435 ## ------------------- ##
2436 _ASBOX
2437       echo
2438       for ac_var in $ac_subst_files
2439       do
2440         eval ac_val=\$$ac_var
2441         case $ac_val in
2442         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2443         esac
2444         $as_echo "$ac_var='\''$ac_val'\''"
2445       done | sort
2446       echo
2447     fi
2448
2449     if test -s confdefs.h; then
2450       cat <<\_ASBOX
2451 ## ----------- ##
2452 ## confdefs.h. ##
2453 ## ----------- ##
2454 _ASBOX
2455       echo
2456       cat confdefs.h
2457       echo
2458     fi
2459     test "$ac_signal" != 0 &&
2460       $as_echo "$as_me: caught signal $ac_signal"
2461     $as_echo "$as_me: exit $exit_status"
2462   } >&5
2463   rm -f core *.core core.conftest.* &&
2464     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2465     exit $exit_status
2466 ' 0
2467 for ac_signal in 1 2 13 15; do
2468   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2469 done
2470 ac_signal=0
2471
2472 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2473 rm -f -r conftest* confdefs.h
2474
2475 $as_echo "/* confdefs.h */" > confdefs.h
2476
2477 # Predefined preprocessor variables.
2478
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_NAME "$PACKAGE_NAME"
2481 _ACEOF
2482
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2485 _ACEOF
2486
2487 cat >>confdefs.h <<_ACEOF
2488 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2489 _ACEOF
2490
2491 cat >>confdefs.h <<_ACEOF
2492 #define PACKAGE_STRING "$PACKAGE_STRING"
2493 _ACEOF
2494
2495 cat >>confdefs.h <<_ACEOF
2496 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2497 _ACEOF
2498
2499 cat >>confdefs.h <<_ACEOF
2500 #define PACKAGE_URL "$PACKAGE_URL"
2501 _ACEOF
2502
2503
2504 # Let the site file select an alternate cache file if it wants to.
2505 # Prefer an explicitly selected file to automatically selected ones.
2506 ac_site_file1=NONE
2507 ac_site_file2=NONE
2508 if test -n "$CONFIG_SITE"; then
2509   ac_site_file1=$CONFIG_SITE
2510 elif test "x$prefix" != xNONE; then
2511   ac_site_file1=$prefix/share/config.site
2512   ac_site_file2=$prefix/etc/config.site
2513 else
2514   ac_site_file1=$ac_default_prefix/share/config.site
2515   ac_site_file2=$ac_default_prefix/etc/config.site
2516 fi
2517 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2518 do
2519   test "x$ac_site_file" = xNONE && continue
2520   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2521     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2522 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2523     sed 's/^/| /' "$ac_site_file" >&5
2524     . "$ac_site_file"
2525   fi
2526 done
2527
2528 if test -r "$cache_file"; then
2529   # Some versions of bash will fail to source /dev/null (special files
2530   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2531   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2532     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2533 $as_echo "$as_me: loading cache $cache_file" >&6;}
2534     case $cache_file in
2535       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2536       *)                      . "./$cache_file";;
2537     esac
2538   fi
2539 else
2540   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2541 $as_echo "$as_me: creating cache $cache_file" >&6;}
2542   >$cache_file
2543 fi
2544
2545 as_fn_append ac_header_list " stdlib.h"
2546 as_fn_append ac_header_list " unistd.h"
2547 as_fn_append ac_header_list " sys/param.h"
2548 # Check that the precious variables saved in the cache have kept the same
2549 # value.
2550 ac_cache_corrupted=false
2551 for ac_var in $ac_precious_vars; do
2552   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2553   eval ac_new_set=\$ac_env_${ac_var}_set
2554   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2555   eval ac_new_val=\$ac_env_${ac_var}_value
2556   case $ac_old_set,$ac_new_set in
2557     set,)
2558       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2559 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2560       ac_cache_corrupted=: ;;
2561     ,set)
2562       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2563 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2564       ac_cache_corrupted=: ;;
2565     ,);;
2566     *)
2567       if test "x$ac_old_val" != "x$ac_new_val"; then
2568         # differences in whitespace do not lead to failure.
2569         ac_old_val_w=`echo x $ac_old_val`
2570         ac_new_val_w=`echo x $ac_new_val`
2571         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2572           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2573 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2574           ac_cache_corrupted=:
2575         else
2576           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2577 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2578           eval $ac_var=\$ac_old_val
2579         fi
2580         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2581 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2582         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2583 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2584       fi;;
2585   esac
2586   # Pass precious variables to config.status.
2587   if test "$ac_new_set" = set; then
2588     case $ac_new_val in
2589     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2590     *) ac_arg=$ac_var=$ac_new_val ;;
2591     esac
2592     case " $ac_configure_args " in
2593       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2594       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2595     esac
2596   fi
2597 done
2598 if $ac_cache_corrupted; then
2599   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2601   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2602 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2603   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2604 fi
2605 ## -------------------- ##
2606 ## Main body of script. ##
2607 ## -------------------- ##
2608
2609 ac_ext=c
2610 ac_cpp='$CPP $CPPFLAGS'
2611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2614
2615
2616
2617 ac_aux_dir=
2618 for ac_dir in config "$srcdir"/config; do
2619   for ac_t in install-sh install.sh shtool; do
2620     if test -f "$ac_dir/$ac_t"; then
2621       ac_aux_dir=$ac_dir
2622       ac_install_sh="$ac_aux_dir/$ac_t -c"
2623       break 2
2624     fi
2625   done
2626 done
2627 if test -z "$ac_aux_dir"; then
2628   as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2629 fi
2630
2631 # These three variables are undocumented and unsupported,
2632 # and are intended to be withdrawn in a future Autoconf release.
2633 # They can cause serious problems if a builder's source tree is in a directory
2634 # whose full name contains unusual characters.
2635 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2636 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2637 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2638
2639
2640 ac_config_headers="$ac_config_headers lib/config.h"
2641
2642
2643 MCONFIG=./MCONFIG
2644
2645 BINARY_TYPE=bin
2646 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2647         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2648 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2649         | tr \" " "`
2650 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2651 MONTH=`echo $DATE | awk -F- '{print $2}'`
2652 YEAR=`echo $DATE | awk -F- '{print $3}'`
2653
2654 if expr $YEAR ">" 1900 > /dev/null ; then
2655         E2FSPROGS_YEAR=$YEAR
2656 elif expr $YEAR ">" 90 >/dev/null ; then
2657         E2FSPROGS_YEAR=19$YEAR
2658 else
2659         E2FSPROGS_YEAR=20$YEAR
2660 fi
2661
2662 case $MONTH in
2663 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2664 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2665 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2666 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2667 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2668 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2669 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2670 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2671 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2672 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2673 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2674 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2675 *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2676 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2677 esac
2678
2679 base_ver=`echo $E2FSPROGS_VERSION | \
2680                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2681
2682 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2683
2684 case $E2FSPROGS_VERSION in
2685 *-WIP|pre-*)
2686         E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2687         ;;
2688 *)
2689         E2FSPROGS_PKGVER="$base_ver"
2690         ;;
2691 esac
2692
2693 unset DATE MONTH YEAR base_ver pre_vers date_spec
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2695 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2697 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2698
2699
2700
2701
2702
2703 # Make sure we can run config.sub.
2704 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2705   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2706
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2708 $as_echo_n "checking build system type... " >&6; }
2709 if test "${ac_cv_build+set}" = set; then :
2710   $as_echo_n "(cached) " >&6
2711 else
2712   ac_build_alias=$build_alias
2713 test "x$ac_build_alias" = x &&
2714   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2715 test "x$ac_build_alias" = x &&
2716   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2717 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2718   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2719
2720 fi
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2722 $as_echo "$ac_cv_build" >&6; }
2723 case $ac_cv_build in
2724 *-*-*) ;;
2725 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2726 esac
2727 build=$ac_cv_build
2728 ac_save_IFS=$IFS; IFS='-'
2729 set x $ac_cv_build
2730 shift
2731 build_cpu=$1
2732 build_vendor=$2
2733 shift; shift
2734 # Remember, the first character of IFS is used to create $*,
2735 # except with old shells:
2736 build_os=$*
2737 IFS=$ac_save_IFS
2738 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2739
2740
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2742 $as_echo_n "checking host system type... " >&6; }
2743 if test "${ac_cv_host+set}" = set; then :
2744   $as_echo_n "(cached) " >&6
2745 else
2746   if test "x$host_alias" = x; then
2747   ac_cv_host=$ac_cv_build
2748 else
2749   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2750     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2751 fi
2752
2753 fi
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2755 $as_echo "$ac_cv_host" >&6; }
2756 case $ac_cv_host in
2757 *-*-*) ;;
2758 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2759 esac
2760 host=$ac_cv_host
2761 ac_save_IFS=$IFS; IFS='-'
2762 set x $ac_cv_host
2763 shift
2764 host_cpu=$1
2765 host_vendor=$2
2766 shift; shift
2767 # Remember, the first character of IFS is used to create $*,
2768 # except with old shells:
2769 host_os=$*
2770 IFS=$ac_save_IFS
2771 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2772
2773
2774 DLOPEN_LIB=''
2775 ac_ext=c
2776 ac_cpp='$CPP $CPPFLAGS'
2777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2780 if test -n "$ac_tool_prefix"; then
2781   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2782 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2784 $as_echo_n "checking for $ac_word... " >&6; }
2785 if test "${ac_cv_prog_CC+set}" = set; then :
2786   $as_echo_n "(cached) " >&6
2787 else
2788   if test -n "$CC"; then
2789   ac_cv_prog_CC="$CC" # Let the user override the test.
2790 else
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 for as_dir in $PATH
2793 do
2794   IFS=$as_save_IFS
2795   test -z "$as_dir" && as_dir=.
2796     for ac_exec_ext in '' $ac_executable_extensions; do
2797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2798     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2800     break 2
2801   fi
2802 done
2803   done
2804 IFS=$as_save_IFS
2805
2806 fi
2807 fi
2808 CC=$ac_cv_prog_CC
2809 if test -n "$CC"; then
2810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2811 $as_echo "$CC" >&6; }
2812 else
2813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2814 $as_echo "no" >&6; }
2815 fi
2816
2817
2818 fi
2819 if test -z "$ac_cv_prog_CC"; then
2820   ac_ct_CC=$CC
2821   # Extract the first word of "gcc", so it can be a program name with args.
2822 set dummy gcc; ac_word=$2
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2824 $as_echo_n "checking for $ac_word... " >&6; }
2825 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2826   $as_echo_n "(cached) " >&6
2827 else
2828   if test -n "$ac_ct_CC"; then
2829   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2830 else
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 for as_dir in $PATH
2833 do
2834   IFS=$as_save_IFS
2835   test -z "$as_dir" && as_dir=.
2836     for ac_exec_ext in '' $ac_executable_extensions; do
2837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2838     ac_cv_prog_ac_ct_CC="gcc"
2839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840     break 2
2841   fi
2842 done
2843   done
2844 IFS=$as_save_IFS
2845
2846 fi
2847 fi
2848 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2849 if test -n "$ac_ct_CC"; then
2850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2851 $as_echo "$ac_ct_CC" >&6; }
2852 else
2853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 $as_echo "no" >&6; }
2855 fi
2856
2857   if test "x$ac_ct_CC" = x; then
2858     CC=""
2859   else
2860     case $cross_compiling:$ac_tool_warned in
2861 yes:)
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2864 ac_tool_warned=yes ;;
2865 esac
2866     CC=$ac_ct_CC
2867   fi
2868 else
2869   CC="$ac_cv_prog_CC"
2870 fi
2871
2872 if test -z "$CC"; then
2873           if test -n "$ac_tool_prefix"; then
2874     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2875 set dummy ${ac_tool_prefix}cc; ac_word=$2
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877 $as_echo_n "checking for $ac_word... " >&6; }
2878 if test "${ac_cv_prog_CC+set}" = set; then :
2879   $as_echo_n "(cached) " >&6
2880 else
2881   if test -n "$CC"; then
2882   ac_cv_prog_CC="$CC" # Let the user override the test.
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2886 do
2887   IFS=$as_save_IFS
2888   test -z "$as_dir" && as_dir=.
2889     for ac_exec_ext in '' $ac_executable_extensions; do
2890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891     ac_cv_prog_CC="${ac_tool_prefix}cc"
2892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893     break 2
2894   fi
2895 done
2896   done
2897 IFS=$as_save_IFS
2898
2899 fi
2900 fi
2901 CC=$ac_cv_prog_CC
2902 if test -n "$CC"; then
2903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2904 $as_echo "$CC" >&6; }
2905 else
2906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 $as_echo "no" >&6; }
2908 fi
2909
2910
2911   fi
2912 fi
2913 if test -z "$CC"; then
2914   # Extract the first word of "cc", so it can be a program name with args.
2915 set dummy cc; ac_word=$2
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917 $as_echo_n "checking for $ac_word... " >&6; }
2918 if test "${ac_cv_prog_CC+set}" = set; then :
2919   $as_echo_n "(cached) " >&6
2920 else
2921   if test -n "$CC"; then
2922   ac_cv_prog_CC="$CC" # Let the user override the test.
2923 else
2924   ac_prog_rejected=no
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2927 do
2928   IFS=$as_save_IFS
2929   test -z "$as_dir" && as_dir=.
2930     for ac_exec_ext in '' $ac_executable_extensions; do
2931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2932     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2933        ac_prog_rejected=yes
2934        continue
2935      fi
2936     ac_cv_prog_CC="cc"
2937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938     break 2
2939   fi
2940 done
2941   done
2942 IFS=$as_save_IFS
2943
2944 if test $ac_prog_rejected = yes; then
2945   # We found a bogon in the path, so make sure we never use it.
2946   set dummy $ac_cv_prog_CC
2947   shift
2948   if test $# != 0; then
2949     # We chose a different compiler from the bogus one.
2950     # However, it has the same basename, so the bogon will be chosen
2951     # first if we set CC to just the basename; use the full file name.
2952     shift
2953     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2954   fi
2955 fi
2956 fi
2957 fi
2958 CC=$ac_cv_prog_CC
2959 if test -n "$CC"; then
2960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2961 $as_echo "$CC" >&6; }
2962 else
2963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2965 fi
2966
2967
2968 fi
2969 if test -z "$CC"; then
2970   if test -n "$ac_tool_prefix"; then
2971   for ac_prog in cl.exe
2972   do
2973     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2974 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if test "${ac_cv_prog_CC+set}" = set; then :
2978   $as_echo_n "(cached) " >&6
2979 else
2980   if test -n "$CC"; then
2981   ac_cv_prog_CC="$CC" # Let the user override the test.
2982 else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986   IFS=$as_save_IFS
2987   test -z "$as_dir" && as_dir=.
2988     for ac_exec_ext in '' $ac_executable_extensions; do
2989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992     break 2
2993   fi
2994 done
2995   done
2996 IFS=$as_save_IFS
2997
2998 fi
2999 fi
3000 CC=$ac_cv_prog_CC
3001 if test -n "$CC"; then
3002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3003 $as_echo "$CC" >&6; }
3004 else
3005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3007 fi
3008
3009
3010     test -n "$CC" && break
3011   done
3012 fi
3013 if test -z "$CC"; then
3014   ac_ct_CC=$CC
3015   for ac_prog in cl.exe
3016 do
3017   # Extract the first word of "$ac_prog", so it can be a program name with args.
3018 set dummy $ac_prog; ac_word=$2
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020 $as_echo_n "checking for $ac_word... " >&6; }
3021 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3022   $as_echo_n "(cached) " >&6
3023 else
3024   if test -n "$ac_ct_CC"; then
3025   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3026 else
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 for as_dir in $PATH
3029 do
3030   IFS=$as_save_IFS
3031   test -z "$as_dir" && as_dir=.
3032     for ac_exec_ext in '' $ac_executable_extensions; do
3033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3034     ac_cv_prog_ac_ct_CC="$ac_prog"
3035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3036     break 2
3037   fi
3038 done
3039   done
3040 IFS=$as_save_IFS
3041
3042 fi
3043 fi
3044 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3045 if test -n "$ac_ct_CC"; then
3046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3047 $as_echo "$ac_ct_CC" >&6; }
3048 else
3049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050 $as_echo "no" >&6; }
3051 fi
3052
3053
3054   test -n "$ac_ct_CC" && break
3055 done
3056
3057   if test "x$ac_ct_CC" = x; then
3058     CC=""
3059   else
3060     case $cross_compiling:$ac_tool_warned in
3061 yes:)
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3064 ac_tool_warned=yes ;;
3065 esac
3066     CC=$ac_ct_CC
3067   fi
3068 fi
3069
3070 fi
3071
3072
3073 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3075 as_fn_error "no acceptable C compiler found in \$PATH
3076 See \`config.log' for more details." "$LINENO" 5; }
3077
3078 # Provide some information about the compiler.
3079 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3080 set X $ac_compile
3081 ac_compiler=$2
3082 for ac_option in --version -v -V -qversion; do
3083   { { ac_try="$ac_compiler $ac_option >&5"
3084 case "(($ac_try" in
3085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086   *) ac_try_echo=$ac_try;;
3087 esac
3088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3089 $as_echo "$ac_try_echo"; } >&5
3090   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3091   ac_status=$?
3092   if test -s conftest.err; then
3093     sed '10a\
3094 ... rest of stderr output deleted ...
3095          10q' conftest.err >conftest.er1
3096     cat conftest.er1 >&5
3097   fi
3098   rm -f conftest.er1 conftest.err
3099   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3100   test $ac_status = 0; }
3101 done
3102
3103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3104 /* end confdefs.h.  */
3105
3106 int
3107 main ()
3108 {
3109
3110   ;
3111   return 0;
3112 }
3113 _ACEOF
3114 ac_clean_files_save=$ac_clean_files
3115 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3116 # Try to create an executable without -o first, disregard a.out.
3117 # It will help us diagnose broken compilers, and finding out an intuition
3118 # of exeext.
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3120 $as_echo_n "checking whether the C compiler works... " >&6; }
3121 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3122
3123 # The possible output files:
3124 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3125
3126 ac_rmfiles=
3127 for ac_file in $ac_files
3128 do
3129   case $ac_file in
3130     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3131     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3132   esac
3133 done
3134 rm -f $ac_rmfiles
3135
3136 if { { ac_try="$ac_link_default"
3137 case "(($ac_try" in
3138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139   *) ac_try_echo=$ac_try;;
3140 esac
3141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142 $as_echo "$ac_try_echo"; } >&5
3143   (eval "$ac_link_default") 2>&5
3144   ac_status=$?
3145   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3146   test $ac_status = 0; }; then :
3147   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3148 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3149 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3150 # so that the user can short-circuit this test for compilers unknown to
3151 # Autoconf.
3152 for ac_file in $ac_files ''
3153 do
3154   test -f "$ac_file" || continue
3155   case $ac_file in
3156     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3157         ;;
3158     [ab].out )
3159         # We found the default executable, but exeext='' is most
3160         # certainly right.
3161         break;;
3162     *.* )
3163         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3164         then :; else
3165            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3166         fi
3167         # We set ac_cv_exeext here because the later test for it is not
3168         # safe: cross compilers may not add the suffix if given an `-o'
3169         # argument, so we may need to know it at that point already.
3170         # Even if this section looks crufty: it has the advantage of
3171         # actually working.
3172         break;;
3173     * )
3174         break;;
3175   esac
3176 done
3177 test "$ac_cv_exeext" = no && ac_cv_exeext=
3178
3179 else
3180   ac_file=''
3181 fi
3182 if test -z "$ac_file"; then :
3183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3185 $as_echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3187
3188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3190 { as_fn_set_status 77
3191 as_fn_error "C compiler cannot create executables
3192 See \`config.log' for more details." "$LINENO" 5; }; }
3193 else
3194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3195 $as_echo "yes" >&6; }
3196 fi
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3198 $as_echo_n "checking for C compiler default output file name... " >&6; }
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3200 $as_echo "$ac_file" >&6; }
3201 ac_exeext=$ac_cv_exeext
3202
3203 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3204 ac_clean_files=$ac_clean_files_save
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3206 $as_echo_n "checking for suffix of executables... " >&6; }
3207 if { { ac_try="$ac_link"
3208 case "(($ac_try" in
3209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210   *) ac_try_echo=$ac_try;;
3211 esac
3212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3213 $as_echo "$ac_try_echo"; } >&5
3214   (eval "$ac_link") 2>&5
3215   ac_status=$?
3216   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217   test $ac_status = 0; }; then :
3218   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3219 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3220 # work properly (i.e., refer to `conftest.exe'), while it won't with
3221 # `rm'.
3222 for ac_file in conftest.exe conftest conftest.*; do
3223   test -f "$ac_file" || continue
3224   case $ac_file in
3225     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3226     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3227           break;;
3228     * ) break;;
3229   esac
3230 done
3231 else
3232   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234 as_fn_error "cannot compute suffix of executables: cannot compile and link
3235 See \`config.log' for more details." "$LINENO" 5; }
3236 fi
3237 rm -f conftest conftest$ac_cv_exeext
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3239 $as_echo "$ac_cv_exeext" >&6; }
3240
3241 rm -f conftest.$ac_ext
3242 EXEEXT=$ac_cv_exeext
3243 ac_exeext=$EXEEXT
3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245 /* end confdefs.h.  */
3246 #include <stdio.h>
3247 int
3248 main ()
3249 {
3250 FILE *f = fopen ("conftest.out", "w");
3251  return ferror (f) || fclose (f) != 0;
3252
3253   ;
3254   return 0;
3255 }
3256 _ACEOF
3257 ac_clean_files="$ac_clean_files conftest.out"
3258 # Check that the compiler produces executables we can run.  If not, either
3259 # the compiler is broken, or we cross compile.
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3261 $as_echo_n "checking whether we are cross compiling... " >&6; }
3262 if test "$cross_compiling" != yes; then
3263   { { ac_try="$ac_link"
3264 case "(($ac_try" in
3265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266   *) ac_try_echo=$ac_try;;
3267 esac
3268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269 $as_echo "$ac_try_echo"; } >&5
3270   (eval "$ac_link") 2>&5
3271   ac_status=$?
3272   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273   test $ac_status = 0; }
3274   if { ac_try='./conftest$ac_cv_exeext'
3275   { { case "(($ac_try" in
3276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277   *) ac_try_echo=$ac_try;;
3278 esac
3279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280 $as_echo "$ac_try_echo"; } >&5
3281   (eval "$ac_try") 2>&5
3282   ac_status=$?
3283   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284   test $ac_status = 0; }; }; then
3285     cross_compiling=no
3286   else
3287     if test "$cross_compiling" = maybe; then
3288         cross_compiling=yes
3289     else
3290         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3292 as_fn_error "cannot run C compiled programs.
3293 If you meant to cross compile, use \`--host'.
3294 See \`config.log' for more details." "$LINENO" 5; }
3295     fi
3296   fi
3297 fi
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3299 $as_echo "$cross_compiling" >&6; }
3300
3301 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3302 ac_clean_files=$ac_clean_files_save
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3304 $as_echo_n "checking for suffix of object files... " >&6; }
3305 if test "${ac_cv_objext+set}" = set; then :
3306   $as_echo_n "(cached) " >&6
3307 else
3308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309 /* end confdefs.h.  */
3310
3311 int
3312 main ()
3313 {
3314
3315   ;
3316   return 0;
3317 }
3318 _ACEOF
3319 rm -f conftest.o conftest.obj
3320 if { { ac_try="$ac_compile"
3321 case "(($ac_try" in
3322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323   *) ac_try_echo=$ac_try;;
3324 esac
3325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326 $as_echo "$ac_try_echo"; } >&5
3327   (eval "$ac_compile") 2>&5
3328   ac_status=$?
3329   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330   test $ac_status = 0; }; then :
3331   for ac_file in conftest.o conftest.obj conftest.*; do
3332   test -f "$ac_file" || continue;
3333   case $ac_file in
3334     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3335     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3336        break;;
3337   esac
3338 done
3339 else
3340   $as_echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3342
3343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3345 as_fn_error "cannot compute suffix of object files: cannot compile
3346 See \`config.log' for more details." "$LINENO" 5; }
3347 fi
3348 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3349 fi
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3351 $as_echo "$ac_cv_objext" >&6; }
3352 OBJEXT=$ac_cv_objext
3353 ac_objext=$OBJEXT
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3355 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3356 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3357   $as_echo_n "(cached) " >&6
3358 else
3359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360 /* end confdefs.h.  */
3361
3362 int
3363 main ()
3364 {
3365 #ifndef __GNUC__
3366        choke me
3367 #endif
3368
3369   ;
3370   return 0;
3371 }
3372 _ACEOF
3373 if ac_fn_c_try_compile "$LINENO"; then :
3374   ac_compiler_gnu=yes
3375 else
3376   ac_compiler_gnu=no
3377 fi
3378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3379 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3380
3381 fi
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3383 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3384 if test $ac_compiler_gnu = yes; then
3385   GCC=yes
3386 else
3387   GCC=
3388 fi
3389 ac_test_CFLAGS=${CFLAGS+set}
3390 ac_save_CFLAGS=$CFLAGS
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3392 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3393 if test "${ac_cv_prog_cc_g+set}" = set; then :
3394   $as_echo_n "(cached) " >&6
3395 else
3396   ac_save_c_werror_flag=$ac_c_werror_flag
3397    ac_c_werror_flag=yes
3398    ac_cv_prog_cc_g=no
3399    CFLAGS="-g"
3400    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401 /* end confdefs.h.  */
3402
3403 int
3404 main ()
3405 {
3406
3407   ;
3408   return 0;
3409 }
3410 _ACEOF
3411 if ac_fn_c_try_compile "$LINENO"; then :
3412   ac_cv_prog_cc_g=yes
3413 else
3414   CFLAGS=""
3415       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h.  */
3417
3418 int
3419 main ()
3420 {
3421
3422   ;
3423   return 0;
3424 }
3425 _ACEOF
3426 if ac_fn_c_try_compile "$LINENO"; then :
3427
3428 else
3429   ac_c_werror_flag=$ac_save_c_werror_flag
3430          CFLAGS="-g"
3431          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h.  */
3433
3434 int
3435 main ()
3436 {
3437
3438   ;
3439   return 0;
3440 }
3441 _ACEOF
3442 if ac_fn_c_try_compile "$LINENO"; then :
3443   ac_cv_prog_cc_g=yes
3444 fi
3445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446 fi
3447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448 fi
3449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450    ac_c_werror_flag=$ac_save_c_werror_flag
3451 fi
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3453 $as_echo "$ac_cv_prog_cc_g" >&6; }
3454 if test "$ac_test_CFLAGS" = set; then
3455   CFLAGS=$ac_save_CFLAGS
3456 elif test $ac_cv_prog_cc_g = yes; then
3457   if test "$GCC" = yes; then
3458     CFLAGS="-g -O2"
3459   else
3460     CFLAGS="-g"
3461   fi
3462 else
3463   if test "$GCC" = yes; then
3464     CFLAGS="-O2"
3465   else
3466     CFLAGS=
3467   fi
3468 fi
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3470 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3471 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3472   $as_echo_n "(cached) " >&6
3473 else
3474   ac_cv_prog_cc_c89=no
3475 ac_save_CC=$CC
3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h.  */
3478 #include <stdarg.h>
3479 #include <stdio.h>
3480 #include <sys/types.h>
3481 #include <sys/stat.h>
3482 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3483 struct buf { int x; };
3484 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3485 static char *e (p, i)
3486      char **p;
3487      int i;
3488 {
3489   return p[i];
3490 }
3491 static char *f (char * (*g) (char **, int), char **p, ...)
3492 {
3493   char *s;
3494   va_list v;
3495   va_start (v,p);
3496   s = g (p, va_arg (v,int));
3497   va_end (v);
3498   return s;
3499 }
3500
3501 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3502    function prototypes and stuff, but not '\xHH' hex character constants.
3503    These don't provoke an error unfortunately, instead are silently treated
3504    as 'x'.  The following induces an error, until -std is added to get
3505    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3506    array size at least.  It's necessary to write '\x00'==0 to get something
3507    that's true only with -std.  */
3508 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3509
3510 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3511    inside strings and character constants.  */
3512 #define FOO(x) 'x'
3513 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3514
3515 int test (int i, double x);
3516 struct s1 {int (*f) (int a);};
3517 struct s2 {int (*f) (double a);};
3518 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3519 int argc;
3520 char **argv;
3521 int
3522 main ()
3523 {
3524 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3525   ;
3526   return 0;
3527 }
3528 _ACEOF
3529 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3530         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3531 do
3532   CC="$ac_save_CC $ac_arg"
3533   if ac_fn_c_try_compile "$LINENO"; then :
3534   ac_cv_prog_cc_c89=$ac_arg
3535 fi
3536 rm -f core conftest.err conftest.$ac_objext
3537   test "x$ac_cv_prog_cc_c89" != "xno" && break
3538 done
3539 rm -f conftest.$ac_ext
3540 CC=$ac_save_CC
3541
3542 fi
3543 # AC_CACHE_VAL
3544 case "x$ac_cv_prog_cc_c89" in
3545   x)
3546     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3547 $as_echo "none needed" >&6; } ;;
3548   xno)
3549     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3550 $as_echo "unsupported" >&6; } ;;
3551   *)
3552     CC="$CC $ac_cv_prog_cc_c89"
3553     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3554 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3555 esac
3556 if test "x$ac_cv_prog_cc_c89" != xno; then :
3557
3558 fi
3559
3560 ac_ext=c
3561 ac_cpp='$CPP $CPPFLAGS'
3562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3565
3566
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3568 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3569 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
3570   $as_echo_n "(cached) " >&6
3571 else
3572   ac_check_lib_save_LIBS=$LIBS
3573 LIBS="-ldl  $LIBS"
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h.  */
3576
3577 /* Override any GCC internal prototype to avoid an error.
3578    Use char because int might match the return type of a GCC
3579    builtin and then its argument prototype would still apply.  */
3580 #ifdef __cplusplus
3581 extern "C"
3582 #endif
3583 char dlopen ();
3584 int
3585 main ()
3586 {
3587 return dlopen ();
3588   ;
3589   return 0;
3590 }
3591 _ACEOF
3592 if ac_fn_c_try_link "$LINENO"; then :
3593   ac_cv_lib_dl_dlopen=yes
3594 else
3595   ac_cv_lib_dl_dlopen=no
3596 fi
3597 rm -f core conftest.err conftest.$ac_objext \
3598     conftest$ac_exeext conftest.$ac_ext
3599 LIBS=$ac_check_lib_save_LIBS
3600 fi
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3602 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3603 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
3604   DLOPEN_LIB=-ldl
3605
3606 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3607
3608 fi
3609
3610
3611 WITH_DIET_LIBC=
3612
3613 # Check whether --with-diet-libc was given.
3614 if test "${with_diet_libc+set}" = set; then :
3615   withval=$with_diet_libc; CC="diet cc -nostdinc"
3616 WITH_DIET_LIBC=yes
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3618 $as_echo "CC=$CC" >&6; }
3619 fi
3620
3621 # Check whether --with-cc was given.
3622 if test "${with_cc+set}" = set; then :
3623   withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3624 fi
3625
3626
3627 # Check whether --with-ccopts was given.
3628 if test "${with_ccopts+set}" = set; then :
3629   withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3630 fi
3631
3632
3633 # Check whether --with-ldopts was given.
3634 if test "${with_ldopts+set}" = set; then :
3635   withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3636 fi
3637
3638 ac_ext=c
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643 if test -n "$ac_tool_prefix"; then
3644   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3645 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 $as_echo_n "checking for $ac_word... " >&6; }
3648 if test "${ac_cv_prog_CC+set}" = set; then :
3649   $as_echo_n "(cached) " >&6
3650 else
3651   if test -n "$CC"; then
3652   ac_cv_prog_CC="$CC" # Let the user override the test.
3653 else
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH
3656 do
3657   IFS=$as_save_IFS
3658   test -z "$as_dir" && as_dir=.
3659     for ac_exec_ext in '' $ac_executable_extensions; do
3660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3661     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3663     break 2
3664   fi
3665 done
3666   done
3667 IFS=$as_save_IFS
3668
3669 fi
3670 fi
3671 CC=$ac_cv_prog_CC
3672 if test -n "$CC"; then
3673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3674 $as_echo "$CC" >&6; }
3675 else
3676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3678 fi
3679
3680
3681 fi
3682 if test -z "$ac_cv_prog_CC"; then
3683   ac_ct_CC=$CC
3684   # Extract the first word of "gcc", so it can be a program name with args.
3685 set dummy gcc; ac_word=$2
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3687 $as_echo_n "checking for $ac_word... " >&6; }
3688 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3689   $as_echo_n "(cached) " >&6
3690 else
3691   if test -n "$ac_ct_CC"; then
3692   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3693 else
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 for as_dir in $PATH
3696 do
3697   IFS=$as_save_IFS
3698   test -z "$as_dir" && as_dir=.
3699     for ac_exec_ext in '' $ac_executable_extensions; do
3700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3701     ac_cv_prog_ac_ct_CC="gcc"
3702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3703     break 2
3704   fi
3705 done
3706   done
3707 IFS=$as_save_IFS
3708
3709 fi
3710 fi
3711 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3712 if test -n "$ac_ct_CC"; then
3713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3714 $as_echo "$ac_ct_CC" >&6; }
3715 else
3716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 $as_echo "no" >&6; }
3718 fi
3719
3720   if test "x$ac_ct_CC" = x; then
3721     CC=""
3722   else
3723     case $cross_compiling:$ac_tool_warned in
3724 yes:)
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3727 ac_tool_warned=yes ;;
3728 esac
3729     CC=$ac_ct_CC
3730   fi
3731 else
3732   CC="$ac_cv_prog_CC"
3733 fi
3734
3735 if test -z "$CC"; then
3736           if test -n "$ac_tool_prefix"; then
3737     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3738 set dummy ${ac_tool_prefix}cc; ac_word=$2
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3740 $as_echo_n "checking for $ac_word... " >&6; }
3741 if test "${ac_cv_prog_CC+set}" = set; then :
3742   $as_echo_n "(cached) " >&6
3743 else
3744   if test -n "$CC"; then
3745   ac_cv_prog_CC="$CC" # Let the user override the test.
3746 else
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH
3749 do
3750   IFS=$as_save_IFS
3751   test -z "$as_dir" && as_dir=.
3752     for ac_exec_ext in '' $ac_executable_extensions; do
3753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3754     ac_cv_prog_CC="${ac_tool_prefix}cc"
3755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3756     break 2
3757   fi
3758 done
3759   done
3760 IFS=$as_save_IFS
3761
3762 fi
3763 fi
3764 CC=$ac_cv_prog_CC
3765 if test -n "$CC"; then
3766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3767 $as_echo "$CC" >&6; }
3768 else
3769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3770 $as_echo "no" >&6; }
3771 fi
3772
3773
3774   fi
3775 fi
3776 if test -z "$CC"; then
3777   # Extract the first word of "cc", so it can be a program name with args.
3778 set dummy cc; ac_word=$2
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3780 $as_echo_n "checking for $ac_word... " >&6; }
3781 if test "${ac_cv_prog_CC+set}" = set; then :
3782   $as_echo_n "(cached) " >&6
3783 else
3784   if test -n "$CC"; then
3785   ac_cv_prog_CC="$CC" # Let the user override the test.
3786 else
3787   ac_prog_rejected=no
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH
3790 do
3791   IFS=$as_save_IFS
3792   test -z "$as_dir" && as_dir=.
3793     for ac_exec_ext in '' $ac_executable_extensions; do
3794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3795     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3796        ac_prog_rejected=yes
3797        continue
3798      fi
3799     ac_cv_prog_CC="cc"
3800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3801     break 2
3802   fi
3803 done
3804   done
3805 IFS=$as_save_IFS
3806
3807 if test $ac_prog_rejected = yes; then
3808   # We found a bogon in the path, so make sure we never use it.
3809   set dummy $ac_cv_prog_CC
3810   shift
3811   if test $# != 0; then
3812     # We chose a different compiler from the bogus one.
3813     # However, it has the same basename, so the bogon will be chosen
3814     # first if we set CC to just the basename; use the full file name.
3815     shift
3816     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3817   fi
3818 fi
3819 fi
3820 fi
3821 CC=$ac_cv_prog_CC
3822 if test -n "$CC"; then
3823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3824 $as_echo "$CC" >&6; }
3825 else
3826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827 $as_echo "no" >&6; }
3828 fi
3829
3830
3831 fi
3832 if test -z "$CC"; then
3833   if test -n "$ac_tool_prefix"; then
3834   for ac_prog in cl.exe
3835   do
3836     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3837 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839 $as_echo_n "checking for $ac_word... " >&6; }
3840 if test "${ac_cv_prog_CC+set}" = set; then :
3841   $as_echo_n "(cached) " >&6
3842 else
3843   if test -n "$CC"; then
3844   ac_cv_prog_CC="$CC" # Let the user override the test.
3845 else
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 for as_dir in $PATH
3848 do
3849   IFS=$as_save_IFS
3850   test -z "$as_dir" && as_dir=.
3851     for ac_exec_ext in '' $ac_executable_extensions; do
3852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3853     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3855     break 2
3856   fi
3857 done
3858   done
3859 IFS=$as_save_IFS
3860
3861 fi
3862 fi
3863 CC=$ac_cv_prog_CC
3864 if test -n "$CC"; then
3865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3866 $as_echo "$CC" >&6; }
3867 else
3868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869 $as_echo "no" >&6; }
3870 fi
3871
3872
3873     test -n "$CC" && break
3874   done
3875 fi
3876 if test -z "$CC"; then
3877   ac_ct_CC=$CC
3878   for ac_prog in cl.exe
3879 do
3880   # Extract the first word of "$ac_prog", so it can be a program name with args.
3881 set dummy $ac_prog; ac_word=$2
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3883 $as_echo_n "checking for $ac_word... " >&6; }
3884 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3885   $as_echo_n "(cached) " >&6
3886 else
3887   if test -n "$ac_ct_CC"; then
3888   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3889 else
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891 for as_dir in $PATH
3892 do
3893   IFS=$as_save_IFS
3894   test -z "$as_dir" && as_dir=.
3895     for ac_exec_ext in '' $ac_executable_extensions; do
3896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3897     ac_cv_prog_ac_ct_CC="$ac_prog"
3898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3899     break 2
3900   fi
3901 done
3902   done
3903 IFS=$as_save_IFS
3904
3905 fi
3906 fi
3907 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3908 if test -n "$ac_ct_CC"; then
3909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3910 $as_echo "$ac_ct_CC" >&6; }
3911 else
3912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3913 $as_echo "no" >&6; }
3914 fi
3915
3916
3917   test -n "$ac_ct_CC" && break
3918 done
3919
3920   if test "x$ac_ct_CC" = x; then
3921     CC=""
3922   else
3923     case $cross_compiling:$ac_tool_warned in
3924 yes:)
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3927 ac_tool_warned=yes ;;
3928 esac
3929     CC=$ac_ct_CC
3930   fi
3931 fi
3932
3933 fi
3934
3935
3936 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3938 as_fn_error "no acceptable C compiler found in \$PATH
3939 See \`config.log' for more details." "$LINENO" 5; }
3940
3941 # Provide some information about the compiler.
3942 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3943 set X $ac_compile
3944 ac_compiler=$2
3945 for ac_option in --version -v -V -qversion; do
3946   { { ac_try="$ac_compiler $ac_option >&5"
3947 case "(($ac_try" in
3948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949   *) ac_try_echo=$ac_try;;
3950 esac
3951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3952 $as_echo "$ac_try_echo"; } >&5
3953   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3954   ac_status=$?
3955   if test -s conftest.err; then
3956     sed '10a\
3957 ... rest of stderr output deleted ...
3958          10q' conftest.err >conftest.er1
3959     cat conftest.er1 >&5
3960   fi
3961   rm -f conftest.er1 conftest.err
3962   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963   test $ac_status = 0; }
3964 done
3965
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3967 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3968 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3969   $as_echo_n "(cached) " >&6
3970 else
3971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972 /* end confdefs.h.  */
3973
3974 int
3975 main ()
3976 {
3977 #ifndef __GNUC__
3978        choke me
3979 #endif
3980
3981   ;
3982   return 0;
3983 }
3984 _ACEOF
3985 if ac_fn_c_try_compile "$LINENO"; then :
3986   ac_compiler_gnu=yes
3987 else
3988   ac_compiler_gnu=no
3989 fi
3990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3991 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3992
3993 fi
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3995 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3996 if test $ac_compiler_gnu = yes; then
3997   GCC=yes
3998 else
3999   GCC=
4000 fi
4001 ac_test_CFLAGS=${CFLAGS+set}
4002 ac_save_CFLAGS=$CFLAGS
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4004 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4005 if test "${ac_cv_prog_cc_g+set}" = set; then :
4006   $as_echo_n "(cached) " >&6
4007 else
4008   ac_save_c_werror_flag=$ac_c_werror_flag
4009    ac_c_werror_flag=yes
4010    ac_cv_prog_cc_g=no
4011    CFLAGS="-g"
4012    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h.  */
4014
4015 int
4016 main ()
4017 {
4018
4019   ;
4020   return 0;
4021 }
4022 _ACEOF
4023 if ac_fn_c_try_compile "$LINENO"; then :
4024   ac_cv_prog_cc_g=yes
4025 else
4026   CFLAGS=""
4027       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h.  */
4029
4030 int
4031 main ()
4032 {
4033
4034   ;
4035   return 0;
4036 }
4037 _ACEOF
4038 if ac_fn_c_try_compile "$LINENO"; then :
4039
4040 else
4041   ac_c_werror_flag=$ac_save_c_werror_flag
4042          CFLAGS="-g"
4043          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h.  */
4045
4046 int
4047 main ()
4048 {
4049
4050   ;
4051   return 0;
4052 }
4053 _ACEOF
4054 if ac_fn_c_try_compile "$LINENO"; then :
4055   ac_cv_prog_cc_g=yes
4056 fi
4057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4058 fi
4059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060 fi
4061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4062    ac_c_werror_flag=$ac_save_c_werror_flag
4063 fi
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4065 $as_echo "$ac_cv_prog_cc_g" >&6; }
4066 if test "$ac_test_CFLAGS" = set; then
4067   CFLAGS=$ac_save_CFLAGS
4068 elif test $ac_cv_prog_cc_g = yes; then
4069   if test "$GCC" = yes; then
4070     CFLAGS="-g -O2"
4071   else
4072     CFLAGS="-g"
4073   fi
4074 else
4075   if test "$GCC" = yes; then
4076     CFLAGS="-O2"
4077   else
4078     CFLAGS=
4079   fi
4080 fi
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4082 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4083 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4084   $as_echo_n "(cached) " >&6
4085 else
4086   ac_cv_prog_cc_c89=no
4087 ac_save_CC=$CC
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h.  */
4090 #include <stdarg.h>
4091 #include <stdio.h>
4092 #include <sys/types.h>
4093 #include <sys/stat.h>
4094 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4095 struct buf { int x; };
4096 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4097 static char *e (p, i)
4098      char **p;
4099      int i;
4100 {
4101   return p[i];
4102 }
4103 static char *f (char * (*g) (char **, int), char **p, ...)
4104 {
4105   char *s;
4106   va_list v;
4107   va_start (v,p);
4108   s = g (p, va_arg (v,int));
4109   va_end (v);
4110   return s;
4111 }
4112
4113 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4114    function prototypes and stuff, but not '\xHH' hex character constants.
4115    These don't provoke an error unfortunately, instead are silently treated
4116    as 'x'.  The following induces an error, until -std is added to get
4117    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4118    array size at least.  It's necessary to write '\x00'==0 to get something
4119    that's true only with -std.  */
4120 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4121
4122 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4123    inside strings and character constants.  */
4124 #define FOO(x) 'x'
4125 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4126
4127 int test (int i, double x);
4128 struct s1 {int (*f) (int a);};
4129 struct s2 {int (*f) (double a);};
4130 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4131 int argc;
4132 char **argv;
4133 int
4134 main ()
4135 {
4136 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4137   ;
4138   return 0;
4139 }
4140 _ACEOF
4141 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4142         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4143 do
4144   CC="$ac_save_CC $ac_arg"
4145   if ac_fn_c_try_compile "$LINENO"; then :
4146   ac_cv_prog_cc_c89=$ac_arg
4147 fi
4148 rm -f core conftest.err conftest.$ac_objext
4149   test "x$ac_cv_prog_cc_c89" != "xno" && break
4150 done
4151 rm -f conftest.$ac_ext
4152 CC=$ac_save_CC
4153
4154 fi
4155 # AC_CACHE_VAL
4156 case "x$ac_cv_prog_cc_c89" in
4157   x)
4158     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4159 $as_echo "none needed" >&6; } ;;
4160   xno)
4161     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4162 $as_echo "unsupported" >&6; } ;;
4163   *)
4164     CC="$CC $ac_cv_prog_cc_c89"
4165     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4166 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4167 esac
4168 if test "x$ac_cv_prog_cc_c89" != xno; then :
4169
4170 fi
4171
4172 ac_ext=c
4173 ac_cpp='$CPP $CPPFLAGS'
4174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177
4178 if test "$GCC" = yes; then
4179    RDYNAMIC="-rdynamic"
4180
4181 fi
4182 ac_ext=c
4183 ac_cpp='$CPP $CPPFLAGS'
4184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4188 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4189 # On Suns, sometimes $CPP names a directory.
4190 if test -n "$CPP" && test -d "$CPP"; then
4191   CPP=
4192 fi
4193 if test -z "$CPP"; then
4194   if test "${ac_cv_prog_CPP+set}" = set; then :
4195   $as_echo_n "(cached) " >&6
4196 else
4197       # Double quotes because CPP needs to be expanded
4198     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4199     do
4200       ac_preproc_ok=false
4201 for ac_c_preproc_warn_flag in '' yes
4202 do
4203   # Use a header file that comes with gcc, so configuring glibc
4204   # with a fresh cross-compiler works.
4205   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4206   # <limits.h> exists even on freestanding compilers.
4207   # On the NeXT, cc -E runs the code through the compiler's parser,
4208   # not just through cpp. "Syntax error" is here to catch this case.
4209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h.  */
4211 #ifdef __STDC__
4212 # include <limits.h>
4213 #else
4214 # include <assert.h>
4215 #endif
4216                      Syntax error
4217 _ACEOF
4218 if ac_fn_c_try_cpp "$LINENO"; then :
4219
4220 else
4221   # Broken: fails on valid input.
4222 continue
4223 fi
4224 rm -f conftest.err conftest.$ac_ext
4225
4226   # OK, works on sane cases.  Now check whether nonexistent headers
4227   # can be detected and how.
4228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h.  */
4230 #include <ac_nonexistent.h>
4231 _ACEOF
4232 if ac_fn_c_try_cpp "$LINENO"; then :
4233   # Broken: success on invalid input.
4234 continue
4235 else
4236   # Passes both tests.
4237 ac_preproc_ok=:
4238 break
4239 fi
4240 rm -f conftest.err conftest.$ac_ext
4241
4242 done
4243 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4244 rm -f conftest.err conftest.$ac_ext
4245 if $ac_preproc_ok; then :
4246   break
4247 fi
4248
4249     done
4250     ac_cv_prog_CPP=$CPP
4251
4252 fi
4253   CPP=$ac_cv_prog_CPP
4254 else
4255   ac_cv_prog_CPP=$CPP
4256 fi
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4258 $as_echo "$CPP" >&6; }
4259 ac_preproc_ok=false
4260 for ac_c_preproc_warn_flag in '' yes
4261 do
4262   # Use a header file that comes with gcc, so configuring glibc
4263   # with a fresh cross-compiler works.
4264   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4265   # <limits.h> exists even on freestanding compilers.
4266   # On the NeXT, cc -E runs the code through the compiler's parser,
4267   # not just through cpp. "Syntax error" is here to catch this case.
4268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h.  */
4270 #ifdef __STDC__
4271 # include <limits.h>
4272 #else
4273 # include <assert.h>
4274 #endif
4275                      Syntax error
4276 _ACEOF
4277 if ac_fn_c_try_cpp "$LINENO"; then :
4278
4279 else
4280   # Broken: fails on valid input.
4281 continue
4282 fi
4283 rm -f conftest.err conftest.$ac_ext
4284
4285   # OK, works on sane cases.  Now check whether nonexistent headers
4286   # can be detected and how.
4287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h.  */
4289 #include <ac_nonexistent.h>
4290 _ACEOF
4291 if ac_fn_c_try_cpp "$LINENO"; then :
4292   # Broken: success on invalid input.
4293 continue
4294 else
4295   # Passes both tests.
4296 ac_preproc_ok=:
4297 break
4298 fi
4299 rm -f conftest.err conftest.$ac_ext
4300
4301 done
4302 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4303 rm -f conftest.err conftest.$ac_ext
4304 if $ac_preproc_ok; then :
4305
4306 else
4307   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4309 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4310 See \`config.log' for more details." "$LINENO" 5; }
4311 fi
4312
4313 ac_ext=c
4314 ac_cpp='$CPP $CPPFLAGS'
4315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4318
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4320 $as_echo_n "checking for additional special compiler flags... " >&6; }
4321 if test "$GCC" = yes
4322 then
4323     case "$host_cpu" in
4324         alpha)          addcflags="-mieee" ;;
4325     esac
4326 fi
4327 if test "x$addcflags" != x
4328 then
4329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4330 $as_echo "$addcflags" >&6; }
4331     CFLAGS="$addcflags $CFLAGS"
4332 else
4333     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4334 $as_echo "(none)" >&6; }
4335 fi
4336 LIB_EXT=.a
4337 STATIC_LIB_EXT=.a
4338 PROFILED_LIB_EXT=.a
4339
4340 # Check whether --with-root-prefix was given.
4341 if test "${with_root_prefix+set}" = set; then :
4342   withval=$with_root_prefix; root_prefix=$withval
4343 else
4344   root_prefix=NONE
4345 fi
4346 # Check whether --enable-maintainer-mode was given.
4347 if test "${enable_maintainer_mode+set}" = set; then :
4348   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4349 then
4350         MAINTAINER_CMT=#
4351         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4352 $as_echo "Disabling maintainer mode" >&6; }
4353 else
4354         MAINTAINER_CMT=
4355         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4356 $as_echo "Enabling maintainer mode" >&6; }
4357 fi
4358
4359 else
4360   MAINTAINER_CMT=#
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4362 $as_echo "Disabling maintainer mode by default" >&6; }
4363
4364 fi
4365
4366
4367 # Check whether --enable-symlink-install was given.
4368 if test "${enable_symlink_install+set}" = set; then :
4369   enableval=$enable_symlink_install; if test "$enableval" = "no"
4370 then
4371         LINK_INSTALL_FLAGS=-f
4372         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4373 $as_echo "Disabling symlinks for install" >&6; }
4374 else
4375         LINK_INSTALL_FLAGS=-sf
4376         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4377 $as_echo "Enabling symlinks for install" >&6; }
4378 fi
4379
4380 else
4381   LINK_INSTALL_FLAGS=-f
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4383 $as_echo "Disabling symlinks for install by default" >&6; }
4384
4385 fi
4386
4387
4388 # Check whether --enable-symlink-relative-symlinks was given.
4389 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4390   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4391 then
4392         SYMLINK_RELATIVE=
4393         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4394 $as_echo "Disabling relative symlinks for install" >&6; }
4395 else
4396         SYMLINK_RELATIVE=--relative
4397         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4398 $as_echo "Enabling symlinks for install" >&6; }
4399 fi
4400
4401 else
4402   SYMLINK_RELATIVE=
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4404 $as_echo "Disabling relative symlinks for install by default" >&6; }
4405
4406 fi
4407
4408
4409 # Check whether --enable-symlink-build was given.
4410 if test "${enable_symlink_build+set}" = set; then :
4411   enableval=$enable_symlink_build; if test "$enableval" = "no"
4412 then
4413         LINK_BUILD_FLAGS=
4414         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4415 $as_echo "Disabling symlinks for build" >&6; }
4416 else
4417         LINK_BUILD_FLAGS=-s
4418         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4419 $as_echo "Enabling symlinks for build" >&6; }
4420 fi
4421
4422 else
4423   LINK_BUILD_FLAGS=
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4425 $as_echo "Disabling symlinks for build by default" >&6; }
4426
4427 fi
4428
4429
4430 # Check whether --enable-verbose-makecmds was given.
4431 if test "${enable_verbose_makecmds+set}" = set; then :
4432   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4433 then
4434         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4435 $as_echo "Disabling verbose make commands" >&6; }
4436         E=@echo
4437         Q=@
4438 else
4439         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4440 $as_echo "Enabling verbose make commands" >&6; }
4441         E=@\\#
4442         Q=
4443 fi
4444
4445 else
4446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4447 $as_echo "Disabling verbose make commands" >&6; }
4448 E=@echo
4449 Q=@
4450
4451 fi
4452
4453
4454
4455 # Check whether --enable-compression was given.
4456 if test "${enable_compression+set}" = set; then :
4457   enableval=$enable_compression; if test "$enableval" = "no"
4458 then
4459         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4460 $as_echo "Disabling compression support" >&6; }
4461 else
4462
4463 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4464
4465         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4466 $as_echo "Enabling compression support" >&6; }
4467         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4468 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4469 fi
4470
4471 else
4472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4473 $as_echo "Disabling compression support by default" >&6; }
4474
4475 fi
4476
4477
4478 # Check whether --enable-htree was given.
4479 if test "${enable_htree+set}" = set; then :
4480   enableval=$enable_htree; if test "$enableval" = "no"
4481 then
4482         HTREE_CMT=#
4483         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4484 $as_echo "Disabling htree directory support" >&6; }
4485 else
4486         HTREE_CMT=
4487         $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4488
4489         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4490 $as_echo "Enabling htree directory support" >&6; }
4491 fi
4492
4493 else
4494   HTREE_CMT=
4495 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4496
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4498 $as_echo "Enabling htree directory support by default" >&6; }
4499
4500 fi
4501
4502
4503 E2_PKG_CONFIG_STATIC=--static
4504 LDFLAG_DYNAMIC=
4505 PRIVATE_LIBS_CMT=
4506 # Check whether --enable-elf-shlibs was given.
4507 if test "${enable_elf_shlibs+set}" = set; then :
4508   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4509 then
4510         ELF_CMT=#
4511         MAKEFILE_ELF=/dev/null
4512         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4513 $as_echo "Disabling ELF shared libraries" >&6; }
4514 else
4515         E2_PKG_CONFIG_STATIC=
4516         ELF_CMT=
4517         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4518         case "$host_os" in
4519         solaris2.*)
4520                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4521         ;;
4522         esac
4523         BINARY_TYPE=elfbin
4524         LIB_EXT=.so
4525         PRIVATE_LIBS_CMT=#
4526         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4527         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4528 $as_echo "Enabling ELF shared libraries" >&6; }
4529 fi
4530
4531 else
4532   MAKEFILE_ELF=/dev/null
4533 ELF_CMT=#
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4535 $as_echo "Disabling ELF shared libraries by default" >&6; }
4536
4537 fi
4538
4539
4540
4541 # Check whether --enable-bsd-shlibs was given.
4542 if test "${enable_bsd_shlibs+set}" = set; then :
4543   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4544 then
4545         BSDLIB_CMT=#
4546         MAKEFILE_BSDLIB=/dev/null
4547         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4548 $as_echo "Disabling BSD shared libraries" >&6; }
4549 else
4550         E2_PKG_CONFIG_STATIC=
4551         BSDLIB_CMT=
4552         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4553         LIB_EXT=.so
4554         case "$host_os" in
4555         darwin*)
4556                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4557                 LIB_EXT=.dylib
4558         ;;
4559         esac
4560         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4561 $as_echo "Enabling BSD shared libraries" >&6; }
4562 fi
4563
4564 else
4565   MAKEFILE_BSDLIB=/dev/null
4566 BSDLIB_CMT=#
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4568 $as_echo "Disabling BSD shared libraries by default" >&6; }
4569
4570 fi
4571
4572
4573
4574 # Check whether --enable-profile was given.
4575 if test "${enable_profile+set}" = set; then :
4576   enableval=$enable_profile; if test "$enableval" = "no"
4577 then
4578         PROFILE_CMT=#
4579         MAKEFILE_PROFILE=/dev/null
4580         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4581 $as_echo "Disabling profiling libraries" >&6; }
4582 else
4583         PROFILE_CMT=
4584         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4585         PROFILED_LIB_EXT=_p.a
4586         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4587 $as_echo "Building profiling libraries" >&6; }
4588 fi
4589
4590 else
4591   PROFILE_CMT=#
4592 MAKEFILE_PROFILE=/dev/null
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4594 $as_echo "Disabling profiling libraries by default" >&6; }
4595
4596 fi
4597
4598
4599
4600 # Check whether --enable-checker was given.
4601 if test "${enable_checker+set}" = set; then :
4602   enableval=$enable_checker; if test "$enableval" = "no"
4603 then
4604         CHECKER_CMT=#
4605         MAKEFILE_CHECKER=/dev/null
4606         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4607 $as_echo "Disabling checker libraries" >&6; }
4608 else
4609         CHECKER_CMT=
4610         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4611         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4612 $as_echo "Building checker libraries" >&6; }
4613 fi
4614
4615 else
4616   CHECKER_CMT=#
4617 MAKEFILE_CHECKER=/dev/null
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4619 $as_echo "Disabling checker libraries by default" >&6; }
4620
4621 fi
4622
4623
4624
4625
4626
4627
4628
4629
4630 # Check whether --enable-jbd-debug was given.
4631 if test "${enable_jbd_debug+set}" = set; then :
4632   enableval=$enable_jbd_debug; if test "$enableval" = "no"
4633 then
4634         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4635 $as_echo "Disabling journal debugging" >&6; }
4636 else
4637
4638 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4639
4640         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4641 $as_echo "Enabling journal debugging" >&6; }
4642 fi
4643
4644 else
4645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4646 $as_echo "Disabling journal debugging by default" >&6; }
4647
4648 fi
4649
4650 # Check whether --enable-blkid-debug was given.
4651 if test "${enable_blkid_debug+set}" = set; then :
4652   enableval=$enable_blkid_debug; if test "$enableval" = "no"
4653 then
4654         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4655 $as_echo "Disabling blkid debugging" >&6; }
4656 else
4657
4658 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4659
4660         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4661 $as_echo "Enabling blkid debugging" >&6; }
4662 fi
4663
4664 else
4665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4666 $as_echo "Disabling blkid debugging by default" >&6; }
4667
4668 fi
4669
4670 # Check whether --enable-testio-debug was given.
4671 if test "${enable_testio_debug+set}" = set; then :
4672   enableval=$enable_testio_debug;
4673 if test "$enableval" = "no"
4674 then
4675         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4676 $as_echo "Disabling testio debugging" >&6; }
4677         TEST_IO_CMT="#"
4678 else
4679         TEST_IO_CMT=
4680         $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4681
4682         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4683 $as_echo "Enabling testio debugging" >&6; }
4684 fi
4685
4686 else
4687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4688 $as_echo "Enabling testio debugging by default" >&6; }
4689 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4690
4691 TEST_IO_CMT=
4692
4693 fi
4694
4695
4696
4697
4698 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4699         if test -n "$ac_tool_prefix"; then
4700   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4701 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 $as_echo_n "checking for $ac_word... " >&6; }
4704 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4705   $as_echo_n "(cached) " >&6
4706 else
4707   case $PKG_CONFIG in
4708   [\\/]* | ?:[\\/]*)
4709   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4710   ;;
4711   *)
4712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 for as_dir in $PATH
4714 do
4715   IFS=$as_save_IFS
4716   test -z "$as_dir" && as_dir=.
4717     for ac_exec_ext in '' $ac_executable_extensions; do
4718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4719     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4721     break 2
4722   fi
4723 done
4724   done
4725 IFS=$as_save_IFS
4726
4727   ;;
4728 esac
4729 fi
4730 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4731 if test -n "$PKG_CONFIG"; then
4732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4733 $as_echo "$PKG_CONFIG" >&6; }
4734 else
4735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4736 $as_echo "no" >&6; }
4737 fi
4738
4739
4740 fi
4741 if test -z "$ac_cv_path_PKG_CONFIG"; then
4742   ac_pt_PKG_CONFIG=$PKG_CONFIG
4743   # Extract the first word of "pkg-config", so it can be a program name with args.
4744 set dummy pkg-config; ac_word=$2
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746 $as_echo_n "checking for $ac_word... " >&6; }
4747 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4748   $as_echo_n "(cached) " >&6
4749 else
4750   case $ac_pt_PKG_CONFIG in
4751   [\\/]* | ?:[\\/]*)
4752   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4753   ;;
4754   *)
4755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in $PATH
4757 do
4758   IFS=$as_save_IFS
4759   test -z "$as_dir" && as_dir=.
4760     for ac_exec_ext in '' $ac_executable_extensions; do
4761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4762     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4764     break 2
4765   fi
4766 done
4767   done
4768 IFS=$as_save_IFS
4769
4770   ;;
4771 esac
4772 fi
4773 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4774 if test -n "$ac_pt_PKG_CONFIG"; then
4775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4776 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4777 else
4778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779 $as_echo "no" >&6; }
4780 fi
4781
4782   if test "x$ac_pt_PKG_CONFIG" = x; then
4783     PKG_CONFIG=""
4784   else
4785     case $cross_compiling:$ac_tool_warned in
4786 yes:)
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4789 ac_tool_warned=yes ;;
4790 esac
4791     PKG_CONFIG=$ac_pt_PKG_CONFIG
4792   fi
4793 else
4794   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4795 fi
4796
4797 fi
4798 if test -n "$PKG_CONFIG"; then
4799         _pkg_min_version=0.9.0
4800         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4801 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4802         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4803                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4804 $as_echo "yes" >&6; }
4805         else
4806                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4808                 PKG_CONFIG=""
4809         fi
4810
4811 fi
4812 LIBUUID=
4813 DEPLIBUUID=
4814 STATIC_LIBUUID=
4815 DEPSTATIC_LIBUUID=
4816 PROFILED_LIBUUID=
4817 DEPPROFILED_LIBUUID=
4818 UUID_CMT=
4819 # Check whether --enable-libuuid was given.
4820 if test "${enable_libuuid+set}" = set; then :
4821   enableval=$enable_libuuid; if test "$enableval" = "no"
4822 then
4823         if test -z "$PKG_CONFIG"; then
4824                 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
4825         fi
4826
4827         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4828 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4829 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
4830   $as_echo_n "(cached) " >&6
4831 else
4832   ac_check_lib_save_LIBS=$LIBS
4833 LIBS="-luuid $LIBUUID $LIBS"
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835 /* end confdefs.h.  */
4836
4837 /* Override any GCC internal prototype to avoid an error.
4838    Use char because int might match the return type of a GCC
4839    builtin and then its argument prototype would still apply.  */
4840 #ifdef __cplusplus
4841 extern "C"
4842 #endif
4843 char uuid_generate ();
4844 int
4845 main ()
4846 {
4847 return uuid_generate ();
4848   ;
4849   return 0;
4850 }
4851 _ACEOF
4852 if ac_fn_c_try_link "$LINENO"; then :
4853   ac_cv_lib_uuid_uuid_generate=yes
4854 else
4855   ac_cv_lib_uuid_uuid_generate=no
4856 fi
4857 rm -f core conftest.err conftest.$ac_objext \
4858     conftest$ac_exeext conftest.$ac_ext
4859 LIBS=$ac_check_lib_save_LIBS
4860 fi
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4862 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4863 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
4864   LIBUUID=`$PKG_CONFIG --libs uuid`;
4865                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4866 else
4867   as_fn_error "external uuid library not found" "$LINENO" 5
4868 fi
4869
4870         UUID_CMT=#
4871         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4872 $as_echo "Disabling private uuid library" >&6; }
4873 else
4874         LIBUUID='$(LIB)/libuuid'$LIB_EXT
4875         DEPLIBUUID=$LIBUUID
4876         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4877         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4878         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4879         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4880         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4881 $as_echo "Enabling private uuid library" >&6; }
4882 fi
4883
4884 else
4885   LIBUUID='$(LIB)/libuuid'$LIB_EXT
4886 DEPLIBUUID=$LIBUUID
4887 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4888 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4889 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4890 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
4892 $as_echo "Enabling private uuid library by default" >&6; }
4893
4894 fi
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4906         if test -n "$ac_tool_prefix"; then
4907   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4908 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4912   $as_echo_n "(cached) " >&6
4913 else
4914   case $PKG_CONFIG in
4915   [\\/]* | ?:[\\/]*)
4916   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4917   ;;
4918   *)
4919   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920 for as_dir in $PATH
4921 do
4922   IFS=$as_save_IFS
4923   test -z "$as_dir" && as_dir=.
4924     for ac_exec_ext in '' $ac_executable_extensions; do
4925   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4926     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4928     break 2
4929   fi
4930 done
4931   done
4932 IFS=$as_save_IFS
4933
4934   ;;
4935 esac
4936 fi
4937 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4938 if test -n "$PKG_CONFIG"; then
4939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4940 $as_echo "$PKG_CONFIG" >&6; }
4941 else
4942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4944 fi
4945
4946
4947 fi
4948 if test -z "$ac_cv_path_PKG_CONFIG"; then
4949   ac_pt_PKG_CONFIG=$PKG_CONFIG
4950   # Extract the first word of "pkg-config", so it can be a program name with args.
4951 set dummy pkg-config; ac_word=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4955   $as_echo_n "(cached) " >&6
4956 else
4957   case $ac_pt_PKG_CONFIG in
4958   [\\/]* | ?:[\\/]*)
4959   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4960   ;;
4961   *)
4962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 for as_dir in $PATH
4964 do
4965   IFS=$as_save_IFS
4966   test -z "$as_dir" && as_dir=.
4967     for ac_exec_ext in '' $ac_executable_extensions; do
4968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4969     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4971     break 2
4972   fi
4973 done
4974   done
4975 IFS=$as_save_IFS
4976
4977   ;;
4978 esac
4979 fi
4980 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4981 if test -n "$ac_pt_PKG_CONFIG"; then
4982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4983 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4984 else
4985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986 $as_echo "no" >&6; }
4987 fi
4988
4989   if test "x$ac_pt_PKG_CONFIG" = x; then
4990     PKG_CONFIG=""
4991   else
4992     case $cross_compiling:$ac_tool_warned in
4993 yes:)
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4996 ac_tool_warned=yes ;;
4997 esac
4998     PKG_CONFIG=$ac_pt_PKG_CONFIG
4999   fi
5000 else
5001   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5002 fi
5003
5004 fi
5005 if test -n "$PKG_CONFIG"; then
5006         _pkg_min_version=0.9.0
5007         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5008 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5009         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5010                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5011 $as_echo "yes" >&6; }
5012         else
5013                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014 $as_echo "no" >&6; }
5015                 PKG_CONFIG=""
5016         fi
5017
5018 fi
5019 LIBBLKID=
5020 DEPLIBBLKID=
5021 STATIC_LIBBLKID=
5022 DEPSTATIC_LIBBLKID=
5023 PROFILED_LIBBLKID=
5024 DEPPROFILED_LIBBLKID=
5025 BLKID_CMT=
5026
5027 # Check whether --enable-libblkid was given.
5028 if test "${enable_libblkid+set}" = set; then :
5029   enableval=$enable_libblkid; if test "$enableval" = "no"
5030 then
5031         if test -z "$PKG_CONFIG"; then
5032                 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
5033         fi
5034
5035         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5036 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5037 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
5038   $as_echo_n "(cached) " >&6
5039 else
5040   ac_check_lib_save_LIBS=$LIBS
5041 LIBS="-lblkid $LIBBLKID $LIBS"
5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043 /* end confdefs.h.  */
5044
5045 /* Override any GCC internal prototype to avoid an error.
5046    Use char because int might match the return type of a GCC
5047    builtin and then its argument prototype would still apply.  */
5048 #ifdef __cplusplus
5049 extern "C"
5050 #endif
5051 char blkid_get_cache ();
5052 int
5053 main ()
5054 {
5055 return blkid_get_cache ();
5056   ;
5057   return 0;
5058 }
5059 _ACEOF
5060 if ac_fn_c_try_link "$LINENO"; then :
5061   ac_cv_lib_blkid_blkid_get_cache=yes
5062 else
5063   ac_cv_lib_blkid_blkid_get_cache=no
5064 fi
5065 rm -f core conftest.err conftest.$ac_objext \
5066     conftest$ac_exeext conftest.$ac_ext
5067 LIBS=$ac_check_lib_save_LIBS
5068 fi
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5070 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5071 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then :
5072   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5073                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5074 else
5075   as_fn_error "external blkid library not found" "$LINENO" 5
5076 fi
5077
5078         BLKID_CMT=#
5079         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5080 $as_echo "Disabling private blkid library" >&6; }
5081 else
5082         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5083         DEPLIBBLKID=$LIBBLKID
5084         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5085         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5086         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5087         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5088         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5089
5090         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5091 $as_echo "Enabling private blkid library" >&6; }
5092 fi
5093
5094 else
5095   LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5096 DEPLIBBLKID=$LIBBLKID
5097 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5098 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5099 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5100 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5101 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5102
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5104 $as_echo "Enabling private blkid library by default" >&6; }
5105
5106 fi
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5118         if test -n "$ac_tool_prefix"; then
5119   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5120 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5122 $as_echo_n "checking for $ac_word... " >&6; }
5123 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5124   $as_echo_n "(cached) " >&6
5125 else
5126   case $PKG_CONFIG in
5127   [\\/]* | ?:[\\/]*)
5128   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5129   ;;
5130   *)
5131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132 for as_dir in $PATH
5133 do
5134   IFS=$as_save_IFS
5135   test -z "$as_dir" && as_dir=.
5136     for ac_exec_ext in '' $ac_executable_extensions; do
5137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5138     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5140     break 2
5141   fi
5142 done
5143   done
5144 IFS=$as_save_IFS
5145
5146   ;;
5147 esac
5148 fi
5149 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5150 if test -n "$PKG_CONFIG"; then
5151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5152 $as_echo "$PKG_CONFIG" >&6; }
5153 else
5154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155 $as_echo "no" >&6; }
5156 fi
5157
5158
5159 fi
5160 if test -z "$ac_cv_path_PKG_CONFIG"; then
5161   ac_pt_PKG_CONFIG=$PKG_CONFIG
5162   # Extract the first word of "pkg-config", so it can be a program name with args.
5163 set dummy pkg-config; ac_word=$2
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5165 $as_echo_n "checking for $ac_word... " >&6; }
5166 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5167   $as_echo_n "(cached) " >&6
5168 else
5169   case $ac_pt_PKG_CONFIG in
5170   [\\/]* | ?:[\\/]*)
5171   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5172   ;;
5173   *)
5174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH
5176 do
5177   IFS=$as_save_IFS
5178   test -z "$as_dir" && as_dir=.
5179     for ac_exec_ext in '' $ac_executable_extensions; do
5180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5181     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183     break 2
5184   fi
5185 done
5186   done
5187 IFS=$as_save_IFS
5188
5189   ;;
5190 esac
5191 fi
5192 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5193 if test -n "$ac_pt_PKG_CONFIG"; then
5194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5195 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5196 else
5197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198 $as_echo "no" >&6; }
5199 fi
5200
5201   if test "x$ac_pt_PKG_CONFIG" = x; then
5202     PKG_CONFIG=""
5203   else
5204     case $cross_compiling:$ac_tool_warned in
5205 yes:)
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5208 ac_tool_warned=yes ;;
5209 esac
5210     PKG_CONFIG=$ac_pt_PKG_CONFIG
5211   fi
5212 else
5213   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5214 fi
5215
5216 fi
5217 if test -n "$PKG_CONFIG"; then
5218         _pkg_min_version=0.9.0
5219         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5220 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5221         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5222                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5223 $as_echo "yes" >&6; }
5224         else
5225                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 $as_echo "no" >&6; }
5227                 PKG_CONFIG=""
5228         fi
5229
5230 fi
5231
5232 # Check whether --enable-quota was given.
5233 if test "${enable_quota+set}" = set; then :
5234   enableval=$enable_quota; if test "$enableval" = "no"
5235 then
5236         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5237 $as_echo "Disabling quota support" >&6; }
5238 else
5239         $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5240
5241         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5242 $as_echo "Enabling quota support" >&6; }
5243 fi
5244
5245 else
5246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5247 $as_echo "Disabling quota support by default" >&6; }
5248
5249 fi
5250
5251 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5252 DEPLIBQUOTA=$LIBQUOTA
5253 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5254 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5255 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5256 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5257
5258
5259
5260
5261
5262
5263
5264 # Check whether --enable-debugfs was given.
5265 if test "${enable_debugfs+set}" = set; then :
5266   enableval=$enable_debugfs; if test "$enableval" = "no"
5267 then
5268         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5269 $as_echo "Disabling debugfs support" >&6; }
5270         DEBUGFS_CMT="#"
5271 else
5272         DEBUGFS_CMT=
5273         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5274 $as_echo "Enabling debugfs support" >&6; }
5275 fi
5276
5277 else
5278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5279 $as_echo "Enabling debugfs support by default" >&6; }
5280 DEBUGFS_CMT=
5281
5282 fi
5283
5284
5285 # Check whether --enable-imager was given.
5286 if test "${enable_imager+set}" = set; then :
5287   enableval=$enable_imager; if test "$enableval" = "no"
5288 then
5289         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5290 $as_echo "Disabling e2image support" >&6; }
5291         IMAGER_CMT="#"
5292 else
5293         IMAGER_CMT=
5294         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5295 $as_echo "Enabling e2image support" >&6; }
5296 fi
5297
5298 else
5299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5300 $as_echo "Enabling e2image support by default" >&6; }
5301 IMAGER_CMT=
5302
5303 fi
5304
5305
5306 # Check whether --enable-resizer was given.
5307 if test "${enable_resizer+set}" = set; then :
5308   enableval=$enable_resizer; if test "$enableval" = "no"
5309 then
5310         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5311 $as_echo "Disabling e2resize support" >&6; }
5312         RESIZER_CMT="#"
5313 else
5314         RESIZER_CMT=
5315         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5316 $as_echo "Enabling e2resize support" >&6; }
5317 fi
5318
5319 else
5320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5321 $as_echo "Enabling e2resize support by default" >&6; }
5322 RESIZER_CMT=
5323
5324 fi
5325
5326
5327 # Check whether --enable-defrag was given.
5328 if test "${enable_defrag+set}" = set; then :
5329   enableval=$enable_defrag; if test "$enableval" = "no"
5330 then
5331         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5332 $as_echo "Disabling e4defrag support" >&6; }
5333         DEFRAG_CMT="#"
5334 else
5335         DEFRAG_CMT=
5336         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5337 $as_echo "Enabling e4defrag support" >&6; }
5338 fi
5339
5340 else
5341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5342 $as_echo "Enabling e4defrag support by default" >&6; }
5343 DEFRAG_CMT=
5344
5345 fi
5346
5347
5348 # Check whether --enable-fsck was given.
5349 if test "${enable_fsck+set}" = set; then :
5350   enableval=$enable_fsck; if test "$enableval" = "no"
5351 then
5352         FSCK_PROG='' FSCK_MAN=''
5353         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5354 $as_echo "Not building fsck wrapper" >&6; }
5355 else
5356         FSCK_PROG=fsck FSCK_MAN=fsck.8
5357         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5358 $as_echo "Building fsck wrapper" >&6; }
5359 fi
5360
5361 else
5362   case "$host_os" in
5363   gnu*)
5364     FSCK_PROG='' FSCK_MAN=''
5365     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5366 $as_echo "Not building fsck wrapper by default" >&6; }
5367     ;;
5368   *)
5369     FSCK_PROG=fsck FSCK_MAN=fsck.8
5370     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5371 $as_echo "Building fsck wrapper by default" >&6; }
5372 esac
5373
5374 fi
5375
5376
5377
5378 # Check whether --enable-e2initrd-helper was given.
5379 if test "${enable_e2initrd_helper+set}" = set; then :
5380   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5381 then
5382         E2INITRD_PROG='' E2INITRD_MAN=''
5383         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5384 $as_echo "Not building e2initrd helper" >&6; }
5385 else
5386         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5387         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5388 $as_echo "Building e2initrd helper" >&6; }
5389 fi
5390
5391 else
5392   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5394 $as_echo "Building e2initrd helper by default" >&6; }
5395
5396 fi
5397
5398
5399
5400 # Check whether --enable-tls was given.
5401 if test "${enable_tls+set}" = set; then :
5402   enableval=$enable_tls; if test "$enableval" = "no"
5403 then
5404         try_tls=""
5405         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5406 $as_echo "Disabling thread local support" >&6; }
5407 else
5408         try_tls="yes"
5409         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5410 $as_echo "Enabling thread local support" >&6; }
5411 fi
5412
5413 else
5414   if test -n "$WITH_DIET_LIBC"
5415 then
5416         try_tls=""
5417         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5418 $as_echo "Diet libc does not support thread local support" >&6; }
5419 else
5420         try_tls="yes"
5421         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5422 $as_echo "Try using thread local support by default" >&6; }
5423 fi
5424
5425 fi
5426
5427 if test "$try_tls" = "yes"
5428 then
5429
5430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5431 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5432   if test "${ac_cv_tls+set}" = set; then :
5433   $as_echo_n "(cached) " >&6
5434 else
5435
5436     ax_tls_keywords="__thread __declspec(thread) none"
5437     for ax_tls_keyword in $ax_tls_keywords; do
5438        case $ax_tls_keyword in
5439           none) ac_cv_tls=none ; break ;;
5440           *)
5441              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h.  */
5443 #include <stdlib.h>
5444                  static void
5445                  foo(void) {
5446                  static  $ax_tls_keyword  int bar;
5447                  exit(1);
5448                  }
5449 int
5450 main ()
5451 {
5452
5453   ;
5454   return 0;
5455 }
5456 _ACEOF
5457 if ac_fn_c_try_compile "$LINENO"; then :
5458   ac_cv_tls=$ax_tls_keyword ; break
5459 else
5460   ac_cv_tls=none
5461
5462 fi
5463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464           esac
5465     done
5466
5467 fi
5468
5469
5470   if test "$ac_cv_tls" != "none"; then
5471
5472 cat >>confdefs.h <<_ACEOF
5473 #define TLS $ac_cv_tls
5474 _ACEOF
5475
5476   fi
5477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5478 $as_echo "$ac_cv_tls" >&6; }
5479
5480 fi
5481
5482 # Check whether --enable-uuidd was given.
5483 if test "${enable_uuidd+set}" = set; then :
5484   enableval=$enable_uuidd; if test "$enableval" = "no"
5485 then
5486         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5487 $as_echo "Not building uuidd" >&6; }
5488         UUIDD_CMT="#"
5489 else
5490         $as_echo "#define USE_UUIDD 1" >>confdefs.h
5491
5492         UUIDD_CMT=""
5493         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5494 $as_echo "Building uuidd" >&6; }
5495 fi
5496
5497 else
5498   $as_echo "#define USE_UUIDD 1" >>confdefs.h
5499
5500 UUIDD_CMT=""
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5502 $as_echo "Building uuidd by default" >&6; }
5503
5504 fi
5505
5506
5507 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5508
5509 GETTEXT_PACKAGE=e2fsprogs
5510 PACKAGE=e2fsprogs
5511 VERSION="$E2FSPROGS_VERSION"
5512 VERSION=0.14.1
5513
5514 cat >>confdefs.h <<_ACEOF
5515 #define PACKAGE "$PACKAGE"
5516 _ACEOF
5517
5518
5519 cat >>confdefs.h <<_ACEOF
5520 #define VERSION "$VERSION"
5521 _ACEOF
5522
5523
5524
5525
5526
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5528 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5529 set x ${MAKE-make}
5530 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5531 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5532   $as_echo_n "(cached) " >&6
5533 else
5534   cat >conftest.make <<\_ACEOF
5535 SHELL = /bin/sh
5536 all:
5537         @echo '@@@%%%=$(MAKE)=@@@%%%'
5538 _ACEOF
5539 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5540 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5541   *@@@%%%=?*=@@@%%%*)
5542     eval ac_cv_prog_make_${ac_make}_set=yes;;
5543   *)
5544     eval ac_cv_prog_make_${ac_make}_set=no;;
5545 esac
5546 rm -f conftest.make
5547 fi
5548 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5550 $as_echo "yes" >&6; }
5551   SET_MAKE=
5552 else
5553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554 $as_echo "no" >&6; }
5555   SET_MAKE="MAKE=${MAKE-make}"
5556 fi
5557
5558 # Find a good install program.  We prefer a C program (faster),
5559 # so one script is as good as another.  But avoid the broken or
5560 # incompatible versions:
5561 # SysV /etc/install, /usr/sbin/install
5562 # SunOS /usr/etc/install
5563 # IRIX /sbin/install
5564 # AIX /bin/install
5565 # AmigaOS /C/install, which installs bootblocks on floppy discs
5566 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5567 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5568 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5569 # OS/2's system install, which has a completely different semantic
5570 # ./install, which can be erroneously created by make from ./install.sh.
5571 # Reject install programs that cannot install multiple files.
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5573 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5574 if test -z "$INSTALL"; then
5575 if test "${ac_cv_path_install+set}" = set; then :
5576   $as_echo_n "(cached) " >&6
5577 else
5578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579 for as_dir in $PATH
5580 do
5581   IFS=$as_save_IFS
5582   test -z "$as_dir" && as_dir=.
5583     # Account for people who put trailing slashes in PATH elements.
5584 case $as_dir/ in #((
5585   ./ | .// | /[cC]/* | \
5586   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5587   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5588   /usr/ucb/* ) ;;
5589   *)
5590     # OSF1 and SCO ODT 3.0 have their own names for install.
5591     # Don't use installbsd from OSF since it installs stuff as root
5592     # by default.
5593     for ac_prog in ginstall scoinst install; do
5594       for ac_exec_ext in '' $ac_executable_extensions; do
5595         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5596           if test $ac_prog = install &&
5597             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5598             # AIX install.  It has an incompatible calling convention.
5599             :
5600           elif test $ac_prog = install &&
5601             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5602             # program-specific install script used by HP pwplus--don't use.
5603             :
5604           else
5605             rm -rf conftest.one conftest.two conftest.dir
5606             echo one > conftest.one
5607             echo two > conftest.two
5608             mkdir conftest.dir
5609             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5610               test -s conftest.one && test -s conftest.two &&
5611               test -s conftest.dir/conftest.one &&
5612               test -s conftest.dir/conftest.two
5613             then
5614               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5615               break 3
5616             fi
5617           fi
5618         fi
5619       done
5620     done
5621     ;;
5622 esac
5623
5624   done
5625 IFS=$as_save_IFS
5626
5627 rm -rf conftest.one conftest.two conftest.dir
5628
5629 fi
5630   if test "${ac_cv_path_install+set}" = set; then
5631     INSTALL=$ac_cv_path_install
5632   else
5633     # As a last resort, use the slow shell script.  Don't cache a
5634     # value for INSTALL within a source directory, because that will
5635     # break other packages using the cache if that directory is
5636     # removed, or if the value is a relative name.
5637     INSTALL=$ac_install_sh
5638   fi
5639 fi
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5641 $as_echo "$INSTALL" >&6; }
5642
5643 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5644 # It thinks the first close brace ends the variable substitution.
5645 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5646
5647 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5648
5649 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5650
5651
5652         MKINSTALLDIRS=
5653   if test -n "$ac_aux_dir"; then
5654     case "$ac_aux_dir" in
5655       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5656       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5657     esac
5658   fi
5659   if test -z "$MKINSTALLDIRS"; then
5660     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5661   fi
5662
5663
5664
5665   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5666 $as_echo_n "checking whether NLS is requested... " >&6; }
5667     # Check whether --enable-nls was given.
5668 if test "${enable_nls+set}" = set; then :
5669   enableval=$enable_nls; USE_NLS=$enableval
5670 else
5671   USE_NLS=yes
5672 fi
5673
5674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5675 $as_echo "$USE_NLS" >&6; }
5676
5677
5678
5679
5680
5681
5682 # Prepare PATH_SEPARATOR.
5683 # The user is always right.
5684 if test "${PATH_SEPARATOR+set}" != set; then
5685   echo "#! /bin/sh" >conf$$.sh
5686   echo  "exit 0"   >>conf$$.sh
5687   chmod +x conf$$.sh
5688   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5689     PATH_SEPARATOR=';'
5690   else
5691     PATH_SEPARATOR=:
5692   fi
5693   rm -f conf$$.sh
5694 fi
5695
5696 # Find out how to test for executable files. Don't use a zero-byte file,
5697 # as systems may use methods other than mode bits to determine executability.
5698 cat >conf$$.file <<_ASEOF
5699 #! /bin/sh
5700 exit 0
5701 _ASEOF
5702 chmod +x conf$$.file
5703 if test -x conf$$.file >/dev/null 2>&1; then
5704   ac_executable_p="test -x"
5705 else
5706   ac_executable_p="test -f"
5707 fi
5708 rm -f conf$$.file
5709
5710 # Extract the first word of "msgfmt", so it can be a program name with args.
5711 set dummy msgfmt; ac_word=$2
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5713 $as_echo_n "checking for $ac_word... " >&6; }
5714 if test "${ac_cv_path_MSGFMT+set}" = set; then :
5715   $as_echo_n "(cached) " >&6
5716 else
5717   case "$MSGFMT" in
5718   [\\/]* | ?:[\\/]*)
5719     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5720     ;;
5721   *)
5722     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5723     for ac_dir in $PATH; do
5724       IFS="$ac_save_IFS"
5725       test -z "$ac_dir" && ac_dir=.
5726       for ac_exec_ext in '' $ac_executable_extensions; do
5727         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5728           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5729      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5730             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5731             break 2
5732           fi
5733         fi
5734       done
5735     done
5736     IFS="$ac_save_IFS"
5737   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5738     ;;
5739 esac
5740 fi
5741 MSGFMT="$ac_cv_path_MSGFMT"
5742 if test "$MSGFMT" != ":"; then
5743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5744 $as_echo "$MSGFMT" >&6; }
5745 else
5746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }
5748 fi
5749
5750   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5751 set dummy gmsgfmt; ac_word=$2
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5753 $as_echo_n "checking for $ac_word... " >&6; }
5754 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5755   $as_echo_n "(cached) " >&6
5756 else
5757   case $GMSGFMT in
5758   [\\/]* | ?:[\\/]*)
5759   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5760   ;;
5761   *)
5762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5764 do
5765   IFS=$as_save_IFS
5766   test -z "$as_dir" && as_dir=.
5767     for ac_exec_ext in '' $ac_executable_extensions; do
5768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5769     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771     break 2
5772   fi
5773 done
5774   done
5775 IFS=$as_save_IFS
5776
5777   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5778   ;;
5779 esac
5780 fi
5781 GMSGFMT=$ac_cv_path_GMSGFMT
5782 if test -n "$GMSGFMT"; then
5783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5784 $as_echo "$GMSGFMT" >&6; }
5785 else
5786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5788 fi
5789
5790
5791
5792
5793 # Prepare PATH_SEPARATOR.
5794 # The user is always right.
5795 if test "${PATH_SEPARATOR+set}" != set; then
5796   echo "#! /bin/sh" >conf$$.sh
5797   echo  "exit 0"   >>conf$$.sh
5798   chmod +x conf$$.sh
5799   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5800     PATH_SEPARATOR=';'
5801   else
5802     PATH_SEPARATOR=:
5803   fi
5804   rm -f conf$$.sh
5805 fi
5806
5807 # Find out how to test for executable files. Don't use a zero-byte file,
5808 # as systems may use methods other than mode bits to determine executability.
5809 cat >conf$$.file <<_ASEOF
5810 #! /bin/sh
5811 exit 0
5812 _ASEOF
5813 chmod +x conf$$.file
5814 if test -x conf$$.file >/dev/null 2>&1; then
5815   ac_executable_p="test -x"
5816 else
5817   ac_executable_p="test -f"
5818 fi
5819 rm -f conf$$.file
5820
5821 # Extract the first word of "xgettext", so it can be a program name with args.
5822 set dummy xgettext; ac_word=$2
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5824 $as_echo_n "checking for $ac_word... " >&6; }
5825 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5826   $as_echo_n "(cached) " >&6
5827 else
5828   case "$XGETTEXT" in
5829   [\\/]* | ?:[\\/]*)
5830     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5831     ;;
5832   *)
5833     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5834     for ac_dir in $PATH; do
5835       IFS="$ac_save_IFS"
5836       test -z "$ac_dir" && ac_dir=.
5837       for ac_exec_ext in '' $ac_executable_extensions; do
5838         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5839           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5840      (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
5841             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5842             break 2
5843           fi
5844         fi
5845       done
5846     done
5847     IFS="$ac_save_IFS"
5848   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5849     ;;
5850 esac
5851 fi
5852 XGETTEXT="$ac_cv_path_XGETTEXT"
5853 if test "$XGETTEXT" != ":"; then
5854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5855 $as_echo "$XGETTEXT" >&6; }
5856 else
5857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858 $as_echo "no" >&6; }
5859 fi
5860
5861     rm -f messages.po
5862
5863
5864 # Prepare PATH_SEPARATOR.
5865 # The user is always right.
5866 if test "${PATH_SEPARATOR+set}" != set; then
5867   echo "#! /bin/sh" >conf$$.sh
5868   echo  "exit 0"   >>conf$$.sh
5869   chmod +x conf$$.sh
5870   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5871     PATH_SEPARATOR=';'
5872   else
5873     PATH_SEPARATOR=:
5874   fi
5875   rm -f conf$$.sh
5876 fi
5877
5878 # Find out how to test for executable files. Don't use a zero-byte file,
5879 # as systems may use methods other than mode bits to determine executability.
5880 cat >conf$$.file <<_ASEOF
5881 #! /bin/sh
5882 exit 0
5883 _ASEOF
5884 chmod +x conf$$.file
5885 if test -x conf$$.file >/dev/null 2>&1; then
5886   ac_executable_p="test -x"
5887 else
5888   ac_executable_p="test -f"
5889 fi
5890 rm -f conf$$.file
5891
5892 # Extract the first word of "msgmerge", so it can be a program name with args.
5893 set dummy msgmerge; ac_word=$2
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895 $as_echo_n "checking for $ac_word... " >&6; }
5896 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
5897   $as_echo_n "(cached) " >&6
5898 else
5899   case "$MSGMERGE" in
5900   [\\/]* | ?:[\\/]*)
5901     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5902     ;;
5903   *)
5904     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5905     for ac_dir in $PATH; do
5906       IFS="$ac_save_IFS"
5907       test -z "$ac_dir" && ac_dir=.
5908       for ac_exec_ext in '' $ac_executable_extensions; do
5909         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5910           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5911             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5912             break 2
5913           fi
5914         fi
5915       done
5916     done
5917     IFS="$ac_save_IFS"
5918   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5919     ;;
5920 esac
5921 fi
5922 MSGMERGE="$ac_cv_path_MSGMERGE"
5923 if test "$MSGMERGE" != ":"; then
5924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5925 $as_echo "$MSGMERGE" >&6; }
5926 else
5927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928 $as_echo "no" >&6; }
5929 fi
5930
5931
5932       if test "$GMSGFMT" != ":"; then
5933             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5934        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5935       : ;
5936     else
5937       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5938       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5939 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
5940       GMSGFMT=":"
5941     fi
5942   fi
5943
5944       if test "$XGETTEXT" != ":"; then
5945             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5946        (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
5947       : ;
5948     else
5949       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
5950 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
5951       XGETTEXT=":"
5952     fi
5953         rm -f messages.po
5954   fi
5955
5956   ac_config_commands="$ac_config_commands default-1"
5957
5958
5959 if test -n "$ac_tool_prefix"; then
5960   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5961 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5963 $as_echo_n "checking for $ac_word... " >&6; }
5964 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5965   $as_echo_n "(cached) " >&6
5966 else
5967   if test -n "$RANLIB"; then
5968   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5969 else
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 for as_dir in $PATH
5972 do
5973   IFS=$as_save_IFS
5974   test -z "$as_dir" && as_dir=.
5975     for ac_exec_ext in '' $ac_executable_extensions; do
5976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5977     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5979     break 2
5980   fi
5981 done
5982   done
5983 IFS=$as_save_IFS
5984
5985 fi
5986 fi
5987 RANLIB=$ac_cv_prog_RANLIB
5988 if test -n "$RANLIB"; then
5989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5990 $as_echo "$RANLIB" >&6; }
5991 else
5992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5993 $as_echo "no" >&6; }
5994 fi
5995
5996
5997 fi
5998 if test -z "$ac_cv_prog_RANLIB"; then
5999   ac_ct_RANLIB=$RANLIB
6000   # Extract the first word of "ranlib", so it can be a program name with args.
6001 set dummy ranlib; ac_word=$2
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003 $as_echo_n "checking for $ac_word... " >&6; }
6004 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6005   $as_echo_n "(cached) " >&6
6006 else
6007   if test -n "$ac_ct_RANLIB"; then
6008   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6009 else
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 for as_dir in $PATH
6012 do
6013   IFS=$as_save_IFS
6014   test -z "$as_dir" && as_dir=.
6015     for ac_exec_ext in '' $ac_executable_extensions; do
6016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6017     ac_cv_prog_ac_ct_RANLIB="ranlib"
6018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6019     break 2
6020   fi
6021 done
6022   done
6023 IFS=$as_save_IFS
6024
6025 fi
6026 fi
6027 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6028 if test -n "$ac_ct_RANLIB"; then
6029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6030 $as_echo "$ac_ct_RANLIB" >&6; }
6031 else
6032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033 $as_echo "no" >&6; }
6034 fi
6035
6036   if test "x$ac_ct_RANLIB" = x; then
6037     RANLIB=":"
6038   else
6039     case $cross_compiling:$ac_tool_warned in
6040 yes:)
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6043 ac_tool_warned=yes ;;
6044 esac
6045     RANLIB=$ac_ct_RANLIB
6046   fi
6047 else
6048   RANLIB="$ac_cv_prog_RANLIB"
6049 fi
6050
6051
6052         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6053 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6054 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
6055   $as_echo_n "(cached) " >&6
6056 else
6057   ac_check_lib_save_LIBS=$LIBS
6058 LIBS="-lcposix  $LIBS"
6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060 /* end confdefs.h.  */
6061
6062 /* Override any GCC internal prototype to avoid an error.
6063    Use char because int might match the return type of a GCC
6064    builtin and then its argument prototype would still apply.  */
6065 #ifdef __cplusplus
6066 extern "C"
6067 #endif
6068 char strerror ();
6069 int
6070 main ()
6071 {
6072 return strerror ();
6073   ;
6074   return 0;
6075 }
6076 _ACEOF
6077 if ac_fn_c_try_link "$LINENO"; then :
6078   ac_cv_lib_cposix_strerror=yes
6079 else
6080   ac_cv_lib_cposix_strerror=no
6081 fi
6082 rm -f core conftest.err conftest.$ac_objext \
6083     conftest$ac_exeext conftest.$ac_ext
6084 LIBS=$ac_check_lib_save_LIBS
6085 fi
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6087 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6088 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
6089   LIBS="$LIBS -lcposix"
6090 fi
6091
6092
6093
6094
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6096 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6097 if test "${ac_cv_path_GREP+set}" = set; then :
6098   $as_echo_n "(cached) " >&6
6099 else
6100   if test -z "$GREP"; then
6101   ac_path_GREP_found=false
6102   # Loop through the user's path and test for each of PROGNAME-LIST
6103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6105 do
6106   IFS=$as_save_IFS
6107   test -z "$as_dir" && as_dir=.
6108     for ac_prog in grep ggrep; do
6109     for ac_exec_ext in '' $ac_executable_extensions; do
6110       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6111       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6112 # Check for GNU ac_path_GREP and select it if it is found.
6113   # Check for GNU $ac_path_GREP
6114 case `"$ac_path_GREP" --version 2>&1` in
6115 *GNU*)
6116   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6117 *)
6118   ac_count=0
6119   $as_echo_n 0123456789 >"conftest.in"
6120   while :
6121   do
6122     cat "conftest.in" "conftest.in" >"conftest.tmp"
6123     mv "conftest.tmp" "conftest.in"
6124     cp "conftest.in" "conftest.nl"
6125     $as_echo 'GREP' >> "conftest.nl"
6126     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6127     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6128     as_fn_arith $ac_count + 1 && ac_count=$as_val
6129     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6130       # Best one so far, save it but keep looking for a better one
6131       ac_cv_path_GREP="$ac_path_GREP"
6132       ac_path_GREP_max=$ac_count
6133     fi
6134     # 10*(2^10) chars as input seems more than enough
6135     test $ac_count -gt 10 && break
6136   done
6137   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6138 esac
6139
6140       $ac_path_GREP_found && break 3
6141     done
6142   done
6143   done
6144 IFS=$as_save_IFS
6145   if test -z "$ac_cv_path_GREP"; then
6146     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6147   fi
6148 else
6149   ac_cv_path_GREP=$GREP
6150 fi
6151
6152 fi
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6154 $as_echo "$ac_cv_path_GREP" >&6; }
6155  GREP="$ac_cv_path_GREP"
6156
6157
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6159 $as_echo_n "checking for egrep... " >&6; }
6160 if test "${ac_cv_path_EGREP+set}" = set; then :
6161   $as_echo_n "(cached) " >&6
6162 else
6163   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6164    then ac_cv_path_EGREP="$GREP -E"
6165    else
6166      if test -z "$EGREP"; then
6167   ac_path_EGREP_found=false
6168   # Loop through the user's path and test for each of PROGNAME-LIST
6169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6171 do
6172   IFS=$as_save_IFS
6173   test -z "$as_dir" && as_dir=.
6174     for ac_prog in egrep; do
6175     for ac_exec_ext in '' $ac_executable_extensions; do
6176       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6177       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6178 # Check for GNU ac_path_EGREP and select it if it is found.
6179   # Check for GNU $ac_path_EGREP
6180 case `"$ac_path_EGREP" --version 2>&1` in
6181 *GNU*)
6182   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6183 *)
6184   ac_count=0
6185   $as_echo_n 0123456789 >"conftest.in"
6186   while :
6187   do
6188     cat "conftest.in" "conftest.in" >"conftest.tmp"
6189     mv "conftest.tmp" "conftest.in"
6190     cp "conftest.in" "conftest.nl"
6191     $as_echo 'EGREP' >> "conftest.nl"
6192     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6193     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6194     as_fn_arith $ac_count + 1 && ac_count=$as_val
6195     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6196       # Best one so far, save it but keep looking for a better one
6197       ac_cv_path_EGREP="$ac_path_EGREP"
6198       ac_path_EGREP_max=$ac_count
6199     fi
6200     # 10*(2^10) chars as input seems more than enough
6201     test $ac_count -gt 10 && break
6202   done
6203   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6204 esac
6205
6206       $ac_path_EGREP_found && break 3
6207     done
6208   done
6209   done
6210 IFS=$as_save_IFS
6211   if test -z "$ac_cv_path_EGREP"; then
6212     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6213   fi
6214 else
6215   ac_cv_path_EGREP=$EGREP
6216 fi
6217
6218    fi
6219 fi
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6221 $as_echo "$ac_cv_path_EGREP" >&6; }
6222  EGREP="$ac_cv_path_EGREP"
6223
6224
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6226 $as_echo_n "checking for ANSI C header files... " >&6; }
6227 if test "${ac_cv_header_stdc+set}" = set; then :
6228   $as_echo_n "(cached) " >&6
6229 else
6230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h.  */
6232 #include <stdlib.h>
6233 #include <stdarg.h>
6234 #include <string.h>
6235 #include <float.h>
6236
6237 int
6238 main ()
6239 {
6240
6241   ;
6242   return 0;
6243 }
6244 _ACEOF
6245 if ac_fn_c_try_compile "$LINENO"; then :
6246   ac_cv_header_stdc=yes
6247 else
6248   ac_cv_header_stdc=no
6249 fi
6250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6251
6252 if test $ac_cv_header_stdc = yes; then
6253   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255 /* end confdefs.h.  */
6256 #include <string.h>
6257
6258 _ACEOF
6259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6260   $EGREP "memchr" >/dev/null 2>&1; then :
6261
6262 else
6263   ac_cv_header_stdc=no
6264 fi
6265 rm -f conftest*
6266
6267 fi
6268
6269 if test $ac_cv_header_stdc = yes; then
6270   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h.  */
6273 #include <stdlib.h>
6274
6275 _ACEOF
6276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6277   $EGREP "free" >/dev/null 2>&1; then :
6278
6279 else
6280   ac_cv_header_stdc=no
6281 fi
6282 rm -f conftest*
6283
6284 fi
6285
6286 if test $ac_cv_header_stdc = yes; then
6287   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6288   if test "$cross_compiling" = yes; then :
6289   :
6290 else
6291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292 /* end confdefs.h.  */
6293 #include <ctype.h>
6294 #include <stdlib.h>
6295 #if ((' ' & 0x0FF) == 0x020)
6296 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6297 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6298 #else
6299 # define ISLOWER(c) \
6300                    (('a' <= (c) && (c) <= 'i') \
6301                      || ('j' <= (c) && (c) <= 'r') \
6302                      || ('s' <= (c) && (c) <= 'z'))
6303 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6304 #endif
6305
6306 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6307 int
6308 main ()
6309 {
6310   int i;
6311   for (i = 0; i < 256; i++)
6312     if (XOR (islower (i), ISLOWER (i))
6313         || toupper (i) != TOUPPER (i))
6314       return 2;
6315   return 0;
6316 }
6317 _ACEOF
6318 if ac_fn_c_try_run "$LINENO"; then :
6319
6320 else
6321   ac_cv_header_stdc=no
6322 fi
6323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6324   conftest.$ac_objext conftest.beam conftest.$ac_ext
6325 fi
6326
6327 fi
6328 fi
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6330 $as_echo "$ac_cv_header_stdc" >&6; }
6331 if test $ac_cv_header_stdc = yes; then
6332
6333 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6334
6335 fi
6336
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6338 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6339 if test "${ac_cv_c_const+set}" = set; then :
6340   $as_echo_n "(cached) " >&6
6341 else
6342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h.  */
6344
6345 int
6346 main ()
6347 {
6348 /* FIXME: Include the comments suggested by Paul. */
6349 #ifndef __cplusplus
6350   /* Ultrix mips cc rejects this.  */
6351   typedef int charset[2];
6352   const charset cs;
6353   /* SunOS 4.1.1 cc rejects this.  */
6354   char const *const *pcpcc;
6355   char **ppc;
6356   /* NEC SVR4.0.2 mips cc rejects this.  */
6357   struct point {int x, y;};
6358   static struct point const zero = {0,0};
6359   /* AIX XL C 1.02.0.0 rejects this.
6360      It does not let you subtract one const X* pointer from another in
6361      an arm of an if-expression whose if-part is not a constant
6362      expression */
6363   const char *g = "string";
6364   pcpcc = &g + (g ? g-g : 0);
6365   /* HPUX 7.0 cc rejects these. */
6366   ++pcpcc;
6367   ppc = (char**) pcpcc;
6368   pcpcc = (char const *const *) ppc;
6369   { /* SCO 3.2v4 cc rejects this.  */
6370     char *t;
6371     char const *s = 0 ? (char *) 0 : (char const *) 0;
6372
6373     *t++ = 0;
6374     if (s) return 0;
6375   }
6376   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6377     int x[] = {25, 17};
6378     const int *foo = &x[0];
6379     ++foo;
6380   }
6381   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6382     typedef const int *iptr;
6383     iptr p = 0;
6384     ++p;
6385   }
6386   { /* AIX XL C 1.02.0.0 rejects this saying
6387        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6388     struct s { int j; const int *ap[3]; };
6389     struct s *b; b->j = 5;
6390   }
6391   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6392     const int foo = 10;
6393     if (!foo) return 0;
6394   }
6395   return !cs[0] && !zero.x;
6396 #endif
6397
6398   ;
6399   return 0;
6400 }
6401 _ACEOF
6402 if ac_fn_c_try_compile "$LINENO"; then :
6403   ac_cv_c_const=yes
6404 else
6405   ac_cv_c_const=no
6406 fi
6407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6408 fi
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6410 $as_echo "$ac_cv_c_const" >&6; }
6411 if test $ac_cv_c_const = no; then
6412
6413 $as_echo "#define const /**/" >>confdefs.h
6414
6415 fi
6416
6417
6418   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6419 $as_echo_n "checking for signed... " >&6; }
6420 if test "${bh_cv_c_signed+set}" = set; then :
6421   $as_echo_n "(cached) " >&6
6422 else
6423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h.  */
6425
6426 int
6427 main ()
6428 {
6429 signed char x;
6430   ;
6431   return 0;
6432 }
6433 _ACEOF
6434 if ac_fn_c_try_compile "$LINENO"; then :
6435   bh_cv_c_signed=yes
6436 else
6437   bh_cv_c_signed=no
6438 fi
6439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6440 fi
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6442 $as_echo "$bh_cv_c_signed" >&6; }
6443   if test $bh_cv_c_signed = no; then
6444
6445 $as_echo "#define signed /**/" >>confdefs.h
6446
6447   fi
6448
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6450 $as_echo_n "checking for inline... " >&6; }
6451 if test "${ac_cv_c_inline+set}" = set; then :
6452   $as_echo_n "(cached) " >&6
6453 else
6454   ac_cv_c_inline=no
6455 for ac_kw in inline __inline__ __inline; do
6456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457 /* end confdefs.h.  */
6458 #ifndef __cplusplus
6459 typedef int foo_t;
6460 static $ac_kw foo_t static_foo () {return 0; }
6461 $ac_kw foo_t foo () {return 0; }
6462 #endif
6463
6464 _ACEOF
6465 if ac_fn_c_try_compile "$LINENO"; then :
6466   ac_cv_c_inline=$ac_kw
6467 fi
6468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6469   test "$ac_cv_c_inline" != no && break
6470 done
6471
6472 fi
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6474 $as_echo "$ac_cv_c_inline" >&6; }
6475
6476 case $ac_cv_c_inline in
6477   inline | yes) ;;
6478   *)
6479     case $ac_cv_c_inline in
6480       no) ac_val=;;
6481       *) ac_val=$ac_cv_c_inline;;
6482     esac
6483     cat >>confdefs.h <<_ACEOF
6484 #ifndef __cplusplus
6485 #define inline $ac_val
6486 #endif
6487 _ACEOF
6488     ;;
6489 esac
6490
6491 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6492 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6493                   inttypes.h stdint.h unistd.h
6494 do :
6495   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6496 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6497 "
6498 eval as_val=\$$as_ac_Header
6499    if test "x$as_val" = x""yes; then :
6500   cat >>confdefs.h <<_ACEOF
6501 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6502 _ACEOF
6503
6504 fi
6505
6506 done
6507
6508
6509 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6510 if test "x$ac_cv_type_off_t" = x""yes; then :
6511
6512 else
6513
6514 cat >>confdefs.h <<_ACEOF
6515 #define off_t long int
6516 _ACEOF
6517
6518 fi
6519
6520 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6521 if test "x$ac_cv_type_size_t" = x""yes; then :
6522
6523 else
6524
6525 cat >>confdefs.h <<_ACEOF
6526 #define size_t unsigned int
6527 _ACEOF
6528
6529 fi
6530
6531
6532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6533 $as_echo_n "checking for long long... " >&6; }
6534 if test "${ac_cv_type_long_long+set}" = set; then :
6535   $as_echo_n "(cached) " >&6
6536 else
6537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h.  */
6539 long long ll = 1LL; int i = 63;
6540 int
6541 main ()
6542 {
6543 long long llmax = (long long) -1;
6544      return ll << i | ll >> i | llmax / ll | llmax % ll;
6545   ;
6546   return 0;
6547 }
6548 _ACEOF
6549 if ac_fn_c_try_link "$LINENO"; then :
6550   ac_cv_type_long_long=yes
6551 else
6552   ac_cv_type_long_long=no
6553 fi
6554 rm -f core conftest.err conftest.$ac_objext \
6555     conftest$ac_exeext conftest.$ac_ext
6556 fi
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6558 $as_echo "$ac_cv_type_long_long" >&6; }
6559   if test $ac_cv_type_long_long = yes; then
6560
6561 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6562
6563   fi
6564
6565
6566   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6567 $as_echo_n "checking for long double... " >&6; }
6568 if test "${gt_cv_c_long_double+set}" = set; then :
6569   $as_echo_n "(cached) " >&6
6570 else
6571   if test "$GCC" = yes; then
6572        gt_cv_c_long_double=yes
6573      else
6574        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575 /* end confdefs.h.  */
6576
6577          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
6578          long double foo = 0.0;
6579          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
6580          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6581
6582 int
6583 main ()
6584 {
6585
6586   ;
6587   return 0;
6588 }
6589 _ACEOF
6590 if ac_fn_c_try_compile "$LINENO"; then :
6591   gt_cv_c_long_double=yes
6592 else
6593   gt_cv_c_long_double=no
6594 fi
6595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6596      fi
6597 fi
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6599 $as_echo "$gt_cv_c_long_double" >&6; }
6600   if test $gt_cv_c_long_double = yes; then
6601
6602 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6603
6604   fi
6605
6606
6607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6608 $as_echo_n "checking for wchar_t... " >&6; }
6609 if test "${gt_cv_c_wchar_t+set}" = set; then :
6610   $as_echo_n "(cached) " >&6
6611 else
6612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613 /* end confdefs.h.  */
6614 #include <stddef.h>
6615        wchar_t foo = (wchar_t)'\0';
6616 int
6617 main ()
6618 {
6619
6620   ;
6621   return 0;
6622 }
6623 _ACEOF
6624 if ac_fn_c_try_compile "$LINENO"; then :
6625   gt_cv_c_wchar_t=yes
6626 else
6627   gt_cv_c_wchar_t=no
6628 fi
6629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6630 fi
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6632 $as_echo "$gt_cv_c_wchar_t" >&6; }
6633   if test $gt_cv_c_wchar_t = yes; then
6634
6635 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6636
6637   fi
6638
6639
6640   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6641 $as_echo_n "checking for wint_t... " >&6; }
6642 if test "${gt_cv_c_wint_t+set}" = set; then :
6643   $as_echo_n "(cached) " >&6
6644 else
6645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646 /* end confdefs.h.  */
6647 #include <wchar.h>
6648        wint_t foo = (wchar_t)'\0';
6649 int
6650 main ()
6651 {
6652
6653   ;
6654   return 0;
6655 }
6656 _ACEOF
6657 if ac_fn_c_try_compile "$LINENO"; then :
6658   gt_cv_c_wint_t=yes
6659 else
6660   gt_cv_c_wint_t=no
6661 fi
6662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6663 fi
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6665 $as_echo "$gt_cv_c_wint_t" >&6; }
6666   if test $gt_cv_c_wint_t = yes; then
6667
6668 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6669
6670   fi
6671
6672
6673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6674 $as_echo_n "checking for inttypes.h... " >&6; }
6675 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
6676   $as_echo_n "(cached) " >&6
6677 else
6678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679 /* end confdefs.h.  */
6680 #include <sys/types.h>
6681 #include <inttypes.h>
6682 int
6683 main ()
6684 {
6685 uintmax_t i = (uintmax_t) -1;
6686   ;
6687   return 0;
6688 }
6689 _ACEOF
6690 if ac_fn_c_try_compile "$LINENO"; then :
6691   jm_ac_cv_header_inttypes_h=yes
6692 else
6693   jm_ac_cv_header_inttypes_h=no
6694 fi
6695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6696 fi
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6698 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6699   if test $jm_ac_cv_header_inttypes_h = yes; then
6700
6701 cat >>confdefs.h <<_ACEOF
6702 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6703 _ACEOF
6704
6705   fi
6706
6707
6708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6709 $as_echo_n "checking for stdint.h... " >&6; }
6710 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
6711   $as_echo_n "(cached) " >&6
6712 else
6713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h.  */
6715 #include <sys/types.h>
6716 #include <stdint.h>
6717 int
6718 main ()
6719 {
6720 uintmax_t i = (uintmax_t) -1;
6721   ;
6722   return 0;
6723 }
6724 _ACEOF
6725 if ac_fn_c_try_compile "$LINENO"; then :
6726   jm_ac_cv_header_stdint_h=yes
6727 else
6728   jm_ac_cv_header_stdint_h=no
6729 fi
6730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6731 fi
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6733 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6734   if test $jm_ac_cv_header_stdint_h = yes; then
6735
6736 cat >>confdefs.h <<_ACEOF
6737 #define HAVE_STDINT_H_WITH_UINTMAX 1
6738 _ACEOF
6739
6740   fi
6741
6742
6743
6744
6745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6746 $as_echo_n "checking for intmax_t... " >&6; }
6747 if test "${gt_cv_c_intmax_t+set}" = set; then :
6748   $as_echo_n "(cached) " >&6
6749 else
6750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6751 /* end confdefs.h.  */
6752
6753 #include <stddef.h>
6754 #include <stdlib.h>
6755 #if HAVE_STDINT_H_WITH_UINTMAX
6756 #include <stdint.h>
6757 #endif
6758 #if HAVE_INTTYPES_H_WITH_UINTMAX
6759 #include <inttypes.h>
6760 #endif
6761
6762 int
6763 main ()
6764 {
6765 intmax_t x = -1;
6766   ;
6767   return 0;
6768 }
6769 _ACEOF
6770 if ac_fn_c_try_compile "$LINENO"; then :
6771   gt_cv_c_intmax_t=yes
6772 else
6773   gt_cv_c_intmax_t=no
6774 fi
6775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6776 fi
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6778 $as_echo "$gt_cv_c_intmax_t" >&6; }
6779   if test $gt_cv_c_intmax_t = yes; then
6780
6781 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6782
6783   fi
6784
6785
6786
6787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6788 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6789 if test "${gt_cv_func_printf_posix+set}" = set; then :
6790   $as_echo_n "(cached) " >&6
6791 else
6792
6793       if test "$cross_compiling" = yes; then :
6794
6795         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796 /* end confdefs.h.  */
6797
6798 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6799   notposix
6800 #endif
6801
6802 _ACEOF
6803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6804   $EGREP "notposix" >/dev/null 2>&1; then :
6805   gt_cv_func_printf_posix="guessing no"
6806 else
6807   gt_cv_func_printf_posix="guessing yes"
6808 fi
6809 rm -f conftest*
6810
6811
6812 else
6813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h.  */
6815
6816 #include <stdio.h>
6817 #include <string.h>
6818 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6819    dollar expansion (possibly an autoconf bug).  */
6820 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6821 static char buf[100];
6822 int main ()
6823 {
6824   sprintf (buf, format, 33, 55);
6825   return (strcmp (buf, "55 33") != 0);
6826 }
6827 _ACEOF
6828 if ac_fn_c_try_run "$LINENO"; then :
6829   gt_cv_func_printf_posix=yes
6830 else
6831   gt_cv_func_printf_posix=no
6832 fi
6833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6834   conftest.$ac_objext conftest.beam conftest.$ac_ext
6835 fi
6836
6837
6838 fi
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6840 $as_echo "$gt_cv_func_printf_posix" >&6; }
6841   case $gt_cv_func_printf_posix in
6842     *yes)
6843
6844 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6845
6846       ;;
6847   esac
6848
6849 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6850 # for constant arguments.  Useless!
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6852 $as_echo_n "checking for working alloca.h... " >&6; }
6853 if test "${ac_cv_working_alloca_h+set}" = set; then :
6854   $as_echo_n "(cached) " >&6
6855 else
6856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857 /* end confdefs.h.  */
6858 #include <alloca.h>
6859 int
6860 main ()
6861 {
6862 char *p = (char *) alloca (2 * sizeof (int));
6863                           if (p) return 0;
6864   ;
6865   return 0;
6866 }
6867 _ACEOF
6868 if ac_fn_c_try_link "$LINENO"; then :
6869   ac_cv_working_alloca_h=yes
6870 else
6871   ac_cv_working_alloca_h=no
6872 fi
6873 rm -f core conftest.err conftest.$ac_objext \
6874     conftest$ac_exeext conftest.$ac_ext
6875 fi
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6877 $as_echo "$ac_cv_working_alloca_h" >&6; }
6878 if test $ac_cv_working_alloca_h = yes; then
6879
6880 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6881
6882 fi
6883
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6885 $as_echo_n "checking for alloca... " >&6; }
6886 if test "${ac_cv_func_alloca_works+set}" = set; then :
6887   $as_echo_n "(cached) " >&6
6888 else
6889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h.  */
6891 #ifdef __GNUC__
6892 # define alloca __builtin_alloca
6893 #else
6894 # ifdef _MSC_VER
6895 #  include <malloc.h>
6896 #  define alloca _alloca
6897 # else
6898 #  ifdef HAVE_ALLOCA_H
6899 #   include <alloca.h>
6900 #  else
6901 #   ifdef _AIX
6902  #pragma alloca
6903 #   else
6904 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6905 char *alloca ();
6906 #    endif
6907 #   endif
6908 #  endif
6909 # endif
6910 #endif
6911
6912 int
6913 main ()
6914 {
6915 char *p = (char *) alloca (1);
6916                                     if (p) return 0;
6917   ;
6918   return 0;
6919 }
6920 _ACEOF
6921 if ac_fn_c_try_link "$LINENO"; then :
6922   ac_cv_func_alloca_works=yes
6923 else
6924   ac_cv_func_alloca_works=no
6925 fi
6926 rm -f core conftest.err conftest.$ac_objext \
6927     conftest$ac_exeext conftest.$ac_ext
6928 fi
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6930 $as_echo "$ac_cv_func_alloca_works" >&6; }
6931
6932 if test $ac_cv_func_alloca_works = yes; then
6933
6934 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6935
6936 else
6937   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6938 # that cause trouble.  Some versions do not even contain alloca or
6939 # contain a buggy version.  If you still want to use their alloca,
6940 # use ar to extract alloca.o from them instead of compiling alloca.c.
6941
6942 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6943
6944 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6945
6946
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6948 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6949 if test "${ac_cv_os_cray+set}" = set; then :
6950   $as_echo_n "(cached) " >&6
6951 else
6952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953 /* end confdefs.h.  */
6954 #if defined CRAY && ! defined CRAY2
6955 webecray
6956 #else
6957 wenotbecray
6958 #endif
6959
6960 _ACEOF
6961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6962   $EGREP "webecray" >/dev/null 2>&1; then :
6963   ac_cv_os_cray=yes
6964 else
6965   ac_cv_os_cray=no
6966 fi
6967 rm -f conftest*
6968
6969 fi
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6971 $as_echo "$ac_cv_os_cray" >&6; }
6972 if test $ac_cv_os_cray = yes; then
6973   for ac_func in _getb67 GETB67 getb67; do
6974     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6975 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6976 eval as_val=\$$as_ac_var
6977    if test "x$as_val" = x""yes; then :
6978
6979 cat >>confdefs.h <<_ACEOF
6980 #define CRAY_STACKSEG_END $ac_func
6981 _ACEOF
6982
6983     break
6984 fi
6985
6986   done
6987 fi
6988
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6990 $as_echo_n "checking stack direction for C alloca... " >&6; }
6991 if test "${ac_cv_c_stack_direction+set}" = set; then :
6992   $as_echo_n "(cached) " >&6
6993 else
6994   if test "$cross_compiling" = yes; then :
6995   ac_cv_c_stack_direction=0
6996 else
6997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h.  */
6999 $ac_includes_default
7000 int
7001 find_stack_direction ()
7002 {
7003   static char *addr = 0;
7004   auto char dummy;
7005   if (addr == 0)
7006     {
7007       addr = &dummy;
7008       return find_stack_direction ();
7009     }
7010   else
7011     return (&dummy > addr) ? 1 : -1;
7012 }
7013
7014 int
7015 main ()
7016 {
7017   return find_stack_direction () < 0;
7018 }
7019 _ACEOF
7020 if ac_fn_c_try_run "$LINENO"; then :
7021   ac_cv_c_stack_direction=1
7022 else
7023   ac_cv_c_stack_direction=-1
7024 fi
7025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7026   conftest.$ac_objext conftest.beam conftest.$ac_ext
7027 fi
7028
7029 fi
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7031 $as_echo "$ac_cv_c_stack_direction" >&6; }
7032 cat >>confdefs.h <<_ACEOF
7033 #define STACK_DIRECTION $ac_cv_c_stack_direction
7034 _ACEOF
7035
7036
7037 fi
7038
7039
7040
7041
7042   for ac_header in $ac_header_list
7043 do :
7044   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7045 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7046 "
7047 eval as_val=\$$as_ac_Header
7048    if test "x$as_val" = x""yes; then :
7049   cat >>confdefs.h <<_ACEOF
7050 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7051 _ACEOF
7052
7053 fi
7054
7055 done
7056
7057
7058
7059
7060
7061
7062
7063
7064 for ac_func in getpagesize
7065 do :
7066   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7067 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7068   cat >>confdefs.h <<_ACEOF
7069 #define HAVE_GETPAGESIZE 1
7070 _ACEOF
7071
7072 fi
7073 done
7074
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7076 $as_echo_n "checking for working mmap... " >&6; }
7077 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7078   $as_echo_n "(cached) " >&6
7079 else
7080   if test "$cross_compiling" = yes; then :
7081   ac_cv_func_mmap_fixed_mapped=no
7082 else
7083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7084 /* end confdefs.h.  */
7085 $ac_includes_default
7086 /* malloc might have been renamed as rpl_malloc. */
7087 #undef malloc
7088
7089 /* Thanks to Mike Haertel and Jim Avera for this test.
7090    Here is a matrix of mmap possibilities:
7091         mmap private not fixed
7092         mmap private fixed at somewhere currently unmapped
7093         mmap private fixed at somewhere already mapped
7094         mmap shared not fixed
7095         mmap shared fixed at somewhere currently unmapped
7096         mmap shared fixed at somewhere already mapped
7097    For private mappings, we should verify that changes cannot be read()
7098    back from the file, nor mmap's back from the file at a different
7099    address.  (There have been systems where private was not correctly
7100    implemented like the infamous i386 svr4.0, and systems where the
7101    VM page cache was not coherent with the file system buffer cache
7102    like early versions of FreeBSD and possibly contemporary NetBSD.)
7103    For shared mappings, we should conversely verify that changes get
7104    propagated back to all the places they're supposed to be.
7105
7106    Grep wants private fixed already mapped.
7107    The main things grep needs to know about mmap are:
7108    * does it exist and is it safe to write into the mmap'd area
7109    * how to use it (BSD variants)  */
7110
7111 #include <fcntl.h>
7112 #include <sys/mman.h>
7113
7114 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7115 char *malloc ();
7116 #endif
7117
7118 /* This mess was copied from the GNU getpagesize.h.  */
7119 #ifndef HAVE_GETPAGESIZE
7120 # ifdef _SC_PAGESIZE
7121 #  define getpagesize() sysconf(_SC_PAGESIZE)
7122 # else /* no _SC_PAGESIZE */
7123 #  ifdef HAVE_SYS_PARAM_H
7124 #   include <sys/param.h>
7125 #   ifdef EXEC_PAGESIZE
7126 #    define getpagesize() EXEC_PAGESIZE
7127 #   else /* no EXEC_PAGESIZE */
7128 #    ifdef NBPG
7129 #     define getpagesize() NBPG * CLSIZE
7130 #     ifndef CLSIZE
7131 #      define CLSIZE 1
7132 #     endif /* no CLSIZE */
7133 #    else /* no NBPG */
7134 #     ifdef NBPC
7135 #      define getpagesize() NBPC
7136 #     else /* no NBPC */
7137 #      ifdef PAGESIZE
7138 #       define getpagesize() PAGESIZE
7139 #      endif /* PAGESIZE */
7140 #     endif /* no NBPC */
7141 #    endif /* no NBPG */
7142 #   endif /* no EXEC_PAGESIZE */
7143 #  else /* no HAVE_SYS_PARAM_H */
7144 #   define getpagesize() 8192   /* punt totally */
7145 #  endif /* no HAVE_SYS_PARAM_H */
7146 # endif /* no _SC_PAGESIZE */
7147
7148 #endif /* no HAVE_GETPAGESIZE */
7149
7150 int
7151 main ()
7152 {
7153   char *data, *data2, *data3;
7154   const char *cdata2;
7155   int i, pagesize;
7156   int fd, fd2;
7157
7158   pagesize = getpagesize ();
7159
7160   /* First, make a file with some known garbage in it. */
7161   data = (char *) malloc (pagesize);
7162   if (!data)
7163     return 1;
7164   for (i = 0; i < pagesize; ++i)
7165     *(data + i) = rand ();
7166   umask (0);
7167   fd = creat ("conftest.mmap", 0600);
7168   if (fd < 0)
7169     return 2;
7170   if (write (fd, data, pagesize) != pagesize)
7171     return 3;
7172   close (fd);
7173
7174   /* Next, check that the tail of a page is zero-filled.  File must have
7175      non-zero length, otherwise we risk SIGBUS for entire page.  */
7176   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7177   if (fd2 < 0)
7178     return 4;
7179   cdata2 = "";
7180   if (write (fd2, cdata2, 1) != 1)
7181     return 5;
7182   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7183   if (data2 == MAP_FAILED)
7184     return 6;
7185   for (i = 0; i < pagesize; ++i)
7186     if (*(data2 + i))
7187       return 7;
7188   close (fd2);
7189   if (munmap (data2, pagesize))
7190     return 8;
7191
7192   /* Next, try to mmap the file at a fixed address which already has
7193      something else allocated at it.  If we can, also make sure that
7194      we see the same garbage.  */
7195   fd = open ("conftest.mmap", O_RDWR);
7196   if (fd < 0)
7197     return 9;
7198   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7199                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7200     return 10;
7201   for (i = 0; i < pagesize; ++i)
7202     if (*(data + i) != *(data2 + i))
7203       return 11;
7204
7205   /* Finally, make sure that changes to the mapped area do not
7206      percolate back to the file as seen by read().  (This is a bug on
7207      some variants of i386 svr4.0.)  */
7208   for (i = 0; i < pagesize; ++i)
7209     *(data2 + i) = *(data2 + i) + 1;
7210   data3 = (char *) malloc (pagesize);
7211   if (!data3)
7212     return 12;
7213   if (read (fd, data3, pagesize) != pagesize)
7214     return 13;
7215   for (i = 0; i < pagesize; ++i)
7216     if (*(data + i) != *(data3 + i))
7217       return 14;
7218   close (fd);
7219   return 0;
7220 }
7221 _ACEOF
7222 if ac_fn_c_try_run "$LINENO"; then :
7223   ac_cv_func_mmap_fixed_mapped=yes
7224 else
7225   ac_cv_func_mmap_fixed_mapped=no
7226 fi
7227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7228   conftest.$ac_objext conftest.beam conftest.$ac_ext
7229 fi
7230
7231 fi
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7233 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7234 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7235
7236 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7237
7238 fi
7239 rm -f conftest.mmap conftest.txt
7240
7241
7242     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7243 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7244 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7245   $as_echo_n "(cached) " >&6
7246 else
7247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248 /* end confdefs.h.  */
7249
7250 #include <features.h>
7251 #ifdef __GNU_LIBRARY__
7252  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7253   Lucky GNU user
7254  #endif
7255 #endif
7256
7257 _ACEOF
7258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7259   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7260   ac_cv_gnu_library_2_1=yes
7261 else
7262   ac_cv_gnu_library_2_1=no
7263 fi
7264 rm -f conftest*
7265
7266
7267
7268 fi
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7270 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7271
7272     GLIBC21="$ac_cv_gnu_library_2_1"
7273
7274
7275
7276
7277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7278 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7279 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
7280   $as_echo_n "(cached) " >&6
7281 else
7282
7283       if test "$cross_compiling" = yes; then :
7284
7285           # Guess based on the CPU.
7286           case "$host_cpu" in
7287             alpha* | i3456786 | m68k | s390*)
7288               gt_cv_int_divbyzero_sigfpe="guessing yes";;
7289             *)
7290               gt_cv_int_divbyzero_sigfpe="guessing no";;
7291           esac
7292
7293 else
7294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7295 /* end confdefs.h.  */
7296
7297 #include <stdlib.h>
7298 #include <signal.h>
7299
7300 static void
7301 #ifdef __cplusplus
7302 sigfpe_handler (int sig)
7303 #else
7304 sigfpe_handler (sig) int sig;
7305 #endif
7306 {
7307   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7308   exit (sig != SIGFPE);
7309 }
7310
7311 int x = 1;
7312 int y = 0;
7313 int z;
7314 int nan;
7315
7316 int main ()
7317 {
7318   signal (SIGFPE, sigfpe_handler);
7319 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7320 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7321   signal (SIGTRAP, sigfpe_handler);
7322 #endif
7323 /* Linux/SPARC yields signal SIGILL.  */
7324 #if defined (__sparc__) && defined (__linux__)
7325   signal (SIGILL, sigfpe_handler);
7326 #endif
7327
7328   z = x / y;
7329   nan = y / y;
7330   exit (1);
7331 }
7332
7333 _ACEOF
7334 if ac_fn_c_try_run "$LINENO"; then :
7335   gt_cv_int_divbyzero_sigfpe=yes
7336 else
7337   gt_cv_int_divbyzero_sigfpe=no
7338 fi
7339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7340   conftest.$ac_objext conftest.beam conftest.$ac_ext
7341 fi
7342
7343
7344 fi
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7346 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7347   case "$gt_cv_int_divbyzero_sigfpe" in
7348     *yes) value=1;;
7349     *) value=0;;
7350   esac
7351
7352 cat >>confdefs.h <<_ACEOF
7353 #define INTDIV0_RAISES_SIGFPE $value
7354 _ACEOF
7355
7356
7357
7358   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7359 $as_echo_n "checking for unsigned long long... " >&6; }
7360 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
7361   $as_echo_n "(cached) " >&6
7362 else
7363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364 /* end confdefs.h.  */
7365 unsigned long long ull = 1ULL; int i = 63;
7366 int
7367 main ()
7368 {
7369 unsigned long long ullmax = (unsigned long long) -1;
7370      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7371   ;
7372   return 0;
7373 }
7374 _ACEOF
7375 if ac_fn_c_try_link "$LINENO"; then :
7376   ac_cv_type_unsigned_long_long=yes
7377 else
7378   ac_cv_type_unsigned_long_long=no
7379 fi
7380 rm -f core conftest.err conftest.$ac_objext \
7381     conftest$ac_exeext conftest.$ac_ext
7382 fi
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7384 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7385   if test $ac_cv_type_unsigned_long_long = yes; then
7386
7387 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7388
7389   fi
7390
7391
7392
7393
7394   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7395
7396     test $ac_cv_type_unsigned_long_long = yes \
7397       && ac_type='unsigned long long' \
7398       || ac_type='unsigned long'
7399
7400 cat >>confdefs.h <<_ACEOF
7401 #define uintmax_t $ac_type
7402 _ACEOF
7403
7404   else
7405
7406 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7407
7408   fi
7409
7410
7411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7412 $as_echo_n "checking for inttypes.h... " >&6; }
7413 if test "${gt_cv_header_inttypes_h+set}" = set; then :
7414   $as_echo_n "(cached) " >&6
7415 else
7416
7417     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7418 /* end confdefs.h.  */
7419 #include <sys/types.h>
7420 #include <inttypes.h>
7421 int
7422 main ()
7423 {
7424
7425   ;
7426   return 0;
7427 }
7428 _ACEOF
7429 if ac_fn_c_try_compile "$LINENO"; then :
7430   gt_cv_header_inttypes_h=yes
7431 else
7432   gt_cv_header_inttypes_h=no
7433 fi
7434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7435
7436 fi
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7438 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7439   if test $gt_cv_header_inttypes_h = yes; then
7440
7441 cat >>confdefs.h <<_ACEOF
7442 #define HAVE_INTTYPES_H 1
7443 _ACEOF
7444
7445   fi
7446
7447
7448
7449   if test $gt_cv_header_inttypes_h = yes; then
7450     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7451 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7452 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7453   $as_echo_n "(cached) " >&6
7454 else
7455
7456         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7457 /* end confdefs.h.  */
7458 #include <inttypes.h>
7459 #ifdef PRId32
7460 char *p = PRId32;
7461 #endif
7462
7463 int
7464 main ()
7465 {
7466
7467   ;
7468   return 0;
7469 }
7470 _ACEOF
7471 if ac_fn_c_try_compile "$LINENO"; then :
7472   gt_cv_inttypes_pri_broken=no
7473 else
7474   gt_cv_inttypes_pri_broken=yes
7475 fi
7476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7477
7478 fi
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7480 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7481   fi
7482   if test "$gt_cv_inttypes_pri_broken" = yes; then
7483
7484 cat >>confdefs.h <<_ACEOF
7485 #define PRI_MACROS_BROKEN 1
7486 _ACEOF
7487
7488   fi
7489
7490
7491   for ac_header in stdint.h
7492 do :
7493   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7494 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7495   cat >>confdefs.h <<_ACEOF
7496 #define HAVE_STDINT_H 1
7497 _ACEOF
7498
7499 fi
7500
7501 done
7502
7503     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7504 $as_echo_n "checking for SIZE_MAX... " >&6; }
7505   result=
7506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h.  */
7508
7509 #include <limits.h>
7510 #if HAVE_STDINT_H
7511 #include <stdint.h>
7512 #endif
7513 #ifdef SIZE_MAX
7514 Found it
7515 #endif
7516
7517 _ACEOF
7518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7519   $EGREP "Found it" >/dev/null 2>&1; then :
7520   result=yes
7521 fi
7522 rm -f conftest*
7523
7524   if test -z "$result"; then
7525                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
7526
7527 else
7528   result=?
7529 fi
7530
7531
7532     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
7533
7534 else
7535   result=?
7536 fi
7537
7538
7539     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
7540
7541 else
7542   result=?
7543 fi
7544
7545
7546     if test "$fits_in_uint" = 1; then
7547                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548 /* end confdefs.h.  */
7549 #include <stddef.h>
7550         extern size_t foo;
7551         extern unsigned long foo;
7552
7553 int
7554 main ()
7555 {
7556
7557   ;
7558   return 0;
7559 }
7560 _ACEOF
7561 if ac_fn_c_try_compile "$LINENO"; then :
7562   fits_in_uint=0
7563 fi
7564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7565     fi
7566     if test -z "$result"; then
7567       if test "$fits_in_uint" = 1; then
7568         result="$res_hi$res_lo"U
7569       else
7570         result="$res_hi$res_lo"UL
7571       fi
7572     else
7573             result='~(size_t)0'
7574     fi
7575   fi
7576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7577 $as_echo "$result" >&6; }
7578   if test "$result" != yes; then
7579
7580 cat >>confdefs.h <<_ACEOF
7581 #define SIZE_MAX $result
7582 _ACEOF
7583
7584   fi
7585
7586
7587
7588   for ac_header in stdint.h
7589 do :
7590   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7591 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7592   cat >>confdefs.h <<_ACEOF
7593 #define HAVE_STDINT_H 1
7594 _ACEOF
7595
7596 fi
7597
7598 done
7599
7600
7601
7602       if test "X$prefix" = "XNONE"; then
7603     acl_final_prefix="$ac_default_prefix"
7604   else
7605     acl_final_prefix="$prefix"
7606   fi
7607   if test "X$exec_prefix" = "XNONE"; then
7608     acl_final_exec_prefix='${prefix}'
7609   else
7610     acl_final_exec_prefix="$exec_prefix"
7611   fi
7612   acl_save_prefix="$prefix"
7613   prefix="$acl_final_prefix"
7614   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7615   prefix="$acl_save_prefix"
7616
7617
7618 # Check whether --with-gnu-ld was given.
7619 if test "${with_gnu_ld+set}" = set; then :
7620   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7621 else
7622   with_gnu_ld=no
7623 fi
7624
7625 # Prepare PATH_SEPARATOR.
7626 # The user is always right.
7627 if test "${PATH_SEPARATOR+set}" != set; then
7628   echo "#! /bin/sh" >conf$$.sh
7629   echo  "exit 0"   >>conf$$.sh
7630   chmod +x conf$$.sh
7631   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7632     PATH_SEPARATOR=';'
7633   else
7634     PATH_SEPARATOR=:
7635   fi
7636   rm -f conf$$.sh
7637 fi
7638 ac_prog=ld
7639 if test "$GCC" = yes; then
7640   # Check if gcc -print-prog-name=ld gives a path.
7641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7642 $as_echo_n "checking for ld used by GCC... " >&6; }
7643   case $host in
7644   *-*-mingw*)
7645     # gcc leaves a trailing carriage return which upsets mingw
7646     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7647   *)
7648     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7649   esac
7650   case $ac_prog in
7651     # Accept absolute paths.
7652     [\\/]* | [A-Za-z]:[\\/]*)
7653       re_direlt='/[^/][^/]*/\.\./'
7654       # Canonicalize the path of ld
7655       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7656       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7657         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7658       done
7659       test -z "$LD" && LD="$ac_prog"
7660       ;;
7661   "")
7662     # If it fails, then pretend we aren't using GCC.
7663     ac_prog=ld
7664     ;;
7665   *)
7666     # If it is relative, then search for the first ld in PATH.
7667     with_gnu_ld=unknown
7668     ;;
7669   esac
7670 elif test "$with_gnu_ld" = yes; then
7671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7672 $as_echo_n "checking for GNU ld... " >&6; }
7673 else
7674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7675 $as_echo_n "checking for non-GNU ld... " >&6; }
7676 fi
7677 if test "${acl_cv_path_LD+set}" = set; then :
7678   $as_echo_n "(cached) " >&6
7679 else
7680   if test -z "$LD"; then
7681   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7682   for ac_dir in $PATH; do
7683     test -z "$ac_dir" && ac_dir=.
7684     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7685       acl_cv_path_LD="$ac_dir/$ac_prog"
7686       # Check to see if the program is GNU ld.  I'd rather use --version,
7687       # but apparently some GNU ld's only accept -v.
7688       # Break only if it was the GNU/non-GNU ld that we prefer.
7689       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7690       *GNU* | *'with BFD'*)
7691         test "$with_gnu_ld" != no && break ;;
7692       *)
7693         test "$with_gnu_ld" != yes && break ;;
7694       esac
7695     fi
7696   done
7697   IFS="$ac_save_ifs"
7698 else
7699   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7700 fi
7701 fi
7702
7703 LD="$acl_cv_path_LD"
7704 if test -n "$LD"; then
7705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7706 $as_echo "$LD" >&6; }
7707 else
7708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709 $as_echo "no" >&6; }
7710 fi
7711 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7713 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7714 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7715   $as_echo_n "(cached) " >&6
7716 else
7717   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7718 case `$LD -v 2>&1 </dev/null` in
7719 *GNU* | *'with BFD'*)
7720   acl_cv_prog_gnu_ld=yes ;;
7721 *)
7722   acl_cv_prog_gnu_ld=no ;;
7723 esac
7724 fi
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7726 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7727 with_gnu_ld=$acl_cv_prog_gnu_ld
7728
7729
7730
7731                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7732 $as_echo_n "checking for shared library run path origin... " >&6; }
7733 if test "${acl_cv_rpath+set}" = set; then :
7734   $as_echo_n "(cached) " >&6
7735 else
7736
7737     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7738     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7739     . ./conftest.sh
7740     rm -f ./conftest.sh
7741     acl_cv_rpath=done
7742
7743 fi
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7745 $as_echo "$acl_cv_rpath" >&6; }
7746   wl="$acl_cv_wl"
7747   libext="$acl_cv_libext"
7748   shlibext="$acl_cv_shlibext"
7749   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7750   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7751   hardcode_direct="$acl_cv_hardcode_direct"
7752   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7753     # Check whether --enable-rpath was given.
7754 if test "${enable_rpath+set}" = set; then :
7755   enableval=$enable_rpath; :
7756 else
7757   enable_rpath=yes
7758 fi
7759
7760
7761
7762
7763
7764
7765
7766
7767     use_additional=yes
7768
7769   acl_save_prefix="$prefix"
7770   prefix="$acl_final_prefix"
7771   acl_save_exec_prefix="$exec_prefix"
7772   exec_prefix="$acl_final_exec_prefix"
7773
7774     eval additional_includedir=\"$includedir\"
7775     eval additional_libdir=\"$libdir\"
7776
7777   exec_prefix="$acl_save_exec_prefix"
7778   prefix="$acl_save_prefix"
7779
7780
7781 # Check whether --with-libiconv-prefix was given.
7782 if test "${with_libiconv_prefix+set}" = set; then :
7783   withval=$with_libiconv_prefix;
7784     if test "X$withval" = "Xno"; then
7785       use_additional=no
7786     else
7787       if test "X$withval" = "X"; then
7788
7789   acl_save_prefix="$prefix"
7790   prefix="$acl_final_prefix"
7791   acl_save_exec_prefix="$exec_prefix"
7792   exec_prefix="$acl_final_exec_prefix"
7793
7794           eval additional_includedir=\"$includedir\"
7795           eval additional_libdir=\"$libdir\"
7796
7797   exec_prefix="$acl_save_exec_prefix"
7798   prefix="$acl_save_prefix"
7799
7800       else
7801         additional_includedir="$withval/include"
7802         additional_libdir="$withval/lib"
7803       fi
7804     fi
7805
7806 fi
7807
7808       LIBICONV=
7809   LTLIBICONV=
7810   INCICONV=
7811   rpathdirs=
7812   ltrpathdirs=
7813   names_already_handled=
7814   names_next_round='iconv '
7815   while test -n "$names_next_round"; do
7816     names_this_round="$names_next_round"
7817     names_next_round=
7818     for name in $names_this_round; do
7819       already_handled=
7820       for n in $names_already_handled; do
7821         if test "$n" = "$name"; then
7822           already_handled=yes
7823           break
7824         fi
7825       done
7826       if test -z "$already_handled"; then
7827         names_already_handled="$names_already_handled $name"
7828                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7829         eval value=\"\$HAVE_LIB$uppername\"
7830         if test -n "$value"; then
7831           if test "$value" = yes; then
7832             eval value=\"\$LIB$uppername\"
7833             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7834             eval value=\"\$LTLIB$uppername\"
7835             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7836           else
7837                                     :
7838           fi
7839         else
7840                               found_dir=
7841           found_la=
7842           found_so=
7843           found_a=
7844           if test $use_additional = yes; then
7845             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7846               found_dir="$additional_libdir"
7847               found_so="$additional_libdir/lib$name.$shlibext"
7848               if test -f "$additional_libdir/lib$name.la"; then
7849                 found_la="$additional_libdir/lib$name.la"
7850               fi
7851             else
7852               if test -f "$additional_libdir/lib$name.$libext"; then
7853                 found_dir="$additional_libdir"
7854                 found_a="$additional_libdir/lib$name.$libext"
7855                 if test -f "$additional_libdir/lib$name.la"; then
7856                   found_la="$additional_libdir/lib$name.la"
7857                 fi
7858               fi
7859             fi
7860           fi
7861           if test "X$found_dir" = "X"; then
7862             for x in $LDFLAGS $LTLIBICONV; do
7863
7864   acl_save_prefix="$prefix"
7865   prefix="$acl_final_prefix"
7866   acl_save_exec_prefix="$exec_prefix"
7867   exec_prefix="$acl_final_exec_prefix"
7868   eval x=\"$x\"
7869   exec_prefix="$acl_save_exec_prefix"
7870   prefix="$acl_save_prefix"
7871
7872               case "$x" in
7873                 -L*)
7874                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7875                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7876                     found_dir="$dir"
7877                     found_so="$dir/lib$name.$shlibext"
7878                     if test -f "$dir/lib$name.la"; then
7879                       found_la="$dir/lib$name.la"
7880                     fi
7881                   else
7882                     if test -f "$dir/lib$name.$libext"; then
7883                       found_dir="$dir"
7884                       found_a="$dir/lib$name.$libext"
7885                       if test -f "$dir/lib$name.la"; then
7886                         found_la="$dir/lib$name.la"
7887                       fi
7888                     fi
7889                   fi
7890                   ;;
7891               esac
7892               if test "X$found_dir" != "X"; then
7893                 break
7894               fi
7895             done
7896           fi
7897           if test "X$found_dir" != "X"; then
7898                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7899             if test "X$found_so" != "X"; then
7900                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7901                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7902               else
7903                                                                                 haveit=
7904                 for x in $ltrpathdirs; do
7905                   if test "X$x" = "X$found_dir"; then
7906                     haveit=yes
7907                     break
7908                   fi
7909                 done
7910                 if test -z "$haveit"; then
7911                   ltrpathdirs="$ltrpathdirs $found_dir"
7912                 fi
7913                                 if test "$hardcode_direct" = yes; then
7914                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7915                 else
7916                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7917                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7918                                                             haveit=
7919                     for x in $rpathdirs; do
7920                       if test "X$x" = "X$found_dir"; then
7921                         haveit=yes
7922                         break
7923                       fi
7924                     done
7925                     if test -z "$haveit"; then
7926                       rpathdirs="$rpathdirs $found_dir"
7927                     fi
7928                   else
7929                                                                                 haveit=
7930                     for x in $LDFLAGS $LIBICONV; do
7931
7932   acl_save_prefix="$prefix"
7933   prefix="$acl_final_prefix"
7934   acl_save_exec_prefix="$exec_prefix"
7935   exec_prefix="$acl_final_exec_prefix"
7936   eval x=\"$x\"
7937   exec_prefix="$acl_save_exec_prefix"
7938   prefix="$acl_save_prefix"
7939
7940                       if test "X$x" = "X-L$found_dir"; then
7941                         haveit=yes
7942                         break
7943                       fi
7944                     done
7945                     if test -z "$haveit"; then
7946                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7947                     fi
7948                     if test "$hardcode_minus_L" != no; then
7949                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7950                     else
7951                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7952                     fi
7953                   fi
7954                 fi
7955               fi
7956             else
7957               if test "X$found_a" != "X"; then
7958                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7959               else
7960                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7961               fi
7962             fi
7963                         additional_includedir=
7964             case "$found_dir" in
7965               */lib | */lib/)
7966                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7967                 additional_includedir="$basedir/include"
7968                 ;;
7969             esac
7970             if test "X$additional_includedir" != "X"; then
7971                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7972                 haveit=
7973                 if test "X$additional_includedir" = "X/usr/local/include"; then
7974                   if test -n "$GCC"; then
7975                     case $host_os in
7976                       linux*) haveit=yes;;
7977                     esac
7978                   fi
7979                 fi
7980                 if test -z "$haveit"; then
7981                   for x in $CPPFLAGS $INCICONV; do
7982
7983   acl_save_prefix="$prefix"
7984   prefix="$acl_final_prefix"
7985   acl_save_exec_prefix="$exec_prefix"
7986   exec_prefix="$acl_final_exec_prefix"
7987   eval x=\"$x\"
7988   exec_prefix="$acl_save_exec_prefix"
7989   prefix="$acl_save_prefix"
7990
7991                     if test "X$x" = "X-I$additional_includedir"; then
7992                       haveit=yes
7993                       break
7994                     fi
7995                   done
7996                   if test -z "$haveit"; then
7997                     if test -d "$additional_includedir"; then
7998                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7999                     fi
8000                   fi
8001                 fi
8002               fi
8003             fi
8004                         if test -n "$found_la"; then
8005                                                         save_libdir="$libdir"
8006               case "$found_la" in
8007                 */* | *\\*) . "$found_la" ;;
8008                 *) . "./$found_la" ;;
8009               esac
8010               libdir="$save_libdir"
8011                             for dep in $dependency_libs; do
8012                 case "$dep" in
8013                   -L*)
8014                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8015                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8016                       haveit=
8017                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8018                         if test -n "$GCC"; then
8019                           case $host_os in
8020                             linux*) haveit=yes;;
8021                           esac
8022                         fi
8023                       fi
8024                       if test -z "$haveit"; then
8025                         haveit=
8026                         for x in $LDFLAGS $LIBICONV; do
8027
8028   acl_save_prefix="$prefix"
8029   prefix="$acl_final_prefix"
8030   acl_save_exec_prefix="$exec_prefix"
8031   exec_prefix="$acl_final_exec_prefix"
8032   eval x=\"$x\"
8033   exec_prefix="$acl_save_exec_prefix"
8034   prefix="$acl_save_prefix"
8035
8036                           if test "X$x" = "X-L$additional_libdir"; then
8037                             haveit=yes
8038                             break
8039                           fi
8040                         done
8041                         if test -z "$haveit"; then
8042                           if test -d "$additional_libdir"; then
8043                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8044                           fi
8045                         fi
8046                         haveit=
8047                         for x in $LDFLAGS $LTLIBICONV; do
8048
8049   acl_save_prefix="$prefix"
8050   prefix="$acl_final_prefix"
8051   acl_save_exec_prefix="$exec_prefix"
8052   exec_prefix="$acl_final_exec_prefix"
8053   eval x=\"$x\"
8054   exec_prefix="$acl_save_exec_prefix"
8055   prefix="$acl_save_prefix"
8056
8057                           if test "X$x" = "X-L$additional_libdir"; then
8058                             haveit=yes
8059                             break
8060                           fi
8061                         done
8062                         if test -z "$haveit"; then
8063                           if test -d "$additional_libdir"; then
8064                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8065                           fi
8066                         fi
8067                       fi
8068                     fi
8069                     ;;
8070                   -R*)
8071                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8072                     if test "$enable_rpath" != no; then
8073                                                                   haveit=
8074                       for x in $rpathdirs; do
8075                         if test "X$x" = "X$dir"; then
8076                           haveit=yes
8077                           break
8078                         fi
8079                       done
8080                       if test -z "$haveit"; then
8081                         rpathdirs="$rpathdirs $dir"
8082                       fi
8083                                                                   haveit=
8084                       for x in $ltrpathdirs; do
8085                         if test "X$x" = "X$dir"; then
8086                           haveit=yes
8087                           break
8088                         fi
8089                       done
8090                       if test -z "$haveit"; then
8091                         ltrpathdirs="$ltrpathdirs $dir"
8092                       fi
8093                     fi
8094                     ;;
8095                   -l*)
8096                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8097                     ;;
8098                   *.la)
8099                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8100                     ;;
8101                   *)
8102                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8103                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8104                     ;;
8105                 esac
8106               done
8107             fi
8108           else
8109                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8110             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8111           fi
8112         fi
8113       fi
8114     done
8115   done
8116   if test "X$rpathdirs" != "X"; then
8117     if test -n "$hardcode_libdir_separator"; then
8118                         alldirs=
8119       for found_dir in $rpathdirs; do
8120         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8121       done
8122             acl_save_libdir="$libdir"
8123       libdir="$alldirs"
8124       eval flag=\"$hardcode_libdir_flag_spec\"
8125       libdir="$acl_save_libdir"
8126       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8127     else
8128             for found_dir in $rpathdirs; do
8129         acl_save_libdir="$libdir"
8130         libdir="$found_dir"
8131         eval flag=\"$hardcode_libdir_flag_spec\"
8132         libdir="$acl_save_libdir"
8133         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8134       done
8135     fi
8136   fi
8137   if test "X$ltrpathdirs" != "X"; then
8138             for found_dir in $ltrpathdirs; do
8139       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8140     done
8141   fi
8142
8143
8144
8145
8146
8147
8148
8149
8150   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8151 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
8152
8153 else
8154
8155 $as_echo "#define ptrdiff_t long" >>confdefs.h
8156
8157
8158 fi
8159
8160   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8161 stdlib.h string.h unistd.h sys/param.h
8162 do :
8163   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8164 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8165 eval as_val=\$$as_ac_Header
8166    if test "x$as_val" = x""yes; then :
8167   cat >>confdefs.h <<_ACEOF
8168 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8169 _ACEOF
8170
8171 fi
8172
8173 done
8174
8175   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8176 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8177 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8178 __fsetlocking
8179 do :
8180   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8181 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8182 eval as_val=\$$as_ac_var
8183    if test "x$as_val" = x""yes; then :
8184   cat >>confdefs.h <<_ACEOF
8185 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8186 _ACEOF
8187
8188 fi
8189 done
8190
8191
8192
8193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8194 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8195 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
8196   $as_echo_n "(cached) " >&6
8197 else
8198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h.  */
8200 #include <stdio.h>
8201 int
8202 main ()
8203 {
8204
8205 #ifndef _snprintf
8206   char *p = (char *) _snprintf;
8207 #endif
8208
8209   ;
8210   return 0;
8211 }
8212 _ACEOF
8213 if ac_fn_c_try_compile "$LINENO"; then :
8214   ac_cv_have_decl__snprintf=yes
8215 else
8216   ac_cv_have_decl__snprintf=no
8217 fi
8218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8219 fi
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8221 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8222   if test $ac_cv_have_decl__snprintf = yes; then
8223     gt_value=1
8224   else
8225     gt_value=0
8226   fi
8227
8228 cat >>confdefs.h <<_ACEOF
8229 #define HAVE_DECL__SNPRINTF $gt_value
8230 _ACEOF
8231
8232
8233
8234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8235 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8236 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
8237   $as_echo_n "(cached) " >&6
8238 else
8239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240 /* end confdefs.h.  */
8241 #include <stdio.h>
8242 int
8243 main ()
8244 {
8245
8246 #ifndef _snwprintf
8247   char *p = (char *) _snwprintf;
8248 #endif
8249
8250   ;
8251   return 0;
8252 }
8253 _ACEOF
8254 if ac_fn_c_try_compile "$LINENO"; then :
8255   ac_cv_have_decl__snwprintf=yes
8256 else
8257   ac_cv_have_decl__snwprintf=no
8258 fi
8259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8260 fi
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8262 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8263   if test $ac_cv_have_decl__snwprintf = yes; then
8264     gt_value=1
8265   else
8266     gt_value=0
8267   fi
8268
8269 cat >>confdefs.h <<_ACEOF
8270 #define HAVE_DECL__SNWPRINTF $gt_value
8271 _ACEOF
8272
8273
8274
8275
8276   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8277 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8278 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
8279   $as_echo_n "(cached) " >&6
8280 else
8281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282 /* end confdefs.h.  */
8283 #include <stdio.h>
8284 int
8285 main ()
8286 {
8287
8288 #ifndef feof_unlocked
8289   char *p = (char *) feof_unlocked;
8290 #endif
8291
8292   ;
8293   return 0;
8294 }
8295 _ACEOF
8296 if ac_fn_c_try_compile "$LINENO"; then :
8297   ac_cv_have_decl_feof_unlocked=yes
8298 else
8299   ac_cv_have_decl_feof_unlocked=no
8300 fi
8301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8302 fi
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8304 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8305   if test $ac_cv_have_decl_feof_unlocked = yes; then
8306     gt_value=1
8307   else
8308     gt_value=0
8309   fi
8310
8311 cat >>confdefs.h <<_ACEOF
8312 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8313 _ACEOF
8314
8315
8316
8317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8318 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8319 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
8320   $as_echo_n "(cached) " >&6
8321 else
8322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h.  */
8324 #include <stdio.h>
8325 int
8326 main ()
8327 {
8328
8329 #ifndef fgets_unlocked
8330   char *p = (char *) fgets_unlocked;
8331 #endif
8332
8333   ;
8334   return 0;
8335 }
8336 _ACEOF
8337 if ac_fn_c_try_compile "$LINENO"; then :
8338   ac_cv_have_decl_fgets_unlocked=yes
8339 else
8340   ac_cv_have_decl_fgets_unlocked=no
8341 fi
8342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8343 fi
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8345 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8346   if test $ac_cv_have_decl_fgets_unlocked = yes; then
8347     gt_value=1
8348   else
8349     gt_value=0
8350   fi
8351
8352 cat >>confdefs.h <<_ACEOF
8353 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8354 _ACEOF
8355
8356
8357
8358   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8359 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8360 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
8361   $as_echo_n "(cached) " >&6
8362 else
8363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8364 /* end confdefs.h.  */
8365 #include <stdio.h>
8366 int
8367 main ()
8368 {
8369
8370 #ifndef getc_unlocked
8371   char *p = (char *) getc_unlocked;
8372 #endif
8373
8374   ;
8375   return 0;
8376 }
8377 _ACEOF
8378 if ac_fn_c_try_compile "$LINENO"; then :
8379   ac_cv_have_decl_getc_unlocked=yes
8380 else
8381   ac_cv_have_decl_getc_unlocked=no
8382 fi
8383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8384 fi
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8386 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8387   if test $ac_cv_have_decl_getc_unlocked = yes; then
8388     gt_value=1
8389   else
8390     gt_value=0
8391   fi
8392
8393 cat >>confdefs.h <<_ACEOF
8394 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8395 _ACEOF
8396
8397
8398
8399   case $gt_cv_func_printf_posix in
8400     *yes) HAVE_POSIX_PRINTF=1 ;;
8401     *) HAVE_POSIX_PRINTF=0 ;;
8402   esac
8403
8404   if test "$ac_cv_func_asprintf" = yes; then
8405     HAVE_ASPRINTF=1
8406   else
8407     HAVE_ASPRINTF=0
8408   fi
8409
8410   if test "$ac_cv_func_snprintf" = yes; then
8411     HAVE_SNPRINTF=1
8412   else
8413     HAVE_SNPRINTF=0
8414   fi
8415
8416   if test "$ac_cv_func_wprintf" = yes; then
8417     HAVE_WPRINTF=1
8418   else
8419     HAVE_WPRINTF=0
8420   fi
8421
8422
8423
8424
8425
8426
8427
8428           am_save_CPPFLAGS="$CPPFLAGS"
8429
8430   for element in $INCICONV; do
8431     haveit=
8432     for x in $CPPFLAGS; do
8433
8434   acl_save_prefix="$prefix"
8435   prefix="$acl_final_prefix"
8436   acl_save_exec_prefix="$exec_prefix"
8437   exec_prefix="$acl_final_exec_prefix"
8438   eval x=\"$x\"
8439   exec_prefix="$acl_save_exec_prefix"
8440   prefix="$acl_save_prefix"
8441
8442       if test "X$x" = "X$element"; then
8443         haveit=yes
8444         break
8445       fi
8446     done
8447     if test -z "$haveit"; then
8448       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8449     fi
8450   done
8451
8452
8453   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8454 $as_echo_n "checking for iconv... " >&6; }
8455 if test "${am_cv_func_iconv+set}" = set; then :
8456   $as_echo_n "(cached) " >&6
8457 else
8458
8459     am_cv_func_iconv="no, consider installing GNU libiconv"
8460     am_cv_lib_iconv=no
8461     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462 /* end confdefs.h.  */
8463 #include <stdlib.h>
8464 #include <iconv.h>
8465 int
8466 main ()
8467 {
8468 iconv_t cd = iconv_open("","");
8469        iconv(cd,NULL,NULL,NULL,NULL);
8470        iconv_close(cd);
8471   ;
8472   return 0;
8473 }
8474 _ACEOF
8475 if ac_fn_c_try_link "$LINENO"; then :
8476   am_cv_func_iconv=yes
8477 fi
8478 rm -f core conftest.err conftest.$ac_objext \
8479     conftest$ac_exeext conftest.$ac_ext
8480     if test "$am_cv_func_iconv" != yes; then
8481       am_save_LIBS="$LIBS"
8482       LIBS="$LIBS $LIBICONV"
8483       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h.  */
8485 #include <stdlib.h>
8486 #include <iconv.h>
8487 int
8488 main ()
8489 {
8490 iconv_t cd = iconv_open("","");
8491          iconv(cd,NULL,NULL,NULL,NULL);
8492          iconv_close(cd);
8493   ;
8494   return 0;
8495 }
8496 _ACEOF
8497 if ac_fn_c_try_link "$LINENO"; then :
8498   am_cv_lib_iconv=yes
8499         am_cv_func_iconv=yes
8500 fi
8501 rm -f core conftest.err conftest.$ac_objext \
8502     conftest$ac_exeext conftest.$ac_ext
8503       LIBS="$am_save_LIBS"
8504     fi
8505
8506 fi
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8508 $as_echo "$am_cv_func_iconv" >&6; }
8509   if test "$am_cv_func_iconv" = yes; then
8510
8511 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8512
8513   fi
8514   if test "$am_cv_lib_iconv" = yes; then
8515     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8516 $as_echo_n "checking how to link with libiconv... " >&6; }
8517     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8518 $as_echo "$LIBICONV" >&6; }
8519   else
8520             CPPFLAGS="$am_save_CPPFLAGS"
8521     LIBICONV=
8522     LTLIBICONV=
8523   fi
8524
8525
8526
8527   if test "$am_cv_func_iconv" = yes; then
8528     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8529 $as_echo_n "checking for iconv declaration... " >&6; }
8530     if test "${am_cv_proto_iconv+set}" = set; then :
8531   $as_echo_n "(cached) " >&6
8532 else
8533
8534       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8535 /* end confdefs.h.  */
8536
8537 #include <stdlib.h>
8538 #include <iconv.h>
8539 extern
8540 #ifdef __cplusplus
8541 "C"
8542 #endif
8543 #if defined(__STDC__) || defined(__cplusplus)
8544 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8545 #else
8546 size_t iconv();
8547 #endif
8548
8549 int
8550 main ()
8551 {
8552
8553   ;
8554   return 0;
8555 }
8556 _ACEOF
8557 if ac_fn_c_try_compile "$LINENO"; then :
8558   am_cv_proto_iconv_arg1=""
8559 else
8560   am_cv_proto_iconv_arg1="const"
8561 fi
8562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8563       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);"
8564 fi
8565
8566     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8567     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8568          }$am_cv_proto_iconv" >&5
8569 $as_echo "${ac_t:-
8570          }$am_cv_proto_iconv" >&6; }
8571
8572 cat >>confdefs.h <<_ACEOF
8573 #define ICONV_CONST $am_cv_proto_iconv_arg1
8574 _ACEOF
8575
8576   fi
8577
8578
8579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8580 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8581 if test "${am_cv_langinfo_codeset+set}" = set; then :
8582   $as_echo_n "(cached) " >&6
8583 else
8584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8585 /* end confdefs.h.  */
8586 #include <langinfo.h>
8587 int
8588 main ()
8589 {
8590 char* cs = nl_langinfo(CODESET);
8591   ;
8592   return 0;
8593 }
8594 _ACEOF
8595 if ac_fn_c_try_link "$LINENO"; then :
8596   am_cv_langinfo_codeset=yes
8597 else
8598   am_cv_langinfo_codeset=no
8599 fi
8600 rm -f core conftest.err conftest.$ac_objext \
8601     conftest$ac_exeext conftest.$ac_ext
8602
8603 fi
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8605 $as_echo "$am_cv_langinfo_codeset" >&6; }
8606   if test $am_cv_langinfo_codeset = yes; then
8607
8608 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8609
8610   fi
8611
8612   if test $ac_cv_header_locale_h = yes; then
8613
8614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8615 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8616 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
8617   $as_echo_n "(cached) " >&6
8618 else
8619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8620 /* end confdefs.h.  */
8621 #include <locale.h>
8622 int
8623 main ()
8624 {
8625 return LC_MESSAGES
8626   ;
8627   return 0;
8628 }
8629 _ACEOF
8630 if ac_fn_c_try_link "$LINENO"; then :
8631   am_cv_val_LC_MESSAGES=yes
8632 else
8633   am_cv_val_LC_MESSAGES=no
8634 fi
8635 rm -f core conftest.err conftest.$ac_objext \
8636     conftest$ac_exeext conftest.$ac_ext
8637 fi
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8639 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8640   if test $am_cv_val_LC_MESSAGES = yes; then
8641
8642 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8643
8644   fi
8645
8646   fi
8647
8648                       for ac_prog in bison
8649 do
8650   # Extract the first word of "$ac_prog", so it can be a program name with args.
8651 set dummy $ac_prog; ac_word=$2
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8653 $as_echo_n "checking for $ac_word... " >&6; }
8654 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
8655   $as_echo_n "(cached) " >&6
8656 else
8657   if test -n "$INTLBISON"; then
8658   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8659 else
8660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8661 for as_dir in $PATH
8662 do
8663   IFS=$as_save_IFS
8664   test -z "$as_dir" && as_dir=.
8665     for ac_exec_ext in '' $ac_executable_extensions; do
8666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8667     ac_cv_prog_INTLBISON="$ac_prog"
8668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8669     break 2
8670   fi
8671 done
8672   done
8673 IFS=$as_save_IFS
8674
8675 fi
8676 fi
8677 INTLBISON=$ac_cv_prog_INTLBISON
8678 if test -n "$INTLBISON"; then
8679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8680 $as_echo "$INTLBISON" >&6; }
8681 else
8682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683 $as_echo "no" >&6; }
8684 fi
8685
8686
8687   test -n "$INTLBISON" && break
8688 done
8689
8690   if test -z "$INTLBISON"; then
8691     ac_verc_fail=yes
8692   else
8693         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8694 $as_echo_n "checking version of bison... " >&6; }
8695     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8696     case $ac_prog_version in
8697       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8698       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8699          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8700       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8701     esac
8702     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8703 $as_echo "$ac_prog_version" >&6; }
8704   fi
8705   if test $ac_verc_fail = yes; then
8706     INTLBISON=:
8707   fi
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8725 $as_echo_n "checking whether NLS is requested... " >&6; }
8726     # Check whether --enable-nls was given.
8727 if test "${enable_nls+set}" = set; then :
8728   enableval=$enable_nls; USE_NLS=$enableval
8729 else
8730   USE_NLS=yes
8731 fi
8732
8733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8734 $as_echo "$USE_NLS" >&6; }
8735
8736
8737
8738
8739     BUILD_INCLUDED_LIBINTL=no
8740     USE_INCLUDED_LIBINTL=no
8741
8742   LIBINTL=
8743   LTLIBINTL=
8744   POSUB=
8745
8746     if test "$USE_NLS" = "yes"; then
8747     gt_use_preinstalled_gnugettext=no
8748
8749       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8750 $as_echo_n "checking whether included gettext is requested... " >&6; }
8751
8752 # Check whether --with-included-gettext was given.
8753 if test "${with_included_gettext+set}" = set; then :
8754   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8755 else
8756   nls_cv_force_use_gnu_gettext=no
8757 fi
8758
8759       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8760 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8761
8762       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8763       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8764
8765
8766
8767
8768
8769
8770         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8771 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8772 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
8773   $as_echo_n "(cached) " >&6
8774 else
8775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8776 /* end confdefs.h.  */
8777 #include <libintl.h>
8778 extern int _nl_msg_cat_cntr;
8779 extern int *_nl_domain_bindings;
8780 int
8781 main ()
8782 {
8783 bindtextdomain ("", "");
8784 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8785   ;
8786   return 0;
8787 }
8788 _ACEOF
8789 if ac_fn_c_try_link "$LINENO"; then :
8790   gt_cv_func_gnugettext1_libc=yes
8791 else
8792   gt_cv_func_gnugettext1_libc=no
8793 fi
8794 rm -f core conftest.err conftest.$ac_objext \
8795     conftest$ac_exeext conftest.$ac_ext
8796 fi
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8798 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8799
8800         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8801
8802
8803
8804     use_additional=yes
8805
8806   acl_save_prefix="$prefix"
8807   prefix="$acl_final_prefix"
8808   acl_save_exec_prefix="$exec_prefix"
8809   exec_prefix="$acl_final_exec_prefix"
8810
8811     eval additional_includedir=\"$includedir\"
8812     eval additional_libdir=\"$libdir\"
8813
8814   exec_prefix="$acl_save_exec_prefix"
8815   prefix="$acl_save_prefix"
8816
8817
8818 # Check whether --with-libintl-prefix was given.
8819 if test "${with_libintl_prefix+set}" = set; then :
8820   withval=$with_libintl_prefix;
8821     if test "X$withval" = "Xno"; then
8822       use_additional=no
8823     else
8824       if test "X$withval" = "X"; then
8825
8826   acl_save_prefix="$prefix"
8827   prefix="$acl_final_prefix"
8828   acl_save_exec_prefix="$exec_prefix"
8829   exec_prefix="$acl_final_exec_prefix"
8830
8831           eval additional_includedir=\"$includedir\"
8832           eval additional_libdir=\"$libdir\"
8833
8834   exec_prefix="$acl_save_exec_prefix"
8835   prefix="$acl_save_prefix"
8836
8837       else
8838         additional_includedir="$withval/include"
8839         additional_libdir="$withval/lib"
8840       fi
8841     fi
8842
8843 fi
8844
8845       LIBINTL=
8846   LTLIBINTL=
8847   INCINTL=
8848   rpathdirs=
8849   ltrpathdirs=
8850   names_already_handled=
8851   names_next_round='intl '
8852   while test -n "$names_next_round"; do
8853     names_this_round="$names_next_round"
8854     names_next_round=
8855     for name in $names_this_round; do
8856       already_handled=
8857       for n in $names_already_handled; do
8858         if test "$n" = "$name"; then
8859           already_handled=yes
8860           break
8861         fi
8862       done
8863       if test -z "$already_handled"; then
8864         names_already_handled="$names_already_handled $name"
8865                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8866         eval value=\"\$HAVE_LIB$uppername\"
8867         if test -n "$value"; then
8868           if test "$value" = yes; then
8869             eval value=\"\$LIB$uppername\"
8870             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8871             eval value=\"\$LTLIB$uppername\"
8872             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8873           else
8874                                     :
8875           fi
8876         else
8877                               found_dir=
8878           found_la=
8879           found_so=
8880           found_a=
8881           if test $use_additional = yes; then
8882             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8883               found_dir="$additional_libdir"
8884               found_so="$additional_libdir/lib$name.$shlibext"
8885               if test -f "$additional_libdir/lib$name.la"; then
8886                 found_la="$additional_libdir/lib$name.la"
8887               fi
8888             else
8889               if test -f "$additional_libdir/lib$name.$libext"; then
8890                 found_dir="$additional_libdir"
8891                 found_a="$additional_libdir/lib$name.$libext"
8892                 if test -f "$additional_libdir/lib$name.la"; then
8893                   found_la="$additional_libdir/lib$name.la"
8894                 fi
8895               fi
8896             fi
8897           fi
8898           if test "X$found_dir" = "X"; then
8899             for x in $LDFLAGS $LTLIBINTL; do
8900
8901   acl_save_prefix="$prefix"
8902   prefix="$acl_final_prefix"
8903   acl_save_exec_prefix="$exec_prefix"
8904   exec_prefix="$acl_final_exec_prefix"
8905   eval x=\"$x\"
8906   exec_prefix="$acl_save_exec_prefix"
8907   prefix="$acl_save_prefix"
8908
8909               case "$x" in
8910                 -L*)
8911                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8912                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8913                     found_dir="$dir"
8914                     found_so="$dir/lib$name.$shlibext"
8915                     if test -f "$dir/lib$name.la"; then
8916                       found_la="$dir/lib$name.la"
8917                     fi
8918                   else
8919                     if test -f "$dir/lib$name.$libext"; then
8920                       found_dir="$dir"
8921                       found_a="$dir/lib$name.$libext"
8922                       if test -f "$dir/lib$name.la"; then
8923                         found_la="$dir/lib$name.la"
8924                       fi
8925                     fi
8926                   fi
8927                   ;;
8928               esac
8929               if test "X$found_dir" != "X"; then
8930                 break
8931               fi
8932             done
8933           fi
8934           if test "X$found_dir" != "X"; then
8935                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8936             if test "X$found_so" != "X"; then
8937                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8938                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8939               else
8940                                                                                 haveit=
8941                 for x in $ltrpathdirs; do
8942                   if test "X$x" = "X$found_dir"; then
8943                     haveit=yes
8944                     break
8945                   fi
8946                 done
8947                 if test -z "$haveit"; then
8948                   ltrpathdirs="$ltrpathdirs $found_dir"
8949                 fi
8950                                 if test "$hardcode_direct" = yes; then
8951                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8952                 else
8953                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8954                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8955                                                             haveit=
8956                     for x in $rpathdirs; do
8957                       if test "X$x" = "X$found_dir"; then
8958                         haveit=yes
8959                         break
8960                       fi
8961                     done
8962                     if test -z "$haveit"; then
8963                       rpathdirs="$rpathdirs $found_dir"
8964                     fi
8965                   else
8966                                                                                 haveit=
8967                     for x in $LDFLAGS $LIBINTL; do
8968
8969   acl_save_prefix="$prefix"
8970   prefix="$acl_final_prefix"
8971   acl_save_exec_prefix="$exec_prefix"
8972   exec_prefix="$acl_final_exec_prefix"
8973   eval x=\"$x\"
8974   exec_prefix="$acl_save_exec_prefix"
8975   prefix="$acl_save_prefix"
8976
8977                       if test "X$x" = "X-L$found_dir"; then
8978                         haveit=yes
8979                         break
8980                       fi
8981                     done
8982                     if test -z "$haveit"; then
8983                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8984                     fi
8985                     if test "$hardcode_minus_L" != no; then
8986                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8987                     else
8988                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8989                     fi
8990                   fi
8991                 fi
8992               fi
8993             else
8994               if test "X$found_a" != "X"; then
8995                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8996               else
8997                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8998               fi
8999             fi
9000                         additional_includedir=
9001             case "$found_dir" in
9002               */lib | */lib/)
9003                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9004                 additional_includedir="$basedir/include"
9005                 ;;
9006             esac
9007             if test "X$additional_includedir" != "X"; then
9008                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9009                 haveit=
9010                 if test "X$additional_includedir" = "X/usr/local/include"; then
9011                   if test -n "$GCC"; then
9012                     case $host_os in
9013                       linux*) haveit=yes;;
9014                     esac
9015                   fi
9016                 fi
9017                 if test -z "$haveit"; then
9018                   for x in $CPPFLAGS $INCINTL; do
9019
9020   acl_save_prefix="$prefix"
9021   prefix="$acl_final_prefix"
9022   acl_save_exec_prefix="$exec_prefix"
9023   exec_prefix="$acl_final_exec_prefix"
9024   eval x=\"$x\"
9025   exec_prefix="$acl_save_exec_prefix"
9026   prefix="$acl_save_prefix"
9027
9028                     if test "X$x" = "X-I$additional_includedir"; then
9029                       haveit=yes
9030                       break
9031                     fi
9032                   done
9033                   if test -z "$haveit"; then
9034                     if test -d "$additional_includedir"; then
9035                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9036                     fi
9037                   fi
9038                 fi
9039               fi
9040             fi
9041                         if test -n "$found_la"; then
9042                                                         save_libdir="$libdir"
9043               case "$found_la" in
9044                 */* | *\\*) . "$found_la" ;;
9045                 *) . "./$found_la" ;;
9046               esac
9047               libdir="$save_libdir"
9048                             for dep in $dependency_libs; do
9049                 case "$dep" in
9050                   -L*)
9051                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9052                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9053                       haveit=
9054                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9055                         if test -n "$GCC"; then
9056                           case $host_os in
9057                             linux*) haveit=yes;;
9058                           esac
9059                         fi
9060                       fi
9061                       if test -z "$haveit"; then
9062                         haveit=
9063                         for x in $LDFLAGS $LIBINTL; do
9064
9065   acl_save_prefix="$prefix"
9066   prefix="$acl_final_prefix"
9067   acl_save_exec_prefix="$exec_prefix"
9068   exec_prefix="$acl_final_exec_prefix"
9069   eval x=\"$x\"
9070   exec_prefix="$acl_save_exec_prefix"
9071   prefix="$acl_save_prefix"
9072
9073                           if test "X$x" = "X-L$additional_libdir"; then
9074                             haveit=yes
9075                             break
9076                           fi
9077                         done
9078                         if test -z "$haveit"; then
9079                           if test -d "$additional_libdir"; then
9080                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9081                           fi
9082                         fi
9083                         haveit=
9084                         for x in $LDFLAGS $LTLIBINTL; do
9085
9086   acl_save_prefix="$prefix"
9087   prefix="$acl_final_prefix"
9088   acl_save_exec_prefix="$exec_prefix"
9089   exec_prefix="$acl_final_exec_prefix"
9090   eval x=\"$x\"
9091   exec_prefix="$acl_save_exec_prefix"
9092   prefix="$acl_save_prefix"
9093
9094                           if test "X$x" = "X-L$additional_libdir"; then
9095                             haveit=yes
9096                             break
9097                           fi
9098                         done
9099                         if test -z "$haveit"; then
9100                           if test -d "$additional_libdir"; then
9101                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9102                           fi
9103                         fi
9104                       fi
9105                     fi
9106                     ;;
9107                   -R*)
9108                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9109                     if test "$enable_rpath" != no; then
9110                                                                   haveit=
9111                       for x in $rpathdirs; do
9112                         if test "X$x" = "X$dir"; then
9113                           haveit=yes
9114                           break
9115                         fi
9116                       done
9117                       if test -z "$haveit"; then
9118                         rpathdirs="$rpathdirs $dir"
9119                       fi
9120                                                                   haveit=
9121                       for x in $ltrpathdirs; do
9122                         if test "X$x" = "X$dir"; then
9123                           haveit=yes
9124                           break
9125                         fi
9126                       done
9127                       if test -z "$haveit"; then
9128                         ltrpathdirs="$ltrpathdirs $dir"
9129                       fi
9130                     fi
9131                     ;;
9132                   -l*)
9133                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9134                     ;;
9135                   *.la)
9136                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9137                     ;;
9138                   *)
9139                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9140                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9141                     ;;
9142                 esac
9143               done
9144             fi
9145           else
9146                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9147             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9148           fi
9149         fi
9150       fi
9151     done
9152   done
9153   if test "X$rpathdirs" != "X"; then
9154     if test -n "$hardcode_libdir_separator"; then
9155                         alldirs=
9156       for found_dir in $rpathdirs; do
9157         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9158       done
9159             acl_save_libdir="$libdir"
9160       libdir="$alldirs"
9161       eval flag=\"$hardcode_libdir_flag_spec\"
9162       libdir="$acl_save_libdir"
9163       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9164     else
9165             for found_dir in $rpathdirs; do
9166         acl_save_libdir="$libdir"
9167         libdir="$found_dir"
9168         eval flag=\"$hardcode_libdir_flag_spec\"
9169         libdir="$acl_save_libdir"
9170         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9171       done
9172     fi
9173   fi
9174   if test "X$ltrpathdirs" != "X"; then
9175             for found_dir in $ltrpathdirs; do
9176       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9177     done
9178   fi
9179
9180           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9181 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9182 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
9183   $as_echo_n "(cached) " >&6
9184 else
9185   gt_save_CPPFLAGS="$CPPFLAGS"
9186             CPPFLAGS="$CPPFLAGS $INCINTL"
9187             gt_save_LIBS="$LIBS"
9188             LIBS="$LIBS $LIBINTL"
9189                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190 /* end confdefs.h.  */
9191 #include <libintl.h>
9192 extern int _nl_msg_cat_cntr;
9193 extern
9194 #ifdef __cplusplus
9195 "C"
9196 #endif
9197 const char *_nl_expand_alias ();
9198 int
9199 main ()
9200 {
9201 bindtextdomain ("", "");
9202 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9203   ;
9204   return 0;
9205 }
9206 _ACEOF
9207 if ac_fn_c_try_link "$LINENO"; then :
9208   gt_cv_func_gnugettext1_libintl=yes
9209 else
9210   gt_cv_func_gnugettext1_libintl=no
9211 fi
9212 rm -f core conftest.err conftest.$ac_objext \
9213     conftest$ac_exeext conftest.$ac_ext
9214                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9215               LIBS="$LIBS $LIBICONV"
9216               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9217 /* end confdefs.h.  */
9218 #include <libintl.h>
9219 extern int _nl_msg_cat_cntr;
9220 extern
9221 #ifdef __cplusplus
9222 "C"
9223 #endif
9224 const char *_nl_expand_alias ();
9225 int
9226 main ()
9227 {
9228 bindtextdomain ("", "");
9229 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9230   ;
9231   return 0;
9232 }
9233 _ACEOF
9234 if ac_fn_c_try_link "$LINENO"; then :
9235   LIBINTL="$LIBINTL $LIBICONV"
9236                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9237                 gt_cv_func_gnugettext1_libintl=yes
9238
9239 fi
9240 rm -f core conftest.err conftest.$ac_objext \
9241     conftest$ac_exeext conftest.$ac_ext
9242             fi
9243             CPPFLAGS="$gt_save_CPPFLAGS"
9244             LIBS="$gt_save_LIBS"
9245 fi
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9247 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9248         fi
9249
9250                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9251            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9252                 && test "$PACKAGE" != gettext-runtime \
9253                 && test "$PACKAGE" != gettext-tools; }; then
9254           gt_use_preinstalled_gnugettext=yes
9255         else
9256                     LIBINTL=
9257           LTLIBINTL=
9258           INCINTL=
9259         fi
9260
9261
9262         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9263                               nls_cv_use_gnu_gettext=yes
9264         fi
9265       fi
9266
9267       if test "$nls_cv_use_gnu_gettext" = "yes"; then
9268                 BUILD_INCLUDED_LIBINTL=yes
9269         USE_INCLUDED_LIBINTL=yes
9270         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9271         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9272         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9273       fi
9274
9275       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9276          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9277                 CATOBJEXT=.gmo
9278       fi
9279
9280
9281     if test "$gt_use_preinstalled_gnugettext" = "yes" \
9282        || test "$nls_cv_use_gnu_gettext" = "yes"; then
9283
9284 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9285
9286     else
9287       USE_NLS=no
9288     fi
9289   fi
9290
9291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9292 $as_echo_n "checking whether to use NLS... " >&6; }
9293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9294 $as_echo "$USE_NLS" >&6; }
9295   if test "$USE_NLS" = "yes"; then
9296     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9297 $as_echo_n "checking where the gettext function comes from... " >&6; }
9298     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9299       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9300         gt_source="external libintl"
9301       else
9302         gt_source="libc"
9303       fi
9304     else
9305       gt_source="included intl directory"
9306     fi
9307     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9308 $as_echo "$gt_source" >&6; }
9309   fi
9310
9311   if test "$USE_NLS" = "yes"; then
9312
9313     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9314       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9315         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9316 $as_echo_n "checking how to link with libintl... " >&6; }
9317         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9318 $as_echo "$LIBINTL" >&6; }
9319
9320   for element in $INCINTL; do
9321     haveit=
9322     for x in $CPPFLAGS; do
9323
9324   acl_save_prefix="$prefix"
9325   prefix="$acl_final_prefix"
9326   acl_save_exec_prefix="$exec_prefix"
9327   exec_prefix="$acl_final_exec_prefix"
9328   eval x=\"$x\"
9329   exec_prefix="$acl_save_exec_prefix"
9330   prefix="$acl_save_prefix"
9331
9332       if test "X$x" = "X$element"; then
9333         haveit=yes
9334         break
9335       fi
9336     done
9337     if test -z "$haveit"; then
9338       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9339     fi
9340   done
9341
9342       fi
9343
9344
9345 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9346
9347
9348 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9349
9350     fi
9351
9352         POSUB=po
9353   fi
9354
9355
9356             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9357       BUILD_INCLUDED_LIBINTL=yes
9358     fi
9359
9360
9361
9362
9363
9364         nls_cv_header_intl=
9365     nls_cv_header_libgt=
9366
9367         DATADIRNAME=share
9368
9369
9370         INSTOBJEXT=.mo
9371
9372
9373         GENCAT=gencat
9374
9375
9376         if test "$USE_INCLUDED_LIBINTL" = yes; then
9377       INTLOBJS="\$(GETTOBJS)"
9378     fi
9379
9380
9381         INTL_LIBTOOL_SUFFIX_PREFIX=
9382
9383
9384
9385     INTLLIBS="$LIBINTL"
9386
9387
9388
9389
9390
9391
9392
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9394 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9395 set x ${MAKE-make}
9396 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9397 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9398   $as_echo_n "(cached) " >&6
9399 else
9400   cat >conftest.make <<\_ACEOF
9401 SHELL = /bin/sh
9402 all:
9403         @echo '@@@%%%=$(MAKE)=@@@%%%'
9404 _ACEOF
9405 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9406 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9407   *@@@%%%=?*=@@@%%%*)
9408     eval ac_cv_prog_make_${ac_make}_set=yes;;
9409   *)
9410     eval ac_cv_prog_make_${ac_make}_set=no;;
9411 esac
9412 rm -f conftest.make
9413 fi
9414 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9416 $as_echo "yes" >&6; }
9417   SET_MAKE=
9418 else
9419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9420 $as_echo "no" >&6; }
9421   SET_MAKE="MAKE=${MAKE-make}"
9422 fi
9423
9424  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9425 $as_echo_n "checking for GNU make... " >&6; }
9426 if test "${_cv_gnu_make_command+set}" = set; then :
9427   $as_echo_n "(cached) " >&6
9428 else
9429   _cv_gnu_make_command='' ;
9430                 for a in "$MAKE" make gmake gnumake ; do
9431                         if test -z "$a" ; then continue ; fi ;
9432                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
9433                                 _cv_gnu_make_command=$a ;
9434                                 break;
9435                         fi
9436                 done ;
9437
9438 fi
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9440 $as_echo "$_cv_gnu_make_command" >&6; } ;
9441         if test  "x$_cv_gnu_make_command" != "x"  ; then
9442                 ifGNUmake='' ;
9443                 ifNotGNUmake='#' ;
9444         else
9445                 ifGNUmake='#' ;
9446                 ifNotGNUmake='' ;
9447                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9448 $as_echo "\"Not found\"" >&6; };
9449         fi
9450
9451
9452
9453 # Extract the first word of "ln", so it can be a program name with args.
9454 set dummy ln; ac_word=$2
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9456 $as_echo_n "checking for $ac_word... " >&6; }
9457 if test "${ac_cv_path_LN+set}" = set; then :
9458   $as_echo_n "(cached) " >&6
9459 else
9460   case $LN in
9461   [\\/]* | ?:[\\/]*)
9462   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9463   ;;
9464   *)
9465   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9466 for as_dir in $PATH
9467 do
9468   IFS=$as_save_IFS
9469   test -z "$as_dir" && as_dir=.
9470     for ac_exec_ext in '' $ac_executable_extensions; do
9471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9472     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9474     break 2
9475   fi
9476 done
9477   done
9478 IFS=$as_save_IFS
9479
9480   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9481   ;;
9482 esac
9483 fi
9484 LN=$ac_cv_path_LN
9485 if test -n "$LN"; then
9486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9487 $as_echo "$LN" >&6; }
9488 else
9489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9490 $as_echo "no" >&6; }
9491 fi
9492
9493
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9495 $as_echo_n "checking whether ln -s works... " >&6; }
9496 LN_S=$as_ln_s
9497 if test "$LN_S" = "ln -s"; then
9498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9499 $as_echo "yes" >&6; }
9500 else
9501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9502 $as_echo "no, using $LN_S" >&6; }
9503 fi
9504
9505 # Extract the first word of "mv", so it can be a program name with args.
9506 set dummy mv; ac_word=$2
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9508 $as_echo_n "checking for $ac_word... " >&6; }
9509 if test "${ac_cv_path_MV+set}" = set; then :
9510   $as_echo_n "(cached) " >&6
9511 else
9512   case $MV in
9513   [\\/]* | ?:[\\/]*)
9514   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9515   ;;
9516   *)
9517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9518 for as_dir in $PATH
9519 do
9520   IFS=$as_save_IFS
9521   test -z "$as_dir" && as_dir=.
9522     for ac_exec_ext in '' $ac_executable_extensions; do
9523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9524     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9526     break 2
9527   fi
9528 done
9529   done
9530 IFS=$as_save_IFS
9531
9532   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9533   ;;
9534 esac
9535 fi
9536 MV=$ac_cv_path_MV
9537 if test -n "$MV"; then
9538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9539 $as_echo "$MV" >&6; }
9540 else
9541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9542 $as_echo "no" >&6; }
9543 fi
9544
9545
9546 # Extract the first word of "cp", so it can be a program name with args.
9547 set dummy cp; ac_word=$2
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9549 $as_echo_n "checking for $ac_word... " >&6; }
9550 if test "${ac_cv_path_CP+set}" = set; then :
9551   $as_echo_n "(cached) " >&6
9552 else
9553   case $CP in
9554   [\\/]* | ?:[\\/]*)
9555   ac_cv_path_CP="$CP" # Let the user override the test with a path.
9556   ;;
9557   *)
9558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9559 for as_dir in $PATH
9560 do
9561   IFS=$as_save_IFS
9562   test -z "$as_dir" && as_dir=.
9563     for ac_exec_ext in '' $ac_executable_extensions; do
9564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9565     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9567     break 2
9568   fi
9569 done
9570   done
9571 IFS=$as_save_IFS
9572
9573   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9574   ;;
9575 esac
9576 fi
9577 CP=$ac_cv_path_CP
9578 if test -n "$CP"; then
9579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9580 $as_echo "$CP" >&6; }
9581 else
9582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9583 $as_echo "no" >&6; }
9584 fi
9585
9586
9587 # Extract the first word of "rm", so it can be a program name with args.
9588 set dummy rm; ac_word=$2
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9590 $as_echo_n "checking for $ac_word... " >&6; }
9591 if test "${ac_cv_path_RM+set}" = set; then :
9592   $as_echo_n "(cached) " >&6
9593 else
9594   case $RM in
9595   [\\/]* | ?:[\\/]*)
9596   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9597   ;;
9598   *)
9599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9600 for as_dir in $PATH
9601 do
9602   IFS=$as_save_IFS
9603   test -z "$as_dir" && as_dir=.
9604     for ac_exec_ext in '' $ac_executable_extensions; do
9605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9606     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9608     break 2
9609   fi
9610 done
9611   done
9612 IFS=$as_save_IFS
9613
9614   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9615   ;;
9616 esac
9617 fi
9618 RM=$ac_cv_path_RM
9619 if test -n "$RM"; then
9620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9621 $as_echo "$RM" >&6; }
9622 else
9623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9624 $as_echo "no" >&6; }
9625 fi
9626
9627
9628 # Extract the first word of "chmod", so it can be a program name with args.
9629 set dummy chmod; ac_word=$2
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9631 $as_echo_n "checking for $ac_word... " >&6; }
9632 if test "${ac_cv_path_CHMOD+set}" = set; then :
9633   $as_echo_n "(cached) " >&6
9634 else
9635   case $CHMOD in
9636   [\\/]* | ?:[\\/]*)
9637   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9638   ;;
9639   *)
9640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9641 for as_dir in $PATH
9642 do
9643   IFS=$as_save_IFS
9644   test -z "$as_dir" && as_dir=.
9645     for ac_exec_ext in '' $ac_executable_extensions; do
9646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9647     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9649     break 2
9650   fi
9651 done
9652   done
9653 IFS=$as_save_IFS
9654
9655   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9656   ;;
9657 esac
9658 fi
9659 CHMOD=$ac_cv_path_CHMOD
9660 if test -n "$CHMOD"; then
9661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9662 $as_echo "$CHMOD" >&6; }
9663 else
9664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9665 $as_echo "no" >&6; }
9666 fi
9667
9668
9669 for ac_prog in gawk mawk nawk awk
9670 do
9671   # Extract the first word of "$ac_prog", so it can be a program name with args.
9672 set dummy $ac_prog; ac_word=$2
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9674 $as_echo_n "checking for $ac_word... " >&6; }
9675 if test "${ac_cv_prog_AWK+set}" = set; then :
9676   $as_echo_n "(cached) " >&6
9677 else
9678   if test -n "$AWK"; then
9679   ac_cv_prog_AWK="$AWK" # Let the user override the test.
9680 else
9681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682 for as_dir in $PATH
9683 do
9684   IFS=$as_save_IFS
9685   test -z "$as_dir" && as_dir=.
9686     for ac_exec_ext in '' $ac_executable_extensions; do
9687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9688     ac_cv_prog_AWK="$ac_prog"
9689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9690     break 2
9691   fi
9692 done
9693   done
9694 IFS=$as_save_IFS
9695
9696 fi
9697 fi
9698 AWK=$ac_cv_prog_AWK
9699 if test -n "$AWK"; then
9700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9701 $as_echo "$AWK" >&6; }
9702 else
9703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9704 $as_echo "no" >&6; }
9705 fi
9706
9707
9708   test -n "$AWK" && break
9709 done
9710
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9712 $as_echo_n "checking for egrep... " >&6; }
9713 if test "${ac_cv_path_EGREP+set}" = set; then :
9714   $as_echo_n "(cached) " >&6
9715 else
9716   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9717    then ac_cv_path_EGREP="$GREP -E"
9718    else
9719      if test -z "$EGREP"; then
9720   ac_path_EGREP_found=false
9721   # Loop through the user's path and test for each of PROGNAME-LIST
9722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9723 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9724 do
9725   IFS=$as_save_IFS
9726   test -z "$as_dir" && as_dir=.
9727     for ac_prog in egrep; do
9728     for ac_exec_ext in '' $ac_executable_extensions; do
9729       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9730       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
9731 # Check for GNU ac_path_EGREP and select it if it is found.
9732   # Check for GNU $ac_path_EGREP
9733 case `"$ac_path_EGREP" --version 2>&1` in
9734 *GNU*)
9735   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9736 *)
9737   ac_count=0
9738   $as_echo_n 0123456789 >"conftest.in"
9739   while :
9740   do
9741     cat "conftest.in" "conftest.in" >"conftest.tmp"
9742     mv "conftest.tmp" "conftest.in"
9743     cp "conftest.in" "conftest.nl"
9744     $as_echo 'EGREP' >> "conftest.nl"
9745     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9746     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9747     as_fn_arith $ac_count + 1 && ac_count=$as_val
9748     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9749       # Best one so far, save it but keep looking for a better one
9750       ac_cv_path_EGREP="$ac_path_EGREP"
9751       ac_path_EGREP_max=$ac_count
9752     fi
9753     # 10*(2^10) chars as input seems more than enough
9754     test $ac_count -gt 10 && break
9755   done
9756   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9757 esac
9758
9759       $ac_path_EGREP_found && break 3
9760     done
9761   done
9762   done
9763 IFS=$as_save_IFS
9764   if test -z "$ac_cv_path_EGREP"; then
9765     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9766   fi
9767 else
9768   ac_cv_path_EGREP=$EGREP
9769 fi
9770
9771    fi
9772 fi
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9774 $as_echo "$ac_cv_path_EGREP" >&6; }
9775  EGREP="$ac_cv_path_EGREP"
9776
9777
9778 # Extract the first word of "sed", so it can be a program name with args.
9779 set dummy sed; ac_word=$2
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9781 $as_echo_n "checking for $ac_word... " >&6; }
9782 if test "${ac_cv_path_SED+set}" = set; then :
9783   $as_echo_n "(cached) " >&6
9784 else
9785   case $SED in
9786   [\\/]* | ?:[\\/]*)
9787   ac_cv_path_SED="$SED" # Let the user override the test with a path.
9788   ;;
9789   *)
9790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9791 for as_dir in $PATH
9792 do
9793   IFS=$as_save_IFS
9794   test -z "$as_dir" && as_dir=.
9795     for ac_exec_ext in '' $ac_executable_extensions; do
9796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9797     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9799     break 2
9800   fi
9801 done
9802   done
9803 IFS=$as_save_IFS
9804
9805   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9806   ;;
9807 esac
9808 fi
9809 SED=$ac_cv_path_SED
9810 if test -n "$SED"; then
9811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9812 $as_echo "$SED" >&6; }
9813 else
9814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9815 $as_echo "no" >&6; }
9816 fi
9817
9818
9819 # Extract the first word of "perl", so it can be a program name with args.
9820 set dummy perl; ac_word=$2
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9822 $as_echo_n "checking for $ac_word... " >&6; }
9823 if test "${ac_cv_path_PERL+set}" = set; then :
9824   $as_echo_n "(cached) " >&6
9825 else
9826   case $PERL in
9827   [\\/]* | ?:[\\/]*)
9828   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9829   ;;
9830   *)
9831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9832 for as_dir in $PATH
9833 do
9834   IFS=$as_save_IFS
9835   test -z "$as_dir" && as_dir=.
9836     for ac_exec_ext in '' $ac_executable_extensions; do
9837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9838     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9840     break 2
9841   fi
9842 done
9843   done
9844 IFS=$as_save_IFS
9845
9846   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9847   ;;
9848 esac
9849 fi
9850 PERL=$ac_cv_path_PERL
9851 if test -n "$PERL"; then
9852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9853 $as_echo "$PERL" >&6; }
9854 else
9855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9856 $as_echo "no" >&6; }
9857 fi
9858
9859
9860 # Extract the first word of "ldconfig", so it can be a program name with args.
9861 set dummy ldconfig; ac_word=$2
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9863 $as_echo_n "checking for $ac_word... " >&6; }
9864 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
9865   $as_echo_n "(cached) " >&6
9866 else
9867   case $LDCONFIG in
9868   [\\/]* | ?:[\\/]*)
9869   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9870   ;;
9871   *)
9872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873 for as_dir in $PATH
9874 do
9875   IFS=$as_save_IFS
9876   test -z "$as_dir" && as_dir=.
9877     for ac_exec_ext in '' $ac_executable_extensions; do
9878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9879     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
9880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9881     break 2
9882   fi
9883 done
9884   done
9885 IFS=$as_save_IFS
9886
9887   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9888   ;;
9889 esac
9890 fi
9891 LDCONFIG=$ac_cv_path_LDCONFIG
9892 if test -n "$LDCONFIG"; then
9893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
9894 $as_echo "$LDCONFIG" >&6; }
9895 else
9896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9897 $as_echo "no" >&6; }
9898 fi
9899
9900
9901 if test -n "$ac_tool_prefix"; then
9902   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9903 set dummy ${ac_tool_prefix}ar; ac_word=$2
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9905 $as_echo_n "checking for $ac_word... " >&6; }
9906 if test "${ac_cv_prog_AR+set}" = set; then :
9907   $as_echo_n "(cached) " >&6
9908 else
9909   if test -n "$AR"; then
9910   ac_cv_prog_AR="$AR" # Let the user override the test.
9911 else
9912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9913 for as_dir in $PATH
9914 do
9915   IFS=$as_save_IFS
9916   test -z "$as_dir" && as_dir=.
9917     for ac_exec_ext in '' $ac_executable_extensions; do
9918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9919     ac_cv_prog_AR="${ac_tool_prefix}ar"
9920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9921     break 2
9922   fi
9923 done
9924   done
9925 IFS=$as_save_IFS
9926
9927 fi
9928 fi
9929 AR=$ac_cv_prog_AR
9930 if test -n "$AR"; then
9931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9932 $as_echo "$AR" >&6; }
9933 else
9934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9935 $as_echo "no" >&6; }
9936 fi
9937
9938
9939 fi
9940 if test -z "$ac_cv_prog_AR"; then
9941   ac_ct_AR=$AR
9942   # Extract the first word of "ar", so it can be a program name with args.
9943 set dummy ar; ac_word=$2
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9945 $as_echo_n "checking for $ac_word... " >&6; }
9946 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
9947   $as_echo_n "(cached) " >&6
9948 else
9949   if test -n "$ac_ct_AR"; then
9950   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9951 else
9952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9953 for as_dir in $PATH
9954 do
9955   IFS=$as_save_IFS
9956   test -z "$as_dir" && as_dir=.
9957     for ac_exec_ext in '' $ac_executable_extensions; do
9958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9959     ac_cv_prog_ac_ct_AR="ar"
9960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9961     break 2
9962   fi
9963 done
9964   done
9965 IFS=$as_save_IFS
9966
9967 fi
9968 fi
9969 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9970 if test -n "$ac_ct_AR"; then
9971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9972 $as_echo "$ac_ct_AR" >&6; }
9973 else
9974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9975 $as_echo "no" >&6; }
9976 fi
9977
9978   if test "x$ac_ct_AR" = x; then
9979     AR="ar"
9980   else
9981     case $cross_compiling:$ac_tool_warned in
9982 yes:)
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9985 ac_tool_warned=yes ;;
9986 esac
9987     AR=$ac_ct_AR
9988   fi
9989 else
9990   AR="$ac_cv_prog_AR"
9991 fi
9992
9993 if test -n "$ac_tool_prefix"; then
9994   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9995 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9997 $as_echo_n "checking for $ac_word... " >&6; }
9998 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9999   $as_echo_n "(cached) " >&6
10000 else
10001   if test -n "$RANLIB"; then
10002   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10003 else
10004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10005 for as_dir in $PATH
10006 do
10007   IFS=$as_save_IFS
10008   test -z "$as_dir" && as_dir=.
10009     for ac_exec_ext in '' $ac_executable_extensions; do
10010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10011     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10013     break 2
10014   fi
10015 done
10016   done
10017 IFS=$as_save_IFS
10018
10019 fi
10020 fi
10021 RANLIB=$ac_cv_prog_RANLIB
10022 if test -n "$RANLIB"; then
10023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10024 $as_echo "$RANLIB" >&6; }
10025 else
10026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10027 $as_echo "no" >&6; }
10028 fi
10029
10030
10031 fi
10032 if test -z "$ac_cv_prog_RANLIB"; then
10033   ac_ct_RANLIB=$RANLIB
10034   # Extract the first word of "ranlib", so it can be a program name with args.
10035 set dummy ranlib; ac_word=$2
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10037 $as_echo_n "checking for $ac_word... " >&6; }
10038 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10039   $as_echo_n "(cached) " >&6
10040 else
10041   if test -n "$ac_ct_RANLIB"; then
10042   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10043 else
10044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10045 for as_dir in $PATH
10046 do
10047   IFS=$as_save_IFS
10048   test -z "$as_dir" && as_dir=.
10049     for ac_exec_ext in '' $ac_executable_extensions; do
10050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10051     ac_cv_prog_ac_ct_RANLIB="ranlib"
10052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10053     break 2
10054   fi
10055 done
10056   done
10057 IFS=$as_save_IFS
10058
10059 fi
10060 fi
10061 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10062 if test -n "$ac_ct_RANLIB"; then
10063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10064 $as_echo "$ac_ct_RANLIB" >&6; }
10065 else
10066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10067 $as_echo "no" >&6; }
10068 fi
10069
10070   if test "x$ac_ct_RANLIB" = x; then
10071     RANLIB=":"
10072   else
10073     case $cross_compiling:$ac_tool_warned in
10074 yes:)
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10077 ac_tool_warned=yes ;;
10078 esac
10079     RANLIB=$ac_ct_RANLIB
10080   fi
10081 else
10082   RANLIB="$ac_cv_prog_RANLIB"
10083 fi
10084
10085 if test -n "$ac_tool_prefix"; then
10086   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10087 set dummy ${ac_tool_prefix}strip; ac_word=$2
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10089 $as_echo_n "checking for $ac_word... " >&6; }
10090 if test "${ac_cv_prog_STRIP+set}" = set; then :
10091   $as_echo_n "(cached) " >&6
10092 else
10093   if test -n "$STRIP"; then
10094   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10095 else
10096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10097 for as_dir in $PATH
10098 do
10099   IFS=$as_save_IFS
10100   test -z "$as_dir" && as_dir=.
10101     for ac_exec_ext in '' $ac_executable_extensions; do
10102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10103     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10105     break 2
10106   fi
10107 done
10108   done
10109 IFS=$as_save_IFS
10110
10111 fi
10112 fi
10113 STRIP=$ac_cv_prog_STRIP
10114 if test -n "$STRIP"; then
10115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10116 $as_echo "$STRIP" >&6; }
10117 else
10118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10119 $as_echo "no" >&6; }
10120 fi
10121
10122
10123 fi
10124 if test -z "$ac_cv_prog_STRIP"; then
10125   ac_ct_STRIP=$STRIP
10126   # Extract the first word of "strip", so it can be a program name with args.
10127 set dummy strip; ac_word=$2
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10129 $as_echo_n "checking for $ac_word... " >&6; }
10130 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10131   $as_echo_n "(cached) " >&6
10132 else
10133   if test -n "$ac_ct_STRIP"; then
10134   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10135 else
10136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10137 for as_dir in $PATH
10138 do
10139   IFS=$as_save_IFS
10140   test -z "$as_dir" && as_dir=.
10141     for ac_exec_ext in '' $ac_executable_extensions; do
10142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10143     ac_cv_prog_ac_ct_STRIP="strip"
10144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10145     break 2
10146   fi
10147 done
10148   done
10149 IFS=$as_save_IFS
10150
10151 fi
10152 fi
10153 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10154 if test -n "$ac_ct_STRIP"; then
10155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10156 $as_echo "$ac_ct_STRIP" >&6; }
10157 else
10158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10159 $as_echo "no" >&6; }
10160 fi
10161
10162   if test "x$ac_ct_STRIP" = x; then
10163     STRIP=":"
10164   else
10165     case $cross_compiling:$ac_tool_warned in
10166 yes:)
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10169 ac_tool_warned=yes ;;
10170 esac
10171     STRIP=$ac_ct_STRIP
10172   fi
10173 else
10174   STRIP="$ac_cv_prog_STRIP"
10175 fi
10176
10177 # Extract the first word of "makeinfo", so it can be a program name with args.
10178 set dummy makeinfo; ac_word=$2
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10180 $as_echo_n "checking for $ac_word... " >&6; }
10181 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
10182   $as_echo_n "(cached) " >&6
10183 else
10184   if test -n "$MAKEINFO"; then
10185   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10186 else
10187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188 for as_dir in $PATH
10189 do
10190   IFS=$as_save_IFS
10191   test -z "$as_dir" && as_dir=.
10192     for ac_exec_ext in '' $ac_executable_extensions; do
10193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10194     ac_cv_prog_MAKEINFO="makeinfo"
10195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10196     break 2
10197   fi
10198 done
10199   done
10200 IFS=$as_save_IFS
10201
10202 fi
10203 fi
10204 MAKEINFO=$ac_cv_prog_MAKEINFO
10205 if test -n "$MAKEINFO"; then
10206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10207 $as_echo "$MAKEINFO" >&6; }
10208 else
10209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10210 $as_echo "no" >&6; }
10211 fi
10212
10213
10214 if test "_$MAKEINFO" = "_"; then
10215     MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10216 else
10217     case "$MAKEINFO" in
10218       */missing.*)
10219         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10220 *** Makeinfo is missing. Info documentation will not be built." >&5
10221 $as_echo "$as_me: WARNING:
10222 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10223         ;;
10224       *)
10225         ;;
10226     esac
10227 fi
10228
10229
10230 # See if we need a separate native compiler.
10231 if test $cross_compiling = no; then
10232   BUILD_CC="$CC"
10233
10234 else
10235   for ac_prog in gcc cc
10236 do
10237   # Extract the first word of "$ac_prog", so it can be a program name with args.
10238 set dummy $ac_prog; ac_word=$2
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10240 $as_echo_n "checking for $ac_word... " >&6; }
10241 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
10242   $as_echo_n "(cached) " >&6
10243 else
10244   if test -n "$BUILD_CC"; then
10245   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10246 else
10247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10248 for as_dir in $PATH
10249 do
10250   IFS=$as_save_IFS
10251   test -z "$as_dir" && as_dir=.
10252     for ac_exec_ext in '' $ac_executable_extensions; do
10253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10254     ac_cv_prog_BUILD_CC="$ac_prog"
10255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10256     break 2
10257   fi
10258 done
10259   done
10260 IFS=$as_save_IFS
10261
10262 fi
10263 fi
10264 BUILD_CC=$ac_cv_prog_BUILD_CC
10265 if test -n "$BUILD_CC"; then
10266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10267 $as_echo "$BUILD_CC" >&6; }
10268 else
10269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10270 $as_echo "no" >&6; }
10271 fi
10272
10273
10274   test -n "$BUILD_CC" && break
10275 done
10276
10277 fi
10278 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
10279 do :
10280   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10281 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10282 eval as_val=\$$as_ac_Header
10283    if test "x$as_val" = x""yes; then :
10284   cat >>confdefs.h <<_ACEOF
10285 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10286 _ACEOF
10287
10288 fi
10289
10290 done
10291
10292 for ac_header in sys/disk.h sys/mount.h
10293 do :
10294   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10295 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10296 #if HAVE_SYS_QUEUE_H
10297 #include <sys/queue.h>
10298 #endif
10299
10300 "
10301 eval as_val=\$$as_ac_Header
10302    if test "x$as_val" = x""yes; then :
10303   cat >>confdefs.h <<_ACEOF
10304 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10305 _ACEOF
10306
10307 fi
10308
10309 done
10310
10311 for ac_header in net/if.h
10312 do :
10313   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10314 #if HAVE_SYS_TYPES_H
10315 #include <sys/types.h>
10316 #endif
10317 #if HAVE_SYS_SOCKET
10318 #include <sys/socket.h>
10319 #endif
10320
10321 "
10322 if test "x$ac_cv_header_net_if_h" = x""yes; then :
10323   cat >>confdefs.h <<_ACEOF
10324 #define HAVE_NET_IF_H 1
10325 _ACEOF
10326
10327 fi
10328
10329 done
10330
10331 for ac_func in vprintf
10332 do :
10333   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10334 if test "x$ac_cv_func_vprintf" = x""yes; then :
10335   cat >>confdefs.h <<_ACEOF
10336 #define HAVE_VPRINTF 1
10337 _ACEOF
10338
10339 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10340 if test "x$ac_cv_func__doprnt" = x""yes; then :
10341
10342 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10343
10344 fi
10345
10346 fi
10347 done
10348
10349
10350 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10351 "
10352 if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then :
10353
10354 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10355
10356 fi
10357
10358 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10359 "
10360 if test "x$ac_cv_type_ssize_t" = x""yes; then :
10361
10362 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10363
10364 fi
10365
10366 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10367 "
10368 if test "x$ac_cv_have_decl_llseek" = x""yes; then :
10369
10370 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10371
10372 fi
10373
10374 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10375                  #define _LARGEFILE64_SOURCE
10376                  #include <unistd.h>
10377 "
10378 if test "x$ac_cv_have_decl_lseek64" = x""yes; then :
10379
10380 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10381
10382 fi
10383
10384 # The cast to long int works around a bug in the HP C Compiler
10385 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10386 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10387 # This bug is HP SR number 8606223364.
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10389 $as_echo_n "checking size of short... " >&6; }
10390 if test "${ac_cv_sizeof_short+set}" = set; then :
10391   $as_echo_n "(cached) " >&6
10392 else
10393   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
10394
10395 else
10396   if test "$ac_cv_type_short" = yes; then
10397      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10399 { as_fn_set_status 77
10400 as_fn_error "cannot compute sizeof (short)
10401 See \`config.log' for more details." "$LINENO" 5; }; }
10402    else
10403      ac_cv_sizeof_short=0
10404    fi
10405 fi
10406
10407 fi
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10409 $as_echo "$ac_cv_sizeof_short" >&6; }
10410
10411
10412
10413 cat >>confdefs.h <<_ACEOF
10414 #define SIZEOF_SHORT $ac_cv_sizeof_short
10415 _ACEOF
10416
10417
10418 # The cast to long int works around a bug in the HP C Compiler
10419 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10420 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10421 # This bug is HP SR number 8606223364.
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10423 $as_echo_n "checking size of int... " >&6; }
10424 if test "${ac_cv_sizeof_int+set}" = set; then :
10425   $as_echo_n "(cached) " >&6
10426 else
10427   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
10428
10429 else
10430   if test "$ac_cv_type_int" = yes; then
10431      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10433 { as_fn_set_status 77
10434 as_fn_error "cannot compute sizeof (int)
10435 See \`config.log' for more details." "$LINENO" 5; }; }
10436    else
10437      ac_cv_sizeof_int=0
10438    fi
10439 fi
10440
10441 fi
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10443 $as_echo "$ac_cv_sizeof_int" >&6; }
10444
10445
10446
10447 cat >>confdefs.h <<_ACEOF
10448 #define SIZEOF_INT $ac_cv_sizeof_int
10449 _ACEOF
10450
10451
10452 # The cast to long int works around a bug in the HP C Compiler
10453 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10454 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10455 # This bug is HP SR number 8606223364.
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10457 $as_echo_n "checking size of long... " >&6; }
10458 if test "${ac_cv_sizeof_long+set}" = set; then :
10459   $as_echo_n "(cached) " >&6
10460 else
10461   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
10462
10463 else
10464   if test "$ac_cv_type_long" = yes; then
10465      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10467 { as_fn_set_status 77
10468 as_fn_error "cannot compute sizeof (long)
10469 See \`config.log' for more details." "$LINENO" 5; }; }
10470    else
10471      ac_cv_sizeof_long=0
10472    fi
10473 fi
10474
10475 fi
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10477 $as_echo "$ac_cv_sizeof_long" >&6; }
10478
10479
10480
10481 cat >>confdefs.h <<_ACEOF
10482 #define SIZEOF_LONG $ac_cv_sizeof_long
10483 _ACEOF
10484
10485
10486 # The cast to long int works around a bug in the HP C Compiler
10487 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10488 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10489 # This bug is HP SR number 8606223364.
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10491 $as_echo_n "checking size of long long... " >&6; }
10492 if test "${ac_cv_sizeof_long_long+set}" = set; then :
10493   $as_echo_n "(cached) " >&6
10494 else
10495   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
10496
10497 else
10498   if test "$ac_cv_type_long_long" = yes; then
10499      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10501 { as_fn_set_status 77
10502 as_fn_error "cannot compute sizeof (long long)
10503 See \`config.log' for more details." "$LINENO" 5; }; }
10504    else
10505      ac_cv_sizeof_long_long=0
10506    fi
10507 fi
10508
10509 fi
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10511 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10512
10513
10514
10515 cat >>confdefs.h <<_ACEOF
10516 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10517 _ACEOF
10518
10519
10520 SIZEOF_SHORT=$ac_cv_sizeof_short
10521 SIZEOF_INT=$ac_cv_sizeof_int
10522 SIZEOF_LONG=$ac_cv_sizeof_long
10523 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10524
10525
10526
10527
10528  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10529 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10530 if test "${ac_cv_c_bigendian+set}" = set; then :
10531   $as_echo_n "(cached) " >&6
10532 else
10533   ac_cv_c_bigendian=unknown
10534     # See if we're dealing with a universal compiler.
10535     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10536 /* end confdefs.h.  */
10537 #ifndef __APPLE_CC__
10538                not a universal capable compiler
10539              #endif
10540              typedef int dummy;
10541
10542 _ACEOF
10543 if ac_fn_c_try_compile "$LINENO"; then :
10544
10545         # Check for potential -arch flags.  It is not universal unless
10546         # there are at least two -arch flags with different values.
10547         ac_arch=
10548         ac_prev=
10549         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10550          if test -n "$ac_prev"; then
10551            case $ac_word in
10552              i?86 | x86_64 | ppc | ppc64)
10553                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10554                  ac_arch=$ac_word
10555                else
10556                  ac_cv_c_bigendian=universal
10557                  break
10558                fi
10559                ;;
10560            esac
10561            ac_prev=
10562          elif test "x$ac_word" = "x-arch"; then
10563            ac_prev=arch
10564          fi
10565        done
10566 fi
10567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10568     if test $ac_cv_c_bigendian = unknown; then
10569       # See if sys/param.h defines the BYTE_ORDER macro.
10570       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10571 /* end confdefs.h.  */
10572 #include <sys/types.h>
10573              #include <sys/param.h>
10574
10575 int
10576 main ()
10577 {
10578 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10579                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10580                      && LITTLE_ENDIAN)
10581               bogus endian macros
10582              #endif
10583
10584   ;
10585   return 0;
10586 }
10587 _ACEOF
10588 if ac_fn_c_try_compile "$LINENO"; then :
10589   # It does; now see whether it defined to BIG_ENDIAN or not.
10590          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10591 /* end confdefs.h.  */
10592 #include <sys/types.h>
10593                 #include <sys/param.h>
10594
10595 int
10596 main ()
10597 {
10598 #if BYTE_ORDER != BIG_ENDIAN
10599                  not big endian
10600                 #endif
10601
10602   ;
10603   return 0;
10604 }
10605 _ACEOF
10606 if ac_fn_c_try_compile "$LINENO"; then :
10607   ac_cv_c_bigendian=yes
10608 else
10609   ac_cv_c_bigendian=no
10610 fi
10611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10612 fi
10613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10614     fi
10615     if test $ac_cv_c_bigendian = unknown; then
10616       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10617       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10618 /* end confdefs.h.  */
10619 #include <limits.h>
10620
10621 int
10622 main ()
10623 {
10624 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10625               bogus endian macros
10626              #endif
10627
10628   ;
10629   return 0;
10630 }
10631 _ACEOF
10632 if ac_fn_c_try_compile "$LINENO"; then :
10633   # It does; now see whether it defined to _BIG_ENDIAN or not.
10634          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10635 /* end confdefs.h.  */
10636 #include <limits.h>
10637
10638 int
10639 main ()
10640 {
10641 #ifndef _BIG_ENDIAN
10642                  not big endian
10643                 #endif
10644
10645   ;
10646   return 0;
10647 }
10648 _ACEOF
10649 if ac_fn_c_try_compile "$LINENO"; then :
10650   ac_cv_c_bigendian=yes
10651 else
10652   ac_cv_c_bigendian=no
10653 fi
10654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10655 fi
10656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10657     fi
10658     if test $ac_cv_c_bigendian = unknown; then
10659       # Compile a test program.
10660       if test "$cross_compiling" = yes; then :
10661   # Try to guess by grepping values from an object file.
10662          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10663 /* end confdefs.h.  */
10664 short int ascii_mm[] =
10665                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10666                 short int ascii_ii[] =
10667                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10668                 int use_ascii (int i) {
10669                   return ascii_mm[i] + ascii_ii[i];
10670                 }
10671                 short int ebcdic_ii[] =
10672                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10673                 short int ebcdic_mm[] =
10674                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10675                 int use_ebcdic (int i) {
10676                   return ebcdic_mm[i] + ebcdic_ii[i];
10677                 }
10678                 extern int foo;
10679
10680 int
10681 main ()
10682 {
10683 return use_ascii (foo) == use_ebcdic (foo);
10684   ;
10685   return 0;
10686 }
10687 _ACEOF
10688 if ac_fn_c_try_compile "$LINENO"; then :
10689   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10690               ac_cv_c_bigendian=yes
10691             fi
10692             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10693               if test "$ac_cv_c_bigendian" = unknown; then
10694                 ac_cv_c_bigendian=no
10695               else
10696                 # finding both strings is unlikely to happen, but who knows?
10697                 ac_cv_c_bigendian=unknown
10698               fi
10699             fi
10700 fi
10701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10702 else
10703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704 /* end confdefs.h.  */
10705 $ac_includes_default
10706 int
10707 main ()
10708 {
10709
10710              /* Are we little or big endian?  From Harbison&Steele.  */
10711              union
10712              {
10713                long int l;
10714                char c[sizeof (long int)];
10715              } u;
10716              u.l = 1;
10717              return u.c[sizeof (long int) - 1] == 1;
10718
10719   ;
10720   return 0;
10721 }
10722 _ACEOF
10723 if ac_fn_c_try_run "$LINENO"; then :
10724   ac_cv_c_bigendian=no
10725 else
10726   ac_cv_c_bigendian=yes
10727 fi
10728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10729   conftest.$ac_objext conftest.beam conftest.$ac_ext
10730 fi
10731
10732     fi
10733 fi
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10735 $as_echo "$ac_cv_c_bigendian" >&6; }
10736  case $ac_cv_c_bigendian in #(
10737    yes)
10738      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10739 ;; #(
10740    no)
10741       ;; #(
10742    universal)
10743
10744 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10745
10746      ;; #(
10747    *)
10748      as_fn_error "unknown endianness
10749  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10750  esac
10751
10752 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10753 ASM_TYPES_HEADER=./asm_types.h
10754
10755 echo "/* These defines are needed for the public ext2fs.h header file */" \
10756      > public_config.h
10757 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10758   uniq tmp_config.$$ >> public_config.h
10759 else
10760   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10761 fi
10762 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10763   uniq tmp_config.$$ >> public_config.h
10764 else
10765   echo "#undef WORDS_BIGENDIAN" >> public_config.h
10766 fi
10767 rm -f tmp_config.$$
10768 PUBLIC_CONFIG_HEADER=./public_config.h
10769
10770 for ac_header in inttypes.h
10771 do :
10772   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10773 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
10774   cat >>confdefs.h <<_ACEOF
10775 #define HAVE_INTTYPES_H 1
10776 _ACEOF
10777
10778 fi
10779
10780 done
10781
10782 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10783 if test "x$ac_cv_type_intptr_t" = x""yes; then :
10784
10785 cat >>confdefs.h <<_ACEOF
10786 #define HAVE_INTPTR_T 1
10787 _ACEOF
10788
10789
10790 fi
10791
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10793 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10794 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then :
10795   $as_echo_n "(cached) " >&6
10796 else
10797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10798 /* end confdefs.h.  */
10799 #include <sys/stat.h>
10800 int
10801 main ()
10802 {
10803 struct stat stat; stat.st_flags = 0;
10804   ;
10805   return 0;
10806 }
10807 _ACEOF
10808 if ac_fn_c_try_compile "$LINENO"; then :
10809   e2fsprogs_cv_struct_st_flags=yes
10810 else
10811   e2fsprogs_cv_struct_st_flags=no
10812 fi
10813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10814 fi
10815
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10817 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10818 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10820 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10821   if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then :
10822   $as_echo_n "(cached) " >&6
10823 else
10824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h.  */
10826 #include <sys/stat.h>
10827 int
10828 main ()
10829 {
10830 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
10831   ;
10832   return 0;
10833 }
10834 _ACEOF
10835 if ac_fn_c_try_compile "$LINENO"; then :
10836   e2fsprogs_cv_struct_st_flags_immut=yes
10837 else
10838   e2fsprogs_cv_struct_st_flags_immut=no
10839 fi
10840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10841 fi
10842
10843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
10844 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
10845   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
10846
10847 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
10848
10849   fi
10850 fi
10851 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10852          #include <sys/socket.h>
10853 "
10854 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
10855
10856 cat >>confdefs.h <<_ACEOF
10857 #define HAVE_SA_LEN 1
10858 _ACEOF
10859
10860 fi
10861
10862 if test -n "$BLKID_CMT"; then
10863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
10864 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
10865 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10866   $as_echo_n "(cached) " >&6
10867 else
10868   ac_func_search_save_LIBS=$LIBS
10869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10870 /* end confdefs.h.  */
10871
10872 /* Override any GCC internal prototype to avoid an error.
10873    Use char because int might match the return type of a GCC
10874    builtin and then its argument prototype would still apply.  */
10875 #ifdef __cplusplus
10876 extern "C"
10877 #endif
10878 char blkid_probe_all ();
10879 int
10880 main ()
10881 {
10882 return blkid_probe_all ();
10883   ;
10884   return 0;
10885 }
10886 _ACEOF
10887 for ac_lib in '' blkid; do
10888   if test -z "$ac_lib"; then
10889     ac_res="none required"
10890   else
10891     ac_res=-l$ac_lib
10892     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10893   fi
10894   if ac_fn_c_try_link "$LINENO"; then :
10895   ac_cv_search_blkid_probe_all=$ac_res
10896 fi
10897 rm -f core conftest.err conftest.$ac_objext \
10898     conftest$ac_exeext
10899   if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10900   break
10901 fi
10902 done
10903 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10904
10905 else
10906   ac_cv_search_blkid_probe_all=no
10907 fi
10908 rm conftest.$ac_ext
10909 LIBS=$ac_func_search_save_LIBS
10910 fi
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
10912 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
10913 ac_res=$ac_cv_search_blkid_probe_all
10914 if test "$ac_res" != no; then :
10915   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10916
10917 fi
10918
10919 fi
10920 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
10921 do :
10922   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10923 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10924 eval as_val=\$$as_ac_var
10925    if test "x$as_val" = x""yes; then :
10926   cat >>confdefs.h <<_ACEOF
10927 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10928 _ACEOF
10929
10930 fi
10931 done
10932
10933 SOCKET_LIB=''
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10935 $as_echo_n "checking for socket in -lsocket... " >&6; }
10936 if test "${ac_cv_lib_socket_socket+set}" = set; then :
10937   $as_echo_n "(cached) " >&6
10938 else
10939   ac_check_lib_save_LIBS=$LIBS
10940 LIBS="-lsocket  $LIBS"
10941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10942 /* end confdefs.h.  */
10943
10944 /* Override any GCC internal prototype to avoid an error.
10945    Use char because int might match the return type of a GCC
10946    builtin and then its argument prototype would still apply.  */
10947 #ifdef __cplusplus
10948 extern "C"
10949 #endif
10950 char socket ();
10951 int
10952 main ()
10953 {
10954 return socket ();
10955   ;
10956   return 0;
10957 }
10958 _ACEOF
10959 if ac_fn_c_try_link "$LINENO"; then :
10960   ac_cv_lib_socket_socket=yes
10961 else
10962   ac_cv_lib_socket_socket=no
10963 fi
10964 rm -f core conftest.err conftest.$ac_objext \
10965     conftest$ac_exeext conftest.$ac_ext
10966 LIBS=$ac_check_lib_save_LIBS
10967 fi
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10969 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10970 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
10971   SOCKET_LIB=-lsocket
10972 fi
10973
10974
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
10976 $as_echo_n "checking for optreset... " >&6; }
10977 if test "${ac_cv_have_optreset+set}" = set; then :
10978   $as_echo_n "(cached) " >&6
10979 else
10980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10981 /* end confdefs.h.  */
10982 #include <unistd.h>
10983
10984 _ACEOF
10985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10986   $EGREP "optreset" >/dev/null 2>&1; then :
10987   ac_cv_have_optreset=yes
10988 else
10989   ac_cv_have_optreset=no
10990 fi
10991 rm -f conftest*
10992
10993 fi
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
10995 $as_echo "$ac_cv_have_optreset" >&6; }
10996 if test $ac_cv_have_optreset = yes; then
10997
10998 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
10999
11000 fi
11001
11002 SEM_INIT_LIB=''
11003 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11004 if test "x$ac_cv_func_sem_init" = x""yes; then :
11005
11006 else
11007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11008 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11009 if test "${ac_cv_lib_pthread_sem_init+set}" = set; then :
11010   $as_echo_n "(cached) " >&6
11011 else
11012   ac_check_lib_save_LIBS=$LIBS
11013 LIBS="-lpthread  $LIBS"
11014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11015 /* end confdefs.h.  */
11016
11017 /* Override any GCC internal prototype to avoid an error.
11018    Use char because int might match the return type of a GCC
11019    builtin and then its argument prototype would still apply.  */
11020 #ifdef __cplusplus
11021 extern "C"
11022 #endif
11023 char sem_init ();
11024 int
11025 main ()
11026 {
11027 return sem_init ();
11028   ;
11029   return 0;
11030 }
11031 _ACEOF
11032 if ac_fn_c_try_link "$LINENO"; then :
11033   ac_cv_lib_pthread_sem_init=yes
11034 else
11035   ac_cv_lib_pthread_sem_init=no
11036 fi
11037 rm -f core conftest.err conftest.$ac_objext \
11038     conftest$ac_exeext conftest.$ac_ext
11039 LIBS=$ac_check_lib_save_LIBS
11040 fi
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11042 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11043 if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then :
11044   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11045
11046         SEM_INIT_LIB=-lpthread
11047 else
11048   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11049 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11050 if test "${ac_cv_lib_rt_sem_init+set}" = set; then :
11051   $as_echo_n "(cached) " >&6
11052 else
11053   ac_check_lib_save_LIBS=$LIBS
11054 LIBS="-lrt  $LIBS"
11055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11056 /* end confdefs.h.  */
11057
11058 /* Override any GCC internal prototype to avoid an error.
11059    Use char because int might match the return type of a GCC
11060    builtin and then its argument prototype would still apply.  */
11061 #ifdef __cplusplus
11062 extern "C"
11063 #endif
11064 char sem_init ();
11065 int
11066 main ()
11067 {
11068 return sem_init ();
11069   ;
11070   return 0;
11071 }
11072 _ACEOF
11073 if ac_fn_c_try_link "$LINENO"; then :
11074   ac_cv_lib_rt_sem_init=yes
11075 else
11076   ac_cv_lib_rt_sem_init=no
11077 fi
11078 rm -f core conftest.err conftest.$ac_objext \
11079     conftest$ac_exeext conftest.$ac_ext
11080 LIBS=$ac_check_lib_save_LIBS
11081 fi
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11083 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11084 if test "x$ac_cv_lib_rt_sem_init" = x""yes; then :
11085   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11086
11087         SEM_INIT_LIB=-lrt
11088 else
11089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11090 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11091 if test "${ac_cv_lib_posix4_sem_init+set}" = set; then :
11092   $as_echo_n "(cached) " >&6
11093 else
11094   ac_check_lib_save_LIBS=$LIBS
11095 LIBS="-lposix4  $LIBS"
11096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11097 /* end confdefs.h.  */
11098
11099 /* Override any GCC internal prototype to avoid an error.
11100    Use char because int might match the return type of a GCC
11101    builtin and then its argument prototype would still apply.  */
11102 #ifdef __cplusplus
11103 extern "C"
11104 #endif
11105 char sem_init ();
11106 int
11107 main ()
11108 {
11109 return sem_init ();
11110   ;
11111   return 0;
11112 }
11113 _ACEOF
11114 if ac_fn_c_try_link "$LINENO"; then :
11115   ac_cv_lib_posix4_sem_init=yes
11116 else
11117   ac_cv_lib_posix4_sem_init=no
11118 fi
11119 rm -f core conftest.err conftest.$ac_objext \
11120     conftest$ac_exeext conftest.$ac_ext
11121 LIBS=$ac_check_lib_save_LIBS
11122 fi
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11124 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11125 if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then :
11126   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11127
11128         SEM_INIT_LIB=-lposix4
11129 fi
11130
11131 fi
11132
11133 fi
11134
11135 fi
11136
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11138 $as_echo_n "checking for unified diff option... " >&6; }
11139 if diff -u $0 $0 > /dev/null 2>&1 ; then
11140    UNI_DIFF_OPTS=-u
11141 else
11142    UNI_DIFF_OPTS=-c
11143 fi
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11145 $as_echo "$UNI_DIFF_OPTS" >&6; }
11146
11147 case "$host_os" in
11148 linux*)
11149
11150 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11151
11152         ;;
11153 esac
11154 LINUX_CMT="#"
11155 CYGWIN_CMT="#"
11156 UNIX_CMT=
11157 case "$host_os" in
11158 linux*)
11159         LINUX_CMT=
11160         ;;
11161 cygwin)
11162         CYGWIN_CMT=
11163         UNIX_CMT="#"
11164         ;;
11165 esac
11166
11167
11168
11169 case "$host_os" in
11170 linux* | gnu* | k*bsd*-gnu)
11171         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11172                 root_prefix="";
11173                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11174 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11175         fi
11176         ;;
11177 esac
11178 case "$host_os" in
11179 linux* | gnu* | k*bsd*-gnu)
11180         if test "$prefix" = NONE ; then
11181                 prefix="/usr";
11182                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11183 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11184                 if test "$mandir" = '${prefix}/man' ; then
11185                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11186 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11187                         mandir=/usr/share/man
11188                 fi
11189         fi
11190 ;;
11191 esac
11192 if test "$root_prefix" = NONE ; then
11193         if test "$prefix" = NONE ; then
11194                 root_prefix="$ac_default_prefix"
11195         else
11196                 root_prefix="$prefix"
11197         fi
11198         root_bindir=$bindir
11199         root_sbindir=$sbindir
11200         root_libdir=$libdir
11201         root_sysconfdir=$sysconfdir
11202 else
11203         root_bindir='${root_prefix}/bin'
11204         root_sbindir='${root_prefix}/sbin'
11205         root_libdir='${root_prefix}/lib'
11206         root_sysconfdir='${root_prefix}/etc'
11207 fi
11208 if test "$bindir" != '${exec_prefix}/bin'; then
11209     root_bindir=$bindir
11210     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11211 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11212 fi
11213 if test "$sbindir" != '${exec_prefix}/sbin'; then
11214     root_sbindir=$sbindir
11215     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11216 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11217 fi
11218 if test "$libdir" != '${exec_prefix}/lib'; then
11219     root_libdir=$libdir
11220     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11221 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11222 fi
11223 if test "$sysconfdir" != '${prefix}/etc'; then
11224     root_sysconfdir=$sysconfdir
11225     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11226 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11227 fi
11228
11229
11230
11231
11232
11233
11234 # Check whether --with-multiarch was given.
11235 if test "${with_multiarch+set}" = set; then :
11236   withval=$with_multiarch; libdir=$libdir/$withval
11237 root_libdir=$root_libdir/$withval
11238
11239 fi
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5
11241 $as_echo_n "checking whether linker accepts -static... " >&6; }
11242 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then :
11243   $as_echo_n "(cached) " >&6
11244 else
11245   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11247 /* end confdefs.h.  */
11248 #include <stdio.h>
11249 int
11250 main ()
11251 {
11252 fflush(stdout);
11253   ;
11254   return 0;
11255 }
11256 _ACEOF
11257 if ac_fn_c_try_link "$LINENO"; then :
11258   ac_cv_e2fsprogs_use_static=yes
11259 else
11260   ac_cv_e2fsprogs_use_static=no
11261 fi
11262 rm -f core conftest.err conftest.$ac_objext \
11263     conftest$ac_exeext conftest.$ac_ext
11264 LDFLAGS=$SAVE_LDFLAGS
11265 fi
11266
11267 case "$host_os" in
11268 solaris2.*)
11269         ac_cv_e2fsprogs_use_static=no
11270 ;;
11271 esac
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11273 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11274 LDFLAG_STATIC=
11275 if test $ac_cv_e2fsprogs_use_static = yes; then
11276         LDFLAG_STATIC=-static
11277 fi
11278
11279 case "$host_os" in
11280 darwin*)
11281         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11282 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11283
11284 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11285
11286         ;;
11287 esac
11288 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11289 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11290
11291
11292 if test "$cross_compiling" = yes ; then
11293   DO_TEST_SUITE=
11294 else
11295   DO_TEST_SUITE=check
11296 fi
11297
11298 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11299 if test -n "$CPPFLAGS" ; then
11300         INCLUDES="$INCLUDES $CPPFLAGS"
11301 fi
11302 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11303         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11304 fi
11305
11306 if test $cross_compiling = no; then
11307    BUILD_CFLAGS="$CFLAGS"
11308    BUILD_LDFLAGS="$LDFLAGS"
11309 else
11310    BUILD_CFLAGS=
11311    BUILD_LDFLAGS=
11312 fi
11313
11314
11315 test -d lib || mkdir lib
11316 test -d include || mkdir include
11317 test -d include/linux || mkdir include/linux
11318 test -d include/asm || mkdir include/asm
11319 for i in MCONFIG Makefile e2fsprogs.spec \
11320         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11321         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11322         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11323         lib/uuid/Makefile lib/uuid/uuid_types.h \
11324         lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11325         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11326         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11327         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11328         debugfs/Makefile tests/Makefile tests/progs/Makefile \
11329         resize/Makefile doc/Makefile intl/Makefile \
11330         intl/libgnuintl.h po/Makefile.in ; do
11331         if test -d `dirname ${srcdir}/$i` ; then
11332                 outlist="$outlist $i"
11333         fi
11334 done
11335 ac_config_files="$ac_config_files $outlist"
11336
11337 cat >confcache <<\_ACEOF
11338 # This file is a shell script that caches the results of configure
11339 # tests run on this system so they can be shared between configure
11340 # scripts and configure runs, see configure's option --config-cache.
11341 # It is not useful on other systems.  If it contains results you don't
11342 # want to keep, you may remove or edit it.
11343 #
11344 # config.status only pays attention to the cache file if you give it
11345 # the --recheck option to rerun configure.
11346 #
11347 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11348 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11349 # following values.
11350
11351 _ACEOF
11352
11353 # The following way of writing the cache mishandles newlines in values,
11354 # but we know of no workaround that is simple, portable, and efficient.
11355 # So, we kill variables containing newlines.
11356 # Ultrix sh set writes to stderr and can't be redirected directly,
11357 # and sets the high bit in the cache file unless we assign to the vars.
11358 (
11359   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11360     eval ac_val=\$$ac_var
11361     case $ac_val in #(
11362     *${as_nl}*)
11363       case $ac_var in #(
11364       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11365 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11366       esac
11367       case $ac_var in #(
11368       _ | IFS | as_nl) ;; #(
11369       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11370       *) { eval $ac_var=; unset $ac_var;} ;;
11371       esac ;;
11372     esac
11373   done
11374
11375   (set) 2>&1 |
11376     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11377     *${as_nl}ac_space=\ *)
11378       # `set' does not quote correctly, so add quotes: double-quote
11379       # substitution turns \\\\ into \\, and sed turns \\ into \.
11380       sed -n \
11381         "s/'/'\\\\''/g;
11382           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11383       ;; #(
11384     *)
11385       # `set' quotes correctly as required by POSIX, so do not add quotes.
11386       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11387       ;;
11388     esac |
11389     sort
11390 ) |
11391   sed '
11392      /^ac_cv_env_/b end
11393      t clear
11394      :clear
11395      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11396      t end
11397      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11398      :end' >>confcache
11399 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11400   if test -w "$cache_file"; then
11401     test "x$cache_file" != "x/dev/null" &&
11402       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11403 $as_echo "$as_me: updating cache $cache_file" >&6;}
11404     cat confcache >$cache_file
11405   else
11406     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11407 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11408   fi
11409 fi
11410 rm -f confcache
11411
11412 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11413 # Let make expand exec_prefix.
11414 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11415
11416 DEFS=-DHAVE_CONFIG_H
11417
11418 ac_libobjs=
11419 ac_ltlibobjs=
11420 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11421   # 1. Remove the extension, and $U if already installed.
11422   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11423   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11424   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11425   #    will be set to the directory where LIBOBJS objects are built.
11426   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11427   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11428 done
11429 LIBOBJS=$ac_libobjs
11430
11431 LTLIBOBJS=$ac_ltlibobjs
11432
11433
11434
11435
11436 : ${CONFIG_STATUS=./config.status}
11437 ac_write_fail=0
11438 ac_clean_files_save=$ac_clean_files
11439 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11441 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11442 as_write_fail=0
11443 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11444 #! $SHELL
11445 # Generated by $as_me.
11446 # Run this file to recreate the current configuration.
11447 # Compiler output produced by configure, useful for debugging
11448 # configure, is in config.log if it exists.
11449
11450 debug=false
11451 ac_cs_recheck=false
11452 ac_cs_silent=false
11453
11454 SHELL=\${CONFIG_SHELL-$SHELL}
11455 export SHELL
11456 _ASEOF
11457 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11458 ## -------------------- ##
11459 ## M4sh Initialization. ##
11460 ## -------------------- ##
11461
11462 # Be more Bourne compatible
11463 DUALCASE=1; export DUALCASE # for MKS sh
11464 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11465   emulate sh
11466   NULLCMD=:
11467   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11468   # is contrary to our usage.  Disable this feature.
11469   alias -g '${1+"$@"}'='"$@"'
11470   setopt NO_GLOB_SUBST
11471 else
11472   case `(set -o) 2>/dev/null` in #(
11473   *posix*) :
11474     set -o posix ;; #(
11475   *) :
11476      ;;
11477 esac
11478 fi
11479
11480
11481 as_nl='
11482 '
11483 export as_nl
11484 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11485 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11486 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11487 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11488 # Prefer a ksh shell builtin over an external printf program on Solaris,
11489 # but without wasting forks for bash or zsh.
11490 if test -z "$BASH_VERSION$ZSH_VERSION" \
11491     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11492   as_echo='print -r --'
11493   as_echo_n='print -rn --'
11494 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11495   as_echo='printf %s\n'
11496   as_echo_n='printf %s'
11497 else
11498   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11499     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11500     as_echo_n='/usr/ucb/echo -n'
11501   else
11502     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11503     as_echo_n_body='eval
11504       arg=$1;
11505       case $arg in #(
11506       *"$as_nl"*)
11507         expr "X$arg" : "X\\(.*\\)$as_nl";
11508         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11509       esac;
11510       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11511     '
11512     export as_echo_n_body
11513     as_echo_n='sh -c $as_echo_n_body as_echo'
11514   fi
11515   export as_echo_body
11516   as_echo='sh -c $as_echo_body as_echo'
11517 fi
11518
11519 # The user is always right.
11520 if test "${PATH_SEPARATOR+set}" != set; then
11521   PATH_SEPARATOR=:
11522   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11523     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11524       PATH_SEPARATOR=';'
11525   }
11526 fi
11527
11528
11529 # IFS
11530 # We need space, tab and new line, in precisely that order.  Quoting is
11531 # there to prevent editors from complaining about space-tab.
11532 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11533 # splitting by setting IFS to empty value.)
11534 IFS=" ""        $as_nl"
11535
11536 # Find who we are.  Look in the path if we contain no directory separator.
11537 case $0 in #((
11538   *[\\/]* ) as_myself=$0 ;;
11539   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11540 for as_dir in $PATH
11541 do
11542   IFS=$as_save_IFS
11543   test -z "$as_dir" && as_dir=.
11544     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11545   done
11546 IFS=$as_save_IFS
11547
11548      ;;
11549 esac
11550 # We did not find ourselves, most probably we were run as `sh COMMAND'
11551 # in which case we are not to be found in the path.
11552 if test "x$as_myself" = x; then
11553   as_myself=$0
11554 fi
11555 if test ! -f "$as_myself"; then
11556   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11557   exit 1
11558 fi
11559
11560 # Unset variables that we do not need and which cause bugs (e.g. in
11561 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11562 # suppresses any "Segmentation fault" message there.  '((' could
11563 # trigger a bug in pdksh 5.2.14.
11564 for as_var in BASH_ENV ENV MAIL MAILPATH
11565 do eval test x\${$as_var+set} = xset \
11566   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11567 done
11568 PS1='$ '
11569 PS2='> '
11570 PS4='+ '
11571
11572 # NLS nuisances.
11573 LC_ALL=C
11574 export LC_ALL
11575 LANGUAGE=C
11576 export LANGUAGE
11577
11578 # CDPATH.
11579 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11580
11581
11582 # as_fn_error ERROR [LINENO LOG_FD]
11583 # ---------------------------------
11584 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11585 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11586 # script with status $?, using 1 if that was 0.
11587 as_fn_error ()
11588 {
11589   as_status=$?; test $as_status -eq 0 && as_status=1
11590   if test "$3"; then
11591     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11592     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11593   fi
11594   $as_echo "$as_me: error: $1" >&2
11595   as_fn_exit $as_status
11596 } # as_fn_error
11597
11598
11599 # as_fn_set_status STATUS
11600 # -----------------------
11601 # Set $? to STATUS, without forking.
11602 as_fn_set_status ()
11603 {
11604   return $1
11605 } # as_fn_set_status
11606
11607 # as_fn_exit STATUS
11608 # -----------------
11609 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11610 as_fn_exit ()
11611 {
11612   set +e
11613   as_fn_set_status $1
11614   exit $1
11615 } # as_fn_exit
11616
11617 # as_fn_unset VAR
11618 # ---------------
11619 # Portably unset VAR.
11620 as_fn_unset ()
11621 {
11622   { eval $1=; unset $1;}
11623 }
11624 as_unset=as_fn_unset
11625 # as_fn_append VAR VALUE
11626 # ----------------------
11627 # Append the text in VALUE to the end of the definition contained in VAR. Take
11628 # advantage of any shell optimizations that allow amortized linear growth over
11629 # repeated appends, instead of the typical quadratic growth present in naive
11630 # implementations.
11631 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11632   eval 'as_fn_append ()
11633   {
11634     eval $1+=\$2
11635   }'
11636 else
11637   as_fn_append ()
11638   {
11639     eval $1=\$$1\$2
11640   }
11641 fi # as_fn_append
11642
11643 # as_fn_arith ARG...
11644 # ------------------
11645 # Perform arithmetic evaluation on the ARGs, and store the result in the
11646 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11647 # must be portable across $(()) and expr.
11648 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11649   eval 'as_fn_arith ()
11650   {
11651     as_val=$(( $* ))
11652   }'
11653 else
11654   as_fn_arith ()
11655   {
11656     as_val=`expr "$@" || test $? -eq 1`
11657   }
11658 fi # as_fn_arith
11659
11660
11661 if expr a : '\(a\)' >/dev/null 2>&1 &&
11662    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11663   as_expr=expr
11664 else
11665   as_expr=false
11666 fi
11667
11668 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11669   as_basename=basename
11670 else
11671   as_basename=false
11672 fi
11673
11674 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11675   as_dirname=dirname
11676 else
11677   as_dirname=false
11678 fi
11679
11680 as_me=`$as_basename -- "$0" ||
11681 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11682          X"$0" : 'X\(//\)$' \| \
11683          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11684 $as_echo X/"$0" |
11685     sed '/^.*\/\([^/][^/]*\)\/*$/{
11686             s//\1/
11687             q
11688           }
11689           /^X\/\(\/\/\)$/{
11690             s//\1/
11691             q
11692           }
11693           /^X\/\(\/\).*/{
11694             s//\1/
11695             q
11696           }
11697           s/.*/./; q'`
11698
11699 # Avoid depending upon Character Ranges.
11700 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11701 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11702 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11703 as_cr_digits='0123456789'
11704 as_cr_alnum=$as_cr_Letters$as_cr_digits
11705
11706 ECHO_C= ECHO_N= ECHO_T=
11707 case `echo -n x` in #(((((
11708 -n*)
11709   case `echo 'xy\c'` in
11710   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11711   xy)  ECHO_C='\c';;
11712   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11713        ECHO_T=' ';;
11714   esac;;
11715 *)
11716   ECHO_N='-n';;
11717 esac
11718
11719 rm -f conf$$ conf$$.exe conf$$.file
11720 if test -d conf$$.dir; then
11721   rm -f conf$$.dir/conf$$.file
11722 else
11723   rm -f conf$$.dir
11724   mkdir conf$$.dir 2>/dev/null
11725 fi
11726 if (echo >conf$$.file) 2>/dev/null; then
11727   if ln -s conf$$.file conf$$ 2>/dev/null; then
11728     as_ln_s='ln -s'
11729     # ... but there are two gotchas:
11730     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11731     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11732     # In both cases, we have to default to `cp -p'.
11733     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11734       as_ln_s='cp -p'
11735   elif ln conf$$.file conf$$ 2>/dev/null; then
11736     as_ln_s=ln
11737   else
11738     as_ln_s='cp -p'
11739   fi
11740 else
11741   as_ln_s='cp -p'
11742 fi
11743 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11744 rmdir conf$$.dir 2>/dev/null
11745
11746
11747 # as_fn_mkdir_p
11748 # -------------
11749 # Create "$as_dir" as a directory, including parents if necessary.
11750 as_fn_mkdir_p ()
11751 {
11752
11753   case $as_dir in #(
11754   -*) as_dir=./$as_dir;;
11755   esac
11756   test -d "$as_dir" || eval $as_mkdir_p || {
11757     as_dirs=
11758     while :; do
11759       case $as_dir in #(
11760       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11761       *) as_qdir=$as_dir;;
11762       esac
11763       as_dirs="'$as_qdir' $as_dirs"
11764       as_dir=`$as_dirname -- "$as_dir" ||
11765 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11766          X"$as_dir" : 'X\(//\)[^/]' \| \
11767          X"$as_dir" : 'X\(//\)$' \| \
11768          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11769 $as_echo X"$as_dir" |
11770     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11771             s//\1/
11772             q
11773           }
11774           /^X\(\/\/\)[^/].*/{
11775             s//\1/
11776             q
11777           }
11778           /^X\(\/\/\)$/{
11779             s//\1/
11780             q
11781           }
11782           /^X\(\/\).*/{
11783             s//\1/
11784             q
11785           }
11786           s/.*/./; q'`
11787       test -d "$as_dir" && break
11788     done
11789     test -z "$as_dirs" || eval "mkdir $as_dirs"
11790   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11791
11792
11793 } # as_fn_mkdir_p
11794 if mkdir -p . 2>/dev/null; then
11795   as_mkdir_p='mkdir -p "$as_dir"'
11796 else
11797   test -d ./-p && rmdir ./-p
11798   as_mkdir_p=false
11799 fi
11800
11801 if test -x / >/dev/null 2>&1; then
11802   as_test_x='test -x'
11803 else
11804   if ls -dL / >/dev/null 2>&1; then
11805     as_ls_L_option=L
11806   else
11807     as_ls_L_option=
11808   fi
11809   as_test_x='
11810     eval sh -c '\''
11811       if test -d "$1"; then
11812         test -d "$1/.";
11813       else
11814         case $1 in #(
11815         -*)set "./$1";;
11816         esac;
11817         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11818         ???[sx]*):;;*)false;;esac;fi
11819     '\'' sh
11820   '
11821 fi
11822 as_executable_p=$as_test_x
11823
11824 # Sed expression to map a string onto a valid CPP name.
11825 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11826
11827 # Sed expression to map a string onto a valid variable name.
11828 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11829
11830
11831 exec 6>&1
11832 ## ----------------------------------- ##
11833 ## Main body of $CONFIG_STATUS script. ##
11834 ## ----------------------------------- ##
11835 _ASEOF
11836 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11837
11838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11839 # Save the log message, to keep $0 and so on meaningful, and to
11840 # report actual input values of CONFIG_FILES etc. instead of their
11841 # values after options handling.
11842 ac_log="
11843 This file was extended by $as_me, which was
11844 generated by GNU Autoconf 2.65.  Invocation command line was
11845
11846   CONFIG_FILES    = $CONFIG_FILES
11847   CONFIG_HEADERS  = $CONFIG_HEADERS
11848   CONFIG_LINKS    = $CONFIG_LINKS
11849   CONFIG_COMMANDS = $CONFIG_COMMANDS
11850   $ $0 $@
11851
11852 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11853 "
11854
11855 _ACEOF
11856
11857 case $ac_config_files in *"
11858 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11859 esac
11860
11861 case $ac_config_headers in *"
11862 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11863 esac
11864
11865
11866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11867 # Files that config.status was made for.
11868 config_files="$ac_config_files"
11869 config_headers="$ac_config_headers"
11870 config_commands="$ac_config_commands"
11871
11872 _ACEOF
11873
11874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11875 ac_cs_usage="\
11876 \`$as_me' instantiates files and other configuration actions
11877 from templates according to the current configuration.  Unless the files
11878 and actions are specified as TAGs, all are instantiated by default.
11879
11880 Usage: $0 [OPTION]... [TAG]...
11881
11882   -h, --help       print this help, then exit
11883   -V, --version    print version number and configuration settings, then exit
11884       --config     print configuration, then exit
11885   -q, --quiet, --silent
11886                    do not print progress messages
11887   -d, --debug      don't remove temporary files
11888       --recheck    update $as_me by reconfiguring in the same conditions
11889       --file=FILE[:TEMPLATE]
11890                    instantiate the configuration file FILE
11891       --header=FILE[:TEMPLATE]
11892                    instantiate the configuration header FILE
11893
11894 Configuration files:
11895 $config_files
11896
11897 Configuration headers:
11898 $config_headers
11899
11900 Configuration commands:
11901 $config_commands
11902
11903 Report bugs to the package provider."
11904
11905 _ACEOF
11906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11907 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11908 ac_cs_version="\\
11909 config.status
11910 configured by $0, generated by GNU Autoconf 2.65,
11911   with options \\"\$ac_cs_config\\"
11912
11913 Copyright (C) 2009 Free Software Foundation, Inc.
11914 This config.status script is free software; the Free Software Foundation
11915 gives unlimited permission to copy, distribute and modify it."
11916
11917 ac_pwd='$ac_pwd'
11918 srcdir='$srcdir'
11919 INSTALL='$INSTALL'
11920 AWK='$AWK'
11921 test -n "\$AWK" || AWK=awk
11922 _ACEOF
11923
11924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11925 # The default lists apply if the user does not specify any file.
11926 ac_need_defaults=:
11927 while test $# != 0
11928 do
11929   case $1 in
11930   --*=*)
11931     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11932     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11933     ac_shift=:
11934     ;;
11935   *)
11936     ac_option=$1
11937     ac_optarg=$2
11938     ac_shift=shift
11939     ;;
11940   esac
11941
11942   case $ac_option in
11943   # Handling of the options.
11944   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11945     ac_cs_recheck=: ;;
11946   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11947     $as_echo "$ac_cs_version"; exit ;;
11948   --config | --confi | --conf | --con | --co | --c )
11949     $as_echo "$ac_cs_config"; exit ;;
11950   --debug | --debu | --deb | --de | --d | -d )
11951     debug=: ;;
11952   --file | --fil | --fi | --f )
11953     $ac_shift
11954     case $ac_optarg in
11955     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11956     esac
11957     as_fn_append CONFIG_FILES " '$ac_optarg'"
11958     ac_need_defaults=false;;
11959   --header | --heade | --head | --hea )
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_HEADERS " '$ac_optarg'"
11965     ac_need_defaults=false;;
11966   --he | --h)
11967     # Conflict between --help and --header
11968     as_fn_error "ambiguous option: \`$1'
11969 Try \`$0 --help' for more information.";;
11970   --help | --hel | -h )
11971     $as_echo "$ac_cs_usage"; exit ;;
11972   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11973   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11974     ac_cs_silent=: ;;
11975
11976   # This is an error.
11977   -*) as_fn_error "unrecognized option: \`$1'
11978 Try \`$0 --help' for more information." ;;
11979
11980   *) as_fn_append ac_config_targets " $1"
11981      ac_need_defaults=false ;;
11982
11983   esac
11984   shift
11985 done
11986
11987 ac_configure_extra_args=
11988
11989 if $ac_cs_silent; then
11990   exec 6>/dev/null
11991   ac_configure_extra_args="$ac_configure_extra_args --silent"
11992 fi
11993
11994 _ACEOF
11995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11996 if \$ac_cs_recheck; then
11997   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11998   shift
11999   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12000   CONFIG_SHELL='$SHELL'
12001   export CONFIG_SHELL
12002   exec "\$@"
12003 fi
12004
12005 _ACEOF
12006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12007 exec 5>>config.log
12008 {
12009   echo
12010   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12011 ## Running $as_me. ##
12012 _ASBOX
12013   $as_echo "$ac_log"
12014 } >&5
12015
12016 _ACEOF
12017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12018 #
12019 # INIT-COMMANDS
12020 #
12021 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12022     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12023     # from automake.
12024     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12025     # Capture the value of LINGUAS because we need it to compute CATALOGS.
12026     LINGUAS="${LINGUAS-%UNSET%}"
12027
12028
12029 _ACEOF
12030
12031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12032
12033 # Handling of arguments.
12034 for ac_config_target in $ac_config_targets
12035 do
12036   case $ac_config_target in
12037     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12038     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12039     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12040
12041   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12042   esac
12043 done
12044
12045
12046 # If the user did not use the arguments to specify the items to instantiate,
12047 # then the envvar interface is used.  Set only those that are not.
12048 # We use the long form for the default assignment because of an extremely
12049 # bizarre bug on SunOS 4.1.3.
12050 if $ac_need_defaults; then
12051   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12052   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12053   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12054 fi
12055
12056 # Have a temporary directory for convenience.  Make it in the build tree
12057 # simply because there is no reason against having it here, and in addition,
12058 # creating and moving files from /tmp can sometimes cause problems.
12059 # Hook for its removal unless debugging.
12060 # Note that there is a small window in which the directory will not be cleaned:
12061 # after its creation but before its name has been assigned to `$tmp'.
12062 $debug ||
12063 {
12064   tmp=
12065   trap 'exit_status=$?
12066   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12067 ' 0
12068   trap 'as_fn_exit 1' 1 2 13 15
12069 }
12070 # Create a (secure) tmp directory for tmp files.
12071
12072 {
12073   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12074   test -n "$tmp" && test -d "$tmp"
12075 }  ||
12076 {
12077   tmp=./conf$$-$RANDOM
12078   (umask 077 && mkdir "$tmp")
12079 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12080
12081 # Set up the scripts for CONFIG_FILES section.
12082 # No need to generate them if there are no CONFIG_FILES.
12083 # This happens for instance with `./config.status config.h'.
12084 if test -n "$CONFIG_FILES"; then
12085
12086 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12087   ac_cs_awk_getline=:
12088   ac_cs_awk_pipe_init=
12089   ac_cs_awk_read_file='
12090       while ((getline aline < (F[key])) > 0)
12091         print(aline)
12092       close(F[key])'
12093   ac_cs_awk_pipe_fini=
12094 else
12095   ac_cs_awk_getline=false
12096   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12097   ac_cs_awk_read_file='
12098       print "|#_!!_#|"
12099       print "cat " F[key] " &&"
12100       '$ac_cs_awk_pipe_init
12101   # The final `:' finishes the AND list.
12102   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12103 fi
12104 ac_cr=`echo X | tr X '\015'`
12105 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12106 # But we know of no other shell where ac_cr would be empty at this
12107 # point, so we can use a bashism as a fallback.
12108 if test "x$ac_cr" = x; then
12109   eval ac_cr=\$\'\\r\'
12110 fi
12111 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12112 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12113   ac_cs_awk_cr='\r'
12114 else
12115   ac_cs_awk_cr=$ac_cr
12116 fi
12117
12118 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12119 _ACEOF
12120
12121 # Create commands to substitute file output variables.
12122 {
12123   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12124   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
12125   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12126   echo "_ACAWK" &&
12127   echo "_ACEOF"
12128 } >conf$$files.sh &&
12129 . ./conf$$files.sh ||
12130   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12131 rm -f conf$$files.sh
12132
12133 {
12134   echo "cat >conf$$subs.awk <<_ACEOF" &&
12135   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12136   echo "_ACEOF"
12137 } >conf$$subs.sh ||
12138   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12139 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12140 ac_delim='%!_!# '
12141 for ac_last_try in false false false false false :; do
12142   . ./conf$$subs.sh ||
12143     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12144
12145   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12146   if test $ac_delim_n = $ac_delim_num; then
12147     break
12148   elif $ac_last_try; then
12149     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12150   else
12151     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12152   fi
12153 done
12154 rm -f conf$$subs.sh
12155
12156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12157 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12158 _ACEOF
12159 sed -n '
12160 h
12161 s/^/S["/; s/!.*/"]=/
12162 p
12163 g
12164 s/^[^!]*!//
12165 :repl
12166 t repl
12167 s/'"$ac_delim"'$//
12168 t delim
12169 :nl
12170 h
12171 s/\(.\{148\}\)..*/\1/
12172 t more1
12173 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12174 p
12175 n
12176 b repl
12177 :more1
12178 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12179 p
12180 g
12181 s/.\{148\}//
12182 t nl
12183 :delim
12184 h
12185 s/\(.\{148\}\)..*/\1/
12186 t more2
12187 s/["\\]/\\&/g; s/^/"/; s/$/"/
12188 p
12189 b
12190 :more2
12191 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12192 p
12193 g
12194 s/.\{148\}//
12195 t delim
12196 ' <conf$$subs.awk | sed '
12197 /^[^""]/{
12198   N
12199   s/\n//
12200 }
12201 ' >>$CONFIG_STATUS || ac_write_fail=1
12202 rm -f conf$$subs.awk
12203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12204 _ACAWK
12205 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12206   for (key in S) S_is_set[key] = 1
12207   FS = "\a"
12208   \$ac_cs_awk_pipe_init
12209 }
12210 {
12211   line = $ 0
12212   nfields = split(line, field, "@")
12213   substed = 0
12214   len = length(field[1])
12215   for (i = 2; i < nfields; i++) {
12216     key = field[i]
12217     keylen = length(key)
12218     if (S_is_set[key]) {
12219       value = S[key]
12220       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12221       len += length(value) + length(field[++i])
12222       substed = 1
12223     } else
12224       len += 1 + keylen
12225   }
12226   if (nfields == 3 && !substed) {
12227     key = field[2]
12228     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
12229       \$ac_cs_awk_read_file
12230       next
12231     }
12232   }
12233   print line
12234 }
12235 \$ac_cs_awk_pipe_fini
12236 _ACAWK
12237 _ACEOF
12238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12239 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12240   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12241 else
12242   cat
12243 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12244   || as_fn_error "could not setup config files machinery" "$LINENO" 5
12245 _ACEOF
12246
12247 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12248 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12249 # trailing colons and then remove the whole line if VPATH becomes empty
12250 # (actually we leave an empty line to preserve line numbers).
12251 if test "x$srcdir" = x.; then
12252   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12253 s/:*\$(srcdir):*/:/
12254 s/:*\${srcdir}:*/:/
12255 s/:*@srcdir@:*/:/
12256 s/^\([^=]*=[     ]*\):*/\1/
12257 s/:*$//
12258 s/^[^=]*=[       ]*$//
12259 }'
12260 fi
12261
12262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12263 fi # test -n "$CONFIG_FILES"
12264
12265 # Set up the scripts for CONFIG_HEADERS section.
12266 # No need to generate them if there are no CONFIG_HEADERS.
12267 # This happens for instance with `./config.status Makefile'.
12268 if test -n "$CONFIG_HEADERS"; then
12269 cat >"$tmp/defines.awk" <<\_ACAWK ||
12270 BEGIN {
12271 _ACEOF
12272
12273 # Transform confdefs.h into an awk script `defines.awk', embedded as
12274 # here-document in config.status, that substitutes the proper values into
12275 # config.h.in to produce config.h.
12276
12277 # Create a delimiter string that does not exist in confdefs.h, to ease
12278 # handling of long lines.
12279 ac_delim='%!_!# '
12280 for ac_last_try in false false :; do
12281   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12282   if test -z "$ac_t"; then
12283     break
12284   elif $ac_last_try; then
12285     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12286   else
12287     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12288   fi
12289 done
12290
12291 # For the awk script, D is an array of macro values keyed by name,
12292 # likewise P contains macro parameters if any.  Preserve backslash
12293 # newline sequences.
12294
12295 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12296 sed -n '
12297 s/.\{148\}/&'"$ac_delim"'/g
12298 t rset
12299 :rset
12300 s/^[     ]*#[    ]*define[       ][      ]*/ /
12301 t def
12302 d
12303 :def
12304 s/\\$//
12305 t bsnl
12306 s/["\\]/\\&/g
12307 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12308 D["\1"]=" \3"/p
12309 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12310 d
12311 :bsnl
12312 s/["\\]/\\&/g
12313 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12314 D["\1"]=" \3\\\\\\n"\\/p
12315 t cont
12316 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12317 t cont
12318 d
12319 :cont
12320 n
12321 s/.\{148\}/&'"$ac_delim"'/g
12322 t clear
12323 :clear
12324 s/\\$//
12325 t bsnlc
12326 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12327 d
12328 :bsnlc
12329 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12330 b cont
12331 ' <confdefs.h | sed '
12332 s/'"$ac_delim"'/"\\\
12333 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12334
12335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12336   for (key in D) D_is_set[key] = 1
12337   FS = "\a"
12338 }
12339 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12340   line = \$ 0
12341   split(line, arg, " ")
12342   if (arg[1] == "#") {
12343     defundef = arg[2]
12344     mac1 = arg[3]
12345   } else {
12346     defundef = substr(arg[1], 2)
12347     mac1 = arg[2]
12348   }
12349   split(mac1, mac2, "(") #)
12350   macro = mac2[1]
12351   prefix = substr(line, 1, index(line, defundef) - 1)
12352   if (D_is_set[macro]) {
12353     # Preserve the white space surrounding the "#".
12354     print prefix "define", macro P[macro] D[macro]
12355     next
12356   } else {
12357     # Replace #undef with comments.  This is necessary, for example,
12358     # in the case of _POSIX_SOURCE, which is predefined and required
12359     # on some systems where configure will not decide to define it.
12360     if (defundef == "undef") {
12361       print "/*", prefix defundef, macro, "*/"
12362       next
12363     }
12364   }
12365 }
12366 { print }
12367 _ACAWK
12368 _ACEOF
12369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12370   as_fn_error "could not setup config headers machinery" "$LINENO" 5
12371 fi # test -n "$CONFIG_HEADERS"
12372
12373
12374 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12375 shift
12376 for ac_tag
12377 do
12378   case $ac_tag in
12379   :[FHLC]) ac_mode=$ac_tag; continue;;
12380   esac
12381   case $ac_mode$ac_tag in
12382   :[FHL]*:*);;
12383   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12384   :[FH]-) ac_tag=-:-;;
12385   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12386   esac
12387   ac_save_IFS=$IFS
12388   IFS=:
12389   set x $ac_tag
12390   IFS=$ac_save_IFS
12391   shift
12392   ac_file=$1
12393   shift
12394
12395   case $ac_mode in
12396   :L) ac_source=$1;;
12397   :[FH])
12398     ac_file_inputs=
12399     for ac_f
12400     do
12401       case $ac_f in
12402       -) ac_f="$tmp/stdin";;
12403       *) # Look for the file first in the build tree, then in the source tree
12404          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12405          # because $ac_f cannot contain `:'.
12406          test -f "$ac_f" ||
12407            case $ac_f in
12408            [\\/$]*) false;;
12409            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12410            esac ||
12411            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12412       esac
12413       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12414       as_fn_append ac_file_inputs " '$ac_f'"
12415     done
12416
12417     # Let's still pretend it is `configure' which instantiates (i.e., don't
12418     # use $as_me), people would be surprised to read:
12419     #    /* config.h.  Generated by config.status.  */
12420     configure_input='Generated from '`
12421           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12422         `' by configure.'
12423     if test x"$ac_file" != x-; then
12424       configure_input="$ac_file.  $configure_input"
12425       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12426 $as_echo "$as_me: creating $ac_file" >&6;}
12427     fi
12428     # Neutralize special characters interpreted by sed in replacement strings.
12429     case $configure_input in #(
12430     *\&* | *\|* | *\\* )
12431        ac_sed_conf_input=`$as_echo "$configure_input" |
12432        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12433     *) ac_sed_conf_input=$configure_input;;
12434     esac
12435
12436     case $ac_tag in
12437     *:-:* | *:-) cat >"$tmp/stdin" \
12438       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12439     esac
12440     ;;
12441   esac
12442
12443   ac_dir=`$as_dirname -- "$ac_file" ||
12444 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12445          X"$ac_file" : 'X\(//\)[^/]' \| \
12446          X"$ac_file" : 'X\(//\)$' \| \
12447          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12448 $as_echo X"$ac_file" |
12449     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12450             s//\1/
12451             q
12452           }
12453           /^X\(\/\/\)[^/].*/{
12454             s//\1/
12455             q
12456           }
12457           /^X\(\/\/\)$/{
12458             s//\1/
12459             q
12460           }
12461           /^X\(\/\).*/{
12462             s//\1/
12463             q
12464           }
12465           s/.*/./; q'`
12466   as_dir="$ac_dir"; as_fn_mkdir_p
12467   ac_builddir=.
12468
12469 case "$ac_dir" in
12470 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12471 *)
12472   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12473   # A ".." for each directory in $ac_dir_suffix.
12474   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12475   case $ac_top_builddir_sub in
12476   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12477   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12478   esac ;;
12479 esac
12480 ac_abs_top_builddir=$ac_pwd
12481 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12482 # for backward compatibility:
12483 ac_top_builddir=$ac_top_build_prefix
12484
12485 case $srcdir in
12486   .)  # We are building in place.
12487     ac_srcdir=.
12488     ac_top_srcdir=$ac_top_builddir_sub
12489     ac_abs_top_srcdir=$ac_pwd ;;
12490   [\\/]* | ?:[\\/]* )  # Absolute name.
12491     ac_srcdir=$srcdir$ac_dir_suffix;
12492     ac_top_srcdir=$srcdir
12493     ac_abs_top_srcdir=$srcdir ;;
12494   *) # Relative name.
12495     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12496     ac_top_srcdir=$ac_top_build_prefix$srcdir
12497     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12498 esac
12499 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12500
12501
12502   case $ac_mode in
12503   :F)
12504   #
12505   # CONFIG_FILE
12506   #
12507
12508   case $INSTALL in
12509   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12510   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12511   esac
12512 _ACEOF
12513
12514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12515 # If the template does not know about datarootdir, expand it.
12516 # FIXME: This hack should be removed a few years after 2.60.
12517 ac_datarootdir_hack=; ac_datarootdir_seen=
12518 ac_sed_dataroot='
12519 /datarootdir/ {
12520   p
12521   q
12522 }
12523 /@datadir@/p
12524 /@docdir@/p
12525 /@infodir@/p
12526 /@localedir@/p
12527 /@mandir@/p'
12528 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12529 *datarootdir*) ac_datarootdir_seen=yes;;
12530 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12531   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12532 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12533 _ACEOF
12534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12535   ac_datarootdir_hack='
12536   s&@datadir@&$datadir&g
12537   s&@docdir@&$docdir&g
12538   s&@infodir@&$infodir&g
12539   s&@localedir@&$localedir&g
12540   s&@mandir@&$mandir&g
12541   s&\\\${datarootdir}&$datarootdir&g' ;;
12542 esac
12543 _ACEOF
12544
12545 # Neutralize VPATH when `$srcdir' = `.'.
12546 # Shell code in configure.ac might set extrasub.
12547 # FIXME: do we really want to maintain this feature?
12548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12549 ac_sed_extra="$ac_vpsub
12550 $extrasub
12551 _ACEOF
12552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12553 :t
12554 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12555 s|@configure_input@|$ac_sed_conf_input|;t t
12556 s&@top_builddir@&$ac_top_builddir_sub&;t t
12557 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12558 s&@srcdir@&$ac_srcdir&;t t
12559 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12560 s&@top_srcdir@&$ac_top_srcdir&;t t
12561 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12562 s&@builddir@&$ac_builddir&;t t
12563 s&@abs_builddir@&$ac_abs_builddir&;t t
12564 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12565 s&@INSTALL@&$ac_INSTALL&;t t
12566 $ac_datarootdir_hack
12567 "
12568 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12569 if $ac_cs_awk_getline; then
12570   $AWK -f "$tmp/subs.awk"
12571 else
12572   $AWK -f "$tmp/subs.awk" | $SHELL
12573 fi >$tmp/out \
12574   || as_fn_error "could not create $ac_file" "$LINENO" 5
12575
12576 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12577   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12578   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12579   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12580 which seems to be undefined.  Please make sure it is defined." >&5
12581 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12582 which seems to be undefined.  Please make sure it is defined." >&2;}
12583
12584   rm -f "$tmp/stdin"
12585   case $ac_file in
12586   -) cat "$tmp/out" && rm -f "$tmp/out";;
12587   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12588   esac \
12589   || as_fn_error "could not create $ac_file" "$LINENO" 5
12590  ;;
12591   :H)
12592   #
12593   # CONFIG_HEADER
12594   #
12595   if test x"$ac_file" != x-; then
12596     {
12597       $as_echo "/* $configure_input  */" \
12598       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12599     } >"$tmp/config.h" \
12600       || as_fn_error "could not create $ac_file" "$LINENO" 5
12601     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12602       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12603 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12604     else
12605       rm -f "$ac_file"
12606       mv "$tmp/config.h" "$ac_file" \
12607         || as_fn_error "could not create $ac_file" "$LINENO" 5
12608     fi
12609   else
12610     $as_echo "/* $configure_input  */" \
12611       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12612       || as_fn_error "could not create -" "$LINENO" 5
12613   fi
12614  ;;
12615
12616   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12617 $as_echo "$as_me: executing $ac_file commands" >&6;}
12618  ;;
12619   esac
12620
12621
12622   case $ac_file$ac_mode in
12623     "default-1":C)
12624     for ac_file in $CONFIG_FILES; do
12625       # Support "outfile[:infile[:infile...]]"
12626       case "$ac_file" in
12627         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12628       esac
12629       # PO directories have a Makefile.in generated from Makefile.in.in.
12630       case "$ac_file" in */Makefile.in)
12631         # Adjust a relative srcdir.
12632         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12633         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12634         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12635         # In autoconf-2.13 it is called $ac_given_srcdir.
12636         # In autoconf-2.50 it is called $srcdir.
12637         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12638         case "$ac_given_srcdir" in
12639           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12640           /*) top_srcdir="$ac_given_srcdir" ;;
12641           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
12642         esac
12643         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12644           rm -f "$ac_dir/POTFILES"
12645           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12646           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12647           POMAKEFILEDEPS="POTFILES.in"
12648           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12649           # on $ac_dir but don't depend on user-specified configuration
12650           # parameters.
12651           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12652             # The LINGUAS file contains the set of available languages.
12653             if test -n "$OBSOLETE_ALL_LINGUAS"; then
12654               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12655             fi
12656             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12657             # Hide the ALL_LINGUAS assigment from automake.
12658             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12659             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12660           else
12661             # The set of available languages was given in configure.in.
12662             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12663           fi
12664           # Compute POFILES
12665           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12666           # Compute UPDATEPOFILES
12667           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12668           # Compute DUMMYPOFILES
12669           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12670           # Compute GMOFILES
12671           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12672           case "$ac_given_srcdir" in
12673             .) srcdirpre= ;;
12674             *) srcdirpre='$(srcdir)/' ;;
12675           esac
12676           POFILES=
12677           UPDATEPOFILES=
12678           DUMMYPOFILES=
12679           GMOFILES=
12680           for lang in $ALL_LINGUAS; do
12681             POFILES="$POFILES $srcdirpre$lang.po"
12682             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12683             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12684             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12685           done
12686           # CATALOGS depends on both $ac_dir and the user's LINGUAS
12687           # environment variable.
12688           INST_LINGUAS=
12689           if test -n "$ALL_LINGUAS"; then
12690             for presentlang in $ALL_LINGUAS; do
12691               useit=no
12692               if test "%UNSET%" != "$LINGUAS"; then
12693                 desiredlanguages="$LINGUAS"
12694               else
12695                 desiredlanguages="$ALL_LINGUAS"
12696               fi
12697               for desiredlang in $desiredlanguages; do
12698                 # Use the presentlang catalog if desiredlang is
12699                 #   a. equal to presentlang, or
12700                 #   b. a variant of presentlang (because in this case,
12701                 #      presentlang can be used as a fallback for messages
12702                 #      which are not translated in the desiredlang catalog).
12703                 case "$desiredlang" in
12704                   "$presentlang"*) useit=yes;;
12705                 esac
12706               done
12707               if test $useit = yes; then
12708                 INST_LINGUAS="$INST_LINGUAS $presentlang"
12709               fi
12710             done
12711           fi
12712           CATALOGS=
12713           if test -n "$INST_LINGUAS"; then
12714             for lang in $INST_LINGUAS; do
12715               CATALOGS="$CATALOGS $lang.gmo"
12716             done
12717           fi
12718           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12719           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"
12720           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12721             if test -f "$f"; then
12722               case "$f" in
12723                 *.orig | *.bak | *~) ;;
12724                 *) cat "$f" >> "$ac_dir/Makefile" ;;
12725               esac
12726             fi
12727           done
12728         fi
12729         ;;
12730       esac
12731     done ;;
12732
12733   esac
12734 done # for ac_tag
12735
12736
12737 as_fn_exit 0
12738 _ACEOF
12739 ac_clean_files=$ac_clean_files_save
12740
12741 test $ac_write_fail = 0 ||
12742   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12743
12744
12745 # configure is writing to config.log, and then calls config.status.
12746 # config.status does its own redirection, appending to config.log.
12747 # Unfortunately, on DOS this fails, as config.log is still kept open
12748 # by configure, so config.status won't be able to write to it; its
12749 # output is simply discarded.  So we exec the FD to /dev/null,
12750 # effectively closing config.log, so it can be properly (re)opened and
12751 # appended to by config.status.  When coming back to configure, we
12752 # need to make the FD available again.
12753 if test "$no_create" != yes; then
12754   ac_cs_success=:
12755   ac_config_status_args=
12756   test "$silent" = yes &&
12757     ac_config_status_args="$ac_config_status_args --quiet"
12758   exec 5>/dev/null
12759   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12760   exec 5>>config.log
12761   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12762   # would make configure fail if this is the last instruction.
12763   $ac_cs_success || as_fn_exit $?
12764 fi
12765 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12766   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12767 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12768 fi
12769
12770 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi