OSDN Git Service

e2fsck: catch termination signals and print information about them
[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 INTL_FLAGS
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 RANLIB
658 MSGMERGE
659 XGETTEXT
660 GMSGFMT
661 MSGFMT
662 USE_NLS
663 MKINSTALLDIRS
664 INSTALL_DATA
665 INSTALL_SCRIPT
666 INSTALL_PROGRAM
667 SET_MAKE
668 VERSION
669 PACKAGE
670 GETTEXT_PACKAGE
671 UUIDD_CMT
672 E2INITRD_MAN
673 E2INITRD_PROG
674 FSCK_MAN
675 FSCK_PROG
676 DEFRAG_CMT
677 RESIZER_CMT
678 IMAGER_CMT
679 DEBUGFS_CMT
680 BLKID_CMT
681 DEPPROFILED_LIBBLKID
682 PROFILED_LIBBLKID
683 DEPSTATIC_LIBBLKID
684 STATIC_LIBBLKID
685 DEPLIBBLKID
686 LIBBLKID
687 UUID_CMT
688 DEPPROFILED_LIBUUID
689 PROFILED_LIBUUID
690 DEPSTATIC_LIBUUID
691 STATIC_LIBUUID
692 DEPLIBUUID
693 LIBUUID
694 PKG_CONFIG
695 TEST_IO_CMT
696 PRIVATE_LIBS_CMT
697 LDFLAG_DYNAMIC
698 PROFILED_LIB_EXT
699 STATIC_LIB_EXT
700 LIB_EXT
701 CHECKER_CMT
702 PROFILE_CMT
703 BSDLIB_CMT
704 ELF_CMT
705 HTREE_CMT
706 Q
707 E
708 LINK_BUILD_FLAGS
709 LINK_INSTALL_FLAGS
710 MAINTAINER_CMT
711 LINUX_INCLUDE
712 EGREP
713 GREP
714 CPP
715 RDYNAMIC
716 DLOPEN_LIB
717 OBJEXT
718 EXEEXT
719 ac_ct_CC
720 CPPFLAGS
721 LDFLAGS
722 CFLAGS
723 CC
724 host_os
725 host_vendor
726 host_cpu
727 host
728 build_os
729 build_vendor
730 build_cpu
731 build
732 E2FSPROGS_PKGVER
733 E2FSPROGS_VERSION
734 E2FSPROGS_DAY
735 E2FSPROGS_MONTH
736 E2FSPROGS_YEAR
737 target_alias
738 host_alias
739 build_alias
740 LIBS
741 ECHO_T
742 ECHO_N
743 ECHO_C
744 DEFS
745 mandir
746 localedir
747 libdir
748 psdir
749 pdfdir
750 dvidir
751 htmldir
752 infodir
753 docdir
754 oldincludedir
755 includedir
756 localstatedir
757 sharedstatedir
758 sysconfdir
759 datadir
760 datarootdir
761 libexecdir
762 sbindir
763 bindir
764 program_transform_name
765 prefix
766 exec_prefix
767 PACKAGE_URL
768 PACKAGE_BUGREPORT
769 PACKAGE_STRING
770 PACKAGE_VERSION
771 PACKAGE_TARNAME
772 PACKAGE_NAME
773 PATH_SEPARATOR
774 SHELL'
775 ac_subst_files='MCONFIG
776 MAKEFILE_ELF
777 MAKEFILE_BSDLIB
778 MAKEFILE_PROFILE
779 MAKEFILE_CHECKER
780 MAKEFILE_LIBRARY
781 ASM_TYPES_HEADER
782 PUBLIC_CONFIG_HEADER'
783 ac_user_opts='
784 enable_option_checking
785 with_diet_libc
786 with_cc
787 with_ccopts
788 with_ldopts
789 with_root_prefix
790 enable_maintainer_mode
791 enable_symlink_install
792 enable_symlink_build
793 enable_verbose_makecmds
794 enable_compression
795 enable_htree
796 enable_elf_shlibs
797 enable_bsd_shlibs
798 enable_profile
799 enable_checker
800 enable_jbd_debug
801 enable_blkid_debug
802 enable_testio_debug
803 enable_libuuid
804 enable_libblkid
805 enable_debugfs
806 enable_imager
807 enable_resizer
808 enable_defrag
809 enable_fsck
810 enable_e2initrd_helper
811 enable_tls
812 enable_uuidd
813 enable_nls
814 with_gnu_ld
815 enable_rpath
816 with_libiconv_prefix
817 with_included_gettext
818 with_libintl_prefix
819 '
820       ac_precious_vars='build_alias
821 host_alias
822 target_alias
823 CC
824 CFLAGS
825 LDFLAGS
826 LIBS
827 CPPFLAGS
828 CPP
829 PKG_CONFIG'
830
831
832 # Initialize some variables set by options.
833 ac_init_help=
834 ac_init_version=false
835 ac_unrecognized_opts=
836 ac_unrecognized_sep=
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
839 cache_file=/dev/null
840 exec_prefix=NONE
841 no_create=
842 no_recursion=
843 prefix=NONE
844 program_prefix=NONE
845 program_suffix=NONE
846 program_transform_name=s,x,x,
847 silent=
848 site=
849 srcdir=
850 verbose=
851 x_includes=NONE
852 x_libraries=NONE
853
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE}'
871 infodir='${datarootdir}/info'
872 htmldir='${docdir}'
873 dvidir='${docdir}'
874 pdfdir='${docdir}'
875 psdir='${docdir}'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
879
880 ac_prev=
881 ac_dashdash=
882 for ac_option
883 do
884   # If the previous option needs an argument, assign it.
885   if test -n "$ac_prev"; then
886     eval $ac_prev=\$ac_option
887     ac_prev=
888     continue
889   fi
890
891   case $ac_option in
892   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893   *)    ac_optarg=yes ;;
894   esac
895
896   # Accept the important Cygnus configure options, so we can diagnose typos.
897
898   case $ac_dashdash$ac_option in
899   --)
900     ac_dashdash=yes ;;
901
902   -bindir | --bindir | --bindi | --bind | --bin | --bi)
903     ac_prev=bindir ;;
904   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905     bindir=$ac_optarg ;;
906
907   -build | --build | --buil | --bui | --bu)
908     ac_prev=build_alias ;;
909   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910     build_alias=$ac_optarg ;;
911
912   -cache-file | --cache-file | --cache-fil | --cache-fi \
913   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914     ac_prev=cache_file ;;
915   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917     cache_file=$ac_optarg ;;
918
919   --config-cache | -C)
920     cache_file=config.cache ;;
921
922   -datadir | --datadir | --datadi | --datad)
923     ac_prev=datadir ;;
924   -datadir=* | --datadir=* | --datadi=* | --datad=*)
925     datadir=$ac_optarg ;;
926
927   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928   | --dataroo | --dataro | --datar)
929     ac_prev=datarootdir ;;
930   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932     datarootdir=$ac_optarg ;;
933
934   -disable-* | --disable-*)
935     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936     # Reject names that are not valid shell variable names.
937     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938       as_fn_error "invalid feature name: $ac_useropt"
939     ac_useropt_orig=$ac_useropt
940     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941     case $ac_user_opts in
942       *"
943 "enable_$ac_useropt"
944 "*) ;;
945       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946          ac_unrecognized_sep=', ';;
947     esac
948     eval enable_$ac_useropt=no ;;
949
950   -docdir | --docdir | --docdi | --doc | --do)
951     ac_prev=docdir ;;
952   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953     docdir=$ac_optarg ;;
954
955   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956     ac_prev=dvidir ;;
957   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958     dvidir=$ac_optarg ;;
959
960   -enable-* | --enable-*)
961     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962     # Reject names that are not valid shell variable names.
963     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964       as_fn_error "invalid feature name: $ac_useropt"
965     ac_useropt_orig=$ac_useropt
966     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967     case $ac_user_opts in
968       *"
969 "enable_$ac_useropt"
970 "*) ;;
971       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972          ac_unrecognized_sep=', ';;
973     esac
974     eval enable_$ac_useropt=\$ac_optarg ;;
975
976   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978   | --exec | --exe | --ex)
979     ac_prev=exec_prefix ;;
980   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982   | --exec=* | --exe=* | --ex=*)
983     exec_prefix=$ac_optarg ;;
984
985   -gas | --gas | --ga | --g)
986     # Obsolete; use --with-gas.
987     with_gas=yes ;;
988
989   -help | --help | --hel | --he | -h)
990     ac_init_help=long ;;
991   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992     ac_init_help=recursive ;;
993   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994     ac_init_help=short ;;
995
996   -host | --host | --hos | --ho)
997     ac_prev=host_alias ;;
998   -host=* | --host=* | --hos=* | --ho=*)
999     host_alias=$ac_optarg ;;
1000
1001   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002     ac_prev=htmldir ;;
1003   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004   | --ht=*)
1005     htmldir=$ac_optarg ;;
1006
1007   -includedir | --includedir | --includedi | --included | --include \
1008   | --includ | --inclu | --incl | --inc)
1009     ac_prev=includedir ;;
1010   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011   | --includ=* | --inclu=* | --incl=* | --inc=*)
1012     includedir=$ac_optarg ;;
1013
1014   -infodir | --infodir | --infodi | --infod | --info | --inf)
1015     ac_prev=infodir ;;
1016   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017     infodir=$ac_optarg ;;
1018
1019   -libdir | --libdir | --libdi | --libd)
1020     ac_prev=libdir ;;
1021   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022     libdir=$ac_optarg ;;
1023
1024   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025   | --libexe | --libex | --libe)
1026     ac_prev=libexecdir ;;
1027   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028   | --libexe=* | --libex=* | --libe=*)
1029     libexecdir=$ac_optarg ;;
1030
1031   -localedir | --localedir | --localedi | --localed | --locale)
1032     ac_prev=localedir ;;
1033   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034     localedir=$ac_optarg ;;
1035
1036   -localstatedir | --localstatedir | --localstatedi | --localstated \
1037   | --localstate | --localstat | --localsta | --localst | --locals)
1038     ac_prev=localstatedir ;;
1039   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041     localstatedir=$ac_optarg ;;
1042
1043   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044     ac_prev=mandir ;;
1045   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046     mandir=$ac_optarg ;;
1047
1048   -nfp | --nfp | --nf)
1049     # Obsolete; use --without-fp.
1050     with_fp=no ;;
1051
1052   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053   | --no-cr | --no-c | -n)
1054     no_create=yes ;;
1055
1056   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058     no_recursion=yes ;;
1059
1060   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062   | --oldin | --oldi | --old | --ol | --o)
1063     ac_prev=oldincludedir ;;
1064   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067     oldincludedir=$ac_optarg ;;
1068
1069   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070     ac_prev=prefix ;;
1071   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072     prefix=$ac_optarg ;;
1073
1074   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075   | --program-pre | --program-pr | --program-p)
1076     ac_prev=program_prefix ;;
1077   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079     program_prefix=$ac_optarg ;;
1080
1081   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082   | --program-suf | --program-su | --program-s)
1083     ac_prev=program_suffix ;;
1084   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086     program_suffix=$ac_optarg ;;
1087
1088   -program-transform-name | --program-transform-name \
1089   | --program-transform-nam | --program-transform-na \
1090   | --program-transform-n | --program-transform- \
1091   | --program-transform | --program-transfor \
1092   | --program-transfo | --program-transf \
1093   | --program-trans | --program-tran \
1094   | --progr-tra | --program-tr | --program-t)
1095     ac_prev=program_transform_name ;;
1096   -program-transform-name=* | --program-transform-name=* \
1097   | --program-transform-nam=* | --program-transform-na=* \
1098   | --program-transform-n=* | --program-transform-=* \
1099   | --program-transform=* | --program-transfor=* \
1100   | --program-transfo=* | --program-transf=* \
1101   | --program-trans=* | --program-tran=* \
1102   | --progr-tra=* | --program-tr=* | --program-t=*)
1103     program_transform_name=$ac_optarg ;;
1104
1105   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106     ac_prev=pdfdir ;;
1107   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108     pdfdir=$ac_optarg ;;
1109
1110   -psdir | --psdir | --psdi | --psd | --ps)
1111     ac_prev=psdir ;;
1112   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113     psdir=$ac_optarg ;;
1114
1115   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116   | -silent | --silent | --silen | --sile | --sil)
1117     silent=yes ;;
1118
1119   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120     ac_prev=sbindir ;;
1121   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122   | --sbi=* | --sb=*)
1123     sbindir=$ac_optarg ;;
1124
1125   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127   | --sharedst | --shareds | --shared | --share | --shar \
1128   | --sha | --sh)
1129     ac_prev=sharedstatedir ;;
1130   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133   | --sha=* | --sh=*)
1134     sharedstatedir=$ac_optarg ;;
1135
1136   -site | --site | --sit)
1137     ac_prev=site ;;
1138   -site=* | --site=* | --sit=*)
1139     site=$ac_optarg ;;
1140
1141   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142     ac_prev=srcdir ;;
1143   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144     srcdir=$ac_optarg ;;
1145
1146   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147   | --syscon | --sysco | --sysc | --sys | --sy)
1148     ac_prev=sysconfdir ;;
1149   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151     sysconfdir=$ac_optarg ;;
1152
1153   -target | --target | --targe | --targ | --tar | --ta | --t)
1154     ac_prev=target_alias ;;
1155   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156     target_alias=$ac_optarg ;;
1157
1158   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159     verbose=yes ;;
1160
1161   -version | --version | --versio | --versi | --vers | -V)
1162     ac_init_version=: ;;
1163
1164   -with-* | --with-*)
1165     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166     # Reject names that are not valid shell variable names.
1167     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168       as_fn_error "invalid package name: $ac_useropt"
1169     ac_useropt_orig=$ac_useropt
1170     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171     case $ac_user_opts in
1172       *"
1173 "with_$ac_useropt"
1174 "*) ;;
1175       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176          ac_unrecognized_sep=', ';;
1177     esac
1178     eval with_$ac_useropt=\$ac_optarg ;;
1179
1180   -without-* | --without-*)
1181     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182     # Reject names that are not valid shell variable names.
1183     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184       as_fn_error "invalid package name: $ac_useropt"
1185     ac_useropt_orig=$ac_useropt
1186     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187     case $ac_user_opts in
1188       *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192          ac_unrecognized_sep=', ';;
1193     esac
1194     eval with_$ac_useropt=no ;;
1195
1196   --x)
1197     # Obsolete; use --with-x.
1198     with_x=yes ;;
1199
1200   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201   | --x-incl | --x-inc | --x-in | --x-i)
1202     ac_prev=x_includes ;;
1203   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205     x_includes=$ac_optarg ;;
1206
1207   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209     ac_prev=x_libraries ;;
1210   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212     x_libraries=$ac_optarg ;;
1213
1214   -*) as_fn_error "unrecognized option: \`$ac_option'
1215 Try \`$0 --help' for more information."
1216     ;;
1217
1218   *=*)
1219     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220     # Reject names that are not valid shell variable names.
1221     case $ac_envvar in #(
1222       '' | [0-9]* | *[!_$as_cr_alnum]* )
1223       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1224     esac
1225     eval $ac_envvar=\$ac_optarg
1226     export $ac_envvar ;;
1227
1228   *)
1229     # FIXME: should be removed in autoconf 3.0.
1230     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1234     ;;
1235
1236   esac
1237 done
1238
1239 if test -n "$ac_prev"; then
1240   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241   as_fn_error "missing argument to $ac_option"
1242 fi
1243
1244 if test -n "$ac_unrecognized_opts"; then
1245   case $enable_option_checking in
1246     no) ;;
1247     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1248     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1249   esac
1250 fi
1251
1252 # Check all directory arguments for consistency.
1253 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254                 datadir sysconfdir sharedstatedir localstatedir includedir \
1255                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256                 libdir localedir mandir
1257 do
1258   eval ac_val=\$$ac_var
1259   # Remove trailing slashes.
1260   case $ac_val in
1261     */ )
1262       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263       eval $ac_var=\$ac_val;;
1264   esac
1265   # Be sure to have absolute directory names.
1266   case $ac_val in
1267     [\\/$]* | ?:[\\/]* )  continue;;
1268     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1269   esac
1270   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1271 done
1272
1273 # There might be people who depend on the old broken behavior: `$host'
1274 # used to hold the argument of --host etc.
1275 # FIXME: To remove some day.
1276 build=$build_alias
1277 host=$host_alias
1278 target=$target_alias
1279
1280 # FIXME: To remove some day.
1281 if test "x$host_alias" != x; then
1282   if test "x$build_alias" = x; then
1283     cross_compiling=maybe
1284     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1285     If a cross compiler is detected then cross compile mode will be used." >&2
1286   elif test "x$build_alias" != "x$host_alias"; then
1287     cross_compiling=yes
1288   fi
1289 fi
1290
1291 ac_tool_prefix=
1292 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293
1294 test "$silent" = yes && exec 6>/dev/null
1295
1296
1297 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298 ac_ls_di=`ls -di .` &&
1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300   as_fn_error "working directory cannot be determined"
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302   as_fn_error "pwd does not report name of working directory"
1303
1304
1305 # Find the source files, if location was not specified.
1306 if test -z "$srcdir"; then
1307   ac_srcdir_defaulted=yes
1308   # Try the directory containing this script, then the parent directory.
1309   ac_confdir=`$as_dirname -- "$as_myself" ||
1310 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311          X"$as_myself" : 'X\(//\)[^/]' \| \
1312          X"$as_myself" : 'X\(//\)$' \| \
1313          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314 $as_echo X"$as_myself" |
1315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316             s//\1/
1317             q
1318           }
1319           /^X\(\/\/\)[^/].*/{
1320             s//\1/
1321             q
1322           }
1323           /^X\(\/\/\)$/{
1324             s//\1/
1325             q
1326           }
1327           /^X\(\/\).*/{
1328             s//\1/
1329             q
1330           }
1331           s/.*/./; q'`
1332   srcdir=$ac_confdir
1333   if test ! -r "$srcdir/$ac_unique_file"; then
1334     srcdir=..
1335   fi
1336 else
1337   ac_srcdir_defaulted=no
1338 fi
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1342 fi
1343 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344 ac_abs_confdir=`(
1345         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1346         pwd)`
1347 # When building in place, set srcdir=.
1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349   srcdir=.
1350 fi
1351 # Remove unnecessary trailing slashes from srcdir.
1352 # Double slashes in file names in object file debugging info
1353 # mess up M-x gdb in Emacs.
1354 case $srcdir in
1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356 esac
1357 for ac_var in $ac_precious_vars; do
1358   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359   eval ac_env_${ac_var}_value=\$${ac_var}
1360   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362 done
1363
1364 #
1365 # Report the --help message.
1366 #
1367 if test "$ac_init_help" = "long"; then
1368   # Omit some internal or obsolete options to make the list less imposing.
1369   # This message is too long to be a string in the A/UX 3.1 sh.
1370   cat <<_ACEOF
1371 \`configure' configures this package to adapt to many kinds of systems.
1372
1373 Usage: $0 [OPTION]... [VAR=VALUE]...
1374
1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376 VAR=VALUE.  See below for descriptions of some of the useful variables.
1377
1378 Defaults for the options are specified in brackets.
1379
1380 Configuration:
1381   -h, --help              display this help and exit
1382       --help=short        display options specific to this package
1383       --help=recursive    display the short help of all the included packages
1384   -V, --version           display version information and exit
1385   -q, --quiet, --silent   do not print \`checking...' messages
1386       --cache-file=FILE   cache test results in FILE [disabled]
1387   -C, --config-cache      alias for \`--cache-file=config.cache'
1388   -n, --no-create         do not create output files
1389       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1390
1391 Installation directories:
1392   --prefix=PREFIX         install architecture-independent files in PREFIX
1393                           [$ac_default_prefix]
1394   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1395                           [PREFIX]
1396
1397 By default, \`make install' will install all the files in
1398 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1399 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400 for instance \`--prefix=\$HOME'.
1401
1402 For better control, use the options below.
1403
1404 Fine tuning of the installation directories:
1405   --bindir=DIR            user executables [EPREFIX/bin]
1406   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1407   --libexecdir=DIR        program executables [EPREFIX/libexec]
1408   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1409   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1410   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1411   --libdir=DIR            object code libraries [EPREFIX/lib]
1412   --includedir=DIR        C header files [PREFIX/include]
1413   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1414   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1415   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1416   --infodir=DIR           info documentation [DATAROOTDIR/info]
1417   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1418   --mandir=DIR            man documentation [DATAROOTDIR/man]
1419   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1420   --htmldir=DIR           html documentation [DOCDIR]
1421   --dvidir=DIR            dvi documentation [DOCDIR]
1422   --pdfdir=DIR            pdf documentation [DOCDIR]
1423   --psdir=DIR             ps documentation [DOCDIR]
1424 _ACEOF
1425
1426   cat <<\_ACEOF
1427
1428 System types:
1429   --build=BUILD     configure for building on BUILD [guessed]
1430   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1431 _ACEOF
1432 fi
1433
1434 if test -n "$ac_init_help"; then
1435
1436   cat <<\_ACEOF
1437
1438 Optional Features:
1439   --disable-option-checking  ignore unrecognized --enable/--with options
1440   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1441   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1442   --enable-maintainer-mode enable makefile rules useful for maintainers
1443   --enable-symlink-install use symlinks when installing instead of hard links
1444   --enable-symlink-build  use symlinks while building instead of hard links
1445   --enable-verbose-makecmds enable verbose make command output
1446   --enable-compression    enable EXPERIMENTAL compression support
1447   --enable-htree          enable EXPERIMENTAL htree directory support
1448   --enable-elf-shlibs     select ELF shared libraries
1449   --enable-bsd-shlibs     select BSD shared libraries
1450   --enable-profile        build profiling libraries
1451   --enable-checker        build checker libraries
1452   --enable-jbd-debug      enable journal debugging
1453   --enable-blkid-debug    enable blkid debugging
1454   --disable-testio-debug  disable the use of the test I/O manager for debugging
1455   --disable-libuuid       do not build private uuid library
1456   --disable-libblkid      do not build private blkid library
1457   --disable-debugfs       disable support of debugfs program
1458   --disable-imager        disable support of e2image program
1459   --disable-resizer       disable support of e2resize program
1460   --disable-defrag        disable support of e4defrag program
1461   --enable-fsck           build fsck wrapper program
1462   --enable-e2initrd-helper build e2initrd-helper program
1463   --disable-tls           disable use of thread local support
1464   --disable-uuidd         disable building the uuid daemon
1465   --disable-nls           do not use Native Language Support
1466   --disable-rpath         do not hardcode runtime library paths
1467
1468 Optional Packages:
1469   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1470   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1471   --with-diet-libc        use diet libc
1472   --with-cc               no longer supported, use CC= instead
1473   --with-ccopts           no longer supported, use CFLAGS= instead
1474   --with-ldopts           no longer supported, use LDFLAGS= instead
1475   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1476   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1477   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1478   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1479   --with-included-gettext use the GNU gettext library included here
1480   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1481   --without-libintl-prefix     don't search for libintl in includedir and libdir
1482
1483 Some influential environment variables:
1484   CC          C compiler command
1485   CFLAGS      C compiler flags
1486   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1487               nonstandard directory <lib dir>
1488   LIBS        libraries to pass to the linker, e.g. -l<library>
1489   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1490               you have headers in a nonstandard directory <include dir>
1491   CPP         C preprocessor
1492   PKG_CONFIG  path to pkg-config utility
1493
1494 Use these variables to override the choices made by `configure' or to help
1495 it to find libraries and programs with nonstandard names/locations.
1496
1497 Report bugs to the package provider.
1498 _ACEOF
1499 ac_status=$?
1500 fi
1501
1502 if test "$ac_init_help" = "recursive"; then
1503   # If there are subdirs, report their specific --help.
1504   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505     test -d "$ac_dir" ||
1506       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1507       continue
1508     ac_builddir=.
1509
1510 case "$ac_dir" in
1511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *)
1513   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1514   # A ".." for each directory in $ac_dir_suffix.
1515   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1516   case $ac_top_builddir_sub in
1517   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519   esac ;;
1520 esac
1521 ac_abs_top_builddir=$ac_pwd
1522 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523 # for backward compatibility:
1524 ac_top_builddir=$ac_top_build_prefix
1525
1526 case $srcdir in
1527   .)  # We are building in place.
1528     ac_srcdir=.
1529     ac_top_srcdir=$ac_top_builddir_sub
1530     ac_abs_top_srcdir=$ac_pwd ;;
1531   [\\/]* | ?:[\\/]* )  # Absolute name.
1532     ac_srcdir=$srcdir$ac_dir_suffix;
1533     ac_top_srcdir=$srcdir
1534     ac_abs_top_srcdir=$srcdir ;;
1535   *) # Relative name.
1536     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537     ac_top_srcdir=$ac_top_build_prefix$srcdir
1538     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539 esac
1540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541
1542     cd "$ac_dir" || { ac_status=$?; continue; }
1543     # Check for guested configure.
1544     if test -f "$ac_srcdir/configure.gnu"; then
1545       echo &&
1546       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547     elif test -f "$ac_srcdir/configure"; then
1548       echo &&
1549       $SHELL "$ac_srcdir/configure" --help=recursive
1550     else
1551       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552     fi || ac_status=$?
1553     cd "$ac_pwd" || { ac_status=$?; break; }
1554   done
1555 fi
1556
1557 test -n "$ac_init_help" && exit $ac_status
1558 if $ac_init_version; then
1559   cat <<\_ACEOF
1560 configure
1561 generated by GNU Autoconf 2.65
1562
1563 Copyright (C) 2009 Free Software Foundation, Inc.
1564 This configure script is free software; the Free Software Foundation
1565 gives unlimited permission to copy, distribute and modify it.
1566 _ACEOF
1567   exit
1568 fi
1569
1570 ## ------------------------ ##
1571 ## Autoconf initialization. ##
1572 ## ------------------------ ##
1573
1574 # ac_fn_c_try_compile LINENO
1575 # --------------------------
1576 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_c_try_compile ()
1578 {
1579   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580   rm -f conftest.$ac_objext
1581   if { { ac_try="$ac_compile"
1582 case "(($ac_try" in
1583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584   *) ac_try_echo=$ac_try;;
1585 esac
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588   (eval "$ac_compile") 2>conftest.err
1589   ac_status=$?
1590   if test -s conftest.err; then
1591     grep -v '^ *+' conftest.err >conftest.er1
1592     cat conftest.er1 >&5
1593     mv -f conftest.er1 conftest.err
1594   fi
1595   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596   test $ac_status = 0; } && {
1597          test -z "$ac_c_werror_flag" ||
1598          test ! -s conftest.err
1599        } && test -s conftest.$ac_objext; then :
1600   ac_retval=0
1601 else
1602   $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.$ac_ext >&5
1604
1605         ac_retval=1
1606 fi
1607   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1608   as_fn_set_status $ac_retval
1609
1610 } # ac_fn_c_try_compile
1611
1612 # ac_fn_c_try_link LINENO
1613 # -----------------------
1614 # Try to link conftest.$ac_ext, and return whether this succeeded.
1615 ac_fn_c_try_link ()
1616 {
1617   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618   rm -f conftest.$ac_objext conftest$ac_exeext
1619   if { { ac_try="$ac_link"
1620 case "(($ac_try" in
1621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622   *) ac_try_echo=$ac_try;;
1623 esac
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626   (eval "$ac_link") 2>conftest.err
1627   ac_status=$?
1628   if test -s conftest.err; then
1629     grep -v '^ *+' conftest.err >conftest.er1
1630     cat conftest.er1 >&5
1631     mv -f conftest.er1 conftest.err
1632   fi
1633   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634   test $ac_status = 0; } && {
1635          test -z "$ac_c_werror_flag" ||
1636          test ! -s conftest.err
1637        } && test -s conftest$ac_exeext && {
1638          test "$cross_compiling" = yes ||
1639          $as_test_x conftest$ac_exeext
1640        }; then :
1641   ac_retval=0
1642 else
1643   $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1645
1646         ac_retval=1
1647 fi
1648   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1649   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1650   # interfere with the next link command; also delete a directory that is
1651   # left behind by Apple's compiler.  We do this before executing the actions.
1652   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1653   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1654   as_fn_set_status $ac_retval
1655
1656 } # ac_fn_c_try_link
1657
1658 # ac_fn_c_try_cpp LINENO
1659 # ----------------------
1660 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1661 ac_fn_c_try_cpp ()
1662 {
1663   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664   if { { ac_try="$ac_cpp conftest.$ac_ext"
1665 case "(($ac_try" in
1666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667   *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1672   ac_status=$?
1673   if test -s conftest.err; then
1674     grep -v '^ *+' conftest.err >conftest.er1
1675     cat conftest.er1 >&5
1676     mv -f conftest.er1 conftest.err
1677   fi
1678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679   test $ac_status = 0; } >/dev/null && {
1680          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1681          test ! -s conftest.err
1682        }; then :
1683   ac_retval=0
1684 else
1685   $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1687
1688     ac_retval=1
1689 fi
1690   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1691   as_fn_set_status $ac_retval
1692
1693 } # ac_fn_c_try_cpp
1694
1695 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1696 # -------------------------------------------------------
1697 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1698 # the include files in INCLUDES and setting the cache variable VAR
1699 # accordingly.
1700 ac_fn_c_check_header_mongrel ()
1701 {
1702   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705 $as_echo_n "checking for $2... " >&6; }
1706 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1707   $as_echo_n "(cached) " >&6
1708 fi
1709 eval ac_res=\$$3
1710                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711 $as_echo "$ac_res" >&6; }
1712 else
1713   # Is the header compilable?
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1715 $as_echo_n "checking $2 usability... " >&6; }
1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h.  */
1718 $4
1719 #include <$2>
1720 _ACEOF
1721 if ac_fn_c_try_compile "$LINENO"; then :
1722   ac_header_compiler=yes
1723 else
1724   ac_header_compiler=no
1725 fi
1726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1728 $as_echo "$ac_header_compiler" >&6; }
1729
1730 # Is the header present?
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1732 $as_echo_n "checking $2 presence... " >&6; }
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h.  */
1735 #include <$2>
1736 _ACEOF
1737 if ac_fn_c_try_cpp "$LINENO"; then :
1738   ac_header_preproc=yes
1739 else
1740   ac_header_preproc=no
1741 fi
1742 rm -f conftest.err conftest.$ac_ext
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1744 $as_echo "$ac_header_preproc" >&6; }
1745
1746 # So?  What about this header?
1747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1748   yes:no: )
1749     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1750 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1751     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1752 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1753     ;;
1754   no:yes:* )
1755     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1756 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1757     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1758 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1759     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1760 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1761     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1762 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1763     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1764 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1765     ;;
1766 esac
1767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768 $as_echo_n "checking for $2... " >&6; }
1769 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1770   $as_echo_n "(cached) " >&6
1771 else
1772   eval "$3=\$ac_header_compiler"
1773 fi
1774 eval ac_res=\$$3
1775                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776 $as_echo "$ac_res" >&6; }
1777 fi
1778   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1779
1780 } # ac_fn_c_check_header_mongrel
1781
1782 # ac_fn_c_try_run LINENO
1783 # ----------------------
1784 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1785 # that executables *can* be run.
1786 ac_fn_c_try_run ()
1787 {
1788   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789   if { { ac_try="$ac_link"
1790 case "(($ac_try" in
1791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792   *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796   (eval "$ac_link") 2>&5
1797   ac_status=$?
1798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1800   { { case "(($ac_try" in
1801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802   *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806   (eval "$ac_try") 2>&5
1807   ac_status=$?
1808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809   test $ac_status = 0; }; }; then :
1810   ac_retval=0
1811 else
1812   $as_echo "$as_me: program exited with status $ac_status" >&5
1813        $as_echo "$as_me: failed program was:" >&5
1814 sed 's/^/| /' conftest.$ac_ext >&5
1815
1816        ac_retval=$ac_status
1817 fi
1818   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1820   as_fn_set_status $ac_retval
1821
1822 } # ac_fn_c_try_run
1823
1824 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1825 # -------------------------------------------------------
1826 # Tests whether HEADER exists and can be compiled using the include files in
1827 # INCLUDES, setting the cache variable VAR accordingly.
1828 ac_fn_c_check_header_compile ()
1829 {
1830   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 $as_echo_n "checking for $2... " >&6; }
1833 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1834   $as_echo_n "(cached) " >&6
1835 else
1836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h.  */
1838 $4
1839 #include <$2>
1840 _ACEOF
1841 if ac_fn_c_try_compile "$LINENO"; then :
1842   eval "$3=yes"
1843 else
1844   eval "$3=no"
1845 fi
1846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1847 fi
1848 eval ac_res=\$$3
1849                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850 $as_echo "$ac_res" >&6; }
1851   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852
1853 } # ac_fn_c_check_header_compile
1854
1855 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1856 # -------------------------------------------
1857 # Tests whether TYPE exists after having included INCLUDES, setting cache
1858 # variable VAR accordingly.
1859 ac_fn_c_check_type ()
1860 {
1861   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863 $as_echo_n "checking for $2... " >&6; }
1864 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1865   $as_echo_n "(cached) " >&6
1866 else
1867   eval "$3=no"
1868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h.  */
1870 $4
1871 int
1872 main ()
1873 {
1874 if (sizeof ($2))
1875          return 0;
1876   ;
1877   return 0;
1878 }
1879 _ACEOF
1880 if ac_fn_c_try_compile "$LINENO"; then :
1881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882 /* end confdefs.h.  */
1883 $4
1884 int
1885 main ()
1886 {
1887 if (sizeof (($2)))
1888             return 0;
1889   ;
1890   return 0;
1891 }
1892 _ACEOF
1893 if ac_fn_c_try_compile "$LINENO"; then :
1894
1895 else
1896   eval "$3=yes"
1897 fi
1898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899 fi
1900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1901 fi
1902 eval ac_res=\$$3
1903                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904 $as_echo "$ac_res" >&6; }
1905   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1906
1907 } # ac_fn_c_check_type
1908
1909 # ac_fn_c_check_func LINENO FUNC VAR
1910 # ----------------------------------
1911 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1912 ac_fn_c_check_func ()
1913 {
1914   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1918   $as_echo_n "(cached) " >&6
1919 else
1920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h.  */
1922 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1923    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1924 #define $2 innocuous_$2
1925
1926 /* System header to define __stub macros and hopefully few prototypes,
1927     which can conflict with char $2 (); below.
1928     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1929     <limits.h> exists even on freestanding compilers.  */
1930
1931 #ifdef __STDC__
1932 # include <limits.h>
1933 #else
1934 # include <assert.h>
1935 #endif
1936
1937 #undef $2
1938
1939 /* Override any GCC internal prototype to avoid an error.
1940    Use char because int might match the return type of a GCC
1941    builtin and then its argument prototype would still apply.  */
1942 #ifdef __cplusplus
1943 extern "C"
1944 #endif
1945 char $2 ();
1946 /* The GNU C library defines this for functions which it implements
1947     to always fail with ENOSYS.  Some functions are actually named
1948     something starting with __ and the normal name is an alias.  */
1949 #if defined __stub_$2 || defined __stub___$2
1950 choke me
1951 #endif
1952
1953 int
1954 main ()
1955 {
1956 return $2 ();
1957   ;
1958   return 0;
1959 }
1960 _ACEOF
1961 if ac_fn_c_try_link "$LINENO"; then :
1962   eval "$3=yes"
1963 else
1964   eval "$3=no"
1965 fi
1966 rm -f core conftest.err conftest.$ac_objext \
1967     conftest$ac_exeext conftest.$ac_ext
1968 fi
1969 eval ac_res=\$$3
1970                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1972   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1973
1974 } # ac_fn_c_check_func
1975
1976 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1977 # --------------------------------------------
1978 # Tries to find the compile-time value of EXPR in a program that includes
1979 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1980 # computed
1981 ac_fn_c_compute_int ()
1982 {
1983   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984   if test "$cross_compiling" = yes; then
1985     # Depending upon the size, compute the lo and hi bounds.
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h.  */
1988 $4
1989 int
1990 main ()
1991 {
1992 static int test_array [1 - 2 * !(($2) >= 0)];
1993 test_array [0] = 0
1994
1995   ;
1996   return 0;
1997 }
1998 _ACEOF
1999 if ac_fn_c_try_compile "$LINENO"; then :
2000   ac_lo=0 ac_mid=0
2001   while :; do
2002     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h.  */
2004 $4
2005 int
2006 main ()
2007 {
2008 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2009 test_array [0] = 0
2010
2011   ;
2012   return 0;
2013 }
2014 _ACEOF
2015 if ac_fn_c_try_compile "$LINENO"; then :
2016   ac_hi=$ac_mid; break
2017 else
2018   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2019                         if test $ac_lo -le $ac_mid; then
2020                           ac_lo= ac_hi=
2021                           break
2022                         fi
2023                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2024 fi
2025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026   done
2027 else
2028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h.  */
2030 $4
2031 int
2032 main ()
2033 {
2034 static int test_array [1 - 2 * !(($2) < 0)];
2035 test_array [0] = 0
2036
2037   ;
2038   return 0;
2039 }
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042   ac_hi=-1 ac_mid=-1
2043   while :; do
2044     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h.  */
2046 $4
2047 int
2048 main ()
2049 {
2050 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2051 test_array [0] = 0
2052
2053   ;
2054   return 0;
2055 }
2056 _ACEOF
2057 if ac_fn_c_try_compile "$LINENO"; then :
2058   ac_lo=$ac_mid; break
2059 else
2060   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2061                         if test $ac_mid -le $ac_hi; then
2062                           ac_lo= ac_hi=
2063                           break
2064                         fi
2065                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2066 fi
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068   done
2069 else
2070   ac_lo= ac_hi=
2071 fi
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 fi
2074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 # Binary search between lo and hi bounds.
2076 while test "x$ac_lo" != "x$ac_hi"; do
2077   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h.  */
2080 $4
2081 int
2082 main ()
2083 {
2084 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2085 test_array [0] = 0
2086
2087   ;
2088   return 0;
2089 }
2090 _ACEOF
2091 if ac_fn_c_try_compile "$LINENO"; then :
2092   ac_hi=$ac_mid
2093 else
2094   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2095 fi
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 done
2098 case $ac_lo in #((
2099 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2100 '') ac_retval=1 ;;
2101 esac
2102   else
2103     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h.  */
2105 $4
2106 static long int longval () { return $2; }
2107 static unsigned long int ulongval () { return $2; }
2108 #include <stdio.h>
2109 #include <stdlib.h>
2110 int
2111 main ()
2112 {
2113
2114   FILE *f = fopen ("conftest.val", "w");
2115   if (! f)
2116     return 1;
2117   if (($2) < 0)
2118     {
2119       long int i = longval ();
2120       if (i != ($2))
2121         return 1;
2122       fprintf (f, "%ld", i);
2123     }
2124   else
2125     {
2126       unsigned long int i = ulongval ();
2127       if (i != ($2))
2128         return 1;
2129       fprintf (f, "%lu", i);
2130     }
2131   /* Do not output a trailing newline, as this causes \r\n confusion
2132      on some platforms.  */
2133   return ferror (f) || fclose (f) != 0;
2134
2135   ;
2136   return 0;
2137 }
2138 _ACEOF
2139 if ac_fn_c_try_run "$LINENO"; then :
2140   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2141 else
2142   ac_retval=1
2143 fi
2144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2145   conftest.$ac_objext conftest.beam conftest.$ac_ext
2146 rm -f conftest.val
2147
2148   fi
2149   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2150   as_fn_set_status $ac_retval
2151
2152 } # ac_fn_c_compute_int
2153
2154 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2155 # ----------------------------------------------------
2156 # Tries to find if the field MEMBER exists in type AGGR, after including
2157 # INCLUDES, setting cache variable VAR accordingly.
2158 ac_fn_c_check_member ()
2159 {
2160   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2162 $as_echo_n "checking for $2.$3... " >&6; }
2163 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2164   $as_echo_n "(cached) " >&6
2165 else
2166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h.  */
2168 $5
2169 int
2170 main ()
2171 {
2172 static $2 ac_aggr;
2173 if (ac_aggr.$3)
2174 return 0;
2175   ;
2176   return 0;
2177 }
2178 _ACEOF
2179 if ac_fn_c_try_compile "$LINENO"; then :
2180   eval "$4=yes"
2181 else
2182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h.  */
2184 $5
2185 int
2186 main ()
2187 {
2188 static $2 ac_aggr;
2189 if (sizeof ac_aggr.$3)
2190 return 0;
2191   ;
2192   return 0;
2193 }
2194 _ACEOF
2195 if ac_fn_c_try_compile "$LINENO"; then :
2196   eval "$4=yes"
2197 else
2198   eval "$4=no"
2199 fi
2200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201 fi
2202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203 fi
2204 eval ac_res=\$$4
2205                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2206 $as_echo "$ac_res" >&6; }
2207   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2208
2209 } # ac_fn_c_check_member
2210
2211 # ac_fn_c_check_decl LINENO SYMBOL VAR
2212 # ------------------------------------
2213 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2214 ac_fn_c_check_decl ()
2215 {
2216   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2218 $as_echo_n "checking whether $2 is declared... " >&6; }
2219 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2220   $as_echo_n "(cached) " >&6
2221 else
2222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h.  */
2224 $4
2225 int
2226 main ()
2227 {
2228 #ifndef $2
2229   (void) $2;
2230 #endif
2231
2232   ;
2233   return 0;
2234 }
2235 _ACEOF
2236 if ac_fn_c_try_compile "$LINENO"; then :
2237   eval "$3=yes"
2238 else
2239   eval "$3=no"
2240 fi
2241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2242 fi
2243 eval ac_res=\$$3
2244                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2245 $as_echo "$ac_res" >&6; }
2246   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2247
2248 } # ac_fn_c_check_decl
2249 cat >config.log <<_ACEOF
2250 This file contains any messages produced by compilers while
2251 running configure, to aid debugging if configure makes a mistake.
2252
2253 It was created by $as_me, which was
2254 generated by GNU Autoconf 2.65.  Invocation command line was
2255
2256   $ $0 $@
2257
2258 _ACEOF
2259 exec 5>>config.log
2260 {
2261 cat <<_ASUNAME
2262 ## --------- ##
2263 ## Platform. ##
2264 ## --------- ##
2265
2266 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2267 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2268 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2269 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2270 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2271
2272 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2273 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2274
2275 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2276 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2277 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2278 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2279 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2280 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2281 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2282
2283 _ASUNAME
2284
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 for as_dir in $PATH
2287 do
2288   IFS=$as_save_IFS
2289   test -z "$as_dir" && as_dir=.
2290     $as_echo "PATH: $as_dir"
2291   done
2292 IFS=$as_save_IFS
2293
2294 } >&5
2295
2296 cat >&5 <<_ACEOF
2297
2298
2299 ## ----------- ##
2300 ## Core tests. ##
2301 ## ----------- ##
2302
2303 _ACEOF
2304
2305
2306 # Keep a trace of the command line.
2307 # Strip out --no-create and --no-recursion so they do not pile up.
2308 # Strip out --silent because we don't want to record it for future runs.
2309 # Also quote any args containing shell meta-characters.
2310 # Make two passes to allow for proper duplicate-argument suppression.
2311 ac_configure_args=
2312 ac_configure_args0=
2313 ac_configure_args1=
2314 ac_must_keep_next=false
2315 for ac_pass in 1 2
2316 do
2317   for ac_arg
2318   do
2319     case $ac_arg in
2320     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2321     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2322     | -silent | --silent | --silen | --sile | --sil)
2323       continue ;;
2324     *\'*)
2325       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2326     esac
2327     case $ac_pass in
2328     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2329     2)
2330       as_fn_append ac_configure_args1 " '$ac_arg'"
2331       if test $ac_must_keep_next = true; then
2332         ac_must_keep_next=false # Got value, back to normal.
2333       else
2334         case $ac_arg in
2335           *=* | --config-cache | -C | -disable-* | --disable-* \
2336           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2337           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2338           | -with-* | --with-* | -without-* | --without-* | --x)
2339             case "$ac_configure_args0 " in
2340               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2341             esac
2342             ;;
2343           -* ) ac_must_keep_next=true ;;
2344         esac
2345       fi
2346       as_fn_append ac_configure_args " '$ac_arg'"
2347       ;;
2348     esac
2349   done
2350 done
2351 { ac_configure_args0=; unset ac_configure_args0;}
2352 { ac_configure_args1=; unset ac_configure_args1;}
2353
2354 # When interrupted or exit'd, cleanup temporary files, and complete
2355 # config.log.  We remove comments because anyway the quotes in there
2356 # would cause problems or look ugly.
2357 # WARNING: Use '\'' to represent an apostrophe within the trap.
2358 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2359 trap 'exit_status=$?
2360   # Save into config.log some information that might help in debugging.
2361   {
2362     echo
2363
2364     cat <<\_ASBOX
2365 ## ---------------- ##
2366 ## Cache variables. ##
2367 ## ---------------- ##
2368 _ASBOX
2369     echo
2370     # The following way of writing the cache mishandles newlines in values,
2371 (
2372   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2373     eval ac_val=\$$ac_var
2374     case $ac_val in #(
2375     *${as_nl}*)
2376       case $ac_var in #(
2377       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2378 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2379       esac
2380       case $ac_var in #(
2381       _ | IFS | as_nl) ;; #(
2382       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2383       *) { eval $ac_var=; unset $ac_var;} ;;
2384       esac ;;
2385     esac
2386   done
2387   (set) 2>&1 |
2388     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2389     *${as_nl}ac_space=\ *)
2390       sed -n \
2391         "s/'\''/'\''\\\\'\'''\''/g;
2392           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2393       ;; #(
2394     *)
2395       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2396       ;;
2397     esac |
2398     sort
2399 )
2400     echo
2401
2402     cat <<\_ASBOX
2403 ## ----------------- ##
2404 ## Output variables. ##
2405 ## ----------------- ##
2406 _ASBOX
2407     echo
2408     for ac_var in $ac_subst_vars
2409     do
2410       eval ac_val=\$$ac_var
2411       case $ac_val in
2412       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2413       esac
2414       $as_echo "$ac_var='\''$ac_val'\''"
2415     done | sort
2416     echo
2417
2418     if test -n "$ac_subst_files"; then
2419       cat <<\_ASBOX
2420 ## ------------------- ##
2421 ## File substitutions. ##
2422 ## ------------------- ##
2423 _ASBOX
2424       echo
2425       for ac_var in $ac_subst_files
2426       do
2427         eval ac_val=\$$ac_var
2428         case $ac_val in
2429         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2430         esac
2431         $as_echo "$ac_var='\''$ac_val'\''"
2432       done | sort
2433       echo
2434     fi
2435
2436     if test -s confdefs.h; then
2437       cat <<\_ASBOX
2438 ## ----------- ##
2439 ## confdefs.h. ##
2440 ## ----------- ##
2441 _ASBOX
2442       echo
2443       cat confdefs.h
2444       echo
2445     fi
2446     test "$ac_signal" != 0 &&
2447       $as_echo "$as_me: caught signal $ac_signal"
2448     $as_echo "$as_me: exit $exit_status"
2449   } >&5
2450   rm -f core *.core core.conftest.* &&
2451     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2452     exit $exit_status
2453 ' 0
2454 for ac_signal in 1 2 13 15; do
2455   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2456 done
2457 ac_signal=0
2458
2459 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2460 rm -f -r conftest* confdefs.h
2461
2462 $as_echo "/* confdefs.h */" > confdefs.h
2463
2464 # Predefined preprocessor variables.
2465
2466 cat >>confdefs.h <<_ACEOF
2467 #define PACKAGE_NAME "$PACKAGE_NAME"
2468 _ACEOF
2469
2470 cat >>confdefs.h <<_ACEOF
2471 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2472 _ACEOF
2473
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2476 _ACEOF
2477
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_STRING "$PACKAGE_STRING"
2480 _ACEOF
2481
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2484 _ACEOF
2485
2486 cat >>confdefs.h <<_ACEOF
2487 #define PACKAGE_URL "$PACKAGE_URL"
2488 _ACEOF
2489
2490
2491 # Let the site file select an alternate cache file if it wants to.
2492 # Prefer an explicitly selected file to automatically selected ones.
2493 ac_site_file1=NONE
2494 ac_site_file2=NONE
2495 if test -n "$CONFIG_SITE"; then
2496   ac_site_file1=$CONFIG_SITE
2497 elif test "x$prefix" != xNONE; then
2498   ac_site_file1=$prefix/share/config.site
2499   ac_site_file2=$prefix/etc/config.site
2500 else
2501   ac_site_file1=$ac_default_prefix/share/config.site
2502   ac_site_file2=$ac_default_prefix/etc/config.site
2503 fi
2504 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2505 do
2506   test "x$ac_site_file" = xNONE && continue
2507   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2508     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2509 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2510     sed 's/^/| /' "$ac_site_file" >&5
2511     . "$ac_site_file"
2512   fi
2513 done
2514
2515 if test -r "$cache_file"; then
2516   # Some versions of bash will fail to source /dev/null (special files
2517   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2518   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2519     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2520 $as_echo "$as_me: loading cache $cache_file" >&6;}
2521     case $cache_file in
2522       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2523       *)                      . "./$cache_file";;
2524     esac
2525   fi
2526 else
2527   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2528 $as_echo "$as_me: creating cache $cache_file" >&6;}
2529   >$cache_file
2530 fi
2531
2532 as_fn_append ac_header_list " stdlib.h"
2533 as_fn_append ac_header_list " unistd.h"
2534 as_fn_append ac_header_list " sys/param.h"
2535 # Check that the precious variables saved in the cache have kept the same
2536 # value.
2537 ac_cache_corrupted=false
2538 for ac_var in $ac_precious_vars; do
2539   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2540   eval ac_new_set=\$ac_env_${ac_var}_set
2541   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2542   eval ac_new_val=\$ac_env_${ac_var}_value
2543   case $ac_old_set,$ac_new_set in
2544     set,)
2545       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2546 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2547       ac_cache_corrupted=: ;;
2548     ,set)
2549       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2550 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2551       ac_cache_corrupted=: ;;
2552     ,);;
2553     *)
2554       if test "x$ac_old_val" != "x$ac_new_val"; then
2555         # differences in whitespace do not lead to failure.
2556         ac_old_val_w=`echo x $ac_old_val`
2557         ac_new_val_w=`echo x $ac_new_val`
2558         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2559           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2560 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2561           ac_cache_corrupted=:
2562         else
2563           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2564 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2565           eval $ac_var=\$ac_old_val
2566         fi
2567         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2568 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2569         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2570 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2571       fi;;
2572   esac
2573   # Pass precious variables to config.status.
2574   if test "$ac_new_set" = set; then
2575     case $ac_new_val in
2576     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2577     *) ac_arg=$ac_var=$ac_new_val ;;
2578     esac
2579     case " $ac_configure_args " in
2580       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2581       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2582     esac
2583   fi
2584 done
2585 if $ac_cache_corrupted; then
2586   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2588   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2589 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2590   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2591 fi
2592 ## -------------------- ##
2593 ## Main body of script. ##
2594 ## -------------------- ##
2595
2596 ac_ext=c
2597 ac_cpp='$CPP $CPPFLAGS'
2598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2601
2602
2603
2604 ac_aux_dir=
2605 for ac_dir in config "$srcdir"/config; do
2606   for ac_t in install-sh install.sh shtool; do
2607     if test -f "$ac_dir/$ac_t"; then
2608       ac_aux_dir=$ac_dir
2609       ac_install_sh="$ac_aux_dir/$ac_t -c"
2610       break 2
2611     fi
2612   done
2613 done
2614 if test -z "$ac_aux_dir"; then
2615   as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2616 fi
2617
2618 # These three variables are undocumented and unsupported,
2619 # and are intended to be withdrawn in a future Autoconf release.
2620 # They can cause serious problems if a builder's source tree is in a directory
2621 # whose full name contains unusual characters.
2622 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2623 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2624 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2625
2626
2627 MCONFIG=./MCONFIG
2628
2629 BINARY_TYPE=bin
2630 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2631         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2632 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2633         | tr \" " "`
2634 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2635 MONTH=`echo $DATE | awk -F- '{print $2}'`
2636 YEAR=`echo $DATE | awk -F- '{print $3}'`
2637
2638 if expr $YEAR ">" 1900 > /dev/null ; then
2639         E2FSPROGS_YEAR=$YEAR
2640 elif expr $YEAR ">" 90 >/dev/null ; then
2641         E2FSPROGS_YEAR=19$YEAR
2642 else
2643         E2FSPROGS_YEAR=20$YEAR
2644 fi
2645
2646 case $MONTH in
2647 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2648 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2649 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2650 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2651 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2652 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2653 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2654 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2655 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2656 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2657 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2658 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2659 *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2660 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2661 esac
2662
2663 base_ver=`echo $E2FSPROGS_VERSION | \
2664                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2665
2666 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2667
2668 case $E2FSPROGS_VERSION in
2669 *-WIP|pre-*)
2670         E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2671         ;;
2672 *)
2673         E2FSPROGS_PKGVER="$base_ver"
2674         ;;
2675 esac
2676
2677 unset DATE MONTH YEAR base_ver pre_vers date_spec
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2679 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2681 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2682
2683
2684
2685
2686
2687 # Make sure we can run config.sub.
2688 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2689   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2690
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2692 $as_echo_n "checking build system type... " >&6; }
2693 if test "${ac_cv_build+set}" = set; then :
2694   $as_echo_n "(cached) " >&6
2695 else
2696   ac_build_alias=$build_alias
2697 test "x$ac_build_alias" = x &&
2698   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2699 test "x$ac_build_alias" = x &&
2700   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2701 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2702   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2703
2704 fi
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2706 $as_echo "$ac_cv_build" >&6; }
2707 case $ac_cv_build in
2708 *-*-*) ;;
2709 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2710 esac
2711 build=$ac_cv_build
2712 ac_save_IFS=$IFS; IFS='-'
2713 set x $ac_cv_build
2714 shift
2715 build_cpu=$1
2716 build_vendor=$2
2717 shift; shift
2718 # Remember, the first character of IFS is used to create $*,
2719 # except with old shells:
2720 build_os=$*
2721 IFS=$ac_save_IFS
2722 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2723
2724
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2726 $as_echo_n "checking host system type... " >&6; }
2727 if test "${ac_cv_host+set}" = set; then :
2728   $as_echo_n "(cached) " >&6
2729 else
2730   if test "x$host_alias" = x; then
2731   ac_cv_host=$ac_cv_build
2732 else
2733   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2734     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2735 fi
2736
2737 fi
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2739 $as_echo "$ac_cv_host" >&6; }
2740 case $ac_cv_host in
2741 *-*-*) ;;
2742 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2743 esac
2744 host=$ac_cv_host
2745 ac_save_IFS=$IFS; IFS='-'
2746 set x $ac_cv_host
2747 shift
2748 host_cpu=$1
2749 host_vendor=$2
2750 shift; shift
2751 # Remember, the first character of IFS is used to create $*,
2752 # except with old shells:
2753 host_os=$*
2754 IFS=$ac_save_IFS
2755 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2756
2757
2758 DLOPEN_LIB=''
2759 ac_ext=c
2760 ac_cpp='$CPP $CPPFLAGS'
2761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2764 if test -n "$ac_tool_prefix"; then
2765   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2766 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768 $as_echo_n "checking for $ac_word... " >&6; }
2769 if test "${ac_cv_prog_CC+set}" = set; then :
2770   $as_echo_n "(cached) " >&6
2771 else
2772   if test -n "$CC"; then
2773   ac_cv_prog_CC="$CC" # Let the user override the test.
2774 else
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 for as_dir in $PATH
2777 do
2778   IFS=$as_save_IFS
2779   test -z "$as_dir" && as_dir=.
2780     for ac_exec_ext in '' $ac_executable_extensions; do
2781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2782     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784     break 2
2785   fi
2786 done
2787   done
2788 IFS=$as_save_IFS
2789
2790 fi
2791 fi
2792 CC=$ac_cv_prog_CC
2793 if test -n "$CC"; then
2794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2795 $as_echo "$CC" >&6; }
2796 else
2797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798 $as_echo "no" >&6; }
2799 fi
2800
2801
2802 fi
2803 if test -z "$ac_cv_prog_CC"; then
2804   ac_ct_CC=$CC
2805   # Extract the first word of "gcc", so it can be a program name with args.
2806 set dummy gcc; ac_word=$2
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2808 $as_echo_n "checking for $ac_word... " >&6; }
2809 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2810   $as_echo_n "(cached) " >&6
2811 else
2812   if test -n "$ac_ct_CC"; then
2813   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2814 else
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 for as_dir in $PATH
2817 do
2818   IFS=$as_save_IFS
2819   test -z "$as_dir" && as_dir=.
2820     for ac_exec_ext in '' $ac_executable_extensions; do
2821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2822     ac_cv_prog_ac_ct_CC="gcc"
2823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2824     break 2
2825   fi
2826 done
2827   done
2828 IFS=$as_save_IFS
2829
2830 fi
2831 fi
2832 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2833 if test -n "$ac_ct_CC"; then
2834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2835 $as_echo "$ac_ct_CC" >&6; }
2836 else
2837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2838 $as_echo "no" >&6; }
2839 fi
2840
2841   if test "x$ac_ct_CC" = x; then
2842     CC=""
2843   else
2844     case $cross_compiling:$ac_tool_warned in
2845 yes:)
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2848 ac_tool_warned=yes ;;
2849 esac
2850     CC=$ac_ct_CC
2851   fi
2852 else
2853   CC="$ac_cv_prog_CC"
2854 fi
2855
2856 if test -z "$CC"; then
2857           if test -n "$ac_tool_prefix"; then
2858     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2859 set dummy ${ac_tool_prefix}cc; ac_word=$2
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861 $as_echo_n "checking for $ac_word... " >&6; }
2862 if test "${ac_cv_prog_CC+set}" = set; then :
2863   $as_echo_n "(cached) " >&6
2864 else
2865   if test -n "$CC"; then
2866   ac_cv_prog_CC="$CC" # Let the user override the test.
2867 else
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 for as_dir in $PATH
2870 do
2871   IFS=$as_save_IFS
2872   test -z "$as_dir" && as_dir=.
2873     for ac_exec_ext in '' $ac_executable_extensions; do
2874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2875     ac_cv_prog_CC="${ac_tool_prefix}cc"
2876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2877     break 2
2878   fi
2879 done
2880   done
2881 IFS=$as_save_IFS
2882
2883 fi
2884 fi
2885 CC=$ac_cv_prog_CC
2886 if test -n "$CC"; then
2887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2888 $as_echo "$CC" >&6; }
2889 else
2890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891 $as_echo "no" >&6; }
2892 fi
2893
2894
2895   fi
2896 fi
2897 if test -z "$CC"; then
2898   # Extract the first word of "cc", so it can be a program name with args.
2899 set dummy cc; ac_word=$2
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901 $as_echo_n "checking for $ac_word... " >&6; }
2902 if test "${ac_cv_prog_CC+set}" = set; then :
2903   $as_echo_n "(cached) " >&6
2904 else
2905   if test -n "$CC"; then
2906   ac_cv_prog_CC="$CC" # Let the user override the test.
2907 else
2908   ac_prog_rejected=no
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 for as_dir in $PATH
2911 do
2912   IFS=$as_save_IFS
2913   test -z "$as_dir" && as_dir=.
2914     for ac_exec_ext in '' $ac_executable_extensions; do
2915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2916     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2917        ac_prog_rejected=yes
2918        continue
2919      fi
2920     ac_cv_prog_CC="cc"
2921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922     break 2
2923   fi
2924 done
2925   done
2926 IFS=$as_save_IFS
2927
2928 if test $ac_prog_rejected = yes; then
2929   # We found a bogon in the path, so make sure we never use it.
2930   set dummy $ac_cv_prog_CC
2931   shift
2932   if test $# != 0; then
2933     # We chose a different compiler from the bogus one.
2934     # However, it has the same basename, so the bogon will be chosen
2935     # first if we set CC to just the basename; use the full file name.
2936     shift
2937     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2938   fi
2939 fi
2940 fi
2941 fi
2942 CC=$ac_cv_prog_CC
2943 if test -n "$CC"; then
2944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2945 $as_echo "$CC" >&6; }
2946 else
2947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948 $as_echo "no" >&6; }
2949 fi
2950
2951
2952 fi
2953 if test -z "$CC"; then
2954   if test -n "$ac_tool_prefix"; then
2955   for ac_prog in cl.exe
2956   do
2957     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2958 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2960 $as_echo_n "checking for $ac_word... " >&6; }
2961 if test "${ac_cv_prog_CC+set}" = set; then :
2962   $as_echo_n "(cached) " >&6
2963 else
2964   if test -n "$CC"; then
2965   ac_cv_prog_CC="$CC" # Let the user override the test.
2966 else
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 for as_dir in $PATH
2969 do
2970   IFS=$as_save_IFS
2971   test -z "$as_dir" && as_dir=.
2972     for ac_exec_ext in '' $ac_executable_extensions; do
2973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2974     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2976     break 2
2977   fi
2978 done
2979   done
2980 IFS=$as_save_IFS
2981
2982 fi
2983 fi
2984 CC=$ac_cv_prog_CC
2985 if test -n "$CC"; then
2986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2987 $as_echo "$CC" >&6; }
2988 else
2989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990 $as_echo "no" >&6; }
2991 fi
2992
2993
2994     test -n "$CC" && break
2995   done
2996 fi
2997 if test -z "$CC"; then
2998   ac_ct_CC=$CC
2999   for ac_prog in cl.exe
3000 do
3001   # Extract the first word of "$ac_prog", so it can be a program name with args.
3002 set dummy $ac_prog; ac_word=$2
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
3005 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3006   $as_echo_n "(cached) " >&6
3007 else
3008   if test -n "$ac_ct_CC"; then
3009   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3010 else
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 for as_dir in $PATH
3013 do
3014   IFS=$as_save_IFS
3015   test -z "$as_dir" && as_dir=.
3016     for ac_exec_ext in '' $ac_executable_extensions; do
3017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3018     ac_cv_prog_ac_ct_CC="$ac_prog"
3019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020     break 2
3021   fi
3022 done
3023   done
3024 IFS=$as_save_IFS
3025
3026 fi
3027 fi
3028 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3029 if test -n "$ac_ct_CC"; then
3030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3031 $as_echo "$ac_ct_CC" >&6; }
3032 else
3033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3035 fi
3036
3037
3038   test -n "$ac_ct_CC" && break
3039 done
3040
3041   if test "x$ac_ct_CC" = x; then
3042     CC=""
3043   else
3044     case $cross_compiling:$ac_tool_warned in
3045 yes:)
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3048 ac_tool_warned=yes ;;
3049 esac
3050     CC=$ac_ct_CC
3051   fi
3052 fi
3053
3054 fi
3055
3056
3057 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3059 as_fn_error "no acceptable C compiler found in \$PATH
3060 See \`config.log' for more details." "$LINENO" 5; }
3061
3062 # Provide some information about the compiler.
3063 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3064 set X $ac_compile
3065 ac_compiler=$2
3066 for ac_option in --version -v -V -qversion; do
3067   { { ac_try="$ac_compiler $ac_option >&5"
3068 case "(($ac_try" in
3069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070   *) ac_try_echo=$ac_try;;
3071 esac
3072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3073 $as_echo "$ac_try_echo"; } >&5
3074   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3075   ac_status=$?
3076   if test -s conftest.err; then
3077     sed '10a\
3078 ... rest of stderr output deleted ...
3079          10q' conftest.err >conftest.er1
3080     cat conftest.er1 >&5
3081   fi
3082   rm -f conftest.er1 conftest.err
3083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3084   test $ac_status = 0; }
3085 done
3086
3087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3088 /* end confdefs.h.  */
3089
3090 int
3091 main ()
3092 {
3093
3094   ;
3095   return 0;
3096 }
3097 _ACEOF
3098 ac_clean_files_save=$ac_clean_files
3099 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3100 # Try to create an executable without -o first, disregard a.out.
3101 # It will help us diagnose broken compilers, and finding out an intuition
3102 # of exeext.
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3104 $as_echo_n "checking whether the C compiler works... " >&6; }
3105 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3106
3107 # The possible output files:
3108 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3109
3110 ac_rmfiles=
3111 for ac_file in $ac_files
3112 do
3113   case $ac_file in
3114     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3115     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3116   esac
3117 done
3118 rm -f $ac_rmfiles
3119
3120 if { { ac_try="$ac_link_default"
3121 case "(($ac_try" in
3122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123   *) ac_try_echo=$ac_try;;
3124 esac
3125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3126 $as_echo "$ac_try_echo"; } >&5
3127   (eval "$ac_link_default") 2>&5
3128   ac_status=$?
3129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3130   test $ac_status = 0; }; then :
3131   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3132 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3133 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3134 # so that the user can short-circuit this test for compilers unknown to
3135 # Autoconf.
3136 for ac_file in $ac_files ''
3137 do
3138   test -f "$ac_file" || continue
3139   case $ac_file in
3140     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3141         ;;
3142     [ab].out )
3143         # We found the default executable, but exeext='' is most
3144         # certainly right.
3145         break;;
3146     *.* )
3147         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3148         then :; else
3149            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3150         fi
3151         # We set ac_cv_exeext here because the later test for it is not
3152         # safe: cross compilers may not add the suffix if given an `-o'
3153         # argument, so we may need to know it at that point already.
3154         # Even if this section looks crufty: it has the advantage of
3155         # actually working.
3156         break;;
3157     * )
3158         break;;
3159   esac
3160 done
3161 test "$ac_cv_exeext" = no && ac_cv_exeext=
3162
3163 else
3164   ac_file=''
3165 fi
3166 if test -z "$ac_file"; then :
3167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168 $as_echo "no" >&6; }
3169 $as_echo "$as_me: failed program was:" >&5
3170 sed 's/^/| /' conftest.$ac_ext >&5
3171
3172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3174 { as_fn_set_status 77
3175 as_fn_error "C compiler cannot create executables
3176 See \`config.log' for more details." "$LINENO" 5; }; }
3177 else
3178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3179 $as_echo "yes" >&6; }
3180 fi
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3182 $as_echo_n "checking for C compiler default output file name... " >&6; }
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3184 $as_echo "$ac_file" >&6; }
3185 ac_exeext=$ac_cv_exeext
3186
3187 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3188 ac_clean_files=$ac_clean_files_save
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3190 $as_echo_n "checking for suffix of executables... " >&6; }
3191 if { { ac_try="$ac_link"
3192 case "(($ac_try" in
3193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194   *) ac_try_echo=$ac_try;;
3195 esac
3196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197 $as_echo "$ac_try_echo"; } >&5
3198   (eval "$ac_link") 2>&5
3199   ac_status=$?
3200   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3201   test $ac_status = 0; }; then :
3202   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3203 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3204 # work properly (i.e., refer to `conftest.exe'), while it won't with
3205 # `rm'.
3206 for ac_file in conftest.exe conftest conftest.*; do
3207   test -f "$ac_file" || continue
3208   case $ac_file in
3209     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3210     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3211           break;;
3212     * ) break;;
3213   esac
3214 done
3215 else
3216   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3218 as_fn_error "cannot compute suffix of executables: cannot compile and link
3219 See \`config.log' for more details." "$LINENO" 5; }
3220 fi
3221 rm -f conftest conftest$ac_cv_exeext
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3223 $as_echo "$ac_cv_exeext" >&6; }
3224
3225 rm -f conftest.$ac_ext
3226 EXEEXT=$ac_cv_exeext
3227 ac_exeext=$EXEEXT
3228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229 /* end confdefs.h.  */
3230 #include <stdio.h>
3231 int
3232 main ()
3233 {
3234 FILE *f = fopen ("conftest.out", "w");
3235  return ferror (f) || fclose (f) != 0;
3236
3237   ;
3238   return 0;
3239 }
3240 _ACEOF
3241 ac_clean_files="$ac_clean_files conftest.out"
3242 # Check that the compiler produces executables we can run.  If not, either
3243 # the compiler is broken, or we cross compile.
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3245 $as_echo_n "checking whether we are cross compiling... " >&6; }
3246 if test "$cross_compiling" != yes; then
3247   { { ac_try="$ac_link"
3248 case "(($ac_try" in
3249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250   *) ac_try_echo=$ac_try;;
3251 esac
3252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3253 $as_echo "$ac_try_echo"; } >&5
3254   (eval "$ac_link") 2>&5
3255   ac_status=$?
3256   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3257   test $ac_status = 0; }
3258   if { ac_try='./conftest$ac_cv_exeext'
3259   { { case "(($ac_try" in
3260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261   *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265   (eval "$ac_try") 2>&5
3266   ac_status=$?
3267   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268   test $ac_status = 0; }; }; then
3269     cross_compiling=no
3270   else
3271     if test "$cross_compiling" = maybe; then
3272         cross_compiling=yes
3273     else
3274         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276 as_fn_error "cannot run C compiled programs.
3277 If you meant to cross compile, use \`--host'.
3278 See \`config.log' for more details." "$LINENO" 5; }
3279     fi
3280   fi
3281 fi
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3283 $as_echo "$cross_compiling" >&6; }
3284
3285 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3286 ac_clean_files=$ac_clean_files_save
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3288 $as_echo_n "checking for suffix of object files... " >&6; }
3289 if test "${ac_cv_objext+set}" = set; then :
3290   $as_echo_n "(cached) " >&6
3291 else
3292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h.  */
3294
3295 int
3296 main ()
3297 {
3298
3299   ;
3300   return 0;
3301 }
3302 _ACEOF
3303 rm -f conftest.o conftest.obj
3304 if { { ac_try="$ac_compile"
3305 case "(($ac_try" in
3306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307   *) ac_try_echo=$ac_try;;
3308 esac
3309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310 $as_echo "$ac_try_echo"; } >&5
3311   (eval "$ac_compile") 2>&5
3312   ac_status=$?
3313   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314   test $ac_status = 0; }; then :
3315   for ac_file in conftest.o conftest.obj conftest.*; do
3316   test -f "$ac_file" || continue;
3317   case $ac_file in
3318     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3319     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3320        break;;
3321   esac
3322 done
3323 else
3324   $as_echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3326
3327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3329 as_fn_error "cannot compute suffix of object files: cannot compile
3330 See \`config.log' for more details." "$LINENO" 5; }
3331 fi
3332 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3333 fi
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3335 $as_echo "$ac_cv_objext" >&6; }
3336 OBJEXT=$ac_cv_objext
3337 ac_objext=$OBJEXT
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3339 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3340 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3341   $as_echo_n "(cached) " >&6
3342 else
3343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h.  */
3345
3346 int
3347 main ()
3348 {
3349 #ifndef __GNUC__
3350        choke me
3351 #endif
3352
3353   ;
3354   return 0;
3355 }
3356 _ACEOF
3357 if ac_fn_c_try_compile "$LINENO"; then :
3358   ac_compiler_gnu=yes
3359 else
3360   ac_compiler_gnu=no
3361 fi
3362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3364
3365 fi
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3367 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3368 if test $ac_compiler_gnu = yes; then
3369   GCC=yes
3370 else
3371   GCC=
3372 fi
3373 ac_test_CFLAGS=${CFLAGS+set}
3374 ac_save_CFLAGS=$CFLAGS
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3376 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3377 if test "${ac_cv_prog_cc_g+set}" = set; then :
3378   $as_echo_n "(cached) " >&6
3379 else
3380   ac_save_c_werror_flag=$ac_c_werror_flag
3381    ac_c_werror_flag=yes
3382    ac_cv_prog_cc_g=no
3383    CFLAGS="-g"
3384    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385 /* end confdefs.h.  */
3386
3387 int
3388 main ()
3389 {
3390
3391   ;
3392   return 0;
3393 }
3394 _ACEOF
3395 if ac_fn_c_try_compile "$LINENO"; then :
3396   ac_cv_prog_cc_g=yes
3397 else
3398   CFLAGS=""
3399       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h.  */
3401
3402 int
3403 main ()
3404 {
3405
3406   ;
3407   return 0;
3408 }
3409 _ACEOF
3410 if ac_fn_c_try_compile "$LINENO"; then :
3411
3412 else
3413   ac_c_werror_flag=$ac_save_c_werror_flag
3414          CFLAGS="-g"
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   ac_cv_prog_cc_g=yes
3428 fi
3429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430 fi
3431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3432 fi
3433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3434    ac_c_werror_flag=$ac_save_c_werror_flag
3435 fi
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3437 $as_echo "$ac_cv_prog_cc_g" >&6; }
3438 if test "$ac_test_CFLAGS" = set; then
3439   CFLAGS=$ac_save_CFLAGS
3440 elif test $ac_cv_prog_cc_g = yes; then
3441   if test "$GCC" = yes; then
3442     CFLAGS="-g -O2"
3443   else
3444     CFLAGS="-g"
3445   fi
3446 else
3447   if test "$GCC" = yes; then
3448     CFLAGS="-O2"
3449   else
3450     CFLAGS=
3451   fi
3452 fi
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3454 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3455 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3456   $as_echo_n "(cached) " >&6
3457 else
3458   ac_cv_prog_cc_c89=no
3459 ac_save_CC=$CC
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h.  */
3462 #include <stdarg.h>
3463 #include <stdio.h>
3464 #include <sys/types.h>
3465 #include <sys/stat.h>
3466 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3467 struct buf { int x; };
3468 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3469 static char *e (p, i)
3470      char **p;
3471      int i;
3472 {
3473   return p[i];
3474 }
3475 static char *f (char * (*g) (char **, int), char **p, ...)
3476 {
3477   char *s;
3478   va_list v;
3479   va_start (v,p);
3480   s = g (p, va_arg (v,int));
3481   va_end (v);
3482   return s;
3483 }
3484
3485 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3486    function prototypes and stuff, but not '\xHH' hex character constants.
3487    These don't provoke an error unfortunately, instead are silently treated
3488    as 'x'.  The following induces an error, until -std is added to get
3489    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3490    array size at least.  It's necessary to write '\x00'==0 to get something
3491    that's true only with -std.  */
3492 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3493
3494 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3495    inside strings and character constants.  */
3496 #define FOO(x) 'x'
3497 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3498
3499 int test (int i, double x);
3500 struct s1 {int (*f) (int a);};
3501 struct s2 {int (*f) (double a);};
3502 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3503 int argc;
3504 char **argv;
3505 int
3506 main ()
3507 {
3508 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3509   ;
3510   return 0;
3511 }
3512 _ACEOF
3513 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3514         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3515 do
3516   CC="$ac_save_CC $ac_arg"
3517   if ac_fn_c_try_compile "$LINENO"; then :
3518   ac_cv_prog_cc_c89=$ac_arg
3519 fi
3520 rm -f core conftest.err conftest.$ac_objext
3521   test "x$ac_cv_prog_cc_c89" != "xno" && break
3522 done
3523 rm -f conftest.$ac_ext
3524 CC=$ac_save_CC
3525
3526 fi
3527 # AC_CACHE_VAL
3528 case "x$ac_cv_prog_cc_c89" in
3529   x)
3530     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3531 $as_echo "none needed" >&6; } ;;
3532   xno)
3533     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3534 $as_echo "unsupported" >&6; } ;;
3535   *)
3536     CC="$CC $ac_cv_prog_cc_c89"
3537     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3538 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3539 esac
3540 if test "x$ac_cv_prog_cc_c89" != xno; then :
3541
3542 fi
3543
3544 ac_ext=c
3545 ac_cpp='$CPP $CPPFLAGS'
3546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3549
3550
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3552 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3553 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
3554   $as_echo_n "(cached) " >&6
3555 else
3556   ac_check_lib_save_LIBS=$LIBS
3557 LIBS="-ldl  $LIBS"
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h.  */
3560
3561 /* Override any GCC internal prototype to avoid an error.
3562    Use char because int might match the return type of a GCC
3563    builtin and then its argument prototype would still apply.  */
3564 #ifdef __cplusplus
3565 extern "C"
3566 #endif
3567 char dlopen ();
3568 int
3569 main ()
3570 {
3571 return dlopen ();
3572   ;
3573   return 0;
3574 }
3575 _ACEOF
3576 if ac_fn_c_try_link "$LINENO"; then :
3577   ac_cv_lib_dl_dlopen=yes
3578 else
3579   ac_cv_lib_dl_dlopen=no
3580 fi
3581 rm -f core conftest.err conftest.$ac_objext \
3582     conftest$ac_exeext conftest.$ac_ext
3583 LIBS=$ac_check_lib_save_LIBS
3584 fi
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3586 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3587 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
3588   DLOPEN_LIB=-ldl
3589 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3590
3591 fi
3592
3593
3594 WITH_DIET_LIBC=
3595
3596 # Check whether --with-diet-libc was given.
3597 if test "${with_diet_libc+set}" = set; then :
3598   withval=$with_diet_libc; CC="diet cc -nostdinc"
3599 WITH_DIET_LIBC=yes
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3601 $as_echo "CC=$CC" >&6; }
3602 fi
3603
3604 # Check whether --with-cc was given.
3605 if test "${with_cc+set}" = set; then :
3606   withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3607 fi
3608
3609
3610 # Check whether --with-ccopts was given.
3611 if test "${with_ccopts+set}" = set; then :
3612   withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3613 fi
3614
3615
3616 # Check whether --with-ldopts was given.
3617 if test "${with_ldopts+set}" = set; then :
3618   withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3619 fi
3620
3621 ac_ext=c
3622 ac_cpp='$CPP $CPPFLAGS'
3623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3626 if test -n "$ac_tool_prefix"; then
3627   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3628 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 $as_echo_n "checking for $ac_word... " >&6; }
3631 if test "${ac_cv_prog_CC+set}" = set; then :
3632   $as_echo_n "(cached) " >&6
3633 else
3634   if test -n "$CC"; then
3635   ac_cv_prog_CC="$CC" # Let the user override the test.
3636 else
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 for as_dir in $PATH
3639 do
3640   IFS=$as_save_IFS
3641   test -z "$as_dir" && as_dir=.
3642     for ac_exec_ext in '' $ac_executable_extensions; do
3643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3644     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3646     break 2
3647   fi
3648 done
3649   done
3650 IFS=$as_save_IFS
3651
3652 fi
3653 fi
3654 CC=$ac_cv_prog_CC
3655 if test -n "$CC"; then
3656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3657 $as_echo "$CC" >&6; }
3658 else
3659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 $as_echo "no" >&6; }
3661 fi
3662
3663
3664 fi
3665 if test -z "$ac_cv_prog_CC"; then
3666   ac_ct_CC=$CC
3667   # Extract the first word of "gcc", so it can be a program name with args.
3668 set dummy gcc; ac_word=$2
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3670 $as_echo_n "checking for $ac_word... " >&6; }
3671 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3672   $as_echo_n "(cached) " >&6
3673 else
3674   if test -n "$ac_ct_CC"; then
3675   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3676 else
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH
3679 do
3680   IFS=$as_save_IFS
3681   test -z "$as_dir" && as_dir=.
3682     for ac_exec_ext in '' $ac_executable_extensions; do
3683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3684     ac_cv_prog_ac_ct_CC="gcc"
3685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3686     break 2
3687   fi
3688 done
3689   done
3690 IFS=$as_save_IFS
3691
3692 fi
3693 fi
3694 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3695 if test -n "$ac_ct_CC"; then
3696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3697 $as_echo "$ac_ct_CC" >&6; }
3698 else
3699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 $as_echo "no" >&6; }
3701 fi
3702
3703   if test "x$ac_ct_CC" = x; then
3704     CC=""
3705   else
3706     case $cross_compiling:$ac_tool_warned in
3707 yes:)
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3710 ac_tool_warned=yes ;;
3711 esac
3712     CC=$ac_ct_CC
3713   fi
3714 else
3715   CC="$ac_cv_prog_CC"
3716 fi
3717
3718 if test -z "$CC"; then
3719           if test -n "$ac_tool_prefix"; then
3720     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3721 set dummy ${ac_tool_prefix}cc; ac_word=$2
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3723 $as_echo_n "checking for $ac_word... " >&6; }
3724 if test "${ac_cv_prog_CC+set}" = set; then :
3725   $as_echo_n "(cached) " >&6
3726 else
3727   if test -n "$CC"; then
3728   ac_cv_prog_CC="$CC" # Let the user override the test.
3729 else
3730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 for as_dir in $PATH
3732 do
3733   IFS=$as_save_IFS
3734   test -z "$as_dir" && as_dir=.
3735     for ac_exec_ext in '' $ac_executable_extensions; do
3736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3737     ac_cv_prog_CC="${ac_tool_prefix}cc"
3738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3739     break 2
3740   fi
3741 done
3742   done
3743 IFS=$as_save_IFS
3744
3745 fi
3746 fi
3747 CC=$ac_cv_prog_CC
3748 if test -n "$CC"; then
3749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3750 $as_echo "$CC" >&6; }
3751 else
3752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3753 $as_echo "no" >&6; }
3754 fi
3755
3756
3757   fi
3758 fi
3759 if test -z "$CC"; then
3760   # Extract the first word of "cc", so it can be a program name with args.
3761 set dummy cc; ac_word=$2
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3763 $as_echo_n "checking for $ac_word... " >&6; }
3764 if test "${ac_cv_prog_CC+set}" = set; then :
3765   $as_echo_n "(cached) " >&6
3766 else
3767   if test -n "$CC"; then
3768   ac_cv_prog_CC="$CC" # Let the user override the test.
3769 else
3770   ac_prog_rejected=no
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH
3773 do
3774   IFS=$as_save_IFS
3775   test -z "$as_dir" && as_dir=.
3776     for ac_exec_ext in '' $ac_executable_extensions; do
3777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3778     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3779        ac_prog_rejected=yes
3780        continue
3781      fi
3782     ac_cv_prog_CC="cc"
3783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3784     break 2
3785   fi
3786 done
3787   done
3788 IFS=$as_save_IFS
3789
3790 if test $ac_prog_rejected = yes; then
3791   # We found a bogon in the path, so make sure we never use it.
3792   set dummy $ac_cv_prog_CC
3793   shift
3794   if test $# != 0; then
3795     # We chose a different compiler from the bogus one.
3796     # However, it has the same basename, so the bogon will be chosen
3797     # first if we set CC to just the basename; use the full file name.
3798     shift
3799     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3800   fi
3801 fi
3802 fi
3803 fi
3804 CC=$ac_cv_prog_CC
3805 if test -n "$CC"; then
3806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3807 $as_echo "$CC" >&6; }
3808 else
3809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3810 $as_echo "no" >&6; }
3811 fi
3812
3813
3814 fi
3815 if test -z "$CC"; then
3816   if test -n "$ac_tool_prefix"; then
3817   for ac_prog in cl.exe
3818   do
3819     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3820 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3822 $as_echo_n "checking for $ac_word... " >&6; }
3823 if test "${ac_cv_prog_CC+set}" = set; then :
3824   $as_echo_n "(cached) " >&6
3825 else
3826   if test -n "$CC"; then
3827   ac_cv_prog_CC="$CC" # Let the user override the test.
3828 else
3829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 for as_dir in $PATH
3831 do
3832   IFS=$as_save_IFS
3833   test -z "$as_dir" && as_dir=.
3834     for ac_exec_ext in '' $ac_executable_extensions; do
3835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3836     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3838     break 2
3839   fi
3840 done
3841   done
3842 IFS=$as_save_IFS
3843
3844 fi
3845 fi
3846 CC=$ac_cv_prog_CC
3847 if test -n "$CC"; then
3848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3849 $as_echo "$CC" >&6; }
3850 else
3851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3852 $as_echo "no" >&6; }
3853 fi
3854
3855
3856     test -n "$CC" && break
3857   done
3858 fi
3859 if test -z "$CC"; then
3860   ac_ct_CC=$CC
3861   for ac_prog in cl.exe
3862 do
3863   # Extract the first word of "$ac_prog", so it can be a program name with args.
3864 set dummy $ac_prog; ac_word=$2
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3866 $as_echo_n "checking for $ac_word... " >&6; }
3867 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3868   $as_echo_n "(cached) " >&6
3869 else
3870   if test -n "$ac_ct_CC"; then
3871   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3872 else
3873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 for as_dir in $PATH
3875 do
3876   IFS=$as_save_IFS
3877   test -z "$as_dir" && as_dir=.
3878     for ac_exec_ext in '' $ac_executable_extensions; do
3879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3880     ac_cv_prog_ac_ct_CC="$ac_prog"
3881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3882     break 2
3883   fi
3884 done
3885   done
3886 IFS=$as_save_IFS
3887
3888 fi
3889 fi
3890 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3891 if test -n "$ac_ct_CC"; then
3892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3893 $as_echo "$ac_ct_CC" >&6; }
3894 else
3895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3896 $as_echo "no" >&6; }
3897 fi
3898
3899
3900   test -n "$ac_ct_CC" && break
3901 done
3902
3903   if test "x$ac_ct_CC" = x; then
3904     CC=""
3905   else
3906     case $cross_compiling:$ac_tool_warned in
3907 yes:)
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3910 ac_tool_warned=yes ;;
3911 esac
3912     CC=$ac_ct_CC
3913   fi
3914 fi
3915
3916 fi
3917
3918
3919 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3921 as_fn_error "no acceptable C compiler found in \$PATH
3922 See \`config.log' for more details." "$LINENO" 5; }
3923
3924 # Provide some information about the compiler.
3925 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3926 set X $ac_compile
3927 ac_compiler=$2
3928 for ac_option in --version -v -V -qversion; do
3929   { { ac_try="$ac_compiler $ac_option >&5"
3930 case "(($ac_try" in
3931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932   *) ac_try_echo=$ac_try;;
3933 esac
3934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3935 $as_echo "$ac_try_echo"; } >&5
3936   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3937   ac_status=$?
3938   if test -s conftest.err; then
3939     sed '10a\
3940 ... rest of stderr output deleted ...
3941          10q' conftest.err >conftest.er1
3942     cat conftest.er1 >&5
3943   fi
3944   rm -f conftest.er1 conftest.err
3945   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3946   test $ac_status = 0; }
3947 done
3948
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3950 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3951 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3952   $as_echo_n "(cached) " >&6
3953 else
3954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h.  */
3956
3957 int
3958 main ()
3959 {
3960 #ifndef __GNUC__
3961        choke me
3962 #endif
3963
3964   ;
3965   return 0;
3966 }
3967 _ACEOF
3968 if ac_fn_c_try_compile "$LINENO"; then :
3969   ac_compiler_gnu=yes
3970 else
3971   ac_compiler_gnu=no
3972 fi
3973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3975
3976 fi
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3978 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3979 if test $ac_compiler_gnu = yes; then
3980   GCC=yes
3981 else
3982   GCC=
3983 fi
3984 ac_test_CFLAGS=${CFLAGS+set}
3985 ac_save_CFLAGS=$CFLAGS
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3987 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3988 if test "${ac_cv_prog_cc_g+set}" = set; then :
3989   $as_echo_n "(cached) " >&6
3990 else
3991   ac_save_c_werror_flag=$ac_c_werror_flag
3992    ac_c_werror_flag=yes
3993    ac_cv_prog_cc_g=no
3994    CFLAGS="-g"
3995    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h.  */
3997
3998 int
3999 main ()
4000 {
4001
4002   ;
4003   return 0;
4004 }
4005 _ACEOF
4006 if ac_fn_c_try_compile "$LINENO"; then :
4007   ac_cv_prog_cc_g=yes
4008 else
4009   CFLAGS=""
4010       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h.  */
4012
4013 int
4014 main ()
4015 {
4016
4017   ;
4018   return 0;
4019 }
4020 _ACEOF
4021 if ac_fn_c_try_compile "$LINENO"; then :
4022
4023 else
4024   ac_c_werror_flag=$ac_save_c_werror_flag
4025          CFLAGS="-g"
4026          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h.  */
4028
4029 int
4030 main ()
4031 {
4032
4033   ;
4034   return 0;
4035 }
4036 _ACEOF
4037 if ac_fn_c_try_compile "$LINENO"; then :
4038   ac_cv_prog_cc_g=yes
4039 fi
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041 fi
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043 fi
4044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045    ac_c_werror_flag=$ac_save_c_werror_flag
4046 fi
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4048 $as_echo "$ac_cv_prog_cc_g" >&6; }
4049 if test "$ac_test_CFLAGS" = set; then
4050   CFLAGS=$ac_save_CFLAGS
4051 elif test $ac_cv_prog_cc_g = yes; then
4052   if test "$GCC" = yes; then
4053     CFLAGS="-g -O2"
4054   else
4055     CFLAGS="-g"
4056   fi
4057 else
4058   if test "$GCC" = yes; then
4059     CFLAGS="-O2"
4060   else
4061     CFLAGS=
4062   fi
4063 fi
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4065 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4066 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4067   $as_echo_n "(cached) " >&6
4068 else
4069   ac_cv_prog_cc_c89=no
4070 ac_save_CC=$CC
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h.  */
4073 #include <stdarg.h>
4074 #include <stdio.h>
4075 #include <sys/types.h>
4076 #include <sys/stat.h>
4077 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4078 struct buf { int x; };
4079 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4080 static char *e (p, i)
4081      char **p;
4082      int i;
4083 {
4084   return p[i];
4085 }
4086 static char *f (char * (*g) (char **, int), char **p, ...)
4087 {
4088   char *s;
4089   va_list v;
4090   va_start (v,p);
4091   s = g (p, va_arg (v,int));
4092   va_end (v);
4093   return s;
4094 }
4095
4096 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4097    function prototypes and stuff, but not '\xHH' hex character constants.
4098    These don't provoke an error unfortunately, instead are silently treated
4099    as 'x'.  The following induces an error, until -std is added to get
4100    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4101    array size at least.  It's necessary to write '\x00'==0 to get something
4102    that's true only with -std.  */
4103 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4104
4105 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4106    inside strings and character constants.  */
4107 #define FOO(x) 'x'
4108 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4109
4110 int test (int i, double x);
4111 struct s1 {int (*f) (int a);};
4112 struct s2 {int (*f) (double a);};
4113 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4114 int argc;
4115 char **argv;
4116 int
4117 main ()
4118 {
4119 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4120   ;
4121   return 0;
4122 }
4123 _ACEOF
4124 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4125         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4126 do
4127   CC="$ac_save_CC $ac_arg"
4128   if ac_fn_c_try_compile "$LINENO"; then :
4129   ac_cv_prog_cc_c89=$ac_arg
4130 fi
4131 rm -f core conftest.err conftest.$ac_objext
4132   test "x$ac_cv_prog_cc_c89" != "xno" && break
4133 done
4134 rm -f conftest.$ac_ext
4135 CC=$ac_save_CC
4136
4137 fi
4138 # AC_CACHE_VAL
4139 case "x$ac_cv_prog_cc_c89" in
4140   x)
4141     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4142 $as_echo "none needed" >&6; } ;;
4143   xno)
4144     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4145 $as_echo "unsupported" >&6; } ;;
4146   *)
4147     CC="$CC $ac_cv_prog_cc_c89"
4148     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4149 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4150 esac
4151 if test "x$ac_cv_prog_cc_c89" != xno; then :
4152
4153 fi
4154
4155 ac_ext=c
4156 ac_cpp='$CPP $CPPFLAGS'
4157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4160
4161 if test "$GCC" = yes; then
4162    RDYNAMIC="-rdynamic"
4163
4164 fi
4165 ac_ext=c
4166 ac_cpp='$CPP $CPPFLAGS'
4167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4171 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4172 # On Suns, sometimes $CPP names a directory.
4173 if test -n "$CPP" && test -d "$CPP"; then
4174   CPP=
4175 fi
4176 if test -z "$CPP"; then
4177   if test "${ac_cv_prog_CPP+set}" = set; then :
4178   $as_echo_n "(cached) " >&6
4179 else
4180       # Double quotes because CPP needs to be expanded
4181     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4182     do
4183       ac_preproc_ok=false
4184 for ac_c_preproc_warn_flag in '' yes
4185 do
4186   # Use a header file that comes with gcc, so configuring glibc
4187   # with a fresh cross-compiler works.
4188   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4189   # <limits.h> exists even on freestanding compilers.
4190   # On the NeXT, cc -E runs the code through the compiler's parser,
4191   # not just through cpp. "Syntax error" is here to catch this case.
4192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h.  */
4194 #ifdef __STDC__
4195 # include <limits.h>
4196 #else
4197 # include <assert.h>
4198 #endif
4199                      Syntax error
4200 _ACEOF
4201 if ac_fn_c_try_cpp "$LINENO"; then :
4202
4203 else
4204   # Broken: fails on valid input.
4205 continue
4206 fi
4207 rm -f conftest.err conftest.$ac_ext
4208
4209   # OK, works on sane cases.  Now check whether nonexistent headers
4210   # can be detected and how.
4211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212 /* end confdefs.h.  */
4213 #include <ac_nonexistent.h>
4214 _ACEOF
4215 if ac_fn_c_try_cpp "$LINENO"; then :
4216   # Broken: success on invalid input.
4217 continue
4218 else
4219   # Passes both tests.
4220 ac_preproc_ok=:
4221 break
4222 fi
4223 rm -f conftest.err conftest.$ac_ext
4224
4225 done
4226 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4227 rm -f conftest.err conftest.$ac_ext
4228 if $ac_preproc_ok; then :
4229   break
4230 fi
4231
4232     done
4233     ac_cv_prog_CPP=$CPP
4234
4235 fi
4236   CPP=$ac_cv_prog_CPP
4237 else
4238   ac_cv_prog_CPP=$CPP
4239 fi
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4241 $as_echo "$CPP" >&6; }
4242 ac_preproc_ok=false
4243 for ac_c_preproc_warn_flag in '' yes
4244 do
4245   # Use a header file that comes with gcc, so configuring glibc
4246   # with a fresh cross-compiler works.
4247   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4248   # <limits.h> exists even on freestanding compilers.
4249   # On the NeXT, cc -E runs the code through the compiler's parser,
4250   # not just through cpp. "Syntax error" is here to catch this case.
4251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h.  */
4253 #ifdef __STDC__
4254 # include <limits.h>
4255 #else
4256 # include <assert.h>
4257 #endif
4258                      Syntax error
4259 _ACEOF
4260 if ac_fn_c_try_cpp "$LINENO"; then :
4261
4262 else
4263   # Broken: fails on valid input.
4264 continue
4265 fi
4266 rm -f conftest.err conftest.$ac_ext
4267
4268   # OK, works on sane cases.  Now check whether nonexistent headers
4269   # can be detected and how.
4270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h.  */
4272 #include <ac_nonexistent.h>
4273 _ACEOF
4274 if ac_fn_c_try_cpp "$LINENO"; then :
4275   # Broken: success on invalid input.
4276 continue
4277 else
4278   # Passes both tests.
4279 ac_preproc_ok=:
4280 break
4281 fi
4282 rm -f conftest.err conftest.$ac_ext
4283
4284 done
4285 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4286 rm -f conftest.err conftest.$ac_ext
4287 if $ac_preproc_ok; then :
4288
4289 else
4290   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4292 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4293 See \`config.log' for more details." "$LINENO" 5; }
4294 fi
4295
4296 ac_ext=c
4297 ac_cpp='$CPP $CPPFLAGS'
4298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4301
4302
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4304 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4305 if test "${ac_cv_path_GREP+set}" = set; then :
4306   $as_echo_n "(cached) " >&6
4307 else
4308   if test -z "$GREP"; then
4309   ac_path_GREP_found=false
4310   # Loop through the user's path and test for each of PROGNAME-LIST
4311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4313 do
4314   IFS=$as_save_IFS
4315   test -z "$as_dir" && as_dir=.
4316     for ac_prog in grep ggrep; do
4317     for ac_exec_ext in '' $ac_executable_extensions; do
4318       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4319       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4320 # Check for GNU ac_path_GREP and select it if it is found.
4321   # Check for GNU $ac_path_GREP
4322 case `"$ac_path_GREP" --version 2>&1` in
4323 *GNU*)
4324   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4325 *)
4326   ac_count=0
4327   $as_echo_n 0123456789 >"conftest.in"
4328   while :
4329   do
4330     cat "conftest.in" "conftest.in" >"conftest.tmp"
4331     mv "conftest.tmp" "conftest.in"
4332     cp "conftest.in" "conftest.nl"
4333     $as_echo 'GREP' >> "conftest.nl"
4334     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4335     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4336     as_fn_arith $ac_count + 1 && ac_count=$as_val
4337     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4338       # Best one so far, save it but keep looking for a better one
4339       ac_cv_path_GREP="$ac_path_GREP"
4340       ac_path_GREP_max=$ac_count
4341     fi
4342     # 10*(2^10) chars as input seems more than enough
4343     test $ac_count -gt 10 && break
4344   done
4345   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4346 esac
4347
4348       $ac_path_GREP_found && break 3
4349     done
4350   done
4351   done
4352 IFS=$as_save_IFS
4353   if test -z "$ac_cv_path_GREP"; then
4354     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4355   fi
4356 else
4357   ac_cv_path_GREP=$GREP
4358 fi
4359
4360 fi
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4362 $as_echo "$ac_cv_path_GREP" >&6; }
4363  GREP="$ac_cv_path_GREP"
4364
4365
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4367 $as_echo_n "checking for egrep... " >&6; }
4368 if test "${ac_cv_path_EGREP+set}" = set; then :
4369   $as_echo_n "(cached) " >&6
4370 else
4371   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4372    then ac_cv_path_EGREP="$GREP -E"
4373    else
4374      if test -z "$EGREP"; then
4375   ac_path_EGREP_found=false
4376   # Loop through the user's path and test for each of PROGNAME-LIST
4377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4379 do
4380   IFS=$as_save_IFS
4381   test -z "$as_dir" && as_dir=.
4382     for ac_prog in egrep; do
4383     for ac_exec_ext in '' $ac_executable_extensions; do
4384       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4385       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4386 # Check for GNU ac_path_EGREP and select it if it is found.
4387   # Check for GNU $ac_path_EGREP
4388 case `"$ac_path_EGREP" --version 2>&1` in
4389 *GNU*)
4390   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4391 *)
4392   ac_count=0
4393   $as_echo_n 0123456789 >"conftest.in"
4394   while :
4395   do
4396     cat "conftest.in" "conftest.in" >"conftest.tmp"
4397     mv "conftest.tmp" "conftest.in"
4398     cp "conftest.in" "conftest.nl"
4399     $as_echo 'EGREP' >> "conftest.nl"
4400     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4401     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4402     as_fn_arith $ac_count + 1 && ac_count=$as_val
4403     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4404       # Best one so far, save it but keep looking for a better one
4405       ac_cv_path_EGREP="$ac_path_EGREP"
4406       ac_path_EGREP_max=$ac_count
4407     fi
4408     # 10*(2^10) chars as input seems more than enough
4409     test $ac_count -gt 10 && break
4410   done
4411   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4412 esac
4413
4414       $ac_path_EGREP_found && break 3
4415     done
4416   done
4417   done
4418 IFS=$as_save_IFS
4419   if test -z "$ac_cv_path_EGREP"; then
4420     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4421   fi
4422 else
4423   ac_cv_path_EGREP=$EGREP
4424 fi
4425
4426    fi
4427 fi
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4429 $as_echo "$ac_cv_path_EGREP" >&6; }
4430  EGREP="$ac_cv_path_EGREP"
4431
4432
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4434 $as_echo_n "checking for ANSI C header files... " >&6; }
4435 if test "${ac_cv_header_stdc+set}" = set; then :
4436   $as_echo_n "(cached) " >&6
4437 else
4438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439 /* end confdefs.h.  */
4440 #include <stdlib.h>
4441 #include <stdarg.h>
4442 #include <string.h>
4443 #include <float.h>
4444
4445 int
4446 main ()
4447 {
4448
4449   ;
4450   return 0;
4451 }
4452 _ACEOF
4453 if ac_fn_c_try_compile "$LINENO"; then :
4454   ac_cv_header_stdc=yes
4455 else
4456   ac_cv_header_stdc=no
4457 fi
4458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4459
4460 if test $ac_cv_header_stdc = yes; then
4461   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h.  */
4464 #include <string.h>
4465
4466 _ACEOF
4467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4468   $EGREP "memchr" >/dev/null 2>&1; then :
4469
4470 else
4471   ac_cv_header_stdc=no
4472 fi
4473 rm -f conftest*
4474
4475 fi
4476
4477 if test $ac_cv_header_stdc = yes; then
4478   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h.  */
4481 #include <stdlib.h>
4482
4483 _ACEOF
4484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4485   $EGREP "free" >/dev/null 2>&1; then :
4486
4487 else
4488   ac_cv_header_stdc=no
4489 fi
4490 rm -f conftest*
4491
4492 fi
4493
4494 if test $ac_cv_header_stdc = yes; then
4495   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4496   if test "$cross_compiling" = yes; then :
4497   :
4498 else
4499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h.  */
4501 #include <ctype.h>
4502 #include <stdlib.h>
4503 #if ((' ' & 0x0FF) == 0x020)
4504 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4505 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4506 #else
4507 # define ISLOWER(c) \
4508                    (('a' <= (c) && (c) <= 'i') \
4509                      || ('j' <= (c) && (c) <= 'r') \
4510                      || ('s' <= (c) && (c) <= 'z'))
4511 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4512 #endif
4513
4514 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4515 int
4516 main ()
4517 {
4518   int i;
4519   for (i = 0; i < 256; i++)
4520     if (XOR (islower (i), ISLOWER (i))
4521         || toupper (i) != TOUPPER (i))
4522       return 2;
4523   return 0;
4524 }
4525 _ACEOF
4526 if ac_fn_c_try_run "$LINENO"; then :
4527
4528 else
4529   ac_cv_header_stdc=no
4530 fi
4531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4532   conftest.$ac_objext conftest.beam conftest.$ac_ext
4533 fi
4534
4535 fi
4536 fi
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4538 $as_echo "$ac_cv_header_stdc" >&6; }
4539 if test $ac_cv_header_stdc = yes; then
4540
4541 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4542
4543 fi
4544
4545 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4546 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4547                   inttypes.h stdint.h unistd.h
4548 do :
4549   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4550 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4551 "
4552 eval as_val=\$$as_ac_Header
4553    if test "x$as_val" = x""yes; then :
4554   cat >>confdefs.h <<_ACEOF
4555 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4556 _ACEOF
4557
4558 fi
4559
4560 done
4561
4562
4563 ac_fn_c_check_header_mongrel "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
4564 if test "x$ac_cv_header_linux_fs_h" = x""yes; then :
4565   linux_headers=yes
4566 else
4567   linux_headers=no
4568 fi
4569
4570
4571 if test "$linux_headers" != yes; then
4572   LINUX_INCLUDE='-I$(top_builddir)/include'
4573 fi
4574
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4576 $as_echo_n "checking for additional special compiler flags... " >&6; }
4577 if test "$GCC" = yes
4578 then
4579     case "$host_cpu" in
4580         alpha)          addcflags="-mieee" ;;
4581     esac
4582 fi
4583 if test "x$addcflags" != x
4584 then
4585     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4586 $as_echo "$addcflags" >&6; }
4587     CFLAGS="$addcflags $CFLAGS"
4588 else
4589     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4590 $as_echo "(none)" >&6; }
4591 fi
4592 LIB_EXT=.a
4593 STATIC_LIB_EXT=.a
4594 PROFILED_LIB_EXT=.a
4595
4596 # Check whether --with-root-prefix was given.
4597 if test "${with_root_prefix+set}" = set; then :
4598   withval=$with_root_prefix; root_prefix=$withval
4599 else
4600   root_prefix=NONE
4601 fi
4602 # Check whether --enable-maintainer-mode was given.
4603 if test "${enable_maintainer_mode+set}" = set; then :
4604   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4605 then
4606         MAINTAINER_CMT=#
4607         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4608 $as_echo "Disabling maintainer mode" >&6; }
4609 else
4610         MAINTAINER_CMT=
4611         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4612 $as_echo "Enabling maintainer mode" >&6; }
4613 fi
4614
4615 else
4616   MAINTAINER_CMT=#
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4618 $as_echo "Disabling maintainer mode by default" >&6; }
4619
4620 fi
4621
4622
4623 # Check whether --enable-symlink-install was given.
4624 if test "${enable_symlink_install+set}" = set; then :
4625   enableval=$enable_symlink_install; if test "$enableval" = "no"
4626 then
4627         LINK_INSTALL_FLAGS=-f
4628         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4629 $as_echo "Disabling symlinks for install" >&6; }
4630 else
4631         LINK_INSTALL_FLAGS=-sf
4632         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4633 $as_echo "Enabling symlinks for install" >&6; }
4634 fi
4635
4636 else
4637   LINK_INSTALL_FLAGS=-f
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4639 $as_echo "Disabling symlinks for install" >&6; }
4640
4641 fi
4642
4643
4644 # Check whether --enable-symlink-build was given.
4645 if test "${enable_symlink_build+set}" = set; then :
4646   enableval=$enable_symlink_build; if test "$enableval" = "no"
4647 then
4648         LINK_BUILD_FLAGS=
4649         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4650 $as_echo "Disabling symlinks for build" >&6; }
4651 else
4652         LINK_BUILD_FLAGS=-s
4653         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4654 $as_echo "Enabling symlinks for build" >&6; }
4655 fi
4656
4657 else
4658   LINK_BUILD_FLAGS=
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4660 $as_echo "Disabling symlinks for build" >&6; }
4661
4662 fi
4663
4664
4665 # Check whether --enable-verbose-makecmds was given.
4666 if test "${enable_verbose_makecmds+set}" = set; then :
4667   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4668 then
4669         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4670 $as_echo "Disabling verbose make commands" >&6; }
4671         E=@echo
4672         Q=@
4673 else
4674         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4675 $as_echo "Enabling verbose make commands" >&6; }
4676         E=@\\#
4677         Q=
4678 fi
4679
4680 else
4681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4682 $as_echo "Disabling verbose make commands" >&6; }
4683 E=@echo
4684 Q=@
4685
4686 fi
4687
4688
4689
4690 # Check whether --enable-compression was given.
4691 if test "${enable_compression+set}" = set; then :
4692   enableval=$enable_compression; if test "$enableval" = "no"
4693 then
4694         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4695 $as_echo "Disabling compression support" >&6; }
4696 else
4697         $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4698
4699         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4700 $as_echo "Enabling compression support" >&6; }
4701         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4702 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4703 fi
4704
4705 else
4706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4707 $as_echo "Disabling compression support by default" >&6; }
4708
4709 fi
4710
4711 # Check whether --enable-htree was given.
4712 if test "${enable_htree+set}" = set; then :
4713   enableval=$enable_htree; if test "$enableval" = "no"
4714 then
4715         HTREE_CMT=#
4716         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4717 $as_echo "Disabling htree directory support" >&6; }
4718 else
4719         HTREE_CMT=
4720         $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4721
4722         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4723 $as_echo "Enabling htree directory support" >&6; }
4724 fi
4725
4726 else
4727   HTREE_CMT=
4728 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4729
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4731 $as_echo "Enabling htree directory support by default" >&6; }
4732
4733 fi
4734
4735
4736 E2_PKG_CONFIG_STATIC=--static
4737 LDFLAG_DYNAMIC=
4738 PRIVATE_LIBS_CMT=
4739 # Check whether --enable-elf-shlibs was given.
4740 if test "${enable_elf_shlibs+set}" = set; then :
4741   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4742 then
4743         ELF_CMT=#
4744         MAKEFILE_ELF=/dev/null
4745         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4746 $as_echo "Disabling ELF shared libraries" >&6; }
4747 else
4748         E2_PKG_CONFIG_STATIC=
4749         ELF_CMT=
4750         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4751         case "$host_os" in
4752         solaris2.*)
4753                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4754         ;;
4755         esac
4756         BINARY_TYPE=elfbin
4757         LIB_EXT=.so
4758         PRIVATE_LIBS_CMT=#
4759         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4760         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4761 $as_echo "Enabling ELF shared libraries" >&6; }
4762 fi
4763
4764 else
4765   MAKEFILE_ELF=/dev/null
4766 ELF_CMT=#
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4768 $as_echo "Disabling ELF shared libraries by default" >&6; }
4769
4770 fi
4771
4772
4773
4774 # Check whether --enable-bsd-shlibs was given.
4775 if test "${enable_bsd_shlibs+set}" = set; then :
4776   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4777 then
4778         BSDLIB_CMT=#
4779         MAKEFILE_BSDLIB=/dev/null
4780         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4781 $as_echo "Disabling BSD shared libraries" >&6; }
4782 else
4783         E2_PKG_CONFIG_STATIC=
4784         BSDLIB_CMT=
4785         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4786         LIB_EXT=.so
4787         case "$host_os" in
4788         darwin*)
4789                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4790                 LIB_EXT=.dylib
4791         ;;
4792         esac
4793         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4794 $as_echo "Enabling BSD shared libraries" >&6; }
4795 fi
4796
4797 else
4798   MAKEFILE_BSDLIB=/dev/null
4799 BSDLIB_CMT=#
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4801 $as_echo "Disabling BSD shared libraries by default" >&6; }
4802
4803 fi
4804
4805
4806
4807 # Check whether --enable-profile was given.
4808 if test "${enable_profile+set}" = set; then :
4809   enableval=$enable_profile; if test "$enableval" = "no"
4810 then
4811         PROFILE_CMT=#
4812         MAKEFILE_PROFILE=/dev/null
4813         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4814 $as_echo "Disabling profiling libraries" >&6; }
4815 else
4816         PROFILE_CMT=
4817         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4818         PROFILED_LIB_EXT=_p.a
4819         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4820 $as_echo "Building profiling libraries" >&6; }
4821 fi
4822
4823 else
4824   PROFILE_CMT=#
4825 MAKEFILE_PROFILE=/dev/null
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4827 $as_echo "Disabling profiling libraries by default" >&6; }
4828
4829 fi
4830
4831
4832
4833 # Check whether --enable-checker was given.
4834 if test "${enable_checker+set}" = set; then :
4835   enableval=$enable_checker; if test "$enableval" = "no"
4836 then
4837         CHECKER_CMT=#
4838         MAKEFILE_CHECKER=/dev/null
4839         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4840 $as_echo "Disabling checker libraries" >&6; }
4841 else
4842         CHECKER_CMT=
4843         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4844         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4845 $as_echo "Building checker libraries" >&6; }
4846 fi
4847
4848 else
4849   CHECKER_CMT=#
4850 MAKEFILE_CHECKER=/dev/null
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4852 $as_echo "Disabling checker libraries by default" >&6; }
4853
4854 fi
4855
4856
4857
4858
4859
4860
4861
4862
4863 # Check whether --enable-jbd-debug was given.
4864 if test "${enable_jbd_debug+set}" = set; then :
4865   enableval=$enable_jbd_debug; if test "$enableval" = "no"
4866 then
4867         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4868 $as_echo "Disabling journal debugging" >&6; }
4869 else
4870         $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4871
4872         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4873 $as_echo "Enabling journal debugging" >&6; }
4874 fi
4875
4876 else
4877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4878 $as_echo "Disabling journal debugging by default" >&6; }
4879
4880 fi
4881
4882 # Check whether --enable-blkid-debug was given.
4883 if test "${enable_blkid_debug+set}" = set; then :
4884   enableval=$enable_blkid_debug; if test "$enableval" = "no"
4885 then
4886         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4887 $as_echo "Disabling blkid debugging" >&6; }
4888 else
4889         $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4890
4891         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4892 $as_echo "Enabling blkid debugging" >&6; }
4893 fi
4894
4895 else
4896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4897 $as_echo "Disabling blkid debugging by default" >&6; }
4898
4899 fi
4900
4901 # Check whether --enable-testio-debug was given.
4902 if test "${enable_testio_debug+set}" = set; then :
4903   enableval=$enable_testio_debug; if test "$enableval" = "no"
4904 then
4905         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4906 $as_echo "Disabling testio debugging" >&6; }
4907         TEST_IO_CMT="#"
4908 else
4909         TEST_IO_CMT=
4910         $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4911
4912         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4913 $as_echo "Enabling testio debugging" >&6; }
4914 fi
4915
4916 else
4917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4918 $as_echo "Enabling testio debugging by default" >&6; }
4919 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4920
4921 TEST_IO_CMT=
4922
4923 fi
4924
4925
4926
4927
4928 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4929         if test -n "$ac_tool_prefix"; then
4930   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4931 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4933 $as_echo_n "checking for $ac_word... " >&6; }
4934 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4935   $as_echo_n "(cached) " >&6
4936 else
4937   case $PKG_CONFIG in
4938   [\\/]* | ?:[\\/]*)
4939   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4940   ;;
4941   *)
4942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH
4944 do
4945   IFS=$as_save_IFS
4946   test -z "$as_dir" && as_dir=.
4947     for ac_exec_ext in '' $ac_executable_extensions; do
4948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4949     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4951     break 2
4952   fi
4953 done
4954   done
4955 IFS=$as_save_IFS
4956
4957   ;;
4958 esac
4959 fi
4960 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4961 if test -n "$PKG_CONFIG"; then
4962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4963 $as_echo "$PKG_CONFIG" >&6; }
4964 else
4965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4966 $as_echo "no" >&6; }
4967 fi
4968
4969
4970 fi
4971 if test -z "$ac_cv_path_PKG_CONFIG"; then
4972   ac_pt_PKG_CONFIG=$PKG_CONFIG
4973   # Extract the first word of "pkg-config", so it can be a program name with args.
4974 set dummy pkg-config; ac_word=$2
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4976 $as_echo_n "checking for $ac_word... " >&6; }
4977 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4978   $as_echo_n "(cached) " >&6
4979 else
4980   case $ac_pt_PKG_CONFIG in
4981   [\\/]* | ?:[\\/]*)
4982   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4983   ;;
4984   *)
4985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4987 do
4988   IFS=$as_save_IFS
4989   test -z "$as_dir" && as_dir=.
4990     for ac_exec_ext in '' $ac_executable_extensions; do
4991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4992     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4994     break 2
4995   fi
4996 done
4997   done
4998 IFS=$as_save_IFS
4999
5000   ;;
5001 esac
5002 fi
5003 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5004 if test -n "$ac_pt_PKG_CONFIG"; then
5005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5006 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5007 else
5008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009 $as_echo "no" >&6; }
5010 fi
5011
5012   if test "x$ac_pt_PKG_CONFIG" = x; then
5013     PKG_CONFIG=""
5014   else
5015     case $cross_compiling:$ac_tool_warned in
5016 yes:)
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5019 ac_tool_warned=yes ;;
5020 esac
5021     PKG_CONFIG=$ac_pt_PKG_CONFIG
5022   fi
5023 else
5024   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5025 fi
5026
5027 fi
5028 if test -n "$PKG_CONFIG"; then
5029         _pkg_min_version=0.9.0
5030         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5031 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5032         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5033                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5034 $as_echo "yes" >&6; }
5035         else
5036                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5038                 PKG_CONFIG=""
5039         fi
5040
5041 fi
5042 LIBUUID=
5043 DEPLIBUUID=
5044 STATIC_LIBUUID=
5045 DEPSTATIC_LIBUUID=
5046 PROFILED_LIBUUID=
5047 DEPPROFILED_LIBUUID=
5048 UUID_CMT=
5049 # Check whether --enable-libuuid was given.
5050 if test "${enable_libuuid+set}" = set; then :
5051   enableval=$enable_libuuid; if test "$enableval" = "no"
5052 then
5053         if test -z "$PKG_CONFIG"; then
5054                 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
5055         fi
5056
5057         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5058 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5059 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
5060   $as_echo_n "(cached) " >&6
5061 else
5062   ac_check_lib_save_LIBS=$LIBS
5063 LIBS="-luuid $LIBUUID $LIBS"
5064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5065 /* end confdefs.h.  */
5066
5067 /* Override any GCC internal prototype to avoid an error.
5068    Use char because int might match the return type of a GCC
5069    builtin and then its argument prototype would still apply.  */
5070 #ifdef __cplusplus
5071 extern "C"
5072 #endif
5073 char uuid_generate ();
5074 int
5075 main ()
5076 {
5077 return uuid_generate ();
5078   ;
5079   return 0;
5080 }
5081 _ACEOF
5082 if ac_fn_c_try_link "$LINENO"; then :
5083   ac_cv_lib_uuid_uuid_generate=yes
5084 else
5085   ac_cv_lib_uuid_uuid_generate=no
5086 fi
5087 rm -f core conftest.err conftest.$ac_objext \
5088     conftest$ac_exeext conftest.$ac_ext
5089 LIBS=$ac_check_lib_save_LIBS
5090 fi
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5092 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5093 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
5094   LIBUUID=`$PKG_CONFIG --libs uuid`;
5095                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5096 else
5097   as_fn_error "external uuid library not found" "$LINENO" 5
5098 fi
5099
5100         UUID_CMT=#
5101         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5102 $as_echo "Disabling private uuid library" >&6; }
5103 else
5104         LIBUUID='$(LIB)/libuuid'$LIB_EXT
5105         DEPLIBUUID=$LIBUUID
5106         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5107         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5108         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5109         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5110         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5111 $as_echo "Enabling private uuid library" >&6; }
5112 fi
5113
5114 else
5115   LIBUUID='$(LIB)/libuuid'$LIB_EXT
5116 DEPLIBUUID=$LIBUUID
5117 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5118 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5119 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5120 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5122 $as_echo "Enabling private uuid library by default" >&6; }
5123
5124 fi
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5136         if test -n "$ac_tool_prefix"; then
5137   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5138 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5140 $as_echo_n "checking for $ac_word... " >&6; }
5141 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5142   $as_echo_n "(cached) " >&6
5143 else
5144   case $PKG_CONFIG in
5145   [\\/]* | ?:[\\/]*)
5146   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5147   ;;
5148   *)
5149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH
5151 do
5152   IFS=$as_save_IFS
5153   test -z "$as_dir" && as_dir=.
5154     for ac_exec_ext in '' $ac_executable_extensions; do
5155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5156     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5158     break 2
5159   fi
5160 done
5161   done
5162 IFS=$as_save_IFS
5163
5164   ;;
5165 esac
5166 fi
5167 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5168 if test -n "$PKG_CONFIG"; then
5169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5170 $as_echo "$PKG_CONFIG" >&6; }
5171 else
5172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173 $as_echo "no" >&6; }
5174 fi
5175
5176
5177 fi
5178 if test -z "$ac_cv_path_PKG_CONFIG"; then
5179   ac_pt_PKG_CONFIG=$PKG_CONFIG
5180   # Extract the first word of "pkg-config", so it can be a program name with args.
5181 set dummy pkg-config; ac_word=$2
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183 $as_echo_n "checking for $ac_word... " >&6; }
5184 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5185   $as_echo_n "(cached) " >&6
5186 else
5187   case $ac_pt_PKG_CONFIG in
5188   [\\/]* | ?:[\\/]*)
5189   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5190   ;;
5191   *)
5192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH
5194 do
5195   IFS=$as_save_IFS
5196   test -z "$as_dir" && as_dir=.
5197     for ac_exec_ext in '' $ac_executable_extensions; do
5198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5201     break 2
5202   fi
5203 done
5204   done
5205 IFS=$as_save_IFS
5206
5207   ;;
5208 esac
5209 fi
5210 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5211 if test -n "$ac_pt_PKG_CONFIG"; then
5212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5213 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5214 else
5215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216 $as_echo "no" >&6; }
5217 fi
5218
5219   if test "x$ac_pt_PKG_CONFIG" = x; then
5220     PKG_CONFIG=""
5221   else
5222     case $cross_compiling:$ac_tool_warned in
5223 yes:)
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5226 ac_tool_warned=yes ;;
5227 esac
5228     PKG_CONFIG=$ac_pt_PKG_CONFIG
5229   fi
5230 else
5231   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5232 fi
5233
5234 fi
5235 if test -n "$PKG_CONFIG"; then
5236         _pkg_min_version=0.9.0
5237         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5238 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5239         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5240                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5241 $as_echo "yes" >&6; }
5242         else
5243                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244 $as_echo "no" >&6; }
5245                 PKG_CONFIG=""
5246         fi
5247
5248 fi
5249 LIBBLKID=
5250 DEPLIBBLKID=
5251 STATIC_LIBBLKID=
5252 DEPSTATIC_LIBBLKID=
5253 PROFILED_LIBBLKID=
5254 DEPPROFILED_LIBBLKID=
5255 BLKID_CMT=
5256 # Check whether --enable-libblkid was given.
5257 if test "${enable_libblkid+set}" = set; then :
5258   enableval=$enable_libblkid; if test "$enableval" = "no"
5259 then
5260         if test -z "$PKG_CONFIG"; then
5261                 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
5262         fi
5263
5264         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5265 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5266 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
5267   $as_echo_n "(cached) " >&6
5268 else
5269   ac_check_lib_save_LIBS=$LIBS
5270 LIBS="-lblkid $LIBBLKID $LIBS"
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h.  */
5273
5274 /* Override any GCC internal prototype to avoid an error.
5275    Use char because int might match the return type of a GCC
5276    builtin and then its argument prototype would still apply.  */
5277 #ifdef __cplusplus
5278 extern "C"
5279 #endif
5280 char blkid_get_cache ();
5281 int
5282 main ()
5283 {
5284 return blkid_get_cache ();
5285   ;
5286   return 0;
5287 }
5288 _ACEOF
5289 if ac_fn_c_try_link "$LINENO"; then :
5290   ac_cv_lib_blkid_blkid_get_cache=yes
5291 else
5292   ac_cv_lib_blkid_blkid_get_cache=no
5293 fi
5294 rm -f core conftest.err conftest.$ac_objext \
5295     conftest$ac_exeext conftest.$ac_ext
5296 LIBS=$ac_check_lib_save_LIBS
5297 fi
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5299 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5300 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then :
5301   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5302                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5303 else
5304   as_fn_error "external blkid library not found" "$LINENO" 5
5305 fi
5306
5307         BLKID_CMT=#
5308         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5309 $as_echo "Disabling private blkid library" >&6; }
5310 else
5311         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5312         DEPLIBBLKID=$LIBBLKID
5313         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5314         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5315         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5316         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5317         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5318
5319         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5320 $as_echo "Enabling private blkid library" >&6; }
5321 fi
5322
5323 else
5324   LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5325 DEPLIBBLKID=$LIBBLKID
5326 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5327 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5328 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5329 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5330 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5331
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5333 $as_echo "Enabling private blkid library by default" >&6; }
5334
5335 fi
5336
5337
5338
5339
5340
5341
5342
5343
5344 # Check whether --enable-debugfs was given.
5345 if test "${enable_debugfs+set}" = set; then :
5346   enableval=$enable_debugfs; if test "$enableval" = "no"
5347 then
5348         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5349 $as_echo "Disabling debugfs support" >&6; }
5350         DEBUGFS_CMT="#"
5351 else
5352         DEBUGFS_CMT=
5353         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5354 $as_echo "Enabling debugfs support" >&6; }
5355 fi
5356
5357 else
5358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5359 $as_echo "Enabling debugfs support by default" >&6; }
5360 DEBUGFS_CMT=
5361
5362 fi
5363
5364
5365 # Check whether --enable-imager was given.
5366 if test "${enable_imager+set}" = set; then :
5367   enableval=$enable_imager; if test "$enableval" = "no"
5368 then
5369         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5370 $as_echo "Disabling e2image support" >&6; }
5371         IMAGER_CMT="#"
5372 else
5373         IMAGER_CMT=
5374         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5375 $as_echo "Enabling e2image support" >&6; }
5376 fi
5377
5378 else
5379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5380 $as_echo "Enabling e2image support by default" >&6; }
5381 IMAGER_CMT=
5382
5383 fi
5384
5385
5386 # Check whether --enable-resizer was given.
5387 if test "${enable_resizer+set}" = set; then :
5388   enableval=$enable_resizer; if test "$enableval" = "no"
5389 then
5390         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5391 $as_echo "Disabling e2resize support" >&6; }
5392         RESIZER_CMT="#"
5393 else
5394         RESIZER_CMT=
5395         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5396 $as_echo "Enabling e2resize support" >&6; }
5397 fi
5398
5399 else
5400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5401 $as_echo "Enabling e2resize support by default" >&6; }
5402 RESIZER_CMT=
5403
5404 fi
5405
5406
5407 # Check whether --enable-defrag was given.
5408 if test "${enable_defrag+set}" = set; then :
5409   enableval=$enable_defrag; if test "$enableval" = "no"
5410 then
5411         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5412 $as_echo "Disabling e4defrag support" >&6; }
5413         DEFRAG_CMT="#"
5414 else
5415         DEFRAG_CMT=
5416         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5417 $as_echo "Enabling e4defrag support" >&6; }
5418 fi
5419
5420 else
5421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5422 $as_echo "Enabling e4defrag support by default" >&6; }
5423 DEFRAG_CMT=
5424
5425 fi
5426
5427
5428 # Check whether --enable-fsck was given.
5429 if test "${enable_fsck+set}" = set; then :
5430   enableval=$enable_fsck; if test "$enableval" = "no"
5431 then
5432         FSCK_PROG='' FSCK_MAN=''
5433         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5434 $as_echo "Not building fsck wrapper" >&6; }
5435 else
5436         FSCK_PROG=fsck FSCK_MAN=fsck.8
5437         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5438 $as_echo "Building fsck wrapper" >&6; }
5439 fi
5440
5441 else
5442   case "$host_os" in
5443   gnu*)
5444     FSCK_PROG='' FSCK_MAN=''
5445     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5446 $as_echo "Not building fsck wrapper by default" >&6; }
5447     ;;
5448   *)
5449     FSCK_PROG=fsck FSCK_MAN=fsck.8
5450     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5451 $as_echo "Building fsck wrapper by default" >&6; }
5452 esac
5453
5454 fi
5455
5456
5457
5458 # Check whether --enable-e2initrd-helper was given.
5459 if test "${enable_e2initrd_helper+set}" = set; then :
5460   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5461 then
5462         E2INITRD_PROG='' E2INITRD_MAN=''
5463         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5464 $as_echo "Not building e2initrd helper" >&6; }
5465 else
5466         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5467         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5468 $as_echo "Building e2initrd helper" >&6; }
5469 fi
5470
5471 else
5472   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5474 $as_echo "Building e2initrd helper by default" >&6; }
5475
5476 fi
5477
5478
5479
5480 # Check whether --enable-tls was given.
5481 if test "${enable_tls+set}" = set; then :
5482   enableval=$enable_tls; if test "$enableval" = "no"
5483 then
5484         try_tls=""
5485         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5486 $as_echo "Disabling thread local support" >&6; }
5487 else
5488         try_tls="yes"
5489         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5490 $as_echo "Enabling thread local support" >&6; }
5491 fi
5492
5493 else
5494   if test -n "$WITH_DIET_LIBC"
5495 then
5496         try_tls=""
5497         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5498 $as_echo "Diet libc does not support thread local support" >&6; }
5499 else
5500         try_tls="yes"
5501         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5502 $as_echo "Try using thread local support by default" >&6; }
5503 fi
5504
5505 fi
5506
5507 if test "$try_tls" = "yes"
5508 then
5509
5510   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5511 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5512   if test "${ac_cv_tls+set}" = set; then :
5513   $as_echo_n "(cached) " >&6
5514 else
5515
5516     ax_tls_keywords="__thread __declspec(thread) none"
5517     for ax_tls_keyword in $ax_tls_keywords; do
5518        case $ax_tls_keyword in
5519           none) ac_cv_tls=none ; break ;;
5520           *)
5521              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h.  */
5523 #include <stdlib.h>
5524                  static void
5525                  foo(void) {
5526                  static  $ax_tls_keyword  int bar;
5527                  exit(1);
5528                  }
5529 int
5530 main ()
5531 {
5532
5533   ;
5534   return 0;
5535 }
5536 _ACEOF
5537 if ac_fn_c_try_compile "$LINENO"; then :
5538   ac_cv_tls=$ax_tls_keyword ; break
5539 else
5540   ac_cv_tls=none
5541
5542 fi
5543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5544           esac
5545     done
5546
5547 fi
5548
5549
5550   if test "$ac_cv_tls" != "none"; then
5551
5552 cat >>confdefs.h <<_ACEOF
5553 #define TLS $ac_cv_tls
5554 _ACEOF
5555
5556   fi
5557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5558 $as_echo "$ac_cv_tls" >&6; }
5559
5560 fi
5561 # Check whether --enable-uuidd was given.
5562 if test "${enable_uuidd+set}" = set; then :
5563   enableval=$enable_uuidd; if test "$enableval" = "no"
5564 then
5565         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5566 $as_echo "Not building uuidd" >&6; }
5567         UUIDD_CMT="#"
5568 else
5569         $as_echo "#define USE_UUIDD 1" >>confdefs.h
5570
5571         UUIDD_CMT=""
5572         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5573 $as_echo "Building uuidd" >&6; }
5574 fi
5575
5576 else
5577   $as_echo "#define USE_UUIDD 1" >>confdefs.h
5578
5579 UUIDD_CMT=""
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5581 $as_echo "Building uuidd by default" >&6; }
5582
5583 fi
5584
5585
5586 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5587
5588 GETTEXT_PACKAGE=e2fsprogs
5589 PACKAGE=e2fsprogs
5590 VERSION="$E2FSPROGS_VERSION"
5591 VERSION=0.14.1
5592 cat >>confdefs.h <<_ACEOF
5593 #define PACKAGE "$PACKAGE"
5594 _ACEOF
5595
5596 cat >>confdefs.h <<_ACEOF
5597 #define VERSION "$VERSION"
5598 _ACEOF
5599
5600
5601
5602
5603
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5605 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5606 set x ${MAKE-make}
5607 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5608 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5609   $as_echo_n "(cached) " >&6
5610 else
5611   cat >conftest.make <<\_ACEOF
5612 SHELL = /bin/sh
5613 all:
5614         @echo '@@@%%%=$(MAKE)=@@@%%%'
5615 _ACEOF
5616 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5617 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5618   *@@@%%%=?*=@@@%%%*)
5619     eval ac_cv_prog_make_${ac_make}_set=yes;;
5620   *)
5621     eval ac_cv_prog_make_${ac_make}_set=no;;
5622 esac
5623 rm -f conftest.make
5624 fi
5625 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5627 $as_echo "yes" >&6; }
5628   SET_MAKE=
5629 else
5630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5632   SET_MAKE="MAKE=${MAKE-make}"
5633 fi
5634
5635 # Find a good install program.  We prefer a C program (faster),
5636 # so one script is as good as another.  But avoid the broken or
5637 # incompatible versions:
5638 # SysV /etc/install, /usr/sbin/install
5639 # SunOS /usr/etc/install
5640 # IRIX /sbin/install
5641 # AIX /bin/install
5642 # AmigaOS /C/install, which installs bootblocks on floppy discs
5643 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5644 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5645 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5646 # OS/2's system install, which has a completely different semantic
5647 # ./install, which can be erroneously created by make from ./install.sh.
5648 # Reject install programs that cannot install multiple files.
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5650 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5651 if test -z "$INSTALL"; then
5652 if test "${ac_cv_path_install+set}" = set; then :
5653   $as_echo_n "(cached) " >&6
5654 else
5655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656 for as_dir in $PATH
5657 do
5658   IFS=$as_save_IFS
5659   test -z "$as_dir" && as_dir=.
5660     # Account for people who put trailing slashes in PATH elements.
5661 case $as_dir/ in #((
5662   ./ | .// | /[cC]/* | \
5663   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5664   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5665   /usr/ucb/* ) ;;
5666   *)
5667     # OSF1 and SCO ODT 3.0 have their own names for install.
5668     # Don't use installbsd from OSF since it installs stuff as root
5669     # by default.
5670     for ac_prog in ginstall scoinst install; do
5671       for ac_exec_ext in '' $ac_executable_extensions; do
5672         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5673           if test $ac_prog = install &&
5674             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5675             # AIX install.  It has an incompatible calling convention.
5676             :
5677           elif test $ac_prog = install &&
5678             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5679             # program-specific install script used by HP pwplus--don't use.
5680             :
5681           else
5682             rm -rf conftest.one conftest.two conftest.dir
5683             echo one > conftest.one
5684             echo two > conftest.two
5685             mkdir conftest.dir
5686             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5687               test -s conftest.one && test -s conftest.two &&
5688               test -s conftest.dir/conftest.one &&
5689               test -s conftest.dir/conftest.two
5690             then
5691               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5692               break 3
5693             fi
5694           fi
5695         fi
5696       done
5697     done
5698     ;;
5699 esac
5700
5701   done
5702 IFS=$as_save_IFS
5703
5704 rm -rf conftest.one conftest.two conftest.dir
5705
5706 fi
5707   if test "${ac_cv_path_install+set}" = set; then
5708     INSTALL=$ac_cv_path_install
5709   else
5710     # As a last resort, use the slow shell script.  Don't cache a
5711     # value for INSTALL within a source directory, because that will
5712     # break other packages using the cache if that directory is
5713     # removed, or if the value is a relative name.
5714     INSTALL=$ac_install_sh
5715   fi
5716 fi
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5718 $as_echo "$INSTALL" >&6; }
5719
5720 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5721 # It thinks the first close brace ends the variable substitution.
5722 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5723
5724 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5725
5726 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5727
5728
5729         MKINSTALLDIRS=
5730   if test -n "$ac_aux_dir"; then
5731     case "$ac_aux_dir" in
5732       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5733       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5734     esac
5735   fi
5736   if test -z "$MKINSTALLDIRS"; then
5737     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5738   fi
5739
5740
5741
5742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5743 $as_echo_n "checking whether NLS is requested... " >&6; }
5744     # Check whether --enable-nls was given.
5745 if test "${enable_nls+set}" = set; then :
5746   enableval=$enable_nls; USE_NLS=$enableval
5747 else
5748   USE_NLS=yes
5749 fi
5750
5751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5752 $as_echo "$USE_NLS" >&6; }
5753
5754
5755
5756
5757
5758
5759 # Prepare PATH_SEPARATOR.
5760 # The user is always right.
5761 if test "${PATH_SEPARATOR+set}" != set; then
5762   echo "#! /bin/sh" >conf$$.sh
5763   echo  "exit 0"   >>conf$$.sh
5764   chmod +x conf$$.sh
5765   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5766     PATH_SEPARATOR=';'
5767   else
5768     PATH_SEPARATOR=:
5769   fi
5770   rm -f conf$$.sh
5771 fi
5772
5773 # Find out how to test for executable files. Don't use a zero-byte file,
5774 # as systems may use methods other than mode bits to determine executability.
5775 cat >conf$$.file <<_ASEOF
5776 #! /bin/sh
5777 exit 0
5778 _ASEOF
5779 chmod +x conf$$.file
5780 if test -x conf$$.file >/dev/null 2>&1; then
5781   ac_executable_p="test -x"
5782 else
5783   ac_executable_p="test -f"
5784 fi
5785 rm -f conf$$.file
5786
5787 # Extract the first word of "msgfmt", so it can be a program name with args.
5788 set dummy msgfmt; ac_word=$2
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5790 $as_echo_n "checking for $ac_word... " >&6; }
5791 if test "${ac_cv_path_MSGFMT+set}" = set; then :
5792   $as_echo_n "(cached) " >&6
5793 else
5794   case "$MSGFMT" in
5795   [\\/]* | ?:[\\/]*)
5796     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5797     ;;
5798   *)
5799     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5800     for ac_dir in $PATH; do
5801       IFS="$ac_save_IFS"
5802       test -z "$ac_dir" && ac_dir=.
5803       for ac_exec_ext in '' $ac_executable_extensions; do
5804         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5805           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5806      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5807             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5808             break 2
5809           fi
5810         fi
5811       done
5812     done
5813     IFS="$ac_save_IFS"
5814   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5815     ;;
5816 esac
5817 fi
5818 MSGFMT="$ac_cv_path_MSGFMT"
5819 if test "$MSGFMT" != ":"; then
5820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5821 $as_echo "$MSGFMT" >&6; }
5822 else
5823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5824 $as_echo "no" >&6; }
5825 fi
5826
5827   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5828 set dummy gmsgfmt; ac_word=$2
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5830 $as_echo_n "checking for $ac_word... " >&6; }
5831 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5832   $as_echo_n "(cached) " >&6
5833 else
5834   case $GMSGFMT in
5835   [\\/]* | ?:[\\/]*)
5836   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5837   ;;
5838   *)
5839   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 for as_dir in $PATH
5841 do
5842   IFS=$as_save_IFS
5843   test -z "$as_dir" && as_dir=.
5844     for ac_exec_ext in '' $ac_executable_extensions; do
5845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5846     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5848     break 2
5849   fi
5850 done
5851   done
5852 IFS=$as_save_IFS
5853
5854   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5855   ;;
5856 esac
5857 fi
5858 GMSGFMT=$ac_cv_path_GMSGFMT
5859 if test -n "$GMSGFMT"; then
5860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5861 $as_echo "$GMSGFMT" >&6; }
5862 else
5863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5864 $as_echo "no" >&6; }
5865 fi
5866
5867
5868
5869
5870 # Prepare PATH_SEPARATOR.
5871 # The user is always right.
5872 if test "${PATH_SEPARATOR+set}" != set; then
5873   echo "#! /bin/sh" >conf$$.sh
5874   echo  "exit 0"   >>conf$$.sh
5875   chmod +x conf$$.sh
5876   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5877     PATH_SEPARATOR=';'
5878   else
5879     PATH_SEPARATOR=:
5880   fi
5881   rm -f conf$$.sh
5882 fi
5883
5884 # Find out how to test for executable files. Don't use a zero-byte file,
5885 # as systems may use methods other than mode bits to determine executability.
5886 cat >conf$$.file <<_ASEOF
5887 #! /bin/sh
5888 exit 0
5889 _ASEOF
5890 chmod +x conf$$.file
5891 if test -x conf$$.file >/dev/null 2>&1; then
5892   ac_executable_p="test -x"
5893 else
5894   ac_executable_p="test -f"
5895 fi
5896 rm -f conf$$.file
5897
5898 # Extract the first word of "xgettext", so it can be a program name with args.
5899 set dummy xgettext; ac_word=$2
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5901 $as_echo_n "checking for $ac_word... " >&6; }
5902 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5903   $as_echo_n "(cached) " >&6
5904 else
5905   case "$XGETTEXT" in
5906   [\\/]* | ?:[\\/]*)
5907     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5908     ;;
5909   *)
5910     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5911     for ac_dir in $PATH; do
5912       IFS="$ac_save_IFS"
5913       test -z "$ac_dir" && ac_dir=.
5914       for ac_exec_ext in '' $ac_executable_extensions; do
5915         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5916           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5917      (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
5918             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5919             break 2
5920           fi
5921         fi
5922       done
5923     done
5924     IFS="$ac_save_IFS"
5925   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5926     ;;
5927 esac
5928 fi
5929 XGETTEXT="$ac_cv_path_XGETTEXT"
5930 if test "$XGETTEXT" != ":"; then
5931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5932 $as_echo "$XGETTEXT" >&6; }
5933 else
5934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935 $as_echo "no" >&6; }
5936 fi
5937
5938     rm -f messages.po
5939
5940
5941 # Prepare PATH_SEPARATOR.
5942 # The user is always right.
5943 if test "${PATH_SEPARATOR+set}" != set; then
5944   echo "#! /bin/sh" >conf$$.sh
5945   echo  "exit 0"   >>conf$$.sh
5946   chmod +x conf$$.sh
5947   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5948     PATH_SEPARATOR=';'
5949   else
5950     PATH_SEPARATOR=:
5951   fi
5952   rm -f conf$$.sh
5953 fi
5954
5955 # Find out how to test for executable files. Don't use a zero-byte file,
5956 # as systems may use methods other than mode bits to determine executability.
5957 cat >conf$$.file <<_ASEOF
5958 #! /bin/sh
5959 exit 0
5960 _ASEOF
5961 chmod +x conf$$.file
5962 if test -x conf$$.file >/dev/null 2>&1; then
5963   ac_executable_p="test -x"
5964 else
5965   ac_executable_p="test -f"
5966 fi
5967 rm -f conf$$.file
5968
5969 # Extract the first word of "msgmerge", so it can be a program name with args.
5970 set dummy msgmerge; ac_word=$2
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5972 $as_echo_n "checking for $ac_word... " >&6; }
5973 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
5974   $as_echo_n "(cached) " >&6
5975 else
5976   case "$MSGMERGE" in
5977   [\\/]* | ?:[\\/]*)
5978     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5979     ;;
5980   *)
5981     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5982     for ac_dir in $PATH; do
5983       IFS="$ac_save_IFS"
5984       test -z "$ac_dir" && ac_dir=.
5985       for ac_exec_ext in '' $ac_executable_extensions; do
5986         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5987           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5988             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5989             break 2
5990           fi
5991         fi
5992       done
5993     done
5994     IFS="$ac_save_IFS"
5995   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5996     ;;
5997 esac
5998 fi
5999 MSGMERGE="$ac_cv_path_MSGMERGE"
6000 if test "$MSGMERGE" != ":"; then
6001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6002 $as_echo "$MSGMERGE" >&6; }
6003 else
6004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6005 $as_echo "no" >&6; }
6006 fi
6007
6008
6009       if test "$GMSGFMT" != ":"; then
6010             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6011        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6012       : ;
6013     else
6014       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6015       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6016 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6017       GMSGFMT=":"
6018     fi
6019   fi
6020
6021       if test "$XGETTEXT" != ":"; then
6022             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6023        (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
6024       : ;
6025     else
6026       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6027 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6028       XGETTEXT=":"
6029     fi
6030         rm -f messages.po
6031   fi
6032
6033   ac_config_commands="$ac_config_commands default-1"
6034
6035
6036 if test -n "$ac_tool_prefix"; then
6037   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6038 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6040 $as_echo_n "checking for $ac_word... " >&6; }
6041 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6042   $as_echo_n "(cached) " >&6
6043 else
6044   if test -n "$RANLIB"; then
6045   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6046 else
6047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048 for as_dir in $PATH
6049 do
6050   IFS=$as_save_IFS
6051   test -z "$as_dir" && as_dir=.
6052     for ac_exec_ext in '' $ac_executable_extensions; do
6053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6054     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6056     break 2
6057   fi
6058 done
6059   done
6060 IFS=$as_save_IFS
6061
6062 fi
6063 fi
6064 RANLIB=$ac_cv_prog_RANLIB
6065 if test -n "$RANLIB"; then
6066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6067 $as_echo "$RANLIB" >&6; }
6068 else
6069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6070 $as_echo "no" >&6; }
6071 fi
6072
6073
6074 fi
6075 if test -z "$ac_cv_prog_RANLIB"; then
6076   ac_ct_RANLIB=$RANLIB
6077   # Extract the first word of "ranlib", so it can be a program name with args.
6078 set dummy ranlib; ac_word=$2
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080 $as_echo_n "checking for $ac_word... " >&6; }
6081 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6082   $as_echo_n "(cached) " >&6
6083 else
6084   if test -n "$ac_ct_RANLIB"; then
6085   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6086 else
6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088 for as_dir in $PATH
6089 do
6090   IFS=$as_save_IFS
6091   test -z "$as_dir" && as_dir=.
6092     for ac_exec_ext in '' $ac_executable_extensions; do
6093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6094     ac_cv_prog_ac_ct_RANLIB="ranlib"
6095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6096     break 2
6097   fi
6098 done
6099   done
6100 IFS=$as_save_IFS
6101
6102 fi
6103 fi
6104 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6105 if test -n "$ac_ct_RANLIB"; then
6106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6107 $as_echo "$ac_ct_RANLIB" >&6; }
6108 else
6109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 $as_echo "no" >&6; }
6111 fi
6112
6113   if test "x$ac_ct_RANLIB" = x; then
6114     RANLIB=":"
6115   else
6116     case $cross_compiling:$ac_tool_warned in
6117 yes:)
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6120 ac_tool_warned=yes ;;
6121 esac
6122     RANLIB=$ac_ct_RANLIB
6123   fi
6124 else
6125   RANLIB="$ac_cv_prog_RANLIB"
6126 fi
6127
6128
6129         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6130 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6131 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
6132   $as_echo_n "(cached) " >&6
6133 else
6134   ac_check_lib_save_LIBS=$LIBS
6135 LIBS="-lcposix  $LIBS"
6136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137 /* end confdefs.h.  */
6138
6139 /* Override any GCC internal prototype to avoid an error.
6140    Use char because int might match the return type of a GCC
6141    builtin and then its argument prototype would still apply.  */
6142 #ifdef __cplusplus
6143 extern "C"
6144 #endif
6145 char strerror ();
6146 int
6147 main ()
6148 {
6149 return strerror ();
6150   ;
6151   return 0;
6152 }
6153 _ACEOF
6154 if ac_fn_c_try_link "$LINENO"; then :
6155   ac_cv_lib_cposix_strerror=yes
6156 else
6157   ac_cv_lib_cposix_strerror=no
6158 fi
6159 rm -f core conftest.err conftest.$ac_objext \
6160     conftest$ac_exeext conftest.$ac_ext
6161 LIBS=$ac_check_lib_save_LIBS
6162 fi
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6164 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6165 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
6166   LIBS="$LIBS -lcposix"
6167 fi
6168
6169
6170
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6172 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6173 if test "${ac_cv_c_const+set}" = set; then :
6174   $as_echo_n "(cached) " >&6
6175 else
6176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6177 /* end confdefs.h.  */
6178
6179 int
6180 main ()
6181 {
6182 /* FIXME: Include the comments suggested by Paul. */
6183 #ifndef __cplusplus
6184   /* Ultrix mips cc rejects this.  */
6185   typedef int charset[2];
6186   const charset cs;
6187   /* SunOS 4.1.1 cc rejects this.  */
6188   char const *const *pcpcc;
6189   char **ppc;
6190   /* NEC SVR4.0.2 mips cc rejects this.  */
6191   struct point {int x, y;};
6192   static struct point const zero = {0,0};
6193   /* AIX XL C 1.02.0.0 rejects this.
6194      It does not let you subtract one const X* pointer from another in
6195      an arm of an if-expression whose if-part is not a constant
6196      expression */
6197   const char *g = "string";
6198   pcpcc = &g + (g ? g-g : 0);
6199   /* HPUX 7.0 cc rejects these. */
6200   ++pcpcc;
6201   ppc = (char**) pcpcc;
6202   pcpcc = (char const *const *) ppc;
6203   { /* SCO 3.2v4 cc rejects this.  */
6204     char *t;
6205     char const *s = 0 ? (char *) 0 : (char const *) 0;
6206
6207     *t++ = 0;
6208     if (s) return 0;
6209   }
6210   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6211     int x[] = {25, 17};
6212     const int *foo = &x[0];
6213     ++foo;
6214   }
6215   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6216     typedef const int *iptr;
6217     iptr p = 0;
6218     ++p;
6219   }
6220   { /* AIX XL C 1.02.0.0 rejects this saying
6221        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6222     struct s { int j; const int *ap[3]; };
6223     struct s *b; b->j = 5;
6224   }
6225   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6226     const int foo = 10;
6227     if (!foo) return 0;
6228   }
6229   return !cs[0] && !zero.x;
6230 #endif
6231
6232   ;
6233   return 0;
6234 }
6235 _ACEOF
6236 if ac_fn_c_try_compile "$LINENO"; then :
6237   ac_cv_c_const=yes
6238 else
6239   ac_cv_c_const=no
6240 fi
6241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242 fi
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6244 $as_echo "$ac_cv_c_const" >&6; }
6245 if test $ac_cv_c_const = no; then
6246
6247 $as_echo "#define const /**/" >>confdefs.h
6248
6249 fi
6250
6251
6252   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6253 $as_echo_n "checking for signed... " >&6; }
6254 if test "${bh_cv_c_signed+set}" = set; then :
6255   $as_echo_n "(cached) " >&6
6256 else
6257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6258 /* end confdefs.h.  */
6259
6260 int
6261 main ()
6262 {
6263 signed char x;
6264   ;
6265   return 0;
6266 }
6267 _ACEOF
6268 if ac_fn_c_try_compile "$LINENO"; then :
6269   bh_cv_c_signed=yes
6270 else
6271   bh_cv_c_signed=no
6272 fi
6273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6274 fi
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6276 $as_echo "$bh_cv_c_signed" >&6; }
6277   if test $bh_cv_c_signed = no; then
6278
6279 $as_echo "#define signed /**/" >>confdefs.h
6280
6281   fi
6282
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6284 $as_echo_n "checking for inline... " >&6; }
6285 if test "${ac_cv_c_inline+set}" = set; then :
6286   $as_echo_n "(cached) " >&6
6287 else
6288   ac_cv_c_inline=no
6289 for ac_kw in inline __inline__ __inline; do
6290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h.  */
6292 #ifndef __cplusplus
6293 typedef int foo_t;
6294 static $ac_kw foo_t static_foo () {return 0; }
6295 $ac_kw foo_t foo () {return 0; }
6296 #endif
6297
6298 _ACEOF
6299 if ac_fn_c_try_compile "$LINENO"; then :
6300   ac_cv_c_inline=$ac_kw
6301 fi
6302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6303   test "$ac_cv_c_inline" != no && break
6304 done
6305
6306 fi
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6308 $as_echo "$ac_cv_c_inline" >&6; }
6309
6310 case $ac_cv_c_inline in
6311   inline | yes) ;;
6312   *)
6313     case $ac_cv_c_inline in
6314       no) ac_val=;;
6315       *) ac_val=$ac_cv_c_inline;;
6316     esac
6317     cat >>confdefs.h <<_ACEOF
6318 #ifndef __cplusplus
6319 #define inline $ac_val
6320 #endif
6321 _ACEOF
6322     ;;
6323 esac
6324
6325 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6326 if test "x$ac_cv_type_off_t" = x""yes; then :
6327
6328 else
6329
6330 cat >>confdefs.h <<_ACEOF
6331 #define off_t long int
6332 _ACEOF
6333
6334 fi
6335
6336 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6337 if test "x$ac_cv_type_size_t" = x""yes; then :
6338
6339 else
6340
6341 cat >>confdefs.h <<_ACEOF
6342 #define size_t unsigned int
6343 _ACEOF
6344
6345 fi
6346
6347
6348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6349 $as_echo_n "checking for long long... " >&6; }
6350 if test "${ac_cv_type_long_long+set}" = set; then :
6351   $as_echo_n "(cached) " >&6
6352 else
6353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h.  */
6355 long long ll = 1LL; int i = 63;
6356 int
6357 main ()
6358 {
6359 long long llmax = (long long) -1;
6360      return ll << i | ll >> i | llmax / ll | llmax % ll;
6361   ;
6362   return 0;
6363 }
6364 _ACEOF
6365 if ac_fn_c_try_link "$LINENO"; then :
6366   ac_cv_type_long_long=yes
6367 else
6368   ac_cv_type_long_long=no
6369 fi
6370 rm -f core conftest.err conftest.$ac_objext \
6371     conftest$ac_exeext conftest.$ac_ext
6372 fi
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6374 $as_echo "$ac_cv_type_long_long" >&6; }
6375   if test $ac_cv_type_long_long = yes; then
6376
6377 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6378
6379   fi
6380
6381
6382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6383 $as_echo_n "checking for long double... " >&6; }
6384 if test "${gt_cv_c_long_double+set}" = set; then :
6385   $as_echo_n "(cached) " >&6
6386 else
6387   if test "$GCC" = yes; then
6388        gt_cv_c_long_double=yes
6389      else
6390        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391 /* end confdefs.h.  */
6392
6393          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
6394          long double foo = 0.0;
6395          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
6396          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6397
6398 int
6399 main ()
6400 {
6401
6402   ;
6403   return 0;
6404 }
6405 _ACEOF
6406 if ac_fn_c_try_compile "$LINENO"; then :
6407   gt_cv_c_long_double=yes
6408 else
6409   gt_cv_c_long_double=no
6410 fi
6411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6412      fi
6413 fi
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6415 $as_echo "$gt_cv_c_long_double" >&6; }
6416   if test $gt_cv_c_long_double = yes; then
6417
6418 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6419
6420   fi
6421
6422
6423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6424 $as_echo_n "checking for wchar_t... " >&6; }
6425 if test "${gt_cv_c_wchar_t+set}" = set; then :
6426   $as_echo_n "(cached) " >&6
6427 else
6428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429 /* end confdefs.h.  */
6430 #include <stddef.h>
6431        wchar_t foo = (wchar_t)'\0';
6432 int
6433 main ()
6434 {
6435
6436   ;
6437   return 0;
6438 }
6439 _ACEOF
6440 if ac_fn_c_try_compile "$LINENO"; then :
6441   gt_cv_c_wchar_t=yes
6442 else
6443   gt_cv_c_wchar_t=no
6444 fi
6445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6446 fi
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6448 $as_echo "$gt_cv_c_wchar_t" >&6; }
6449   if test $gt_cv_c_wchar_t = yes; then
6450
6451 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6452
6453   fi
6454
6455
6456   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6457 $as_echo_n "checking for wint_t... " >&6; }
6458 if test "${gt_cv_c_wint_t+set}" = set; then :
6459   $as_echo_n "(cached) " >&6
6460 else
6461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h.  */
6463 #include <wchar.h>
6464        wint_t foo = (wchar_t)'\0';
6465 int
6466 main ()
6467 {
6468
6469   ;
6470   return 0;
6471 }
6472 _ACEOF
6473 if ac_fn_c_try_compile "$LINENO"; then :
6474   gt_cv_c_wint_t=yes
6475 else
6476   gt_cv_c_wint_t=no
6477 fi
6478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6479 fi
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6481 $as_echo "$gt_cv_c_wint_t" >&6; }
6482   if test $gt_cv_c_wint_t = yes; then
6483
6484 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6485
6486   fi
6487
6488
6489   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6490 $as_echo_n "checking for inttypes.h... " >&6; }
6491 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
6492   $as_echo_n "(cached) " >&6
6493 else
6494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495 /* end confdefs.h.  */
6496 #include <sys/types.h>
6497 #include <inttypes.h>
6498 int
6499 main ()
6500 {
6501 uintmax_t i = (uintmax_t) -1;
6502   ;
6503   return 0;
6504 }
6505 _ACEOF
6506 if ac_fn_c_try_compile "$LINENO"; then :
6507   jm_ac_cv_header_inttypes_h=yes
6508 else
6509   jm_ac_cv_header_inttypes_h=no
6510 fi
6511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6512 fi
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6514 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6515   if test $jm_ac_cv_header_inttypes_h = yes; then
6516
6517 cat >>confdefs.h <<_ACEOF
6518 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6519 _ACEOF
6520
6521   fi
6522
6523
6524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6525 $as_echo_n "checking for stdint.h... " >&6; }
6526 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
6527   $as_echo_n "(cached) " >&6
6528 else
6529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h.  */
6531 #include <sys/types.h>
6532 #include <stdint.h>
6533 int
6534 main ()
6535 {
6536 uintmax_t i = (uintmax_t) -1;
6537   ;
6538   return 0;
6539 }
6540 _ACEOF
6541 if ac_fn_c_try_compile "$LINENO"; then :
6542   jm_ac_cv_header_stdint_h=yes
6543 else
6544   jm_ac_cv_header_stdint_h=no
6545 fi
6546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6547 fi
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6549 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6550   if test $jm_ac_cv_header_stdint_h = yes; then
6551
6552 cat >>confdefs.h <<_ACEOF
6553 #define HAVE_STDINT_H_WITH_UINTMAX 1
6554 _ACEOF
6555
6556   fi
6557
6558
6559
6560
6561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6562 $as_echo_n "checking for intmax_t... " >&6; }
6563 if test "${gt_cv_c_intmax_t+set}" = set; then :
6564   $as_echo_n "(cached) " >&6
6565 else
6566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h.  */
6568
6569 #include <stddef.h>
6570 #include <stdlib.h>
6571 #if HAVE_STDINT_H_WITH_UINTMAX
6572 #include <stdint.h>
6573 #endif
6574 #if HAVE_INTTYPES_H_WITH_UINTMAX
6575 #include <inttypes.h>
6576 #endif
6577
6578 int
6579 main ()
6580 {
6581 intmax_t x = -1;
6582   ;
6583   return 0;
6584 }
6585 _ACEOF
6586 if ac_fn_c_try_compile "$LINENO"; then :
6587   gt_cv_c_intmax_t=yes
6588 else
6589   gt_cv_c_intmax_t=no
6590 fi
6591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6592 fi
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6594 $as_echo "$gt_cv_c_intmax_t" >&6; }
6595   if test $gt_cv_c_intmax_t = yes; then
6596
6597 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6598
6599   fi
6600
6601
6602
6603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6604 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6605 if test "${gt_cv_func_printf_posix+set}" = set; then :
6606   $as_echo_n "(cached) " >&6
6607 else
6608
6609       if test "$cross_compiling" = yes; then :
6610
6611         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612 /* end confdefs.h.  */
6613
6614 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6615   notposix
6616 #endif
6617
6618 _ACEOF
6619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6620   $EGREP "notposix" >/dev/null 2>&1; then :
6621   gt_cv_func_printf_posix="guessing no"
6622 else
6623   gt_cv_func_printf_posix="guessing yes"
6624 fi
6625 rm -f conftest*
6626
6627
6628 else
6629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h.  */
6631
6632 #include <stdio.h>
6633 #include <string.h>
6634 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6635    dollar expansion (possibly an autoconf bug).  */
6636 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6637 static char buf[100];
6638 int main ()
6639 {
6640   sprintf (buf, format, 33, 55);
6641   return (strcmp (buf, "55 33") != 0);
6642 }
6643 _ACEOF
6644 if ac_fn_c_try_run "$LINENO"; then :
6645   gt_cv_func_printf_posix=yes
6646 else
6647   gt_cv_func_printf_posix=no
6648 fi
6649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6650   conftest.$ac_objext conftest.beam conftest.$ac_ext
6651 fi
6652
6653
6654 fi
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6656 $as_echo "$gt_cv_func_printf_posix" >&6; }
6657   case $gt_cv_func_printf_posix in
6658     *yes)
6659
6660 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6661
6662       ;;
6663   esac
6664
6665 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6666 # for constant arguments.  Useless!
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6668 $as_echo_n "checking for working alloca.h... " >&6; }
6669 if test "${ac_cv_working_alloca_h+set}" = set; then :
6670   $as_echo_n "(cached) " >&6
6671 else
6672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6673 /* end confdefs.h.  */
6674 #include <alloca.h>
6675 int
6676 main ()
6677 {
6678 char *p = (char *) alloca (2 * sizeof (int));
6679                           if (p) return 0;
6680   ;
6681   return 0;
6682 }
6683 _ACEOF
6684 if ac_fn_c_try_link "$LINENO"; then :
6685   ac_cv_working_alloca_h=yes
6686 else
6687   ac_cv_working_alloca_h=no
6688 fi
6689 rm -f core conftest.err conftest.$ac_objext \
6690     conftest$ac_exeext conftest.$ac_ext
6691 fi
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6693 $as_echo "$ac_cv_working_alloca_h" >&6; }
6694 if test $ac_cv_working_alloca_h = yes; then
6695
6696 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6697
6698 fi
6699
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6701 $as_echo_n "checking for alloca... " >&6; }
6702 if test "${ac_cv_func_alloca_works+set}" = set; then :
6703   $as_echo_n "(cached) " >&6
6704 else
6705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6706 /* end confdefs.h.  */
6707 #ifdef __GNUC__
6708 # define alloca __builtin_alloca
6709 #else
6710 # ifdef _MSC_VER
6711 #  include <malloc.h>
6712 #  define alloca _alloca
6713 # else
6714 #  ifdef HAVE_ALLOCA_H
6715 #   include <alloca.h>
6716 #  else
6717 #   ifdef _AIX
6718  #pragma alloca
6719 #   else
6720 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6721 char *alloca ();
6722 #    endif
6723 #   endif
6724 #  endif
6725 # endif
6726 #endif
6727
6728 int
6729 main ()
6730 {
6731 char *p = (char *) alloca (1);
6732                                     if (p) return 0;
6733   ;
6734   return 0;
6735 }
6736 _ACEOF
6737 if ac_fn_c_try_link "$LINENO"; then :
6738   ac_cv_func_alloca_works=yes
6739 else
6740   ac_cv_func_alloca_works=no
6741 fi
6742 rm -f core conftest.err conftest.$ac_objext \
6743     conftest$ac_exeext conftest.$ac_ext
6744 fi
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6746 $as_echo "$ac_cv_func_alloca_works" >&6; }
6747
6748 if test $ac_cv_func_alloca_works = yes; then
6749
6750 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6751
6752 else
6753   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6754 # that cause trouble.  Some versions do not even contain alloca or
6755 # contain a buggy version.  If you still want to use their alloca,
6756 # use ar to extract alloca.o from them instead of compiling alloca.c.
6757
6758 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6759
6760 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6761
6762
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6764 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6765 if test "${ac_cv_os_cray+set}" = set; then :
6766   $as_echo_n "(cached) " >&6
6767 else
6768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h.  */
6770 #if defined CRAY && ! defined CRAY2
6771 webecray
6772 #else
6773 wenotbecray
6774 #endif
6775
6776 _ACEOF
6777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6778   $EGREP "webecray" >/dev/null 2>&1; then :
6779   ac_cv_os_cray=yes
6780 else
6781   ac_cv_os_cray=no
6782 fi
6783 rm -f conftest*
6784
6785 fi
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6787 $as_echo "$ac_cv_os_cray" >&6; }
6788 if test $ac_cv_os_cray = yes; then
6789   for ac_func in _getb67 GETB67 getb67; do
6790     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6791 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6792 eval as_val=\$$as_ac_var
6793    if test "x$as_val" = x""yes; then :
6794
6795 cat >>confdefs.h <<_ACEOF
6796 #define CRAY_STACKSEG_END $ac_func
6797 _ACEOF
6798
6799     break
6800 fi
6801
6802   done
6803 fi
6804
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6806 $as_echo_n "checking stack direction for C alloca... " >&6; }
6807 if test "${ac_cv_c_stack_direction+set}" = set; then :
6808   $as_echo_n "(cached) " >&6
6809 else
6810   if test "$cross_compiling" = yes; then :
6811   ac_cv_c_stack_direction=0
6812 else
6813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h.  */
6815 $ac_includes_default
6816 int
6817 find_stack_direction ()
6818 {
6819   static char *addr = 0;
6820   auto char dummy;
6821   if (addr == 0)
6822     {
6823       addr = &dummy;
6824       return find_stack_direction ();
6825     }
6826   else
6827     return (&dummy > addr) ? 1 : -1;
6828 }
6829
6830 int
6831 main ()
6832 {
6833   return find_stack_direction () < 0;
6834 }
6835 _ACEOF
6836 if ac_fn_c_try_run "$LINENO"; then :
6837   ac_cv_c_stack_direction=1
6838 else
6839   ac_cv_c_stack_direction=-1
6840 fi
6841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6842   conftest.$ac_objext conftest.beam conftest.$ac_ext
6843 fi
6844
6845 fi
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6847 $as_echo "$ac_cv_c_stack_direction" >&6; }
6848 cat >>confdefs.h <<_ACEOF
6849 #define STACK_DIRECTION $ac_cv_c_stack_direction
6850 _ACEOF
6851
6852
6853 fi
6854
6855
6856
6857
6858   for ac_header in $ac_header_list
6859 do :
6860   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6861 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6862 "
6863 eval as_val=\$$as_ac_Header
6864    if test "x$as_val" = x""yes; then :
6865   cat >>confdefs.h <<_ACEOF
6866 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6867 _ACEOF
6868
6869 fi
6870
6871 done
6872
6873
6874
6875
6876
6877
6878
6879
6880 for ac_func in getpagesize
6881 do :
6882   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6883 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6884   cat >>confdefs.h <<_ACEOF
6885 #define HAVE_GETPAGESIZE 1
6886 _ACEOF
6887
6888 fi
6889 done
6890
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6892 $as_echo_n "checking for working mmap... " >&6; }
6893 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6894   $as_echo_n "(cached) " >&6
6895 else
6896   if test "$cross_compiling" = yes; then :
6897   ac_cv_func_mmap_fixed_mapped=no
6898 else
6899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900 /* end confdefs.h.  */
6901 $ac_includes_default
6902 /* malloc might have been renamed as rpl_malloc. */
6903 #undef malloc
6904
6905 /* Thanks to Mike Haertel and Jim Avera for this test.
6906    Here is a matrix of mmap possibilities:
6907         mmap private not fixed
6908         mmap private fixed at somewhere currently unmapped
6909         mmap private fixed at somewhere already mapped
6910         mmap shared not fixed
6911         mmap shared fixed at somewhere currently unmapped
6912         mmap shared fixed at somewhere already mapped
6913    For private mappings, we should verify that changes cannot be read()
6914    back from the file, nor mmap's back from the file at a different
6915    address.  (There have been systems where private was not correctly
6916    implemented like the infamous i386 svr4.0, and systems where the
6917    VM page cache was not coherent with the file system buffer cache
6918    like early versions of FreeBSD and possibly contemporary NetBSD.)
6919    For shared mappings, we should conversely verify that changes get
6920    propagated back to all the places they're supposed to be.
6921
6922    Grep wants private fixed already mapped.
6923    The main things grep needs to know about mmap are:
6924    * does it exist and is it safe to write into the mmap'd area
6925    * how to use it (BSD variants)  */
6926
6927 #include <fcntl.h>
6928 #include <sys/mman.h>
6929
6930 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6931 char *malloc ();
6932 #endif
6933
6934 /* This mess was copied from the GNU getpagesize.h.  */
6935 #ifndef HAVE_GETPAGESIZE
6936 # ifdef _SC_PAGESIZE
6937 #  define getpagesize() sysconf(_SC_PAGESIZE)
6938 # else /* no _SC_PAGESIZE */
6939 #  ifdef HAVE_SYS_PARAM_H
6940 #   include <sys/param.h>
6941 #   ifdef EXEC_PAGESIZE
6942 #    define getpagesize() EXEC_PAGESIZE
6943 #   else /* no EXEC_PAGESIZE */
6944 #    ifdef NBPG
6945 #     define getpagesize() NBPG * CLSIZE
6946 #     ifndef CLSIZE
6947 #      define CLSIZE 1
6948 #     endif /* no CLSIZE */
6949 #    else /* no NBPG */
6950 #     ifdef NBPC
6951 #      define getpagesize() NBPC
6952 #     else /* no NBPC */
6953 #      ifdef PAGESIZE
6954 #       define getpagesize() PAGESIZE
6955 #      endif /* PAGESIZE */
6956 #     endif /* no NBPC */
6957 #    endif /* no NBPG */
6958 #   endif /* no EXEC_PAGESIZE */
6959 #  else /* no HAVE_SYS_PARAM_H */
6960 #   define getpagesize() 8192   /* punt totally */
6961 #  endif /* no HAVE_SYS_PARAM_H */
6962 # endif /* no _SC_PAGESIZE */
6963
6964 #endif /* no HAVE_GETPAGESIZE */
6965
6966 int
6967 main ()
6968 {
6969   char *data, *data2, *data3;
6970   const char *cdata2;
6971   int i, pagesize;
6972   int fd, fd2;
6973
6974   pagesize = getpagesize ();
6975
6976   /* First, make a file with some known garbage in it. */
6977   data = (char *) malloc (pagesize);
6978   if (!data)
6979     return 1;
6980   for (i = 0; i < pagesize; ++i)
6981     *(data + i) = rand ();
6982   umask (0);
6983   fd = creat ("conftest.mmap", 0600);
6984   if (fd < 0)
6985     return 2;
6986   if (write (fd, data, pagesize) != pagesize)
6987     return 3;
6988   close (fd);
6989
6990   /* Next, check that the tail of a page is zero-filled.  File must have
6991      non-zero length, otherwise we risk SIGBUS for entire page.  */
6992   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6993   if (fd2 < 0)
6994     return 4;
6995   cdata2 = "";
6996   if (write (fd2, cdata2, 1) != 1)
6997     return 5;
6998   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6999   if (data2 == MAP_FAILED)
7000     return 6;
7001   for (i = 0; i < pagesize; ++i)
7002     if (*(data2 + i))
7003       return 7;
7004   close (fd2);
7005   if (munmap (data2, pagesize))
7006     return 8;
7007
7008   /* Next, try to mmap the file at a fixed address which already has
7009      something else allocated at it.  If we can, also make sure that
7010      we see the same garbage.  */
7011   fd = open ("conftest.mmap", O_RDWR);
7012   if (fd < 0)
7013     return 9;
7014   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7015                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7016     return 10;
7017   for (i = 0; i < pagesize; ++i)
7018     if (*(data + i) != *(data2 + i))
7019       return 11;
7020
7021   /* Finally, make sure that changes to the mapped area do not
7022      percolate back to the file as seen by read().  (This is a bug on
7023      some variants of i386 svr4.0.)  */
7024   for (i = 0; i < pagesize; ++i)
7025     *(data2 + i) = *(data2 + i) + 1;
7026   data3 = (char *) malloc (pagesize);
7027   if (!data3)
7028     return 12;
7029   if (read (fd, data3, pagesize) != pagesize)
7030     return 13;
7031   for (i = 0; i < pagesize; ++i)
7032     if (*(data + i) != *(data3 + i))
7033       return 14;
7034   close (fd);
7035   return 0;
7036 }
7037 _ACEOF
7038 if ac_fn_c_try_run "$LINENO"; then :
7039   ac_cv_func_mmap_fixed_mapped=yes
7040 else
7041   ac_cv_func_mmap_fixed_mapped=no
7042 fi
7043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7044   conftest.$ac_objext conftest.beam conftest.$ac_ext
7045 fi
7046
7047 fi
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7049 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7050 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7051
7052 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7053
7054 fi
7055 rm -f conftest.mmap conftest.txt
7056
7057
7058     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7059 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7060 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7061   $as_echo_n "(cached) " >&6
7062 else
7063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h.  */
7065
7066 #include <features.h>
7067 #ifdef __GNU_LIBRARY__
7068  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7069   Lucky GNU user
7070  #endif
7071 #endif
7072
7073 _ACEOF
7074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7075   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7076   ac_cv_gnu_library_2_1=yes
7077 else
7078   ac_cv_gnu_library_2_1=no
7079 fi
7080 rm -f conftest*
7081
7082
7083
7084 fi
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7086 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7087
7088     GLIBC21="$ac_cv_gnu_library_2_1"
7089
7090
7091
7092
7093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7094 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7095 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
7096   $as_echo_n "(cached) " >&6
7097 else
7098
7099       if test "$cross_compiling" = yes; then :
7100
7101           # Guess based on the CPU.
7102           case "$host_cpu" in
7103             alpha* | i3456786 | m68k | s390*)
7104               gt_cv_int_divbyzero_sigfpe="guessing yes";;
7105             *)
7106               gt_cv_int_divbyzero_sigfpe="guessing no";;
7107           esac
7108
7109 else
7110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7111 /* end confdefs.h.  */
7112
7113 #include <stdlib.h>
7114 #include <signal.h>
7115
7116 static void
7117 #ifdef __cplusplus
7118 sigfpe_handler (int sig)
7119 #else
7120 sigfpe_handler (sig) int sig;
7121 #endif
7122 {
7123   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7124   exit (sig != SIGFPE);
7125 }
7126
7127 int x = 1;
7128 int y = 0;
7129 int z;
7130 int nan;
7131
7132 int main ()
7133 {
7134   signal (SIGFPE, sigfpe_handler);
7135 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7136 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7137   signal (SIGTRAP, sigfpe_handler);
7138 #endif
7139 /* Linux/SPARC yields signal SIGILL.  */
7140 #if defined (__sparc__) && defined (__linux__)
7141   signal (SIGILL, sigfpe_handler);
7142 #endif
7143
7144   z = x / y;
7145   nan = y / y;
7146   exit (1);
7147 }
7148
7149 _ACEOF
7150 if ac_fn_c_try_run "$LINENO"; then :
7151   gt_cv_int_divbyzero_sigfpe=yes
7152 else
7153   gt_cv_int_divbyzero_sigfpe=no
7154 fi
7155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7156   conftest.$ac_objext conftest.beam conftest.$ac_ext
7157 fi
7158
7159
7160 fi
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7162 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7163   case "$gt_cv_int_divbyzero_sigfpe" in
7164     *yes) value=1;;
7165     *) value=0;;
7166   esac
7167
7168 cat >>confdefs.h <<_ACEOF
7169 #define INTDIV0_RAISES_SIGFPE $value
7170 _ACEOF
7171
7172
7173
7174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7175 $as_echo_n "checking for unsigned long long... " >&6; }
7176 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
7177   $as_echo_n "(cached) " >&6
7178 else
7179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h.  */
7181 unsigned long long ull = 1ULL; int i = 63;
7182 int
7183 main ()
7184 {
7185 unsigned long long ullmax = (unsigned long long) -1;
7186      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7187   ;
7188   return 0;
7189 }
7190 _ACEOF
7191 if ac_fn_c_try_link "$LINENO"; then :
7192   ac_cv_type_unsigned_long_long=yes
7193 else
7194   ac_cv_type_unsigned_long_long=no
7195 fi
7196 rm -f core conftest.err conftest.$ac_objext \
7197     conftest$ac_exeext conftest.$ac_ext
7198 fi
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7200 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7201   if test $ac_cv_type_unsigned_long_long = yes; then
7202
7203 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7204
7205   fi
7206
7207
7208
7209
7210   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7211
7212     test $ac_cv_type_unsigned_long_long = yes \
7213       && ac_type='unsigned long long' \
7214       || ac_type='unsigned long'
7215
7216 cat >>confdefs.h <<_ACEOF
7217 #define uintmax_t $ac_type
7218 _ACEOF
7219
7220   else
7221
7222 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7223
7224   fi
7225
7226
7227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7228 $as_echo_n "checking for inttypes.h... " >&6; }
7229 if test "${gt_cv_header_inttypes_h+set}" = set; then :
7230   $as_echo_n "(cached) " >&6
7231 else
7232
7233     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h.  */
7235 #include <sys/types.h>
7236 #include <inttypes.h>
7237 int
7238 main ()
7239 {
7240
7241   ;
7242   return 0;
7243 }
7244 _ACEOF
7245 if ac_fn_c_try_compile "$LINENO"; then :
7246   gt_cv_header_inttypes_h=yes
7247 else
7248   gt_cv_header_inttypes_h=no
7249 fi
7250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7251
7252 fi
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7254 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7255   if test $gt_cv_header_inttypes_h = yes; then
7256
7257 cat >>confdefs.h <<_ACEOF
7258 #define HAVE_INTTYPES_H 1
7259 _ACEOF
7260
7261   fi
7262
7263
7264
7265   if test $gt_cv_header_inttypes_h = yes; then
7266     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7267 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7268 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7269   $as_echo_n "(cached) " >&6
7270 else
7271
7272         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273 /* end confdefs.h.  */
7274 #include <inttypes.h>
7275 #ifdef PRId32
7276 char *p = PRId32;
7277 #endif
7278
7279 int
7280 main ()
7281 {
7282
7283   ;
7284   return 0;
7285 }
7286 _ACEOF
7287 if ac_fn_c_try_compile "$LINENO"; then :
7288   gt_cv_inttypes_pri_broken=no
7289 else
7290   gt_cv_inttypes_pri_broken=yes
7291 fi
7292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7293
7294 fi
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7296 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7297   fi
7298   if test "$gt_cv_inttypes_pri_broken" = yes; then
7299
7300 cat >>confdefs.h <<_ACEOF
7301 #define PRI_MACROS_BROKEN 1
7302 _ACEOF
7303
7304   fi
7305
7306
7307   for ac_header in stdint.h
7308 do :
7309   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7310 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7311   cat >>confdefs.h <<_ACEOF
7312 #define HAVE_STDINT_H 1
7313 _ACEOF
7314
7315 fi
7316
7317 done
7318
7319     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7320 $as_echo_n "checking for SIZE_MAX... " >&6; }
7321   result=
7322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323 /* end confdefs.h.  */
7324
7325 #include <limits.h>
7326 #if HAVE_STDINT_H
7327 #include <stdint.h>
7328 #endif
7329 #ifdef SIZE_MAX
7330 Found it
7331 #endif
7332
7333 _ACEOF
7334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7335   $EGREP "Found it" >/dev/null 2>&1; then :
7336   result=yes
7337 fi
7338 rm -f conftest*
7339
7340   if test -z "$result"; then
7341                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
7342
7343 else
7344   result=?
7345 fi
7346
7347
7348     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
7349
7350 else
7351   result=?
7352 fi
7353
7354
7355     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
7356
7357 else
7358   result=?
7359 fi
7360
7361
7362     if test "$fits_in_uint" = 1; then
7363                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364 /* end confdefs.h.  */
7365 #include <stddef.h>
7366         extern size_t foo;
7367         extern unsigned long foo;
7368
7369 int
7370 main ()
7371 {
7372
7373   ;
7374   return 0;
7375 }
7376 _ACEOF
7377 if ac_fn_c_try_compile "$LINENO"; then :
7378   fits_in_uint=0
7379 fi
7380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7381     fi
7382     if test -z "$result"; then
7383       if test "$fits_in_uint" = 1; then
7384         result="$res_hi$res_lo"U
7385       else
7386         result="$res_hi$res_lo"UL
7387       fi
7388     else
7389             result='~(size_t)0'
7390     fi
7391   fi
7392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7393 $as_echo "$result" >&6; }
7394   if test "$result" != yes; then
7395
7396 cat >>confdefs.h <<_ACEOF
7397 #define SIZE_MAX $result
7398 _ACEOF
7399
7400   fi
7401
7402
7403
7404   for ac_header in stdint.h
7405 do :
7406   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7407 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7408   cat >>confdefs.h <<_ACEOF
7409 #define HAVE_STDINT_H 1
7410 _ACEOF
7411
7412 fi
7413
7414 done
7415
7416
7417
7418       if test "X$prefix" = "XNONE"; then
7419     acl_final_prefix="$ac_default_prefix"
7420   else
7421     acl_final_prefix="$prefix"
7422   fi
7423   if test "X$exec_prefix" = "XNONE"; then
7424     acl_final_exec_prefix='${prefix}'
7425   else
7426     acl_final_exec_prefix="$exec_prefix"
7427   fi
7428   acl_save_prefix="$prefix"
7429   prefix="$acl_final_prefix"
7430   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7431   prefix="$acl_save_prefix"
7432
7433
7434 # Check whether --with-gnu-ld was given.
7435 if test "${with_gnu_ld+set}" = set; then :
7436   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7437 else
7438   with_gnu_ld=no
7439 fi
7440
7441 # Prepare PATH_SEPARATOR.
7442 # The user is always right.
7443 if test "${PATH_SEPARATOR+set}" != set; then
7444   echo "#! /bin/sh" >conf$$.sh
7445   echo  "exit 0"   >>conf$$.sh
7446   chmod +x conf$$.sh
7447   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7448     PATH_SEPARATOR=';'
7449   else
7450     PATH_SEPARATOR=:
7451   fi
7452   rm -f conf$$.sh
7453 fi
7454 ac_prog=ld
7455 if test "$GCC" = yes; then
7456   # Check if gcc -print-prog-name=ld gives a path.
7457   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7458 $as_echo_n "checking for ld used by GCC... " >&6; }
7459   case $host in
7460   *-*-mingw*)
7461     # gcc leaves a trailing carriage return which upsets mingw
7462     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7463   *)
7464     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7465   esac
7466   case $ac_prog in
7467     # Accept absolute paths.
7468     [\\/]* | [A-Za-z]:[\\/]*)
7469       re_direlt='/[^/][^/]*/\.\./'
7470       # Canonicalize the path of ld
7471       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7472       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7473         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7474       done
7475       test -z "$LD" && LD="$ac_prog"
7476       ;;
7477   "")
7478     # If it fails, then pretend we aren't using GCC.
7479     ac_prog=ld
7480     ;;
7481   *)
7482     # If it is relative, then search for the first ld in PATH.
7483     with_gnu_ld=unknown
7484     ;;
7485   esac
7486 elif test "$with_gnu_ld" = yes; then
7487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7488 $as_echo_n "checking for GNU ld... " >&6; }
7489 else
7490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7491 $as_echo_n "checking for non-GNU ld... " >&6; }
7492 fi
7493 if test "${acl_cv_path_LD+set}" = set; then :
7494   $as_echo_n "(cached) " >&6
7495 else
7496   if test -z "$LD"; then
7497   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7498   for ac_dir in $PATH; do
7499     test -z "$ac_dir" && ac_dir=.
7500     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7501       acl_cv_path_LD="$ac_dir/$ac_prog"
7502       # Check to see if the program is GNU ld.  I'd rather use --version,
7503       # but apparently some GNU ld's only accept -v.
7504       # Break only if it was the GNU/non-GNU ld that we prefer.
7505       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7506       *GNU* | *'with BFD'*)
7507         test "$with_gnu_ld" != no && break ;;
7508       *)
7509         test "$with_gnu_ld" != yes && break ;;
7510       esac
7511     fi
7512   done
7513   IFS="$ac_save_ifs"
7514 else
7515   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7516 fi
7517 fi
7518
7519 LD="$acl_cv_path_LD"
7520 if test -n "$LD"; then
7521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7522 $as_echo "$LD" >&6; }
7523 else
7524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7525 $as_echo "no" >&6; }
7526 fi
7527 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7529 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7530 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7531   $as_echo_n "(cached) " >&6
7532 else
7533   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7534 case `$LD -v 2>&1 </dev/null` in
7535 *GNU* | *'with BFD'*)
7536   acl_cv_prog_gnu_ld=yes ;;
7537 *)
7538   acl_cv_prog_gnu_ld=no ;;
7539 esac
7540 fi
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7542 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7543 with_gnu_ld=$acl_cv_prog_gnu_ld
7544
7545
7546
7547                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7548 $as_echo_n "checking for shared library run path origin... " >&6; }
7549 if test "${acl_cv_rpath+set}" = set; then :
7550   $as_echo_n "(cached) " >&6
7551 else
7552
7553     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7554     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7555     . ./conftest.sh
7556     rm -f ./conftest.sh
7557     acl_cv_rpath=done
7558
7559 fi
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7561 $as_echo "$acl_cv_rpath" >&6; }
7562   wl="$acl_cv_wl"
7563   libext="$acl_cv_libext"
7564   shlibext="$acl_cv_shlibext"
7565   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7566   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7567   hardcode_direct="$acl_cv_hardcode_direct"
7568   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7569     # Check whether --enable-rpath was given.
7570 if test "${enable_rpath+set}" = set; then :
7571   enableval=$enable_rpath; :
7572 else
7573   enable_rpath=yes
7574 fi
7575
7576
7577
7578
7579
7580
7581
7582
7583     use_additional=yes
7584
7585   acl_save_prefix="$prefix"
7586   prefix="$acl_final_prefix"
7587   acl_save_exec_prefix="$exec_prefix"
7588   exec_prefix="$acl_final_exec_prefix"
7589
7590     eval additional_includedir=\"$includedir\"
7591     eval additional_libdir=\"$libdir\"
7592
7593   exec_prefix="$acl_save_exec_prefix"
7594   prefix="$acl_save_prefix"
7595
7596
7597 # Check whether --with-libiconv-prefix was given.
7598 if test "${with_libiconv_prefix+set}" = set; then :
7599   withval=$with_libiconv_prefix;
7600     if test "X$withval" = "Xno"; then
7601       use_additional=no
7602     else
7603       if test "X$withval" = "X"; then
7604
7605   acl_save_prefix="$prefix"
7606   prefix="$acl_final_prefix"
7607   acl_save_exec_prefix="$exec_prefix"
7608   exec_prefix="$acl_final_exec_prefix"
7609
7610           eval additional_includedir=\"$includedir\"
7611           eval additional_libdir=\"$libdir\"
7612
7613   exec_prefix="$acl_save_exec_prefix"
7614   prefix="$acl_save_prefix"
7615
7616       else
7617         additional_includedir="$withval/include"
7618         additional_libdir="$withval/lib"
7619       fi
7620     fi
7621
7622 fi
7623
7624       LIBICONV=
7625   LTLIBICONV=
7626   INCICONV=
7627   rpathdirs=
7628   ltrpathdirs=
7629   names_already_handled=
7630   names_next_round='iconv '
7631   while test -n "$names_next_round"; do
7632     names_this_round="$names_next_round"
7633     names_next_round=
7634     for name in $names_this_round; do
7635       already_handled=
7636       for n in $names_already_handled; do
7637         if test "$n" = "$name"; then
7638           already_handled=yes
7639           break
7640         fi
7641       done
7642       if test -z "$already_handled"; then
7643         names_already_handled="$names_already_handled $name"
7644                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7645         eval value=\"\$HAVE_LIB$uppername\"
7646         if test -n "$value"; then
7647           if test "$value" = yes; then
7648             eval value=\"\$LIB$uppername\"
7649             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7650             eval value=\"\$LTLIB$uppername\"
7651             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7652           else
7653                                     :
7654           fi
7655         else
7656                               found_dir=
7657           found_la=
7658           found_so=
7659           found_a=
7660           if test $use_additional = yes; then
7661             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7662               found_dir="$additional_libdir"
7663               found_so="$additional_libdir/lib$name.$shlibext"
7664               if test -f "$additional_libdir/lib$name.la"; then
7665                 found_la="$additional_libdir/lib$name.la"
7666               fi
7667             else
7668               if test -f "$additional_libdir/lib$name.$libext"; then
7669                 found_dir="$additional_libdir"
7670                 found_a="$additional_libdir/lib$name.$libext"
7671                 if test -f "$additional_libdir/lib$name.la"; then
7672                   found_la="$additional_libdir/lib$name.la"
7673                 fi
7674               fi
7675             fi
7676           fi
7677           if test "X$found_dir" = "X"; then
7678             for x in $LDFLAGS $LTLIBICONV; do
7679
7680   acl_save_prefix="$prefix"
7681   prefix="$acl_final_prefix"
7682   acl_save_exec_prefix="$exec_prefix"
7683   exec_prefix="$acl_final_exec_prefix"
7684   eval x=\"$x\"
7685   exec_prefix="$acl_save_exec_prefix"
7686   prefix="$acl_save_prefix"
7687
7688               case "$x" in
7689                 -L*)
7690                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7691                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7692                     found_dir="$dir"
7693                     found_so="$dir/lib$name.$shlibext"
7694                     if test -f "$dir/lib$name.la"; then
7695                       found_la="$dir/lib$name.la"
7696                     fi
7697                   else
7698                     if test -f "$dir/lib$name.$libext"; then
7699                       found_dir="$dir"
7700                       found_a="$dir/lib$name.$libext"
7701                       if test -f "$dir/lib$name.la"; then
7702                         found_la="$dir/lib$name.la"
7703                       fi
7704                     fi
7705                   fi
7706                   ;;
7707               esac
7708               if test "X$found_dir" != "X"; then
7709                 break
7710               fi
7711             done
7712           fi
7713           if test "X$found_dir" != "X"; then
7714                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7715             if test "X$found_so" != "X"; then
7716                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7717                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7718               else
7719                                                                                 haveit=
7720                 for x in $ltrpathdirs; do
7721                   if test "X$x" = "X$found_dir"; then
7722                     haveit=yes
7723                     break
7724                   fi
7725                 done
7726                 if test -z "$haveit"; then
7727                   ltrpathdirs="$ltrpathdirs $found_dir"
7728                 fi
7729                                 if test "$hardcode_direct" = yes; then
7730                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7731                 else
7732                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7733                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7734                                                             haveit=
7735                     for x in $rpathdirs; do
7736                       if test "X$x" = "X$found_dir"; then
7737                         haveit=yes
7738                         break
7739                       fi
7740                     done
7741                     if test -z "$haveit"; then
7742                       rpathdirs="$rpathdirs $found_dir"
7743                     fi
7744                   else
7745                                                                                 haveit=
7746                     for x in $LDFLAGS $LIBICONV; do
7747
7748   acl_save_prefix="$prefix"
7749   prefix="$acl_final_prefix"
7750   acl_save_exec_prefix="$exec_prefix"
7751   exec_prefix="$acl_final_exec_prefix"
7752   eval x=\"$x\"
7753   exec_prefix="$acl_save_exec_prefix"
7754   prefix="$acl_save_prefix"
7755
7756                       if test "X$x" = "X-L$found_dir"; then
7757                         haveit=yes
7758                         break
7759                       fi
7760                     done
7761                     if test -z "$haveit"; then
7762                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7763                     fi
7764                     if test "$hardcode_minus_L" != no; then
7765                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7766                     else
7767                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7768                     fi
7769                   fi
7770                 fi
7771               fi
7772             else
7773               if test "X$found_a" != "X"; then
7774                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7775               else
7776                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7777               fi
7778             fi
7779                         additional_includedir=
7780             case "$found_dir" in
7781               */lib | */lib/)
7782                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7783                 additional_includedir="$basedir/include"
7784                 ;;
7785             esac
7786             if test "X$additional_includedir" != "X"; then
7787                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7788                 haveit=
7789                 if test "X$additional_includedir" = "X/usr/local/include"; then
7790                   if test -n "$GCC"; then
7791                     case $host_os in
7792                       linux*) haveit=yes;;
7793                     esac
7794                   fi
7795                 fi
7796                 if test -z "$haveit"; then
7797                   for x in $CPPFLAGS $INCICONV; do
7798
7799   acl_save_prefix="$prefix"
7800   prefix="$acl_final_prefix"
7801   acl_save_exec_prefix="$exec_prefix"
7802   exec_prefix="$acl_final_exec_prefix"
7803   eval x=\"$x\"
7804   exec_prefix="$acl_save_exec_prefix"
7805   prefix="$acl_save_prefix"
7806
7807                     if test "X$x" = "X-I$additional_includedir"; then
7808                       haveit=yes
7809                       break
7810                     fi
7811                   done
7812                   if test -z "$haveit"; then
7813                     if test -d "$additional_includedir"; then
7814                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7815                     fi
7816                   fi
7817                 fi
7818               fi
7819             fi
7820                         if test -n "$found_la"; then
7821                                                         save_libdir="$libdir"
7822               case "$found_la" in
7823                 */* | *\\*) . "$found_la" ;;
7824                 *) . "./$found_la" ;;
7825               esac
7826               libdir="$save_libdir"
7827                             for dep in $dependency_libs; do
7828                 case "$dep" in
7829                   -L*)
7830                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7831                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7832                       haveit=
7833                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7834                         if test -n "$GCC"; then
7835                           case $host_os in
7836                             linux*) haveit=yes;;
7837                           esac
7838                         fi
7839                       fi
7840                       if test -z "$haveit"; then
7841                         haveit=
7842                         for x in $LDFLAGS $LIBICONV; do
7843
7844   acl_save_prefix="$prefix"
7845   prefix="$acl_final_prefix"
7846   acl_save_exec_prefix="$exec_prefix"
7847   exec_prefix="$acl_final_exec_prefix"
7848   eval x=\"$x\"
7849   exec_prefix="$acl_save_exec_prefix"
7850   prefix="$acl_save_prefix"
7851
7852                           if test "X$x" = "X-L$additional_libdir"; then
7853                             haveit=yes
7854                             break
7855                           fi
7856                         done
7857                         if test -z "$haveit"; then
7858                           if test -d "$additional_libdir"; then
7859                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7860                           fi
7861                         fi
7862                         haveit=
7863                         for x in $LDFLAGS $LTLIBICONV; do
7864
7865   acl_save_prefix="$prefix"
7866   prefix="$acl_final_prefix"
7867   acl_save_exec_prefix="$exec_prefix"
7868   exec_prefix="$acl_final_exec_prefix"
7869   eval x=\"$x\"
7870   exec_prefix="$acl_save_exec_prefix"
7871   prefix="$acl_save_prefix"
7872
7873                           if test "X$x" = "X-L$additional_libdir"; then
7874                             haveit=yes
7875                             break
7876                           fi
7877                         done
7878                         if test -z "$haveit"; then
7879                           if test -d "$additional_libdir"; then
7880                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7881                           fi
7882                         fi
7883                       fi
7884                     fi
7885                     ;;
7886                   -R*)
7887                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7888                     if test "$enable_rpath" != no; then
7889                                                                   haveit=
7890                       for x in $rpathdirs; do
7891                         if test "X$x" = "X$dir"; then
7892                           haveit=yes
7893                           break
7894                         fi
7895                       done
7896                       if test -z "$haveit"; then
7897                         rpathdirs="$rpathdirs $dir"
7898                       fi
7899                                                                   haveit=
7900                       for x in $ltrpathdirs; do
7901                         if test "X$x" = "X$dir"; then
7902                           haveit=yes
7903                           break
7904                         fi
7905                       done
7906                       if test -z "$haveit"; then
7907                         ltrpathdirs="$ltrpathdirs $dir"
7908                       fi
7909                     fi
7910                     ;;
7911                   -l*)
7912                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7913                     ;;
7914                   *.la)
7915                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7916                     ;;
7917                   *)
7918                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7919                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7920                     ;;
7921                 esac
7922               done
7923             fi
7924           else
7925                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7926             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7927           fi
7928         fi
7929       fi
7930     done
7931   done
7932   if test "X$rpathdirs" != "X"; then
7933     if test -n "$hardcode_libdir_separator"; then
7934                         alldirs=
7935       for found_dir in $rpathdirs; do
7936         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7937       done
7938             acl_save_libdir="$libdir"
7939       libdir="$alldirs"
7940       eval flag=\"$hardcode_libdir_flag_spec\"
7941       libdir="$acl_save_libdir"
7942       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7943     else
7944             for found_dir in $rpathdirs; do
7945         acl_save_libdir="$libdir"
7946         libdir="$found_dir"
7947         eval flag=\"$hardcode_libdir_flag_spec\"
7948         libdir="$acl_save_libdir"
7949         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7950       done
7951     fi
7952   fi
7953   if test "X$ltrpathdirs" != "X"; then
7954             for found_dir in $ltrpathdirs; do
7955       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7956     done
7957   fi
7958
7959
7960
7961
7962
7963
7964
7965
7966   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
7967 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
7968
7969 else
7970
7971 $as_echo "#define ptrdiff_t long" >>confdefs.h
7972
7973
7974 fi
7975
7976   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7977 stdlib.h string.h unistd.h sys/param.h
7978 do :
7979   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7980 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7981 eval as_val=\$$as_ac_Header
7982    if test "x$as_val" = x""yes; then :
7983   cat >>confdefs.h <<_ACEOF
7984 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7985 _ACEOF
7986
7987 fi
7988
7989 done
7990
7991   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
7992 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
7993 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
7994 __fsetlocking
7995 do :
7996   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7997 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7998 eval as_val=\$$as_ac_var
7999    if test "x$as_val" = x""yes; then :
8000   cat >>confdefs.h <<_ACEOF
8001 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8002 _ACEOF
8003
8004 fi
8005 done
8006
8007
8008
8009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8010 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8011 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
8012   $as_echo_n "(cached) " >&6
8013 else
8014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8015 /* end confdefs.h.  */
8016 #include <stdio.h>
8017 int
8018 main ()
8019 {
8020
8021 #ifndef _snprintf
8022   char *p = (char *) _snprintf;
8023 #endif
8024
8025   ;
8026   return 0;
8027 }
8028 _ACEOF
8029 if ac_fn_c_try_compile "$LINENO"; then :
8030   ac_cv_have_decl__snprintf=yes
8031 else
8032   ac_cv_have_decl__snprintf=no
8033 fi
8034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8035 fi
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8037 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8038   if test $ac_cv_have_decl__snprintf = yes; then
8039     gt_value=1
8040   else
8041     gt_value=0
8042   fi
8043
8044 cat >>confdefs.h <<_ACEOF
8045 #define HAVE_DECL__SNPRINTF $gt_value
8046 _ACEOF
8047
8048
8049
8050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8051 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8052 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
8053   $as_echo_n "(cached) " >&6
8054 else
8055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056 /* end confdefs.h.  */
8057 #include <stdio.h>
8058 int
8059 main ()
8060 {
8061
8062 #ifndef _snwprintf
8063   char *p = (char *) _snwprintf;
8064 #endif
8065
8066   ;
8067   return 0;
8068 }
8069 _ACEOF
8070 if ac_fn_c_try_compile "$LINENO"; then :
8071   ac_cv_have_decl__snwprintf=yes
8072 else
8073   ac_cv_have_decl__snwprintf=no
8074 fi
8075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8076 fi
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8078 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8079   if test $ac_cv_have_decl__snwprintf = yes; then
8080     gt_value=1
8081   else
8082     gt_value=0
8083   fi
8084
8085 cat >>confdefs.h <<_ACEOF
8086 #define HAVE_DECL__SNWPRINTF $gt_value
8087 _ACEOF
8088
8089
8090
8091
8092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8093 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8094 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
8095   $as_echo_n "(cached) " >&6
8096 else
8097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8098 /* end confdefs.h.  */
8099 #include <stdio.h>
8100 int
8101 main ()
8102 {
8103
8104 #ifndef feof_unlocked
8105   char *p = (char *) feof_unlocked;
8106 #endif
8107
8108   ;
8109   return 0;
8110 }
8111 _ACEOF
8112 if ac_fn_c_try_compile "$LINENO"; then :
8113   ac_cv_have_decl_feof_unlocked=yes
8114 else
8115   ac_cv_have_decl_feof_unlocked=no
8116 fi
8117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8118 fi
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8120 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8121   if test $ac_cv_have_decl_feof_unlocked = yes; then
8122     gt_value=1
8123   else
8124     gt_value=0
8125   fi
8126
8127 cat >>confdefs.h <<_ACEOF
8128 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8129 _ACEOF
8130
8131
8132
8133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8134 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8135 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
8136   $as_echo_n "(cached) " >&6
8137 else
8138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139 /* end confdefs.h.  */
8140 #include <stdio.h>
8141 int
8142 main ()
8143 {
8144
8145 #ifndef fgets_unlocked
8146   char *p = (char *) fgets_unlocked;
8147 #endif
8148
8149   ;
8150   return 0;
8151 }
8152 _ACEOF
8153 if ac_fn_c_try_compile "$LINENO"; then :
8154   ac_cv_have_decl_fgets_unlocked=yes
8155 else
8156   ac_cv_have_decl_fgets_unlocked=no
8157 fi
8158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8159 fi
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8161 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8162   if test $ac_cv_have_decl_fgets_unlocked = yes; then
8163     gt_value=1
8164   else
8165     gt_value=0
8166   fi
8167
8168 cat >>confdefs.h <<_ACEOF
8169 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8170 _ACEOF
8171
8172
8173
8174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8175 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8176 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
8177   $as_echo_n "(cached) " >&6
8178 else
8179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180 /* end confdefs.h.  */
8181 #include <stdio.h>
8182 int
8183 main ()
8184 {
8185
8186 #ifndef getc_unlocked
8187   char *p = (char *) getc_unlocked;
8188 #endif
8189
8190   ;
8191   return 0;
8192 }
8193 _ACEOF
8194 if ac_fn_c_try_compile "$LINENO"; then :
8195   ac_cv_have_decl_getc_unlocked=yes
8196 else
8197   ac_cv_have_decl_getc_unlocked=no
8198 fi
8199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8200 fi
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8202 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8203   if test $ac_cv_have_decl_getc_unlocked = yes; then
8204     gt_value=1
8205   else
8206     gt_value=0
8207   fi
8208
8209 cat >>confdefs.h <<_ACEOF
8210 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8211 _ACEOF
8212
8213
8214
8215   case $gt_cv_func_printf_posix in
8216     *yes) HAVE_POSIX_PRINTF=1 ;;
8217     *) HAVE_POSIX_PRINTF=0 ;;
8218   esac
8219
8220   if test "$ac_cv_func_asprintf" = yes; then
8221     HAVE_ASPRINTF=1
8222   else
8223     HAVE_ASPRINTF=0
8224   fi
8225
8226   if test "$ac_cv_func_snprintf" = yes; then
8227     HAVE_SNPRINTF=1
8228   else
8229     HAVE_SNPRINTF=0
8230   fi
8231
8232   if test "$ac_cv_func_wprintf" = yes; then
8233     HAVE_WPRINTF=1
8234   else
8235     HAVE_WPRINTF=0
8236   fi
8237
8238
8239
8240
8241
8242
8243
8244           am_save_CPPFLAGS="$CPPFLAGS"
8245
8246   for element in $INCICONV; do
8247     haveit=
8248     for x in $CPPFLAGS; do
8249
8250   acl_save_prefix="$prefix"
8251   prefix="$acl_final_prefix"
8252   acl_save_exec_prefix="$exec_prefix"
8253   exec_prefix="$acl_final_exec_prefix"
8254   eval x=\"$x\"
8255   exec_prefix="$acl_save_exec_prefix"
8256   prefix="$acl_save_prefix"
8257
8258       if test "X$x" = "X$element"; then
8259         haveit=yes
8260         break
8261       fi
8262     done
8263     if test -z "$haveit"; then
8264       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8265     fi
8266   done
8267
8268
8269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8270 $as_echo_n "checking for iconv... " >&6; }
8271 if test "${am_cv_func_iconv+set}" = set; then :
8272   $as_echo_n "(cached) " >&6
8273 else
8274
8275     am_cv_func_iconv="no, consider installing GNU libiconv"
8276     am_cv_lib_iconv=no
8277     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8278 /* end confdefs.h.  */
8279 #include <stdlib.h>
8280 #include <iconv.h>
8281 int
8282 main ()
8283 {
8284 iconv_t cd = iconv_open("","");
8285        iconv(cd,NULL,NULL,NULL,NULL);
8286        iconv_close(cd);
8287   ;
8288   return 0;
8289 }
8290 _ACEOF
8291 if ac_fn_c_try_link "$LINENO"; then :
8292   am_cv_func_iconv=yes
8293 fi
8294 rm -f core conftest.err conftest.$ac_objext \
8295     conftest$ac_exeext conftest.$ac_ext
8296     if test "$am_cv_func_iconv" != yes; then
8297       am_save_LIBS="$LIBS"
8298       LIBS="$LIBS $LIBICONV"
8299       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300 /* end confdefs.h.  */
8301 #include <stdlib.h>
8302 #include <iconv.h>
8303 int
8304 main ()
8305 {
8306 iconv_t cd = iconv_open("","");
8307          iconv(cd,NULL,NULL,NULL,NULL);
8308          iconv_close(cd);
8309   ;
8310   return 0;
8311 }
8312 _ACEOF
8313 if ac_fn_c_try_link "$LINENO"; then :
8314   am_cv_lib_iconv=yes
8315         am_cv_func_iconv=yes
8316 fi
8317 rm -f core conftest.err conftest.$ac_objext \
8318     conftest$ac_exeext conftest.$ac_ext
8319       LIBS="$am_save_LIBS"
8320     fi
8321
8322 fi
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8324 $as_echo "$am_cv_func_iconv" >&6; }
8325   if test "$am_cv_func_iconv" = yes; then
8326
8327 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8328
8329   fi
8330   if test "$am_cv_lib_iconv" = yes; then
8331     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8332 $as_echo_n "checking how to link with libiconv... " >&6; }
8333     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8334 $as_echo "$LIBICONV" >&6; }
8335   else
8336             CPPFLAGS="$am_save_CPPFLAGS"
8337     LIBICONV=
8338     LTLIBICONV=
8339   fi
8340
8341
8342
8343   if test "$am_cv_func_iconv" = yes; then
8344     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8345 $as_echo_n "checking for iconv declaration... " >&6; }
8346     if test "${am_cv_proto_iconv+set}" = set; then :
8347   $as_echo_n "(cached) " >&6
8348 else
8349
8350       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8351 /* end confdefs.h.  */
8352
8353 #include <stdlib.h>
8354 #include <iconv.h>
8355 extern
8356 #ifdef __cplusplus
8357 "C"
8358 #endif
8359 #if defined(__STDC__) || defined(__cplusplus)
8360 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8361 #else
8362 size_t iconv();
8363 #endif
8364
8365 int
8366 main ()
8367 {
8368
8369   ;
8370   return 0;
8371 }
8372 _ACEOF
8373 if ac_fn_c_try_compile "$LINENO"; then :
8374   am_cv_proto_iconv_arg1=""
8375 else
8376   am_cv_proto_iconv_arg1="const"
8377 fi
8378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8379       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);"
8380 fi
8381
8382     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8383     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8384          }$am_cv_proto_iconv" >&5
8385 $as_echo "${ac_t:-
8386          }$am_cv_proto_iconv" >&6; }
8387
8388 cat >>confdefs.h <<_ACEOF
8389 #define ICONV_CONST $am_cv_proto_iconv_arg1
8390 _ACEOF
8391
8392   fi
8393
8394
8395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8396 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8397 if test "${am_cv_langinfo_codeset+set}" = set; then :
8398   $as_echo_n "(cached) " >&6
8399 else
8400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401 /* end confdefs.h.  */
8402 #include <langinfo.h>
8403 int
8404 main ()
8405 {
8406 char* cs = nl_langinfo(CODESET);
8407   ;
8408   return 0;
8409 }
8410 _ACEOF
8411 if ac_fn_c_try_link "$LINENO"; then :
8412   am_cv_langinfo_codeset=yes
8413 else
8414   am_cv_langinfo_codeset=no
8415 fi
8416 rm -f core conftest.err conftest.$ac_objext \
8417     conftest$ac_exeext conftest.$ac_ext
8418
8419 fi
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8421 $as_echo "$am_cv_langinfo_codeset" >&6; }
8422   if test $am_cv_langinfo_codeset = yes; then
8423
8424 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8425
8426   fi
8427
8428   if test $ac_cv_header_locale_h = yes; then
8429
8430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8431 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8432 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
8433   $as_echo_n "(cached) " >&6
8434 else
8435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h.  */
8437 #include <locale.h>
8438 int
8439 main ()
8440 {
8441 return LC_MESSAGES
8442   ;
8443   return 0;
8444 }
8445 _ACEOF
8446 if ac_fn_c_try_link "$LINENO"; then :
8447   am_cv_val_LC_MESSAGES=yes
8448 else
8449   am_cv_val_LC_MESSAGES=no
8450 fi
8451 rm -f core conftest.err conftest.$ac_objext \
8452     conftest$ac_exeext conftest.$ac_ext
8453 fi
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8455 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8456   if test $am_cv_val_LC_MESSAGES = yes; then
8457
8458 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8459
8460   fi
8461
8462   fi
8463
8464                       for ac_prog in bison
8465 do
8466   # Extract the first word of "$ac_prog", so it can be a program name with args.
8467 set dummy $ac_prog; ac_word=$2
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8469 $as_echo_n "checking for $ac_word... " >&6; }
8470 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
8471   $as_echo_n "(cached) " >&6
8472 else
8473   if test -n "$INTLBISON"; then
8474   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8475 else
8476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8477 for as_dir in $PATH
8478 do
8479   IFS=$as_save_IFS
8480   test -z "$as_dir" && as_dir=.
8481     for ac_exec_ext in '' $ac_executable_extensions; do
8482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8483     ac_cv_prog_INTLBISON="$ac_prog"
8484     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8485     break 2
8486   fi
8487 done
8488   done
8489 IFS=$as_save_IFS
8490
8491 fi
8492 fi
8493 INTLBISON=$ac_cv_prog_INTLBISON
8494 if test -n "$INTLBISON"; then
8495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8496 $as_echo "$INTLBISON" >&6; }
8497 else
8498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8499 $as_echo "no" >&6; }
8500 fi
8501
8502
8503   test -n "$INTLBISON" && break
8504 done
8505
8506   if test -z "$INTLBISON"; then
8507     ac_verc_fail=yes
8508   else
8509         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8510 $as_echo_n "checking version of bison... " >&6; }
8511     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8512     case $ac_prog_version in
8513       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8514       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8515          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8516       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8517     esac
8518     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8519 $as_echo "$ac_prog_version" >&6; }
8520   fi
8521   if test $ac_verc_fail = yes; then
8522     INTLBISON=:
8523   fi
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8541 $as_echo_n "checking whether NLS is requested... " >&6; }
8542     # Check whether --enable-nls was given.
8543 if test "${enable_nls+set}" = set; then :
8544   enableval=$enable_nls; USE_NLS=$enableval
8545 else
8546   USE_NLS=yes
8547 fi
8548
8549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8550 $as_echo "$USE_NLS" >&6; }
8551
8552
8553
8554
8555     BUILD_INCLUDED_LIBINTL=no
8556     USE_INCLUDED_LIBINTL=no
8557
8558   LIBINTL=
8559   LTLIBINTL=
8560   POSUB=
8561
8562     if test "$USE_NLS" = "yes"; then
8563     gt_use_preinstalled_gnugettext=no
8564
8565       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8566 $as_echo_n "checking whether included gettext is requested... " >&6; }
8567
8568 # Check whether --with-included-gettext was given.
8569 if test "${with_included_gettext+set}" = set; then :
8570   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8571 else
8572   nls_cv_force_use_gnu_gettext=no
8573 fi
8574
8575       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8576 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8577
8578       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8579       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8580
8581
8582
8583
8584
8585
8586         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8587 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8588 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
8589   $as_echo_n "(cached) " >&6
8590 else
8591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8592 /* end confdefs.h.  */
8593 #include <libintl.h>
8594 extern int _nl_msg_cat_cntr;
8595 extern int *_nl_domain_bindings;
8596 int
8597 main ()
8598 {
8599 bindtextdomain ("", "");
8600 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8601   ;
8602   return 0;
8603 }
8604 _ACEOF
8605 if ac_fn_c_try_link "$LINENO"; then :
8606   gt_cv_func_gnugettext1_libc=yes
8607 else
8608   gt_cv_func_gnugettext1_libc=no
8609 fi
8610 rm -f core conftest.err conftest.$ac_objext \
8611     conftest$ac_exeext conftest.$ac_ext
8612 fi
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8614 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8615
8616         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8617
8618
8619
8620     use_additional=yes
8621
8622   acl_save_prefix="$prefix"
8623   prefix="$acl_final_prefix"
8624   acl_save_exec_prefix="$exec_prefix"
8625   exec_prefix="$acl_final_exec_prefix"
8626
8627     eval additional_includedir=\"$includedir\"
8628     eval additional_libdir=\"$libdir\"
8629
8630   exec_prefix="$acl_save_exec_prefix"
8631   prefix="$acl_save_prefix"
8632
8633
8634 # Check whether --with-libintl-prefix was given.
8635 if test "${with_libintl_prefix+set}" = set; then :
8636   withval=$with_libintl_prefix;
8637     if test "X$withval" = "Xno"; then
8638       use_additional=no
8639     else
8640       if test "X$withval" = "X"; then
8641
8642   acl_save_prefix="$prefix"
8643   prefix="$acl_final_prefix"
8644   acl_save_exec_prefix="$exec_prefix"
8645   exec_prefix="$acl_final_exec_prefix"
8646
8647           eval additional_includedir=\"$includedir\"
8648           eval additional_libdir=\"$libdir\"
8649
8650   exec_prefix="$acl_save_exec_prefix"
8651   prefix="$acl_save_prefix"
8652
8653       else
8654         additional_includedir="$withval/include"
8655         additional_libdir="$withval/lib"
8656       fi
8657     fi
8658
8659 fi
8660
8661       LIBINTL=
8662   LTLIBINTL=
8663   INCINTL=
8664   rpathdirs=
8665   ltrpathdirs=
8666   names_already_handled=
8667   names_next_round='intl '
8668   while test -n "$names_next_round"; do
8669     names_this_round="$names_next_round"
8670     names_next_round=
8671     for name in $names_this_round; do
8672       already_handled=
8673       for n in $names_already_handled; do
8674         if test "$n" = "$name"; then
8675           already_handled=yes
8676           break
8677         fi
8678       done
8679       if test -z "$already_handled"; then
8680         names_already_handled="$names_already_handled $name"
8681                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8682         eval value=\"\$HAVE_LIB$uppername\"
8683         if test -n "$value"; then
8684           if test "$value" = yes; then
8685             eval value=\"\$LIB$uppername\"
8686             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8687             eval value=\"\$LTLIB$uppername\"
8688             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8689           else
8690                                     :
8691           fi
8692         else
8693                               found_dir=
8694           found_la=
8695           found_so=
8696           found_a=
8697           if test $use_additional = yes; then
8698             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8699               found_dir="$additional_libdir"
8700               found_so="$additional_libdir/lib$name.$shlibext"
8701               if test -f "$additional_libdir/lib$name.la"; then
8702                 found_la="$additional_libdir/lib$name.la"
8703               fi
8704             else
8705               if test -f "$additional_libdir/lib$name.$libext"; then
8706                 found_dir="$additional_libdir"
8707                 found_a="$additional_libdir/lib$name.$libext"
8708                 if test -f "$additional_libdir/lib$name.la"; then
8709                   found_la="$additional_libdir/lib$name.la"
8710                 fi
8711               fi
8712             fi
8713           fi
8714           if test "X$found_dir" = "X"; then
8715             for x in $LDFLAGS $LTLIBINTL; do
8716
8717   acl_save_prefix="$prefix"
8718   prefix="$acl_final_prefix"
8719   acl_save_exec_prefix="$exec_prefix"
8720   exec_prefix="$acl_final_exec_prefix"
8721   eval x=\"$x\"
8722   exec_prefix="$acl_save_exec_prefix"
8723   prefix="$acl_save_prefix"
8724
8725               case "$x" in
8726                 -L*)
8727                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8728                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8729                     found_dir="$dir"
8730                     found_so="$dir/lib$name.$shlibext"
8731                     if test -f "$dir/lib$name.la"; then
8732                       found_la="$dir/lib$name.la"
8733                     fi
8734                   else
8735                     if test -f "$dir/lib$name.$libext"; then
8736                       found_dir="$dir"
8737                       found_a="$dir/lib$name.$libext"
8738                       if test -f "$dir/lib$name.la"; then
8739                         found_la="$dir/lib$name.la"
8740                       fi
8741                     fi
8742                   fi
8743                   ;;
8744               esac
8745               if test "X$found_dir" != "X"; then
8746                 break
8747               fi
8748             done
8749           fi
8750           if test "X$found_dir" != "X"; then
8751                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8752             if test "X$found_so" != "X"; then
8753                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8754                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8755               else
8756                                                                                 haveit=
8757                 for x in $ltrpathdirs; do
8758                   if test "X$x" = "X$found_dir"; then
8759                     haveit=yes
8760                     break
8761                   fi
8762                 done
8763                 if test -z "$haveit"; then
8764                   ltrpathdirs="$ltrpathdirs $found_dir"
8765                 fi
8766                                 if test "$hardcode_direct" = yes; then
8767                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8768                 else
8769                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8770                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8771                                                             haveit=
8772                     for x in $rpathdirs; do
8773                       if test "X$x" = "X$found_dir"; then
8774                         haveit=yes
8775                         break
8776                       fi
8777                     done
8778                     if test -z "$haveit"; then
8779                       rpathdirs="$rpathdirs $found_dir"
8780                     fi
8781                   else
8782                                                                                 haveit=
8783                     for x in $LDFLAGS $LIBINTL; do
8784
8785   acl_save_prefix="$prefix"
8786   prefix="$acl_final_prefix"
8787   acl_save_exec_prefix="$exec_prefix"
8788   exec_prefix="$acl_final_exec_prefix"
8789   eval x=\"$x\"
8790   exec_prefix="$acl_save_exec_prefix"
8791   prefix="$acl_save_prefix"
8792
8793                       if test "X$x" = "X-L$found_dir"; then
8794                         haveit=yes
8795                         break
8796                       fi
8797                     done
8798                     if test -z "$haveit"; then
8799                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8800                     fi
8801                     if test "$hardcode_minus_L" != no; then
8802                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8803                     else
8804                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8805                     fi
8806                   fi
8807                 fi
8808               fi
8809             else
8810               if test "X$found_a" != "X"; then
8811                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8812               else
8813                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8814               fi
8815             fi
8816                         additional_includedir=
8817             case "$found_dir" in
8818               */lib | */lib/)
8819                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8820                 additional_includedir="$basedir/include"
8821                 ;;
8822             esac
8823             if test "X$additional_includedir" != "X"; then
8824                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8825                 haveit=
8826                 if test "X$additional_includedir" = "X/usr/local/include"; then
8827                   if test -n "$GCC"; then
8828                     case $host_os in
8829                       linux*) haveit=yes;;
8830                     esac
8831                   fi
8832                 fi
8833                 if test -z "$haveit"; then
8834                   for x in $CPPFLAGS $INCINTL; do
8835
8836   acl_save_prefix="$prefix"
8837   prefix="$acl_final_prefix"
8838   acl_save_exec_prefix="$exec_prefix"
8839   exec_prefix="$acl_final_exec_prefix"
8840   eval x=\"$x\"
8841   exec_prefix="$acl_save_exec_prefix"
8842   prefix="$acl_save_prefix"
8843
8844                     if test "X$x" = "X-I$additional_includedir"; then
8845                       haveit=yes
8846                       break
8847                     fi
8848                   done
8849                   if test -z "$haveit"; then
8850                     if test -d "$additional_includedir"; then
8851                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8852                     fi
8853                   fi
8854                 fi
8855               fi
8856             fi
8857                         if test -n "$found_la"; then
8858                                                         save_libdir="$libdir"
8859               case "$found_la" in
8860                 */* | *\\*) . "$found_la" ;;
8861                 *) . "./$found_la" ;;
8862               esac
8863               libdir="$save_libdir"
8864                             for dep in $dependency_libs; do
8865                 case "$dep" in
8866                   -L*)
8867                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8868                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8869                       haveit=
8870                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8871                         if test -n "$GCC"; then
8872                           case $host_os in
8873                             linux*) haveit=yes;;
8874                           esac
8875                         fi
8876                       fi
8877                       if test -z "$haveit"; then
8878                         haveit=
8879                         for x in $LDFLAGS $LIBINTL; do
8880
8881   acl_save_prefix="$prefix"
8882   prefix="$acl_final_prefix"
8883   acl_save_exec_prefix="$exec_prefix"
8884   exec_prefix="$acl_final_exec_prefix"
8885   eval x=\"$x\"
8886   exec_prefix="$acl_save_exec_prefix"
8887   prefix="$acl_save_prefix"
8888
8889                           if test "X$x" = "X-L$additional_libdir"; then
8890                             haveit=yes
8891                             break
8892                           fi
8893                         done
8894                         if test -z "$haveit"; then
8895                           if test -d "$additional_libdir"; then
8896                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8897                           fi
8898                         fi
8899                         haveit=
8900                         for x in $LDFLAGS $LTLIBINTL; do
8901
8902   acl_save_prefix="$prefix"
8903   prefix="$acl_final_prefix"
8904   acl_save_exec_prefix="$exec_prefix"
8905   exec_prefix="$acl_final_exec_prefix"
8906   eval x=\"$x\"
8907   exec_prefix="$acl_save_exec_prefix"
8908   prefix="$acl_save_prefix"
8909
8910                           if test "X$x" = "X-L$additional_libdir"; then
8911                             haveit=yes
8912                             break
8913                           fi
8914                         done
8915                         if test -z "$haveit"; then
8916                           if test -d "$additional_libdir"; then
8917                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8918                           fi
8919                         fi
8920                       fi
8921                     fi
8922                     ;;
8923                   -R*)
8924                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8925                     if test "$enable_rpath" != no; then
8926                                                                   haveit=
8927                       for x in $rpathdirs; do
8928                         if test "X$x" = "X$dir"; then
8929                           haveit=yes
8930                           break
8931                         fi
8932                       done
8933                       if test -z "$haveit"; then
8934                         rpathdirs="$rpathdirs $dir"
8935                       fi
8936                                                                   haveit=
8937                       for x in $ltrpathdirs; do
8938                         if test "X$x" = "X$dir"; then
8939                           haveit=yes
8940                           break
8941                         fi
8942                       done
8943                       if test -z "$haveit"; then
8944                         ltrpathdirs="$ltrpathdirs $dir"
8945                       fi
8946                     fi
8947                     ;;
8948                   -l*)
8949                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8950                     ;;
8951                   *.la)
8952                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8953                     ;;
8954                   *)
8955                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8956                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8957                     ;;
8958                 esac
8959               done
8960             fi
8961           else
8962                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8963             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8964           fi
8965         fi
8966       fi
8967     done
8968   done
8969   if test "X$rpathdirs" != "X"; then
8970     if test -n "$hardcode_libdir_separator"; then
8971                         alldirs=
8972       for found_dir in $rpathdirs; do
8973         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8974       done
8975             acl_save_libdir="$libdir"
8976       libdir="$alldirs"
8977       eval flag=\"$hardcode_libdir_flag_spec\"
8978       libdir="$acl_save_libdir"
8979       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8980     else
8981             for found_dir in $rpathdirs; do
8982         acl_save_libdir="$libdir"
8983         libdir="$found_dir"
8984         eval flag=\"$hardcode_libdir_flag_spec\"
8985         libdir="$acl_save_libdir"
8986         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8987       done
8988     fi
8989   fi
8990   if test "X$ltrpathdirs" != "X"; then
8991             for found_dir in $ltrpathdirs; do
8992       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8993     done
8994   fi
8995
8996           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8997 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8998 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
8999   $as_echo_n "(cached) " >&6
9000 else
9001   gt_save_CPPFLAGS="$CPPFLAGS"
9002             CPPFLAGS="$CPPFLAGS $INCINTL"
9003             gt_save_LIBS="$LIBS"
9004             LIBS="$LIBS $LIBINTL"
9005                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006 /* end confdefs.h.  */
9007 #include <libintl.h>
9008 extern int _nl_msg_cat_cntr;
9009 extern
9010 #ifdef __cplusplus
9011 "C"
9012 #endif
9013 const char *_nl_expand_alias ();
9014 int
9015 main ()
9016 {
9017 bindtextdomain ("", "");
9018 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9019   ;
9020   return 0;
9021 }
9022 _ACEOF
9023 if ac_fn_c_try_link "$LINENO"; then :
9024   gt_cv_func_gnugettext1_libintl=yes
9025 else
9026   gt_cv_func_gnugettext1_libintl=no
9027 fi
9028 rm -f core conftest.err conftest.$ac_objext \
9029     conftest$ac_exeext conftest.$ac_ext
9030                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9031               LIBS="$LIBS $LIBICONV"
9032               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033 /* end confdefs.h.  */
9034 #include <libintl.h>
9035 extern int _nl_msg_cat_cntr;
9036 extern
9037 #ifdef __cplusplus
9038 "C"
9039 #endif
9040 const char *_nl_expand_alias ();
9041 int
9042 main ()
9043 {
9044 bindtextdomain ("", "");
9045 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9046   ;
9047   return 0;
9048 }
9049 _ACEOF
9050 if ac_fn_c_try_link "$LINENO"; then :
9051   LIBINTL="$LIBINTL $LIBICONV"
9052                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9053                 gt_cv_func_gnugettext1_libintl=yes
9054
9055 fi
9056 rm -f core conftest.err conftest.$ac_objext \
9057     conftest$ac_exeext conftest.$ac_ext
9058             fi
9059             CPPFLAGS="$gt_save_CPPFLAGS"
9060             LIBS="$gt_save_LIBS"
9061 fi
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9063 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9064         fi
9065
9066                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9067            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9068                 && test "$PACKAGE" != gettext-runtime \
9069                 && test "$PACKAGE" != gettext-tools; }; then
9070           gt_use_preinstalled_gnugettext=yes
9071         else
9072                     LIBINTL=
9073           LTLIBINTL=
9074           INCINTL=
9075         fi
9076
9077
9078         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9079                               nls_cv_use_gnu_gettext=yes
9080         fi
9081       fi
9082
9083       if test "$nls_cv_use_gnu_gettext" = "yes"; then
9084                 BUILD_INCLUDED_LIBINTL=yes
9085         USE_INCLUDED_LIBINTL=yes
9086         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9087         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9088         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9089       fi
9090
9091       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9092          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9093                 CATOBJEXT=.gmo
9094       fi
9095
9096
9097     if test "$gt_use_preinstalled_gnugettext" = "yes" \
9098        || test "$nls_cv_use_gnu_gettext" = "yes"; then
9099
9100 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9101
9102     else
9103       USE_NLS=no
9104     fi
9105   fi
9106
9107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9108 $as_echo_n "checking whether to use NLS... " >&6; }
9109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9110 $as_echo "$USE_NLS" >&6; }
9111   if test "$USE_NLS" = "yes"; then
9112     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9113 $as_echo_n "checking where the gettext function comes from... " >&6; }
9114     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9115       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9116         gt_source="external libintl"
9117       else
9118         gt_source="libc"
9119       fi
9120     else
9121       gt_source="included intl directory"
9122     fi
9123     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9124 $as_echo "$gt_source" >&6; }
9125   fi
9126
9127   if test "$USE_NLS" = "yes"; then
9128
9129     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9130       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9131         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9132 $as_echo_n "checking how to link with libintl... " >&6; }
9133         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9134 $as_echo "$LIBINTL" >&6; }
9135
9136   for element in $INCINTL; do
9137     haveit=
9138     for x in $CPPFLAGS; do
9139
9140   acl_save_prefix="$prefix"
9141   prefix="$acl_final_prefix"
9142   acl_save_exec_prefix="$exec_prefix"
9143   exec_prefix="$acl_final_exec_prefix"
9144   eval x=\"$x\"
9145   exec_prefix="$acl_save_exec_prefix"
9146   prefix="$acl_save_prefix"
9147
9148       if test "X$x" = "X$element"; then
9149         haveit=yes
9150         break
9151       fi
9152     done
9153     if test -z "$haveit"; then
9154       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9155     fi
9156   done
9157
9158       fi
9159
9160
9161 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9162
9163
9164 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9165
9166     fi
9167
9168         POSUB=po
9169   fi
9170
9171
9172             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9173       BUILD_INCLUDED_LIBINTL=yes
9174     fi
9175
9176
9177
9178
9179
9180         nls_cv_header_intl=
9181     nls_cv_header_libgt=
9182
9183         DATADIRNAME=share
9184
9185
9186         INSTOBJEXT=.mo
9187
9188
9189         GENCAT=gencat
9190
9191
9192         if test "$USE_INCLUDED_LIBINTL" = yes; then
9193       INTLOBJS="\$(GETTOBJS)"
9194     fi
9195
9196
9197         INTL_LIBTOOL_SUFFIX_PREFIX=
9198
9199
9200
9201     INTLLIBS="$LIBINTL"
9202
9203
9204
9205
9206
9207
9208
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9210 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9211 set x ${MAKE-make}
9212 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9213 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9214   $as_echo_n "(cached) " >&6
9215 else
9216   cat >conftest.make <<\_ACEOF
9217 SHELL = /bin/sh
9218 all:
9219         @echo '@@@%%%=$(MAKE)=@@@%%%'
9220 _ACEOF
9221 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9222 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9223   *@@@%%%=?*=@@@%%%*)
9224     eval ac_cv_prog_make_${ac_make}_set=yes;;
9225   *)
9226     eval ac_cv_prog_make_${ac_make}_set=no;;
9227 esac
9228 rm -f conftest.make
9229 fi
9230 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9232 $as_echo "yes" >&6; }
9233   SET_MAKE=
9234 else
9235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9236 $as_echo "no" >&6; }
9237   SET_MAKE="MAKE=${MAKE-make}"
9238 fi
9239
9240  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9241 $as_echo_n "checking for GNU make... " >&6; }
9242 if test "${_cv_gnu_make_command+set}" = set; then :
9243   $as_echo_n "(cached) " >&6
9244 else
9245   _cv_gnu_make_command='' ;
9246                 for a in "$MAKE" make gmake gnumake ; do
9247                         if test -z "$a" ; then continue ; fi ;
9248                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
9249                                 _cv_gnu_make_command=$a ;
9250                                 break;
9251                         fi
9252                 done ;
9253
9254 fi
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9256 $as_echo "$_cv_gnu_make_command" >&6; } ;
9257         if test  "x$_cv_gnu_make_command" != "x"  ; then
9258                 ifGNUmake='' ;
9259                 ifNotGNUmake='#' ;
9260         else
9261                 ifGNUmake='#' ;
9262                 ifNotGNUmake='' ;
9263                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9264 $as_echo "\"Not found\"" >&6; };
9265         fi
9266
9267
9268
9269 # Extract the first word of "ln", so it can be a program name with args.
9270 set dummy ln; ac_word=$2
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9272 $as_echo_n "checking for $ac_word... " >&6; }
9273 if test "${ac_cv_path_LN+set}" = set; then :
9274   $as_echo_n "(cached) " >&6
9275 else
9276   case $LN in
9277   [\\/]* | ?:[\\/]*)
9278   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9279   ;;
9280   *)
9281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9282 for as_dir in $PATH
9283 do
9284   IFS=$as_save_IFS
9285   test -z "$as_dir" && as_dir=.
9286     for ac_exec_ext in '' $ac_executable_extensions; do
9287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9288     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9290     break 2
9291   fi
9292 done
9293   done
9294 IFS=$as_save_IFS
9295
9296   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9297   ;;
9298 esac
9299 fi
9300 LN=$ac_cv_path_LN
9301 if test -n "$LN"; then
9302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9303 $as_echo "$LN" >&6; }
9304 else
9305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9306 $as_echo "no" >&6; }
9307 fi
9308
9309
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9311 $as_echo_n "checking whether ln -s works... " >&6; }
9312 LN_S=$as_ln_s
9313 if test "$LN_S" = "ln -s"; then
9314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9315 $as_echo "yes" >&6; }
9316 else
9317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9318 $as_echo "no, using $LN_S" >&6; }
9319 fi
9320
9321 # Extract the first word of "mv", so it can be a program name with args.
9322 set dummy mv; ac_word=$2
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9324 $as_echo_n "checking for $ac_word... " >&6; }
9325 if test "${ac_cv_path_MV+set}" = set; then :
9326   $as_echo_n "(cached) " >&6
9327 else
9328   case $MV in
9329   [\\/]* | ?:[\\/]*)
9330   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9331   ;;
9332   *)
9333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9334 for as_dir in $PATH
9335 do
9336   IFS=$as_save_IFS
9337   test -z "$as_dir" && as_dir=.
9338     for ac_exec_ext in '' $ac_executable_extensions; do
9339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9340     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9342     break 2
9343   fi
9344 done
9345   done
9346 IFS=$as_save_IFS
9347
9348   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9349   ;;
9350 esac
9351 fi
9352 MV=$ac_cv_path_MV
9353 if test -n "$MV"; then
9354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9355 $as_echo "$MV" >&6; }
9356 else
9357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9358 $as_echo "no" >&6; }
9359 fi
9360
9361
9362 # Extract the first word of "cp", so it can be a program name with args.
9363 set dummy cp; ac_word=$2
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9365 $as_echo_n "checking for $ac_word... " >&6; }
9366 if test "${ac_cv_path_CP+set}" = set; then :
9367   $as_echo_n "(cached) " >&6
9368 else
9369   case $CP in
9370   [\\/]* | ?:[\\/]*)
9371   ac_cv_path_CP="$CP" # Let the user override the test with a path.
9372   ;;
9373   *)
9374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9375 for as_dir in $PATH
9376 do
9377   IFS=$as_save_IFS
9378   test -z "$as_dir" && as_dir=.
9379     for ac_exec_ext in '' $ac_executable_extensions; do
9380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9381     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9383     break 2
9384   fi
9385 done
9386   done
9387 IFS=$as_save_IFS
9388
9389   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9390   ;;
9391 esac
9392 fi
9393 CP=$ac_cv_path_CP
9394 if test -n "$CP"; then
9395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9396 $as_echo "$CP" >&6; }
9397 else
9398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9399 $as_echo "no" >&6; }
9400 fi
9401
9402
9403 # Extract the first word of "rm", so it can be a program name with args.
9404 set dummy rm; ac_word=$2
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9406 $as_echo_n "checking for $ac_word... " >&6; }
9407 if test "${ac_cv_path_RM+set}" = set; then :
9408   $as_echo_n "(cached) " >&6
9409 else
9410   case $RM in
9411   [\\/]* | ?:[\\/]*)
9412   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9413   ;;
9414   *)
9415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9416 for as_dir in $PATH
9417 do
9418   IFS=$as_save_IFS
9419   test -z "$as_dir" && as_dir=.
9420     for ac_exec_ext in '' $ac_executable_extensions; do
9421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9422     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9424     break 2
9425   fi
9426 done
9427   done
9428 IFS=$as_save_IFS
9429
9430   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9431   ;;
9432 esac
9433 fi
9434 RM=$ac_cv_path_RM
9435 if test -n "$RM"; then
9436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9437 $as_echo "$RM" >&6; }
9438 else
9439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9440 $as_echo "no" >&6; }
9441 fi
9442
9443
9444 # Extract the first word of "chmod", so it can be a program name with args.
9445 set dummy chmod; ac_word=$2
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9447 $as_echo_n "checking for $ac_word... " >&6; }
9448 if test "${ac_cv_path_CHMOD+set}" = set; then :
9449   $as_echo_n "(cached) " >&6
9450 else
9451   case $CHMOD in
9452   [\\/]* | ?:[\\/]*)
9453   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9454   ;;
9455   *)
9456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9457 for as_dir in $PATH
9458 do
9459   IFS=$as_save_IFS
9460   test -z "$as_dir" && as_dir=.
9461     for ac_exec_ext in '' $ac_executable_extensions; do
9462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9463     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9465     break 2
9466   fi
9467 done
9468   done
9469 IFS=$as_save_IFS
9470
9471   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9472   ;;
9473 esac
9474 fi
9475 CHMOD=$ac_cv_path_CHMOD
9476 if test -n "$CHMOD"; then
9477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9478 $as_echo "$CHMOD" >&6; }
9479 else
9480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9481 $as_echo "no" >&6; }
9482 fi
9483
9484
9485 for ac_prog in gawk mawk nawk awk
9486 do
9487   # Extract the first word of "$ac_prog", so it can be a program name with args.
9488 set dummy $ac_prog; ac_word=$2
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9490 $as_echo_n "checking for $ac_word... " >&6; }
9491 if test "${ac_cv_prog_AWK+set}" = set; then :
9492   $as_echo_n "(cached) " >&6
9493 else
9494   if test -n "$AWK"; then
9495   ac_cv_prog_AWK="$AWK" # Let the user override the test.
9496 else
9497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9498 for as_dir in $PATH
9499 do
9500   IFS=$as_save_IFS
9501   test -z "$as_dir" && as_dir=.
9502     for ac_exec_ext in '' $ac_executable_extensions; do
9503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9504     ac_cv_prog_AWK="$ac_prog"
9505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9506     break 2
9507   fi
9508 done
9509   done
9510 IFS=$as_save_IFS
9511
9512 fi
9513 fi
9514 AWK=$ac_cv_prog_AWK
9515 if test -n "$AWK"; then
9516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9517 $as_echo "$AWK" >&6; }
9518 else
9519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9520 $as_echo "no" >&6; }
9521 fi
9522
9523
9524   test -n "$AWK" && break
9525 done
9526
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9528 $as_echo_n "checking for egrep... " >&6; }
9529 if test "${ac_cv_path_EGREP+set}" = set; then :
9530   $as_echo_n "(cached) " >&6
9531 else
9532   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9533    then ac_cv_path_EGREP="$GREP -E"
9534    else
9535      if test -z "$EGREP"; then
9536   ac_path_EGREP_found=false
9537   # Loop through the user's path and test for each of PROGNAME-LIST
9538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9539 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9540 do
9541   IFS=$as_save_IFS
9542   test -z "$as_dir" && as_dir=.
9543     for ac_prog in egrep; do
9544     for ac_exec_ext in '' $ac_executable_extensions; do
9545       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9546       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
9547 # Check for GNU ac_path_EGREP and select it if it is found.
9548   # Check for GNU $ac_path_EGREP
9549 case `"$ac_path_EGREP" --version 2>&1` in
9550 *GNU*)
9551   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9552 *)
9553   ac_count=0
9554   $as_echo_n 0123456789 >"conftest.in"
9555   while :
9556   do
9557     cat "conftest.in" "conftest.in" >"conftest.tmp"
9558     mv "conftest.tmp" "conftest.in"
9559     cp "conftest.in" "conftest.nl"
9560     $as_echo 'EGREP' >> "conftest.nl"
9561     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9562     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9563     as_fn_arith $ac_count + 1 && ac_count=$as_val
9564     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9565       # Best one so far, save it but keep looking for a better one
9566       ac_cv_path_EGREP="$ac_path_EGREP"
9567       ac_path_EGREP_max=$ac_count
9568     fi
9569     # 10*(2^10) chars as input seems more than enough
9570     test $ac_count -gt 10 && break
9571   done
9572   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9573 esac
9574
9575       $ac_path_EGREP_found && break 3
9576     done
9577   done
9578   done
9579 IFS=$as_save_IFS
9580   if test -z "$ac_cv_path_EGREP"; then
9581     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9582   fi
9583 else
9584   ac_cv_path_EGREP=$EGREP
9585 fi
9586
9587    fi
9588 fi
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9590 $as_echo "$ac_cv_path_EGREP" >&6; }
9591  EGREP="$ac_cv_path_EGREP"
9592
9593
9594 # Extract the first word of "sed", so it can be a program name with args.
9595 set dummy sed; ac_word=$2
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9597 $as_echo_n "checking for $ac_word... " >&6; }
9598 if test "${ac_cv_path_SED+set}" = set; then :
9599   $as_echo_n "(cached) " >&6
9600 else
9601   case $SED in
9602   [\\/]* | ?:[\\/]*)
9603   ac_cv_path_SED="$SED" # Let the user override the test with a path.
9604   ;;
9605   *)
9606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9607 for as_dir in $PATH
9608 do
9609   IFS=$as_save_IFS
9610   test -z "$as_dir" && as_dir=.
9611     for ac_exec_ext in '' $ac_executable_extensions; do
9612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9613     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9615     break 2
9616   fi
9617 done
9618   done
9619 IFS=$as_save_IFS
9620
9621   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9622   ;;
9623 esac
9624 fi
9625 SED=$ac_cv_path_SED
9626 if test -n "$SED"; then
9627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9628 $as_echo "$SED" >&6; }
9629 else
9630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631 $as_echo "no" >&6; }
9632 fi
9633
9634
9635 # Extract the first word of "perl", so it can be a program name with args.
9636 set dummy perl; ac_word=$2
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9638 $as_echo_n "checking for $ac_word... " >&6; }
9639 if test "${ac_cv_path_PERL+set}" = set; then :
9640   $as_echo_n "(cached) " >&6
9641 else
9642   case $PERL in
9643   [\\/]* | ?:[\\/]*)
9644   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9645   ;;
9646   *)
9647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9648 for as_dir in $PATH
9649 do
9650   IFS=$as_save_IFS
9651   test -z "$as_dir" && as_dir=.
9652     for ac_exec_ext in '' $ac_executable_extensions; do
9653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9654     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9656     break 2
9657   fi
9658 done
9659   done
9660 IFS=$as_save_IFS
9661
9662   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9663   ;;
9664 esac
9665 fi
9666 PERL=$ac_cv_path_PERL
9667 if test -n "$PERL"; then
9668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9669 $as_echo "$PERL" >&6; }
9670 else
9671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9672 $as_echo "no" >&6; }
9673 fi
9674
9675
9676 # Extract the first word of "ldconfig", so it can be a program name with args.
9677 set dummy ldconfig; ac_word=$2
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9679 $as_echo_n "checking for $ac_word... " >&6; }
9680 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
9681   $as_echo_n "(cached) " >&6
9682 else
9683   case $LDCONFIG in
9684   [\\/]* | ?:[\\/]*)
9685   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9686   ;;
9687   *)
9688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9689 for as_dir in $PATH
9690 do
9691   IFS=$as_save_IFS
9692   test -z "$as_dir" && as_dir=.
9693     for ac_exec_ext in '' $ac_executable_extensions; do
9694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9695     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
9696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9697     break 2
9698   fi
9699 done
9700   done
9701 IFS=$as_save_IFS
9702
9703   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9704   ;;
9705 esac
9706 fi
9707 LDCONFIG=$ac_cv_path_LDCONFIG
9708 if test -n "$LDCONFIG"; then
9709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
9710 $as_echo "$LDCONFIG" >&6; }
9711 else
9712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9713 $as_echo "no" >&6; }
9714 fi
9715
9716
9717 if test -n "$ac_tool_prefix"; then
9718   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9719 set dummy ${ac_tool_prefix}ar; ac_word=$2
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9721 $as_echo_n "checking for $ac_word... " >&6; }
9722 if test "${ac_cv_prog_AR+set}" = set; then :
9723   $as_echo_n "(cached) " >&6
9724 else
9725   if test -n "$AR"; then
9726   ac_cv_prog_AR="$AR" # Let the user override the test.
9727 else
9728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9729 for as_dir in $PATH
9730 do
9731   IFS=$as_save_IFS
9732   test -z "$as_dir" && as_dir=.
9733     for ac_exec_ext in '' $ac_executable_extensions; do
9734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9735     ac_cv_prog_AR="${ac_tool_prefix}ar"
9736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9737     break 2
9738   fi
9739 done
9740   done
9741 IFS=$as_save_IFS
9742
9743 fi
9744 fi
9745 AR=$ac_cv_prog_AR
9746 if test -n "$AR"; then
9747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9748 $as_echo "$AR" >&6; }
9749 else
9750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9751 $as_echo "no" >&6; }
9752 fi
9753
9754
9755 fi
9756 if test -z "$ac_cv_prog_AR"; then
9757   ac_ct_AR=$AR
9758   # Extract the first word of "ar", so it can be a program name with args.
9759 set dummy ar; ac_word=$2
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9761 $as_echo_n "checking for $ac_word... " >&6; }
9762 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
9763   $as_echo_n "(cached) " >&6
9764 else
9765   if test -n "$ac_ct_AR"; then
9766   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9767 else
9768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9769 for as_dir in $PATH
9770 do
9771   IFS=$as_save_IFS
9772   test -z "$as_dir" && as_dir=.
9773     for ac_exec_ext in '' $ac_executable_extensions; do
9774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9775     ac_cv_prog_ac_ct_AR="ar"
9776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9777     break 2
9778   fi
9779 done
9780   done
9781 IFS=$as_save_IFS
9782
9783 fi
9784 fi
9785 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9786 if test -n "$ac_ct_AR"; then
9787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9788 $as_echo "$ac_ct_AR" >&6; }
9789 else
9790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9791 $as_echo "no" >&6; }
9792 fi
9793
9794   if test "x$ac_ct_AR" = x; then
9795     AR="ar"
9796   else
9797     case $cross_compiling:$ac_tool_warned in
9798 yes:)
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9801 ac_tool_warned=yes ;;
9802 esac
9803     AR=$ac_ct_AR
9804   fi
9805 else
9806   AR="$ac_cv_prog_AR"
9807 fi
9808
9809 if test -n "$ac_tool_prefix"; then
9810   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9811 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9813 $as_echo_n "checking for $ac_word... " >&6; }
9814 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9815   $as_echo_n "(cached) " >&6
9816 else
9817   if test -n "$RANLIB"; then
9818   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9819 else
9820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9821 for as_dir in $PATH
9822 do
9823   IFS=$as_save_IFS
9824   test -z "$as_dir" && as_dir=.
9825     for ac_exec_ext in '' $ac_executable_extensions; do
9826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9827     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9829     break 2
9830   fi
9831 done
9832   done
9833 IFS=$as_save_IFS
9834
9835 fi
9836 fi
9837 RANLIB=$ac_cv_prog_RANLIB
9838 if test -n "$RANLIB"; then
9839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9840 $as_echo "$RANLIB" >&6; }
9841 else
9842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9843 $as_echo "no" >&6; }
9844 fi
9845
9846
9847 fi
9848 if test -z "$ac_cv_prog_RANLIB"; then
9849   ac_ct_RANLIB=$RANLIB
9850   # Extract the first word of "ranlib", so it can be a program name with args.
9851 set dummy ranlib; ac_word=$2
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9853 $as_echo_n "checking for $ac_word... " >&6; }
9854 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
9855   $as_echo_n "(cached) " >&6
9856 else
9857   if test -n "$ac_ct_RANLIB"; then
9858   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9859 else
9860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9861 for as_dir in $PATH
9862 do
9863   IFS=$as_save_IFS
9864   test -z "$as_dir" && as_dir=.
9865     for ac_exec_ext in '' $ac_executable_extensions; do
9866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9867     ac_cv_prog_ac_ct_RANLIB="ranlib"
9868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9869     break 2
9870   fi
9871 done
9872   done
9873 IFS=$as_save_IFS
9874
9875 fi
9876 fi
9877 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9878 if test -n "$ac_ct_RANLIB"; then
9879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9880 $as_echo "$ac_ct_RANLIB" >&6; }
9881 else
9882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9883 $as_echo "no" >&6; }
9884 fi
9885
9886   if test "x$ac_ct_RANLIB" = x; then
9887     RANLIB=":"
9888   else
9889     case $cross_compiling:$ac_tool_warned in
9890 yes:)
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9893 ac_tool_warned=yes ;;
9894 esac
9895     RANLIB=$ac_ct_RANLIB
9896   fi
9897 else
9898   RANLIB="$ac_cv_prog_RANLIB"
9899 fi
9900
9901 if test -n "$ac_tool_prefix"; then
9902   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9903 set dummy ${ac_tool_prefix}strip; 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_STRIP+set}" = set; then :
9907   $as_echo_n "(cached) " >&6
9908 else
9909   if test -n "$STRIP"; then
9910   ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
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 STRIP=$ac_cv_prog_STRIP
9930 if test -n "$STRIP"; then
9931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9932 $as_echo "$STRIP" >&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_STRIP"; then
9941   ac_ct_STRIP=$STRIP
9942   # Extract the first word of "strip", so it can be a program name with args.
9943 set dummy strip; 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_STRIP+set}" = set; then :
9947   $as_echo_n "(cached) " >&6
9948 else
9949   if test -n "$ac_ct_STRIP"; then
9950   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_STRIP="strip"
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_STRIP=$ac_cv_prog_ac_ct_STRIP
9970 if test -n "$ac_ct_STRIP"; then
9971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9972 $as_echo "$ac_ct_STRIP" >&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_STRIP" = x; then
9979     STRIP=":"
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     STRIP=$ac_ct_STRIP
9988   fi
9989 else
9990   STRIP="$ac_cv_prog_STRIP"
9991 fi
9992
9993 # Extract the first word of "makeinfo", so it can be a program name with args.
9994 set dummy makeinfo; ac_word=$2
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9996 $as_echo_n "checking for $ac_word... " >&6; }
9997 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
9998   $as_echo_n "(cached) " >&6
9999 else
10000   if test -n "$MAKEINFO"; then
10001   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10002 else
10003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10004 for as_dir in $PATH
10005 do
10006   IFS=$as_save_IFS
10007   test -z "$as_dir" && as_dir=.
10008     for ac_exec_ext in '' $ac_executable_extensions; do
10009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10010     ac_cv_prog_MAKEINFO="makeinfo"
10011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10012     break 2
10013   fi
10014 done
10015   done
10016 IFS=$as_save_IFS
10017
10018 fi
10019 fi
10020 MAKEINFO=$ac_cv_prog_MAKEINFO
10021 if test -n "$MAKEINFO"; then
10022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10023 $as_echo "$MAKEINFO" >&6; }
10024 else
10025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10026 $as_echo "no" >&6; }
10027 fi
10028
10029
10030 if test "_$MAKEINFO" = "_"; then
10031     MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10032 else
10033     case "$MAKEINFO" in
10034       */missing.*)
10035         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10036 *** Makeinfo is missing. Info documentation will not be built." >&5
10037 $as_echo "$as_me: WARNING:
10038 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10039         ;;
10040       *)
10041         ;;
10042     esac
10043 fi
10044
10045
10046 # See if we need a separate native compiler.
10047 if test $cross_compiling = no; then
10048   BUILD_CC="$CC"
10049
10050 else
10051   for ac_prog in gcc cc
10052 do
10053   # Extract the first word of "$ac_prog", so it can be a program name with args.
10054 set dummy $ac_prog; ac_word=$2
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10056 $as_echo_n "checking for $ac_word... " >&6; }
10057 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
10058   $as_echo_n "(cached) " >&6
10059 else
10060   if test -n "$BUILD_CC"; then
10061   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10062 else
10063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064 for as_dir in $PATH
10065 do
10066   IFS=$as_save_IFS
10067   test -z "$as_dir" && as_dir=.
10068     for ac_exec_ext in '' $ac_executable_extensions; do
10069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10070     ac_cv_prog_BUILD_CC="$ac_prog"
10071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10072     break 2
10073   fi
10074 done
10075   done
10076 IFS=$as_save_IFS
10077
10078 fi
10079 fi
10080 BUILD_CC=$ac_cv_prog_BUILD_CC
10081 if test -n "$BUILD_CC"; then
10082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10083 $as_echo "$BUILD_CC" >&6; }
10084 else
10085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10086 $as_echo "no" >&6; }
10087 fi
10088
10089
10090   test -n "$BUILD_CC" && break
10091 done
10092
10093 fi
10094 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/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
10095 do :
10096   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10097 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10098 eval as_val=\$$as_ac_Header
10099    if test "x$as_val" = x""yes; then :
10100   cat >>confdefs.h <<_ACEOF
10101 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10102 _ACEOF
10103
10104 fi
10105
10106 done
10107
10108 for ac_header in sys/disk.h sys/mount.h
10109 do :
10110   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10111 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10112 #if HAVE_SYS_QUEUE_H
10113 #include <sys/queue.h>
10114 #endif
10115
10116 "
10117 eval as_val=\$$as_ac_Header
10118    if test "x$as_val" = x""yes; then :
10119   cat >>confdefs.h <<_ACEOF
10120 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10121 _ACEOF
10122
10123 fi
10124
10125 done
10126
10127 for ac_header in net/if.h
10128 do :
10129   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10130 #if HAVE_SYS_TYPES_H
10131 #include <sys/types.h>
10132 #endif
10133 #if HAVE_SYS_SOCKET
10134 #include <sys/socket.h>
10135 #endif
10136
10137 "
10138 if test "x$ac_cv_header_net_if_h" = x""yes; then :
10139   cat >>confdefs.h <<_ACEOF
10140 #define HAVE_NET_IF_H 1
10141 _ACEOF
10142
10143 fi
10144
10145 done
10146
10147 for ac_func in vprintf
10148 do :
10149   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10150 if test "x$ac_cv_func_vprintf" = x""yes; then :
10151   cat >>confdefs.h <<_ACEOF
10152 #define HAVE_VPRINTF 1
10153 _ACEOF
10154
10155 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10156 if test "x$ac_cv_func__doprnt" = x""yes; then :
10157
10158 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10159
10160 fi
10161
10162 fi
10163 done
10164
10165
10166 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10167 "
10168 if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then :
10169   $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10170
10171 fi
10172
10173 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10174 "
10175 if test "x$ac_cv_type_ssize_t" = x""yes; then :
10176   $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10177
10178 fi
10179
10180 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10181 "
10182 if test "x$ac_cv_have_decl_llseek" = x""yes; then :
10183   $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10184
10185 fi
10186
10187 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10188                  #define _LARGEFILE64_SOURCE
10189                  #include <unistd.h>
10190 "
10191 if test "x$ac_cv_have_decl_lseek64" = x""yes; then :
10192   $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10193
10194 fi
10195
10196 # The cast to long int works around a bug in the HP C Compiler
10197 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10198 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10199 # This bug is HP SR number 8606223364.
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10201 $as_echo_n "checking size of short... " >&6; }
10202 if test "${ac_cv_sizeof_short+set}" = set; then :
10203   $as_echo_n "(cached) " >&6
10204 else
10205   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
10206
10207 else
10208   if test "$ac_cv_type_short" = yes; then
10209      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10211 { as_fn_set_status 77
10212 as_fn_error "cannot compute sizeof (short)
10213 See \`config.log' for more details." "$LINENO" 5; }; }
10214    else
10215      ac_cv_sizeof_short=0
10216    fi
10217 fi
10218
10219 fi
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10221 $as_echo "$ac_cv_sizeof_short" >&6; }
10222
10223
10224
10225 cat >>confdefs.h <<_ACEOF
10226 #define SIZEOF_SHORT $ac_cv_sizeof_short
10227 _ACEOF
10228
10229
10230 # The cast to long int works around a bug in the HP C Compiler
10231 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10232 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10233 # This bug is HP SR number 8606223364.
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10235 $as_echo_n "checking size of int... " >&6; }
10236 if test "${ac_cv_sizeof_int+set}" = set; then :
10237   $as_echo_n "(cached) " >&6
10238 else
10239   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
10240
10241 else
10242   if test "$ac_cv_type_int" = yes; then
10243      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10245 { as_fn_set_status 77
10246 as_fn_error "cannot compute sizeof (int)
10247 See \`config.log' for more details." "$LINENO" 5; }; }
10248    else
10249      ac_cv_sizeof_int=0
10250    fi
10251 fi
10252
10253 fi
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10255 $as_echo "$ac_cv_sizeof_int" >&6; }
10256
10257
10258
10259 cat >>confdefs.h <<_ACEOF
10260 #define SIZEOF_INT $ac_cv_sizeof_int
10261 _ACEOF
10262
10263
10264 # The cast to long int works around a bug in the HP C Compiler
10265 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10266 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10267 # This bug is HP SR number 8606223364.
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10269 $as_echo_n "checking size of long... " >&6; }
10270 if test "${ac_cv_sizeof_long+set}" = set; then :
10271   $as_echo_n "(cached) " >&6
10272 else
10273   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
10274
10275 else
10276   if test "$ac_cv_type_long" = yes; then
10277      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10279 { as_fn_set_status 77
10280 as_fn_error "cannot compute sizeof (long)
10281 See \`config.log' for more details." "$LINENO" 5; }; }
10282    else
10283      ac_cv_sizeof_long=0
10284    fi
10285 fi
10286
10287 fi
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10289 $as_echo "$ac_cv_sizeof_long" >&6; }
10290
10291
10292
10293 cat >>confdefs.h <<_ACEOF
10294 #define SIZEOF_LONG $ac_cv_sizeof_long
10295 _ACEOF
10296
10297
10298 # The cast to long int works around a bug in the HP C Compiler
10299 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10300 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10301 # This bug is HP SR number 8606223364.
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10303 $as_echo_n "checking size of long long... " >&6; }
10304 if test "${ac_cv_sizeof_long_long+set}" = set; then :
10305   $as_echo_n "(cached) " >&6
10306 else
10307   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
10308
10309 else
10310   if test "$ac_cv_type_long_long" = yes; then
10311      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10313 { as_fn_set_status 77
10314 as_fn_error "cannot compute sizeof (long long)
10315 See \`config.log' for more details." "$LINENO" 5; }; }
10316    else
10317      ac_cv_sizeof_long_long=0
10318    fi
10319 fi
10320
10321 fi
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10323 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10324
10325
10326
10327 cat >>confdefs.h <<_ACEOF
10328 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10329 _ACEOF
10330
10331
10332 SIZEOF_SHORT=$ac_cv_sizeof_short
10333 SIZEOF_INT=$ac_cv_sizeof_int
10334 SIZEOF_LONG=$ac_cv_sizeof_long
10335 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10336
10337
10338
10339
10340  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10341 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10342 if test "${ac_cv_c_bigendian+set}" = set; then :
10343   $as_echo_n "(cached) " >&6
10344 else
10345   ac_cv_c_bigendian=unknown
10346     # See if we're dealing with a universal compiler.
10347     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348 /* end confdefs.h.  */
10349 #ifndef __APPLE_CC__
10350                not a universal capable compiler
10351              #endif
10352              typedef int dummy;
10353
10354 _ACEOF
10355 if ac_fn_c_try_compile "$LINENO"; then :
10356
10357         # Check for potential -arch flags.  It is not universal unless
10358         # there are at least two -arch flags with different values.
10359         ac_arch=
10360         ac_prev=
10361         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10362          if test -n "$ac_prev"; then
10363            case $ac_word in
10364              i?86 | x86_64 | ppc | ppc64)
10365                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10366                  ac_arch=$ac_word
10367                else
10368                  ac_cv_c_bigendian=universal
10369                  break
10370                fi
10371                ;;
10372            esac
10373            ac_prev=
10374          elif test "x$ac_word" = "x-arch"; then
10375            ac_prev=arch
10376          fi
10377        done
10378 fi
10379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10380     if test $ac_cv_c_bigendian = unknown; then
10381       # See if sys/param.h defines the BYTE_ORDER macro.
10382       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10383 /* end confdefs.h.  */
10384 #include <sys/types.h>
10385              #include <sys/param.h>
10386
10387 int
10388 main ()
10389 {
10390 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10391                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10392                      && LITTLE_ENDIAN)
10393               bogus endian macros
10394              #endif
10395
10396   ;
10397   return 0;
10398 }
10399 _ACEOF
10400 if ac_fn_c_try_compile "$LINENO"; then :
10401   # It does; now see whether it defined to BIG_ENDIAN or not.
10402          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h.  */
10404 #include <sys/types.h>
10405                 #include <sys/param.h>
10406
10407 int
10408 main ()
10409 {
10410 #if BYTE_ORDER != BIG_ENDIAN
10411                  not big endian
10412                 #endif
10413
10414   ;
10415   return 0;
10416 }
10417 _ACEOF
10418 if ac_fn_c_try_compile "$LINENO"; then :
10419   ac_cv_c_bigendian=yes
10420 else
10421   ac_cv_c_bigendian=no
10422 fi
10423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10424 fi
10425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10426     fi
10427     if test $ac_cv_c_bigendian = unknown; then
10428       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10429       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h.  */
10431 #include <limits.h>
10432
10433 int
10434 main ()
10435 {
10436 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10437               bogus endian macros
10438              #endif
10439
10440   ;
10441   return 0;
10442 }
10443 _ACEOF
10444 if ac_fn_c_try_compile "$LINENO"; then :
10445   # It does; now see whether it defined to _BIG_ENDIAN or not.
10446          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h.  */
10448 #include <limits.h>
10449
10450 int
10451 main ()
10452 {
10453 #ifndef _BIG_ENDIAN
10454                  not big endian
10455                 #endif
10456
10457   ;
10458   return 0;
10459 }
10460 _ACEOF
10461 if ac_fn_c_try_compile "$LINENO"; then :
10462   ac_cv_c_bigendian=yes
10463 else
10464   ac_cv_c_bigendian=no
10465 fi
10466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10467 fi
10468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10469     fi
10470     if test $ac_cv_c_bigendian = unknown; then
10471       # Compile a test program.
10472       if test "$cross_compiling" = yes; then :
10473   # Try to guess by grepping values from an object file.
10474          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475 /* end confdefs.h.  */
10476 short int ascii_mm[] =
10477                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10478                 short int ascii_ii[] =
10479                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10480                 int use_ascii (int i) {
10481                   return ascii_mm[i] + ascii_ii[i];
10482                 }
10483                 short int ebcdic_ii[] =
10484                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10485                 short int ebcdic_mm[] =
10486                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10487                 int use_ebcdic (int i) {
10488                   return ebcdic_mm[i] + ebcdic_ii[i];
10489                 }
10490                 extern int foo;
10491
10492 int
10493 main ()
10494 {
10495 return use_ascii (foo) == use_ebcdic (foo);
10496   ;
10497   return 0;
10498 }
10499 _ACEOF
10500 if ac_fn_c_try_compile "$LINENO"; then :
10501   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10502               ac_cv_c_bigendian=yes
10503             fi
10504             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10505               if test "$ac_cv_c_bigendian" = unknown; then
10506                 ac_cv_c_bigendian=no
10507               else
10508                 # finding both strings is unlikely to happen, but who knows?
10509                 ac_cv_c_bigendian=unknown
10510               fi
10511             fi
10512 fi
10513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10514 else
10515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10516 /* end confdefs.h.  */
10517 $ac_includes_default
10518 int
10519 main ()
10520 {
10521
10522              /* Are we little or big endian?  From Harbison&Steele.  */
10523              union
10524              {
10525                long int l;
10526                char c[sizeof (long int)];
10527              } u;
10528              u.l = 1;
10529              return u.c[sizeof (long int) - 1] == 1;
10530
10531   ;
10532   return 0;
10533 }
10534 _ACEOF
10535 if ac_fn_c_try_run "$LINENO"; then :
10536   ac_cv_c_bigendian=no
10537 else
10538   ac_cv_c_bigendian=yes
10539 fi
10540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10541   conftest.$ac_objext conftest.beam conftest.$ac_ext
10542 fi
10543
10544     fi
10545 fi
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10547 $as_echo "$ac_cv_c_bigendian" >&6; }
10548  case $ac_cv_c_bigendian in #(
10549    yes)
10550      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10551 ;; #(
10552    no)
10553       ;; #(
10554    universal)
10555
10556 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10557
10558      ;; #(
10559    *)
10560      as_fn_error "unknown endianness
10561  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10562  esac
10563
10564 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10565 ASM_TYPES_HEADER=./asm_types.h
10566
10567 echo "/* These defines are needed for the public ext2fs.h header file */" \
10568      > public_config.h
10569 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10570   uniq tmp_config.$$ >> public_config.h
10571 else
10572   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10573 fi
10574 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10575   uniq tmp_config.$$ >> public_config.h
10576 else
10577   echo "#undef WORDS_BIGENDIAN" >> public_config.h
10578 fi
10579 rm -f tmp_config.$$
10580 PUBLIC_CONFIG_HEADER=./public_config.h
10581
10582 for ac_header in inttypes.h
10583 do :
10584   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10585 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
10586   cat >>confdefs.h <<_ACEOF
10587 #define HAVE_INTTYPES_H 1
10588 _ACEOF
10589
10590 fi
10591
10592 done
10593
10594 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10595 if test "x$ac_cv_type_intptr_t" = x""yes; then :
10596
10597 cat >>confdefs.h <<_ACEOF
10598 #define HAVE_INTPTR_T 1
10599 _ACEOF
10600
10601
10602 fi
10603
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10605 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10606 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then :
10607   $as_echo_n "(cached) " >&6
10608 else
10609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10610 /* end confdefs.h.  */
10611 #include <sys/stat.h>
10612 int
10613 main ()
10614 {
10615 struct stat stat; stat.st_flags = 0;
10616   ;
10617   return 0;
10618 }
10619 _ACEOF
10620 if ac_fn_c_try_compile "$LINENO"; then :
10621   e2fsprogs_cv_struct_st_flags=yes
10622 else
10623   e2fsprogs_cv_struct_st_flags=no
10624 fi
10625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10626 fi
10627
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10629 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10630 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10632 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10633   if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then :
10634   $as_echo_n "(cached) " >&6
10635 else
10636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10637 /* end confdefs.h.  */
10638 #include <sys/stat.h>
10639 int
10640 main ()
10641 {
10642 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
10643   ;
10644   return 0;
10645 }
10646 _ACEOF
10647 if ac_fn_c_try_compile "$LINENO"; then :
10648   e2fsprogs_cv_struct_st_flags_immut=yes
10649 else
10650   e2fsprogs_cv_struct_st_flags_immut=no
10651 fi
10652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10653 fi
10654
10655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
10656 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
10657   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
10658           $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
10659
10660   fi
10661 fi
10662 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10663          #include <sys/socket.h>
10664 "
10665 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
10666
10667 cat >>confdefs.h <<_ACEOF
10668 #define HAVE_SA_LEN 1
10669 _ACEOF
10670
10671 fi
10672
10673 if test -n "$BLKID_CMT"; then
10674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
10675 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
10676 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10677   $as_echo_n "(cached) " >&6
10678 else
10679   ac_func_search_save_LIBS=$LIBS
10680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10681 /* end confdefs.h.  */
10682
10683 /* Override any GCC internal prototype to avoid an error.
10684    Use char because int might match the return type of a GCC
10685    builtin and then its argument prototype would still apply.  */
10686 #ifdef __cplusplus
10687 extern "C"
10688 #endif
10689 char blkid_probe_all ();
10690 int
10691 main ()
10692 {
10693 return blkid_probe_all ();
10694   ;
10695   return 0;
10696 }
10697 _ACEOF
10698 for ac_lib in '' blkid; do
10699   if test -z "$ac_lib"; then
10700     ac_res="none required"
10701   else
10702     ac_res=-l$ac_lib
10703     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10704   fi
10705   if ac_fn_c_try_link "$LINENO"; then :
10706   ac_cv_search_blkid_probe_all=$ac_res
10707 fi
10708 rm -f core conftest.err conftest.$ac_objext \
10709     conftest$ac_exeext
10710   if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10711   break
10712 fi
10713 done
10714 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10715
10716 else
10717   ac_cv_search_blkid_probe_all=no
10718 fi
10719 rm conftest.$ac_ext
10720 LIBS=$ac_func_search_save_LIBS
10721 fi
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
10723 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
10724 ac_res=$ac_cv_search_blkid_probe_all
10725 if test "$ac_res" != no; then :
10726   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10727
10728 fi
10729
10730 fi
10731 for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep getdtablesize getrlimit sync_file_range posix_fadvise fallocate fallocate64 blkid_probe_get_topology mbstowcs backtrace
10732 do :
10733   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10734 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10735 eval as_val=\$$as_ac_var
10736    if test "x$as_val" = x""yes; then :
10737   cat >>confdefs.h <<_ACEOF
10738 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10739 _ACEOF
10740
10741 fi
10742 done
10743
10744 SOCKET_LIB=''
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10746 $as_echo_n "checking for socket in -lsocket... " >&6; }
10747 if test "${ac_cv_lib_socket_socket+set}" = set; then :
10748   $as_echo_n "(cached) " >&6
10749 else
10750   ac_check_lib_save_LIBS=$LIBS
10751 LIBS="-lsocket  $LIBS"
10752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10753 /* end confdefs.h.  */
10754
10755 /* Override any GCC internal prototype to avoid an error.
10756    Use char because int might match the return type of a GCC
10757    builtin and then its argument prototype would still apply.  */
10758 #ifdef __cplusplus
10759 extern "C"
10760 #endif
10761 char socket ();
10762 int
10763 main ()
10764 {
10765 return socket ();
10766   ;
10767   return 0;
10768 }
10769 _ACEOF
10770 if ac_fn_c_try_link "$LINENO"; then :
10771   ac_cv_lib_socket_socket=yes
10772 else
10773   ac_cv_lib_socket_socket=no
10774 fi
10775 rm -f core conftest.err conftest.$ac_objext \
10776     conftest$ac_exeext conftest.$ac_ext
10777 LIBS=$ac_check_lib_save_LIBS
10778 fi
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10780 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10781 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
10782   SOCKET_LIB=-lsocket
10783 fi
10784
10785
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
10787 $as_echo_n "checking for optreset... " >&6; }
10788 if test "${ac_cv_have_optreset+set}" = set; then :
10789   $as_echo_n "(cached) " >&6
10790 else
10791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792 /* end confdefs.h.  */
10793 #include <unistd.h>
10794
10795 _ACEOF
10796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10797   $EGREP "optreset" >/dev/null 2>&1; then :
10798   ac_cv_have_optreset=yes
10799 else
10800   ac_cv_have_optreset=no
10801 fi
10802 rm -f conftest*
10803
10804 fi
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
10806 $as_echo "$ac_cv_have_optreset" >&6; }
10807 if test $ac_cv_have_optreset = yes; then
10808   $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
10809
10810 fi
10811 SEM_INIT_LIB=''
10812 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
10813 if test "x$ac_cv_func_sem_init" = x""yes; then :
10814
10815 else
10816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
10817 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
10818 if test "${ac_cv_lib_pthread_sem_init+set}" = set; then :
10819   $as_echo_n "(cached) " >&6
10820 else
10821   ac_check_lib_save_LIBS=$LIBS
10822 LIBS="-lpthread  $LIBS"
10823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10824 /* end confdefs.h.  */
10825
10826 /* Override any GCC internal prototype to avoid an error.
10827    Use char because int might match the return type of a GCC
10828    builtin and then its argument prototype would still apply.  */
10829 #ifdef __cplusplus
10830 extern "C"
10831 #endif
10832 char sem_init ();
10833 int
10834 main ()
10835 {
10836 return sem_init ();
10837   ;
10838   return 0;
10839 }
10840 _ACEOF
10841 if ac_fn_c_try_link "$LINENO"; then :
10842   ac_cv_lib_pthread_sem_init=yes
10843 else
10844   ac_cv_lib_pthread_sem_init=no
10845 fi
10846 rm -f core conftest.err conftest.$ac_objext \
10847     conftest$ac_exeext conftest.$ac_ext
10848 LIBS=$ac_check_lib_save_LIBS
10849 fi
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
10851 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
10852 if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then :
10853   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
10854
10855         SEM_INIT_LIB=-lpthread
10856 else
10857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
10858 $as_echo_n "checking for sem_init in -lrt... " >&6; }
10859 if test "${ac_cv_lib_rt_sem_init+set}" = set; then :
10860   $as_echo_n "(cached) " >&6
10861 else
10862   ac_check_lib_save_LIBS=$LIBS
10863 LIBS="-lrt  $LIBS"
10864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10865 /* end confdefs.h.  */
10866
10867 /* Override any GCC internal prototype to avoid an error.
10868    Use char because int might match the return type of a GCC
10869    builtin and then its argument prototype would still apply.  */
10870 #ifdef __cplusplus
10871 extern "C"
10872 #endif
10873 char sem_init ();
10874 int
10875 main ()
10876 {
10877 return sem_init ();
10878   ;
10879   return 0;
10880 }
10881 _ACEOF
10882 if ac_fn_c_try_link "$LINENO"; then :
10883   ac_cv_lib_rt_sem_init=yes
10884 else
10885   ac_cv_lib_rt_sem_init=no
10886 fi
10887 rm -f core conftest.err conftest.$ac_objext \
10888     conftest$ac_exeext conftest.$ac_ext
10889 LIBS=$ac_check_lib_save_LIBS
10890 fi
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
10892 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
10893 if test "x$ac_cv_lib_rt_sem_init" = x""yes; then :
10894   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
10895
10896         SEM_INIT_LIB=-lrt
10897 else
10898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
10899 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
10900 if test "${ac_cv_lib_posix4_sem_init+set}" = set; then :
10901   $as_echo_n "(cached) " >&6
10902 else
10903   ac_check_lib_save_LIBS=$LIBS
10904 LIBS="-lposix4  $LIBS"
10905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10906 /* end confdefs.h.  */
10907
10908 /* Override any GCC internal prototype to avoid an error.
10909    Use char because int might match the return type of a GCC
10910    builtin and then its argument prototype would still apply.  */
10911 #ifdef __cplusplus
10912 extern "C"
10913 #endif
10914 char sem_init ();
10915 int
10916 main ()
10917 {
10918 return sem_init ();
10919   ;
10920   return 0;
10921 }
10922 _ACEOF
10923 if ac_fn_c_try_link "$LINENO"; then :
10924   ac_cv_lib_posix4_sem_init=yes
10925 else
10926   ac_cv_lib_posix4_sem_init=no
10927 fi
10928 rm -f core conftest.err conftest.$ac_objext \
10929     conftest$ac_exeext conftest.$ac_ext
10930 LIBS=$ac_check_lib_save_LIBS
10931 fi
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
10933 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
10934 if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then :
10935   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
10936
10937         SEM_INIT_LIB=-lposix4
10938 fi
10939
10940 fi
10941
10942 fi
10943
10944 fi
10945
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
10947 $as_echo_n "checking for unified diff option... " >&6; }
10948 if diff -u $0 $0 > /dev/null 2>&1 ; then
10949    UNI_DIFF_OPTS=-u
10950 else
10951    UNI_DIFF_OPTS=-c
10952 fi
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
10954 $as_echo "$UNI_DIFF_OPTS" >&6; }
10955
10956 case "$host_os" in
10957 linux*)
10958         $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
10959
10960         ;;
10961 esac
10962 LINUX_CMT="#"
10963 CYGWIN_CMT="#"
10964 UNIX_CMT=
10965 case "$host_os" in
10966 linux*)
10967         LINUX_CMT=
10968         ;;
10969 cygwin)
10970         CYGWIN_CMT=
10971         UNIX_CMT="#"
10972         ;;
10973 esac
10974
10975
10976
10977 case "$host_os" in
10978 linux* | gnu* | k*bsd*-gnu)
10979         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
10980                 root_prefix="";
10981                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
10982 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
10983         fi
10984         ;;
10985 esac
10986 case "$host_os" in
10987 linux* | gnu* | k*bsd*-gnu)
10988         if test "$prefix" = NONE ; then
10989                 prefix="/usr";
10990                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
10991 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
10992                 if test "$mandir" = '${prefix}/man' ; then
10993                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
10994 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
10995                         mandir=/usr/share/man
10996                 fi
10997         fi
10998 ;;
10999 esac
11000 if test "$root_prefix" = NONE ; then
11001         if test "$prefix" = NONE ; then
11002                 root_prefix="$ac_default_prefix"
11003         else
11004                 root_prefix="$prefix"
11005         fi
11006         root_bindir=$bindir
11007         root_sbindir=$sbindir
11008         root_libdir=$libdir
11009         root_sysconfdir=$sysconfdir
11010 else
11011         root_bindir='${root_prefix}/bin'
11012         root_sbindir='${root_prefix}/sbin'
11013         root_libdir='${root_prefix}/lib'
11014         root_sysconfdir='${root_prefix}/etc'
11015 fi
11016 if test "$bindir" != '${exec_prefix}/bin'; then
11017     root_bindir=$bindir
11018     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11019 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11020 fi
11021 if test "$sbindir" != '${exec_prefix}/sbin'; then
11022     root_sbindir=$sbindir
11023     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11024 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11025 fi
11026 if test "$libdir" != '${exec_prefix}/lib'; then
11027     root_libdir=$libdir
11028     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11029 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11030 fi
11031 if test "$sysconfdir" != '${prefix}/etc'; then
11032     root_sysconfdir=$sysconfdir
11033     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11034 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11035 fi
11036
11037
11038
11039
11040
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5
11042 $as_echo_n "checking whether linker accepts -static... " >&6; }
11043 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then :
11044   $as_echo_n "(cached) " >&6
11045 else
11046   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11048 /* end confdefs.h.  */
11049 #include <stdio.h>
11050 int
11051 main ()
11052 {
11053 fflush(stdout);
11054   ;
11055   return 0;
11056 }
11057 _ACEOF
11058 if ac_fn_c_try_link "$LINENO"; then :
11059   ac_cv_e2fsprogs_use_static=yes
11060 else
11061   ac_cv_e2fsprogs_use_static=no
11062 fi
11063 rm -f core conftest.err conftest.$ac_objext \
11064     conftest$ac_exeext conftest.$ac_ext
11065 LDFLAGS=$SAVE_LDFLAGS
11066 fi
11067
11068 case "$host_os" in
11069 solaris2.*)
11070         ac_cv_e2fsprogs_use_static=no
11071 ;;
11072 esac
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11074 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11075 LDFLAG_STATIC=
11076 if test $ac_cv_e2fsprogs_use_static = yes; then
11077         LDFLAG_STATIC=-static
11078 fi
11079
11080 case "$host_os" in
11081 darwin*)
11082         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11083 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11084         $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11085
11086         ;;
11087 esac
11088 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11089 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11090
11091
11092 if test "$cross_compiling" = yes ; then
11093   DO_TEST_SUITE=
11094 else
11095   DO_TEST_SUITE=check
11096 fi
11097
11098 INTL_FLAGS=
11099 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11100         INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
11101 fi
11102
11103 if test $cross_compiling = no; then
11104    BUILD_CFLAGS="$CFLAGS"
11105    BUILD_LDFLAGS="$LDFLAGS"
11106 else
11107    BUILD_CFLAGS=
11108    BUILD_LDFLAGS=
11109 fi
11110
11111
11112 test -d lib || mkdir lib
11113 test -d include || mkdir include
11114 test -d include/linux || mkdir include/linux
11115 test -d include/asm || mkdir include/asm
11116 for i in MCONFIG Makefile e2fsprogs.spec \
11117         util/Makefile util/subst.conf util/gen-tarball \
11118         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11119         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11120         lib/uuid/Makefile lib/uuid/uuid_types.h \
11121         lib/blkid/Makefile lib/blkid/blkid_types.h \
11122         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11123         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11124         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11125         debugfs/Makefile tests/Makefile tests/progs/Makefile \
11126         resize/Makefile doc/Makefile intl/Makefile \
11127         intl/libgnuintl.h po/Makefile.in ; do
11128         if test -d `dirname ${srcdir}/$i` ; then
11129                 outlist="$outlist $i"
11130         fi
11131 done
11132 ac_config_files="$ac_config_files $outlist"
11133
11134 cat >confcache <<\_ACEOF
11135 # This file is a shell script that caches the results of configure
11136 # tests run on this system so they can be shared between configure
11137 # scripts and configure runs, see configure's option --config-cache.
11138 # It is not useful on other systems.  If it contains results you don't
11139 # want to keep, you may remove or edit it.
11140 #
11141 # config.status only pays attention to the cache file if you give it
11142 # the --recheck option to rerun configure.
11143 #
11144 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11145 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11146 # following values.
11147
11148 _ACEOF
11149
11150 # The following way of writing the cache mishandles newlines in values,
11151 # but we know of no workaround that is simple, portable, and efficient.
11152 # So, we kill variables containing newlines.
11153 # Ultrix sh set writes to stderr and can't be redirected directly,
11154 # and sets the high bit in the cache file unless we assign to the vars.
11155 (
11156   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11157     eval ac_val=\$$ac_var
11158     case $ac_val in #(
11159     *${as_nl}*)
11160       case $ac_var in #(
11161       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11162 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11163       esac
11164       case $ac_var in #(
11165       _ | IFS | as_nl) ;; #(
11166       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11167       *) { eval $ac_var=; unset $ac_var;} ;;
11168       esac ;;
11169     esac
11170   done
11171
11172   (set) 2>&1 |
11173     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11174     *${as_nl}ac_space=\ *)
11175       # `set' does not quote correctly, so add quotes: double-quote
11176       # substitution turns \\\\ into \\, and sed turns \\ into \.
11177       sed -n \
11178         "s/'/'\\\\''/g;
11179           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11180       ;; #(
11181     *)
11182       # `set' quotes correctly as required by POSIX, so do not add quotes.
11183       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11184       ;;
11185     esac |
11186     sort
11187 ) |
11188   sed '
11189      /^ac_cv_env_/b end
11190      t clear
11191      :clear
11192      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11193      t end
11194      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11195      :end' >>confcache
11196 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11197   if test -w "$cache_file"; then
11198     test "x$cache_file" != "x/dev/null" &&
11199       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11200 $as_echo "$as_me: updating cache $cache_file" >&6;}
11201     cat confcache >$cache_file
11202   else
11203     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11204 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11205   fi
11206 fi
11207 rm -f confcache
11208
11209 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11210 # Let make expand exec_prefix.
11211 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11212
11213 # Transform confdefs.h into DEFS.
11214 # Protect against shell expansion while executing Makefile rules.
11215 # Protect against Makefile macro expansion.
11216 #
11217 # If the first sed substitution is executed (which looks for macros that
11218 # take arguments), then branch to the quote section.  Otherwise,
11219 # look for a macro that doesn't take arguments.
11220 ac_script='
11221 :mline
11222 /\\$/{
11223  N
11224  s,\\\n,,
11225  b mline
11226 }
11227 t clear
11228 :clear
11229 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
11230 t quote
11231 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
11232 t quote
11233 b any
11234 :quote
11235 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11236 s/\[/\\&/g
11237 s/\]/\\&/g
11238 s/\$/$$/g
11239 H
11240 :any
11241 ${
11242         g
11243         s/^\n//
11244         s/\n/ /g
11245         p
11246 }
11247 '
11248 DEFS=`sed -n "$ac_script" confdefs.h`
11249
11250
11251 ac_libobjs=
11252 ac_ltlibobjs=
11253 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11254   # 1. Remove the extension, and $U if already installed.
11255   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11256   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11257   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11258   #    will be set to the directory where LIBOBJS objects are built.
11259   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11260   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11261 done
11262 LIBOBJS=$ac_libobjs
11263
11264 LTLIBOBJS=$ac_ltlibobjs
11265
11266
11267
11268
11269 : ${CONFIG_STATUS=./config.status}
11270 ac_write_fail=0
11271 ac_clean_files_save=$ac_clean_files
11272 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11274 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11275 as_write_fail=0
11276 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11277 #! $SHELL
11278 # Generated by $as_me.
11279 # Run this file to recreate the current configuration.
11280 # Compiler output produced by configure, useful for debugging
11281 # configure, is in config.log if it exists.
11282
11283 debug=false
11284 ac_cs_recheck=false
11285 ac_cs_silent=false
11286
11287 SHELL=\${CONFIG_SHELL-$SHELL}
11288 export SHELL
11289 _ASEOF
11290 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11291 ## -------------------- ##
11292 ## M4sh Initialization. ##
11293 ## -------------------- ##
11294
11295 # Be more Bourne compatible
11296 DUALCASE=1; export DUALCASE # for MKS sh
11297 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11298   emulate sh
11299   NULLCMD=:
11300   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11301   # is contrary to our usage.  Disable this feature.
11302   alias -g '${1+"$@"}'='"$@"'
11303   setopt NO_GLOB_SUBST
11304 else
11305   case `(set -o) 2>/dev/null` in #(
11306   *posix*) :
11307     set -o posix ;; #(
11308   *) :
11309      ;;
11310 esac
11311 fi
11312
11313
11314 as_nl='
11315 '
11316 export as_nl
11317 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11318 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11319 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11320 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11321 # Prefer a ksh shell builtin over an external printf program on Solaris,
11322 # but without wasting forks for bash or zsh.
11323 if test -z "$BASH_VERSION$ZSH_VERSION" \
11324     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11325   as_echo='print -r --'
11326   as_echo_n='print -rn --'
11327 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11328   as_echo='printf %s\n'
11329   as_echo_n='printf %s'
11330 else
11331   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11332     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11333     as_echo_n='/usr/ucb/echo -n'
11334   else
11335     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11336     as_echo_n_body='eval
11337       arg=$1;
11338       case $arg in #(
11339       *"$as_nl"*)
11340         expr "X$arg" : "X\\(.*\\)$as_nl";
11341         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11342       esac;
11343       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11344     '
11345     export as_echo_n_body
11346     as_echo_n='sh -c $as_echo_n_body as_echo'
11347   fi
11348   export as_echo_body
11349   as_echo='sh -c $as_echo_body as_echo'
11350 fi
11351
11352 # The user is always right.
11353 if test "${PATH_SEPARATOR+set}" != set; then
11354   PATH_SEPARATOR=:
11355   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11356     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11357       PATH_SEPARATOR=';'
11358   }
11359 fi
11360
11361
11362 # IFS
11363 # We need space, tab and new line, in precisely that order.  Quoting is
11364 # there to prevent editors from complaining about space-tab.
11365 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11366 # splitting by setting IFS to empty value.)
11367 IFS=" ""        $as_nl"
11368
11369 # Find who we are.  Look in the path if we contain no directory separator.
11370 case $0 in #((
11371   *[\\/]* ) as_myself=$0 ;;
11372   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11373 for as_dir in $PATH
11374 do
11375   IFS=$as_save_IFS
11376   test -z "$as_dir" && as_dir=.
11377     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11378   done
11379 IFS=$as_save_IFS
11380
11381      ;;
11382 esac
11383 # We did not find ourselves, most probably we were run as `sh COMMAND'
11384 # in which case we are not to be found in the path.
11385 if test "x$as_myself" = x; then
11386   as_myself=$0
11387 fi
11388 if test ! -f "$as_myself"; then
11389   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11390   exit 1
11391 fi
11392
11393 # Unset variables that we do not need and which cause bugs (e.g. in
11394 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11395 # suppresses any "Segmentation fault" message there.  '((' could
11396 # trigger a bug in pdksh 5.2.14.
11397 for as_var in BASH_ENV ENV MAIL MAILPATH
11398 do eval test x\${$as_var+set} = xset \
11399   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11400 done
11401 PS1='$ '
11402 PS2='> '
11403 PS4='+ '
11404
11405 # NLS nuisances.
11406 LC_ALL=C
11407 export LC_ALL
11408 LANGUAGE=C
11409 export LANGUAGE
11410
11411 # CDPATH.
11412 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11413
11414
11415 # as_fn_error ERROR [LINENO LOG_FD]
11416 # ---------------------------------
11417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11419 # script with status $?, using 1 if that was 0.
11420 as_fn_error ()
11421 {
11422   as_status=$?; test $as_status -eq 0 && as_status=1
11423   if test "$3"; then
11424     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11425     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11426   fi
11427   $as_echo "$as_me: error: $1" >&2
11428   as_fn_exit $as_status
11429 } # as_fn_error
11430
11431
11432 # as_fn_set_status STATUS
11433 # -----------------------
11434 # Set $? to STATUS, without forking.
11435 as_fn_set_status ()
11436 {
11437   return $1
11438 } # as_fn_set_status
11439
11440 # as_fn_exit STATUS
11441 # -----------------
11442 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11443 as_fn_exit ()
11444 {
11445   set +e
11446   as_fn_set_status $1
11447   exit $1
11448 } # as_fn_exit
11449
11450 # as_fn_unset VAR
11451 # ---------------
11452 # Portably unset VAR.
11453 as_fn_unset ()
11454 {
11455   { eval $1=; unset $1;}
11456 }
11457 as_unset=as_fn_unset
11458 # as_fn_append VAR VALUE
11459 # ----------------------
11460 # Append the text in VALUE to the end of the definition contained in VAR. Take
11461 # advantage of any shell optimizations that allow amortized linear growth over
11462 # repeated appends, instead of the typical quadratic growth present in naive
11463 # implementations.
11464 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11465   eval 'as_fn_append ()
11466   {
11467     eval $1+=\$2
11468   }'
11469 else
11470   as_fn_append ()
11471   {
11472     eval $1=\$$1\$2
11473   }
11474 fi # as_fn_append
11475
11476 # as_fn_arith ARG...
11477 # ------------------
11478 # Perform arithmetic evaluation on the ARGs, and store the result in the
11479 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11480 # must be portable across $(()) and expr.
11481 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11482   eval 'as_fn_arith ()
11483   {
11484     as_val=$(( $* ))
11485   }'
11486 else
11487   as_fn_arith ()
11488   {
11489     as_val=`expr "$@" || test $? -eq 1`
11490   }
11491 fi # as_fn_arith
11492
11493
11494 if expr a : '\(a\)' >/dev/null 2>&1 &&
11495    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11496   as_expr=expr
11497 else
11498   as_expr=false
11499 fi
11500
11501 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11502   as_basename=basename
11503 else
11504   as_basename=false
11505 fi
11506
11507 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11508   as_dirname=dirname
11509 else
11510   as_dirname=false
11511 fi
11512
11513 as_me=`$as_basename -- "$0" ||
11514 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11515          X"$0" : 'X\(//\)$' \| \
11516          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11517 $as_echo X/"$0" |
11518     sed '/^.*\/\([^/][^/]*\)\/*$/{
11519             s//\1/
11520             q
11521           }
11522           /^X\/\(\/\/\)$/{
11523             s//\1/
11524             q
11525           }
11526           /^X\/\(\/\).*/{
11527             s//\1/
11528             q
11529           }
11530           s/.*/./; q'`
11531
11532 # Avoid depending upon Character Ranges.
11533 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11534 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11535 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11536 as_cr_digits='0123456789'
11537 as_cr_alnum=$as_cr_Letters$as_cr_digits
11538
11539 ECHO_C= ECHO_N= ECHO_T=
11540 case `echo -n x` in #(((((
11541 -n*)
11542   case `echo 'xy\c'` in
11543   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11544   xy)  ECHO_C='\c';;
11545   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11546        ECHO_T=' ';;
11547   esac;;
11548 *)
11549   ECHO_N='-n';;
11550 esac
11551
11552 rm -f conf$$ conf$$.exe conf$$.file
11553 if test -d conf$$.dir; then
11554   rm -f conf$$.dir/conf$$.file
11555 else
11556   rm -f conf$$.dir
11557   mkdir conf$$.dir 2>/dev/null
11558 fi
11559 if (echo >conf$$.file) 2>/dev/null; then
11560   if ln -s conf$$.file conf$$ 2>/dev/null; then
11561     as_ln_s='ln -s'
11562     # ... but there are two gotchas:
11563     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11564     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11565     # In both cases, we have to default to `cp -p'.
11566     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11567       as_ln_s='cp -p'
11568   elif ln conf$$.file conf$$ 2>/dev/null; then
11569     as_ln_s=ln
11570   else
11571     as_ln_s='cp -p'
11572   fi
11573 else
11574   as_ln_s='cp -p'
11575 fi
11576 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11577 rmdir conf$$.dir 2>/dev/null
11578
11579
11580 # as_fn_mkdir_p
11581 # -------------
11582 # Create "$as_dir" as a directory, including parents if necessary.
11583 as_fn_mkdir_p ()
11584 {
11585
11586   case $as_dir in #(
11587   -*) as_dir=./$as_dir;;
11588   esac
11589   test -d "$as_dir" || eval $as_mkdir_p || {
11590     as_dirs=
11591     while :; do
11592       case $as_dir in #(
11593       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11594       *) as_qdir=$as_dir;;
11595       esac
11596       as_dirs="'$as_qdir' $as_dirs"
11597       as_dir=`$as_dirname -- "$as_dir" ||
11598 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11599          X"$as_dir" : 'X\(//\)[^/]' \| \
11600          X"$as_dir" : 'X\(//\)$' \| \
11601          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11602 $as_echo X"$as_dir" |
11603     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11604             s//\1/
11605             q
11606           }
11607           /^X\(\/\/\)[^/].*/{
11608             s//\1/
11609             q
11610           }
11611           /^X\(\/\/\)$/{
11612             s//\1/
11613             q
11614           }
11615           /^X\(\/\).*/{
11616             s//\1/
11617             q
11618           }
11619           s/.*/./; q'`
11620       test -d "$as_dir" && break
11621     done
11622     test -z "$as_dirs" || eval "mkdir $as_dirs"
11623   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11624
11625
11626 } # as_fn_mkdir_p
11627 if mkdir -p . 2>/dev/null; then
11628   as_mkdir_p='mkdir -p "$as_dir"'
11629 else
11630   test -d ./-p && rmdir ./-p
11631   as_mkdir_p=false
11632 fi
11633
11634 if test -x / >/dev/null 2>&1; then
11635   as_test_x='test -x'
11636 else
11637   if ls -dL / >/dev/null 2>&1; then
11638     as_ls_L_option=L
11639   else
11640     as_ls_L_option=
11641   fi
11642   as_test_x='
11643     eval sh -c '\''
11644       if test -d "$1"; then
11645         test -d "$1/.";
11646       else
11647         case $1 in #(
11648         -*)set "./$1";;
11649         esac;
11650         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11651         ???[sx]*):;;*)false;;esac;fi
11652     '\'' sh
11653   '
11654 fi
11655 as_executable_p=$as_test_x
11656
11657 # Sed expression to map a string onto a valid CPP name.
11658 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11659
11660 # Sed expression to map a string onto a valid variable name.
11661 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11662
11663
11664 exec 6>&1
11665 ## ----------------------------------- ##
11666 ## Main body of $CONFIG_STATUS script. ##
11667 ## ----------------------------------- ##
11668 _ASEOF
11669 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11670
11671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11672 # Save the log message, to keep $0 and so on meaningful, and to
11673 # report actual input values of CONFIG_FILES etc. instead of their
11674 # values after options handling.
11675 ac_log="
11676 This file was extended by $as_me, which was
11677 generated by GNU Autoconf 2.65.  Invocation command line was
11678
11679   CONFIG_FILES    = $CONFIG_FILES
11680   CONFIG_HEADERS  = $CONFIG_HEADERS
11681   CONFIG_LINKS    = $CONFIG_LINKS
11682   CONFIG_COMMANDS = $CONFIG_COMMANDS
11683   $ $0 $@
11684
11685 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11686 "
11687
11688 _ACEOF
11689
11690 case $ac_config_files in *"
11691 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11692 esac
11693
11694
11695
11696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11697 # Files that config.status was made for.
11698 config_files="$ac_config_files"
11699 config_commands="$ac_config_commands"
11700
11701 _ACEOF
11702
11703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11704 ac_cs_usage="\
11705 \`$as_me' instantiates files and other configuration actions
11706 from templates according to the current configuration.  Unless the files
11707 and actions are specified as TAGs, all are instantiated by default.
11708
11709 Usage: $0 [OPTION]... [TAG]...
11710
11711   -h, --help       print this help, then exit
11712   -V, --version    print version number and configuration settings, then exit
11713       --config     print configuration, then exit
11714   -q, --quiet, --silent
11715                    do not print progress messages
11716   -d, --debug      don't remove temporary files
11717       --recheck    update $as_me by reconfiguring in the same conditions
11718       --file=FILE[:TEMPLATE]
11719                    instantiate the configuration file FILE
11720
11721 Configuration files:
11722 $config_files
11723
11724 Configuration commands:
11725 $config_commands
11726
11727 Report bugs to the package provider."
11728
11729 _ACEOF
11730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11731 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11732 ac_cs_version="\\
11733 config.status
11734 configured by $0, generated by GNU Autoconf 2.65,
11735   with options \\"\$ac_cs_config\\"
11736
11737 Copyright (C) 2009 Free Software Foundation, Inc.
11738 This config.status script is free software; the Free Software Foundation
11739 gives unlimited permission to copy, distribute and modify it."
11740
11741 ac_pwd='$ac_pwd'
11742 srcdir='$srcdir'
11743 INSTALL='$INSTALL'
11744 AWK='$AWK'
11745 test -n "\$AWK" || AWK=awk
11746 _ACEOF
11747
11748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11749 # The default lists apply if the user does not specify any file.
11750 ac_need_defaults=:
11751 while test $# != 0
11752 do
11753   case $1 in
11754   --*=*)
11755     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11756     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11757     ac_shift=:
11758     ;;
11759   *)
11760     ac_option=$1
11761     ac_optarg=$2
11762     ac_shift=shift
11763     ;;
11764   esac
11765
11766   case $ac_option in
11767   # Handling of the options.
11768   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11769     ac_cs_recheck=: ;;
11770   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11771     $as_echo "$ac_cs_version"; exit ;;
11772   --config | --confi | --conf | --con | --co | --c )
11773     $as_echo "$ac_cs_config"; exit ;;
11774   --debug | --debu | --deb | --de | --d | -d )
11775     debug=: ;;
11776   --file | --fil | --fi | --f )
11777     $ac_shift
11778     case $ac_optarg in
11779     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11780     esac
11781     as_fn_append CONFIG_FILES " '$ac_optarg'"
11782     ac_need_defaults=false;;
11783   --he | --h |  --help | --hel | -h )
11784     $as_echo "$ac_cs_usage"; exit ;;
11785   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11786   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11787     ac_cs_silent=: ;;
11788
11789   # This is an error.
11790   -*) as_fn_error "unrecognized option: \`$1'
11791 Try \`$0 --help' for more information." ;;
11792
11793   *) as_fn_append ac_config_targets " $1"
11794      ac_need_defaults=false ;;
11795
11796   esac
11797   shift
11798 done
11799
11800 ac_configure_extra_args=
11801
11802 if $ac_cs_silent; then
11803   exec 6>/dev/null
11804   ac_configure_extra_args="$ac_configure_extra_args --silent"
11805 fi
11806
11807 _ACEOF
11808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11809 if \$ac_cs_recheck; then
11810   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11811   shift
11812   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11813   CONFIG_SHELL='$SHELL'
11814   export CONFIG_SHELL
11815   exec "\$@"
11816 fi
11817
11818 _ACEOF
11819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11820 exec 5>>config.log
11821 {
11822   echo
11823   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11824 ## Running $as_me. ##
11825 _ASBOX
11826   $as_echo "$ac_log"
11827 } >&5
11828
11829 _ACEOF
11830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11831 #
11832 # INIT-COMMANDS
11833 #
11834 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11835     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
11836     # from automake.
11837     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11838     # Capture the value of LINGUAS because we need it to compute CATALOGS.
11839     LINGUAS="${LINGUAS-%UNSET%}"
11840
11841
11842 _ACEOF
11843
11844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11845
11846 # Handling of arguments.
11847 for ac_config_target in $ac_config_targets
11848 do
11849   case $ac_config_target in
11850     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11851     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
11852
11853   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11854   esac
11855 done
11856
11857
11858 # If the user did not use the arguments to specify the items to instantiate,
11859 # then the envvar interface is used.  Set only those that are not.
11860 # We use the long form for the default assignment because of an extremely
11861 # bizarre bug on SunOS 4.1.3.
11862 if $ac_need_defaults; then
11863   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11864   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11865 fi
11866
11867 # Have a temporary directory for convenience.  Make it in the build tree
11868 # simply because there is no reason against having it here, and in addition,
11869 # creating and moving files from /tmp can sometimes cause problems.
11870 # Hook for its removal unless debugging.
11871 # Note that there is a small window in which the directory will not be cleaned:
11872 # after its creation but before its name has been assigned to `$tmp'.
11873 $debug ||
11874 {
11875   tmp=
11876   trap 'exit_status=$?
11877   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11878 ' 0
11879   trap 'as_fn_exit 1' 1 2 13 15
11880 }
11881 # Create a (secure) tmp directory for tmp files.
11882
11883 {
11884   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11885   test -n "$tmp" && test -d "$tmp"
11886 }  ||
11887 {
11888   tmp=./conf$$-$RANDOM
11889   (umask 077 && mkdir "$tmp")
11890 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11891
11892 # Set up the scripts for CONFIG_FILES section.
11893 # No need to generate them if there are no CONFIG_FILES.
11894 # This happens for instance with `./config.status config.h'.
11895 if test -n "$CONFIG_FILES"; then
11896
11897 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
11898   ac_cs_awk_getline=:
11899   ac_cs_awk_pipe_init=
11900   ac_cs_awk_read_file='
11901       while ((getline aline < (F[key])) > 0)
11902         print(aline)
11903       close(F[key])'
11904   ac_cs_awk_pipe_fini=
11905 else
11906   ac_cs_awk_getline=false
11907   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
11908   ac_cs_awk_read_file='
11909       print "|#_!!_#|"
11910       print "cat " F[key] " &&"
11911       '$ac_cs_awk_pipe_init
11912   # The final `:' finishes the AND list.
11913   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
11914 fi
11915 ac_cr=`echo X | tr X '\015'`
11916 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11917 # But we know of no other shell where ac_cr would be empty at this
11918 # point, so we can use a bashism as a fallback.
11919 if test "x$ac_cr" = x; then
11920   eval ac_cr=\$\'\\r\'
11921 fi
11922 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11923 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11924   ac_cs_awk_cr='\r'
11925 else
11926   ac_cs_awk_cr=$ac_cr
11927 fi
11928
11929 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11930 _ACEOF
11931
11932 # Create commands to substitute file output variables.
11933 {
11934   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
11935   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
11936   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
11937   echo "_ACAWK" &&
11938   echo "_ACEOF"
11939 } >conf$$files.sh &&
11940 . ./conf$$files.sh ||
11941   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11942 rm -f conf$$files.sh
11943
11944 {
11945   echo "cat >conf$$subs.awk <<_ACEOF" &&
11946   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11947   echo "_ACEOF"
11948 } >conf$$subs.sh ||
11949   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11950 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11951 ac_delim='%!_!# '
11952 for ac_last_try in false false false false false :; do
11953   . ./conf$$subs.sh ||
11954     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11955
11956   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11957   if test $ac_delim_n = $ac_delim_num; then
11958     break
11959   elif $ac_last_try; then
11960     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11961   else
11962     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11963   fi
11964 done
11965 rm -f conf$$subs.sh
11966
11967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11968 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11969 _ACEOF
11970 sed -n '
11971 h
11972 s/^/S["/; s/!.*/"]=/
11973 p
11974 g
11975 s/^[^!]*!//
11976 :repl
11977 t repl
11978 s/'"$ac_delim"'$//
11979 t delim
11980 :nl
11981 h
11982 s/\(.\{148\}\)..*/\1/
11983 t more1
11984 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11985 p
11986 n
11987 b repl
11988 :more1
11989 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11990 p
11991 g
11992 s/.\{148\}//
11993 t nl
11994 :delim
11995 h
11996 s/\(.\{148\}\)..*/\1/
11997 t more2
11998 s/["\\]/\\&/g; s/^/"/; s/$/"/
11999 p
12000 b
12001 :more2
12002 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12003 p
12004 g
12005 s/.\{148\}//
12006 t delim
12007 ' <conf$$subs.awk | sed '
12008 /^[^""]/{
12009   N
12010   s/\n//
12011 }
12012 ' >>$CONFIG_STATUS || ac_write_fail=1
12013 rm -f conf$$subs.awk
12014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12015 _ACAWK
12016 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12017   for (key in S) S_is_set[key] = 1
12018   FS = "\a"
12019   \$ac_cs_awk_pipe_init
12020 }
12021 {
12022   line = $ 0
12023   nfields = split(line, field, "@")
12024   substed = 0
12025   len = length(field[1])
12026   for (i = 2; i < nfields; i++) {
12027     key = field[i]
12028     keylen = length(key)
12029     if (S_is_set[key]) {
12030       value = S[key]
12031       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12032       len += length(value) + length(field[++i])
12033       substed = 1
12034     } else
12035       len += 1 + keylen
12036   }
12037   if (nfields == 3 && !substed) {
12038     key = field[2]
12039     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
12040       \$ac_cs_awk_read_file
12041       next
12042     }
12043   }
12044   print line
12045 }
12046 \$ac_cs_awk_pipe_fini
12047 _ACAWK
12048 _ACEOF
12049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12050 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12051   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12052 else
12053   cat
12054 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12055   || as_fn_error "could not setup config files machinery" "$LINENO" 5
12056 _ACEOF
12057
12058 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12059 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12060 # trailing colons and then remove the whole line if VPATH becomes empty
12061 # (actually we leave an empty line to preserve line numbers).
12062 if test "x$srcdir" = x.; then
12063   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12064 s/:*\$(srcdir):*/:/
12065 s/:*\${srcdir}:*/:/
12066 s/:*@srcdir@:*/:/
12067 s/^\([^=]*=[     ]*\):*/\1/
12068 s/:*$//
12069 s/^[^=]*=[       ]*$//
12070 }'
12071 fi
12072
12073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12074 fi # test -n "$CONFIG_FILES"
12075
12076
12077 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
12078 shift
12079 for ac_tag
12080 do
12081   case $ac_tag in
12082   :[FHLC]) ac_mode=$ac_tag; continue;;
12083   esac
12084   case $ac_mode$ac_tag in
12085   :[FHL]*:*);;
12086   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12087   :[FH]-) ac_tag=-:-;;
12088   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12089   esac
12090   ac_save_IFS=$IFS
12091   IFS=:
12092   set x $ac_tag
12093   IFS=$ac_save_IFS
12094   shift
12095   ac_file=$1
12096   shift
12097
12098   case $ac_mode in
12099   :L) ac_source=$1;;
12100   :[FH])
12101     ac_file_inputs=
12102     for ac_f
12103     do
12104       case $ac_f in
12105       -) ac_f="$tmp/stdin";;
12106       *) # Look for the file first in the build tree, then in the source tree
12107          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12108          # because $ac_f cannot contain `:'.
12109          test -f "$ac_f" ||
12110            case $ac_f in
12111            [\\/$]*) false;;
12112            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12113            esac ||
12114            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12115       esac
12116       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12117       as_fn_append ac_file_inputs " '$ac_f'"
12118     done
12119
12120     # Let's still pretend it is `configure' which instantiates (i.e., don't
12121     # use $as_me), people would be surprised to read:
12122     #    /* config.h.  Generated by config.status.  */
12123     configure_input='Generated from '`
12124           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12125         `' by configure.'
12126     if test x"$ac_file" != x-; then
12127       configure_input="$ac_file.  $configure_input"
12128       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12129 $as_echo "$as_me: creating $ac_file" >&6;}
12130     fi
12131     # Neutralize special characters interpreted by sed in replacement strings.
12132     case $configure_input in #(
12133     *\&* | *\|* | *\\* )
12134        ac_sed_conf_input=`$as_echo "$configure_input" |
12135        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12136     *) ac_sed_conf_input=$configure_input;;
12137     esac
12138
12139     case $ac_tag in
12140     *:-:* | *:-) cat >"$tmp/stdin" \
12141       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12142     esac
12143     ;;
12144   esac
12145
12146   ac_dir=`$as_dirname -- "$ac_file" ||
12147 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12148          X"$ac_file" : 'X\(//\)[^/]' \| \
12149          X"$ac_file" : 'X\(//\)$' \| \
12150          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12151 $as_echo X"$ac_file" |
12152     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12153             s//\1/
12154             q
12155           }
12156           /^X\(\/\/\)[^/].*/{
12157             s//\1/
12158             q
12159           }
12160           /^X\(\/\/\)$/{
12161             s//\1/
12162             q
12163           }
12164           /^X\(\/\).*/{
12165             s//\1/
12166             q
12167           }
12168           s/.*/./; q'`
12169   as_dir="$ac_dir"; as_fn_mkdir_p
12170   ac_builddir=.
12171
12172 case "$ac_dir" in
12173 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12174 *)
12175   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12176   # A ".." for each directory in $ac_dir_suffix.
12177   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12178   case $ac_top_builddir_sub in
12179   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12180   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12181   esac ;;
12182 esac
12183 ac_abs_top_builddir=$ac_pwd
12184 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12185 # for backward compatibility:
12186 ac_top_builddir=$ac_top_build_prefix
12187
12188 case $srcdir in
12189   .)  # We are building in place.
12190     ac_srcdir=.
12191     ac_top_srcdir=$ac_top_builddir_sub
12192     ac_abs_top_srcdir=$ac_pwd ;;
12193   [\\/]* | ?:[\\/]* )  # Absolute name.
12194     ac_srcdir=$srcdir$ac_dir_suffix;
12195     ac_top_srcdir=$srcdir
12196     ac_abs_top_srcdir=$srcdir ;;
12197   *) # Relative name.
12198     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12199     ac_top_srcdir=$ac_top_build_prefix$srcdir
12200     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12201 esac
12202 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12203
12204
12205   case $ac_mode in
12206   :F)
12207   #
12208   # CONFIG_FILE
12209   #
12210
12211   case $INSTALL in
12212   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12213   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12214   esac
12215 _ACEOF
12216
12217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12218 # If the template does not know about datarootdir, expand it.
12219 # FIXME: This hack should be removed a few years after 2.60.
12220 ac_datarootdir_hack=; ac_datarootdir_seen=
12221 ac_sed_dataroot='
12222 /datarootdir/ {
12223   p
12224   q
12225 }
12226 /@datadir@/p
12227 /@docdir@/p
12228 /@infodir@/p
12229 /@localedir@/p
12230 /@mandir@/p'
12231 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12232 *datarootdir*) ac_datarootdir_seen=yes;;
12233 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12234   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12235 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12236 _ACEOF
12237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12238   ac_datarootdir_hack='
12239   s&@datadir@&$datadir&g
12240   s&@docdir@&$docdir&g
12241   s&@infodir@&$infodir&g
12242   s&@localedir@&$localedir&g
12243   s&@mandir@&$mandir&g
12244   s&\\\${datarootdir}&$datarootdir&g' ;;
12245 esac
12246 _ACEOF
12247
12248 # Neutralize VPATH when `$srcdir' = `.'.
12249 # Shell code in configure.ac might set extrasub.
12250 # FIXME: do we really want to maintain this feature?
12251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12252 ac_sed_extra="$ac_vpsub
12253 $extrasub
12254 _ACEOF
12255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12256 :t
12257 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12258 s|@configure_input@|$ac_sed_conf_input|;t t
12259 s&@top_builddir@&$ac_top_builddir_sub&;t t
12260 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12261 s&@srcdir@&$ac_srcdir&;t t
12262 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12263 s&@top_srcdir@&$ac_top_srcdir&;t t
12264 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12265 s&@builddir@&$ac_builddir&;t t
12266 s&@abs_builddir@&$ac_abs_builddir&;t t
12267 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12268 s&@INSTALL@&$ac_INSTALL&;t t
12269 $ac_datarootdir_hack
12270 "
12271 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12272 if $ac_cs_awk_getline; then
12273   $AWK -f "$tmp/subs.awk"
12274 else
12275   $AWK -f "$tmp/subs.awk" | $SHELL
12276 fi >$tmp/out \
12277   || as_fn_error "could not create $ac_file" "$LINENO" 5
12278
12279 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12280   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12281   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12282   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12283 which seems to be undefined.  Please make sure it is defined." >&5
12284 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12285 which seems to be undefined.  Please make sure it is defined." >&2;}
12286
12287   rm -f "$tmp/stdin"
12288   case $ac_file in
12289   -) cat "$tmp/out" && rm -f "$tmp/out";;
12290   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12291   esac \
12292   || as_fn_error "could not create $ac_file" "$LINENO" 5
12293  ;;
12294
12295
12296   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12297 $as_echo "$as_me: executing $ac_file commands" >&6;}
12298  ;;
12299   esac
12300
12301
12302   case $ac_file$ac_mode in
12303     "default-1":C)
12304     for ac_file in $CONFIG_FILES; do
12305       # Support "outfile[:infile[:infile...]]"
12306       case "$ac_file" in
12307         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12308       esac
12309       # PO directories have a Makefile.in generated from Makefile.in.in.
12310       case "$ac_file" in */Makefile.in)
12311         # Adjust a relative srcdir.
12312         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12313         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12314         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12315         # In autoconf-2.13 it is called $ac_given_srcdir.
12316         # In autoconf-2.50 it is called $srcdir.
12317         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12318         case "$ac_given_srcdir" in
12319           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12320           /*) top_srcdir="$ac_given_srcdir" ;;
12321           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
12322         esac
12323         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12324           rm -f "$ac_dir/POTFILES"
12325           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12326           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12327           POMAKEFILEDEPS="POTFILES.in"
12328           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12329           # on $ac_dir but don't depend on user-specified configuration
12330           # parameters.
12331           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12332             # The LINGUAS file contains the set of available languages.
12333             if test -n "$OBSOLETE_ALL_LINGUAS"; then
12334               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12335             fi
12336             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12337             # Hide the ALL_LINGUAS assigment from automake.
12338             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12339             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12340           else
12341             # The set of available languages was given in configure.in.
12342             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12343           fi
12344           # Compute POFILES
12345           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12346           # Compute UPDATEPOFILES
12347           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12348           # Compute DUMMYPOFILES
12349           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12350           # Compute GMOFILES
12351           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12352           case "$ac_given_srcdir" in
12353             .) srcdirpre= ;;
12354             *) srcdirpre='$(srcdir)/' ;;
12355           esac
12356           POFILES=
12357           UPDATEPOFILES=
12358           DUMMYPOFILES=
12359           GMOFILES=
12360           for lang in $ALL_LINGUAS; do
12361             POFILES="$POFILES $srcdirpre$lang.po"
12362             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12363             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12364             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12365           done
12366           # CATALOGS depends on both $ac_dir and the user's LINGUAS
12367           # environment variable.
12368           INST_LINGUAS=
12369           if test -n "$ALL_LINGUAS"; then
12370             for presentlang in $ALL_LINGUAS; do
12371               useit=no
12372               if test "%UNSET%" != "$LINGUAS"; then
12373                 desiredlanguages="$LINGUAS"
12374               else
12375                 desiredlanguages="$ALL_LINGUAS"
12376               fi
12377               for desiredlang in $desiredlanguages; do
12378                 # Use the presentlang catalog if desiredlang is
12379                 #   a. equal to presentlang, or
12380                 #   b. a variant of presentlang (because in this case,
12381                 #      presentlang can be used as a fallback for messages
12382                 #      which are not translated in the desiredlang catalog).
12383                 case "$desiredlang" in
12384                   "$presentlang"*) useit=yes;;
12385                 esac
12386               done
12387               if test $useit = yes; then
12388                 INST_LINGUAS="$INST_LINGUAS $presentlang"
12389               fi
12390             done
12391           fi
12392           CATALOGS=
12393           if test -n "$INST_LINGUAS"; then
12394             for lang in $INST_LINGUAS; do
12395               CATALOGS="$CATALOGS $lang.gmo"
12396             done
12397           fi
12398           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12399           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"
12400           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12401             if test -f "$f"; then
12402               case "$f" in
12403                 *.orig | *.bak | *~) ;;
12404                 *) cat "$f" >> "$ac_dir/Makefile" ;;
12405               esac
12406             fi
12407           done
12408         fi
12409         ;;
12410       esac
12411     done ;;
12412
12413   esac
12414 done # for ac_tag
12415
12416
12417 as_fn_exit 0
12418 _ACEOF
12419 ac_clean_files=$ac_clean_files_save
12420
12421 test $ac_write_fail = 0 ||
12422   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12423
12424
12425 # configure is writing to config.log, and then calls config.status.
12426 # config.status does its own redirection, appending to config.log.
12427 # Unfortunately, on DOS this fails, as config.log is still kept open
12428 # by configure, so config.status won't be able to write to it; its
12429 # output is simply discarded.  So we exec the FD to /dev/null,
12430 # effectively closing config.log, so it can be properly (re)opened and
12431 # appended to by config.status.  When coming back to configure, we
12432 # need to make the FD available again.
12433 if test "$no_create" != yes; then
12434   ac_cs_success=:
12435   ac_config_status_args=
12436   test "$silent" = yes &&
12437     ac_config_status_args="$ac_config_status_args --quiet"
12438   exec 5>/dev/null
12439   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12440   exec 5>>config.log
12441   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12442   # would make configure fail if this is the last instruction.
12443   $ac_cs_success || as_fn_exit $?
12444 fi
12445 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12446   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12447 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12448 fi
12449
12450 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi